3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-everything enable standard non-multichoice features: marked *"
17 --enable-gnome enable build of gnome-console GUI *"
19 --with-gnome-includes Specify location of GNOME headers"
21 --with-gnome-libs Specify location of GNOME libs"
23 --with-gnome Specify prefix for GNOME files"
25 --enable-smartalloc enable smartalloc debugging support *"
27 --enable-static-tools enable static tape tools *"
29 --enable-static-fd enable static File daemon *"
31 --enable-static-sd enable static Storage daemon *"
33 --enable-static-dir enable static Director *"
35 --disable-readline disable readline support "
37 --with-readline[=DIR] Specify readline library directory"
39 --with-tcp-wrappers=DIR Enable tcpwrappers support"
41 --with-working-dir=PATH Specify location of Bacula working files"
43 --with-dump-email=Dump email address"
45 --with-job-email=Job output email address"
47 --with-smtp-host=SMTP mail host address"
49 --with-pid-dir=PATH Specify location of Bacula pid files"
51 --with-subsys-dir=PATH Specify location of Bacula subsys file"
53 --with-baseport=PORT Specify base port address for daemons"
55 --with-dir-password=PASSWORD Specify Director's password"
57 --with-fd-password=PASSWORD Specify Client's password"
59 --with-sd-password=PASSWORD Specify Storage daemon's password"
62 Which one DBMS do you want to use (please select only one):
63 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
64 install directory, default is to search through
65 a number of common places for the MySQL files."
68 Which one DBMS do you want to use (please select only one):
69 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
70 install directory, default is to search through
71 a number of common places for the MySQL files."
74 Which one DBMS do you want to use (please select only one):
75 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
76 install directory, default is to search through
77 a number of common places for the SQLite files."
79 --disable-largefile omit support for large files"
81 --with-x use the X Window System"
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file=./config.cache
96 program_transform_name=s,x,x,
104 bindir='${exec_prefix}/bin'
105 sbindir='${exec_prefix}/sbin'
106 libexecdir='${exec_prefix}/libexec'
107 datadir='${prefix}/share'
108 sysconfdir='${prefix}/etc'
109 sharedstatedir='${prefix}/com'
110 localstatedir='${prefix}/var'
111 libdir='${exec_prefix}/lib'
112 includedir='${prefix}/include'
113 oldincludedir='/usr/include'
114 infodir='${prefix}/info'
115 mandir='${prefix}/man'
117 # Initialize some other variables.
120 SHELL=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147 bindir="$ac_optarg" ;;
149 -build | --build | --buil | --bui | --bu)
151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
152 build="$ac_optarg" ;;
154 -cache-file | --cache-file | --cache-fil | --cache-fi \
155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156 ac_prev=cache_file ;;
157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159 cache_file="$ac_optarg" ;;
161 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
163 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
165 datadir="$ac_optarg" ;;
167 -disable-* | --disable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* | --enable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191 | --exec | --exe | --ex)
192 ac_prev=exec_prefix ;;
193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195 | --exec=* | --exe=* | --ex=*)
196 exec_prefix="$ac_optarg" ;;
198 -gas | --gas | --ga | --g)
199 # Obsolete; use --with-gas.
202 -help | --help | --hel | --he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
257 -host | --host | --hos | --ho)
259 -host=* | --host=* | --hos=* | --ho=*)
262 -includedir | --includedir | --includedi | --included | --include \
263 | --includ | --inclu | --incl | --inc)
264 ac_prev=includedir ;;
265 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
266 | --includ=* | --inclu=* | --incl=* | --inc=*)
267 includedir="$ac_optarg" ;;
269 -infodir | --infodir | --infodi | --infod | --info | --inf)
271 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
272 infodir="$ac_optarg" ;;
274 -libdir | --libdir | --libdi | --libd)
276 -libdir=* | --libdir=* | --libdi=* | --libd=*)
277 libdir="$ac_optarg" ;;
279 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
280 | --libexe | --libex | --libe)
281 ac_prev=libexecdir ;;
282 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
283 | --libexe=* | --libex=* | --libe=*)
284 libexecdir="$ac_optarg" ;;
286 -localstatedir | --localstatedir | --localstatedi | --localstated \
287 | --localstate | --localstat | --localsta | --localst \
288 | --locals | --local | --loca | --loc | --lo)
289 ac_prev=localstatedir ;;
290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
291 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
292 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
293 localstatedir="$ac_optarg" ;;
295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
298 mandir="$ac_optarg" ;;
301 # Obsolete; use --without-fp.
304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
314 | --oldin | --oldi | --old | --ol | --o)
315 ac_prev=oldincludedir ;;
316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
319 oldincludedir="$ac_optarg" ;;
321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
324 prefix="$ac_optarg" ;;
326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
327 | --program-pre | --program-pr | --program-p)
328 ac_prev=program_prefix ;;
329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
331 program_prefix="$ac_optarg" ;;
333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
334 | --program-suf | --program-su | --program-s)
335 ac_prev=program_suffix ;;
336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
338 program_suffix="$ac_optarg" ;;
340 -program-transform-name | --program-transform-name \
341 | --program-transform-nam | --program-transform-na \
342 | --program-transform-n | --program-transform- \
343 | --program-transform | --program-transfor \
344 | --program-transfo | --program-transf \
345 | --program-trans | --program-tran \
346 | --progr-tra | --program-tr | --program-t)
347 ac_prev=program_transform_name ;;
348 -program-transform-name=* | --program-transform-name=* \
349 | --program-transform-nam=* | --program-transform-na=* \
350 | --program-transform-n=* | --program-transform-=* \
351 | --program-transform=* | --program-transfor=* \
352 | --program-transfo=* | --program-transf=* \
353 | --program-trans=* | --program-tran=* \
354 | --progr-tra=* | --program-tr=* | --program-t=*)
355 program_transform_name="$ac_optarg" ;;
357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
358 | -silent | --silent | --silen | --sile | --sil)
361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
365 sbindir="$ac_optarg" ;;
367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
369 | --sharedst | --shareds | --shared | --share | --shar \
371 ac_prev=sharedstatedir ;;
372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
376 sharedstatedir="$ac_optarg" ;;
378 -site | --site | --sit)
380 -site=* | --site=* | --sit=*)
383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
386 srcdir="$ac_optarg" ;;
388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
389 | --syscon | --sysco | --sysc | --sys | --sy)
390 ac_prev=sysconfdir ;;
391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
393 sysconfdir="$ac_optarg" ;;
395 -target | --target | --targe | --targ | --tar | --ta | --t)
397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
398 target="$ac_optarg" ;;
400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
403 -version | --version | --versio | --versi | --vers)
404 echo "configure generated by autoconf version 2.13"
408 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* | --without-*)
421 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434 | --x-incl | --x-inc | --x-in | --x-i)
435 ac_prev=x_includes ;;
436 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438 x_includes="$ac_optarg" ;;
440 -x-libraries | --x-libraries | --x-librarie | --x-librari \
441 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442 ac_prev=x_libraries ;;
443 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445 x_libraries="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496 | --no-cr | --no-c) ;;
497 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file=src/version.h
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
532 if test ! -r $srcdir/$ac_unique_file; then
536 ac_srcdir_defaulted=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE; then
550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
566 echo "creating cache $cache_file"
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
588 ac_n= ac_c='\c' ac_t=
598 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
599 if test -f $ac_dir/install-sh; then
601 ac_install_sh="$ac_aux_dir/install-sh -c"
603 elif test -f $ac_dir/install.sh; then
605 ac_install_sh="$ac_aux_dir/install.sh -c"
609 if test -z "$ac_aux_dir"; then
610 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
612 ac_config_guess=$ac_aux_dir/config.guess
613 ac_config_sub=$ac_aux_dir/config.sub
614 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
623 # Extract the first word of "$ac_prog", so it can be a program name with args.
624 set dummy $ac_prog; ac_word=$2
625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
626 echo "configure:627: checking for $ac_word" >&5
627 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
628 echo $ac_n "(cached) $ac_c" 1>&6
632 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
635 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
640 for ac_dir in $ac_dummy; do
641 test -z "$ac_dir" && ac_dir=.
642 if test -f $ac_dir/$ac_word; then
643 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
651 TRUEPRG="$ac_cv_path_TRUEPRG"
652 if test -n "$TRUEPRG"; then
653 echo "$ac_t""$TRUEPRG" 1>&6
655 echo "$ac_t""no" 1>&6
658 test -n "$TRUEPRG" && break
660 test -n "$TRUEPRG" || TRUEPRG=":"
664 # Extract the first word of "$ac_prog", so it can be a program name with args.
665 set dummy $ac_prog; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
673 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
676 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 for ac_dir in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir=.
683 if test -f $ac_dir/$ac_word; then
684 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
692 FALSEPRG="$ac_cv_path_FALSEPRG"
693 if test -n "$FALSEPRG"; then
694 echo "$ac_t""$FALSEPRG" 1>&6
696 echo "$ac_t""no" 1>&6
699 test -n "$FALSEPRG" && break
701 test -n "$FALSEPRG" || FALSEPRG=":"
705 # Make sure we can run config.sub.
706 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
707 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
710 echo $ac_n "checking host system type""... $ac_c" 1>&6
711 echo "configure:712: checking host system type" >&5
714 case "$host_alias" in
718 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
719 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
721 *) host_alias=$nonopt ;;
725 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
726 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$host" 1>&6
732 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
733 DATE=`sed -n -e 's/^.* \t*DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
734 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
735 echo "configuring for bacula $VERSION ($DATE)"
739 # Extract the first word of "gcc", so it can be a program name with args.
740 set dummy gcc; ac_word=$2
741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742 echo "configure:743: checking for $ac_word" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 if test -n "$CC"; then
747 ac_cv_prog_CC="$CC" # Let the user override the test.
749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 for ac_dir in $ac_dummy; do
752 test -z "$ac_dir" && ac_dir=.
753 if test -f $ac_dir/$ac_word; then
762 if test -n "$CC"; then
763 echo "$ac_t""$CC" 1>&6
765 echo "$ac_t""no" 1>&6
768 if test -z "$CC"; then
769 # Extract the first word of "cc", so it can be a program name with args.
770 set dummy cc; ac_word=$2
771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
772 echo "configure:773: checking for $ac_word" >&5
773 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
776 if test -n "$CC"; then
777 ac_cv_prog_CC="$CC" # Let the user override the test.
779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
782 for ac_dir in $ac_dummy; do
783 test -z "$ac_dir" && ac_dir=.
784 if test -f $ac_dir/$ac_word; then
785 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
794 if test $ac_prog_rejected = yes; then
795 # We found a bogon in the path, so make sure we never use it.
796 set dummy $ac_cv_prog_CC
798 if test $# -gt 0; then
799 # We chose a different compiler from the bogus one.
800 # However, it has the same basename, so the bogon will be chosen
801 # first if we set CC to just the basename; use the full file name.
803 set dummy "$ac_dir/$ac_word" "$@"
811 if test -n "$CC"; then
812 echo "$ac_t""$CC" 1>&6
814 echo "$ac_t""no" 1>&6
817 if test -z "$CC"; then
820 # Extract the first word of "cl", so it can be a program name with args.
821 set dummy cl; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC="$CC" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 for ac_dir in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir=.
834 if test -f $ac_dir/$ac_word; then
843 if test -n "$CC"; then
844 echo "$ac_t""$CC" 1>&6
846 echo "$ac_t""no" 1>&6
851 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
854 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
855 echo "configure:856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
859 ac_cpp='$CPP $CPPFLAGS'
860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
862 cross_compiling=$ac_cv_prog_cc_cross
864 cat > conftest.$ac_ext << EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 if { (eval echo configure:872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
872 ac_cv_prog_cc_works=yes
873 # If we can't run a trivial program, we are probably using a cross compiler.
874 if (./conftest; exit) 2>/dev/null; then
875 ac_cv_prog_cc_cross=no
877 ac_cv_prog_cc_cross=yes
880 echo "configure: failed program was:" >&5
881 cat conftest.$ac_ext >&5
882 ac_cv_prog_cc_works=no
886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
887 ac_cpp='$CPP $CPPFLAGS'
888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
890 cross_compiling=$ac_cv_prog_cc_cross
892 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
893 if test $ac_cv_prog_cc_works = no; then
894 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
898 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
899 cross_compiling=$ac_cv_prog_cc_cross
901 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
902 echo "configure:903: checking whether we are using GNU C" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 cat > conftest.c <<EOF
911 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
918 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
920 if test $ac_cv_prog_gcc = yes; then
926 ac_test_CFLAGS="${CFLAGS+set}"
927 ac_save_CFLAGS="$CFLAGS"
929 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
930 echo "configure:931: checking whether ${CC-cc} accepts -g" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 echo 'void f(){}' > conftest.c
935 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
944 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
945 if test "$ac_test_CFLAGS" = set; then
946 CFLAGS="$ac_save_CFLAGS"
947 elif test $ac_cv_prog_cc_g = yes; then
948 if test "$GCC" = yes; then
954 if test "$GCC" = yes; then
961 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
963 # Extract the first word of "$ac_prog", so it can be a program name with args.
964 set dummy $ac_prog; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 if test -n "$CXX"; then
971 ac_cv_prog_CXX="$CXX" # Let the user override the test.
973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
975 for ac_dir in $ac_dummy; do
976 test -z "$ac_dir" && ac_dir=.
977 if test -f $ac_dir/$ac_word; then
978 ac_cv_prog_CXX="$ac_prog"
985 CXX="$ac_cv_prog_CXX"
986 if test -n "$CXX"; then
987 echo "$ac_t""$CXX" 1>&6
989 echo "$ac_t""no" 1>&6
992 test -n "$CXX" && break
994 test -n "$CXX" || CXX="gcc"
997 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
998 echo "configure:999: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1002 ac_cpp='$CXXCPP $CPPFLAGS'
1003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1005 cross_compiling=$ac_cv_prog_cxx_cross
1007 cat > conftest.$ac_ext << EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1012 int main(){return(0);}
1014 if { (eval echo configure:1015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1015 ac_cv_prog_cxx_works=yes
1016 # If we can't run a trivial program, we are probably using a cross compiler.
1017 if (./conftest; exit) 2>/dev/null; then
1018 ac_cv_prog_cxx_cross=no
1020 ac_cv_prog_cxx_cross=yes
1023 echo "configure: failed program was:" >&5
1024 cat conftest.$ac_ext >&5
1025 ac_cv_prog_cxx_works=no
1029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1030 ac_cpp='$CPP $CPPFLAGS'
1031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1033 cross_compiling=$ac_cv_prog_cc_cross
1035 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1036 if test $ac_cv_prog_cxx_works = no; then
1037 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1039 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1040 echo "configure:1041: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1041 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1042 cross_compiling=$ac_cv_prog_cxx_cross
1044 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1045 echo "configure:1046: checking whether we are using GNU C++" >&5
1046 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 cat > conftest.C <<EOF
1054 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1061 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1063 if test $ac_cv_prog_gxx = yes; then
1069 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1070 ac_save_CXXFLAGS="$CXXFLAGS"
1072 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1073 echo "configure:1074: checking whether ${CXX-g++} accepts -g" >&5
1074 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 echo 'void f(){}' > conftest.cc
1078 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1079 ac_cv_prog_cxx_g=yes
1087 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1088 if test "$ac_test_CXXFLAGS" = set; then
1089 CXXFLAGS="$ac_save_CXXFLAGS"
1090 elif test $ac_cv_prog_cxx_g = yes; then
1091 if test "$GXX" = yes; then
1097 if test "$GXX" = yes; then
1104 for ac_declaration in \
1106 '#include <stdlib.h>' \
1107 'extern "C" void std::exit (int) throw (); using std::exit;' \
1108 'extern "C" void std::exit (int); using std::exit;' \
1109 'extern "C" void exit (int) throw ();' \
1110 'extern "C" void exit (int);' \
1113 cat > conftest.$ac_ext <<EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1122 if { (eval echo configure:1123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1125 echo "configure: failed program was:" >&5
1126 cat conftest.$ac_ext >&5
1131 cat > conftest.$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1139 if { (eval echo configure:1140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1143 echo "configure: failed program was:" >&5
1144 cat conftest.$ac_ext >&5
1148 if test -n "$ac_declaration"; then
1149 echo '#ifdef __cplusplus' >>confdefs.h
1150 echo $ac_declaration >>confdefs.h
1151 echo '#endif' >>confdefs.h
1155 if test "x$CC" != xcc; then
1156 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1157 echo "configure:1158: checking whether $CC and cc understand -c and -o together" >&5
1159 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1160 echo "configure:1161: checking whether cc understands -c and -o together" >&5
1162 set dummy $CC; ac_cc="`echo $2 |
1163 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1164 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 echo 'foo(){}' > conftest.c
1168 # Make sure it works both with $CC and with simple cc.
1169 # We do the test twice because some compilers refuse to overwrite an
1170 # existing .o file with -o, though they will create one.
1171 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1172 if { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1173 test -f conftest.o && { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1175 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1176 if test "x$CC" != xcc; then
1177 # Test first that cc exists at all.
1178 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1179 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1180 if { (eval echo configure:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1181 test -f conftest.o && { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1186 # cc exists but doesn't like -o.
1187 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1192 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1197 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1198 echo "$ac_t""yes" 1>&6
1200 echo "$ac_t""no" 1>&6
1201 cat >> confdefs.h <<\EOF
1202 #define NO_MINUS_C_MINUS_O 1
1206 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1207 echo "configure:1208: checking how to run the C preprocessor" >&5
1208 # On Suns, sometimes $CPP names a directory.
1209 if test -n "$CPP" && test -d "$CPP"; then
1212 if test -z "$CPP"; then
1213 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 # This must be in double quotes, not single quotes, because CPP may get
1217 # substituted into the Makefile and "${CC-cc}" will confuse make.
1219 # On the NeXT, cc -E runs the code through the compiler's parser,
1220 # not just through cpp.
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1228 { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1230 if test -z "$ac_err"; then
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1237 CPP="${CC-cc} -E -traditional-cpp"
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1245 { (eval echo configure:1246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1247 if test -z "$ac_err"; then
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1254 CPP="${CC-cc} -nologo -E"
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1262 { (eval echo configure:1263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1264 if test -z "$ac_err"; then
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1278 ac_cv_prog_CPP="$CPP"
1280 CPP="$ac_cv_prog_CPP"
1282 ac_cv_prog_CPP="$CPP"
1284 echo "$ac_t""$CPP" 1>&6
1286 if test $ac_cv_prog_gcc = yes; then
1287 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1288 echo "configure:1289: checking whether ${CC-cc} needs -traditional" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 ac_pattern="Autoconf.*'x'"
1293 cat > conftest.$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1300 egrep "$ac_pattern" >/dev/null 2>&1; then
1302 ac_cv_prog_gcc_traditional=yes
1305 ac_cv_prog_gcc_traditional=no
1310 if test $ac_cv_prog_gcc_traditional = no; then
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1318 egrep "$ac_pattern" >/dev/null 2>&1; then
1320 ac_cv_prog_gcc_traditional=yes
1327 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1328 if test $ac_cv_prog_gcc_traditional = yes; then
1329 CC="$CC -traditional"
1335 cat >> confdefs.h <<\EOF
1341 # Find a good install program. We prefer a C program (faster),
1342 # so one script is as good as another. But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1351 # ./install, which can be erroneously created by make from ./install.sh.
1352 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1353 echo "configure:1354: checking for a BSD compatible install" >&5
1354 if test -z "$INSTALL"; then
1355 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1359 for ac_dir in $PATH; do
1360 # Account for people who put trailing slashes in PATH elements.
1362 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1364 # OSF1 and SCO ODT 3.0 have their own names for install.
1365 # Don't use installbsd from OSF since it installs stuff as root
1367 for ac_prog in ginstall scoinst install; do
1368 if test -f $ac_dir/$ac_prog; then
1369 if test $ac_prog = install &&
1370 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1371 # AIX install. It has an incompatible calling convention.
1374 ac_cv_path_install="$ac_dir/$ac_prog -c"
1385 if test "${ac_cv_path_install+set}" = set; then
1386 INSTALL="$ac_cv_path_install"
1388 # As a last resort, use the slow shell script. We don't cache a
1389 # path for INSTALL within a source directory, because that will
1390 # break other packages using the cache if that directory is
1391 # removed, or if the path is relative.
1392 INSTALL="$ac_install_sh"
1395 echo "$ac_t""$INSTALL" 1>&6
1397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1398 # It thinks the first close brace ends the variable substitution.
1399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1405 # Extract the first word of "ranlib", so it can be a program name with args.
1406 set dummy ranlib; ac_word=$2
1407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1408 echo "configure:1409: checking for $ac_word" >&5
1409 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 if test -n "$RANLIB"; then
1413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1417 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 if test -f $ac_dir/$ac_word; then
1420 ac_cv_prog_RANLIB="ranlib"
1425 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1428 RANLIB="$ac_cv_prog_RANLIB"
1429 if test -n "$RANLIB"; then
1430 echo "$ac_t""$RANLIB" 1>&6
1432 echo "$ac_t""no" 1>&6
1435 # Extract the first word of "mv", so it can be a program name with args.
1436 set dummy mv; ac_word=$2
1437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1438 echo "configure:1439: checking for $ac_word" >&5
1439 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1444 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1447 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1452 for ac_dir in $ac_dummy; do
1453 test -z "$ac_dir" && ac_dir=.
1454 if test -f $ac_dir/$ac_word; then
1455 ac_cv_path_MV="$ac_dir/$ac_word"
1460 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1465 if test -n "$MV"; then
1466 echo "$ac_t""$MV" 1>&6
1468 echo "$ac_t""no" 1>&6
1471 # Extract the first word of "rm", so it can be a program name with args.
1472 set dummy rm; ac_word=$2
1473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1474 echo "configure:1475: checking for $ac_word" >&5
1475 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1480 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1483 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1488 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_path_RM="$ac_dir/$ac_word"
1496 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1501 if test -n "$RM"; then
1502 echo "$ac_t""$RM" 1>&6
1504 echo "$ac_t""no" 1>&6
1507 # Extract the first word of "cp", so it can be a program name with args.
1508 set dummy cp; ac_word=$2
1509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1510 echo "configure:1511: checking for $ac_word" >&5
1511 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1516 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1519 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1524 for ac_dir in $ac_dummy; do
1525 test -z "$ac_dir" && ac_dir=.
1526 if test -f $ac_dir/$ac_word; then
1527 ac_cv_path_CP="$ac_dir/$ac_word"
1532 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1537 if test -n "$CP"; then
1538 echo "$ac_t""$CP" 1>&6
1540 echo "$ac_t""no" 1>&6
1543 # Extract the first word of "sed", so it can be a program name with args.
1544 set dummy sed; ac_word=$2
1545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1546 echo "configure:1547: checking for $ac_word" >&5
1547 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1552 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1555 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1560 for ac_dir in $ac_dummy; do
1561 test -z "$ac_dir" && ac_dir=.
1562 if test -f $ac_dir/$ac_word; then
1563 ac_cv_path_SED="$ac_dir/$ac_word"
1568 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1572 SED="$ac_cv_path_SED"
1573 if test -n "$SED"; then
1574 echo "$ac_t""$SED" 1>&6
1576 echo "$ac_t""no" 1>&6
1579 # Extract the first word of "awk", so it can be a program name with args.
1580 set dummy awk; ac_word=$2
1581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1582 echo "configure:1583: checking for $ac_word" >&5
1583 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1588 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1591 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1596 for ac_dir in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1599 ac_cv_path_AWK="$ac_dir/$ac_word"
1604 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1608 AWK="$ac_cv_path_AWK"
1609 if test -n "$AWK"; then
1610 echo "$ac_t""$AWK" 1>&6
1612 echo "$ac_t""no" 1>&6
1615 # Extract the first word of "echo", so it can be a program name with args.
1616 set dummy echo; ac_word=$2
1617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1618 echo "configure:1619: checking for $ac_word" >&5
1619 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1624 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1627 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1632 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 if test -f $ac_dir/$ac_word; then
1635 ac_cv_path_ECHO="$ac_dir/$ac_word"
1640 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1644 ECHO="$ac_cv_path_ECHO"
1645 if test -n "$ECHO"; then
1646 echo "$ac_t""$ECHO" 1>&6
1648 echo "$ac_t""no" 1>&6
1651 # Extract the first word of "cmp", so it can be a program name with args.
1652 set dummy cmp; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1660 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1663 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1668 for ac_dir in $ac_dummy; do
1669 test -z "$ac_dir" && ac_dir=.
1670 if test -f $ac_dir/$ac_word; then
1671 ac_cv_path_CMP="$ac_dir/$ac_word"
1676 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1680 CMP="$ac_cv_path_CMP"
1681 if test -n "$CMP"; then
1682 echo "$ac_t""$CMP" 1>&6
1684 echo "$ac_t""no" 1>&6
1687 # Extract the first word of "tbl", so it can be a program name with args.
1688 set dummy tbl; ac_word=$2
1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1696 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1699 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1704 for ac_dir in $ac_dummy; do
1705 test -z "$ac_dir" && ac_dir=.
1706 if test -f $ac_dir/$ac_word; then
1707 ac_cv_path_TBL="$ac_dir/$ac_word"
1712 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1716 TBL="$ac_cv_path_TBL"
1717 if test -n "$TBL"; then
1718 echo "$ac_t""$TBL" 1>&6
1720 echo "$ac_t""no" 1>&6
1723 # Extract the first word of "ar", so it can be a program name with args.
1724 set dummy ar; ac_word=$2
1725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_word" >&5
1727 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1732 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1735 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1740 for ac_dir in $ac_dummy; do
1741 test -z "$ac_dir" && ac_dir=.
1742 if test -f $ac_dir/$ac_word; then
1743 ac_cv_path_AR="$ac_dir/$ac_word"
1748 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1753 if test -n "$AR"; then
1754 echo "$ac_t""$AR" 1>&6
1756 echo "$ac_t""no" 1>&6
1759 # Extract the first word of "ranlib", so it can be a program name with args.
1760 set dummy ranlib; ac_word=$2
1761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1762 echo "configure:1763: checking for $ac_word" >&5
1763 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1768 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1771 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1776 for ac_dir in $ac_dummy; do
1777 test -z "$ac_dir" && ac_dir=.
1778 if test -f $ac_dir/$ac_word; then
1779 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1784 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1788 RANLIB="$ac_cv_path_RANLIB"
1789 if test -n "$RANLIB"; then
1790 echo "$ac_t""$RANLIB" 1>&6
1792 echo "$ac_t""no" 1>&6
1795 # Extract the first word of "openssl", so it can be a program name with args.
1796 set dummy openssl; ac_word=$2
1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1798 echo "configure:1799: checking for $ac_word" >&5
1799 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1804 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1807 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1812 for ac_dir in $ac_dummy; do
1813 test -z "$ac_dir" && ac_dir=.
1814 if test -f $ac_dir/$ac_word; then
1815 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1820 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1824 OPENSSL="$ac_cv_path_OPENSSL"
1825 if test -n "$OPENSSL"; then
1826 echo "$ac_t""$OPENSSL" 1>&6
1828 echo "$ac_t""no" 1>&6
1832 test -n "$ARFLAG" || ARFLAGS="cr"
1845 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1846 echo "configure:1847: checking for Operating System" >&5
1847 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1848 echo "configure:1849: checking for Cygwin environment" >&5
1849 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1859 #define __CYGWIN__ __CYGWIN32__
1864 if { (eval echo configure:1865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1877 echo "$ac_t""$ac_cv_cygwin" 1>&6
1879 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1880 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1886 HAVE_SUN_OS_FALSE='#'
1888 HAVE_SUN_OS_TRUE='#'
1891 cat >> confdefs.h <<\EOF
1892 #define HAVE_SUN_OS 1
1900 HAVE_SUN_OS_FALSE='#'
1902 HAVE_SUN_OS_TRUE='#'
1907 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1913 HAVE_OSF1_OS_FALSE='#'
1915 HAVE_OSF1_OS_TRUE='#'
1918 cat >> confdefs.h <<\EOF
1919 #define HAVE_OSF1_OS 1
1927 HAVE_OSF1_OS_FALSE='#'
1929 HAVE_OSF1_OS_TRUE='#'
1934 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1940 HAVE_AIX_OS_FALSE='#'
1942 HAVE_AIX_OS_TRUE='#'
1945 cat >> confdefs.h <<\EOF
1946 #define HAVE_AIX_OS 1
1954 HAVE_AIX_OS_FALSE='#'
1956 HAVE_AIX_OS_TRUE='#'
1961 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1967 HAVE_HPUX_OS_FALSE='#'
1969 HAVE_HPUX_OS_TRUE='#'
1972 cat >> confdefs.h <<\EOF
1973 #define HAVE_HPUX_OS 1
1981 HAVE_HPUX_OS_FALSE='#'
1983 HAVE_HPUX_OS_TRUE='#'
1988 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1994 HAVE_LINUX_OS_FALSE='#'
1996 HAVE_LINUX_OS_TRUE='#'
1997 HAVE_LINUX_OS_FALSE=
1999 cat >> confdefs.h <<\EOF
2000 #define HAVE_LINUX_OS 1
2008 HAVE_LINUX_OS_FALSE='#'
2010 HAVE_LINUX_OS_TRUE='#'
2011 HAVE_LINUX_OS_FALSE=
2015 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2020 HAVE_FREEBSD_OS_TRUE=
2021 HAVE_FREEBSD_OS_FALSE='#'
2023 HAVE_FREEBSD_OS_TRUE='#'
2024 HAVE_FREEBSD_OS_FALSE=
2026 cat >> confdefs.h <<\EOF
2027 #define HAVE_FREEBSD_OS 1
2034 HAVE_FREEBSD_OS_TRUE=
2035 HAVE_FREEBSD_OS_FALSE='#'
2037 HAVE_FREEBSD_OS_TRUE='#'
2038 HAVE_FREEBSD_OS_FALSE=
2042 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2047 HAVE_NETBSD_OS_TRUE=
2048 HAVE_NETBSD_OS_FALSE='#'
2050 HAVE_NETBSD_OS_TRUE='#'
2051 HAVE_NETBSD_OS_FALSE=
2053 cat >> confdefs.h <<\EOF
2054 #define HAVE_NETBSD_OS 1
2061 HAVE_NETBSD_OS_TRUE=
2062 HAVE_NETBSD_OS_FALSE='#'
2064 HAVE_NETBSD_OS_TRUE='#'
2065 HAVE_NETBSD_OS_FALSE=
2069 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2074 HAVE_OPENBSD_OS_TRUE=
2075 HAVE_OPENBSD_OS_FALSE='#'
2077 HAVE_OPENBSD_OS_TRUE='#'
2078 HAVE_OPENBSD_OS_FALSE=
2080 cat >> confdefs.h <<\EOF
2081 #define HAVE_OPENBSD_OS 1
2088 HAVE_OPENBSD_OS_TRUE=
2089 HAVE_OPENBSD_OS_FALSE='#'
2091 HAVE_OPENBSD_OS_TRUE='#'
2092 HAVE_OPENBSD_OS_FALSE=
2096 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2102 HAVE_BSDI_OS_FALSE='#'
2104 HAVE_BSDI_OS_TRUE='#'
2107 cat >> confdefs.h <<\EOF
2108 #define HAVE_BSDI_OS 1
2116 HAVE_BSDI_OS_FALSE='#'
2118 HAVE_BSDI_OS_TRUE='#'
2123 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2129 HAVE_SGI_OS_FALSE='#'
2131 HAVE_SGI_OS_TRUE='#'
2134 cat >> confdefs.h <<\EOF
2135 #define HAVE_SGI_OS 1
2143 HAVE_SGI_OS_FALSE='#'
2145 HAVE_SGI_OS_TRUE='#'
2150 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2156 HAVE_IRIX_OS_FALSE='#'
2158 HAVE_IRIX_OS_TRUE='#'
2161 cat >> confdefs.h <<\EOF
2162 #define HAVE_IRIX_OS 1
2170 HAVE_IRIX_OS_FALSE='#'
2172 HAVE_IRIX_OS_TRUE='#'
2177 echo "$ac_t""" "" 1>&6
2180 # -----------------------------------------------------------
2181 # ----------------------------------------------------------
2182 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2183 echo "configure:2184: checking for Operating System Distribution" >&5
2184 if test "x$DISTNAME" != "x"
2186 echo "distname set to $DISTNAME"
2187 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2190 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2193 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2196 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2199 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2202 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2205 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2208 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2211 elif test -f /etc/SuSE-release
2214 elif test -d /etc/SuSEconfig
2217 elif test -d /usr/src/OpenLinux
2220 elif test -f /etc/redhat-release
2223 elif test -f /etc/debian_version
2226 elif test -f /etc/slackware-version
2229 elif test "$ac_cv_cygwin" = yes
2232 cat >> confdefs.h <<\EOF
2233 #define HAVE_CYGWIN 1
2239 echo "$ac_t""" "" 1>&6
2242 # -----------------------------------------------------------
2243 # ----------------------------------------------------------
2248 INSIDE_GNOME_COMMON_TRUE=
2249 INSIDE_GNOME_COMMON_FALSE='#'
2251 INSIDE_GNOME_COMMON_TRUE='#'
2252 INSIDE_GNOME_COMMON_FALSE=
2255 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2257 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2260 # ------------------------------------------------------------------
2261 # If the user has not set --prefix, we set our default to nothing.
2262 # In this case, if the user has not set --sysconfdir, we set it
2263 # to the package default of /etc/bacula. If either --prefix or
2264 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2265 # ------------------------------------------------------------------
2266 if test x${prefix} = xNONE ; then
2267 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2268 sysconfdir=/etc/bacula
2272 sysconfdir=`eval echo ${sysconfdir}`
2274 # -------------------------------------------------------------------------
2275 # If the user has not set --exec-prefix, we default to ${prefix}
2276 # -------------------------------------------------------------------------
2277 if test x${exec_prefix} = xNONE ; then
2278 exec_prefix=${prefix}
2281 # ------------------------------------------------------------------
2282 # If the user has not set --sbindir, we set our default as /sbin
2283 # ------------------------------------------------------------------
2284 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2285 sbindir=${exec_prefix}/sbin
2287 sbindir=`eval echo ${sbindir}`
2289 # ------------------------------------------------------------------
2290 # All list of languages for which a translation exist. Each
2291 # language is separated by a space.
2292 # ------------------------------------------------------------------
2295 for ac_prog in msgfmt
2297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2298 set dummy $ac_prog; ac_word=$2
2299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_word" >&5
2301 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2306 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2309 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2314 for ac_dir in $ac_dummy; do
2315 test -z "$ac_dir" && ac_dir=.
2316 if test -f $ac_dir/$ac_word; then
2317 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2325 MSGFMT="$ac_cv_path_MSGFMT"
2326 if test -n "$MSGFMT"; then
2327 echo "$ac_t""$MSGFMT" 1>&6
2329 echo "$ac_t""no" 1>&6
2332 test -n "$MSGFMT" && break
2334 test -n "$MSGFMT" || MSGFMT="no"
2336 if test "$MSGFMT" = "no"
2338 echo 'msgfmt program not found, disabling NLS !'
2340 USE_INCLUDED_LIBINTL=no
2348 support_smartalloc=yes
2349 support_readline=yes
2351 support_static_tools=no
2352 support_static_fd=no
2353 support_static_sd=no
2354 support_static_dir=no
2359 # Check whether --enable-everything or --disable-everything was given.
2360 if test "${enable_everything+set}" = set; then
2361 enableval="$enable_everything"
2362 if test x$enableval = xyes; then
2363 support_smartalloc=yes
2368 # -------------------------------------------
2369 # gnome (default off)
2370 # -------------------------------------------
2371 # Check whether --enable-gnome or --disable-gnome was given.
2372 if test "${enable_gnome+set}" = set; then
2373 enableval="$enable_gnome"
2374 if test x$enableval = xyes; then
2381 if test x$support_gnome = xyes; then
2392 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2393 if test "${with_gnome_includes+set}" = set; then
2394 withval="$with_gnome_includes"
2396 CFLAGS="$CFLAGS -I$withval"
2401 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2402 if test "${with_gnome_libs+set}" = set; then
2403 withval="$with_gnome_libs"
2405 LDFLAGS="$LDFLAGS -L$withval"
2406 gnome_prefix=$withval
2411 # Check whether --with-gnome or --without-gnome was given.
2412 if test "${with_gnome+set}" = set; then
2413 withval="$with_gnome"
2414 if test x$withval = xyes; then
2418 if test "x$withval" = xno; then
2422 LDFLAGS="$LDFLAGS -L$withval/lib"
2423 CFLAGS="$CFLAGS -I$withval/include"
2424 gnome_prefix=$withval/lib
2432 if test "x$want_gnome" = xyes; then
2434 # Extract the first word of "gnome-config", so it can be a program name with args.
2435 set dummy gnome-config; ac_word=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 case "$GNOME_CONFIG" in
2443 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2446 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2451 for ac_dir in $ac_dummy; do
2452 test -z "$ac_dir" && ac_dir=.
2453 if test -f $ac_dir/$ac_word; then
2454 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2459 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2463 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2464 if test -n "$GNOME_CONFIG"; then
2465 echo "$ac_t""$GNOME_CONFIG" 1>&6
2467 echo "$ac_t""no" 1>&6
2470 if test "$GNOME_CONFIG" = "no"; then
2471 no_gnome_config="yes"
2473 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2474 echo "configure:2475: checking if $GNOME_CONFIG works" >&5
2475 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2476 echo "$ac_t""yes" 1>&6
2479 # Extract the first word of "orbit-config", so it can be a program name with args.
2480 set dummy orbit-config; ac_word=$2
2481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2482 echo "configure:2483: checking for $ac_word" >&5
2483 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 case "$ORBIT_CONFIG" in
2488 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2491 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2496 for ac_dir in $ac_dummy; do
2497 test -z "$ac_dir" && ac_dir=.
2498 if test -f $ac_dir/$ac_word; then
2499 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2504 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2508 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2509 if test -n "$ORBIT_CONFIG"; then
2510 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2512 echo "$ac_t""no" 1>&6
2515 # Extract the first word of "orbit-idl", so it can be a program name with args.
2516 set dummy orbit-idl; ac_word=$2
2517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_word" >&5
2519 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 case "$ORBIT_IDL" in
2524 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2527 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2532 for ac_dir in $ac_dummy; do
2533 test -z "$ac_dir" && ac_dir=.
2534 if test -f $ac_dir/$ac_word; then
2535 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2540 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2544 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2545 if test -n "$ORBIT_IDL"; then
2546 echo "$ac_t""$ORBIT_IDL" 1>&6
2548 echo "$ac_t""no" 1>&6
2551 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2552 echo "configure:2553: checking for working ORBit environment" >&5
2553 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2557 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2558 gnome_cv_orbit_found=no
2560 gnome_cv_orbit_found=yes
2565 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2568 if test x$gnome_cv_orbit_found = xyes; then
2570 HAVE_ORBIT_FALSE='#'
2575 if test x$gnome_cv_orbit_found = xyes; then
2577 ORBIT_CFLAGS=`orbit-config --cflags client server`
2578 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2582 if test xfail = xfailure; then
2583 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2587 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2588 echo "configure:2589: checking for gnorba libraries" >&5
2589 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2593 gnome_cv_gnorba_found=no
2594 if test x$gnome_cv_orbit_found = xyes; then
2595 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2596 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2597 if test -n "$GNORBA_LIBS"; then
2598 gnome_cv_gnorba_found=yes
2604 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2607 if test x$gnome_cv_gnorba_found = xyes; then
2609 HAVE_GNORBA_FALSE='#'
2611 HAVE_GNORBA_TRUE='#'
2614 if test x$gnome_cv_orbit_found = xyes; then
2616 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2617 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2621 if test xfail = xfailure; then
2622 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2626 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2627 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2628 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2629 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2630 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2631 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2632 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2635 echo "$ac_t""no" 1>&6
2636 no_gnome_config="yes"
2640 if test x$exec_prefix = xNONE; then
2641 if test x$prefix = xNONE; then
2642 gnome_prefix=$ac_default_prefix/lib
2644 gnome_prefix=$prefix/lib
2647 gnome_prefix=`eval echo \`echo $libdir\``
2650 if test "$no_gnome_config" = "yes"; then
2651 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2652 echo "configure:2653: checking for gnomeConf.sh file in $gnome_prefix" >&5
2653 if test -f $gnome_prefix/gnomeConf.sh; then
2654 echo "$ac_t""found" 1>&6
2655 echo "loading gnome configuration from" \
2656 "$gnome_prefix/gnomeConf.sh"
2657 . $gnome_prefix/gnomeConf.sh
2660 echo "$ac_t""not found" 1>&6
2661 if test xfail = xfail; then
2662 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2671 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2672 echo "configure:2673: checking extra library \"$i\"" >&5
2676 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2677 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2680 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2681 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2684 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2685 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2687 echo "$ac_t""unknown library" 1>&6
2689 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2690 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2695 GNOME_DIR=src/gnome-console
2700 # -------------------------------------------
2701 # smartalloc (default off)
2702 # -------------------------------------------
2703 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2704 if test "${enable_smartalloc+set}" = set; then
2705 enableval="$enable_smartalloc"
2706 if test x$enableval = xno; then
2707 support_smartalloc=no
2712 if test x$support_smartalloc = xyes; then
2713 cat >> confdefs.h <<\EOF
2714 #define SMARTALLOC 1
2719 # -------------------------------------------
2720 # static-tools (default off)
2721 # -------------------------------------------
2722 # Check whether --enable-static-tools or --disable-static-tools was given.
2723 if test "${enable_static_tools+set}" = set; then
2724 enableval="$enable_static_tools"
2725 if test x$enableval = xyes; then
2726 support_static_tools=yes
2732 if test x$support_static_tools = xyes; then
2733 TTOOL_LDFLAGS="-static"
2737 # -------------------------------------------
2738 # static-fd (default off)
2739 # -------------------------------------------
2740 # Check whether --enable-static-fd or --disable-static-fd was given.
2741 if test "${enable_static_fd+set}" = set; then
2742 enableval="$enable_static_fd"
2743 if test x$enableval = xyes; then
2744 support_static_fd=yes
2750 if test x$support_static_fd = xyes; then
2751 FD_LDFLAGS="-static"
2755 # -------------------------------------------
2756 # static-sd (default off)
2757 # -------------------------------------------
2758 # Check whether --enable-static-sd or --disable-static-sd was given.
2759 if test "${enable_static_sd+set}" = set; then
2760 enableval="$enable_static_sd"
2761 if test x$enableval = xyes; then
2762 support_static_sd=yes
2768 if test x$support_static_sd = xyes; then
2769 SD_LDFLAGS="-static"
2773 # -------------------------------------------
2774 # static-dir (default off)
2775 # -------------------------------------------
2776 # Check whether --enable-static-dir or --disable-static-dir was given.
2777 if test "${enable_static_dir+set}" = set; then
2778 enableval="$enable_static_dir"
2779 if test x$enableval = xyes; then
2780 support_static_dir=yes
2786 if test x$support_static_dir = xyes; then
2787 DIR_LDFLAGS="-static"
2796 # ---------------------------------------------------
2797 # Check for readline support/directory (default on)
2798 # ---------------------------------------------------
2799 # this allows you to turn it completely off
2800 # Check whether --enable-readline or --disable-readline was given.
2801 if test "${enable_readline+set}" = set; then
2802 enableval="$enable_readline"
2803 if test x$enableval = xno; then
2811 if test x$support_readline = xyes; then
2812 # Check whether --with-readline or --without-readline was given.
2813 if test "${with_readline+set}" = set; then
2814 withval="$with_readline"
2816 case "$with_readline" in
2819 if test "$with_readline" != "yes"; then
2820 CONS_INC="-I$with_readline"
2821 CONS_LDFLAGS="-L$with_readline"
2823 with_readline="/usr/include/readline"
2825 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $with_readline/readline.h" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 <$with_readline/readline.h>
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2841 eval "ac_cv_header_$ac_safe=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_header_$ac_safe=no"
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 echo "$ac_t""yes" 1>&6
2854 cat >> confdefs.h <<\EOF
2855 #define HAVE_READLINE 1
2858 CONS_LIBS="-lreadline -ltermcap"
2862 echo "$ac_t""no" 1>&6
2863 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2873 # check for standard readline library
2874 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2875 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2876 echo "configure:2877: checking for /usr/include/readline/readline.h" >&5
2877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 #include </usr/include/readline/readline.h>
2885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2886 { (eval echo configure:2887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2888 if test -z "$ac_err"; then
2890 eval "ac_cv_header_$ac_safe=yes"
2893 echo "configure: failed program was:" >&5
2894 cat conftest.$ac_ext >&5
2896 eval "ac_cv_header_$ac_safe=no"
2900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2901 echo "$ac_t""yes" 1>&6
2902 echo "$ac_t""yes" 1>&6
2903 cat >> confdefs.h <<\EOF
2904 #define HAVE_READLINE 1
2908 CONS_INC="-I/usr/include/readline"
2909 CONS_LIBS="-lreadline -ltermcap"
2912 echo "$ac_t""no" 1>&6
2914 # Did not find starndard library, so user our own
2915 echo "$ac_t""yes" 1>&6
2916 cat >> confdefs.h <<\EOF
2917 #define HAVE_READLINE 1
2921 CONS_INC="-I${TOP_DIR}/depkgs"
2922 CONS_LIBS="-lreadline -lhistory -ltermcap"
2923 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2924 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
2938 # Minimal stuff for readline Makefile configuration
2942 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2943 echo "configure:2944: checking whether stat file-mode macros are broken" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <sys/types.h>
2951 #include <sys/stat.h>
2953 #if defined(S_ISBLK) && defined(S_IFDIR)
2954 # if S_ISBLK (S_IFDIR)
2959 #if defined(S_ISBLK) && defined(S_IFCHR)
2960 # if S_ISBLK (S_IFCHR)
2965 #if defined(S_ISLNK) && defined(S_IFREG)
2966 # if S_ISLNK (S_IFREG)
2971 #if defined(S_ISSOCK) && defined(S_IFREG)
2972 # if S_ISSOCK (S_IFREG)
2978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2979 egrep "You lose" >/dev/null 2>&1; then
2981 ac_cv_header_stat_broken=yes
2984 ac_cv_header_stat_broken=no
2990 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2991 if test $ac_cv_header_stat_broken = yes; then
2992 cat >> confdefs.h <<\EOF
2993 #define STAT_MACROS_BROKEN 1
2999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3002 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3003 echo "configure:3004: checking for $ac_hdr that defines DIR" >&5
3004 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 #include <sys/types.h>
3016 if { (eval echo configure:3017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3018 eval "ac_cv_header_dirent_$ac_safe=yes"
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3023 eval "ac_cv_header_dirent_$ac_safe=no"
3027 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3028 echo "$ac_t""yes" 1>&6
3029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3030 cat >> confdefs.h <<EOF
3031 #define $ac_tr_hdr 1
3033 ac_header_dirent=$ac_hdr; break
3035 echo "$ac_t""no" 1>&6
3038 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3039 if test $ac_header_dirent = dirent.h; then
3040 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3041 echo "configure:3042: checking for opendir in -ldir" >&5
3042 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 ac_save_LIBS="$LIBS"
3048 cat > conftest.$ac_ext <<EOF
3049 #line 3050 "configure"
3050 #include "confdefs.h"
3051 /* Override any gcc2 internal prototype to avoid an error. */
3052 /* We use char because int might match the return type of a gcc2
3053 builtin and then its argument prototype would still apply. */
3060 if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3062 eval "ac_cv_lib_$ac_lib_var=yes"
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3067 eval "ac_cv_lib_$ac_lib_var=no"
3070 LIBS="$ac_save_LIBS"
3073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3074 echo "$ac_t""yes" 1>&6
3077 echo "$ac_t""no" 1>&6
3081 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3082 echo "configure:3083: checking for opendir in -lx" >&5
3083 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 ac_save_LIBS="$LIBS"
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3103 eval "ac_cv_lib_$ac_lib_var=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3108 eval "ac_cv_lib_$ac_lib_var=no"
3111 LIBS="$ac_save_LIBS"
3114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3118 echo "$ac_t""no" 1>&6
3124 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3127 echo "configure:3128: checking for $ac_func" >&5
3128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* System header to define __stub macros and hopefully few prototypes,
3135 which can conflict with char $ac_func(); below. */
3137 /* Override any gcc2 internal prototype to avoid an error. */
3138 /* We use char because int might match the return type of a gcc2
3139 builtin and then its argument prototype would still apply. */
3144 /* The GNU C library defines this for functions which it implements
3145 to always fail with ENOSYS. Some functions are actually named
3146 something starting with __ and the normal name is an alias. */
3147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3157 eval "ac_cv_func_$ac_func=yes"
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3162 eval "ac_cv_func_$ac_func=no"
3167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3168 echo "$ac_t""yes" 1>&6
3169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3170 cat >> confdefs.h <<EOF
3171 #define $ac_tr_func 1
3175 echo "$ac_t""no" 1>&6
3180 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3181 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3182 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3184 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3185 echo "configure:3186: checking for getopt_long" >&5
3186 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 /* System header to define __stub macros and hopefully few prototypes,
3193 which can conflict with char getopt_long(); below. */
3195 /* Override any gcc2 internal prototype to avoid an error. */
3196 /* We use char because int might match the return type of a gcc2
3197 builtin and then its argument prototype would still apply. */
3202 /* The GNU C library defines this for functions which it implements
3203 to always fail with ENOSYS. Some functions are actually named
3204 something starting with __ and the normal name is an alias. */
3205 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3213 if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3215 eval "ac_cv_func_getopt_long=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 eval "ac_cv_func_getopt_long=no"
3225 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3227 cat >> confdefs.h <<\EOF
3228 #define HAVE_GETOPT_LONG 1
3232 echo "$ac_t""no" 1>&6
3237 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3238 echo "configure:3239: checking for working strcoll" >&5
3239 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 if test "$cross_compiling" = yes; then
3243 ac_cv_func_strcoll_works=no
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3251 exit (strcoll ("abc", "def") >= 0 ||
3252 strcoll ("ABC", "DEF") >= 0 ||
3253 strcoll ("123", "456") >= 0);
3256 if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3258 ac_cv_func_strcoll_works=yes
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3263 ac_cv_func_strcoll_works=no
3270 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3271 if test $ac_cv_func_strcoll_works = yes; then
3272 cat >> confdefs.h <<\EOF
3273 #define HAVE_STRCOLL 1
3279 for ac_hdr in varargs.h \
3280 sys/ptem.h sys/pte.h sys/stream.h
3282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3284 echo "configure:3285: checking for $ac_hdr" >&5
3285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3296 if test -z "$ac_err"; then
3298 eval "ac_cv_header_$ac_safe=yes"
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3304 eval "ac_cv_header_$ac_safe=no"
3308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3311 cat >> confdefs.h <<EOF
3312 #define $ac_tr_hdr 1
3316 echo "$ac_t""no" 1>&6
3321 # End of readline stuff
3322 # -----------------------------------------------------------------------
3325 # ---------------------------------------------------
3326 # Check for GMP support/directory
3327 # ---------------------------------------------------
3331 # [ --with-gmp[=DIR] Specify gmp library directory],
3333 # case "$with_gmp" in
3336 # if test "$with_gmp" != "yes"; then
3337 # GMP_INC="-I$with_gmp"
3339 # GMP_LDFLAGS="-L$with_gmp"
3341 # with_gmp="/usr/include"
3343 # AC_CHECK_HEADER($with_gmp/gmp.h,
3344 # [ AC_MSG_RESULT(yes)
3345 # AC_DEFINE(HAVE_GMP)
3349 # [ AC_MSG_ERROR([*** gmp library missing])
3355 # # check for standard gmp library
3356 # AC_CHECK_HEADER(/usr/include/gmp.h,
3357 # [ AC_MSG_RESULT(yes)
3358 # AC_DEFINE(HAVE_GMP)
3363 # # Did not find standard library, so use our own
3364 # AC_MSG_RESULT(yes)
3365 # AC_DEFINE(HAVE_GMP)
3368 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3370 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3371 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3377 #AC_SUBST(GMP_LDFLAGS)
3381 # -----------------------------------------------------------------------
3384 # ---------------------------------------------------
3385 # Check for CWEB support/directory
3386 # ---------------------------------------------------
3391 # [ --with-cweb[=DIR] Specify cweb library directory],
3393 # case "$with_cweb" in
3396 # if test "$with_cweb" != "yes"; then
3397 # CWEB_INC="-I$with_cweb"
3398 # CWEB_LIBS="-lcweb"
3399 # CWEB_LDFLAGS="-L$with_cweb"
3401 # with_cweb="/usr/include"
3403 # AC_CHECK_HEADER($with_cweb/cweb.h,
3404 # [ AC_MSG_RESULT(yes)
3405 # AC_DEFINE(HAVE_CWEB)
3406 # CWEB_LIBS="-lcweb"
3409 # [ AC_MSG_ERROR([*** cweb library missing])
3415 # # check for standard cweb library
3416 # AC_CHECK_HEADER(/usr/include/cweb.h,
3417 # [ AC_MSG_RESULT(yes)
3418 # AC_DEFINE(HAVE_CWEB)
3421 # CWEB_LIBS="-lcweb"
3423 # # Did not find starndard library, so use our own
3424 # AC_MSG_RESULT(yes)
3425 # AC_DEFINE(HAVE_CWEB)
3428 # CWEB=${TOP_DIR}/depkgs/cweb
3429 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3430 # CWEB_LIBS="-lcweb"
3431 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3432 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3438 #AC_SUBST(CWEB_LIBS)
3439 #AC_SUBST(CWEB_LDFLAGS)
3443 # -----------------------------------------------------------------------
3447 # -----------------------------------------------------------
3448 # Check whether user wants TCP wrappers support (default off)
3449 # -----------------------------------------------------------
3451 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3452 if test "${with_tcp_wrappers+set}" = set; then
3453 withval="$with_tcp_wrappers"
3455 if test "x$withval" != "xno" ; then
3457 LIBS="$LIBS -lwrap -lnsl"
3458 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3459 echo "configure:3460: checking for libwrap" >&5
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3464 int deny_severity = 0;
3465 int allow_severity = 0;
3466 struct request_info *req;
3471 if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3474 echo "$ac_t""yes" 1>&6
3475 cat >> confdefs.h <<\EOF
3476 #define HAVE_LIBWRAP 1
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3485 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3495 # ------------------------------------------
3496 # Where to place working dir
3497 # ------------------------------------------
3498 working_dir=`eval echo ${sysconfdir}/working`
3499 # Check whether --with-working-dir or --without-working-dir was given.
3500 if test "${with_working_dir+set}" = set; then
3501 withval="$with_working_dir"
3503 if test "x$withval" != "xno" ; then
3504 working_dir=$withval
3513 # ------------------------------------------
3514 # Where to send dump email
3515 # ------------------------------------------
3516 dump_email=root@localhost
3517 # Check whether --with-dump-email or --without-dump-email was given.
3518 if test "${with_dump_email+set}" = set; then
3519 withval="$with_dump_email"
3521 if test "x$withval" != "xno" ; then
3531 # ------------------------------------------
3532 # Where to send job email
3533 # ------------------------------------------
3534 job_email=root@localhost
3535 # Check whether --with-job-email or --without-job-email was given.
3536 if test "${with_job_email+set}" = set; then
3537 withval="$with_job_email"
3539 if test "x$withval" != "xno" ; then
3549 # ------------------------------------------
3550 # Where to find smtp host
3551 # ------------------------------------------
3553 # Check whether --with-smtp_host or --without-smtp_host was given.
3554 if test "${with_smtp_host+set}" = set; then
3555 withval="$with_smtp_host"
3557 if test "x$withval" != "xno" ; then
3568 # ------------------------------------
3569 # Where to place pid files
3570 # ------------------------------------
3572 # Check whether --with-pid-dir or --without-pid-dir was given.
3573 if test "${with_pid_dir+set}" = set; then
3574 withval="$with_pid_dir"
3576 if test "x$withval" != "xno" ; then
3584 # make sure the pid directory exists
3585 if test ! -d $piddir ; then
3586 piddir=`eval echo ${sysconfdir}`
3588 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3592 cat >> confdefs.h <<EOF
3593 #define _PATH_BACULA_PIDDIR "$piddir"
3599 # ------------------------------------
3600 # Where to place subsys "lock file"
3601 # ------------------------------------
3602 subsysdir=/var/run/subsys
3603 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3604 if test "${with_subsys_dir+set}" = set; then
3605 withval="$with_subsys_dir"
3607 if test "x$withval" != "xno" ; then
3615 # make sure the pid directory exists
3616 if test ! -d $subsysdir ; then
3617 subsysdir=`eval echo ${sysconfdir}`
3619 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3627 # ------------------------------------
3628 # Where to start assigning ports
3629 # ------------------------------------
3631 # Check whether --with-baseport or --without-baseport was given.
3632 if test "${with_baseport+set}" = set; then
3633 withval="$with_baseport"
3635 if test "x$withval" != "xno" ; then
3644 dir_port=`expr $baseport`
3645 fd_port=`expr $baseport + 1`
3646 sd_port=`expr $fd_port + 1`
3653 # ------------------------------------------
3654 # Generate passwords
3655 # ------------------------------------------
3657 # Check whether --with-dir-password or --without-dir-password was given.
3658 if test "${with_dir_password+set}" = set; then
3659 withval="$with_dir_password"
3661 if test "x$withval" != "xno" ; then
3662 dir_password=$withval
3669 if test "x$dir_password" = "x" ; then
3670 if test "x$OPENSSL" = "xnone" ; then
3671 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3672 key=`autoconf/randpass 33`
3674 key=`openssl rand -base64 33`
3680 # Check whether --with-fd-password or --without-fd-password was given.
3681 if test "${with_fd_password+set}" = set; then
3682 withval="$with_fd_password"
3684 if test "x$withval" != "xno" ; then
3685 fd_password=$withval
3692 if test "x$fd_password" = "x" ; then
3693 if test "x$OPENSSL" = "xnone" ; then
3694 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3695 key=`autoconf/randpass 37`
3697 key=`openssl rand -base64 33`
3703 # Check whether --with-sd-password or --without-sd-password was given.
3704 if test "${with_sd_password+set}" = set; then
3705 withval="$with_sd_password"
3707 if test "x$withval" != "xno" ; then
3708 sd_password=$withval
3715 if test "x$sd_password" = "x" ; then
3716 if test "x$OPENSSL" = "xnone" ; then
3717 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3718 key=`autocnf/randpass 41`
3720 key=`openssl rand -base64 33`
3733 # ------------------------------------------------
3734 # Bacula check for various SQL database engines
3735 # ------------------------------------------------
3738 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3739 echo "configure:3740: checking for MySQL support" >&5
3740 # Check whether --with-mysql or --without-mysql was given.
3741 if test "${with_mysql+set}" = set; then
3742 withval="$with_mysql"
3744 if test "$withval" != "no"; then
3745 if test "$withval" = "yes"; then
3746 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3747 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3748 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3749 MYSQL_BINDIR=/usr/local/mysql/bin
3750 elif test -f /usr/include/mysql/mysql.h; then
3751 MYSQL_INCDIR=/usr/include/mysql
3752 MYSQL_LIBDIR=/usr/lib/mysql
3753 MYSQL_BINDIR=/usr/bin
3754 elif test -f /usr/include/mysql.h; then
3755 MYSQL_INCDIR=/usr/include
3756 MYSQL_LIBDIR=/usr/lib
3757 MYSQL_BINDIR=/usr/bin
3758 elif test -f /usr/local/include/mysql/mysql.h; then
3759 MYSQL_INCDIR=/usr/local/include/mysql
3760 MYSQL_LIBDIR=/usr/local/lib/mysql
3761 MYSQL_BINDIR=/usr/local/bin
3762 elif test -f /usr/local/include/mysql.h; then
3763 MYSQL_INCDIR=/usr/local/include
3764 MYSQL_LIBDIR=/usr/local/lib
3765 MYSQL_BINDIR=/usr/local/bin
3767 echo "$ac_t""no" 1>&6
3768 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3771 if test -f $withval/include/mysql/mysql.h; then
3772 MYSQL_INCDIR=$withval/include/mysql
3773 MYSQL_LIBDIR=$withval/lib/mysql
3774 MYSQL_BINDIR=$withval/bin
3775 elif test -f $withval/include/mysql.h; then
3776 MYSQL_INCDIR=$withval/include
3777 MYSQL_LIBDIR=$withval/lib
3778 MYSQL_BINDIR=$withval/bin
3780 echo "$ac_t""no" 1>&6
3781 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3784 SQL_INCLUDE=-I$MYSQL_INCDIR
3785 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
3786 SQL_BINDIR=$MYSQL_BINDIR
3788 cat >> confdefs.h <<\EOF
3789 #define HAVE_MYSQL 1
3792 echo "$ac_t""yes" 1>&6
3799 echo "$ac_t""no" 1>&6
3804 echo "$ac_t""no" 1>&6
3809 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
3810 if test "${with_embedded_mysql+set}" = set; then
3811 withval="$with_embedded_mysql"
3813 if test "$withval" != "no"; then
3814 if test "$withval" = "yes"; then
3815 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3816 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3817 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3818 MYSQL_BINDIR=/usr/local/mysql/bin
3819 elif test -f /usr/include/mysql/mysql.h; then
3820 MYSQL_INCDIR=/usr/include/mysql
3821 MYSQL_LIBDIR=/usr/lib/mysql
3822 MYSQL_BINDIR=/usr/bin
3823 elif test -f /usr/include/mysql.h; then
3824 MYSQL_INCDIR=/usr/include
3825 MYSQL_LIBDIR=/usr/lib
3826 MYSQL_BINDIR=/usr/bin
3827 elif test -f /usr/local/include/mysql/mysql.h; then
3828 MYSQL_INCDIR=/usr/local/include/mysql
3829 MYSQL_LIBDIR=/usr/local/lib/mysql
3830 MYSQL_BINDIR=/usr/local/bin
3831 elif test -f /usr/local/include/mysql.h; then
3832 MYSQL_INCDIR=/usr/local/include
3833 MYSQL_LIBDIR=/usr/local/lib
3834 MYSQL_BINDIR=/usr/local/bin
3836 echo "$ac_t""no" 1>&6
3837 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3840 if test -f $withval/include/mysql/mysql.h; then
3841 MYSQL_INCDIR=$withval/include/mysql
3842 MYSQL_LIBDIR=$withval/lib/mysql
3843 MYSQL_BINDIR=$withval/bin
3844 elif test -f $withval/include/mysql.h; then
3845 MYSQL_INCDIR=$withval/include
3846 MYSQL_LIBDIR=$withval/lib
3847 MYSQL_BINDIR=$withval/bin
3849 echo "$ac_t""no" 1>&6
3850 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3853 SQL_INCLUDE=-I$MYSQL_INCDIR
3854 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
3855 SQL_BINDIR=$MYSQL_BINDIR
3857 cat >> confdefs.h <<\EOF
3858 #define HAVE_MYSQL 1
3861 cat >> confdefs.h <<\EOF
3862 #define HAVE_EMBEDDED_MYSQL 1
3865 echo "$ac_t""yes" 1>&6
3872 echo "$ac_t""no" 1>&6
3877 echo "$ac_t""no" 1>&6
3890 # ------------------------------------------------
3891 # Bacula check for various SQL database engines
3892 # ------------------------------------------------
3895 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3896 echo "configure:3897: checking for SQLite support" >&5
3897 # Check whether --with-sqlite or --without-sqlite was given.
3898 if test "${with_sqlite+set}" = set; then
3899 withval="$with_sqlite"
3901 if test "$withval" != "no"; then
3902 if test "$withval" = "yes"; then
3903 if test -f /usr/local/include/sqlite.h; then
3904 SQLITE_INCDIR=/usr/local/include
3905 SQLITE_LIBDIR=/usr/local/lib
3906 SQLITE_BINDIR=/usr/local/bin
3907 elif test -f /usr/include/sqlite.h; then
3908 SQLITE_INCDIR=/usr/include
3909 SQLITE_LIBDIR=/usr/lib
3910 SQLITE_BINDIR=/usr/bin
3912 echo "$ac_t""no" 1>&6
3913 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
3916 if test -f $withval/sqlite.h; then
3917 SQLITE_INCDIR=$withval
3918 SQLITE_LIBDIR=$withval
3919 SQLITE_BINDIR=$withval
3921 echo "$ac_t""no" 1>&6
3922 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
3925 SQL_INCLUDE=-I$SQLITE_INCDIR
3926 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
3927 SQL_BINDIR=$SQLITE_BINDIR
3929 cat >> confdefs.h <<\EOF
3930 #define HAVE_SQLITE 1
3933 echo "$ac_t""yes" 1>&6
3940 echo "$ac_t""no" 1>&6
3945 echo "$ac_t""no" 1>&6
3958 cat >> confdefs.h <<\EOF
3959 #define PROTOTYPES 1
3963 if test -z "$CFLAGS"; then
3964 if test -z "$CCOPTS"; then
3971 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3972 echo "configure:3973: checking for mingw32 environment" >&5
3973 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3984 if { (eval echo configure:3985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3997 echo "$ac_t""$ac_cv_mingw32" 1>&6
3999 test "$ac_cv_mingw32" = yes && MINGW32=yes
4002 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4003 echo "configure:4004: checking for executable suffix" >&5
4004 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4011 echo 'int main () { return 0; }' > conftest.$ac_ext
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4014 for file in conftest.*; do
4016 *.c | *.o | *.obj) ;;
4017 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4021 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4024 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4029 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4030 echo "$ac_t""${ac_cv_exeext}" 1>&6
4034 largefile_support="no"
4035 echo $ac_n "checking build system type""... $ac_c" 1>&6
4036 echo "configure:4037: checking build system type" >&5
4039 case "$build_alias" in
4042 NONE) build_alias=$host_alias ;;
4043 *) build_alias=$nonopt ;;
4047 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4048 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4049 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4050 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4051 echo "$ac_t""$build" 1>&6
4053 if test $host != $build; then
4054 ac_tool_prefix=${host_alias}-
4060 # Check whether --enable-largefile or --disable-largefile was given.
4061 if test "${enable_largefile+set}" = set; then
4062 enableval="$enable_largefile"
4066 if test "$enable_largefile" != no; then
4067 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4068 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4070 echo "configure:4071: checking for $ac_word" >&5
4071 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4072 echo $ac_n "(cached) $ac_c" 1>&6
4074 if test -n "$GETCONF"; then
4075 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4079 for ac_dir in $ac_dummy; do
4080 test -z "$ac_dir" && ac_dir=.
4081 if test -f $ac_dir/$ac_word; then
4082 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4087 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4090 GETCONF="$ac_cv_prog_GETCONF"
4091 if test -n "$GETCONF"; then
4092 echo "$ac_t""$GETCONF" 1>&6
4094 echo "$ac_t""no" 1>&6
4099 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4100 echo "configure:4101: checking for CFLAGS value to request large file support" >&5
4101 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4105 ac_cv_sys_largefile_CFLAGS=no
4107 # IRIX 6.2 and later require cc -n32.
4108 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4109 if test "$GCC" != yes; then
4110 ac_cv_sys_largefile_CFLAGS=-n32
4113 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 ac_cv_sys_largefile_CFLAGS=no
4136 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4137 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4138 echo "configure:4139: checking for LDFLAGS value to request large file support" >&5
4139 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4142 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4143 ac_cv_sys_largefile_LDFLAGS=no
4148 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4149 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4150 echo "configure:4151: checking for LIBS value to request large file support" >&5
4151 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4154 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4155 ac_cv_sys_largefile_LIBS=no
4160 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4162 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4165 -D_FILE_OFFSET_BITS=*) ;;
4166 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4167 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4173 '') CPPFLAGS="$ac_flag" ;;
4174 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4182 '') CFLAGS="$ac_flag" ;;
4183 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4188 case "$ac_cv_sys_largefile_LDFLAGS" in
4192 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4193 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4196 case "$ac_cv_sys_largefile_LIBS" in
4200 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4201 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4204 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4205 echo "configure:4206: checking for _FILE_OFFSET_BITS" >&5
4206 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 ac_cv_sys_file_offset_bits=no
4211 # HP-UX 10.20 and later
4212 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4213 ac_cv_sys_file_offset_bits=64 ;;
4215 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4217 -D_FILE_OFFSET_BITS)
4218 ac_cv_sys_file_offset_bits=1 ;;
4219 -D_FILE_OFFSET_BITS=*)
4220 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4226 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4227 if test "$ac_cv_sys_file_offset_bits" != no; then
4228 cat >> confdefs.h <<EOF
4229 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4233 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4234 echo "configure:4235: checking for _LARGEFILE_SOURCE" >&5
4235 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 ac_cv_sys_largefile_source=no
4240 # HP-UX 10.20 and later
4241 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4242 ac_cv_sys_largefile_source=1 ;;
4244 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4246 -D_LARGEFILE_SOURCE)
4247 ac_cv_sys_largefile_source=1 ;;
4248 -D_LARGEFILE_SOURCE=*)
4249 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4255 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4256 if test "$ac_cv_sys_largefile_source" != no; then
4257 cat >> confdefs.h <<EOF
4258 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4262 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4263 echo "configure:4264: checking for _LARGE_FILES" >&5
4264 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4267 ac_cv_sys_large_files=no
4270 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4271 ac_cv_sys_large_files=1 ;;
4273 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4276 ac_cv_sys_large_files=1 ;;
4278 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4284 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4285 if test "$ac_cv_sys_large_files" != no; then
4286 cat >> confdefs.h <<EOF
4287 #define _LARGE_FILES $ac_cv_sys_large_files
4295 # If we find X, set shell vars x_includes and x_libraries to the
4296 # paths, otherwise set no_x=yes.
4297 # Uses ac_ vars as temps to allow command line to override cache and checks.
4298 # --without-x overrides everything else, but does not touch the cache.
4299 echo $ac_n "checking for X""... $ac_c" 1>&6
4300 echo "configure:4301: checking for X" >&5
4302 # Check whether --with-x or --without-x was given.
4303 if test "${with_x+set}" = set; then
4308 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4309 if test "x$with_x" = xno; then
4310 # The user explicitly disabled X.
4313 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4314 # Both variables are already set.
4317 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 # One or both of the vars are not set, and there is no cached value.
4321 ac_x_includes=NO ac_x_libraries=NO
4323 if mkdir conftestdir; then
4325 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4326 cat > Imakefile <<'EOF'
4328 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4330 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4331 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4332 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4333 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4334 for ac_extension in a so sl; do
4335 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4336 test -f $ac_im_libdir/libX11.$ac_extension; then
4337 ac_im_usrlibdir=$ac_im_libdir; break
4340 # Screen out bogus values from the imake configuration. They are
4341 # bogus both because they are the default anyway, and because
4342 # using them would break gcc on systems where it needs fixed includes.
4343 case "$ac_im_incroot" in
4345 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4347 case "$ac_im_usrlibdir" in
4349 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4356 if test "$ac_x_includes" = NO; then
4357 # Guess where to find include files, by looking for this one X11 .h file.
4358 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4360 # First, try using that file with no special directory specified.
4361 cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4364 #include <$x_direct_test_include>
4366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4367 { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4369 if test -z "$ac_err"; then
4371 # We can compile using X headers with no special include directory.
4375 echo "configure: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4378 # Look for the header file in a standard set of common directories.
4379 # Check X11 before X11Rn because it is often a symlink to the current release.
4382 /usr/X11R6/include \
4383 /usr/X11R5/include \
4384 /usr/X11R4/include \
4387 /usr/include/X11R6 \
4388 /usr/include/X11R5 \
4389 /usr/include/X11R4 \
4391 /usr/local/X11/include \
4392 /usr/local/X11R6/include \
4393 /usr/local/X11R5/include \
4394 /usr/local/X11R4/include \
4396 /usr/local/include/X11 \
4397 /usr/local/include/X11R6 \
4398 /usr/local/include/X11R5 \
4399 /usr/local/include/X11R4 \
4403 /usr/XFree86/include/X11 \
4406 /usr/local/include \
4407 /usr/unsupported/include \
4408 /usr/athena/include \
4409 /usr/local/x11r5/include \
4410 /usr/lpp/Xamples/include \
4412 /usr/openwin/include \
4413 /usr/openwin/share/include \
4416 if test -r "$ac_dir/$x_direct_test_include"; then
4417 ac_x_includes=$ac_dir
4423 fi # $ac_x_includes = NO
4425 if test "$ac_x_libraries" = NO; then
4426 # Check for the libraries.
4428 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4429 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4431 # See if we find them without any special options.
4432 # Don't add to $LIBS permanently.
4433 ac_save_LIBS="$LIBS"
4434 LIBS="-l$x_direct_test_library $LIBS"
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4440 ${x_direct_test_function}()
4443 if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4445 LIBS="$ac_save_LIBS"
4446 # We can link X programs with no special library path.
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4452 LIBS="$ac_save_LIBS"
4453 # First see if replacing the include by lib works.
4454 # Check X11 before X11Rn because it is often a symlink to the current release.
4455 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4466 /usr/local/X11/lib \
4467 /usr/local/X11R6/lib \
4468 /usr/local/X11R5/lib \
4469 /usr/local/X11R4/lib \
4471 /usr/local/lib/X11 \
4472 /usr/local/lib/X11R6 \
4473 /usr/local/lib/X11R5 \
4474 /usr/local/lib/X11R4 \
4478 /usr/XFree86/lib/X11 \
4482 /usr/unsupported/lib \
4484 /usr/local/x11r5/lib \
4485 /usr/lpp/Xamples/lib \
4489 /usr/openwin/share/lib \
4492 for ac_extension in a so sl; do
4493 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4494 ac_x_libraries=$ac_dir
4501 fi # $ac_x_libraries = NO
4503 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4504 # Didn't find X anywhere. Cache the known absence of X.
4505 ac_cv_have_x="have_x=no"
4507 # Record where we found X for the cache.
4508 ac_cv_have_x="have_x=yes \
4509 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4513 eval "$ac_cv_have_x"
4516 if test "$have_x" != yes; then
4517 echo "$ac_t""$have_x" 1>&6
4520 # If each of the values was on the command line, it overrides each guess.
4521 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4522 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4523 # Update the cache value to reflect the command line values.
4524 ac_cv_have_x="have_x=yes \
4525 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4526 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4529 if test "$no_x" = yes; then
4530 # Not all programs may use this symbol, but it does not hurt to define it.
4531 cat >> confdefs.h <<\EOF
4532 #define X_DISPLAY_MISSING 1
4535 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4537 if test -n "$x_includes"; then
4538 X_CFLAGS="$X_CFLAGS -I$x_includes"
4541 # It would also be nice to do this for all -L options, not just this one.
4542 if test -n "$x_libraries"; then
4543 X_LIBS="$X_LIBS -L$x_libraries"
4544 # For Solaris; some versions of Sun CC require a space after -R and
4545 # others require no space. Words are not sufficient . . . .
4546 case "`(uname -sr) 2>/dev/null`" in
4548 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4549 echo "configure:4550: checking whether -R must be followed by a space" >&5
4550 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4551 cat > conftest.$ac_ext <<EOF
4552 #line 4553 "configure"
4553 #include "confdefs.h"
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4569 if test $ac_R_nospace = yes; then
4570 echo "$ac_t""no" 1>&6
4571 X_LIBS="$X_LIBS -R$x_libraries"
4573 LIBS="$ac_xsave_LIBS -R $x_libraries"
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4592 if test $ac_R_space = yes; then
4593 echo "$ac_t""yes" 1>&6
4594 X_LIBS="$X_LIBS -R $x_libraries"
4596 echo "$ac_t""neither works" 1>&6
4599 LIBS="$ac_xsave_LIBS"
4603 # Check for system-dependent libraries X programs must link with.
4604 # Do this before checking for the system-independent R6 libraries
4605 # (-lICE), since we may need -lsocket or whatever for X linking.
4607 if test "$ISC" = yes; then
4608 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4610 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4611 # libraries were built with DECnet support. And karl@cs.umb.edu says
4612 # the Alpha needs dnet_stub (dnet does not exist).
4613 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4614 echo "configure:4615: checking for dnet_ntoa in -ldnet" >&5
4615 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 ac_save_LIBS="$LIBS"
4621 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 /* Override any gcc2 internal prototype to avoid an error. */
4625 /* We use char because int might match the return type of a gcc2
4626 builtin and then its argument prototype would still apply. */
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4635 eval "ac_cv_lib_$ac_lib_var=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4640 eval "ac_cv_lib_$ac_lib_var=no"
4643 LIBS="$ac_save_LIBS"
4646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4647 echo "$ac_t""yes" 1>&6
4648 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4650 echo "$ac_t""no" 1>&6
4653 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4654 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4655 echo "configure:4656: checking for dnet_ntoa in -ldnet_stub" >&5
4656 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 ac_save_LIBS="$LIBS"
4661 LIBS="-ldnet_stub $LIBS"
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 /* Override any gcc2 internal prototype to avoid an error. */
4666 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4676 eval "ac_cv_lib_$ac_lib_var=yes"
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4681 eval "ac_cv_lib_$ac_lib_var=no"
4684 LIBS="$ac_save_LIBS"
4687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4688 echo "$ac_t""yes" 1>&6
4689 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4691 echo "$ac_t""no" 1>&6
4696 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4697 # to get the SysV transport functions.
4698 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4700 # The nsl library prevents programs from opening the X display
4701 # on Irix 5.2, according to dickey@clark.net.
4702 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4703 echo "configure:4704: checking for gethostbyname" >&5
4704 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* System header to define __stub macros and hopefully few prototypes,
4711 which can conflict with char gethostbyname(); below. */
4713 /* Override any gcc2 internal prototype to avoid an error. */
4714 /* We use char because int might match the return type of a gcc2
4715 builtin and then its argument prototype would still apply. */
4716 char gethostbyname();
4720 /* The GNU C library defines this for functions which it implements
4721 to always fail with ENOSYS. Some functions are actually named
4722 something starting with __ and the normal name is an alias. */
4723 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 eval "ac_cv_func_gethostbyname=yes"
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4738 eval "ac_cv_func_gethostbyname=no"
4743 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4744 echo "$ac_t""yes" 1>&6
4747 echo "$ac_t""no" 1>&6
4750 if test $ac_cv_func_gethostbyname = no; then
4751 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4752 echo "configure:4753: checking for gethostbyname in -lnsl" >&5
4753 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 ac_save_LIBS="$LIBS"
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 /* Override any gcc2 internal prototype to avoid an error. */
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4765 char gethostbyname();
4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4773 eval "ac_cv_lib_$ac_lib_var=yes"
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4778 eval "ac_cv_lib_$ac_lib_var=no"
4781 LIBS="$ac_save_LIBS"
4784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4785 echo "$ac_t""yes" 1>&6
4786 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4788 echo "$ac_t""no" 1>&6
4793 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4794 # socket/setsockopt and other routines are undefined under SCO ODT
4795 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4796 # on later versions), says simon@lia.di.epfl.ch: it contains
4797 # gethostby* variants that don't use the nameserver (or something).
4798 # -lsocket must be given before -lnsl if both are needed.
4799 # We assume that if connect needs -lnsl, so does gethostbyname.
4800 echo $ac_n "checking for connect""... $ac_c" 1>&6
4801 echo "configure:4802: checking for connect" >&5
4802 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4808 /* System header to define __stub macros and hopefully few prototypes,
4809 which can conflict with char connect(); below. */
4811 /* Override any gcc2 internal prototype to avoid an error. */
4812 /* We use char because int might match the return type of a gcc2
4813 builtin and then its argument prototype would still apply. */
4818 /* The GNU C library defines this for functions which it implements
4819 to always fail with ENOSYS. Some functions are actually named
4820 something starting with __ and the normal name is an alias. */
4821 #if defined (__stub_connect) || defined (__stub___connect)
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_func_connect=yes"
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 eval "ac_cv_func_connect=no"
4841 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4842 echo "$ac_t""yes" 1>&6
4845 echo "$ac_t""no" 1>&6
4848 if test $ac_cv_func_connect = no; then
4849 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4850 echo "configure:4851: checking for connect in -lsocket" >&5
4851 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 ac_save_LIBS="$LIBS"
4856 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 eval "ac_cv_lib_$ac_lib_var=yes"
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 eval "ac_cv_lib_$ac_lib_var=no"
4879 LIBS="$ac_save_LIBS"
4882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4883 echo "$ac_t""yes" 1>&6
4884 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4886 echo "$ac_t""no" 1>&6
4891 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4892 echo $ac_n "checking for remove""... $ac_c" 1>&6
4893 echo "configure:4894: checking for remove" >&5
4894 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4897 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4900 /* System header to define __stub macros and hopefully few prototypes,
4901 which can conflict with char remove(); below. */
4903 /* Override any gcc2 internal prototype to avoid an error. */
4904 /* We use char because int might match the return type of a gcc2
4905 builtin and then its argument prototype would still apply. */
4910 /* The GNU C library defines this for functions which it implements
4911 to always fail with ENOSYS. Some functions are actually named
4912 something starting with __ and the normal name is an alias. */
4913 #if defined (__stub_remove) || defined (__stub___remove)
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4923 eval "ac_cv_func_remove=yes"
4925 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4928 eval "ac_cv_func_remove=no"
4933 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4937 echo "$ac_t""no" 1>&6
4940 if test $ac_cv_func_remove = no; then
4941 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4942 echo "configure:4943: checking for remove in -lposix" >&5
4943 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4947 ac_save_LIBS="$LIBS"
4948 LIBS="-lposix $LIBS"
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 /* Override any gcc2 internal prototype to avoid an error. */
4953 /* We use char because int might match the return type of a gcc2
4954 builtin and then its argument prototype would still apply. */
4961 if { (eval echo configure:4962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4963 eval "ac_cv_lib_$ac_lib_var=yes"
4965 echo "configure: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4968 eval "ac_cv_lib_$ac_lib_var=no"
4971 LIBS="$ac_save_LIBS"
4974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4975 echo "$ac_t""yes" 1>&6
4976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4978 echo "$ac_t""no" 1>&6
4983 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4984 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4985 echo "configure:4986: checking for shmat" >&5
4986 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 /* System header to define __stub macros and hopefully few prototypes,
4993 which can conflict with char shmat(); below. */
4995 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
5002 /* The GNU C library defines this for functions which it implements
5003 to always fail with ENOSYS. Some functions are actually named
5004 something starting with __ and the normal name is an alias. */
5005 #if defined (__stub_shmat) || defined (__stub___shmat)
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5015 eval "ac_cv_func_shmat=yes"
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5020 eval "ac_cv_func_shmat=no"
5025 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5029 echo "$ac_t""no" 1>&6
5032 if test $ac_cv_func_shmat = no; then
5033 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5034 echo "configure:5035: checking for shmat in -lipc" >&5
5035 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 ac_save_LIBS="$LIBS"
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5053 if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5055 eval "ac_cv_lib_$ac_lib_var=yes"
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5060 eval "ac_cv_lib_$ac_lib_var=no"
5063 LIBS="$ac_save_LIBS"
5066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5067 echo "$ac_t""yes" 1>&6
5068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5070 echo "$ac_t""no" 1>&6
5076 # Check for libraries that X11R6 Xt/Xaw programs need.
5077 ac_save_LDFLAGS="$LDFLAGS"
5078 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5079 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5080 # check for ICE first), but we must link in the order -lSM -lICE or
5081 # we get undefined symbols. So assume we have SM if we have ICE.
5082 # These have to be linked with before -lX11, unlike the other
5083 # libraries we check for below, so use a different variable.
5084 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5085 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5086 echo "configure:5087: checking for IceConnectionNumber in -lICE" >&5
5087 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 ac_save_LIBS="$LIBS"
5092 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5096 /* Override any gcc2 internal prototype to avoid an error. */
5097 /* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
5099 char IceConnectionNumber();
5102 IceConnectionNumber()
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5107 eval "ac_cv_lib_$ac_lib_var=yes"
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5112 eval "ac_cv_lib_$ac_lib_var=no"
5115 LIBS="$ac_save_LIBS"
5118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5119 echo "$ac_t""yes" 1>&6
5120 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5122 echo "$ac_t""no" 1>&6
5125 LDFLAGS="$ac_save_LDFLAGS"
5149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5151 echo "configure:5152: checking for $ac_hdr" >&5
5152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5153 echo $ac_n "(cached) $ac_c" 1>&6
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5161 { (eval echo configure:5162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5163 if test -z "$ac_err"; then
5165 eval "ac_cv_header_$ac_safe=yes"
5168 echo "configure: failed program was:" >&5
5169 cat conftest.$ac_ext >&5
5171 eval "ac_cv_header_$ac_safe=no"
5175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5176 echo "$ac_t""yes" 1>&6
5177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5178 cat >> confdefs.h <<EOF
5179 #define $ac_tr_hdr 1
5183 echo "$ac_t""no" 1>&6
5187 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5188 echo "configure:5189: checking for ANSI C header files" >&5
5189 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5201 { (eval echo configure:5202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5203 if test -z "$ac_err"; then
5205 ac_cv_header_stdc=yes
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5211 ac_cv_header_stdc=no
5215 if test $ac_cv_header_stdc = yes; then
5216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5223 egrep "memchr" >/dev/null 2>&1; then
5227 ac_cv_header_stdc=no
5233 if test $ac_cv_header_stdc = yes; then
5234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 egrep "free" >/dev/null 2>&1; then
5245 ac_cv_header_stdc=no
5251 if test $ac_cv_header_stdc = yes; then
5252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5253 if test "$cross_compiling" = yes; then
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5260 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5261 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5263 int main () { int i; for (i = 0; i < 256; i++)
5264 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 ac_cv_header_stdc=no
5283 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5284 if test $ac_cv_header_stdc = yes; then
5285 cat >> confdefs.h <<\EOF
5286 #define STDC_HEADERS 1
5291 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5292 echo "configure:5293: checking whether sys/types.h defines makedev" >&5
5293 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 #include <sys/types.h>
5301 return makedev(0, 0);
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 ac_cv_header_sys_types_h_makedev=yes
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5311 ac_cv_header_sys_types_h_makedev=no
5317 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5319 if test $ac_cv_header_sys_types_h_makedev = no; then
5320 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5321 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5322 echo "configure:5323: checking for sys/mkdev.h" >&5
5323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5326 cat > conftest.$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5329 #include <sys/mkdev.h>
5331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5332 { (eval echo configure:5333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5334 if test -z "$ac_err"; then
5336 eval "ac_cv_header_$ac_safe=yes"
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5342 eval "ac_cv_header_$ac_safe=no"
5346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5347 echo "$ac_t""yes" 1>&6
5348 cat >> confdefs.h <<\EOF
5349 #define MAJOR_IN_MKDEV 1
5353 echo "$ac_t""no" 1>&6
5357 if test $ac_cv_header_sys_mkdev_h = no; then
5358 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5359 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5360 echo "configure:5361: checking for sys/sysmacros.h" >&5
5361 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5364 cat > conftest.$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5367 #include <sys/sysmacros.h>
5369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5370 { (eval echo configure:5371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5372 if test -z "$ac_err"; then
5374 eval "ac_cv_header_$ac_safe=yes"
5377 echo "configure: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5380 eval "ac_cv_header_$ac_safe=no"
5384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5385 echo "$ac_t""yes" 1>&6
5386 cat >> confdefs.h <<\EOF
5387 #define MAJOR_IN_SYSMACROS 1
5391 echo "$ac_t""no" 1>&6
5398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5401 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5402 echo "configure:5403: checking for $ac_hdr that defines DIR" >&5
5403 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5406 cat > conftest.$ac_ext <<EOF
5407 #line 5408 "configure"
5408 #include "confdefs.h"
5409 #include <sys/types.h>
5415 if { (eval echo configure:5416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5417 eval "ac_cv_header_dirent_$ac_safe=yes"
5419 echo "configure: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5422 eval "ac_cv_header_dirent_$ac_safe=no"
5426 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5427 echo "$ac_t""yes" 1>&6
5428 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5429 cat >> confdefs.h <<EOF
5430 #define $ac_tr_hdr 1
5432 ac_header_dirent=$ac_hdr; break
5434 echo "$ac_t""no" 1>&6
5437 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5438 if test $ac_header_dirent = dirent.h; then
5439 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5440 echo "configure:5441: checking for opendir in -ldir" >&5
5441 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 ac_save_LIBS="$LIBS"
5447 cat > conftest.$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 /* Override any gcc2 internal prototype to avoid an error. */
5451 /* We use char because int might match the return type of a gcc2
5452 builtin and then its argument prototype would still apply. */
5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5461 eval "ac_cv_lib_$ac_lib_var=yes"
5463 echo "configure: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5466 eval "ac_cv_lib_$ac_lib_var=no"
5469 LIBS="$ac_save_LIBS"
5472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5476 echo "$ac_t""no" 1>&6
5480 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5481 echo "configure:5482: checking for opendir in -lx" >&5
5482 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 ac_save_LIBS="$LIBS"
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5500 if { (eval echo configure:5501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5502 eval "ac_cv_lib_$ac_lib_var=yes"
5504 echo "configure: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5507 eval "ac_cv_lib_$ac_lib_var=no"
5510 LIBS="$ac_save_LIBS"
5513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5514 echo "$ac_t""yes" 1>&6
5517 echo "$ac_t""no" 1>&6
5522 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5523 echo "configure:5524: checking whether stat file-mode macros are broken" >&5
5524 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5530 #include <sys/types.h>
5531 #include <sys/stat.h>
5533 #if defined(S_ISBLK) && defined(S_IFDIR)
5534 # if S_ISBLK (S_IFDIR)
5539 #if defined(S_ISBLK) && defined(S_IFCHR)
5540 # if S_ISBLK (S_IFCHR)
5545 #if defined(S_ISLNK) && defined(S_IFREG)
5546 # if S_ISLNK (S_IFREG)
5551 #if defined(S_ISSOCK) && defined(S_IFREG)
5552 # if S_ISSOCK (S_IFREG)
5558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5559 egrep "You lose" >/dev/null 2>&1; then
5561 ac_cv_header_stat_broken=yes
5564 ac_cv_header_stat_broken=no
5570 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5571 if test $ac_cv_header_stat_broken = yes; then
5572 cat >> confdefs.h <<\EOF
5573 #define STAT_MACROS_BROKEN 1
5578 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5579 echo "configure:5580: checking for sys/wait.h that is POSIX.1 compatible" >&5
5580 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5586 #include <sys/types.h>
5587 #include <sys/wait.h>
5589 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5592 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5597 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5600 if { (eval echo configure:5601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5602 ac_cv_header_sys_wait_h=yes
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5607 ac_cv_header_sys_wait_h=no
5612 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5613 if test $ac_cv_header_sys_wait_h = yes; then
5614 cat >> confdefs.h <<\EOF
5615 #define HAVE_SYS_WAIT_H 1
5620 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5621 echo "configure:5622: checking whether time.h and sys/time.h may both be included" >&5
5622 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5625 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 #include <sys/types.h>
5629 #include <sys/time.h>
5635 if { (eval echo configure:5636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5637 ac_cv_header_time=yes
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5642 ac_cv_header_time=no
5647 echo "$ac_t""$ac_cv_header_time" 1>&6
5648 if test $ac_cv_header_time = yes; then
5649 cat >> confdefs.h <<\EOF
5650 #define TIME_WITH_SYS_TIME 1
5655 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5656 echo "configure:5657: checking for st_blksize in struct stat" >&5
5657 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5658 echo $ac_n "(cached) $ac_c" 1>&6
5660 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663 #include <sys/types.h>
5664 #include <sys/stat.h>
5666 struct stat s; s.st_blksize;
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5671 ac_cv_struct_st_blksize=yes
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 ac_cv_struct_st_blksize=no
5681 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5682 if test $ac_cv_struct_st_blksize = yes; then
5683 cat >> confdefs.h <<\EOF
5684 #define HAVE_ST_BLKSIZE 1
5689 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5690 echo "configure:5691: checking for st_blocks in struct stat" >&5
5691 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5692 echo $ac_n "(cached) $ac_c" 1>&6
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5697 #include <sys/types.h>
5698 #include <sys/stat.h>
5700 struct stat s; s.st_blocks;
5703 if { (eval echo configure:5704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5705 ac_cv_struct_st_blocks=yes
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 ac_cv_struct_st_blocks=no
5715 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5716 if test $ac_cv_struct_st_blocks = yes; then
5717 cat >> confdefs.h <<\EOF
5718 #define HAVE_ST_BLOCKS 1
5722 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5725 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5726 echo "configure:5727: checking whether struct tm is in sys/time.h or time.h" >&5
5727 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5728 echo $ac_n "(cached) $ac_c" 1>&6
5730 cat > conftest.$ac_ext <<EOF
5731 #line 5732 "configure"
5732 #include "confdefs.h"
5733 #include <sys/types.h>
5736 struct tm *tp; tp->tm_sec;
5739 if { (eval echo configure:5740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5741 ac_cv_struct_tm=time.h
5743 echo "configure: failed program was:" >&5
5744 cat conftest.$ac_ext >&5
5746 ac_cv_struct_tm=sys/time.h
5751 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5752 if test $ac_cv_struct_tm = sys/time.h; then
5753 cat >> confdefs.h <<\EOF
5754 #define TM_IN_SYS_TIME 1
5759 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5760 echo "configure:5761: checking for tm_zone in struct tm" >&5
5761 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5764 cat > conftest.$ac_ext <<EOF
5765 #line 5766 "configure"
5766 #include "confdefs.h"
5767 #include <sys/types.h>
5768 #include <$ac_cv_struct_tm>
5770 struct tm tm; tm.tm_zone;
5773 if { (eval echo configure:5774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5775 ac_cv_struct_tm_zone=yes
5777 echo "configure: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5780 ac_cv_struct_tm_zone=no
5785 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5786 if test "$ac_cv_struct_tm_zone" = yes; then
5787 cat >> confdefs.h <<\EOF
5788 #define HAVE_TM_ZONE 1
5792 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5793 echo "configure:5794: checking for tzname" >&5
5794 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5797 cat > conftest.$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5801 #ifndef tzname /* For SGI. */
5802 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5810 ac_cv_var_tzname=yes
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5820 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5821 if test $ac_cv_var_tzname = yes; then
5822 cat >> confdefs.h <<\EOF
5823 #define HAVE_TZNAME 1
5830 # It seems that that many machines where <utime.h> seems to be
5831 # broken just require something like -D_XXX_SOURCE, where XXX might
5832 # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine.
5834 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5835 echo "configure:5836: checking for utime.h" >&5
5836 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5843 #include <sys/types.h>
5849 if { (eval echo configure:5850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5851 tar_cv_header_utime_h=yes
5853 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5856 tar_cv_header_utime_h=no
5861 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5862 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5863 #define HAVE_UTIME_H 1
5867 echo $ac_n "checking for working const""... $ac_c" 1>&6
5868 echo "configure:5869: checking for working const" >&5
5869 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5878 /* Ultrix mips cc rejects this. */
5879 typedef int charset[2]; const charset x;
5880 /* SunOS 4.1.1 cc rejects this. */
5881 char const *const *ccp;
5883 /* NEC SVR4.0.2 mips cc rejects this. */
5884 struct point {int x, y;};
5885 static struct point const zero = {0,0};
5886 /* AIX XL C 1.02.0.0 rejects this.
5887 It does not let you subtract one const X* pointer from another in an arm
5888 of an if-expression whose if-part is not a constant expression */
5889 const char *g = "string";
5890 ccp = &g + (g ? g-g : 0);
5891 /* HPUX 7.0 cc rejects these. */
5894 ccp = (char const *const *) p;
5895 { /* SCO 3.2v4 cc rejects this. */
5897 char const *s = 0 ? (char *) 0 : (char const *) 0;
5901 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5903 const int *foo = &x[0];
5906 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5907 typedef const int *iptr;
5911 { /* AIX XL C 1.02.0.0 rejects this saying
5912 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5913 struct s { int j; const int *ap[3]; };
5914 struct s *b; b->j = 5;
5916 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5922 if { (eval echo configure:5923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5926 echo "configure: failed program was:" >&5
5927 cat conftest.$ac_ext >&5
5934 echo "$ac_t""$ac_cv_c_const" 1>&6
5935 if test $ac_cv_c_const = no; then
5936 cat >> confdefs.h <<\EOF
5944 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
5945 echo "configure:5946: checking how to get filesystem type" >&5
5947 # The order of these tests is important.
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 #include <sys/statvfs.h>
5952 #include <sys/fstyp.h>
5954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5955 { (eval echo configure:5956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5957 if test -z "$ac_err"; then
5959 cat >> confdefs.h <<\EOF
5960 #define FSTYPE_STATVFS 1
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5969 if test $fstype = no; then
5970 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 #include <sys/statfs.h>
5974 #include <sys/fstyp.h>
5976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5977 { (eval echo configure:5978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5979 if test -z "$ac_err"; then
5981 cat >> confdefs.h <<\EOF
5982 #define FSTYPE_USG_STATFS 1
5987 echo "configure: failed program was:" >&5
5988 cat conftest.$ac_ext >&5
5992 if test $fstype = no; then
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 #include <sys/statfs.h>
5997 #include <sys/vmount.h>
5999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6000 { (eval echo configure:6001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6002 if test -z "$ac_err"; then
6004 cat >> confdefs.h <<\EOF
6005 #define FSTYPE_AIX_STATFS 1
6010 echo "configure: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6015 if test $fstype = no; then
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6022 { (eval echo configure:6023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6024 if test -z "$ac_err"; then
6026 cat >> confdefs.h <<\EOF
6027 #define FSTYPE_MNTENT 1
6032 echo "configure: failed program was:" >&5
6033 cat conftest.$ac_ext >&5
6037 if test $fstype = no; then
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6041 #include <sys/mount.h>
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 egrep "f_type;" >/dev/null 2>&1; then
6046 cat >> confdefs.h <<\EOF
6047 #define FSTYPE_STATFS 1
6054 if test $fstype = no; then
6055 cat > conftest.$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 #include <sys/mount.h>
6059 #include <sys/fs_types.h>
6061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6062 { (eval echo configure:6063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6064 if test -z "$ac_err"; then
6066 cat >> confdefs.h <<\EOF
6067 #define FSTYPE_GETMNT 1
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6077 echo "$ac_t""$fstype" 1>&6
6079 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6080 echo "configure:6081: checking return type of signal handlers" >&5
6081 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 #include <sys/types.h>
6093 extern "C" void (*signal (int, void (*)(int)))(int);
6095 void (*signal ()) ();
6102 if { (eval echo configure:6103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6104 ac_cv_type_signal=void
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6109 ac_cv_type_signal=int
6114 echo "$ac_t""$ac_cv_type_signal" 1>&6
6115 cat >> confdefs.h <<EOF
6116 #define RETSIGTYPE $ac_cv_type_signal
6121 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6122 echo "configure:6123: checking for type of signal functions" >&5
6123 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6127 cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6134 struct sigaction sa;
6135 sigemptyset(&ss); sigsuspend(&ss);
6136 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6137 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6143 bash_cv_signal_vintage=posix
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6149 cat > conftest.$ac_ext <<EOF
6150 #line 6151 "configure"
6151 #include "confdefs.h"
6155 int mask = sigmask(SIGINT);
6156 sigsetmask(mask); sigblock(mask); sigpause(mask);
6160 if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6162 bash_cv_signal_vintage=4.2bsd
6164 echo "configure: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6173 RETSIGTYPE foo() { }
6176 int mask = sigmask(SIGINT);
6177 sigset(SIGINT, foo); sigrelse(SIGINT);
6178 sighold(SIGINT); sigpause(SIGINT);
6182 if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6184 bash_cv_signal_vintage=svr3
6186 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6189 bash_cv_signal_vintage=v7
6202 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6203 if test "$bash_cv_signal_vintage" = posix; then
6204 cat >> confdefs.h <<\EOF
6205 #define HAVE_POSIX_SIGNALS 1
6208 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6209 cat >> confdefs.h <<\EOF
6210 #define HAVE_BSD_SIGNALS 1
6213 elif test "$bash_cv_signal_vintage" = svr3; then
6214 cat >> confdefs.h <<\EOF
6215 #define HAVE_USG_SIGHOLD 1
6220 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6221 echo "configure:6222: checking for mode_t" >&5
6222 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6223 echo $ac_n "(cached) $ac_c" 1>&6
6225 cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 #include <sys/types.h>
6234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6235 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6237 ac_cv_type_mode_t=yes
6240 ac_cv_type_mode_t=no
6245 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6246 if test $ac_cv_type_mode_t = no; then
6247 cat >> confdefs.h <<\EOF
6253 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6254 echo "configure:6255: checking for uid_t in sys/types.h" >&5
6255 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6256 echo $ac_n "(cached) $ac_c" 1>&6
6258 cat > conftest.$ac_ext <<EOF
6259 #line 6260 "configure"
6260 #include "confdefs.h"
6261 #include <sys/types.h>
6263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 egrep "uid_t" >/dev/null 2>&1; then
6266 ac_cv_type_uid_t=yes
6275 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6276 if test $ac_cv_type_uid_t = no; then
6277 cat >> confdefs.h <<\EOF
6281 cat >> confdefs.h <<\EOF
6287 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6288 echo "configure:6289: checking for size_t" >&5
6289 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6292 cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure"
6294 #include "confdefs.h"
6295 #include <sys/types.h>
6301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6302 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6304 ac_cv_type_size_t=yes
6307 ac_cv_type_size_t=no
6312 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6313 if test $ac_cv_type_size_t = no; then
6314 cat >> confdefs.h <<\EOF
6315 #define size_t unsigned
6320 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6321 echo "configure:6322: checking for pid_t" >&5
6322 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6325 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6328 #include <sys/types.h>
6334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6337 ac_cv_type_pid_t=yes
6345 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6346 if test $ac_cv_type_pid_t = no; then
6347 cat >> confdefs.h <<\EOF
6353 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6354 echo "configure:6355: checking for off_t" >&5
6355 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6358 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 #include <sys/types.h>
6367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6370 ac_cv_type_off_t=yes
6378 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6379 if test $ac_cv_type_off_t = no; then
6380 cat >> confdefs.h <<\EOF
6386 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6387 echo "configure:6388: checking for ino_t" >&5
6388 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6389 echo $ac_n "(cached) $ac_c" 1>&6
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6394 #include <sys/types.h>
6400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6401 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6403 ac_cv_type_ino_t=yes
6411 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6412 if test $ac_cv_type_ino_t = no; then
6413 cat >> confdefs.h <<\EOF
6414 #define ino_t unsigned long
6419 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6420 echo "configure:6421: checking for dev_t" >&5
6421 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 #include <sys/types.h>
6433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6434 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6436 ac_cv_type_dev_t=yes
6444 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6445 if test $ac_cv_type_dev_t = no; then
6446 cat >> confdefs.h <<\EOF
6447 #define dev_t unsigned long
6452 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6453 echo "configure:6454: checking for daddr_t" >&5
6454 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6457 cat > conftest.$ac_ext <<EOF
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6460 #include <sys/types.h>
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6469 ac_cv_type_daddr_t=yes
6472 ac_cv_type_daddr_t=no
6477 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6478 if test $ac_cv_type_daddr_t = no; then
6479 cat >> confdefs.h <<\EOF
6480 #define daddr_t long
6485 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6486 echo "configure:6487: checking for major_t" >&5
6487 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6493 #include <sys/types.h>
6499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6500 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6502 ac_cv_type_major_t=yes
6505 ac_cv_type_major_t=no
6510 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6511 if test $ac_cv_type_major_t = no; then
6512 cat >> confdefs.h <<\EOF
6518 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6519 echo "configure:6520: checking for minor_t" >&5
6520 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 #include <sys/types.h>
6532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6535 ac_cv_type_minor_t=yes
6538 ac_cv_type_minor_t=no
6543 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6544 if test $ac_cv_type_minor_t = no; then
6545 cat >> confdefs.h <<\EOF
6551 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6552 echo "configure:6553: checking for ssize_t" >&5
6553 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 #include <sys/types.h>
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6568 ac_cv_type_ssize_t=yes
6571 ac_cv_type_ssize_t=no
6576 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6577 if test $ac_cv_type_ssize_t = no; then
6578 cat >> confdefs.h <<\EOF
6584 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6585 echo "configure:6586: checking for st_blocks in struct stat" >&5
6586 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 #include <sys/types.h>
6593 #include <sys/stat.h>
6595 struct stat s; s.st_blocks;
6598 if { (eval echo configure:6599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6600 ac_cv_struct_st_blocks=yes
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6605 ac_cv_struct_st_blocks=no
6610 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6611 if test $ac_cv_struct_st_blocks = yes; then
6612 cat >> confdefs.h <<\EOF
6613 #define HAVE_ST_BLOCKS 1
6617 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6620 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6621 echo "configure:6622: checking for st_rdev in struct stat" >&5
6622 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 #include <sys/types.h>
6629 #include <sys/stat.h>
6631 struct stat s; s.st_rdev;
6634 if { (eval echo configure:6635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6636 ac_cv_struct_st_rdev=yes
6638 echo "configure: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6641 ac_cv_struct_st_rdev=no
6646 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6647 if test $ac_cv_struct_st_rdev = yes; then
6648 cat >> confdefs.h <<\EOF
6649 #define HAVE_ST_RDEV 1
6654 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6655 echo "configure:6656: checking whether struct tm is in sys/time.h or time.h" >&5
6656 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6657 echo $ac_n "(cached) $ac_c" 1>&6
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6662 #include <sys/types.h>
6665 struct tm *tp; tp->tm_sec;
6668 if { (eval echo configure:6669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6670 ac_cv_struct_tm=time.h
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6675 ac_cv_struct_tm=sys/time.h
6680 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6681 if test $ac_cv_struct_tm = sys/time.h; then
6682 cat >> confdefs.h <<\EOF
6683 #define TM_IN_SYS_TIME 1
6688 echo $ac_n "checking for working const""... $ac_c" 1>&6
6689 echo "configure:6690: checking for working const" >&5
6690 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6699 /* Ultrix mips cc rejects this. */
6700 typedef int charset[2]; const charset x;
6701 /* SunOS 4.1.1 cc rejects this. */
6702 char const *const *ccp;
6704 /* NEC SVR4.0.2 mips cc rejects this. */
6705 struct point {int x, y;};
6706 static struct point const zero = {0,0};
6707 /* AIX XL C 1.02.0.0 rejects this.
6708 It does not let you subtract one const X* pointer from another in an arm
6709 of an if-expression whose if-part is not a constant expression */
6710 const char *g = "string";
6711 ccp = &g + (g ? g-g : 0);
6712 /* HPUX 7.0 cc rejects these. */
6715 ccp = (char const *const *) p;
6716 { /* SCO 3.2v4 cc rejects this. */
6718 char const *s = 0 ? (char *) 0 : (char const *) 0;
6722 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6724 const int *foo = &x[0];
6727 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6728 typedef const int *iptr;
6732 { /* AIX XL C 1.02.0.0 rejects this saying
6733 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6734 struct s { int j; const int *ap[3]; };
6735 struct s *b; b->j = 5;
6737 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6743 if { (eval echo configure:6744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6755 echo "$ac_t""$ac_cv_c_const" 1>&6
6756 if test $ac_cv_c_const = no; then
6757 cat >> confdefs.h <<\EOF
6765 echo $ac_n "checking size of char""... $ac_c" 1>&6
6766 echo "configure:6767: checking size of char" >&5
6767 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 if test "$cross_compiling" = yes; then
6773 cat > conftest.$ac_ext <<EOF
6774 #line 6775 "configure"
6775 #include "confdefs.h"
6779 FILE *f=fopen("conftestval", "w");
6781 fprintf(f, "%d\n", sizeof(char));
6785 if { (eval echo configure:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6787 ac_cv_sizeof_char=`cat conftestval`
6789 echo "configure: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6798 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6799 cat >> confdefs.h <<EOF
6800 #define SIZEOF_CHAR $ac_cv_sizeof_char
6804 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6805 echo "configure:6806: checking size of short int" >&5
6806 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 if test "$cross_compiling" = yes; then
6810 ac_cv_sizeof_short_int=2
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6818 FILE *f=fopen("conftestval", "w");
6820 fprintf(f, "%d\n", sizeof(short int));
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6826 ac_cv_sizeof_short_int=`cat conftestval`
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 ac_cv_sizeof_short_int=0
6837 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6838 cat >> confdefs.h <<EOF
6839 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6843 echo $ac_n "checking size of int""... $ac_c" 1>&6
6844 echo "configure:6845: checking size of int" >&5
6845 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6846 echo $ac_n "(cached) $ac_c" 1>&6
6848 if test "$cross_compiling" = yes; then
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6857 FILE *f=fopen("conftestval", "w");
6859 fprintf(f, "%d\n", sizeof(int));
6863 if { (eval echo configure:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6865 ac_cv_sizeof_int=`cat conftestval`
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6876 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6877 cat >> confdefs.h <<EOF
6878 #define SIZEOF_INT $ac_cv_sizeof_int
6882 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6883 echo "configure:6884: checking size of long int" >&5
6884 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6885 echo $ac_n "(cached) $ac_c" 1>&6
6887 if test "$cross_compiling" = yes; then
6888 ac_cv_sizeof_long_int=4
6890 cat > conftest.$ac_ext <<EOF
6891 #line 6892 "configure"
6892 #include "confdefs.h"
6896 FILE *f=fopen("conftestval", "w");
6898 fprintf(f, "%d\n", sizeof(long int));
6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6904 ac_cv_sizeof_long_int=`cat conftestval`
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 ac_cv_sizeof_long_int=0
6915 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
6916 cat >> confdefs.h <<EOF
6917 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
6921 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
6922 echo "configure:6923: checking size of long long int" >&5
6923 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6926 if test "$cross_compiling" = yes; then
6927 ac_cv_sizeof_long_long_int=8
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6935 FILE *f=fopen("conftestval", "w");
6937 fprintf(f, "%d\n", sizeof(long long int));
6941 if { (eval echo configure:6942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6943 ac_cv_sizeof_long_long_int=`cat conftestval`
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 ac_cv_sizeof_long_long_int=0
6954 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
6955 cat >> confdefs.h <<EOF
6956 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
6960 echo $ac_n "checking size of int *""... $ac_c" 1>&6
6961 echo "configure:6962: checking size of int *" >&5
6962 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 if test "$cross_compiling" = yes; then
6966 ac_cv_sizeof_int_p=4
6968 cat > conftest.$ac_ext <<EOF
6969 #line 6970 "configure"
6970 #include "confdefs.h"
6974 FILE *f=fopen("conftestval", "w");
6976 fprintf(f, "%d\n", sizeof(int *));
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6982 ac_cv_sizeof_int_p=`cat conftestval`
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6987 ac_cv_sizeof_int_p=0
6993 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
6994 cat >> confdefs.h <<EOF
6995 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7000 # Check for sys/types.h types
7001 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7002 echo "configure:7003: checking for u_int type" >&5
7003 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7004 echo $ac_n "(cached) $ac_c" 1>&6
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 #include <sys/types.h>
7015 if { (eval echo configure:7016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7017 ac_cv_have_u_int="yes"
7019 echo "configure: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7022 ac_cv_have_u_int="no"
7029 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7030 if test "x$ac_cv_have_u_int" = "xyes" ; then
7031 cat >> confdefs.h <<\EOF
7032 #define HAVE_U_INT 1
7038 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7039 echo "configure:7040: checking for intmax_t type" >&5
7040 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7044 cat > conftest.$ac_ext <<EOF
7045 #line 7046 "configure"
7046 #include "confdefs.h"
7047 #include <sys/types.h>
7052 if { (eval echo configure:7053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7054 ac_cv_have_intmax_t="yes"
7056 echo "configure: failed program was:" >&5
7057 cat conftest.$ac_ext >&5
7060 cat > conftest.$ac_ext <<EOF
7061 #line 7062 "configure"
7062 #include "confdefs.h"
7068 if { (eval echo configure:7069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7070 ac_cv_have_intmax_t="yes"
7072 echo "configure: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7075 ac_cv_have_intmax_t="no"
7087 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7088 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7089 cat >> confdefs.h <<\EOF
7090 #define HAVE_INTMAX_T 1
7097 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7098 echo "configure:7099: checking for u_intmax_t type" >&5
7099 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7103 cat > conftest.$ac_ext <<EOF
7104 #line 7105 "configure"
7105 #include "confdefs.h"
7106 #include <sys/types.h>
7108 u_intmax_t a; a = 1;
7111 if { (eval echo configure:7112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7113 ac_cv_have_u_intmax_t="yes"
7115 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7119 cat > conftest.$ac_ext <<EOF
7120 #line 7121 "configure"
7121 #include "confdefs.h"
7124 u_intmax_t a; a = 1;
7127 if { (eval echo configure:7128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7129 ac_cv_have_u_intmax_t="yes"
7131 echo "configure: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7134 ac_cv_have_u_intmax_t="no"
7145 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7146 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7147 cat >> confdefs.h <<\EOF
7148 #define HAVE_U_INTMAX_T 1
7155 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7156 echo "configure:7157: checking for intXX_t types" >&5
7157 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7158 echo $ac_n "(cached) $ac_c" 1>&6
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7164 #include <sys/types.h>
7166 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7169 if { (eval echo configure:7170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7171 ac_cv_have_intxx_t="yes"
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 ac_cv_have_intxx_t="no"
7183 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7184 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7185 cat >> confdefs.h <<\EOF
7186 #define HAVE_INTXX_T 1
7192 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7193 echo "configure:7194: checking for int64_t type" >&5
7194 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7198 cat > conftest.$ac_ext <<EOF
7199 #line 7200 "configure"
7200 #include "confdefs.h"
7201 #include <sys/types.h>
7206 if { (eval echo configure:7207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7208 ac_cv_have_int64_t="yes"
7210 echo "configure: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7213 ac_cv_have_int64_t="no"
7220 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7221 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7222 cat >> confdefs.h <<\EOF
7223 #define HAVE_INT64_T 1
7229 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7230 echo "configure:7231: checking for u_intXX_t types" >&5
7231 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7232 echo $ac_n "(cached) $ac_c" 1>&6
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7238 #include <sys/types.h>
7240 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7243 if { (eval echo configure:7244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7245 ac_cv_have_u_intxx_t="yes"
7247 echo "configure: failed program was:" >&5
7248 cat conftest.$ac_ext >&5
7250 ac_cv_have_u_intxx_t="no"
7257 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7258 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7259 cat >> confdefs.h <<\EOF
7260 #define HAVE_U_INTXX_T 1
7266 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7267 echo "configure:7268: checking for u_int64_t types" >&5
7268 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7272 cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275 #include <sys/types.h>
7280 if { (eval echo configure:7281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7282 ac_cv_have_u_int64_t="yes"
7284 echo "configure: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7287 ac_cv_have_u_int64_t="no"
7294 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7295 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7296 cat >> confdefs.h <<\EOF
7297 #define HAVE_U_INT64_T 1
7303 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7304 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7306 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7307 echo "configure:7308: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 #include <sys/bitypes.h>
7313 int8_t a; int16_t b; int32_t c;
7314 u_int8_t e; u_int16_t f; u_int32_t g;
7315 a = b = c = e = f = g = 1;
7318 if { (eval echo configure:7319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7320 cat >> confdefs.h <<\EOF
7321 #define HAVE_U_INTXX_T 1
7324 cat >> confdefs.h <<\EOF
7325 #define HAVE_INTXX_T 1
7328 cat >> confdefs.h <<\EOF
7329 #define HAVE_SYS_BITYPES_H 1
7332 echo "$ac_t""yes" 1>&6
7334 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5
7337 echo "$ac_t""no" 1>&6
7343 if test -z "$have_u_intxx_t" ; then
7344 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7345 echo "configure:7346: checking for uintXX_t types" >&5
7346 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 #include <sys/types.h>
7355 uint8_t a; uint16_t b;
7356 uint32_t c; a = b = c = 1;
7359 if { (eval echo configure:7360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7361 ac_cv_have_uintxx_t="yes"
7363 echo "configure: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7366 ac_cv_have_uintxx_t="no"
7373 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7374 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7375 cat >> confdefs.h <<\EOF
7376 #define HAVE_UINTXX_T 1
7399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7400 echo "configure:7401: checking for $ac_func" >&5
7401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes,
7408 which can conflict with char $ac_func(); below. */
7410 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7430 eval "ac_cv_func_$ac_func=yes"
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7435 eval "ac_cv_func_$ac_func=no"
7440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7443 cat >> confdefs.h <<EOF
7444 #define $ac_tr_func 1
7448 echo "$ac_t""no" 1>&6
7449 echo 'configure: cannot find needed function.'; exit 1
7455 for ac_func in fchdir
7457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7458 echo "configure:7459: checking for $ac_func" >&5
7459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7460 echo $ac_n "(cached) $ac_c" 1>&6
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 /* System header to define __stub macros and hopefully few prototypes,
7466 which can conflict with char $ac_func(); below. */
7468 /* Override any gcc2 internal prototype to avoid an error. */
7469 /* We use char because int might match the return type of a gcc2
7470 builtin and then its argument prototype would still apply. */
7475 /* The GNU C library defines this for functions which it implements
7476 to always fail with ENOSYS. Some functions are actually named
7477 something starting with __ and the normal name is an alias. */
7478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7486 if { (eval echo configure:7487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7488 eval "ac_cv_func_$ac_func=yes"
7490 echo "configure: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7493 eval "ac_cv_func_$ac_func=no"
7498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7501 cat >> confdefs.h <<EOF
7502 #define $ac_tr_func 1
7504 cat >> confdefs.h <<\EOF
7505 #define HAVE_FCHDIR 1
7509 echo "$ac_t""no" 1>&6
7514 for ac_func in snprintf vsnprintf gethostid getdomainname
7516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7517 echo "configure:7518: checking for $ac_func" >&5
7518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7519 echo $ac_n "(cached) $ac_c" 1>&6
7521 cat > conftest.$ac_ext <<EOF
7522 #line 7523 "configure"
7523 #include "confdefs.h"
7524 /* System header to define __stub macros and hopefully few prototypes,
7525 which can conflict with char $ac_func(); below. */
7527 /* Override any gcc2 internal prototype to avoid an error. */
7528 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */
7534 /* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7545 if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7547 eval "ac_cv_func_$ac_func=yes"
7549 echo "configure: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7552 eval "ac_cv_func_$ac_func=no"
7557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7558 echo "$ac_t""yes" 1>&6
7559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7560 cat >> confdefs.h <<EOF
7561 #define $ac_tr_func 1
7565 echo "$ac_t""no" 1>&6
7570 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7573 echo "configure:7574: checking for $ac_func" >&5
7574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7580 /* System header to define __stub macros and hopefully few prototypes,
7581 which can conflict with char $ac_func(); below. */
7583 /* Override any gcc2 internal prototype to avoid an error. */
7584 /* We use char because int might match the return type of a gcc2
7585 builtin and then its argument prototype would still apply. */
7590 /* The GNU C library defines this for functions which it implements
7591 to always fail with ENOSYS. Some functions are actually named
7592 something starting with __ and the normal name is an alias. */
7593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7601 if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7603 eval "ac_cv_func_$ac_func=yes"
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7608 eval "ac_cv_func_$ac_func=no"
7613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7614 echo "$ac_t""yes" 1>&6
7615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7616 cat >> confdefs.h <<EOF
7617 #define $ac_tr_func 1
7621 echo "$ac_t""no" 1>&6
7626 # If resolver functions are not in libc check for -lnsl or -lresolv.
7627 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7628 echo "configure:7629: checking for gethostbyname_r" >&5
7629 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7630 echo $ac_n "(cached) $ac_c" 1>&6
7632 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7635 /* System header to define __stub macros and hopefully few prototypes,
7636 which can conflict with char gethostbyname_r(); below. */
7638 /* Override any gcc2 internal prototype to avoid an error. */
7639 /* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */
7641 char gethostbyname_r();
7645 /* The GNU C library defines this for functions which it implements
7646 to always fail with ENOSYS. Some functions are actually named
7647 something starting with __ and the normal name is an alias. */
7648 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7656 if { (eval echo configure:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7658 eval "ac_cv_func_gethostbyname_r=yes"
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7663 eval "ac_cv_func_gethostbyname_r=no"
7668 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7669 echo "$ac_t""yes" 1>&6
7670 echo "$ac_t""using libc's resolver" 1>&6
7672 echo "$ac_t""no" 1>&6
7673 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7674 echo "configure:7675: checking for gethostbyname_r in -lnsl" >&5
7675 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 ac_save_LIBS="$LIBS"
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* Override any gcc2 internal prototype to avoid an error. */
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7687 char gethostbyname_r();
7693 if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7695 eval "ac_cv_lib_$ac_lib_var=yes"
7697 echo "configure: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7700 eval "ac_cv_lib_$ac_lib_var=no"
7703 LIBS="$ac_save_LIBS"
7706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7707 echo "$ac_t""yes" 1>&6
7708 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7710 cat >> confdefs.h <<EOF
7711 #define $ac_tr_lib 1
7717 echo "$ac_t""no" 1>&6
7720 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7721 echo "configure:7722: checking for gethostbyname_r in -lresolv" >&5
7722 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7724 echo $ac_n "(cached) $ac_c" 1>&6
7726 ac_save_LIBS="$LIBS"
7727 LIBS="-lresolv $LIBS"
7728 cat > conftest.$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7731 /* Override any gcc2 internal prototype to avoid an error. */
7732 /* We use char because int might match the return type of a gcc2
7733 builtin and then its argument prototype would still apply. */
7734 char gethostbyname_r();
7740 if { (eval echo configure:7741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7742 eval "ac_cv_lib_$ac_lib_var=yes"
7744 echo "configure: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7747 eval "ac_cv_lib_$ac_lib_var=no"
7750 LIBS="$ac_save_LIBS"
7753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7754 echo "$ac_t""yes" 1>&6
7755 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7756 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7757 cat >> confdefs.h <<EOF
7758 #define $ac_tr_lib 1
7761 LIBS="-lresolv $LIBS"
7764 echo "$ac_t""no" 1>&6
7771 # Find where sockets are (especially for Solaris)
7772 echo $ac_n "checking for socket""... $ac_c" 1>&6
7773 echo "configure:7774: checking for socket" >&5
7774 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* System header to define __stub macros and hopefully few prototypes,
7781 which can conflict with char socket(); below. */
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7790 /* The GNU C library defines this for functions which it implements
7791 to always fail with ENOSYS. Some functions are actually named
7792 something starting with __ and the normal name is an alias. */
7793 #if defined (__stub_socket) || defined (__stub___socket)
7801 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7803 eval "ac_cv_func_socket=yes"
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7808 eval "ac_cv_func_socket=no"
7813 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7814 echo "$ac_t""yes" 1>&6
7815 echo "$ac_t""using libc's socket" 1>&6
7817 echo "$ac_t""no" 1>&6
7818 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7819 echo "configure:7820: checking for socket in -lxnet" >&5
7820 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7824 ac_save_LIBS="$LIBS"
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 /* Override any gcc2 internal prototype to avoid an error. */
7830 /* We use char because int might match the return type of a gcc2
7831 builtin and then its argument prototype would still apply. */
7838 if { (eval echo configure:7839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7840 eval "ac_cv_lib_$ac_lib_var=yes"
7842 echo "configure: failed program was:" >&5
7843 cat conftest.$ac_ext >&5
7845 eval "ac_cv_lib_$ac_lib_var=no"
7848 LIBS="$ac_save_LIBS"
7851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7852 echo "$ac_t""yes" 1>&6
7853 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7854 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7855 cat >> confdefs.h <<EOF
7856 #define $ac_tr_lib 1
7862 echo "$ac_t""no" 1>&6
7865 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7866 echo "configure:7867: checking for socket in -lsocket" >&5
7867 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7871 ac_save_LIBS="$LIBS"
7872 LIBS="-lsocket $LIBS"
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7885 if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7887 eval "ac_cv_lib_$ac_lib_var=yes"
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7892 eval "ac_cv_lib_$ac_lib_var=no"
7895 LIBS="$ac_save_LIBS"
7898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7899 echo "$ac_t""yes" 1>&6
7900 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
7901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7902 cat >> confdefs.h <<EOF
7903 #define $ac_tr_lib 1
7906 LIBS="-lsocket $LIBS"
7909 echo "$ac_t""no" 1>&6
7912 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
7913 echo "configure:7914: checking for socket in -linet" >&5
7914 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
7915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7916 echo $ac_n "(cached) $ac_c" 1>&6
7918 ac_save_LIBS="$LIBS"
7920 cat > conftest.$ac_ext <<EOF
7921 #line 7922 "configure"
7922 #include "confdefs.h"
7923 /* Override any gcc2 internal prototype to avoid an error. */
7924 /* We use char because int might match the return type of a gcc2
7925 builtin and then its argument prototype would still apply. */
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7934 eval "ac_cv_lib_$ac_lib_var=yes"
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7939 eval "ac_cv_lib_$ac_lib_var=no"
7942 LIBS="$ac_save_LIBS"
7945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7946 echo "$ac_t""yes" 1>&6
7947 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
7948 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7949 cat >> confdefs.h <<EOF
7950 #define $ac_tr_lib 1
7956 echo "$ac_t""no" 1>&6
7962 for ac_func in inet_pton
7964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7965 echo "configure:7966: checking for $ac_func" >&5
7966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7969 cat > conftest.$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7972 /* System header to define __stub macros and hopefully few prototypes,
7973 which can conflict with char $ac_func(); below. */
7975 /* Override any gcc2 internal prototype to avoid an error. */
7976 /* We use char because int might match the return type of a gcc2
7977 builtin and then its argument prototype would still apply. */
7982 /* The GNU C library defines this for functions which it implements
7983 to always fail with ENOSYS. Some functions are actually named
7984 something starting with __ and the normal name is an alias. */
7985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7993 if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7995 eval "ac_cv_func_$ac_func=yes"
7997 echo "configure: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
8000 eval "ac_cv_func_$ac_func=no"
8005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8006 echo "$ac_t""yes" 1>&6
8007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8008 cat >> confdefs.h <<EOF
8009 #define $ac_tr_func 1
8011 cat >> confdefs.h <<\EOF
8012 #define HAVE_INET_PTON 1
8016 echo "$ac_t""no" 1>&6
8021 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8022 echo "configure:8023: checking for strftime" >&5
8023 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8024 echo $ac_n "(cached) $ac_c" 1>&6
8026 cat > conftest.$ac_ext <<EOF
8027 #line 8028 "configure"
8028 #include "confdefs.h"
8029 /* System header to define __stub macros and hopefully few prototypes,
8030 which can conflict with char strftime(); below. */
8032 /* Override any gcc2 internal prototype to avoid an error. */
8033 /* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8039 /* The GNU C library defines this for functions which it implements
8040 to always fail with ENOSYS. Some functions are actually named
8041 something starting with __ and the normal name is an alias. */
8042 #if defined (__stub_strftime) || defined (__stub___strftime)
8050 if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8052 eval "ac_cv_func_strftime=yes"
8054 echo "configure: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8057 eval "ac_cv_func_strftime=no"
8062 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8063 echo "$ac_t""yes" 1>&6
8064 cat >> confdefs.h <<\EOF
8065 #define HAVE_STRFTIME 1
8069 echo "$ac_t""no" 1>&6
8070 # strftime is in -lintl on SCO UNIX.
8071 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8072 echo "configure:8073: checking for strftime in -lintl" >&5
8073 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8077 ac_save_LIBS="$LIBS"
8079 cat > conftest.$ac_ext <<EOF
8080 #line 8081 "configure"
8081 #include "confdefs.h"
8082 /* Override any gcc2 internal prototype to avoid an error. */
8083 /* We use char because int might match the return type of a gcc2
8084 builtin and then its argument prototype would still apply. */
8091 if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8093 eval "ac_cv_lib_$ac_lib_var=yes"
8095 echo "configure: failed program was:" >&5
8096 cat conftest.$ac_ext >&5
8098 eval "ac_cv_lib_$ac_lib_var=no"
8101 LIBS="$ac_save_LIBS"
8104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8105 echo "$ac_t""yes" 1>&6
8106 cat >> confdefs.h <<\EOF
8107 #define HAVE_STRFTIME 1
8112 echo "$ac_t""no" 1>&6
8117 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8118 echo "configure:8119: checking for vprintf" >&5
8119 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8122 cat > conftest.$ac_ext <<EOF
8123 #line 8124 "configure"
8124 #include "confdefs.h"
8125 /* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char vprintf(); below. */
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8135 /* The GNU C library defines this for functions which it implements
8136 to always fail with ENOSYS. Some functions are actually named
8137 something starting with __ and the normal name is an alias. */
8138 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8146 if { (eval echo configure:8147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8148 eval "ac_cv_func_vprintf=yes"
8150 echo "configure: failed program was:" >&5
8151 cat conftest.$ac_ext >&5
8153 eval "ac_cv_func_vprintf=no"
8158 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8159 echo "$ac_t""yes" 1>&6
8160 cat >> confdefs.h <<\EOF
8161 #define HAVE_VPRINTF 1
8165 echo "$ac_t""no" 1>&6
8168 if test "$ac_cv_func_vprintf" != yes; then
8169 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8170 echo "configure:8171: checking for _doprnt" >&5
8171 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 /* System header to define __stub macros and hopefully few prototypes,
8178 which can conflict with char _doprnt(); below. */
8180 /* Override any gcc2 internal prototype to avoid an error. */
8181 /* We use char because int might match the return type of a gcc2
8182 builtin and then its argument prototype would still apply. */
8187 /* The GNU C library defines this for functions which it implements
8188 to always fail with ENOSYS. Some functions are actually named
8189 something starting with __ and the normal name is an alias. */
8190 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8198 if { (eval echo configure:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8200 eval "ac_cv_func__doprnt=yes"
8202 echo "configure: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8205 eval "ac_cv_func__doprnt=no"
8210 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8211 echo "$ac_t""yes" 1>&6
8212 cat >> confdefs.h <<\EOF
8213 #define HAVE_DOPRNT 1
8217 echo "$ac_t""no" 1>&6
8222 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8223 # for constant arguments. Useless!
8224 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8225 echo "configure:8226: checking for working alloca.h" >&5
8226 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8234 char *p = alloca(2 * sizeof(int));
8237 if { (eval echo configure:8238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8239 ac_cv_header_alloca_h=yes
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8244 ac_cv_header_alloca_h=no
8249 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8250 if test $ac_cv_header_alloca_h = yes; then
8251 cat >> confdefs.h <<\EOF
8252 #define HAVE_ALLOCA_H 1
8257 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8258 echo "configure:8259: checking for alloca" >&5
8259 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8262 cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8267 # define alloca __builtin_alloca
8270 # include <malloc.h>
8271 # define alloca _alloca
8274 # include <alloca.h>
8279 # ifndef alloca /* predefined by HP cc +Olibcalls */
8288 char *p = (char *) alloca(1);
8291 if { (eval echo configure:8292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8293 ac_cv_func_alloca_works=yes
8295 echo "configure: failed program was:" >&5
8296 cat conftest.$ac_ext >&5
8298 ac_cv_func_alloca_works=no
8303 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8304 if test $ac_cv_func_alloca_works = yes; then
8305 cat >> confdefs.h <<\EOF
8306 #define HAVE_ALLOCA 1
8311 if test $ac_cv_func_alloca_works = no; then
8312 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8313 # that cause trouble. Some versions do not even contain alloca or
8314 # contain a buggy version. If you still want to use their alloca,
8315 # use ar to extract alloca.o from them instead of compiling alloca.c.
8316 ALLOCA=alloca.${ac_objext}
8317 cat >> confdefs.h <<\EOF
8322 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8323 echo "configure:8324: checking whether alloca needs Cray hooks" >&5
8324 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8327 cat > conftest.$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8330 #if defined(CRAY) && ! defined(CRAY2)
8337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8338 egrep "webecray" >/dev/null 2>&1; then
8349 echo "$ac_t""$ac_cv_os_cray" 1>&6
8350 if test $ac_cv_os_cray = yes; then
8351 for ac_func in _getb67 GETB67 getb67; do
8352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8353 echo "configure:8354: checking for $ac_func" >&5
8354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 /* System header to define __stub macros and hopefully few prototypes,
8361 which can conflict with char $ac_func(); below. */
8363 /* Override any gcc2 internal prototype to avoid an error. */
8364 /* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8370 /* The GNU C library defines this for functions which it implements
8371 to always fail with ENOSYS. Some functions are actually named
8372 something starting with __ and the normal name is an alias. */
8373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8381 if { (eval echo configure:8382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8383 eval "ac_cv_func_$ac_func=yes"
8385 echo "configure: failed program was:" >&5
8386 cat conftest.$ac_ext >&5
8388 eval "ac_cv_func_$ac_func=no"
8393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8394 echo "$ac_t""yes" 1>&6
8395 cat >> confdefs.h <<EOF
8396 #define CRAY_STACKSEG_END $ac_func
8401 echo "$ac_t""no" 1>&6
8407 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8408 echo "configure:8409: checking stack direction for C alloca" >&5
8409 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8410 echo $ac_n "(cached) $ac_c" 1>&6
8412 if test "$cross_compiling" = yes; then
8413 ac_cv_c_stack_direction=0
8415 cat > conftest.$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 find_stack_direction ()
8420 static char *addr = 0;
8425 return find_stack_direction ();
8428 return (&dummy > addr) ? 1 : -1;
8432 exit (find_stack_direction() < 0);
8435 if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8437 ac_cv_c_stack_direction=1
8439 echo "configure: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8442 ac_cv_c_stack_direction=-1
8449 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8450 cat >> confdefs.h <<EOF
8451 #define STACK_DIRECTION $ac_cv_c_stack_direction
8456 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8457 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8458 echo "configure:8459: checking for getmntent in -lsun" >&5
8459 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8463 ac_save_LIBS="$LIBS"
8465 cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8468 /* Override any gcc2 internal prototype to avoid an error. */
8469 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8477 if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8479 eval "ac_cv_lib_$ac_lib_var=yes"
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8484 eval "ac_cv_lib_$ac_lib_var=no"
8487 LIBS="$ac_save_LIBS"
8490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8491 echo "$ac_t""yes" 1>&6
8494 echo "$ac_t""no" 1>&6
8495 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8496 echo "configure:8497: checking for getmntent in -lseq" >&5
8497 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8499 echo $ac_n "(cached) $ac_c" 1>&6
8501 ac_save_LIBS="$LIBS"
8503 cat > conftest.$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8506 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8515 if { (eval echo configure:8516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8517 eval "ac_cv_lib_$ac_lib_var=yes"
8519 echo "configure: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8522 eval "ac_cv_lib_$ac_lib_var=no"
8525 LIBS="$ac_save_LIBS"
8528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8529 echo "$ac_t""yes" 1>&6
8532 echo "$ac_t""no" 1>&6
8533 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8534 echo "configure:8535: checking for getmntent in -lgen" >&5
8535 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8537 echo $ac_n "(cached) $ac_c" 1>&6
8539 ac_save_LIBS="$LIBS"
8541 cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8553 if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8555 eval "ac_cv_lib_$ac_lib_var=yes"
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8560 eval "ac_cv_lib_$ac_lib_var=no"
8563 LIBS="$ac_save_LIBS"
8566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8570 echo "$ac_t""no" 1>&6
8577 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8578 echo "configure:8579: checking for getmntent" >&5
8579 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
8582 cat > conftest.$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8585 /* System header to define __stub macros and hopefully few prototypes,
8586 which can conflict with char getmntent(); below. */
8588 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8595 /* The GNU C library defines this for functions which it implements
8596 to always fail with ENOSYS. Some functions are actually named
8597 something starting with __ and the normal name is an alias. */
8598 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8606 if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8608 eval "ac_cv_func_getmntent=yes"
8610 echo "configure: failed program was:" >&5
8611 cat conftest.$ac_ext >&5
8613 eval "ac_cv_func_getmntent=no"
8618 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8619 echo "$ac_t""yes" 1>&6
8620 cat >> confdefs.h <<\EOF
8621 #define HAVE_GETMNTENT 1
8625 echo "$ac_t""no" 1>&6
8628 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8629 echo "configure:8630: checking whether closedir returns void" >&5
8630 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8633 if test "$cross_compiling" = yes; then
8634 ac_cv_func_closedir_void=yes
8636 cat > conftest.$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 #include <sys/types.h>
8640 #include <$ac_header_dirent>
8641 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8643 if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8645 ac_cv_func_closedir_void=no
8647 echo "configure: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8650 ac_cv_func_closedir_void=yes
8657 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8658 if test $ac_cv_func_closedir_void = yes; then
8659 cat >> confdefs.h <<\EOF
8660 #define CLOSEDIR_VOID 1
8665 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8666 echo "configure:8667: checking whether setpgrp takes no argument" >&5
8667 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8668 echo $ac_n "(cached) $ac_c" 1>&6
8670 if test "$cross_compiling" = yes; then
8671 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8677 #ifdef HAVE_UNISTD_H
8682 * If this system has a BSD-style setpgrp, which takes arguments, exit
8687 if (setpgrp(1,1) == -1)
8694 if { (eval echo configure:8695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8696 ac_cv_func_setpgrp_void=no
8698 echo "configure: failed program was:" >&5
8699 cat conftest.$ac_ext >&5
8701 ac_cv_func_setpgrp_void=yes
8709 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8710 if test $ac_cv_func_setpgrp_void = yes; then
8711 cat >> confdefs.h <<\EOF
8712 #define SETPGRP_VOID 1
8716 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8717 echo "configure:8718: checking for working fnmatch" >&5
8718 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8719 echo $ac_n "(cached) $ac_c" 1>&6
8721 # Some versions of Solaris or SCO have a broken fnmatch function.
8722 # So we run a test program. If we are cross-compiling, take no chance.
8723 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8724 if test "$cross_compiling" = yes; then
8725 ac_cv_func_fnmatch_works=no
8727 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8730 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8732 if { (eval echo configure:8733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8734 ac_cv_func_fnmatch_works=yes
8736 echo "configure: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8739 ac_cv_func_fnmatch_works=no
8746 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8747 if test $ac_cv_func_fnmatch_works = yes; then
8748 cat >> confdefs.h <<\EOF
8749 #define HAVE_FNMATCH 1
8756 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8757 echo "configure:8758: checking for setlocale in -lxpg4" >&5
8758 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8762 ac_save_LIBS="$LIBS"
8764 cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8767 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8776 if { (eval echo configure:8777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8778 eval "ac_cv_lib_$ac_lib_var=yes"
8780 echo "configure: failed program was:" >&5
8781 cat conftest.$ac_ext >&5
8783 eval "ac_cv_lib_$ac_lib_var=no"
8786 LIBS="$ac_save_LIBS"
8789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8790 echo "$ac_t""yes" 1>&6
8793 echo "$ac_t""no" 1>&6
8798 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8799 echo "configure:8800: checking for getpwnam in -lsun" >&5
8800 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8802 echo $ac_n "(cached) $ac_c" 1>&6
8804 ac_save_LIBS="$LIBS"
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 /* Override any gcc2 internal prototype to avoid an error. */
8810 /* We use char because int might match the return type of a gcc2
8811 builtin and then its argument prototype would still apply. */
8818 if { (eval echo configure:8819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8820 eval "ac_cv_lib_$ac_lib_var=yes"
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8825 eval "ac_cv_lib_$ac_lib_var=no"
8828 LIBS="$ac_save_LIBS"
8831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8832 echo "$ac_t""yes" 1>&6
8833 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8834 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8835 cat >> confdefs.h <<EOF
8836 #define $ac_tr_lib 1
8842 echo "$ac_t""no" 1>&6
8846 for ac_hdr in zlib.h
8848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8850 echo "configure:8851: checking for $ac_hdr" >&5
8851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8854 cat > conftest.$ac_ext <<EOF
8855 #line 8856 "configure"
8856 #include "confdefs.h"
8859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8860 { (eval echo configure:8861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8862 if test -z "$ac_err"; then
8864 eval "ac_cv_header_$ac_safe=yes"
8867 echo "configure: failed program was:" >&5
8868 cat conftest.$ac_ext >&5
8870 eval "ac_cv_header_$ac_safe=no"
8874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8875 echo "$ac_t""yes" 1>&6
8876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8877 cat >> confdefs.h <<EOF
8878 #define $ac_tr_hdr 1
8882 echo "$ac_t""no" 1>&6
8886 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8887 echo "configure:8888: checking for deflate in -lz" >&5
8888 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
8889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8890 echo $ac_n "(cached) $ac_c" 1>&6
8892 ac_save_LIBS="$LIBS"
8894 cat > conftest.$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8897 /* Override any gcc2 internal prototype to avoid an error. */
8898 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */
8906 if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8908 eval "ac_cv_lib_$ac_lib_var=yes"
8910 echo "configure: failed program was:" >&5
8911 cat conftest.$ac_ext >&5
8913 eval "ac_cv_lib_$ac_lib_var=no"
8916 LIBS="$ac_save_LIBS"
8919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8920 echo "$ac_t""yes" 1>&6
8923 echo "$ac_t""no" 1>&6
8927 if test x$FDLIBS = x-lz; then
8928 cat >> confdefs.h <<\EOF
8936 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
8937 echo "configure:8938: checking for pthread_create in -lpthread" >&5
8938 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8940 echo $ac_n "(cached) $ac_c" 1>&6
8942 ac_save_LIBS="$LIBS"
8943 LIBS="-lpthread $LIBS"
8944 cat > conftest.$ac_ext <<EOF
8945 #line 8946 "configure"
8946 #include "confdefs.h"
8947 /* Override any gcc2 internal prototype to avoid an error. */
8948 /* We use char because int might match the return type of a gcc2
8949 builtin and then its argument prototype would still apply. */
8950 char pthread_create();
8956 if { (eval echo configure:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8958 eval "ac_cv_lib_$ac_lib_var=yes"
8960 echo "configure: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8963 eval "ac_cv_lib_$ac_lib_var=no"
8966 LIBS="$ac_save_LIBS"
8969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8970 echo "$ac_t""yes" 1>&6
8971 PTHREAD_LIB="-lpthread"
8973 echo "$ac_t""no" 1>&6
8974 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
8975 echo "configure:8976: checking for pthread_create in -lpthreads" >&5
8976 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
8977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
8980 ac_save_LIBS="$LIBS"
8981 LIBS="-lpthreads $LIBS"
8982 cat > conftest.$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8985 /* Override any gcc2 internal prototype to avoid an error. */
8986 /* We use char because int might match the return type of a gcc2
8987 builtin and then its argument prototype would still apply. */
8988 char pthread_create();
8994 if { (eval echo configure:8995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8996 eval "ac_cv_lib_$ac_lib_var=yes"
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9001 eval "ac_cv_lib_$ac_lib_var=no"
9004 LIBS="$ac_save_LIBS"
9007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9008 echo "$ac_t""yes" 1>&6
9009 PTHREAD_LIB="-lpthreads"
9011 echo "$ac_t""no" 1>&6
9012 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9013 echo "configure:9014: checking for pthread_create in -lc_r" >&5
9014 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9018 ac_save_LIBS="$LIBS"
9020 cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure"
9022 #include "confdefs.h"
9023 /* Override any gcc2 internal prototype to avoid an error. */
9024 /* We use char because int might match the return type of a gcc2
9025 builtin and then its argument prototype would still apply. */
9026 char pthread_create();
9032 if { (eval echo configure:9033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9034 eval "ac_cv_lib_$ac_lib_var=yes"
9036 echo "configure: failed program was:" >&5
9037 cat conftest.$ac_ext >&5
9039 eval "ac_cv_lib_$ac_lib_var=no"
9042 LIBS="$ac_save_LIBS"
9045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9046 echo "$ac_t""yes" 1>&6
9049 echo "$ac_t""no" 1>&6
9050 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9051 echo "configure:9052: checking for pthread_create" >&5
9052 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9058 /* System header to define __stub macros and hopefully few prototypes,
9059 which can conflict with char pthread_create(); below. */
9061 /* Override any gcc2 internal prototype to avoid an error. */
9062 /* We use char because int might match the return type of a gcc2
9063 builtin and then its argument prototype would still apply. */
9064 char pthread_create();
9068 /* The GNU C library defines this for functions which it implements
9069 to always fail with ENOSYS. Some functions are actually named
9070 something starting with __ and the normal name is an alias. */
9071 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9079 if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9081 eval "ac_cv_func_pthread_create=yes"
9083 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 eval "ac_cv_func_pthread_create=no"
9091 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9092 echo "$ac_t""yes" 1>&6
9095 echo "$ac_t""no" 1>&6
9109 cat >> confdefs.h <<\EOF
9116 LDFLAGS=${LDFLAGS--O}
9117 DB_LIBS="${SQL_LFLAGS}"
9119 CPPFLAGS="$CPPFLAGS"
9139 # Finally we set appropriate distribution specific
9140 # variables and defaults
9142 # PFILES are platform specific files
9143 PFILES="platforms/Makefile"
9150 PTHREAD_LIB="-lpthread -lexc"
9151 if test "${CC}" = "gcc" ; then
9158 TAPEDRIVE="/dev/nrmt0"
9161 DISTVER=`uname -a |awk '{print $3}'`
9162 TAPEDRIVE="/dev/nrst0"
9165 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
9166 TAPEDRIVE="/dev/nrst0"
9167 PSCMD="ps -e -o pid,command"
9168 hostname=`hostname -s`
9171 DISTVER=`uname -a |awk '{print $3}'`
9172 TAPEDRIVE="/dev/nrst0"
9174 CFLAGS="${CFLAGS} -mwindows"
9175 LDFLAGS="${LDFLAGS} -mwindows"
9178 DISTVER=`cat /etc/debian_version`
9179 TAPEDRIVE="/dev/nrst0"
9180 PSCMD="ps -e -o pid,command"
9181 hostname=`hostname -s`
9184 DISTVER=`uname -a |awk '{print $3}'`
9185 PTHREAD_LIB="-pthread"
9186 CFLAGS="${CFLAGS} -pthread"
9189 TAPEDRIVE="/dev/nrst0"
9190 PSCMD="ps -x -o pid,command"
9192 platforms/freebsd/Makefile \
9193 platforms/freebsd/bacula-fd \
9194 platforms/freebsd/bacula-sd \
9195 platforms/freebsd/bacula-dir"
9196 hostname=`hostname -s`
9197 largefile_support="yes"
9201 TAPEDRIVE="/dev/rmt/0hnb"
9205 TAPEDRIVE="/dev/rmt/0cbn"
9206 PSCMD="ps -e -o pid,comm"
9207 hostname=`/usr/bsd/hostname -s`
9209 platforms/irix/Makefile \
9210 platforms/irix/bacula-fd \
9211 platforms/irix/bacula-sd \
9212 platforms/irix/bacula-dir"
9215 DISTVER=`uname -a |awk '{print $3}'`
9218 TAPEDRIVE="/dev/nrst0"
9219 PSCMD="ps -a -o pid,command"
9220 PTHREAD_LIB="-pthread"
9221 CFLAGS="${CFLAGS} -pthread"
9224 DISTVER=`uname -a |awk '{print $3}'`
9227 TAPEDRIVE="/dev/nrst0"
9228 PSCMD="ps -a -o pid,command"
9229 PTHREAD_LIB="-pthread"
9230 CFLAGS="${CFLAGS} -pthread"
9232 platforms/openbsd/Makefile \
9233 platforms/openbsd/bacula-fd \
9234 platforms/openbsd/bacula-sd \
9235 platforms/openbsd/bacula-dir"
9238 DISTVER=`cat /etc/redhat-release | grep release |\
9240 TAPEDRIVE="/dev/nst0"
9241 PSCMD="ps -e -o pid,command"
9243 platforms/redhat/Makefile \
9244 platforms/redhat/bacula-fd \
9245 platforms/redhat/bacula-sd \
9246 platforms/redhat/bacula-dir"
9247 hostname=`hostname -s`
9250 DISTVER=`cat /etc/slackware-version`
9251 TAPEDRIVE="/dev/nst0"
9252 PSCMD="ps -e -o pid,command"
9253 hostname=`hostname -s`
9257 TAPEDRIVE="/dev/rmt/0cbn"
9258 PSCMD="ps -e -o pid,comm"
9260 platforms/solaris/Makefile \
9261 platforms/solaris/bacula-fd \
9262 platforms/solaris/bacula-sd \
9263 platforms/solaris/bacula-dir"
9266 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9268 TAPEDRIVE="/dev/nst0"
9269 PSCMD="ps -e -o pid,command"
9270 hostname=`hostname -s`
9275 TAPEDRIVE="/dev/nst0"
9276 PSCMD="ps -e -o pid,command"
9277 hostname=`hostname -s`
9281 TAPEDRIVE="/dev/nst0"
9284 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9291 LIBS="$PTHREAD_LIB $LIBS"
9293 cat >> confdefs.h <<EOF
9297 cat >> confdefs.h <<EOF
9308 MCOMMON=./autoconf/Make.common
9312 cat > confcache <<\EOF
9313 # This file is a shell script that caches the results of configure
9314 # tests run on this system so they can be shared between configure
9315 # scripts and configure runs. It is not useful on other systems.
9316 # If it contains results you don't want to keep, you may remove or edit it.
9318 # By default, configure uses ./config.cache as the cache file,
9319 # creating it if it does not exist already. You can give configure
9320 # the --cache-file=FILE option to use a different cache file; that is
9321 # what configure does when it calls configure scripts in
9322 # subdirectories, so they share the cache.
9323 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9324 # config.status only pays attention to the cache file if you give it the
9325 # --recheck option to rerun configure.
9328 # The following way of writing the cache mishandles newlines in values,
9329 # but we know of no workaround that is simple, portable, and efficient.
9330 # So, don't put newlines in cache variables' values.
9331 # Ultrix sh set writes to stderr and can't be redirected directly,
9332 # and sets the high bit in the cache file unless we assign to the vars.
9334 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9336 # `set' does not quote correctly, so add quotes (double-quote substitution
9337 # turns \\\\ into \\, and sed turns \\ into \).
9339 -e "s/'/'\\\\''/g" \
9340 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9343 # `set' quotes correctly as required by POSIX, so do not add quotes.
9344 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9347 if cmp -s $cache_file confcache; then
9350 if test -w $cache_file; then
9351 echo "updating cache $cache_file"
9352 cat confcache > $cache_file
9354 echo "not updating unwritable cache $cache_file"
9359 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9362 # Let make expand exec_prefix.
9363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9365 # Any assignment to VPATH causes Sun make to only execute
9366 # the first set of double-colon rules, so remove it if not needed.
9367 # If there is a colon in the path, we need to keep it.
9368 if test "x$srcdir" = x.; then
9369 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9372 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9374 DEFS=-DHAVE_CONFIG_H
9376 # Without the "./", some shells look in PATH for config.status.
9377 : ${CONFIG_STATUS=./config.status}
9379 echo creating $CONFIG_STATUS
9380 rm -f $CONFIG_STATUS
9381 cat > $CONFIG_STATUS <<EOF
9383 # Generated automatically by configure.
9384 # Run this file to recreate the current configuration.
9385 # This directory was configured as follows,
9386 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9388 # $0 $ac_configure_args
9390 # Compiler output produced by configure, useful for debugging
9391 # configure, is in ./config.log if it exists.
9393 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9396 case "\$ac_option" in
9397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9398 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9399 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9400 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9401 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9403 -help | --help | --hel | --he | --h)
9404 echo "\$ac_cs_usage"; exit 0 ;;
9405 *) echo "\$ac_cs_usage"; exit 1 ;;
9409 ac_given_srcdir=$srcdir
9410 ac_given_INSTALL="$INSTALL"
9412 trap 'rm -fr `echo "autoconf/Make.common \
9414 scripts/startmysql \
9416 scripts/btraceback \
9426 src/console/Makefile \
9427 src/console/console.conf \
9428 src/gnome-console/Makefile \
9429 src/gnome-console/gnome-console.conf \
9431 src/dird/bacula-dir.conf \
9433 src/stored/Makefile \
9434 src/stored/bacula-sd.conf \
9435 src/filed/Makefile \
9437 src/filed/bacula-fd.conf \
9438 src/filed/win32/Makefile \
9440 src/cats/alter_mysql_tables \
9441 src/cats/make_mysql_tables \
9442 src/cats/drop_mysql_tables \
9443 src/cats/create_mysql_database \
9444 src/cats/grant_mysql_privileges \
9445 src/cats/alter_sqlite_tables \
9446 src/cats/make_sqlite_tables \
9447 src/cats/drop_sqlite_tables \
9448 src/cats/create_sqlite_database \
9451 src/cats/create_bdb_database \
9452 src/cats/make_bdb_tables \
9453 src/cats/drop_bdb_tables \
9454 src/cats/make_bacula_tables \
9455 src/cats/drop_bacula_tables \
9456 src/findlib/Makefile \
9457 src/tools/Makefile \
9458 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9460 cat >> $CONFIG_STATUS <<EOF
9462 # Protect against being on the right side of a sed subst in config.status.
9463 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9464 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9468 s%@CFLAGS@%$CFLAGS%g
9469 s%@CPPFLAGS@%$CPPFLAGS%g
9470 s%@CXXFLAGS@%$CXXFLAGS%g
9471 s%@FFLAGS@%$FFLAGS%g
9473 s%@LDFLAGS@%$LDFLAGS%g
9475 s%@exec_prefix@%$exec_prefix%g
9476 s%@prefix@%$prefix%g
9477 s%@program_transform_name@%$program_transform_name%g
9478 s%@bindir@%$bindir%g
9479 s%@sbindir@%$sbindir%g
9480 s%@libexecdir@%$libexecdir%g
9481 s%@datadir@%$datadir%g
9482 s%@sysconfdir@%$sysconfdir%g
9483 s%@sharedstatedir@%$sharedstatedir%g
9484 s%@localstatedir@%$localstatedir%g
9485 s%@libdir@%$libdir%g
9486 s%@includedir@%$includedir%g
9487 s%@oldincludedir@%$oldincludedir%g
9488 s%@infodir@%$infodir%g
9489 s%@mandir@%$mandir%g
9490 s%@BUILD_DIR@%$BUILD_DIR%g
9491 s%@TRUEPRG@%$TRUEPRG%g
9492 s%@FALSEPRG@%$FALSEPRG%g
9494 s%@host_alias@%$host_alias%g
9495 s%@host_cpu@%$host_cpu%g
9496 s%@host_vendor@%$host_vendor%g
9497 s%@host_os@%$host_os%g
9498 s%@VERSION@%$VERSION%g
9500 s%@LSMDATE@%$LSMDATE%g
9504 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9505 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9506 s%@INSTALL_DATA@%$INSTALL_DATA%g
9507 s%@RANLIB@%$RANLIB%g
9517 s%@OPENSSL@%$OPENSSL%g
9518 s%@ARFLAGS@%$ARFLAGS%g
9519 s%@MAKE_SHELL@%$MAKE_SHELL%g
9520 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9521 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9522 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9523 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9524 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9525 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9526 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9527 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9528 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9529 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9530 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9531 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9532 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9533 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9534 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9535 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9536 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9537 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9538 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9539 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9540 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9541 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9542 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9543 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9544 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
9545 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
9546 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9547 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9548 s%@MSGFMT@%$MSGFMT%g
9549 s%@GNOME_LIBS@%$GNOME_LIBS%g
9550 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9551 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9552 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9553 s%@ZVT_LIBS@%$ZVT_LIBS%g
9554 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9555 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9556 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9557 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9558 s%@ORBIT_IDL@%$ORBIT_IDL%g
9559 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9560 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9561 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9562 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9563 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9564 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9565 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9566 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9567 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9568 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9569 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9570 s%@GNOME_DIR@%$GNOME_DIR%g
9571 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
9572 s%@FD_LDFLAGS@%$FD_LDFLAGS%g
9573 s%@SD_LDFLAGS@%$SD_LDFLAGS%g
9574 s%@DIR_LDFLAGS@%$DIR_LDFLAGS%g
9575 s%@CONS_INC@%$CONS_INC%g
9576 s%@CONS_LIBS@%$CONS_LIBS%g
9577 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9578 s%@READLINE_SRC@%$READLINE_SRC%g
9579 s%@working_dir@%$working_dir%g
9580 s%@dump_email@%$dump_email%g
9581 s%@job_email@%$job_email%g
9582 s%@smtp_host@%$smtp_host%g
9583 s%@piddir@%$piddir%g
9584 s%@subsysdir@%$subsysdir%g
9585 s%@baseport@%$baseport%g
9586 s%@dir_port@%$dir_port%g
9587 s%@fd_port@%$fd_port%g
9588 s%@sd_port@%$sd_port%g
9589 s%@dir_password@%$dir_password%g
9590 s%@fd_password@%$fd_password%g
9591 s%@sd_password@%$sd_password%g
9592 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9593 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9594 s%@SQL_BINDIR@%$SQL_BINDIR%g
9596 s%@DB_NAME@%$DB_NAME%g
9597 s%@EXEEXT@%$EXEEXT%g
9599 s%@build_alias@%$build_alias%g
9600 s%@build_cpu@%$build_cpu%g
9601 s%@build_vendor@%$build_vendor%g
9602 s%@build_os@%$build_os%g
9603 s%@GETCONF@%$GETCONF%g
9604 s%@X_CFLAGS@%$X_CFLAGS%g
9605 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9606 s%@X_LIBS@%$X_LIBS%g
9607 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9608 s%@LIBOBJS@%$LIBOBJS%g
9609 s%@ALLOCA@%$ALLOCA%g
9610 s%@FDLIBS@%$FDLIBS%g
9612 s%@DINCLUDE@%$DINCLUDE%g
9614 s%@DB_LIBS@%$DB_LIBS%g
9615 s%@OBJLIST@%$OBJLIST%g
9616 s%@hostname@%$hostname%g
9617 s%@TAPEDRIVE@%$TAPEDRIVE%g
9620 s%@DISTNAME@%$DISTNAME%g
9621 s%@DISTVER@%$DISTVER%g
9622 /@MCOMMON@/r $MCOMMON
9628 cat >> $CONFIG_STATUS <<\EOF
9630 # Split the substitutions into bite-sized pieces for seds with
9631 # small command number limits, like on Digital OSF/1 and HP-UX.
9632 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9633 ac_file=1 # Number of current file.
9634 ac_beg=1 # First line for current file.
9635 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9638 while $ac_more_lines; do
9639 if test $ac_beg -gt 1; then
9640 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9642 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9644 if test ! -s conftest.s$ac_file; then
9646 rm -f conftest.s$ac_file
9648 if test -z "$ac_sed_cmds"; then
9649 ac_sed_cmds="sed -f conftest.s$ac_file"
9651 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9653 ac_file=`expr $ac_file + 1`
9655 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9658 if test -z "$ac_sed_cmds"; then
9663 cat >> $CONFIG_STATUS <<EOF
9665 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9667 scripts/startmysql \
9669 scripts/btraceback \
9679 src/console/Makefile \
9680 src/console/console.conf \
9681 src/gnome-console/Makefile \
9682 src/gnome-console/gnome-console.conf \
9684 src/dird/bacula-dir.conf \
9686 src/stored/Makefile \
9687 src/stored/bacula-sd.conf \
9688 src/filed/Makefile \
9690 src/filed/bacula-fd.conf \
9691 src/filed/win32/Makefile \
9693 src/cats/alter_mysql_tables \
9694 src/cats/make_mysql_tables \
9695 src/cats/drop_mysql_tables \
9696 src/cats/create_mysql_database \
9697 src/cats/grant_mysql_privileges \
9698 src/cats/alter_sqlite_tables \
9699 src/cats/make_sqlite_tables \
9700 src/cats/drop_sqlite_tables \
9701 src/cats/create_sqlite_database \
9704 src/cats/create_bdb_database \
9705 src/cats/make_bdb_tables \
9706 src/cats/drop_bdb_tables \
9707 src/cats/make_bacula_tables \
9708 src/cats/drop_bacula_tables \
9709 src/findlib/Makefile \
9710 src/tools/Makefile \
9713 cat >> $CONFIG_STATUS <<\EOF
9714 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9717 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9718 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9719 *) ac_file_in="${ac_file}.in" ;;
9722 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9724 # Remove last slash and all that follows it. Not all systems have dirname.
9725 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9726 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9727 # The file is in a subdirectory.
9728 test ! -d "$ac_dir" && mkdir "$ac_dir"
9729 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9730 # A "../" for each directory in $ac_dir_suffix.
9731 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9733 ac_dir_suffix= ac_dots=
9736 case "$ac_given_srcdir" in
9738 if test -z "$ac_dots"; then top_srcdir=.
9739 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9740 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9742 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9743 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9746 case "$ac_given_INSTALL" in
9747 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9748 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9751 echo creating "$ac_file"
9753 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9755 *Makefile*) ac_comsub="1i\\
9756 # $configure_input" ;;
9760 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9762 s%@configure_input@%$configure_input%g
9763 s%@srcdir@%$srcdir%g
9764 s%@top_srcdir@%$top_srcdir%g
9765 s%@INSTALL@%$INSTALL%g
9766 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9773 # ac_d sets the value in "#define NAME VALUE" lines.
9774 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9775 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9778 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9779 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9780 ac_uB='\([ ]\)%\1#\2define\3'
9783 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9784 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9785 ac_eB='$%\1#\2define\3'
9789 if test "${CONFIG_HEADERS+set}" != set; then
9791 cat >> $CONFIG_STATUS <<EOF
9792 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9794 cat >> $CONFIG_STATUS <<\EOF
9796 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9799 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9800 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9801 *) ac_file_in="${ac_file}.in" ;;
9804 echo creating $ac_file
9806 rm -f conftest.frag conftest.in conftest.out
9807 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9808 cat $ac_file_inputs > conftest.in
9812 # Transform confdefs.h into a sed script conftest.vals that substitutes
9813 # the proper values into config.h.in to produce config.h. And first:
9814 # Protect against being on the right side of a sed subst in config.status.
9815 # Protect against being in an unquoted here document in config.status.
9817 cat > conftest.hdr <<\EOF
9820 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9824 sed -n -f conftest.hdr confdefs.h > conftest.vals
9827 # This sed command replaces #undef with comments. This is necessary, for
9828 # example, in the case of _POSIX_SOURCE, which is predefined and required
9829 # on some systems where configure will not decide to define it.
9830 cat >> conftest.vals <<\EOF
9831 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9834 # Break up conftest.vals because some shells have a limit on
9835 # the size of here documents, and old seds have small limits too.
9840 ac_lines=`grep -c . conftest.vals`
9841 # grep -c gives empty output for an empty file on some AIX systems.
9842 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9843 # Write a limited-size here document to conftest.frag.
9844 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9845 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9847 sed -f conftest.frag conftest.in > conftest.out
9849 mv conftest.out conftest.in
9851 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9853 mv conftest.tail conftest.vals
9857 cat >> $CONFIG_STATUS <<\EOF
9858 rm -f conftest.frag conftest.h
9859 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9860 cat conftest.in >> conftest.h
9862 if cmp -s $ac_file conftest.h 2>/dev/null; then
9863 echo "$ac_file is unchanged"
9866 # Remove last slash and all that follows it. Not all systems have dirname.
9867 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9869 # The file is in a subdirectory.
9870 test ! -d "$ac_dir" && mkdir "$ac_dir"
9873 mv conftest.h $ac_file
9878 cat >> $CONFIG_STATUS <<EOF
9881 cat >> $CONFIG_STATUS <<\EOF
9882 (echo "Doing make of dependencies"; make depend;)
9886 chmod +x $CONFIG_STATUS
9887 rm -fr confdefs* $ac_clean_files
9888 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9892 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
9893 chmod 755 console gconsole
9895 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
9896 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
9897 chmod 755 src/cats/create_mysql_database
9898 chmod 755 src/cats/alter_mysql_tables
9899 chmod 755 src/cats/grant_mysql_privileges
9900 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
9901 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
9902 chmod 755 src/cats/create_sqlite_database
9903 chmod 755 src/cats/alter_sqlite_tables
9904 chmod 755 src/cats/sqlite
9905 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
9906 chmod 755 src/cats/create_bdb_database
9908 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
9909 largefile_support="yes"
9914 Configuration on `date`:
9916 Host: $host -- ${DISTNAME} ${DISTVER}
9917 Bacula version: ${VERSION} (${DATE})
9918 Source code location: ${srcdir}
9919 Install binaries: ${sbindir}
9920 Install config files: ${sysconfdir}
9922 C++ Compiler: ${CXX}
9923 Compiler flags: ${CFLAGS}
9924 Linker flags: ${LDFLAGS}
9926 Statically Linked Tools: ${support_static_tools}
9927 Statically Linked FD: ${support_static_fd}
9928 Database type: ${db_name}
9929 Database lib: ${DB_LIBS}
9931 Job Output Email: ${job_email}
9932 Traceback Email: ${dump_email}
9933 SMTP Host Address: ${smtp_host}
9934 Director Port ${dir_port}
9935 File daemon Port ${fd_port}
9936 Storage daemon Port ${sd_port}
9937 Working directory ${working_dir}
9938 SQL binaries Directory ${SQL_BINDIR}
9940 Large file support: $largefile_support
9941 readline support: ${got_readline} ${PRTREADLINE_SRC}
9942 TCP Wrappers support: ${TCPW_MSG}
9943 ZLIB support: ${have_zlib}
9944 enable-smartalloc: ${support_smartalloc}
9945 enable-gnome: ${support_gnome}
9952 # cweb support: ${got_cweb} ${CWEB_SRC}
9953 # gmp support: ${got_gmp} ${GMP_SRC}