3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-everything enable standard non-multichoice features: marked *"
17 --enable-gnome enable build of gnome-console GUI *"
19 --with-gnome-includes Specify location of GNOME headers"
21 --with-gnome-libs Specify location of GNOME libs"
23 --with-gnome Specify prefix for GNOME files"
25 --enable-smartalloc enable smartalloc debugging support *"
27 --enable-static-tools enable static tape tools *"
29 --disable-readline disable readline support "
31 --with-readline[=DIR] Specify readline library directory"
33 --with-tcp-wrappers=DIR Enable tcpwrappers support"
35 --with-working-dir=PATH Specify location of Bacula working files"
37 --with-dump-email=Dump email address"
39 --with-job-email=Job output email address"
41 --with-smtp-host=SMTP mail host address"
43 --with-pid-dir=PATH Specify location of Bacula pid files"
45 --with-subsys-dir=PATH Specify location of Bacula subsys file"
47 --with-baseport=PORT Specify base port address for daemons"
49 --with-dir-password=PASSWORD Specify Director's password"
51 --with-fd-password=PASSWORD Specify Client's password"
53 --with-sd-password=PASSWORD Specify Storage daemon's password"
56 Which one DBMS do you want to use (please select only one):
57 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
58 install directory, default is to search through
59 a number of common places for the MySQL files."
62 Which one DBMS do you want to use (please select only one):
63 --with-embedded-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-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
70 install directory, default is to search through
71 a number of common places for the SQLite files."
73 --disable-largefile omit support for large files"
75 --with-x use the X Window System"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file=./config.cache
90 program_transform_name=s,x,x,
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=src/version.h
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='\c' ac_t=
592 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
593 if test -f $ac_dir/install-sh; then
595 ac_install_sh="$ac_aux_dir/install-sh -c"
597 elif test -f $ac_dir/install.sh; then
599 ac_install_sh="$ac_aux_dir/install.sh -c"
603 if test -z "$ac_aux_dir"; then
604 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
606 ac_config_guess=$ac_aux_dir/config.guess
607 ac_config_sub=$ac_aux_dir/config.sub
608 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
617 # Extract the first word of "$ac_prog", so it can be a program name with args.
618 set dummy $ac_prog; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
626 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
629 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
634 for ac_dir in $ac_dummy; do
635 test -z "$ac_dir" && ac_dir=.
636 if test -f $ac_dir/$ac_word; then
637 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
645 TRUEPRG="$ac_cv_path_TRUEPRG"
646 if test -n "$TRUEPRG"; then
647 echo "$ac_t""$TRUEPRG" 1>&6
649 echo "$ac_t""no" 1>&6
652 test -n "$TRUEPRG" && break
654 test -n "$TRUEPRG" || TRUEPRG=":"
658 # Extract the first word of "$ac_prog", so it can be a program name with args.
659 set dummy $ac_prog; ac_word=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
667 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
670 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
675 for ac_dir in $ac_dummy; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
686 FALSEPRG="$ac_cv_path_FALSEPRG"
687 if test -n "$FALSEPRG"; then
688 echo "$ac_t""$FALSEPRG" 1>&6
690 echo "$ac_t""no" 1>&6
693 test -n "$FALSEPRG" && break
695 test -n "$FALSEPRG" || FALSEPRG=":"
699 # Make sure we can run config.sub.
700 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
701 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
704 echo $ac_n "checking host system type""... $ac_c" 1>&6
705 echo "configure:706: checking host system type" >&5
708 case "$host_alias" in
712 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
713 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
715 *) host_alias=$nonopt ;;
719 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
720 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
721 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
722 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
723 echo "$ac_t""$host" 1>&6
726 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
727 DATE=`sed -n -e 's/^.* \t*DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
728 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
729 echo "configuring for bacula $VERSION ($DATE)"
733 # Extract the first word of "gcc", so it can be a program name with args.
734 set dummy gcc; ac_word=$2
735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
736 echo "configure:737: checking for $ac_word" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 if test -n "$CC"; then
741 ac_cv_prog_CC="$CC" # Let the user override the test.
743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
745 for ac_dir in $ac_dummy; do
746 test -z "$ac_dir" && ac_dir=.
747 if test -f $ac_dir/$ac_word; then
756 if test -n "$CC"; then
757 echo "$ac_t""$CC" 1>&6
759 echo "$ac_t""no" 1>&6
762 if test -z "$CC"; then
763 # Extract the first word of "cc", so it can be a program name with args.
764 set dummy cc; ac_word=$2
765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
766 echo "configure:767: checking for $ac_word" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 if test -n "$CC"; then
771 ac_cv_prog_CC="$CC" # Let the user override the test.
773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
776 for ac_dir in $ac_dummy; do
777 test -z "$ac_dir" && ac_dir=.
778 if test -f $ac_dir/$ac_word; then
779 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
788 if test $ac_prog_rejected = yes; then
789 # We found a bogon in the path, so make sure we never use it.
790 set dummy $ac_cv_prog_CC
792 if test $# -gt 0; then
793 # We chose a different compiler from the bogus one.
794 # However, it has the same basename, so the bogon will be chosen
795 # first if we set CC to just the basename; use the full file name.
797 set dummy "$ac_dir/$ac_word" "$@"
805 if test -n "$CC"; then
806 echo "$ac_t""$CC" 1>&6
808 echo "$ac_t""no" 1>&6
811 if test -z "$CC"; then
814 # Extract the first word of "cl", so it can be a program name with args.
815 set dummy cl; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 if test -n "$CC"; then
822 ac_cv_prog_CC="$CC" # Let the user override the test.
824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
826 for ac_dir in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir=.
828 if test -f $ac_dir/$ac_word; then
837 if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
840 echo "$ac_t""no" 1>&6
845 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
848 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
849 echo "configure:850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
853 ac_cpp='$CPP $CPPFLAGS'
854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
856 cross_compiling=$ac_cv_prog_cc_cross
858 cat > conftest.$ac_ext << EOF
860 #line 861 "configure"
861 #include "confdefs.h"
865 if { (eval echo configure:866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
866 ac_cv_prog_cc_works=yes
867 # If we can't run a trivial program, we are probably using a cross compiler.
868 if (./conftest; exit) 2>/dev/null; then
869 ac_cv_prog_cc_cross=no
871 ac_cv_prog_cc_cross=yes
874 echo "configure: failed program was:" >&5
875 cat conftest.$ac_ext >&5
876 ac_cv_prog_cc_works=no
880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
881 ac_cpp='$CPP $CPPFLAGS'
882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
884 cross_compiling=$ac_cv_prog_cc_cross
886 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
887 if test $ac_cv_prog_cc_works = no; then
888 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
890 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
891 echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
892 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
893 cross_compiling=$ac_cv_prog_cc_cross
895 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
896 echo "configure:897: checking whether we are using GNU C" >&5
897 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 cat > conftest.c <<EOF
905 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
912 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
914 if test $ac_cv_prog_gcc = yes; then
920 ac_test_CFLAGS="${CFLAGS+set}"
921 ac_save_CFLAGS="$CFLAGS"
923 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
924 echo "configure:925: checking whether ${CC-cc} accepts -g" >&5
925 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
926 echo $ac_n "(cached) $ac_c" 1>&6
928 echo 'void f(){}' > conftest.c
929 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
938 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
939 if test "$ac_test_CFLAGS" = set; then
940 CFLAGS="$ac_save_CFLAGS"
941 elif test $ac_cv_prog_cc_g = yes; then
942 if test "$GCC" = yes; then
948 if test "$GCC" = yes; then
955 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
957 # Extract the first word of "$ac_prog", so it can be a program name with args.
958 set dummy $ac_prog; ac_word=$2
959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
960 echo "configure:961: checking for $ac_word" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 if test -n "$CXX"; then
965 ac_cv_prog_CXX="$CXX" # Let the user override the test.
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
969 for ac_dir in $ac_dummy; do
970 test -z "$ac_dir" && ac_dir=.
971 if test -f $ac_dir/$ac_word; then
972 ac_cv_prog_CXX="$ac_prog"
979 CXX="$ac_cv_prog_CXX"
980 if test -n "$CXX"; then
981 echo "$ac_t""$CXX" 1>&6
983 echo "$ac_t""no" 1>&6
986 test -n "$CXX" && break
988 test -n "$CXX" || CXX="gcc"
991 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
992 echo "configure:993: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
996 ac_cpp='$CXXCPP $CPPFLAGS'
997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
999 cross_compiling=$ac_cv_prog_cxx_cross
1001 cat > conftest.$ac_ext << EOF
1003 #line 1004 "configure"
1004 #include "confdefs.h"
1006 int main(){return(0);}
1008 if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1009 ac_cv_prog_cxx_works=yes
1010 # If we can't run a trivial program, we are probably using a cross compiler.
1011 if (./conftest; exit) 2>/dev/null; then
1012 ac_cv_prog_cxx_cross=no
1014 ac_cv_prog_cxx_cross=yes
1017 echo "configure: failed program was:" >&5
1018 cat conftest.$ac_ext >&5
1019 ac_cv_prog_cxx_works=no
1023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1024 ac_cpp='$CPP $CPPFLAGS'
1025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1027 cross_compiling=$ac_cv_prog_cc_cross
1029 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1030 if test $ac_cv_prog_cxx_works = no; then
1031 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1033 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1034 echo "configure:1035: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1035 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1036 cross_compiling=$ac_cv_prog_cxx_cross
1038 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether we are using GNU C++" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 cat > conftest.C <<EOF
1048 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1055 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1057 if test $ac_cv_prog_gxx = yes; then
1063 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1064 ac_save_CXXFLAGS="$CXXFLAGS"
1066 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1067 echo "configure:1068: checking whether ${CXX-g++} accepts -g" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 echo 'void f(){}' > conftest.cc
1072 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1073 ac_cv_prog_cxx_g=yes
1081 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1082 if test "$ac_test_CXXFLAGS" = set; then
1083 CXXFLAGS="$ac_save_CXXFLAGS"
1084 elif test $ac_cv_prog_cxx_g = yes; then
1085 if test "$GXX" = yes; then
1091 if test "$GXX" = yes; then
1098 for ac_declaration in \
1100 '#include <stdlib.h>' \
1101 'extern "C" void std::exit (int) throw (); using std::exit;' \
1102 'extern "C" void std::exit (int); using std::exit;' \
1103 'extern "C" void exit (int) throw ();' \
1104 'extern "C" void exit (int);' \
1107 cat > conftest.$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1116 if { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1119 echo "configure: failed program was:" >&5
1120 cat conftest.$ac_ext >&5
1125 cat > conftest.$ac_ext <<EOF
1126 #line 1127 "configure"
1127 #include "confdefs.h"
1133 if { (eval echo configure:1134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
1142 if test -n "$ac_declaration"; then
1143 echo '#ifdef __cplusplus' >>confdefs.h
1144 echo $ac_declaration >>confdefs.h
1145 echo '#endif' >>confdefs.h
1149 if test "x$CC" != xcc; then
1150 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether $CC and cc understand -c and -o together" >&5
1153 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether cc understands -c and -o together" >&5
1156 set dummy $CC; ac_cc="`echo $2 |
1157 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1158 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 echo 'foo(){}' > conftest.c
1162 # Make sure it works both with $CC and with simple cc.
1163 # We do the test twice because some compilers refuse to overwrite an
1164 # existing .o file with -o, though they will create one.
1165 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1166 if { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1167 test -f conftest.o && { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1169 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1170 if test "x$CC" != xcc; then
1171 # Test first that cc exists at all.
1172 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1173 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1174 if { (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1175 test -f conftest.o && { (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1180 # cc exists but doesn't like -o.
1181 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1186 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1191 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1192 echo "$ac_t""yes" 1>&6
1194 echo "$ac_t""no" 1>&6
1195 cat >> confdefs.h <<\EOF
1196 #define NO_MINUS_C_MINUS_O 1
1200 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1201 echo "configure:1202: checking how to run the C preprocessor" >&5
1202 # On Suns, sometimes $CPP names a directory.
1203 if test -n "$CPP" && test -d "$CPP"; then
1206 if test -z "$CPP"; then
1207 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 # This must be in double quotes, not single quotes, because CPP may get
1211 # substituted into the Makefile and "${CC-cc}" will confuse make.
1213 # On the NeXT, cc -E runs the code through the compiler's parser,
1214 # not just through cpp.
1215 cat > conftest.$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1222 { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1224 if test -z "$ac_err"; then
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1231 CPP="${CC-cc} -E -traditional-cpp"
1232 cat > conftest.$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1239 { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1241 if test -z "$ac_err"; then
1245 echo "configure: failed program was:" >&5
1246 cat conftest.$ac_ext >&5
1248 CPP="${CC-cc} -nologo -E"
1249 cat > conftest.$ac_ext <<EOF
1250 #line 1251 "configure"
1251 #include "confdefs.h"
1255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1256 { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1258 if test -z "$ac_err"; then
1262 echo "configure: failed program was:" >&5
1263 cat conftest.$ac_ext >&5
1272 ac_cv_prog_CPP="$CPP"
1274 CPP="$ac_cv_prog_CPP"
1276 ac_cv_prog_CPP="$CPP"
1278 echo "$ac_t""$CPP" 1>&6
1280 if test $ac_cv_prog_gcc = yes; then
1281 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether ${CC-cc} needs -traditional" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 ac_pattern="Autoconf.*'x'"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1294 egrep "$ac_pattern" >/dev/null 2>&1; then
1296 ac_cv_prog_gcc_traditional=yes
1299 ac_cv_prog_gcc_traditional=no
1304 if test $ac_cv_prog_gcc_traditional = no; then
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1312 egrep "$ac_pattern" >/dev/null 2>&1; then
1314 ac_cv_prog_gcc_traditional=yes
1321 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1322 if test $ac_cv_prog_gcc_traditional = yes; then
1323 CC="$CC -traditional"
1329 cat >> confdefs.h <<\EOF
1335 # Find a good install program. We prefer a C program (faster),
1336 # so one script is as good as another. But avoid the broken or
1337 # incompatible versions:
1338 # SysV /etc/install, /usr/sbin/install
1339 # SunOS /usr/etc/install
1340 # IRIX /sbin/install
1342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1345 # ./install, which can be erroneously created by make from ./install.sh.
1346 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1347 echo "configure:1348: checking for a BSD compatible install" >&5
1348 if test -z "$INSTALL"; then
1349 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1353 for ac_dir in $PATH; do
1354 # Account for people who put trailing slashes in PATH elements.
1356 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1358 # OSF1 and SCO ODT 3.0 have their own names for install.
1359 # Don't use installbsd from OSF since it installs stuff as root
1361 for ac_prog in ginstall scoinst install; do
1362 if test -f $ac_dir/$ac_prog; then
1363 if test $ac_prog = install &&
1364 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1365 # AIX install. It has an incompatible calling convention.
1368 ac_cv_path_install="$ac_dir/$ac_prog -c"
1379 if test "${ac_cv_path_install+set}" = set; then
1380 INSTALL="$ac_cv_path_install"
1382 # As a last resort, use the slow shell script. We don't cache a
1383 # path for INSTALL within a source directory, because that will
1384 # break other packages using the cache if that directory is
1385 # removed, or if the path is relative.
1386 INSTALL="$ac_install_sh"
1389 echo "$ac_t""$INSTALL" 1>&6
1391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1392 # It thinks the first close brace ends the variable substitution.
1393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1399 # Extract the first word of "ranlib", so it can be a program name with args.
1400 set dummy ranlib; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 if test -n "$RANLIB"; then
1407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_RANLIB="ranlib"
1419 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1422 RANLIB="$ac_cv_prog_RANLIB"
1423 if test -n "$RANLIB"; then
1424 echo "$ac_t""$RANLIB" 1>&6
1426 echo "$ac_t""no" 1>&6
1429 # Extract the first word of "mv", so it can be a program name with args.
1430 set dummy mv; ac_word=$2
1431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1432 echo "configure:1433: checking for $ac_word" >&5
1433 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1438 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1441 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1446 for ac_dir in $ac_dummy; do
1447 test -z "$ac_dir" && ac_dir=.
1448 if test -f $ac_dir/$ac_word; then
1449 ac_cv_path_MV="$ac_dir/$ac_word"
1454 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1459 if test -n "$MV"; then
1460 echo "$ac_t""$MV" 1>&6
1462 echo "$ac_t""no" 1>&6
1465 # Extract the first word of "rm", so it can be a program name with args.
1466 set dummy rm; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1474 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1477 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_path_RM="$ac_dir/$ac_word"
1490 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1495 if test -n "$RM"; then
1496 echo "$ac_t""$RM" 1>&6
1498 echo "$ac_t""no" 1>&6
1501 # Extract the first word of "cp", so it can be a program name with args.
1502 set dummy cp; ac_word=$2
1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1504 echo "configure:1505: checking for $ac_word" >&5
1505 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1510 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1513 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1518 for ac_dir in $ac_dummy; do
1519 test -z "$ac_dir" && ac_dir=.
1520 if test -f $ac_dir/$ac_word; then
1521 ac_cv_path_CP="$ac_dir/$ac_word"
1526 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1531 if test -n "$CP"; then
1532 echo "$ac_t""$CP" 1>&6
1534 echo "$ac_t""no" 1>&6
1537 # Extract the first word of "sed", so it can be a program name with args.
1538 set dummy sed; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1546 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1549 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1554 for ac_dir in $ac_dummy; do
1555 test -z "$ac_dir" && ac_dir=.
1556 if test -f $ac_dir/$ac_word; then
1557 ac_cv_path_SED="$ac_dir/$ac_word"
1562 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1566 SED="$ac_cv_path_SED"
1567 if test -n "$SED"; then
1568 echo "$ac_t""$SED" 1>&6
1570 echo "$ac_t""no" 1>&6
1573 # Extract the first word of "awk", so it can be a program name with args.
1574 set dummy awk; ac_word=$2
1575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1576 echo "configure:1577: checking for $ac_word" >&5
1577 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1582 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1585 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1590 for ac_dir in $ac_dummy; do
1591 test -z "$ac_dir" && ac_dir=.
1592 if test -f $ac_dir/$ac_word; then
1593 ac_cv_path_AWK="$ac_dir/$ac_word"
1598 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1602 AWK="$ac_cv_path_AWK"
1603 if test -n "$AWK"; then
1604 echo "$ac_t""$AWK" 1>&6
1606 echo "$ac_t""no" 1>&6
1609 # Extract the first word of "echo", so it can be a program name with args.
1610 set dummy echo; ac_word=$2
1611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1612 echo "configure:1613: checking for $ac_word" >&5
1613 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1618 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1621 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1626 for ac_dir in $ac_dummy; do
1627 test -z "$ac_dir" && ac_dir=.
1628 if test -f $ac_dir/$ac_word; then
1629 ac_cv_path_ECHO="$ac_dir/$ac_word"
1634 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1638 ECHO="$ac_cv_path_ECHO"
1639 if test -n "$ECHO"; then
1640 echo "$ac_t""$ECHO" 1>&6
1642 echo "$ac_t""no" 1>&6
1645 # Extract the first word of "cmp", so it can be a program name with args.
1646 set dummy cmp; ac_word=$2
1647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1648 echo "configure:1649: checking for $ac_word" >&5
1649 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1654 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1657 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1662 for ac_dir in $ac_dummy; do
1663 test -z "$ac_dir" && ac_dir=.
1664 if test -f $ac_dir/$ac_word; then
1665 ac_cv_path_CMP="$ac_dir/$ac_word"
1670 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1674 CMP="$ac_cv_path_CMP"
1675 if test -n "$CMP"; then
1676 echo "$ac_t""$CMP" 1>&6
1678 echo "$ac_t""no" 1>&6
1681 # Extract the first word of "tbl", so it can be a program name with args.
1682 set dummy tbl; ac_word=$2
1683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1684 echo "configure:1685: checking for $ac_word" >&5
1685 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1690 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1693 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1698 for ac_dir in $ac_dummy; do
1699 test -z "$ac_dir" && ac_dir=.
1700 if test -f $ac_dir/$ac_word; then
1701 ac_cv_path_TBL="$ac_dir/$ac_word"
1706 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1710 TBL="$ac_cv_path_TBL"
1711 if test -n "$TBL"; then
1712 echo "$ac_t""$TBL" 1>&6
1714 echo "$ac_t""no" 1>&6
1717 # Extract the first word of "ar", so it can be a program name with args.
1718 set dummy ar; ac_word=$2
1719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1720 echo "configure:1721: checking for $ac_word" >&5
1721 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1726 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1729 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1734 for ac_dir in $ac_dummy; do
1735 test -z "$ac_dir" && ac_dir=.
1736 if test -f $ac_dir/$ac_word; then
1737 ac_cv_path_AR="$ac_dir/$ac_word"
1742 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1747 if test -n "$AR"; then
1748 echo "$ac_t""$AR" 1>&6
1750 echo "$ac_t""no" 1>&6
1753 # Extract the first word of "ranlib", so it can be a program name with args.
1754 set dummy ranlib; ac_word=$2
1755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1756 echo "configure:1757: checking for $ac_word" >&5
1757 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1762 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1765 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1770 for ac_dir in $ac_dummy; do
1771 test -z "$ac_dir" && ac_dir=.
1772 if test -f $ac_dir/$ac_word; then
1773 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1778 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1782 RANLIB="$ac_cv_path_RANLIB"
1783 if test -n "$RANLIB"; then
1784 echo "$ac_t""$RANLIB" 1>&6
1786 echo "$ac_t""no" 1>&6
1789 # Extract the first word of "openssl", so it can be a program name with args.
1790 set dummy openssl; ac_word=$2
1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_word" >&5
1793 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1798 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1801 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1806 for ac_dir in $ac_dummy; do
1807 test -z "$ac_dir" && ac_dir=.
1808 if test -f $ac_dir/$ac_word; then
1809 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1814 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1818 OPENSSL="$ac_cv_path_OPENSSL"
1819 if test -n "$OPENSSL"; then
1820 echo "$ac_t""$OPENSSL" 1>&6
1822 echo "$ac_t""no" 1>&6
1826 test -n "$ARFLAG" || ARFLAGS="cr"
1839 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1840 echo "configure:1841: checking for Operating System" >&5
1841 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1842 echo "configure:1843: checking for Cygwin environment" >&5
1843 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1853 #define __CYGWIN__ __CYGWIN32__
1858 if { (eval echo configure:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1871 echo "$ac_t""$ac_cv_cygwin" 1>&6
1873 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1874 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1880 HAVE_SUN_OS_FALSE='#'
1882 HAVE_SUN_OS_TRUE='#'
1885 cat >> confdefs.h <<\EOF
1886 #define HAVE_SUN_OS 1
1894 HAVE_SUN_OS_FALSE='#'
1896 HAVE_SUN_OS_TRUE='#'
1901 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1907 HAVE_OSF1_OS_FALSE='#'
1909 HAVE_OSF1_OS_TRUE='#'
1912 cat >> confdefs.h <<\EOF
1913 #define HAVE_OSF1_OS 1
1921 HAVE_OSF1_OS_FALSE='#'
1923 HAVE_OSF1_OS_TRUE='#'
1928 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1934 HAVE_AIX_OS_FALSE='#'
1936 HAVE_AIX_OS_TRUE='#'
1939 cat >> confdefs.h <<\EOF
1940 #define HAVE_AIX_OS 1
1948 HAVE_AIX_OS_FALSE='#'
1950 HAVE_AIX_OS_TRUE='#'
1955 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1961 HAVE_HPUX_OS_FALSE='#'
1963 HAVE_HPUX_OS_TRUE='#'
1966 cat >> confdefs.h <<\EOF
1967 #define HAVE_HPUX_OS 1
1975 HAVE_HPUX_OS_FALSE='#'
1977 HAVE_HPUX_OS_TRUE='#'
1982 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1988 HAVE_LINUX_OS_FALSE='#'
1990 HAVE_LINUX_OS_TRUE='#'
1991 HAVE_LINUX_OS_FALSE=
1993 cat >> confdefs.h <<\EOF
1994 #define HAVE_LINUX_OS 1
2002 HAVE_LINUX_OS_FALSE='#'
2004 HAVE_LINUX_OS_TRUE='#'
2005 HAVE_LINUX_OS_FALSE=
2009 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2014 HAVE_FREEBSD_OS_TRUE=
2015 HAVE_FREEBSD_OS_FALSE='#'
2017 HAVE_FREEBSD_OS_TRUE='#'
2018 HAVE_FREEBSD_OS_FALSE=
2020 cat >> confdefs.h <<\EOF
2021 #define HAVE_FREEBSD_OS 1
2028 HAVE_FREEBSD_OS_TRUE=
2029 HAVE_FREEBSD_OS_FALSE='#'
2031 HAVE_FREEBSD_OS_TRUE='#'
2032 HAVE_FREEBSD_OS_FALSE=
2036 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2041 HAVE_NETBSD_OS_TRUE=
2042 HAVE_NETBSD_OS_FALSE='#'
2044 HAVE_NETBSD_OS_TRUE='#'
2045 HAVE_NETBSD_OS_FALSE=
2047 cat >> confdefs.h <<\EOF
2048 #define HAVE_NETBSD_OS 1
2055 HAVE_NETBSD_OS_TRUE=
2056 HAVE_NETBSD_OS_FALSE='#'
2058 HAVE_NETBSD_OS_TRUE='#'
2059 HAVE_NETBSD_OS_FALSE=
2063 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2068 HAVE_OPENBSD_OS_TRUE=
2069 HAVE_OPENBSD_OS_FALSE='#'
2071 HAVE_OPENBSD_OS_TRUE='#'
2072 HAVE_OPENBSD_OS_FALSE=
2074 cat >> confdefs.h <<\EOF
2075 #define HAVE_OPENBSD_OS 1
2082 HAVE_OPENBSD_OS_TRUE=
2083 HAVE_OPENBSD_OS_FALSE='#'
2085 HAVE_OPENBSD_OS_TRUE='#'
2086 HAVE_OPENBSD_OS_FALSE=
2090 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2096 HAVE_BSDI_OS_FALSE='#'
2098 HAVE_BSDI_OS_TRUE='#'
2101 cat >> confdefs.h <<\EOF
2102 #define HAVE_BSDI_OS 1
2110 HAVE_BSDI_OS_FALSE='#'
2112 HAVE_BSDI_OS_TRUE='#'
2117 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2123 HAVE_SGI_OS_FALSE='#'
2125 HAVE_SGI_OS_TRUE='#'
2128 cat >> confdefs.h <<\EOF
2129 #define HAVE_SGI_OS 1
2137 HAVE_SGI_OS_FALSE='#'
2139 HAVE_SGI_OS_TRUE='#'
2144 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2150 HAVE_IRIX_OS_FALSE='#'
2152 HAVE_IRIX_OS_TRUE='#'
2155 cat >> confdefs.h <<\EOF
2156 #define HAVE_IRIX_OS 1
2164 HAVE_IRIX_OS_FALSE='#'
2166 HAVE_IRIX_OS_TRUE='#'
2171 echo "$ac_t""" "" 1>&6
2174 # -----------------------------------------------------------
2175 # ----------------------------------------------------------
2176 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2177 echo "configure:2178: checking for Operating System Distribution" >&5
2178 if test "x$DISTNAME" != "x"
2180 echo "distname set to $DISTNAME"
2181 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2184 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2187 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2190 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2193 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2196 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2199 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2202 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2205 elif test -f /etc/SuSE-release
2208 elif test -d /etc/SuSEconfig
2211 elif test -d /usr/src/OpenLinux
2214 elif test -f /etc/redhat-release
2217 elif test -f /etc/debian_version
2220 elif test -f /etc/slackware-version
2223 elif test "$ac_cv_cygwin" = yes
2226 cat >> confdefs.h <<\EOF
2227 #define HAVE_CYGWIN 1
2233 echo "$ac_t""" "" 1>&6
2236 # -----------------------------------------------------------
2237 # ----------------------------------------------------------
2242 INSIDE_GNOME_COMMON_TRUE=
2243 INSIDE_GNOME_COMMON_FALSE='#'
2245 INSIDE_GNOME_COMMON_TRUE='#'
2246 INSIDE_GNOME_COMMON_FALSE=
2249 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2251 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2254 # ------------------------------------------------------------------
2255 # If the user has not set --prefix, we set our default to nothing.
2256 # In this case, if the user has not set --sysconfdir, we set it
2257 # to the package default of /etc/bacula. If either --prefix or
2258 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2259 # ------------------------------------------------------------------
2260 if test x${prefix} = xNONE ; then
2261 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2262 sysconfdir=/etc/bacula
2266 sysconfdir=`eval echo ${sysconfdir}`
2268 # -------------------------------------------------------------------------
2269 # If the user has not set --exec-prefix, we default to ${prefix}
2270 # -------------------------------------------------------------------------
2271 if test x${exec_prefix} = xNONE ; then
2272 exec_prefix=${prefix}
2275 # ------------------------------------------------------------------
2276 # If the user has not set --sbindir, we set our default as /sbin
2277 # ------------------------------------------------------------------
2278 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2279 sbindir=${exec_prefix}/sbin
2281 sbindir=`eval echo ${sbindir}`
2283 # ------------------------------------------------------------------
2284 # All list of languages for which a translation exist. Each
2285 # language is separated by a space.
2286 # ------------------------------------------------------------------
2289 for ac_prog in msgfmt
2291 # Extract the first word of "$ac_prog", so it can be a program name with args.
2292 set dummy $ac_prog; ac_word=$2
2293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2294 echo "configure:2295: checking for $ac_word" >&5
2295 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2300 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2303 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2308 for ac_dir in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir=.
2310 if test -f $ac_dir/$ac_word; then
2311 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2319 MSGFMT="$ac_cv_path_MSGFMT"
2320 if test -n "$MSGFMT"; then
2321 echo "$ac_t""$MSGFMT" 1>&6
2323 echo "$ac_t""no" 1>&6
2326 test -n "$MSGFMT" && break
2328 test -n "$MSGFMT" || MSGFMT="no"
2330 if test "$MSGFMT" = "no"
2332 echo 'msgfmt program not found, disabling NLS !'
2334 USE_INCLUDED_LIBINTL=no
2342 support_smartalloc=yes
2343 support_readline=yes
2345 support_static_tools=no
2350 # Check whether --enable-everything or --disable-everything was given.
2351 if test "${enable_everything+set}" = set; then
2352 enableval="$enable_everything"
2353 if test x$enableval = xyes; then
2354 support_smartalloc=yes
2359 # -------------------------------------------
2360 # gnome (default off)
2361 # -------------------------------------------
2362 # Check whether --enable-gnome or --disable-gnome was given.
2363 if test "${enable_gnome+set}" = set; then
2364 enableval="$enable_gnome"
2365 if test x$enableval = xyes; then
2372 if test x$support_gnome = xyes; then
2383 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2384 if test "${with_gnome_includes+set}" = set; then
2385 withval="$with_gnome_includes"
2387 CFLAGS="$CFLAGS -I$withval"
2392 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2393 if test "${with_gnome_libs+set}" = set; then
2394 withval="$with_gnome_libs"
2396 LDFLAGS="$LDFLAGS -L$withval"
2397 gnome_prefix=$withval
2402 # Check whether --with-gnome or --without-gnome was given.
2403 if test "${with_gnome+set}" = set; then
2404 withval="$with_gnome"
2405 if test x$withval = xyes; then
2409 if test "x$withval" = xno; then
2413 LDFLAGS="$LDFLAGS -L$withval/lib"
2414 CFLAGS="$CFLAGS -I$withval/include"
2415 gnome_prefix=$withval/lib
2423 if test "x$want_gnome" = xyes; then
2425 # Extract the first word of "gnome-config", so it can be a program name with args.
2426 set dummy gnome-config; ac_word=$2
2427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2428 echo "configure:2429: checking for $ac_word" >&5
2429 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 case "$GNOME_CONFIG" in
2434 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2437 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2442 for ac_dir in $ac_dummy; do
2443 test -z "$ac_dir" && ac_dir=.
2444 if test -f $ac_dir/$ac_word; then
2445 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2450 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2454 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2455 if test -n "$GNOME_CONFIG"; then
2456 echo "$ac_t""$GNOME_CONFIG" 1>&6
2458 echo "$ac_t""no" 1>&6
2461 if test "$GNOME_CONFIG" = "no"; then
2462 no_gnome_config="yes"
2464 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2465 echo "configure:2466: checking if $GNOME_CONFIG works" >&5
2466 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2467 echo "$ac_t""yes" 1>&6
2470 # Extract the first word of "orbit-config", so it can be a program name with args.
2471 set dummy orbit-config; ac_word=$2
2472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_word" >&5
2474 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 case "$ORBIT_CONFIG" in
2479 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2482 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2487 for ac_dir in $ac_dummy; do
2488 test -z "$ac_dir" && ac_dir=.
2489 if test -f $ac_dir/$ac_word; then
2490 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2495 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2499 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2500 if test -n "$ORBIT_CONFIG"; then
2501 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2503 echo "$ac_t""no" 1>&6
2506 # Extract the first word of "orbit-idl", so it can be a program name with args.
2507 set dummy orbit-idl; ac_word=$2
2508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_word" >&5
2510 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 case "$ORBIT_IDL" in
2515 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2518 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2523 for ac_dir in $ac_dummy; do
2524 test -z "$ac_dir" && ac_dir=.
2525 if test -f $ac_dir/$ac_word; then
2526 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2531 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2535 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2536 if test -n "$ORBIT_IDL"; then
2537 echo "$ac_t""$ORBIT_IDL" 1>&6
2539 echo "$ac_t""no" 1>&6
2542 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2543 echo "configure:2544: checking for working ORBit environment" >&5
2544 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2548 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2549 gnome_cv_orbit_found=no
2551 gnome_cv_orbit_found=yes
2556 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2559 if test x$gnome_cv_orbit_found = xyes; then
2561 HAVE_ORBIT_FALSE='#'
2566 if test x$gnome_cv_orbit_found = xyes; then
2568 ORBIT_CFLAGS=`orbit-config --cflags client server`
2569 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2573 if test xfail = xfailure; then
2574 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2578 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2579 echo "configure:2580: checking for gnorba libraries" >&5
2580 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2584 gnome_cv_gnorba_found=no
2585 if test x$gnome_cv_orbit_found = xyes; then
2586 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2587 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2588 if test -n "$GNORBA_LIBS"; then
2589 gnome_cv_gnorba_found=yes
2595 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2598 if test x$gnome_cv_gnorba_found = xyes; then
2600 HAVE_GNORBA_FALSE='#'
2602 HAVE_GNORBA_TRUE='#'
2605 if test x$gnome_cv_orbit_found = xyes; then
2607 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2608 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2612 if test xfail = xfailure; then
2613 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2617 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2618 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2619 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2620 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2621 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2622 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2623 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2626 echo "$ac_t""no" 1>&6
2627 no_gnome_config="yes"
2631 if test x$exec_prefix = xNONE; then
2632 if test x$prefix = xNONE; then
2633 gnome_prefix=$ac_default_prefix/lib
2635 gnome_prefix=$prefix/lib
2638 gnome_prefix=`eval echo \`echo $libdir\``
2641 if test "$no_gnome_config" = "yes"; then
2642 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2643 echo "configure:2644: checking for gnomeConf.sh file in $gnome_prefix" >&5
2644 if test -f $gnome_prefix/gnomeConf.sh; then
2645 echo "$ac_t""found" 1>&6
2646 echo "loading gnome configuration from" \
2647 "$gnome_prefix/gnomeConf.sh"
2648 . $gnome_prefix/gnomeConf.sh
2651 echo "$ac_t""not found" 1>&6
2652 if test xfail = xfail; then
2653 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2662 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2663 echo "configure:2664: checking extra library \"$i\"" >&5
2667 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2668 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2671 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2672 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2675 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2676 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2678 echo "$ac_t""unknown library" 1>&6
2680 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2681 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2686 GNOME_DIR=src/gnome-console
2691 # -------------------------------------------
2692 # smartalloc (default off)
2693 # -------------------------------------------
2694 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2695 if test "${enable_smartalloc+set}" = set; then
2696 enableval="$enable_smartalloc"
2697 if test x$enableval = xno; then
2698 support_smartalloc=no
2703 if test x$support_smartalloc = xyes; then
2704 cat >> confdefs.h <<\EOF
2705 #define SMARTALLOC 1
2710 # -------------------------------------------
2711 # static-tools (default off)
2712 # -------------------------------------------
2713 # Check whether --enable-static-tools or --disable-static-tools was given.
2714 if test "${enable_static_tools+set}" = set; then
2715 enableval="$enable_static_tools"
2716 if test x$enableval = xyes; then
2717 support_static_tools=yes
2723 if test x$support_static_tools = xyes; then
2724 TTOOL_LDFLAGS="-static"
2731 # ---------------------------------------------------
2732 # Check for readline support/directory (default on)
2733 # ---------------------------------------------------
2734 # this allows you to turn it completely off
2735 # Check whether --enable-readline or --disable-readline was given.
2736 if test "${enable_readline+set}" = set; then
2737 enableval="$enable_readline"
2738 if test x$enableval = xno; then
2746 if test x$support_readline = xyes; then
2747 # Check whether --with-readline or --without-readline was given.
2748 if test "${with_readline+set}" = set; then
2749 withval="$with_readline"
2751 case "$with_readline" in
2754 if test "$with_readline" != "yes"; then
2755 CONS_INC="-I$with_readline"
2756 CONS_LDFLAGS="-L$with_readline"
2758 with_readline="/usr/include/readline"
2760 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2761 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2762 echo "configure:2763: checking for $with_readline/readline.h" >&5
2763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2769 #include <$with_readline/readline.h>
2771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2772 { (eval echo configure:2773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2774 if test -z "$ac_err"; then
2776 eval "ac_cv_header_$ac_safe=yes"
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2782 eval "ac_cv_header_$ac_safe=no"
2786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2788 echo "$ac_t""yes" 1>&6
2789 cat >> confdefs.h <<\EOF
2790 #define HAVE_READLINE 1
2793 CONS_LIBS="-lreadline -ltermcap"
2797 echo "$ac_t""no" 1>&6
2798 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2808 # check for standard readline library
2809 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2810 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2811 echo "configure:2812: checking for /usr/include/readline/readline.h" >&5
2812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2815 cat > conftest.$ac_ext <<EOF
2816 #line 2817 "configure"
2817 #include "confdefs.h"
2818 #include </usr/include/readline/readline.h>
2820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2821 { (eval echo configure:2822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2823 if test -z "$ac_err"; then
2825 eval "ac_cv_header_$ac_safe=yes"
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2831 eval "ac_cv_header_$ac_safe=no"
2835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2836 echo "$ac_t""yes" 1>&6
2837 echo "$ac_t""yes" 1>&6
2838 cat >> confdefs.h <<\EOF
2839 #define HAVE_READLINE 1
2843 CONS_INC="-I/usr/include/readline"
2844 CONS_LIBS="-lreadline -ltermcap"
2847 echo "$ac_t""no" 1>&6
2849 # Did not find starndard library, so user our own
2850 echo "$ac_t""yes" 1>&6
2851 cat >> confdefs.h <<\EOF
2852 #define HAVE_READLINE 1
2856 CONS_INC="-I${TOP_DIR}/depkgs"
2857 CONS_LIBS="-lreadline -lhistory -ltermcap"
2858 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2859 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
2873 # Minimal stuff for readline Makefile configuration
2877 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2878 echo "configure:2879: checking whether stat file-mode macros are broken" >&5
2879 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2885 #include <sys/types.h>
2886 #include <sys/stat.h>
2888 #if defined(S_ISBLK) && defined(S_IFDIR)
2889 # if S_ISBLK (S_IFDIR)
2894 #if defined(S_ISBLK) && defined(S_IFCHR)
2895 # if S_ISBLK (S_IFCHR)
2900 #if defined(S_ISLNK) && defined(S_IFREG)
2901 # if S_ISLNK (S_IFREG)
2906 #if defined(S_ISSOCK) && defined(S_IFREG)
2907 # if S_ISSOCK (S_IFREG)
2913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2914 egrep "You lose" >/dev/null 2>&1; then
2916 ac_cv_header_stat_broken=yes
2919 ac_cv_header_stat_broken=no
2925 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2926 if test $ac_cv_header_stat_broken = yes; then
2927 cat >> confdefs.h <<\EOF
2928 #define STAT_MACROS_BROKEN 1
2934 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2937 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2938 echo "configure:2939: checking for $ac_hdr that defines DIR" >&5
2939 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2945 #include <sys/types.h>
2951 if { (eval echo configure:2952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2953 eval "ac_cv_header_dirent_$ac_safe=yes"
2955 echo "configure: failed program was:" >&5
2956 cat conftest.$ac_ext >&5
2958 eval "ac_cv_header_dirent_$ac_safe=no"
2962 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2963 echo "$ac_t""yes" 1>&6
2964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2965 cat >> confdefs.h <<EOF
2966 #define $ac_tr_hdr 1
2968 ac_header_dirent=$ac_hdr; break
2970 echo "$ac_t""no" 1>&6
2973 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2974 if test $ac_header_dirent = dirent.h; then
2975 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2976 echo "configure:2977: checking for opendir in -ldir" >&5
2977 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 ac_save_LIBS="$LIBS"
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986 /* Override any gcc2 internal prototype to avoid an error. */
2987 /* We use char because int might match the return type of a gcc2
2988 builtin and then its argument prototype would still apply. */
2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2997 eval "ac_cv_lib_$ac_lib_var=yes"
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3002 eval "ac_cv_lib_$ac_lib_var=no"
3005 LIBS="$ac_save_LIBS"
3008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3009 echo "$ac_t""yes" 1>&6
3012 echo "$ac_t""no" 1>&6
3016 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3017 echo "configure:3018: checking for opendir in -lx" >&5
3018 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 ac_save_LIBS="$LIBS"
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 /* Override any gcc2 internal prototype to avoid an error. */
3028 /* We use char because int might match the return type of a gcc2
3029 builtin and then its argument prototype would still apply. */
3036 if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3038 eval "ac_cv_lib_$ac_lib_var=yes"
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3043 eval "ac_cv_lib_$ac_lib_var=no"
3046 LIBS="$ac_save_LIBS"
3049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3050 echo "$ac_t""yes" 1>&6
3053 echo "$ac_t""no" 1>&6
3059 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3062 echo "configure:3063: checking for $ac_func" >&5
3063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 /* System header to define __stub macros and hopefully few prototypes,
3070 which can conflict with char $ac_func(); below. */
3072 /* Override any gcc2 internal prototype to avoid an error. */
3073 /* We use char because int might match the return type of a gcc2
3074 builtin and then its argument prototype would still apply. */
3079 /* The GNU C library defines this for functions which it implements
3080 to always fail with ENOSYS. Some functions are actually named
3081 something starting with __ and the normal name is an alias. */
3082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3092 eval "ac_cv_func_$ac_func=yes"
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3097 eval "ac_cv_func_$ac_func=no"
3102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3105 cat >> confdefs.h <<EOF
3106 #define $ac_tr_func 1
3110 echo "$ac_t""no" 1>&6
3115 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3116 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3117 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3119 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3120 echo "configure:3121: checking for getopt_long" >&5
3121 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 /* System header to define __stub macros and hopefully few prototypes,
3128 which can conflict with char getopt_long(); below. */
3130 /* Override any gcc2 internal prototype to avoid an error. */
3131 /* We use char because int might match the return type of a gcc2
3132 builtin and then its argument prototype would still apply. */
3137 /* The GNU C library defines this for functions which it implements
3138 to always fail with ENOSYS. Some functions are actually named
3139 something starting with __ and the normal name is an alias. */
3140 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3148 if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3150 eval "ac_cv_func_getopt_long=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 eval "ac_cv_func_getopt_long=no"
3160 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 cat >> confdefs.h <<\EOF
3163 #define HAVE_GETOPT_LONG 1
3167 echo "$ac_t""no" 1>&6
3172 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3173 echo "configure:3174: checking for working strcoll" >&5
3174 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 if test "$cross_compiling" = yes; then
3178 ac_cv_func_strcoll_works=no
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3186 exit (strcoll ("abc", "def") >= 0 ||
3187 strcoll ("ABC", "DEF") >= 0 ||
3188 strcoll ("123", "456") >= 0);
3191 if { (eval echo configure:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3193 ac_cv_func_strcoll_works=yes
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3198 ac_cv_func_strcoll_works=no
3205 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3206 if test $ac_cv_func_strcoll_works = yes; then
3207 cat >> confdefs.h <<\EOF
3208 #define HAVE_STRCOLL 1
3214 for ac_hdr in varargs.h \
3215 sys/ptem.h sys/pte.h sys/stream.h
3217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3219 echo "configure:3220: checking for $ac_hdr" >&5
3220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3229 { (eval echo configure:3230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3231 if test -z "$ac_err"; then
3233 eval "ac_cv_header_$ac_safe=yes"
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3239 eval "ac_cv_header_$ac_safe=no"
3243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3246 cat >> confdefs.h <<EOF
3247 #define $ac_tr_hdr 1
3251 echo "$ac_t""no" 1>&6
3256 # End of readline stuff
3257 # -----------------------------------------------------------------------
3260 # ---------------------------------------------------
3261 # Check for GMP support/directory
3262 # ---------------------------------------------------
3266 # [ --with-gmp[=DIR] Specify gmp library directory],
3268 # case "$with_gmp" in
3271 # if test "$with_gmp" != "yes"; then
3272 # GMP_INC="-I$with_gmp"
3274 # GMP_LDFLAGS="-L$with_gmp"
3276 # with_gmp="/usr/include"
3278 # AC_CHECK_HEADER($with_gmp/gmp.h,
3279 # [ AC_MSG_RESULT(yes)
3280 # AC_DEFINE(HAVE_GMP)
3284 # [ AC_MSG_ERROR([*** gmp library missing])
3290 # # check for standard gmp library
3291 # AC_CHECK_HEADER(/usr/include/gmp.h,
3292 # [ AC_MSG_RESULT(yes)
3293 # AC_DEFINE(HAVE_GMP)
3298 # # Did not find standard library, so use our own
3299 # AC_MSG_RESULT(yes)
3300 # AC_DEFINE(HAVE_GMP)
3303 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3305 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3306 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3312 #AC_SUBST(GMP_LDFLAGS)
3316 # -----------------------------------------------------------------------
3319 # ---------------------------------------------------
3320 # Check for CWEB support/directory
3321 # ---------------------------------------------------
3326 # [ --with-cweb[=DIR] Specify cweb library directory],
3328 # case "$with_cweb" in
3331 # if test "$with_cweb" != "yes"; then
3332 # CWEB_INC="-I$with_cweb"
3333 # CWEB_LIBS="-lcweb"
3334 # CWEB_LDFLAGS="-L$with_cweb"
3336 # with_cweb="/usr/include"
3338 # AC_CHECK_HEADER($with_cweb/cweb.h,
3339 # [ AC_MSG_RESULT(yes)
3340 # AC_DEFINE(HAVE_CWEB)
3341 # CWEB_LIBS="-lcweb"
3344 # [ AC_MSG_ERROR([*** cweb library missing])
3350 # # check for standard cweb library
3351 # AC_CHECK_HEADER(/usr/include/cweb.h,
3352 # [ AC_MSG_RESULT(yes)
3353 # AC_DEFINE(HAVE_CWEB)
3356 # CWEB_LIBS="-lcweb"
3358 # # Did not find starndard library, so use our own
3359 # AC_MSG_RESULT(yes)
3360 # AC_DEFINE(HAVE_CWEB)
3363 # CWEB=${TOP_DIR}/depkgs/cweb
3364 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3365 # CWEB_LIBS="-lcweb"
3366 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3367 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3373 #AC_SUBST(CWEB_LIBS)
3374 #AC_SUBST(CWEB_LDFLAGS)
3378 # -----------------------------------------------------------------------
3382 # -----------------------------------------------------------
3383 # Check whether user wants TCP wrappers support (default off)
3384 # -----------------------------------------------------------
3386 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3387 if test "${with_tcp_wrappers+set}" = set; then
3388 withval="$with_tcp_wrappers"
3390 if test "x$withval" != "xno" ; then
3392 LIBS="$LIBS -lwrap -lnsl"
3393 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3394 echo "configure:3395: checking for libwrap" >&5
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3399 int deny_severity = 0;
3400 int allow_severity = 0;
3401 struct request_info *req;
3406 if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 echo "$ac_t""yes" 1>&6
3410 cat >> confdefs.h <<\EOF
3411 #define HAVE_LIBWRAP 1
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3420 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3430 # ------------------------------------------
3431 # Where to place working dir
3432 # ------------------------------------------
3433 working_dir=`eval echo ${sysconfdir}/working`
3434 # Check whether --with-working-dir or --without-working-dir was given.
3435 if test "${with_working_dir+set}" = set; then
3436 withval="$with_working_dir"
3438 if test "x$withval" != "xno" ; then
3439 working_dir=$withval
3448 # ------------------------------------------
3449 # Where to send dump email
3450 # ------------------------------------------
3451 dump_email=root@localhost
3452 # Check whether --with-dump-email or --without-dump-email was given.
3453 if test "${with_dump_email+set}" = set; then
3454 withval="$with_dump_email"
3456 if test "x$withval" != "xno" ; then
3466 # ------------------------------------------
3467 # Where to send job email
3468 # ------------------------------------------
3469 job_email=root@localhost
3470 # Check whether --with-job-email or --without-job-email was given.
3471 if test "${with_job_email+set}" = set; then
3472 withval="$with_job_email"
3474 if test "x$withval" != "xno" ; then
3484 # ------------------------------------------
3485 # Where to find smtp host
3486 # ------------------------------------------
3488 # Check whether --with-smtp_host or --without-smtp_host was given.
3489 if test "${with_smtp_host+set}" = set; then
3490 withval="$with_smtp_host"
3492 if test "x$withval" != "xno" ; then
3503 # ------------------------------------
3504 # Where to place pid files
3505 # ------------------------------------
3507 # Check whether --with-pid-dir or --without-pid-dir was given.
3508 if test "${with_pid_dir+set}" = set; then
3509 withval="$with_pid_dir"
3511 if test "x$withval" != "xno" ; then
3519 # make sure the pid directory exists
3520 if test ! -d $piddir ; then
3521 piddir=`eval echo ${sysconfdir}`
3523 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3527 cat >> confdefs.h <<EOF
3528 #define _PATH_BACULA_PIDDIR "$piddir"
3534 # ------------------------------------
3535 # Where to place subsys "lock file"
3536 # ------------------------------------
3537 subsysdir=/var/run/subsys
3538 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3539 if test "${with_subsys_dir+set}" = set; then
3540 withval="$with_subsys_dir"
3542 if test "x$withval" != "xno" ; then
3550 # make sure the pid directory exists
3551 if test ! -d $subsysdir ; then
3552 subsysdir=`eval echo ${sysconfdir}`
3554 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3562 # ------------------------------------
3563 # Where to start assigning ports
3564 # ------------------------------------
3566 # Check whether --with-baseport or --without-baseport was given.
3567 if test "${with_baseport+set}" = set; then
3568 withval="$with_baseport"
3570 if test "x$withval" != "xno" ; then
3579 dir_port=`expr $baseport`
3580 fd_port=`expr $baseport + 1`
3581 sd_port=`expr $fd_port + 1`
3588 # ------------------------------------------
3589 # Generate passwords
3590 # ------------------------------------------
3592 # Check whether --with-dir-password or --without-dir-password was given.
3593 if test "${with_dir_password+set}" = set; then
3594 withval="$with_dir_password"
3596 if test "x$withval" != "xno" ; then
3597 dir_password=$withval
3604 if test "x$dir_password" = "x" ; then
3605 if test "x$OPENSSL" = "xnone" ; then
3606 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3607 key=`autoconf/randpass 33`
3609 key=`openssl rand -base64 33`
3615 # Check whether --with-fd-password or --without-fd-password was given.
3616 if test "${with_fd_password+set}" = set; then
3617 withval="$with_fd_password"
3619 if test "x$withval" != "xno" ; then
3620 fd_password=$withval
3627 if test "x$fd_password" = "x" ; then
3628 if test "x$OPENSSL" = "xnone" ; then
3629 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3630 key=`autoconf/randpass 37`
3632 key=`openssl rand -base64 33`
3638 # Check whether --with-sd-password or --without-sd-password was given.
3639 if test "${with_sd_password+set}" = set; then
3640 withval="$with_sd_password"
3642 if test "x$withval" != "xno" ; then
3643 sd_password=$withval
3650 if test "x$sd_password" = "x" ; then
3651 if test "x$OPENSSL" = "xnone" ; then
3652 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3653 key=`autocnf/randpass 41`
3655 key=`openssl rand -base64 33`
3668 # ------------------------------------------------
3669 # Bacula check for various SQL database engines
3670 # ------------------------------------------------
3673 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3674 echo "configure:3675: checking for MySQL support" >&5
3675 # Check whether --with-mysql or --without-mysql was given.
3676 if test "${with_mysql+set}" = set; then
3677 withval="$with_mysql"
3679 if test "$withval" != "no"; then
3680 if test "$withval" = "yes"; then
3681 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3682 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3683 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3684 MYSQL_BINDIR=/usr/local/mysql/bin
3685 elif test -f /usr/include/mysql/mysql.h; then
3686 MYSQL_INCDIR=/usr/include/mysql
3687 MYSQL_LIBDIR=/usr/lib/mysql
3688 MYSQL_BINDIR=/usr/bin
3689 elif test -f /usr/include/mysql.h; then
3690 MYSQL_INCDIR=/usr/include
3691 MYSQL_LIBDIR=/usr/lib
3692 MYSQL_BINDIR=/usr/bin
3693 elif test -f /usr/local/include/mysql/mysql.h; then
3694 MYSQL_INCDIR=/usr/local/include/mysql
3695 MYSQL_LIBDIR=/usr/local/lib/mysql
3696 MYSQL_BINDIR=/usr/local/bin
3697 elif test -f /usr/local/include/mysql.h; then
3698 MYSQL_INCDIR=/usr/local/include
3699 MYSQL_LIBDIR=/usr/local/lib
3700 MYSQL_BINDIR=/usr/local/bin
3702 echo "$ac_t""no" 1>&6
3703 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3706 if test -f $withval/include/mysql/mysql.h; then
3707 MYSQL_INCDIR=$withval/include/mysql
3708 MYSQL_LIBDIR=$withval/lib/mysql
3709 MYSQL_BINDIR=$withval/bin
3710 elif test -f $withval/include/mysql.h; then
3711 MYSQL_INCDIR=$withval/include
3712 MYSQL_LIBDIR=$withval/lib
3713 MYSQL_BINDIR=$withval/bin
3715 echo "$ac_t""no" 1>&6
3716 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3719 SQL_INCLUDE=-I$MYSQL_INCDIR
3720 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
3721 SQL_BINDIR=$MYSQL_BINDIR
3723 cat >> confdefs.h <<\EOF
3724 #define HAVE_MYSQL 1
3727 echo "$ac_t""yes" 1>&6
3734 echo "$ac_t""no" 1>&6
3739 echo "$ac_t""no" 1>&6
3744 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
3745 if test "${with_embedded_mysql+set}" = set; then
3746 withval="$with_embedded_mysql"
3748 if test "$withval" != "no"; then
3749 if test "$withval" = "yes"; then
3750 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3751 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3752 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3753 MYSQL_BINDIR=/usr/local/mysql/bin
3754 elif test -f /usr/include/mysql/mysql.h; then
3755 MYSQL_INCDIR=/usr/include/mysql
3756 MYSQL_LIBDIR=/usr/lib/mysql
3757 MYSQL_BINDIR=/usr/bin
3758 elif test -f /usr/include/mysql.h; then
3759 MYSQL_INCDIR=/usr/include
3760 MYSQL_LIBDIR=/usr/lib
3761 MYSQL_BINDIR=/usr/bin
3762 elif test -f /usr/local/include/mysql/mysql.h; then
3763 MYSQL_INCDIR=/usr/local/include/mysql
3764 MYSQL_LIBDIR=/usr/local/lib/mysql
3765 MYSQL_BINDIR=/usr/local/bin
3766 elif test -f /usr/local/include/mysql.h; then
3767 MYSQL_INCDIR=/usr/local/include
3768 MYSQL_LIBDIR=/usr/local/lib
3769 MYSQL_BINDIR=/usr/local/bin
3771 echo "$ac_t""no" 1>&6
3772 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3775 if test -f $withval/include/mysql/mysql.h; then
3776 MYSQL_INCDIR=$withval/include/mysql
3777 MYSQL_LIBDIR=$withval/lib/mysql
3778 MYSQL_BINDIR=$withval/bin
3779 elif test -f $withval/include/mysql.h; then
3780 MYSQL_INCDIR=$withval/include
3781 MYSQL_LIBDIR=$withval/lib
3782 MYSQL_BINDIR=$withval/bin
3784 echo "$ac_t""no" 1>&6
3785 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3788 SQL_INCLUDE=-I$MYSQL_INCDIR
3789 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
3790 SQL_BINDIR=$MYSQL_BINDIR
3792 cat >> confdefs.h <<\EOF
3793 #define HAVE_MYSQL 1
3796 cat >> confdefs.h <<\EOF
3797 #define HAVE_EMBEDDED_MYSQL 1
3800 echo "$ac_t""yes" 1>&6
3807 echo "$ac_t""no" 1>&6
3812 echo "$ac_t""no" 1>&6
3825 # ------------------------------------------------
3826 # Bacula check for various SQL database engines
3827 # ------------------------------------------------
3830 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3831 echo "configure:3832: checking for SQLite support" >&5
3832 # Check whether --with-sqlite or --without-sqlite was given.
3833 if test "${with_sqlite+set}" = set; then
3834 withval="$with_sqlite"
3836 if test "$withval" != "no"; then
3837 if test "$withval" = "yes"; then
3838 if test -f /usr/local/include/sqlite.h; then
3839 SQLITE_INCDIR=/usr/local/include
3840 SQLITE_LIBDIR=/usr/local/lib
3841 SQLITE_BINDIR=/usr/local/bin
3842 elif test -f /usr/include/sqlite.h; then
3843 SQLITE_INCDIR=/usr/include
3844 SQLITE_LIBDIR=/usr/lib
3845 SQLITE_BINDIR=/usr/bin
3847 echo "$ac_t""no" 1>&6
3848 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
3851 if test -f $withval/sqlite.h; then
3852 SQLITE_INCDIR=$withval
3853 SQLITE_LIBDIR=$withval
3854 SQLITE_BINDIR=$withval
3856 echo "$ac_t""no" 1>&6
3857 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
3860 SQL_INCLUDE=-I$SQLITE_INCDIR
3861 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
3862 SQL_BINDIR=$SQLITE_BINDIR
3864 cat >> confdefs.h <<\EOF
3865 #define HAVE_SQLITE 1
3868 echo "$ac_t""yes" 1>&6
3875 echo "$ac_t""no" 1>&6
3880 echo "$ac_t""no" 1>&6
3893 cat >> confdefs.h <<\EOF
3894 #define PROTOTYPES 1
3898 if test -z "$CFLAGS"; then
3899 if test -z "$CCOPTS"; then
3906 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3907 echo "configure:3908: checking for mingw32 environment" >&5
3908 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3919 if { (eval echo configure:3920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3932 echo "$ac_t""$ac_cv_mingw32" 1>&6
3934 test "$ac_cv_mingw32" = yes && MINGW32=yes
3937 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3938 echo "configure:3939: checking for executable suffix" >&5
3939 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3942 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3946 echo 'int main () { return 0; }' > conftest.$ac_ext
3948 if { (eval echo configure:3949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3949 for file in conftest.*; do
3951 *.c | *.o | *.obj) ;;
3952 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3956 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3959 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3964 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3965 echo "$ac_t""${ac_cv_exeext}" 1>&6
3969 largefile_support="no"
3970 echo $ac_n "checking build system type""... $ac_c" 1>&6
3971 echo "configure:3972: checking build system type" >&5
3974 case "$build_alias" in
3977 NONE) build_alias=$host_alias ;;
3978 *) build_alias=$nonopt ;;
3982 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3983 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3984 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3985 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3986 echo "$ac_t""$build" 1>&6
3988 if test $host != $build; then
3989 ac_tool_prefix=${host_alias}-
3995 # Check whether --enable-largefile or --disable-largefile was given.
3996 if test "${enable_largefile+set}" = set; then
3997 enableval="$enable_largefile"
4001 if test "$enable_largefile" != no; then
4002 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4005 echo "configure:4006: checking for $ac_word" >&5
4006 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 if test -n "$GETCONF"; then
4010 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4014 for ac_dir in $ac_dummy; do
4015 test -z "$ac_dir" && ac_dir=.
4016 if test -f $ac_dir/$ac_word; then
4017 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4022 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4025 GETCONF="$ac_cv_prog_GETCONF"
4026 if test -n "$GETCONF"; then
4027 echo "$ac_t""$GETCONF" 1>&6
4029 echo "$ac_t""no" 1>&6
4034 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4035 echo "configure:4036: checking for CFLAGS value to request large file support" >&5
4036 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4040 ac_cv_sys_largefile_CFLAGS=no
4042 # IRIX 6.2 and later require cc -n32.
4043 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4044 if test "$GCC" != yes; then
4045 ac_cv_sys_largefile_CFLAGS=-n32
4048 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4057 if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4060 echo "configure: failed program was:" >&5
4061 cat conftest.$ac_ext >&5
4063 ac_cv_sys_largefile_CFLAGS=no
4071 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4072 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4073 echo "configure:4074: checking for LDFLAGS value to request large file support" >&5
4074 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4078 ac_cv_sys_largefile_LDFLAGS=no
4083 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4084 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4085 echo "configure:4086: checking for LIBS value to request large file support" >&5
4086 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4089 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4090 ac_cv_sys_largefile_LIBS=no
4095 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4097 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4100 -D_FILE_OFFSET_BITS=*) ;;
4101 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4102 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4108 '') CPPFLAGS="$ac_flag" ;;
4109 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4117 '') CFLAGS="$ac_flag" ;;
4118 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4123 case "$ac_cv_sys_largefile_LDFLAGS" in
4127 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4128 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4131 case "$ac_cv_sys_largefile_LIBS" in
4135 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4136 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4139 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4140 echo "configure:4141: checking for _FILE_OFFSET_BITS" >&5
4141 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4144 ac_cv_sys_file_offset_bits=no
4146 # HP-UX 10.20 and later
4147 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4148 ac_cv_sys_file_offset_bits=64 ;;
4150 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4152 -D_FILE_OFFSET_BITS)
4153 ac_cv_sys_file_offset_bits=1 ;;
4154 -D_FILE_OFFSET_BITS=*)
4155 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4161 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4162 if test "$ac_cv_sys_file_offset_bits" != no; then
4163 cat >> confdefs.h <<EOF
4164 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4168 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4169 echo "configure:4170: checking for _LARGEFILE_SOURCE" >&5
4170 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4173 ac_cv_sys_largefile_source=no
4175 # HP-UX 10.20 and later
4176 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4177 ac_cv_sys_largefile_source=1 ;;
4179 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4181 -D_LARGEFILE_SOURCE)
4182 ac_cv_sys_largefile_source=1 ;;
4183 -D_LARGEFILE_SOURCE=*)
4184 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4190 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4191 if test "$ac_cv_sys_largefile_source" != no; then
4192 cat >> confdefs.h <<EOF
4193 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4197 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4198 echo "configure:4199: checking for _LARGE_FILES" >&5
4199 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4202 ac_cv_sys_large_files=no
4205 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4206 ac_cv_sys_large_files=1 ;;
4208 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4211 ac_cv_sys_large_files=1 ;;
4213 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4219 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4220 if test "$ac_cv_sys_large_files" != no; then
4221 cat >> confdefs.h <<EOF
4222 #define _LARGE_FILES $ac_cv_sys_large_files
4230 # If we find X, set shell vars x_includes and x_libraries to the
4231 # paths, otherwise set no_x=yes.
4232 # Uses ac_ vars as temps to allow command line to override cache and checks.
4233 # --without-x overrides everything else, but does not touch the cache.
4234 echo $ac_n "checking for X""... $ac_c" 1>&6
4235 echo "configure:4236: checking for X" >&5
4237 # Check whether --with-x or --without-x was given.
4238 if test "${with_x+set}" = set; then
4243 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4244 if test "x$with_x" = xno; then
4245 # The user explicitly disabled X.
4248 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4249 # Both variables are already set.
4252 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 # One or both of the vars are not set, and there is no cached value.
4256 ac_x_includes=NO ac_x_libraries=NO
4258 if mkdir conftestdir; then
4260 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4261 cat > Imakefile <<'EOF'
4263 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4265 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4266 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4267 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4268 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4269 for ac_extension in a so sl; do
4270 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4271 test -f $ac_im_libdir/libX11.$ac_extension; then
4272 ac_im_usrlibdir=$ac_im_libdir; break
4275 # Screen out bogus values from the imake configuration. They are
4276 # bogus both because they are the default anyway, and because
4277 # using them would break gcc on systems where it needs fixed includes.
4278 case "$ac_im_incroot" in
4280 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4282 case "$ac_im_usrlibdir" in
4284 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4291 if test "$ac_x_includes" = NO; then
4292 # Guess where to find include files, by looking for this one X11 .h file.
4293 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4295 # First, try using that file with no special directory specified.
4296 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure"
4298 #include "confdefs.h"
4299 #include <$x_direct_test_include>
4301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4302 { (eval echo configure:4303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4304 if test -z "$ac_err"; then
4306 # We can compile using X headers with no special include directory.
4310 echo "configure: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4313 # Look for the header file in a standard set of common directories.
4314 # Check X11 before X11Rn because it is often a symlink to the current release.
4317 /usr/X11R6/include \
4318 /usr/X11R5/include \
4319 /usr/X11R4/include \
4322 /usr/include/X11R6 \
4323 /usr/include/X11R5 \
4324 /usr/include/X11R4 \
4326 /usr/local/X11/include \
4327 /usr/local/X11R6/include \
4328 /usr/local/X11R5/include \
4329 /usr/local/X11R4/include \
4331 /usr/local/include/X11 \
4332 /usr/local/include/X11R6 \
4333 /usr/local/include/X11R5 \
4334 /usr/local/include/X11R4 \
4338 /usr/XFree86/include/X11 \
4341 /usr/local/include \
4342 /usr/unsupported/include \
4343 /usr/athena/include \
4344 /usr/local/x11r5/include \
4345 /usr/lpp/Xamples/include \
4347 /usr/openwin/include \
4348 /usr/openwin/share/include \
4351 if test -r "$ac_dir/$x_direct_test_include"; then
4352 ac_x_includes=$ac_dir
4358 fi # $ac_x_includes = NO
4360 if test "$ac_x_libraries" = NO; then
4361 # Check for the libraries.
4363 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4364 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4366 # See if we find them without any special options.
4367 # Don't add to $LIBS permanently.
4368 ac_save_LIBS="$LIBS"
4369 LIBS="-l$x_direct_test_library $LIBS"
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4375 ${x_direct_test_function}()
4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4380 LIBS="$ac_save_LIBS"
4381 # We can link X programs with no special library path.
4384 echo "configure: failed program was:" >&5
4385 cat conftest.$ac_ext >&5
4387 LIBS="$ac_save_LIBS"
4388 # First see if replacing the include by lib works.
4389 # Check X11 before X11Rn because it is often a symlink to the current release.
4390 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4401 /usr/local/X11/lib \
4402 /usr/local/X11R6/lib \
4403 /usr/local/X11R5/lib \
4404 /usr/local/X11R4/lib \
4406 /usr/local/lib/X11 \
4407 /usr/local/lib/X11R6 \
4408 /usr/local/lib/X11R5 \
4409 /usr/local/lib/X11R4 \
4413 /usr/XFree86/lib/X11 \
4417 /usr/unsupported/lib \
4419 /usr/local/x11r5/lib \
4420 /usr/lpp/Xamples/lib \
4424 /usr/openwin/share/lib \
4427 for ac_extension in a so sl; do
4428 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4429 ac_x_libraries=$ac_dir
4436 fi # $ac_x_libraries = NO
4438 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4439 # Didn't find X anywhere. Cache the known absence of X.
4440 ac_cv_have_x="have_x=no"
4442 # Record where we found X for the cache.
4443 ac_cv_have_x="have_x=yes \
4444 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4448 eval "$ac_cv_have_x"
4451 if test "$have_x" != yes; then
4452 echo "$ac_t""$have_x" 1>&6
4455 # If each of the values was on the command line, it overrides each guess.
4456 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4457 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4458 # Update the cache value to reflect the command line values.
4459 ac_cv_have_x="have_x=yes \
4460 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4461 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4464 if test "$no_x" = yes; then
4465 # Not all programs may use this symbol, but it does not hurt to define it.
4466 cat >> confdefs.h <<\EOF
4467 #define X_DISPLAY_MISSING 1
4470 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4472 if test -n "$x_includes"; then
4473 X_CFLAGS="$X_CFLAGS -I$x_includes"
4476 # It would also be nice to do this for all -L options, not just this one.
4477 if test -n "$x_libraries"; then
4478 X_LIBS="$X_LIBS -L$x_libraries"
4479 # For Solaris; some versions of Sun CC require a space after -R and
4480 # others require no space. Words are not sufficient . . . .
4481 case "`(uname -sr) 2>/dev/null`" in
4483 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4484 echo "configure:4485: checking whether -R must be followed by a space" >&5
4485 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4486 cat > conftest.$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4504 if test $ac_R_nospace = yes; then
4505 echo "$ac_t""no" 1>&6
4506 X_LIBS="$X_LIBS -R$x_libraries"
4508 LIBS="$ac_xsave_LIBS -R $x_libraries"
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4527 if test $ac_R_space = yes; then
4528 echo "$ac_t""yes" 1>&6
4529 X_LIBS="$X_LIBS -R $x_libraries"
4531 echo "$ac_t""neither works" 1>&6
4534 LIBS="$ac_xsave_LIBS"
4538 # Check for system-dependent libraries X programs must link with.
4539 # Do this before checking for the system-independent R6 libraries
4540 # (-lICE), since we may need -lsocket or whatever for X linking.
4542 if test "$ISC" = yes; then
4543 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4545 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4546 # libraries were built with DECnet support. And karl@cs.umb.edu says
4547 # the Alpha needs dnet_stub (dnet does not exist).
4548 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4549 echo "configure:4550: checking for dnet_ntoa in -ldnet" >&5
4550 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 ac_save_LIBS="$LIBS"
4556 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4559 /* Override any gcc2 internal prototype to avoid an error. */
4560 /* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4568 if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570 eval "ac_cv_lib_$ac_lib_var=yes"
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4575 eval "ac_cv_lib_$ac_lib_var=no"
4578 LIBS="$ac_save_LIBS"
4581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4585 echo "$ac_t""no" 1>&6
4588 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4589 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4590 echo "configure:4591: checking for dnet_ntoa in -ldnet_stub" >&5
4591 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 ac_save_LIBS="$LIBS"
4596 LIBS="-ldnet_stub $LIBS"
4597 cat > conftest.$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4600 /* Override any gcc2 internal prototype to avoid an error. */
4601 /* We use char because int might match the return type of a gcc2
4602 builtin and then its argument prototype would still apply. */
4609 if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4611 eval "ac_cv_lib_$ac_lib_var=yes"
4613 echo "configure: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4616 eval "ac_cv_lib_$ac_lib_var=no"
4619 LIBS="$ac_save_LIBS"
4622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4623 echo "$ac_t""yes" 1>&6
4624 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4626 echo "$ac_t""no" 1>&6
4631 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4632 # to get the SysV transport functions.
4633 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4635 # The nsl library prevents programs from opening the X display
4636 # on Irix 5.2, according to dickey@clark.net.
4637 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4638 echo "configure:4639: checking for gethostbyname" >&5
4639 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4642 cat > conftest.$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4645 /* System header to define __stub macros and hopefully few prototypes,
4646 which can conflict with char gethostbyname(); below. */
4648 /* Override any gcc2 internal prototype to avoid an error. */
4649 /* We use char because int might match the return type of a gcc2
4650 builtin and then its argument prototype would still apply. */
4651 char gethostbyname();
4655 /* The GNU C library defines this for functions which it implements
4656 to always fail with ENOSYS. Some functions are actually named
4657 something starting with __ and the normal name is an alias. */
4658 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4666 if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4668 eval "ac_cv_func_gethostbyname=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 eval "ac_cv_func_gethostbyname=no"
4678 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4682 echo "$ac_t""no" 1>&6
4685 if test $ac_cv_func_gethostbyname = no; then
4686 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4687 echo "configure:4688: checking for gethostbyname in -lnsl" >&5
4688 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 ac_save_LIBS="$LIBS"
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4697 /* Override any gcc2 internal prototype to avoid an error. */
4698 /* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4700 char gethostbyname();
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4708 eval "ac_cv_lib_$ac_lib_var=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 eval "ac_cv_lib_$ac_lib_var=no"
4716 LIBS="$ac_save_LIBS"
4719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4720 echo "$ac_t""yes" 1>&6
4721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4723 echo "$ac_t""no" 1>&6
4728 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4729 # socket/setsockopt and other routines are undefined under SCO ODT
4730 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4731 # on later versions), says simon@lia.di.epfl.ch: it contains
4732 # gethostby* variants that don't use the nameserver (or something).
4733 # -lsocket must be given before -lnsl if both are needed.
4734 # We assume that if connect needs -lnsl, so does gethostbyname.
4735 echo $ac_n "checking for connect""... $ac_c" 1>&6
4736 echo "configure:4737: checking for connect" >&5
4737 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 /* System header to define __stub macros and hopefully few prototypes,
4744 which can conflict with char connect(); below. */
4746 /* Override any gcc2 internal prototype to avoid an error. */
4747 /* We use char because int might match the return type of a gcc2
4748 builtin and then its argument prototype would still apply. */
4753 /* The GNU C library defines this for functions which it implements
4754 to always fail with ENOSYS. Some functions are actually named
4755 something starting with __ and the normal name is an alias. */
4756 #if defined (__stub_connect) || defined (__stub___connect)
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4766 eval "ac_cv_func_connect=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 eval "ac_cv_func_connect=no"
4776 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4780 echo "$ac_t""no" 1>&6
4783 if test $ac_cv_func_connect = no; then
4784 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4785 echo "configure:4786: checking for connect in -lsocket" >&5
4786 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 ac_save_LIBS="$LIBS"
4791 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4804 if { (eval echo configure:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4806 eval "ac_cv_lib_$ac_lib_var=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4811 eval "ac_cv_lib_$ac_lib_var=no"
4814 LIBS="$ac_save_LIBS"
4817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4819 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4821 echo "$ac_t""no" 1>&6
4826 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4827 echo $ac_n "checking for remove""... $ac_c" 1>&6
4828 echo "configure:4829: checking for remove" >&5
4829 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* System header to define __stub macros and hopefully few prototypes,
4836 which can conflict with char remove(); below. */
4838 /* Override any gcc2 internal prototype to avoid an error. */
4839 /* We use char because int might match the return type of a gcc2
4840 builtin and then its argument prototype would still apply. */
4845 /* The GNU C library defines this for functions which it implements
4846 to always fail with ENOSYS. Some functions are actually named
4847 something starting with __ and the normal name is an alias. */
4848 #if defined (__stub_remove) || defined (__stub___remove)
4856 if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4858 eval "ac_cv_func_remove=yes"
4860 echo "configure: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4863 eval "ac_cv_func_remove=no"
4868 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4869 echo "$ac_t""yes" 1>&6
4872 echo "$ac_t""no" 1>&6
4875 if test $ac_cv_func_remove = no; then
4876 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4877 echo "configure:4878: checking for remove in -lposix" >&5
4878 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4882 ac_save_LIBS="$LIBS"
4883 LIBS="-lposix $LIBS"
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 /* Override any gcc2 internal prototype to avoid an error. */
4888 /* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4896 if { (eval echo configure:4897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4898 eval "ac_cv_lib_$ac_lib_var=yes"
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 eval "ac_cv_lib_$ac_lib_var=no"
4906 LIBS="$ac_save_LIBS"
4909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4910 echo "$ac_t""yes" 1>&6
4911 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4913 echo "$ac_t""no" 1>&6
4918 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4919 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4920 echo "configure:4921: checking for shmat" >&5
4921 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char shmat(); below. */
4930 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4937 /* The GNU C library defines this for functions which it implements
4938 to always fail with ENOSYS. Some functions are actually named
4939 something starting with __ and the normal name is an alias. */
4940 #if defined (__stub_shmat) || defined (__stub___shmat)
4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4950 eval "ac_cv_func_shmat=yes"
4952 echo "configure: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4955 eval "ac_cv_func_shmat=no"
4960 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4964 echo "$ac_t""no" 1>&6
4967 if test $ac_cv_func_shmat = no; then
4968 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4969 echo "configure:4970: checking for shmat in -lipc" >&5
4970 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4974 ac_save_LIBS="$LIBS"
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4990 eval "ac_cv_lib_$ac_lib_var=yes"
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4995 eval "ac_cv_lib_$ac_lib_var=no"
4998 LIBS="$ac_save_LIBS"
5001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5002 echo "$ac_t""yes" 1>&6
5003 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5005 echo "$ac_t""no" 1>&6
5011 # Check for libraries that X11R6 Xt/Xaw programs need.
5012 ac_save_LDFLAGS="$LDFLAGS"
5013 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5014 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5015 # check for ICE first), but we must link in the order -lSM -lICE or
5016 # we get undefined symbols. So assume we have SM if we have ICE.
5017 # These have to be linked with before -lX11, unlike the other
5018 # libraries we check for below, so use a different variable.
5019 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5020 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5021 echo "configure:5022: checking for IceConnectionNumber in -lICE" >&5
5022 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5026 ac_save_LIBS="$LIBS"
5027 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5031 /* Override any gcc2 internal prototype to avoid an error. */
5032 /* We use char because int might match the return type of a gcc2
5033 builtin and then its argument prototype would still apply. */
5034 char IceConnectionNumber();
5037 IceConnectionNumber()
5040 if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5042 eval "ac_cv_lib_$ac_lib_var=yes"
5044 echo "configure: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5047 eval "ac_cv_lib_$ac_lib_var=no"
5050 LIBS="$ac_save_LIBS"
5053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5054 echo "$ac_t""yes" 1>&6
5055 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5057 echo "$ac_t""no" 1>&6
5060 LDFLAGS="$ac_save_LDFLAGS"
5083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5085 echo "configure:5086: checking for $ac_hdr" >&5
5086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5087 echo $ac_n "(cached) $ac_c" 1>&6
5089 cat > conftest.$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5095 { (eval echo configure:5096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5097 if test -z "$ac_err"; then
5099 eval "ac_cv_header_$ac_safe=yes"
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 eval "ac_cv_header_$ac_safe=no"
5109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5110 echo "$ac_t""yes" 1>&6
5111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5112 cat >> confdefs.h <<EOF
5113 #define $ac_tr_hdr 1
5117 echo "$ac_t""no" 1>&6
5121 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5122 echo "configure:5123: checking for ANSI C header files" >&5
5123 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5135 { (eval echo configure:5136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5137 if test -z "$ac_err"; then
5139 ac_cv_header_stdc=yes
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5145 ac_cv_header_stdc=no
5149 if test $ac_cv_header_stdc = yes; then
5150 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5157 egrep "memchr" >/dev/null 2>&1; then
5161 ac_cv_header_stdc=no
5167 if test $ac_cv_header_stdc = yes; then
5168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5175 egrep "free" >/dev/null 2>&1; then
5179 ac_cv_header_stdc=no
5185 if test $ac_cv_header_stdc = yes; then
5186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5187 if test "$cross_compiling" = yes; then
5190 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5194 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5195 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5197 int main () { int i; for (i = 0; i < 256; i++)
5198 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5209 ac_cv_header_stdc=no
5217 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5218 if test $ac_cv_header_stdc = yes; then
5219 cat >> confdefs.h <<\EOF
5220 #define STDC_HEADERS 1
5225 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5226 echo "configure:5227: checking whether sys/types.h defines makedev" >&5
5227 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5230 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5233 #include <sys/types.h>
5235 return makedev(0, 0);
5238 if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5240 ac_cv_header_sys_types_h_makedev=yes
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5245 ac_cv_header_sys_types_h_makedev=no
5251 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5253 if test $ac_cv_header_sys_types_h_makedev = no; then
5254 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5255 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5256 echo "configure:5257: checking for sys/mkdev.h" >&5
5257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5263 #include <sys/mkdev.h>
5265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5266 { (eval echo configure:5267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5268 if test -z "$ac_err"; then
5270 eval "ac_cv_header_$ac_safe=yes"
5273 echo "configure: failed program was:" >&5
5274 cat conftest.$ac_ext >&5
5276 eval "ac_cv_header_$ac_safe=no"
5280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5282 cat >> confdefs.h <<\EOF
5283 #define MAJOR_IN_MKDEV 1
5287 echo "$ac_t""no" 1>&6
5291 if test $ac_cv_header_sys_mkdev_h = no; then
5292 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5293 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5294 echo "configure:5295: checking for sys/sysmacros.h" >&5
5295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 #include <sys/sysmacros.h>
5303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5304 { (eval echo configure:5305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5306 if test -z "$ac_err"; then
5308 eval "ac_cv_header_$ac_safe=yes"
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5314 eval "ac_cv_header_$ac_safe=no"
5318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5319 echo "$ac_t""yes" 1>&6
5320 cat >> confdefs.h <<\EOF
5321 #define MAJOR_IN_SYSMACROS 1
5325 echo "$ac_t""no" 1>&6
5332 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5335 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5336 echo "configure:5337: checking for $ac_hdr that defines DIR" >&5
5337 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 #include <sys/types.h>
5349 if { (eval echo configure:5350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5351 eval "ac_cv_header_dirent_$ac_safe=yes"
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5356 eval "ac_cv_header_dirent_$ac_safe=no"
5360 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5363 cat >> confdefs.h <<EOF
5364 #define $ac_tr_hdr 1
5366 ac_header_dirent=$ac_hdr; break
5368 echo "$ac_t""no" 1>&6
5371 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5372 if test $ac_header_dirent = dirent.h; then
5373 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5374 echo "configure:5375: checking for opendir in -ldir" >&5
5375 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 ac_save_LIBS="$LIBS"
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5384 /* Override any gcc2 internal prototype to avoid an error. */
5385 /* We use char because int might match the return type of a gcc2
5386 builtin and then its argument prototype would still apply. */
5393 if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5395 eval "ac_cv_lib_$ac_lib_var=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5400 eval "ac_cv_lib_$ac_lib_var=no"
5403 LIBS="$ac_save_LIBS"
5406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5407 echo "$ac_t""yes" 1>&6
5410 echo "$ac_t""no" 1>&6
5414 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5415 echo "configure:5416: checking for opendir in -lx" >&5
5416 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5420 ac_save_LIBS="$LIBS"
5422 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5425 /* Override any gcc2 internal prototype to avoid an error. */
5426 /* We use char because int might match the return type of a gcc2
5427 builtin and then its argument prototype would still apply. */
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5436 eval "ac_cv_lib_$ac_lib_var=yes"
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 eval "ac_cv_lib_$ac_lib_var=no"
5444 LIBS="$ac_save_LIBS"
5447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5448 echo "$ac_t""yes" 1>&6
5451 echo "$ac_t""no" 1>&6
5456 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5457 echo "configure:5458: checking whether stat file-mode macros are broken" >&5
5458 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 #include <sys/types.h>
5465 #include <sys/stat.h>
5467 #if defined(S_ISBLK) && defined(S_IFDIR)
5468 # if S_ISBLK (S_IFDIR)
5473 #if defined(S_ISBLK) && defined(S_IFCHR)
5474 # if S_ISBLK (S_IFCHR)
5479 #if defined(S_ISLNK) && defined(S_IFREG)
5480 # if S_ISLNK (S_IFREG)
5485 #if defined(S_ISSOCK) && defined(S_IFREG)
5486 # if S_ISSOCK (S_IFREG)
5492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5493 egrep "You lose" >/dev/null 2>&1; then
5495 ac_cv_header_stat_broken=yes
5498 ac_cv_header_stat_broken=no
5504 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5505 if test $ac_cv_header_stat_broken = yes; then
5506 cat >> confdefs.h <<\EOF
5507 #define STAT_MACROS_BROKEN 1
5512 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5513 echo "configure:5514: checking for sys/wait.h that is POSIX.1 compatible" >&5
5514 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5520 #include <sys/types.h>
5521 #include <sys/wait.h>
5523 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5526 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5531 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5534 if { (eval echo configure:5535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5536 ac_cv_header_sys_wait_h=yes
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5541 ac_cv_header_sys_wait_h=no
5546 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5547 if test $ac_cv_header_sys_wait_h = yes; then
5548 cat >> confdefs.h <<\EOF
5549 #define HAVE_SYS_WAIT_H 1
5554 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5555 echo "configure:5556: checking whether time.h and sys/time.h may both be included" >&5
5556 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5559 cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5562 #include <sys/types.h>
5563 #include <sys/time.h>
5569 if { (eval echo configure:5570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5571 ac_cv_header_time=yes
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5576 ac_cv_header_time=no
5581 echo "$ac_t""$ac_cv_header_time" 1>&6
5582 if test $ac_cv_header_time = yes; then
5583 cat >> confdefs.h <<\EOF
5584 #define TIME_WITH_SYS_TIME 1
5589 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5590 echo "configure:5591: checking for st_blksize in struct stat" >&5
5591 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 #include <sys/types.h>
5598 #include <sys/stat.h>
5600 struct stat s; s.st_blksize;
5603 if { (eval echo configure:5604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5605 ac_cv_struct_st_blksize=yes
5607 echo "configure: failed program was:" >&5
5608 cat conftest.$ac_ext >&5
5610 ac_cv_struct_st_blksize=no
5615 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5616 if test $ac_cv_struct_st_blksize = yes; then
5617 cat >> confdefs.h <<\EOF
5618 #define HAVE_ST_BLKSIZE 1
5623 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5624 echo "configure:5625: checking for st_blocks in struct stat" >&5
5625 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5628 cat > conftest.$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5631 #include <sys/types.h>
5632 #include <sys/stat.h>
5634 struct stat s; s.st_blocks;
5637 if { (eval echo configure:5638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5639 ac_cv_struct_st_blocks=yes
5641 echo "configure: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5644 ac_cv_struct_st_blocks=no
5649 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5650 if test $ac_cv_struct_st_blocks = yes; then
5651 cat >> confdefs.h <<\EOF
5652 #define HAVE_ST_BLOCKS 1
5656 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5659 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5660 echo "configure:5661: checking whether struct tm is in sys/time.h or time.h" >&5
5661 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5664 cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667 #include <sys/types.h>
5670 struct tm *tp; tp->tm_sec;
5673 if { (eval echo configure:5674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5675 ac_cv_struct_tm=time.h
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5680 ac_cv_struct_tm=sys/time.h
5685 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5686 if test $ac_cv_struct_tm = sys/time.h; then
5687 cat >> confdefs.h <<\EOF
5688 #define TM_IN_SYS_TIME 1
5693 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5694 echo "configure:5695: checking for tm_zone in struct tm" >&5
5695 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5696 echo $ac_n "(cached) $ac_c" 1>&6
5698 cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5701 #include <sys/types.h>
5702 #include <$ac_cv_struct_tm>
5704 struct tm tm; tm.tm_zone;
5707 if { (eval echo configure:5708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5709 ac_cv_struct_tm_zone=yes
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5714 ac_cv_struct_tm_zone=no
5719 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5720 if test "$ac_cv_struct_tm_zone" = yes; then
5721 cat >> confdefs.h <<\EOF
5722 #define HAVE_TM_ZONE 1
5726 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5727 echo "configure:5728: checking for tzname" >&5
5728 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5735 #ifndef tzname /* For SGI. */
5736 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5742 if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5744 ac_cv_var_tzname=yes
5746 echo "configure: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5754 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5755 if test $ac_cv_var_tzname = yes; then
5756 cat >> confdefs.h <<\EOF
5757 #define HAVE_TZNAME 1
5764 # It seems that that many machines where <utime.h> seems to be
5765 # broken just require something like -D_XXX_SOURCE, where XXX might
5766 # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine.
5768 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5769 echo "configure:5770: checking for utime.h" >&5
5770 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5777 #include <sys/types.h>
5783 if { (eval echo configure:5784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5785 tar_cv_header_utime_h=yes
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5790 tar_cv_header_utime_h=no
5795 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5796 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5797 #define HAVE_UTIME_H 1
5801 echo $ac_n "checking for working const""... $ac_c" 1>&6
5802 echo "configure:5803: checking for working const" >&5
5803 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5806 cat > conftest.$ac_ext <<EOF
5807 #line 5808 "configure"
5808 #include "confdefs.h"
5812 /* Ultrix mips cc rejects this. */
5813 typedef int charset[2]; const charset x;
5814 /* SunOS 4.1.1 cc rejects this. */
5815 char const *const *ccp;
5817 /* NEC SVR4.0.2 mips cc rejects this. */
5818 struct point {int x, y;};
5819 static struct point const zero = {0,0};
5820 /* AIX XL C 1.02.0.0 rejects this.
5821 It does not let you subtract one const X* pointer from another in an arm
5822 of an if-expression whose if-part is not a constant expression */
5823 const char *g = "string";
5824 ccp = &g + (g ? g-g : 0);
5825 /* HPUX 7.0 cc rejects these. */
5828 ccp = (char const *const *) p;
5829 { /* SCO 3.2v4 cc rejects this. */
5831 char const *s = 0 ? (char *) 0 : (char const *) 0;
5835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5837 const int *foo = &x[0];
5840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5841 typedef const int *iptr;
5845 { /* AIX XL C 1.02.0.0 rejects this saying
5846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5847 struct s { int j; const int *ap[3]; };
5848 struct s *b; b->j = 5;
5850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5856 if { (eval echo configure:5857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5868 echo "$ac_t""$ac_cv_c_const" 1>&6
5869 if test $ac_cv_c_const = no; then
5870 cat >> confdefs.h <<\EOF
5878 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
5879 echo "configure:5880: checking how to get filesystem type" >&5
5881 # The order of these tests is important.
5882 cat > conftest.$ac_ext <<EOF
5883 #line 5884 "configure"
5884 #include "confdefs.h"
5885 #include <sys/statvfs.h>
5886 #include <sys/fstyp.h>
5888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5889 { (eval echo configure:5890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5891 if test -z "$ac_err"; then
5893 cat >> confdefs.h <<\EOF
5894 #define FSTYPE_STATVFS 1
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5903 if test $fstype = no; then
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 #include <sys/statfs.h>
5908 #include <sys/fstyp.h>
5910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5911 { (eval echo configure:5912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5913 if test -z "$ac_err"; then
5915 cat >> confdefs.h <<\EOF
5916 #define FSTYPE_USG_STATFS 1
5921 echo "configure: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5926 if test $fstype = no; then
5927 cat > conftest.$ac_ext <<EOF
5928 #line 5929 "configure"
5929 #include "confdefs.h"
5930 #include <sys/statfs.h>
5931 #include <sys/vmount.h>
5933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5934 { (eval echo configure:5935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5936 if test -z "$ac_err"; then
5938 cat >> confdefs.h <<\EOF
5939 #define FSTYPE_AIX_STATFS 1
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5949 if test $fstype = no; then
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5956 { (eval echo configure:5957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5958 if test -z "$ac_err"; then
5960 cat >> confdefs.h <<\EOF
5961 #define FSTYPE_MNTENT 1
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5971 if test $fstype = no; then
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 #include <sys/mount.h>
5977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5978 egrep "f_type;" >/dev/null 2>&1; then
5980 cat >> confdefs.h <<\EOF
5981 #define FSTYPE_STATFS 1
5988 if test $fstype = no; then
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 #include <sys/mount.h>
5993 #include <sys/fs_types.h>
5995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5996 { (eval echo configure:5997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5998 if test -z "$ac_err"; then
6000 cat >> confdefs.h <<\EOF
6001 #define FSTYPE_GETMNT 1
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6011 echo "$ac_t""$fstype" 1>&6
6013 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6014 echo "configure:6015: checking return type of signal handlers" >&5
6015 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021 #include <sys/types.h>
6027 extern "C" void (*signal (int, void (*)(int)))(int);
6029 void (*signal ()) ();
6036 if { (eval echo configure:6037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6038 ac_cv_type_signal=void
6040 echo "configure: failed program was:" >&5
6041 cat conftest.$ac_ext >&5
6043 ac_cv_type_signal=int
6048 echo "$ac_t""$ac_cv_type_signal" 1>&6
6049 cat >> confdefs.h <<EOF
6050 #define RETSIGTYPE $ac_cv_type_signal
6055 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6056 echo "configure:6057: checking for type of signal functions" >&5
6057 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6068 struct sigaction sa;
6069 sigemptyset(&ss); sigsuspend(&ss);
6070 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6071 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6075 if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6077 bash_cv_signal_vintage=posix
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6089 int mask = sigmask(SIGINT);
6090 sigsetmask(mask); sigblock(mask); sigpause(mask);
6094 if { (eval echo configure:6095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6096 bash_cv_signal_vintage=4.2bsd
6098 echo "configure: failed program was:" >&5
6099 cat conftest.$ac_ext >&5
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6107 RETSIGTYPE foo() { }
6110 int mask = sigmask(SIGINT);
6111 sigset(SIGINT, foo); sigrelse(SIGINT);
6112 sighold(SIGINT); sigpause(SIGINT);
6116 if { (eval echo configure:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6118 bash_cv_signal_vintage=svr3
6120 echo "configure: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6123 bash_cv_signal_vintage=v7
6136 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6137 if test "$bash_cv_signal_vintage" = posix; then
6138 cat >> confdefs.h <<\EOF
6139 #define HAVE_POSIX_SIGNALS 1
6142 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6143 cat >> confdefs.h <<\EOF
6144 #define HAVE_BSD_SIGNALS 1
6147 elif test "$bash_cv_signal_vintage" = svr3; then
6148 cat >> confdefs.h <<\EOF
6149 #define HAVE_USG_SIGHOLD 1
6154 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6155 echo "configure:6156: checking for mode_t" >&5
6156 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6157 echo $ac_n "(cached) $ac_c" 1>&6
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162 #include <sys/types.h>
6168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6171 ac_cv_type_mode_t=yes
6174 ac_cv_type_mode_t=no
6179 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6180 if test $ac_cv_type_mode_t = no; then
6181 cat >> confdefs.h <<\EOF
6187 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6188 echo "configure:6189: checking for uid_t in sys/types.h" >&5
6189 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6192 cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6195 #include <sys/types.h>
6197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198 egrep "uid_t" >/dev/null 2>&1; then
6200 ac_cv_type_uid_t=yes
6209 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6210 if test $ac_cv_type_uid_t = no; then
6211 cat >> confdefs.h <<\EOF
6215 cat >> confdefs.h <<\EOF
6221 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6222 echo "configure:6223: checking for size_t" >&5
6223 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6224 echo $ac_n "(cached) $ac_c" 1>&6
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6229 #include <sys/types.h>
6235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6236 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6238 ac_cv_type_size_t=yes
6241 ac_cv_type_size_t=no
6246 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6247 if test $ac_cv_type_size_t = no; then
6248 cat >> confdefs.h <<\EOF
6249 #define size_t unsigned
6254 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6255 echo "configure:6256: checking for pid_t" >&5
6256 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262 #include <sys/types.h>
6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6271 ac_cv_type_pid_t=yes
6279 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6280 if test $ac_cv_type_pid_t = no; then
6281 cat >> confdefs.h <<\EOF
6287 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6288 echo "configure:6289: checking for off_t" >&5
6289 if eval "test \"`echo '$''{'ac_cv_type_off_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])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6304 ac_cv_type_off_t=yes
6312 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6313 if test $ac_cv_type_off_t = no; then
6314 cat >> confdefs.h <<\EOF
6320 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6321 echo "configure:6322: checking for ino_t" >&5
6322 if eval "test \"`echo '$''{'ac_cv_type_ino_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])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6337 ac_cv_type_ino_t=yes
6345 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6346 if test $ac_cv_type_ino_t = no; then
6347 cat >> confdefs.h <<\EOF
6348 #define ino_t unsigned long
6353 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6354 echo "configure:6355: checking for dev_t" >&5
6355 if eval "test \"`echo '$''{'ac_cv_type_dev_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])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6370 ac_cv_type_dev_t=yes
6378 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6379 if test $ac_cv_type_dev_t = no; then
6380 cat >> confdefs.h <<\EOF
6381 #define dev_t unsigned long
6386 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6387 echo "configure:6388: checking for daddr_t" >&5
6388 if eval "test \"`echo '$''{'ac_cv_type_daddr_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])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6403 ac_cv_type_daddr_t=yes
6406 ac_cv_type_daddr_t=no
6411 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6412 if test $ac_cv_type_daddr_t = no; then
6413 cat >> confdefs.h <<\EOF
6414 #define daddr_t long
6419 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6420 echo "configure:6421: checking for major_t" >&5
6421 if eval "test \"`echo '$''{'ac_cv_type_major_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])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6436 ac_cv_type_major_t=yes
6439 ac_cv_type_major_t=no
6444 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6445 if test $ac_cv_type_major_t = no; then
6446 cat >> confdefs.h <<\EOF
6452 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6453 echo "configure:6454: checking for minor_t" >&5
6454 if eval "test \"`echo '$''{'ac_cv_type_minor_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])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6469 ac_cv_type_minor_t=yes
6472 ac_cv_type_minor_t=no
6477 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6478 if test $ac_cv_type_minor_t = no; then
6479 cat >> confdefs.h <<\EOF
6485 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6486 echo "configure:6487: checking for ssize_t" >&5
6487 if eval "test \"`echo '$''{'ac_cv_type_ssize_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])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6502 ac_cv_type_ssize_t=yes
6505 ac_cv_type_ssize_t=no
6510 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6511 if test $ac_cv_type_ssize_t = no; then
6512 cat >> confdefs.h <<\EOF
6518 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6519 echo "configure:6520: checking for st_blocks in struct stat" >&5
6520 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+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>
6527 #include <sys/stat.h>
6529 struct stat s; s.st_blocks;
6532 if { (eval echo configure:6533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6534 ac_cv_struct_st_blocks=yes
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6539 ac_cv_struct_st_blocks=no
6544 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6545 if test $ac_cv_struct_st_blocks = yes; then
6546 cat >> confdefs.h <<\EOF
6547 #define HAVE_ST_BLOCKS 1
6551 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6554 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6555 echo "configure:6556: checking for st_rdev in struct stat" >&5
6556 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6559 cat > conftest.$ac_ext <<EOF
6560 #line 6561 "configure"
6561 #include "confdefs.h"
6562 #include <sys/types.h>
6563 #include <sys/stat.h>
6565 struct stat s; s.st_rdev;
6568 if { (eval echo configure:6569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6570 ac_cv_struct_st_rdev=yes
6572 echo "configure: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6575 ac_cv_struct_st_rdev=no
6580 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6581 if test $ac_cv_struct_st_rdev = yes; then
6582 cat >> confdefs.h <<\EOF
6583 #define HAVE_ST_RDEV 1
6588 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6589 echo "configure:6590: checking whether struct tm is in sys/time.h or time.h" >&5
6590 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 #include <sys/types.h>
6599 struct tm *tp; tp->tm_sec;
6602 if { (eval echo configure:6603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6604 ac_cv_struct_tm=time.h
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 ac_cv_struct_tm=sys/time.h
6614 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6615 if test $ac_cv_struct_tm = sys/time.h; then
6616 cat >> confdefs.h <<\EOF
6617 #define TM_IN_SYS_TIME 1
6622 echo $ac_n "checking for working const""... $ac_c" 1>&6
6623 echo "configure:6624: checking for working const" >&5
6624 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6625 echo $ac_n "(cached) $ac_c" 1>&6
6627 cat > conftest.$ac_ext <<EOF
6628 #line 6629 "configure"
6629 #include "confdefs.h"
6633 /* Ultrix mips cc rejects this. */
6634 typedef int charset[2]; const charset x;
6635 /* SunOS 4.1.1 cc rejects this. */
6636 char const *const *ccp;
6638 /* NEC SVR4.0.2 mips cc rejects this. */
6639 struct point {int x, y;};
6640 static struct point const zero = {0,0};
6641 /* AIX XL C 1.02.0.0 rejects this.
6642 It does not let you subtract one const X* pointer from another in an arm
6643 of an if-expression whose if-part is not a constant expression */
6644 const char *g = "string";
6645 ccp = &g + (g ? g-g : 0);
6646 /* HPUX 7.0 cc rejects these. */
6649 ccp = (char const *const *) p;
6650 { /* SCO 3.2v4 cc rejects this. */
6652 char const *s = 0 ? (char *) 0 : (char const *) 0;
6656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6658 const int *foo = &x[0];
6661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6662 typedef const int *iptr;
6666 { /* AIX XL C 1.02.0.0 rejects this saying
6667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6668 struct s { int j; const int *ap[3]; };
6669 struct s *b; b->j = 5;
6671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6677 if { (eval echo configure:6678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6681 echo "configure: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6689 echo "$ac_t""$ac_cv_c_const" 1>&6
6690 if test $ac_cv_c_const = no; then
6691 cat >> confdefs.h <<\EOF
6699 echo $ac_n "checking size of char""... $ac_c" 1>&6
6700 echo "configure:6701: checking size of char" >&5
6701 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 if test "$cross_compiling" = yes; then
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6713 FILE *f=fopen("conftestval", "w");
6715 fprintf(f, "%d\n", sizeof(char));
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6721 ac_cv_sizeof_char=`cat conftestval`
6723 echo "configure: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6732 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6733 cat >> confdefs.h <<EOF
6734 #define SIZEOF_CHAR $ac_cv_sizeof_char
6738 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6739 echo "configure:6740: checking size of short int" >&5
6740 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 if test "$cross_compiling" = yes; then
6744 ac_cv_sizeof_short_int=2
6746 cat > conftest.$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6752 FILE *f=fopen("conftestval", "w");
6754 fprintf(f, "%d\n", sizeof(short int));
6758 if { (eval echo configure:6759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6760 ac_cv_sizeof_short_int=`cat conftestval`
6762 echo "configure: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6765 ac_cv_sizeof_short_int=0
6771 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6772 cat >> confdefs.h <<EOF
6773 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6777 echo $ac_n "checking size of int""... $ac_c" 1>&6
6778 echo "configure:6779: checking size of int" >&5
6779 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6782 if test "$cross_compiling" = yes; then
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6791 FILE *f=fopen("conftestval", "w");
6793 fprintf(f, "%d\n", sizeof(int));
6797 if { (eval echo configure:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6799 ac_cv_sizeof_int=`cat conftestval`
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6810 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6811 cat >> confdefs.h <<EOF
6812 #define SIZEOF_INT $ac_cv_sizeof_int
6816 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6817 echo "configure:6818: checking size of long int" >&5
6818 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6821 if test "$cross_compiling" = yes; then
6822 ac_cv_sizeof_long_int=4
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6830 FILE *f=fopen("conftestval", "w");
6832 fprintf(f, "%d\n", sizeof(long int));
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6838 ac_cv_sizeof_long_int=`cat conftestval`
6840 echo "configure: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6843 ac_cv_sizeof_long_int=0
6849 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
6850 cat >> confdefs.h <<EOF
6851 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
6855 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
6856 echo "configure:6857: checking size of long long int" >&5
6857 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6860 if test "$cross_compiling" = yes; then
6861 ac_cv_sizeof_long_long_int=8
6863 cat > conftest.$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6869 FILE *f=fopen("conftestval", "w");
6871 fprintf(f, "%d\n", sizeof(long long int));
6875 if { (eval echo configure:6876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6877 ac_cv_sizeof_long_long_int=`cat conftestval`
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6882 ac_cv_sizeof_long_long_int=0
6888 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
6889 cat >> confdefs.h <<EOF
6890 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
6894 echo $ac_n "checking size of int *""... $ac_c" 1>&6
6895 echo "configure:6896: checking size of int *" >&5
6896 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6899 if test "$cross_compiling" = yes; then
6900 ac_cv_sizeof_int_p=4
6902 cat > conftest.$ac_ext <<EOF
6903 #line 6904 "configure"
6904 #include "confdefs.h"
6908 FILE *f=fopen("conftestval", "w");
6910 fprintf(f, "%d\n", sizeof(int *));
6914 if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6916 ac_cv_sizeof_int_p=`cat conftestval`
6918 echo "configure: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6921 ac_cv_sizeof_int_p=0
6927 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
6928 cat >> confdefs.h <<EOF
6929 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
6934 # Check for sys/types.h types
6935 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
6936 echo "configure:6937: checking for u_int type" >&5
6937 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6944 #include <sys/types.h>
6949 if { (eval echo configure:6950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6951 ac_cv_have_u_int="yes"
6953 echo "configure: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6956 ac_cv_have_u_int="no"
6963 echo "$ac_t""$ac_cv_have_u_int" 1>&6
6964 if test "x$ac_cv_have_u_int" = "xyes" ; then
6965 cat >> confdefs.h <<\EOF
6966 #define HAVE_U_INT 1
6972 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
6973 echo "configure:6974: checking for intmax_t type" >&5
6974 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
6975 echo $ac_n "(cached) $ac_c" 1>&6
6978 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6981 #include <sys/types.h>
6986 if { (eval echo configure:6987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6988 ac_cv_have_intmax_t="yes"
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
7002 if { (eval echo configure:7003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7004 ac_cv_have_intmax_t="yes"
7006 echo "configure: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7009 ac_cv_have_intmax_t="no"
7021 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7022 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7023 cat >> confdefs.h <<\EOF
7024 #define HAVE_INTMAX_T 1
7031 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7032 echo "configure:7033: checking for u_intmax_t type" >&5
7033 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7034 echo $ac_n "(cached) $ac_c" 1>&6
7037 cat > conftest.$ac_ext <<EOF
7038 #line 7039 "configure"
7039 #include "confdefs.h"
7040 #include <sys/types.h>
7042 u_intmax_t a; a = 1;
7045 if { (eval echo configure:7046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7047 ac_cv_have_u_intmax_t="yes"
7049 echo "configure: failed program was:" >&5
7050 cat conftest.$ac_ext >&5
7053 cat > conftest.$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7058 u_intmax_t a; a = 1;
7061 if { (eval echo configure:7062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7063 ac_cv_have_u_intmax_t="yes"
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7068 ac_cv_have_u_intmax_t="no"
7079 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7080 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7081 cat >> confdefs.h <<\EOF
7082 #define HAVE_U_INTMAX_T 1
7089 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7090 echo "configure:7091: checking for intXX_t types" >&5
7091 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7092 echo $ac_n "(cached) $ac_c" 1>&6
7095 cat > conftest.$ac_ext <<EOF
7096 #line 7097 "configure"
7097 #include "confdefs.h"
7098 #include <sys/types.h>
7100 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7103 if { (eval echo configure:7104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7105 ac_cv_have_intxx_t="yes"
7107 echo "configure: failed program was:" >&5
7108 cat conftest.$ac_ext >&5
7110 ac_cv_have_intxx_t="no"
7117 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7118 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7119 cat >> confdefs.h <<\EOF
7120 #define HAVE_INTXX_T 1
7126 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7127 echo "configure:7128: checking for int64_t type" >&5
7128 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 #include <sys/types.h>
7140 if { (eval echo configure:7141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7142 ac_cv_have_int64_t="yes"
7144 echo "configure: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 ac_cv_have_int64_t="no"
7154 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7155 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7156 cat >> confdefs.h <<\EOF
7157 #define HAVE_INT64_T 1
7163 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7164 echo "configure:7165: checking for u_intXX_t types" >&5
7165 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 #include <sys/types.h>
7174 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7177 if { (eval echo configure:7178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7179 ac_cv_have_u_intxx_t="yes"
7181 echo "configure: failed program was:" >&5
7182 cat conftest.$ac_ext >&5
7184 ac_cv_have_u_intxx_t="no"
7191 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7192 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7193 cat >> confdefs.h <<\EOF
7194 #define HAVE_U_INTXX_T 1
7200 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7201 echo "configure:7202: checking for u_int64_t types" >&5
7202 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7206 cat > conftest.$ac_ext <<EOF
7207 #line 7208 "configure"
7208 #include "confdefs.h"
7209 #include <sys/types.h>
7214 if { (eval echo configure:7215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7216 ac_cv_have_u_int64_t="yes"
7218 echo "configure: failed program was:" >&5
7219 cat conftest.$ac_ext >&5
7221 ac_cv_have_u_int64_t="no"
7228 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7229 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7230 cat >> confdefs.h <<\EOF
7231 #define HAVE_U_INT64_T 1
7237 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7238 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7240 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7241 echo "configure:7242: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 #include <sys/bitypes.h>
7247 int8_t a; int16_t b; int32_t c;
7248 u_int8_t e; u_int16_t f; u_int32_t g;
7249 a = b = c = e = f = g = 1;
7252 if { (eval echo configure:7253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7254 cat >> confdefs.h <<\EOF
7255 #define HAVE_U_INTXX_T 1
7258 cat >> confdefs.h <<\EOF
7259 #define HAVE_INTXX_T 1
7262 cat >> confdefs.h <<\EOF
7263 #define HAVE_SYS_BITYPES_H 1
7266 echo "$ac_t""yes" 1>&6
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7271 echo "$ac_t""no" 1>&6
7277 if test -z "$have_u_intxx_t" ; then
7278 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7279 echo "configure:7280: checking for uintXX_t types" >&5
7280 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7281 echo $ac_n "(cached) $ac_c" 1>&6
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 #include <sys/types.h>
7289 uint8_t a; uint16_t b;
7290 uint32_t c; a = b = c = 1;
7293 if { (eval echo configure:7294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7295 ac_cv_have_uintxx_t="yes"
7297 echo "configure: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7300 ac_cv_have_uintxx_t="no"
7307 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7308 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7309 cat >> confdefs.h <<\EOF
7310 #define HAVE_UINTXX_T 1
7333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7334 echo "configure:7335: checking for $ac_func" >&5
7335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7341 /* System header to define __stub macros and hopefully few prototypes,
7342 which can conflict with char $ac_func(); below. */
7344 /* Override any gcc2 internal prototype to avoid an error. */
7345 /* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7351 /* The GNU C library defines this for functions which it implements
7352 to always fail with ENOSYS. Some functions are actually named
7353 something starting with __ and the normal name is an alias. */
7354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7364 eval "ac_cv_func_$ac_func=yes"
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 eval "ac_cv_func_$ac_func=no"
7374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7377 cat >> confdefs.h <<EOF
7378 #define $ac_tr_func 1
7382 echo "$ac_t""no" 1>&6
7383 echo 'configure: cannot find needed function.'; exit 1
7389 for ac_func in fchdir
7391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7392 echo "configure:7393: checking for $ac_func" >&5
7393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7396 cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 /* System header to define __stub macros and hopefully few prototypes,
7400 which can conflict with char $ac_func(); below. */
7402 /* Override any gcc2 internal prototype to avoid an error. */
7403 /* We use char because int might match the return type of a gcc2
7404 builtin and then its argument prototype would still apply. */
7409 /* The GNU C library defines this for functions which it implements
7410 to always fail with ENOSYS. Some functions are actually named
7411 something starting with __ and the normal name is an alias. */
7412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7420 if { (eval echo configure:7421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 eval "ac_cv_func_$ac_func=yes"
7424 echo "configure: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7427 eval "ac_cv_func_$ac_func=no"
7432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7433 echo "$ac_t""yes" 1>&6
7434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7435 cat >> confdefs.h <<EOF
7436 #define $ac_tr_func 1
7438 cat >> confdefs.h <<\EOF
7439 #define HAVE_FCHDIR 1
7443 echo "$ac_t""no" 1>&6
7448 for ac_func in snprintf vsnprintf gethostid getdomainname
7450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7451 echo "configure:7452: checking for $ac_func" >&5
7452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 cat > conftest.$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 /* System header to define __stub macros and hopefully few prototypes,
7459 which can conflict with char $ac_func(); below. */
7461 /* Override any gcc2 internal prototype to avoid an error. */
7462 /* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7468 /* The GNU C library defines this for functions which it implements
7469 to always fail with ENOSYS. Some functions are actually named
7470 something starting with __ and the normal name is an alias. */
7471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7479 if { (eval echo configure:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7481 eval "ac_cv_func_$ac_func=yes"
7483 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7486 eval "ac_cv_func_$ac_func=no"
7491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7492 echo "$ac_t""yes" 1>&6
7493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7494 cat >> confdefs.h <<EOF
7495 #define $ac_tr_func 1
7499 echo "$ac_t""no" 1>&6
7504 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7507 echo "configure:7508: checking for $ac_func" >&5
7508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7511 cat > conftest.$ac_ext <<EOF
7512 #line 7513 "configure"
7513 #include "confdefs.h"
7514 /* System header to define __stub macros and hopefully few prototypes,
7515 which can conflict with char $ac_func(); below. */
7517 /* Override any gcc2 internal prototype to avoid an error. */
7518 /* We use char because int might match the return type of a gcc2
7519 builtin and then its argument prototype would still apply. */
7524 /* The GNU C library defines this for functions which it implements
7525 to always fail with ENOSYS. Some functions are actually named
7526 something starting with __ and the normal name is an alias. */
7527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7535 if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7537 eval "ac_cv_func_$ac_func=yes"
7539 echo "configure: failed program was:" >&5
7540 cat conftest.$ac_ext >&5
7542 eval "ac_cv_func_$ac_func=no"
7547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7548 echo "$ac_t""yes" 1>&6
7549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7550 cat >> confdefs.h <<EOF
7551 #define $ac_tr_func 1
7555 echo "$ac_t""no" 1>&6
7560 # If resolver functions are not in libc check for -lnsl or -lresolv.
7561 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7562 echo "configure:7563: checking for gethostbyname_r" >&5
7563 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7566 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 /* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char gethostbyname_r(); below. */
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7575 char gethostbyname_r();
7579 /* The GNU C library defines this for functions which it implements
7580 to always fail with ENOSYS. Some functions are actually named
7581 something starting with __ and the normal name is an alias. */
7582 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7590 if { (eval echo configure:7591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7592 eval "ac_cv_func_gethostbyname_r=yes"
7594 echo "configure: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7597 eval "ac_cv_func_gethostbyname_r=no"
7602 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7603 echo "$ac_t""yes" 1>&6
7604 echo "$ac_t""using libc's resolver" 1>&6
7606 echo "$ac_t""no" 1>&6
7607 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7608 echo "configure:7609: checking for gethostbyname_r in -lnsl" >&5
7609 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 ac_save_LIBS="$LIBS"
7615 cat > conftest.$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7618 /* Override any gcc2 internal prototype to avoid an error. */
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7621 char gethostbyname_r();
7627 if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7629 eval "ac_cv_lib_$ac_lib_var=yes"
7631 echo "configure: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7634 eval "ac_cv_lib_$ac_lib_var=no"
7637 LIBS="$ac_save_LIBS"
7640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7641 echo "$ac_t""yes" 1>&6
7642 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7644 cat >> confdefs.h <<EOF
7645 #define $ac_tr_lib 1
7651 echo "$ac_t""no" 1>&6
7654 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7655 echo "configure:7656: checking for gethostbyname_r in -lresolv" >&5
7656 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7660 ac_save_LIBS="$LIBS"
7661 LIBS="-lresolv $LIBS"
7662 cat > conftest.$ac_ext <<EOF
7663 #line 7664 "configure"
7664 #include "confdefs.h"
7665 /* Override any gcc2 internal prototype to avoid an error. */
7666 /* We use char because int might match the return type of a gcc2
7667 builtin and then its argument prototype would still apply. */
7668 char gethostbyname_r();
7674 if { (eval echo configure:7675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7676 eval "ac_cv_lib_$ac_lib_var=yes"
7678 echo "configure: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7681 eval "ac_cv_lib_$ac_lib_var=no"
7684 LIBS="$ac_save_LIBS"
7687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7688 echo "$ac_t""yes" 1>&6
7689 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7690 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7691 cat >> confdefs.h <<EOF
7692 #define $ac_tr_lib 1
7695 LIBS="-lresolv $LIBS"
7698 echo "$ac_t""no" 1>&6
7705 # Find where sockets are (especially for Solaris)
7706 echo $ac_n "checking for socket""... $ac_c" 1>&6
7707 echo "configure:7708: checking for socket" >&5
7708 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7709 echo $ac_n "(cached) $ac_c" 1>&6
7711 cat > conftest.$ac_ext <<EOF
7712 #line 7713 "configure"
7713 #include "confdefs.h"
7714 /* System header to define __stub macros and hopefully few prototypes,
7715 which can conflict with char socket(); below. */
7717 /* Override any gcc2 internal prototype to avoid an error. */
7718 /* We use char because int might match the return type of a gcc2
7719 builtin and then its argument prototype would still apply. */
7724 /* The GNU C library defines this for functions which it implements
7725 to always fail with ENOSYS. Some functions are actually named
7726 something starting with __ and the normal name is an alias. */
7727 #if defined (__stub_socket) || defined (__stub___socket)
7735 if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7737 eval "ac_cv_func_socket=yes"
7739 echo "configure: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7742 eval "ac_cv_func_socket=no"
7747 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7748 echo "$ac_t""yes" 1>&6
7749 echo "$ac_t""using libc's socket" 1>&6
7751 echo "$ac_t""no" 1>&6
7752 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7753 echo "configure:7754: checking for socket in -lxnet" >&5
7754 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7758 ac_save_LIBS="$LIBS"
7760 cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7763 /* Override any gcc2 internal prototype to avoid an error. */
7764 /* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7772 if { (eval echo configure:7773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7774 eval "ac_cv_lib_$ac_lib_var=yes"
7776 echo "configure: failed program was:" >&5
7777 cat conftest.$ac_ext >&5
7779 eval "ac_cv_lib_$ac_lib_var=no"
7782 LIBS="$ac_save_LIBS"
7785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7786 echo "$ac_t""yes" 1>&6
7787 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7788 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7789 cat >> confdefs.h <<EOF
7790 #define $ac_tr_lib 1
7796 echo "$ac_t""no" 1>&6
7799 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7800 echo "configure:7801: checking for socket in -lsocket" >&5
7801 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7805 ac_save_LIBS="$LIBS"
7806 LIBS="-lsocket $LIBS"
7807 cat > conftest.$ac_ext <<EOF
7808 #line 7809 "configure"
7809 #include "confdefs.h"
7810 /* Override any gcc2 internal prototype to avoid an error. */
7811 /* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7819 if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7821 eval "ac_cv_lib_$ac_lib_var=yes"
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7826 eval "ac_cv_lib_$ac_lib_var=no"
7829 LIBS="$ac_save_LIBS"
7832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7833 echo "$ac_t""yes" 1>&6
7834 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
7835 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7836 cat >> confdefs.h <<EOF
7837 #define $ac_tr_lib 1
7840 LIBS="-lsocket $LIBS"
7843 echo "$ac_t""no" 1>&6
7846 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
7847 echo "configure:7848: checking for socket in -linet" >&5
7848 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
7849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7852 ac_save_LIBS="$LIBS"
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 /* We use char because int might match the return type of a gcc2
7859 builtin and then its argument prototype would still apply. */
7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7868 eval "ac_cv_lib_$ac_lib_var=yes"
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 eval "ac_cv_lib_$ac_lib_var=no"
7876 LIBS="$ac_save_LIBS"
7879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7880 echo "$ac_t""yes" 1>&6
7881 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
7882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7883 cat >> confdefs.h <<EOF
7884 #define $ac_tr_lib 1
7890 echo "$ac_t""no" 1>&6
7896 for ac_func in inet_pton
7898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_func" >&5
7900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7903 cat > conftest.$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7906 /* System header to define __stub macros and hopefully few prototypes,
7907 which can conflict with char $ac_func(); below. */
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 /* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7916 /* The GNU C library defines this for functions which it implements
7917 to always fail with ENOSYS. Some functions are actually named
7918 something starting with __ and the normal name is an alias. */
7919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7927 if { (eval echo configure:7928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7929 eval "ac_cv_func_$ac_func=yes"
7931 echo "configure: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7934 eval "ac_cv_func_$ac_func=no"
7939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7940 echo "$ac_t""yes" 1>&6
7941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7942 cat >> confdefs.h <<EOF
7943 #define $ac_tr_func 1
7945 cat >> confdefs.h <<\EOF
7946 #define HAVE_INET_PTON 1
7950 echo "$ac_t""no" 1>&6
7955 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7956 echo "configure:7957: checking for strftime" >&5
7957 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7958 echo $ac_n "(cached) $ac_c" 1>&6
7960 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure"
7962 #include "confdefs.h"
7963 /* System header to define __stub macros and hopefully few prototypes,
7964 which can conflict with char strftime(); below. */
7966 /* Override any gcc2 internal prototype to avoid an error. */
7967 /* We use char because int might match the return type of a gcc2
7968 builtin and then its argument prototype would still apply. */
7973 /* The GNU C library defines this for functions which it implements
7974 to always fail with ENOSYS. Some functions are actually named
7975 something starting with __ and the normal name is an alias. */
7976 #if defined (__stub_strftime) || defined (__stub___strftime)
7984 if { (eval echo configure:7985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7986 eval "ac_cv_func_strftime=yes"
7988 echo "configure: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7991 eval "ac_cv_func_strftime=no"
7996 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7997 echo "$ac_t""yes" 1>&6
7998 cat >> confdefs.h <<\EOF
7999 #define HAVE_STRFTIME 1
8003 echo "$ac_t""no" 1>&6
8004 # strftime is in -lintl on SCO UNIX.
8005 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8006 echo "configure:8007: checking for strftime in -lintl" >&5
8007 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8011 ac_save_LIBS="$LIBS"
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* Override any gcc2 internal prototype to avoid an error. */
8017 /* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8025 if { (eval echo configure:8026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8027 eval "ac_cv_lib_$ac_lib_var=yes"
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8032 eval "ac_cv_lib_$ac_lib_var=no"
8035 LIBS="$ac_save_LIBS"
8038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8039 echo "$ac_t""yes" 1>&6
8040 cat >> confdefs.h <<\EOF
8041 #define HAVE_STRFTIME 1
8046 echo "$ac_t""no" 1>&6
8051 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8052 echo "configure:8053: checking for vprintf" >&5
8053 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8056 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8059 /* System header to define __stub macros and hopefully few prototypes,
8060 which can conflict with char vprintf(); below. */
8062 /* Override any gcc2 internal prototype to avoid an error. */
8063 /* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8069 /* The GNU C library defines this for functions which it implements
8070 to always fail with ENOSYS. Some functions are actually named
8071 something starting with __ and the normal name is an alias. */
8072 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8080 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8082 eval "ac_cv_func_vprintf=yes"
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8087 eval "ac_cv_func_vprintf=no"
8092 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8093 echo "$ac_t""yes" 1>&6
8094 cat >> confdefs.h <<\EOF
8095 #define HAVE_VPRINTF 1
8099 echo "$ac_t""no" 1>&6
8102 if test "$ac_cv_func_vprintf" != yes; then
8103 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8104 echo "configure:8105: checking for _doprnt" >&5
8105 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8108 cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8111 /* System header to define __stub macros and hopefully few prototypes,
8112 which can conflict with char _doprnt(); below. */
8114 /* Override any gcc2 internal prototype to avoid an error. */
8115 /* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8121 /* The GNU C library defines this for functions which it implements
8122 to always fail with ENOSYS. Some functions are actually named
8123 something starting with __ and the normal name is an alias. */
8124 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8134 eval "ac_cv_func__doprnt=yes"
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8139 eval "ac_cv_func__doprnt=no"
8144 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8145 echo "$ac_t""yes" 1>&6
8146 cat >> confdefs.h <<\EOF
8147 #define HAVE_DOPRNT 1
8151 echo "$ac_t""no" 1>&6
8156 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8157 # for constant arguments. Useless!
8158 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8159 echo "configure:8160: checking for working alloca.h" >&5
8160 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8161 echo $ac_n "(cached) $ac_c" 1>&6
8163 cat > conftest.$ac_ext <<EOF
8164 #line 8165 "configure"
8165 #include "confdefs.h"
8168 char *p = alloca(2 * sizeof(int));
8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8173 ac_cv_header_alloca_h=yes
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8178 ac_cv_header_alloca_h=no
8183 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8184 if test $ac_cv_header_alloca_h = yes; then
8185 cat >> confdefs.h <<\EOF
8186 #define HAVE_ALLOCA_H 1
8191 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8192 echo "configure:8193: checking for alloca" >&5
8193 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8194 echo $ac_n "(cached) $ac_c" 1>&6
8196 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8201 # define alloca __builtin_alloca
8204 # include <malloc.h>
8205 # define alloca _alloca
8208 # include <alloca.h>
8213 # ifndef alloca /* predefined by HP cc +Olibcalls */
8222 char *p = (char *) alloca(1);
8225 if { (eval echo configure:8226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8227 ac_cv_func_alloca_works=yes
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8232 ac_cv_func_alloca_works=no
8237 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8238 if test $ac_cv_func_alloca_works = yes; then
8239 cat >> confdefs.h <<\EOF
8240 #define HAVE_ALLOCA 1
8245 if test $ac_cv_func_alloca_works = no; then
8246 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8247 # that cause trouble. Some versions do not even contain alloca or
8248 # contain a buggy version. If you still want to use their alloca,
8249 # use ar to extract alloca.o from them instead of compiling alloca.c.
8250 ALLOCA=alloca.${ac_objext}
8251 cat >> confdefs.h <<\EOF
8256 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8257 echo "configure:8258: checking whether alloca needs Cray hooks" >&5
8258 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8261 cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8264 #if defined(CRAY) && ! defined(CRAY2)
8271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8272 egrep "webecray" >/dev/null 2>&1; then
8283 echo "$ac_t""$ac_cv_os_cray" 1>&6
8284 if test $ac_cv_os_cray = yes; then
8285 for ac_func in _getb67 GETB67 getb67; do
8286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8287 echo "configure:8288: checking for $ac_func" >&5
8288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8289 echo $ac_n "(cached) $ac_c" 1>&6
8291 cat > conftest.$ac_ext <<EOF
8292 #line 8293 "configure"
8293 #include "confdefs.h"
8294 /* System header to define __stub macros and hopefully few prototypes,
8295 which can conflict with char $ac_func(); below. */
8297 /* Override any gcc2 internal prototype to avoid an error. */
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8304 /* The GNU C library defines this for functions which it implements
8305 to always fail with ENOSYS. Some functions are actually named
8306 something starting with __ and the normal name is an alias. */
8307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8315 if { (eval echo configure:8316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8317 eval "ac_cv_func_$ac_func=yes"
8319 echo "configure: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8322 eval "ac_cv_func_$ac_func=no"
8327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8328 echo "$ac_t""yes" 1>&6
8329 cat >> confdefs.h <<EOF
8330 #define CRAY_STACKSEG_END $ac_func
8335 echo "$ac_t""no" 1>&6
8341 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8342 echo "configure:8343: checking stack direction for C alloca" >&5
8343 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8344 echo $ac_n "(cached) $ac_c" 1>&6
8346 if test "$cross_compiling" = yes; then
8347 ac_cv_c_stack_direction=0
8349 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8352 find_stack_direction ()
8354 static char *addr = 0;
8359 return find_stack_direction ();
8362 return (&dummy > addr) ? 1 : -1;
8366 exit (find_stack_direction() < 0);
8369 if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8371 ac_cv_c_stack_direction=1
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8376 ac_cv_c_stack_direction=-1
8383 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8384 cat >> confdefs.h <<EOF
8385 #define STACK_DIRECTION $ac_cv_c_stack_direction
8390 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8391 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8392 echo "configure:8393: checking for getmntent in -lsun" >&5
8393 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8395 echo $ac_n "(cached) $ac_c" 1>&6
8397 ac_save_LIBS="$LIBS"
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 /* Override any gcc2 internal prototype to avoid an error. */
8403 /* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8413 eval "ac_cv_lib_$ac_lib_var=yes"
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8418 eval "ac_cv_lib_$ac_lib_var=no"
8421 LIBS="$ac_save_LIBS"
8424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8425 echo "$ac_t""yes" 1>&6
8428 echo "$ac_t""no" 1>&6
8429 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8430 echo "configure:8431: checking for getmntent in -lseq" >&5
8431 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6
8435 ac_save_LIBS="$LIBS"
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 /* Override any gcc2 internal prototype to avoid an error. */
8441 /* We use char because int might match the return type of a gcc2
8442 builtin and then its argument prototype would still apply. */
8449 if { (eval echo configure:8450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8451 eval "ac_cv_lib_$ac_lib_var=yes"
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 eval "ac_cv_lib_$ac_lib_var=no"
8459 LIBS="$ac_save_LIBS"
8462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8463 echo "$ac_t""yes" 1>&6
8466 echo "$ac_t""no" 1>&6
8467 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8468 echo "configure:8469: checking for getmntent in -lgen" >&5
8469 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8473 ac_save_LIBS="$LIBS"
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8478 /* Override any gcc2 internal prototype to avoid an error. */
8479 /* We use char because int might match the return type of a gcc2
8480 builtin and then its argument prototype would still apply. */
8487 if { (eval echo configure:8488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8489 eval "ac_cv_lib_$ac_lib_var=yes"
8491 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8494 eval "ac_cv_lib_$ac_lib_var=no"
8497 LIBS="$ac_save_LIBS"
8500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8501 echo "$ac_t""yes" 1>&6
8504 echo "$ac_t""no" 1>&6
8511 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8512 echo "configure:8513: checking for getmntent" >&5
8513 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8516 cat > conftest.$ac_ext <<EOF
8517 #line 8518 "configure"
8518 #include "confdefs.h"
8519 /* System header to define __stub macros and hopefully few prototypes,
8520 which can conflict with char getmntent(); below. */
8522 /* Override any gcc2 internal prototype to avoid an error. */
8523 /* We use char because int might match the return type of a gcc2
8524 builtin and then its argument prototype would still apply. */
8529 /* The GNU C library defines this for functions which it implements
8530 to always fail with ENOSYS. Some functions are actually named
8531 something starting with __ and the normal name is an alias. */
8532 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8540 if { (eval echo configure:8541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8542 eval "ac_cv_func_getmntent=yes"
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8547 eval "ac_cv_func_getmntent=no"
8552 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8553 echo "$ac_t""yes" 1>&6
8554 cat >> confdefs.h <<\EOF
8555 #define HAVE_GETMNTENT 1
8559 echo "$ac_t""no" 1>&6
8562 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8563 echo "configure:8564: checking whether closedir returns void" >&5
8564 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8565 echo $ac_n "(cached) $ac_c" 1>&6
8567 if test "$cross_compiling" = yes; then
8568 ac_cv_func_closedir_void=yes
8570 cat > conftest.$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8573 #include <sys/types.h>
8574 #include <$ac_header_dirent>
8575 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8577 if { (eval echo configure:8578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8579 ac_cv_func_closedir_void=no
8581 echo "configure: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8584 ac_cv_func_closedir_void=yes
8591 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8592 if test $ac_cv_func_closedir_void = yes; then
8593 cat >> confdefs.h <<\EOF
8594 #define CLOSEDIR_VOID 1
8599 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8600 echo "configure:8601: checking whether setpgrp takes no argument" >&5
8601 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8604 if test "$cross_compiling" = yes; then
8605 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8611 #ifdef HAVE_UNISTD_H
8616 * If this system has a BSD-style setpgrp, which takes arguments, exit
8621 if (setpgrp(1,1) == -1)
8628 if { (eval echo configure:8629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8630 ac_cv_func_setpgrp_void=no
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8635 ac_cv_func_setpgrp_void=yes
8643 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8644 if test $ac_cv_func_setpgrp_void = yes; then
8645 cat >> confdefs.h <<\EOF
8646 #define SETPGRP_VOID 1
8650 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8651 echo "configure:8652: checking for working fnmatch" >&5
8652 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6
8655 # Some versions of Solaris or SCO have a broken fnmatch function.
8656 # So we run a test program. If we are cross-compiling, take no chance.
8657 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8658 if test "$cross_compiling" = yes; then
8659 ac_cv_func_fnmatch_works=no
8661 cat > conftest.$ac_ext <<EOF
8662 #line 8663 "configure"
8663 #include "confdefs.h"
8664 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8666 if { (eval echo configure:8667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8668 ac_cv_func_fnmatch_works=yes
8670 echo "configure: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8673 ac_cv_func_fnmatch_works=no
8680 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8681 if test $ac_cv_func_fnmatch_works = yes; then
8682 cat >> confdefs.h <<\EOF
8683 #define HAVE_FNMATCH 1
8690 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8691 echo "configure:8692: checking for setlocale in -lxpg4" >&5
8692 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
8696 ac_save_LIBS="$LIBS"
8698 cat > conftest.$ac_ext <<EOF
8699 #line 8700 "configure"
8700 #include "confdefs.h"
8701 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8710 if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8712 eval "ac_cv_lib_$ac_lib_var=yes"
8714 echo "configure: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8717 eval "ac_cv_lib_$ac_lib_var=no"
8720 LIBS="$ac_save_LIBS"
8723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8724 echo "$ac_t""yes" 1>&6
8727 echo "$ac_t""no" 1>&6
8732 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8733 echo "configure:8734: checking for getpwnam in -lsun" >&5
8734 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8738 ac_save_LIBS="$LIBS"
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 /* Override any gcc2 internal prototype to avoid an error. */
8744 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8754 eval "ac_cv_lib_$ac_lib_var=yes"
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 eval "ac_cv_lib_$ac_lib_var=no"
8762 LIBS="$ac_save_LIBS"
8765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8766 echo "$ac_t""yes" 1>&6
8767 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8768 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8769 cat >> confdefs.h <<EOF
8770 #define $ac_tr_lib 1
8776 echo "$ac_t""no" 1>&6
8780 for ac_hdr in zlib.h
8782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8784 echo "configure:8785: checking for $ac_hdr" >&5
8785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8794 { (eval echo configure:8795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8796 if test -z "$ac_err"; then
8798 eval "ac_cv_header_$ac_safe=yes"
8801 echo "configure: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8804 eval "ac_cv_header_$ac_safe=no"
8808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8809 echo "$ac_t""yes" 1>&6
8810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8811 cat >> confdefs.h <<EOF
8812 #define $ac_tr_hdr 1
8816 echo "$ac_t""no" 1>&6
8820 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8821 echo "configure:8822: checking for deflate in -lz" >&5
8822 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
8823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8824 echo $ac_n "(cached) $ac_c" 1>&6
8826 ac_save_LIBS="$LIBS"
8828 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8831 /* Override any gcc2 internal prototype to avoid an error. */
8832 /* We use char because int might match the return type of a gcc2
8833 builtin and then its argument prototype would still apply. */
8840 if { (eval echo configure:8841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8842 eval "ac_cv_lib_$ac_lib_var=yes"
8844 echo "configure: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8847 eval "ac_cv_lib_$ac_lib_var=no"
8850 LIBS="$ac_save_LIBS"
8853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8854 echo "$ac_t""yes" 1>&6
8857 echo "$ac_t""no" 1>&6
8861 if test x$FDLIBS = x-lz; then
8862 cat >> confdefs.h <<\EOF
8870 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
8871 echo "configure:8872: checking for pthread_create in -lpthread" >&5
8872 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8876 ac_save_LIBS="$LIBS"
8877 LIBS="-lpthread $LIBS"
8878 cat > conftest.$ac_ext <<EOF
8879 #line 8880 "configure"
8880 #include "confdefs.h"
8881 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8884 char pthread_create();
8890 if { (eval echo configure:8891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8892 eval "ac_cv_lib_$ac_lib_var=yes"
8894 echo "configure: failed program was:" >&5
8895 cat conftest.$ac_ext >&5
8897 eval "ac_cv_lib_$ac_lib_var=no"
8900 LIBS="$ac_save_LIBS"
8903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8904 echo "$ac_t""yes" 1>&6
8905 PTHREAD_LIB="-lpthread"
8907 echo "$ac_t""no" 1>&6
8908 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
8909 echo "configure:8910: checking for pthread_create in -lpthreads" >&5
8910 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
8911 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8914 ac_save_LIBS="$LIBS"
8915 LIBS="-lpthreads $LIBS"
8916 cat > conftest.$ac_ext <<EOF
8917 #line 8918 "configure"
8918 #include "confdefs.h"
8919 /* Override any gcc2 internal prototype to avoid an error. */
8920 /* We use char because int might match the return type of a gcc2
8921 builtin and then its argument prototype would still apply. */
8922 char pthread_create();
8928 if { (eval echo configure:8929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930 eval "ac_cv_lib_$ac_lib_var=yes"
8932 echo "configure: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8935 eval "ac_cv_lib_$ac_lib_var=no"
8938 LIBS="$ac_save_LIBS"
8941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8942 echo "$ac_t""yes" 1>&6
8943 PTHREAD_LIB="-lpthreads"
8945 echo "$ac_t""no" 1>&6
8946 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
8947 echo "configure:8948: checking for pthread_create in -lc_r" >&5
8948 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
8949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8950 echo $ac_n "(cached) $ac_c" 1>&6
8952 ac_save_LIBS="$LIBS"
8954 cat > conftest.$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8957 /* Override any gcc2 internal prototype to avoid an error. */
8958 /* We use char because int might match the return type of a gcc2
8959 builtin and then its argument prototype would still apply. */
8960 char pthread_create();
8966 if { (eval echo configure:8967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8968 eval "ac_cv_lib_$ac_lib_var=yes"
8970 echo "configure: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8973 eval "ac_cv_lib_$ac_lib_var=no"
8976 LIBS="$ac_save_LIBS"
8979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8980 echo "$ac_t""yes" 1>&6
8983 echo "$ac_t""no" 1>&6
8984 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
8985 echo "configure:8986: checking for pthread_create" >&5
8986 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 /* System header to define __stub macros and hopefully few prototypes,
8993 which can conflict with char pthread_create(); below. */
8995 /* Override any gcc2 internal prototype to avoid an error. */
8996 /* We use char because int might match the return type of a gcc2
8997 builtin and then its argument prototype would still apply. */
8998 char pthread_create();
9002 /* The GNU C library defines this for functions which it implements
9003 to always fail with ENOSYS. Some functions are actually named
9004 something starting with __ and the normal name is an alias. */
9005 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9013 if { (eval echo configure:9014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9015 eval "ac_cv_func_pthread_create=yes"
9017 echo "configure: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9020 eval "ac_cv_func_pthread_create=no"
9025 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9026 echo "$ac_t""yes" 1>&6
9029 echo "$ac_t""no" 1>&6
9043 cat >> confdefs.h <<\EOF
9050 LDFLAGS=${LDFLAGS--O}
9051 DB_LIBS="${SQL_LFLAGS}"
9053 CPPFLAGS="$CPPFLAGS"
9073 # Finally we set appropriate distribution specific
9074 # variables and defaults
9076 # PFILES are platform specific files
9077 PFILES="platforms/Makefile"
9084 PTHREAD_LIB="-lpthread -lexc"
9085 if test "${CC}" = "gcc" ; then
9092 TAPEDRIVE="/dev/nrmt0"
9095 DISTVER=`uname -a |awk '{print $3}'`
9096 TAPEDRIVE="/dev/nrst0"
9099 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
9100 TAPEDRIVE="/dev/nrst0"
9101 PSCMD="ps -e -o pid,command"
9102 hostname=`hostname -s`
9105 DISTVER=`uname -a |awk '{print $3}'`
9106 TAPEDRIVE="/dev/nrst0"
9108 CFLAGS="${CFLAGS} -mwindows"
9109 LDFLAGS="${LDFLAGS} -mwindows"
9112 DISTVER=`cat /etc/debian_version`
9113 TAPEDRIVE="/dev/nrst0"
9114 PSCMD="ps -e -o pid,command"
9115 hostname=`hostname -s`
9118 DISTVER=`uname -a |awk '{print $3}'`
9119 PTHREAD_LIB="-pthread"
9120 CFLAGS="${CFLAGS} -pthread"
9123 TAPEDRIVE="/dev/nrst0"
9124 PSCMD="ps -x -o pid,command"
9126 platforms/freebsd/Makefile \
9127 platforms/freebsd/bacula-fd \
9128 platforms/freebsd/bacula-sd \
9129 platforms/freebsd/bacula-dir"
9130 hostname=`hostname -s`
9131 largefile_support="yes"
9135 TAPEDRIVE="/dev/rmt/0hnb"
9139 TAPEDRIVE="/dev/rmt/0cbn"
9140 PSCMD="ps -e -o pid,comm"
9141 hostname=`/usr/bsd/hostname -s`
9143 platforms/irix/Makefile \
9144 platforms/irix/bacula-fd \
9145 platforms/irix/bacula-sd \
9146 platforms/irix/bacula-dir"
9149 DISTVER=`uname -a |awk '{print $3}'`
9152 TAPEDRIVE="/dev/nrst0"
9153 PSCMD="ps -a -o pid,command"
9154 PTHREAD_LIB="-pthread"
9155 CFLAGS="${CFLAGS} -pthread"
9158 DISTVER=`uname -a |awk '{print $3}'`
9161 TAPEDRIVE="/dev/nrst0"
9162 PSCMD="ps -a -o pid,command"
9163 PTHREAD_LIB="-pthread"
9164 CFLAGS="${CFLAGS} -pthread"
9166 platforms/openbsd/Makefile \
9167 platforms/openbsd/bacula-fd \
9168 platforms/openbsd/bacula-sd \
9169 platforms/openbsd/bacula-dir"
9172 DISTVER=`cat /etc/redhat-release | grep release |\
9174 TAPEDRIVE="/dev/nst0"
9175 PSCMD="ps -e -o pid,command"
9177 platforms/redhat/Makefile \
9178 platforms/redhat/bacula-fd \
9179 platforms/redhat/bacula-sd \
9180 platforms/redhat/bacula-dir"
9181 hostname=`hostname -s`
9184 DISTVER=`cat /etc/slackware-version`
9185 TAPEDRIVE="/dev/nst0"
9186 PSCMD="ps -e -o pid,command"
9187 hostname=`hostname -s`
9191 TAPEDRIVE="/dev/rmt/0cbn"
9192 PSCMD="ps -e -o pid,comm"
9194 platforms/solaris/Makefile \
9195 platforms/solaris/bacula-fd \
9196 platforms/solaris/bacula-sd \
9197 platforms/solaris/bacula-dir"
9200 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9202 TAPEDRIVE="/dev/nst0"
9203 PSCMD="ps -e -o pid,command"
9204 hostname=`hostname -s`
9209 TAPEDRIVE="/dev/nst0"
9210 PSCMD="ps -e -o pid,command"
9211 hostname=`hostname -s`
9215 TAPEDRIVE="/dev/nst0"
9218 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9225 LIBS="$PTHREAD_LIB $LIBS"
9227 cat >> confdefs.h <<EOF
9231 cat >> confdefs.h <<EOF
9242 MCOMMON=./autoconf/Make.common
9246 cat > confcache <<\EOF
9247 # This file is a shell script that caches the results of configure
9248 # tests run on this system so they can be shared between configure
9249 # scripts and configure runs. It is not useful on other systems.
9250 # If it contains results you don't want to keep, you may remove or edit it.
9252 # By default, configure uses ./config.cache as the cache file,
9253 # creating it if it does not exist already. You can give configure
9254 # the --cache-file=FILE option to use a different cache file; that is
9255 # what configure does when it calls configure scripts in
9256 # subdirectories, so they share the cache.
9257 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9258 # config.status only pays attention to the cache file if you give it the
9259 # --recheck option to rerun configure.
9262 # The following way of writing the cache mishandles newlines in values,
9263 # but we know of no workaround that is simple, portable, and efficient.
9264 # So, don't put newlines in cache variables' values.
9265 # Ultrix sh set writes to stderr and can't be redirected directly,
9266 # and sets the high bit in the cache file unless we assign to the vars.
9268 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9270 # `set' does not quote correctly, so add quotes (double-quote substitution
9271 # turns \\\\ into \\, and sed turns \\ into \).
9273 -e "s/'/'\\\\''/g" \
9274 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9277 # `set' quotes correctly as required by POSIX, so do not add quotes.
9278 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9281 if cmp -s $cache_file confcache; then
9284 if test -w $cache_file; then
9285 echo "updating cache $cache_file"
9286 cat confcache > $cache_file
9288 echo "not updating unwritable cache $cache_file"
9293 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9296 # Let make expand exec_prefix.
9297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9299 # Any assignment to VPATH causes Sun make to only execute
9300 # the first set of double-colon rules, so remove it if not needed.
9301 # If there is a colon in the path, we need to keep it.
9302 if test "x$srcdir" = x.; then
9303 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9306 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9308 DEFS=-DHAVE_CONFIG_H
9310 # Without the "./", some shells look in PATH for config.status.
9311 : ${CONFIG_STATUS=./config.status}
9313 echo creating $CONFIG_STATUS
9314 rm -f $CONFIG_STATUS
9315 cat > $CONFIG_STATUS <<EOF
9317 # Generated automatically by configure.
9318 # Run this file to recreate the current configuration.
9319 # This directory was configured as follows,
9320 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9322 # $0 $ac_configure_args
9324 # Compiler output produced by configure, useful for debugging
9325 # configure, is in ./config.log if it exists.
9327 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9330 case "\$ac_option" in
9331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9332 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9333 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9334 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9335 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9337 -help | --help | --hel | --he | --h)
9338 echo "\$ac_cs_usage"; exit 0 ;;
9339 *) echo "\$ac_cs_usage"; exit 1 ;;
9343 ac_given_srcdir=$srcdir
9344 ac_given_INSTALL="$INSTALL"
9346 trap 'rm -fr `echo "autoconf/Make.common \
9348 scripts/startmysql \
9350 scripts/btraceback \
9360 src/console/Makefile \
9361 src/console/console.conf \
9362 src/gnome-console/Makefile \
9363 src/gnome-console/gnome-console.conf \
9365 src/dird/bacula-dir.conf \
9367 src/stored/Makefile \
9368 src/stored/bacula-sd.conf \
9369 src/filed/Makefile \
9371 src/filed/bacula-fd.conf \
9372 src/filed/win32/Makefile \
9374 src/cats/alter_mysql_tables \
9375 src/cats/make_mysql_tables \
9376 src/cats/drop_mysql_tables \
9377 src/cats/create_mysql_database \
9378 src/cats/grant_mysql_privileges \
9379 src/cats/alter_sqlite_tables \
9380 src/cats/make_sqlite_tables \
9381 src/cats/drop_sqlite_tables \
9382 src/cats/create_sqlite_database \
9385 src/cats/create_bdb_database \
9386 src/cats/make_bdb_tables \
9387 src/cats/drop_bdb_tables \
9388 src/cats/make_bacula_tables \
9389 src/cats/drop_bacula_tables \
9390 src/findlib/Makefile \
9391 src/tools/Makefile \
9392 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9394 cat >> $CONFIG_STATUS <<EOF
9396 # Protect against being on the right side of a sed subst in config.status.
9397 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9398 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9402 s%@CFLAGS@%$CFLAGS%g
9403 s%@CPPFLAGS@%$CPPFLAGS%g
9404 s%@CXXFLAGS@%$CXXFLAGS%g
9405 s%@FFLAGS@%$FFLAGS%g
9407 s%@LDFLAGS@%$LDFLAGS%g
9409 s%@exec_prefix@%$exec_prefix%g
9410 s%@prefix@%$prefix%g
9411 s%@program_transform_name@%$program_transform_name%g
9412 s%@bindir@%$bindir%g
9413 s%@sbindir@%$sbindir%g
9414 s%@libexecdir@%$libexecdir%g
9415 s%@datadir@%$datadir%g
9416 s%@sysconfdir@%$sysconfdir%g
9417 s%@sharedstatedir@%$sharedstatedir%g
9418 s%@localstatedir@%$localstatedir%g
9419 s%@libdir@%$libdir%g
9420 s%@includedir@%$includedir%g
9421 s%@oldincludedir@%$oldincludedir%g
9422 s%@infodir@%$infodir%g
9423 s%@mandir@%$mandir%g
9424 s%@BUILD_DIR@%$BUILD_DIR%g
9425 s%@TRUEPRG@%$TRUEPRG%g
9426 s%@FALSEPRG@%$FALSEPRG%g
9428 s%@host_alias@%$host_alias%g
9429 s%@host_cpu@%$host_cpu%g
9430 s%@host_vendor@%$host_vendor%g
9431 s%@host_os@%$host_os%g
9432 s%@VERSION@%$VERSION%g
9434 s%@LSMDATE@%$LSMDATE%g
9438 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9439 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9440 s%@INSTALL_DATA@%$INSTALL_DATA%g
9441 s%@RANLIB@%$RANLIB%g
9451 s%@OPENSSL@%$OPENSSL%g
9452 s%@ARFLAGS@%$ARFLAGS%g
9453 s%@MAKE_SHELL@%$MAKE_SHELL%g
9454 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9455 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9456 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9457 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9458 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9459 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9460 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9461 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9462 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9463 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9464 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9465 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9466 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9467 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9468 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9469 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9470 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9471 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9472 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9473 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9474 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9475 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9476 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9477 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9478 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
9479 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
9480 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9481 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9482 s%@MSGFMT@%$MSGFMT%g
9483 s%@GNOME_LIBS@%$GNOME_LIBS%g
9484 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9485 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9486 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9487 s%@ZVT_LIBS@%$ZVT_LIBS%g
9488 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9489 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9490 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9491 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9492 s%@ORBIT_IDL@%$ORBIT_IDL%g
9493 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9494 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9495 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9496 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9497 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9498 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9499 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9500 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9501 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9502 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9503 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9504 s%@GNOME_DIR@%$GNOME_DIR%g
9505 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
9506 s%@CONS_INC@%$CONS_INC%g
9507 s%@CONS_LIBS@%$CONS_LIBS%g
9508 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9509 s%@READLINE_SRC@%$READLINE_SRC%g
9510 s%@working_dir@%$working_dir%g
9511 s%@dump_email@%$dump_email%g
9512 s%@job_email@%$job_email%g
9513 s%@smtp_host@%$smtp_host%g
9514 s%@piddir@%$piddir%g
9515 s%@subsysdir@%$subsysdir%g
9516 s%@baseport@%$baseport%g
9517 s%@dir_port@%$dir_port%g
9518 s%@fd_port@%$fd_port%g
9519 s%@sd_port@%$sd_port%g
9520 s%@dir_password@%$dir_password%g
9521 s%@fd_password@%$fd_password%g
9522 s%@sd_password@%$sd_password%g
9523 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9524 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9525 s%@SQL_BINDIR@%$SQL_BINDIR%g
9527 s%@DB_NAME@%$DB_NAME%g
9528 s%@EXEEXT@%$EXEEXT%g
9530 s%@build_alias@%$build_alias%g
9531 s%@build_cpu@%$build_cpu%g
9532 s%@build_vendor@%$build_vendor%g
9533 s%@build_os@%$build_os%g
9534 s%@GETCONF@%$GETCONF%g
9535 s%@X_CFLAGS@%$X_CFLAGS%g
9536 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9537 s%@X_LIBS@%$X_LIBS%g
9538 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9539 s%@LIBOBJS@%$LIBOBJS%g
9540 s%@ALLOCA@%$ALLOCA%g
9541 s%@FDLIBS@%$FDLIBS%g
9543 s%@DINCLUDE@%$DINCLUDE%g
9545 s%@DB_LIBS@%$DB_LIBS%g
9546 s%@OBJLIST@%$OBJLIST%g
9547 s%@hostname@%$hostname%g
9548 s%@TAPEDRIVE@%$TAPEDRIVE%g
9551 s%@DISTNAME@%$DISTNAME%g
9552 s%@DISTVER@%$DISTVER%g
9553 /@MCOMMON@/r $MCOMMON
9559 cat >> $CONFIG_STATUS <<\EOF
9561 # Split the substitutions into bite-sized pieces for seds with
9562 # small command number limits, like on Digital OSF/1 and HP-UX.
9563 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9564 ac_file=1 # Number of current file.
9565 ac_beg=1 # First line for current file.
9566 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9569 while $ac_more_lines; do
9570 if test $ac_beg -gt 1; then
9571 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9573 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9575 if test ! -s conftest.s$ac_file; then
9577 rm -f conftest.s$ac_file
9579 if test -z "$ac_sed_cmds"; then
9580 ac_sed_cmds="sed -f conftest.s$ac_file"
9582 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9584 ac_file=`expr $ac_file + 1`
9586 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9589 if test -z "$ac_sed_cmds"; then
9594 cat >> $CONFIG_STATUS <<EOF
9596 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9598 scripts/startmysql \
9600 scripts/btraceback \
9610 src/console/Makefile \
9611 src/console/console.conf \
9612 src/gnome-console/Makefile \
9613 src/gnome-console/gnome-console.conf \
9615 src/dird/bacula-dir.conf \
9617 src/stored/Makefile \
9618 src/stored/bacula-sd.conf \
9619 src/filed/Makefile \
9621 src/filed/bacula-fd.conf \
9622 src/filed/win32/Makefile \
9624 src/cats/alter_mysql_tables \
9625 src/cats/make_mysql_tables \
9626 src/cats/drop_mysql_tables \
9627 src/cats/create_mysql_database \
9628 src/cats/grant_mysql_privileges \
9629 src/cats/alter_sqlite_tables \
9630 src/cats/make_sqlite_tables \
9631 src/cats/drop_sqlite_tables \
9632 src/cats/create_sqlite_database \
9635 src/cats/create_bdb_database \
9636 src/cats/make_bdb_tables \
9637 src/cats/drop_bdb_tables \
9638 src/cats/make_bacula_tables \
9639 src/cats/drop_bacula_tables \
9640 src/findlib/Makefile \
9641 src/tools/Makefile \
9644 cat >> $CONFIG_STATUS <<\EOF
9645 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9646 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9648 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9649 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9650 *) ac_file_in="${ac_file}.in" ;;
9653 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9655 # Remove last slash and all that follows it. Not all systems have dirname.
9656 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9657 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9658 # The file is in a subdirectory.
9659 test ! -d "$ac_dir" && mkdir "$ac_dir"
9660 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9661 # A "../" for each directory in $ac_dir_suffix.
9662 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9664 ac_dir_suffix= ac_dots=
9667 case "$ac_given_srcdir" in
9669 if test -z "$ac_dots"; then top_srcdir=.
9670 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9671 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9673 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9674 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9677 case "$ac_given_INSTALL" in
9678 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9679 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9682 echo creating "$ac_file"
9684 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9686 *Makefile*) ac_comsub="1i\\
9687 # $configure_input" ;;
9691 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9693 s%@configure_input@%$configure_input%g
9694 s%@srcdir@%$srcdir%g
9695 s%@top_srcdir@%$top_srcdir%g
9696 s%@INSTALL@%$INSTALL%g
9697 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9701 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9702 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9704 # ac_d sets the value in "#define NAME VALUE" lines.
9705 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9706 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9709 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9710 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9711 ac_uB='\([ ]\)%\1#\2define\3'
9714 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9715 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9716 ac_eB='$%\1#\2define\3'
9720 if test "${CONFIG_HEADERS+set}" != set; then
9722 cat >> $CONFIG_STATUS <<EOF
9723 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9725 cat >> $CONFIG_STATUS <<\EOF
9727 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9730 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9731 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9732 *) ac_file_in="${ac_file}.in" ;;
9735 echo creating $ac_file
9737 rm -f conftest.frag conftest.in conftest.out
9738 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9739 cat $ac_file_inputs > conftest.in
9743 # Transform confdefs.h into a sed script conftest.vals that substitutes
9744 # the proper values into config.h.in to produce config.h. And first:
9745 # Protect against being on the right side of a sed subst in config.status.
9746 # Protect against being in an unquoted here document in config.status.
9748 cat > conftest.hdr <<\EOF
9751 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9755 sed -n -f conftest.hdr confdefs.h > conftest.vals
9758 # This sed command replaces #undef with comments. This is necessary, for
9759 # example, in the case of _POSIX_SOURCE, which is predefined and required
9760 # on some systems where configure will not decide to define it.
9761 cat >> conftest.vals <<\EOF
9762 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9765 # Break up conftest.vals because some shells have a limit on
9766 # the size of here documents, and old seds have small limits too.
9771 ac_lines=`grep -c . conftest.vals`
9772 # grep -c gives empty output for an empty file on some AIX systems.
9773 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9774 # Write a limited-size here document to conftest.frag.
9775 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9776 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9778 sed -f conftest.frag conftest.in > conftest.out
9780 mv conftest.out conftest.in
9782 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9784 mv conftest.tail conftest.vals
9788 cat >> $CONFIG_STATUS <<\EOF
9789 rm -f conftest.frag conftest.h
9790 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9791 cat conftest.in >> conftest.h
9793 if cmp -s $ac_file conftest.h 2>/dev/null; then
9794 echo "$ac_file is unchanged"
9797 # Remove last slash and all that follows it. Not all systems have dirname.
9798 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9799 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9800 # The file is in a subdirectory.
9801 test ! -d "$ac_dir" && mkdir "$ac_dir"
9804 mv conftest.h $ac_file
9809 cat >> $CONFIG_STATUS <<EOF
9812 cat >> $CONFIG_STATUS <<\EOF
9813 (echo "Doing make of dependencies"; make depend;)
9817 chmod +x $CONFIG_STATUS
9818 rm -fr confdefs* $ac_clean_files
9819 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9823 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
9824 chmod 755 console gconsole
9826 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
9827 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
9828 chmod 755 src/cats/create_mysql_database
9829 chmod 755 src/cats/alter_mysql_tables
9830 chmod 755 src/cats/grant_mysql_privileges
9831 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
9832 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
9833 chmod 755 src/cats/create_sqlite_database
9834 chmod 755 src/cats/alter_sqlite_tables
9835 chmod 755 src/cats/sqlite
9836 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
9837 chmod 755 src/cats/create_bdb_database
9839 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
9840 largefile_support="yes"
9845 Configuration on `date`:
9847 Host: $host -- ${DISTNAME} ${DISTVER}
9848 Bacula version: ${VERSION} (${DATE})
9849 Source code location: ${srcdir}
9850 Install binaries: ${sbindir}
9851 Install config files: ${sysconfdir}
9853 C++ Compiler: ${CXX}
9854 Compiler flags: ${CFLAGS}
9855 Linker flags: ${LDFLAGS}
9857 Statically Linked Tools: ${support_static_tools}
9858 Database type: ${db_name}
9859 Database lib: ${DB_LIBS}
9861 Job Output Email: ${job_email}
9862 Traceback Email: ${dump_email}
9863 SMTP Host Address: ${smtp_host}
9864 Director Port ${dir_port}
9865 File daemon Port ${fd_port}
9866 Storage daemon Port ${sd_port}
9867 Working directory ${working_dir}
9868 SQL binaries Directory ${SQL_BINDIR}
9870 Large file support: $largefile_support
9871 readline support: ${got_readline} ${PRTREADLINE_SRC}
9872 TCP Wrappers support: ${TCPW_MSG}
9873 ZLIB support: ${have_zlib}
9874 enable-smartalloc: ${support_smartalloc}
9875 enable-gnome: ${support_gnome}
9882 # cweb support: ${got_cweb} ${CWEB_SRC}
9883 # gmp support: ${got_gmp} ${GMP_SRC}