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 --disable-readline disable readline support "
29 --with-readline[=DIR] Specify readline library directory"
31 --with-gmp[=DIR] Specify gmp library directory"
33 --with-cweb[=DIR] Specify cweb library directory"
35 --with-tcp-wrappers=DIR Enable tcpwrappers support"
37 --with-working-dir=PATH Specify location of Bacula working files"
39 --with-dump-email=Dump email address"
41 --with-job-email=Job output email address"
43 --with-smtp-host=SMTP mail host address"
45 --with-pid-dir=PATH Specify location of Bacula pid files"
47 --with-subsys-dir=PATH Specify location of Bacula subsys file"
49 --with-baseport=PORT Specify base port address for daemons"
51 --with-dir-password=PASSWORD Specify Director's password"
53 --with-fd-password=PASSWORD Specify Client's password"
55 --with-sd-password=PASSWORD Specify Storage daemon's password"
58 Which one DBMS do you want to use (please select only one):
59 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
60 install directory, default is to search through
61 a number of common places for the MySQL files."
64 Which one DBMS do you want to use (please select only one):
65 --with-embedde-mysql[=DIR] Include MySQL support. DIR is the MySQL base
66 install directory, default is to search through
67 a number of common places for the MySQL files."
70 Which one DBMS do you want to use (please select only one):
71 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
72 install directory, default is to search through
73 a number of common places for the SQLite files."
75 --with-x use the X Window System"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file=./config.cache
90 program_transform_name=s,x,x,
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=src/version.h
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='\c' ac_t=
592 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
593 if test -f $ac_dir/install-sh; then
595 ac_install_sh="$ac_aux_dir/install-sh -c"
597 elif test -f $ac_dir/install.sh; then
599 ac_install_sh="$ac_aux_dir/install.sh -c"
603 if test -z "$ac_aux_dir"; then
604 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
606 ac_config_guess=$ac_aux_dir/config.guess
607 ac_config_sub=$ac_aux_dir/config.sub
608 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
617 # Extract the first word of "$ac_prog", so it can be a program name with args.
618 set dummy $ac_prog; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
626 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
629 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
634 for ac_dir in $ac_dummy; do
635 test -z "$ac_dir" && ac_dir=.
636 if test -f $ac_dir/$ac_word; then
637 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
645 TRUEPRG="$ac_cv_path_TRUEPRG"
646 if test -n "$TRUEPRG"; then
647 echo "$ac_t""$TRUEPRG" 1>&6
649 echo "$ac_t""no" 1>&6
652 test -n "$TRUEPRG" && break
654 test -n "$TRUEPRG" || TRUEPRG=":"
658 # Extract the first word of "$ac_prog", so it can be a program name with args.
659 set dummy $ac_prog; ac_word=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
667 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
670 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
675 for ac_dir in $ac_dummy; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
686 FALSEPRG="$ac_cv_path_FALSEPRG"
687 if test -n "$FALSEPRG"; then
688 echo "$ac_t""$FALSEPRG" 1>&6
690 echo "$ac_t""no" 1>&6
693 test -n "$FALSEPRG" && break
695 test -n "$FALSEPRG" || FALSEPRG=":"
699 # Make sure we can run config.sub.
700 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
701 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
704 echo $ac_n "checking host system type""... $ac_c" 1>&6
705 echo "configure:706: checking host system type" >&5
708 case "$host_alias" in
712 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
713 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
715 *) host_alias=$nonopt ;;
719 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
720 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
721 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
722 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
723 echo "$ac_t""$host" 1>&6
726 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
727 DATE=`sed -n -e 's/^.* \t*DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
728 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
729 echo "configuring for bacula $VERSION ($DATE)"
733 # Extract the first word of "gcc", so it can be a program name with args.
734 set dummy gcc; ac_word=$2
735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
736 echo "configure:737: checking for $ac_word" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 if test -n "$CC"; then
741 ac_cv_prog_CC="$CC" # Let the user override the test.
743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
745 for ac_dir in $ac_dummy; do
746 test -z "$ac_dir" && ac_dir=.
747 if test -f $ac_dir/$ac_word; then
756 if test -n "$CC"; then
757 echo "$ac_t""$CC" 1>&6
759 echo "$ac_t""no" 1>&6
762 if test -z "$CC"; then
763 # Extract the first word of "cc", so it can be a program name with args.
764 set dummy cc; ac_word=$2
765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
766 echo "configure:767: checking for $ac_word" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 if test -n "$CC"; then
771 ac_cv_prog_CC="$CC" # Let the user override the test.
773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
776 for ac_dir in $ac_dummy; do
777 test -z "$ac_dir" && ac_dir=.
778 if test -f $ac_dir/$ac_word; then
779 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
788 if test $ac_prog_rejected = yes; then
789 # We found a bogon in the path, so make sure we never use it.
790 set dummy $ac_cv_prog_CC
792 if test $# -gt 0; then
793 # We chose a different compiler from the bogus one.
794 # However, it has the same basename, so the bogon will be chosen
795 # first if we set CC to just the basename; use the full file name.
797 set dummy "$ac_dir/$ac_word" "$@"
805 if test -n "$CC"; then
806 echo "$ac_t""$CC" 1>&6
808 echo "$ac_t""no" 1>&6
811 if test -z "$CC"; then
814 # Extract the first word of "cl", so it can be a program name with args.
815 set dummy cl; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 if test -n "$CC"; then
822 ac_cv_prog_CC="$CC" # Let the user override the test.
824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
826 for ac_dir in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir=.
828 if test -f $ac_dir/$ac_word; then
837 if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
840 echo "$ac_t""no" 1>&6
845 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
848 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
849 echo "configure:850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
853 ac_cpp='$CPP $CPPFLAGS'
854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
856 cross_compiling=$ac_cv_prog_cc_cross
858 cat > conftest.$ac_ext << EOF
860 #line 861 "configure"
861 #include "confdefs.h"
865 if { (eval echo configure:866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
866 ac_cv_prog_cc_works=yes
867 # If we can't run a trivial program, we are probably using a cross compiler.
868 if (./conftest; exit) 2>/dev/null; then
869 ac_cv_prog_cc_cross=no
871 ac_cv_prog_cc_cross=yes
874 echo "configure: failed program was:" >&5
875 cat conftest.$ac_ext >&5
876 ac_cv_prog_cc_works=no
880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
881 ac_cpp='$CPP $CPPFLAGS'
882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
884 cross_compiling=$ac_cv_prog_cc_cross
886 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
887 if test $ac_cv_prog_cc_works = no; then
888 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
890 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
891 echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
892 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
893 cross_compiling=$ac_cv_prog_cc_cross
895 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
896 echo "configure:897: checking whether we are using GNU C" >&5
897 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 cat > conftest.c <<EOF
905 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
912 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
914 if test $ac_cv_prog_gcc = yes; then
920 ac_test_CFLAGS="${CFLAGS+set}"
921 ac_save_CFLAGS="$CFLAGS"
923 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
924 echo "configure:925: checking whether ${CC-cc} accepts -g" >&5
925 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
926 echo $ac_n "(cached) $ac_c" 1>&6
928 echo 'void f(){}' > conftest.c
929 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
938 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
939 if test "$ac_test_CFLAGS" = set; then
940 CFLAGS="$ac_save_CFLAGS"
941 elif test $ac_cv_prog_cc_g = yes; then
942 if test "$GCC" = yes; then
948 if test "$GCC" = yes; then
955 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
957 # Extract the first word of "$ac_prog", so it can be a program name with args.
958 set dummy $ac_prog; ac_word=$2
959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
960 echo "configure:961: checking for $ac_word" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 if test -n "$CXX"; then
965 ac_cv_prog_CXX="$CXX" # Let the user override the test.
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
969 for ac_dir in $ac_dummy; do
970 test -z "$ac_dir" && ac_dir=.
971 if test -f $ac_dir/$ac_word; then
972 ac_cv_prog_CXX="$ac_prog"
979 CXX="$ac_cv_prog_CXX"
980 if test -n "$CXX"; then
981 echo "$ac_t""$CXX" 1>&6
983 echo "$ac_t""no" 1>&6
986 test -n "$CXX" && break
988 test -n "$CXX" || CXX="gcc"
991 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
992 echo "configure:993: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
996 ac_cpp='$CXXCPP $CPPFLAGS'
997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
999 cross_compiling=$ac_cv_prog_cxx_cross
1001 cat > conftest.$ac_ext << EOF
1003 #line 1004 "configure"
1004 #include "confdefs.h"
1006 int main(){return(0);}
1008 if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1009 ac_cv_prog_cxx_works=yes
1010 # If we can't run a trivial program, we are probably using a cross compiler.
1011 if (./conftest; exit) 2>/dev/null; then
1012 ac_cv_prog_cxx_cross=no
1014 ac_cv_prog_cxx_cross=yes
1017 echo "configure: failed program was:" >&5
1018 cat conftest.$ac_ext >&5
1019 ac_cv_prog_cxx_works=no
1023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1024 ac_cpp='$CPP $CPPFLAGS'
1025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1027 cross_compiling=$ac_cv_prog_cc_cross
1029 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1030 if test $ac_cv_prog_cxx_works = no; then
1031 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1033 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1034 echo "configure:1035: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1035 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1036 cross_compiling=$ac_cv_prog_cxx_cross
1038 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether we are using GNU C++" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 cat > conftest.C <<EOF
1048 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1055 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1057 if test $ac_cv_prog_gxx = yes; then
1063 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1064 ac_save_CXXFLAGS="$CXXFLAGS"
1066 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1067 echo "configure:1068: checking whether ${CXX-g++} accepts -g" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 echo 'void f(){}' > conftest.cc
1072 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1073 ac_cv_prog_cxx_g=yes
1081 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1082 if test "$ac_test_CXXFLAGS" = set; then
1083 CXXFLAGS="$ac_save_CXXFLAGS"
1084 elif test $ac_cv_prog_cxx_g = yes; then
1085 if test "$GXX" = yes; then
1091 if test "$GXX" = yes; then
1098 for ac_declaration in \
1100 '#include <stdlib.h>' \
1101 'extern "C" void std::exit (int) throw (); using std::exit;' \
1102 'extern "C" void std::exit (int); using std::exit;' \
1103 'extern "C" void exit (int) throw ();' \
1104 'extern "C" void exit (int);' \
1107 cat > conftest.$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1116 if { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1119 echo "configure: failed program was:" >&5
1120 cat conftest.$ac_ext >&5
1125 cat > conftest.$ac_ext <<EOF
1126 #line 1127 "configure"
1127 #include "confdefs.h"
1133 if { (eval echo configure:1134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
1142 if test -n "$ac_declaration"; then
1143 echo '#ifdef __cplusplus' >>confdefs.h
1144 echo $ac_declaration >>confdefs.h
1145 echo '#endif' >>confdefs.h
1149 if test "x$CC" != xcc; then
1150 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether $CC and cc understand -c and -o together" >&5
1153 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether cc understands -c and -o together" >&5
1156 set dummy $CC; ac_cc="`echo $2 |
1157 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1158 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 echo 'foo(){}' > conftest.c
1162 # Make sure it works both with $CC and with simple cc.
1163 # We do the test twice because some compilers refuse to overwrite an
1164 # existing .o file with -o, though they will create one.
1165 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1166 if { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1167 test -f conftest.o && { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1169 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1170 if test "x$CC" != xcc; then
1171 # Test first that cc exists at all.
1172 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1173 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1174 if { (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1175 test -f conftest.o && { (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1180 # cc exists but doesn't like -o.
1181 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1186 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1191 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1192 echo "$ac_t""yes" 1>&6
1194 echo "$ac_t""no" 1>&6
1195 cat >> confdefs.h <<\EOF
1196 #define NO_MINUS_C_MINUS_O 1
1200 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1201 echo "configure:1202: checking how to run the C preprocessor" >&5
1202 # On Suns, sometimes $CPP names a directory.
1203 if test -n "$CPP" && test -d "$CPP"; then
1206 if test -z "$CPP"; then
1207 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 # This must be in double quotes, not single quotes, because CPP may get
1211 # substituted into the Makefile and "${CC-cc}" will confuse make.
1213 # On the NeXT, cc -E runs the code through the compiler's parser,
1214 # not just through cpp.
1215 cat > conftest.$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1222 { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1224 if test -z "$ac_err"; then
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1231 CPP="${CC-cc} -E -traditional-cpp"
1232 cat > conftest.$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1239 { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1241 if test -z "$ac_err"; then
1245 echo "configure: failed program was:" >&5
1246 cat conftest.$ac_ext >&5
1248 CPP="${CC-cc} -nologo -E"
1249 cat > conftest.$ac_ext <<EOF
1250 #line 1251 "configure"
1251 #include "confdefs.h"
1255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1256 { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1258 if test -z "$ac_err"; then
1262 echo "configure: failed program was:" >&5
1263 cat conftest.$ac_ext >&5
1272 ac_cv_prog_CPP="$CPP"
1274 CPP="$ac_cv_prog_CPP"
1276 ac_cv_prog_CPP="$CPP"
1278 echo "$ac_t""$CPP" 1>&6
1280 if test $ac_cv_prog_gcc = yes; then
1281 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether ${CC-cc} needs -traditional" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 ac_pattern="Autoconf.*'x'"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1294 egrep "$ac_pattern" >/dev/null 2>&1; then
1296 ac_cv_prog_gcc_traditional=yes
1299 ac_cv_prog_gcc_traditional=no
1304 if test $ac_cv_prog_gcc_traditional = no; then
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1312 egrep "$ac_pattern" >/dev/null 2>&1; then
1314 ac_cv_prog_gcc_traditional=yes
1321 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1322 if test $ac_cv_prog_gcc_traditional = yes; then
1323 CC="$CC -traditional"
1329 cat >> confdefs.h <<\EOF
1335 # Find a good install program. We prefer a C program (faster),
1336 # so one script is as good as another. But avoid the broken or
1337 # incompatible versions:
1338 # SysV /etc/install, /usr/sbin/install
1339 # SunOS /usr/etc/install
1340 # IRIX /sbin/install
1342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1345 # ./install, which can be erroneously created by make from ./install.sh.
1346 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1347 echo "configure:1348: checking for a BSD compatible install" >&5
1348 if test -z "$INSTALL"; then
1349 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1353 for ac_dir in $PATH; do
1354 # Account for people who put trailing slashes in PATH elements.
1356 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1358 # OSF1 and SCO ODT 3.0 have their own names for install.
1359 # Don't use installbsd from OSF since it installs stuff as root
1361 for ac_prog in ginstall scoinst install; do
1362 if test -f $ac_dir/$ac_prog; then
1363 if test $ac_prog = install &&
1364 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1365 # AIX install. It has an incompatible calling convention.
1368 ac_cv_path_install="$ac_dir/$ac_prog -c"
1379 if test "${ac_cv_path_install+set}" = set; then
1380 INSTALL="$ac_cv_path_install"
1382 # As a last resort, use the slow shell script. We don't cache a
1383 # path for INSTALL within a source directory, because that will
1384 # break other packages using the cache if that directory is
1385 # removed, or if the path is relative.
1386 INSTALL="$ac_install_sh"
1389 echo "$ac_t""$INSTALL" 1>&6
1391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1392 # It thinks the first close brace ends the variable substitution.
1393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1399 # Extract the first word of "ranlib", so it can be a program name with args.
1400 set dummy ranlib; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 if test -n "$RANLIB"; then
1407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_RANLIB="ranlib"
1419 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1422 RANLIB="$ac_cv_prog_RANLIB"
1423 if test -n "$RANLIB"; then
1424 echo "$ac_t""$RANLIB" 1>&6
1426 echo "$ac_t""no" 1>&6
1429 # Extract the first word of "mv", so it can be a program name with args.
1430 set dummy mv; ac_word=$2
1431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1432 echo "configure:1433: checking for $ac_word" >&5
1433 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1438 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1441 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1446 for ac_dir in $ac_dummy; do
1447 test -z "$ac_dir" && ac_dir=.
1448 if test -f $ac_dir/$ac_word; then
1449 ac_cv_path_MV="$ac_dir/$ac_word"
1454 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1459 if test -n "$MV"; then
1460 echo "$ac_t""$MV" 1>&6
1462 echo "$ac_t""no" 1>&6
1465 # Extract the first word of "rm", so it can be a program name with args.
1466 set dummy rm; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1474 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1477 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_path_RM="$ac_dir/$ac_word"
1490 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1495 if test -n "$RM"; then
1496 echo "$ac_t""$RM" 1>&6
1498 echo "$ac_t""no" 1>&6
1501 # Extract the first word of "cp", so it can be a program name with args.
1502 set dummy cp; ac_word=$2
1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1504 echo "configure:1505: checking for $ac_word" >&5
1505 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1510 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1513 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1518 for ac_dir in $ac_dummy; do
1519 test -z "$ac_dir" && ac_dir=.
1520 if test -f $ac_dir/$ac_word; then
1521 ac_cv_path_CP="$ac_dir/$ac_word"
1526 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1531 if test -n "$CP"; then
1532 echo "$ac_t""$CP" 1>&6
1534 echo "$ac_t""no" 1>&6
1537 # Extract the first word of "sed", so it can be a program name with args.
1538 set dummy sed; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1546 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1549 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1554 for ac_dir in $ac_dummy; do
1555 test -z "$ac_dir" && ac_dir=.
1556 if test -f $ac_dir/$ac_word; then
1557 ac_cv_path_SED="$ac_dir/$ac_word"
1562 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1566 SED="$ac_cv_path_SED"
1567 if test -n "$SED"; then
1568 echo "$ac_t""$SED" 1>&6
1570 echo "$ac_t""no" 1>&6
1573 # Extract the first word of "awk", so it can be a program name with args.
1574 set dummy awk; ac_word=$2
1575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1576 echo "configure:1577: checking for $ac_word" >&5
1577 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1582 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1585 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1590 for ac_dir in $ac_dummy; do
1591 test -z "$ac_dir" && ac_dir=.
1592 if test -f $ac_dir/$ac_word; then
1593 ac_cv_path_AWK="$ac_dir/$ac_word"
1598 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1602 AWK="$ac_cv_path_AWK"
1603 if test -n "$AWK"; then
1604 echo "$ac_t""$AWK" 1>&6
1606 echo "$ac_t""no" 1>&6
1609 # Extract the first word of "echo", so it can be a program name with args.
1610 set dummy echo; ac_word=$2
1611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1612 echo "configure:1613: checking for $ac_word" >&5
1613 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1618 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1621 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1626 for ac_dir in $ac_dummy; do
1627 test -z "$ac_dir" && ac_dir=.
1628 if test -f $ac_dir/$ac_word; then
1629 ac_cv_path_ECHO="$ac_dir/$ac_word"
1634 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1638 ECHO="$ac_cv_path_ECHO"
1639 if test -n "$ECHO"; then
1640 echo "$ac_t""$ECHO" 1>&6
1642 echo "$ac_t""no" 1>&6
1645 # Extract the first word of "cmp", so it can be a program name with args.
1646 set dummy cmp; ac_word=$2
1647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1648 echo "configure:1649: checking for $ac_word" >&5
1649 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1654 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1657 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1662 for ac_dir in $ac_dummy; do
1663 test -z "$ac_dir" && ac_dir=.
1664 if test -f $ac_dir/$ac_word; then
1665 ac_cv_path_CMP="$ac_dir/$ac_word"
1670 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1674 CMP="$ac_cv_path_CMP"
1675 if test -n "$CMP"; then
1676 echo "$ac_t""$CMP" 1>&6
1678 echo "$ac_t""no" 1>&6
1681 # Extract the first word of "tbl", so it can be a program name with args.
1682 set dummy tbl; ac_word=$2
1683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1684 echo "configure:1685: checking for $ac_word" >&5
1685 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1690 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1693 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1698 for ac_dir in $ac_dummy; do
1699 test -z "$ac_dir" && ac_dir=.
1700 if test -f $ac_dir/$ac_word; then
1701 ac_cv_path_TBL="$ac_dir/$ac_word"
1706 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1710 TBL="$ac_cv_path_TBL"
1711 if test -n "$TBL"; then
1712 echo "$ac_t""$TBL" 1>&6
1714 echo "$ac_t""no" 1>&6
1717 # Extract the first word of "ar", so it can be a program name with args.
1718 set dummy ar; ac_word=$2
1719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1720 echo "configure:1721: checking for $ac_word" >&5
1721 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1726 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1729 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1734 for ac_dir in $ac_dummy; do
1735 test -z "$ac_dir" && ac_dir=.
1736 if test -f $ac_dir/$ac_word; then
1737 ac_cv_path_AR="$ac_dir/$ac_word"
1742 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1747 if test -n "$AR"; then
1748 echo "$ac_t""$AR" 1>&6
1750 echo "$ac_t""no" 1>&6
1753 # Extract the first word of "ranlib", so it can be a program name with args.
1754 set dummy ranlib; ac_word=$2
1755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1756 echo "configure:1757: checking for $ac_word" >&5
1757 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1762 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1765 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1770 for ac_dir in $ac_dummy; do
1771 test -z "$ac_dir" && ac_dir=.
1772 if test -f $ac_dir/$ac_word; then
1773 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1778 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1782 RANLIB="$ac_cv_path_RANLIB"
1783 if test -n "$RANLIB"; then
1784 echo "$ac_t""$RANLIB" 1>&6
1786 echo "$ac_t""no" 1>&6
1789 # Extract the first word of "openssl", so it can be a program name with args.
1790 set dummy openssl; ac_word=$2
1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_word" >&5
1793 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1798 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1801 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1806 for ac_dir in $ac_dummy; do
1807 test -z "$ac_dir" && ac_dir=.
1808 if test -f $ac_dir/$ac_word; then
1809 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1814 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1818 OPENSSL="$ac_cv_path_OPENSSL"
1819 if test -n "$OPENSSL"; then
1820 echo "$ac_t""$OPENSSL" 1>&6
1822 echo "$ac_t""no" 1>&6
1826 test -n "$ARFLAG" || ARFLAGS="cr"
1839 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1840 echo "configure:1841: checking for Operating System" >&5
1841 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1842 echo "configure:1843: checking for Cygwin environment" >&5
1843 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1853 #define __CYGWIN__ __CYGWIN32__
1858 if { (eval echo configure:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1871 echo "$ac_t""$ac_cv_cygwin" 1>&6
1873 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1874 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1880 HAVE_SUN_OS_FALSE='#'
1882 HAVE_SUN_OS_TRUE='#'
1885 cat >> confdefs.h <<\EOF
1886 #define HAVE_SUN_OS 1
1894 HAVE_SUN_OS_FALSE='#'
1896 HAVE_SUN_OS_TRUE='#'
1901 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1907 HAVE_OSF1_OS_FALSE='#'
1909 HAVE_OSF1_OS_TRUE='#'
1912 cat >> confdefs.h <<\EOF
1913 #define HAVE_OSF1_OS 1
1921 HAVE_OSF1_OS_FALSE='#'
1923 HAVE_OSF1_OS_TRUE='#'
1928 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1934 HAVE_AIX_OS_FALSE='#'
1936 HAVE_AIX_OS_TRUE='#'
1939 cat >> confdefs.h <<\EOF
1940 #define HAVE_AIX_OS 1
1948 HAVE_AIX_OS_FALSE='#'
1950 HAVE_AIX_OS_TRUE='#'
1955 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1961 HAVE_HPUX_OS_FALSE='#'
1963 HAVE_HPUX_OS_TRUE='#'
1966 cat >> confdefs.h <<\EOF
1967 #define HAVE_HPUX_OS 1
1975 HAVE_HPUX_OS_FALSE='#'
1977 HAVE_HPUX_OS_TRUE='#'
1982 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1988 HAVE_LINUX_OS_FALSE='#'
1990 HAVE_LINUX_OS_TRUE='#'
1991 HAVE_LINUX_OS_FALSE=
1993 cat >> confdefs.h <<\EOF
1994 #define HAVE_LINUX_OS 1
2002 HAVE_LINUX_OS_FALSE='#'
2004 HAVE_LINUX_OS_TRUE='#'
2005 HAVE_LINUX_OS_FALSE=
2009 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2014 HAVE_FREEBSD_OS_TRUE=
2015 HAVE_FREEBSD_OS_FALSE='#'
2017 HAVE_FREEBSD_OS_TRUE='#'
2018 HAVE_FREEBSD_OS_FALSE=
2020 cat >> confdefs.h <<\EOF
2021 #define HAVE_FREEBSD_OS 1
2028 HAVE_FREEBSD_OS_TRUE=
2029 HAVE_FREEBSD_OS_FALSE='#'
2031 HAVE_FREEBSD_OS_TRUE='#'
2032 HAVE_FREEBSD_OS_FALSE=
2036 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2041 HAVE_NETBSD_OS_TRUE=
2042 HAVE_NETBSD_OS_FALSE='#'
2044 HAVE_NETBSD_OS_TRUE='#'
2045 HAVE_NETBSD_OS_FALSE=
2047 cat >> confdefs.h <<\EOF
2048 #define HAVE_NETBSD_OS 1
2055 HAVE_NETBSD_OS_TRUE=
2056 HAVE_NETBSD_OS_FALSE='#'
2058 HAVE_NETBSD_OS_TRUE='#'
2059 HAVE_NETBSD_OS_FALSE=
2063 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2068 HAVE_OPENBSD_OS_TRUE=
2069 HAVE_OPENBSD_OS_FALSE='#'
2071 HAVE_OPENBSD_OS_TRUE='#'
2072 HAVE_OPENBSD_OS_FALSE=
2074 cat >> confdefs.h <<\EOF
2075 #define HAVE_OPENBSD_OS 1
2082 HAVE_OPENBSD_OS_TRUE=
2083 HAVE_OPENBSD_OS_FALSE='#'
2085 HAVE_OPENBSD_OS_TRUE='#'
2086 HAVE_OPENBSD_OS_FALSE=
2090 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2096 HAVE_BSDI_OS_FALSE='#'
2098 HAVE_BSDI_OS_TRUE='#'
2101 cat >> confdefs.h <<\EOF
2102 #define HAVE_BSDI_OS 1
2110 HAVE_BSDI_OS_FALSE='#'
2112 HAVE_BSDI_OS_TRUE='#'
2117 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2123 HAVE_SGI_OS_FALSE='#'
2125 HAVE_SGI_OS_TRUE='#'
2128 cat >> confdefs.h <<\EOF
2129 #define HAVE_SGI_OS 1
2137 HAVE_SGI_OS_FALSE='#'
2139 HAVE_SGI_OS_TRUE='#'
2143 echo "$ac_t""" "" 1>&6
2146 # -----------------------------------------------------------
2147 # ----------------------------------------------------------
2148 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2149 echo "configure:2150: checking for Operating System Distribution" >&5
2150 if test "x$DISTNAME" != "x"
2152 echo "distname set to $DISTNAME"
2153 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2156 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2159 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2162 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2165 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2168 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2171 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2174 elif test -f /etc/SuSE-release
2177 elif test -d /etc/SuSEconfig
2180 elif test -d /usr/src/OpenLinux
2183 elif test -f /etc/redhat-release
2186 elif test -f /etc/debian_version
2189 elif test -f /etc/slackware-version
2192 elif test "$ac_cv_cygwin" = yes
2195 cat >> confdefs.h <<\EOF
2196 #define HAVE_CYGWIN 1
2202 echo "$ac_t""" "" 1>&6
2205 # -----------------------------------------------------------
2206 # ----------------------------------------------------------
2211 INSIDE_GNOME_COMMON_TRUE=
2212 INSIDE_GNOME_COMMON_FALSE='#'
2214 INSIDE_GNOME_COMMON_TRUE='#'
2215 INSIDE_GNOME_COMMON_FALSE=
2218 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2220 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2223 # ------------------------------------------------------------------
2224 # If the user has not set --prefix, we set our default to nothing.
2225 # In this case, if the user has not set --sysconfdir, we set it
2226 # to the package default of /etc/bacula. If either --prefix or
2227 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2228 # ------------------------------------------------------------------
2229 if test x${prefix} = xNONE ; then
2230 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2231 sysconfdir=/etc/bacula
2235 sysconfdir=`eval echo ${sysconfdir}`
2237 # -------------------------------------------------------------------------
2238 # If the user has not set --exec-prefix, we default to ${prefix}
2239 # -------------------------------------------------------------------------
2240 if test x${exec_prefix} = xNONE ; then
2241 exec_prefix=${prefix}
2244 # ------------------------------------------------------------------
2245 # If the user has not set --sbindir, we set our default as /sbin
2246 # ------------------------------------------------------------------
2247 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2248 sbindir=${exec_prefix}/sbin
2250 sbindir=`eval echo ${sbindir}`
2252 # ------------------------------------------------------------------
2253 # All list of languages for which a translation exist. Each
2254 # language is separated by a space.
2255 # ------------------------------------------------------------------
2258 for ac_prog in msgfmt
2260 # Extract the first word of "$ac_prog", so it can be a program name with args.
2261 set dummy $ac_prog; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2269 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2272 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2277 for ac_dir in $ac_dummy; do
2278 test -z "$ac_dir" && ac_dir=.
2279 if test -f $ac_dir/$ac_word; then
2280 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2288 MSGFMT="$ac_cv_path_MSGFMT"
2289 if test -n "$MSGFMT"; then
2290 echo "$ac_t""$MSGFMT" 1>&6
2292 echo "$ac_t""no" 1>&6
2295 test -n "$MSGFMT" && break
2297 test -n "$MSGFMT" || MSGFMT="no"
2299 if test "$MSGFMT" = "no"
2301 echo 'msgfmt program not found, disabling NLS !'
2303 USE_INCLUDED_LIBINTL=no
2311 support_smartalloc=yes
2316 # Check whether --enable-everything or --disable-everything was given.
2317 if test "${enable_everything+set}" = set; then
2318 enableval="$enable_everything"
2319 if test x$enableval = xyes; then
2320 support_smartalloc=yes
2325 # -------------------------------------------
2326 # gnome (default off)
2327 # -------------------------------------------
2329 # Check whether --enable-gnome or --disable-gnome was given.
2330 if test "${enable_gnome+set}" = set; then
2331 enableval="$enable_gnome"
2332 if test x$enableval = xyes; then
2339 if test x$support_gnome = xyes; then
2350 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2351 if test "${with_gnome_includes+set}" = set; then
2352 withval="$with_gnome_includes"
2354 CFLAGS="$CFLAGS -I$withval"
2359 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2360 if test "${with_gnome_libs+set}" = set; then
2361 withval="$with_gnome_libs"
2363 LDFLAGS="$LDFLAGS -L$withval"
2364 gnome_prefix=$withval
2369 # Check whether --with-gnome or --without-gnome was given.
2370 if test "${with_gnome+set}" = set; then
2371 withval="$with_gnome"
2372 if test x$withval = xyes; then
2376 if test "x$withval" = xno; then
2380 LDFLAGS="$LDFLAGS -L$withval/lib"
2381 CFLAGS="$CFLAGS -I$withval/include"
2382 gnome_prefix=$withval/lib
2390 if test "x$want_gnome" = xyes; then
2392 # Extract the first word of "gnome-config", so it can be a program name with args.
2393 set dummy gnome-config; ac_word=$2
2394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_word" >&5
2396 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 case "$GNOME_CONFIG" in
2401 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2404 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2409 for ac_dir in $ac_dummy; do
2410 test -z "$ac_dir" && ac_dir=.
2411 if test -f $ac_dir/$ac_word; then
2412 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2417 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2421 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2422 if test -n "$GNOME_CONFIG"; then
2423 echo "$ac_t""$GNOME_CONFIG" 1>&6
2425 echo "$ac_t""no" 1>&6
2428 if test "$GNOME_CONFIG" = "no"; then
2429 no_gnome_config="yes"
2431 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2432 echo "configure:2433: checking if $GNOME_CONFIG works" >&5
2433 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2434 echo "$ac_t""yes" 1>&6
2437 # Extract the first word of "orbit-config", so it can be a program name with args.
2438 set dummy orbit-config; ac_word=$2
2439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440 echo "configure:2441: checking for $ac_word" >&5
2441 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 case "$ORBIT_CONFIG" in
2446 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2449 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2454 for ac_dir in $ac_dummy; do
2455 test -z "$ac_dir" && ac_dir=.
2456 if test -f $ac_dir/$ac_word; then
2457 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2462 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2466 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2467 if test -n "$ORBIT_CONFIG"; then
2468 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2470 echo "$ac_t""no" 1>&6
2473 # Extract the first word of "orbit-idl", so it can be a program name with args.
2474 set dummy orbit-idl; ac_word=$2
2475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_word" >&5
2477 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 case "$ORBIT_IDL" in
2482 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2485 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2490 for ac_dir in $ac_dummy; do
2491 test -z "$ac_dir" && ac_dir=.
2492 if test -f $ac_dir/$ac_word; then
2493 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2498 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2502 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2503 if test -n "$ORBIT_IDL"; then
2504 echo "$ac_t""$ORBIT_IDL" 1>&6
2506 echo "$ac_t""no" 1>&6
2509 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2510 echo "configure:2511: checking for working ORBit environment" >&5
2511 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2515 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2516 gnome_cv_orbit_found=no
2518 gnome_cv_orbit_found=yes
2523 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2526 if test x$gnome_cv_orbit_found = xyes; then
2528 HAVE_ORBIT_FALSE='#'
2533 if test x$gnome_cv_orbit_found = xyes; then
2535 ORBIT_CFLAGS=`orbit-config --cflags client server`
2536 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2540 if test xfail = xfailure; then
2541 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2545 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2546 echo "configure:2547: checking for gnorba libraries" >&5
2547 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2551 gnome_cv_gnorba_found=no
2552 if test x$gnome_cv_orbit_found = xyes; then
2553 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2554 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2555 if test -n "$GNORBA_LIBS"; then
2556 gnome_cv_gnorba_found=yes
2562 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2565 if test x$gnome_cv_gnorba_found = xyes; then
2567 HAVE_GNORBA_FALSE='#'
2569 HAVE_GNORBA_TRUE='#'
2572 if test x$gnome_cv_orbit_found = xyes; then
2574 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2575 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2579 if test xfail = xfailure; then
2580 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2584 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2585 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2586 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2587 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2588 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2589 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2590 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2593 echo "$ac_t""no" 1>&6
2594 no_gnome_config="yes"
2598 if test x$exec_prefix = xNONE; then
2599 if test x$prefix = xNONE; then
2600 gnome_prefix=$ac_default_prefix/lib
2602 gnome_prefix=$prefix/lib
2605 gnome_prefix=`eval echo \`echo $libdir\``
2608 if test "$no_gnome_config" = "yes"; then
2609 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2610 echo "configure:2611: checking for gnomeConf.sh file in $gnome_prefix" >&5
2611 if test -f $gnome_prefix/gnomeConf.sh; then
2612 echo "$ac_t""found" 1>&6
2613 echo "loading gnome configuration from" \
2614 "$gnome_prefix/gnomeConf.sh"
2615 . $gnome_prefix/gnomeConf.sh
2618 echo "$ac_t""not found" 1>&6
2619 if test xfail = xfail; then
2620 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2629 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2630 echo "configure:2631: checking extra library \"$i\"" >&5
2634 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2635 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2638 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2639 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2642 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2643 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2645 echo "$ac_t""unknown library" 1>&6
2647 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2648 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2653 GNOME_DIR=src/gnome-console
2658 # -------------------------------------------
2659 # smartalloc (default off)
2660 # -------------------------------------------
2661 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2662 if test "${enable_smartalloc+set}" = set; then
2663 enableval="$enable_smartalloc"
2664 if test x$enableval = xno; then
2665 support_smartalloc=no
2670 if test x$support_smartalloc = xyes; then
2671 cat >> confdefs.h <<\EOF
2672 #define SMARTALLOC 1
2679 # ---------------------------------------------------
2680 # Check for readline support/directory (default on)
2681 # ---------------------------------------------------
2682 support_readline=yes
2683 # this allows you to turn it completely off
2684 # Check whether --enable-readline or --disable-readline was given.
2685 if test "${enable_readline+set}" = set; then
2686 enableval="$enable_readline"
2687 if test x$enableval = xno; then
2695 if test x$support_readline = xyes; then
2696 # Check whether --with-readline or --without-readline was given.
2697 if test "${with_readline+set}" = set; then
2698 withval="$with_readline"
2700 case "$with_readline" in
2703 if test "$with_readline" != "yes"; then
2704 CONS_INC="-I$with_readline"
2705 CONS_LDFLAGS="-L$with_readline"
2707 with_readline="/usr/include/readline"
2709 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2710 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $with_readline/readline.h" >&5
2712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 #include <$with_readline/readline.h>
2720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2721 { (eval echo configure:2722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2723 if test -z "$ac_err"; then
2725 eval "ac_cv_header_$ac_safe=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_header_$ac_safe=no"
2735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2737 echo "$ac_t""yes" 1>&6
2738 cat >> confdefs.h <<\EOF
2739 #define HAVE_READLINE 1
2742 CONS_LIBS="-lreadline -ltermcap"
2746 echo "$ac_t""no" 1>&6
2747 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2757 # check for standard readline library
2758 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2759 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2760 echo "configure:2761: checking for /usr/include/readline/readline.h" >&5
2761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2767 #include </usr/include/readline/readline.h>
2769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2770 { (eval echo configure:2771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2772 if test -z "$ac_err"; then
2774 eval "ac_cv_header_$ac_safe=yes"
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2780 eval "ac_cv_header_$ac_safe=no"
2784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2785 echo "$ac_t""yes" 1>&6
2786 echo "$ac_t""yes" 1>&6
2787 cat >> confdefs.h <<\EOF
2788 #define HAVE_READLINE 1
2792 CONS_INC="-I/usr/include/readline"
2793 CONS_LIBS="-lreadline -ltermcap"
2796 echo "$ac_t""no" 1>&6
2798 # Did not find starndard library, so user our own
2799 echo "$ac_t""yes" 1>&6
2800 cat >> confdefs.h <<\EOF
2801 #define HAVE_READLINE 1
2805 CONS_INC="-I${TOP_DIR}/depkgs"
2806 CONS_LIBS="-lreadline -lhistory -ltermcap"
2807 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2808 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
2822 # Minimal stuff for readline Makefile configuration
2826 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2827 echo "configure:2828: checking whether stat file-mode macros are broken" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <sys/types.h>
2835 #include <sys/stat.h>
2837 #if defined(S_ISBLK) && defined(S_IFDIR)
2838 # if S_ISBLK (S_IFDIR)
2843 #if defined(S_ISBLK) && defined(S_IFCHR)
2844 # if S_ISBLK (S_IFCHR)
2849 #if defined(S_ISLNK) && defined(S_IFREG)
2850 # if S_ISLNK (S_IFREG)
2855 #if defined(S_ISSOCK) && defined(S_IFREG)
2856 # if S_ISSOCK (S_IFREG)
2862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2863 egrep "You lose" >/dev/null 2>&1; then
2865 ac_cv_header_stat_broken=yes
2868 ac_cv_header_stat_broken=no
2874 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2875 if test $ac_cv_header_stat_broken = yes; then
2876 cat >> confdefs.h <<\EOF
2877 #define STAT_MACROS_BROKEN 1
2883 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2886 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2887 echo "configure:2888: checking for $ac_hdr that defines DIR" >&5
2888 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2894 #include <sys/types.h>
2900 if { (eval echo configure:2901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2902 eval "ac_cv_header_dirent_$ac_safe=yes"
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2907 eval "ac_cv_header_dirent_$ac_safe=no"
2911 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2912 echo "$ac_t""yes" 1>&6
2913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2914 cat >> confdefs.h <<EOF
2915 #define $ac_tr_hdr 1
2917 ac_header_dirent=$ac_hdr; break
2919 echo "$ac_t""no" 1>&6
2922 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2923 if test $ac_header_dirent = dirent.h; then
2924 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2925 echo "configure:2926: checking for opendir in -ldir" >&5
2926 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 ac_save_LIBS="$LIBS"
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2935 /* Override any gcc2 internal prototype to avoid an error. */
2936 /* We use char because int might match the return type of a gcc2
2937 builtin and then its argument prototype would still apply. */
2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2946 eval "ac_cv_lib_$ac_lib_var=yes"
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2951 eval "ac_cv_lib_$ac_lib_var=no"
2954 LIBS="$ac_save_LIBS"
2957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2958 echo "$ac_t""yes" 1>&6
2961 echo "$ac_t""no" 1>&6
2965 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2966 echo "configure:2967: checking for opendir in -lx" >&5
2967 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 ac_save_LIBS="$LIBS"
2973 cat > conftest.$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2976 /* Override any gcc2 internal prototype to avoid an error. */
2977 /* We use char because int might match the return type of a gcc2
2978 builtin and then its argument prototype would still apply. */
2985 if { (eval echo configure:2986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2987 eval "ac_cv_lib_$ac_lib_var=yes"
2989 echo "configure: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2992 eval "ac_cv_lib_$ac_lib_var=no"
2995 LIBS="$ac_save_LIBS"
2998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2999 echo "$ac_t""yes" 1>&6
3002 echo "$ac_t""no" 1>&6
3008 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_func" >&5
3012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 /* System header to define __stub macros and hopefully few prototypes,
3019 which can conflict with char $ac_func(); below. */
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3028 /* The GNU C library defines this for functions which it implements
3029 to always fail with ENOSYS. Some functions are actually named
3030 something starting with __ and the normal name is an alias. */
3031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3039 if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3041 eval "ac_cv_func_$ac_func=yes"
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3046 eval "ac_cv_func_$ac_func=no"
3051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3054 cat >> confdefs.h <<EOF
3055 #define $ac_tr_func 1
3059 echo "$ac_t""no" 1>&6
3064 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3065 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3066 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3068 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3069 echo "configure:3070: checking for getopt_long" >&5
3070 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 /* System header to define __stub macros and hopefully few prototypes,
3077 which can conflict with char getopt_long(); below. */
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3086 /* The GNU C library defines this for functions which it implements
3087 to always fail with ENOSYS. Some functions are actually named
3088 something starting with __ and the normal name is an alias. */
3089 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3097 if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3099 eval "ac_cv_func_getopt_long=yes"
3101 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5
3104 eval "ac_cv_func_getopt_long=no"
3109 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3110 echo "$ac_t""yes" 1>&6
3111 cat >> confdefs.h <<\EOF
3112 #define HAVE_GETOPT_LONG 1
3116 echo "$ac_t""no" 1>&6
3121 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3122 echo "configure:3123: checking for working strcoll" >&5
3123 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 if test "$cross_compiling" = yes; then
3127 ac_cv_func_strcoll_works=no
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3135 exit (strcoll ("abc", "def") >= 0 ||
3136 strcoll ("ABC", "DEF") >= 0 ||
3137 strcoll ("123", "456") >= 0);
3140 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3142 ac_cv_func_strcoll_works=yes
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3147 ac_cv_func_strcoll_works=no
3154 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3155 if test $ac_cv_func_strcoll_works = yes; then
3156 cat >> confdefs.h <<\EOF
3157 #define HAVE_STRCOLL 1
3163 for ac_hdr in varargs.h \
3164 sys/ptem.h sys/pte.h sys/stream.h
3166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3168 echo "configure:3169: checking for $ac_hdr" >&5
3169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3178 { (eval echo configure:3179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3180 if test -z "$ac_err"; then
3182 eval "ac_cv_header_$ac_safe=yes"
3185 echo "configure: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3188 eval "ac_cv_header_$ac_safe=no"
3192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3193 echo "$ac_t""yes" 1>&6
3194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3195 cat >> confdefs.h <<EOF
3196 #define $ac_tr_hdr 1
3200 echo "$ac_t""no" 1>&6
3205 # End of readline stuff
3206 # -----------------------------------------------------------------------
3209 # ---------------------------------------------------
3210 # Check for GMP support/directory
3211 # ---------------------------------------------------
3214 # Check whether --with-gmp or --without-gmp was given.
3215 if test "${with_gmp+set}" = set; then
3221 if test "$with_gmp" != "yes"; then
3222 GMP_INC="-I$with_gmp"
3224 GMP_LDFLAGS="-L$with_gmp"
3226 with_gmp="/usr/include"
3228 ac_safe=`echo "$with_gmp/gmp.h" | sed 'y%./+-%__p_%'`
3229 echo $ac_n "checking for $with_gmp/gmp.h""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $with_gmp/gmp.h" >&5
3231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #include <$with_gmp/gmp.h>
3239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3240 { (eval echo configure:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3242 if test -z "$ac_err"; then
3244 eval "ac_cv_header_$ac_safe=yes"
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 eval "ac_cv_header_$ac_safe=no"
3254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 echo "$ac_t""yes" 1>&6
3257 cat >> confdefs.h <<\EOF
3265 echo "$ac_t""no" 1>&6
3266 { echo "configure: error: *** gmp library missing" 1>&2; exit 1; }
3276 # check for standard gmp library
3277 ac_safe=`echo "/usr/include/gmp.h" | sed 'y%./+-%__p_%'`
3278 echo $ac_n "checking for /usr/include/gmp.h""... $ac_c" 1>&6
3279 echo "configure:3280: checking for /usr/include/gmp.h" >&5
3280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 #include </usr/include/gmp.h>
3288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3289 { (eval echo configure:3290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3291 if test -z "$ac_err"; then
3293 eval "ac_cv_header_$ac_safe=yes"
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3299 eval "ac_cv_header_$ac_safe=no"
3303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3305 echo "$ac_t""yes" 1>&6
3306 cat >> confdefs.h <<\EOF
3315 echo "$ac_t""no" 1>&6
3317 # Did not find standard library, so use our own
3318 echo "$ac_t""yes" 1>&6
3319 cat >> confdefs.h <<\EOF
3325 GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3327 GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3328 GMP_SRC="${TOP_DIR}/depkgs/gmp"
3342 # -----------------------------------------------------------------------
3345 # ---------------------------------------------------
3346 # Check for CWEB support/directory
3347 # ---------------------------------------------------
3351 # Check whether --with-cweb or --without-cweb was given.
3352 if test "${with_cweb+set}" = set; then
3353 withval="$with_cweb"
3355 case "$with_cweb" in
3358 if test "$with_cweb" != "yes"; then
3359 CWEB_INC="-I$with_cweb"
3361 CWEB_LDFLAGS="-L$with_cweb"
3363 with_cweb="/usr/include"
3365 ac_safe=`echo "$with_cweb/cweb.h" | sed 'y%./+-%__p_%'`
3366 echo $ac_n "checking for $with_cweb/cweb.h""... $ac_c" 1>&6
3367 echo "configure:3368: checking for $with_cweb/cweb.h" >&5
3368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 #include <$with_cweb/cweb.h>
3376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3377 { (eval echo configure:3378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3379 if test -z "$ac_err"; then
3381 eval "ac_cv_header_$ac_safe=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3387 eval "ac_cv_header_$ac_safe=no"
3391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 echo "$ac_t""yes" 1>&6
3394 cat >> confdefs.h <<\EOF
3402 echo "$ac_t""no" 1>&6
3403 { echo "configure: error: *** cweb library missing" 1>&2; exit 1; }
3413 # check for standard cweb library
3414 ac_safe=`echo "/usr/include/cweb.h" | sed 'y%./+-%__p_%'`
3415 echo $ac_n "checking for /usr/include/cweb.h""... $ac_c" 1>&6
3416 echo "configure:3417: checking for /usr/include/cweb.h" >&5
3417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include </usr/include/cweb.h>
3425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3426 { (eval echo configure:3427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3428 if test -z "$ac_err"; then
3430 eval "ac_cv_header_$ac_safe=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3436 eval "ac_cv_header_$ac_safe=no"
3440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 echo "$ac_t""yes" 1>&6
3443 cat >> confdefs.h <<\EOF
3452 echo "$ac_t""no" 1>&6
3454 # Did not find starndard library, so use our own
3455 echo "$ac_t""yes" 1>&6
3456 cat >> confdefs.h <<\EOF
3462 CWEB=${TOP_DIR}/depkgs/cweb
3463 CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3465 CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3466 CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3481 # -----------------------------------------------------------------------
3485 # -----------------------------------------------------------
3486 # Check whether user wants TCP wrappers support (default off)
3487 # -----------------------------------------------------------
3489 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3490 if test "${with_tcp_wrappers+set}" = set; then
3491 withval="$with_tcp_wrappers"
3493 if test "x$withval" != "xno" ; then
3495 LIBS="$LIBS -lwrap -lnsl"
3496 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3497 echo "configure:3498: checking for libwrap" >&5
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3502 int deny_severity = 0;
3503 int allow_severity = 0;
3504 struct request_info *req;
3509 if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3512 echo "$ac_t""yes" 1>&6
3513 cat >> confdefs.h <<\EOF
3514 #define HAVE_LIBWRAP 1
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3523 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3533 # ------------------------------------------
3534 # Where to place working dir
3535 # ------------------------------------------
3536 working_dir=`eval echo ${sysconfdir}/working`
3537 # Check whether --with-working-dir or --without-working-dir was given.
3538 if test "${with_working_dir+set}" = set; then
3539 withval="$with_working_dir"
3541 if test "x$withval" != "xno" ; then
3542 working_dir=$withval
3551 # ------------------------------------------
3552 # Where to send dump email
3553 # ------------------------------------------
3554 dump_email=root@localhost
3555 # Check whether --with-dump-email or --without-dump-email was given.
3556 if test "${with_dump_email+set}" = set; then
3557 withval="$with_dump_email"
3559 if test "x$withval" != "xno" ; then
3569 # ------------------------------------------
3570 # Where to send job email
3571 # ------------------------------------------
3572 job_email=root@localhost
3573 # Check whether --with-job-email or --without-job-email was given.
3574 if test "${with_job_email+set}" = set; then
3575 withval="$with_job_email"
3577 if test "x$withval" != "xno" ; then
3587 # ------------------------------------------
3588 # Where to find smtp host
3589 # ------------------------------------------
3591 # Check whether --with-smtp_host or --without-smtp_host was given.
3592 if test "${with_smtp_host+set}" = set; then
3593 withval="$with_smtp_host"
3595 if test "x$withval" != "xno" ; then
3606 # ------------------------------------
3607 # Where to place pid files
3608 # ------------------------------------
3610 # Check whether --with-pid-dir or --without-pid-dir was given.
3611 if test "${with_pid_dir+set}" = set; then
3612 withval="$with_pid_dir"
3614 if test "x$withval" != "xno" ; then
3622 # make sure the pid directory exists
3623 if test ! -d $piddir ; then
3624 piddir=`eval echo ${sysconfdir}`
3626 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3630 cat >> confdefs.h <<EOF
3631 #define _PATH_BACULA_PIDDIR "$piddir"
3637 # ------------------------------------
3638 # Where to place subsys "lock file"
3639 # ------------------------------------
3640 subsysdir=/var/run/subsys
3641 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3642 if test "${with_subsys_dir+set}" = set; then
3643 withval="$with_subsys_dir"
3645 if test "x$withval" != "xno" ; then
3653 # make sure the pid directory exists
3654 if test ! -d $subsysdir ; then
3655 subsysdir=`eval echo ${sysconfdir}`
3657 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3665 # ------------------------------------
3666 # Where to start assigning ports
3667 # ------------------------------------
3669 # Check whether --with-baseport or --without-baseport was given.
3670 if test "${with_baseport+set}" = set; then
3671 withval="$with_baseport"
3673 if test "x$withval" != "xno" ; then
3682 dir_port=`expr $baseport`
3683 fd_port=`expr $baseport + 1`
3684 sd_port=`expr $fd_port + 1`
3691 # ------------------------------------------
3692 # Generate passwords
3693 # ------------------------------------------
3695 # Check whether --with-dir-password or --without-dir-password was given.
3696 if test "${with_dir_password+set}" = set; then
3697 withval="$with_dir_password"
3699 if test "x$withval" != "xno" ; then
3700 dir_password=$withval
3707 if test "x$dir_password" = "x" ; then
3708 if test "x$OPENSSL" = "xnone" ; then
3709 key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3711 key=`openssl rand -base64 33`
3717 # Check whether --with-fd-password or --without-fd-password was given.
3718 if test "${with_fd_password+set}" = set; then
3719 withval="$with_fd_password"
3721 if test "x$withval" != "xno" ; then
3722 fd_password=$withval
3729 if test "x$fd_password" = "x" ; then
3730 if test "x$OPENSSL" = "xnone" ; then
3731 key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3733 key=`openssl rand -base64 33`
3739 # Check whether --with-sd-password or --without-sd-password was given.
3740 if test "${with_sd_password+set}" = set; then
3741 withval="$with_sd_password"
3743 if test "x$withval" != "xno" ; then
3744 sd_password=$withval
3751 if test "x$sd_password" = "x" ; then
3752 if test "x$OPENSSL" = "xnone" ; then
3753 key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3755 key=`openssl rand -base64 33`
3768 # ------------------------------------------------
3769 # Bacula check for various SQL database engines
3770 # ------------------------------------------------
3773 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3774 echo "configure:3775: checking for MySQL support" >&5
3775 # Check whether --with-mysql or --without-mysql was given.
3776 if test "${with_mysql+set}" = set; then
3777 withval="$with_mysql"
3779 if test "$withval" != "no"; then
3780 if test "$withval" = "yes"; then
3781 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3782 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3783 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3784 MYSQL_BINDIR=/usr/local/mysql/bin
3785 elif test -f /usr/include/mysql/mysql.h; then
3786 MYSQL_INCDIR=/usr/include/mysql
3787 MYSQL_LIBDIR=/usr/lib/mysql
3788 MYSQL_BINDIR=/usr/bin
3789 elif test -f /usr/include/mysql.h; then
3790 MYSQL_INCDIR=/usr/include
3791 MYSQL_LIBDIR=/usr/lib
3792 MYSQL_BINDIR=/usr/bin
3793 elif test -f /usr/local/include/mysql/mysql.h; then
3794 MYSQL_INCDIR=/usr/local/include/mysql
3795 MYSQL_LIBDIR=/usr/local/lib/mysql
3796 MYSQL_BINDIR=/usr/local/bin
3797 elif test -f /usr/local/include/mysql.h; then
3798 MYSQL_INCDIR=/usr/local/include
3799 MYSQL_LIBDIR=/usr/local/lib
3800 MYSQL_BINDIR=/usr/local/bin
3802 echo "$ac_t""no" 1>&6
3803 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3806 if test -f $withval/include/mysql/mysql.h; then
3807 MYSQL_INCDIR=$withval/include/mysql
3808 MYSQL_LIBDIR=$withval/lib/mysql
3809 MYSQL_BINDIR=$withval/bin
3810 elif test -f $withval/include/mysql.h; then
3811 MYSQL_INCDIR=$withval/include
3812 MYSQL_LIBDIR=$withval/lib
3813 MYSQL_BINDIR=$withval/bin
3815 echo "$ac_t""no" 1>&6
3816 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3819 SQL_INCLUDE=-I$MYSQL_INCDIR
3820 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient"
3821 SQL_BINDIR=$MYSQL_BINDIR
3823 cat >> confdefs.h <<\EOF
3824 #define HAVE_MYSQL 1
3827 echo "$ac_t""yes" 1>&6
3834 echo "$ac_t""no" 1>&6
3839 echo "$ac_t""no" 1>&6
3844 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
3845 if test "${with_embedded_mysql+set}" = set; then
3846 withval="$with_embedded_mysql"
3848 if test "$withval" != "no"; then
3849 if test "$withval" = "yes"; then
3850 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3851 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3852 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3853 MYSQL_BINDIR=/usr/local/mysql/bin
3854 elif test -f /usr/include/mysql/mysql.h; then
3855 MYSQL_INCDIR=/usr/include/mysql
3856 MYSQL_LIBDIR=/usr/lib/mysql
3857 MYSQL_BINDIR=/usr/bin
3858 elif test -f /usr/include/mysql.h; then
3859 MYSQL_INCDIR=/usr/include
3860 MYSQL_LIBDIR=/usr/lib
3861 MYSQL_BINDIR=/usr/bin
3862 elif test -f /usr/local/include/mysql/mysql.h; then
3863 MYSQL_INCDIR=/usr/local/include/mysql
3864 MYSQL_LIBDIR=/usr/local/lib/mysql
3865 MYSQL_BINDIR=/usr/local/bin
3866 elif test -f /usr/local/include/mysql.h; then
3867 MYSQL_INCDIR=/usr/local/include
3868 MYSQL_LIBDIR=/usr/local/lib
3869 MYSQL_BINDIR=/usr/local/bin
3871 echo "$ac_t""no" 1>&6
3872 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3875 if test -f $withval/include/mysql/mysql.h; then
3876 MYSQL_INCDIR=$withval/include/mysql
3877 MYSQL_LIBDIR=$withval/lib/mysql
3878 MYSQL_BINDIR=$withval/bin
3879 elif test -f $withval/include/mysql.h; then
3880 MYSQL_INCDIR=$withval/include
3881 MYSQL_LIBDIR=$withval/lib
3882 MYSQL_BINDIR=$withval/bin
3884 echo "$ac_t""no" 1>&6
3885 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3888 SQL_INCLUDE=-I$MYSQL_INCDIR
3889 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
3890 SQL_BINDIR=$MYSQL_BINDIR
3892 cat >> confdefs.h <<\EOF
3893 #define HAVE_MYSQL 1
3896 cat >> confdefs.h <<\EOF
3897 #define HAVE_EMBEDDED_MYSQL 1
3900 echo "$ac_t""yes" 1>&6
3907 echo "$ac_t""no" 1>&6
3912 echo "$ac_t""no" 1>&6
3925 # ------------------------------------------------
3926 # Bacula check for various SQL database engines
3927 # ------------------------------------------------
3930 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3931 echo "configure:3932: checking for SQLite support" >&5
3932 # Check whether --with-sqlite or --without-sqlite was given.
3933 if test "${with_sqlite+set}" = set; then
3934 withval="$with_sqlite"
3936 if test "$withval" != "no"; then
3937 if test "$withval" = "yes"; then
3938 if test -f /usr/local/include/sqlite.h; then
3939 SQLITE_INCDIR=/usr/local/include
3940 SQLITE_LIBDIR=/usr/local/lib
3941 SQLITE_BINDIR=/usr/local/bin
3942 elif test -f /usr/include/sqlite.h; then
3943 SQLITE_INCDIR=/usr/include
3944 SQLITE_LIBDIR=/usr/lib
3945 SQLITE_BINDIR=/usr/bin
3947 echo "$ac_t""no" 1>&6
3948 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
3951 if test -f $withval/sqlite.h; then
3952 SQLITE_INCDIR=$withval
3953 SQLITE_LIBDIR=$withval
3954 SQLITE_BINDIR=$withval
3956 echo "$ac_t""no" 1>&6
3957 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
3960 SQL_INCLUDE=-I$SQLITE_INCDIR
3961 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
3962 SQL_BINDIR=$SQLITE_BINDIR
3964 cat >> confdefs.h <<\EOF
3965 #define HAVE_SQLITE 1
3968 echo "$ac_t""yes" 1>&6
3975 echo "$ac_t""no" 1>&6
3980 echo "$ac_t""no" 1>&6
3993 cat >> confdefs.h <<\EOF
3994 #define PROTOTYPES 1
3998 if test -z "$CFLAGS"; then
3999 if test -z "$CCOPTS"; then
4006 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4007 echo "configure:4008: checking for mingw32 environment" >&5
4008 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4019 if { (eval echo configure:4020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4032 echo "$ac_t""$ac_cv_mingw32" 1>&6
4034 test "$ac_cv_mingw32" = yes && MINGW32=yes
4037 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4038 echo "configure:4039: checking for executable suffix" >&5
4039 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4046 echo 'int main () { return 0; }' > conftest.$ac_ext
4048 if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4049 for file in conftest.*; do
4051 *.c | *.o | *.obj) ;;
4052 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4056 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4059 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4064 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4065 echo "$ac_t""${ac_cv_exeext}" 1>&6
4071 # If we find X, set shell vars x_includes and x_libraries to the
4072 # paths, otherwise set no_x=yes.
4073 # Uses ac_ vars as temps to allow command line to override cache and checks.
4074 # --without-x overrides everything else, but does not touch the cache.
4075 echo $ac_n "checking for X""... $ac_c" 1>&6
4076 echo "configure:4077: checking for X" >&5
4078 # Check whether --with-x or --without-x was given.
4079 if test "${with_x+set}" = set; then
4084 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4085 if test "x$with_x" = xno; then
4086 # The user explicitly disabled X.
4089 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4090 # Both variables are already set.
4093 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4094 echo $ac_n "(cached) $ac_c" 1>&6
4096 # One or both of the vars are not set, and there is no cached value.
4097 ac_x_includes=NO ac_x_libraries=NO
4099 if mkdir conftestdir; then
4101 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4102 cat > Imakefile <<'EOF'
4104 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4106 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4107 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4108 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4109 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4110 for ac_extension in a so sl; do
4111 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4112 test -f $ac_im_libdir/libX11.$ac_extension; then
4113 ac_im_usrlibdir=$ac_im_libdir; break
4116 # Screen out bogus values from the imake configuration. They are
4117 # bogus both because they are the default anyway, and because
4118 # using them would break gcc on systems where it needs fixed includes.
4119 case "$ac_im_incroot" in
4121 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4123 case "$ac_im_usrlibdir" in
4125 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4132 if test "$ac_x_includes" = NO; then
4133 # Guess where to find include files, by looking for this one X11 .h file.
4134 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4136 # First, try using that file with no special directory specified.
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <$x_direct_test_include>
4142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4143 { (eval echo configure:4144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4145 if test -z "$ac_err"; then
4147 # We can compile using X headers with no special include directory.
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 # Look for the header file in a standard set of common directories.
4155 # Check X11 before X11Rn because it is often a symlink to the current release.
4158 /usr/X11R6/include \
4159 /usr/X11R5/include \
4160 /usr/X11R4/include \
4163 /usr/include/X11R6 \
4164 /usr/include/X11R5 \
4165 /usr/include/X11R4 \
4167 /usr/local/X11/include \
4168 /usr/local/X11R6/include \
4169 /usr/local/X11R5/include \
4170 /usr/local/X11R4/include \
4172 /usr/local/include/X11 \
4173 /usr/local/include/X11R6 \
4174 /usr/local/include/X11R5 \
4175 /usr/local/include/X11R4 \
4179 /usr/XFree86/include/X11 \
4182 /usr/local/include \
4183 /usr/unsupported/include \
4184 /usr/athena/include \
4185 /usr/local/x11r5/include \
4186 /usr/lpp/Xamples/include \
4188 /usr/openwin/include \
4189 /usr/openwin/share/include \
4192 if test -r "$ac_dir/$x_direct_test_include"; then
4193 ac_x_includes=$ac_dir
4199 fi # $ac_x_includes = NO
4201 if test "$ac_x_libraries" = NO; then
4202 # Check for the libraries.
4204 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4205 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4207 # See if we find them without any special options.
4208 # Don't add to $LIBS permanently.
4209 ac_save_LIBS="$LIBS"
4210 LIBS="-l$x_direct_test_library $LIBS"
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4216 ${x_direct_test_function}()
4219 if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221 LIBS="$ac_save_LIBS"
4222 # We can link X programs with no special library path.
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 LIBS="$ac_save_LIBS"
4229 # First see if replacing the include by lib works.
4230 # Check X11 before X11Rn because it is often a symlink to the current release.
4231 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4242 /usr/local/X11/lib \
4243 /usr/local/X11R6/lib \
4244 /usr/local/X11R5/lib \
4245 /usr/local/X11R4/lib \
4247 /usr/local/lib/X11 \
4248 /usr/local/lib/X11R6 \
4249 /usr/local/lib/X11R5 \
4250 /usr/local/lib/X11R4 \
4254 /usr/XFree86/lib/X11 \
4258 /usr/unsupported/lib \
4260 /usr/local/x11r5/lib \
4261 /usr/lpp/Xamples/lib \
4265 /usr/openwin/share/lib \
4268 for ac_extension in a so sl; do
4269 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4270 ac_x_libraries=$ac_dir
4277 fi # $ac_x_libraries = NO
4279 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4280 # Didn't find X anywhere. Cache the known absence of X.
4281 ac_cv_have_x="have_x=no"
4283 # Record where we found X for the cache.
4284 ac_cv_have_x="have_x=yes \
4285 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4289 eval "$ac_cv_have_x"
4292 if test "$have_x" != yes; then
4293 echo "$ac_t""$have_x" 1>&6
4296 # If each of the values was on the command line, it overrides each guess.
4297 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4298 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4299 # Update the cache value to reflect the command line values.
4300 ac_cv_have_x="have_x=yes \
4301 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4302 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4305 if test "$no_x" = yes; then
4306 # Not all programs may use this symbol, but it does not hurt to define it.
4307 cat >> confdefs.h <<\EOF
4308 #define X_DISPLAY_MISSING 1
4311 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4313 if test -n "$x_includes"; then
4314 X_CFLAGS="$X_CFLAGS -I$x_includes"
4317 # It would also be nice to do this for all -L options, not just this one.
4318 if test -n "$x_libraries"; then
4319 X_LIBS="$X_LIBS -L$x_libraries"
4320 # For Solaris; some versions of Sun CC require a space after -R and
4321 # others require no space. Words are not sufficient . . . .
4322 case "`(uname -sr) 2>/dev/null`" in
4324 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4325 echo "configure:4326: checking whether -R must be followed by a space" >&5
4326 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4335 if { (eval echo configure:4336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4339 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4345 if test $ac_R_nospace = yes; then
4346 echo "$ac_t""no" 1>&6
4347 X_LIBS="$X_LIBS -R$x_libraries"
4349 LIBS="$ac_xsave_LIBS -R $x_libraries"
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4368 if test $ac_R_space = yes; then
4369 echo "$ac_t""yes" 1>&6
4370 X_LIBS="$X_LIBS -R $x_libraries"
4372 echo "$ac_t""neither works" 1>&6
4375 LIBS="$ac_xsave_LIBS"
4379 # Check for system-dependent libraries X programs must link with.
4380 # Do this before checking for the system-independent R6 libraries
4381 # (-lICE), since we may need -lsocket or whatever for X linking.
4383 if test "$ISC" = yes; then
4384 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4386 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4387 # libraries were built with DECnet support. And karl@cs.umb.edu says
4388 # the Alpha needs dnet_stub (dnet does not exist).
4389 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4390 echo "configure:4391: checking for dnet_ntoa in -ldnet" >&5
4391 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 ac_save_LIBS="$LIBS"
4397 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4411 eval "ac_cv_lib_$ac_lib_var=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4416 eval "ac_cv_lib_$ac_lib_var=no"
4419 LIBS="$ac_save_LIBS"
4422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4426 echo "$ac_t""no" 1>&6
4429 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4430 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4431 echo "configure:4432: checking for dnet_ntoa in -ldnet_stub" >&5
4432 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 ac_save_LIBS="$LIBS"
4437 LIBS="-ldnet_stub $LIBS"
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 /* Override any gcc2 internal prototype to avoid an error. */
4442 /* We use char because int might match the return type of a gcc2
4443 builtin and then its argument prototype would still apply. */
4450 if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4452 eval "ac_cv_lib_$ac_lib_var=yes"
4454 echo "configure: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4457 eval "ac_cv_lib_$ac_lib_var=no"
4460 LIBS="$ac_save_LIBS"
4463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4464 echo "$ac_t""yes" 1>&6
4465 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4467 echo "$ac_t""no" 1>&6
4472 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4473 # to get the SysV transport functions.
4474 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4476 # The nsl library prevents programs from opening the X display
4477 # on Irix 5.2, according to dickey@clark.net.
4478 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4479 echo "configure:4480: checking for gethostbyname" >&5
4480 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 /* System header to define __stub macros and hopefully few prototypes,
4487 which can conflict with char gethostbyname(); below. */
4489 /* Override any gcc2 internal prototype to avoid an error. */
4490 /* We use char because int might match the return type of a gcc2
4491 builtin and then its argument prototype would still apply. */
4492 char gethostbyname();
4496 /* The GNU C library defines this for functions which it implements
4497 to always fail with ENOSYS. Some functions are actually named
4498 something starting with __ and the normal name is an alias. */
4499 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4507 if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4509 eval "ac_cv_func_gethostbyname=yes"
4511 echo "configure: failed program was:" >&5
4512 cat conftest.$ac_ext >&5
4514 eval "ac_cv_func_gethostbyname=no"
4519 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4520 echo "$ac_t""yes" 1>&6
4523 echo "$ac_t""no" 1>&6
4526 if test $ac_cv_func_gethostbyname = no; then
4527 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4528 echo "configure:4529: checking for gethostbyname in -lnsl" >&5
4529 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 ac_save_LIBS="$LIBS"
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* Override any gcc2 internal prototype to avoid an error. */
4539 /* We use char because int might match the return type of a gcc2
4540 builtin and then its argument prototype would still apply. */
4541 char gethostbyname();
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4549 eval "ac_cv_lib_$ac_lib_var=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_lib_$ac_lib_var=no"
4557 LIBS="$ac_save_LIBS"
4560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4564 echo "$ac_t""no" 1>&6
4569 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4570 # socket/setsockopt and other routines are undefined under SCO ODT
4571 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4572 # on later versions), says simon@lia.di.epfl.ch: it contains
4573 # gethostby* variants that don't use the nameserver (or something).
4574 # -lsocket must be given before -lnsl if both are needed.
4575 # We assume that if connect needs -lnsl, so does gethostbyname.
4576 echo $ac_n "checking for connect""... $ac_c" 1>&6
4577 echo "configure:4578: checking for connect" >&5
4578 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char connect(); below. */
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4594 /* The GNU C library defines this for functions which it implements
4595 to always fail with ENOSYS. Some functions are actually named
4596 something starting with __ and the normal name is an alias. */
4597 #if defined (__stub_connect) || defined (__stub___connect)
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4607 eval "ac_cv_func_connect=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4612 eval "ac_cv_func_connect=no"
4617 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4618 echo "$ac_t""yes" 1>&6
4621 echo "$ac_t""no" 1>&6
4624 if test $ac_cv_func_connect = no; then
4625 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4626 echo "configure:4627: checking for connect in -lsocket" >&5
4627 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 ac_save_LIBS="$LIBS"
4632 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4647 eval "ac_cv_lib_$ac_lib_var=yes"
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4652 eval "ac_cv_lib_$ac_lib_var=no"
4655 LIBS="$ac_save_LIBS"
4658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4660 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4662 echo "$ac_t""no" 1>&6
4667 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4668 echo $ac_n "checking for remove""... $ac_c" 1>&6
4669 echo "configure:4670: checking for remove" >&5
4670 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 /* System header to define __stub macros and hopefully few prototypes,
4677 which can conflict with char remove(); below. */
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4686 /* The GNU C library defines this for functions which it implements
4687 to always fail with ENOSYS. Some functions are actually named
4688 something starting with __ and the normal name is an alias. */
4689 #if defined (__stub_remove) || defined (__stub___remove)
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4699 eval "ac_cv_func_remove=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 eval "ac_cv_func_remove=no"
4709 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4713 echo "$ac_t""no" 1>&6
4716 if test $ac_cv_func_remove = no; then
4717 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4718 echo "configure:4719: checking for remove in -lposix" >&5
4719 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 ac_save_LIBS="$LIBS"
4724 LIBS="-lposix $LIBS"
4725 cat > conftest.$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4728 /* Override any gcc2 internal prototype to avoid an error. */
4729 /* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4737 if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4739 eval "ac_cv_lib_$ac_lib_var=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4744 eval "ac_cv_lib_$ac_lib_var=no"
4747 LIBS="$ac_save_LIBS"
4750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
4752 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4754 echo "$ac_t""no" 1>&6
4759 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4760 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4761 echo "configure:4762: checking for shmat" >&5
4762 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4768 /* System header to define __stub macros and hopefully few prototypes,
4769 which can conflict with char shmat(); below. */
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4778 /* The GNU C library defines this for functions which it implements
4779 to always fail with ENOSYS. Some functions are actually named
4780 something starting with __ and the normal name is an alias. */
4781 #if defined (__stub_shmat) || defined (__stub___shmat)
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 eval "ac_cv_func_shmat=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_func_shmat=no"
4801 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4805 echo "$ac_t""no" 1>&6
4808 if test $ac_cv_func_shmat = no; then
4809 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4810 echo "configure:4811: checking for shmat in -lipc" >&5
4811 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 ac_save_LIBS="$LIBS"
4817 cat > conftest.$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4829 if { (eval echo configure:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4831 eval "ac_cv_lib_$ac_lib_var=yes"
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 eval "ac_cv_lib_$ac_lib_var=no"
4839 LIBS="$ac_save_LIBS"
4842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4844 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4846 echo "$ac_t""no" 1>&6
4852 # Check for libraries that X11R6 Xt/Xaw programs need.
4853 ac_save_LDFLAGS="$LDFLAGS"
4854 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4855 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4856 # check for ICE first), but we must link in the order -lSM -lICE or
4857 # we get undefined symbols. So assume we have SM if we have ICE.
4858 # These have to be linked with before -lX11, unlike the other
4859 # libraries we check for below, so use a different variable.
4860 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4861 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4862 echo "configure:4863: checking for IceConnectionNumber in -lICE" >&5
4863 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 ac_save_LIBS="$LIBS"
4868 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4875 char IceConnectionNumber();
4878 IceConnectionNumber()
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4883 eval "ac_cv_lib_$ac_lib_var=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "ac_cv_lib_$ac_lib_var=no"
4891 LIBS="$ac_save_LIBS"
4894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4896 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4898 echo "$ac_t""no" 1>&6
4901 LDFLAGS="$ac_save_LDFLAGS"
4924 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4926 echo "configure:4927: checking for $ac_hdr" >&5
4927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4936 { (eval echo configure:4937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4938 if test -z "$ac_err"; then
4940 eval "ac_cv_header_$ac_safe=yes"
4943 echo "configure: failed program was:" >&5
4944 cat conftest.$ac_ext >&5
4946 eval "ac_cv_header_$ac_safe=no"
4950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4951 echo "$ac_t""yes" 1>&6
4952 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4953 cat >> confdefs.h <<EOF
4954 #define $ac_tr_hdr 1
4958 echo "$ac_t""no" 1>&6
4962 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4963 echo "configure:4964: checking for ANSI C header files" >&5
4964 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4976 { (eval echo configure:4977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4978 if test -z "$ac_err"; then
4980 ac_cv_header_stdc=yes
4983 echo "configure: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4986 ac_cv_header_stdc=no
4990 if test $ac_cv_header_stdc = yes; then
4991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4998 egrep "memchr" >/dev/null 2>&1; then
5002 ac_cv_header_stdc=no
5008 if test $ac_cv_header_stdc = yes; then
5009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5010 cat > conftest.$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5016 egrep "free" >/dev/null 2>&1; then
5020 ac_cv_header_stdc=no
5026 if test $ac_cv_header_stdc = yes; then
5027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5028 if test "$cross_compiling" = yes; then
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5035 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5036 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5038 int main () { int i; for (i = 0; i < 256; i++)
5039 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5043 if { (eval echo configure:5044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5047 echo "configure: failed program was:" >&5
5048 cat conftest.$ac_ext >&5
5050 ac_cv_header_stdc=no
5058 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5059 if test $ac_cv_header_stdc = yes; then
5060 cat >> confdefs.h <<\EOF
5061 #define STDC_HEADERS 1
5066 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5067 echo "configure:5068: checking whether sys/types.h defines makedev" >&5
5068 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 cat > conftest.$ac_ext <<EOF
5072 #line 5073 "configure"
5073 #include "confdefs.h"
5074 #include <sys/types.h>
5076 return makedev(0, 0);
5079 if { (eval echo configure:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5081 ac_cv_header_sys_types_h_makedev=yes
5083 echo "configure: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5086 ac_cv_header_sys_types_h_makedev=no
5092 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5094 if test $ac_cv_header_sys_types_h_makedev = no; then
5095 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5096 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5097 echo "configure:5098: checking for sys/mkdev.h" >&5
5098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5099 echo $ac_n "(cached) $ac_c" 1>&6
5101 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5104 #include <sys/mkdev.h>
5106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5107 { (eval echo configure:5108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5109 if test -z "$ac_err"; then
5111 eval "ac_cv_header_$ac_safe=yes"
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 eval "ac_cv_header_$ac_safe=no"
5121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5122 echo "$ac_t""yes" 1>&6
5123 cat >> confdefs.h <<\EOF
5124 #define MAJOR_IN_MKDEV 1
5128 echo "$ac_t""no" 1>&6
5132 if test $ac_cv_header_sys_mkdev_h = no; then
5133 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5134 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5135 echo "configure:5136: checking for sys/sysmacros.h" >&5
5136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 #include <sys/sysmacros.h>
5144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5145 { (eval echo configure:5146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5147 if test -z "$ac_err"; then
5149 eval "ac_cv_header_$ac_safe=yes"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 eval "ac_cv_header_$ac_safe=no"
5159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5160 echo "$ac_t""yes" 1>&6
5161 cat >> confdefs.h <<\EOF
5162 #define MAJOR_IN_SYSMACROS 1
5166 echo "$ac_t""no" 1>&6
5173 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5175 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5176 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5177 echo "configure:5178: checking for $ac_hdr that defines DIR" >&5
5178 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 #include <sys/types.h>
5190 if { (eval echo configure:5191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5192 eval "ac_cv_header_dirent_$ac_safe=yes"
5194 echo "configure: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5197 eval "ac_cv_header_dirent_$ac_safe=no"
5201 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5204 cat >> confdefs.h <<EOF
5205 #define $ac_tr_hdr 1
5207 ac_header_dirent=$ac_hdr; break
5209 echo "$ac_t""no" 1>&6
5212 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5213 if test $ac_header_dirent = dirent.h; then
5214 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5215 echo "configure:5216: checking for opendir in -ldir" >&5
5216 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5220 ac_save_LIBS="$LIBS"
5222 cat > conftest.$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5225 /* Override any gcc2 internal prototype to avoid an error. */
5226 /* We use char because int might match the return type of a gcc2
5227 builtin and then its argument prototype would still apply. */
5234 if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5236 eval "ac_cv_lib_$ac_lib_var=yes"
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5241 eval "ac_cv_lib_$ac_lib_var=no"
5244 LIBS="$ac_save_LIBS"
5247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5248 echo "$ac_t""yes" 1>&6
5251 echo "$ac_t""no" 1>&6
5255 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5256 echo "configure:5257: checking for opendir in -lx" >&5
5257 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 ac_save_LIBS="$LIBS"
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 /* Override any gcc2 internal prototype to avoid an error. */
5267 /* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5277 eval "ac_cv_lib_$ac_lib_var=yes"
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 eval "ac_cv_lib_$ac_lib_var=no"
5285 LIBS="$ac_save_LIBS"
5288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5289 echo "$ac_t""yes" 1>&6
5292 echo "$ac_t""no" 1>&6
5297 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5298 echo "configure:5299: checking whether stat file-mode macros are broken" >&5
5299 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 #include <sys/types.h>
5306 #include <sys/stat.h>
5308 #if defined(S_ISBLK) && defined(S_IFDIR)
5309 # if S_ISBLK (S_IFDIR)
5314 #if defined(S_ISBLK) && defined(S_IFCHR)
5315 # if S_ISBLK (S_IFCHR)
5320 #if defined(S_ISLNK) && defined(S_IFREG)
5321 # if S_ISLNK (S_IFREG)
5326 #if defined(S_ISSOCK) && defined(S_IFREG)
5327 # if S_ISSOCK (S_IFREG)
5333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334 egrep "You lose" >/dev/null 2>&1; then
5336 ac_cv_header_stat_broken=yes
5339 ac_cv_header_stat_broken=no
5345 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5346 if test $ac_cv_header_stat_broken = yes; then
5347 cat >> confdefs.h <<\EOF
5348 #define STAT_MACROS_BROKEN 1
5353 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5354 echo "configure:5355: checking for sys/wait.h that is POSIX.1 compatible" >&5
5355 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5361 #include <sys/types.h>
5362 #include <sys/wait.h>
5364 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5367 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5372 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5375 if { (eval echo configure:5376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5377 ac_cv_header_sys_wait_h=yes
5379 echo "configure: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5382 ac_cv_header_sys_wait_h=no
5387 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5388 if test $ac_cv_header_sys_wait_h = yes; then
5389 cat >> confdefs.h <<\EOF
5390 #define HAVE_SYS_WAIT_H 1
5395 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5396 echo "configure:5397: checking whether time.h and sys/time.h may both be included" >&5
5397 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5400 cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 #include <sys/types.h>
5404 #include <sys/time.h>
5410 if { (eval echo configure:5411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5412 ac_cv_header_time=yes
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 ac_cv_header_time=no
5422 echo "$ac_t""$ac_cv_header_time" 1>&6
5423 if test $ac_cv_header_time = yes; then
5424 cat >> confdefs.h <<\EOF
5425 #define TIME_WITH_SYS_TIME 1
5430 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5431 echo "configure:5432: checking for st_blksize in struct stat" >&5
5432 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 #include <sys/types.h>
5439 #include <sys/stat.h>
5441 struct stat s; s.st_blksize;
5444 if { (eval echo configure:5445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5446 ac_cv_struct_st_blksize=yes
5448 echo "configure: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5451 ac_cv_struct_st_blksize=no
5456 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5457 if test $ac_cv_struct_st_blksize = yes; then
5458 cat >> confdefs.h <<\EOF
5459 #define HAVE_ST_BLKSIZE 1
5464 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5465 echo "configure:5466: checking for st_blocks in struct stat" >&5
5466 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 #include <sys/types.h>
5473 #include <sys/stat.h>
5475 struct stat s; s.st_blocks;
5478 if { (eval echo configure:5479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5480 ac_cv_struct_st_blocks=yes
5482 echo "configure: failed program was:" >&5
5483 cat conftest.$ac_ext >&5
5485 ac_cv_struct_st_blocks=no
5490 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5491 if test $ac_cv_struct_st_blocks = yes; then
5492 cat >> confdefs.h <<\EOF
5493 #define HAVE_ST_BLOCKS 1
5497 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5500 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5501 echo "configure:5502: checking whether struct tm is in sys/time.h or time.h" >&5
5502 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 #include <sys/types.h>
5511 struct tm *tp; tp->tm_sec;
5514 if { (eval echo configure:5515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5516 ac_cv_struct_tm=time.h
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 ac_cv_struct_tm=sys/time.h
5526 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5527 if test $ac_cv_struct_tm = sys/time.h; then
5528 cat >> confdefs.h <<\EOF
5529 #define TM_IN_SYS_TIME 1
5534 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5535 echo "configure:5536: checking for tm_zone in struct tm" >&5
5536 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 #include <sys/types.h>
5543 #include <$ac_cv_struct_tm>
5545 struct tm tm; tm.tm_zone;
5548 if { (eval echo configure:5549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5550 ac_cv_struct_tm_zone=yes
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 ac_cv_struct_tm_zone=no
5560 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5561 if test "$ac_cv_struct_tm_zone" = yes; then
5562 cat >> confdefs.h <<\EOF
5563 #define HAVE_TM_ZONE 1
5567 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5568 echo "configure:5569: checking for tzname" >&5
5569 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5576 #ifndef tzname /* For SGI. */
5577 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5583 if { (eval echo configure:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5585 ac_cv_var_tzname=yes
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5595 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5596 if test $ac_cv_var_tzname = yes; then
5597 cat >> confdefs.h <<\EOF
5598 #define HAVE_TZNAME 1
5605 # It seems that that many machines where <utime.h> seems to be
5606 # broken just require something like -D_XXX_SOURCE, where XXX might
5607 # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine.
5609 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5610 echo "configure:5611: checking for utime.h" >&5
5611 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5618 #include <sys/types.h>
5624 if { (eval echo configure:5625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5626 tar_cv_header_utime_h=yes
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5631 tar_cv_header_utime_h=no
5636 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5637 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5638 #define HAVE_UTIME_H 1
5642 echo $ac_n "checking for working const""... $ac_c" 1>&6
5643 echo "configure:5644: checking for working const" >&5
5644 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5653 /* Ultrix mips cc rejects this. */
5654 typedef int charset[2]; const charset x;
5655 /* SunOS 4.1.1 cc rejects this. */
5656 char const *const *ccp;
5658 /* NEC SVR4.0.2 mips cc rejects this. */
5659 struct point {int x, y;};
5660 static struct point const zero = {0,0};
5661 /* AIX XL C 1.02.0.0 rejects this.
5662 It does not let you subtract one const X* pointer from another in an arm
5663 of an if-expression whose if-part is not a constant expression */
5664 const char *g = "string";
5665 ccp = &g + (g ? g-g : 0);
5666 /* HPUX 7.0 cc rejects these. */
5669 ccp = (char const *const *) p;
5670 { /* SCO 3.2v4 cc rejects this. */
5672 char const *s = 0 ? (char *) 0 : (char const *) 0;
5676 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5678 const int *foo = &x[0];
5681 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5682 typedef const int *iptr;
5686 { /* AIX XL C 1.02.0.0 rejects this saying
5687 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5688 struct s { int j; const int *ap[3]; };
5689 struct s *b; b->j = 5;
5691 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5697 if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5709 echo "$ac_t""$ac_cv_c_const" 1>&6
5710 if test $ac_cv_c_const = no; then
5711 cat >> confdefs.h <<\EOF
5719 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
5720 echo "configure:5721: checking how to get filesystem type" >&5
5722 # The order of these tests is important.
5723 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5726 #include <sys/statvfs.h>
5727 #include <sys/fstyp.h>
5729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5730 { (eval echo configure:5731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5732 if test -z "$ac_err"; then
5734 cat >> confdefs.h <<\EOF
5735 #define FSTYPE_STATVFS 1
5740 echo "configure: failed program was:" >&5
5741 cat conftest.$ac_ext >&5
5744 if test $fstype = no; then
5745 cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 #include <sys/statfs.h>
5749 #include <sys/fstyp.h>
5751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5752 { (eval echo configure:5753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5754 if test -z "$ac_err"; then
5756 cat >> confdefs.h <<\EOF
5757 #define FSTYPE_USG_STATFS 1
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5767 if test $fstype = no; then
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5771 #include <sys/statfs.h>
5772 #include <sys/vmount.h>
5774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5775 { (eval echo configure:5776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5777 if test -z "$ac_err"; then
5779 cat >> confdefs.h <<\EOF
5780 #define FSTYPE_AIX_STATFS 1
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5790 if test $fstype = no; then
5791 cat > conftest.$ac_ext <<EOF
5792 #line 5793 "configure"
5793 #include "confdefs.h"
5796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5797 { (eval echo configure:5798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5799 if test -z "$ac_err"; then
5801 cat >> confdefs.h <<\EOF
5802 #define FSTYPE_MNTENT 1
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5812 if test $fstype = no; then
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 #include <sys/mount.h>
5818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5819 egrep "f_type;" >/dev/null 2>&1; then
5821 cat >> confdefs.h <<\EOF
5822 #define FSTYPE_STATFS 1
5829 if test $fstype = no; then
5830 cat > conftest.$ac_ext <<EOF
5831 #line 5832 "configure"
5832 #include "confdefs.h"
5833 #include <sys/mount.h>
5834 #include <sys/fs_types.h>
5836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5837 { (eval echo configure:5838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5839 if test -z "$ac_err"; then
5841 cat >> confdefs.h <<\EOF
5842 #define FSTYPE_GETMNT 1
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5852 echo "$ac_t""$fstype" 1>&6
5854 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5855 echo "configure:5856: checking return type of signal handlers" >&5
5856 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5857 echo $ac_n "(cached) $ac_c" 1>&6
5859 cat > conftest.$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5862 #include <sys/types.h>
5868 extern "C" void (*signal (int, void (*)(int)))(int);
5870 void (*signal ()) ();
5877 if { (eval echo configure:5878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5879 ac_cv_type_signal=void
5881 echo "configure: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5884 ac_cv_type_signal=int
5889 echo "$ac_t""$ac_cv_type_signal" 1>&6
5890 cat >> confdefs.h <<EOF
5891 #define RETSIGTYPE $ac_cv_type_signal
5896 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
5897 echo "configure:5898: checking for type of signal functions" >&5
5898 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
5899 echo $ac_n "(cached) $ac_c" 1>&6
5902 cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5909 struct sigaction sa;
5910 sigemptyset(&ss); sigsuspend(&ss);
5911 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5912 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 bash_cv_signal_vintage=posix
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5930 int mask = sigmask(SIGINT);
5931 sigsetmask(mask); sigblock(mask); sigpause(mask);
5935 if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5937 bash_cv_signal_vintage=4.2bsd
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5943 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5948 RETSIGTYPE foo() { }
5951 int mask = sigmask(SIGINT);
5952 sigset(SIGINT, foo); sigrelse(SIGINT);
5953 sighold(SIGINT); sigpause(SIGINT);
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959 bash_cv_signal_vintage=svr3
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5964 bash_cv_signal_vintage=v7
5977 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
5978 if test "$bash_cv_signal_vintage" = posix; then
5979 cat >> confdefs.h <<\EOF
5980 #define HAVE_POSIX_SIGNALS 1
5983 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5984 cat >> confdefs.h <<\EOF
5985 #define HAVE_BSD_SIGNALS 1
5988 elif test "$bash_cv_signal_vintage" = svr3; then
5989 cat >> confdefs.h <<\EOF
5990 #define HAVE_USG_SIGHOLD 1
5995 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5996 echo "configure:5997: checking for mode_t" >&5
5997 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 #include <sys/types.h>
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6012 ac_cv_type_mode_t=yes
6015 ac_cv_type_mode_t=no
6020 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6021 if test $ac_cv_type_mode_t = no; then
6022 cat >> confdefs.h <<\EOF
6028 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6029 echo "configure:6030: checking for uid_t in sys/types.h" >&5
6030 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6036 #include <sys/types.h>
6038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039 egrep "uid_t" >/dev/null 2>&1; then
6041 ac_cv_type_uid_t=yes
6050 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6051 if test $ac_cv_type_uid_t = no; then
6052 cat >> confdefs.h <<\EOF
6056 cat >> confdefs.h <<\EOF
6062 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6063 echo "configure:6064: checking for size_t" >&5
6064 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6067 cat > conftest.$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6070 #include <sys/types.h>
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6079 ac_cv_type_size_t=yes
6082 ac_cv_type_size_t=no
6087 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6088 if test $ac_cv_type_size_t = no; then
6089 cat >> confdefs.h <<\EOF
6090 #define size_t unsigned
6095 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6096 echo "configure:6097: checking for pid_t" >&5
6097 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6098 echo $ac_n "(cached) $ac_c" 1>&6
6100 cat > conftest.$ac_ext <<EOF
6101 #line 6102 "configure"
6102 #include "confdefs.h"
6103 #include <sys/types.h>
6109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6110 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6112 ac_cv_type_pid_t=yes
6120 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6121 if test $ac_cv_type_pid_t = no; then
6122 cat >> confdefs.h <<\EOF
6128 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6129 echo "configure:6130: checking for off_t" >&5
6130 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6136 #include <sys/types.h>
6142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6143 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6145 ac_cv_type_off_t=yes
6153 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6154 if test $ac_cv_type_off_t = no; then
6155 cat >> confdefs.h <<\EOF
6161 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6162 echo "configure:6163: checking for ino_t" >&5
6163 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6164 echo $ac_n "(cached) $ac_c" 1>&6
6166 cat > conftest.$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6169 #include <sys/types.h>
6175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6176 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6178 ac_cv_type_ino_t=yes
6186 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6187 if test $ac_cv_type_ino_t = no; then
6188 cat >> confdefs.h <<\EOF
6189 #define ino_t unsigned long
6194 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6195 echo "configure:6196: checking for dev_t" >&5
6196 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6199 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure"
6201 #include "confdefs.h"
6202 #include <sys/types.h>
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6211 ac_cv_type_dev_t=yes
6219 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6220 if test $ac_cv_type_dev_t = no; then
6221 cat >> confdefs.h <<\EOF
6222 #define dev_t unsigned long
6227 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6228 echo "configure:6229: checking for daddr_t" >&5
6229 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6232 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6235 #include <sys/types.h>
6241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6242 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6244 ac_cv_type_daddr_t=yes
6247 ac_cv_type_daddr_t=no
6252 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6253 if test $ac_cv_type_daddr_t = no; then
6254 cat >> confdefs.h <<\EOF
6255 #define daddr_t long
6260 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6261 echo "configure:6262: checking for major_t" >&5
6262 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6263 echo $ac_n "(cached) $ac_c" 1>&6
6265 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6268 #include <sys/types.h>
6274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6275 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6277 ac_cv_type_major_t=yes
6280 ac_cv_type_major_t=no
6285 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6286 if test $ac_cv_type_major_t = no; then
6287 cat >> confdefs.h <<\EOF
6293 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6294 echo "configure:6295: checking for minor_t" >&5
6295 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6296 echo $ac_n "(cached) $ac_c" 1>&6
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6301 #include <sys/types.h>
6307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6310 ac_cv_type_minor_t=yes
6313 ac_cv_type_minor_t=no
6318 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6319 if test $ac_cv_type_minor_t = no; then
6320 cat >> confdefs.h <<\EOF
6326 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6327 echo "configure:6328: checking for ssize_t" >&5
6328 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6329 echo $ac_n "(cached) $ac_c" 1>&6
6331 cat > conftest.$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6334 #include <sys/types.h>
6340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6341 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6343 ac_cv_type_ssize_t=yes
6346 ac_cv_type_ssize_t=no
6351 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6352 if test $ac_cv_type_ssize_t = no; then
6353 cat >> confdefs.h <<\EOF
6359 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6360 echo "configure:6361: checking for st_blocks in struct stat" >&5
6361 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6362 echo $ac_n "(cached) $ac_c" 1>&6
6364 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6367 #include <sys/types.h>
6368 #include <sys/stat.h>
6370 struct stat s; s.st_blocks;
6373 if { (eval echo configure:6374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6375 ac_cv_struct_st_blocks=yes
6377 echo "configure: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6380 ac_cv_struct_st_blocks=no
6385 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6386 if test $ac_cv_struct_st_blocks = yes; then
6387 cat >> confdefs.h <<\EOF
6388 #define HAVE_ST_BLOCKS 1
6392 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6395 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6396 echo "configure:6397: checking for st_rdev in struct stat" >&5
6397 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6398 echo $ac_n "(cached) $ac_c" 1>&6
6400 cat > conftest.$ac_ext <<EOF
6401 #line 6402 "configure"
6402 #include "confdefs.h"
6403 #include <sys/types.h>
6404 #include <sys/stat.h>
6406 struct stat s; s.st_rdev;
6409 if { (eval echo configure:6410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6411 ac_cv_struct_st_rdev=yes
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 ac_cv_struct_st_rdev=no
6421 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6422 if test $ac_cv_struct_st_rdev = yes; then
6423 cat >> confdefs.h <<\EOF
6424 #define HAVE_ST_RDEV 1
6429 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6430 echo "configure:6431: checking whether struct tm is in sys/time.h or time.h" >&5
6431 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 #include <sys/types.h>
6440 struct tm *tp; tp->tm_sec;
6443 if { (eval echo configure:6444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6445 ac_cv_struct_tm=time.h
6447 echo "configure: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6450 ac_cv_struct_tm=sys/time.h
6455 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6456 if test $ac_cv_struct_tm = sys/time.h; then
6457 cat >> confdefs.h <<\EOF
6458 #define TM_IN_SYS_TIME 1
6463 echo $ac_n "checking for working const""... $ac_c" 1>&6
6464 echo "configure:6465: checking for working const" >&5
6465 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6466 echo $ac_n "(cached) $ac_c" 1>&6
6468 cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure"
6470 #include "confdefs.h"
6474 /* Ultrix mips cc rejects this. */
6475 typedef int charset[2]; const charset x;
6476 /* SunOS 4.1.1 cc rejects this. */
6477 char const *const *ccp;
6479 /* NEC SVR4.0.2 mips cc rejects this. */
6480 struct point {int x, y;};
6481 static struct point const zero = {0,0};
6482 /* AIX XL C 1.02.0.0 rejects this.
6483 It does not let you subtract one const X* pointer from another in an arm
6484 of an if-expression whose if-part is not a constant expression */
6485 const char *g = "string";
6486 ccp = &g + (g ? g-g : 0);
6487 /* HPUX 7.0 cc rejects these. */
6490 ccp = (char const *const *) p;
6491 { /* SCO 3.2v4 cc rejects this. */
6493 char const *s = 0 ? (char *) 0 : (char const *) 0;
6497 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6499 const int *foo = &x[0];
6502 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6503 typedef const int *iptr;
6507 { /* AIX XL C 1.02.0.0 rejects this saying
6508 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6509 struct s { int j; const int *ap[3]; };
6510 struct s *b; b->j = 5;
6512 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6518 if { (eval echo configure:6519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6530 echo "$ac_t""$ac_cv_c_const" 1>&6
6531 if test $ac_cv_c_const = no; then
6532 cat >> confdefs.h <<\EOF
6540 echo $ac_n "checking size of char""... $ac_c" 1>&6
6541 echo "configure:6542: checking size of char" >&5
6542 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6543 echo $ac_n "(cached) $ac_c" 1>&6
6545 if test "$cross_compiling" = yes; then
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6554 FILE *f=fopen("conftestval", "w");
6556 fprintf(f, "%d\n", sizeof(char));
6560 if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6562 ac_cv_sizeof_char=`cat conftestval`
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6573 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6574 cat >> confdefs.h <<EOF
6575 #define SIZEOF_CHAR $ac_cv_sizeof_char
6579 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6580 echo "configure:6581: checking size of short int" >&5
6581 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6584 if test "$cross_compiling" = yes; then
6585 ac_cv_sizeof_short_int=2
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6593 FILE *f=fopen("conftestval", "w");
6595 fprintf(f, "%d\n", sizeof(short int));
6599 if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6601 ac_cv_sizeof_short_int=`cat conftestval`
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6606 ac_cv_sizeof_short_int=0
6612 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6613 cat >> confdefs.h <<EOF
6614 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6618 echo $ac_n "checking size of int""... $ac_c" 1>&6
6619 echo "configure:6620: checking size of int" >&5
6620 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6623 if test "$cross_compiling" = yes; then
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6632 FILE *f=fopen("conftestval", "w");
6634 fprintf(f, "%d\n", sizeof(int));
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6640 ac_cv_sizeof_int=`cat conftestval`
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6651 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6652 cat >> confdefs.h <<EOF
6653 #define SIZEOF_INT $ac_cv_sizeof_int
6657 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6658 echo "configure:6659: checking size of long int" >&5
6659 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6660 echo $ac_n "(cached) $ac_c" 1>&6
6662 if test "$cross_compiling" = yes; then
6663 ac_cv_sizeof_long_int=4
6665 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6671 FILE *f=fopen("conftestval", "w");
6673 fprintf(f, "%d\n", sizeof(long int));
6677 if { (eval echo configure:6678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6679 ac_cv_sizeof_long_int=`cat conftestval`
6681 echo "configure: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6684 ac_cv_sizeof_long_int=0
6690 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
6691 cat >> confdefs.h <<EOF
6692 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
6696 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
6697 echo "configure:6698: checking size of long long int" >&5
6698 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
6699 echo $ac_n "(cached) $ac_c" 1>&6
6701 if test "$cross_compiling" = yes; then
6702 ac_cv_sizeof_long_long_int=8
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6710 FILE *f=fopen("conftestval", "w");
6712 fprintf(f, "%d\n", sizeof(long long int));
6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6718 ac_cv_sizeof_long_long_int=`cat conftestval`
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6723 ac_cv_sizeof_long_long_int=0
6729 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
6730 cat >> confdefs.h <<EOF
6731 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
6735 echo $ac_n "checking size of int *""... $ac_c" 1>&6
6736 echo "configure:6737: checking size of int *" >&5
6737 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
6738 echo $ac_n "(cached) $ac_c" 1>&6
6740 if test "$cross_compiling" = yes; then
6741 ac_cv_sizeof_int_p=4
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6749 FILE *f=fopen("conftestval", "w");
6751 fprintf(f, "%d\n", sizeof(int *));
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6757 ac_cv_sizeof_int_p=`cat conftestval`
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 ac_cv_sizeof_int_p=0
6768 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
6769 cat >> confdefs.h <<EOF
6770 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
6775 # Check for sys/types.h types
6776 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
6777 echo "configure:6778: checking for u_int type" >&5
6778 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6782 cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 #include <sys/types.h>
6790 if { (eval echo configure:6791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6792 ac_cv_have_u_int="yes"
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6797 ac_cv_have_u_int="no"
6804 echo "$ac_t""$ac_cv_have_u_int" 1>&6
6805 if test "x$ac_cv_have_u_int" = "xyes" ; then
6806 cat >> confdefs.h <<\EOF
6807 #define HAVE_U_INT 1
6813 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
6814 echo "configure:6815: checking for intmax_t type" >&5
6815 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 #include <sys/types.h>
6827 if { (eval echo configure:6828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6829 ac_cv_have_intmax_t="yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6843 if { (eval echo configure:6844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6845 ac_cv_have_intmax_t="yes"
6847 echo "configure: failed program was:" >&5
6848 cat conftest.$ac_ext >&5
6850 ac_cv_have_intmax_t="no"
6862 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
6863 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
6864 cat >> confdefs.h <<\EOF
6865 #define HAVE_INTMAX_T 1
6872 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
6873 echo "configure:6874: checking for u_intmax_t type" >&5
6874 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
6875 echo $ac_n "(cached) $ac_c" 1>&6
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 #include <sys/types.h>
6883 u_intmax_t a; a = 1;
6886 if { (eval echo configure:6887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6888 ac_cv_have_u_intmax_t="yes"
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6894 cat > conftest.$ac_ext <<EOF
6895 #line 6896 "configure"
6896 #include "confdefs.h"
6899 u_intmax_t a; a = 1;
6902 if { (eval echo configure:6903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6904 ac_cv_have_u_intmax_t="yes"
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 ac_cv_have_u_intmax_t="no"
6920 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
6921 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
6922 cat >> confdefs.h <<\EOF
6923 #define HAVE_U_INTMAX_T 1
6930 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
6931 echo "configure:6932: checking for intXX_t types" >&5
6932 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
6933 echo $ac_n "(cached) $ac_c" 1>&6
6936 cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 #include <sys/types.h>
6941 int8_t a; int16_t b; int32_t c; a = b = c = 1;
6944 if { (eval echo configure:6945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6946 ac_cv_have_intxx_t="yes"
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 ac_cv_have_intxx_t="no"
6958 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
6959 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
6960 cat >> confdefs.h <<\EOF
6961 #define HAVE_INTXX_T 1
6967 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
6968 echo "configure:6969: checking for int64_t type" >&5
6969 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6976 #include <sys/types.h>
6981 if { (eval echo configure:6982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6983 ac_cv_have_int64_t="yes"
6985 echo "configure: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6988 ac_cv_have_int64_t="no"
6995 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
6996 if test "x$ac_cv_have_int64_t" = "xyes" ; then
6997 cat >> confdefs.h <<\EOF
6998 #define HAVE_INT64_T 1
7004 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7005 echo "configure:7006: checking for u_intXX_t types" >&5
7006 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7007 echo $ac_n "(cached) $ac_c" 1>&6
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7013 #include <sys/types.h>
7015 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7018 if { (eval echo configure:7019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7020 ac_cv_have_u_intxx_t="yes"
7022 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7025 ac_cv_have_u_intxx_t="no"
7032 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7033 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7034 cat >> confdefs.h <<\EOF
7035 #define HAVE_U_INTXX_T 1
7041 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7042 echo "configure:7043: checking for u_int64_t types" >&5
7043 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7044 echo $ac_n "(cached) $ac_c" 1>&6
7047 cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 #include <sys/types.h>
7055 if { (eval echo configure:7056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7057 ac_cv_have_u_int64_t="yes"
7059 echo "configure: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7062 ac_cv_have_u_int64_t="no"
7069 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7070 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7071 cat >> confdefs.h <<\EOF
7072 #define HAVE_U_INT64_T 1
7078 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7079 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7081 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7082 echo "configure:7083: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7083 cat > conftest.$ac_ext <<EOF
7084 #line 7085 "configure"
7085 #include "confdefs.h"
7086 #include <sys/bitypes.h>
7088 int8_t a; int16_t b; int32_t c;
7089 u_int8_t e; u_int16_t f; u_int32_t g;
7090 a = b = c = e = f = g = 1;
7093 if { (eval echo configure:7094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7095 cat >> confdefs.h <<\EOF
7096 #define HAVE_U_INTXX_T 1
7099 cat >> confdefs.h <<\EOF
7100 #define HAVE_INTXX_T 1
7103 cat >> confdefs.h <<\EOF
7104 #define HAVE_SYS_BITYPES_H 1
7107 echo "$ac_t""yes" 1>&6
7109 echo "configure: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7112 echo "$ac_t""no" 1>&6
7118 if test -z "$have_u_intxx_t" ; then
7119 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7120 echo "configure:7121: checking for uintXX_t types" >&5
7121 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7125 cat > conftest.$ac_ext <<EOF
7126 #line 7127 "configure"
7127 #include "confdefs.h"
7128 #include <sys/types.h>
7130 uint8_t a; uint16_t b;
7131 uint32_t c; a = b = c = 1;
7134 if { (eval echo configure:7135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7136 ac_cv_have_uintxx_t="yes"
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7141 ac_cv_have_uintxx_t="no"
7148 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7149 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7150 cat >> confdefs.h <<\EOF
7151 #define HAVE_UINTXX_T 1
7173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7174 echo "configure:7175: checking for $ac_func" >&5
7175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* System header to define __stub macros and hopefully few prototypes,
7182 which can conflict with char $ac_func(); below. */
7184 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7191 /* The GNU C library defines this for functions which it implements
7192 to always fail with ENOSYS. Some functions are actually named
7193 something starting with __ and the normal name is an alias. */
7194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 eval "ac_cv_func_$ac_func=yes"
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 eval "ac_cv_func_$ac_func=no"
7214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7217 cat >> confdefs.h <<EOF
7218 #define $ac_tr_func 1
7222 echo "$ac_t""no" 1>&6
7223 echo 'configure: cannot find needed function.'; exit 1
7229 for ac_func in fchdir
7231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7232 echo "configure:7233: checking for $ac_func" >&5
7233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* System header to define __stub macros and hopefully few prototypes,
7240 which can conflict with char $ac_func(); below. */
7242 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7249 /* The GNU C library defines this for functions which it implements
7250 to always fail with ENOSYS. Some functions are actually named
7251 something starting with __ and the normal name is an alias. */
7252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7260 if { (eval echo configure:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7262 eval "ac_cv_func_$ac_func=yes"
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7267 eval "ac_cv_func_$ac_func=no"
7272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7275 cat >> confdefs.h <<EOF
7276 #define $ac_tr_func 1
7278 cat >> confdefs.h <<\EOF
7279 #define HAVE_FCHDIR 1
7283 echo "$ac_t""no" 1>&6
7288 for ac_func in snprintf vsnprintf
7290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7291 echo "configure:7292: checking for $ac_func" >&5
7292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7295 cat > conftest.$ac_ext <<EOF
7296 #line 7297 "configure"
7297 #include "confdefs.h"
7298 /* System header to define __stub macros and hopefully few prototypes,
7299 which can conflict with char $ac_func(); below. */
7301 /* Override any gcc2 internal prototype to avoid an error. */
7302 /* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7308 /* The GNU C library defines this for functions which it implements
7309 to always fail with ENOSYS. Some functions are actually named
7310 something starting with __ and the normal name is an alias. */
7311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7319 if { (eval echo configure:7320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7321 eval "ac_cv_func_$ac_func=yes"
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7326 eval "ac_cv_func_$ac_func=no"
7331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7332 echo "$ac_t""yes" 1>&6
7333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7334 cat >> confdefs.h <<EOF
7335 #define $ac_tr_func 1
7339 echo "$ac_t""no" 1>&6
7344 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7347 echo "configure:7348: checking for $ac_func" >&5
7348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7354 /* System header to define __stub macros and hopefully few prototypes,
7355 which can conflict with char $ac_func(); below. */
7357 /* Override any gcc2 internal prototype to avoid an error. */
7358 /* We use char because int might match the return type of a gcc2
7359 builtin and then its argument prototype would still apply. */
7364 /* The GNU C library defines this for functions which it implements
7365 to always fail with ENOSYS. Some functions are actually named
7366 something starting with __ and the normal name is an alias. */
7367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7377 eval "ac_cv_func_$ac_func=yes"
7379 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7382 eval "ac_cv_func_$ac_func=no"
7387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7388 echo "$ac_t""yes" 1>&6
7389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7390 cat >> confdefs.h <<EOF
7391 #define $ac_tr_func 1
7395 echo "$ac_t""no" 1>&6
7400 # If resolver functions are not in libc check for -lnsl or -lresolv.
7401 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7402 echo "configure:7403: checking for gethostbyname_r" >&5
7403 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 /* System header to define __stub macros and hopefully few prototypes,
7410 which can conflict with char gethostbyname_r(); below. */
7412 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7415 char gethostbyname_r();
7419 /* The GNU C library defines this for functions which it implements
7420 to always fail with ENOSYS. Some functions are actually named
7421 something starting with __ and the normal name is an alias. */
7422 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7430 if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7432 eval "ac_cv_func_gethostbyname_r=yes"
7434 echo "configure: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7437 eval "ac_cv_func_gethostbyname_r=no"
7442 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7444 echo "$ac_t""using libc's resolver" 1>&6
7446 echo "$ac_t""no" 1>&6
7447 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7448 echo "configure:7449: checking for gethostbyname_r in -lnsl" >&5
7449 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7451 echo $ac_n "(cached) $ac_c" 1>&6
7453 ac_save_LIBS="$LIBS"
7455 cat > conftest.$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7461 char gethostbyname_r();
7467 if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7469 eval "ac_cv_lib_$ac_lib_var=yes"
7471 echo "configure: failed program was:" >&5
7472 cat conftest.$ac_ext >&5
7474 eval "ac_cv_lib_$ac_lib_var=no"
7477 LIBS="$ac_save_LIBS"
7480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7481 echo "$ac_t""yes" 1>&6
7482 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7484 cat >> confdefs.h <<EOF
7485 #define $ac_tr_lib 1
7491 echo "$ac_t""no" 1>&6
7494 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7495 echo "configure:7496: checking for gethostbyname_r in -lresolv" >&5
7496 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7500 ac_save_LIBS="$LIBS"
7501 LIBS="-lresolv $LIBS"
7502 cat > conftest.$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7505 /* Override any gcc2 internal prototype to avoid an error. */
7506 /* We use char because int might match the return type of a gcc2
7507 builtin and then its argument prototype would still apply. */
7508 char gethostbyname_r();
7514 if { (eval echo configure:7515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7516 eval "ac_cv_lib_$ac_lib_var=yes"
7518 echo "configure: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7521 eval "ac_cv_lib_$ac_lib_var=no"
7524 LIBS="$ac_save_LIBS"
7527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7528 echo "$ac_t""yes" 1>&6
7529 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7531 cat >> confdefs.h <<EOF
7532 #define $ac_tr_lib 1
7535 LIBS="-lresolv $LIBS"
7538 echo "$ac_t""no" 1>&6
7545 # Find where sockets are (especially for Solaris)
7546 echo $ac_n "checking for socket""... $ac_c" 1>&6
7547 echo "configure:7548: checking for socket" >&5
7548 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7551 cat > conftest.$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7554 /* System header to define __stub macros and hopefully few prototypes,
7555 which can conflict with char socket(); below. */
7557 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7564 /* The GNU C library defines this for functions which it implements
7565 to always fail with ENOSYS. Some functions are actually named
7566 something starting with __ and the normal name is an alias. */
7567 #if defined (__stub_socket) || defined (__stub___socket)
7575 if { (eval echo configure:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7577 eval "ac_cv_func_socket=yes"
7579 echo "configure: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7582 eval "ac_cv_func_socket=no"
7587 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7589 echo "$ac_t""using libc's socket" 1>&6
7591 echo "$ac_t""no" 1>&6
7592 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7593 echo "configure:7594: checking for socket in -lxnet" >&5
7594 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7596 echo $ac_n "(cached) $ac_c" 1>&6
7598 ac_save_LIBS="$LIBS"
7600 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 /* Override any gcc2 internal prototype to avoid an error. */
7604 /* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7614 eval "ac_cv_lib_$ac_lib_var=yes"
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7619 eval "ac_cv_lib_$ac_lib_var=no"
7622 LIBS="$ac_save_LIBS"
7625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7626 echo "$ac_t""yes" 1>&6
7627 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7629 cat >> confdefs.h <<EOF
7630 #define $ac_tr_lib 1
7636 echo "$ac_t""no" 1>&6
7639 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7640 echo "configure:7641: checking for socket in -lsocket" >&5
7641 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7643 echo $ac_n "(cached) $ac_c" 1>&6
7645 ac_save_LIBS="$LIBS"
7646 LIBS="-lsocket $LIBS"
7647 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure"
7649 #include "confdefs.h"
7650 /* Override any gcc2 internal prototype to avoid an error. */
7651 /* We use char because int might match the return type of a gcc2
7652 builtin and then its argument prototype would still apply. */
7659 if { (eval echo configure:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7661 eval "ac_cv_lib_$ac_lib_var=yes"
7663 echo "configure: failed program was:" >&5
7664 cat conftest.$ac_ext >&5
7666 eval "ac_cv_lib_$ac_lib_var=no"
7669 LIBS="$ac_save_LIBS"
7672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7673 echo "$ac_t""yes" 1>&6
7674 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
7675 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7676 cat >> confdefs.h <<EOF
7677 #define $ac_tr_lib 1
7680 LIBS="-lsocket $LIBS"
7683 echo "$ac_t""no" 1>&6
7686 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
7687 echo "configure:7688: checking for socket in -linet" >&5
7688 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
7689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7690 echo $ac_n "(cached) $ac_c" 1>&6
7692 ac_save_LIBS="$LIBS"
7694 cat > conftest.$ac_ext <<EOF
7695 #line 7696 "configure"
7696 #include "confdefs.h"
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7706 if { (eval echo configure:7707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7708 eval "ac_cv_lib_$ac_lib_var=yes"
7710 echo "configure: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7713 eval "ac_cv_lib_$ac_lib_var=no"
7716 LIBS="$ac_save_LIBS"
7719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7720 echo "$ac_t""yes" 1>&6
7721 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
7722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7723 cat >> confdefs.h <<EOF
7724 #define $ac_tr_lib 1
7730 echo "$ac_t""no" 1>&6
7737 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7738 echo "configure:7739: checking for strftime" >&5
7739 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 /* System header to define __stub macros and hopefully few prototypes,
7746 which can conflict with char strftime(); below. */
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 /* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7755 /* The GNU C library defines this for functions which it implements
7756 to always fail with ENOSYS. Some functions are actually named
7757 something starting with __ and the normal name is an alias. */
7758 #if defined (__stub_strftime) || defined (__stub___strftime)
7766 if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7768 eval "ac_cv_func_strftime=yes"
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7773 eval "ac_cv_func_strftime=no"
7778 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7779 echo "$ac_t""yes" 1>&6
7780 cat >> confdefs.h <<\EOF
7781 #define HAVE_STRFTIME 1
7785 echo "$ac_t""no" 1>&6
7786 # strftime is in -lintl on SCO UNIX.
7787 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7788 echo "configure:7789: checking for strftime in -lintl" >&5
7789 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7793 ac_save_LIBS="$LIBS"
7795 cat > conftest.$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7798 /* Override any gcc2 internal prototype to avoid an error. */
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7807 if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7809 eval "ac_cv_lib_$ac_lib_var=yes"
7811 echo "configure: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7814 eval "ac_cv_lib_$ac_lib_var=no"
7817 LIBS="$ac_save_LIBS"
7820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7821 echo "$ac_t""yes" 1>&6
7822 cat >> confdefs.h <<\EOF
7823 #define HAVE_STRFTIME 1
7828 echo "$ac_t""no" 1>&6
7833 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7834 echo "configure:7835: checking for vprintf" >&5
7835 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* System header to define __stub macros and hopefully few prototypes,
7842 which can conflict with char vprintf(); below. */
7844 /* Override any gcc2 internal prototype to avoid an error. */
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7851 /* The GNU C library defines this for functions which it implements
7852 to always fail with ENOSYS. Some functions are actually named
7853 something starting with __ and the normal name is an alias. */
7854 #if defined (__stub_vprintf) || defined (__stub___vprintf)
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 eval "ac_cv_func_vprintf=yes"
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 eval "ac_cv_func_vprintf=no"
7874 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7875 echo "$ac_t""yes" 1>&6
7876 cat >> confdefs.h <<\EOF
7877 #define HAVE_VPRINTF 1
7881 echo "$ac_t""no" 1>&6
7884 if test "$ac_cv_func_vprintf" != yes; then
7885 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7886 echo "configure:7887: checking for _doprnt" >&5
7887 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 /* System header to define __stub macros and hopefully few prototypes,
7894 which can conflict with char _doprnt(); below. */
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 /* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7903 /* The GNU C library defines this for functions which it implements
7904 to always fail with ENOSYS. Some functions are actually named
7905 something starting with __ and the normal name is an alias. */
7906 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7914 if { (eval echo configure:7915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7916 eval "ac_cv_func__doprnt=yes"
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7921 eval "ac_cv_func__doprnt=no"
7926 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
7927 echo "$ac_t""yes" 1>&6
7928 cat >> confdefs.h <<\EOF
7929 #define HAVE_DOPRNT 1
7933 echo "$ac_t""no" 1>&6
7938 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7939 # for constant arguments. Useless!
7940 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7941 echo "configure:7942: checking for working alloca.h" >&5
7942 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7943 echo $ac_n "(cached) $ac_c" 1>&6
7945 cat > conftest.$ac_ext <<EOF
7946 #line 7947 "configure"
7947 #include "confdefs.h"
7950 char *p = alloca(2 * sizeof(int));
7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7955 ac_cv_header_alloca_h=yes
7957 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7960 ac_cv_header_alloca_h=no
7965 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7966 if test $ac_cv_header_alloca_h = yes; then
7967 cat >> confdefs.h <<\EOF
7968 #define HAVE_ALLOCA_H 1
7973 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7974 echo "configure:7975: checking for alloca" >&5
7975 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7976 echo $ac_n "(cached) $ac_c" 1>&6
7978 cat > conftest.$ac_ext <<EOF
7979 #line 7980 "configure"
7980 #include "confdefs.h"
7983 # define alloca __builtin_alloca
7986 # include <malloc.h>
7987 # define alloca _alloca
7990 # include <alloca.h>
7995 # ifndef alloca /* predefined by HP cc +Olibcalls */
8004 char *p = (char *) alloca(1);
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8009 ac_cv_func_alloca_works=yes
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8014 ac_cv_func_alloca_works=no
8019 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8020 if test $ac_cv_func_alloca_works = yes; then
8021 cat >> confdefs.h <<\EOF
8022 #define HAVE_ALLOCA 1
8027 if test $ac_cv_func_alloca_works = no; then
8028 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8029 # that cause trouble. Some versions do not even contain alloca or
8030 # contain a buggy version. If you still want to use their alloca,
8031 # use ar to extract alloca.o from them instead of compiling alloca.c.
8032 ALLOCA=alloca.${ac_objext}
8033 cat >> confdefs.h <<\EOF
8038 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8039 echo "configure:8040: checking whether alloca needs Cray hooks" >&5
8040 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 #if defined(CRAY) && ! defined(CRAY2)
8053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8054 egrep "webecray" >/dev/null 2>&1; then
8065 echo "$ac_t""$ac_cv_os_cray" 1>&6
8066 if test $ac_cv_os_cray = yes; then
8067 for ac_func in _getb67 GETB67 getb67; do
8068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8069 echo "configure:8070: checking for $ac_func" >&5
8070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8073 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8076 /* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char $ac_func(); below. */
8079 /* Override any gcc2 internal prototype to avoid an error. */
8080 /* We use char because int might match the return type of a gcc2
8081 builtin and then its argument prototype would still apply. */
8086 /* The GNU C library defines this for functions which it implements
8087 to always fail with ENOSYS. Some functions are actually named
8088 something starting with __ and the normal name is an alias. */
8089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8097 if { (eval echo configure:8098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8099 eval "ac_cv_func_$ac_func=yes"
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8104 eval "ac_cv_func_$ac_func=no"
8109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8110 echo "$ac_t""yes" 1>&6
8111 cat >> confdefs.h <<EOF
8112 #define CRAY_STACKSEG_END $ac_func
8117 echo "$ac_t""no" 1>&6
8123 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8124 echo "configure:8125: checking stack direction for C alloca" >&5
8125 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8126 echo $ac_n "(cached) $ac_c" 1>&6
8128 if test "$cross_compiling" = yes; then
8129 ac_cv_c_stack_direction=0
8131 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8134 find_stack_direction ()
8136 static char *addr = 0;
8141 return find_stack_direction ();
8144 return (&dummy > addr) ? 1 : -1;
8148 exit (find_stack_direction() < 0);
8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8153 ac_cv_c_stack_direction=1
8155 echo "configure: failed program was:" >&5
8156 cat conftest.$ac_ext >&5
8158 ac_cv_c_stack_direction=-1
8165 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8166 cat >> confdefs.h <<EOF
8167 #define STACK_DIRECTION $ac_cv_c_stack_direction
8172 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8173 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8174 echo "configure:8175: checking for getmntent in -lsun" >&5
8175 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8179 ac_save_LIBS="$LIBS"
8181 cat > conftest.$ac_ext <<EOF
8182 #line 8183 "configure"
8183 #include "confdefs.h"
8184 /* Override any gcc2 internal prototype to avoid an error. */
8185 /* We use char because int might match the return type of a gcc2
8186 builtin and then its argument prototype would still apply. */
8193 if { (eval echo configure:8194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8195 eval "ac_cv_lib_$ac_lib_var=yes"
8197 echo "configure: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8200 eval "ac_cv_lib_$ac_lib_var=no"
8203 LIBS="$ac_save_LIBS"
8206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8207 echo "$ac_t""yes" 1>&6
8210 echo "$ac_t""no" 1>&6
8211 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8212 echo "configure:8213: checking for getmntent in -lseq" >&5
8213 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8215 echo $ac_n "(cached) $ac_c" 1>&6
8217 ac_save_LIBS="$LIBS"
8219 cat > conftest.$ac_ext <<EOF
8220 #line 8221 "configure"
8221 #include "confdefs.h"
8222 /* Override any gcc2 internal prototype to avoid an error. */
8223 /* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8231 if { (eval echo configure:8232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8233 eval "ac_cv_lib_$ac_lib_var=yes"
8235 echo "configure: failed program was:" >&5
8236 cat conftest.$ac_ext >&5
8238 eval "ac_cv_lib_$ac_lib_var=no"
8241 LIBS="$ac_save_LIBS"
8244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8245 echo "$ac_t""yes" 1>&6
8248 echo "$ac_t""no" 1>&6
8249 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8250 echo "configure:8251: checking for getmntent in -lgen" >&5
8251 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8255 ac_save_LIBS="$LIBS"
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 /* Override any gcc2 internal prototype to avoid an error. */
8261 /* We use char because int might match the return type of a gcc2
8262 builtin and then its argument prototype would still apply. */
8269 if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271 eval "ac_cv_lib_$ac_lib_var=yes"
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 eval "ac_cv_lib_$ac_lib_var=no"
8279 LIBS="$ac_save_LIBS"
8282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8283 echo "$ac_t""yes" 1>&6
8286 echo "$ac_t""no" 1>&6
8293 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8294 echo "configure:8295: checking for getmntent" >&5
8295 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8298 cat > conftest.$ac_ext <<EOF
8299 #line 8300 "configure"
8300 #include "confdefs.h"
8301 /* System header to define __stub macros and hopefully few prototypes,
8302 which can conflict with char getmntent(); below. */
8304 /* Override any gcc2 internal prototype to avoid an error. */
8305 /* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8311 /* The GNU C library defines this for functions which it implements
8312 to always fail with ENOSYS. Some functions are actually named
8313 something starting with __ and the normal name is an alias. */
8314 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8322 if { (eval echo configure:8323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8324 eval "ac_cv_func_getmntent=yes"
8326 echo "configure: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8329 eval "ac_cv_func_getmntent=no"
8334 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8335 echo "$ac_t""yes" 1>&6
8336 cat >> confdefs.h <<\EOF
8337 #define HAVE_GETMNTENT 1
8341 echo "$ac_t""no" 1>&6
8344 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8345 echo "configure:8346: checking whether closedir returns void" >&5
8346 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8347 echo $ac_n "(cached) $ac_c" 1>&6
8349 if test "$cross_compiling" = yes; then
8350 ac_cv_func_closedir_void=yes
8352 cat > conftest.$ac_ext <<EOF
8353 #line 8354 "configure"
8354 #include "confdefs.h"
8355 #include <sys/types.h>
8356 #include <$ac_header_dirent>
8357 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8359 if { (eval echo configure:8360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8361 ac_cv_func_closedir_void=no
8363 echo "configure: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8366 ac_cv_func_closedir_void=yes
8373 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8374 if test $ac_cv_func_closedir_void = yes; then
8375 cat >> confdefs.h <<\EOF
8376 #define CLOSEDIR_VOID 1
8381 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8382 echo "configure:8383: checking whether setpgrp takes no argument" >&5
8383 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8386 if test "$cross_compiling" = yes; then
8387 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8393 #ifdef HAVE_UNISTD_H
8398 * If this system has a BSD-style setpgrp, which takes arguments, exit
8403 if (setpgrp(1,1) == -1)
8410 if { (eval echo configure:8411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8412 ac_cv_func_setpgrp_void=no
8414 echo "configure: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8417 ac_cv_func_setpgrp_void=yes
8425 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8426 if test $ac_cv_func_setpgrp_void = yes; then
8427 cat >> confdefs.h <<\EOF
8428 #define SETPGRP_VOID 1
8432 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8433 echo "configure:8434: checking for working fnmatch" >&5
8434 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 # Some versions of Solaris or SCO have a broken fnmatch function.
8438 # So we run a test program. If we are cross-compiling, take no chance.
8439 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8440 if test "$cross_compiling" = yes; then
8441 ac_cv_func_fnmatch_works=no
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8450 ac_cv_func_fnmatch_works=yes
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8455 ac_cv_func_fnmatch_works=no
8462 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8463 if test $ac_cv_func_fnmatch_works = yes; then
8464 cat >> confdefs.h <<\EOF
8465 #define HAVE_FNMATCH 1
8472 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8473 echo "configure:8474: checking for setlocale in -lxpg4" >&5
8474 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8476 echo $ac_n "(cached) $ac_c" 1>&6
8478 ac_save_LIBS="$LIBS"
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8483 /* Override any gcc2 internal prototype to avoid an error. */
8484 /* We use char because int might match the return type of a gcc2
8485 builtin and then its argument prototype would still apply. */
8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8494 eval "ac_cv_lib_$ac_lib_var=yes"
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8499 eval "ac_cv_lib_$ac_lib_var=no"
8502 LIBS="$ac_save_LIBS"
8505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8506 echo "$ac_t""yes" 1>&6
8509 echo "$ac_t""no" 1>&6
8514 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8515 echo "configure:8516: checking for getpwnam in -lsun" >&5
8516 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8518 echo $ac_n "(cached) $ac_c" 1>&6
8520 ac_save_LIBS="$LIBS"
8522 cat > conftest.$ac_ext <<EOF
8523 #line 8524 "configure"
8524 #include "confdefs.h"
8525 /* Override any gcc2 internal prototype to avoid an error. */
8526 /* We use char because int might match the return type of a gcc2
8527 builtin and then its argument prototype would still apply. */
8534 if { (eval echo configure:8535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8536 eval "ac_cv_lib_$ac_lib_var=yes"
8538 echo "configure: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8541 eval "ac_cv_lib_$ac_lib_var=no"
8544 LIBS="$ac_save_LIBS"
8547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8548 echo "$ac_t""yes" 1>&6
8549 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8551 cat >> confdefs.h <<EOF
8552 #define $ac_tr_lib 1
8558 echo "$ac_t""no" 1>&6
8561 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8562 echo "configure:8563: checking for deflate in -lz" >&5
8563 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
8564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8565 echo $ac_n "(cached) $ac_c" 1>&6
8567 ac_save_LIBS="$LIBS"
8569 cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8572 /* Override any gcc2 internal prototype to avoid an error. */
8573 /* We use char because int might match the return type of a gcc2
8574 builtin and then its argument prototype would still apply. */
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8583 eval "ac_cv_lib_$ac_lib_var=yes"
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 eval "ac_cv_lib_$ac_lib_var=no"
8591 LIBS="$ac_save_LIBS"
8594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8595 echo "$ac_t""yes" 1>&6
8598 echo "$ac_t""no" 1>&6
8602 if test x$FDLIBS = x-lz; then
8603 cat >> confdefs.h <<\EOF
8611 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
8612 echo "configure:8613: checking for pthread_create in -lpthread" >&5
8613 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8615 echo $ac_n "(cached) $ac_c" 1>&6
8617 ac_save_LIBS="$LIBS"
8618 LIBS="-lpthread $LIBS"
8619 cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8622 /* Override any gcc2 internal prototype to avoid an error. */
8623 /* We use char because int might match the return type of a gcc2
8624 builtin and then its argument prototype would still apply. */
8625 char pthread_create();
8631 if { (eval echo configure:8632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8633 eval "ac_cv_lib_$ac_lib_var=yes"
8635 echo "configure: failed program was:" >&5
8636 cat conftest.$ac_ext >&5
8638 eval "ac_cv_lib_$ac_lib_var=no"
8641 LIBS="$ac_save_LIBS"
8644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8645 echo "$ac_t""yes" 1>&6
8646 PTHREAD_LIB="-lpthread"
8648 echo "$ac_t""no" 1>&6
8649 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
8650 echo "configure:8651: checking for pthread_create in -lpthreads" >&5
8651 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
8652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6
8655 ac_save_LIBS="$LIBS"
8656 LIBS="-lpthreads $LIBS"
8657 cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8660 /* Override any gcc2 internal prototype to avoid an error. */
8661 /* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
8663 char pthread_create();
8669 if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8671 eval "ac_cv_lib_$ac_lib_var=yes"
8673 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8676 eval "ac_cv_lib_$ac_lib_var=no"
8679 LIBS="$ac_save_LIBS"
8682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8683 echo "$ac_t""yes" 1>&6
8684 PTHREAD_LIB="-lpthreads"
8686 echo "$ac_t""no" 1>&6
8687 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
8688 echo "configure:8689: checking for pthread_create in -lc_r" >&5
8689 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
8690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8693 ac_save_LIBS="$LIBS"
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 /* Override any gcc2 internal prototype to avoid an error. */
8699 /* We use char because int might match the return type of a gcc2
8700 builtin and then its argument prototype would still apply. */
8701 char pthread_create();
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8709 eval "ac_cv_lib_$ac_lib_var=yes"
8711 echo "configure: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8714 eval "ac_cv_lib_$ac_lib_var=no"
8717 LIBS="$ac_save_LIBS"
8720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8721 echo "$ac_t""yes" 1>&6
8724 echo "$ac_t""no" 1>&6
8725 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
8726 echo "configure:8727: checking for pthread_create" >&5
8727 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 /* System header to define __stub macros and hopefully few prototypes,
8734 which can conflict with char pthread_create(); below. */
8736 /* Override any gcc2 internal prototype to avoid an error. */
8737 /* We use char because int might match the return type of a gcc2
8738 builtin and then its argument prototype would still apply. */
8739 char pthread_create();
8743 /* The GNU C library defines this for functions which it implements
8744 to always fail with ENOSYS. Some functions are actually named
8745 something starting with __ and the normal name is an alias. */
8746 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
8754 if { (eval echo configure:8755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8756 eval "ac_cv_func_pthread_create=yes"
8758 echo "configure: failed program was:" >&5
8759 cat conftest.$ac_ext >&5
8761 eval "ac_cv_func_pthread_create=no"
8766 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
8767 echo "$ac_t""yes" 1>&6
8770 echo "$ac_t""no" 1>&6
8784 cat >> confdefs.h <<\EOF
8791 LDFLAGS=${LDFLAGS--O}
8792 LIBS="${LIBS} ${SQL_LFLAGS}"
8794 CPPFLAGS="$CPPFLAGS"
8813 # Finally we set appropriate distribution specific
8814 # variables and defaults
8816 # PFILES are platform specific files
8817 PFILES="platforms/Makefile"
8824 PTHREAD_LIB="-lpthread -lexc"
8825 if test "${CC}" = "gcc" ; then
8832 TAPEDRIVE="/dev/nrmt0"
8835 DISTVER=`uname -a |awk '{print $3}'`
8836 TAPEDRIVE="/dev/nrst0"
8839 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
8840 TAPEDRIVE="/dev/nrst0"
8841 PSCMD="ps -e -o pid,command"
8842 hostname=`hostname -s`
8845 DISTVER=`uname -a |awk '{print $3}'`
8846 TAPEDRIVE="/dev/nrst0"
8848 CFLAGS="${CFLAGS} -mwindows"
8849 LDFLAGS="${LDFLAGS} -mwindows"
8852 DISTVER=`cat /etc/debian_version`
8853 TAPEDRIVE="/dev/nrst0"
8854 PSCMD="ps -e -o pid,command"
8855 hostname=`hostname -s`
8858 DISTVER=`uname -a |awk '{print $3}'`
8859 PTHREAD_LIB="-pthread"
8860 CFLAGS="${CFLAGS} -pthread"
8863 TAPEDRIVE="/dev/nrst0"
8864 PSCMD="ps -x -o pid,command"
8866 platforms/freebsd/Makefile \
8867 platforms/freebsd/bacula-fd \
8868 platforms/freebsd/bacula-sd \
8869 platforms/freebsd/bacula-dir"
8870 hostname=`hostname -s`
8874 TAPEDRIVE="/dev/rmt/0hnb"
8877 DISTVER=`uname -a |awk '{print $3}'`
8880 TAPEDRIVE="/dev/nrst0"
8881 PSCMD="ps -a -o pid,command"
8884 DISTVER=`uname -a |awk '{print $3}'`
8887 TAPEDRIVE="/dev/nrst0"
8888 PSCMD="ps -a -o pid,command"
8891 DISTVER=`cat /etc/redhat-release | grep release |\
8893 TAPEDRIVE="/dev/nst0"
8894 PSCMD="ps -e -o pid,command"
8896 platforms/redhat/Makefile \
8897 platforms/redhat/bacula-fd \
8898 platforms/redhat/bacula-sd \
8899 platforms/redhat/bacula-dir"
8900 hostname=`hostname -s`
8903 DISTVER=`cat /etc/slackware-version`
8904 TAPEDRIVE="/dev/nst0"
8905 PSCMD="ps -e -o pid,command"
8906 hostname=`hostname -s`
8910 TAPEDRIVE="/dev/rmt/0cbn"
8911 PSCMD="ps -e -o pid,comm"
8913 platforms/solaris/Makefile \
8914 platforms/solaris/bacula-fd \
8915 platforms/solaris/bacula-sd \
8916 platforms/solaris/bacula-dir"
8919 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
8921 TAPEDRIVE="/dev/nst0"
8922 PSCMD="ps -e -o pid,command"
8923 hostname=`hostname -s`
8928 TAPEDRIVE="/dev/nst0"
8929 PSCMD="ps -e -o pid,command"
8930 hostname=`hostname -s`
8934 TAPEDRIVE="/dev/nst0"
8937 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
8944 LIBS="$PTHREAD_LIB $LIBS"
8946 cat >> confdefs.h <<EOF
8950 cat >> confdefs.h <<EOF
8961 MCOMMON=./autoconf/Make.common
8965 cat > confcache <<\EOF
8966 # This file is a shell script that caches the results of configure
8967 # tests run on this system so they can be shared between configure
8968 # scripts and configure runs. It is not useful on other systems.
8969 # If it contains results you don't want to keep, you may remove or edit it.
8971 # By default, configure uses ./config.cache as the cache file,
8972 # creating it if it does not exist already. You can give configure
8973 # the --cache-file=FILE option to use a different cache file; that is
8974 # what configure does when it calls configure scripts in
8975 # subdirectories, so they share the cache.
8976 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8977 # config.status only pays attention to the cache file if you give it the
8978 # --recheck option to rerun configure.
8981 # The following way of writing the cache mishandles newlines in values,
8982 # but we know of no workaround that is simple, portable, and efficient.
8983 # So, don't put newlines in cache variables' values.
8984 # Ultrix sh set writes to stderr and can't be redirected directly,
8985 # and sets the high bit in the cache file unless we assign to the vars.
8987 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8989 # `set' does not quote correctly, so add quotes (double-quote substitution
8990 # turns \\\\ into \\, and sed turns \\ into \).
8992 -e "s/'/'\\\\''/g" \
8993 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8996 # `set' quotes correctly as required by POSIX, so do not add quotes.
8997 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9000 if cmp -s $cache_file confcache; then
9003 if test -w $cache_file; then
9004 echo "updating cache $cache_file"
9005 cat confcache > $cache_file
9007 echo "not updating unwritable cache $cache_file"
9012 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9014 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9015 # Let make expand exec_prefix.
9016 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9018 # Any assignment to VPATH causes Sun make to only execute
9019 # the first set of double-colon rules, so remove it if not needed.
9020 # If there is a colon in the path, we need to keep it.
9021 if test "x$srcdir" = x.; then
9022 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9025 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9027 DEFS=-DHAVE_CONFIG_H
9029 # Without the "./", some shells look in PATH for config.status.
9030 : ${CONFIG_STATUS=./config.status}
9032 echo creating $CONFIG_STATUS
9033 rm -f $CONFIG_STATUS
9034 cat > $CONFIG_STATUS <<EOF
9036 # Generated automatically by configure.
9037 # Run this file to recreate the current configuration.
9038 # This directory was configured as follows,
9039 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9041 # $0 $ac_configure_args
9043 # Compiler output produced by configure, useful for debugging
9044 # configure, is in ./config.log if it exists.
9046 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9049 case "\$ac_option" in
9050 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9051 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9052 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9053 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9054 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9056 -help | --help | --hel | --he | --h)
9057 echo "\$ac_cs_usage"; exit 0 ;;
9058 *) echo "\$ac_cs_usage"; exit 1 ;;
9062 ac_given_srcdir=$srcdir
9063 ac_given_INSTALL="$INSTALL"
9065 trap 'rm -fr `echo "autoconf/Make.common \
9076 src/console/Makefile \
9077 src/console/console.conf \
9078 src/gnome-console/Makefile \
9079 src/gnome-console/gnome-console.conf \
9081 src/dird/bacula-dir.conf \
9083 src/stored/Makefile \
9084 src/stored/bacula-sd.conf \
9085 src/filed/Makefile \
9086 src/filed/bacula-fd.conf \
9087 src/filed/win32/Makefile \
9089 src/cats/alter_mysql_tables \
9090 src/cats/make_mysql_tables \
9091 src/cats/drop_mysql_tables \
9092 src/cats/create_mysql_database \
9093 src/cats/grant_mysql_privileges \
9094 src/cats/alter_sqlite_tables \
9095 src/cats/make_sqlite_tables \
9096 src/cats/drop_sqlite_tables \
9097 src/cats/create_sqlite_database \
9100 src/cats/create_bdb_database \
9101 src/cats/make_bdb_tables \
9102 src/cats/drop_bdb_tables \
9103 src/findlib/Makefile \
9104 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9106 cat >> $CONFIG_STATUS <<EOF
9108 # Protect against being on the right side of a sed subst in config.status.
9109 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9110 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9114 s%@CFLAGS@%$CFLAGS%g
9115 s%@CPPFLAGS@%$CPPFLAGS%g
9116 s%@CXXFLAGS@%$CXXFLAGS%g
9117 s%@FFLAGS@%$FFLAGS%g
9119 s%@LDFLAGS@%$LDFLAGS%g
9121 s%@exec_prefix@%$exec_prefix%g
9122 s%@prefix@%$prefix%g
9123 s%@program_transform_name@%$program_transform_name%g
9124 s%@bindir@%$bindir%g
9125 s%@sbindir@%$sbindir%g
9126 s%@libexecdir@%$libexecdir%g
9127 s%@datadir@%$datadir%g
9128 s%@sysconfdir@%$sysconfdir%g
9129 s%@sharedstatedir@%$sharedstatedir%g
9130 s%@localstatedir@%$localstatedir%g
9131 s%@libdir@%$libdir%g
9132 s%@includedir@%$includedir%g
9133 s%@oldincludedir@%$oldincludedir%g
9134 s%@infodir@%$infodir%g
9135 s%@mandir@%$mandir%g
9136 s%@BUILD_DIR@%$BUILD_DIR%g
9137 s%@TRUEPRG@%$TRUEPRG%g
9138 s%@FALSEPRG@%$FALSEPRG%g
9140 s%@host_alias@%$host_alias%g
9141 s%@host_cpu@%$host_cpu%g
9142 s%@host_vendor@%$host_vendor%g
9143 s%@host_os@%$host_os%g
9144 s%@VERSION@%$VERSION%g
9146 s%@LSMDATE@%$LSMDATE%g
9150 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9151 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9152 s%@INSTALL_DATA@%$INSTALL_DATA%g
9153 s%@RANLIB@%$RANLIB%g
9163 s%@OPENSSL@%$OPENSSL%g
9164 s%@ARFLAGS@%$ARFLAGS%g
9165 s%@MAKE_SHELL@%$MAKE_SHELL%g
9166 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9167 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9168 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9169 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9170 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9171 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9172 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9173 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9174 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9175 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9176 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9177 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9178 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9179 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9180 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9181 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9182 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9183 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9184 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9185 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9186 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9187 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9188 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9189 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9190 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9191 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9192 s%@MSGFMT@%$MSGFMT%g
9193 s%@GNOME_LIBS@%$GNOME_LIBS%g
9194 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9195 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9196 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9197 s%@ZVT_LIBS@%$ZVT_LIBS%g
9198 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9199 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9200 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9201 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9202 s%@ORBIT_IDL@%$ORBIT_IDL%g
9203 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9204 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9205 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9206 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9207 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9208 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9209 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9210 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9211 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9212 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9213 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9214 s%@GNOME_DIR@%$GNOME_DIR%g
9215 s%@CONS_INC@%$CONS_INC%g
9216 s%@CONS_LIBS@%$CONS_LIBS%g
9217 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9218 s%@READLINE_SRC@%$READLINE_SRC%g
9219 s%@GMP_INC@%$GMP_INC%g
9220 s%@GMP_LIBS@%$GMP_LIBS%g
9221 s%@GMP_LDFLAGS@%$GMP_LDFLAGS%g
9222 s%@GMP_SRC@%$GMP_SRC%g
9224 s%@CWEB_INC@%$CWEB_INC%g
9225 s%@CWEB_LIBS@%$CWEB_LIBS%g
9226 s%@CWEB_LDFLAGS@%$CWEB_LDFLAGS%g
9227 s%@CWEB_SRC@%$CWEB_SRC%g
9228 s%@working_dir@%$working_dir%g
9229 s%@dump_email@%$dump_email%g
9230 s%@job_email@%$job_email%g
9231 s%@smtp_host@%$smtp_host%g
9232 s%@piddir@%$piddir%g
9233 s%@subsysdir@%$subsysdir%g
9234 s%@baseport@%$baseport%g
9235 s%@dir_port@%$dir_port%g
9236 s%@fd_port@%$fd_port%g
9237 s%@sd_port@%$sd_port%g
9238 s%@dir_password@%$dir_password%g
9239 s%@fd_password@%$fd_password%g
9240 s%@sd_password@%$sd_password%g
9241 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9242 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9243 s%@SQL_BINDIR@%$SQL_BINDIR%g
9245 s%@DB_NAME@%$DB_NAME%g
9246 s%@EXEEXT@%$EXEEXT%g
9247 s%@X_CFLAGS@%$X_CFLAGS%g
9248 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9249 s%@X_LIBS@%$X_LIBS%g
9250 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9251 s%@LIBOBJS@%$LIBOBJS%g
9252 s%@ALLOCA@%$ALLOCA%g
9253 s%@FDLIBS@%$FDLIBS%g
9255 s%@DINCLUDE@%$DINCLUDE%g
9257 s%@OBJLIST@%$OBJLIST%g
9258 s%@hostname@%$hostname%g
9259 s%@TAPEDRIVE@%$TAPEDRIVE%g
9262 s%@DISTNAME@%$DISTNAME%g
9263 s%@DISTVER@%$DISTVER%g
9264 /@MCOMMON@/r $MCOMMON
9270 cat >> $CONFIG_STATUS <<\EOF
9272 # Split the substitutions into bite-sized pieces for seds with
9273 # small command number limits, like on Digital OSF/1 and HP-UX.
9274 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9275 ac_file=1 # Number of current file.
9276 ac_beg=1 # First line for current file.
9277 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9280 while $ac_more_lines; do
9281 if test $ac_beg -gt 1; then
9282 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9284 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9286 if test ! -s conftest.s$ac_file; then
9288 rm -f conftest.s$ac_file
9290 if test -z "$ac_sed_cmds"; then
9291 ac_sed_cmds="sed -f conftest.s$ac_file"
9293 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9295 ac_file=`expr $ac_file + 1`
9297 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9300 if test -z "$ac_sed_cmds"; then
9305 cat >> $CONFIG_STATUS <<EOF
9307 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9318 src/console/Makefile \
9319 src/console/console.conf \
9320 src/gnome-console/Makefile \
9321 src/gnome-console/gnome-console.conf \
9323 src/dird/bacula-dir.conf \
9325 src/stored/Makefile \
9326 src/stored/bacula-sd.conf \
9327 src/filed/Makefile \
9328 src/filed/bacula-fd.conf \
9329 src/filed/win32/Makefile \
9331 src/cats/alter_mysql_tables \
9332 src/cats/make_mysql_tables \
9333 src/cats/drop_mysql_tables \
9334 src/cats/create_mysql_database \
9335 src/cats/grant_mysql_privileges \
9336 src/cats/alter_sqlite_tables \
9337 src/cats/make_sqlite_tables \
9338 src/cats/drop_sqlite_tables \
9339 src/cats/create_sqlite_database \
9342 src/cats/create_bdb_database \
9343 src/cats/make_bdb_tables \
9344 src/cats/drop_bdb_tables \
9345 src/findlib/Makefile \
9348 cat >> $CONFIG_STATUS <<\EOF
9349 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9352 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9353 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9354 *) ac_file_in="${ac_file}.in" ;;
9357 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9359 # Remove last slash and all that follows it. Not all systems have dirname.
9360 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9361 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9362 # The file is in a subdirectory.
9363 test ! -d "$ac_dir" && mkdir "$ac_dir"
9364 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9365 # A "../" for each directory in $ac_dir_suffix.
9366 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9368 ac_dir_suffix= ac_dots=
9371 case "$ac_given_srcdir" in
9373 if test -z "$ac_dots"; then top_srcdir=.
9374 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9375 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9377 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9378 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9381 case "$ac_given_INSTALL" in
9382 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9383 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9386 echo creating "$ac_file"
9388 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9390 *Makefile*) ac_comsub="1i\\
9391 # $configure_input" ;;
9395 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9397 s%@configure_input@%$configure_input%g
9398 s%@srcdir@%$srcdir%g
9399 s%@top_srcdir@%$top_srcdir%g
9400 s%@INSTALL@%$INSTALL%g
9401 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9405 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9406 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9408 # ac_d sets the value in "#define NAME VALUE" lines.
9409 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9410 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9413 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9414 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9415 ac_uB='\([ ]\)%\1#\2define\3'
9418 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9419 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9420 ac_eB='$%\1#\2define\3'
9424 if test "${CONFIG_HEADERS+set}" != set; then
9426 cat >> $CONFIG_STATUS <<EOF
9427 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9429 cat >> $CONFIG_STATUS <<\EOF
9431 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9434 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9435 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9436 *) ac_file_in="${ac_file}.in" ;;
9439 echo creating $ac_file
9441 rm -f conftest.frag conftest.in conftest.out
9442 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9443 cat $ac_file_inputs > conftest.in
9447 # Transform confdefs.h into a sed script conftest.vals that substitutes
9448 # the proper values into config.h.in to produce config.h. And first:
9449 # Protect against being on the right side of a sed subst in config.status.
9450 # Protect against being in an unquoted here document in config.status.
9452 cat > conftest.hdr <<\EOF
9455 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9459 sed -n -f conftest.hdr confdefs.h > conftest.vals
9462 # This sed command replaces #undef with comments. This is necessary, for
9463 # example, in the case of _POSIX_SOURCE, which is predefined and required
9464 # on some systems where configure will not decide to define it.
9465 cat >> conftest.vals <<\EOF
9466 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9469 # Break up conftest.vals because some shells have a limit on
9470 # the size of here documents, and old seds have small limits too.
9475 ac_lines=`grep -c . conftest.vals`
9476 # grep -c gives empty output for an empty file on some AIX systems.
9477 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9478 # Write a limited-size here document to conftest.frag.
9479 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9480 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9482 sed -f conftest.frag conftest.in > conftest.out
9484 mv conftest.out conftest.in
9486 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9488 mv conftest.tail conftest.vals
9492 cat >> $CONFIG_STATUS <<\EOF
9493 rm -f conftest.frag conftest.h
9494 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9495 cat conftest.in >> conftest.h
9497 if cmp -s $ac_file conftest.h 2>/dev/null; then
9498 echo "$ac_file is unchanged"
9501 # Remove last slash and all that follows it. Not all systems have dirname.
9502 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9503 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9504 # The file is in a subdirectory.
9505 test ! -d "$ac_dir" && mkdir "$ac_dir"
9508 mv conftest.h $ac_file
9513 cat >> $CONFIG_STATUS <<EOF
9516 cat >> $CONFIG_STATUS <<\EOF
9517 (echo "Doing make of dependencies"; make depend;)
9521 chmod +x $CONFIG_STATUS
9522 rm -fr confdefs* $ac_clean_files
9523 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9526 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
9527 cp -f startit stopit btraceback btraceback.gdb src/console
9528 cp -f startit stopit btraceback btraceback.gdb src/dird
9529 cp -f startit stopit btraceback btraceback.gdb src/filed
9530 cp -f startit stopit btraceback btraceback.gdb src/lib
9531 cp -f startit stopit btraceback btraceback.gdb src/stored
9532 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
9533 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
9534 chmod 755 src/cats/create_mysql_database
9535 chmod 755 src/cats/alter_mysql_tables
9536 chmod 755 src/cats/grant_mysql_privileges
9537 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
9538 chmod 755 src/cats/create_sqlite_database
9539 chmod 755 src/cats/alter_sqlite_tables
9540 chmod 755 src/cats/sqlite
9541 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
9542 chmod 755 src/cats/create_bdb_database
9545 Configuration on `date`:
9547 Host: ${DISTNAME} ${DISTVER}
9548 Bacula version: ${VERSION} (${DATE})
9549 Source code location: ${srcdir}
9550 Install binaries: ${sbindir}
9551 Install config files: ${sysconfdir}
9553 C++ Compiler: ${CXX}
9554 Compiler flags: ${CFLAGS}
9555 Linker flags: ${LDFLAGS}
9557 Database found: ${have_db}
9558 Database type: ${db_name}
9560 Job Output Email: ${job_email}
9561 Traceback Email: ${dump_email}
9562 SMTP Host Address: ${smtp_host}
9563 Director Port ${dir_port}
9564 File daemon Port ${fd_port}
9565 Storage daemon Port ${sd_port}
9566 Working directory ${working_dir}
9567 SQL binaries Directory ${SQL_BINDIR}
9569 readline support: ${got_readline} ${PRTREADLINE_SRC}
9570 cweb support: ${got_cweb} ${CWEB_SRC}
9571 TCP Wrappers support: ${TCPW_MSG}
9572 ZLIB support: ${have_zlib}
9573 enable-smartalloc: ${support_smartalloc}
9574 enable-gnome: ${support_gnome}
9575 gmp support: ${got_gmp} ${GMP_SRC}