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 # It seems that that many machines where <utime.h> seems to be
5859 # broken just require something like -D_XXX_SOURCE, where XXX might
5860 # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine.
5862 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5863 echo "configure:5864: checking for utime.h" >&5
5864 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5871 #include <sys/types.h>
5877 if { (eval echo configure:5878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5879 tar_cv_header_utime_h=yes
5881 echo "configure: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5884 tar_cv_header_utime_h=no
5889 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5890 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5891 #define HAVE_UTIME_H 1
5895 echo $ac_n "checking for working const""... $ac_c" 1>&6
5896 echo "configure:5897: checking for working const" >&5
5897 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5898 echo $ac_n "(cached) $ac_c" 1>&6
5900 cat > conftest.$ac_ext <<EOF
5901 #line 5902 "configure"
5902 #include "confdefs.h"
5906 /* Ultrix mips cc rejects this. */
5907 typedef int charset[2]; const charset x;
5908 /* SunOS 4.1.1 cc rejects this. */
5909 char const *const *ccp;
5911 /* NEC SVR4.0.2 mips cc rejects this. */
5912 struct point {int x, y;};
5913 static struct point const zero = {0,0};
5914 /* AIX XL C 1.02.0.0 rejects this.
5915 It does not let you subtract one const X* pointer from another in an arm
5916 of an if-expression whose if-part is not a constant expression */
5917 const char *g = "string";
5918 ccp = &g + (g ? g-g : 0);
5919 /* HPUX 7.0 cc rejects these. */
5922 ccp = (char const *const *) p;
5923 { /* SCO 3.2v4 cc rejects this. */
5925 char const *s = 0 ? (char *) 0 : (char const *) 0;
5929 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5931 const int *foo = &x[0];
5934 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5935 typedef const int *iptr;
5939 { /* AIX XL C 1.02.0.0 rejects this saying
5940 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5941 struct s { int j; const int *ap[3]; };
5942 struct s *b; b->j = 5;
5944 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5950 if { (eval echo configure:5951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5954 echo "configure: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5962 echo "$ac_t""$ac_cv_c_const" 1>&6
5963 if test $ac_cv_c_const = no; then
5964 cat >> confdefs.h <<\EOF
5972 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
5973 echo "configure:5974: checking how to get filesystem type" >&5
5975 # The order of these tests is important.
5976 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5979 #include <sys/statvfs.h>
5980 #include <sys/fstyp.h>
5982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5983 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5985 if test -z "$ac_err"; then
5987 cat >> confdefs.h <<\EOF
5988 #define FSTYPE_STATVFS 1
5993 echo "configure: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5997 if test $fstype = no; then
5998 cat > conftest.$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 #include <sys/statfs.h>
6002 #include <sys/fstyp.h>
6004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6005 { (eval echo configure:6006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6007 if test -z "$ac_err"; then
6009 cat >> confdefs.h <<\EOF
6010 #define FSTYPE_USG_STATFS 1
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6020 if test $fstype = no; then
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 #include <sys/statfs.h>
6025 #include <sys/vmount.h>
6027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6028 { (eval echo configure:6029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6030 if test -z "$ac_err"; then
6032 cat >> confdefs.h <<\EOF
6033 #define FSTYPE_AIX_STATFS 1
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6043 if test $fstype = no; then
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6050 { (eval echo configure:6051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6052 if test -z "$ac_err"; then
6054 cat >> confdefs.h <<\EOF
6055 #define FSTYPE_MNTENT 1
6060 echo "configure: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6065 if test $fstype = no; then
6066 cat > conftest.$ac_ext <<EOF
6067 #line 6068 "configure"
6068 #include "confdefs.h"
6069 #include <sys/mount.h>
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 egrep "f_type;" >/dev/null 2>&1; then
6074 cat >> confdefs.h <<\EOF
6075 #define FSTYPE_STATFS 1
6082 if test $fstype = no; then
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6086 #include <sys/mount.h>
6087 #include <sys/fs_types.h>
6089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6090 { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6092 if test -z "$ac_err"; then
6094 cat >> confdefs.h <<\EOF
6095 #define FSTYPE_GETMNT 1
6100 echo "configure: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6105 echo "$ac_t""$fstype" 1>&6
6107 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6108 echo "configure:6109: checking return type of signal handlers" >&5
6109 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6112 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6115 #include <sys/types.h>
6121 extern "C" void (*signal (int, void (*)(int)))(int);
6123 void (*signal ()) ();
6130 if { (eval echo configure:6131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6132 ac_cv_type_signal=void
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6137 ac_cv_type_signal=int
6142 echo "$ac_t""$ac_cv_type_signal" 1>&6
6143 cat >> confdefs.h <<EOF
6144 #define RETSIGTYPE $ac_cv_type_signal
6149 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6150 echo "configure:6151: checking for type of signal functions" >&5
6151 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6152 echo $ac_n "(cached) $ac_c" 1>&6
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6162 struct sigaction sa;
6163 sigemptyset(&ss); sigsuspend(&ss);
6164 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6165 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6171 bash_cv_signal_vintage=posix
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6177 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6183 int mask = sigmask(SIGINT);
6184 sigsetmask(mask); sigblock(mask); sigpause(mask);
6188 if { (eval echo configure:6189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6190 bash_cv_signal_vintage=4.2bsd
6192 echo "configure: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6196 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6201 RETSIGTYPE foo() { }
6204 int mask = sigmask(SIGINT);
6205 sigset(SIGINT, foo); sigrelse(SIGINT);
6206 sighold(SIGINT); sigpause(SIGINT);
6210 if { (eval echo configure:6211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6212 bash_cv_signal_vintage=svr3
6214 echo "configure: failed program was:" >&5
6215 cat conftest.$ac_ext >&5
6217 bash_cv_signal_vintage=v7
6230 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6231 if test "$bash_cv_signal_vintage" = posix; then
6232 cat >> confdefs.h <<\EOF
6233 #define HAVE_POSIX_SIGNALS 1
6236 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6237 cat >> confdefs.h <<\EOF
6238 #define HAVE_BSD_SIGNALS 1
6241 elif test "$bash_cv_signal_vintage" = svr3; then
6242 cat >> confdefs.h <<\EOF
6243 #define HAVE_USG_SIGHOLD 1
6248 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6249 echo "configure:6250: checking for mode_t" >&5
6250 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 #include <sys/types.h>
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6265 ac_cv_type_mode_t=yes
6268 ac_cv_type_mode_t=no
6273 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6274 if test $ac_cv_type_mode_t = no; then
6275 cat >> confdefs.h <<\EOF
6281 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6282 echo "configure:6283: checking for uid_t in sys/types.h" >&5
6283 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6286 cat > conftest.$ac_ext <<EOF
6287 #line 6288 "configure"
6288 #include "confdefs.h"
6289 #include <sys/types.h>
6291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 egrep "uid_t" >/dev/null 2>&1; then
6294 ac_cv_type_uid_t=yes
6303 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6304 if test $ac_cv_type_uid_t = no; then
6305 cat >> confdefs.h <<\EOF
6309 cat >> confdefs.h <<\EOF
6315 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6316 echo "configure:6317: checking for size_t" >&5
6317 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6320 cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure"
6322 #include "confdefs.h"
6323 #include <sys/types.h>
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6332 ac_cv_type_size_t=yes
6335 ac_cv_type_size_t=no
6340 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6341 if test $ac_cv_type_size_t = no; then
6342 cat >> confdefs.h <<\EOF
6343 #define size_t unsigned
6348 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6349 echo "configure:6350: checking for pid_t" >&5
6350 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6353 cat > conftest.$ac_ext <<EOF
6354 #line 6355 "configure"
6355 #include "confdefs.h"
6356 #include <sys/types.h>
6362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6363 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6365 ac_cv_type_pid_t=yes
6373 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6374 if test $ac_cv_type_pid_t = no; then
6375 cat >> confdefs.h <<\EOF
6381 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6382 echo "configure:6383: checking for off_t" >&5
6383 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6386 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6389 #include <sys/types.h>
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6398 ac_cv_type_off_t=yes
6406 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6407 if test $ac_cv_type_off_t = no; then
6408 cat >> confdefs.h <<\EOF
6414 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6415 echo "configure:6416: checking for ino_t" >&5
6416 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 #include <sys/types.h>
6428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6431 ac_cv_type_ino_t=yes
6439 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6440 if test $ac_cv_type_ino_t = no; then
6441 cat >> confdefs.h <<\EOF
6442 #define ino_t unsigned long
6447 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6448 echo "configure:6449: checking for dev_t" >&5
6449 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6455 #include <sys/types.h>
6461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6464 ac_cv_type_dev_t=yes
6472 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6473 if test $ac_cv_type_dev_t = no; then
6474 cat >> confdefs.h <<\EOF
6475 #define dev_t unsigned long
6480 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6481 echo "configure:6482: checking for daddr_t" >&5
6482 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6488 #include <sys/types.h>
6494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6495 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6497 ac_cv_type_daddr_t=yes
6500 ac_cv_type_daddr_t=no
6505 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6506 if test $ac_cv_type_daddr_t = no; then
6507 cat >> confdefs.h <<\EOF
6508 #define daddr_t long
6513 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6514 echo "configure:6515: checking for major_t" >&5
6515 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 #include <sys/types.h>
6527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6528 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6530 ac_cv_type_major_t=yes
6533 ac_cv_type_major_t=no
6538 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6539 if test $ac_cv_type_major_t = no; then
6540 cat >> confdefs.h <<\EOF
6546 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6547 echo "configure:6548: checking for minor_t" >&5
6548 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 #include <sys/types.h>
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6563 ac_cv_type_minor_t=yes
6566 ac_cv_type_minor_t=no
6571 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6572 if test $ac_cv_type_minor_t = no; then
6573 cat >> confdefs.h <<\EOF
6579 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6580 echo "configure:6581: checking for ssize_t" >&5
6581 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 #include <sys/types.h>
6593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6594 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6596 ac_cv_type_ssize_t=yes
6599 ac_cv_type_ssize_t=no
6604 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6605 if test $ac_cv_type_ssize_t = no; then
6606 cat >> confdefs.h <<\EOF
6612 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6613 echo "configure:6614: checking for st_blocks in struct stat" >&5
6614 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6620 #include <sys/types.h>
6621 #include <sys/stat.h>
6623 struct stat s; s.st_blocks;
6626 if { (eval echo configure:6627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6628 ac_cv_struct_st_blocks=yes
6630 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6633 ac_cv_struct_st_blocks=no
6638 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6639 if test $ac_cv_struct_st_blocks = yes; then
6640 cat >> confdefs.h <<\EOF
6641 #define HAVE_ST_BLOCKS 1
6645 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6648 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6649 echo "configure:6650: checking for st_rdev in struct stat" >&5
6650 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6653 cat > conftest.$ac_ext <<EOF
6654 #line 6655 "configure"
6655 #include "confdefs.h"
6656 #include <sys/types.h>
6657 #include <sys/stat.h>
6659 struct stat s; s.st_rdev;
6662 if { (eval echo configure:6663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6664 ac_cv_struct_st_rdev=yes
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6669 ac_cv_struct_st_rdev=no
6674 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6675 if test $ac_cv_struct_st_rdev = yes; then
6676 cat >> confdefs.h <<\EOF
6677 #define HAVE_ST_RDEV 1
6682 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6683 echo "configure:6684: checking whether struct tm is in sys/time.h or time.h" >&5
6684 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6685 echo $ac_n "(cached) $ac_c" 1>&6
6687 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 #include <sys/types.h>
6693 struct tm *tp; tp->tm_sec;
6696 if { (eval echo configure:6697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6698 ac_cv_struct_tm=time.h
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6703 ac_cv_struct_tm=sys/time.h
6708 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6709 if test $ac_cv_struct_tm = sys/time.h; then
6710 cat >> confdefs.h <<\EOF
6711 #define TM_IN_SYS_TIME 1
6716 echo $ac_n "checking for working const""... $ac_c" 1>&6
6717 echo "configure:6718: checking for working const" >&5
6718 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6721 cat > conftest.$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6727 /* Ultrix mips cc rejects this. */
6728 typedef int charset[2]; const charset x;
6729 /* SunOS 4.1.1 cc rejects this. */
6730 char const *const *ccp;
6732 /* NEC SVR4.0.2 mips cc rejects this. */
6733 struct point {int x, y;};
6734 static struct point const zero = {0,0};
6735 /* AIX XL C 1.02.0.0 rejects this.
6736 It does not let you subtract one const X* pointer from another in an arm
6737 of an if-expression whose if-part is not a constant expression */
6738 const char *g = "string";
6739 ccp = &g + (g ? g-g : 0);
6740 /* HPUX 7.0 cc rejects these. */
6743 ccp = (char const *const *) p;
6744 { /* SCO 3.2v4 cc rejects this. */
6746 char const *s = 0 ? (char *) 0 : (char const *) 0;
6750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6752 const int *foo = &x[0];
6755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6756 typedef const int *iptr;
6760 { /* AIX XL C 1.02.0.0 rejects this saying
6761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6762 struct s { int j; const int *ap[3]; };
6763 struct s *b; b->j = 5;
6765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6771 if { (eval echo configure:6772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6783 echo "$ac_t""$ac_cv_c_const" 1>&6
6784 if test $ac_cv_c_const = no; then
6785 cat >> confdefs.h <<\EOF
6793 echo $ac_n "checking size of char""... $ac_c" 1>&6
6794 echo "configure:6795: checking size of char" >&5
6795 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 if test "$cross_compiling" = yes; then
6801 cat > conftest.$ac_ext <<EOF
6802 #line 6803 "configure"
6803 #include "confdefs.h"
6807 FILE *f=fopen("conftestval", "w");
6809 fprintf(f, "%d\n", sizeof(char));
6813 if { (eval echo configure:6814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6815 ac_cv_sizeof_char=`cat conftestval`
6817 echo "configure: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6826 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6827 cat >> confdefs.h <<EOF
6828 #define SIZEOF_CHAR $ac_cv_sizeof_char
6832 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6833 echo "configure:6834: checking size of short int" >&5
6834 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6837 if test "$cross_compiling" = yes; then
6838 ac_cv_sizeof_short_int=2
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6846 FILE *f=fopen("conftestval", "w");
6848 fprintf(f, "%d\n", sizeof(short int));
6852 if { (eval echo configure:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6854 ac_cv_sizeof_short_int=`cat conftestval`
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6859 ac_cv_sizeof_short_int=0
6865 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6866 cat >> confdefs.h <<EOF
6867 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6871 echo $ac_n "checking size of int""... $ac_c" 1>&6
6872 echo "configure:6873: checking size of int" >&5
6873 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 if test "$cross_compiling" = yes; then
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6885 FILE *f=fopen("conftestval", "w");
6887 fprintf(f, "%d\n", sizeof(int));
6891 if { (eval echo configure:6892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6893 ac_cv_sizeof_int=`cat conftestval`
6895 echo "configure: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6904 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6905 cat >> confdefs.h <<EOF
6906 #define SIZEOF_INT $ac_cv_sizeof_int
6910 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6911 echo "configure:6912: checking size of long int" >&5
6912 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6915 if test "$cross_compiling" = yes; then
6916 ac_cv_sizeof_long_int=4
6918 cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6924 FILE *f=fopen("conftestval", "w");
6926 fprintf(f, "%d\n", sizeof(long int));
6930 if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6932 ac_cv_sizeof_long_int=`cat conftestval`
6934 echo "configure: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6937 ac_cv_sizeof_long_int=0
6943 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
6944 cat >> confdefs.h <<EOF
6945 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
6949 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
6950 echo "configure:6951: checking size of long long int" >&5
6951 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6954 if test "$cross_compiling" = yes; then
6955 ac_cv_sizeof_long_long_int=8
6957 cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6963 FILE *f=fopen("conftestval", "w");
6965 fprintf(f, "%d\n", sizeof(long long int));
6969 if { (eval echo configure:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6971 ac_cv_sizeof_long_long_int=`cat conftestval`
6973 echo "configure: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6976 ac_cv_sizeof_long_long_int=0
6982 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
6983 cat >> confdefs.h <<EOF
6984 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
6988 echo $ac_n "checking size of int *""... $ac_c" 1>&6
6989 echo "configure:6990: checking size of int *" >&5
6990 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6993 if test "$cross_compiling" = yes; then
6994 ac_cv_sizeof_int_p=4
6996 cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
7002 FILE *f=fopen("conftestval", "w");
7004 fprintf(f, "%d\n", sizeof(int *));
7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7010 ac_cv_sizeof_int_p=`cat conftestval`
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7015 ac_cv_sizeof_int_p=0
7021 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7022 cat >> confdefs.h <<EOF
7023 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7028 # Check for sys/types.h types
7029 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7030 echo "configure:7031: checking for u_int type" >&5
7031 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7032 echo $ac_n "(cached) $ac_c" 1>&6
7035 cat > conftest.$ac_ext <<EOF
7036 #line 7037 "configure"
7037 #include "confdefs.h"
7038 #include <sys/types.h>
7043 if { (eval echo configure:7044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7045 ac_cv_have_u_int="yes"
7047 echo "configure: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7050 ac_cv_have_u_int="no"
7057 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7058 if test "x$ac_cv_have_u_int" = "xyes" ; then
7059 cat >> confdefs.h <<\EOF
7060 #define HAVE_U_INT 1
7066 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7067 echo "configure:7068: checking for intmax_t type" >&5
7068 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7072 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure"
7074 #include "confdefs.h"
7075 #include <sys/types.h>
7080 if { (eval echo configure:7081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7082 ac_cv_have_intmax_t="yes"
7084 echo "configure: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7088 cat > conftest.$ac_ext <<EOF
7089 #line 7090 "configure"
7090 #include "confdefs.h"
7096 if { (eval echo configure:7097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7098 ac_cv_have_intmax_t="yes"
7100 echo "configure: failed program was:" >&5
7101 cat conftest.$ac_ext >&5
7103 ac_cv_have_intmax_t="no"
7115 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7116 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7117 cat >> confdefs.h <<\EOF
7118 #define HAVE_INTMAX_T 1
7125 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7126 echo "configure:7127: checking for u_intmax_t type" >&5
7127 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 #include <sys/types.h>
7136 u_intmax_t a; a = 1;
7139 if { (eval echo configure:7140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7141 ac_cv_have_u_intmax_t="yes"
7143 echo "configure: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7152 u_intmax_t a; a = 1;
7155 if { (eval echo configure:7156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7157 ac_cv_have_u_intmax_t="yes"
7159 echo "configure: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7162 ac_cv_have_u_intmax_t="no"
7173 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7174 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7175 cat >> confdefs.h <<\EOF
7176 #define HAVE_U_INTMAX_T 1
7183 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7184 echo "configure:7185: checking for intXX_t types" >&5
7185 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7186 echo $ac_n "(cached) $ac_c" 1>&6
7189 cat > conftest.$ac_ext <<EOF
7190 #line 7191 "configure"
7191 #include "confdefs.h"
7192 #include <sys/types.h>
7194 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7197 if { (eval echo configure:7198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7199 ac_cv_have_intxx_t="yes"
7201 echo "configure: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7204 ac_cv_have_intxx_t="no"
7211 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7212 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7213 cat >> confdefs.h <<\EOF
7214 #define HAVE_INTXX_T 1
7220 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7221 echo "configure:7222: checking for int64_t type" >&5
7222 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7223 echo $ac_n "(cached) $ac_c" 1>&6
7226 cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7229 #include <sys/types.h>
7234 if { (eval echo configure:7235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7236 ac_cv_have_int64_t="yes"
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7241 ac_cv_have_int64_t="no"
7248 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7249 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7250 cat >> confdefs.h <<\EOF
7251 #define HAVE_INT64_T 1
7257 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7258 echo "configure:7259: checking for u_intXX_t types" >&5
7259 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7260 echo $ac_n "(cached) $ac_c" 1>&6
7263 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 #include <sys/types.h>
7268 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7271 if { (eval echo configure:7272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7273 ac_cv_have_u_intxx_t="yes"
7275 echo "configure: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7278 ac_cv_have_u_intxx_t="no"
7285 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7286 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7287 cat >> confdefs.h <<\EOF
7288 #define HAVE_U_INTXX_T 1
7294 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7295 echo "configure:7296: checking for u_int64_t types" >&5
7296 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7300 cat > conftest.$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7303 #include <sys/types.h>
7308 if { (eval echo configure:7309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7310 ac_cv_have_u_int64_t="yes"
7312 echo "configure: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7315 ac_cv_have_u_int64_t="no"
7322 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7323 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7324 cat >> confdefs.h <<\EOF
7325 #define HAVE_U_INT64_T 1
7331 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7332 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7334 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7335 echo "configure:7336: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7336 cat > conftest.$ac_ext <<EOF
7337 #line 7338 "configure"
7338 #include "confdefs.h"
7339 #include <sys/bitypes.h>
7341 int8_t a; int16_t b; int32_t c;
7342 u_int8_t e; u_int16_t f; u_int32_t g;
7343 a = b = c = e = f = g = 1;
7346 if { (eval echo configure:7347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7348 cat >> confdefs.h <<\EOF
7349 #define HAVE_U_INTXX_T 1
7352 cat >> confdefs.h <<\EOF
7353 #define HAVE_INTXX_T 1
7356 cat >> confdefs.h <<\EOF
7357 #define HAVE_SYS_BITYPES_H 1
7360 echo "$ac_t""yes" 1>&6
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7365 echo "$ac_t""no" 1>&6
7371 if test -z "$have_u_intxx_t" ; then
7372 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7373 echo "configure:7374: checking for uintXX_t types" >&5
7374 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7375 echo $ac_n "(cached) $ac_c" 1>&6
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7381 #include <sys/types.h>
7383 uint8_t a; uint16_t b;
7384 uint32_t c; a = b = c = 1;
7387 if { (eval echo configure:7388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7389 ac_cv_have_uintxx_t="yes"
7391 echo "configure: failed program was:" >&5
7392 cat conftest.$ac_ext >&5
7394 ac_cv_have_uintxx_t="no"
7401 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7402 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7403 cat >> confdefs.h <<\EOF
7404 #define HAVE_UINTXX_T 1
7427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7428 echo "configure:7429: checking for $ac_func" >&5
7429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7432 cat > conftest.$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7435 /* System header to define __stub macros and hopefully few prototypes,
7436 which can conflict with char $ac_func(); below. */
7438 /* Override any gcc2 internal prototype to avoid an error. */
7439 /* We use char because int might match the return type of a gcc2
7440 builtin and then its argument prototype would still apply. */
7445 /* The GNU C library defines this for functions which it implements
7446 to always fail with ENOSYS. Some functions are actually named
7447 something starting with __ and the normal name is an alias. */
7448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7456 if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7458 eval "ac_cv_func_$ac_func=yes"
7460 echo "configure: failed program was:" >&5
7461 cat conftest.$ac_ext >&5
7463 eval "ac_cv_func_$ac_func=no"
7468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7469 echo "$ac_t""yes" 1>&6
7470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7471 cat >> confdefs.h <<EOF
7472 #define $ac_tr_func 1
7476 echo "$ac_t""no" 1>&6
7477 echo 'configure: cannot find needed function.'; exit 1
7483 for ac_func in fchdir
7485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7486 echo "configure:7487: checking for $ac_func" >&5
7487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7488 echo $ac_n "(cached) $ac_c" 1>&6
7490 cat > conftest.$ac_ext <<EOF
7491 #line 7492 "configure"
7492 #include "confdefs.h"
7493 /* System header to define __stub macros and hopefully few prototypes,
7494 which can conflict with char $ac_func(); below. */
7496 /* Override any gcc2 internal prototype to avoid an error. */
7497 /* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */
7503 /* The GNU C library defines this for functions which it implements
7504 to always fail with ENOSYS. Some functions are actually named
7505 something starting with __ and the normal name is an alias. */
7506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7514 if { (eval echo configure:7515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7516 eval "ac_cv_func_$ac_func=yes"
7518 echo "configure: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7521 eval "ac_cv_func_$ac_func=no"
7526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7527 echo "$ac_t""yes" 1>&6
7528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7529 cat >> confdefs.h <<EOF
7530 #define $ac_tr_func 1
7532 cat >> confdefs.h <<\EOF
7533 #define HAVE_FCHDIR 1
7537 echo "$ac_t""no" 1>&6
7542 for ac_func in snprintf vsnprintf gethostid getdomainname
7544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7545 echo "configure:7546: checking for $ac_func" >&5
7546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7547 echo $ac_n "(cached) $ac_c" 1>&6
7549 cat > conftest.$ac_ext <<EOF
7550 #line 7551 "configure"
7551 #include "confdefs.h"
7552 /* System header to define __stub macros and hopefully few prototypes,
7553 which can conflict with char $ac_func(); below. */
7555 /* Override any gcc2 internal prototype to avoid an error. */
7556 /* We use char because int might match the return type of a gcc2
7557 builtin and then its argument prototype would still apply. */
7562 /* The GNU C library defines this for functions which it implements
7563 to always fail with ENOSYS. Some functions are actually named
7564 something starting with __ and the normal name is an alias. */
7565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7573 if { (eval echo configure:7574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7575 eval "ac_cv_func_$ac_func=yes"
7577 echo "configure: failed program was:" >&5
7578 cat conftest.$ac_ext >&5
7580 eval "ac_cv_func_$ac_func=no"
7585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7586 echo "$ac_t""yes" 1>&6
7587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7588 cat >> confdefs.h <<EOF
7589 #define $ac_tr_func 1
7593 echo "$ac_t""no" 1>&6
7598 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7601 echo "configure:7602: checking for $ac_func" >&5
7602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608 /* System header to define __stub macros and hopefully few prototypes,
7609 which can conflict with char $ac_func(); below. */
7611 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7618 /* The GNU C library defines this for functions which it implements
7619 to always fail with ENOSYS. Some functions are actually named
7620 something starting with __ and the normal name is an alias. */
7621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7629 if { (eval echo configure:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7631 eval "ac_cv_func_$ac_func=yes"
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7636 eval "ac_cv_func_$ac_func=no"
7641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7642 echo "$ac_t""yes" 1>&6
7643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7644 cat >> confdefs.h <<EOF
7645 #define $ac_tr_func 1
7649 echo "$ac_t""no" 1>&6
7654 # If resolver functions are not in libc check for -lnsl or -lresolv.
7655 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7656 echo "configure:7657: checking for gethostbyname_r" >&5
7657 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7660 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 /* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char gethostbyname_r(); below. */
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7669 char gethostbyname_r();
7673 /* The GNU C library defines this for functions which it implements
7674 to always fail with ENOSYS. Some functions are actually named
7675 something starting with __ and the normal name is an alias. */
7676 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7684 if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7686 eval "ac_cv_func_gethostbyname_r=yes"
7688 echo "configure: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7691 eval "ac_cv_func_gethostbyname_r=no"
7696 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7697 echo "$ac_t""yes" 1>&6
7698 echo "$ac_t""using libc's resolver" 1>&6
7700 echo "$ac_t""no" 1>&6
7701 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7702 echo "configure:7703: checking for gethostbyname_r in -lnsl" >&5
7703 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7707 ac_save_LIBS="$LIBS"
7709 cat > conftest.$ac_ext <<EOF
7710 #line 7711 "configure"
7711 #include "confdefs.h"
7712 /* Override any gcc2 internal prototype to avoid an error. */
7713 /* We use char because int might match the return type of a gcc2
7714 builtin and then its argument prototype would still apply. */
7715 char gethostbyname_r();
7721 if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7723 eval "ac_cv_lib_$ac_lib_var=yes"
7725 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7728 eval "ac_cv_lib_$ac_lib_var=no"
7731 LIBS="$ac_save_LIBS"
7734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7735 echo "$ac_t""yes" 1>&6
7736 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7738 cat >> confdefs.h <<EOF
7739 #define $ac_tr_lib 1
7745 echo "$ac_t""no" 1>&6
7748 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7749 echo "configure:7750: checking for gethostbyname_r in -lresolv" >&5
7750 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7752 echo $ac_n "(cached) $ac_c" 1>&6
7754 ac_save_LIBS="$LIBS"
7755 LIBS="-lresolv $LIBS"
7756 cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure"
7758 #include "confdefs.h"
7759 /* Override any gcc2 internal prototype to avoid an error. */
7760 /* We use char because int might match the return type of a gcc2
7761 builtin and then its argument prototype would still apply. */
7762 char gethostbyname_r();
7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7770 eval "ac_cv_lib_$ac_lib_var=yes"
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7775 eval "ac_cv_lib_$ac_lib_var=no"
7778 LIBS="$ac_save_LIBS"
7781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7782 echo "$ac_t""yes" 1>&6
7783 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7784 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7785 cat >> confdefs.h <<EOF
7786 #define $ac_tr_lib 1
7789 LIBS="-lresolv $LIBS"
7792 echo "$ac_t""no" 1>&6
7799 # Find where sockets are (especially for Solaris)
7800 echo $ac_n "checking for socket""... $ac_c" 1>&6
7801 echo "configure:7802: checking for socket" >&5
7802 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7808 /* System header to define __stub macros and hopefully few prototypes,
7809 which can conflict with char socket(); below. */
7811 /* Override any gcc2 internal prototype to avoid an error. */
7812 /* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7818 /* The GNU C library defines this for functions which it implements
7819 to always fail with ENOSYS. Some functions are actually named
7820 something starting with __ and the normal name is an alias. */
7821 #if defined (__stub_socket) || defined (__stub___socket)
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7831 eval "ac_cv_func_socket=yes"
7833 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5
7836 eval "ac_cv_func_socket=no"
7841 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7842 echo "$ac_t""yes" 1>&6
7843 echo "$ac_t""using libc's socket" 1>&6
7845 echo "$ac_t""no" 1>&6
7846 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7847 echo "configure:7848: checking for socket in -lxnet" >&5
7848 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7852 ac_save_LIBS="$LIBS"
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 /* We use char because int might match the return type of a gcc2
7859 builtin and then its argument prototype would still apply. */
7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7868 eval "ac_cv_lib_$ac_lib_var=yes"
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 eval "ac_cv_lib_$ac_lib_var=no"
7876 LIBS="$ac_save_LIBS"
7879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7880 echo "$ac_t""yes" 1>&6
7881 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7883 cat >> confdefs.h <<EOF
7884 #define $ac_tr_lib 1
7890 echo "$ac_t""no" 1>&6
7893 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7894 echo "configure:7895: checking for socket in -lsocket" >&5
7895 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7899 ac_save_LIBS="$LIBS"
7900 LIBS="-lsocket $LIBS"
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7904 /* Override any gcc2 internal prototype to avoid an error. */
7905 /* We use char because int might match the return type of a gcc2
7906 builtin and then its argument prototype would still apply. */
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7915 eval "ac_cv_lib_$ac_lib_var=yes"
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7920 eval "ac_cv_lib_$ac_lib_var=no"
7923 LIBS="$ac_save_LIBS"
7926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7927 echo "$ac_t""yes" 1>&6
7928 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
7929 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7930 cat >> confdefs.h <<EOF
7931 #define $ac_tr_lib 1
7934 LIBS="-lsocket $LIBS"
7937 echo "$ac_t""no" 1>&6
7940 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
7941 echo "configure:7942: checking for socket in -linet" >&5
7942 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
7943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 ac_save_LIBS="$LIBS"
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7962 eval "ac_cv_lib_$ac_lib_var=yes"
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7967 eval "ac_cv_lib_$ac_lib_var=no"
7970 LIBS="$ac_save_LIBS"
7973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
7976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7977 cat >> confdefs.h <<EOF
7978 #define $ac_tr_lib 1
7984 echo "$ac_t""no" 1>&6
7990 for ac_func in inet_pton
7992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7993 echo "configure:7994: checking for $ac_func" >&5
7994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7995 echo $ac_n "(cached) $ac_c" 1>&6
7997 cat > conftest.$ac_ext <<EOF
7998 #line 7999 "configure"
7999 #include "confdefs.h"
8000 /* System header to define __stub macros and hopefully few prototypes,
8001 which can conflict with char $ac_func(); below. */
8003 /* Override any gcc2 internal prototype to avoid an error. */
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8010 /* The GNU C library defines this for functions which it implements
8011 to always fail with ENOSYS. Some functions are actually named
8012 something starting with __ and the normal name is an alias. */
8013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8021 if { (eval echo configure:8022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8023 eval "ac_cv_func_$ac_func=yes"
8025 echo "configure: failed program was:" >&5
8026 cat conftest.$ac_ext >&5
8028 eval "ac_cv_func_$ac_func=no"
8033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8034 echo "$ac_t""yes" 1>&6
8035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8036 cat >> confdefs.h <<EOF
8037 #define $ac_tr_func 1
8039 cat >> confdefs.h <<\EOF
8040 #define HAVE_INET_PTON 1
8044 echo "$ac_t""no" 1>&6
8049 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8050 echo "configure:8051: checking for strftime" >&5
8051 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* System header to define __stub macros and hopefully few prototypes,
8058 which can conflict with char strftime(); below. */
8060 /* Override any gcc2 internal prototype to avoid an error. */
8061 /* We use char because int might match the return type of a gcc2
8062 builtin and then its argument prototype would still apply. */
8067 /* The GNU C library defines this for functions which it implements
8068 to always fail with ENOSYS. Some functions are actually named
8069 something starting with __ and the normal name is an alias. */
8070 #if defined (__stub_strftime) || defined (__stub___strftime)
8078 if { (eval echo configure:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8080 eval "ac_cv_func_strftime=yes"
8082 echo "configure: failed program was:" >&5
8083 cat conftest.$ac_ext >&5
8085 eval "ac_cv_func_strftime=no"
8090 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 cat >> confdefs.h <<\EOF
8093 #define HAVE_STRFTIME 1
8097 echo "$ac_t""no" 1>&6
8098 # strftime is in -lintl on SCO UNIX.
8099 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8100 echo "configure:8101: checking for strftime in -lintl" >&5
8101 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8105 ac_save_LIBS="$LIBS"
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8119 if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8121 eval "ac_cv_lib_$ac_lib_var=yes"
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8126 eval "ac_cv_lib_$ac_lib_var=no"
8129 LIBS="$ac_save_LIBS"
8132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8133 echo "$ac_t""yes" 1>&6
8134 cat >> confdefs.h <<\EOF
8135 #define HAVE_STRFTIME 1
8140 echo "$ac_t""no" 1>&6
8145 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8146 echo "configure:8147: checking for vprintf" >&5
8147 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8148 echo $ac_n "(cached) $ac_c" 1>&6
8150 cat > conftest.$ac_ext <<EOF
8151 #line 8152 "configure"
8152 #include "confdefs.h"
8153 /* System header to define __stub macros and hopefully few prototypes,
8154 which can conflict with char vprintf(); below. */
8156 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8163 /* The GNU C library defines this for functions which it implements
8164 to always fail with ENOSYS. Some functions are actually named
8165 something starting with __ and the normal name is an alias. */
8166 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8174 if { (eval echo configure:8175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8176 eval "ac_cv_func_vprintf=yes"
8178 echo "configure: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8181 eval "ac_cv_func_vprintf=no"
8186 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8187 echo "$ac_t""yes" 1>&6
8188 cat >> confdefs.h <<\EOF
8189 #define HAVE_VPRINTF 1
8193 echo "$ac_t""no" 1>&6
8196 if test "$ac_cv_func_vprintf" != yes; then
8197 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8198 echo "configure:8199: checking for _doprnt" >&5
8199 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 /* System header to define __stub macros and hopefully few prototypes,
8206 which can conflict with char _doprnt(); below. */
8208 /* Override any gcc2 internal prototype to avoid an error. */
8209 /* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8215 /* The GNU C library defines this for functions which it implements
8216 to always fail with ENOSYS. Some functions are actually named
8217 something starting with __ and the normal name is an alias. */
8218 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8226 if { (eval echo configure:8227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8228 eval "ac_cv_func__doprnt=yes"
8230 echo "configure: failed program was:" >&5
8231 cat conftest.$ac_ext >&5
8233 eval "ac_cv_func__doprnt=no"
8238 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8239 echo "$ac_t""yes" 1>&6
8240 cat >> confdefs.h <<\EOF
8241 #define HAVE_DOPRNT 1
8245 echo "$ac_t""no" 1>&6
8250 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8251 # for constant arguments. Useless!
8252 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8253 echo "configure:8254: checking for working alloca.h" >&5
8254 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8255 echo $ac_n "(cached) $ac_c" 1>&6
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8262 char *p = alloca(2 * sizeof(int));
8265 if { (eval echo configure:8266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8267 ac_cv_header_alloca_h=yes
8269 echo "configure: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8272 ac_cv_header_alloca_h=no
8277 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8278 if test $ac_cv_header_alloca_h = yes; then
8279 cat >> confdefs.h <<\EOF
8280 #define HAVE_ALLOCA_H 1
8285 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8286 echo "configure:8287: checking for alloca" >&5
8287 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8288 echo $ac_n "(cached) $ac_c" 1>&6
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8295 # define alloca __builtin_alloca
8298 # include <malloc.h>
8299 # define alloca _alloca
8302 # include <alloca.h>
8307 # ifndef alloca /* predefined by HP cc +Olibcalls */
8316 char *p = (char *) alloca(1);
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8321 ac_cv_func_alloca_works=yes
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8326 ac_cv_func_alloca_works=no
8331 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8332 if test $ac_cv_func_alloca_works = yes; then
8333 cat >> confdefs.h <<\EOF
8334 #define HAVE_ALLOCA 1
8339 if test $ac_cv_func_alloca_works = no; then
8340 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8341 # that cause trouble. Some versions do not even contain alloca or
8342 # contain a buggy version. If you still want to use their alloca,
8343 # use ar to extract alloca.o from them instead of compiling alloca.c.
8344 ALLOCA=alloca.${ac_objext}
8345 cat >> confdefs.h <<\EOF
8350 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8351 echo "configure:8352: checking whether alloca needs Cray hooks" >&5
8352 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8355 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8358 #if defined(CRAY) && ! defined(CRAY2)
8365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8366 egrep "webecray" >/dev/null 2>&1; then
8377 echo "$ac_t""$ac_cv_os_cray" 1>&6
8378 if test $ac_cv_os_cray = yes; then
8379 for ac_func in _getb67 GETB67 getb67; do
8380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8381 echo "configure:8382: checking for $ac_func" >&5
8382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
8389 which can conflict with char $ac_func(); below. */
8391 /* Override any gcc2 internal prototype to avoid an error. */
8392 /* We use char because int might match the return type of a gcc2
8393 builtin and then its argument prototype would still apply. */
8398 /* The GNU C library defines this for functions which it implements
8399 to always fail with ENOSYS. Some functions are actually named
8400 something starting with __ and the normal name is an alias. */
8401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8409 if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8411 eval "ac_cv_func_$ac_func=yes"
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8416 eval "ac_cv_func_$ac_func=no"
8421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8422 echo "$ac_t""yes" 1>&6
8423 cat >> confdefs.h <<EOF
8424 #define CRAY_STACKSEG_END $ac_func
8429 echo "$ac_t""no" 1>&6
8435 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8436 echo "configure:8437: checking stack direction for C alloca" >&5
8437 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8440 if test "$cross_compiling" = yes; then
8441 ac_cv_c_stack_direction=0
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 find_stack_direction ()
8448 static char *addr = 0;
8453 return find_stack_direction ();
8456 return (&dummy > addr) ? 1 : -1;
8460 exit (find_stack_direction() < 0);
8463 if { (eval echo configure:8464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8465 ac_cv_c_stack_direction=1
8467 echo "configure: failed program was:" >&5
8468 cat conftest.$ac_ext >&5
8470 ac_cv_c_stack_direction=-1
8477 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8478 cat >> confdefs.h <<EOF
8479 #define STACK_DIRECTION $ac_cv_c_stack_direction
8484 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8485 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8486 echo "configure:8487: checking for getmntent in -lsun" >&5
8487 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8489 echo $ac_n "(cached) $ac_c" 1>&6
8491 ac_save_LIBS="$LIBS"
8493 cat > conftest.$ac_ext <<EOF
8494 #line 8495 "configure"
8495 #include "confdefs.h"
8496 /* Override any gcc2 internal prototype to avoid an error. */
8497 /* We use char because int might match the return type of a gcc2
8498 builtin and then its argument prototype would still apply. */
8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8507 eval "ac_cv_lib_$ac_lib_var=yes"
8509 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8512 eval "ac_cv_lib_$ac_lib_var=no"
8515 LIBS="$ac_save_LIBS"
8518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8522 echo "$ac_t""no" 1>&6
8523 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8524 echo "configure:8525: checking for getmntent in -lseq" >&5
8525 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8527 echo $ac_n "(cached) $ac_c" 1>&6
8529 ac_save_LIBS="$LIBS"
8531 cat > conftest.$ac_ext <<EOF
8532 #line 8533 "configure"
8533 #include "confdefs.h"
8534 /* Override any gcc2 internal prototype to avoid an error. */
8535 /* We use char because int might match the return type of a gcc2
8536 builtin and then its argument prototype would still apply. */
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8545 eval "ac_cv_lib_$ac_lib_var=yes"
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8550 eval "ac_cv_lib_$ac_lib_var=no"
8553 LIBS="$ac_save_LIBS"
8556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8557 echo "$ac_t""yes" 1>&6
8560 echo "$ac_t""no" 1>&6
8561 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8562 echo "configure:8563: checking for getmntent in -lgen" >&5
8563 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8565 echo $ac_n "(cached) $ac_c" 1>&6
8567 ac_save_LIBS="$LIBS"
8569 cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8572 /* Override any gcc2 internal prototype to avoid an error. */
8573 /* We use char because int might match the return type of a gcc2
8574 builtin and then its argument prototype would still apply. */
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8583 eval "ac_cv_lib_$ac_lib_var=yes"
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 eval "ac_cv_lib_$ac_lib_var=no"
8591 LIBS="$ac_save_LIBS"
8594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8595 echo "$ac_t""yes" 1>&6
8598 echo "$ac_t""no" 1>&6
8605 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8606 echo "configure:8607: checking for getmntent" >&5
8607 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8610 cat > conftest.$ac_ext <<EOF
8611 #line 8612 "configure"
8612 #include "confdefs.h"
8613 /* System header to define __stub macros and hopefully few prototypes,
8614 which can conflict with char getmntent(); below. */
8616 /* Override any gcc2 internal prototype to avoid an error. */
8617 /* We use char because int might match the return type of a gcc2
8618 builtin and then its argument prototype would still apply. */
8623 /* The GNU C library defines this for functions which it implements
8624 to always fail with ENOSYS. Some functions are actually named
8625 something starting with __ and the normal name is an alias. */
8626 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8634 if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8636 eval "ac_cv_func_getmntent=yes"
8638 echo "configure: failed program was:" >&5
8639 cat conftest.$ac_ext >&5
8641 eval "ac_cv_func_getmntent=no"
8646 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8647 echo "$ac_t""yes" 1>&6
8648 cat >> confdefs.h <<\EOF
8649 #define HAVE_GETMNTENT 1
8653 echo "$ac_t""no" 1>&6
8656 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8657 echo "configure:8658: checking whether closedir returns void" >&5
8658 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8659 echo $ac_n "(cached) $ac_c" 1>&6
8661 if test "$cross_compiling" = yes; then
8662 ac_cv_func_closedir_void=yes
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8667 #include <sys/types.h>
8668 #include <$ac_header_dirent>
8669 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8671 if { (eval echo configure:8672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8673 ac_cv_func_closedir_void=no
8675 echo "configure: failed program was:" >&5
8676 cat conftest.$ac_ext >&5
8678 ac_cv_func_closedir_void=yes
8685 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8686 if test $ac_cv_func_closedir_void = yes; then
8687 cat >> confdefs.h <<\EOF
8688 #define CLOSEDIR_VOID 1
8693 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8694 echo "configure:8695: checking whether setpgrp takes no argument" >&5
8695 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8696 echo $ac_n "(cached) $ac_c" 1>&6
8698 if test "$cross_compiling" = yes; then
8699 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8705 #ifdef HAVE_UNISTD_H
8710 * If this system has a BSD-style setpgrp, which takes arguments, exit
8715 if (setpgrp(1,1) == -1)
8722 if { (eval echo configure:8723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8724 ac_cv_func_setpgrp_void=no
8726 echo "configure: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8729 ac_cv_func_setpgrp_void=yes
8737 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8738 if test $ac_cv_func_setpgrp_void = yes; then
8739 cat >> confdefs.h <<\EOF
8740 #define SETPGRP_VOID 1
8744 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8745 echo "configure:8746: checking for working fnmatch" >&5
8746 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8747 echo $ac_n "(cached) $ac_c" 1>&6
8749 # Some versions of Solaris or SCO have a broken fnmatch function.
8750 # So we run a test program. If we are cross-compiling, take no chance.
8751 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8752 if test "$cross_compiling" = yes; then
8753 ac_cv_func_fnmatch_works=no
8755 cat > conftest.$ac_ext <<EOF
8756 #line 8757 "configure"
8757 #include "confdefs.h"
8758 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8760 if { (eval echo configure:8761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8762 ac_cv_func_fnmatch_works=yes
8764 echo "configure: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8767 ac_cv_func_fnmatch_works=no
8774 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8775 if test $ac_cv_func_fnmatch_works = yes; then
8776 cat >> confdefs.h <<\EOF
8777 #define HAVE_FNMATCH 1
8784 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8785 echo "configure:8786: checking for setlocale in -lxpg4" >&5
8786 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
8790 ac_save_LIBS="$LIBS"
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8795 /* Override any gcc2 internal prototype to avoid an error. */
8796 /* We use char because int might match the return type of a gcc2
8797 builtin and then its argument prototype would still apply. */
8804 if { (eval echo configure:8805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8806 eval "ac_cv_lib_$ac_lib_var=yes"
8808 echo "configure: failed program was:" >&5
8809 cat conftest.$ac_ext >&5
8811 eval "ac_cv_lib_$ac_lib_var=no"
8814 LIBS="$ac_save_LIBS"
8817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8818 echo "$ac_t""yes" 1>&6
8821 echo "$ac_t""no" 1>&6
8826 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8827 echo "configure:8828: checking for getpwnam in -lsun" >&5
8828 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8830 echo $ac_n "(cached) $ac_c" 1>&6
8832 ac_save_LIBS="$LIBS"
8834 cat > conftest.$ac_ext <<EOF
8835 #line 8836 "configure"
8836 #include "confdefs.h"
8837 /* Override any gcc2 internal prototype to avoid an error. */
8838 /* We use char because int might match the return type of a gcc2
8839 builtin and then its argument prototype would still apply. */
8846 if { (eval echo configure:8847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8848 eval "ac_cv_lib_$ac_lib_var=yes"
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8853 eval "ac_cv_lib_$ac_lib_var=no"
8856 LIBS="$ac_save_LIBS"
8859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8860 echo "$ac_t""yes" 1>&6
8861 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8862 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8863 cat >> confdefs.h <<EOF
8864 #define $ac_tr_lib 1
8870 echo "$ac_t""no" 1>&6
8874 for ac_hdr in zlib.h
8876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8878 echo "configure:8879: checking for $ac_hdr" >&5
8879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8880 echo $ac_n "(cached) $ac_c" 1>&6
8882 cat > conftest.$ac_ext <<EOF
8883 #line 8884 "configure"
8884 #include "confdefs.h"
8887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8888 { (eval echo configure:8889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8890 if test -z "$ac_err"; then
8892 eval "ac_cv_header_$ac_safe=yes"
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8898 eval "ac_cv_header_$ac_safe=no"
8902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8903 echo "$ac_t""yes" 1>&6
8904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8905 cat >> confdefs.h <<EOF
8906 #define $ac_tr_hdr 1
8910 echo "$ac_t""no" 1>&6
8914 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8915 echo "configure:8916: checking for deflate in -lz" >&5
8916 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
8917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8920 ac_save_LIBS="$LIBS"
8922 cat > conftest.$ac_ext <<EOF
8923 #line 8924 "configure"
8924 #include "confdefs.h"
8925 /* Override any gcc2 internal prototype to avoid an error. */
8926 /* We use char because int might match the return type of a gcc2
8927 builtin and then its argument prototype would still apply. */
8934 if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8936 eval "ac_cv_lib_$ac_lib_var=yes"
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8941 eval "ac_cv_lib_$ac_lib_var=no"
8944 LIBS="$ac_save_LIBS"
8947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8948 echo "$ac_t""yes" 1>&6
8951 echo "$ac_t""no" 1>&6
8955 if test x$FDLIBS = x-lz; then
8956 cat >> confdefs.h <<\EOF
8964 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
8965 echo "configure:8966: checking for pthread_create in -lpthread" >&5
8966 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8968 echo $ac_n "(cached) $ac_c" 1>&6
8970 ac_save_LIBS="$LIBS"
8971 LIBS="-lpthread $LIBS"
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 /* Override any gcc2 internal prototype to avoid an error. */
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8978 char pthread_create();
8984 if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8986 eval "ac_cv_lib_$ac_lib_var=yes"
8988 echo "configure: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8991 eval "ac_cv_lib_$ac_lib_var=no"
8994 LIBS="$ac_save_LIBS"
8997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8998 echo "$ac_t""yes" 1>&6
8999 PTHREAD_LIB="-lpthread"
9001 echo "$ac_t""no" 1>&6
9002 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9003 echo "configure:9004: checking for pthread_create in -lpthreads" >&5
9004 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9006 echo $ac_n "(cached) $ac_c" 1>&6
9008 ac_save_LIBS="$LIBS"
9009 LIBS="-lpthreads $LIBS"
9010 cat > conftest.$ac_ext <<EOF
9011 #line 9012 "configure"
9012 #include "confdefs.h"
9013 /* Override any gcc2 internal prototype to avoid an error. */
9014 /* We use char because int might match the return type of a gcc2
9015 builtin and then its argument prototype would still apply. */
9016 char pthread_create();
9022 if { (eval echo configure:9023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9024 eval "ac_cv_lib_$ac_lib_var=yes"
9026 echo "configure: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9029 eval "ac_cv_lib_$ac_lib_var=no"
9032 LIBS="$ac_save_LIBS"
9035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9036 echo "$ac_t""yes" 1>&6
9037 PTHREAD_LIB="-lpthreads"
9039 echo "$ac_t""no" 1>&6
9040 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9041 echo "configure:9042: checking for pthread_create in -lc_r" >&5
9042 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9046 ac_save_LIBS="$LIBS"
9048 cat > conftest.$ac_ext <<EOF
9049 #line 9050 "configure"
9050 #include "confdefs.h"
9051 /* Override any gcc2 internal prototype to avoid an error. */
9052 /* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */
9054 char pthread_create();
9060 if { (eval echo configure:9061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9062 eval "ac_cv_lib_$ac_lib_var=yes"
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9067 eval "ac_cv_lib_$ac_lib_var=no"
9070 LIBS="$ac_save_LIBS"
9073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9074 echo "$ac_t""yes" 1>&6
9077 echo "$ac_t""no" 1>&6
9078 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9079 echo "configure:9080: checking for pthread_create" >&5
9080 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9081 echo $ac_n "(cached) $ac_c" 1>&6
9083 cat > conftest.$ac_ext <<EOF
9084 #line 9085 "configure"
9085 #include "confdefs.h"
9086 /* System header to define __stub macros and hopefully few prototypes,
9087 which can conflict with char pthread_create(); below. */
9089 /* Override any gcc2 internal prototype to avoid an error. */
9090 /* We use char because int might match the return type of a gcc2
9091 builtin and then its argument prototype would still apply. */
9092 char pthread_create();
9096 /* The GNU C library defines this for functions which it implements
9097 to always fail with ENOSYS. Some functions are actually named
9098 something starting with __ and the normal name is an alias. */
9099 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9107 if { (eval echo configure:9108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9109 eval "ac_cv_func_pthread_create=yes"
9111 echo "configure: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9114 eval "ac_cv_func_pthread_create=no"
9119 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9120 echo "$ac_t""yes" 1>&6
9123 echo "$ac_t""no" 1>&6
9137 cat >> confdefs.h <<\EOF
9144 LDFLAGS=${LDFLAGS--O}
9145 DB_LIBS="${SQL_LFLAGS}"
9147 CPPFLAGS="$CPPFLAGS"
9167 # Finally we set appropriate distribution specific
9168 # variables and defaults
9170 # PFILES are platform specific files
9171 PFILES="platforms/Makefile"
9178 PTHREAD_LIB="-lpthread -lexc"
9179 if test "${CC}" = "gcc" ; then
9186 TAPEDRIVE="/dev/nrmt0"
9189 DISTVER=`uname -a |awk '{print $3}'`
9190 TAPEDRIVE="/dev/nrst0"
9193 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
9194 TAPEDRIVE="/dev/nrst0"
9195 PSCMD="ps -e -o pid,command"
9196 hostname=`hostname -s`
9199 DISTVER=`uname -a |awk '{print $3}'`
9200 TAPEDRIVE="/dev/nrst0"
9202 CFLAGS="${CFLAGS} -mwindows"
9203 LDFLAGS="${LDFLAGS} -mwindows"
9206 DISTVER=`cat /etc/debian_version`
9207 TAPEDRIVE="/dev/nrst0"
9208 PSCMD="ps -e -o pid,command"
9209 hostname=`hostname -s`
9212 DISTVER=`uname -a |awk '{print $3}'`
9213 PTHREAD_LIB="-pthread"
9214 CFLAGS="${CFLAGS} -pthread"
9217 TAPEDRIVE="/dev/nrst0"
9218 PSCMD="ps -x -o pid,command"
9220 platforms/freebsd/Makefile \
9221 platforms/freebsd/bacula-fd \
9222 platforms/freebsd/bacula-sd \
9223 platforms/freebsd/bacula-dir"
9224 hostname=`hostname -s`
9225 largefile_support="yes"
9229 TAPEDRIVE="/dev/rmt/0hnb"
9233 TAPEDRIVE="/dev/rmt/0cbn"
9234 PSCMD="ps -e -o pid,comm"
9235 hostname=`/usr/bsd/hostname -s`
9237 platforms/irix/Makefile \
9238 platforms/irix/bacula-fd \
9239 platforms/irix/bacula-sd \
9240 platforms/irix/bacula-dir"
9243 DISTVER=`uname -a |awk '{print $3}'`
9246 TAPEDRIVE="/dev/nrst0"
9247 PSCMD="ps -a -o pid,command"
9248 PTHREAD_LIB="-pthread"
9249 CFLAGS="${CFLAGS} -pthread"
9252 DISTVER=`uname -a |awk '{print $3}'`
9255 TAPEDRIVE="/dev/nrst0"
9256 PSCMD="ps -a -o pid,command"
9257 PTHREAD_LIB="-pthread"
9258 CFLAGS="${CFLAGS} -pthread"
9260 platforms/openbsd/Makefile \
9261 platforms/openbsd/bacula-fd \
9262 platforms/openbsd/bacula-sd \
9263 platforms/openbsd/bacula-dir"
9266 DISTVER=`cat /etc/redhat-release | grep release |\
9268 TAPEDRIVE="/dev/nst0"
9269 PSCMD="ps -e -o pid,command"
9271 platforms/redhat/Makefile \
9272 platforms/redhat/bacula-fd \
9273 platforms/redhat/bacula-sd \
9274 platforms/redhat/bacula-dir"
9275 hostname=`hostname -s`
9278 DISTVER=`cat /etc/slackware-version`
9279 TAPEDRIVE="/dev/nst0"
9280 PSCMD="ps -e -o pid,command"
9281 hostname=`hostname -s`
9285 TAPEDRIVE="/dev/rmt/0cbn"
9286 PSCMD="ps -e -o pid,comm"
9288 platforms/solaris/Makefile \
9289 platforms/solaris/bacula-fd \
9290 platforms/solaris/bacula-sd \
9291 platforms/solaris/bacula-dir"
9294 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9296 TAPEDRIVE="/dev/nst0"
9297 PSCMD="ps -e -o pid,command"
9298 hostname=`hostname -s`
9303 TAPEDRIVE="/dev/nst0"
9304 PSCMD="ps -e -o pid,command"
9305 hostname=`hostname -s`
9309 TAPEDRIVE="/dev/nst0"
9312 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9319 LIBS="$PTHREAD_LIB $LIBS"
9321 cat >> confdefs.h <<EOF
9325 cat >> confdefs.h <<EOF
9336 MCOMMON=./autoconf/Make.common
9340 cat > confcache <<\EOF
9341 # This file is a shell script that caches the results of configure
9342 # tests run on this system so they can be shared between configure
9343 # scripts and configure runs. It is not useful on other systems.
9344 # If it contains results you don't want to keep, you may remove or edit it.
9346 # By default, configure uses ./config.cache as the cache file,
9347 # creating it if it does not exist already. You can give configure
9348 # the --cache-file=FILE option to use a different cache file; that is
9349 # what configure does when it calls configure scripts in
9350 # subdirectories, so they share the cache.
9351 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9352 # config.status only pays attention to the cache file if you give it the
9353 # --recheck option to rerun configure.
9356 # The following way of writing the cache mishandles newlines in values,
9357 # but we know of no workaround that is simple, portable, and efficient.
9358 # So, don't put newlines in cache variables' values.
9359 # Ultrix sh set writes to stderr and can't be redirected directly,
9360 # and sets the high bit in the cache file unless we assign to the vars.
9362 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9364 # `set' does not quote correctly, so add quotes (double-quote substitution
9365 # turns \\\\ into \\, and sed turns \\ into \).
9367 -e "s/'/'\\\\''/g" \
9368 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9371 # `set' quotes correctly as required by POSIX, so do not add quotes.
9372 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9375 if cmp -s $cache_file confcache; then
9378 if test -w $cache_file; then
9379 echo "updating cache $cache_file"
9380 cat confcache > $cache_file
9382 echo "not updating unwritable cache $cache_file"
9387 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9390 # Let make expand exec_prefix.
9391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9393 # Any assignment to VPATH causes Sun make to only execute
9394 # the first set of double-colon rules, so remove it if not needed.
9395 # If there is a colon in the path, we need to keep it.
9396 if test "x$srcdir" = x.; then
9397 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9400 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9402 DEFS=-DHAVE_CONFIG_H
9404 # Without the "./", some shells look in PATH for config.status.
9405 : ${CONFIG_STATUS=./config.status}
9407 echo creating $CONFIG_STATUS
9408 rm -f $CONFIG_STATUS
9409 cat > $CONFIG_STATUS <<EOF
9411 # Generated automatically by configure.
9412 # Run this file to recreate the current configuration.
9413 # This directory was configured as follows,
9414 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9416 # $0 $ac_configure_args
9418 # Compiler output produced by configure, useful for debugging
9419 # configure, is in ./config.log if it exists.
9421 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9424 case "\$ac_option" in
9425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9426 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9427 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9428 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9429 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9431 -help | --help | --hel | --he | --h)
9432 echo "\$ac_cs_usage"; exit 0 ;;
9433 *) echo "\$ac_cs_usage"; exit 1 ;;
9437 ac_given_srcdir=$srcdir
9438 ac_given_INSTALL="$INSTALL"
9440 trap 'rm -fr `echo "autoconf/Make.common \
9443 rescue/linux/Makefile \
9444 rescue/freebsd/Makefile \
9445 rescue/solaris/Makefile \
9446 scripts/startmysql \
9448 scripts/btraceback \
9458 src/console/Makefile \
9459 src/console/console.conf \
9460 src/gnome-console/Makefile \
9461 src/gnome-console/gnome-console.conf \
9463 src/dird/bacula-dir.conf \
9465 src/stored/Makefile \
9466 src/stored/bacula-sd.conf \
9467 src/filed/Makefile \
9469 src/filed/bacula-fd.conf \
9470 src/filed/win32/Makefile \
9472 src/cats/alter_mysql_tables \
9473 src/cats/make_mysql_tables \
9474 src/cats/drop_mysql_tables \
9475 src/cats/create_mysql_database \
9476 src/cats/grant_mysql_privileges \
9477 src/cats/alter_sqlite_tables \
9478 src/cats/make_sqlite_tables \
9479 src/cats/drop_sqlite_tables \
9480 src/cats/create_sqlite_database \
9483 src/cats/create_bdb_database \
9484 src/cats/make_bdb_tables \
9485 src/cats/drop_bdb_tables \
9486 src/cats/make_bacula_tables \
9487 src/cats/drop_bacula_tables \
9488 src/findlib/Makefile \
9489 src/tools/Makefile \
9490 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9492 cat >> $CONFIG_STATUS <<EOF
9494 # Protect against being on the right side of a sed subst in config.status.
9495 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9496 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9500 s%@CFLAGS@%$CFLAGS%g
9501 s%@CPPFLAGS@%$CPPFLAGS%g
9502 s%@CXXFLAGS@%$CXXFLAGS%g
9503 s%@FFLAGS@%$FFLAGS%g
9505 s%@LDFLAGS@%$LDFLAGS%g
9507 s%@exec_prefix@%$exec_prefix%g
9508 s%@prefix@%$prefix%g
9509 s%@program_transform_name@%$program_transform_name%g
9510 s%@bindir@%$bindir%g
9511 s%@sbindir@%$sbindir%g
9512 s%@libexecdir@%$libexecdir%g
9513 s%@datadir@%$datadir%g
9514 s%@sysconfdir@%$sysconfdir%g
9515 s%@sharedstatedir@%$sharedstatedir%g
9516 s%@localstatedir@%$localstatedir%g
9517 s%@libdir@%$libdir%g
9518 s%@includedir@%$includedir%g
9519 s%@oldincludedir@%$oldincludedir%g
9520 s%@infodir@%$infodir%g
9521 s%@mandir@%$mandir%g
9522 s%@BUILD_DIR@%$BUILD_DIR%g
9523 s%@TRUEPRG@%$TRUEPRG%g
9524 s%@FALSEPRG@%$FALSEPRG%g
9526 s%@host_alias@%$host_alias%g
9527 s%@host_cpu@%$host_cpu%g
9528 s%@host_vendor@%$host_vendor%g
9529 s%@host_os@%$host_os%g
9530 s%@VERSION@%$VERSION%g
9532 s%@LSMDATE@%$LSMDATE%g
9536 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9537 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9538 s%@INSTALL_DATA@%$INSTALL_DATA%g
9539 s%@RANLIB@%$RANLIB%g
9549 s%@OPENSSL@%$OPENSSL%g
9550 s%@ARFLAGS@%$ARFLAGS%g
9551 s%@MAKE_SHELL@%$MAKE_SHELL%g
9552 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9553 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9554 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9555 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9556 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9557 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9558 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9559 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9560 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9561 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9562 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9563 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9564 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9565 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9566 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9567 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9568 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9569 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9570 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9571 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9572 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9573 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9574 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9575 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9576 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
9577 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
9578 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9579 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9580 s%@MSGFMT@%$MSGFMT%g
9581 s%@GNOME_LIBS@%$GNOME_LIBS%g
9582 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9583 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9584 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9585 s%@ZVT_LIBS@%$ZVT_LIBS%g
9586 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9587 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9588 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9589 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9590 s%@ORBIT_IDL@%$ORBIT_IDL%g
9591 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9592 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9593 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9594 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9595 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9596 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9597 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9598 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9599 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9600 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9601 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9602 s%@GNOME_DIR@%$GNOME_DIR%g
9603 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
9604 s%@STATIC_FD@%$STATIC_FD%g
9605 s%@STATIC_SD@%$STATIC_SD%g
9606 s%@STATIC_DIR@%$STATIC_DIR%g
9607 s%@STATIC_CONS@%$STATIC_CONS%g
9608 s%@ALL_DIRS@%$ALL_DIRS%g
9609 s%@CONS_INC@%$CONS_INC%g
9610 s%@CONS_LIBS@%$CONS_LIBS%g
9611 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9612 s%@READLINE_SRC@%$READLINE_SRC%g
9613 s%@working_dir@%$working_dir%g
9614 s%@dump_email@%$dump_email%g
9615 s%@job_email@%$job_email%g
9616 s%@smtp_host@%$smtp_host%g
9617 s%@piddir@%$piddir%g
9618 s%@subsysdir@%$subsysdir%g
9619 s%@baseport@%$baseport%g
9620 s%@dir_port@%$dir_port%g
9621 s%@fd_port@%$fd_port%g
9622 s%@sd_port@%$sd_port%g
9623 s%@dir_password@%$dir_password%g
9624 s%@fd_password@%$fd_password%g
9625 s%@sd_password@%$sd_password%g
9626 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9627 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9628 s%@SQL_BINDIR@%$SQL_BINDIR%g
9630 s%@DB_NAME@%$DB_NAME%g
9631 s%@EXEEXT@%$EXEEXT%g
9633 s%@build_alias@%$build_alias%g
9634 s%@build_cpu@%$build_cpu%g
9635 s%@build_vendor@%$build_vendor%g
9636 s%@build_os@%$build_os%g
9637 s%@GETCONF@%$GETCONF%g
9638 s%@X_CFLAGS@%$X_CFLAGS%g
9639 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9640 s%@X_LIBS@%$X_LIBS%g
9641 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9642 s%@LIBOBJS@%$LIBOBJS%g
9643 s%@ALLOCA@%$ALLOCA%g
9644 s%@FDLIBS@%$FDLIBS%g
9646 s%@DINCLUDE@%$DINCLUDE%g
9648 s%@DB_LIBS@%$DB_LIBS%g
9649 s%@OBJLIST@%$OBJLIST%g
9650 s%@hostname@%$hostname%g
9651 s%@TAPEDRIVE@%$TAPEDRIVE%g
9654 s%@DISTNAME@%$DISTNAME%g
9655 s%@DISTVER@%$DISTVER%g
9656 /@MCOMMON@/r $MCOMMON
9662 cat >> $CONFIG_STATUS <<\EOF
9664 # Split the substitutions into bite-sized pieces for seds with
9665 # small command number limits, like on Digital OSF/1 and HP-UX.
9666 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9667 ac_file=1 # Number of current file.
9668 ac_beg=1 # First line for current file.
9669 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9672 while $ac_more_lines; do
9673 if test $ac_beg -gt 1; then
9674 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9676 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9678 if test ! -s conftest.s$ac_file; then
9680 rm -f conftest.s$ac_file
9682 if test -z "$ac_sed_cmds"; then
9683 ac_sed_cmds="sed -f conftest.s$ac_file"
9685 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9687 ac_file=`expr $ac_file + 1`
9689 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9692 if test -z "$ac_sed_cmds"; then
9697 cat >> $CONFIG_STATUS <<EOF
9699 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9702 rescue/linux/Makefile \
9703 rescue/freebsd/Makefile \
9704 rescue/solaris/Makefile \
9705 scripts/startmysql \
9707 scripts/btraceback \
9717 src/console/Makefile \
9718 src/console/console.conf \
9719 src/gnome-console/Makefile \
9720 src/gnome-console/gnome-console.conf \
9722 src/dird/bacula-dir.conf \
9724 src/stored/Makefile \
9725 src/stored/bacula-sd.conf \
9726 src/filed/Makefile \
9728 src/filed/bacula-fd.conf \
9729 src/filed/win32/Makefile \
9731 src/cats/alter_mysql_tables \
9732 src/cats/make_mysql_tables \
9733 src/cats/drop_mysql_tables \
9734 src/cats/create_mysql_database \
9735 src/cats/grant_mysql_privileges \
9736 src/cats/alter_sqlite_tables \
9737 src/cats/make_sqlite_tables \
9738 src/cats/drop_sqlite_tables \
9739 src/cats/create_sqlite_database \
9742 src/cats/create_bdb_database \
9743 src/cats/make_bdb_tables \
9744 src/cats/drop_bdb_tables \
9745 src/cats/make_bacula_tables \
9746 src/cats/drop_bacula_tables \
9747 src/findlib/Makefile \
9748 src/tools/Makefile \
9751 cat >> $CONFIG_STATUS <<\EOF
9752 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9755 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9756 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9757 *) ac_file_in="${ac_file}.in" ;;
9760 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9762 # Remove last slash and all that follows it. Not all systems have dirname.
9763 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9764 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9765 # The file is in a subdirectory.
9766 test ! -d "$ac_dir" && mkdir "$ac_dir"
9767 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9768 # A "../" for each directory in $ac_dir_suffix.
9769 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9771 ac_dir_suffix= ac_dots=
9774 case "$ac_given_srcdir" in
9776 if test -z "$ac_dots"; then top_srcdir=.
9777 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9778 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9780 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9781 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9784 case "$ac_given_INSTALL" in
9785 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9786 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9789 echo creating "$ac_file"
9791 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9793 *Makefile*) ac_comsub="1i\\
9794 # $configure_input" ;;
9798 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9800 s%@configure_input@%$configure_input%g
9801 s%@srcdir@%$srcdir%g
9802 s%@top_srcdir@%$top_srcdir%g
9803 s%@INSTALL@%$INSTALL%g
9804 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9808 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9809 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9811 # ac_d sets the value in "#define NAME VALUE" lines.
9812 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9813 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9816 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9817 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9818 ac_uB='\([ ]\)%\1#\2define\3'
9821 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9822 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9823 ac_eB='$%\1#\2define\3'
9827 if test "${CONFIG_HEADERS+set}" != set; then
9829 cat >> $CONFIG_STATUS <<EOF
9830 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9832 cat >> $CONFIG_STATUS <<\EOF
9834 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9835 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9837 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9838 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9839 *) ac_file_in="${ac_file}.in" ;;
9842 echo creating $ac_file
9844 rm -f conftest.frag conftest.in conftest.out
9845 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9846 cat $ac_file_inputs > conftest.in
9850 # Transform confdefs.h into a sed script conftest.vals that substitutes
9851 # the proper values into config.h.in to produce config.h. And first:
9852 # Protect against being on the right side of a sed subst in config.status.
9853 # Protect against being in an unquoted here document in config.status.
9855 cat > conftest.hdr <<\EOF
9858 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9862 sed -n -f conftest.hdr confdefs.h > conftest.vals
9865 # This sed command replaces #undef with comments. This is necessary, for
9866 # example, in the case of _POSIX_SOURCE, which is predefined and required
9867 # on some systems where configure will not decide to define it.
9868 cat >> conftest.vals <<\EOF
9869 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9872 # Break up conftest.vals because some shells have a limit on
9873 # the size of here documents, and old seds have small limits too.
9878 ac_lines=`grep -c . conftest.vals`
9879 # grep -c gives empty output for an empty file on some AIX systems.
9880 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9881 # Write a limited-size here document to conftest.frag.
9882 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9883 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9885 sed -f conftest.frag conftest.in > conftest.out
9887 mv conftest.out conftest.in
9889 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9891 mv conftest.tail conftest.vals
9895 cat >> $CONFIG_STATUS <<\EOF
9896 rm -f conftest.frag conftest.h
9897 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9898 cat conftest.in >> conftest.h
9900 if cmp -s $ac_file conftest.h 2>/dev/null; then
9901 echo "$ac_file is unchanged"
9904 # Remove last slash and all that follows it. Not all systems have dirname.
9905 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9906 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9907 # The file is in a subdirectory.
9908 test ! -d "$ac_dir" && mkdir "$ac_dir"
9911 mv conftest.h $ac_file
9916 cat >> $CONFIG_STATUS <<EOF
9919 cat >> $CONFIG_STATUS <<\EOF
9920 (echo "Doing make of dependencies"; make depend;)
9924 chmod +x $CONFIG_STATUS
9925 rm -fr confdefs* $ac_clean_files
9926 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9930 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
9931 chmod 755 console gconsole
9933 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
9934 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
9935 chmod 755 src/cats/create_mysql_database
9936 chmod 755 src/cats/alter_mysql_tables
9937 chmod 755 src/cats/grant_mysql_privileges
9938 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
9939 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
9940 chmod 755 src/cats/create_sqlite_database
9941 chmod 755 src/cats/alter_sqlite_tables
9942 chmod 755 src/cats/sqlite
9943 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
9944 chmod 755 src/cats/create_bdb_database
9946 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
9947 largefile_support="yes"
9952 Configuration on `date`:
9954 Host: $host -- ${DISTNAME} ${DISTVER}
9955 Bacula version: ${VERSION} (${DATE})
9956 Source code location: ${srcdir}
9957 Install binaries: ${sbindir}
9958 Install config files: ${sysconfdir}
9960 C++ Compiler: ${CXX}
9961 Compiler flags: ${CFLAGS}
9962 Linker flags: ${LDFLAGS}
9964 Statically Linked Tools: ${support_static_tools}
9965 Statically Linked FD: ${support_static_fd}
9966 Statically Linked SD: ${support_static_sd}
9967 Statically Linked DIR: ${support_static_dir}
9968 Statically Linked CONS: ${support_static_cons}
9969 Database type: ${db_name}
9970 Database lib: ${DB_LIBS}
9972 Job Output Email: ${job_email}
9973 Traceback Email: ${dump_email}
9974 SMTP Host Address: ${smtp_host}
9975 Director Port ${dir_port}
9976 File daemon Port ${fd_port}
9977 Storage daemon Port ${sd_port}
9978 Working directory ${working_dir}
9979 SQL binaries Directory ${SQL_BINDIR}
9981 Large file support: $largefile_support
9982 readline support: ${got_readline} ${PRTREADLINE_SRC}
9983 TCP Wrappers support: ${TCPW_MSG}
9984 ZLIB support: ${have_zlib}
9985 enable-smartalloc: ${support_smartalloc}
9986 enable-gnome: ${support_gnome}
9987 client-only: ${build_client_only}
9994 # cweb support: ${got_cweb} ${CWEB_SRC}
9995 # gmp support: ${got_gmp} ${GMP_SRC}