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-everything enable standard non-multichoice features: marked *"
17 --enable-gnome enable build of gnome-console GUI *"
19 --with-gnome-includes Specify location of GNOME headers"
21 --with-gnome-libs Specify location of GNOME libs"
23 --with-gnome Specify prefix for GNOME files"
25 --enable-smartalloc enable smartalloc debugging support *"
27 --enable-static-tools enable static tape tools *"
29 --disable-readline disable readline support "
31 --with-readline[=DIR] Specify readline library directory"
33 --with-gmp[=DIR] Specify gmp library directory"
35 --with-cweb[=DIR] Specify cweb library directory"
37 --with-tcp-wrappers=DIR Enable tcpwrappers support"
39 --with-working-dir=PATH Specify location of Bacula working files"
41 --with-dump-email=Dump email address"
43 --with-job-email=Job output email address"
45 --with-smtp-host=SMTP mail host address"
47 --with-pid-dir=PATH Specify location of Bacula pid files"
49 --with-subsys-dir=PATH Specify location of Bacula subsys file"
51 --with-baseport=PORT Specify base port address for daemons"
53 --with-dir-password=PASSWORD Specify Director's password"
55 --with-fd-password=PASSWORD Specify Client's password"
57 --with-sd-password=PASSWORD Specify Storage daemon's password"
60 Which one DBMS do you want to use (please select only one):
61 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
62 install directory, default is to search through
63 a number of common places for the MySQL files."
66 Which one DBMS do you want to use (please select only one):
67 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
68 install directory, default is to search through
69 a number of common places for the MySQL files."
72 Which one DBMS do you want to use (please select only one):
73 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
74 install directory, default is to search through
75 a number of common places for the SQLite files."
77 --disable-largefile omit support for large files"
79 --with-x use the X Window System"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file=./config.cache
94 program_transform_name=s,x,x,
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
115 # Initialize some other variables.
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
147 -build | --build | --buil | --bui | --bu)
149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150 build="$ac_optarg" ;;
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
163 datadir="$ac_optarg" ;;
165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host | --host | --hos | --ho)
257 -host=* | --host=* | --hos=* | --ho=*)
260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
272 -libdir | --libdir | --libdi | --libd)
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
363 sbindir="$ac_optarg" ;;
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
374 sharedstatedir="$ac_optarg" ;;
376 -site | --site | --sit)
378 -site=* | --site=* | --sit=*)
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
393 -target | --target | --targe | --targ | --tar | --ta | --t)
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
401 -version | --version | --versio | --versi | --vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=src/version.h
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586 ac_n= ac_c='\c' ac_t=
596 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
597 if test -f $ac_dir/install-sh; then
599 ac_install_sh="$ac_aux_dir/install-sh -c"
601 elif test -f $ac_dir/install.sh; then
603 ac_install_sh="$ac_aux_dir/install.sh -c"
607 if test -z "$ac_aux_dir"; then
608 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
610 ac_config_guess=$ac_aux_dir/config.guess
611 ac_config_sub=$ac_aux_dir/config.sub
612 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621 # Extract the first word of "$ac_prog", so it can be a program name with args.
622 set dummy $ac_prog; ac_word=$2
623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
624 echo "configure:625: checking for $ac_word" >&5
625 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
630 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
633 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
638 for ac_dir in $ac_dummy; do
639 test -z "$ac_dir" && ac_dir=.
640 if test -f $ac_dir/$ac_word; then
641 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
649 TRUEPRG="$ac_cv_path_TRUEPRG"
650 if test -n "$TRUEPRG"; then
651 echo "$ac_t""$TRUEPRG" 1>&6
653 echo "$ac_t""no" 1>&6
656 test -n "$TRUEPRG" && break
658 test -n "$TRUEPRG" || TRUEPRG=":"
662 # Extract the first word of "$ac_prog", so it can be a program name with args.
663 set dummy $ac_prog; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
671 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
674 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
682 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
690 FALSEPRG="$ac_cv_path_FALSEPRG"
691 if test -n "$FALSEPRG"; then
692 echo "$ac_t""$FALSEPRG" 1>&6
694 echo "$ac_t""no" 1>&6
697 test -n "$FALSEPRG" && break
699 test -n "$FALSEPRG" || FALSEPRG=":"
703 # Make sure we can run config.sub.
704 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
705 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 echo $ac_n "checking host system type""... $ac_c" 1>&6
709 echo "configure:710: checking host system type" >&5
712 case "$host_alias" in
716 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
717 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
719 *) host_alias=$nonopt ;;
723 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
724 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$host" 1>&6
730 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
731 DATE=`sed -n -e 's/^.* \t*DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
732 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
733 echo "configuring for bacula $VERSION ($DATE)"
737 # Extract the first word of "gcc", so it can be a program name with args.
738 set dummy gcc; ac_word=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 if test -n "$CC"; then
745 ac_cv_prog_CC="$CC" # Let the user override the test.
747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
749 for ac_dir in $ac_dummy; do
750 test -z "$ac_dir" && ac_dir=.
751 if test -f $ac_dir/$ac_word; then
760 if test -n "$CC"; then
761 echo "$ac_t""$CC" 1>&6
763 echo "$ac_t""no" 1>&6
766 if test -z "$CC"; then
767 # Extract the first word of "cc", so it can be a program name with args.
768 set dummy cc; ac_word=$2
769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
770 echo "configure:771: checking for $ac_word" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
774 if test -n "$CC"; then
775 ac_cv_prog_CC="$CC" # Let the user override the test.
777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
780 for ac_dir in $ac_dummy; do
781 test -z "$ac_dir" && ac_dir=.
782 if test -f $ac_dir/$ac_word; then
783 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
792 if test $ac_prog_rejected = yes; then
793 # We found a bogon in the path, so make sure we never use it.
794 set dummy $ac_cv_prog_CC
796 if test $# -gt 0; then
797 # We chose a different compiler from the bogus one.
798 # However, it has the same basename, so the bogon will be chosen
799 # first if we set CC to just the basename; use the full file name.
801 set dummy "$ac_dir/$ac_word" "$@"
809 if test -n "$CC"; then
810 echo "$ac_t""$CC" 1>&6
812 echo "$ac_t""no" 1>&6
815 if test -z "$CC"; then
818 # Extract the first word of "cl", so it can be a program name with args.
819 set dummy cl; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$CC"; then
826 ac_cv_prog_CC="$CC" # Let the user override the test.
828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
830 for ac_dir in $ac_dummy; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
841 if test -n "$CC"; then
842 echo "$ac_t""$CC" 1>&6
844 echo "$ac_t""no" 1>&6
849 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
852 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
853 echo "configure:854: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
857 ac_cpp='$CPP $CPPFLAGS'
858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
860 cross_compiling=$ac_cv_prog_cc_cross
862 cat > conftest.$ac_ext << EOF
864 #line 865 "configure"
865 #include "confdefs.h"
869 if { (eval echo configure:870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
870 ac_cv_prog_cc_works=yes
871 # If we can't run a trivial program, we are probably using a cross compiler.
872 if (./conftest; exit) 2>/dev/null; then
873 ac_cv_prog_cc_cross=no
875 ac_cv_prog_cc_cross=yes
878 echo "configure: failed program was:" >&5
879 cat conftest.$ac_ext >&5
880 ac_cv_prog_cc_works=no
884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
885 ac_cpp='$CPP $CPPFLAGS'
886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
888 cross_compiling=$ac_cv_prog_cc_cross
890 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
891 if test $ac_cv_prog_cc_works = no; then
892 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
894 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
895 echo "configure:896: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
896 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
897 cross_compiling=$ac_cv_prog_cc_cross
899 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
900 echo "configure:901: checking whether we are using GNU C" >&5
901 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 cat > conftest.c <<EOF
909 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
916 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
918 if test $ac_cv_prog_gcc = yes; then
924 ac_test_CFLAGS="${CFLAGS+set}"
925 ac_save_CFLAGS="$CFLAGS"
927 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
928 echo "configure:929: checking whether ${CC-cc} accepts -g" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 echo 'void f(){}' > conftest.c
933 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
942 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
943 if test "$ac_test_CFLAGS" = set; then
944 CFLAGS="$ac_save_CFLAGS"
945 elif test $ac_cv_prog_cc_g = yes; then
946 if test "$GCC" = yes; then
952 if test "$GCC" = yes; then
959 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
961 # Extract the first word of "$ac_prog", so it can be a program name with args.
962 set dummy $ac_prog; ac_word=$2
963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
964 echo "configure:965: checking for $ac_word" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 if test -n "$CXX"; then
969 ac_cv_prog_CXX="$CXX" # Let the user override the test.
971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
973 for ac_dir in $ac_dummy; do
974 test -z "$ac_dir" && ac_dir=.
975 if test -f $ac_dir/$ac_word; then
976 ac_cv_prog_CXX="$ac_prog"
983 CXX="$ac_cv_prog_CXX"
984 if test -n "$CXX"; then
985 echo "$ac_t""$CXX" 1>&6
987 echo "$ac_t""no" 1>&6
990 test -n "$CXX" && break
992 test -n "$CXX" || CXX="gcc"
995 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
996 echo "configure:997: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1000 ac_cpp='$CXXCPP $CPPFLAGS'
1001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1003 cross_compiling=$ac_cv_prog_cxx_cross
1005 cat > conftest.$ac_ext << EOF
1007 #line 1008 "configure"
1008 #include "confdefs.h"
1010 int main(){return(0);}
1012 if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1013 ac_cv_prog_cxx_works=yes
1014 # If we can't run a trivial program, we are probably using a cross compiler.
1015 if (./conftest; exit) 2>/dev/null; then
1016 ac_cv_prog_cxx_cross=no
1018 ac_cv_prog_cxx_cross=yes
1021 echo "configure: failed program was:" >&5
1022 cat conftest.$ac_ext >&5
1023 ac_cv_prog_cxx_works=no
1027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1028 ac_cpp='$CPP $CPPFLAGS'
1029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1031 cross_compiling=$ac_cv_prog_cc_cross
1033 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1034 if test $ac_cv_prog_cxx_works = no; then
1035 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1037 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1038 echo "configure:1039: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1039 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1040 cross_compiling=$ac_cv_prog_cxx_cross
1042 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1043 echo "configure:1044: checking whether we are using GNU C++" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 cat > conftest.C <<EOF
1052 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1059 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1061 if test $ac_cv_prog_gxx = yes; then
1067 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1068 ac_save_CXXFLAGS="$CXXFLAGS"
1070 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1071 echo "configure:1072: checking whether ${CXX-g++} accepts -g" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 echo 'void f(){}' > conftest.cc
1076 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1077 ac_cv_prog_cxx_g=yes
1085 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1086 if test "$ac_test_CXXFLAGS" = set; then
1087 CXXFLAGS="$ac_save_CXXFLAGS"
1088 elif test $ac_cv_prog_cxx_g = yes; then
1089 if test "$GXX" = yes; then
1095 if test "$GXX" = yes; then
1102 for ac_declaration in \
1104 '#include <stdlib.h>' \
1105 'extern "C" void std::exit (int) throw (); using std::exit;' \
1106 'extern "C" void std::exit (int); using std::exit;' \
1107 'extern "C" void exit (int) throw ();' \
1108 'extern "C" void exit (int);' \
1111 cat > conftest.$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1120 if { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1123 echo "configure: failed program was:" >&5
1124 cat conftest.$ac_ext >&5
1129 cat > conftest.$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1137 if { (eval echo configure:1138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1141 echo "configure: failed program was:" >&5
1142 cat conftest.$ac_ext >&5
1146 if test -n "$ac_declaration"; then
1147 echo '#ifdef __cplusplus' >>confdefs.h
1148 echo $ac_declaration >>confdefs.h
1149 echo '#endif' >>confdefs.h
1153 if test "x$CC" != xcc; then
1154 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether $CC and cc understand -c and -o together" >&5
1157 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether cc understands -c and -o together" >&5
1160 set dummy $CC; ac_cc="`echo $2 |
1161 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1162 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 echo 'foo(){}' > conftest.c
1166 # Make sure it works both with $CC and with simple cc.
1167 # We do the test twice because some compilers refuse to overwrite an
1168 # existing .o file with -o, though they will create one.
1169 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1170 if { (eval echo configure:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1171 test -f conftest.o && { (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1173 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1174 if test "x$CC" != xcc; then
1175 # Test first that cc exists at all.
1176 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1177 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1178 if { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1179 test -f conftest.o && { (eval echo configure:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1184 # cc exists but doesn't like -o.
1185 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1190 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1195 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1196 echo "$ac_t""yes" 1>&6
1198 echo "$ac_t""no" 1>&6
1199 cat >> confdefs.h <<\EOF
1200 #define NO_MINUS_C_MINUS_O 1
1204 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1205 echo "configure:1206: checking how to run the C preprocessor" >&5
1206 # On Suns, sometimes $CPP names a directory.
1207 if test -n "$CPP" && test -d "$CPP"; then
1210 if test -z "$CPP"; then
1211 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 # This must be in double quotes, not single quotes, because CPP may get
1215 # substituted into the Makefile and "${CC-cc}" will confuse make.
1217 # On the NeXT, cc -E runs the code through the compiler's parser,
1218 # not just through cpp.
1219 cat > conftest.$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1226 { (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1228 if test -z "$ac_err"; then
1232 echo "configure: failed program was:" >&5
1233 cat conftest.$ac_ext >&5
1235 CPP="${CC-cc} -E -traditional-cpp"
1236 cat > conftest.$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1243 { (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1245 if test -z "$ac_err"; then
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
1252 CPP="${CC-cc} -nologo -E"
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1260 { (eval echo configure:1261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1262 if test -z "$ac_err"; then
1266 echo "configure: failed program was:" >&5
1267 cat conftest.$ac_ext >&5
1276 ac_cv_prog_CPP="$CPP"
1278 CPP="$ac_cv_prog_CPP"
1280 ac_cv_prog_CPP="$CPP"
1282 echo "$ac_t""$CPP" 1>&6
1284 if test $ac_cv_prog_gcc = yes; then
1285 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1286 echo "configure:1287: checking whether ${CC-cc} needs -traditional" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 ac_pattern="Autoconf.*'x'"
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1298 egrep "$ac_pattern" >/dev/null 2>&1; then
1300 ac_cv_prog_gcc_traditional=yes
1303 ac_cv_prog_gcc_traditional=no
1308 if test $ac_cv_prog_gcc_traditional = no; then
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1316 egrep "$ac_pattern" >/dev/null 2>&1; then
1318 ac_cv_prog_gcc_traditional=yes
1325 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1326 if test $ac_cv_prog_gcc_traditional = yes; then
1327 CC="$CC -traditional"
1333 cat >> confdefs.h <<\EOF
1339 # Find a good install program. We prefer a C program (faster),
1340 # so one script is as good as another. But avoid the broken or
1341 # incompatible versions:
1342 # SysV /etc/install, /usr/sbin/install
1343 # SunOS /usr/etc/install
1344 # IRIX /sbin/install
1346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1349 # ./install, which can be erroneously created by make from ./install.sh.
1350 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1351 echo "configure:1352: checking for a BSD compatible install" >&5
1352 if test -z "$INSTALL"; then
1353 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1357 for ac_dir in $PATH; do
1358 # Account for people who put trailing slashes in PATH elements.
1360 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1362 # OSF1 and SCO ODT 3.0 have their own names for install.
1363 # Don't use installbsd from OSF since it installs stuff as root
1365 for ac_prog in ginstall scoinst install; do
1366 if test -f $ac_dir/$ac_prog; then
1367 if test $ac_prog = install &&
1368 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1369 # AIX install. It has an incompatible calling convention.
1372 ac_cv_path_install="$ac_dir/$ac_prog -c"
1383 if test "${ac_cv_path_install+set}" = set; then
1384 INSTALL="$ac_cv_path_install"
1386 # As a last resort, use the slow shell script. We don't cache a
1387 # path for INSTALL within a source directory, because that will
1388 # break other packages using the cache if that directory is
1389 # removed, or if the path is relative.
1390 INSTALL="$ac_install_sh"
1393 echo "$ac_t""$INSTALL" 1>&6
1395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1396 # It thinks the first close brace ends the variable substitution.
1397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1403 # Extract the first word of "ranlib", so it can be a program name with args.
1404 set dummy ranlib; ac_word=$2
1405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1406 echo "configure:1407: checking for $ac_word" >&5
1407 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 if test -n "$RANLIB"; then
1411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1415 for ac_dir in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir=.
1417 if test -f $ac_dir/$ac_word; then
1418 ac_cv_prog_RANLIB="ranlib"
1423 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1426 RANLIB="$ac_cv_prog_RANLIB"
1427 if test -n "$RANLIB"; then
1428 echo "$ac_t""$RANLIB" 1>&6
1430 echo "$ac_t""no" 1>&6
1433 # Extract the first word of "mv", so it can be a program name with args.
1434 set dummy mv; ac_word=$2
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_word" >&5
1437 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1442 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1445 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1450 for ac_dir in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir=.
1452 if test -f $ac_dir/$ac_word; then
1453 ac_cv_path_MV="$ac_dir/$ac_word"
1458 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1463 if test -n "$MV"; then
1464 echo "$ac_t""$MV" 1>&6
1466 echo "$ac_t""no" 1>&6
1469 # Extract the first word of "rm", so it can be a program name with args.
1470 set dummy rm; ac_word=$2
1471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1472 echo "configure:1473: checking for $ac_word" >&5
1473 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1478 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1481 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1486 for ac_dir in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_path_RM="$ac_dir/$ac_word"
1494 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1499 if test -n "$RM"; then
1500 echo "$ac_t""$RM" 1>&6
1502 echo "$ac_t""no" 1>&6
1505 # Extract the first word of "cp", so it can be a program name with args.
1506 set dummy cp; ac_word=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5
1509 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1514 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1517 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1522 for ac_dir in $ac_dummy; do
1523 test -z "$ac_dir" && ac_dir=.
1524 if test -f $ac_dir/$ac_word; then
1525 ac_cv_path_CP="$ac_dir/$ac_word"
1530 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1535 if test -n "$CP"; then
1536 echo "$ac_t""$CP" 1>&6
1538 echo "$ac_t""no" 1>&6
1541 # Extract the first word of "sed", so it can be a program name with args.
1542 set dummy sed; ac_word=$2
1543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1544 echo "configure:1545: checking for $ac_word" >&5
1545 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1550 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1553 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1558 for ac_dir in $ac_dummy; do
1559 test -z "$ac_dir" && ac_dir=.
1560 if test -f $ac_dir/$ac_word; then
1561 ac_cv_path_SED="$ac_dir/$ac_word"
1566 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1570 SED="$ac_cv_path_SED"
1571 if test -n "$SED"; then
1572 echo "$ac_t""$SED" 1>&6
1574 echo "$ac_t""no" 1>&6
1577 # Extract the first word of "awk", so it can be a program name with args.
1578 set dummy awk; ac_word=$2
1579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_word" >&5
1581 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1586 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1589 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1594 for ac_dir in $ac_dummy; do
1595 test -z "$ac_dir" && ac_dir=.
1596 if test -f $ac_dir/$ac_word; then
1597 ac_cv_path_AWK="$ac_dir/$ac_word"
1602 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1606 AWK="$ac_cv_path_AWK"
1607 if test -n "$AWK"; then
1608 echo "$ac_t""$AWK" 1>&6
1610 echo "$ac_t""no" 1>&6
1613 # Extract the first word of "echo", so it can be a program name with args.
1614 set dummy echo; ac_word=$2
1615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1616 echo "configure:1617: checking for $ac_word" >&5
1617 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1622 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1625 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1630 for ac_dir in $ac_dummy; do
1631 test -z "$ac_dir" && ac_dir=.
1632 if test -f $ac_dir/$ac_word; then
1633 ac_cv_path_ECHO="$ac_dir/$ac_word"
1638 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1642 ECHO="$ac_cv_path_ECHO"
1643 if test -n "$ECHO"; then
1644 echo "$ac_t""$ECHO" 1>&6
1646 echo "$ac_t""no" 1>&6
1649 # Extract the first word of "cmp", so it can be a program name with args.
1650 set dummy cmp; ac_word=$2
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_word" >&5
1653 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1658 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1661 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1666 for ac_dir in $ac_dummy; do
1667 test -z "$ac_dir" && ac_dir=.
1668 if test -f $ac_dir/$ac_word; then
1669 ac_cv_path_CMP="$ac_dir/$ac_word"
1674 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1678 CMP="$ac_cv_path_CMP"
1679 if test -n "$CMP"; then
1680 echo "$ac_t""$CMP" 1>&6
1682 echo "$ac_t""no" 1>&6
1685 # Extract the first word of "tbl", so it can be a program name with args.
1686 set dummy tbl; ac_word=$2
1687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1688 echo "configure:1689: checking for $ac_word" >&5
1689 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1694 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1697 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1702 for ac_dir in $ac_dummy; do
1703 test -z "$ac_dir" && ac_dir=.
1704 if test -f $ac_dir/$ac_word; then
1705 ac_cv_path_TBL="$ac_dir/$ac_word"
1710 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1714 TBL="$ac_cv_path_TBL"
1715 if test -n "$TBL"; then
1716 echo "$ac_t""$TBL" 1>&6
1718 echo "$ac_t""no" 1>&6
1721 # Extract the first word of "ar", so it can be a program name with args.
1722 set dummy ar; ac_word=$2
1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_word" >&5
1725 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1730 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1733 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1738 for ac_dir in $ac_dummy; do
1739 test -z "$ac_dir" && ac_dir=.
1740 if test -f $ac_dir/$ac_word; then
1741 ac_cv_path_AR="$ac_dir/$ac_word"
1746 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1751 if test -n "$AR"; then
1752 echo "$ac_t""$AR" 1>&6
1754 echo "$ac_t""no" 1>&6
1757 # Extract the first word of "ranlib", so it can be a program name with args.
1758 set dummy ranlib; ac_word=$2
1759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $ac_word" >&5
1761 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1766 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1769 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1774 for ac_dir in $ac_dummy; do
1775 test -z "$ac_dir" && ac_dir=.
1776 if test -f $ac_dir/$ac_word; then
1777 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1782 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1786 RANLIB="$ac_cv_path_RANLIB"
1787 if test -n "$RANLIB"; then
1788 echo "$ac_t""$RANLIB" 1>&6
1790 echo "$ac_t""no" 1>&6
1793 # Extract the first word of "openssl", so it can be a program name with args.
1794 set dummy openssl; ac_word=$2
1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_word" >&5
1797 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1802 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1805 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1810 for ac_dir in $ac_dummy; do
1811 test -z "$ac_dir" && ac_dir=.
1812 if test -f $ac_dir/$ac_word; then
1813 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1818 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1822 OPENSSL="$ac_cv_path_OPENSSL"
1823 if test -n "$OPENSSL"; then
1824 echo "$ac_t""$OPENSSL" 1>&6
1826 echo "$ac_t""no" 1>&6
1830 test -n "$ARFLAG" || ARFLAGS="cr"
1843 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1844 echo "configure:1845: checking for Operating System" >&5
1845 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1846 echo "configure:1847: checking for Cygwin environment" >&5
1847 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 cat > conftest.$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1857 #define __CYGWIN__ __CYGWIN32__
1862 if { (eval echo configure:1863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1875 echo "$ac_t""$ac_cv_cygwin" 1>&6
1877 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1878 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1884 HAVE_SUN_OS_FALSE='#'
1886 HAVE_SUN_OS_TRUE='#'
1889 cat >> confdefs.h <<\EOF
1890 #define HAVE_SUN_OS 1
1898 HAVE_SUN_OS_FALSE='#'
1900 HAVE_SUN_OS_TRUE='#'
1905 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1911 HAVE_OSF1_OS_FALSE='#'
1913 HAVE_OSF1_OS_TRUE='#'
1916 cat >> confdefs.h <<\EOF
1917 #define HAVE_OSF1_OS 1
1925 HAVE_OSF1_OS_FALSE='#'
1927 HAVE_OSF1_OS_TRUE='#'
1932 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1938 HAVE_AIX_OS_FALSE='#'
1940 HAVE_AIX_OS_TRUE='#'
1943 cat >> confdefs.h <<\EOF
1944 #define HAVE_AIX_OS 1
1952 HAVE_AIX_OS_FALSE='#'
1954 HAVE_AIX_OS_TRUE='#'
1959 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1965 HAVE_HPUX_OS_FALSE='#'
1967 HAVE_HPUX_OS_TRUE='#'
1970 cat >> confdefs.h <<\EOF
1971 #define HAVE_HPUX_OS 1
1979 HAVE_HPUX_OS_FALSE='#'
1981 HAVE_HPUX_OS_TRUE='#'
1986 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1992 HAVE_LINUX_OS_FALSE='#'
1994 HAVE_LINUX_OS_TRUE='#'
1995 HAVE_LINUX_OS_FALSE=
1997 cat >> confdefs.h <<\EOF
1998 #define HAVE_LINUX_OS 1
2006 HAVE_LINUX_OS_FALSE='#'
2008 HAVE_LINUX_OS_TRUE='#'
2009 HAVE_LINUX_OS_FALSE=
2013 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2018 HAVE_FREEBSD_OS_TRUE=
2019 HAVE_FREEBSD_OS_FALSE='#'
2021 HAVE_FREEBSD_OS_TRUE='#'
2022 HAVE_FREEBSD_OS_FALSE=
2024 cat >> confdefs.h <<\EOF
2025 #define HAVE_FREEBSD_OS 1
2032 HAVE_FREEBSD_OS_TRUE=
2033 HAVE_FREEBSD_OS_FALSE='#'
2035 HAVE_FREEBSD_OS_TRUE='#'
2036 HAVE_FREEBSD_OS_FALSE=
2040 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2045 HAVE_NETBSD_OS_TRUE=
2046 HAVE_NETBSD_OS_FALSE='#'
2048 HAVE_NETBSD_OS_TRUE='#'
2049 HAVE_NETBSD_OS_FALSE=
2051 cat >> confdefs.h <<\EOF
2052 #define HAVE_NETBSD_OS 1
2059 HAVE_NETBSD_OS_TRUE=
2060 HAVE_NETBSD_OS_FALSE='#'
2062 HAVE_NETBSD_OS_TRUE='#'
2063 HAVE_NETBSD_OS_FALSE=
2067 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2072 HAVE_OPENBSD_OS_TRUE=
2073 HAVE_OPENBSD_OS_FALSE='#'
2075 HAVE_OPENBSD_OS_TRUE='#'
2076 HAVE_OPENBSD_OS_FALSE=
2078 cat >> confdefs.h <<\EOF
2079 #define HAVE_OPENBSD_OS 1
2086 HAVE_OPENBSD_OS_TRUE=
2087 HAVE_OPENBSD_OS_FALSE='#'
2089 HAVE_OPENBSD_OS_TRUE='#'
2090 HAVE_OPENBSD_OS_FALSE=
2094 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2100 HAVE_BSDI_OS_FALSE='#'
2102 HAVE_BSDI_OS_TRUE='#'
2105 cat >> confdefs.h <<\EOF
2106 #define HAVE_BSDI_OS 1
2114 HAVE_BSDI_OS_FALSE='#'
2116 HAVE_BSDI_OS_TRUE='#'
2121 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2127 HAVE_SGI_OS_FALSE='#'
2129 HAVE_SGI_OS_TRUE='#'
2132 cat >> confdefs.h <<\EOF
2133 #define HAVE_SGI_OS 1
2141 HAVE_SGI_OS_FALSE='#'
2143 HAVE_SGI_OS_TRUE='#'
2148 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2154 HAVE_IRIX_OS_FALSE='#'
2156 HAVE_IRIX_OS_TRUE='#'
2159 cat >> confdefs.h <<\EOF
2160 #define HAVE_IRIX_OS 1
2168 HAVE_IRIX_OS_FALSE='#'
2170 HAVE_IRIX_OS_TRUE='#'
2175 echo "$ac_t""" "" 1>&6
2178 # -----------------------------------------------------------
2179 # ----------------------------------------------------------
2180 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2181 echo "configure:2182: checking for Operating System Distribution" >&5
2182 if test "x$DISTNAME" != "x"
2184 echo "distname set to $DISTNAME"
2185 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2188 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2191 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2194 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2197 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2200 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2203 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2206 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2209 elif test -f /etc/SuSE-release
2212 elif test -d /etc/SuSEconfig
2215 elif test -d /usr/src/OpenLinux
2218 elif test -f /etc/redhat-release
2221 elif test -f /etc/debian_version
2224 elif test -f /etc/slackware-version
2227 elif test "$ac_cv_cygwin" = yes
2230 cat >> confdefs.h <<\EOF
2231 #define HAVE_CYGWIN 1
2237 echo "$ac_t""" "" 1>&6
2240 # -----------------------------------------------------------
2241 # ----------------------------------------------------------
2246 INSIDE_GNOME_COMMON_TRUE=
2247 INSIDE_GNOME_COMMON_FALSE='#'
2249 INSIDE_GNOME_COMMON_TRUE='#'
2250 INSIDE_GNOME_COMMON_FALSE=
2253 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2255 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2258 # ------------------------------------------------------------------
2259 # If the user has not set --prefix, we set our default to nothing.
2260 # In this case, if the user has not set --sysconfdir, we set it
2261 # to the package default of /etc/bacula. If either --prefix or
2262 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2263 # ------------------------------------------------------------------
2264 if test x${prefix} = xNONE ; then
2265 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2266 sysconfdir=/etc/bacula
2270 sysconfdir=`eval echo ${sysconfdir}`
2272 # -------------------------------------------------------------------------
2273 # If the user has not set --exec-prefix, we default to ${prefix}
2274 # -------------------------------------------------------------------------
2275 if test x${exec_prefix} = xNONE ; then
2276 exec_prefix=${prefix}
2279 # ------------------------------------------------------------------
2280 # If the user has not set --sbindir, we set our default as /sbin
2281 # ------------------------------------------------------------------
2282 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2283 sbindir=${exec_prefix}/sbin
2285 sbindir=`eval echo ${sbindir}`
2287 # ------------------------------------------------------------------
2288 # All list of languages for which a translation exist. Each
2289 # language is separated by a space.
2290 # ------------------------------------------------------------------
2293 for ac_prog in msgfmt
2295 # Extract the first word of "$ac_prog", so it can be a program name with args.
2296 set dummy $ac_prog; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2304 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2307 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2312 for ac_dir in $ac_dummy; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2323 MSGFMT="$ac_cv_path_MSGFMT"
2324 if test -n "$MSGFMT"; then
2325 echo "$ac_t""$MSGFMT" 1>&6
2327 echo "$ac_t""no" 1>&6
2330 test -n "$MSGFMT" && break
2332 test -n "$MSGFMT" || MSGFMT="no"
2334 if test "$MSGFMT" = "no"
2336 echo 'msgfmt program not found, disabling NLS !'
2338 USE_INCLUDED_LIBINTL=no
2346 support_smartalloc=yes
2347 support_readline=yes
2349 support_static_tools=yes
2354 # Check whether --enable-everything or --disable-everything was given.
2355 if test "${enable_everything+set}" = set; then
2356 enableval="$enable_everything"
2357 if test x$enableval = xyes; then
2358 support_smartalloc=yes
2363 # -------------------------------------------
2364 # gnome (default off)
2365 # -------------------------------------------
2366 # Check whether --enable-gnome or --disable-gnome was given.
2367 if test "${enable_gnome+set}" = set; then
2368 enableval="$enable_gnome"
2369 if test x$enableval = xyes; then
2376 if test x$support_gnome = xyes; then
2387 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2388 if test "${with_gnome_includes+set}" = set; then
2389 withval="$with_gnome_includes"
2391 CFLAGS="$CFLAGS -I$withval"
2396 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2397 if test "${with_gnome_libs+set}" = set; then
2398 withval="$with_gnome_libs"
2400 LDFLAGS="$LDFLAGS -L$withval"
2401 gnome_prefix=$withval
2406 # Check whether --with-gnome or --without-gnome was given.
2407 if test "${with_gnome+set}" = set; then
2408 withval="$with_gnome"
2409 if test x$withval = xyes; then
2413 if test "x$withval" = xno; then
2417 LDFLAGS="$LDFLAGS -L$withval/lib"
2418 CFLAGS="$CFLAGS -I$withval/include"
2419 gnome_prefix=$withval/lib
2427 if test "x$want_gnome" = xyes; then
2429 # Extract the first word of "gnome-config", so it can be a program name with args.
2430 set dummy gnome-config; ac_word=$2
2431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2432 echo "configure:2433: checking for $ac_word" >&5
2433 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 case "$GNOME_CONFIG" in
2438 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2441 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2446 for ac_dir in $ac_dummy; do
2447 test -z "$ac_dir" && ac_dir=.
2448 if test -f $ac_dir/$ac_word; then
2449 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2454 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2458 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2459 if test -n "$GNOME_CONFIG"; then
2460 echo "$ac_t""$GNOME_CONFIG" 1>&6
2462 echo "$ac_t""no" 1>&6
2465 if test "$GNOME_CONFIG" = "no"; then
2466 no_gnome_config="yes"
2468 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2469 echo "configure:2470: checking if $GNOME_CONFIG works" >&5
2470 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2471 echo "$ac_t""yes" 1>&6
2474 # Extract the first word of "orbit-config", so it can be a program name with args.
2475 set dummy orbit-config; ac_word=$2
2476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_word" >&5
2478 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 case "$ORBIT_CONFIG" in
2483 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2486 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2491 for ac_dir in $ac_dummy; do
2492 test -z "$ac_dir" && ac_dir=.
2493 if test -f $ac_dir/$ac_word; then
2494 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2499 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2503 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2504 if test -n "$ORBIT_CONFIG"; then
2505 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2507 echo "$ac_t""no" 1>&6
2510 # Extract the first word of "orbit-idl", so it can be a program name with args.
2511 set dummy orbit-idl; ac_word=$2
2512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_word" >&5
2514 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 case "$ORBIT_IDL" in
2519 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2522 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2527 for ac_dir in $ac_dummy; do
2528 test -z "$ac_dir" && ac_dir=.
2529 if test -f $ac_dir/$ac_word; then
2530 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2535 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2539 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2540 if test -n "$ORBIT_IDL"; then
2541 echo "$ac_t""$ORBIT_IDL" 1>&6
2543 echo "$ac_t""no" 1>&6
2546 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2547 echo "configure:2548: checking for working ORBit environment" >&5
2548 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2552 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2553 gnome_cv_orbit_found=no
2555 gnome_cv_orbit_found=yes
2560 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2563 if test x$gnome_cv_orbit_found = xyes; then
2565 HAVE_ORBIT_FALSE='#'
2570 if test x$gnome_cv_orbit_found = xyes; then
2572 ORBIT_CFLAGS=`orbit-config --cflags client server`
2573 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2577 if test xfail = xfailure; then
2578 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2582 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2583 echo "configure:2584: checking for gnorba libraries" >&5
2584 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2588 gnome_cv_gnorba_found=no
2589 if test x$gnome_cv_orbit_found = xyes; then
2590 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2591 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2592 if test -n "$GNORBA_LIBS"; then
2593 gnome_cv_gnorba_found=yes
2599 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2602 if test x$gnome_cv_gnorba_found = xyes; then
2604 HAVE_GNORBA_FALSE='#'
2606 HAVE_GNORBA_TRUE='#'
2609 if test x$gnome_cv_orbit_found = xyes; then
2611 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2612 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2616 if test xfail = xfailure; then
2617 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2621 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2622 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2623 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2624 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2625 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2626 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2627 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2630 echo "$ac_t""no" 1>&6
2631 no_gnome_config="yes"
2635 if test x$exec_prefix = xNONE; then
2636 if test x$prefix = xNONE; then
2637 gnome_prefix=$ac_default_prefix/lib
2639 gnome_prefix=$prefix/lib
2642 gnome_prefix=`eval echo \`echo $libdir\``
2645 if test "$no_gnome_config" = "yes"; then
2646 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2647 echo "configure:2648: checking for gnomeConf.sh file in $gnome_prefix" >&5
2648 if test -f $gnome_prefix/gnomeConf.sh; then
2649 echo "$ac_t""found" 1>&6
2650 echo "loading gnome configuration from" \
2651 "$gnome_prefix/gnomeConf.sh"
2652 . $gnome_prefix/gnomeConf.sh
2655 echo "$ac_t""not found" 1>&6
2656 if test xfail = xfail; then
2657 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2666 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2667 echo "configure:2668: checking extra library \"$i\"" >&5
2671 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2672 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2675 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2676 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2679 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2680 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2682 echo "$ac_t""unknown library" 1>&6
2684 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2685 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2690 GNOME_DIR=src/gnome-console
2695 # -------------------------------------------
2696 # smartalloc (default off)
2697 # -------------------------------------------
2698 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2699 if test "${enable_smartalloc+set}" = set; then
2700 enableval="$enable_smartalloc"
2701 if test x$enableval = xno; then
2702 support_smartalloc=no
2707 if test x$support_smartalloc = xyes; then
2708 cat >> confdefs.h <<\EOF
2709 #define SMARTALLOC 1
2714 # -------------------------------------------
2715 # static-tools (default on)
2716 # -------------------------------------------
2717 # Check whether --enable-static-tools or --disable-static-tools was given.
2718 if test "${enable_static_tools+set}" = set; then
2719 enableval="$enable_static_tools"
2720 if test x$enableval = xno; then
2721 support_static_tools=no
2727 if test x$support_static_tools = xyes; then
2728 TTOOL_LDFLAGS="-static"
2735 # ---------------------------------------------------
2736 # Check for readline support/directory (default on)
2737 # ---------------------------------------------------
2738 # this allows you to turn it completely off
2739 # Check whether --enable-readline or --disable-readline was given.
2740 if test "${enable_readline+set}" = set; then
2741 enableval="$enable_readline"
2742 if test x$enableval = xno; then
2750 if test x$support_readline = xyes; then
2751 # Check whether --with-readline or --without-readline was given.
2752 if test "${with_readline+set}" = set; then
2753 withval="$with_readline"
2755 case "$with_readline" in
2758 if test "$with_readline" != "yes"; then
2759 CONS_INC="-I$with_readline"
2760 CONS_LDFLAGS="-L$with_readline"
2762 with_readline="/usr/include/readline"
2764 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2765 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2766 echo "configure:2767: checking for $with_readline/readline.h" >&5
2767 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 #include <$with_readline/readline.h>
2775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2776 { (eval echo configure:2777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2778 if test -z "$ac_err"; then
2780 eval "ac_cv_header_$ac_safe=yes"
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2786 eval "ac_cv_header_$ac_safe=no"
2790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2791 echo "$ac_t""yes" 1>&6
2792 echo "$ac_t""yes" 1>&6
2793 cat >> confdefs.h <<\EOF
2794 #define HAVE_READLINE 1
2797 CONS_LIBS="-lreadline -ltermcap"
2801 echo "$ac_t""no" 1>&6
2802 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2812 # check for standard readline library
2813 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2814 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2815 echo "configure:2816: checking for /usr/include/readline/readline.h" >&5
2816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2822 #include </usr/include/readline/readline.h>
2824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2829 eval "ac_cv_header_$ac_safe=yes"
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2835 eval "ac_cv_header_$ac_safe=no"
2839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 echo "$ac_t""yes" 1>&6
2842 cat >> confdefs.h <<\EOF
2843 #define HAVE_READLINE 1
2847 CONS_INC="-I/usr/include/readline"
2848 CONS_LIBS="-lreadline -ltermcap"
2851 echo "$ac_t""no" 1>&6
2853 # Did not find starndard library, so user our own
2854 echo "$ac_t""yes" 1>&6
2855 cat >> confdefs.h <<\EOF
2856 #define HAVE_READLINE 1
2860 CONS_INC="-I${TOP_DIR}/depkgs"
2861 CONS_LIBS="-lreadline -lhistory -ltermcap"
2862 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2863 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
2877 # Minimal stuff for readline Makefile configuration
2881 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2882 echo "configure:2883: checking whether stat file-mode macros are broken" >&5
2883 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2889 #include <sys/types.h>
2890 #include <sys/stat.h>
2892 #if defined(S_ISBLK) && defined(S_IFDIR)
2893 # if S_ISBLK (S_IFDIR)
2898 #if defined(S_ISBLK) && defined(S_IFCHR)
2899 # if S_ISBLK (S_IFCHR)
2904 #if defined(S_ISLNK) && defined(S_IFREG)
2905 # if S_ISLNK (S_IFREG)
2910 #if defined(S_ISSOCK) && defined(S_IFREG)
2911 # if S_ISSOCK (S_IFREG)
2917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2918 egrep "You lose" >/dev/null 2>&1; then
2920 ac_cv_header_stat_broken=yes
2923 ac_cv_header_stat_broken=no
2929 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2930 if test $ac_cv_header_stat_broken = yes; then
2931 cat >> confdefs.h <<\EOF
2932 #define STAT_MACROS_BROKEN 1
2938 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2941 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2942 echo "configure:2943: checking for $ac_hdr that defines DIR" >&5
2943 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 #include <sys/types.h>
2955 if { (eval echo configure:2956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2957 eval "ac_cv_header_dirent_$ac_safe=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 eval "ac_cv_header_dirent_$ac_safe=no"
2966 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2969 cat >> confdefs.h <<EOF
2970 #define $ac_tr_hdr 1
2972 ac_header_dirent=$ac_hdr; break
2974 echo "$ac_t""no" 1>&6
2977 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2978 if test $ac_header_dirent = dirent.h; then
2979 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2980 echo "configure:2981: checking for opendir in -ldir" >&5
2981 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 ac_save_LIBS="$LIBS"
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 /* Override any gcc2 internal prototype to avoid an error. */
2991 /* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 eval "ac_cv_lib_$ac_lib_var=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_lib_$ac_lib_var=no"
3009 LIBS="$ac_save_LIBS"
3012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3016 echo "$ac_t""no" 1>&6
3020 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3021 echo "configure:3022: checking for opendir in -lx" >&5
3022 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 ac_save_LIBS="$LIBS"
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3042 eval "ac_cv_lib_$ac_lib_var=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3047 eval "ac_cv_lib_$ac_lib_var=no"
3050 LIBS="$ac_save_LIBS"
3053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3057 echo "$ac_t""no" 1>&6
3063 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_func" >&5
3067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 /* System header to define __stub macros and hopefully few prototypes,
3074 which can conflict with char $ac_func(); below. */
3076 /* Override any gcc2 internal prototype to avoid an error. */
3077 /* We use char because int might match the return type of a gcc2
3078 builtin and then its argument prototype would still apply. */
3083 /* The GNU C library defines this for functions which it implements
3084 to always fail with ENOSYS. Some functions are actually named
3085 something starting with __ and the normal name is an alias. */
3086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3096 eval "ac_cv_func_$ac_func=yes"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3101 eval "ac_cv_func_$ac_func=no"
3106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3109 cat >> confdefs.h <<EOF
3110 #define $ac_tr_func 1
3114 echo "$ac_t""no" 1>&6
3119 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3120 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3121 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3123 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3124 echo "configure:3125: checking for getopt_long" >&5
3125 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 /* System header to define __stub macros and hopefully few prototypes,
3132 which can conflict with char getopt_long(); below. */
3134 /* Override any gcc2 internal prototype to avoid an error. */
3135 /* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3141 /* The GNU C library defines this for functions which it implements
3142 to always fail with ENOSYS. Some functions are actually named
3143 something starting with __ and the normal name is an alias. */
3144 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3152 if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3154 eval "ac_cv_func_getopt_long=yes"
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3159 eval "ac_cv_func_getopt_long=no"
3164 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 cat >> confdefs.h <<\EOF
3167 #define HAVE_GETOPT_LONG 1
3171 echo "$ac_t""no" 1>&6
3176 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3177 echo "configure:3178: checking for working strcoll" >&5
3178 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 if test "$cross_compiling" = yes; then
3182 ac_cv_func_strcoll_works=no
3184 cat > conftest.$ac_ext <<EOF
3185 #line 3186 "configure"
3186 #include "confdefs.h"
3190 exit (strcoll ("abc", "def") >= 0 ||
3191 strcoll ("ABC", "DEF") >= 0 ||
3192 strcoll ("123", "456") >= 0);
3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3197 ac_cv_func_strcoll_works=yes
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 ac_cv_func_strcoll_works=no
3209 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3210 if test $ac_cv_func_strcoll_works = yes; then
3211 cat >> confdefs.h <<\EOF
3212 #define HAVE_STRCOLL 1
3218 for ac_hdr in varargs.h \
3219 sys/ptem.h sys/pte.h sys/stream.h
3221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3223 echo "configure:3224: checking for $ac_hdr" >&5
3224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3233 { (eval echo configure:3234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3235 if test -z "$ac_err"; then
3237 eval "ac_cv_header_$ac_safe=yes"
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3243 eval "ac_cv_header_$ac_safe=no"
3247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3248 echo "$ac_t""yes" 1>&6
3249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3250 cat >> confdefs.h <<EOF
3251 #define $ac_tr_hdr 1
3255 echo "$ac_t""no" 1>&6
3260 # End of readline stuff
3261 # -----------------------------------------------------------------------
3264 # ---------------------------------------------------
3265 # Check for GMP support/directory
3266 # ---------------------------------------------------
3269 # Check whether --with-gmp or --without-gmp was given.
3270 if test "${with_gmp+set}" = set; then
3276 if test "$with_gmp" != "yes"; then
3277 GMP_INC="-I$with_gmp"
3279 GMP_LDFLAGS="-L$with_gmp"
3281 with_gmp="/usr/include"
3283 ac_safe=`echo "$with_gmp/gmp.h" | sed 'y%./+-%__p_%'`
3284 echo $ac_n "checking for $with_gmp/gmp.h""... $ac_c" 1>&6
3285 echo "configure:3286: checking for $with_gmp/gmp.h" >&5
3286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 #include <$with_gmp/gmp.h>
3294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3295 { (eval echo configure:3296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3297 if test -z "$ac_err"; then
3299 eval "ac_cv_header_$ac_safe=yes"
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3305 eval "ac_cv_header_$ac_safe=no"
3309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3310 echo "$ac_t""yes" 1>&6
3311 echo "$ac_t""yes" 1>&6
3312 cat >> confdefs.h <<\EOF
3320 echo "$ac_t""no" 1>&6
3321 { echo "configure: error: *** gmp library missing" 1>&2; exit 1; }
3331 # check for standard gmp library
3332 ac_safe=`echo "/usr/include/gmp.h" | sed 'y%./+-%__p_%'`
3333 echo $ac_n "checking for /usr/include/gmp.h""... $ac_c" 1>&6
3334 echo "configure:3335: checking for /usr/include/gmp.h" >&5
3335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 #include </usr/include/gmp.h>
3343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3344 { (eval echo configure:3345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3346 if test -z "$ac_err"; then
3348 eval "ac_cv_header_$ac_safe=yes"
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3354 eval "ac_cv_header_$ac_safe=no"
3358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3360 echo "$ac_t""yes" 1>&6
3361 cat >> confdefs.h <<\EOF
3370 echo "$ac_t""no" 1>&6
3372 # Did not find standard library, so use our own
3373 echo "$ac_t""yes" 1>&6
3374 cat >> confdefs.h <<\EOF
3380 GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3382 GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3383 GMP_SRC="${TOP_DIR}/depkgs/gmp"
3397 # -----------------------------------------------------------------------
3400 # ---------------------------------------------------
3401 # Check for CWEB support/directory
3402 # ---------------------------------------------------
3406 # Check whether --with-cweb or --without-cweb was given.
3407 if test "${with_cweb+set}" = set; then
3408 withval="$with_cweb"
3410 case "$with_cweb" in
3413 if test "$with_cweb" != "yes"; then
3414 CWEB_INC="-I$with_cweb"
3416 CWEB_LDFLAGS="-L$with_cweb"
3418 with_cweb="/usr/include"
3420 ac_safe=`echo "$with_cweb/cweb.h" | sed 'y%./+-%__p_%'`
3421 echo $ac_n "checking for $with_cweb/cweb.h""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $with_cweb/cweb.h" >&5
3423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 #include <$with_cweb/cweb.h>
3431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3432 { (eval echo configure:3433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3434 if test -z "$ac_err"; then
3436 eval "ac_cv_header_$ac_safe=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_header_$ac_safe=no"
3446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 echo "$ac_t""yes" 1>&6
3449 cat >> confdefs.h <<\EOF
3457 echo "$ac_t""no" 1>&6
3458 { echo "configure: error: *** cweb library missing" 1>&2; exit 1; }
3468 # check for standard cweb library
3469 ac_safe=`echo "/usr/include/cweb.h" | sed 'y%./+-%__p_%'`
3470 echo $ac_n "checking for /usr/include/cweb.h""... $ac_c" 1>&6
3471 echo "configure:3472: checking for /usr/include/cweb.h" >&5
3472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 #include </usr/include/cweb.h>
3480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3481 { (eval echo configure:3482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3483 if test -z "$ac_err"; then
3485 eval "ac_cv_header_$ac_safe=yes"
3488 echo "configure: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3491 eval "ac_cv_header_$ac_safe=no"
3495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 echo "$ac_t""yes" 1>&6
3498 cat >> confdefs.h <<\EOF
3507 echo "$ac_t""no" 1>&6
3509 # Did not find starndard library, so use our own
3510 echo "$ac_t""yes" 1>&6
3511 cat >> confdefs.h <<\EOF
3517 CWEB=${TOP_DIR}/depkgs/cweb
3518 CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3520 CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3521 CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3536 # -----------------------------------------------------------------------
3540 # -----------------------------------------------------------
3541 # Check whether user wants TCP wrappers support (default off)
3542 # -----------------------------------------------------------
3544 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3545 if test "${with_tcp_wrappers+set}" = set; then
3546 withval="$with_tcp_wrappers"
3548 if test "x$withval" != "xno" ; then
3550 LIBS="$LIBS -lwrap -lnsl"
3551 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3552 echo "configure:3553: checking for libwrap" >&5
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3557 int deny_severity = 0;
3558 int allow_severity = 0;
3559 struct request_info *req;
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3567 echo "$ac_t""yes" 1>&6
3568 cat >> confdefs.h <<\EOF
3569 #define HAVE_LIBWRAP 1
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3588 # ------------------------------------------
3589 # Where to place working dir
3590 # ------------------------------------------
3591 working_dir=`eval echo ${sysconfdir}/working`
3592 # Check whether --with-working-dir or --without-working-dir was given.
3593 if test "${with_working_dir+set}" = set; then
3594 withval="$with_working_dir"
3596 if test "x$withval" != "xno" ; then
3597 working_dir=$withval
3606 # ------------------------------------------
3607 # Where to send dump email
3608 # ------------------------------------------
3609 dump_email=root@localhost
3610 # Check whether --with-dump-email or --without-dump-email was given.
3611 if test "${with_dump_email+set}" = set; then
3612 withval="$with_dump_email"
3614 if test "x$withval" != "xno" ; then
3624 # ------------------------------------------
3625 # Where to send job email
3626 # ------------------------------------------
3627 job_email=root@localhost
3628 # Check whether --with-job-email or --without-job-email was given.
3629 if test "${with_job_email+set}" = set; then
3630 withval="$with_job_email"
3632 if test "x$withval" != "xno" ; then
3642 # ------------------------------------------
3643 # Where to find smtp host
3644 # ------------------------------------------
3646 # Check whether --with-smtp_host or --without-smtp_host was given.
3647 if test "${with_smtp_host+set}" = set; then
3648 withval="$with_smtp_host"
3650 if test "x$withval" != "xno" ; then
3661 # ------------------------------------
3662 # Where to place pid files
3663 # ------------------------------------
3665 # Check whether --with-pid-dir or --without-pid-dir was given.
3666 if test "${with_pid_dir+set}" = set; then
3667 withval="$with_pid_dir"
3669 if test "x$withval" != "xno" ; then
3677 # make sure the pid directory exists
3678 if test ! -d $piddir ; then
3679 piddir=`eval echo ${sysconfdir}`
3681 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3685 cat >> confdefs.h <<EOF
3686 #define _PATH_BACULA_PIDDIR "$piddir"
3692 # ------------------------------------
3693 # Where to place subsys "lock file"
3694 # ------------------------------------
3695 subsysdir=/var/run/subsys
3696 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3697 if test "${with_subsys_dir+set}" = set; then
3698 withval="$with_subsys_dir"
3700 if test "x$withval" != "xno" ; then
3708 # make sure the pid directory exists
3709 if test ! -d $subsysdir ; then
3710 subsysdir=`eval echo ${sysconfdir}`
3712 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3720 # ------------------------------------
3721 # Where to start assigning ports
3722 # ------------------------------------
3724 # Check whether --with-baseport or --without-baseport was given.
3725 if test "${with_baseport+set}" = set; then
3726 withval="$with_baseport"
3728 if test "x$withval" != "xno" ; then
3737 dir_port=`expr $baseport`
3738 fd_port=`expr $baseport + 1`
3739 sd_port=`expr $fd_port + 1`
3746 # ------------------------------------------
3747 # Generate passwords
3748 # ------------------------------------------
3750 # Check whether --with-dir-password or --without-dir-password was given.
3751 if test "${with_dir_password+set}" = set; then
3752 withval="$with_dir_password"
3754 if test "x$withval" != "xno" ; then
3755 dir_password=$withval
3762 if test "x$dir_password" = "x" ; then
3763 if test "x$OPENSSL" = "xnone" ; then
3764 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3767 key=`openssl rand -base64 33`
3773 # Check whether --with-fd-password or --without-fd-password was given.
3774 if test "${with_fd_password+set}" = set; then
3775 withval="$with_fd_password"
3777 if test "x$withval" != "xno" ; then
3778 fd_password=$withval
3785 if test "x$fd_password" = "x" ; then
3786 if test "x$OPENSSL" = "xnone" ; then
3787 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3790 key=`openssl rand -base64 33`
3796 # Check whether --with-sd-password or --without-sd-password was given.
3797 if test "${with_sd_password+set}" = set; then
3798 withval="$with_sd_password"
3800 if test "x$withval" != "xno" ; then
3801 sd_password=$withval
3808 if test "x$sd_password" = "x" ; then
3809 if test "x$OPENSSL" = "xnone" ; then
3810 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3813 key=`openssl rand -base64 33`
3826 # ------------------------------------------------
3827 # Bacula check for various SQL database engines
3828 # ------------------------------------------------
3831 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3832 echo "configure:3833: checking for MySQL support" >&5
3833 # Check whether --with-mysql or --without-mysql was given.
3834 if test "${with_mysql+set}" = set; then
3835 withval="$with_mysql"
3837 if test "$withval" != "no"; then
3838 if test "$withval" = "yes"; then
3839 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3840 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3841 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3842 MYSQL_BINDIR=/usr/local/mysql/bin
3843 elif test -f /usr/include/mysql/mysql.h; then
3844 MYSQL_INCDIR=/usr/include/mysql
3845 MYSQL_LIBDIR=/usr/lib/mysql
3846 MYSQL_BINDIR=/usr/bin
3847 elif test -f /usr/include/mysql.h; then
3848 MYSQL_INCDIR=/usr/include
3849 MYSQL_LIBDIR=/usr/lib
3850 MYSQL_BINDIR=/usr/bin
3851 elif test -f /usr/local/include/mysql/mysql.h; then
3852 MYSQL_INCDIR=/usr/local/include/mysql
3853 MYSQL_LIBDIR=/usr/local/lib/mysql
3854 MYSQL_BINDIR=/usr/local/bin
3855 elif test -f /usr/local/include/mysql.h; then
3856 MYSQL_INCDIR=/usr/local/include
3857 MYSQL_LIBDIR=/usr/local/lib
3858 MYSQL_BINDIR=/usr/local/bin
3860 echo "$ac_t""no" 1>&6
3861 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3864 if test -f $withval/include/mysql/mysql.h; then
3865 MYSQL_INCDIR=$withval/include/mysql
3866 MYSQL_LIBDIR=$withval/lib/mysql
3867 MYSQL_BINDIR=$withval/bin
3868 elif test -f $withval/include/mysql.h; then
3869 MYSQL_INCDIR=$withval/include
3870 MYSQL_LIBDIR=$withval/lib
3871 MYSQL_BINDIR=$withval/bin
3873 echo "$ac_t""no" 1>&6
3874 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3877 SQL_INCLUDE=-I$MYSQL_INCDIR
3878 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
3879 SQL_BINDIR=$MYSQL_BINDIR
3881 cat >> confdefs.h <<\EOF
3882 #define HAVE_MYSQL 1
3885 echo "$ac_t""yes" 1>&6
3892 echo "$ac_t""no" 1>&6
3897 echo "$ac_t""no" 1>&6
3902 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
3903 if test "${with_embedded_mysql+set}" = set; then
3904 withval="$with_embedded_mysql"
3906 if test "$withval" != "no"; then
3907 if test "$withval" = "yes"; then
3908 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3909 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3910 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3911 MYSQL_BINDIR=/usr/local/mysql/bin
3912 elif test -f /usr/include/mysql/mysql.h; then
3913 MYSQL_INCDIR=/usr/include/mysql
3914 MYSQL_LIBDIR=/usr/lib/mysql
3915 MYSQL_BINDIR=/usr/bin
3916 elif test -f /usr/include/mysql.h; then
3917 MYSQL_INCDIR=/usr/include
3918 MYSQL_LIBDIR=/usr/lib
3919 MYSQL_BINDIR=/usr/bin
3920 elif test -f /usr/local/include/mysql/mysql.h; then
3921 MYSQL_INCDIR=/usr/local/include/mysql
3922 MYSQL_LIBDIR=/usr/local/lib/mysql
3923 MYSQL_BINDIR=/usr/local/bin
3924 elif test -f /usr/local/include/mysql.h; then
3925 MYSQL_INCDIR=/usr/local/include
3926 MYSQL_LIBDIR=/usr/local/lib
3927 MYSQL_BINDIR=/usr/local/bin
3929 echo "$ac_t""no" 1>&6
3930 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3933 if test -f $withval/include/mysql/mysql.h; then
3934 MYSQL_INCDIR=$withval/include/mysql
3935 MYSQL_LIBDIR=$withval/lib/mysql
3936 MYSQL_BINDIR=$withval/bin
3937 elif test -f $withval/include/mysql.h; then
3938 MYSQL_INCDIR=$withval/include
3939 MYSQL_LIBDIR=$withval/lib
3940 MYSQL_BINDIR=$withval/bin
3942 echo "$ac_t""no" 1>&6
3943 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3946 SQL_INCLUDE=-I$MYSQL_INCDIR
3947 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
3948 SQL_BINDIR=$MYSQL_BINDIR
3950 cat >> confdefs.h <<\EOF
3951 #define HAVE_MYSQL 1
3954 cat >> confdefs.h <<\EOF
3955 #define HAVE_EMBEDDED_MYSQL 1
3958 echo "$ac_t""yes" 1>&6
3965 echo "$ac_t""no" 1>&6
3970 echo "$ac_t""no" 1>&6
3983 # ------------------------------------------------
3984 # Bacula check for various SQL database engines
3985 # ------------------------------------------------
3988 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3989 echo "configure:3990: checking for SQLite support" >&5
3990 # Check whether --with-sqlite or --without-sqlite was given.
3991 if test "${with_sqlite+set}" = set; then
3992 withval="$with_sqlite"
3994 if test "$withval" != "no"; then
3995 if test "$withval" = "yes"; then
3996 if test -f /usr/local/include/sqlite.h; then
3997 SQLITE_INCDIR=/usr/local/include
3998 SQLITE_LIBDIR=/usr/local/lib
3999 SQLITE_BINDIR=/usr/local/bin
4000 elif test -f /usr/include/sqlite.h; then
4001 SQLITE_INCDIR=/usr/include
4002 SQLITE_LIBDIR=/usr/lib
4003 SQLITE_BINDIR=/usr/bin
4005 echo "$ac_t""no" 1>&6
4006 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
4009 if test -f $withval/sqlite.h; then
4010 SQLITE_INCDIR=$withval
4011 SQLITE_LIBDIR=$withval
4012 SQLITE_BINDIR=$withval
4014 echo "$ac_t""no" 1>&6
4015 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
4018 SQL_INCLUDE=-I$SQLITE_INCDIR
4019 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
4020 SQL_BINDIR=$SQLITE_BINDIR
4022 cat >> confdefs.h <<\EOF
4023 #define HAVE_SQLITE 1
4026 echo "$ac_t""yes" 1>&6
4033 echo "$ac_t""no" 1>&6
4038 echo "$ac_t""no" 1>&6
4051 cat >> confdefs.h <<\EOF
4052 #define PROTOTYPES 1
4056 if test -z "$CFLAGS"; then
4057 if test -z "$CCOPTS"; then
4064 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4065 echo "configure:4066: checking for mingw32 environment" >&5
4066 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4077 if { (eval echo configure:4078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4090 echo "$ac_t""$ac_cv_mingw32" 1>&6
4092 test "$ac_cv_mingw32" = yes && MINGW32=yes
4095 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4096 echo "configure:4097: checking for executable suffix" >&5
4097 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4104 echo 'int main () { return 0; }' > conftest.$ac_ext
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4107 for file in conftest.*; do
4109 *.c | *.o | *.obj) ;;
4110 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4114 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4117 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4122 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4123 echo "$ac_t""${ac_cv_exeext}" 1>&6
4127 echo $ac_n "checking build system type""... $ac_c" 1>&6
4128 echo "configure:4129: checking build system type" >&5
4131 case "$build_alias" in
4134 NONE) build_alias=$host_alias ;;
4135 *) build_alias=$nonopt ;;
4139 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4140 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4141 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4142 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4143 echo "$ac_t""$build" 1>&6
4145 if test $host != $build; then
4146 ac_tool_prefix=${host_alias}-
4152 # Check whether --enable-largefile or --disable-largefile was given.
4153 if test "${enable_largefile+set}" = set; then
4154 enableval="$enable_largefile"
4158 if test "$enable_largefile" != no; then
4159 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4160 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4162 echo "configure:4163: checking for $ac_word" >&5
4163 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 if test -n "$GETCONF"; then
4167 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4171 for ac_dir in $ac_dummy; do
4172 test -z "$ac_dir" && ac_dir=.
4173 if test -f $ac_dir/$ac_word; then
4174 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4179 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4182 GETCONF="$ac_cv_prog_GETCONF"
4183 if test -n "$GETCONF"; then
4184 echo "$ac_t""$GETCONF" 1>&6
4186 echo "$ac_t""no" 1>&6
4191 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4192 echo "configure:4193: checking for CFLAGS value to request large file support" >&5
4193 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4197 ac_cv_sys_largefile_CFLAGS=no
4199 # IRIX 6.2 and later require cc -n32.
4200 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4201 if test "$GCC" != yes; then
4202 ac_cv_sys_largefile_CFLAGS=-n32
4205 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4217 echo "configure: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4220 ac_cv_sys_largefile_CFLAGS=no
4228 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4229 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4230 echo "configure:4231: checking for LDFLAGS value to request large file support" >&5
4231 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4235 ac_cv_sys_largefile_LDFLAGS=no
4240 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4241 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4242 echo "configure:4243: checking for LIBS value to request large file support" >&5
4243 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4246 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4247 ac_cv_sys_largefile_LIBS=no
4252 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4254 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4257 -D_FILE_OFFSET_BITS=*) ;;
4258 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4259 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4265 '') CPPFLAGS="$ac_flag" ;;
4266 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4274 '') CFLAGS="$ac_flag" ;;
4275 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4280 case "$ac_cv_sys_largefile_LDFLAGS" in
4284 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4285 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4288 case "$ac_cv_sys_largefile_LIBS" in
4292 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4293 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4296 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4297 echo "configure:4298: checking for _FILE_OFFSET_BITS" >&5
4298 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4301 ac_cv_sys_file_offset_bits=no
4303 # HP-UX 10.20 and later
4304 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4305 ac_cv_sys_file_offset_bits=64 ;;
4307 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4309 -D_FILE_OFFSET_BITS)
4310 ac_cv_sys_file_offset_bits=1 ;;
4311 -D_FILE_OFFSET_BITS=*)
4312 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4318 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4319 if test "$ac_cv_sys_file_offset_bits" != no; then
4320 cat >> confdefs.h <<EOF
4321 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4325 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4326 echo "configure:4327: checking for _LARGEFILE_SOURCE" >&5
4327 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 ac_cv_sys_largefile_source=no
4332 # HP-UX 10.20 and later
4333 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4334 ac_cv_sys_largefile_source=1 ;;
4336 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4338 -D_LARGEFILE_SOURCE)
4339 ac_cv_sys_largefile_source=1 ;;
4340 -D_LARGEFILE_SOURCE=*)
4341 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4347 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4348 if test "$ac_cv_sys_largefile_source" != no; then
4349 cat >> confdefs.h <<EOF
4350 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4354 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4355 echo "configure:4356: checking for _LARGE_FILES" >&5
4356 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 ac_cv_sys_large_files=no
4362 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4363 ac_cv_sys_large_files=1 ;;
4365 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4368 ac_cv_sys_large_files=1 ;;
4370 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4376 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4377 if test "$ac_cv_sys_large_files" != no; then
4378 cat >> confdefs.h <<EOF
4379 #define _LARGE_FILES $ac_cv_sys_large_files
4387 # If we find X, set shell vars x_includes and x_libraries to the
4388 # paths, otherwise set no_x=yes.
4389 # Uses ac_ vars as temps to allow command line to override cache and checks.
4390 # --without-x overrides everything else, but does not touch the cache.
4391 echo $ac_n "checking for X""... $ac_c" 1>&6
4392 echo "configure:4393: checking for X" >&5
4394 # Check whether --with-x or --without-x was given.
4395 if test "${with_x+set}" = set; then
4400 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4401 if test "x$with_x" = xno; then
4402 # The user explicitly disabled X.
4405 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4406 # Both variables are already set.
4409 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 # One or both of the vars are not set, and there is no cached value.
4413 ac_x_includes=NO ac_x_libraries=NO
4415 if mkdir conftestdir; then
4417 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4418 cat > Imakefile <<'EOF'
4420 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4422 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4424 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4425 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4426 for ac_extension in a so sl; do
4427 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4428 test -f $ac_im_libdir/libX11.$ac_extension; then
4429 ac_im_usrlibdir=$ac_im_libdir; break
4432 # Screen out bogus values from the imake configuration. They are
4433 # bogus both because they are the default anyway, and because
4434 # using them would break gcc on systems where it needs fixed includes.
4435 case "$ac_im_incroot" in
4437 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4439 case "$ac_im_usrlibdir" in
4441 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4448 if test "$ac_x_includes" = NO; then
4449 # Guess where to find include files, by looking for this one X11 .h file.
4450 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4452 # First, try using that file with no special directory specified.
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 #include <$x_direct_test_include>
4458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4459 { (eval echo configure:4460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4461 if test -z "$ac_err"; then
4463 # We can compile using X headers with no special include directory.
4467 echo "configure: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4470 # Look for the header file in a standard set of common directories.
4471 # Check X11 before X11Rn because it is often a symlink to the current release.
4474 /usr/X11R6/include \
4475 /usr/X11R5/include \
4476 /usr/X11R4/include \
4479 /usr/include/X11R6 \
4480 /usr/include/X11R5 \
4481 /usr/include/X11R4 \
4483 /usr/local/X11/include \
4484 /usr/local/X11R6/include \
4485 /usr/local/X11R5/include \
4486 /usr/local/X11R4/include \
4488 /usr/local/include/X11 \
4489 /usr/local/include/X11R6 \
4490 /usr/local/include/X11R5 \
4491 /usr/local/include/X11R4 \
4495 /usr/XFree86/include/X11 \
4498 /usr/local/include \
4499 /usr/unsupported/include \
4500 /usr/athena/include \
4501 /usr/local/x11r5/include \
4502 /usr/lpp/Xamples/include \
4504 /usr/openwin/include \
4505 /usr/openwin/share/include \
4508 if test -r "$ac_dir/$x_direct_test_include"; then
4509 ac_x_includes=$ac_dir
4515 fi # $ac_x_includes = NO
4517 if test "$ac_x_libraries" = NO; then
4518 # Check for the libraries.
4520 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4521 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4523 # See if we find them without any special options.
4524 # Don't add to $LIBS permanently.
4525 ac_save_LIBS="$LIBS"
4526 LIBS="-l$x_direct_test_library $LIBS"
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4532 ${x_direct_test_function}()
4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4537 LIBS="$ac_save_LIBS"
4538 # We can link X programs with no special library path.
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 LIBS="$ac_save_LIBS"
4545 # First see if replacing the include by lib works.
4546 # Check X11 before X11Rn because it is often a symlink to the current release.
4547 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4558 /usr/local/X11/lib \
4559 /usr/local/X11R6/lib \
4560 /usr/local/X11R5/lib \
4561 /usr/local/X11R4/lib \
4563 /usr/local/lib/X11 \
4564 /usr/local/lib/X11R6 \
4565 /usr/local/lib/X11R5 \
4566 /usr/local/lib/X11R4 \
4570 /usr/XFree86/lib/X11 \
4574 /usr/unsupported/lib \
4576 /usr/local/x11r5/lib \
4577 /usr/lpp/Xamples/lib \
4581 /usr/openwin/share/lib \
4584 for ac_extension in a so sl; do
4585 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4586 ac_x_libraries=$ac_dir
4593 fi # $ac_x_libraries = NO
4595 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4596 # Didn't find X anywhere. Cache the known absence of X.
4597 ac_cv_have_x="have_x=no"
4599 # Record where we found X for the cache.
4600 ac_cv_have_x="have_x=yes \
4601 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4605 eval "$ac_cv_have_x"
4608 if test "$have_x" != yes; then
4609 echo "$ac_t""$have_x" 1>&6
4612 # If each of the values was on the command line, it overrides each guess.
4613 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4614 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4615 # Update the cache value to reflect the command line values.
4616 ac_cv_have_x="have_x=yes \
4617 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4618 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4621 if test "$no_x" = yes; then
4622 # Not all programs may use this symbol, but it does not hurt to define it.
4623 cat >> confdefs.h <<\EOF
4624 #define X_DISPLAY_MISSING 1
4627 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4629 if test -n "$x_includes"; then
4630 X_CFLAGS="$X_CFLAGS -I$x_includes"
4633 # It would also be nice to do this for all -L options, not just this one.
4634 if test -n "$x_libraries"; then
4635 X_LIBS="$X_LIBS -L$x_libraries"
4636 # For Solaris; some versions of Sun CC require a space after -R and
4637 # others require no space. Words are not sufficient . . . .
4638 case "`(uname -sr) 2>/dev/null`" in
4640 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4641 echo "configure:4642: checking whether -R must be followed by a space" >&5
4642 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4661 if test $ac_R_nospace = yes; then
4662 echo "$ac_t""no" 1>&6
4663 X_LIBS="$X_LIBS -R$x_libraries"
4665 LIBS="$ac_xsave_LIBS -R $x_libraries"
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4684 if test $ac_R_space = yes; then
4685 echo "$ac_t""yes" 1>&6
4686 X_LIBS="$X_LIBS -R $x_libraries"
4688 echo "$ac_t""neither works" 1>&6
4691 LIBS="$ac_xsave_LIBS"
4695 # Check for system-dependent libraries X programs must link with.
4696 # Do this before checking for the system-independent R6 libraries
4697 # (-lICE), since we may need -lsocket or whatever for X linking.
4699 if test "$ISC" = yes; then
4700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4702 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4703 # libraries were built with DECnet support. And karl@cs.umb.edu says
4704 # the Alpha needs dnet_stub (dnet does not exist).
4705 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4706 echo "configure:4707: checking for dnet_ntoa in -ldnet" >&5
4707 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 ac_save_LIBS="$LIBS"
4713 cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4716 /* Override any gcc2 internal prototype to avoid an error. */
4717 /* We use char because int might match the return type of a gcc2
4718 builtin and then its argument prototype would still apply. */
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727 eval "ac_cv_lib_$ac_lib_var=yes"
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4732 eval "ac_cv_lib_$ac_lib_var=no"
4735 LIBS="$ac_save_LIBS"
4738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4742 echo "$ac_t""no" 1>&6
4745 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4746 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4747 echo "configure:4748: checking for dnet_ntoa in -ldnet_stub" >&5
4748 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4752 ac_save_LIBS="$LIBS"
4753 LIBS="-ldnet_stub $LIBS"
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757 /* Override any gcc2 internal prototype to avoid an error. */
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768 eval "ac_cv_lib_$ac_lib_var=yes"
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4773 eval "ac_cv_lib_$ac_lib_var=no"
4776 LIBS="$ac_save_LIBS"
4779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4783 echo "$ac_t""no" 1>&6
4788 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4789 # to get the SysV transport functions.
4790 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4792 # The nsl library prevents programs from opening the X display
4793 # on Irix 5.2, according to dickey@clark.net.
4794 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4795 echo "configure:4796: checking for gethostbyname" >&5
4796 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 /* System header to define __stub macros and hopefully few prototypes,
4803 which can conflict with char gethostbyname(); below. */
4805 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4808 char gethostbyname();
4812 /* The GNU C library defines this for functions which it implements
4813 to always fail with ENOSYS. Some functions are actually named
4814 something starting with __ and the normal name is an alias. */
4815 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4823 if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4825 eval "ac_cv_func_gethostbyname=yes"
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4830 eval "ac_cv_func_gethostbyname=no"
4835 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4836 echo "$ac_t""yes" 1>&6
4839 echo "$ac_t""no" 1>&6
4842 if test $ac_cv_func_gethostbyname = no; then
4843 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4844 echo "configure:4845: checking for gethostbyname in -lnsl" >&5
4845 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 ac_save_LIBS="$LIBS"
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 /* We use char because int might match the return type of a gcc2
4856 builtin and then its argument prototype would still apply. */
4857 char gethostbyname();
4863 if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4865 eval "ac_cv_lib_$ac_lib_var=yes"
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4870 eval "ac_cv_lib_$ac_lib_var=no"
4873 LIBS="$ac_save_LIBS"
4876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4877 echo "$ac_t""yes" 1>&6
4878 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4880 echo "$ac_t""no" 1>&6
4885 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4886 # socket/setsockopt and other routines are undefined under SCO ODT
4887 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4888 # on later versions), says simon@lia.di.epfl.ch: it contains
4889 # gethostby* variants that don't use the nameserver (or something).
4890 # -lsocket must be given before -lnsl if both are needed.
4891 # We assume that if connect needs -lnsl, so does gethostbyname.
4892 echo $ac_n "checking for connect""... $ac_c" 1>&6
4893 echo "configure:4894: checking for connect" >&5
4894 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4897 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4900 /* System header to define __stub macros and hopefully few prototypes,
4901 which can conflict with char connect(); below. */
4903 /* Override any gcc2 internal prototype to avoid an error. */
4904 /* We use char because int might match the return type of a gcc2
4905 builtin and then its argument prototype would still apply. */
4910 /* The GNU C library defines this for functions which it implements
4911 to always fail with ENOSYS. Some functions are actually named
4912 something starting with __ and the normal name is an alias. */
4913 #if defined (__stub_connect) || defined (__stub___connect)
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4923 eval "ac_cv_func_connect=yes"
4925 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4928 eval "ac_cv_func_connect=no"
4933 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4937 echo "$ac_t""no" 1>&6
4940 if test $ac_cv_func_connect = no; then
4941 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4942 echo "configure:4943: checking for connect in -lsocket" >&5
4943 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4947 ac_save_LIBS="$LIBS"
4948 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 /* Override any gcc2 internal prototype to avoid an error. */
4953 /* We use char because int might match the return type of a gcc2
4954 builtin and then its argument prototype would still apply. */
4961 if { (eval echo configure:4962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4963 eval "ac_cv_lib_$ac_lib_var=yes"
4965 echo "configure: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4968 eval "ac_cv_lib_$ac_lib_var=no"
4971 LIBS="$ac_save_LIBS"
4974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4975 echo "$ac_t""yes" 1>&6
4976 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4978 echo "$ac_t""no" 1>&6
4983 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4984 echo $ac_n "checking for remove""... $ac_c" 1>&6
4985 echo "configure:4986: checking for remove" >&5
4986 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 /* System header to define __stub macros and hopefully few prototypes,
4993 which can conflict with char remove(); below. */
4995 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
5002 /* The GNU C library defines this for functions which it implements
5003 to always fail with ENOSYS. Some functions are actually named
5004 something starting with __ and the normal name is an alias. */
5005 #if defined (__stub_remove) || defined (__stub___remove)
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5015 eval "ac_cv_func_remove=yes"
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5020 eval "ac_cv_func_remove=no"
5025 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5029 echo "$ac_t""no" 1>&6
5032 if test $ac_cv_func_remove = no; then
5033 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5034 echo "configure:5035: checking for remove in -lposix" >&5
5035 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 ac_save_LIBS="$LIBS"
5040 LIBS="-lposix $LIBS"
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5053 if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5055 eval "ac_cv_lib_$ac_lib_var=yes"
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5060 eval "ac_cv_lib_$ac_lib_var=no"
5063 LIBS="$ac_save_LIBS"
5066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5067 echo "$ac_t""yes" 1>&6
5068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5070 echo "$ac_t""no" 1>&6
5075 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5076 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5077 echo "configure:5078: checking for shmat" >&5
5078 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5084 /* System header to define __stub macros and hopefully few prototypes,
5085 which can conflict with char shmat(); below. */
5087 /* Override any gcc2 internal prototype to avoid an error. */
5088 /* We use char because int might match the return type of a gcc2
5089 builtin and then its argument prototype would still apply. */
5094 /* The GNU C library defines this for functions which it implements
5095 to always fail with ENOSYS. Some functions are actually named
5096 something starting with __ and the normal name is an alias. */
5097 #if defined (__stub_shmat) || defined (__stub___shmat)
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5107 eval "ac_cv_func_shmat=yes"
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5112 eval "ac_cv_func_shmat=no"
5117 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5121 echo "$ac_t""no" 1>&6
5124 if test $ac_cv_func_shmat = no; then
5125 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5126 echo "configure:5127: checking for shmat in -lipc" >&5
5127 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5131 ac_save_LIBS="$LIBS"
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 /* Override any gcc2 internal prototype to avoid an error. */
5137 /* We use char because int might match the return type of a gcc2
5138 builtin and then its argument prototype would still apply. */
5145 if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5147 eval "ac_cv_lib_$ac_lib_var=yes"
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5152 eval "ac_cv_lib_$ac_lib_var=no"
5155 LIBS="$ac_save_LIBS"
5158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5160 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5162 echo "$ac_t""no" 1>&6
5168 # Check for libraries that X11R6 Xt/Xaw programs need.
5169 ac_save_LDFLAGS="$LDFLAGS"
5170 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5171 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5172 # check for ICE first), but we must link in the order -lSM -lICE or
5173 # we get undefined symbols. So assume we have SM if we have ICE.
5174 # These have to be linked with before -lX11, unlike the other
5175 # libraries we check for below, so use a different variable.
5176 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5177 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5178 echo "configure:5179: checking for IceConnectionNumber in -lICE" >&5
5179 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 ac_save_LIBS="$LIBS"
5184 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 /* Override any gcc2 internal prototype to avoid an error. */
5189 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */
5191 char IceConnectionNumber();
5194 IceConnectionNumber()
5197 if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5199 eval "ac_cv_lib_$ac_lib_var=yes"
5201 echo "configure: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5204 eval "ac_cv_lib_$ac_lib_var=no"
5207 LIBS="$ac_save_LIBS"
5210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5212 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5214 echo "$ac_t""no" 1>&6
5217 LDFLAGS="$ac_save_LDFLAGS"
5240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5242 echo "configure:5243: checking for $ac_hdr" >&5
5243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5252 { (eval echo configure:5253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5254 if test -z "$ac_err"; then
5256 eval "ac_cv_header_$ac_safe=yes"
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 eval "ac_cv_header_$ac_safe=no"
5266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5267 echo "$ac_t""yes" 1>&6
5268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5269 cat >> confdefs.h <<EOF
5270 #define $ac_tr_hdr 1
5274 echo "$ac_t""no" 1>&6
5278 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5279 echo "configure:5280: checking for ANSI C header files" >&5
5280 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5281 echo $ac_n "(cached) $ac_c" 1>&6
5283 cat > conftest.$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5292 { (eval echo configure:5293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5294 if test -z "$ac_err"; then
5296 ac_cv_header_stdc=yes
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5302 ac_cv_header_stdc=no
5306 if test $ac_cv_header_stdc = yes; then
5307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5308 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314 egrep "memchr" >/dev/null 2>&1; then
5318 ac_cv_header_stdc=no
5324 if test $ac_cv_header_stdc = yes; then
5325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5326 cat > conftest.$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 egrep "free" >/dev/null 2>&1; then
5336 ac_cv_header_stdc=no
5342 if test $ac_cv_header_stdc = yes; then
5343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5344 if test "$cross_compiling" = yes; then
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5351 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5352 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5354 int main () { int i; for (i = 0; i < 256; i++)
5355 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5366 ac_cv_header_stdc=no
5374 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5375 if test $ac_cv_header_stdc = yes; then
5376 cat >> confdefs.h <<\EOF
5377 #define STDC_HEADERS 1
5382 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5383 echo "configure:5384: checking whether sys/types.h defines makedev" >&5
5384 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5387 cat > conftest.$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5390 #include <sys/types.h>
5392 return makedev(0, 0);
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5397 ac_cv_header_sys_types_h_makedev=yes
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5402 ac_cv_header_sys_types_h_makedev=no
5408 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5410 if test $ac_cv_header_sys_types_h_makedev = no; then
5411 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5412 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5413 echo "configure:5414: checking for sys/mkdev.h" >&5
5414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 #include <sys/mkdev.h>
5422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5423 { (eval echo configure:5424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5425 if test -z "$ac_err"; then
5427 eval "ac_cv_header_$ac_safe=yes"
5430 echo "configure: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5433 eval "ac_cv_header_$ac_safe=no"
5437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5438 echo "$ac_t""yes" 1>&6
5439 cat >> confdefs.h <<\EOF
5440 #define MAJOR_IN_MKDEV 1
5444 echo "$ac_t""no" 1>&6
5448 if test $ac_cv_header_sys_mkdev_h = no; then
5449 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5450 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5451 echo "configure:5452: checking for sys/sysmacros.h" >&5
5452 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5455 cat > conftest.$ac_ext <<EOF
5456 #line 5457 "configure"
5457 #include "confdefs.h"
5458 #include <sys/sysmacros.h>
5460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5461 { (eval echo configure:5462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5463 if test -z "$ac_err"; then
5465 eval "ac_cv_header_$ac_safe=yes"
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 eval "ac_cv_header_$ac_safe=no"
5475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5476 echo "$ac_t""yes" 1>&6
5477 cat >> confdefs.h <<\EOF
5478 #define MAJOR_IN_SYSMACROS 1
5482 echo "$ac_t""no" 1>&6
5489 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5492 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5493 echo "configure:5494: checking for $ac_hdr that defines DIR" >&5
5494 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 #include <sys/types.h>
5506 if { (eval echo configure:5507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5508 eval "ac_cv_header_dirent_$ac_safe=yes"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 eval "ac_cv_header_dirent_$ac_safe=no"
5517 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5518 echo "$ac_t""yes" 1>&6
5519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5520 cat >> confdefs.h <<EOF
5521 #define $ac_tr_hdr 1
5523 ac_header_dirent=$ac_hdr; break
5525 echo "$ac_t""no" 1>&6
5528 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5529 if test $ac_header_dirent = dirent.h; then
5530 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5531 echo "configure:5532: checking for opendir in -ldir" >&5
5532 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 ac_save_LIBS="$LIBS"
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5541 /* Override any gcc2 internal prototype to avoid an error. */
5542 /* We use char because int might match the return type of a gcc2
5543 builtin and then its argument prototype would still apply. */
5550 if { (eval echo configure:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5552 eval "ac_cv_lib_$ac_lib_var=yes"
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5557 eval "ac_cv_lib_$ac_lib_var=no"
5560 LIBS="$ac_save_LIBS"
5563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5564 echo "$ac_t""yes" 1>&6
5567 echo "$ac_t""no" 1>&6
5571 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5572 echo "configure:5573: checking for opendir in -lx" >&5
5573 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5577 ac_save_LIBS="$LIBS"
5579 cat > conftest.$ac_ext <<EOF
5580 #line 5581 "configure"
5581 #include "confdefs.h"
5582 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5593 eval "ac_cv_lib_$ac_lib_var=yes"
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 eval "ac_cv_lib_$ac_lib_var=no"
5601 LIBS="$ac_save_LIBS"
5604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5605 echo "$ac_t""yes" 1>&6
5608 echo "$ac_t""no" 1>&6
5613 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5614 echo "configure:5615: checking whether stat file-mode macros are broken" >&5
5615 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621 #include <sys/types.h>
5622 #include <sys/stat.h>
5624 #if defined(S_ISBLK) && defined(S_IFDIR)
5625 # if S_ISBLK (S_IFDIR)
5630 #if defined(S_ISBLK) && defined(S_IFCHR)
5631 # if S_ISBLK (S_IFCHR)
5636 #if defined(S_ISLNK) && defined(S_IFREG)
5637 # if S_ISLNK (S_IFREG)
5642 #if defined(S_ISSOCK) && defined(S_IFREG)
5643 # if S_ISSOCK (S_IFREG)
5649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5650 egrep "You lose" >/dev/null 2>&1; then
5652 ac_cv_header_stat_broken=yes
5655 ac_cv_header_stat_broken=no
5661 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5662 if test $ac_cv_header_stat_broken = yes; then
5663 cat >> confdefs.h <<\EOF
5664 #define STAT_MACROS_BROKEN 1
5669 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5670 echo "configure:5671: checking for sys/wait.h that is POSIX.1 compatible" >&5
5671 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5672 echo $ac_n "(cached) $ac_c" 1>&6
5674 cat > conftest.$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5677 #include <sys/types.h>
5678 #include <sys/wait.h>
5680 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5683 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5688 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5691 if { (eval echo configure:5692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5693 ac_cv_header_sys_wait_h=yes
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 ac_cv_header_sys_wait_h=no
5703 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5704 if test $ac_cv_header_sys_wait_h = yes; then
5705 cat >> confdefs.h <<\EOF
5706 #define HAVE_SYS_WAIT_H 1
5711 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5712 echo "configure:5713: checking whether time.h and sys/time.h may both be included" >&5
5713 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5714 echo $ac_n "(cached) $ac_c" 1>&6
5716 cat > conftest.$ac_ext <<EOF
5717 #line 5718 "configure"
5718 #include "confdefs.h"
5719 #include <sys/types.h>
5720 #include <sys/time.h>
5726 if { (eval echo configure:5727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5728 ac_cv_header_time=yes
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5733 ac_cv_header_time=no
5738 echo "$ac_t""$ac_cv_header_time" 1>&6
5739 if test $ac_cv_header_time = yes; then
5740 cat >> confdefs.h <<\EOF
5741 #define TIME_WITH_SYS_TIME 1
5746 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5747 echo "configure:5748: checking for st_blksize in struct stat" >&5
5748 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 #include <sys/types.h>
5755 #include <sys/stat.h>
5757 struct stat s; s.st_blksize;
5760 if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5762 ac_cv_struct_st_blksize=yes
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 ac_cv_struct_st_blksize=no
5772 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5773 if test $ac_cv_struct_st_blksize = yes; then
5774 cat >> confdefs.h <<\EOF
5775 #define HAVE_ST_BLKSIZE 1
5780 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5781 echo "configure:5782: checking for st_blocks in struct stat" >&5
5782 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5783 echo $ac_n "(cached) $ac_c" 1>&6
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 #include <sys/types.h>
5789 #include <sys/stat.h>
5791 struct stat s; s.st_blocks;
5794 if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5796 ac_cv_struct_st_blocks=yes
5798 echo "configure: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5801 ac_cv_struct_st_blocks=no
5806 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5807 if test $ac_cv_struct_st_blocks = yes; then
5808 cat >> confdefs.h <<\EOF
5809 #define HAVE_ST_BLOCKS 1
5813 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5816 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5817 echo "configure:5818: checking whether struct tm is in sys/time.h or time.h" >&5
5818 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5824 #include <sys/types.h>
5827 struct tm *tp; tp->tm_sec;
5830 if { (eval echo configure:5831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5832 ac_cv_struct_tm=time.h
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5837 ac_cv_struct_tm=sys/time.h
5842 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5843 if test $ac_cv_struct_tm = sys/time.h; then
5844 cat >> confdefs.h <<\EOF
5845 #define TM_IN_SYS_TIME 1
5850 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5851 echo "configure:5852: checking for tm_zone in struct tm" >&5
5852 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5855 cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5858 #include <sys/types.h>
5859 #include <$ac_cv_struct_tm>
5861 struct tm tm; tm.tm_zone;
5864 if { (eval echo configure:5865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5866 ac_cv_struct_tm_zone=yes
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5871 ac_cv_struct_tm_zone=no
5876 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5877 if test "$ac_cv_struct_tm_zone" = yes; then
5878 cat >> confdefs.h <<\EOF
5879 #define HAVE_TM_ZONE 1
5883 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5884 echo "configure:5885: checking for tzname" >&5
5885 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5892 #ifndef tzname /* For SGI. */
5893 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5899 if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5901 ac_cv_var_tzname=yes
5903 echo "configure: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5911 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5912 if test $ac_cv_var_tzname = yes; then
5913 cat >> confdefs.h <<\EOF
5914 #define HAVE_TZNAME 1
5921 # It seems that that many machines where <utime.h> seems to be
5922 # broken just require something like -D_XXX_SOURCE, where XXX might
5923 # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine.
5925 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5926 echo "configure:5927: checking for utime.h" >&5
5927 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5934 #include <sys/types.h>
5940 if { (eval echo configure:5941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5942 tar_cv_header_utime_h=yes
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 tar_cv_header_utime_h=no
5952 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5953 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5954 #define HAVE_UTIME_H 1
5958 echo $ac_n "checking for working const""... $ac_c" 1>&6
5959 echo "configure:5960: checking for working const" >&5
5960 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5961 echo $ac_n "(cached) $ac_c" 1>&6
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5969 /* Ultrix mips cc rejects this. */
5970 typedef int charset[2]; const charset x;
5971 /* SunOS 4.1.1 cc rejects this. */
5972 char const *const *ccp;
5974 /* NEC SVR4.0.2 mips cc rejects this. */
5975 struct point {int x, y;};
5976 static struct point const zero = {0,0};
5977 /* AIX XL C 1.02.0.0 rejects this.
5978 It does not let you subtract one const X* pointer from another in an arm
5979 of an if-expression whose if-part is not a constant expression */
5980 const char *g = "string";
5981 ccp = &g + (g ? g-g : 0);
5982 /* HPUX 7.0 cc rejects these. */
5985 ccp = (char const *const *) p;
5986 { /* SCO 3.2v4 cc rejects this. */
5988 char const *s = 0 ? (char *) 0 : (char const *) 0;
5992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5994 const int *foo = &x[0];
5997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5998 typedef const int *iptr;
6002 { /* AIX XL C 1.02.0.0 rejects this saying
6003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6004 struct s { int j; const int *ap[3]; };
6005 struct s *b; b->j = 5;
6007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6013 if { (eval echo configure:6014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6025 echo "$ac_t""$ac_cv_c_const" 1>&6
6026 if test $ac_cv_c_const = no; then
6027 cat >> confdefs.h <<\EOF
6035 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6036 echo "configure:6037: checking how to get filesystem type" >&5
6038 # The order of these tests is important.
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6042 #include <sys/statvfs.h>
6043 #include <sys/fstyp.h>
6045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6046 { (eval echo configure:6047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6048 if test -z "$ac_err"; then
6050 cat >> confdefs.h <<\EOF
6051 #define FSTYPE_STATVFS 1
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6060 if test $fstype = no; then
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 #include <sys/statfs.h>
6065 #include <sys/fstyp.h>
6067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6068 { (eval echo configure:6069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6070 if test -z "$ac_err"; then
6072 cat >> confdefs.h <<\EOF
6073 #define FSTYPE_USG_STATFS 1
6078 echo "configure: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6083 if test $fstype = no; then
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 #include <sys/statfs.h>
6088 #include <sys/vmount.h>
6090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6091 { (eval echo configure:6092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6093 if test -z "$ac_err"; then
6095 cat >> confdefs.h <<\EOF
6096 #define FSTYPE_AIX_STATFS 1
6101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6106 if test $fstype = no; then
6107 cat > conftest.$ac_ext <<EOF
6108 #line 6109 "configure"
6109 #include "confdefs.h"
6112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6113 { (eval echo configure:6114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6115 if test -z "$ac_err"; then
6117 cat >> confdefs.h <<\EOF
6118 #define FSTYPE_MNTENT 1
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6128 if test $fstype = no; then
6129 cat > conftest.$ac_ext <<EOF
6130 #line 6131 "configure"
6131 #include "confdefs.h"
6132 #include <sys/mount.h>
6134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6135 egrep "f_type;" >/dev/null 2>&1; then
6137 cat >> confdefs.h <<\EOF
6138 #define FSTYPE_STATFS 1
6145 if test $fstype = no; then
6146 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6149 #include <sys/mount.h>
6150 #include <sys/fs_types.h>
6152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6153 { (eval echo configure:6154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6155 if test -z "$ac_err"; then
6157 cat >> confdefs.h <<\EOF
6158 #define FSTYPE_GETMNT 1
6163 echo "configure: failed program was:" >&5
6164 cat conftest.$ac_ext >&5
6168 echo "$ac_t""$fstype" 1>&6
6170 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6171 echo "configure:6172: checking return type of signal handlers" >&5
6172 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6173 echo $ac_n "(cached) $ac_c" 1>&6
6175 cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 #include <sys/types.h>
6184 extern "C" void (*signal (int, void (*)(int)))(int);
6186 void (*signal ()) ();
6193 if { (eval echo configure:6194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6195 ac_cv_type_signal=void
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 ac_cv_type_signal=int
6205 echo "$ac_t""$ac_cv_type_signal" 1>&6
6206 cat >> confdefs.h <<EOF
6207 #define RETSIGTYPE $ac_cv_type_signal
6212 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6213 echo "configure:6214: checking for type of signal functions" >&5
6214 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6215 echo $ac_n "(cached) $ac_c" 1>&6
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6225 struct sigaction sa;
6226 sigemptyset(&ss); sigsuspend(&ss);
6227 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6228 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6234 bash_cv_signal_vintage=posix
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6242 "configure"
6242 #include "confdefs.h"
6246 int mask = sigmask(SIGINT);
6247 sigsetmask(mask); sigblock(mask); sigpause(mask);
6251 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6253 bash_cv_signal_vintage=4.2bsd
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6264 RETSIGTYPE foo() { }
6267 int mask = sigmask(SIGINT);
6268 sigset(SIGINT, foo); sigrelse(SIGINT);
6269 sighold(SIGINT); sigpause(SIGINT);
6273 if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6275 bash_cv_signal_vintage=svr3
6277 echo "configure: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6280 bash_cv_signal_vintage=v7
6293 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6294 if test "$bash_cv_signal_vintage" = posix; then
6295 cat >> confdefs.h <<\EOF
6296 #define HAVE_POSIX_SIGNALS 1
6299 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6300 cat >> confdefs.h <<\EOF
6301 #define HAVE_BSD_SIGNALS 1
6304 elif test "$bash_cv_signal_vintage" = svr3; then
6305 cat >> confdefs.h <<\EOF
6306 #define HAVE_USG_SIGHOLD 1
6311 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6312 echo "configure:6313: checking for mode_t" >&5
6313 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6314 echo $ac_n "(cached) $ac_c" 1>&6
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 #include <sys/types.h>
6325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6326 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6328 ac_cv_type_mode_t=yes
6331 ac_cv_type_mode_t=no
6336 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6337 if test $ac_cv_type_mode_t = no; then
6338 cat >> confdefs.h <<\EOF
6344 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6345 echo "configure:6346: checking for uid_t in sys/types.h" >&5
6346 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 #include <sys/types.h>
6354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6355 egrep "uid_t" >/dev/null 2>&1; then
6357 ac_cv_type_uid_t=yes
6366 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6367 if test $ac_cv_type_uid_t = no; then
6368 cat >> confdefs.h <<\EOF
6372 cat >> confdefs.h <<\EOF
6378 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6379 echo "configure:6380: checking for size_t" >&5
6380 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 #include <sys/types.h>
6392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6393 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6395 ac_cv_type_size_t=yes
6398 ac_cv_type_size_t=no
6403 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6404 if test $ac_cv_type_size_t = no; then
6405 cat >> confdefs.h <<\EOF
6406 #define size_t unsigned
6411 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6412 echo "configure:6413: checking for pid_t" >&5
6413 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6414 echo $ac_n "(cached) $ac_c" 1>&6
6416 cat > conftest.$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6419 #include <sys/types.h>
6425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6426 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6428 ac_cv_type_pid_t=yes
6436 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6437 if test $ac_cv_type_pid_t = no; then
6438 cat >> confdefs.h <<\EOF
6444 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6445 echo "configure:6446: checking for off_t" >&5
6446 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6452 #include <sys/types.h>
6458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6461 ac_cv_type_off_t=yes
6469 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6470 if test $ac_cv_type_off_t = no; then
6471 cat >> confdefs.h <<\EOF
6477 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6478 echo "configure:6479: checking for ino_t" >&5
6479 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 #include <sys/types.h>
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6494 ac_cv_type_ino_t=yes
6502 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6503 if test $ac_cv_type_ino_t = no; then
6504 cat >> confdefs.h <<\EOF
6505 #define ino_t unsigned long
6510 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6511 echo "configure:6512: checking for dev_t" >&5
6512 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6515 cat > conftest.$ac_ext <<EOF
6516 #line 6517 "configure"
6517 #include "confdefs.h"
6518 #include <sys/types.h>
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6527 ac_cv_type_dev_t=yes
6535 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6536 if test $ac_cv_type_dev_t = no; then
6537 cat >> confdefs.h <<\EOF
6538 #define dev_t unsigned long
6543 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6544 echo "configure:6545: checking for daddr_t" >&5
6545 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 #include <sys/types.h>
6557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6558 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6560 ac_cv_type_daddr_t=yes
6563 ac_cv_type_daddr_t=no
6568 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6569 if test $ac_cv_type_daddr_t = no; then
6570 cat >> confdefs.h <<\EOF
6571 #define daddr_t long
6576 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6577 echo "configure:6578: checking for major_t" >&5
6578 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6581 cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6584 #include <sys/types.h>
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6593 ac_cv_type_major_t=yes
6596 ac_cv_type_major_t=no
6601 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6602 if test $ac_cv_type_major_t = no; then
6603 cat >> confdefs.h <<\EOF
6609 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6610 echo "configure:6611: checking for minor_t" >&5
6611 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 #include <sys/types.h>
6623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6624 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6626 ac_cv_type_minor_t=yes
6629 ac_cv_type_minor_t=no
6634 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6635 if test $ac_cv_type_minor_t = no; then
6636 cat >> confdefs.h <<\EOF
6642 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6643 echo "configure:6644: checking for ssize_t" >&5
6644 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 #include <sys/types.h>
6656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6657 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6659 ac_cv_type_ssize_t=yes
6662 ac_cv_type_ssize_t=no
6667 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6668 if test $ac_cv_type_ssize_t = no; then
6669 cat >> confdefs.h <<\EOF
6675 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6676 echo "configure:6677: checking for st_blocks in struct stat" >&5
6677 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6680 cat > conftest.$ac_ext <<EOF
6681 #line 6682 "configure"
6682 #include "confdefs.h"
6683 #include <sys/types.h>
6684 #include <sys/stat.h>
6686 struct stat s; s.st_blocks;
6689 if { (eval echo configure:6690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6691 ac_cv_struct_st_blocks=yes
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6696 ac_cv_struct_st_blocks=no
6701 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6702 if test $ac_cv_struct_st_blocks = yes; then
6703 cat >> confdefs.h <<\EOF
6704 #define HAVE_ST_BLOCKS 1
6708 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6711 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6712 echo "configure:6713: checking for st_rdev in struct stat" >&5
6713 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6
6716 cat > conftest.$ac_ext <<EOF
6717 #line 6718 "configure"
6718 #include "confdefs.h"
6719 #include <sys/types.h>
6720 #include <sys/stat.h>
6722 struct stat s; s.st_rdev;
6725 if { (eval echo configure:6726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6727 ac_cv_struct_st_rdev=yes
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 ac_cv_struct_st_rdev=no
6737 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6738 if test $ac_cv_struct_st_rdev = yes; then
6739 cat >> confdefs.h <<\EOF
6740 #define HAVE_ST_RDEV 1
6745 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6746 echo "configure:6747: checking whether struct tm is in sys/time.h or time.h" >&5
6747 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 #include <sys/types.h>
6756 struct tm *tp; tp->tm_sec;
6759 if { (eval echo configure:6760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6761 ac_cv_struct_tm=time.h
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6766 ac_cv_struct_tm=sys/time.h
6771 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6772 if test $ac_cv_struct_tm = sys/time.h; then
6773 cat >> confdefs.h <<\EOF
6774 #define TM_IN_SYS_TIME 1
6779 echo $ac_n "checking for working const""... $ac_c" 1>&6
6780 echo "configure:6781: checking for working const" >&5
6781 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6
6784 cat > conftest.$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6790 /* Ultrix mips cc rejects this. */
6791 typedef int charset[2]; const charset x;
6792 /* SunOS 4.1.1 cc rejects this. */
6793 char const *const *ccp;
6795 /* NEC SVR4.0.2 mips cc rejects this. */
6796 struct point {int x, y;};
6797 static struct point const zero = {0,0};
6798 /* AIX XL C 1.02.0.0 rejects this.
6799 It does not let you subtract one const X* pointer from another in an arm
6800 of an if-expression whose if-part is not a constant expression */
6801 const char *g = "string";
6802 ccp = &g + (g ? g-g : 0);
6803 /* HPUX 7.0 cc rejects these. */
6806 ccp = (char const *const *) p;
6807 { /* SCO 3.2v4 cc rejects this. */
6809 char const *s = 0 ? (char *) 0 : (char const *) 0;
6813 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6815 const int *foo = &x[0];
6818 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6819 typedef const int *iptr;
6823 { /* AIX XL C 1.02.0.0 rejects this saying
6824 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6825 struct s { int j; const int *ap[3]; };
6826 struct s *b; b->j = 5;
6828 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6834 if { (eval echo configure:6835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6846 echo "$ac_t""$ac_cv_c_const" 1>&6
6847 if test $ac_cv_c_const = no; then
6848 cat >> confdefs.h <<\EOF
6856 echo $ac_n "checking size of char""... $ac_c" 1>&6
6857 echo "configure:6858: checking size of char" >&5
6858 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 if test "$cross_compiling" = yes; then
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6870 FILE *f=fopen("conftestval", "w");
6872 fprintf(f, "%d\n", sizeof(char));
6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6878 ac_cv_sizeof_char=`cat conftestval`
6880 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6889 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6890 cat >> confdefs.h <<EOF
6891 #define SIZEOF_CHAR $ac_cv_sizeof_char
6895 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6896 echo "configure:6897: checking size of short int" >&5
6897 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6900 if test "$cross_compiling" = yes; then
6901 ac_cv_sizeof_short_int=2
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6909 FILE *f=fopen("conftestval", "w");
6911 fprintf(f, "%d\n", sizeof(short int));
6915 if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6917 ac_cv_sizeof_short_int=`cat conftestval`
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6922 ac_cv_sizeof_short_int=0
6928 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6929 cat >> confdefs.h <<EOF
6930 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6934 echo $ac_n "checking size of int""... $ac_c" 1>&6
6935 echo "configure:6936: checking size of int" >&5
6936 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6939 if test "$cross_compiling" = yes; then
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6948 FILE *f=fopen("conftestval", "w");
6950 fprintf(f, "%d\n", sizeof(int));
6954 if { (eval echo configure:6955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6956 ac_cv_sizeof_int=`cat conftestval`
6958 echo "configure: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6967 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6968 cat >> confdefs.h <<EOF
6969 #define SIZEOF_INT $ac_cv_sizeof_int
6973 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6974 echo "configure:6975: checking size of long int" >&5
6975 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
6978 if test "$cross_compiling" = yes; then
6979 ac_cv_sizeof_long_int=4
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6987 FILE *f=fopen("conftestval", "w");
6989 fprintf(f, "%d\n", sizeof(long int));
6993 if { (eval echo configure:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6995 ac_cv_sizeof_long_int=`cat conftestval`
6997 echo "configure: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
7000 ac_cv_sizeof_long_int=0
7006 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
7007 cat >> confdefs.h <<EOF
7008 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7012 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
7013 echo "configure:7014: checking size of long long int" >&5
7014 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7017 if test "$cross_compiling" = yes; then
7018 ac_cv_sizeof_long_long_int=8
7020 cat > conftest.$ac_ext <<EOF
7021 #line 7022 "configure"
7022 #include "confdefs.h"
7026 FILE *f=fopen("conftestval", "w");
7028 fprintf(f, "%d\n", sizeof(long long int));
7032 if { (eval echo configure:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7034 ac_cv_sizeof_long_long_int=`cat conftestval`
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7039 ac_cv_sizeof_long_long_int=0
7045 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7046 cat >> confdefs.h <<EOF
7047 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7051 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7052 echo "configure:7053: checking size of int *" >&5
7053 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7054 echo $ac_n "(cached) $ac_c" 1>&6
7056 if test "$cross_compiling" = yes; then
7057 ac_cv_sizeof_int_p=4
7059 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7065 FILE *f=fopen("conftestval", "w");
7067 fprintf(f, "%d\n", sizeof(int *));
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7073 ac_cv_sizeof_int_p=`cat conftestval`
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 ac_cv_sizeof_int_p=0
7084 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7085 cat >> confdefs.h <<EOF
7086 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7091 # Check for sys/types.h types
7092 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7093 echo "configure:7094: checking for u_int type" >&5
7094 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 #include <sys/types.h>
7106 if { (eval echo configure:7107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7108 ac_cv_have_u_int="yes"
7110 echo "configure: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7113 ac_cv_have_u_int="no"
7120 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7121 if test "x$ac_cv_have_u_int" = "xyes" ; then
7122 cat >> confdefs.h <<\EOF
7123 #define HAVE_U_INT 1
7129 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7130 echo "configure:7131: checking for intmax_t type" >&5
7131 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 #include <sys/types.h>
7143 if { (eval echo configure:7144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7145 ac_cv_have_intmax_t="yes"
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7159 if { (eval echo configure:7160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7161 ac_cv_have_intmax_t="yes"
7163 echo "configure: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7166 ac_cv_have_intmax_t="no"
7178 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7179 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7180 cat >> confdefs.h <<\EOF
7181 #define HAVE_INTMAX_T 1
7188 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7189 echo "configure:7190: checking for u_intmax_t type" >&5
7190 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7194 cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7197 #include <sys/types.h>
7199 u_intmax_t a; a = 1;
7202 if { (eval echo configure:7203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7204 ac_cv_have_u_intmax_t="yes"
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7210 cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7215 u_intmax_t a; a = 1;
7218 if { (eval echo configure:7219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7220 ac_cv_have_u_intmax_t="yes"
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 ac_cv_have_u_intmax_t="no"
7236 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7237 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7238 cat >> confdefs.h <<\EOF
7239 #define HAVE_U_INTMAX_T 1
7246 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7247 echo "configure:7248: checking for intXX_t types" >&5
7248 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7249 echo $ac_n "(cached) $ac_c" 1>&6
7252 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7255 #include <sys/types.h>
7257 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7260 if { (eval echo configure:7261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7262 ac_cv_have_intxx_t="yes"
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7267 ac_cv_have_intxx_t="no"
7274 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7275 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7276 cat >> confdefs.h <<\EOF
7277 #define HAVE_INTXX_T 1
7283 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7284 echo "configure:7285: checking for int64_t type" >&5
7285 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7286 echo $ac_n "(cached) $ac_c" 1>&6
7289 cat > conftest.$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7292 #include <sys/types.h>
7297 if { (eval echo configure:7298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7299 ac_cv_have_int64_t="yes"
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 ac_cv_have_int64_t="no"
7311 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7312 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7313 cat >> confdefs.h <<\EOF
7314 #define HAVE_INT64_T 1
7320 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7321 echo "configure:7322: checking for u_intXX_t types" >&5
7322 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7323 echo $ac_n "(cached) $ac_c" 1>&6
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 #include <sys/types.h>
7331 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7334 if { (eval echo configure:7335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7336 ac_cv_have_u_intxx_t="yes"
7338 echo "configure: failed program was:" >&5
7339 cat conftest.$ac_ext >&5
7341 ac_cv_have_u_intxx_t="no"
7348 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7349 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7350 cat >> confdefs.h <<\EOF
7351 #define HAVE_U_INTXX_T 1
7357 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7358 echo "configure:7359: checking for u_int64_t types" >&5
7359 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7360 echo $ac_n "(cached) $ac_c" 1>&6
7363 cat > conftest.$ac_ext <<EOF
7364 #line 7365 "configure"
7365 #include "confdefs.h"
7366 #include <sys/types.h>
7371 if { (eval echo configure:7372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7373 ac_cv_have_u_int64_t="yes"
7375 echo "configure: failed program was:" >&5
7376 cat conftest.$ac_ext >&5
7378 ac_cv_have_u_int64_t="no"
7385 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7386 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7387 cat >> confdefs.h <<\EOF
7388 #define HAVE_U_INT64_T 1
7394 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7395 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7397 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7398 echo "configure:7399: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7402 #include <sys/bitypes.h>
7404 int8_t a; int16_t b; int32_t c;
7405 u_int8_t e; u_int16_t f; u_int32_t g;
7406 a = b = c = e = f = g = 1;
7409 if { (eval echo configure:7410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7411 cat >> confdefs.h <<\EOF
7412 #define HAVE_U_INTXX_T 1
7415 cat >> confdefs.h <<\EOF
7416 #define HAVE_INTXX_T 1
7419 cat >> confdefs.h <<\EOF
7420 #define HAVE_SYS_BITYPES_H 1
7423 echo "$ac_t""yes" 1>&6
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7428 echo "$ac_t""no" 1>&6
7434 if test -z "$have_u_intxx_t" ; then
7435 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7436 echo "configure:7437: checking for uintXX_t types" >&5
7437 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7441 cat > conftest.$ac_ext <<EOF
7442 #line 7443 "configure"
7443 #include "confdefs.h"
7444 #include <sys/types.h>
7446 uint8_t a; uint16_t b;
7447 uint32_t c; a = b = c = 1;
7450 if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7452 ac_cv_have_uintxx_t="yes"
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7457 ac_cv_have_uintxx_t="no"
7464 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7465 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7466 cat >> confdefs.h <<\EOF
7467 #define HAVE_UINTXX_T 1
7489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7490 echo "configure:7491: checking for $ac_func" >&5
7491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7492 echo $ac_n "(cached) $ac_c" 1>&6
7494 cat > conftest.$ac_ext <<EOF
7495 #line 7496 "configure"
7496 #include "confdefs.h"
7497 /* System header to define __stub macros and hopefully few prototypes,
7498 which can conflict with char $ac_func(); below. */
7500 /* Override any gcc2 internal prototype to avoid an error. */
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7507 /* The GNU C library defines this for functions which it implements
7508 to always fail with ENOSYS. Some functions are actually named
7509 something starting with __ and the normal name is an alias. */
7510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7518 if { (eval echo configure:7519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7520 eval "ac_cv_func_$ac_func=yes"
7522 echo "configure: failed program was:" >&5
7523 cat conftest.$ac_ext >&5
7525 eval "ac_cv_func_$ac_func=no"
7530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7531 echo "$ac_t""yes" 1>&6
7532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7533 cat >> confdefs.h <<EOF
7534 #define $ac_tr_func 1
7538 echo "$ac_t""no" 1>&6
7539 echo 'configure: cannot find needed function.'; exit 1
7545 for ac_func in fchdir
7547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7548 echo "configure:7549: checking for $ac_func" >&5
7549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7550 echo $ac_n "(cached) $ac_c" 1>&6
7552 cat > conftest.$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7555 /* System header to define __stub macros and hopefully few prototypes,
7556 which can conflict with char $ac_func(); below. */
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7565 /* The GNU C library defines this for functions which it implements
7566 to always fail with ENOSYS. Some functions are actually named
7567 something starting with __ and the normal name is an alias. */
7568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7576 if { (eval echo configure:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578 eval "ac_cv_func_$ac_func=yes"
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7583 eval "ac_cv_func_$ac_func=no"
7588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7589 echo "$ac_t""yes" 1>&6
7590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7591 cat >> confdefs.h <<EOF
7592 #define $ac_tr_func 1
7594 cat >> confdefs.h <<\EOF
7595 #define HAVE_FCHDIR 1
7599 echo "$ac_t""no" 1>&6
7604 for ac_func in snprintf vsnprintf gethostid getdomainname
7606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7607 echo "configure:7608: checking for $ac_func" >&5
7608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7614 /* System header to define __stub macros and hopefully few prototypes,
7615 which can conflict with char $ac_func(); below. */
7617 /* Override any gcc2 internal prototype to avoid an error. */
7618 /* We use char because int might match the return type of a gcc2
7619 builtin and then its argument prototype would still apply. */
7624 /* The GNU C library defines this for functions which it implements
7625 to always fail with ENOSYS. Some functions are actually named
7626 something starting with __ and the normal name is an alias. */
7627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7635 if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7637 eval "ac_cv_func_$ac_func=yes"
7639 echo "configure: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7642 eval "ac_cv_func_$ac_func=no"
7647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7648 echo "$ac_t""yes" 1>&6
7649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7650 cat >> confdefs.h <<EOF
7651 #define $ac_tr_func 1
7655 echo "$ac_t""no" 1>&6
7660 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7663 echo "configure:7664: checking for $ac_func" >&5
7664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7667 cat > conftest.$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 /* System header to define __stub macros and hopefully few prototypes,
7671 which can conflict with char $ac_func(); below. */
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7680 /* The GNU C library defines this for functions which it implements
7681 to always fail with ENOSYS. Some functions are actually named
7682 something starting with __ and the normal name is an alias. */
7683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7691 if { (eval echo configure:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7693 eval "ac_cv_func_$ac_func=yes"
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7698 eval "ac_cv_func_$ac_func=no"
7703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7704 echo "$ac_t""yes" 1>&6
7705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7706 cat >> confdefs.h <<EOF
7707 #define $ac_tr_func 1
7711 echo "$ac_t""no" 1>&6
7716 # If resolver functions are not in libc check for -lnsl or -lresolv.
7717 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7718 echo "configure:7719: checking for gethostbyname_r" >&5
7719 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7720 echo $ac_n "(cached) $ac_c" 1>&6
7722 cat > conftest.$ac_ext <<EOF
7723 #line 7724 "configure"
7724 #include "confdefs.h"
7725 /* System header to define __stub macros and hopefully few prototypes,
7726 which can conflict with char gethostbyname_r(); below. */
7728 /* Override any gcc2 internal prototype to avoid an error. */
7729 /* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
7731 char gethostbyname_r();
7735 /* The GNU C library defines this for functions which it implements
7736 to always fail with ENOSYS. Some functions are actually named
7737 something starting with __ and the normal name is an alias. */
7738 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7746 if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7748 eval "ac_cv_func_gethostbyname_r=yes"
7750 echo "configure: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7753 eval "ac_cv_func_gethostbyname_r=no"
7758 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7759 echo "$ac_t""yes" 1>&6
7760 echo "$ac_t""using libc's resolver" 1>&6
7762 echo "$ac_t""no" 1>&6
7763 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7764 echo "configure:7765: checking for gethostbyname_r in -lnsl" >&5
7765 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7769 ac_save_LIBS="$LIBS"
7771 cat > conftest.$ac_ext <<EOF
7772 #line 7773 "configure"
7773 #include "confdefs.h"
7774 /* Override any gcc2 internal prototype to avoid an error. */
7775 /* We use char because int might match the return type of a gcc2
7776 builtin and then its argument prototype would still apply. */
7777 char gethostbyname_r();
7783 if { (eval echo configure:7784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7785 eval "ac_cv_lib_$ac_lib_var=yes"
7787 echo "configure: failed program was:" >&5
7788 cat conftest.$ac_ext >&5
7790 eval "ac_cv_lib_$ac_lib_var=no"
7793 LIBS="$ac_save_LIBS"
7796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7797 echo "$ac_t""yes" 1>&6
7798 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7800 cat >> confdefs.h <<EOF
7801 #define $ac_tr_lib 1
7807 echo "$ac_t""no" 1>&6
7810 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7811 echo "configure:7812: checking for gethostbyname_r in -lresolv" >&5
7812 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
7816 ac_save_LIBS="$LIBS"
7817 LIBS="-lresolv $LIBS"
7818 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure"
7820 #include "confdefs.h"
7821 /* Override any gcc2 internal prototype to avoid an error. */
7822 /* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824 char gethostbyname_r();
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7832 eval "ac_cv_lib_$ac_lib_var=yes"
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7837 eval "ac_cv_lib_$ac_lib_var=no"
7840 LIBS="$ac_save_LIBS"
7843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7844 echo "$ac_t""yes" 1>&6
7845 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7846 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7847 cat >> confdefs.h <<EOF
7848 #define $ac_tr_lib 1
7851 LIBS="-lresolv $LIBS"
7854 echo "$ac_t""no" 1>&6
7861 # Find where sockets are (especially for Solaris)
7862 echo $ac_n "checking for socket""... $ac_c" 1>&6
7863 echo "configure:7864: checking for socket" >&5
7864 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7867 cat > conftest.$ac_ext <<EOF
7868 #line 7869 "configure"
7869 #include "confdefs.h"
7870 /* System header to define __stub macros and hopefully few prototypes,
7871 which can conflict with char socket(); below. */
7873 /* Override any gcc2 internal prototype to avoid an error. */
7874 /* We use char because int might match the return type of a gcc2
7875 builtin and then its argument prototype would still apply. */
7880 /* The GNU C library defines this for functions which it implements
7881 to always fail with ENOSYS. Some functions are actually named
7882 something starting with __ and the normal name is an alias. */
7883 #if defined (__stub_socket) || defined (__stub___socket)
7891 if { (eval echo configure:7892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7893 eval "ac_cv_func_socket=yes"
7895 echo "configure: failed program was:" >&5
7896 cat conftest.$ac_ext >&5
7898 eval "ac_cv_func_socket=no"
7903 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7904 echo "$ac_t""yes" 1>&6
7905 echo "$ac_t""using libc's socket" 1>&6
7907 echo "$ac_t""no" 1>&6
7908 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7909 echo "configure:7910: checking for socket in -lxnet" >&5
7910 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7911 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7912 echo $ac_n "(cached) $ac_c" 1>&6
7914 ac_save_LIBS="$LIBS"
7916 cat > conftest.$ac_ext <<EOF
7917 #line 7918 "configure"
7918 #include "confdefs.h"
7919 /* Override any gcc2 internal prototype to avoid an error. */
7920 /* We use char because int might match the return type of a gcc2
7921 builtin and then its argument prototype would still apply. */
7928 if { (eval echo configure:7929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7930 eval "ac_cv_lib_$ac_lib_var=yes"
7932 echo "configure: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7935 eval "ac_cv_lib_$ac_lib_var=no"
7938 LIBS="$ac_save_LIBS"
7941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7942 echo "$ac_t""yes" 1>&6
7943 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7945 cat >> confdefs.h <<EOF
7946 #define $ac_tr_lib 1
7952 echo "$ac_t""no" 1>&6
7955 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7956 echo "configure:7957: checking for socket in -lsocket" >&5
7957 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7961 ac_save_LIBS="$LIBS"
7962 LIBS="-lsocket $LIBS"
7963 cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure"
7965 #include "confdefs.h"
7966 /* Override any gcc2 internal prototype to avoid an error. */
7967 /* We use char because int might match the return type of a gcc2
7968 builtin and then its argument prototype would still apply. */
7975 if { (eval echo configure:7976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7977 eval "ac_cv_lib_$ac_lib_var=yes"
7979 echo "configure: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7982 eval "ac_cv_lib_$ac_lib_var=no"
7985 LIBS="$ac_save_LIBS"
7988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7989 echo "$ac_t""yes" 1>&6
7990 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
7991 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7992 cat >> confdefs.h <<EOF
7993 #define $ac_tr_lib 1
7996 LIBS="-lsocket $LIBS"
7999 echo "$ac_t""no" 1>&6
8002 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8003 echo "configure:8004: checking for socket in -linet" >&5
8004 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
8005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8008 ac_save_LIBS="$LIBS"
8010 cat > conftest.$ac_ext <<EOF
8011 #line 8012 "configure"
8012 #include "confdefs.h"
8013 /* Override any gcc2 internal prototype to avoid an error. */
8014 /* We use char because int might match the return type of a gcc2
8015 builtin and then its argument prototype would still apply. */
8022 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8024 eval "ac_cv_lib_$ac_lib_var=yes"
8026 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8029 eval "ac_cv_lib_$ac_lib_var=no"
8032 LIBS="$ac_save_LIBS"
8035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8036 echo "$ac_t""yes" 1>&6
8037 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8039 cat >> confdefs.h <<EOF
8040 #define $ac_tr_lib 1
8046 echo "$ac_t""no" 1>&6
8053 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8054 echo "configure:8055: checking for strftime" >&5
8055 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 /* System header to define __stub macros and hopefully few prototypes,
8062 which can conflict with char strftime(); below. */
8064 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8071 /* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074 #if defined (__stub_strftime) || defined (__stub___strftime)
8082 if { (eval echo configure:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8084 eval "ac_cv_func_strftime=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8089 eval "ac_cv_func_strftime=no"
8094 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 cat >> confdefs.h <<\EOF
8097 #define HAVE_STRFTIME 1
8101 echo "$ac_t""no" 1>&6
8102 # strftime is in -lintl on SCO UNIX.
8103 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8104 echo "configure:8105: checking for strftime in -lintl" >&5
8105 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8107 echo $ac_n "(cached) $ac_c" 1>&6
8109 ac_save_LIBS="$LIBS"
8111 cat > conftest.$ac_ext <<EOF
8112 #line 8113 "configure"
8113 #include "confdefs.h"
8114 /* Override any gcc2 internal prototype to avoid an error. */
8115 /* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8125 eval "ac_cv_lib_$ac_lib_var=yes"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 eval "ac_cv_lib_$ac_lib_var=no"
8133 LIBS="$ac_save_LIBS"
8136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8137 echo "$ac_t""yes" 1>&6
8138 cat >> confdefs.h <<\EOF
8139 #define HAVE_STRFTIME 1
8144 echo "$ac_t""no" 1>&6
8149 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8150 echo "configure:8151: checking for vprintf" >&5
8151 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 /* System header to define __stub macros and hopefully few prototypes,
8158 which can conflict with char vprintf(); below. */
8160 /* Override any gcc2 internal prototype to avoid an error. */
8161 /* We use char because int might match the return type of a gcc2
8162 builtin and then its argument prototype would still apply. */
8167 /* The GNU C library defines this for functions which it implements
8168 to always fail with ENOSYS. Some functions are actually named
8169 something starting with __ and the normal name is an alias. */
8170 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8178 if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8180 eval "ac_cv_func_vprintf=yes"
8182 echo "configure: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8185 eval "ac_cv_func_vprintf=no"
8190 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8191 echo "$ac_t""yes" 1>&6
8192 cat >> confdefs.h <<\EOF
8193 #define HAVE_VPRINTF 1
8197 echo "$ac_t""no" 1>&6
8200 if test "$ac_cv_func_vprintf" != yes; then
8201 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8202 echo "configure:8203: checking for _doprnt" >&5
8203 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8206 cat > conftest.$ac_ext <<EOF
8207 #line 8208 "configure"
8208 #include "confdefs.h"
8209 /* System header to define __stub macros and hopefully few prototypes,
8210 which can conflict with char _doprnt(); below. */
8212 /* Override any gcc2 internal prototype to avoid an error. */
8213 /* We use char because int might match the return type of a gcc2
8214 builtin and then its argument prototype would still apply. */
8219 /* The GNU C library defines this for functions which it implements
8220 to always fail with ENOSYS. Some functions are actually named
8221 something starting with __ and the normal name is an alias. */
8222 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8230 if { (eval echo configure:8231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8232 eval "ac_cv_func__doprnt=yes"
8234 echo "configure: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8237 eval "ac_cv_func__doprnt=no"
8242 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8243 echo "$ac_t""yes" 1>&6
8244 cat >> confdefs.h <<\EOF
8245 #define HAVE_DOPRNT 1
8249 echo "$ac_t""no" 1>&6
8254 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8255 # for constant arguments. Useless!
8256 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8257 echo "configure:8258: checking for working alloca.h" >&5
8258 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8261 cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8266 char *p = alloca(2 * sizeof(int));
8269 if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271 ac_cv_header_alloca_h=yes
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 ac_cv_header_alloca_h=no
8281 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8282 if test $ac_cv_header_alloca_h = yes; then
8283 cat >> confdefs.h <<\EOF
8284 #define HAVE_ALLOCA_H 1
8289 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8290 echo "configure:8291: checking for alloca" >&5
8291 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8292 echo $ac_n "(cached) $ac_c" 1>&6
8294 cat > conftest.$ac_ext <<EOF
8295 #line 8296 "configure"
8296 #include "confdefs.h"
8299 # define alloca __builtin_alloca
8302 # include <malloc.h>
8303 # define alloca _alloca
8306 # include <alloca.h>
8311 # ifndef alloca /* predefined by HP cc +Olibcalls */
8320 char *p = (char *) alloca(1);
8323 if { (eval echo configure:8324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8325 ac_cv_func_alloca_works=yes
8327 echo "configure: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8330 ac_cv_func_alloca_works=no
8335 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8336 if test $ac_cv_func_alloca_works = yes; then
8337 cat >> confdefs.h <<\EOF
8338 #define HAVE_ALLOCA 1
8343 if test $ac_cv_func_alloca_works = no; then
8344 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8345 # that cause trouble. Some versions do not even contain alloca or
8346 # contain a buggy version. If you still want to use their alloca,
8347 # use ar to extract alloca.o from them instead of compiling alloca.c.
8348 ALLOCA=alloca.${ac_objext}
8349 cat >> confdefs.h <<\EOF
8354 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8355 echo "configure:8356: checking whether alloca needs Cray hooks" >&5
8356 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8359 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure"
8361 #include "confdefs.h"
8362 #if defined(CRAY) && ! defined(CRAY2)
8369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8370 egrep "webecray" >/dev/null 2>&1; then
8381 echo "$ac_t""$ac_cv_os_cray" 1>&6
8382 if test $ac_cv_os_cray = yes; then
8383 for ac_func in _getb67 GETB67 getb67; do
8384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8385 echo "configure:8386: checking for $ac_func" >&5
8386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8392 /* System header to define __stub macros and hopefully few prototypes,
8393 which can conflict with char $ac_func(); below. */
8395 /* Override any gcc2 internal prototype to avoid an error. */
8396 /* We use char because int might match the return type of a gcc2
8397 builtin and then its argument prototype would still apply. */
8402 /* The GNU C library defines this for functions which it implements
8403 to always fail with ENOSYS. Some functions are actually named
8404 something starting with __ and the normal name is an alias. */
8405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8413 if { (eval echo configure:8414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8415 eval "ac_cv_func_$ac_func=yes"
8417 echo "configure: failed program was:" >&5
8418 cat conftest.$ac_ext >&5
8420 eval "ac_cv_func_$ac_func=no"
8425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8426 echo "$ac_t""yes" 1>&6
8427 cat >> confdefs.h <<EOF
8428 #define CRAY_STACKSEG_END $ac_func
8433 echo "$ac_t""no" 1>&6
8439 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8440 echo "configure:8441: checking stack direction for C alloca" >&5
8441 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8442 echo $ac_n "(cached) $ac_c" 1>&6
8444 if test "$cross_compiling" = yes; then
8445 ac_cv_c_stack_direction=0
8447 cat > conftest.$ac_ext <<EOF
8448 #line 8449 "configure"
8449 #include "confdefs.h"
8450 find_stack_direction ()
8452 static char *addr = 0;
8457 return find_stack_direction ();
8460 return (&dummy > addr) ? 1 : -1;
8464 exit (find_stack_direction() < 0);
8467 if { (eval echo configure:8468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8469 ac_cv_c_stack_direction=1
8471 echo "configure: failed program was:" >&5
8472 cat conftest.$ac_ext >&5
8474 ac_cv_c_stack_direction=-1
8481 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8482 cat >> confdefs.h <<EOF
8483 #define STACK_DIRECTION $ac_cv_c_stack_direction
8488 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8489 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8490 echo "configure:8491: checking for getmntent in -lsun" >&5
8491 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8495 ac_save_LIBS="$LIBS"
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 /* Override any gcc2 internal prototype to avoid an error. */
8501 /* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8509 if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8511 eval "ac_cv_lib_$ac_lib_var=yes"
8513 echo "configure: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8516 eval "ac_cv_lib_$ac_lib_var=no"
8519 LIBS="$ac_save_LIBS"
8522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8523 echo "$ac_t""yes" 1>&6
8526 echo "$ac_t""no" 1>&6
8527 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8528 echo "configure:8529: checking for getmntent in -lseq" >&5
8529 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8531 echo $ac_n "(cached) $ac_c" 1>&6
8533 ac_save_LIBS="$LIBS"
8535 cat > conftest.$ac_ext <<EOF
8536 #line 8537 "configure"
8537 #include "confdefs.h"
8538 /* Override any gcc2 internal prototype to avoid an error. */
8539 /* We use char because int might match the return type of a gcc2
8540 builtin and then its argument prototype would still apply. */
8547 if { (eval echo configure:8548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8549 eval "ac_cv_lib_$ac_lib_var=yes"
8551 echo "configure: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8554 eval "ac_cv_lib_$ac_lib_var=no"
8557 LIBS="$ac_save_LIBS"
8560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8561 echo "$ac_t""yes" 1>&6
8564 echo "$ac_t""no" 1>&6
8565 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8566 echo "configure:8567: checking for getmntent in -lgen" >&5
8567 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8569 echo $ac_n "(cached) $ac_c" 1>&6
8571 ac_save_LIBS="$LIBS"
8573 cat > conftest.$ac_ext <<EOF
8574 #line 8575 "configure"
8575 #include "confdefs.h"
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8585 if { (eval echo configure:8586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8587 eval "ac_cv_lib_$ac_lib_var=yes"
8589 echo "configure: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8592 eval "ac_cv_lib_$ac_lib_var=no"
8595 LIBS="$ac_save_LIBS"
8598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8599 echo "$ac_t""yes" 1>&6
8602 echo "$ac_t""no" 1>&6
8609 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8610 echo "configure:8611: checking for getmntent" >&5
8611 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8614 cat > conftest.$ac_ext <<EOF
8615 #line 8616 "configure"
8616 #include "confdefs.h"
8617 /* System header to define __stub macros and hopefully few prototypes,
8618 which can conflict with char getmntent(); below. */
8620 /* Override any gcc2 internal prototype to avoid an error. */
8621 /* We use char because int might match the return type of a gcc2
8622 builtin and then its argument prototype would still apply. */
8627 /* The GNU C library defines this for functions which it implements
8628 to always fail with ENOSYS. Some functions are actually named
8629 something starting with __ and the normal name is an alias. */
8630 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8638 if { (eval echo configure:8639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8640 eval "ac_cv_func_getmntent=yes"
8642 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8645 eval "ac_cv_func_getmntent=no"
8650 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8651 echo "$ac_t""yes" 1>&6
8652 cat >> confdefs.h <<\EOF
8653 #define HAVE_GETMNTENT 1
8657 echo "$ac_t""no" 1>&6
8660 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8661 echo "configure:8662: checking whether closedir returns void" >&5
8662 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8663 echo $ac_n "(cached) $ac_c" 1>&6
8665 if test "$cross_compiling" = yes; then
8666 ac_cv_func_closedir_void=yes
8668 cat > conftest.$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8671 #include <sys/types.h>
8672 #include <$ac_header_dirent>
8673 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8675 if { (eval echo configure:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8677 ac_cv_func_closedir_void=no
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8682 ac_cv_func_closedir_void=yes
8689 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8690 if test $ac_cv_func_closedir_void = yes; then
8691 cat >> confdefs.h <<\EOF
8692 #define CLOSEDIR_VOID 1
8697 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8698 echo "configure:8699: checking whether setpgrp takes no argument" >&5
8699 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8700 echo $ac_n "(cached) $ac_c" 1>&6
8702 if test "$cross_compiling" = yes; then
8703 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8709 #ifdef HAVE_UNISTD_H
8714 * If this system has a BSD-style setpgrp, which takes arguments, exit
8719 if (setpgrp(1,1) == -1)
8726 if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8728 ac_cv_func_setpgrp_void=no
8730 echo "configure: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8733 ac_cv_func_setpgrp_void=yes
8741 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8742 if test $ac_cv_func_setpgrp_void = yes; then
8743 cat >> confdefs.h <<\EOF
8744 #define SETPGRP_VOID 1
8748 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8749 echo "configure:8750: checking for working fnmatch" >&5
8750 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8751 echo $ac_n "(cached) $ac_c" 1>&6
8753 # Some versions of Solaris or SCO have a broken fnmatch function.
8754 # So we run a test program. If we are cross-compiling, take no chance.
8755 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8756 if test "$cross_compiling" = yes; then
8757 ac_cv_func_fnmatch_works=no
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8764 if { (eval echo configure:8765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8766 ac_cv_func_fnmatch_works=yes
8768 echo "configure: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8771 ac_cv_func_fnmatch_works=no
8778 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8779 if test $ac_cv_func_fnmatch_works = yes; then
8780 cat >> confdefs.h <<\EOF
8781 #define HAVE_FNMATCH 1
8788 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8789 echo "configure:8790: checking for setlocale in -lxpg4" >&5
8790 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
8794 ac_save_LIBS="$LIBS"
8796 cat > conftest.$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8799 /* Override any gcc2 internal prototype to avoid an error. */
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8808 if { (eval echo configure:8809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8810 eval "ac_cv_lib_$ac_lib_var=yes"
8812 echo "configure: failed program was:" >&5
8813 cat conftest.$ac_ext >&5
8815 eval "ac_cv_lib_$ac_lib_var=no"
8818 LIBS="$ac_save_LIBS"
8821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8822 echo "$ac_t""yes" 1>&6
8825 echo "$ac_t""no" 1>&6
8830 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8831 echo "configure:8832: checking for getpwnam in -lsun" >&5
8832 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8834 echo $ac_n "(cached) $ac_c" 1>&6
8836 ac_save_LIBS="$LIBS"
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 /* Override any gcc2 internal prototype to avoid an error. */
8842 /* We use char because int might match the return type of a gcc2
8843 builtin and then its argument prototype would still apply. */
8850 if { (eval echo configure:8851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8852 eval "ac_cv_lib_$ac_lib_var=yes"
8854 echo "configure: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8857 eval "ac_cv_lib_$ac_lib_var=no"
8860 LIBS="$ac_save_LIBS"
8863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8864 echo "$ac_t""yes" 1>&6
8865 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8866 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8867 cat >> confdefs.h <<EOF
8868 #define $ac_tr_lib 1
8874 echo "$ac_t""no" 1>&6
8878 for ac_hdr in zlib.h
8880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8882 echo "configure:8883: checking for $ac_hdr" >&5
8883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8892 { (eval echo configure:8893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8894 if test -z "$ac_err"; then
8896 eval "ac_cv_header_$ac_safe=yes"
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8902 eval "ac_cv_header_$ac_safe=no"
8906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8907 echo "$ac_t""yes" 1>&6
8908 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8909 cat >> confdefs.h <<EOF
8910 #define $ac_tr_hdr 1
8914 echo "$ac_t""no" 1>&6
8918 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8919 echo "configure:8920: checking for deflate in -lz" >&5
8920 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
8921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8924 ac_save_LIBS="$LIBS"
8926 cat > conftest.$ac_ext <<EOF
8927 #line 8928 "configure"
8928 #include "confdefs.h"
8929 /* Override any gcc2 internal prototype to avoid an error. */
8930 /* We use char because int might match the return type of a gcc2
8931 builtin and then its argument prototype would still apply. */
8938 if { (eval echo configure:8939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8940 eval "ac_cv_lib_$ac_lib_var=yes"
8942 echo "configure: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8945 eval "ac_cv_lib_$ac_lib_var=no"
8948 LIBS="$ac_save_LIBS"
8951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8952 echo "$ac_t""yes" 1>&6
8955 echo "$ac_t""no" 1>&6
8959 if test x$FDLIBS = x-lz; then
8960 cat >> confdefs.h <<\EOF
8968 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
8969 echo "configure:8970: checking for pthread_create in -lpthread" >&5
8970 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8972 echo $ac_n "(cached) $ac_c" 1>&6
8974 ac_save_LIBS="$LIBS"
8975 LIBS="-lpthread $LIBS"
8976 cat > conftest.$ac_ext <<EOF
8977 #line 8978 "configure"
8978 #include "confdefs.h"
8979 /* Override any gcc2 internal prototype to avoid an error. */
8980 /* We use char because int might match the return type of a gcc2
8981 builtin and then its argument prototype would still apply. */
8982 char pthread_create();
8988 if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8990 eval "ac_cv_lib_$ac_lib_var=yes"
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8995 eval "ac_cv_lib_$ac_lib_var=no"
8998 LIBS="$ac_save_LIBS"
9001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9002 echo "$ac_t""yes" 1>&6
9003 PTHREAD_LIB="-lpthread"
9005 echo "$ac_t""no" 1>&6
9006 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9007 echo "configure:9008: checking for pthread_create in -lpthreads" >&5
9008 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9010 echo $ac_n "(cached) $ac_c" 1>&6
9012 ac_save_LIBS="$LIBS"
9013 LIBS="-lpthreads $LIBS"
9014 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 /* Override any gcc2 internal prototype to avoid an error. */
9018 /* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9020 char pthread_create();
9026 if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9028 eval "ac_cv_lib_$ac_lib_var=yes"
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9033 eval "ac_cv_lib_$ac_lib_var=no"
9036 LIBS="$ac_save_LIBS"
9039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9040 echo "$ac_t""yes" 1>&6
9041 PTHREAD_LIB="-lpthreads"
9043 echo "$ac_t""no" 1>&6
9044 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9045 echo "configure:9046: checking for pthread_create in -lc_r" >&5
9046 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9048 echo $ac_n "(cached) $ac_c" 1>&6
9050 ac_save_LIBS="$LIBS"
9052 cat > conftest.$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9055 /* Override any gcc2 internal prototype to avoid an error. */
9056 /* We use char because int might match the return type of a gcc2
9057 builtin and then its argument prototype would still apply. */
9058 char pthread_create();
9064 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9066 eval "ac_cv_lib_$ac_lib_var=yes"
9068 echo "configure: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9071 eval "ac_cv_lib_$ac_lib_var=no"
9074 LIBS="$ac_save_LIBS"
9077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9078 echo "$ac_t""yes" 1>&6
9081 echo "$ac_t""no" 1>&6
9082 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9083 echo "configure:9084: checking for pthread_create" >&5
9084 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9087 cat > conftest.$ac_ext <<EOF
9088 #line 9089 "configure"
9089 #include "confdefs.h"
9090 /* System header to define __stub macros and hopefully few prototypes,
9091 which can conflict with char pthread_create(); below. */
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 /* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9096 char pthread_create();
9100 /* The GNU C library defines this for functions which it implements
9101 to always fail with ENOSYS. Some functions are actually named
9102 something starting with __ and the normal name is an alias. */
9103 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9111 if { (eval echo configure:9112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9113 eval "ac_cv_func_pthread_create=yes"
9115 echo "configure: failed program was:" >&5
9116 cat conftest.$ac_ext >&5
9118 eval "ac_cv_func_pthread_create=no"
9123 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9124 echo "$ac_t""yes" 1>&6
9127 echo "$ac_t""no" 1>&6
9141 cat >> confdefs.h <<\EOF
9148 LDFLAGS=${LDFLAGS--O}
9149 DB_LIBS="${SQL_LFLAGS}"
9151 CPPFLAGS="$CPPFLAGS"
9171 # Finally we set appropriate distribution specific
9172 # variables and defaults
9174 # PFILES are platform specific files
9175 PFILES="platforms/Makefile"
9182 PTHREAD_LIB="-lpthread -lexc"
9183 if test "${CC}" = "gcc" ; then
9190 TAPEDRIVE="/dev/nrmt0"
9193 DISTVER=`uname -a |awk '{print $3}'`
9194 TAPEDRIVE="/dev/nrst0"
9197 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
9198 TAPEDRIVE="/dev/nrst0"
9199 PSCMD="ps -e -o pid,command"
9200 hostname=`hostname -s`
9203 DISTVER=`uname -a |awk '{print $3}'`
9204 TAPEDRIVE="/dev/nrst0"
9206 CFLAGS="${CFLAGS} -mwindows"
9207 LDFLAGS="${LDFLAGS} -mwindows"
9210 DISTVER=`cat /etc/debian_version`
9211 TAPEDRIVE="/dev/nrst0"
9212 PSCMD="ps -e -o pid,command"
9213 hostname=`hostname -s`
9216 DISTVER=`uname -a |awk '{print $3}'`
9217 PTHREAD_LIB="-pthread"
9218 CFLAGS="${CFLAGS} -pthread"
9221 TAPEDRIVE="/dev/nrst0"
9222 PSCMD="ps -x -o pid,command"
9224 platforms/freebsd/Makefile \
9225 platforms/freebsd/bacula-fd \
9226 platforms/freebsd/bacula-sd \
9227 platforms/freebsd/bacula-dir"
9228 hostname=`hostname -s`
9229 ac_cv_sys_largefile_CFLAGS="yes"
9233 TAPEDRIVE="/dev/rmt/0hnb"
9237 TAPEDRIVE="/dev/rmt/0cbn"
9238 PSCMD="ps -e -o pid,comm"
9239 hostname=`/usr/bsd/hostname -s`
9241 platforms/irix/Makefile \
9242 platforms/irix/bacula-fd \
9243 platforms/irix/bacula-sd \
9244 platforms/irix/bacula-dir"
9247 DISTVER=`uname -a |awk '{print $3}'`
9250 TAPEDRIVE="/dev/nrst0"
9251 PSCMD="ps -a -o pid,command"
9254 DISTVER=`uname -a |awk '{print $3}'`
9257 TAPEDRIVE="/dev/nrst0"
9258 PSCMD="ps -a -o pid,command"
9261 DISTVER=`cat /etc/redhat-release | grep release |\
9263 TAPEDRIVE="/dev/nst0"
9264 PSCMD="ps -e -o pid,command"
9266 platforms/redhat/Makefile \
9267 platforms/redhat/bacula-fd \
9268 platforms/redhat/bacula-sd \
9269 platforms/redhat/bacula-dir"
9270 hostname=`hostname -s`
9273 DISTVER=`cat /etc/slackware-version`
9274 TAPEDRIVE="/dev/nst0"
9275 PSCMD="ps -e -o pid,command"
9276 hostname=`hostname -s`
9280 TAPEDRIVE="/dev/rmt/0cbn"
9281 PSCMD="ps -e -o pid,comm"
9283 platforms/solaris/Makefile \
9284 platforms/solaris/bacula-fd \
9285 platforms/solaris/bacula-sd \
9286 platforms/solaris/bacula-dir"
9289 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9291 TAPEDRIVE="/dev/nst0"
9292 PSCMD="ps -e -o pid,command"
9293 hostname=`hostname -s`
9298 TAPEDRIVE="/dev/nst0"
9299 PSCMD="ps -e -o pid,command"
9300 hostname=`hostname -s`
9304 TAPEDRIVE="/dev/nst0"
9307 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9314 LIBS="$PTHREAD_LIB $LIBS"
9316 cat >> confdefs.h <<EOF
9320 cat >> confdefs.h <<EOF
9331 MCOMMON=./autoconf/Make.common
9335 cat > confcache <<\EOF
9336 # This file is a shell script that caches the results of configure
9337 # tests run on this system so they can be shared between configure
9338 # scripts and configure runs. It is not useful on other systems.
9339 # If it contains results you don't want to keep, you may remove or edit it.
9341 # By default, configure uses ./config.cache as the cache file,
9342 # creating it if it does not exist already. You can give configure
9343 # the --cache-file=FILE option to use a different cache file; that is
9344 # what configure does when it calls configure scripts in
9345 # subdirectories, so they share the cache.
9346 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9347 # config.status only pays attention to the cache file if you give it the
9348 # --recheck option to rerun configure.
9351 # The following way of writing the cache mishandles newlines in values,
9352 # but we know of no workaround that is simple, portable, and efficient.
9353 # So, don't put newlines in cache variables' values.
9354 # Ultrix sh set writes to stderr and can't be redirected directly,
9355 # and sets the high bit in the cache file unless we assign to the vars.
9357 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9359 # `set' does not quote correctly, so add quotes (double-quote substitution
9360 # turns \\\\ into \\, and sed turns \\ into \).
9362 -e "s/'/'\\\\''/g" \
9363 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9366 # `set' quotes correctly as required by POSIX, so do not add quotes.
9367 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9370 if cmp -s $cache_file confcache; then
9373 if test -w $cache_file; then
9374 echo "updating cache $cache_file"
9375 cat confcache > $cache_file
9377 echo "not updating unwritable cache $cache_file"
9382 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9385 # Let make expand exec_prefix.
9386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9388 # Any assignment to VPATH causes Sun make to only execute
9389 # the first set of double-colon rules, so remove it if not needed.
9390 # If there is a colon in the path, we need to keep it.
9391 if test "x$srcdir" = x.; then
9392 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9395 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9397 DEFS=-DHAVE_CONFIG_H
9399 # Without the "./", some shells look in PATH for config.status.
9400 : ${CONFIG_STATUS=./config.status}
9402 echo creating $CONFIG_STATUS
9403 rm -f $CONFIG_STATUS
9404 cat > $CONFIG_STATUS <<EOF
9406 # Generated automatically by configure.
9407 # Run this file to recreate the current configuration.
9408 # This directory was configured as follows,
9409 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9411 # $0 $ac_configure_args
9413 # Compiler output produced by configure, useful for debugging
9414 # configure, is in ./config.log if it exists.
9416 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9419 case "\$ac_option" in
9420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9421 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9422 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9423 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9424 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9426 -help | --help | --hel | --he | --h)
9427 echo "\$ac_cs_usage"; exit 0 ;;
9428 *) echo "\$ac_cs_usage"; exit 1 ;;
9432 ac_given_srcdir=$srcdir
9433 ac_given_INSTALL="$INSTALL"
9435 trap 'rm -fr `echo "autoconf/Make.common \
9448 src/console/Makefile \
9449 src/console/console.conf \
9450 src/gnome-console/Makefile \
9451 src/gnome-console/gnome-console.conf \
9453 src/dird/bacula-dir.conf \
9455 src/stored/Makefile \
9456 src/stored/bacula-sd.conf \
9457 src/filed/Makefile \
9458 src/filed/bacula-fd.conf \
9459 src/filed/win32/Makefile \
9461 src/cats/alter_mysql_tables \
9462 src/cats/make_mysql_tables \
9463 src/cats/drop_mysql_tables \
9464 src/cats/create_mysql_database \
9465 src/cats/grant_mysql_privileges \
9466 src/cats/alter_sqlite_tables \
9467 src/cats/make_sqlite_tables \
9468 src/cats/drop_sqlite_tables \
9469 src/cats/create_sqlite_database \
9472 src/cats/create_bdb_database \
9473 src/cats/make_bdb_tables \
9474 src/cats/drop_bdb_tables \
9475 src/cats/make_bacula_tables \
9476 src/cats/drop_bacula_tables \
9477 src/findlib/Makefile \
9478 src/tools/Makefile \
9479 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9481 cat >> $CONFIG_STATUS <<EOF
9483 # Protect against being on the right side of a sed subst in config.status.
9484 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9485 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9489 s%@CFLAGS@%$CFLAGS%g
9490 s%@CPPFLAGS@%$CPPFLAGS%g
9491 s%@CXXFLAGS@%$CXXFLAGS%g
9492 s%@FFLAGS@%$FFLAGS%g
9494 s%@LDFLAGS@%$LDFLAGS%g
9496 s%@exec_prefix@%$exec_prefix%g
9497 s%@prefix@%$prefix%g
9498 s%@program_transform_name@%$program_transform_name%g
9499 s%@bindir@%$bindir%g
9500 s%@sbindir@%$sbindir%g
9501 s%@libexecdir@%$libexecdir%g
9502 s%@datadir@%$datadir%g
9503 s%@sysconfdir@%$sysconfdir%g
9504 s%@sharedstatedir@%$sharedstatedir%g
9505 s%@localstatedir@%$localstatedir%g
9506 s%@libdir@%$libdir%g
9507 s%@includedir@%$includedir%g
9508 s%@oldincludedir@%$oldincludedir%g
9509 s%@infodir@%$infodir%g
9510 s%@mandir@%$mandir%g
9511 s%@BUILD_DIR@%$BUILD_DIR%g
9512 s%@TRUEPRG@%$TRUEPRG%g
9513 s%@FALSEPRG@%$FALSEPRG%g
9515 s%@host_alias@%$host_alias%g
9516 s%@host_cpu@%$host_cpu%g
9517 s%@host_vendor@%$host_vendor%g
9518 s%@host_os@%$host_os%g
9519 s%@VERSION@%$VERSION%g
9521 s%@LSMDATE@%$LSMDATE%g
9525 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9526 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9527 s%@INSTALL_DATA@%$INSTALL_DATA%g
9528 s%@RANLIB@%$RANLIB%g
9538 s%@OPENSSL@%$OPENSSL%g
9539 s%@ARFLAGS@%$ARFLAGS%g
9540 s%@MAKE_SHELL@%$MAKE_SHELL%g
9541 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9542 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9543 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9544 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9545 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9546 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9547 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9548 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9549 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9550 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9551 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9552 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9553 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9554 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9555 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9556 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9557 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9558 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9559 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9560 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9561 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9562 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9563 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9564 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9565 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
9566 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
9567 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9568 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9569 s%@MSGFMT@%$MSGFMT%g
9570 s%@GNOME_LIBS@%$GNOME_LIBS%g
9571 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9572 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9573 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9574 s%@ZVT_LIBS@%$ZVT_LIBS%g
9575 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9576 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9577 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9578 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9579 s%@ORBIT_IDL@%$ORBIT_IDL%g
9580 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9581 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9582 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9583 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9584 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9585 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9586 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9587 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9588 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9589 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9590 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9591 s%@GNOME_DIR@%$GNOME_DIR%g
9592 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
9593 s%@CONS_INC@%$CONS_INC%g
9594 s%@CONS_LIBS@%$CONS_LIBS%g
9595 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9596 s%@READLINE_SRC@%$READLINE_SRC%g
9597 s%@GMP_INC@%$GMP_INC%g
9598 s%@GMP_LIBS@%$GMP_LIBS%g
9599 s%@GMP_LDFLAGS@%$GMP_LDFLAGS%g
9600 s%@GMP_SRC@%$GMP_SRC%g
9602 s%@CWEB_INC@%$CWEB_INC%g
9603 s%@CWEB_LIBS@%$CWEB_LIBS%g
9604 s%@CWEB_LDFLAGS@%$CWEB_LDFLAGS%g
9605 s%@CWEB_SRC@%$CWEB_SRC%g
9606 s%@working_dir@%$working_dir%g
9607 s%@dump_email@%$dump_email%g
9608 s%@job_email@%$job_email%g
9609 s%@smtp_host@%$smtp_host%g
9610 s%@piddir@%$piddir%g
9611 s%@subsysdir@%$subsysdir%g
9612 s%@baseport@%$baseport%g
9613 s%@dir_port@%$dir_port%g
9614 s%@fd_port@%$fd_port%g
9615 s%@sd_port@%$sd_port%g
9616 s%@dir_password@%$dir_password%g
9617 s%@fd_password@%$fd_password%g
9618 s%@sd_password@%$sd_password%g
9619 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9620 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9621 s%@SQL_BINDIR@%$SQL_BINDIR%g
9623 s%@DB_NAME@%$DB_NAME%g
9624 s%@EXEEXT@%$EXEEXT%g
9626 s%@build_alias@%$build_alias%g
9627 s%@build_cpu@%$build_cpu%g
9628 s%@build_vendor@%$build_vendor%g
9629 s%@build_os@%$build_os%g
9630 s%@GETCONF@%$GETCONF%g
9631 s%@X_CFLAGS@%$X_CFLAGS%g
9632 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9633 s%@X_LIBS@%$X_LIBS%g
9634 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9635 s%@LIBOBJS@%$LIBOBJS%g
9636 s%@ALLOCA@%$ALLOCA%g
9637 s%@FDLIBS@%$FDLIBS%g
9639 s%@DINCLUDE@%$DINCLUDE%g
9641 s%@DB_LIBS@%$DB_LIBS%g
9642 s%@OBJLIST@%$OBJLIST%g
9643 s%@hostname@%$hostname%g
9644 s%@TAPEDRIVE@%$TAPEDRIVE%g
9647 s%@DISTNAME@%$DISTNAME%g
9648 s%@DISTVER@%$DISTVER%g
9649 /@MCOMMON@/r $MCOMMON
9655 cat >> $CONFIG_STATUS <<\EOF
9657 # Split the substitutions into bite-sized pieces for seds with
9658 # small command number limits, like on Digital OSF/1 and HP-UX.
9659 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9660 ac_file=1 # Number of current file.
9661 ac_beg=1 # First line for current file.
9662 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9665 while $ac_more_lines; do
9666 if test $ac_beg -gt 1; then
9667 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9669 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9671 if test ! -s conftest.s$ac_file; then
9673 rm -f conftest.s$ac_file
9675 if test -z "$ac_sed_cmds"; then
9676 ac_sed_cmds="sed -f conftest.s$ac_file"
9678 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9680 ac_file=`expr $ac_file + 1`
9682 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9685 if test -z "$ac_sed_cmds"; then
9690 cat >> $CONFIG_STATUS <<EOF
9692 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9705 src/console/Makefile \
9706 src/console/console.conf \
9707 src/gnome-console/Makefile \
9708 src/gnome-console/gnome-console.conf \
9710 src/dird/bacula-dir.conf \
9712 src/stored/Makefile \
9713 src/stored/bacula-sd.conf \
9714 src/filed/Makefile \
9715 src/filed/bacula-fd.conf \
9716 src/filed/win32/Makefile \
9718 src/cats/alter_mysql_tables \
9719 src/cats/make_mysql_tables \
9720 src/cats/drop_mysql_tables \
9721 src/cats/create_mysql_database \
9722 src/cats/grant_mysql_privileges \
9723 src/cats/alter_sqlite_tables \
9724 src/cats/make_sqlite_tables \
9725 src/cats/drop_sqlite_tables \
9726 src/cats/create_sqlite_database \
9729 src/cats/create_bdb_database \
9730 src/cats/make_bdb_tables \
9731 src/cats/drop_bdb_tables \
9732 src/cats/make_bacula_tables \
9733 src/cats/drop_bacula_tables \
9734 src/findlib/Makefile \
9735 src/tools/Makefile \
9738 cat >> $CONFIG_STATUS <<\EOF
9739 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9740 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9742 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9743 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9744 *) ac_file_in="${ac_file}.in" ;;
9747 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9749 # Remove last slash and all that follows it. Not all systems have dirname.
9750 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9751 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9752 # The file is in a subdirectory.
9753 test ! -d "$ac_dir" && mkdir "$ac_dir"
9754 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9755 # A "../" for each directory in $ac_dir_suffix.
9756 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9758 ac_dir_suffix= ac_dots=
9761 case "$ac_given_srcdir" in
9763 if test -z "$ac_dots"; then top_srcdir=.
9764 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9765 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9767 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9768 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9771 case "$ac_given_INSTALL" in
9772 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9773 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9776 echo creating "$ac_file"
9778 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9780 *Makefile*) ac_comsub="1i\\
9781 # $configure_input" ;;
9785 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9787 s%@configure_input@%$configure_input%g
9788 s%@srcdir@%$srcdir%g
9789 s%@top_srcdir@%$top_srcdir%g
9790 s%@INSTALL@%$INSTALL%g
9791 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9798 # ac_d sets the value in "#define NAME VALUE" lines.
9799 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9800 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9803 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9804 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9805 ac_uB='\([ ]\)%\1#\2define\3'
9808 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9809 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9810 ac_eB='$%\1#\2define\3'
9814 if test "${CONFIG_HEADERS+set}" != set; then
9816 cat >> $CONFIG_STATUS <<EOF
9817 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9819 cat >> $CONFIG_STATUS <<\EOF
9821 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9822 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9824 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9825 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9826 *) ac_file_in="${ac_file}.in" ;;
9829 echo creating $ac_file
9831 rm -f conftest.frag conftest.in conftest.out
9832 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9833 cat $ac_file_inputs > conftest.in
9837 # Transform confdefs.h into a sed script conftest.vals that substitutes
9838 # the proper values into config.h.in to produce config.h. And first:
9839 # Protect against being on the right side of a sed subst in config.status.
9840 # Protect against being in an unquoted here document in config.status.
9842 cat > conftest.hdr <<\EOF
9845 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9849 sed -n -f conftest.hdr confdefs.h > conftest.vals
9852 # This sed command replaces #undef with comments. This is necessary, for
9853 # example, in the case of _POSIX_SOURCE, which is predefined and required
9854 # on some systems where configure will not decide to define it.
9855 cat >> conftest.vals <<\EOF
9856 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9859 # Break up conftest.vals because some shells have a limit on
9860 # the size of here documents, and old seds have small limits too.
9865 ac_lines=`grep -c . conftest.vals`
9866 # grep -c gives empty output for an empty file on some AIX systems.
9867 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9868 # Write a limited-size here document to conftest.frag.
9869 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9870 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9872 sed -f conftest.frag conftest.in > conftest.out
9874 mv conftest.out conftest.in
9876 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9878 mv conftest.tail conftest.vals
9882 cat >> $CONFIG_STATUS <<\EOF
9883 rm -f conftest.frag conftest.h
9884 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9885 cat conftest.in >> conftest.h
9887 if cmp -s $ac_file conftest.h 2>/dev/null; then
9888 echo "$ac_file is unchanged"
9891 # Remove last slash and all that follows it. Not all systems have dirname.
9892 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9893 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9894 # The file is in a subdirectory.
9895 test ! -d "$ac_dir" && mkdir "$ac_dir"
9898 mv conftest.h $ac_file
9903 cat >> $CONFIG_STATUS <<EOF
9906 cat >> $CONFIG_STATUS <<\EOF
9907 (echo "Doing make of dependencies"; make depend;)
9911 chmod +x $CONFIG_STATUS
9912 rm -fr confdefs* $ac_clean_files
9913 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9916 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
9917 chmod 755 console gconsole
9918 cp -f startit stopit btraceback btraceback.gdb src/console
9919 cp -f startit stopit btraceback btraceback.gdb src/dird
9920 cp -f startit stopit btraceback btraceback.gdb src/filed
9921 cp -f startit stopit btraceback btraceback.gdb src/lib
9922 cp -f startit stopit btraceback btraceback.gdb src/stored
9923 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
9924 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
9925 chmod 755 src/cats/create_mysql_database
9926 chmod 755 src/cats/alter_mysql_tables
9927 chmod 755 src/cats/grant_mysql_privileges
9928 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
9929 chmod 755 src/cats/create_sqlite_database
9930 chmod 755 src/cats/alter_sqlite_tables
9931 chmod 755 src/cats/sqlite
9932 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
9933 chmod 755 src/cats/create_bdb_database
9935 if test x$ac_cv_sys_largefile_CFLAGS != xno ; then
9936 ac_cv_sys_largefile_CFLAGS="yes"
9941 Configuration on `date`:
9943 Host: ${DISTNAME} ${DISTVER}
9944 Bacula version: ${VERSION} (${DATE})
9945 Source code location: ${srcdir}
9946 Install binaries: ${sbindir}
9947 Install config files: ${sysconfdir}
9949 C++ Compiler: ${CXX}
9950 Compiler flags: ${CFLAGS}
9951 Linker flags: ${LDFLAGS}
9953 Statically Linked Tools: ${support_static_tools}
9954 Database found: ${have_db}
9955 Database type: ${db_name}
9956 Database lib: ${DB_LIBS}
9958 Job Output Email: ${job_email}
9959 Traceback Email: ${dump_email}
9960 SMTP Host Address: ${smtp_host}
9961 Director Port ${dir_port}
9962 File daemon Port ${fd_port}
9963 Storage daemon Port ${sd_port}
9964 Working directory ${working_dir}
9965 SQL binaries Directory ${SQL_BINDIR}
9967 Large file support: $ac_cv_sys_largefile_CFLAGS
9968 readline support: ${got_readline} ${PRTREADLINE_SRC}
9969 cweb support: ${got_cweb} ${CWEB_SRC}
9970 TCP Wrappers support: ${TCPW_MSG}
9971 ZLIB support: ${have_zlib}
9972 enable-smartalloc: ${support_smartalloc}
9973 enable-gnome: ${support_gnome}
9974 gmp support: ${got_gmp} ${GMP_SRC}