3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-everything enable standard non-multichoice features: marked *"
17 --enable-gnome enable build of gnome-console GUI *"
19 --with-gnome-includes Specify location of GNOME headers"
21 --with-gnome-libs Specify location of GNOME libs"
23 --with-gnome Specify prefix for GNOME files"
25 --enable-smartalloc enable smartalloc debugging support *"
27 --enable-static-tools enable static tape tools *"
29 --disable-readline disable readline support "
31 --with-readline[=DIR] Specify readline library directory"
33 --with-gmp[=DIR] Specify gmp library directory"
35 --with-cweb[=DIR] Specify cweb library directory"
37 --with-tcp-wrappers=DIR Enable tcpwrappers support"
39 --with-working-dir=PATH Specify location of Bacula working files"
41 --with-dump-email=Dump email address"
43 --with-job-email=Job output email address"
45 --with-smtp-host=SMTP mail host address"
47 --with-pid-dir=PATH Specify location of Bacula pid files"
49 --with-subsys-dir=PATH Specify location of Bacula subsys file"
51 --with-baseport=PORT Specify base port address for daemons"
53 --with-dir-password=PASSWORD Specify Director's password"
55 --with-fd-password=PASSWORD Specify Client's password"
57 --with-sd-password=PASSWORD Specify Storage daemon's password"
60 Which one DBMS do you want to use (please select only one):
61 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
62 install directory, default is to search through
63 a number of common places for the MySQL files."
66 Which one DBMS do you want to use (please select only one):
67 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
68 install directory, default is to search through
69 a number of common places for the MySQL files."
72 Which one DBMS do you want to use (please select only one):
73 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
74 install directory, default is to search through
75 a number of common places for the SQLite files."
77 --disable-largefile omit support for large files"
79 --with-x use the X Window System"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file=./config.cache
94 program_transform_name=s,x,x,
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
115 # Initialize some other variables.
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
147 -build | --build | --buil | --bui | --bu)
149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150 build="$ac_optarg" ;;
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
163 datadir="$ac_optarg" ;;
165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host | --host | --hos | --ho)
257 -host=* | --host=* | --hos=* | --ho=*)
260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
272 -libdir | --libdir | --libdi | --libd)
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
363 sbindir="$ac_optarg" ;;
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
374 sharedstatedir="$ac_optarg" ;;
376 -site | --site | --sit)
378 -site=* | --site=* | --sit=*)
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
393 -target | --target | --targe | --targ | --tar | --ta | --t)
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
401 -version | --version | --versio | --versi | --vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=src/version.h
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586 ac_n= ac_c='\c' ac_t=
596 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
597 if test -f $ac_dir/install-sh; then
599 ac_install_sh="$ac_aux_dir/install-sh -c"
601 elif test -f $ac_dir/install.sh; then
603 ac_install_sh="$ac_aux_dir/install.sh -c"
607 if test -z "$ac_aux_dir"; then
608 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
610 ac_config_guess=$ac_aux_dir/config.guess
611 ac_config_sub=$ac_aux_dir/config.sub
612 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621 # Extract the first word of "$ac_prog", so it can be a program name with args.
622 set dummy $ac_prog; ac_word=$2
623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
624 echo "configure:625: checking for $ac_word" >&5
625 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
630 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
633 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
638 for ac_dir in $ac_dummy; do
639 test -z "$ac_dir" && ac_dir=.
640 if test -f $ac_dir/$ac_word; then
641 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
649 TRUEPRG="$ac_cv_path_TRUEPRG"
650 if test -n "$TRUEPRG"; then
651 echo "$ac_t""$TRUEPRG" 1>&6
653 echo "$ac_t""no" 1>&6
656 test -n "$TRUEPRG" && break
658 test -n "$TRUEPRG" || TRUEPRG=":"
662 # Extract the first word of "$ac_prog", so it can be a program name with args.
663 set dummy $ac_prog; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
671 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
674 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
682 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
690 FALSEPRG="$ac_cv_path_FALSEPRG"
691 if test -n "$FALSEPRG"; then
692 echo "$ac_t""$FALSEPRG" 1>&6
694 echo "$ac_t""no" 1>&6
697 test -n "$FALSEPRG" && break
699 test -n "$FALSEPRG" || FALSEPRG=":"
703 # Make sure we can run config.sub.
704 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
705 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 echo $ac_n "checking host system type""... $ac_c" 1>&6
709 echo "configure:710: checking host system type" >&5
712 case "$host_alias" in
716 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
717 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
719 *) host_alias=$nonopt ;;
723 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
724 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$host" 1>&6
730 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
731 DATE=`sed -n -e 's/^.* \t*DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
732 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
733 echo "configuring for bacula $VERSION ($DATE)"
737 # Extract the first word of "gcc", so it can be a program name with args.
738 set dummy gcc; ac_word=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 if test -n "$CC"; then
745 ac_cv_prog_CC="$CC" # Let the user override the test.
747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
749 for ac_dir in $ac_dummy; do
750 test -z "$ac_dir" && ac_dir=.
751 if test -f $ac_dir/$ac_word; then
760 if test -n "$CC"; then
761 echo "$ac_t""$CC" 1>&6
763 echo "$ac_t""no" 1>&6
766 if test -z "$CC"; then
767 # Extract the first word of "cc", so it can be a program name with args.
768 set dummy cc; ac_word=$2
769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
770 echo "configure:771: checking for $ac_word" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
774 if test -n "$CC"; then
775 ac_cv_prog_CC="$CC" # Let the user override the test.
777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
780 for ac_dir in $ac_dummy; do
781 test -z "$ac_dir" && ac_dir=.
782 if test -f $ac_dir/$ac_word; then
783 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
792 if test $ac_prog_rejected = yes; then
793 # We found a bogon in the path, so make sure we never use it.
794 set dummy $ac_cv_prog_CC
796 if test $# -gt 0; then
797 # We chose a different compiler from the bogus one.
798 # However, it has the same basename, so the bogon will be chosen
799 # first if we set CC to just the basename; use the full file name.
801 set dummy "$ac_dir/$ac_word" "$@"
809 if test -n "$CC"; then
810 echo "$ac_t""$CC" 1>&6
812 echo "$ac_t""no" 1>&6
815 if test -z "$CC"; then
818 # Extract the first word of "cl", so it can be a program name with args.
819 set dummy cl; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$CC"; then
826 ac_cv_prog_CC="$CC" # Let the user override the test.
828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
830 for ac_dir in $ac_dummy; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
841 if test -n "$CC"; then
842 echo "$ac_t""$CC" 1>&6
844 echo "$ac_t""no" 1>&6
849 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
852 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
853 echo "configure:854: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
857 ac_cpp='$CPP $CPPFLAGS'
858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
860 cross_compiling=$ac_cv_prog_cc_cross
862 cat > conftest.$ac_ext << EOF
864 #line 865 "configure"
865 #include "confdefs.h"
869 if { (eval echo configure:870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
870 ac_cv_prog_cc_works=yes
871 # If we can't run a trivial program, we are probably using a cross compiler.
872 if (./conftest; exit) 2>/dev/null; then
873 ac_cv_prog_cc_cross=no
875 ac_cv_prog_cc_cross=yes
878 echo "configure: failed program was:" >&5
879 cat conftest.$ac_ext >&5
880 ac_cv_prog_cc_works=no
884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
885 ac_cpp='$CPP $CPPFLAGS'
886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
888 cross_compiling=$ac_cv_prog_cc_cross
890 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
891 if test $ac_cv_prog_cc_works = no; then
892 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
894 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
895 echo "configure:896: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
896 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
897 cross_compiling=$ac_cv_prog_cc_cross
899 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
900 echo "configure:901: checking whether we are using GNU C" >&5
901 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 cat > conftest.c <<EOF
909 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
916 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
918 if test $ac_cv_prog_gcc = yes; then
924 ac_test_CFLAGS="${CFLAGS+set}"
925 ac_save_CFLAGS="$CFLAGS"
927 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
928 echo "configure:929: checking whether ${CC-cc} accepts -g" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 echo 'void f(){}' > conftest.c
933 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
942 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
943 if test "$ac_test_CFLAGS" = set; then
944 CFLAGS="$ac_save_CFLAGS"
945 elif test $ac_cv_prog_cc_g = yes; then
946 if test "$GCC" = yes; then
952 if test "$GCC" = yes; then
959 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
961 # Extract the first word of "$ac_prog", so it can be a program name with args.
962 set dummy $ac_prog; ac_word=$2
963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
964 echo "configure:965: checking for $ac_word" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 if test -n "$CXX"; then
969 ac_cv_prog_CXX="$CXX" # Let the user override the test.
971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
973 for ac_dir in $ac_dummy; do
974 test -z "$ac_dir" && ac_dir=.
975 if test -f $ac_dir/$ac_word; then
976 ac_cv_prog_CXX="$ac_prog"
983 CXX="$ac_cv_prog_CXX"
984 if test -n "$CXX"; then
985 echo "$ac_t""$CXX" 1>&6
987 echo "$ac_t""no" 1>&6
990 test -n "$CXX" && break
992 test -n "$CXX" || CXX="gcc"
995 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
996 echo "configure:997: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1000 ac_cpp='$CXXCPP $CPPFLAGS'
1001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1003 cross_compiling=$ac_cv_prog_cxx_cross
1005 cat > conftest.$ac_ext << EOF
1007 #line 1008 "configure"
1008 #include "confdefs.h"
1010 int main(){return(0);}
1012 if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1013 ac_cv_prog_cxx_works=yes
1014 # If we can't run a trivial program, we are probably using a cross compiler.
1015 if (./conftest; exit) 2>/dev/null; then
1016 ac_cv_prog_cxx_cross=no
1018 ac_cv_prog_cxx_cross=yes
1021 echo "configure: failed program was:" >&5
1022 cat conftest.$ac_ext >&5
1023 ac_cv_prog_cxx_works=no
1027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1028 ac_cpp='$CPP $CPPFLAGS'
1029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1031 cross_compiling=$ac_cv_prog_cc_cross
1033 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1034 if test $ac_cv_prog_cxx_works = no; then
1035 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1037 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1038 echo "configure:1039: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1039 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1040 cross_compiling=$ac_cv_prog_cxx_cross
1042 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1043 echo "configure:1044: checking whether we are using GNU C++" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 cat > conftest.C <<EOF
1052 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1059 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1061 if test $ac_cv_prog_gxx = yes; then
1067 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1068 ac_save_CXXFLAGS="$CXXFLAGS"
1070 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1071 echo "configure:1072: checking whether ${CXX-g++} accepts -g" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 echo 'void f(){}' > conftest.cc
1076 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1077 ac_cv_prog_cxx_g=yes
1085 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1086 if test "$ac_test_CXXFLAGS" = set; then
1087 CXXFLAGS="$ac_save_CXXFLAGS"
1088 elif test $ac_cv_prog_cxx_g = yes; then
1089 if test "$GXX" = yes; then
1095 if test "$GXX" = yes; then
1102 for ac_declaration in \
1104 '#include <stdlib.h>' \
1105 'extern "C" void std::exit (int) throw (); using std::exit;' \
1106 'extern "C" void std::exit (int); using std::exit;' \
1107 'extern "C" void exit (int) throw ();' \
1108 'extern "C" void exit (int);' \
1111 cat > conftest.$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1120 if { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1123 echo "configure: failed program was:" >&5
1124 cat conftest.$ac_ext >&5
1129 cat > conftest.$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1137 if { (eval echo configure:1138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1141 echo "configure: failed program was:" >&5
1142 cat conftest.$ac_ext >&5
1146 if test -n "$ac_declaration"; then
1147 echo '#ifdef __cplusplus' >>confdefs.h
1148 echo $ac_declaration >>confdefs.h
1149 echo '#endif' >>confdefs.h
1153 if test "x$CC" != xcc; then
1154 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether $CC and cc understand -c and -o together" >&5
1157 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether cc understands -c and -o together" >&5
1160 set dummy $CC; ac_cc="`echo $2 |
1161 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1162 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 echo 'foo(){}' > conftest.c
1166 # Make sure it works both with $CC and with simple cc.
1167 # We do the test twice because some compilers refuse to overwrite an
1168 # existing .o file with -o, though they will create one.
1169 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1170 if { (eval echo configure:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1171 test -f conftest.o && { (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1173 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1174 if test "x$CC" != xcc; then
1175 # Test first that cc exists at all.
1176 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1177 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1178 if { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1179 test -f conftest.o && { (eval echo configure:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1184 # cc exists but doesn't like -o.
1185 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1190 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1195 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1196 echo "$ac_t""yes" 1>&6
1198 echo "$ac_t""no" 1>&6
1199 cat >> confdefs.h <<\EOF
1200 #define NO_MINUS_C_MINUS_O 1
1204 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1205 echo "configure:1206: checking how to run the C preprocessor" >&5
1206 # On Suns, sometimes $CPP names a directory.
1207 if test -n "$CPP" && test -d "$CPP"; then
1210 if test -z "$CPP"; then
1211 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 # This must be in double quotes, not single quotes, because CPP may get
1215 # substituted into the Makefile and "${CC-cc}" will confuse make.
1217 # On the NeXT, cc -E runs the code through the compiler's parser,
1218 # not just through cpp.
1219 cat > conftest.$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1226 { (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1228 if test -z "$ac_err"; then
1232 echo "configure: failed program was:" >&5
1233 cat conftest.$ac_ext >&5
1235 CPP="${CC-cc} -E -traditional-cpp"
1236 cat > conftest.$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1243 { (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1245 if test -z "$ac_err"; then
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
1252 CPP="${CC-cc} -nologo -E"
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1260 { (eval echo configure:1261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1262 if test -z "$ac_err"; then
1266 echo "configure: failed program was:" >&5
1267 cat conftest.$ac_ext >&5
1276 ac_cv_prog_CPP="$CPP"
1278 CPP="$ac_cv_prog_CPP"
1280 ac_cv_prog_CPP="$CPP"
1282 echo "$ac_t""$CPP" 1>&6
1284 if test $ac_cv_prog_gcc = yes; then
1285 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1286 echo "configure:1287: checking whether ${CC-cc} needs -traditional" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 ac_pattern="Autoconf.*'x'"
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1298 egrep "$ac_pattern" >/dev/null 2>&1; then
1300 ac_cv_prog_gcc_traditional=yes
1303 ac_cv_prog_gcc_traditional=no
1308 if test $ac_cv_prog_gcc_traditional = no; then
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1316 egrep "$ac_pattern" >/dev/null 2>&1; then
1318 ac_cv_prog_gcc_traditional=yes
1325 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1326 if test $ac_cv_prog_gcc_traditional = yes; then
1327 CC="$CC -traditional"
1333 cat >> confdefs.h <<\EOF
1339 # Find a good install program. We prefer a C program (faster),
1340 # so one script is as good as another. But avoid the broken or
1341 # incompatible versions:
1342 # SysV /etc/install, /usr/sbin/install
1343 # SunOS /usr/etc/install
1344 # IRIX /sbin/install
1346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1349 # ./install, which can be erroneously created by make from ./install.sh.
1350 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1351 echo "configure:1352: checking for a BSD compatible install" >&5
1352 if test -z "$INSTALL"; then
1353 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1357 for ac_dir in $PATH; do
1358 # Account for people who put trailing slashes in PATH elements.
1360 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1362 # OSF1 and SCO ODT 3.0 have their own names for install.
1363 # Don't use installbsd from OSF since it installs stuff as root
1365 for ac_prog in ginstall scoinst install; do
1366 if test -f $ac_dir/$ac_prog; then
1367 if test $ac_prog = install &&
1368 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1369 # AIX install. It has an incompatible calling convention.
1372 ac_cv_path_install="$ac_dir/$ac_prog -c"
1383 if test "${ac_cv_path_install+set}" = set; then
1384 INSTALL="$ac_cv_path_install"
1386 # As a last resort, use the slow shell script. We don't cache a
1387 # path for INSTALL within a source directory, because that will
1388 # break other packages using the cache if that directory is
1389 # removed, or if the path is relative.
1390 INSTALL="$ac_install_sh"
1393 echo "$ac_t""$INSTALL" 1>&6
1395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1396 # It thinks the first close brace ends the variable substitution.
1397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1403 # Extract the first word of "ranlib", so it can be a program name with args.
1404 set dummy ranlib; ac_word=$2
1405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1406 echo "configure:1407: checking for $ac_word" >&5
1407 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 if test -n "$RANLIB"; then
1411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1415 for ac_dir in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir=.
1417 if test -f $ac_dir/$ac_word; then
1418 ac_cv_prog_RANLIB="ranlib"
1423 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1426 RANLIB="$ac_cv_prog_RANLIB"
1427 if test -n "$RANLIB"; then
1428 echo "$ac_t""$RANLIB" 1>&6
1430 echo "$ac_t""no" 1>&6
1433 # Extract the first word of "mv", so it can be a program name with args.
1434 set dummy mv; ac_word=$2
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_word" >&5
1437 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1442 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1445 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1450 for ac_dir in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir=.
1452 if test -f $ac_dir/$ac_word; then
1453 ac_cv_path_MV="$ac_dir/$ac_word"
1458 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1463 if test -n "$MV"; then
1464 echo "$ac_t""$MV" 1>&6
1466 echo "$ac_t""no" 1>&6
1469 # Extract the first word of "rm", so it can be a program name with args.
1470 set dummy rm; ac_word=$2
1471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1472 echo "configure:1473: checking for $ac_word" >&5
1473 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1478 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1481 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1486 for ac_dir in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_path_RM="$ac_dir/$ac_word"
1494 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1499 if test -n "$RM"; then
1500 echo "$ac_t""$RM" 1>&6
1502 echo "$ac_t""no" 1>&6
1505 # Extract the first word of "cp", so it can be a program name with args.
1506 set dummy cp; ac_word=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5
1509 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1514 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1517 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1522 for ac_dir in $ac_dummy; do
1523 test -z "$ac_dir" && ac_dir=.
1524 if test -f $ac_dir/$ac_word; then
1525 ac_cv_path_CP="$ac_dir/$ac_word"
1530 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1535 if test -n "$CP"; then
1536 echo "$ac_t""$CP" 1>&6
1538 echo "$ac_t""no" 1>&6
1541 # Extract the first word of "sed", so it can be a program name with args.
1542 set dummy sed; ac_word=$2
1543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1544 echo "configure:1545: checking for $ac_word" >&5
1545 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1550 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1553 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1558 for ac_dir in $ac_dummy; do
1559 test -z "$ac_dir" && ac_dir=.
1560 if test -f $ac_dir/$ac_word; then
1561 ac_cv_path_SED="$ac_dir/$ac_word"
1566 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1570 SED="$ac_cv_path_SED"
1571 if test -n "$SED"; then
1572 echo "$ac_t""$SED" 1>&6
1574 echo "$ac_t""no" 1>&6
1577 # Extract the first word of "awk", so it can be a program name with args.
1578 set dummy awk; ac_word=$2
1579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_word" >&5
1581 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1586 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1589 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1594 for ac_dir in $ac_dummy; do
1595 test -z "$ac_dir" && ac_dir=.
1596 if test -f $ac_dir/$ac_word; then
1597 ac_cv_path_AWK="$ac_dir/$ac_word"
1602 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1606 AWK="$ac_cv_path_AWK"
1607 if test -n "$AWK"; then
1608 echo "$ac_t""$AWK" 1>&6
1610 echo "$ac_t""no" 1>&6
1613 # Extract the first word of "echo", so it can be a program name with args.
1614 set dummy echo; ac_word=$2
1615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1616 echo "configure:1617: checking for $ac_word" >&5
1617 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1622 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1625 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1630 for ac_dir in $ac_dummy; do
1631 test -z "$ac_dir" && ac_dir=.
1632 if test -f $ac_dir/$ac_word; then
1633 ac_cv_path_ECHO="$ac_dir/$ac_word"
1638 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1642 ECHO="$ac_cv_path_ECHO"
1643 if test -n "$ECHO"; then
1644 echo "$ac_t""$ECHO" 1>&6
1646 echo "$ac_t""no" 1>&6
1649 # Extract the first word of "cmp", so it can be a program name with args.
1650 set dummy cmp; ac_word=$2
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_word" >&5
1653 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1658 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1661 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1666 for ac_dir in $ac_dummy; do
1667 test -z "$ac_dir" && ac_dir=.
1668 if test -f $ac_dir/$ac_word; then
1669 ac_cv_path_CMP="$ac_dir/$ac_word"
1674 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1678 CMP="$ac_cv_path_CMP"
1679 if test -n "$CMP"; then
1680 echo "$ac_t""$CMP" 1>&6
1682 echo "$ac_t""no" 1>&6
1685 # Extract the first word of "tbl", so it can be a program name with args.
1686 set dummy tbl; ac_word=$2
1687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1688 echo "configure:1689: checking for $ac_word" >&5
1689 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1694 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1697 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1702 for ac_dir in $ac_dummy; do
1703 test -z "$ac_dir" && ac_dir=.
1704 if test -f $ac_dir/$ac_word; then
1705 ac_cv_path_TBL="$ac_dir/$ac_word"
1710 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1714 TBL="$ac_cv_path_TBL"
1715 if test -n "$TBL"; then
1716 echo "$ac_t""$TBL" 1>&6
1718 echo "$ac_t""no" 1>&6
1721 # Extract the first word of "ar", so it can be a program name with args.
1722 set dummy ar; ac_word=$2
1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_word" >&5
1725 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1730 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1733 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1738 for ac_dir in $ac_dummy; do
1739 test -z "$ac_dir" && ac_dir=.
1740 if test -f $ac_dir/$ac_word; then
1741 ac_cv_path_AR="$ac_dir/$ac_word"
1746 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1751 if test -n "$AR"; then
1752 echo "$ac_t""$AR" 1>&6
1754 echo "$ac_t""no" 1>&6
1757 # Extract the first word of "ranlib", so it can be a program name with args.
1758 set dummy ranlib; ac_word=$2
1759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $ac_word" >&5
1761 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1766 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1769 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1774 for ac_dir in $ac_dummy; do
1775 test -z "$ac_dir" && ac_dir=.
1776 if test -f $ac_dir/$ac_word; then
1777 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1782 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1786 RANLIB="$ac_cv_path_RANLIB"
1787 if test -n "$RANLIB"; then
1788 echo "$ac_t""$RANLIB" 1>&6
1790 echo "$ac_t""no" 1>&6
1793 # Extract the first word of "openssl", so it can be a program name with args.
1794 set dummy openssl; ac_word=$2
1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_word" >&5
1797 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1802 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1805 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1810 for ac_dir in $ac_dummy; do
1811 test -z "$ac_dir" && ac_dir=.
1812 if test -f $ac_dir/$ac_word; then
1813 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1818 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1822 OPENSSL="$ac_cv_path_OPENSSL"
1823 if test -n "$OPENSSL"; then
1824 echo "$ac_t""$OPENSSL" 1>&6
1826 echo "$ac_t""no" 1>&6
1830 test -n "$ARFLAG" || ARFLAGS="cr"
1843 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1844 echo "configure:1845: checking for Operating System" >&5
1845 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1846 echo "configure:1847: checking for Cygwin environment" >&5
1847 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 cat > conftest.$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1857 #define __CYGWIN__ __CYGWIN32__
1862 if { (eval echo configure:1863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1875 echo "$ac_t""$ac_cv_cygwin" 1>&6
1877 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1878 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1884 HAVE_SUN_OS_FALSE='#'
1886 HAVE_SUN_OS_TRUE='#'
1889 cat >> confdefs.h <<\EOF
1890 #define HAVE_SUN_OS 1
1898 HAVE_SUN_OS_FALSE='#'
1900 HAVE_SUN_OS_TRUE='#'
1905 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1911 HAVE_OSF1_OS_FALSE='#'
1913 HAVE_OSF1_OS_TRUE='#'
1916 cat >> confdefs.h <<\EOF
1917 #define HAVE_OSF1_OS 1
1925 HAVE_OSF1_OS_FALSE='#'
1927 HAVE_OSF1_OS_TRUE='#'
1932 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1938 HAVE_AIX_OS_FALSE='#'
1940 HAVE_AIX_OS_TRUE='#'
1943 cat >> confdefs.h <<\EOF
1944 #define HAVE_AIX_OS 1
1952 HAVE_AIX_OS_FALSE='#'
1954 HAVE_AIX_OS_TRUE='#'
1959 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1965 HAVE_HPUX_OS_FALSE='#'
1967 HAVE_HPUX_OS_TRUE='#'
1970 cat >> confdefs.h <<\EOF
1971 #define HAVE_HPUX_OS 1
1979 HAVE_HPUX_OS_FALSE='#'
1981 HAVE_HPUX_OS_TRUE='#'
1986 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1992 HAVE_LINUX_OS_FALSE='#'
1994 HAVE_LINUX_OS_TRUE='#'
1995 HAVE_LINUX_OS_FALSE=
1997 cat >> confdefs.h <<\EOF
1998 #define HAVE_LINUX_OS 1
2006 HAVE_LINUX_OS_FALSE='#'
2008 HAVE_LINUX_OS_TRUE='#'
2009 HAVE_LINUX_OS_FALSE=
2013 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2018 HAVE_FREEBSD_OS_TRUE=
2019 HAVE_FREEBSD_OS_FALSE='#'
2021 HAVE_FREEBSD_OS_TRUE='#'
2022 HAVE_FREEBSD_OS_FALSE=
2024 cat >> confdefs.h <<\EOF
2025 #define HAVE_FREEBSD_OS 1
2032 HAVE_FREEBSD_OS_TRUE=
2033 HAVE_FREEBSD_OS_FALSE='#'
2035 HAVE_FREEBSD_OS_TRUE='#'
2036 HAVE_FREEBSD_OS_FALSE=
2040 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2045 HAVE_NETBSD_OS_TRUE=
2046 HAVE_NETBSD_OS_FALSE='#'
2048 HAVE_NETBSD_OS_TRUE='#'
2049 HAVE_NETBSD_OS_FALSE=
2051 cat >> confdefs.h <<\EOF
2052 #define HAVE_NETBSD_OS 1
2059 HAVE_NETBSD_OS_TRUE=
2060 HAVE_NETBSD_OS_FALSE='#'
2062 HAVE_NETBSD_OS_TRUE='#'
2063 HAVE_NETBSD_OS_FALSE=
2067 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2072 HAVE_OPENBSD_OS_TRUE=
2073 HAVE_OPENBSD_OS_FALSE='#'
2075 HAVE_OPENBSD_OS_TRUE='#'
2076 HAVE_OPENBSD_OS_FALSE=
2078 cat >> confdefs.h <<\EOF
2079 #define HAVE_OPENBSD_OS 1
2086 HAVE_OPENBSD_OS_TRUE=
2087 HAVE_OPENBSD_OS_FALSE='#'
2089 HAVE_OPENBSD_OS_TRUE='#'
2090 HAVE_OPENBSD_OS_FALSE=
2094 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2100 HAVE_BSDI_OS_FALSE='#'
2102 HAVE_BSDI_OS_TRUE='#'
2105 cat >> confdefs.h <<\EOF
2106 #define HAVE_BSDI_OS 1
2114 HAVE_BSDI_OS_FALSE='#'
2116 HAVE_BSDI_OS_TRUE='#'
2121 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2127 HAVE_SGI_OS_FALSE='#'
2129 HAVE_SGI_OS_TRUE='#'
2132 cat >> confdefs.h <<\EOF
2133 #define HAVE_SGI_OS 1
2141 HAVE_SGI_OS_FALSE='#'
2143 HAVE_SGI_OS_TRUE='#'
2148 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2154 HAVE_IRIX_OS_FALSE='#'
2156 HAVE_IRIX_OS_TRUE='#'
2159 cat >> confdefs.h <<\EOF
2160 #define HAVE_IRIX_OS 1
2168 HAVE_IRIX_OS_FALSE='#'
2170 HAVE_IRIX_OS_TRUE='#'
2175 echo "$ac_t""" "" 1>&6
2178 # -----------------------------------------------------------
2179 # ----------------------------------------------------------
2180 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2181 echo "configure:2182: checking for Operating System Distribution" >&5
2182 if test "x$DISTNAME" != "x"
2184 echo "distname set to $DISTNAME"
2185 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2188 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2191 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2194 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2197 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2200 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2203 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2206 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2209 elif test -f /etc/SuSE-release
2212 elif test -d /etc/SuSEconfig
2215 elif test -d /usr/src/OpenLinux
2218 elif test -f /etc/redhat-release
2221 elif test -f /etc/debian_version
2224 elif test -f /etc/slackware-version
2227 elif test "$ac_cv_cygwin" = yes
2230 cat >> confdefs.h <<\EOF
2231 #define HAVE_CYGWIN 1
2237 echo "$ac_t""" "" 1>&6
2240 # -----------------------------------------------------------
2241 # ----------------------------------------------------------
2246 INSIDE_GNOME_COMMON_TRUE=
2247 INSIDE_GNOME_COMMON_FALSE='#'
2249 INSIDE_GNOME_COMMON_TRUE='#'
2250 INSIDE_GNOME_COMMON_FALSE=
2253 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2255 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2258 # ------------------------------------------------------------------
2259 # If the user has not set --prefix, we set our default to nothing.
2260 # In this case, if the user has not set --sysconfdir, we set it
2261 # to the package default of /etc/bacula. If either --prefix or
2262 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2263 # ------------------------------------------------------------------
2264 if test x${prefix} = xNONE ; then
2265 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2266 sysconfdir=/etc/bacula
2270 sysconfdir=`eval echo ${sysconfdir}`
2272 # -------------------------------------------------------------------------
2273 # If the user has not set --exec-prefix, we default to ${prefix}
2274 # -------------------------------------------------------------------------
2275 if test x${exec_prefix} = xNONE ; then
2276 exec_prefix=${prefix}
2279 # ------------------------------------------------------------------
2280 # If the user has not set --sbindir, we set our default as /sbin
2281 # ------------------------------------------------------------------
2282 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2283 sbindir=${exec_prefix}/sbin
2285 sbindir=`eval echo ${sbindir}`
2287 # ------------------------------------------------------------------
2288 # All list of languages for which a translation exist. Each
2289 # language is separated by a space.
2290 # ------------------------------------------------------------------
2293 for ac_prog in msgfmt
2295 # Extract the first word of "$ac_prog", so it can be a program name with args.
2296 set dummy $ac_prog; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2304 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2307 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2312 for ac_dir in $ac_dummy; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2323 MSGFMT="$ac_cv_path_MSGFMT"
2324 if test -n "$MSGFMT"; then
2325 echo "$ac_t""$MSGFMT" 1>&6
2327 echo "$ac_t""no" 1>&6
2330 test -n "$MSGFMT" && break
2332 test -n "$MSGFMT" || MSGFMT="no"
2334 if test "$MSGFMT" = "no"
2336 echo 'msgfmt program not found, disabling NLS !'
2338 USE_INCLUDED_LIBINTL=no
2346 support_smartalloc=yes
2347 support_readline=yes
2349 support_static_tools=no
2354 # Check whether --enable-everything or --disable-everything was given.
2355 if test "${enable_everything+set}" = set; then
2356 enableval="$enable_everything"
2357 if test x$enableval = xyes; then
2358 support_smartalloc=yes
2363 # -------------------------------------------
2364 # gnome (default off)
2365 # -------------------------------------------
2366 # Check whether --enable-gnome or --disable-gnome was given.
2367 if test "${enable_gnome+set}" = set; then
2368 enableval="$enable_gnome"
2369 if test x$enableval = xyes; then
2376 if test x$support_gnome = xyes; then
2387 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2388 if test "${with_gnome_includes+set}" = set; then
2389 withval="$with_gnome_includes"
2391 CFLAGS="$CFLAGS -I$withval"
2396 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2397 if test "${with_gnome_libs+set}" = set; then
2398 withval="$with_gnome_libs"
2400 LDFLAGS="$LDFLAGS -L$withval"
2401 gnome_prefix=$withval
2406 # Check whether --with-gnome or --without-gnome was given.
2407 if test "${with_gnome+set}" = set; then
2408 withval="$with_gnome"
2409 if test x$withval = xyes; then
2413 if test "x$withval" = xno; then
2417 LDFLAGS="$LDFLAGS -L$withval/lib"
2418 CFLAGS="$CFLAGS -I$withval/include"
2419 gnome_prefix=$withval/lib
2427 if test "x$want_gnome" = xyes; then
2429 # Extract the first word of "gnome-config", so it can be a program name with args.
2430 set dummy gnome-config; ac_word=$2
2431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2432 echo "configure:2433: checking for $ac_word" >&5
2433 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 case "$GNOME_CONFIG" in
2438 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2441 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2446 for ac_dir in $ac_dummy; do
2447 test -z "$ac_dir" && ac_dir=.
2448 if test -f $ac_dir/$ac_word; then
2449 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2454 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2458 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2459 if test -n "$GNOME_CONFIG"; then
2460 echo "$ac_t""$GNOME_CONFIG" 1>&6
2462 echo "$ac_t""no" 1>&6
2465 if test "$GNOME_CONFIG" = "no"; then
2466 no_gnome_config="yes"
2468 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2469 echo "configure:2470: checking if $GNOME_CONFIG works" >&5
2470 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2471 echo "$ac_t""yes" 1>&6
2474 # Extract the first word of "orbit-config", so it can be a program name with args.
2475 set dummy orbit-config; ac_word=$2
2476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_word" >&5
2478 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 case "$ORBIT_CONFIG" in
2483 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2486 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2491 for ac_dir in $ac_dummy; do
2492 test -z "$ac_dir" && ac_dir=.
2493 if test -f $ac_dir/$ac_word; then
2494 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2499 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2503 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2504 if test -n "$ORBIT_CONFIG"; then
2505 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2507 echo "$ac_t""no" 1>&6
2510 # Extract the first word of "orbit-idl", so it can be a program name with args.
2511 set dummy orbit-idl; ac_word=$2
2512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_word" >&5
2514 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 case "$ORBIT_IDL" in
2519 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2522 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2527 for ac_dir in $ac_dummy; do
2528 test -z "$ac_dir" && ac_dir=.
2529 if test -f $ac_dir/$ac_word; then
2530 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2535 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2539 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2540 if test -n "$ORBIT_IDL"; then
2541 echo "$ac_t""$ORBIT_IDL" 1>&6
2543 echo "$ac_t""no" 1>&6
2546 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2547 echo "configure:2548: checking for working ORBit environment" >&5
2548 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2552 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2553 gnome_cv_orbit_found=no
2555 gnome_cv_orbit_found=yes
2560 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2563 if test x$gnome_cv_orbit_found = xyes; then
2565 HAVE_ORBIT_FALSE='#'
2570 if test x$gnome_cv_orbit_found = xyes; then
2572 ORBIT_CFLAGS=`orbit-config --cflags client server`
2573 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2577 if test xfail = xfailure; then
2578 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2582 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2583 echo "configure:2584: checking for gnorba libraries" >&5
2584 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2588 gnome_cv_gnorba_found=no
2589 if test x$gnome_cv_orbit_found = xyes; then
2590 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2591 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2592 if test -n "$GNORBA_LIBS"; then
2593 gnome_cv_gnorba_found=yes
2599 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2602 if test x$gnome_cv_gnorba_found = xyes; then
2604 HAVE_GNORBA_FALSE='#'
2606 HAVE_GNORBA_TRUE='#'
2609 if test x$gnome_cv_orbit_found = xyes; then
2611 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2612 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2616 if test xfail = xfailure; then
2617 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2621 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2622 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2623 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2624 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2625 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2626 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2627 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2630 echo "$ac_t""no" 1>&6
2631 no_gnome_config="yes"
2635 if test x$exec_prefix = xNONE; then
2636 if test x$prefix = xNONE; then
2637 gnome_prefix=$ac_default_prefix/lib
2639 gnome_prefix=$prefix/lib
2642 gnome_prefix=`eval echo \`echo $libdir\``
2645 if test "$no_gnome_config" = "yes"; then
2646 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2647 echo "configure:2648: checking for gnomeConf.sh file in $gnome_prefix" >&5
2648 if test -f $gnome_prefix/gnomeConf.sh; then
2649 echo "$ac_t""found" 1>&6
2650 echo "loading gnome configuration from" \
2651 "$gnome_prefix/gnomeConf.sh"
2652 . $gnome_prefix/gnomeConf.sh
2655 echo "$ac_t""not found" 1>&6
2656 if test xfail = xfail; then
2657 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2666 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2667 echo "configure:2668: checking extra library \"$i\"" >&5
2671 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2672 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2675 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2676 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2679 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2680 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2682 echo "$ac_t""unknown library" 1>&6
2684 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2685 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2690 GNOME_DIR=src/gnome-console
2695 # -------------------------------------------
2696 # smartalloc (default off)
2697 # -------------------------------------------
2698 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2699 if test "${enable_smartalloc+set}" = set; then
2700 enableval="$enable_smartalloc"
2701 if test x$enableval = xno; then
2702 support_smartalloc=no
2707 if test x$support_smartalloc = xyes; then
2708 cat >> confdefs.h <<\EOF
2709 #define SMARTALLOC 1
2714 # -------------------------------------------
2715 # static-tools (default off)
2716 # -------------------------------------------
2717 # Check whether --enable-static-tools or --disable-static-tools was given.
2718 if test "${enable_static_tools+set}" = set; then
2719 enableval="$enable_static_tools"
2720 if test x$enableval = xyes; then
2721 support_static_tools=yes
2727 if test x$support_static_tools = xyes; then
2728 TTOOL_LDFLAGS="-static"
2735 # ---------------------------------------------------
2736 # Check for readline support/directory (default on)
2737 # ---------------------------------------------------
2738 # this allows you to turn it completely off
2739 # Check whether --enable-readline or --disable-readline was given.
2740 if test "${enable_readline+set}" = set; then
2741 enableval="$enable_readline"
2742 if test x$enableval = xno; then
2750 if test x$support_readline = xyes; then
2751 # Check whether --with-readline or --without-readline was given.
2752 if test "${with_readline+set}" = set; then
2753 withval="$with_readline"
2755 case "$with_readline" in
2758 if test "$with_readline" != "yes"; then
2759 CONS_INC="-I$with_readline"
2760 CONS_LDFLAGS="-L$with_readline"
2762 with_readline="/usr/include/readline"
2764 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2765 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2766 echo "configure:2767: checking for $with_readline/readline.h" >&5
2767 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 #include <$with_readline/readline.h>
2775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2776 { (eval echo configure:2777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2778 if test -z "$ac_err"; then
2780 eval "ac_cv_header_$ac_safe=yes"
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2786 eval "ac_cv_header_$ac_safe=no"
2790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2791 echo "$ac_t""yes" 1>&6
2792 echo "$ac_t""yes" 1>&6
2793 cat >> confdefs.h <<\EOF
2794 #define HAVE_READLINE 1
2797 CONS_LIBS="-lreadline -ltermcap"
2801 echo "$ac_t""no" 1>&6
2802 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2812 # check for standard readline library
2813 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2814 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2815 echo "configure:2816: checking for /usr/include/readline/readline.h" >&5
2816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2822 #include </usr/include/readline/readline.h>
2824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2829 eval "ac_cv_header_$ac_safe=yes"
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2835 eval "ac_cv_header_$ac_safe=no"
2839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 echo "$ac_t""yes" 1>&6
2842 cat >> confdefs.h <<\EOF
2843 #define HAVE_READLINE 1
2847 CONS_INC="-I/usr/include/readline"
2848 CONS_LIBS="-lreadline -ltermcap"
2851 echo "$ac_t""no" 1>&6
2853 # Did not find starndard library, so user our own
2854 echo "$ac_t""yes" 1>&6
2855 cat >> confdefs.h <<\EOF
2856 #define HAVE_READLINE 1
2860 CONS_INC="-I${TOP_DIR}/depkgs"
2861 CONS_LIBS="-lreadline -lhistory -ltermcap"
2862 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2863 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
2877 # Minimal stuff for readline Makefile configuration
2881 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2882 echo "configure:2883: checking whether stat file-mode macros are broken" >&5
2883 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2889 #include <sys/types.h>
2890 #include <sys/stat.h>
2892 #if defined(S_ISBLK) && defined(S_IFDIR)
2893 # if S_ISBLK (S_IFDIR)
2898 #if defined(S_ISBLK) && defined(S_IFCHR)
2899 # if S_ISBLK (S_IFCHR)
2904 #if defined(S_ISLNK) && defined(S_IFREG)
2905 # if S_ISLNK (S_IFREG)
2910 #if defined(S_ISSOCK) && defined(S_IFREG)
2911 # if S_ISSOCK (S_IFREG)
2917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2918 egrep "You lose" >/dev/null 2>&1; then
2920 ac_cv_header_stat_broken=yes
2923 ac_cv_header_stat_broken=no
2929 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2930 if test $ac_cv_header_stat_broken = yes; then
2931 cat >> confdefs.h <<\EOF
2932 #define STAT_MACROS_BROKEN 1
2938 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2941 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2942 echo "configure:2943: checking for $ac_hdr that defines DIR" >&5
2943 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 #include <sys/types.h>
2955 if { (eval echo configure:2956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2957 eval "ac_cv_header_dirent_$ac_safe=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 eval "ac_cv_header_dirent_$ac_safe=no"
2966 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2969 cat >> confdefs.h <<EOF
2970 #define $ac_tr_hdr 1
2972 ac_header_dirent=$ac_hdr; break
2974 echo "$ac_t""no" 1>&6
2977 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2978 if test $ac_header_dirent = dirent.h; then
2979 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2980 echo "configure:2981: checking for opendir in -ldir" >&5
2981 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 ac_save_LIBS="$LIBS"
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 /* Override any gcc2 internal prototype to avoid an error. */
2991 /* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 eval "ac_cv_lib_$ac_lib_var=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_lib_$ac_lib_var=no"
3009 LIBS="$ac_save_LIBS"
3012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3016 echo "$ac_t""no" 1>&6
3020 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3021 echo "configure:3022: checking for opendir in -lx" >&5
3022 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 ac_save_LIBS="$LIBS"
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3042 eval "ac_cv_lib_$ac_lib_var=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3047 eval "ac_cv_lib_$ac_lib_var=no"
3050 LIBS="$ac_save_LIBS"
3053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3057 echo "$ac_t""no" 1>&6
3063 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_func" >&5
3067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 /* System header to define __stub macros and hopefully few prototypes,
3074 which can conflict with char $ac_func(); below. */
3076 /* Override any gcc2 internal prototype to avoid an error. */
3077 /* We use char because int might match the return type of a gcc2
3078 builtin and then its argument prototype would still apply. */
3083 /* The GNU C library defines this for functions which it implements
3084 to always fail with ENOSYS. Some functions are actually named
3085 something starting with __ and the normal name is an alias. */
3086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3096 eval "ac_cv_func_$ac_func=yes"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3101 eval "ac_cv_func_$ac_func=no"
3106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3109 cat >> confdefs.h <<EOF
3110 #define $ac_tr_func 1
3114 echo "$ac_t""no" 1>&6
3119 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3120 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3121 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3123 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3124 echo "configure:3125: checking for getopt_long" >&5
3125 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 /* System header to define __stub macros and hopefully few prototypes,
3132 which can conflict with char getopt_long(); below. */
3134 /* Override any gcc2 internal prototype to avoid an error. */
3135 /* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3141 /* The GNU C library defines this for functions which it implements
3142 to always fail with ENOSYS. Some functions are actually named
3143 something starting with __ and the normal name is an alias. */
3144 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3152 if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3154 eval "ac_cv_func_getopt_long=yes"
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3159 eval "ac_cv_func_getopt_long=no"
3164 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 cat >> confdefs.h <<\EOF
3167 #define HAVE_GETOPT_LONG 1
3171 echo "$ac_t""no" 1>&6
3176 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3177 echo "configure:3178: checking for working strcoll" >&5
3178 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 if test "$cross_compiling" = yes; then
3182 ac_cv_func_strcoll_works=no
3184 cat > conftest.$ac_ext <<EOF
3185 #line 3186 "configure"
3186 #include "confdefs.h"
3190 exit (strcoll ("abc", "def") >= 0 ||
3191 strcoll ("ABC", "DEF") >= 0 ||
3192 strcoll ("123", "456") >= 0);
3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3197 ac_cv_func_strcoll_works=yes
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 ac_cv_func_strcoll_works=no
3209 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3210 if test $ac_cv_func_strcoll_works = yes; then
3211 cat >> confdefs.h <<\EOF
3212 #define HAVE_STRCOLL 1
3218 for ac_hdr in varargs.h \
3219 sys/ptem.h sys/pte.h sys/stream.h
3221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3223 echo "configure:3224: checking for $ac_hdr" >&5
3224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3233 { (eval echo configure:3234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3235 if test -z "$ac_err"; then
3237 eval "ac_cv_header_$ac_safe=yes"
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3243 eval "ac_cv_header_$ac_safe=no"
3247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3248 echo "$ac_t""yes" 1>&6
3249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3250 cat >> confdefs.h <<EOF
3251 #define $ac_tr_hdr 1
3255 echo "$ac_t""no" 1>&6
3260 # End of readline stuff
3261 # -----------------------------------------------------------------------
3264 # ---------------------------------------------------
3265 # Check for GMP support/directory
3266 # ---------------------------------------------------
3269 # Check whether --with-gmp or --without-gmp was given.
3270 if test "${with_gmp+set}" = set; then
3276 if test "$with_gmp" != "yes"; then
3277 GMP_INC="-I$with_gmp"
3279 GMP_LDFLAGS="-L$with_gmp"
3281 with_gmp="/usr/include"
3283 ac_safe=`echo "$with_gmp/gmp.h" | sed 'y%./+-%__p_%'`
3284 echo $ac_n "checking for $with_gmp/gmp.h""... $ac_c" 1>&6
3285 echo "configure:3286: checking for $with_gmp/gmp.h" >&5
3286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 #include <$with_gmp/gmp.h>
3294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3295 { (eval echo configure:3296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3297 if test -z "$ac_err"; then
3299 eval "ac_cv_header_$ac_safe=yes"
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3305 eval "ac_cv_header_$ac_safe=no"
3309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3310 echo "$ac_t""yes" 1>&6
3311 echo "$ac_t""yes" 1>&6
3312 cat >> confdefs.h <<\EOF
3320 echo "$ac_t""no" 1>&6
3321 { echo "configure: error: *** gmp library missing" 1>&2; exit 1; }
3331 # check for standard gmp library
3332 ac_safe=`echo "/usr/include/gmp.h" | sed 'y%./+-%__p_%'`
3333 echo $ac_n "checking for /usr/include/gmp.h""... $ac_c" 1>&6
3334 echo "configure:3335: checking for /usr/include/gmp.h" >&5
3335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 #include </usr/include/gmp.h>
3343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3344 { (eval echo configure:3345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3346 if test -z "$ac_err"; then
3348 eval "ac_cv_header_$ac_safe=yes"
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3354 eval "ac_cv_header_$ac_safe=no"
3358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3360 echo "$ac_t""yes" 1>&6
3361 cat >> confdefs.h <<\EOF
3370 echo "$ac_t""no" 1>&6
3372 # Did not find standard library, so use our own
3373 echo "$ac_t""yes" 1>&6
3374 cat >> confdefs.h <<\EOF
3380 GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3382 GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3383 GMP_SRC="${TOP_DIR}/depkgs/gmp"
3397 # -----------------------------------------------------------------------
3400 # ---------------------------------------------------
3401 # Check for CWEB support/directory
3402 # ---------------------------------------------------
3406 # Check whether --with-cweb or --without-cweb was given.
3407 if test "${with_cweb+set}" = set; then
3408 withval="$with_cweb"
3410 case "$with_cweb" in
3413 if test "$with_cweb" != "yes"; then
3414 CWEB_INC="-I$with_cweb"
3416 CWEB_LDFLAGS="-L$with_cweb"
3418 with_cweb="/usr/include"
3420 ac_safe=`echo "$with_cweb/cweb.h" | sed 'y%./+-%__p_%'`
3421 echo $ac_n "checking for $with_cweb/cweb.h""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $with_cweb/cweb.h" >&5
3423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 #include <$with_cweb/cweb.h>
3431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3432 { (eval echo configure:3433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3434 if test -z "$ac_err"; then
3436 eval "ac_cv_header_$ac_safe=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_header_$ac_safe=no"
3446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 echo "$ac_t""yes" 1>&6
3449 cat >> confdefs.h <<\EOF
3457 echo "$ac_t""no" 1>&6
3458 { echo "configure: error: *** cweb library missing" 1>&2; exit 1; }
3468 # check for standard cweb library
3469 ac_safe=`echo "/usr/include/cweb.h" | sed 'y%./+-%__p_%'`
3470 echo $ac_n "checking for /usr/include/cweb.h""... $ac_c" 1>&6
3471 echo "configure:3472: checking for /usr/include/cweb.h" >&5
3472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 #include </usr/include/cweb.h>
3480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3481 { (eval echo configure:3482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3483 if test -z "$ac_err"; then
3485 eval "ac_cv_header_$ac_safe=yes"
3488 echo "configure: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3491 eval "ac_cv_header_$ac_safe=no"
3495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 echo "$ac_t""yes" 1>&6
3498 cat >> confdefs.h <<\EOF
3507 echo "$ac_t""no" 1>&6
3509 # Did not find starndard library, so use our own
3510 echo "$ac_t""yes" 1>&6
3511 cat >> confdefs.h <<\EOF
3517 CWEB=${TOP_DIR}/depkgs/cweb
3518 CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3520 CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3521 CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3536 # -----------------------------------------------------------------------
3540 # -----------------------------------------------------------
3541 # Check whether user wants TCP wrappers support (default off)
3542 # -----------------------------------------------------------
3544 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3545 if test "${with_tcp_wrappers+set}" = set; then
3546 withval="$with_tcp_wrappers"
3548 if test "x$withval" != "xno" ; then
3550 LIBS="$LIBS -lwrap -lnsl"
3551 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3552 echo "configure:3553: checking for libwrap" >&5
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3557 int deny_severity = 0;
3558 int allow_severity = 0;
3559 struct request_info *req;
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3567 echo "$ac_t""yes" 1>&6
3568 cat >> confdefs.h <<\EOF
3569 #define HAVE_LIBWRAP 1
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3588 # ------------------------------------------
3589 # Where to place working dir
3590 # ------------------------------------------
3591 working_dir=`eval echo ${sysconfdir}/working`
3592 # Check whether --with-working-dir or --without-working-dir was given.
3593 if test "${with_working_dir+set}" = set; then
3594 withval="$with_working_dir"
3596 if test "x$withval" != "xno" ; then
3597 working_dir=$withval
3606 # ------------------------------------------
3607 # Where to send dump email
3608 # ------------------------------------------
3609 dump_email=root@localhost
3610 # Check whether --with-dump-email or --without-dump-email was given.
3611 if test "${with_dump_email+set}" = set; then
3612 withval="$with_dump_email"
3614 if test "x$withval" != "xno" ; then
3624 # ------------------------------------------
3625 # Where to send job email
3626 # ------------------------------------------
3627 job_email=root@localhost
3628 # Check whether --with-job-email or --without-job-email was given.
3629 if test "${with_job_email+set}" = set; then
3630 withval="$with_job_email"
3632 if test "x$withval" != "xno" ; then
3642 # ------------------------------------------
3643 # Where to find smtp host
3644 # ------------------------------------------
3646 # Check whether --with-smtp_host or --without-smtp_host was given.
3647 if test "${with_smtp_host+set}" = set; then
3648 withval="$with_smtp_host"
3650 if test "x$withval" != "xno" ; then
3661 # ------------------------------------
3662 # Where to place pid files
3663 # ------------------------------------
3665 # Check whether --with-pid-dir or --without-pid-dir was given.
3666 if test "${with_pid_dir+set}" = set; then
3667 withval="$with_pid_dir"
3669 if test "x$withval" != "xno" ; then
3677 # make sure the pid directory exists
3678 if test ! -d $piddir ; then
3679 piddir=`eval echo ${sysconfdir}`
3681 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3685 cat >> confdefs.h <<EOF
3686 #define _PATH_BACULA_PIDDIR "$piddir"
3692 # ------------------------------------
3693 # Where to place subsys "lock file"
3694 # ------------------------------------
3695 subsysdir=/var/run/subsys
3696 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3697 if test "${with_subsys_dir+set}" = set; then
3698 withval="$with_subsys_dir"
3700 if test "x$withval" != "xno" ; then
3708 # make sure the pid directory exists
3709 if test ! -d $subsysdir ; then
3710 subsysdir=`eval echo ${sysconfdir}`
3712 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3720 # ------------------------------------
3721 # Where to start assigning ports
3722 # ------------------------------------
3724 # Check whether --with-baseport or --without-baseport was given.
3725 if test "${with_baseport+set}" = set; then
3726 withval="$with_baseport"
3728 if test "x$withval" != "xno" ; then
3737 dir_port=`expr $baseport`
3738 fd_port=`expr $baseport + 1`
3739 sd_port=`expr $fd_port + 1`
3746 # ------------------------------------------
3747 # Generate passwords
3748 # ------------------------------------------
3750 # Check whether --with-dir-password or --without-dir-password was given.
3751 if test "${with_dir_password+set}" = set; then
3752 withval="$with_dir_password"
3754 if test "x$withval" != "xno" ; then
3755 dir_password=$withval
3762 if test "x$dir_password" = "x" ; then
3763 if test "x$OPENSSL" = "xnone" ; then
3764 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3765 key=`autoconf/randpass 33`
3767 key=`openssl rand -base64 33`
3773 # Check whether --with-fd-password or --without-fd-password was given.
3774 if test "${with_fd_password+set}" = set; then
3775 withval="$with_fd_password"
3777 if test "x$withval" != "xno" ; then
3778 fd_password=$withval
3785 if test "x$fd_password" = "x" ; then
3786 if test "x$OPENSSL" = "xnone" ; then
3787 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3788 key=`autoconf/randpass 37`
3790 key=`openssl rand -base64 33`
3796 # Check whether --with-sd-password or --without-sd-password was given.
3797 if test "${with_sd_password+set}" = set; then
3798 withval="$with_sd_password"
3800 if test "x$withval" != "xno" ; then
3801 sd_password=$withval
3808 if test "x$sd_password" = "x" ; then
3809 if test "x$OPENSSL" = "xnone" ; then
3810 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3811 key=`autocnf/randpass 41`
3813 key=`openssl rand -base64 33`
3826 # ------------------------------------------------
3827 # Bacula check for various SQL database engines
3828 # ------------------------------------------------
3831 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3832 echo "configure:3833: checking for MySQL support" >&5
3833 # Check whether --with-mysql or --without-mysql was given.
3834 if test "${with_mysql+set}" = set; then
3835 withval="$with_mysql"
3837 if test "$withval" != "no"; then
3838 if test "$withval" = "yes"; then
3839 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3840 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3841 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3842 MYSQL_BINDIR=/usr/local/mysql/bin
3843 elif test -f /usr/include/mysql/mysql.h; then
3844 MYSQL_INCDIR=/usr/include/mysql
3845 MYSQL_LIBDIR=/usr/lib/mysql
3846 MYSQL_BINDIR=/usr/bin
3847 elif test -f /usr/include/mysql.h; then
3848 MYSQL_INCDIR=/usr/include
3849 MYSQL_LIBDIR=/usr/lib
3850 MYSQL_BINDIR=/usr/bin
3851 elif test -f /usr/local/include/mysql/mysql.h; then
3852 MYSQL_INCDIR=/usr/local/include/mysql
3853 MYSQL_LIBDIR=/usr/local/lib/mysql
3854 MYSQL_BINDIR=/usr/local/bin
3855 elif test -f /usr/local/include/mysql.h; then
3856 MYSQL_INCDIR=/usr/local/include
3857 MYSQL_LIBDIR=/usr/local/lib
3858 MYSQL_BINDIR=/usr/local/bin
3860 echo "$ac_t""no" 1>&6
3861 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3864 if test -f $withval/include/mysql/mysql.h; then
3865 MYSQL_INCDIR=$withval/include/mysql
3866 MYSQL_LIBDIR=$withval/lib/mysql
3867 MYSQL_BINDIR=$withval/bin
3868 elif test -f $withval/include/mysql.h; then
3869 MYSQL_INCDIR=$withval/include
3870 MYSQL_LIBDIR=$withval/lib
3871 MYSQL_BINDIR=$withval/bin
3873 echo "$ac_t""no" 1>&6
3874 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3877 SQL_INCLUDE=-I$MYSQL_INCDIR
3878 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
3879 SQL_BINDIR=$MYSQL_BINDIR
3881 cat >> confdefs.h <<\EOF
3882 #define HAVE_MYSQL 1
3885 echo "$ac_t""yes" 1>&6
3892 echo "$ac_t""no" 1>&6
3897 echo "$ac_t""no" 1>&6
3902 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
3903 if test "${with_embedded_mysql+set}" = set; then
3904 withval="$with_embedded_mysql"
3906 if test "$withval" != "no"; then
3907 if test "$withval" = "yes"; then
3908 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3909 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3910 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3911 MYSQL_BINDIR=/usr/local/mysql/bin
3912 elif test -f /usr/include/mysql/mysql.h; then
3913 MYSQL_INCDIR=/usr/include/mysql
3914 MYSQL_LIBDIR=/usr/lib/mysql
3915 MYSQL_BINDIR=/usr/bin
3916 elif test -f /usr/include/mysql.h; then
3917 MYSQL_INCDIR=/usr/include
3918 MYSQL_LIBDIR=/usr/lib
3919 MYSQL_BINDIR=/usr/bin
3920 elif test -f /usr/local/include/mysql/mysql.h; then
3921 MYSQL_INCDIR=/usr/local/include/mysql
3922 MYSQL_LIBDIR=/usr/local/lib/mysql
3923 MYSQL_BINDIR=/usr/local/bin
3924 elif test -f /usr/local/include/mysql.h; then
3925 MYSQL_INCDIR=/usr/local/include
3926 MYSQL_LIBDIR=/usr/local/lib
3927 MYSQL_BINDIR=/usr/local/bin
3929 echo "$ac_t""no" 1>&6
3930 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3933 if test -f $withval/include/mysql/mysql.h; then
3934 MYSQL_INCDIR=$withval/include/mysql
3935 MYSQL_LIBDIR=$withval/lib/mysql
3936 MYSQL_BINDIR=$withval/bin
3937 elif test -f $withval/include/mysql.h; then
3938 MYSQL_INCDIR=$withval/include
3939 MYSQL_LIBDIR=$withval/lib
3940 MYSQL_BINDIR=$withval/bin
3942 echo "$ac_t""no" 1>&6
3943 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3946 SQL_INCLUDE=-I$MYSQL_INCDIR
3947 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
3948 SQL_BINDIR=$MYSQL_BINDIR
3950 cat >> confdefs.h <<\EOF
3951 #define HAVE_MYSQL 1
3954 cat >> confdefs.h <<\EOF
3955 #define HAVE_EMBEDDED_MYSQL 1
3958 echo "$ac_t""yes" 1>&6
3965 echo "$ac_t""no" 1>&6
3970 echo "$ac_t""no" 1>&6
3983 # ------------------------------------------------
3984 # Bacula check for various SQL database engines
3985 # ------------------------------------------------
3988 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3989 echo "configure:3990: checking for SQLite support" >&5
3990 # Check whether --with-sqlite or --without-sqlite was given.
3991 if test "${with_sqlite+set}" = set; then
3992 withval="$with_sqlite"
3994 if test "$withval" != "no"; then
3995 if test "$withval" = "yes"; then
3996 if test -f /usr/local/include/sqlite.h; then
3997 SQLITE_INCDIR=/usr/local/include
3998 SQLITE_LIBDIR=/usr/local/lib
3999 SQLITE_BINDIR=/usr/local/bin
4000 elif test -f /usr/include/sqlite.h; then
4001 SQLITE_INCDIR=/usr/include
4002 SQLITE_LIBDIR=/usr/lib
4003 SQLITE_BINDIR=/usr/bin
4005 echo "$ac_t""no" 1>&6
4006 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
4009 if test -f $withval/sqlite.h; then
4010 SQLITE_INCDIR=$withval
4011 SQLITE_LIBDIR=$withval
4012 SQLITE_BINDIR=$withval
4014 echo "$ac_t""no" 1>&6
4015 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
4018 SQL_INCLUDE=-I$SQLITE_INCDIR
4019 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
4020 SQL_BINDIR=$SQLITE_BINDIR
4022 cat >> confdefs.h <<\EOF
4023 #define HAVE_SQLITE 1
4026 echo "$ac_t""yes" 1>&6
4033 echo "$ac_t""no" 1>&6
4038 echo "$ac_t""no" 1>&6
4051 cat >> confdefs.h <<\EOF
4052 #define PROTOTYPES 1
4056 if test -z "$CFLAGS"; then
4057 if test -z "$CCOPTS"; then
4064 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4065 echo "configure:4066: checking for mingw32 environment" >&5
4066 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4077 if { (eval echo configure:4078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4090 echo "$ac_t""$ac_cv_mingw32" 1>&6
4092 test "$ac_cv_mingw32" = yes && MINGW32=yes
4095 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4096 echo "configure:4097: checking for executable suffix" >&5
4097 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4104 echo 'int main () { return 0; }' > conftest.$ac_ext
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4107 for file in conftest.*; do
4109 *.c | *.o | *.obj) ;;
4110 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4114 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4117 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4122 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4123 echo "$ac_t""${ac_cv_exeext}" 1>&6
4127 largefile_support="no"
4128 echo $ac_n "checking build system type""... $ac_c" 1>&6
4129 echo "configure:4130: checking build system type" >&5
4132 case "$build_alias" in
4135 NONE) build_alias=$host_alias ;;
4136 *) build_alias=$nonopt ;;
4140 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4141 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4142 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4143 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4144 echo "$ac_t""$build" 1>&6
4146 if test $host != $build; then
4147 ac_tool_prefix=${host_alias}-
4153 # Check whether --enable-largefile or --disable-largefile was given.
4154 if test "${enable_largefile+set}" = set; then
4155 enableval="$enable_largefile"
4159 if test "$enable_largefile" != no; then
4160 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4163 echo "configure:4164: checking for $ac_word" >&5
4164 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4165 echo $ac_n "(cached) $ac_c" 1>&6
4167 if test -n "$GETCONF"; then
4168 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4172 for ac_dir in $ac_dummy; do
4173 test -z "$ac_dir" && ac_dir=.
4174 if test -f $ac_dir/$ac_word; then
4175 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4180 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4183 GETCONF="$ac_cv_prog_GETCONF"
4184 if test -n "$GETCONF"; then
4185 echo "$ac_t""$GETCONF" 1>&6
4187 echo "$ac_t""no" 1>&6
4192 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4193 echo "configure:4194: checking for CFLAGS value to request large file support" >&5
4194 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4198 ac_cv_sys_largefile_CFLAGS=no
4200 # IRIX 6.2 and later require cc -n32.
4201 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4202 if test "$GCC" != yes; then
4203 ac_cv_sys_largefile_CFLAGS=-n32
4206 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4215 if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 ac_cv_sys_largefile_CFLAGS=no
4229 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4230 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4231 echo "configure:4232: checking for LDFLAGS value to request large file support" >&5
4232 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4236 ac_cv_sys_largefile_LDFLAGS=no
4241 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4242 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4243 echo "configure:4244: checking for LIBS value to request large file support" >&5
4244 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4247 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4248 ac_cv_sys_largefile_LIBS=no
4253 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4255 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4258 -D_FILE_OFFSET_BITS=*) ;;
4259 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4260 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4266 '') CPPFLAGS="$ac_flag" ;;
4267 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4275 '') CFLAGS="$ac_flag" ;;
4276 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4281 case "$ac_cv_sys_largefile_LDFLAGS" in
4285 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4286 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4289 case "$ac_cv_sys_largefile_LIBS" in
4293 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4294 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4297 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4298 echo "configure:4299: checking for _FILE_OFFSET_BITS" >&5
4299 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 ac_cv_sys_file_offset_bits=no
4304 # HP-UX 10.20 and later
4305 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4306 ac_cv_sys_file_offset_bits=64 ;;
4308 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4310 -D_FILE_OFFSET_BITS)
4311 ac_cv_sys_file_offset_bits=1 ;;
4312 -D_FILE_OFFSET_BITS=*)
4313 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4319 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4320 if test "$ac_cv_sys_file_offset_bits" != no; then
4321 cat >> confdefs.h <<EOF
4322 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4326 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4327 echo "configure:4328: checking for _LARGEFILE_SOURCE" >&5
4328 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 ac_cv_sys_largefile_source=no
4333 # HP-UX 10.20 and later
4334 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4335 ac_cv_sys_largefile_source=1 ;;
4337 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4339 -D_LARGEFILE_SOURCE)
4340 ac_cv_sys_largefile_source=1 ;;
4341 -D_LARGEFILE_SOURCE=*)
4342 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4348 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4349 if test "$ac_cv_sys_largefile_source" != no; then
4350 cat >> confdefs.h <<EOF
4351 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4355 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4356 echo "configure:4357: checking for _LARGE_FILES" >&5
4357 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 ac_cv_sys_large_files=no
4363 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4364 ac_cv_sys_large_files=1 ;;
4366 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4369 ac_cv_sys_large_files=1 ;;
4371 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4377 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4378 if test "$ac_cv_sys_large_files" != no; then
4379 cat >> confdefs.h <<EOF
4380 #define _LARGE_FILES $ac_cv_sys_large_files
4388 # If we find X, set shell vars x_includes and x_libraries to the
4389 # paths, otherwise set no_x=yes.
4390 # Uses ac_ vars as temps to allow command line to override cache and checks.
4391 # --without-x overrides everything else, but does not touch the cache.
4392 echo $ac_n "checking for X""... $ac_c" 1>&6
4393 echo "configure:4394: checking for X" >&5
4395 # Check whether --with-x or --without-x was given.
4396 if test "${with_x+set}" = set; then
4401 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4402 if test "x$with_x" = xno; then
4403 # The user explicitly disabled X.
4406 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4407 # Both variables are already set.
4410 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 # One or both of the vars are not set, and there is no cached value.
4414 ac_x_includes=NO ac_x_libraries=NO
4416 if mkdir conftestdir; then
4418 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4419 cat > Imakefile <<'EOF'
4421 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4423 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4424 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4425 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4426 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4427 for ac_extension in a so sl; do
4428 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4429 test -f $ac_im_libdir/libX11.$ac_extension; then
4430 ac_im_usrlibdir=$ac_im_libdir; break
4433 # Screen out bogus values from the imake configuration. They are
4434 # bogus both because they are the default anyway, and because
4435 # using them would break gcc on systems where it needs fixed includes.
4436 case "$ac_im_incroot" in
4438 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4440 case "$ac_im_usrlibdir" in
4442 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4449 if test "$ac_x_includes" = NO; then
4450 # Guess where to find include files, by looking for this one X11 .h file.
4451 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4453 # First, try using that file with no special directory specified.
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 #include <$x_direct_test_include>
4459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4460 { (eval echo configure:4461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4462 if test -z "$ac_err"; then
4464 # We can compile using X headers with no special include directory.
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 # Look for the header file in a standard set of common directories.
4472 # Check X11 before X11Rn because it is often a symlink to the current release.
4475 /usr/X11R6/include \
4476 /usr/X11R5/include \
4477 /usr/X11R4/include \
4480 /usr/include/X11R6 \
4481 /usr/include/X11R5 \
4482 /usr/include/X11R4 \
4484 /usr/local/X11/include \
4485 /usr/local/X11R6/include \
4486 /usr/local/X11R5/include \
4487 /usr/local/X11R4/include \
4489 /usr/local/include/X11 \
4490 /usr/local/include/X11R6 \
4491 /usr/local/include/X11R5 \
4492 /usr/local/include/X11R4 \
4496 /usr/XFree86/include/X11 \
4499 /usr/local/include \
4500 /usr/unsupported/include \
4501 /usr/athena/include \
4502 /usr/local/x11r5/include \
4503 /usr/lpp/Xamples/include \
4505 /usr/openwin/include \
4506 /usr/openwin/share/include \
4509 if test -r "$ac_dir/$x_direct_test_include"; then
4510 ac_x_includes=$ac_dir
4516 fi # $ac_x_includes = NO
4518 if test "$ac_x_libraries" = NO; then
4519 # Check for the libraries.
4521 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4522 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4524 # See if we find them without any special options.
4525 # Don't add to $LIBS permanently.
4526 ac_save_LIBS="$LIBS"
4527 LIBS="-l$x_direct_test_library $LIBS"
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4533 ${x_direct_test_function}()
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4538 LIBS="$ac_save_LIBS"
4539 # We can link X programs with no special library path.
4542 echo "configure: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4545 LIBS="$ac_save_LIBS"
4546 # First see if replacing the include by lib works.
4547 # Check X11 before X11Rn because it is often a symlink to the current release.
4548 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4559 /usr/local/X11/lib \
4560 /usr/local/X11R6/lib \
4561 /usr/local/X11R5/lib \
4562 /usr/local/X11R4/lib \
4564 /usr/local/lib/X11 \
4565 /usr/local/lib/X11R6 \
4566 /usr/local/lib/X11R5 \
4567 /usr/local/lib/X11R4 \
4571 /usr/XFree86/lib/X11 \
4575 /usr/unsupported/lib \
4577 /usr/local/x11r5/lib \
4578 /usr/lpp/Xamples/lib \
4582 /usr/openwin/share/lib \
4585 for ac_extension in a so sl; do
4586 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4587 ac_x_libraries=$ac_dir
4594 fi # $ac_x_libraries = NO
4596 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4597 # Didn't find X anywhere. Cache the known absence of X.
4598 ac_cv_have_x="have_x=no"
4600 # Record where we found X for the cache.
4601 ac_cv_have_x="have_x=yes \
4602 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4606 eval "$ac_cv_have_x"
4609 if test "$have_x" != yes; then
4610 echo "$ac_t""$have_x" 1>&6
4613 # If each of the values was on the command line, it overrides each guess.
4614 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4615 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4616 # Update the cache value to reflect the command line values.
4617 ac_cv_have_x="have_x=yes \
4618 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4619 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4622 if test "$no_x" = yes; then
4623 # Not all programs may use this symbol, but it does not hurt to define it.
4624 cat >> confdefs.h <<\EOF
4625 #define X_DISPLAY_MISSING 1
4628 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4630 if test -n "$x_includes"; then
4631 X_CFLAGS="$X_CFLAGS -I$x_includes"
4634 # It would also be nice to do this for all -L options, not just this one.
4635 if test -n "$x_libraries"; then
4636 X_LIBS="$X_LIBS -L$x_libraries"
4637 # For Solaris; some versions of Sun CC require a space after -R and
4638 # others require no space. Words are not sufficient . . . .
4639 case "`(uname -sr) 2>/dev/null`" in
4641 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4642 echo "configure:4643: checking whether -R must be followed by a space" >&5
4643 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4652 if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4662 if test $ac_R_nospace = yes; then
4663 echo "$ac_t""no" 1>&6
4664 X_LIBS="$X_LIBS -R$x_libraries"
4666 LIBS="$ac_xsave_LIBS -R $x_libraries"
4667 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4685 if test $ac_R_space = yes; then
4686 echo "$ac_t""yes" 1>&6
4687 X_LIBS="$X_LIBS -R $x_libraries"
4689 echo "$ac_t""neither works" 1>&6
4692 LIBS="$ac_xsave_LIBS"
4696 # Check for system-dependent libraries X programs must link with.
4697 # Do this before checking for the system-independent R6 libraries
4698 # (-lICE), since we may need -lsocket or whatever for X linking.
4700 if test "$ISC" = yes; then
4701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4703 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4704 # libraries were built with DECnet support. And karl@cs.umb.edu says
4705 # the Alpha needs dnet_stub (dnet does not exist).
4706 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4707 echo "configure:4708: checking for dnet_ntoa in -ldnet" >&5
4708 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 ac_save_LIBS="$LIBS"
4714 cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4717 /* Override any gcc2 internal prototype to avoid an error. */
4718 /* We use char because int might match the return type of a gcc2
4719 builtin and then its argument prototype would still apply. */
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 eval "ac_cv_lib_$ac_lib_var=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4733 eval "ac_cv_lib_$ac_lib_var=no"
4736 LIBS="$ac_save_LIBS"
4739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4743 echo "$ac_t""no" 1>&6
4746 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4747 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4748 echo "configure:4749: checking for dnet_ntoa in -ldnet_stub" >&5
4749 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 ac_save_LIBS="$LIBS"
4754 LIBS="-ldnet_stub $LIBS"
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* Override any gcc2 internal prototype to avoid an error. */
4759 /* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4767 if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4769 eval "ac_cv_lib_$ac_lib_var=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 eval "ac_cv_lib_$ac_lib_var=no"
4777 LIBS="$ac_save_LIBS"
4780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4781 echo "$ac_t""yes" 1>&6
4782 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4784 echo "$ac_t""no" 1>&6
4789 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4790 # to get the SysV transport functions.
4791 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4793 # The nsl library prevents programs from opening the X display
4794 # on Irix 5.2, according to dickey@clark.net.
4795 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4796 echo "configure:4797: checking for gethostbyname" >&5
4797 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 cat > conftest.$ac_ext <<EOF
4801 #line 4802 "configure"
4802 #include "confdefs.h"
4803 /* System header to define __stub macros and hopefully few prototypes,
4804 which can conflict with char gethostbyname(); below. */
4806 /* Override any gcc2 internal prototype to avoid an error. */
4807 /* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */
4809 char gethostbyname();
4813 /* The GNU C library defines this for functions which it implements
4814 to always fail with ENOSYS. Some functions are actually named
4815 something starting with __ and the normal name is an alias. */
4816 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4826 eval "ac_cv_func_gethostbyname=yes"
4828 echo "configure: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4831 eval "ac_cv_func_gethostbyname=no"
4836 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4837 echo "$ac_t""yes" 1>&6
4840 echo "$ac_t""no" 1>&6
4843 if test $ac_cv_func_gethostbyname = no; then
4844 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4845 echo "configure:4846: checking for gethostbyname in -lnsl" >&5
4846 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4850 ac_save_LIBS="$LIBS"
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4855 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4858 char gethostbyname();
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4866 eval "ac_cv_lib_$ac_lib_var=yes"
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4871 eval "ac_cv_lib_$ac_lib_var=no"
4874 LIBS="$ac_save_LIBS"
4877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4881 echo "$ac_t""no" 1>&6
4886 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4887 # socket/setsockopt and other routines are undefined under SCO ODT
4888 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4889 # on later versions), says simon@lia.di.epfl.ch: it contains
4890 # gethostby* variants that don't use the nameserver (or something).
4891 # -lsocket must be given before -lnsl if both are needed.
4892 # We assume that if connect needs -lnsl, so does gethostbyname.
4893 echo $ac_n "checking for connect""... $ac_c" 1>&6
4894 echo "configure:4895: checking for connect" >&5
4895 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4901 /* System header to define __stub macros and hopefully few prototypes,
4902 which can conflict with char connect(); below. */
4904 /* Override any gcc2 internal prototype to avoid an error. */
4905 /* We use char because int might match the return type of a gcc2
4906 builtin and then its argument prototype would still apply. */
4911 /* The GNU C library defines this for functions which it implements
4912 to always fail with ENOSYS. Some functions are actually named
4913 something starting with __ and the normal name is an alias. */
4914 #if defined (__stub_connect) || defined (__stub___connect)
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924 eval "ac_cv_func_connect=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_func_connect=no"
4934 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4935 echo "$ac_t""yes" 1>&6
4938 echo "$ac_t""no" 1>&6
4941 if test $ac_cv_func_connect = no; then
4942 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4943 echo "configure:4944: checking for connect in -lsocket" >&5
4944 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 ac_save_LIBS="$LIBS"
4949 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 /* Override any gcc2 internal prototype to avoid an error. */
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4964 eval "ac_cv_lib_$ac_lib_var=yes"
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 eval "ac_cv_lib_$ac_lib_var=no"
4972 LIBS="$ac_save_LIBS"
4975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4979 echo "$ac_t""no" 1>&6
4984 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4985 echo $ac_n "checking for remove""... $ac_c" 1>&6
4986 echo "configure:4987: checking for remove" >&5
4987 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4993 /* System header to define __stub macros and hopefully few prototypes,
4994 which can conflict with char remove(); below. */
4996 /* Override any gcc2 internal prototype to avoid an error. */
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
5003 /* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
5006 #if defined (__stub_remove) || defined (__stub___remove)
5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5016 eval "ac_cv_func_remove=yes"
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 eval "ac_cv_func_remove=no"
5026 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5027 echo "$ac_t""yes" 1>&6
5030 echo "$ac_t""no" 1>&6
5033 if test $ac_cv_func_remove = no; then
5034 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5035 echo "configure:5036: checking for remove in -lposix" >&5
5036 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 ac_save_LIBS="$LIBS"
5041 LIBS="-lposix $LIBS"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056 eval "ac_cv_lib_$ac_lib_var=yes"
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5061 eval "ac_cv_lib_$ac_lib_var=no"
5064 LIBS="$ac_save_LIBS"
5067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5068 echo "$ac_t""yes" 1>&6
5069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5071 echo "$ac_t""no" 1>&6
5076 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5077 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5078 echo "configure:5079: checking for shmat" >&5
5079 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5082 cat > conftest.$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5085 /* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char shmat(); below. */
5088 /* Override any gcc2 internal prototype to avoid an error. */
5089 /* We use char because int might match the return type of a gcc2
5090 builtin and then its argument prototype would still apply. */
5095 /* The GNU C library defines this for functions which it implements
5096 to always fail with ENOSYS. Some functions are actually named
5097 something starting with __ and the normal name is an alias. */
5098 #if defined (__stub_shmat) || defined (__stub___shmat)
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 eval "ac_cv_func_shmat=yes"
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 eval "ac_cv_func_shmat=no"
5118 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5119 echo "$ac_t""yes" 1>&6
5122 echo "$ac_t""no" 1>&6
5125 if test $ac_cv_func_shmat = no; then
5126 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5127 echo "configure:5128: checking for shmat in -lipc" >&5
5128 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 ac_save_LIBS="$LIBS"
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 /* Override any gcc2 internal prototype to avoid an error. */
5138 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 eval "ac_cv_lib_$ac_lib_var=yes"
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 eval "ac_cv_lib_$ac_lib_var=no"
5156 LIBS="$ac_save_LIBS"
5159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5160 echo "$ac_t""yes" 1>&6
5161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5163 echo "$ac_t""no" 1>&6
5169 # Check for libraries that X11R6 Xt/Xaw programs need.
5170 ac_save_LDFLAGS="$LDFLAGS"
5171 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5172 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5173 # check for ICE first), but we must link in the order -lSM -lICE or
5174 # we get undefined symbols. So assume we have SM if we have ICE.
5175 # These have to be linked with before -lX11, unlike the other
5176 # libraries we check for below, so use a different variable.
5177 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5178 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5179 echo "configure:5180: checking for IceConnectionNumber in -lICE" >&5
5180 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 ac_save_LIBS="$LIBS"
5185 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5189 /* Override any gcc2 internal prototype to avoid an error. */
5190 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */
5192 char IceConnectionNumber();
5195 IceConnectionNumber()
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5200 eval "ac_cv_lib_$ac_lib_var=yes"
5202 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5205 eval "ac_cv_lib_$ac_lib_var=no"
5208 LIBS="$ac_save_LIBS"
5211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5212 echo "$ac_t""yes" 1>&6
5213 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5215 echo "$ac_t""no" 1>&6
5218 LDFLAGS="$ac_save_LDFLAGS"
5241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5243 echo "configure:5244: checking for $ac_hdr" >&5
5244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5253 { (eval echo configure:5254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5255 if test -z "$ac_err"; then
5257 eval "ac_cv_header_$ac_safe=yes"
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 eval "ac_cv_header_$ac_safe=no"
5267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5270 cat >> confdefs.h <<EOF
5271 #define $ac_tr_hdr 1
5275 echo "$ac_t""no" 1>&6
5279 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5280 echo "configure:5281: checking for ANSI C header files" >&5
5281 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5293 { (eval echo configure:5294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5295 if test -z "$ac_err"; then
5297 ac_cv_header_stdc=yes
5300 echo "configure: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5303 ac_cv_header_stdc=no
5307 if test $ac_cv_header_stdc = yes; then
5308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315 egrep "memchr" >/dev/null 2>&1; then
5319 ac_cv_header_stdc=no
5325 if test $ac_cv_header_stdc = yes; then
5326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5327 cat > conftest.$ac_ext <<EOF
5328 #line 5329 "configure"
5329 #include "confdefs.h"
5332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5333 egrep "free" >/dev/null 2>&1; then
5337 ac_cv_header_stdc=no
5343 if test $ac_cv_header_stdc = yes; then
5344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5345 if test "$cross_compiling" = yes; then
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5352 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5353 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5355 int main () { int i; for (i = 0; i < 256; i++)
5356 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 ac_cv_header_stdc=no
5375 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5376 if test $ac_cv_header_stdc = yes; then
5377 cat >> confdefs.h <<\EOF
5378 #define STDC_HEADERS 1
5383 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5384 echo "configure:5385: checking whether sys/types.h defines makedev" >&5
5385 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 #include <sys/types.h>
5393 return makedev(0, 0);
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5398 ac_cv_header_sys_types_h_makedev=yes
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5403 ac_cv_header_sys_types_h_makedev=no
5409 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5411 if test $ac_cv_header_sys_types_h_makedev = no; then
5412 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5413 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5414 echo "configure:5415: checking for sys/mkdev.h" >&5
5415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5416 echo $ac_n "(cached) $ac_c" 1>&6
5418 cat > conftest.$ac_ext <<EOF
5419 #line 5420 "configure"
5420 #include "confdefs.h"
5421 #include <sys/mkdev.h>
5423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5424 { (eval echo configure:5425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5426 if test -z "$ac_err"; then
5428 eval "ac_cv_header_$ac_safe=yes"
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5434 eval "ac_cv_header_$ac_safe=no"
5438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5439 echo "$ac_t""yes" 1>&6
5440 cat >> confdefs.h <<\EOF
5441 #define MAJOR_IN_MKDEV 1
5445 echo "$ac_t""no" 1>&6
5449 if test $ac_cv_header_sys_mkdev_h = no; then
5450 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5451 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5452 echo "configure:5453: checking for sys/sysmacros.h" >&5
5453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5459 #include <sys/sysmacros.h>
5461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5462 { (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5464 if test -z "$ac_err"; then
5466 eval "ac_cv_header_$ac_safe=yes"
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5472 eval "ac_cv_header_$ac_safe=no"
5476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5477 echo "$ac_t""yes" 1>&6
5478 cat >> confdefs.h <<\EOF
5479 #define MAJOR_IN_SYSMACROS 1
5483 echo "$ac_t""no" 1>&6
5490 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5493 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5494 echo "configure:5495: checking for $ac_hdr that defines DIR" >&5
5495 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5501 #include <sys/types.h>
5507 if { (eval echo configure:5508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5509 eval "ac_cv_header_dirent_$ac_safe=yes"
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5514 eval "ac_cv_header_dirent_$ac_safe=no"
5518 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5521 cat >> confdefs.h <<EOF
5522 #define $ac_tr_hdr 1
5524 ac_header_dirent=$ac_hdr; break
5526 echo "$ac_t""no" 1>&6
5529 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5530 if test $ac_header_dirent = dirent.h; then
5531 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5532 echo "configure:5533: checking for opendir in -ldir" >&5
5533 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 ac_save_LIBS="$LIBS"
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 /* Override any gcc2 internal prototype to avoid an error. */
5543 /* We use char because int might match the return type of a gcc2
5544 builtin and then its argument prototype would still apply. */
5551 if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5553 eval "ac_cv_lib_$ac_lib_var=yes"
5555 echo "configure: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5558 eval "ac_cv_lib_$ac_lib_var=no"
5561 LIBS="$ac_save_LIBS"
5564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5565 echo "$ac_t""yes" 1>&6
5568 echo "$ac_t""no" 1>&6
5572 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5573 echo "configure:5574: checking for opendir in -lx" >&5
5574 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5576 echo $ac_n "(cached) $ac_c" 1>&6
5578 ac_save_LIBS="$LIBS"
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 /* Override any gcc2 internal prototype to avoid an error. */
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594 eval "ac_cv_lib_$ac_lib_var=yes"
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5599 eval "ac_cv_lib_$ac_lib_var=no"
5602 LIBS="$ac_save_LIBS"
5605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5606 echo "$ac_t""yes" 1>&6
5609 echo "$ac_t""no" 1>&6
5614 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5615 echo "configure:5616: checking whether stat file-mode macros are broken" >&5
5616 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5622 #include <sys/types.h>
5623 #include <sys/stat.h>
5625 #if defined(S_ISBLK) && defined(S_IFDIR)
5626 # if S_ISBLK (S_IFDIR)
5631 #if defined(S_ISBLK) && defined(S_IFCHR)
5632 # if S_ISBLK (S_IFCHR)
5637 #if defined(S_ISLNK) && defined(S_IFREG)
5638 # if S_ISLNK (S_IFREG)
5643 #if defined(S_ISSOCK) && defined(S_IFREG)
5644 # if S_ISSOCK (S_IFREG)
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 egrep "You lose" >/dev/null 2>&1; then
5653 ac_cv_header_stat_broken=yes
5656 ac_cv_header_stat_broken=no
5662 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5663 if test $ac_cv_header_stat_broken = yes; then
5664 cat >> confdefs.h <<\EOF
5665 #define STAT_MACROS_BROKEN 1
5670 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5671 echo "configure:5672: checking for sys/wait.h that is POSIX.1 compatible" >&5
5672 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 #include <sys/types.h>
5679 #include <sys/wait.h>
5681 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5684 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5689 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5692 if { (eval echo configure:5693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5694 ac_cv_header_sys_wait_h=yes
5696 echo "configure: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5699 ac_cv_header_sys_wait_h=no
5704 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5705 if test $ac_cv_header_sys_wait_h = yes; then
5706 cat >> confdefs.h <<\EOF
5707 #define HAVE_SYS_WAIT_H 1
5712 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5713 echo "configure:5714: checking whether time.h and sys/time.h may both be included" >&5
5714 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5717 cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5720 #include <sys/types.h>
5721 #include <sys/time.h>
5727 if { (eval echo configure:5728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5729 ac_cv_header_time=yes
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5734 ac_cv_header_time=no
5739 echo "$ac_t""$ac_cv_header_time" 1>&6
5740 if test $ac_cv_header_time = yes; then
5741 cat >> confdefs.h <<\EOF
5742 #define TIME_WITH_SYS_TIME 1
5747 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5748 echo "configure:5749: checking for st_blksize in struct stat" >&5
5749 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5750 echo $ac_n "(cached) $ac_c" 1>&6
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5755 #include <sys/types.h>
5756 #include <sys/stat.h>
5758 struct stat s; s.st_blksize;
5761 if { (eval echo configure:5762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5763 ac_cv_struct_st_blksize=yes
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 ac_cv_struct_st_blksize=no
5773 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5774 if test $ac_cv_struct_st_blksize = yes; then
5775 cat >> confdefs.h <<\EOF
5776 #define HAVE_ST_BLKSIZE 1
5781 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5782 echo "configure:5783: checking for st_blocks in struct stat" >&5
5783 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 #include <sys/types.h>
5790 #include <sys/stat.h>
5792 struct stat s; s.st_blocks;
5795 if { (eval echo configure:5796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5797 ac_cv_struct_st_blocks=yes
5799 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5802 ac_cv_struct_st_blocks=no
5807 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5808 if test $ac_cv_struct_st_blocks = yes; then
5809 cat >> confdefs.h <<\EOF
5810 #define HAVE_ST_BLOCKS 1
5814 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5817 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5818 echo "configure:5819: checking whether struct tm is in sys/time.h or time.h" >&5
5819 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 #include <sys/types.h>
5828 struct tm *tp; tp->tm_sec;
5831 if { (eval echo configure:5832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5833 ac_cv_struct_tm=time.h
5835 echo "configure: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5838 ac_cv_struct_tm=sys/time.h
5843 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5844 if test $ac_cv_struct_tm = sys/time.h; then
5845 cat >> confdefs.h <<\EOF
5846 #define TM_IN_SYS_TIME 1
5851 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5852 echo "configure:5853: checking for tm_zone in struct tm" >&5
5853 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5859 #include <sys/types.h>
5860 #include <$ac_cv_struct_tm>
5862 struct tm tm; tm.tm_zone;
5865 if { (eval echo configure:5866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5867 ac_cv_struct_tm_zone=yes
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 ac_cv_struct_tm_zone=no
5877 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5878 if test "$ac_cv_struct_tm_zone" = yes; then
5879 cat >> confdefs.h <<\EOF
5880 #define HAVE_TM_ZONE 1
5884 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5885 echo "configure:5886: checking for tzname" >&5
5886 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5889 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5893 #ifndef tzname /* For SGI. */
5894 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5900 if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5902 ac_cv_var_tzname=yes
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5912 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5913 if test $ac_cv_var_tzname = yes; then
5914 cat >> confdefs.h <<\EOF
5915 #define HAVE_TZNAME 1
5922 # It seems that that many machines where <utime.h> seems to be
5923 # broken just require something like -D_XXX_SOURCE, where XXX might
5924 # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine.
5926 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5927 echo "configure:5928: checking for utime.h" >&5
5928 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5929 echo $ac_n "(cached) $ac_c" 1>&6
5931 cat > conftest.$ac_ext <<EOF
5932 #line 5933 "configure"
5933 #include "confdefs.h"
5935 #include <sys/types.h>
5941 if { (eval echo configure:5942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5943 tar_cv_header_utime_h=yes
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5948 tar_cv_header_utime_h=no
5953 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5954 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5955 #define HAVE_UTIME_H 1
5959 echo $ac_n "checking for working const""... $ac_c" 1>&6
5960 echo "configure:5961: checking for working const" >&5
5961 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5962 echo $ac_n "(cached) $ac_c" 1>&6
5964 cat > conftest.$ac_ext <<EOF
5965 #line 5966 "configure"
5966 #include "confdefs.h"
5970 /* Ultrix mips cc rejects this. */
5971 typedef int charset[2]; const charset x;
5972 /* SunOS 4.1.1 cc rejects this. */
5973 char const *const *ccp;
5975 /* NEC SVR4.0.2 mips cc rejects this. */
5976 struct point {int x, y;};
5977 static struct point const zero = {0,0};
5978 /* AIX XL C 1.02.0.0 rejects this.
5979 It does not let you subtract one const X* pointer from another in an arm
5980 of an if-expression whose if-part is not a constant expression */
5981 const char *g = "string";
5982 ccp = &g + (g ? g-g : 0);
5983 /* HPUX 7.0 cc rejects these. */
5986 ccp = (char const *const *) p;
5987 { /* SCO 3.2v4 cc rejects this. */
5989 char const *s = 0 ? (char *) 0 : (char const *) 0;
5993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5995 const int *foo = &x[0];
5998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5999 typedef const int *iptr;
6003 { /* AIX XL C 1.02.0.0 rejects this saying
6004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6005 struct s { int j; const int *ap[3]; };
6006 struct s *b; b->j = 5;
6008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6014 if { (eval echo configure:6015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6026 echo "$ac_t""$ac_cv_c_const" 1>&6
6027 if test $ac_cv_c_const = no; then
6028 cat >> confdefs.h <<\EOF
6036 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6037 echo "configure:6038: checking how to get filesystem type" >&5
6039 # The order of these tests is important.
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 #include <sys/statvfs.h>
6044 #include <sys/fstyp.h>
6046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6047 { (eval echo configure:6048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6049 if test -z "$ac_err"; then
6051 cat >> confdefs.h <<\EOF
6052 #define FSTYPE_STATVFS 1
6057 echo "configure: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6061 if test $fstype = no; then
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 #include <sys/statfs.h>
6066 #include <sys/fstyp.h>
6068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6069 { (eval echo configure:6070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6071 if test -z "$ac_err"; then
6073 cat >> confdefs.h <<\EOF
6074 #define FSTYPE_USG_STATFS 1
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6084 if test $fstype = no; then
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 #include <sys/statfs.h>
6089 #include <sys/vmount.h>
6091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6092 { (eval echo configure:6093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6094 if test -z "$ac_err"; then
6096 cat >> confdefs.h <<\EOF
6097 #define FSTYPE_AIX_STATFS 1
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6107 if test $fstype = no; then
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6114 { (eval echo configure:6115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6116 if test -z "$ac_err"; then
6118 cat >> confdefs.h <<\EOF
6119 #define FSTYPE_MNTENT 1
6124 echo "configure: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6129 if test $fstype = no; then
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6133 #include <sys/mount.h>
6135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6136 egrep "f_type;" >/dev/null 2>&1; then
6138 cat >> confdefs.h <<\EOF
6139 #define FSTYPE_STATFS 1
6146 if test $fstype = no; then
6147 cat > conftest.$ac_ext <<EOF
6148 #line 6149 "configure"
6149 #include "confdefs.h"
6150 #include <sys/mount.h>
6151 #include <sys/fs_types.h>
6153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6154 { (eval echo configure:6155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6156 if test -z "$ac_err"; then
6158 cat >> confdefs.h <<\EOF
6159 #define FSTYPE_GETMNT 1
6164 echo "configure: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6169 echo "$ac_t""$fstype" 1>&6
6171 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6172 echo "configure:6173: checking return type of signal handlers" >&5
6173 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6179 #include <sys/types.h>
6185 extern "C" void (*signal (int, void (*)(int)))(int);
6187 void (*signal ()) ();
6194 if { (eval echo configure:6195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6196 ac_cv_type_signal=void
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6201 ac_cv_type_signal=int
6206 echo "$ac_t""$ac_cv_type_signal" 1>&6
6207 cat >> confdefs.h <<EOF
6208 #define RETSIGTYPE $ac_cv_type_signal
6213 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6214 echo "configure:6215: checking for type of signal functions" >&5
6215 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6226 struct sigaction sa;
6227 sigemptyset(&ss); sigsuspend(&ss);
6228 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6229 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6235 bash_cv_signal_vintage=posix
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6241 cat > conftest.$ac_ext <<EOF
6242 #line 6243 "configure"
6243 #include "confdefs.h"
6247 int mask = sigmask(SIGINT);
6248 sigsetmask(mask); sigblock(mask); sigpause(mask);
6252 if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6254 bash_cv_signal_vintage=4.2bsd
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6265 RETSIGTYPE foo() { }
6268 int mask = sigmask(SIGINT);
6269 sigset(SIGINT, foo); sigrelse(SIGINT);
6270 sighold(SIGINT); sigpause(SIGINT);
6274 if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6276 bash_cv_signal_vintage=svr3
6278 echo "configure: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6281 bash_cv_signal_vintage=v7
6294 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6295 if test "$bash_cv_signal_vintage" = posix; then
6296 cat >> confdefs.h <<\EOF
6297 #define HAVE_POSIX_SIGNALS 1
6300 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6301 cat >> confdefs.h <<\EOF
6302 #define HAVE_BSD_SIGNALS 1
6305 elif test "$bash_cv_signal_vintage" = svr3; then
6306 cat >> confdefs.h <<\EOF
6307 #define HAVE_USG_SIGHOLD 1
6312 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6313 echo "configure:6314: checking for mode_t" >&5
6314 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 #include <sys/types.h>
6326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6327 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6329 ac_cv_type_mode_t=yes
6332 ac_cv_type_mode_t=no
6337 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6338 if test $ac_cv_type_mode_t = no; then
6339 cat >> confdefs.h <<\EOF
6345 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6346 echo "configure:6347: checking for uid_t in sys/types.h" >&5
6347 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 #include <sys/types.h>
6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6356 egrep "uid_t" >/dev/null 2>&1; then
6358 ac_cv_type_uid_t=yes
6367 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6368 if test $ac_cv_type_uid_t = no; then
6369 cat >> confdefs.h <<\EOF
6373 cat >> confdefs.h <<\EOF
6379 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6380 echo "configure:6381: checking for size_t" >&5
6381 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6382 echo $ac_n "(cached) $ac_c" 1>&6
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6387 #include <sys/types.h>
6393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6394 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6396 ac_cv_type_size_t=yes
6399 ac_cv_type_size_t=no
6404 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6405 if test $ac_cv_type_size_t = no; then
6406 cat >> confdefs.h <<\EOF
6407 #define size_t unsigned
6412 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6413 echo "configure:6414: checking for pid_t" >&5
6414 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6417 cat > conftest.$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6420 #include <sys/types.h>
6426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6427 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6429 ac_cv_type_pid_t=yes
6437 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6438 if test $ac_cv_type_pid_t = no; then
6439 cat >> confdefs.h <<\EOF
6445 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6446 echo "configure:6447: checking for off_t" >&5
6447 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6450 cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6453 #include <sys/types.h>
6459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6460 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6462 ac_cv_type_off_t=yes
6470 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6471 if test $ac_cv_type_off_t = no; then
6472 cat >> confdefs.h <<\EOF
6478 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6479 echo "configure:6480: checking for ino_t" >&5
6480 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 #include <sys/types.h>
6492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6495 ac_cv_type_ino_t=yes
6503 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6504 if test $ac_cv_type_ino_t = no; then
6505 cat >> confdefs.h <<\EOF
6506 #define ino_t unsigned long
6511 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6512 echo "configure:6513: checking for dev_t" >&5
6513 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6516 cat > conftest.$ac_ext <<EOF
6517 #line 6518 "configure"
6518 #include "confdefs.h"
6519 #include <sys/types.h>
6525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6526 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6528 ac_cv_type_dev_t=yes
6536 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6537 if test $ac_cv_type_dev_t = no; then
6538 cat >> confdefs.h <<\EOF
6539 #define dev_t unsigned long
6544 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6545 echo "configure:6546: checking for daddr_t" >&5
6546 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6552 #include <sys/types.h>
6558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6559 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6561 ac_cv_type_daddr_t=yes
6564 ac_cv_type_daddr_t=no
6569 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6570 if test $ac_cv_type_daddr_t = no; then
6571 cat >> confdefs.h <<\EOF
6572 #define daddr_t long
6577 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6578 echo "configure:6579: checking for major_t" >&5
6579 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 #include <sys/types.h>
6591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6592 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6594 ac_cv_type_major_t=yes
6597 ac_cv_type_major_t=no
6602 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6603 if test $ac_cv_type_major_t = no; then
6604 cat >> confdefs.h <<\EOF
6610 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6611 echo "configure:6612: checking for minor_t" >&5
6612 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6613 echo $ac_n "(cached) $ac_c" 1>&6
6615 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6618 #include <sys/types.h>
6624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6625 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6627 ac_cv_type_minor_t=yes
6630 ac_cv_type_minor_t=no
6635 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6636 if test $ac_cv_type_minor_t = no; then
6637 cat >> confdefs.h <<\EOF
6643 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6644 echo "configure:6645: checking for ssize_t" >&5
6645 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6648 cat > conftest.$ac_ext <<EOF
6649 #line 6650 "configure"
6650 #include "confdefs.h"
6651 #include <sys/types.h>
6657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6658 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6660 ac_cv_type_ssize_t=yes
6663 ac_cv_type_ssize_t=no
6668 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6669 if test $ac_cv_type_ssize_t = no; then
6670 cat >> confdefs.h <<\EOF
6676 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6677 echo "configure:6678: checking for st_blocks in struct stat" >&5
6678 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6679 echo $ac_n "(cached) $ac_c" 1>&6
6681 cat > conftest.$ac_ext <<EOF
6682 #line 6683 "configure"
6683 #include "confdefs.h"
6684 #include <sys/types.h>
6685 #include <sys/stat.h>
6687 struct stat s; s.st_blocks;
6690 if { (eval echo configure:6691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6692 ac_cv_struct_st_blocks=yes
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6697 ac_cv_struct_st_blocks=no
6702 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6703 if test $ac_cv_struct_st_blocks = yes; then
6704 cat >> confdefs.h <<\EOF
6705 #define HAVE_ST_BLOCKS 1
6709 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6712 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6713 echo "configure:6714: checking for st_rdev in struct stat" >&5
6714 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6717 cat > conftest.$ac_ext <<EOF
6718 #line 6719 "configure"
6719 #include "confdefs.h"
6720 #include <sys/types.h>
6721 #include <sys/stat.h>
6723 struct stat s; s.st_rdev;
6726 if { (eval echo configure:6727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6728 ac_cv_struct_st_rdev=yes
6730 echo "configure: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6733 ac_cv_struct_st_rdev=no
6738 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6739 if test $ac_cv_struct_st_rdev = yes; then
6740 cat >> confdefs.h <<\EOF
6741 #define HAVE_ST_RDEV 1
6746 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6747 echo "configure:6748: checking whether struct tm is in sys/time.h or time.h" >&5
6748 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6754 #include <sys/types.h>
6757 struct tm *tp; tp->tm_sec;
6760 if { (eval echo configure:6761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6762 ac_cv_struct_tm=time.h
6764 echo "configure: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6767 ac_cv_struct_tm=sys/time.h
6772 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6773 if test $ac_cv_struct_tm = sys/time.h; then
6774 cat >> confdefs.h <<\EOF
6775 #define TM_IN_SYS_TIME 1
6780 echo $ac_n "checking for working const""... $ac_c" 1>&6
6781 echo "configure:6782: checking for working const" >&5
6782 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6791 /* Ultrix mips cc rejects this. */
6792 typedef int charset[2]; const charset x;
6793 /* SunOS 4.1.1 cc rejects this. */
6794 char const *const *ccp;
6796 /* NEC SVR4.0.2 mips cc rejects this. */
6797 struct point {int x, y;};
6798 static struct point const zero = {0,0};
6799 /* AIX XL C 1.02.0.0 rejects this.
6800 It does not let you subtract one const X* pointer from another in an arm
6801 of an if-expression whose if-part is not a constant expression */
6802 const char *g = "string";
6803 ccp = &g + (g ? g-g : 0);
6804 /* HPUX 7.0 cc rejects these. */
6807 ccp = (char const *const *) p;
6808 { /* SCO 3.2v4 cc rejects this. */
6810 char const *s = 0 ? (char *) 0 : (char const *) 0;
6814 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6816 const int *foo = &x[0];
6819 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6820 typedef const int *iptr;
6824 { /* AIX XL C 1.02.0.0 rejects this saying
6825 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6826 struct s { int j; const int *ap[3]; };
6827 struct s *b; b->j = 5;
6829 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6835 if { (eval echo configure:6836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6839 echo "configure: failed program was:" >&5
6840 cat conftest.$ac_ext >&5
6847 echo "$ac_t""$ac_cv_c_const" 1>&6
6848 if test $ac_cv_c_const = no; then
6849 cat >> confdefs.h <<\EOF
6857 echo $ac_n "checking size of char""... $ac_c" 1>&6
6858 echo "configure:6859: checking size of char" >&5
6859 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6860 echo $ac_n "(cached) $ac_c" 1>&6
6862 if test "$cross_compiling" = yes; then
6865 cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure"
6867 #include "confdefs.h"
6871 FILE *f=fopen("conftestval", "w");
6873 fprintf(f, "%d\n", sizeof(char));
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6879 ac_cv_sizeof_char=`cat conftestval`
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6890 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6891 cat >> confdefs.h <<EOF
6892 #define SIZEOF_CHAR $ac_cv_sizeof_char
6896 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6897 echo "configure:6898: checking size of short int" >&5
6898 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6901 if test "$cross_compiling" = yes; then
6902 ac_cv_sizeof_short_int=2
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6910 FILE *f=fopen("conftestval", "w");
6912 fprintf(f, "%d\n", sizeof(short int));
6916 if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6918 ac_cv_sizeof_short_int=`cat conftestval`
6920 echo "configure: failed program was:" >&5
6921 cat conftest.$ac_ext >&5
6923 ac_cv_sizeof_short_int=0
6929 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6930 cat >> confdefs.h <<EOF
6931 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6935 echo $ac_n "checking size of int""... $ac_c" 1>&6
6936 echo "configure:6937: checking size of int" >&5
6937 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6940 if test "$cross_compiling" = yes; then
6943 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6949 FILE *f=fopen("conftestval", "w");
6951 fprintf(f, "%d\n", sizeof(int));
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6957 ac_cv_sizeof_int=`cat conftestval`
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6968 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6969 cat >> confdefs.h <<EOF
6970 #define SIZEOF_INT $ac_cv_sizeof_int
6974 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6975 echo "configure:6976: checking size of long int" >&5
6976 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 if test "$cross_compiling" = yes; then
6980 ac_cv_sizeof_long_int=4
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6988 FILE *f=fopen("conftestval", "w");
6990 fprintf(f, "%d\n", sizeof(long int));
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6996 ac_cv_sizeof_long_int=`cat conftestval`
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 ac_cv_sizeof_long_int=0
7007 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
7008 cat >> confdefs.h <<EOF
7009 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7013 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
7014 echo "configure:7015: checking size of long long int" >&5
7015 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
7016 echo $ac_n "(cached) $ac_c" 1>&6
7018 if test "$cross_compiling" = yes; then
7019 ac_cv_sizeof_long_long_int=8
7021 cat > conftest.$ac_ext <<EOF
7022 #line 7023 "configure"
7023 #include "confdefs.h"
7027 FILE *f=fopen("conftestval", "w");
7029 fprintf(f, "%d\n", sizeof(long long int));
7033 if { (eval echo configure:7034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7035 ac_cv_sizeof_long_long_int=`cat conftestval`
7037 echo "configure: failed program was:" >&5
7038 cat conftest.$ac_ext >&5
7040 ac_cv_sizeof_long_long_int=0
7046 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7047 cat >> confdefs.h <<EOF
7048 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7052 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7053 echo "configure:7054: checking size of int *" >&5
7054 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7055 echo $ac_n "(cached) $ac_c" 1>&6
7057 if test "$cross_compiling" = yes; then
7058 ac_cv_sizeof_int_p=4
7060 cat > conftest.$ac_ext <<EOF
7061 #line 7062 "configure"
7062 #include "confdefs.h"
7066 FILE *f=fopen("conftestval", "w");
7068 fprintf(f, "%d\n", sizeof(int *));
7072 if { (eval echo configure:7073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7074 ac_cv_sizeof_int_p=`cat conftestval`
7076 echo "configure: failed program was:" >&5
7077 cat conftest.$ac_ext >&5
7079 ac_cv_sizeof_int_p=0
7085 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7086 cat >> confdefs.h <<EOF
7087 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7092 # Check for sys/types.h types
7093 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7094 echo "configure:7095: checking for u_int type" >&5
7095 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7096 echo $ac_n "(cached) $ac_c" 1>&6
7099 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7102 #include <sys/types.h>
7107 if { (eval echo configure:7108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7109 ac_cv_have_u_int="yes"
7111 echo "configure: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7114 ac_cv_have_u_int="no"
7121 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7122 if test "x$ac_cv_have_u_int" = "xyes" ; then
7123 cat >> confdefs.h <<\EOF
7124 #define HAVE_U_INT 1
7130 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7131 echo "configure:7132: checking for intmax_t type" >&5
7132 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7133 echo $ac_n "(cached) $ac_c" 1>&6
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 #include <sys/types.h>
7144 if { (eval echo configure:7145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7146 ac_cv_have_intmax_t="yes"
7148 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7152 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7160 if { (eval echo configure:7161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7162 ac_cv_have_intmax_t="yes"
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 ac_cv_have_intmax_t="no"
7179 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7180 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7181 cat >> confdefs.h <<\EOF
7182 #define HAVE_INTMAX_T 1
7189 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7190 echo "configure:7191: checking for u_intmax_t type" >&5
7191 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7198 #include <sys/types.h>
7200 u_intmax_t a; a = 1;
7203 if { (eval echo configure:7204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7205 ac_cv_have_u_intmax_t="yes"
7207 echo "configure: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7216 u_intmax_t a; a = 1;
7219 if { (eval echo configure:7220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7221 ac_cv_have_u_intmax_t="yes"
7223 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7226 ac_cv_have_u_intmax_t="no"
7237 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7238 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7239 cat >> confdefs.h <<\EOF
7240 #define HAVE_U_INTMAX_T 1
7247 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7248 echo "configure:7249: checking for intXX_t types" >&5
7249 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7250 echo $ac_n "(cached) $ac_c" 1>&6
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7256 #include <sys/types.h>
7258 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7261 if { (eval echo configure:7262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7263 ac_cv_have_intxx_t="yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7268 ac_cv_have_intxx_t="no"
7275 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7276 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7277 cat >> confdefs.h <<\EOF
7278 #define HAVE_INTXX_T 1
7284 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7285 echo "configure:7286: checking for int64_t type" >&5
7286 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7290 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 #include <sys/types.h>
7298 if { (eval echo configure:7299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7300 ac_cv_have_int64_t="yes"
7302 echo "configure: failed program was:" >&5
7303 cat conftest.$ac_ext >&5
7305 ac_cv_have_int64_t="no"
7312 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7313 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7314 cat >> confdefs.h <<\EOF
7315 #define HAVE_INT64_T 1
7321 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7322 echo "configure:7323: checking for u_intXX_t types" >&5
7323 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7327 cat > conftest.$ac_ext <<EOF
7328 #line 7329 "configure"
7329 #include "confdefs.h"
7330 #include <sys/types.h>
7332 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7335 if { (eval echo configure:7336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7337 ac_cv_have_u_intxx_t="yes"
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 ac_cv_have_u_intxx_t="no"
7349 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7350 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7351 cat >> confdefs.h <<\EOF
7352 #define HAVE_U_INTXX_T 1
7358 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7359 echo "configure:7360: checking for u_int64_t types" >&5
7360 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7361 echo $ac_n "(cached) $ac_c" 1>&6
7364 cat > conftest.$ac_ext <<EOF
7365 #line 7366 "configure"
7366 #include "confdefs.h"
7367 #include <sys/types.h>
7372 if { (eval echo configure:7373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7374 ac_cv_have_u_int64_t="yes"
7376 echo "configure: failed program was:" >&5
7377 cat conftest.$ac_ext >&5
7379 ac_cv_have_u_int64_t="no"
7386 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7387 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7388 cat >> confdefs.h <<\EOF
7389 #define HAVE_U_INT64_T 1
7395 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7396 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7398 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7399 echo "configure:7400: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7400 cat > conftest.$ac_ext <<EOF
7401 #line 7402 "configure"
7402 #include "confdefs.h"
7403 #include <sys/bitypes.h>
7405 int8_t a; int16_t b; int32_t c;
7406 u_int8_t e; u_int16_t f; u_int32_t g;
7407 a = b = c = e = f = g = 1;
7410 if { (eval echo configure:7411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7412 cat >> confdefs.h <<\EOF
7413 #define HAVE_U_INTXX_T 1
7416 cat >> confdefs.h <<\EOF
7417 #define HAVE_INTXX_T 1
7420 cat >> confdefs.h <<\EOF
7421 #define HAVE_SYS_BITYPES_H 1
7424 echo "$ac_t""yes" 1>&6
7426 echo "configure: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7429 echo "$ac_t""no" 1>&6
7435 if test -z "$have_u_intxx_t" ; then
7436 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7437 echo "configure:7438: checking for uintXX_t types" >&5
7438 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7439 echo $ac_n "(cached) $ac_c" 1>&6
7442 cat > conftest.$ac_ext <<EOF
7443 #line 7444 "configure"
7444 #include "confdefs.h"
7445 #include <sys/types.h>
7447 uint8_t a; uint16_t b;
7448 uint32_t c; a = b = c = 1;
7451 if { (eval echo configure:7452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7453 ac_cv_have_uintxx_t="yes"
7455 echo "configure: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7458 ac_cv_have_uintxx_t="no"
7465 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7466 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7467 cat >> confdefs.h <<\EOF
7468 #define HAVE_UINTXX_T 1
7491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7492 echo "configure:7493: checking for $ac_func" >&5
7493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 /* System header to define __stub macros and hopefully few prototypes,
7500 which can conflict with char $ac_func(); below. */
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7509 /* The GNU C library defines this for functions which it implements
7510 to always fail with ENOSYS. Some functions are actually named
7511 something starting with __ and the normal name is an alias. */
7512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7520 if { (eval echo configure:7521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7522 eval "ac_cv_func_$ac_func=yes"
7524 echo "configure: failed program was:" >&5
7525 cat conftest.$ac_ext >&5
7527 eval "ac_cv_func_$ac_func=no"
7532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7533 echo "$ac_t""yes" 1>&6
7534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7535 cat >> confdefs.h <<EOF
7536 #define $ac_tr_func 1
7540 echo "$ac_t""no" 1>&6
7541 echo 'configure: cannot find needed function.'; exit 1
7547 for ac_func in fchdir
7549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7550 echo "configure:7551: checking for $ac_func" >&5
7551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7552 echo $ac_n "(cached) $ac_c" 1>&6
7554 cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7557 /* System header to define __stub macros and hopefully few prototypes,
7558 which can conflict with char $ac_func(); below. */
7560 /* Override any gcc2 internal prototype to avoid an error. */
7561 /* We use char because int might match the return type of a gcc2
7562 builtin and then its argument prototype would still apply. */
7567 /* The GNU C library defines this for functions which it implements
7568 to always fail with ENOSYS. Some functions are actually named
7569 something starting with __ and the normal name is an alias. */
7570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7578 if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7580 eval "ac_cv_func_$ac_func=yes"
7582 echo "configure: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7585 eval "ac_cv_func_$ac_func=no"
7590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7591 echo "$ac_t""yes" 1>&6
7592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7593 cat >> confdefs.h <<EOF
7594 #define $ac_tr_func 1
7596 cat >> confdefs.h <<\EOF
7597 #define HAVE_FCHDIR 1
7601 echo "$ac_t""no" 1>&6
7606 for ac_func in snprintf vsnprintf gethostid getdomainname
7608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_func" >&5
7610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char $ac_func(); below. */
7619 /* Override any gcc2 internal prototype to avoid an error. */
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7626 /* The GNU C library defines this for functions which it implements
7627 to always fail with ENOSYS. Some functions are actually named
7628 something starting with __ and the normal name is an alias. */
7629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7639 eval "ac_cv_func_$ac_func=yes"
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7644 eval "ac_cv_func_$ac_func=no"
7649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7652 cat >> confdefs.h <<EOF
7653 #define $ac_tr_func 1
7657 echo "$ac_t""no" 1>&6
7662 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7665 echo "configure:7666: checking for $ac_func" >&5
7666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7667 echo $ac_n "(cached) $ac_c" 1>&6
7669 cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 /* System header to define __stub macros and hopefully few prototypes,
7673 which can conflict with char $ac_func(); below. */
7675 /* Override any gcc2 internal prototype to avoid an error. */
7676 /* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7682 /* The GNU C library defines this for functions which it implements
7683 to always fail with ENOSYS. Some functions are actually named
7684 something starting with __ and the normal name is an alias. */
7685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7693 if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7695 eval "ac_cv_func_$ac_func=yes"
7697 echo "configure: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7700 eval "ac_cv_func_$ac_func=no"
7705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7706 echo "$ac_t""yes" 1>&6
7707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7708 cat >> confdefs.h <<EOF
7709 #define $ac_tr_func 1
7713 echo "$ac_t""no" 1>&6
7718 # If resolver functions are not in libc check for -lnsl or -lresolv.
7719 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7720 echo "configure:7721: checking for gethostbyname_r" >&5
7721 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 /* System header to define __stub macros and hopefully few prototypes,
7728 which can conflict with char gethostbyname_r(); below. */
7730 /* Override any gcc2 internal prototype to avoid an error. */
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7733 char gethostbyname_r();
7737 /* The GNU C library defines this for functions which it implements
7738 to always fail with ENOSYS. Some functions are actually named
7739 something starting with __ and the normal name is an alias. */
7740 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7748 if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7750 eval "ac_cv_func_gethostbyname_r=yes"
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7755 eval "ac_cv_func_gethostbyname_r=no"
7760 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6
7762 echo "$ac_t""using libc's resolver" 1>&6
7764 echo "$ac_t""no" 1>&6
7765 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7766 echo "configure:7767: checking for gethostbyname_r in -lnsl" >&5
7767 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7771 ac_save_LIBS="$LIBS"
7773 cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 /* Override any gcc2 internal prototype to avoid an error. */
7777 /* We use char because int might match the return type of a gcc2
7778 builtin and then its argument prototype would still apply. */
7779 char gethostbyname_r();
7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7787 eval "ac_cv_lib_$ac_lib_var=yes"
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 eval "ac_cv_lib_$ac_lib_var=no"
7795 LIBS="$ac_save_LIBS"
7798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7799 echo "$ac_t""yes" 1>&6
7800 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7801 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7802 cat >> confdefs.h <<EOF
7803 #define $ac_tr_lib 1
7809 echo "$ac_t""no" 1>&6
7812 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7813 echo "configure:7814: checking for gethostbyname_r in -lresolv" >&5
7814 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7816 echo $ac_n "(cached) $ac_c" 1>&6
7818 ac_save_LIBS="$LIBS"
7819 LIBS="-lresolv $LIBS"
7820 cat > conftest.$ac_ext <<EOF
7821 #line 7822 "configure"
7822 #include "confdefs.h"
7823 /* Override any gcc2 internal prototype to avoid an error. */
7824 /* We use char because int might match the return type of a gcc2
7825 builtin and then its argument prototype would still apply. */
7826 char gethostbyname_r();
7832 if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7834 eval "ac_cv_lib_$ac_lib_var=yes"
7836 echo "configure: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7839 eval "ac_cv_lib_$ac_lib_var=no"
7842 LIBS="$ac_save_LIBS"
7845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7846 echo "$ac_t""yes" 1>&6
7847 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7848 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7849 cat >> confdefs.h <<EOF
7850 #define $ac_tr_lib 1
7853 LIBS="-lresolv $LIBS"
7856 echo "$ac_t""no" 1>&6
7863 # Find where sockets are (especially for Solaris)
7864 echo $ac_n "checking for socket""... $ac_c" 1>&6
7865 echo "configure:7866: checking for socket" >&5
7866 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7869 cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7872 /* System header to define __stub macros and hopefully few prototypes,
7873 which can conflict with char socket(); below. */
7875 /* Override any gcc2 internal prototype to avoid an error. */
7876 /* We use char because int might match the return type of a gcc2
7877 builtin and then its argument prototype would still apply. */
7882 /* The GNU C library defines this for functions which it implements
7883 to always fail with ENOSYS. Some functions are actually named
7884 something starting with __ and the normal name is an alias. */
7885 #if defined (__stub_socket) || defined (__stub___socket)
7893 if { (eval echo configure:7894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7895 eval "ac_cv_func_socket=yes"
7897 echo "configure: failed program was:" >&5
7898 cat conftest.$ac_ext >&5
7900 eval "ac_cv_func_socket=no"
7905 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7906 echo "$ac_t""yes" 1>&6
7907 echo "$ac_t""using libc's socket" 1>&6
7909 echo "$ac_t""no" 1>&6
7910 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7911 echo "configure:7912: checking for socket in -lxnet" >&5
7912 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7914 echo $ac_n "(cached) $ac_c" 1>&6
7916 ac_save_LIBS="$LIBS"
7918 cat > conftest.$ac_ext <<EOF
7919 #line 7920 "configure"
7920 #include "confdefs.h"
7921 /* Override any gcc2 internal prototype to avoid an error. */
7922 /* We use char because int might match the return type of a gcc2
7923 builtin and then its argument prototype would still apply. */
7930 if { (eval echo configure:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7932 eval "ac_cv_lib_$ac_lib_var=yes"
7934 echo "configure: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7937 eval "ac_cv_lib_$ac_lib_var=no"
7940 LIBS="$ac_save_LIBS"
7943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7944 echo "$ac_t""yes" 1>&6
7945 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7946 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7947 cat >> confdefs.h <<EOF
7948 #define $ac_tr_lib 1
7954 echo "$ac_t""no" 1>&6
7957 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7958 echo "configure:7959: checking for socket in -lsocket" >&5
7959 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7963 ac_save_LIBS="$LIBS"
7964 LIBS="-lsocket $LIBS"
7965 cat > conftest.$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7968 /* Override any gcc2 internal prototype to avoid an error. */
7969 /* We use char because int might match the return type of a gcc2
7970 builtin and then its argument prototype would still apply. */
7977 if { (eval echo configure:7978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7979 eval "ac_cv_lib_$ac_lib_var=yes"
7981 echo "configure: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7984 eval "ac_cv_lib_$ac_lib_var=no"
7987 LIBS="$ac_save_LIBS"
7990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7991 echo "$ac_t""yes" 1>&6
7992 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
7993 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7994 cat >> confdefs.h <<EOF
7995 #define $ac_tr_lib 1
7998 LIBS="-lsocket $LIBS"
8001 echo "$ac_t""no" 1>&6
8004 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8005 echo "configure:8006: checking for socket in -linet" >&5
8006 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
8007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8010 ac_save_LIBS="$LIBS"
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8026 eval "ac_cv_lib_$ac_lib_var=yes"
8028 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8031 eval "ac_cv_lib_$ac_lib_var=no"
8034 LIBS="$ac_save_LIBS"
8037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8038 echo "$ac_t""yes" 1>&6
8039 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8041 cat >> confdefs.h <<EOF
8042 #define $ac_tr_lib 1
8048 echo "$ac_t""no" 1>&6
8054 for ac_func in inet_pton
8056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8057 echo "configure:8058: checking for $ac_func" >&5
8058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8059 echo $ac_n "(cached) $ac_c" 1>&6
8061 cat > conftest.$ac_ext <<EOF
8062 #line 8063 "configure"
8063 #include "confdefs.h"
8064 /* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char $ac_func(); below. */
8067 /* Override any gcc2 internal prototype to avoid an error. */
8068 /* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8074 /* The GNU C library defines this for functions which it implements
8075 to always fail with ENOSYS. Some functions are actually named
8076 something starting with __ and the normal name is an alias. */
8077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8085 if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8087 eval "ac_cv_func_$ac_func=yes"
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8092 eval "ac_cv_func_$ac_func=no"
8097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8100 cat >> confdefs.h <<EOF
8101 #define $ac_tr_func 1
8103 cat >> confdefs.h <<\EOF
8104 #define HAVE_INET_PTON 1
8108 echo "$ac_t""no" 1>&6
8113 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8114 echo "configure:8115: checking for strftime" >&5
8115 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char strftime(); below. */
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8131 /* The GNU C library defines this for functions which it implements
8132 to always fail with ENOSYS. Some functions are actually named
8133 something starting with __ and the normal name is an alias. */
8134 #if defined (__stub_strftime) || defined (__stub___strftime)
8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8144 eval "ac_cv_func_strftime=yes"
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8149 eval "ac_cv_func_strftime=no"
8154 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 cat >> confdefs.h <<\EOF
8157 #define HAVE_STRFTIME 1
8161 echo "$ac_t""no" 1>&6
8162 # strftime is in -lintl on SCO UNIX.
8163 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8164 echo "configure:8165: checking for strftime in -lintl" >&5
8165 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8167 echo $ac_n "(cached) $ac_c" 1>&6
8169 ac_save_LIBS="$LIBS"
8171 cat > conftest.$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8174 /* Override any gcc2 internal prototype to avoid an error. */
8175 /* We use char because int might match the return type of a gcc2
8176 builtin and then its argument prototype would still apply. */
8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8185 eval "ac_cv_lib_$ac_lib_var=yes"
8187 echo "configure: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8190 eval "ac_cv_lib_$ac_lib_var=no"
8193 LIBS="$ac_save_LIBS"
8196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8197 echo "$ac_t""yes" 1>&6
8198 cat >> confdefs.h <<\EOF
8199 #define HAVE_STRFTIME 1
8204 echo "$ac_t""no" 1>&6
8209 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8210 echo "configure:8211: checking for vprintf" >&5
8211 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8212 echo $ac_n "(cached) $ac_c" 1>&6
8214 cat > conftest.$ac_ext <<EOF
8215 #line 8216 "configure"
8216 #include "confdefs.h"
8217 /* System header to define __stub macros and hopefully few prototypes,
8218 which can conflict with char vprintf(); below. */
8220 /* Override any gcc2 internal prototype to avoid an error. */
8221 /* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8227 /* The GNU C library defines this for functions which it implements
8228 to always fail with ENOSYS. Some functions are actually named
8229 something starting with __ and the normal name is an alias. */
8230 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8238 if { (eval echo configure:8239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8240 eval "ac_cv_func_vprintf=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8245 eval "ac_cv_func_vprintf=no"
8250 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8251 echo "$ac_t""yes" 1>&6
8252 cat >> confdefs.h <<\EOF
8253 #define HAVE_VPRINTF 1
8257 echo "$ac_t""no" 1>&6
8260 if test "$ac_cv_func_vprintf" != yes; then
8261 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8262 echo "configure:8263: checking for _doprnt" >&5
8263 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8266 cat > conftest.$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269 /* System header to define __stub macros and hopefully few prototypes,
8270 which can conflict with char _doprnt(); below. */
8272 /* Override any gcc2 internal prototype to avoid an error. */
8273 /* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8279 /* The GNU C library defines this for functions which it implements
8280 to always fail with ENOSYS. Some functions are actually named
8281 something starting with __ and the normal name is an alias. */
8282 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8290 if { (eval echo configure:8291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8292 eval "ac_cv_func__doprnt=yes"
8294 echo "configure: failed program was:" >&5
8295 cat conftest.$ac_ext >&5
8297 eval "ac_cv_func__doprnt=no"
8302 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8303 echo "$ac_t""yes" 1>&6
8304 cat >> confdefs.h <<\EOF
8305 #define HAVE_DOPRNT 1
8309 echo "$ac_t""no" 1>&6
8314 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8315 # for constant arguments. Useless!
8316 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8317 echo "configure:8318: checking for working alloca.h" >&5
8318 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8326 char *p = alloca(2 * sizeof(int));
8329 if { (eval echo configure:8330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8331 ac_cv_header_alloca_h=yes
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8336 ac_cv_header_alloca_h=no
8341 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8342 if test $ac_cv_header_alloca_h = yes; then
8343 cat >> confdefs.h <<\EOF
8344 #define HAVE_ALLOCA_H 1
8349 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8350 echo "configure:8351: checking for alloca" >&5
8351 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8352 echo $ac_n "(cached) $ac_c" 1>&6
8354 cat > conftest.$ac_ext <<EOF
8355 #line 8356 "configure"
8356 #include "confdefs.h"
8359 # define alloca __builtin_alloca
8362 # include <malloc.h>
8363 # define alloca _alloca
8366 # include <alloca.h>
8371 # ifndef alloca /* predefined by HP cc +Olibcalls */
8380 char *p = (char *) alloca(1);
8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8385 ac_cv_func_alloca_works=yes
8387 echo "configure: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8390 ac_cv_func_alloca_works=no
8395 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8396 if test $ac_cv_func_alloca_works = yes; then
8397 cat >> confdefs.h <<\EOF
8398 #define HAVE_ALLOCA 1
8403 if test $ac_cv_func_alloca_works = no; then
8404 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8405 # that cause trouble. Some versions do not even contain alloca or
8406 # contain a buggy version. If you still want to use their alloca,
8407 # use ar to extract alloca.o from them instead of compiling alloca.c.
8408 ALLOCA=alloca.${ac_objext}
8409 cat >> confdefs.h <<\EOF
8414 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8415 echo "configure:8416: checking whether alloca needs Cray hooks" >&5
8416 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8419 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure"
8421 #include "confdefs.h"
8422 #if defined(CRAY) && ! defined(CRAY2)
8429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8430 egrep "webecray" >/dev/null 2>&1; then
8441 echo "$ac_t""$ac_cv_os_cray" 1>&6
8442 if test $ac_cv_os_cray = yes; then
8443 for ac_func in _getb67 GETB67 getb67; do
8444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8445 echo "configure:8446: checking for $ac_func" >&5
8446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8447 echo $ac_n "(cached) $ac_c" 1>&6
8449 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure"
8451 #include "confdefs.h"
8452 /* System header to define __stub macros and hopefully few prototypes,
8453 which can conflict with char $ac_func(); below. */
8455 /* Override any gcc2 internal prototype to avoid an error. */
8456 /* We use char because int might match the return type of a gcc2
8457 builtin and then its argument prototype would still apply. */
8462 /* The GNU C library defines this for functions which it implements
8463 to always fail with ENOSYS. Some functions are actually named
8464 something starting with __ and the normal name is an alias. */
8465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8473 if { (eval echo configure:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475 eval "ac_cv_func_$ac_func=yes"
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8480 eval "ac_cv_func_$ac_func=no"
8485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8486 echo "$ac_t""yes" 1>&6
8487 cat >> confdefs.h <<EOF
8488 #define CRAY_STACKSEG_END $ac_func
8493 echo "$ac_t""no" 1>&6
8499 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8500 echo "configure:8501: checking stack direction for C alloca" >&5
8501 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8504 if test "$cross_compiling" = yes; then
8505 ac_cv_c_stack_direction=0
8507 cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8510 find_stack_direction ()
8512 static char *addr = 0;
8517 return find_stack_direction ();
8520 return (&dummy > addr) ? 1 : -1;
8524 exit (find_stack_direction() < 0);
8527 if { (eval echo configure:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8529 ac_cv_c_stack_direction=1
8531 echo "configure: failed program was:" >&5
8532 cat conftest.$ac_ext >&5
8534 ac_cv_c_stack_direction=-1
8541 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8542 cat >> confdefs.h <<EOF
8543 #define STACK_DIRECTION $ac_cv_c_stack_direction
8548 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8549 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8550 echo "configure:8551: checking for getmntent in -lsun" >&5
8551 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8555 ac_save_LIBS="$LIBS"
8557 cat > conftest.$ac_ext <<EOF
8558 #line 8559 "configure"
8559 #include "confdefs.h"
8560 /* Override any gcc2 internal prototype to avoid an error. */
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8569 if { (eval echo configure:8570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8571 eval "ac_cv_lib_$ac_lib_var=yes"
8573 echo "configure: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8576 eval "ac_cv_lib_$ac_lib_var=no"
8579 LIBS="$ac_save_LIBS"
8582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8583 echo "$ac_t""yes" 1>&6
8586 echo "$ac_t""no" 1>&6
8587 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8588 echo "configure:8589: checking for getmntent in -lseq" >&5
8589 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8591 echo $ac_n "(cached) $ac_c" 1>&6
8593 ac_save_LIBS="$LIBS"
8595 cat > conftest.$ac_ext <<EOF
8596 #line 8597 "configure"
8597 #include "confdefs.h"
8598 /* Override any gcc2 internal prototype to avoid an error. */
8599 /* We use char because int might match the return type of a gcc2
8600 builtin and then its argument prototype would still apply. */
8607 if { (eval echo configure:8608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8609 eval "ac_cv_lib_$ac_lib_var=yes"
8611 echo "configure: failed program was:" >&5
8612 cat conftest.$ac_ext >&5
8614 eval "ac_cv_lib_$ac_lib_var=no"
8617 LIBS="$ac_save_LIBS"
8620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8621 echo "$ac_t""yes" 1>&6
8624 echo "$ac_t""no" 1>&6
8625 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8626 echo "configure:8627: checking for getmntent in -lgen" >&5
8627 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8631 ac_save_LIBS="$LIBS"
8633 cat > conftest.$ac_ext <<EOF
8634 #line 8635 "configure"
8635 #include "confdefs.h"
8636 /* Override any gcc2 internal prototype to avoid an error. */
8637 /* We use char because int might match the return type of a gcc2
8638 builtin and then its argument prototype would still apply. */
8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647 eval "ac_cv_lib_$ac_lib_var=yes"
8649 echo "configure: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8652 eval "ac_cv_lib_$ac_lib_var=no"
8655 LIBS="$ac_save_LIBS"
8658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8659 echo "$ac_t""yes" 1>&6
8662 echo "$ac_t""no" 1>&6
8669 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8670 echo "configure:8671: checking for getmntent" >&5
8671 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 /* System header to define __stub macros and hopefully few prototypes,
8678 which can conflict with char getmntent(); below. */
8680 /* Override any gcc2 internal prototype to avoid an error. */
8681 /* We use char because int might match the return type of a gcc2
8682 builtin and then its argument prototype would still apply. */
8687 /* The GNU C library defines this for functions which it implements
8688 to always fail with ENOSYS. Some functions are actually named
8689 something starting with __ and the normal name is an alias. */
8690 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8700 eval "ac_cv_func_getmntent=yes"
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8705 eval "ac_cv_func_getmntent=no"
8710 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8711 echo "$ac_t""yes" 1>&6
8712 cat >> confdefs.h <<\EOF
8713 #define HAVE_GETMNTENT 1
8717 echo "$ac_t""no" 1>&6
8720 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8721 echo "configure:8722: checking whether closedir returns void" >&5
8722 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8723 echo $ac_n "(cached) $ac_c" 1>&6
8725 if test "$cross_compiling" = yes; then
8726 ac_cv_func_closedir_void=yes
8728 cat > conftest.$ac_ext <<EOF
8729 #line 8730 "configure"
8730 #include "confdefs.h"
8731 #include <sys/types.h>
8732 #include <$ac_header_dirent>
8733 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8735 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8737 ac_cv_func_closedir_void=no
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8742 ac_cv_func_closedir_void=yes
8749 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8750 if test $ac_cv_func_closedir_void = yes; then
8751 cat >> confdefs.h <<\EOF
8752 #define CLOSEDIR_VOID 1
8757 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8758 echo "configure:8759: checking whether setpgrp takes no argument" >&5
8759 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8762 if test "$cross_compiling" = yes; then
8763 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8765 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8769 #ifdef HAVE_UNISTD_H
8774 * If this system has a BSD-style setpgrp, which takes arguments, exit
8779 if (setpgrp(1,1) == -1)
8786 if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8788 ac_cv_func_setpgrp_void=no
8790 echo "configure: failed program was:" >&5
8791 cat conftest.$ac_ext >&5
8793 ac_cv_func_setpgrp_void=yes
8801 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8802 if test $ac_cv_func_setpgrp_void = yes; then
8803 cat >> confdefs.h <<\EOF
8804 #define SETPGRP_VOID 1
8808 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8809 echo "configure:8810: checking for working fnmatch" >&5
8810 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8813 # Some versions of Solaris or SCO have a broken fnmatch function.
8814 # So we run a test program. If we are cross-compiling, take no chance.
8815 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8816 if test "$cross_compiling" = yes; then
8817 ac_cv_func_fnmatch_works=no
8819 cat > conftest.$ac_ext <<EOF
8820 #line 8821 "configure"
8821 #include "confdefs.h"
8822 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8824 if { (eval echo configure:8825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8826 ac_cv_func_fnmatch_works=yes
8828 echo "configure: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8831 ac_cv_func_fnmatch_works=no
8838 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8839 if test $ac_cv_func_fnmatch_works = yes; then
8840 cat >> confdefs.h <<\EOF
8841 #define HAVE_FNMATCH 1
8848 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8849 echo "configure:8850: checking for setlocale in -lxpg4" >&5
8850 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8854 ac_save_LIBS="$LIBS"
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* Override any gcc2 internal prototype to avoid an error. */
8860 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8870 eval "ac_cv_lib_$ac_lib_var=yes"
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 eval "ac_cv_lib_$ac_lib_var=no"
8878 LIBS="$ac_save_LIBS"
8881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8882 echo "$ac_t""yes" 1>&6
8885 echo "$ac_t""no" 1>&6
8890 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8891 echo "configure:8892: checking for getpwnam in -lsun" >&5
8892 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8896 ac_save_LIBS="$LIBS"
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 /* Override any gcc2 internal prototype to avoid an error. */
8902 /* We use char because int might match the return type of a gcc2
8903 builtin and then its argument prototype would still apply. */
8910 if { (eval echo configure:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8912 eval "ac_cv_lib_$ac_lib_var=yes"
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8917 eval "ac_cv_lib_$ac_lib_var=no"
8920 LIBS="$ac_save_LIBS"
8923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8924 echo "$ac_t""yes" 1>&6
8925 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8927 cat >> confdefs.h <<EOF
8928 #define $ac_tr_lib 1
8934 echo "$ac_t""no" 1>&6
8938 for ac_hdr in zlib.h
8940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8942 echo "configure:8943: checking for $ac_hdr" >&5
8943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8946 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8952 { (eval echo configure:8953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8954 if test -z "$ac_err"; then
8956 eval "ac_cv_header_$ac_safe=yes"
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8962 eval "ac_cv_header_$ac_safe=no"
8966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8967 echo "$ac_t""yes" 1>&6
8968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8969 cat >> confdefs.h <<EOF
8970 #define $ac_tr_hdr 1
8974 echo "$ac_t""no" 1>&6
8978 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8979 echo "configure:8980: checking for deflate in -lz" >&5
8980 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
8981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8984 ac_save_LIBS="$LIBS"
8986 cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure"
8988 #include "confdefs.h"
8989 /* Override any gcc2 internal prototype to avoid an error. */
8990 /* We use char because int might match the return type of a gcc2
8991 builtin and then its argument prototype would still apply. */
8998 if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9000 eval "ac_cv_lib_$ac_lib_var=yes"
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9005 eval "ac_cv_lib_$ac_lib_var=no"
9008 LIBS="$ac_save_LIBS"
9011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9012 echo "$ac_t""yes" 1>&6
9015 echo "$ac_t""no" 1>&6
9019 if test x$FDLIBS = x-lz; then
9020 cat >> confdefs.h <<\EOF
9028 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
9029 echo "configure:9030: checking for pthread_create in -lpthread" >&5
9030 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9032 echo $ac_n "(cached) $ac_c" 1>&6
9034 ac_save_LIBS="$LIBS"
9035 LIBS="-lpthread $LIBS"
9036 cat > conftest.$ac_ext <<EOF
9037 #line 9038 "configure"
9038 #include "confdefs.h"
9039 /* Override any gcc2 internal prototype to avoid an error. */
9040 /* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042 char pthread_create();
9048 if { (eval echo configure:9049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9050 eval "ac_cv_lib_$ac_lib_var=yes"
9052 echo "configure: failed program was:" >&5
9053 cat conftest.$ac_ext >&5
9055 eval "ac_cv_lib_$ac_lib_var=no"
9058 LIBS="$ac_save_LIBS"
9061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9062 echo "$ac_t""yes" 1>&6
9063 PTHREAD_LIB="-lpthread"
9065 echo "$ac_t""no" 1>&6
9066 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9067 echo "configure:9068: checking for pthread_create in -lpthreads" >&5
9068 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9070 echo $ac_n "(cached) $ac_c" 1>&6
9072 ac_save_LIBS="$LIBS"
9073 LIBS="-lpthreads $LIBS"
9074 cat > conftest.$ac_ext <<EOF
9075 #line 9076 "configure"
9076 #include "confdefs.h"
9077 /* Override any gcc2 internal prototype to avoid an error. */
9078 /* We use char because int might match the return type of a gcc2
9079 builtin and then its argument prototype would still apply. */
9080 char pthread_create();
9086 if { (eval echo configure:9087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9088 eval "ac_cv_lib_$ac_lib_var=yes"
9090 echo "configure: failed program was:" >&5
9091 cat conftest.$ac_ext >&5
9093 eval "ac_cv_lib_$ac_lib_var=no"
9096 LIBS="$ac_save_LIBS"
9099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9100 echo "$ac_t""yes" 1>&6
9101 PTHREAD_LIB="-lpthreads"
9103 echo "$ac_t""no" 1>&6
9104 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9105 echo "configure:9106: checking for pthread_create in -lc_r" >&5
9106 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9108 echo $ac_n "(cached) $ac_c" 1>&6
9110 ac_save_LIBS="$LIBS"
9112 cat > conftest.$ac_ext <<EOF
9113 #line 9114 "configure"
9114 #include "confdefs.h"
9115 /* Override any gcc2 internal prototype to avoid an error. */
9116 /* We use char because int might match the return type of a gcc2
9117 builtin and then its argument prototype would still apply. */
9118 char pthread_create();
9124 if { (eval echo configure:9125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9126 eval "ac_cv_lib_$ac_lib_var=yes"
9128 echo "configure: failed program was:" >&5
9129 cat conftest.$ac_ext >&5
9131 eval "ac_cv_lib_$ac_lib_var=no"
9134 LIBS="$ac_save_LIBS"
9137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9138 echo "$ac_t""yes" 1>&6
9141 echo "$ac_t""no" 1>&6
9142 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9143 echo "configure:9144: checking for pthread_create" >&5
9144 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9145 echo $ac_n "(cached) $ac_c" 1>&6
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9150 /* System header to define __stub macros and hopefully few prototypes,
9151 which can conflict with char pthread_create(); below. */
9153 /* Override any gcc2 internal prototype to avoid an error. */
9154 /* We use char because int might match the return type of a gcc2
9155 builtin and then its argument prototype would still apply. */
9156 char pthread_create();
9160 /* The GNU C library defines this for functions which it implements
9161 to always fail with ENOSYS. Some functions are actually named
9162 something starting with __ and the normal name is an alias. */
9163 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9171 if { (eval echo configure:9172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9173 eval "ac_cv_func_pthread_create=yes"
9175 echo "configure: failed program was:" >&5
9176 cat conftest.$ac_ext >&5
9178 eval "ac_cv_func_pthread_create=no"
9183 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9184 echo "$ac_t""yes" 1>&6
9187 echo "$ac_t""no" 1>&6
9201 cat >> confdefs.h <<\EOF
9208 LDFLAGS=${LDFLAGS--O}
9209 DB_LIBS="${SQL_LFLAGS}"
9211 CPPFLAGS="$CPPFLAGS"
9231 # Finally we set appropriate distribution specific
9232 # variables and defaults
9234 # PFILES are platform specific files
9235 PFILES="platforms/Makefile"
9242 PTHREAD_LIB="-lpthread -lexc"
9243 if test "${CC}" = "gcc" ; then
9250 TAPEDRIVE="/dev/nrmt0"
9253 DISTVER=`uname -a |awk '{print $3}'`
9254 TAPEDRIVE="/dev/nrst0"
9257 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
9258 TAPEDRIVE="/dev/nrst0"
9259 PSCMD="ps -e -o pid,command"
9260 hostname=`hostname -s`
9263 DISTVER=`uname -a |awk '{print $3}'`
9264 TAPEDRIVE="/dev/nrst0"
9266 CFLAGS="${CFLAGS} -mwindows"
9267 LDFLAGS="${LDFLAGS} -mwindows"
9270 DISTVER=`cat /etc/debian_version`
9271 TAPEDRIVE="/dev/nrst0"
9272 PSCMD="ps -e -o pid,command"
9273 hostname=`hostname -s`
9276 DISTVER=`uname -a |awk '{print $3}'`
9277 PTHREAD_LIB="-pthread"
9278 CFLAGS="${CFLAGS} -pthread"
9281 TAPEDRIVE="/dev/nrst0"
9282 PSCMD="ps -x -o pid,command"
9284 platforms/freebsd/Makefile \
9285 platforms/freebsd/bacula-fd \
9286 platforms/freebsd/bacula-sd \
9287 platforms/freebsd/bacula-dir"
9288 hostname=`hostname -s`
9289 largefile_support="yes"
9293 TAPEDRIVE="/dev/rmt/0hnb"
9297 TAPEDRIVE="/dev/rmt/0cbn"
9298 PSCMD="ps -e -o pid,comm"
9299 hostname=`/usr/bsd/hostname -s`
9301 platforms/irix/Makefile \
9302 platforms/irix/bacula-fd \
9303 platforms/irix/bacula-sd \
9304 platforms/irix/bacula-dir"
9307 DISTVER=`uname -a |awk '{print $3}'`
9310 TAPEDRIVE="/dev/nrst0"
9311 PSCMD="ps -a -o pid,command"
9312 PTHREAD_LIB="-pthread"
9313 CFLAGS="${CFLAGS} -pthread"
9316 DISTVER=`uname -a |awk '{print $3}'`
9319 TAPEDRIVE="/dev/nrst0"
9320 PSCMD="ps -a -o pid,command"
9321 PTHREAD_LIB="-pthread"
9322 CFLAGS="${CFLAGS} -pthread"
9324 platforms/openbsd/Makefile \
9325 platforms/openbsd/bacula-fd \
9326 platforms/openbsd/bacula-sd \
9327 platforms/openbsd/bacula-dir"
9330 DISTVER=`cat /etc/redhat-release | grep release |\
9332 TAPEDRIVE="/dev/nst0"
9333 PSCMD="ps -e -o pid,command"
9335 platforms/redhat/Makefile \
9336 platforms/redhat/bacula-fd \
9337 platforms/redhat/bacula-sd \
9338 platforms/redhat/bacula-dir"
9339 hostname=`hostname -s`
9342 DISTVER=`cat /etc/slackware-version`
9343 TAPEDRIVE="/dev/nst0"
9344 PSCMD="ps -e -o pid,command"
9345 hostname=`hostname -s`
9349 TAPEDRIVE="/dev/rmt/0cbn"
9350 PSCMD="ps -e -o pid,comm"
9352 platforms/solaris/Makefile \
9353 platforms/solaris/bacula-fd \
9354 platforms/solaris/bacula-sd \
9355 platforms/solaris/bacula-dir"
9358 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9360 TAPEDRIVE="/dev/nst0"
9361 PSCMD="ps -e -o pid,command"
9362 hostname=`hostname -s`
9367 TAPEDRIVE="/dev/nst0"
9368 PSCMD="ps -e -o pid,command"
9369 hostname=`hostname -s`
9373 TAPEDRIVE="/dev/nst0"
9376 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9383 LIBS="$PTHREAD_LIB $LIBS"
9385 cat >> confdefs.h <<EOF
9389 cat >> confdefs.h <<EOF
9400 MCOMMON=./autoconf/Make.common
9404 cat > confcache <<\EOF
9405 # This file is a shell script that caches the results of configure
9406 # tests run on this system so they can be shared between configure
9407 # scripts and configure runs. It is not useful on other systems.
9408 # If it contains results you don't want to keep, you may remove or edit it.
9410 # By default, configure uses ./config.cache as the cache file,
9411 # creating it if it does not exist already. You can give configure
9412 # the --cache-file=FILE option to use a different cache file; that is
9413 # what configure does when it calls configure scripts in
9414 # subdirectories, so they share the cache.
9415 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9416 # config.status only pays attention to the cache file if you give it the
9417 # --recheck option to rerun configure.
9420 # The following way of writing the cache mishandles newlines in values,
9421 # but we know of no workaround that is simple, portable, and efficient.
9422 # So, don't put newlines in cache variables' values.
9423 # Ultrix sh set writes to stderr and can't be redirected directly,
9424 # and sets the high bit in the cache file unless we assign to the vars.
9426 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9428 # `set' does not quote correctly, so add quotes (double-quote substitution
9429 # turns \\\\ into \\, and sed turns \\ into \).
9431 -e "s/'/'\\\\''/g" \
9432 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9435 # `set' quotes correctly as required by POSIX, so do not add quotes.
9436 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9439 if cmp -s $cache_file confcache; then
9442 if test -w $cache_file; then
9443 echo "updating cache $cache_file"
9444 cat confcache > $cache_file
9446 echo "not updating unwritable cache $cache_file"
9451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9454 # Let make expand exec_prefix.
9455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9457 # Any assignment to VPATH causes Sun make to only execute
9458 # the first set of double-colon rules, so remove it if not needed.
9459 # If there is a colon in the path, we need to keep it.
9460 if test "x$srcdir" = x.; then
9461 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9464 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9466 DEFS=-DHAVE_CONFIG_H
9468 # Without the "./", some shells look in PATH for config.status.
9469 : ${CONFIG_STATUS=./config.status}
9471 echo creating $CONFIG_STATUS
9472 rm -f $CONFIG_STATUS
9473 cat > $CONFIG_STATUS <<EOF
9475 # Generated automatically by configure.
9476 # Run this file to recreate the current configuration.
9477 # This directory was configured as follows,
9478 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9480 # $0 $ac_configure_args
9482 # Compiler output produced by configure, useful for debugging
9483 # configure, is in ./config.log if it exists.
9485 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9488 case "\$ac_option" in
9489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9490 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9491 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9492 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9493 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9495 -help | --help | --hel | --he | --h)
9496 echo "\$ac_cs_usage"; exit 0 ;;
9497 *) echo "\$ac_cs_usage"; exit 1 ;;
9501 ac_given_srcdir=$srcdir
9502 ac_given_INSTALL="$INSTALL"
9504 trap 'rm -fr `echo "autoconf/Make.common \
9506 scripts/startmysql \
9508 scripts/btraceback \
9518 src/console/Makefile \
9519 src/console/console.conf \
9520 src/gnome-console/Makefile \
9521 src/gnome-console/gnome-console.conf \
9523 src/dird/bacula-dir.conf \
9525 src/stored/Makefile \
9526 src/stored/bacula-sd.conf \
9527 src/filed/Makefile \
9529 src/filed/bacula-fd.conf \
9530 src/filed/win32/Makefile \
9532 src/cats/alter_mysql_tables \
9533 src/cats/make_mysql_tables \
9534 src/cats/drop_mysql_tables \
9535 src/cats/create_mysql_database \
9536 src/cats/grant_mysql_privileges \
9537 src/cats/alter_sqlite_tables \
9538 src/cats/make_sqlite_tables \
9539 src/cats/drop_sqlite_tables \
9540 src/cats/create_sqlite_database \
9543 src/cats/create_bdb_database \
9544 src/cats/make_bdb_tables \
9545 src/cats/drop_bdb_tables \
9546 src/cats/make_bacula_tables \
9547 src/cats/drop_bacula_tables \
9548 src/findlib/Makefile \
9549 src/tools/Makefile \
9550 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9552 cat >> $CONFIG_STATUS <<EOF
9554 # Protect against being on the right side of a sed subst in config.status.
9555 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9556 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9560 s%@CFLAGS@%$CFLAGS%g
9561 s%@CPPFLAGS@%$CPPFLAGS%g
9562 s%@CXXFLAGS@%$CXXFLAGS%g
9563 s%@FFLAGS@%$FFLAGS%g
9565 s%@LDFLAGS@%$LDFLAGS%g
9567 s%@exec_prefix@%$exec_prefix%g
9568 s%@prefix@%$prefix%g
9569 s%@program_transform_name@%$program_transform_name%g
9570 s%@bindir@%$bindir%g
9571 s%@sbindir@%$sbindir%g
9572 s%@libexecdir@%$libexecdir%g
9573 s%@datadir@%$datadir%g
9574 s%@sysconfdir@%$sysconfdir%g
9575 s%@sharedstatedir@%$sharedstatedir%g
9576 s%@localstatedir@%$localstatedir%g
9577 s%@libdir@%$libdir%g
9578 s%@includedir@%$includedir%g
9579 s%@oldincludedir@%$oldincludedir%g
9580 s%@infodir@%$infodir%g
9581 s%@mandir@%$mandir%g
9582 s%@BUILD_DIR@%$BUILD_DIR%g
9583 s%@TRUEPRG@%$TRUEPRG%g
9584 s%@FALSEPRG@%$FALSEPRG%g
9586 s%@host_alias@%$host_alias%g
9587 s%@host_cpu@%$host_cpu%g
9588 s%@host_vendor@%$host_vendor%g
9589 s%@host_os@%$host_os%g
9590 s%@VERSION@%$VERSION%g
9592 s%@LSMDATE@%$LSMDATE%g
9596 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9597 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9598 s%@INSTALL_DATA@%$INSTALL_DATA%g
9599 s%@RANLIB@%$RANLIB%g
9609 s%@OPENSSL@%$OPENSSL%g
9610 s%@ARFLAGS@%$ARFLAGS%g
9611 s%@MAKE_SHELL@%$MAKE_SHELL%g
9612 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9613 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9614 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9615 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9616 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9617 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9618 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9619 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9620 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9621 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9622 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9623 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9624 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9625 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9626 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9627 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9628 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9629 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9630 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9631 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9632 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9633 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9634 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9635 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9636 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
9637 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
9638 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9639 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9640 s%@MSGFMT@%$MSGFMT%g
9641 s%@GNOME_LIBS@%$GNOME_LIBS%g
9642 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9643 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9644 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9645 s%@ZVT_LIBS@%$ZVT_LIBS%g
9646 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9647 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9648 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9649 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9650 s%@ORBIT_IDL@%$ORBIT_IDL%g
9651 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9652 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9653 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9654 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9655 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9656 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9657 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9658 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9659 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9660 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9661 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9662 s%@GNOME_DIR@%$GNOME_DIR%g
9663 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
9664 s%@CONS_INC@%$CONS_INC%g
9665 s%@CONS_LIBS@%$CONS_LIBS%g
9666 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9667 s%@READLINE_SRC@%$READLINE_SRC%g
9668 s%@GMP_INC@%$GMP_INC%g
9669 s%@GMP_LIBS@%$GMP_LIBS%g
9670 s%@GMP_LDFLAGS@%$GMP_LDFLAGS%g
9671 s%@GMP_SRC@%$GMP_SRC%g
9673 s%@CWEB_INC@%$CWEB_INC%g
9674 s%@CWEB_LIBS@%$CWEB_LIBS%g
9675 s%@CWEB_LDFLAGS@%$CWEB_LDFLAGS%g
9676 s%@CWEB_SRC@%$CWEB_SRC%g
9677 s%@working_dir@%$working_dir%g
9678 s%@dump_email@%$dump_email%g
9679 s%@job_email@%$job_email%g
9680 s%@smtp_host@%$smtp_host%g
9681 s%@piddir@%$piddir%g
9682 s%@subsysdir@%$subsysdir%g
9683 s%@baseport@%$baseport%g
9684 s%@dir_port@%$dir_port%g
9685 s%@fd_port@%$fd_port%g
9686 s%@sd_port@%$sd_port%g
9687 s%@dir_password@%$dir_password%g
9688 s%@fd_password@%$fd_password%g
9689 s%@sd_password@%$sd_password%g
9690 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9691 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9692 s%@SQL_BINDIR@%$SQL_BINDIR%g
9694 s%@DB_NAME@%$DB_NAME%g
9695 s%@EXEEXT@%$EXEEXT%g
9697 s%@build_alias@%$build_alias%g
9698 s%@build_cpu@%$build_cpu%g
9699 s%@build_vendor@%$build_vendor%g
9700 s%@build_os@%$build_os%g
9701 s%@GETCONF@%$GETCONF%g
9702 s%@X_CFLAGS@%$X_CFLAGS%g
9703 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9704 s%@X_LIBS@%$X_LIBS%g
9705 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9706 s%@LIBOBJS@%$LIBOBJS%g
9707 s%@ALLOCA@%$ALLOCA%g
9708 s%@FDLIBS@%$FDLIBS%g
9710 s%@DINCLUDE@%$DINCLUDE%g
9712 s%@DB_LIBS@%$DB_LIBS%g
9713 s%@OBJLIST@%$OBJLIST%g
9714 s%@hostname@%$hostname%g
9715 s%@TAPEDRIVE@%$TAPEDRIVE%g
9718 s%@DISTNAME@%$DISTNAME%g
9719 s%@DISTVER@%$DISTVER%g
9720 /@MCOMMON@/r $MCOMMON
9726 cat >> $CONFIG_STATUS <<\EOF
9728 # Split the substitutions into bite-sized pieces for seds with
9729 # small command number limits, like on Digital OSF/1 and HP-UX.
9730 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9731 ac_file=1 # Number of current file.
9732 ac_beg=1 # First line for current file.
9733 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9736 while $ac_more_lines; do
9737 if test $ac_beg -gt 1; then
9738 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9740 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9742 if test ! -s conftest.s$ac_file; then
9744 rm -f conftest.s$ac_file
9746 if test -z "$ac_sed_cmds"; then
9747 ac_sed_cmds="sed -f conftest.s$ac_file"
9749 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9751 ac_file=`expr $ac_file + 1`
9753 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9756 if test -z "$ac_sed_cmds"; then
9761 cat >> $CONFIG_STATUS <<EOF
9763 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9765 scripts/startmysql \
9767 scripts/btraceback \
9777 src/console/Makefile \
9778 src/console/console.conf \
9779 src/gnome-console/Makefile \
9780 src/gnome-console/gnome-console.conf \
9782 src/dird/bacula-dir.conf \
9784 src/stored/Makefile \
9785 src/stored/bacula-sd.conf \
9786 src/filed/Makefile \
9788 src/filed/bacula-fd.conf \
9789 src/filed/win32/Makefile \
9791 src/cats/alter_mysql_tables \
9792 src/cats/make_mysql_tables \
9793 src/cats/drop_mysql_tables \
9794 src/cats/create_mysql_database \
9795 src/cats/grant_mysql_privileges \
9796 src/cats/alter_sqlite_tables \
9797 src/cats/make_sqlite_tables \
9798 src/cats/drop_sqlite_tables \
9799 src/cats/create_sqlite_database \
9802 src/cats/create_bdb_database \
9803 src/cats/make_bdb_tables \
9804 src/cats/drop_bdb_tables \
9805 src/cats/make_bacula_tables \
9806 src/cats/drop_bacula_tables \
9807 src/findlib/Makefile \
9808 src/tools/Makefile \
9811 cat >> $CONFIG_STATUS <<\EOF
9812 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9813 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9815 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9816 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9817 *) ac_file_in="${ac_file}.in" ;;
9820 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9822 # Remove last slash and all that follows it. Not all systems have dirname.
9823 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9824 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9825 # The file is in a subdirectory.
9826 test ! -d "$ac_dir" && mkdir "$ac_dir"
9827 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9828 # A "../" for each directory in $ac_dir_suffix.
9829 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9831 ac_dir_suffix= ac_dots=
9834 case "$ac_given_srcdir" in
9836 if test -z "$ac_dots"; then top_srcdir=.
9837 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9838 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9840 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9841 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9844 case "$ac_given_INSTALL" in
9845 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9846 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9849 echo creating "$ac_file"
9851 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9853 *Makefile*) ac_comsub="1i\\
9854 # $configure_input" ;;
9858 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9860 s%@configure_input@%$configure_input%g
9861 s%@srcdir@%$srcdir%g
9862 s%@top_srcdir@%$top_srcdir%g
9863 s%@INSTALL@%$INSTALL%g
9864 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9868 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9869 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9871 # ac_d sets the value in "#define NAME VALUE" lines.
9872 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9873 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9876 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9877 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9878 ac_uB='\([ ]\)%\1#\2define\3'
9881 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9882 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9883 ac_eB='$%\1#\2define\3'
9887 if test "${CONFIG_HEADERS+set}" != set; then
9889 cat >> $CONFIG_STATUS <<EOF
9890 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9892 cat >> $CONFIG_STATUS <<\EOF
9894 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9897 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9898 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9899 *) ac_file_in="${ac_file}.in" ;;
9902 echo creating $ac_file
9904 rm -f conftest.frag conftest.in conftest.out
9905 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9906 cat $ac_file_inputs > conftest.in
9910 # Transform confdefs.h into a sed script conftest.vals that substitutes
9911 # the proper values into config.h.in to produce config.h. And first:
9912 # Protect against being on the right side of a sed subst in config.status.
9913 # Protect against being in an unquoted here document in config.status.
9915 cat > conftest.hdr <<\EOF
9918 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9922 sed -n -f conftest.hdr confdefs.h > conftest.vals
9925 # This sed command replaces #undef with comments. This is necessary, for
9926 # example, in the case of _POSIX_SOURCE, which is predefined and required
9927 # on some systems where configure will not decide to define it.
9928 cat >> conftest.vals <<\EOF
9929 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9932 # Break up conftest.vals because some shells have a limit on
9933 # the size of here documents, and old seds have small limits too.
9938 ac_lines=`grep -c . conftest.vals`
9939 # grep -c gives empty output for an empty file on some AIX systems.
9940 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9941 # Write a limited-size here document to conftest.frag.
9942 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9943 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9945 sed -f conftest.frag conftest.in > conftest.out
9947 mv conftest.out conftest.in
9949 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9951 mv conftest.tail conftest.vals
9955 cat >> $CONFIG_STATUS <<\EOF
9956 rm -f conftest.frag conftest.h
9957 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9958 cat conftest.in >> conftest.h
9960 if cmp -s $ac_file conftest.h 2>/dev/null; then
9961 echo "$ac_file is unchanged"
9964 # Remove last slash and all that follows it. Not all systems have dirname.
9965 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9966 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9967 # The file is in a subdirectory.
9968 test ! -d "$ac_dir" && mkdir "$ac_dir"
9971 mv conftest.h $ac_file
9976 cat >> $CONFIG_STATUS <<EOF
9979 cat >> $CONFIG_STATUS <<\EOF
9980 (echo "Doing make of dependencies"; make depend;)
9984 chmod +x $CONFIG_STATUS
9985 rm -fr confdefs* $ac_clean_files
9986 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9990 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
9991 chmod 755 console gconsole
9993 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
9994 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
9995 chmod 755 src/cats/create_mysql_database
9996 chmod 755 src/cats/alter_mysql_tables
9997 chmod 755 src/cats/grant_mysql_privileges
9998 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
9999 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
10000 chmod 755 src/cats/create_sqlite_database
10001 chmod 755 src/cats/alter_sqlite_tables
10002 chmod 755 src/cats/sqlite
10003 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
10004 chmod 755 src/cats/create_bdb_database
10006 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
10007 largefile_support="yes"
10012 Configuration on `date`:
10014 Host: $host -- ${DISTNAME} ${DISTVER}
10015 Bacula version: ${VERSION} (${DATE})
10016 Source code location: ${srcdir}
10017 Install binaries: ${sbindir}
10018 Install config files: ${sysconfdir}
10020 C++ Compiler: ${CXX}
10021 Compiler flags: ${CFLAGS}
10022 Linker flags: ${LDFLAGS}
10024 Statically Linked Tools: ${support_static_tools}
10025 Database found: ${have_db}
10026 Database type: ${db_name}
10027 Database lib: ${DB_LIBS}
10029 Job Output Email: ${job_email}
10030 Traceback Email: ${dump_email}
10031 SMTP Host Address: ${smtp_host}
10032 Director Port ${dir_port}
10033 File daemon Port ${fd_port}
10034 Storage daemon Port ${sd_port}
10035 Working directory ${working_dir}
10036 SQL binaries Directory ${SQL_BINDIR}
10038 Large file support: $largefile_support
10039 readline support: ${got_readline} ${PRTREADLINE_SRC}
10040 cweb support: ${got_cweb} ${CWEB_SRC}
10041 TCP Wrappers support: ${TCPW_MSG}
10042 ZLIB support: ${have_zlib}
10043 enable-smartalloc: ${support_smartalloc}
10044 enable-gnome: ${support_gnome}
10045 gmp support: ${got_gmp} ${GMP_SRC}