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-gnome enable build of gnome-console GUI [disabled]"
17 --with-gnome-includes Specify location of GNOME headers"
19 --with-gnome-libs Specify location of GNOME libs"
21 --with-gnome Specify prefix for GNOME files"
23 --enable-smartalloc enable smartalloc debugging support [disabled]"
25 --enable-static-tools enable static tape tools [disabled]"
27 --enable-static-fd enable static File daemon [disabled]"
29 --enable-static-sd enable static Storage daemon [disabled]"
31 --enable-static-dir enable static Director [disabled]"
33 --enable-static-cons enable static Console [disabled]"
35 --enable-client-only build client (File daemon) only [disabled]"
37 --disable-readline disable readline support [enabled]
40 --with-readline=DIR specify readline library directory"
42 --with-tcp-wrappers=DIR enable tcpwrappers support"
44 --with-working-dir=PATH specify path of Bacula working directory"
46 --with-scriptdir=PATH specify path of Bacula scripts directory"
48 --with-dump-email=EMAIL dump email address"
50 --with-job-email=EMAIL job output email address"
52 --with-smtp-host=HOST SMTP mail host address"
54 --with-pid-dir=PATH specify location of Bacula pid files"
56 --with-subsys-dir=PATH specify location of Bacula subsys file"
58 --with-baseport=PORT specify base port address for daemons"
60 --with-dir-password=PASSWORD specify Director's password"
62 --with-fd-password=PASSWORD specify Client's password"
64 --with-sd-password=PASSWORD specify Storage daemon's password"
67 Which DBMS do you want to use (please select only one):
68 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
69 install directory, default is to search through
70 a number of common places for the MySQL files."
73 Which DBMS do you want to use (please select only one):
74 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
75 install directory, default is to search through
76 a number of common places for the MySQL files."
79 Which DBMS do you want to use (please select only one):
80 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
81 install directory, default is to search through
82 a number of common places for the SQLite files."
84 --disable-largefile omit support for large files"
86 --with-x use the X Window System"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=src/version.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
603 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
604 if test -f $ac_dir/install-sh; then
606 ac_install_sh="$ac_aux_dir/install-sh -c"
608 elif test -f $ac_dir/install.sh; then
610 ac_install_sh="$ac_aux_dir/install.sh -c"
614 if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
617 ac_config_guess=$ac_aux_dir/config.guess
618 ac_config_sub=$ac_aux_dir/config.sub
619 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
628 # Extract the first word of "$ac_prog", so it can be a program name with args.
629 set dummy $ac_prog; ac_word=$2
630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" >&5
632 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
637 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
640 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
645 for ac_dir in $ac_dummy; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f $ac_dir/$ac_word; then
648 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
656 TRUEPRG="$ac_cv_path_TRUEPRG"
657 if test -n "$TRUEPRG"; then
658 echo "$ac_t""$TRUEPRG" 1>&6
660 echo "$ac_t""no" 1>&6
663 test -n "$TRUEPRG" && break
665 test -n "$TRUEPRG" || TRUEPRG=":"
669 # Extract the first word of "$ac_prog", so it can be a program name with args.
670 set dummy $ac_prog; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
678 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
681 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
697 FALSEPRG="$ac_cv_path_FALSEPRG"
698 if test -n "$FALSEPRG"; then
699 echo "$ac_t""$FALSEPRG" 1>&6
701 echo "$ac_t""no" 1>&6
704 test -n "$FALSEPRG" && break
706 test -n "$FALSEPRG" || FALSEPRG=":"
710 # Make sure we can run config.sub.
711 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
712 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
715 echo $ac_n "checking host system type""... $ac_c" 1>&6
716 echo "configure:717: checking host system type" >&5
719 case "$host_alias" in
723 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
724 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
726 *) host_alias=$nonopt ;;
730 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
731 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$host" 1>&6
737 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
738 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
739 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
740 echo "configuring for bacula $VERSION ($DATE)"
744 # Extract the first word of "gcc", so it can be a program name with args.
745 set dummy gcc; ac_word=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 if test -n "$CC"; then
752 ac_cv_prog_CC="$CC" # Let the user override the test.
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
756 for ac_dir in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
773 if test -z "$CC"; then
774 # Extract the first word of "cc", so it can be a program name with args.
775 set dummy cc; ac_word=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC="$CC" # Let the user override the test.
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
799 if test $ac_prog_rejected = yes; then
800 # We found a bogon in the path, so make sure we never use it.
801 set dummy $ac_cv_prog_CC
803 if test $# -gt 0; then
804 # We chose a different compiler from the bogus one.
805 # However, it has the same basename, so the bogon will be chosen
806 # first if we set CC to just the basename; use the full file name.
808 set dummy "$ac_dir/$ac_word" "$@"
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
825 # Extract the first word of "cl", so it can be a program name with args.
826 set dummy cl; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
856 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
859 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
860 echo "configure:861: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp='$CPP $CPPFLAGS'
865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling=$ac_cv_prog_cc_cross
869 cat > conftest.$ac_ext << EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
877 ac_cv_prog_cc_works=yes
878 # If we can't run a trivial program, we are probably using a cross compiler.
879 if (./conftest; exit) 2>/dev/null; then
880 ac_cv_prog_cc_cross=no
882 ac_cv_prog_cc_cross=yes
885 echo "configure: failed program was:" >&5
886 cat conftest.$ac_ext >&5
887 ac_cv_prog_cc_works=no
891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892 ac_cpp='$CPP $CPPFLAGS'
893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895 cross_compiling=$ac_cv_prog_cc_cross
897 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898 if test $ac_cv_prog_cc_works = no; then
899 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902 echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904 cross_compiling=$ac_cv_prog_cc_cross
906 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907 echo "configure:908: checking whether we are using GNU C" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.c <<EOF
916 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
923 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
925 if test $ac_cv_prog_gcc = yes; then
931 ac_test_CFLAGS="${CFLAGS+set}"
932 ac_save_CFLAGS="$CFLAGS"
934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
935 echo "configure:936: checking whether ${CC-cc} accepts -g" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 echo 'void f(){}' > conftest.c
940 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
949 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
950 if test "$ac_test_CFLAGS" = set; then
951 CFLAGS="$ac_save_CFLAGS"
952 elif test $ac_cv_prog_cc_g = yes; then
953 if test "$GCC" = yes; then
959 if test "$GCC" = yes; then
966 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
968 # Extract the first word of "$ac_prog", so it can be a program name with args.
969 set dummy $ac_prog; ac_word=$2
970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
971 echo "configure:972: checking for $ac_word" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 if test -n "$CXX"; then
976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
980 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_CXX="$ac_prog"
990 CXX="$ac_cv_prog_CXX"
991 if test -n "$CXX"; then
992 echo "$ac_t""$CXX" 1>&6
994 echo "$ac_t""no" 1>&6
997 test -n "$CXX" && break
999 test -n "$CXX" || CXX="gcc"
1002 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1007 ac_cpp='$CXXCPP $CPPFLAGS'
1008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1010 cross_compiling=$ac_cv_prog_cxx_cross
1012 cat > conftest.$ac_ext << EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1017 int main(){return(0);}
1019 if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1020 ac_cv_prog_cxx_works=yes
1021 # If we can't run a trivial program, we are probably using a cross compiler.
1022 if (./conftest; exit) 2>/dev/null; then
1023 ac_cv_prog_cxx_cross=no
1025 ac_cv_prog_cxx_cross=yes
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1030 ac_cv_prog_cxx_works=no
1034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1035 ac_cpp='$CPP $CPPFLAGS'
1036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1038 cross_compiling=$ac_cv_prog_cc_cross
1040 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1041 if test $ac_cv_prog_cxx_works = no; then
1042 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1044 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1045 echo "configure:1046: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1046 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1047 cross_compiling=$ac_cv_prog_cxx_cross
1049 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether we are using GNU C++" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 cat > conftest.C <<EOF
1059 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1066 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1068 if test $ac_cv_prog_gxx = yes; then
1074 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1075 ac_save_CXXFLAGS="$CXXFLAGS"
1077 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ${CXX-g++} accepts -g" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 echo 'void f(){}' > conftest.cc
1083 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1084 ac_cv_prog_cxx_g=yes
1092 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1093 if test "$ac_test_CXXFLAGS" = set; then
1094 CXXFLAGS="$ac_save_CXXFLAGS"
1095 elif test $ac_cv_prog_cxx_g = yes; then
1096 if test "$GXX" = yes; then
1102 if test "$GXX" = yes; then
1109 for ac_declaration in \
1111 '#include <stdlib.h>' \
1112 'extern "C" void std::exit (int) throw (); using std::exit;' \
1113 'extern "C" void std::exit (int); using std::exit;' \
1114 'extern "C" void exit (int) throw ();' \
1115 'extern "C" void exit (int);' \
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1127 if { (eval echo configure:1128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1144 if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1153 if test -n "$ac_declaration"; then
1154 echo '#ifdef __cplusplus' >>confdefs.h
1155 echo $ac_declaration >>confdefs.h
1156 echo '#endif' >>confdefs.h
1160 if test "x$CC" != xcc; then
1161 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether $CC and cc understand -c and -o together" >&5
1164 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether cc understands -c and -o together" >&5
1167 set dummy $CC; ac_cc="`echo $2 |
1168 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1169 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 echo 'foo(){}' > conftest.c
1173 # Make sure it works both with $CC and with simple cc.
1174 # We do the test twice because some compilers refuse to overwrite an
1175 # existing .o file with -o, though they will create one.
1176 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1177 if { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1178 test -f conftest.o && { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1180 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1181 if test "x$CC" != xcc; then
1182 # Test first that cc exists at all.
1183 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1184 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1185 if { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1186 test -f conftest.o && { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1191 # cc exists but doesn't like -o.
1192 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1197 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1202 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1205 echo "$ac_t""no" 1>&6
1206 cat >> confdefs.h <<\EOF
1207 #define NO_MINUS_C_MINUS_O 1
1211 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1212 echo "configure:1213: checking how to run the C preprocessor" >&5
1213 # On Suns, sometimes $CPP names a directory.
1214 if test -n "$CPP" && test -d "$CPP"; then
1217 if test -z "$CPP"; then
1218 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 # This must be in double quotes, not single quotes, because CPP may get
1222 # substituted into the Makefile and "${CC-cc}" will confuse make.
1224 # On the NeXT, cc -E runs the code through the compiler's parser,
1225 # not just through cpp.
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233 { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235 if test -z "$ac_err"; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1242 CPP="${CC-cc} -E -traditional-cpp"
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1250 { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1252 if test -z "$ac_err"; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1259 CPP="${CC-cc} -nologo -E"
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267 { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1269 if test -z "$ac_err"; then
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1283 ac_cv_prog_CPP="$CPP"
1285 CPP="$ac_cv_prog_CPP"
1287 ac_cv_prog_CPP="$CPP"
1289 echo "$ac_t""$CPP" 1>&6
1291 if test $ac_cv_prog_gcc = yes; then
1292 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether ${CC-cc} needs -traditional" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_pattern="Autoconf.*'x'"
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1305 egrep "$ac_pattern" >/dev/null 2>&1; then
1307 ac_cv_prog_gcc_traditional=yes
1310 ac_cv_prog_gcc_traditional=no
1315 if test $ac_cv_prog_gcc_traditional = no; then
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1323 egrep "$ac_pattern" >/dev/null 2>&1; then
1325 ac_cv_prog_gcc_traditional=yes
1332 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1333 if test $ac_cv_prog_gcc_traditional = yes; then
1334 CC="$CC -traditional"
1340 cat >> confdefs.h <<\EOF
1346 # Find a good install program. We prefer a C program (faster),
1347 # so one script is as good as another. But avoid the broken or
1348 # incompatible versions:
1349 # SysV /etc/install, /usr/sbin/install
1350 # SunOS /usr/etc/install
1351 # IRIX /sbin/install
1353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1358 echo "configure:1359: checking for a BSD compatible install" >&5
1359 if test -z "$INSTALL"; then
1360 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1364 for ac_dir in $PATH; do
1365 # Account for people who put trailing slashes in PATH elements.
1367 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1369 # OSF1 and SCO ODT 3.0 have their own names for install.
1370 # Don't use installbsd from OSF since it installs stuff as root
1372 for ac_prog in ginstall scoinst install; do
1373 if test -f $ac_dir/$ac_prog; then
1374 if test $ac_prog = install &&
1375 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1376 # AIX install. It has an incompatible calling convention.
1379 ac_cv_path_install="$ac_dir/$ac_prog -c"
1390 if test "${ac_cv_path_install+set}" = set; then
1391 INSTALL="$ac_cv_path_install"
1393 # As a last resort, use the slow shell script. We don't cache a
1394 # path for INSTALL within a source directory, because that will
1395 # break other packages using the cache if that directory is
1396 # removed, or if the path is relative.
1397 INSTALL="$ac_install_sh"
1400 echo "$ac_t""$INSTALL" 1>&6
1402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1403 # It thinks the first close brace ends the variable substitution.
1404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1410 # Extract the first word of "ranlib", so it can be a program name with args.
1411 set dummy ranlib; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$RANLIB"; then
1418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1422 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_RANLIB="ranlib"
1430 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1433 RANLIB="$ac_cv_prog_RANLIB"
1434 if test -n "$RANLIB"; then
1435 echo "$ac_t""$RANLIB" 1>&6
1437 echo "$ac_t""no" 1>&6
1440 # Extract the first word of "mv", so it can be a program name with args.
1441 set dummy mv; ac_word=$2
1442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1443 echo "configure:1444: checking for $ac_word" >&5
1444 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1449 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1452 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1457 for ac_dir in $ac_dummy; do
1458 test -z "$ac_dir" && ac_dir=.
1459 if test -f $ac_dir/$ac_word; then
1460 ac_cv_path_MV="$ac_dir/$ac_word"
1465 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1470 if test -n "$MV"; then
1471 echo "$ac_t""$MV" 1>&6
1473 echo "$ac_t""no" 1>&6
1476 # Extract the first word of "rm", so it can be a program name with args.
1477 set dummy rm; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1485 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1488 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_path_RM="$ac_dir/$ac_word"
1501 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1506 if test -n "$RM"; then
1507 echo "$ac_t""$RM" 1>&6
1509 echo "$ac_t""no" 1>&6
1512 # Extract the first word of "cp", so it can be a program name with args.
1513 set dummy cp; ac_word=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1516 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1521 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1524 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_path_CP="$ac_dir/$ac_word"
1537 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1542 if test -n "$CP"; then
1543 echo "$ac_t""$CP" 1>&6
1545 echo "$ac_t""no" 1>&6
1548 # Extract the first word of "sed", so it can be a program name with args.
1549 set dummy sed; ac_word=$2
1550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_word" >&5
1552 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1557 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1560 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 for ac_dir in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1568 ac_cv_path_SED="$ac_dir/$ac_word"
1573 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1577 SED="$ac_cv_path_SED"
1578 if test -n "$SED"; then
1579 echo "$ac_t""$SED" 1>&6
1581 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "awk", so it can be a program name with args.
1585 set dummy awk; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1593 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1596 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 ac_cv_path_AWK="$ac_dir/$ac_word"
1609 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1613 AWK="$ac_cv_path_AWK"
1614 if test -n "$AWK"; then
1615 echo "$ac_t""$AWK" 1>&6
1617 echo "$ac_t""no" 1>&6
1620 # Extract the first word of "echo", so it can be a program name with args.
1621 set dummy echo; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1629 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1632 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1637 for ac_dir in $ac_dummy; do
1638 test -z "$ac_dir" && ac_dir=.
1639 if test -f $ac_dir/$ac_word; then
1640 ac_cv_path_ECHO="$ac_dir/$ac_word"
1645 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1649 ECHO="$ac_cv_path_ECHO"
1650 if test -n "$ECHO"; then
1651 echo "$ac_t""$ECHO" 1>&6
1653 echo "$ac_t""no" 1>&6
1656 # Extract the first word of "cmp", so it can be a program name with args.
1657 set dummy cmp; ac_word=$2
1658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_word" >&5
1660 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1665 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1668 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1673 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_path_CMP="$ac_dir/$ac_word"
1681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1685 CMP="$ac_cv_path_CMP"
1686 if test -n "$CMP"; then
1687 echo "$ac_t""$CMP" 1>&6
1689 echo "$ac_t""no" 1>&6
1692 # Extract the first word of "tbl", so it can be a program name with args.
1693 set dummy tbl; ac_word=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5
1696 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1701 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1704 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 for ac_dir in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir=.
1711 if test -f $ac_dir/$ac_word; then
1712 ac_cv_path_TBL="$ac_dir/$ac_word"
1717 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1721 TBL="$ac_cv_path_TBL"
1722 if test -n "$TBL"; then
1723 echo "$ac_t""$TBL" 1>&6
1725 echo "$ac_t""no" 1>&6
1728 # Extract the first word of "ar", so it can be a program name with args.
1729 set dummy ar; ac_word=$2
1730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_word" >&5
1732 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1737 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1740 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1748 ac_cv_path_AR="$ac_dir/$ac_word"
1753 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1758 if test -n "$AR"; then
1759 echo "$ac_t""$AR" 1>&6
1761 echo "$ac_t""no" 1>&6
1764 # Extract the first word of "ranlib", so it can be a program name with args.
1765 set dummy ranlib; ac_word=$2
1766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1767 echo "configure:1768: checking for $ac_word" >&5
1768 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1773 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1776 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1789 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1793 RANLIB="$ac_cv_path_RANLIB"
1794 if test -n "$RANLIB"; then
1795 echo "$ac_t""$RANLIB" 1>&6
1797 echo "$ac_t""no" 1>&6
1800 # Extract the first word of "openssl", so it can be a program name with args.
1801 set dummy openssl; ac_word=$2
1802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_word" >&5
1804 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1809 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1812 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1817 for ac_dir in $ac_dummy; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/$ac_word; then
1820 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1825 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1829 OPENSSL="$ac_cv_path_OPENSSL"
1830 if test -n "$OPENSSL"; then
1831 echo "$ac_t""$OPENSSL" 1>&6
1833 echo "$ac_t""no" 1>&6
1837 test -n "$ARFLAG" || ARFLAGS="cr"
1850 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1851 echo "configure:1852: checking for Operating System" >&5
1852 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1853 echo "configure:1854: checking for Cygwin environment" >&5
1854 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1864 #define __CYGWIN__ __CYGWIN32__
1869 if { (eval echo configure:1870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1882 echo "$ac_t""$ac_cv_cygwin" 1>&6
1884 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1885 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1891 HAVE_SUN_OS_FALSE='#'
1893 HAVE_SUN_OS_TRUE='#'
1896 cat >> confdefs.h <<\EOF
1897 #define HAVE_SUN_OS 1
1905 HAVE_SUN_OS_FALSE='#'
1907 HAVE_SUN_OS_TRUE='#'
1912 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1918 HAVE_OSF1_OS_FALSE='#'
1920 HAVE_OSF1_OS_TRUE='#'
1923 cat >> confdefs.h <<\EOF
1924 #define HAVE_OSF1_OS 1
1932 HAVE_OSF1_OS_FALSE='#'
1934 HAVE_OSF1_OS_TRUE='#'
1939 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1945 HAVE_AIX_OS_FALSE='#'
1947 HAVE_AIX_OS_TRUE='#'
1950 cat >> confdefs.h <<\EOF
1951 #define HAVE_AIX_OS 1
1959 HAVE_AIX_OS_FALSE='#'
1961 HAVE_AIX_OS_TRUE='#'
1966 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1972 HAVE_HPUX_OS_FALSE='#'
1974 HAVE_HPUX_OS_TRUE='#'
1977 cat >> confdefs.h <<\EOF
1978 #define HAVE_HPUX_OS 1
1986 HAVE_HPUX_OS_FALSE='#'
1988 HAVE_HPUX_OS_TRUE='#'
1993 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1999 HAVE_LINUX_OS_FALSE='#'
2001 HAVE_LINUX_OS_TRUE='#'
2002 HAVE_LINUX_OS_FALSE=
2004 cat >> confdefs.h <<\EOF
2005 #define HAVE_LINUX_OS 1
2013 HAVE_LINUX_OS_FALSE='#'
2015 HAVE_LINUX_OS_TRUE='#'
2016 HAVE_LINUX_OS_FALSE=
2020 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2025 HAVE_FREEBSD_OS_TRUE=
2026 HAVE_FREEBSD_OS_FALSE='#'
2028 HAVE_FREEBSD_OS_TRUE='#'
2029 HAVE_FREEBSD_OS_FALSE=
2031 cat >> confdefs.h <<\EOF
2032 #define HAVE_FREEBSD_OS 1
2039 HAVE_FREEBSD_OS_TRUE=
2040 HAVE_FREEBSD_OS_FALSE='#'
2042 HAVE_FREEBSD_OS_TRUE='#'
2043 HAVE_FREEBSD_OS_FALSE=
2047 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2052 HAVE_NETBSD_OS_TRUE=
2053 HAVE_NETBSD_OS_FALSE='#'
2055 HAVE_NETBSD_OS_TRUE='#'
2056 HAVE_NETBSD_OS_FALSE=
2058 cat >> confdefs.h <<\EOF
2059 #define HAVE_NETBSD_OS 1
2066 HAVE_NETBSD_OS_TRUE=
2067 HAVE_NETBSD_OS_FALSE='#'
2069 HAVE_NETBSD_OS_TRUE='#'
2070 HAVE_NETBSD_OS_FALSE=
2074 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2079 HAVE_OPENBSD_OS_TRUE=
2080 HAVE_OPENBSD_OS_FALSE='#'
2082 HAVE_OPENBSD_OS_TRUE='#'
2083 HAVE_OPENBSD_OS_FALSE=
2085 cat >> confdefs.h <<\EOF
2086 #define HAVE_OPENBSD_OS 1
2093 HAVE_OPENBSD_OS_TRUE=
2094 HAVE_OPENBSD_OS_FALSE='#'
2096 HAVE_OPENBSD_OS_TRUE='#'
2097 HAVE_OPENBSD_OS_FALSE=
2101 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2107 HAVE_BSDI_OS_FALSE='#'
2109 HAVE_BSDI_OS_TRUE='#'
2112 cat >> confdefs.h <<\EOF
2113 #define HAVE_BSDI_OS 1
2121 HAVE_BSDI_OS_FALSE='#'
2123 HAVE_BSDI_OS_TRUE='#'
2128 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2134 HAVE_SGI_OS_FALSE='#'
2136 HAVE_SGI_OS_TRUE='#'
2139 cat >> confdefs.h <<\EOF
2140 #define HAVE_SGI_OS 1
2148 HAVE_SGI_OS_FALSE='#'
2150 HAVE_SGI_OS_TRUE='#'
2155 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2161 HAVE_IRIX_OS_FALSE='#'
2163 HAVE_IRIX_OS_TRUE='#'
2166 cat >> confdefs.h <<\EOF
2167 #define HAVE_IRIX_OS 1
2175 HAVE_IRIX_OS_FALSE='#'
2177 HAVE_IRIX_OS_TRUE='#'
2182 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2187 HAVE_DARWIN_OS_TRUE=
2188 HAVE_DARWIN_OS_FALSE='#'
2190 HAVE_DARWIN_OS_TRUE='#'
2191 HAVE_DARWIN_OS_FALSE=
2193 cat >> confdefs.h <<\EOF
2194 #define HAVE_DARWIN_OS 1
2201 HAVE_DARWIN_OS_TRUE=
2202 HAVE_DARWIN_OS_FALSE='#'
2204 HAVE_DARWIN_OS_TRUE='#'
2205 HAVE_DARWIN_OS_FALSE=
2209 echo "$ac_t""" "" 1>&6
2212 # -----------------------------------------------------------
2213 # ----------------------------------------------------------
2214 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2215 echo "configure:2216: checking for Operating System Distribution" >&5
2216 if test "x$DISTNAME" != "x"
2218 echo "distname set to $DISTNAME"
2219 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2222 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
2225 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2228 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2231 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2234 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2237 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2240 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2243 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2246 elif test -f /etc/SuSE-release
2249 elif test -d /etc/SuSEconfig
2252 elif test -d /usr/src/OpenLinux
2255 elif test -f /etc/redhat-release
2258 elif test -f /etc/gentoo-release
2261 elif test -f /etc/debian_version
2264 elif test -f /etc/slackware-version
2267 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2270 elif test "$ac_cv_cygwin" = yes
2273 cat >> confdefs.h <<\EOF
2274 #define HAVE_CYGWIN 1
2280 echo "$ac_t""" "" 1>&6
2283 # -----------------------------------------------------------
2284 # ----------------------------------------------------------
2289 INSIDE_GNOME_COMMON_TRUE=
2290 INSIDE_GNOME_COMMON_FALSE='#'
2292 INSIDE_GNOME_COMMON_TRUE='#'
2293 INSIDE_GNOME_COMMON_FALSE=
2296 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2298 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2301 # ------------------------------------------------------------------
2302 # If the user has not set --prefix, we set our default to nothing.
2303 # In this case, if the user has not set --sysconfdir, we set it
2304 # to the package default of /etc/bacula. If either --prefix or
2305 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2306 # ------------------------------------------------------------------
2307 if test x${prefix} = xNONE ; then
2308 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2309 sysconfdir=/etc/bacula
2313 sysconfdir=`eval echo ${sysconfdir}`
2315 # -------------------------------------------------------------------------
2316 # If the user has not set --exec-prefix, we default to ${prefix}
2317 # -------------------------------------------------------------------------
2318 if test x${exec_prefix} = xNONE ; then
2319 exec_prefix=${prefix}
2322 # ------------------------------------------------------------------
2323 # If the user has not set --sbindir, we set our default as /sbin
2324 # ------------------------------------------------------------------
2325 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2326 sbindir=${exec_prefix}/sbin
2328 sbindir=`eval echo ${sbindir}`
2330 # ------------------------------------------------------------------
2331 # All list of languages for which a translation exist. Each
2332 # language is separated by a space.
2333 # ------------------------------------------------------------------
2336 for ac_prog in msgfmt
2338 # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy $ac_prog; ac_word=$2
2340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2341 echo "configure:2342: checking for $ac_word" >&5
2342 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2347 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2350 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2355 for ac_dir in $ac_dummy; do
2356 test -z "$ac_dir" && ac_dir=.
2357 if test -f $ac_dir/$ac_word; then
2358 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2366 MSGFMT="$ac_cv_path_MSGFMT"
2367 if test -n "$MSGFMT"; then
2368 echo "$ac_t""$MSGFMT" 1>&6
2370 echo "$ac_t""no" 1>&6
2373 test -n "$MSGFMT" && break
2375 test -n "$MSGFMT" || MSGFMT="no"
2377 if test "$MSGFMT" = "no"
2379 echo 'msgfmt program not found, disabling NLS !'
2381 USE_INCLUDED_LIBINTL=no
2389 support_smartalloc=yes
2390 support_readline=yes
2392 support_static_tools=no
2393 support_static_fd=no
2394 support_static_sd=no
2395 support_static_dir=no
2396 support_static_cons=no
2397 build_client_only=no
2403 # -------------------------------------------
2404 # gnome (default off)
2405 # -------------------------------------------
2406 # Check whether --enable-gnome or --disable-gnome was given.
2407 if test "${enable_gnome+set}" = set; then
2408 enableval="$enable_gnome"
2409 if test x$enableval = xyes; then
2416 if test x$support_gnome = xyes; then
2427 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2428 if test "${with_gnome_includes+set}" = set; then
2429 withval="$with_gnome_includes"
2431 CFLAGS="$CFLAGS -I$withval"
2436 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2437 if test "${with_gnome_libs+set}" = set; then
2438 withval="$with_gnome_libs"
2440 LDFLAGS="$LDFLAGS -L$withval"
2441 gnome_prefix=$withval
2446 # Check whether --with-gnome or --without-gnome was given.
2447 if test "${with_gnome+set}" = set; then
2448 withval="$with_gnome"
2449 if test x$withval = xyes; then
2453 if test "x$withval" = xno; then
2457 LDFLAGS="$LDFLAGS -L$withval/lib"
2458 CFLAGS="$CFLAGS -I$withval/include"
2459 gnome_prefix=$withval/lib
2467 if test "x$want_gnome" = xyes; then
2469 # Extract the first word of "gnome-config", so it can be a program name with args.
2470 set dummy gnome-config; ac_word=$2
2471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2472 echo "configure:2473: checking for $ac_word" >&5
2473 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 case "$GNOME_CONFIG" in
2478 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2481 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2486 for ac_dir in $ac_dummy; do
2487 test -z "$ac_dir" && ac_dir=.
2488 if test -f $ac_dir/$ac_word; then
2489 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2494 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2498 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2499 if test -n "$GNOME_CONFIG"; then
2500 echo "$ac_t""$GNOME_CONFIG" 1>&6
2502 echo "$ac_t""no" 1>&6
2505 if test "$GNOME_CONFIG" = "no"; then
2506 no_gnome_config="yes"
2508 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2509 echo "configure:2510: checking if $GNOME_CONFIG works" >&5
2510 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2511 echo "$ac_t""yes" 1>&6
2514 # Extract the first word of "orbit-config", so it can be a program name with args.
2515 set dummy orbit-config; ac_word=$2
2516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2517 echo "configure:2518: checking for $ac_word" >&5
2518 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 case "$ORBIT_CONFIG" in
2523 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2526 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2531 for ac_dir in $ac_dummy; do
2532 test -z "$ac_dir" && ac_dir=.
2533 if test -f $ac_dir/$ac_word; then
2534 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2539 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2543 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2544 if test -n "$ORBIT_CONFIG"; then
2545 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2547 echo "$ac_t""no" 1>&6
2550 # Extract the first word of "orbit-idl", so it can be a program name with args.
2551 set dummy orbit-idl; ac_word=$2
2552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2553 echo "configure:2554: checking for $ac_word" >&5
2554 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 case "$ORBIT_IDL" in
2559 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2562 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2567 for ac_dir in $ac_dummy; do
2568 test -z "$ac_dir" && ac_dir=.
2569 if test -f $ac_dir/$ac_word; then
2570 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2575 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2579 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2580 if test -n "$ORBIT_IDL"; then
2581 echo "$ac_t""$ORBIT_IDL" 1>&6
2583 echo "$ac_t""no" 1>&6
2586 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2587 echo "configure:2588: checking for working ORBit environment" >&5
2588 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2592 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2593 gnome_cv_orbit_found=no
2595 gnome_cv_orbit_found=yes
2600 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2603 if test x$gnome_cv_orbit_found = xyes; then
2605 HAVE_ORBIT_FALSE='#'
2610 if test x$gnome_cv_orbit_found = xyes; then
2612 ORBIT_CFLAGS=`orbit-config --cflags client server`
2613 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2617 if test xfail = xfailure; then
2618 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2622 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2623 echo "configure:2624: checking for gnorba libraries" >&5
2624 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2628 gnome_cv_gnorba_found=no
2629 if test x$gnome_cv_orbit_found = xyes; then
2630 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2631 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2632 if test -n "$GNORBA_LIBS"; then
2633 gnome_cv_gnorba_found=yes
2639 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2642 if test x$gnome_cv_gnorba_found = xyes; then
2644 HAVE_GNORBA_FALSE='#'
2646 HAVE_GNORBA_TRUE='#'
2649 if test x$gnome_cv_orbit_found = xyes; then
2651 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2652 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2656 if test xfail = xfailure; then
2657 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2661 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2662 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2663 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2664 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2665 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2666 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2667 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2670 echo "$ac_t""no" 1>&6
2671 no_gnome_config="yes"
2675 if test x$exec_prefix = xNONE; then
2676 if test x$prefix = xNONE; then
2677 gnome_prefix=$ac_default_prefix/lib
2679 gnome_prefix=$prefix/lib
2682 gnome_prefix=`eval echo \`echo $libdir\``
2685 if test "$no_gnome_config" = "yes"; then
2686 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2687 echo "configure:2688: checking for gnomeConf.sh file in $gnome_prefix" >&5
2688 if test -f $gnome_prefix/gnomeConf.sh; then
2689 echo "$ac_t""found" 1>&6
2690 echo "loading gnome configuration from" \
2691 "$gnome_prefix/gnomeConf.sh"
2692 . $gnome_prefix/gnomeConf.sh
2695 echo "$ac_t""not found" 1>&6
2696 if test xfail = xfail; then
2697 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2706 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2707 echo "configure:2708: checking extra library \"$i\"" >&5
2711 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2712 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2715 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2716 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2719 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2720 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2722 echo "$ac_t""unknown library" 1>&6
2724 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2725 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2730 GNOME_DIR=src/gnome-console
2735 # -------------------------------------------
2736 # smartalloc (default off)
2737 # -------------------------------------------
2738 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2739 if test "${enable_smartalloc+set}" = set; then
2740 enableval="$enable_smartalloc"
2741 if test x$enableval = xno; then
2742 support_smartalloc=no
2747 if test x$support_smartalloc = xyes; then
2748 cat >> confdefs.h <<\EOF
2749 #define SMARTALLOC 1
2754 # -------------------------------------------
2755 # static-tools (default off)
2756 # -------------------------------------------
2757 # Check whether --enable-static-tools or --disable-static-tools was given.
2758 if test "${enable_static_tools+set}" = set; then
2759 enableval="$enable_static_tools"
2760 if test x$enableval = xyes; then
2761 support_static_tools=yes
2767 if test x$support_static_tools = xyes; then
2768 TTOOL_LDFLAGS="-static"
2772 # -------------------------------------------
2773 # static-fd (default off)
2774 # -------------------------------------------
2775 # Check whether --enable-static-fd or --disable-static-fd was given.
2776 if test "${enable_static_fd+set}" = set; then
2777 enableval="$enable_static_fd"
2778 if test x$enableval = xyes; then
2779 support_static_fd=yes
2785 if test x$support_static_fd = xyes; then
2786 STATIC_FD="static-bacula-fd"
2790 # -------------------------------------------
2791 # static-sd (default off)
2792 # -------------------------------------------
2793 # Check whether --enable-static-sd or --disable-static-sd was given.
2794 if test "${enable_static_sd+set}" = set; then
2795 enableval="$enable_static_sd"
2796 if test x$enableval = xyes; then
2797 support_static_sd=yes
2803 if test x$support_static_sd = xyes; then
2804 STATIC_SD="static-bacula-sd"
2808 # -------------------------------------------
2809 # static-dir (default off)
2810 # -------------------------------------------
2811 # Check whether --enable-static-dir or --disable-static-dir was given.
2812 if test "${enable_static_dir+set}" = set; then
2813 enableval="$enable_static_dir"
2814 if test x$enableval = xyes; then
2815 support_static_dir=yes
2821 if test x$support_static_dir = xyes; then
2822 STATIC_DIR="static-bacula-dir"
2826 # -------------------------------------------
2827 # static-cons (default off)
2828 # -------------------------------------------
2829 # Check whether --enable-static-cons or --disable-static-cons was given.
2830 if test "${enable_static_cons+set}" = set; then
2831 enableval="$enable_static_cons"
2832 if test x$enableval = xyes; then
2833 support_static_cons=yes
2839 if test x$support_static_cons = xyes; then
2840 STATIC_CONS="static-console"
2844 # -------------------------------------------
2845 # client_only (default off)
2846 # -------------------------------------------
2847 # Check whether --enable-client-only or --disable-client-only was given.
2848 if test "${enable_client_only+set}" = set; then
2849 enableval="$enable_client_only"
2850 if test x$enableval = xyes; then
2851 build_client_only=yes
2855 if test x$build_client_only = xno; then
2862 # ---------------------------------------------------
2863 # Check for readline support/directory (default on)
2864 # ---------------------------------------------------
2865 # this allows you to turn it completely off
2866 # Check whether --enable-readline or --disable-readline was given.
2867 if test "${enable_readline+set}" = set; then
2868 enableval="$enable_readline"
2869 if test x$enableval = xno; then
2877 if test x$support_readline = xyes; then
2878 # Check whether --with-readline or --without-readline was given.
2879 if test "${with_readline+set}" = set; then
2880 withval="$with_readline"
2882 case "$with_readline" in
2885 if test "$with_readline" != "yes"; then
2886 CONS_INC="-I$with_readline"
2887 CONS_LDFLAGS="-L$with_readline"
2889 with_readline="/usr/include/readline"
2891 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2892 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2893 echo "configure:2894: checking for $with_readline/readline.h" >&5
2894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2897 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2900 #include <$with_readline/readline.h>
2902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2903 { (eval echo configure:2904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2905 if test -z "$ac_err"; then
2907 eval "ac_cv_header_$ac_safe=yes"
2910 echo "configure: failed program was:" >&5
2911 cat conftest.$ac_ext >&5
2913 eval "ac_cv_header_$ac_safe=no"
2917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2918 echo "$ac_t""yes" 1>&6
2919 echo "$ac_t""yes" 1>&6
2920 cat >> confdefs.h <<\EOF
2921 #define HAVE_READLINE 1
2924 CONS_LIBS="-lreadline -ltermcap"
2928 echo "$ac_t""no" 1>&6
2929 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2939 # check for standard readline library
2940 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2941 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2942 echo "configure:2943: checking for /usr/include/readline/readline.h" >&5
2943 if eval "test \"`echo '$''{'ac_cv_header_$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 </usr/include/readline/readline.h>
2951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2952 { (eval echo configure:2953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2954 if test -z "$ac_err"; then
2956 eval "ac_cv_header_$ac_safe=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 eval "ac_cv_header_$ac_safe=no"
2966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 echo "$ac_t""yes" 1>&6
2969 cat >> confdefs.h <<\EOF
2970 #define HAVE_READLINE 1
2974 CONS_INC="-I/usr/include/readline"
2975 CONS_LIBS="-lreadline -ltermcap"
2978 echo "$ac_t""no" 1>&6
2980 # Did not find starndard library, so user our own
2981 echo "$ac_t""yes" 1>&6
2982 cat >> confdefs.h <<\EOF
2983 #define HAVE_READLINE 1
2987 CONS_INC="-I${TOP_DIR}/depkgs"
2988 CONS_LIBS="-lreadline -lhistory -ltermcap"
2989 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2990 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
3004 # Minimal stuff for readline Makefile configuration
3008 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3009 echo "configure:3010: checking whether stat file-mode macros are broken" >&5
3010 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 #include <sys/types.h>
3017 #include <sys/stat.h>
3019 #if defined(S_ISBLK) && defined(S_IFDIR)
3020 # if S_ISBLK (S_IFDIR)
3025 #if defined(S_ISBLK) && defined(S_IFCHR)
3026 # if S_ISBLK (S_IFCHR)
3031 #if defined(S_ISLNK) && defined(S_IFREG)
3032 # if S_ISLNK (S_IFREG)
3037 #if defined(S_ISSOCK) && defined(S_IFREG)
3038 # if S_ISSOCK (S_IFREG)
3044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3045 egrep "You lose" >/dev/null 2>&1; then
3047 ac_cv_header_stat_broken=yes
3050 ac_cv_header_stat_broken=no
3056 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3057 if test $ac_cv_header_stat_broken = yes; then
3058 cat >> confdefs.h <<\EOF
3059 #define STAT_MACROS_BROKEN 1
3065 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3068 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3069 echo "configure:3070: checking for $ac_hdr that defines DIR" >&5
3070 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 #include <sys/types.h>
3082 if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 eval "ac_cv_header_dirent_$ac_safe=yes"
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3089 eval "ac_cv_header_dirent_$ac_safe=no"
3093 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3096 cat >> confdefs.h <<EOF
3097 #define $ac_tr_hdr 1
3099 ac_header_dirent=$ac_hdr; break
3101 echo "$ac_t""no" 1>&6
3104 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3105 if test $ac_header_dirent = dirent.h; then
3106 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3107 echo "configure:3108: checking for opendir in -ldir" >&5
3108 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 ac_save_LIBS="$LIBS"
3114 cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3117 /* Override any gcc2 internal prototype to avoid an error. */
3118 /* We use char because int might match the return type of a gcc2
3119 builtin and then its argument prototype would still apply. */
3126 if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3128 eval "ac_cv_lib_$ac_lib_var=yes"
3130 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3133 eval "ac_cv_lib_$ac_lib_var=no"
3136 LIBS="$ac_save_LIBS"
3139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3140 echo "$ac_t""yes" 1>&6
3143 echo "$ac_t""no" 1>&6
3147 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3148 echo "configure:3149: checking for opendir in -lx" >&5
3149 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 ac_save_LIBS="$LIBS"
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3158 /* Override any gcc2 internal prototype to avoid an error. */
3159 /* We use char because int might match the return type of a gcc2
3160 builtin and then its argument prototype would still apply. */
3167 if { (eval echo configure:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3169 eval "ac_cv_lib_$ac_lib_var=yes"
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3174 eval "ac_cv_lib_$ac_lib_var=no"
3177 LIBS="$ac_save_LIBS"
3180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3181 echo "$ac_t""yes" 1>&6
3184 echo "$ac_t""no" 1>&6
3190 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3193 echo "configure:3194: checking for $ac_func" >&5
3194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 /* System header to define __stub macros and hopefully few prototypes,
3201 which can conflict with char $ac_func(); below. */
3203 /* Override any gcc2 internal prototype to avoid an error. */
3204 /* We use char because int might match the return type of a gcc2
3205 builtin and then its argument prototype would still apply. */
3210 /* The GNU C library defines this for functions which it implements
3211 to always fail with ENOSYS. Some functions are actually named
3212 something starting with __ and the normal name is an alias. */
3213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3223 eval "ac_cv_func_$ac_func=yes"
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3228 eval "ac_cv_func_$ac_func=no"
3233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3236 cat >> confdefs.h <<EOF
3237 #define $ac_tr_func 1
3241 echo "$ac_t""no" 1>&6
3246 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3247 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3248 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3250 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3251 echo "configure:3252: checking for getopt_long" >&5
3252 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 /* System header to define __stub macros and hopefully few prototypes,
3259 which can conflict with char getopt_long(); below. */
3261 /* Override any gcc2 internal prototype to avoid an error. */
3262 /* We use char because int might match the return type of a gcc2
3263 builtin and then its argument prototype would still apply. */
3268 /* The GNU C library defines this for functions which it implements
3269 to always fail with ENOSYS. Some functions are actually named
3270 something starting with __ and the normal name is an alias. */
3271 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3279 if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3281 eval "ac_cv_func_getopt_long=yes"
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3286 eval "ac_cv_func_getopt_long=no"
3291 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3293 cat >> confdefs.h <<\EOF
3294 #define HAVE_GETOPT_LONG 1
3298 echo "$ac_t""no" 1>&6
3303 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3304 echo "configure:3305: checking for working strcoll" >&5
3305 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 if test "$cross_compiling" = yes; then
3309 ac_cv_func_strcoll_works=no
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3317 exit (strcoll ("abc", "def") >= 0 ||
3318 strcoll ("ABC", "DEF") >= 0 ||
3319 strcoll ("123", "456") >= 0);
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3324 ac_cv_func_strcoll_works=yes
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3329 ac_cv_func_strcoll_works=no
3336 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3337 if test $ac_cv_func_strcoll_works = yes; then
3338 cat >> confdefs.h <<\EOF
3339 #define HAVE_STRCOLL 1
3345 for ac_hdr in varargs.h \
3346 sys/ptem.h sys/pte.h sys/stream.h
3348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_hdr" >&5
3351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3360 { (eval echo configure:3361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3362 if test -z "$ac_err"; then
3364 eval "ac_cv_header_$ac_safe=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3370 eval "ac_cv_header_$ac_safe=no"
3374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3375 echo "$ac_t""yes" 1>&6
3376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3377 cat >> confdefs.h <<EOF
3378 #define $ac_tr_hdr 1
3382 echo "$ac_t""no" 1>&6
3387 # End of readline stuff
3388 # -----------------------------------------------------------------------
3391 # ---------------------------------------------------
3392 # Check for GMP support/directory
3393 # ---------------------------------------------------
3397 # [ --with-gmp[=DIR] Specify gmp library directory],
3399 # case "$with_gmp" in
3402 # if test "$with_gmp" != "yes"; then
3403 # GMP_INC="-I$with_gmp"
3405 # GMP_LDFLAGS="-L$with_gmp"
3407 # with_gmp="/usr/include"
3409 # AC_CHECK_HEADER($with_gmp/gmp.h,
3410 # [ AC_MSG_RESULT(yes)
3411 # AC_DEFINE(HAVE_GMP)
3415 # [ AC_MSG_ERROR([*** gmp library missing])
3421 # # check for standard gmp library
3422 # AC_CHECK_HEADER(/usr/include/gmp.h,
3423 # [ AC_MSG_RESULT(yes)
3424 # AC_DEFINE(HAVE_GMP)
3429 # # Did not find standard library, so use our own
3430 # AC_MSG_RESULT(yes)
3431 # AC_DEFINE(HAVE_GMP)
3434 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3436 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3437 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3443 #AC_SUBST(GMP_LDFLAGS)
3447 # -----------------------------------------------------------------------
3450 # ---------------------------------------------------
3451 # Check for CWEB support/directory
3452 # ---------------------------------------------------
3457 # [ --with-cweb[=DIR] Specify cweb library directory],
3459 # case "$with_cweb" in
3462 # if test "$with_cweb" != "yes"; then
3463 # CWEB_INC="-I$with_cweb"
3464 # CWEB_LIBS="-lcweb"
3465 # CWEB_LDFLAGS="-L$with_cweb"
3467 # with_cweb="/usr/include"
3469 # AC_CHECK_HEADER($with_cweb/cweb.h,
3470 # [ AC_MSG_RESULT(yes)
3471 # AC_DEFINE(HAVE_CWEB)
3472 # CWEB_LIBS="-lcweb"
3475 # [ AC_MSG_ERROR([*** cweb library missing])
3481 # # check for standard cweb library
3482 # AC_CHECK_HEADER(/usr/include/cweb.h,
3483 # [ AC_MSG_RESULT(yes)
3484 # AC_DEFINE(HAVE_CWEB)
3487 # CWEB_LIBS="-lcweb"
3489 # # Did not find starndard library, so use our own
3490 # AC_MSG_RESULT(yes)
3491 # AC_DEFINE(HAVE_CWEB)
3494 # CWEB=${TOP_DIR}/depkgs/cweb
3495 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3496 # CWEB_LIBS="-lcweb"
3497 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3498 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3504 #AC_SUBST(CWEB_LIBS)
3505 #AC_SUBST(CWEB_LDFLAGS)
3509 # -----------------------------------------------------------------------
3513 # -----------------------------------------------------------
3514 # Check whether user wants TCP wrappers support (default off)
3515 # -----------------------------------------------------------
3517 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3518 if test "${with_tcp_wrappers+set}" = set; then
3519 withval="$with_tcp_wrappers"
3521 if test "x$withval" != "xno" ; then
3523 LIBS="$LIBS -lwrap -lnsl"
3524 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3525 echo "configure:3526: checking for libwrap" >&5
3526 cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3530 int deny_severity = 0;
3531 int allow_severity = 0;
3532 struct request_info *req;
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3540 echo "$ac_t""yes" 1>&6
3541 cat >> confdefs.h <<\EOF
3542 #define HAVE_LIBWRAP 1
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3561 # ------------------------------------------
3562 # Where to place working dir
3563 # ------------------------------------------
3564 working_dir=`eval echo ${sysconfdir}/working`
3565 # Check whether --with-working-dir or --without-working-dir was given.
3566 if test "${with_working_dir+set}" = set; then
3567 withval="$with_working_dir"
3569 if test "x$withval" != "xno" ; then
3570 working_dir=$withval
3580 # ------------------------------------------
3581 # Where to place scriptdir (script files)
3582 # ------------------------------------------
3583 scriptdir=`eval echo ${sysconfdir}`
3584 # Check whether --with-scriptdir or --without-scriptdir was given.
3585 if test "${with_scriptdir+set}" = set; then
3586 withval="$with_scriptdir"
3588 if test "x$withval" != "xno" ; then
3599 # ------------------------------------------
3600 # Where to send dump email
3601 # ------------------------------------------
3602 dump_email=root@localhost
3603 # Check whether --with-dump-email or --without-dump-email was given.
3604 if test "${with_dump_email+set}" = set; then
3605 withval="$with_dump_email"
3607 if test "x$withval" != "xno" ; then
3617 # ------------------------------------------
3618 # Where to send job email
3619 # ------------------------------------------
3620 job_email=root@localhost
3621 # Check whether --with-job-email or --without-job-email was given.
3622 if test "${with_job_email+set}" = set; then
3623 withval="$with_job_email"
3625 if test "x$withval" != "xno" ; then
3635 # ------------------------------------------
3636 # Where to find smtp host
3637 # ------------------------------------------
3639 # Check whether --with-smtp_host or --without-smtp_host was given.
3640 if test "${with_smtp_host+set}" = set; then
3641 withval="$with_smtp_host"
3643 if test "x$withval" != "xno" ; then
3654 # ------------------------------------
3655 # Where to place pid files
3656 # ------------------------------------
3658 # Check whether --with-pid-dir or --without-pid-dir was given.
3659 if test "${with_pid_dir+set}" = set; then
3660 withval="$with_pid_dir"
3662 if test "x$withval" != "xno" ; then
3670 # make sure the pid directory exists
3671 if test ! -d $piddir ; then
3672 piddir=`eval echo ${sysconfdir}`
3674 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3678 cat >> confdefs.h <<EOF
3679 #define _PATH_BACULA_PIDDIR "$piddir"
3685 # ------------------------------------
3686 # Where to place subsys "lock file"
3687 # ------------------------------------
3688 subsysdir=/var/run/subsys
3689 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3690 if test "${with_subsys_dir+set}" = set; then
3691 withval="$with_subsys_dir"
3693 if test "x$withval" != "xno" ; then
3701 # make sure the pid directory exists
3702 if test ! -d $subsysdir ; then
3703 subsysdir=`eval echo ${sysconfdir}`
3705 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3713 # ------------------------------------
3714 # Where to start assigning ports
3715 # ------------------------------------
3717 # Check whether --with-baseport or --without-baseport was given.
3718 if test "${with_baseport+set}" = set; then
3719 withval="$with_baseport"
3721 if test "x$withval" != "xno" ; then
3730 dir_port=`expr $baseport`
3731 fd_port=`expr $baseport + 1`
3732 sd_port=`expr $fd_port + 1`
3739 # ------------------------------------------
3740 # Generate passwords
3741 # ------------------------------------------
3743 # Check whether --with-dir-password or --without-dir-password was given.
3744 if test "${with_dir_password+set}" = set; then
3745 withval="$with_dir_password"
3747 if test "x$withval" != "xno" ; then
3748 dir_password=$withval
3755 if test "x$dir_password" = "x" ; then
3756 if test "x$OPENSSL" = "xnone" ; then
3757 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3758 key=`autoconf/randpass 33`
3760 key=`openssl rand -base64 33`
3766 # Check whether --with-fd-password or --without-fd-password was given.
3767 if test "${with_fd_password+set}" = set; then
3768 withval="$with_fd_password"
3770 if test "x$withval" != "xno" ; then
3771 fd_password=$withval
3778 if test "x$fd_password" = "x" ; then
3779 if test "x$OPENSSL" = "xnone" ; then
3780 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3781 key=`autoconf/randpass 37`
3783 key=`openssl rand -base64 33`
3789 # Check whether --with-sd-password or --without-sd-password was given.
3790 if test "${with_sd_password+set}" = set; then
3791 withval="$with_sd_password"
3793 if test "x$withval" != "xno" ; then
3794 sd_password=$withval
3801 if test "x$sd_password" = "x" ; then
3802 if test "x$OPENSSL" = "xnone" ; then
3803 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3804 key=`autocnf/randpass 41`
3806 key=`openssl rand -base64 33`
3819 # ------------------------------------------------
3820 # Bacula check for various SQL database engines
3821 # ------------------------------------------------
3824 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3825 echo "configure:3826: checking for MySQL support" >&5
3826 # Check whether --with-mysql or --without-mysql was given.
3827 if test "${with_mysql+set}" = set; then
3828 withval="$with_mysql"
3830 if test "$withval" != "no"; then
3831 if test "$withval" = "yes"; then
3832 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3833 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3834 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3835 MYSQL_BINDIR=/usr/local/mysql/bin
3836 elif test -f /usr/include/mysql/mysql.h; then
3837 MYSQL_INCDIR=/usr/include/mysql
3838 MYSQL_LIBDIR=/usr/lib/mysql
3839 MYSQL_BINDIR=/usr/bin
3840 elif test -f /usr/include/mysql.h; then
3841 MYSQL_INCDIR=/usr/include
3842 MYSQL_LIBDIR=/usr/lib
3843 MYSQL_BINDIR=/usr/bin
3844 elif test -f /usr/local/include/mysql/mysql.h; then
3845 MYSQL_INCDIR=/usr/local/include/mysql
3846 MYSQL_LIBDIR=/usr/local/lib/mysql
3847 MYSQL_BINDIR=/usr/local/bin
3848 elif test -f /usr/local/include/mysql.h; then
3849 MYSQL_INCDIR=/usr/local/include
3850 MYSQL_LIBDIR=/usr/local/lib
3851 MYSQL_BINDIR=/usr/local/bin
3853 echo "$ac_t""no" 1>&6
3854 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3857 if test -f $withval/include/mysql/mysql.h; then
3858 MYSQL_INCDIR=$withval/include/mysql
3859 MYSQL_LIBDIR=$withval/lib/mysql
3860 MYSQL_BINDIR=$withval/bin
3861 elif test -f $withval/include/mysql.h; then
3862 MYSQL_INCDIR=$withval/include
3863 MYSQL_LIBDIR=$withval/lib
3864 MYSQL_BINDIR=$withval/bin
3866 echo "$ac_t""no" 1>&6
3867 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3870 SQL_INCLUDE=-I$MYSQL_INCDIR
3871 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
3872 SQL_BINDIR=$MYSQL_BINDIR
3874 cat >> confdefs.h <<\EOF
3875 #define HAVE_MYSQL 1
3878 echo "$ac_t""yes" 1>&6
3885 echo "$ac_t""no" 1>&6
3890 echo "$ac_t""no" 1>&6
3895 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
3896 if test "${with_embedded_mysql+set}" = set; then
3897 withval="$with_embedded_mysql"
3899 if test "$withval" != "no"; then
3900 if test "$withval" = "yes"; then
3901 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3902 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3903 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3904 MYSQL_BINDIR=/usr/local/mysql/bin
3905 elif test -f /usr/include/mysql/mysql.h; then
3906 MYSQL_INCDIR=/usr/include/mysql
3907 MYSQL_LIBDIR=/usr/lib/mysql
3908 MYSQL_BINDIR=/usr/bin
3909 elif test -f /usr/include/mysql.h; then
3910 MYSQL_INCDIR=/usr/include
3911 MYSQL_LIBDIR=/usr/lib
3912 MYSQL_BINDIR=/usr/bin
3913 elif test -f /usr/local/include/mysql/mysql.h; then
3914 MYSQL_INCDIR=/usr/local/include/mysql
3915 MYSQL_LIBDIR=/usr/local/lib/mysql
3916 MYSQL_BINDIR=/usr/local/bin
3917 elif test -f /usr/local/include/mysql.h; then
3918 MYSQL_INCDIR=/usr/local/include
3919 MYSQL_LIBDIR=/usr/local/lib
3920 MYSQL_BINDIR=/usr/local/bin
3922 echo "$ac_t""no" 1>&6
3923 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3926 if test -f $withval/include/mysql/mysql.h; then
3927 MYSQL_INCDIR=$withval/include/mysql
3928 MYSQL_LIBDIR=$withval/lib/mysql
3929 MYSQL_BINDIR=$withval/bin
3930 elif test -f $withval/include/mysql.h; then
3931 MYSQL_INCDIR=$withval/include
3932 MYSQL_LIBDIR=$withval/lib
3933 MYSQL_BINDIR=$withval/bin
3935 echo "$ac_t""no" 1>&6
3936 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3939 SQL_INCLUDE=-I$MYSQL_INCDIR
3940 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
3941 SQL_BINDIR=$MYSQL_BINDIR
3943 cat >> confdefs.h <<\EOF
3944 #define HAVE_MYSQL 1
3947 cat >> confdefs.h <<\EOF
3948 #define HAVE_EMBEDDED_MYSQL 1
3951 echo "$ac_t""yes" 1>&6
3958 echo "$ac_t""no" 1>&6
3963 echo "$ac_t""no" 1>&6
3976 # ------------------------------------------------
3977 # Bacula check for various SQL database engines
3978 # ------------------------------------------------
3981 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3982 echo "configure:3983: checking for SQLite support" >&5
3983 # Check whether --with-sqlite or --without-sqlite was given.
3984 if test "${with_sqlite+set}" = set; then
3985 withval="$with_sqlite"
3987 if test "$withval" != "no"; then
3988 if test "$withval" = "yes"; then
3989 if test -f /usr/local/include/sqlite.h; then
3990 SQLITE_INCDIR=/usr/local/include
3991 SQLITE_LIBDIR=/usr/local/lib
3992 SQLITE_BINDIR=/usr/local/bin
3993 elif test -f /usr/include/sqlite.h; then
3994 SQLITE_INCDIR=/usr/include
3995 SQLITE_LIBDIR=/usr/lib
3996 SQLITE_BINDIR=/usr/bin
3998 echo "$ac_t""no" 1>&6
3999 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
4002 if test -f $withval/sqlite.h; then
4003 SQLITE_INCDIR=$withval
4004 SQLITE_LIBDIR=$withval
4005 SQLITE_BINDIR=$withval
4007 echo "$ac_t""no" 1>&6
4008 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
4011 SQL_INCLUDE=-I$SQLITE_INCDIR
4012 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
4013 SQL_BINDIR=$SQLITE_BINDIR
4015 cat >> confdefs.h <<\EOF
4016 #define HAVE_SQLITE 1
4019 echo "$ac_t""yes" 1>&6
4026 echo "$ac_t""no" 1>&6
4031 echo "$ac_t""no" 1>&6
4044 cat >> confdefs.h <<\EOF
4045 #define PROTOTYPES 1
4049 if test -z "$CFLAGS"; then
4050 if test -z "$CCOPTS"; then
4057 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4058 echo "configure:4059: checking for mingw32 environment" >&5
4059 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4070 if { (eval echo configure:4071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4083 echo "$ac_t""$ac_cv_mingw32" 1>&6
4085 test "$ac_cv_mingw32" = yes && MINGW32=yes
4088 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4089 echo "configure:4090: checking for executable suffix" >&5
4090 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4097 echo 'int main () { return 0; }' > conftest.$ac_ext
4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4100 for file in conftest.*; do
4102 *.c | *.o | *.obj) ;;
4103 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4107 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4110 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4115 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4116 echo "$ac_t""${ac_cv_exeext}" 1>&6
4120 largefile_support="no"
4121 echo $ac_n "checking build system type""... $ac_c" 1>&6
4122 echo "configure:4123: checking build system type" >&5
4125 case "$build_alias" in
4128 NONE) build_alias=$host_alias ;;
4129 *) build_alias=$nonopt ;;
4133 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4134 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4135 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4136 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4137 echo "$ac_t""$build" 1>&6
4139 if test $host != $build; then
4140 ac_tool_prefix=${host_alias}-
4146 # Check whether --enable-largefile or --disable-largefile was given.
4147 if test "${enable_largefile+set}" = set; then
4148 enableval="$enable_largefile"
4152 if test "$enable_largefile" != no; then
4153 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4154 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4156 echo "configure:4157: checking for $ac_word" >&5
4157 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 if test -n "$GETCONF"; then
4161 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4165 for ac_dir in $ac_dummy; do
4166 test -z "$ac_dir" && ac_dir=.
4167 if test -f $ac_dir/$ac_word; then
4168 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4173 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4176 GETCONF="$ac_cv_prog_GETCONF"
4177 if test -n "$GETCONF"; then
4178 echo "$ac_t""$GETCONF" 1>&6
4180 echo "$ac_t""no" 1>&6
4185 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4186 echo "configure:4187: checking for CFLAGS value to request large file support" >&5
4187 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4191 ac_cv_sys_largefile_CFLAGS=no
4193 # IRIX 6.2 and later require cc -n32.
4194 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4195 if test "$GCC" != yes; then
4196 ac_cv_sys_largefile_CFLAGS=-n32
4199 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4208 if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4214 ac_cv_sys_largefile_CFLAGS=no
4222 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4223 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4224 echo "configure:4225: checking for LDFLAGS value to request large file support" >&5
4225 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4229 ac_cv_sys_largefile_LDFLAGS=no
4234 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4235 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4236 echo "configure:4237: checking for LIBS value to request large file support" >&5
4237 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4241 ac_cv_sys_largefile_LIBS=no
4246 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4248 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4251 -D_FILE_OFFSET_BITS=*) ;;
4252 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4253 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4259 '') CPPFLAGS="$ac_flag" ;;
4260 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4268 '') CFLAGS="$ac_flag" ;;
4269 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4274 case "$ac_cv_sys_largefile_LDFLAGS" in
4278 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4279 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4282 case "$ac_cv_sys_largefile_LIBS" in
4286 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4287 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4290 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4291 echo "configure:4292: checking for _FILE_OFFSET_BITS" >&5
4292 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 ac_cv_sys_file_offset_bits=no
4297 # HP-UX 10.20 and later
4298 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4299 ac_cv_sys_file_offset_bits=64 ;;
4301 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4303 -D_FILE_OFFSET_BITS)
4304 ac_cv_sys_file_offset_bits=1 ;;
4305 -D_FILE_OFFSET_BITS=*)
4306 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4312 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4313 if test "$ac_cv_sys_file_offset_bits" != no; then
4314 cat >> confdefs.h <<EOF
4315 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4319 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4320 echo "configure:4321: checking for _LARGEFILE_SOURCE" >&5
4321 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 ac_cv_sys_largefile_source=no
4326 # HP-UX 10.20 and later
4327 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4328 ac_cv_sys_largefile_source=1 ;;
4330 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4332 -D_LARGEFILE_SOURCE)
4333 ac_cv_sys_largefile_source=1 ;;
4334 -D_LARGEFILE_SOURCE=*)
4335 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4341 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4342 if test "$ac_cv_sys_largefile_source" != no; then
4343 cat >> confdefs.h <<EOF
4344 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4348 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4349 echo "configure:4350: checking for _LARGE_FILES" >&5
4350 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 ac_cv_sys_large_files=no
4356 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4357 ac_cv_sys_large_files=1 ;;
4359 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4362 ac_cv_sys_large_files=1 ;;
4364 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4370 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4371 if test "$ac_cv_sys_large_files" != no; then
4372 cat >> confdefs.h <<EOF
4373 #define _LARGE_FILES $ac_cv_sys_large_files
4381 # If we find X, set shell vars x_includes and x_libraries to the
4382 # paths, otherwise set no_x=yes.
4383 # Uses ac_ vars as temps to allow command line to override cache and checks.
4384 # --without-x overrides everything else, but does not touch the cache.
4385 echo $ac_n "checking for X""... $ac_c" 1>&6
4386 echo "configure:4387: checking for X" >&5
4388 # Check whether --with-x or --without-x was given.
4389 if test "${with_x+set}" = set; then
4394 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4395 if test "x$with_x" = xno; then
4396 # The user explicitly disabled X.
4399 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4400 # Both variables are already set.
4403 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4406 # One or both of the vars are not set, and there is no cached value.
4407 ac_x_includes=NO ac_x_libraries=NO
4409 if mkdir conftestdir; then
4411 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4412 cat > Imakefile <<'EOF'
4414 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4416 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4417 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4418 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4419 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4420 for ac_extension in a so sl; do
4421 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4422 test -f $ac_im_libdir/libX11.$ac_extension; then
4423 ac_im_usrlibdir=$ac_im_libdir; break
4426 # Screen out bogus values from the imake configuration. They are
4427 # bogus both because they are the default anyway, and because
4428 # using them would break gcc on systems where it needs fixed includes.
4429 case "$ac_im_incroot" in
4431 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4433 case "$ac_im_usrlibdir" in
4435 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4442 if test "$ac_x_includes" = NO; then
4443 # Guess where to find include files, by looking for this one X11 .h file.
4444 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4446 # First, try using that file with no special directory specified.
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 #include <$x_direct_test_include>
4452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4453 { (eval echo configure:4454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4455 if test -z "$ac_err"; then
4457 # We can compile using X headers with no special include directory.
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4464 # Look for the header file in a standard set of common directories.
4465 # Check X11 before X11Rn because it is often a symlink to the current release.
4468 /usr/X11R6/include \
4469 /usr/X11R5/include \
4470 /usr/X11R4/include \
4473 /usr/include/X11R6 \
4474 /usr/include/X11R5 \
4475 /usr/include/X11R4 \
4477 /usr/local/X11/include \
4478 /usr/local/X11R6/include \
4479 /usr/local/X11R5/include \
4480 /usr/local/X11R4/include \
4482 /usr/local/include/X11 \
4483 /usr/local/include/X11R6 \
4484 /usr/local/include/X11R5 \
4485 /usr/local/include/X11R4 \
4489 /usr/XFree86/include/X11 \
4492 /usr/local/include \
4493 /usr/unsupported/include \
4494 /usr/athena/include \
4495 /usr/local/x11r5/include \
4496 /usr/lpp/Xamples/include \
4498 /usr/openwin/include \
4499 /usr/openwin/share/include \
4502 if test -r "$ac_dir/$x_direct_test_include"; then
4503 ac_x_includes=$ac_dir
4509 fi # $ac_x_includes = NO
4511 if test "$ac_x_libraries" = NO; then
4512 # Check for the libraries.
4514 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4515 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4517 # See if we find them without any special options.
4518 # Don't add to $LIBS permanently.
4519 ac_save_LIBS="$LIBS"
4520 LIBS="-l$x_direct_test_library $LIBS"
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4526 ${x_direct_test_function}()
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4531 LIBS="$ac_save_LIBS"
4532 # We can link X programs with no special library path.
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4538 LIBS="$ac_save_LIBS"
4539 # First see if replacing the include by lib works.
4540 # Check X11 before X11Rn because it is often a symlink to the current release.
4541 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4552 /usr/local/X11/lib \
4553 /usr/local/X11R6/lib \
4554 /usr/local/X11R5/lib \
4555 /usr/local/X11R4/lib \
4557 /usr/local/lib/X11 \
4558 /usr/local/lib/X11R6 \
4559 /usr/local/lib/X11R5 \
4560 /usr/local/lib/X11R4 \
4564 /usr/XFree86/lib/X11 \
4568 /usr/unsupported/lib \
4570 /usr/local/x11r5/lib \
4571 /usr/lpp/Xamples/lib \
4575 /usr/openwin/share/lib \
4578 for ac_extension in a so sl; do
4579 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4580 ac_x_libraries=$ac_dir
4587 fi # $ac_x_libraries = NO
4589 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4590 # Didn't find X anywhere. Cache the known absence of X.
4591 ac_cv_have_x="have_x=no"
4593 # Record where we found X for the cache.
4594 ac_cv_have_x="have_x=yes \
4595 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4599 eval "$ac_cv_have_x"
4602 if test "$have_x" != yes; then
4603 echo "$ac_t""$have_x" 1>&6
4606 # If each of the values was on the command line, it overrides each guess.
4607 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4608 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4609 # Update the cache value to reflect the command line values.
4610 ac_cv_have_x="have_x=yes \
4611 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4612 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4615 if test "$no_x" = yes; then
4616 # Not all programs may use this symbol, but it does not hurt to define it.
4617 cat >> confdefs.h <<\EOF
4618 #define X_DISPLAY_MISSING 1
4621 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4623 if test -n "$x_includes"; then
4624 X_CFLAGS="$X_CFLAGS -I$x_includes"
4627 # It would also be nice to do this for all -L options, not just this one.
4628 if test -n "$x_libraries"; then
4629 X_LIBS="$X_LIBS -L$x_libraries"
4630 # For Solaris; some versions of Sun CC require a space after -R and
4631 # others require no space. Words are not sufficient . . . .
4632 case "`(uname -sr) 2>/dev/null`" in
4634 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4635 echo "configure:4636: checking whether -R must be followed by a space" >&5
4636 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4655 if test $ac_R_nospace = yes; then
4656 echo "$ac_t""no" 1>&6
4657 X_LIBS="$X_LIBS -R$x_libraries"
4659 LIBS="$ac_xsave_LIBS -R $x_libraries"
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4672 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4678 if test $ac_R_space = yes; then
4679 echo "$ac_t""yes" 1>&6
4680 X_LIBS="$X_LIBS -R $x_libraries"
4682 echo "$ac_t""neither works" 1>&6
4685 LIBS="$ac_xsave_LIBS"
4689 # Check for system-dependent libraries X programs must link with.
4690 # Do this before checking for the system-independent R6 libraries
4691 # (-lICE), since we may need -lsocket or whatever for X linking.
4693 if test "$ISC" = yes; then
4694 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4696 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4697 # libraries were built with DECnet support. And karl@cs.umb.edu says
4698 # the Alpha needs dnet_stub (dnet does not exist).
4699 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4700 echo "configure:4701: checking for dnet_ntoa in -ldnet" >&5
4701 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 ac_save_LIBS="$LIBS"
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* Override any gcc2 internal prototype to avoid an error. */
4711 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4721 eval "ac_cv_lib_$ac_lib_var=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4726 eval "ac_cv_lib_$ac_lib_var=no"
4729 LIBS="$ac_save_LIBS"
4732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4734 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4736 echo "$ac_t""no" 1>&6
4739 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4740 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4741 echo "configure:4742: checking for dnet_ntoa in -ldnet_stub" >&5
4742 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4746 ac_save_LIBS="$LIBS"
4747 LIBS="-ldnet_stub $LIBS"
4748 cat > conftest.$ac_ext <<EOF
4749 #line 4750 "configure"
4750 #include "confdefs.h"
4751 /* Override any gcc2 internal prototype to avoid an error. */
4752 /* We use char because int might match the return type of a gcc2
4753 builtin and then its argument prototype would still apply. */
4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4762 eval "ac_cv_lib_$ac_lib_var=yes"
4764 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
4767 eval "ac_cv_lib_$ac_lib_var=no"
4770 LIBS="$ac_save_LIBS"
4773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4774 echo "$ac_t""yes" 1>&6
4775 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4777 echo "$ac_t""no" 1>&6
4782 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4783 # to get the SysV transport functions.
4784 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4786 # The nsl library prevents programs from opening the X display
4787 # on Irix 5.2, according to dickey@clark.net.
4788 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4789 echo "configure:4790: checking for gethostbyname" >&5
4790 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4796 /* System header to define __stub macros and hopefully few prototypes,
4797 which can conflict with char gethostbyname(); below. */
4799 /* Override any gcc2 internal prototype to avoid an error. */
4800 /* We use char because int might match the return type of a gcc2
4801 builtin and then its argument prototype would still apply. */
4802 char gethostbyname();
4806 /* The GNU C library defines this for functions which it implements
4807 to always fail with ENOSYS. Some functions are actually named
4808 something starting with __ and the normal name is an alias. */
4809 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4819 eval "ac_cv_func_gethostbyname=yes"
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4824 eval "ac_cv_func_gethostbyname=no"
4829 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4833 echo "$ac_t""no" 1>&6
4836 if test $ac_cv_func_gethostbyname = no; then
4837 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4838 echo "configure:4839: checking for gethostbyname in -lnsl" >&5
4839 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4841 echo $ac_n "(cached) $ac_c" 1>&6
4843 ac_save_LIBS="$LIBS"
4845 cat > conftest.$ac_ext <<EOF
4846 #line 4847 "configure"
4847 #include "confdefs.h"
4848 /* Override any gcc2 internal prototype to avoid an error. */
4849 /* We use char because int might match the return type of a gcc2
4850 builtin and then its argument prototype would still apply. */
4851 char gethostbyname();
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859 eval "ac_cv_lib_$ac_lib_var=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4864 eval "ac_cv_lib_$ac_lib_var=no"
4867 LIBS="$ac_save_LIBS"
4870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4871 echo "$ac_t""yes" 1>&6
4872 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4874 echo "$ac_t""no" 1>&6
4879 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4880 # socket/setsockopt and other routines are undefined under SCO ODT
4881 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4882 # on later versions), says simon@lia.di.epfl.ch: it contains
4883 # gethostby* variants that don't use the nameserver (or something).
4884 # -lsocket must be given before -lnsl if both are needed.
4885 # We assume that if connect needs -lnsl, so does gethostbyname.
4886 echo $ac_n "checking for connect""... $ac_c" 1>&6
4887 echo "configure:4888: checking for connect" >&5
4888 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4894 /* System header to define __stub macros and hopefully few prototypes,
4895 which can conflict with char connect(); below. */
4897 /* Override any gcc2 internal prototype to avoid an error. */
4898 /* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4904 /* The GNU C library defines this for functions which it implements
4905 to always fail with ENOSYS. Some functions are actually named
4906 something starting with __ and the normal name is an alias. */
4907 #if defined (__stub_connect) || defined (__stub___connect)
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 eval "ac_cv_func_connect=yes"
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4922 eval "ac_cv_func_connect=no"
4927 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4928 echo "$ac_t""yes" 1>&6
4931 echo "$ac_t""no" 1>&6
4934 if test $ac_cv_func_connect = no; then
4935 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4936 echo "configure:4937: checking for connect in -lsocket" >&5
4937 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 ac_save_LIBS="$LIBS"
4942 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 eval "ac_cv_lib_$ac_lib_var=yes"
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 eval "ac_cv_lib_$ac_lib_var=no"
4965 LIBS="$ac_save_LIBS"
4968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4970 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4972 echo "$ac_t""no" 1>&6
4977 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4978 echo $ac_n "checking for remove""... $ac_c" 1>&6
4979 echo "configure:4980: checking for remove" >&5
4980 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4983 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4986 /* System header to define __stub macros and hopefully few prototypes,
4987 which can conflict with char remove(); below. */
4989 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4996 /* The GNU C library defines this for functions which it implements
4997 to always fail with ENOSYS. Some functions are actually named
4998 something starting with __ and the normal name is an alias. */
4999 #if defined (__stub_remove) || defined (__stub___remove)
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5009 eval "ac_cv_func_remove=yes"
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 eval "ac_cv_func_remove=no"
5019 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5020 echo "$ac_t""yes" 1>&6
5023 echo "$ac_t""no" 1>&6
5026 if test $ac_cv_func_remove = no; then
5027 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5028 echo "configure:5029: checking for remove in -lposix" >&5
5029 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5033 ac_save_LIBS="$LIBS"
5034 LIBS="-lposix $LIBS"
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038 /* Override any gcc2 internal prototype to avoid an error. */
5039 /* We use char because int might match the return type of a gcc2
5040 builtin and then its argument prototype would still apply. */
5047 if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5049 eval "ac_cv_lib_$ac_lib_var=yes"
5051 echo "configure: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5054 eval "ac_cv_lib_$ac_lib_var=no"
5057 LIBS="$ac_save_LIBS"
5060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5061 echo "$ac_t""yes" 1>&6
5062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5064 echo "$ac_t""no" 1>&6
5069 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5070 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5071 echo "configure:5072: checking for shmat" >&5
5072 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5078 /* System header to define __stub macros and hopefully few prototypes,
5079 which can conflict with char shmat(); below. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5082 /* We use char because int might match the return type of a gcc2
5083 builtin and then its argument prototype would still apply. */
5088 /* The GNU C library defines this for functions which it implements
5089 to always fail with ENOSYS. Some functions are actually named
5090 something starting with __ and the normal name is an alias. */
5091 #if defined (__stub_shmat) || defined (__stub___shmat)
5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5101 eval "ac_cv_func_shmat=yes"
5103 echo "configure: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5106 eval "ac_cv_func_shmat=no"
5111 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5112 echo "$ac_t""yes" 1>&6
5115 echo "$ac_t""no" 1>&6
5118 if test $ac_cv_func_shmat = no; then
5119 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5120 echo "configure:5121: checking for shmat in -lipc" >&5
5121 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 ac_save_LIBS="$LIBS"
5127 cat > conftest.$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5130 /* Override any gcc2 internal prototype to avoid an error. */
5131 /* We use char because int might match the return type of a gcc2
5132 builtin and then its argument prototype would still apply. */
5139 if { (eval echo configure:5140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5141 eval "ac_cv_lib_$ac_lib_var=yes"
5143 echo "configure: failed program was:" >&5
5144 cat conftest.$ac_ext >&5
5146 eval "ac_cv_lib_$ac_lib_var=no"
5149 LIBS="$ac_save_LIBS"
5152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5153 echo "$ac_t""yes" 1>&6
5154 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5156 echo "$ac_t""no" 1>&6
5162 # Check for libraries that X11R6 Xt/Xaw programs need.
5163 ac_save_LDFLAGS="$LDFLAGS"
5164 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5165 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5166 # check for ICE first), but we must link in the order -lSM -lICE or
5167 # we get undefined symbols. So assume we have SM if we have ICE.
5168 # These have to be linked with before -lX11, unlike the other
5169 # libraries we check for below, so use a different variable.
5170 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5171 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5172 echo "configure:5173: checking for IceConnectionNumber in -lICE" >&5
5173 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5177 ac_save_LIBS="$LIBS"
5178 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5182 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5185 char IceConnectionNumber();
5188 IceConnectionNumber()
5191 if { (eval echo configure:5192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5193 eval "ac_cv_lib_$ac_lib_var=yes"
5195 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5198 eval "ac_cv_lib_$ac_lib_var=no"
5201 LIBS="$ac_save_LIBS"
5204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5205 echo "$ac_t""yes" 1>&6
5206 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5208 echo "$ac_t""no" 1>&6
5211 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 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5923 echo "configure:5924: checking for utime.h" >&5
5924 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5925 echo $ac_n "(cached) $ac_c" 1>&6
5927 cat > conftest.$ac_ext <<EOF
5928 #line 5929 "configure"
5929 #include "confdefs.h"
5931 #include <sys/types.h>
5937 if { (eval echo configure:5938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5939 tar_cv_header_utime_h=yes
5941 echo "configure: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5944 tar_cv_header_utime_h=no
5949 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5950 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5951 #define HAVE_UTIME_H 1
5955 echo $ac_n "checking for bigendian""... $ac_c" 1>&6
5956 echo "configure:5957: checking for bigendian" >&5
5957 if eval "test \"`echo '$''{'ba_cv_bigendian'+set}'`\" = set"; then
5958 echo $ac_n "(cached) $ac_c" 1>&6
5960 if test "$cross_compiling" = yes; then
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 main(){long a=1L; char *p=(char *)&a; exit(*p);}
5968 if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5982 echo "$ac_t""$ba_cv_bigendian" 1>&6
5983 test $ba_cv_bigendian = yes && cat >> confdefs.h <<\EOF
5984 #define HAVE_BIGENDIAN 1
5989 echo $ac_n "checking for working const""... $ac_c" 1>&6
5990 echo "configure:5991: checking for working const" >&5
5991 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
6000 /* Ultrix mips cc rejects this. */
6001 typedef int charset[2]; const charset x;
6002 /* SunOS 4.1.1 cc rejects this. */
6003 char const *const *ccp;
6005 /* NEC SVR4.0.2 mips cc rejects this. */
6006 struct point {int x, y;};
6007 static struct point const zero = {0,0};
6008 /* AIX XL C 1.02.0.0 rejects this.
6009 It does not let you subtract one const X* pointer from another in an arm
6010 of an if-expression whose if-part is not a constant expression */
6011 const char *g = "string";
6012 ccp = &g + (g ? g-g : 0);
6013 /* HPUX 7.0 cc rejects these. */
6016 ccp = (char const *const *) p;
6017 { /* SCO 3.2v4 cc rejects this. */
6019 char const *s = 0 ? (char *) 0 : (char const *) 0;
6023 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6025 const int *foo = &x[0];
6028 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6029 typedef const int *iptr;
6033 { /* AIX XL C 1.02.0.0 rejects this saying
6034 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6035 struct s { int j; const int *ap[3]; };
6036 struct s *b; b->j = 5;
6038 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6044 if { (eval echo configure:6045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6048 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6056 echo "$ac_t""$ac_cv_c_const" 1>&6
6057 if test $ac_cv_c_const = no; then
6058 cat >> confdefs.h <<\EOF
6066 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6067 echo "configure:6068: checking how to get filesystem type" >&5
6069 # The order of these tests is important.
6070 cat > conftest.$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6073 #include <sys/statvfs.h>
6074 #include <sys/fstyp.h>
6076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6077 { (eval echo configure:6078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6079 if test -z "$ac_err"; then
6081 cat >> confdefs.h <<\EOF
6082 #define FSTYPE_STATVFS 1
6087 echo "configure: failed program was:" >&5
6088 cat conftest.$ac_ext >&5
6091 if test $fstype = no; then
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 #include <sys/statfs.h>
6096 #include <sys/fstyp.h>
6098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6099 { (eval echo configure:6100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6101 if test -z "$ac_err"; then
6103 cat >> confdefs.h <<\EOF
6104 #define FSTYPE_USG_STATFS 1
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6114 if test $fstype = no; then
6115 cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6118 #include <sys/statfs.h>
6119 #include <sys/vmount.h>
6121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6122 { (eval echo configure:6123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6124 if test -z "$ac_err"; then
6126 cat >> confdefs.h <<\EOF
6127 #define FSTYPE_AIX_STATFS 1
6132 echo "configure: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6137 if test $fstype = no; then
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6144 { (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6146 if test -z "$ac_err"; then
6148 cat >> confdefs.h <<\EOF
6149 #define FSTYPE_MNTENT 1
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6159 if test $fstype = no; then
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6163 #include <sys/mount.h>
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166 egrep "f_type;" >/dev/null 2>&1; then
6168 cat >> confdefs.h <<\EOF
6169 #define FSTYPE_STATFS 1
6176 if test $fstype = no; then
6177 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6180 #include <sys/mount.h>
6181 #include <sys/fs_types.h>
6183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6184 { (eval echo configure:6185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6186 if test -z "$ac_err"; then
6188 cat >> confdefs.h <<\EOF
6189 #define FSTYPE_GETMNT 1
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6199 echo "$ac_t""$fstype" 1>&6
6201 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6202 echo "configure:6203: checking return type of signal handlers" >&5
6203 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 #include <sys/types.h>
6215 extern "C" void (*signal (int, void (*)(int)))(int);
6217 void (*signal ()) ();
6224 if { (eval echo configure:6225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6226 ac_cv_type_signal=void
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6231 ac_cv_type_signal=int
6236 echo "$ac_t""$ac_cv_type_signal" 1>&6
6237 cat >> confdefs.h <<EOF
6238 #define RETSIGTYPE $ac_cv_type_signal
6243 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6244 echo "configure:6245: checking for type of signal functions" >&5
6245 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6
6249 cat > conftest.$ac_ext <<EOF
6250 #line 6251 "configure"
6251 #include "confdefs.h"
6256 struct sigaction sa;
6257 sigemptyset(&ss); sigsuspend(&ss);
6258 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6259 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6263 if { (eval echo configure:6264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6265 bash_cv_signal_vintage=posix
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6277 int mask = sigmask(SIGINT);
6278 sigsetmask(mask); sigblock(mask); sigpause(mask);
6282 if { (eval echo configure:6283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6284 bash_cv_signal_vintage=4.2bsd
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6290 cat > conftest.$ac_ext <<EOF
6291 #line 6292 "configure"
6292 #include "confdefs.h"
6295 RETSIGTYPE foo() { }
6298 int mask = sigmask(SIGINT);
6299 sigset(SIGINT, foo); sigrelse(SIGINT);
6300 sighold(SIGINT); sigpause(SIGINT);
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6306 bash_cv_signal_vintage=svr3
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6311 bash_cv_signal_vintage=v7
6324 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6325 if test "$bash_cv_signal_vintage" = posix; then
6326 cat >> confdefs.h <<\EOF
6327 #define HAVE_POSIX_SIGNALS 1
6330 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6331 cat >> confdefs.h <<\EOF
6332 #define HAVE_BSD_SIGNALS 1
6335 elif test "$bash_cv_signal_vintage" = svr3; then
6336 cat >> confdefs.h <<\EOF
6337 #define HAVE_USG_SIGHOLD 1
6342 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6343 echo "configure:6344: checking for mode_t" >&5
6344 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6345 echo $ac_n "(cached) $ac_c" 1>&6
6347 cat > conftest.$ac_ext <<EOF
6348 #line 6349 "configure"
6349 #include "confdefs.h"
6350 #include <sys/types.h>
6356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6357 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6359 ac_cv_type_mode_t=yes
6362 ac_cv_type_mode_t=no
6367 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6368 if test $ac_cv_type_mode_t = no; then
6369 cat >> confdefs.h <<\EOF
6375 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6376 echo "configure:6377: checking for uid_t in sys/types.h" >&5
6377 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6378 echo $ac_n "(cached) $ac_c" 1>&6
6380 cat > conftest.$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6383 #include <sys/types.h>
6385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6386 egrep "uid_t" >/dev/null 2>&1; then
6388 ac_cv_type_uid_t=yes
6397 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6398 if test $ac_cv_type_uid_t = no; then
6399 cat >> confdefs.h <<\EOF
6403 cat >> confdefs.h <<\EOF
6409 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6410 echo "configure:6411: checking for size_t" >&5
6411 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6412 echo $ac_n "(cached) $ac_c" 1>&6
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6417 #include <sys/types.h>
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6426 ac_cv_type_size_t=yes
6429 ac_cv_type_size_t=no
6434 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6435 if test $ac_cv_type_size_t = no; then
6436 cat >> confdefs.h <<\EOF
6437 #define size_t unsigned
6442 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6443 echo "configure:6444: checking for pid_t" >&5
6444 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 #include <sys/types.h>
6456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6457 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6459 ac_cv_type_pid_t=yes
6467 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6468 if test $ac_cv_type_pid_t = no; then
6469 cat >> confdefs.h <<\EOF
6475 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6476 echo "configure:6477: checking for off_t" >&5
6477 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 #include <sys/types.h>
6489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6490 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6492 ac_cv_type_off_t=yes
6500 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6501 if test $ac_cv_type_off_t = no; then
6502 cat >> confdefs.h <<\EOF
6508 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6509 echo "configure:6510: checking for ino_t" >&5
6510 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6511 echo $ac_n "(cached) $ac_c" 1>&6
6513 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6516 #include <sys/types.h>
6522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6523 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6525 ac_cv_type_ino_t=yes
6533 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6534 if test $ac_cv_type_ino_t = no; then
6535 cat >> confdefs.h <<\EOF
6536 #define ino_t unsigned long
6541 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6542 echo "configure:6543: checking for dev_t" >&5
6543 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6544 echo $ac_n "(cached) $ac_c" 1>&6
6546 cat > conftest.$ac_ext <<EOF
6547 #line 6548 "configure"
6548 #include "confdefs.h"
6549 #include <sys/types.h>
6555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6556 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6558 ac_cv_type_dev_t=yes
6566 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6567 if test $ac_cv_type_dev_t = no; then
6568 cat >> confdefs.h <<\EOF
6569 #define dev_t unsigned long
6574 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6575 echo "configure:6576: checking for daddr_t" >&5
6576 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6577 echo $ac_n "(cached) $ac_c" 1>&6
6579 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6582 #include <sys/types.h>
6588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6589 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6591 ac_cv_type_daddr_t=yes
6594 ac_cv_type_daddr_t=no
6599 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6600 if test $ac_cv_type_daddr_t = no; then
6601 cat >> confdefs.h <<\EOF
6602 #define daddr_t long
6607 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6608 echo "configure:6609: checking for major_t" >&5
6609 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 #include <sys/types.h>
6621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6622 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6624 ac_cv_type_major_t=yes
6627 ac_cv_type_major_t=no
6632 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6633 if test $ac_cv_type_major_t = no; then
6634 cat >> confdefs.h <<\EOF
6640 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6641 echo "configure:6642: checking for minor_t" >&5
6642 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 #include <sys/types.h>
6654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6655 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6657 ac_cv_type_minor_t=yes
6660 ac_cv_type_minor_t=no
6665 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6666 if test $ac_cv_type_minor_t = no; then
6667 cat >> confdefs.h <<\EOF
6673 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6674 echo "configure:6675: checking for ssize_t" >&5
6675 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6676 echo $ac_n "(cached) $ac_c" 1>&6
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 #include <sys/types.h>
6687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6688 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6690 ac_cv_type_ssize_t=yes
6693 ac_cv_type_ssize_t=no
6698 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6699 if test $ac_cv_type_ssize_t = no; then
6700 cat >> confdefs.h <<\EOF
6706 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6707 echo "configure:6708: checking for st_blocks in struct stat" >&5
6708 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6711 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6714 #include <sys/types.h>
6715 #include <sys/stat.h>
6717 struct stat s; s.st_blocks;
6720 if { (eval echo configure:6721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6722 ac_cv_struct_st_blocks=yes
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6727 ac_cv_struct_st_blocks=no
6732 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6733 if test $ac_cv_struct_st_blocks = yes; then
6734 cat >> confdefs.h <<\EOF
6735 #define HAVE_ST_BLOCKS 1
6739 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6742 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6743 echo "configure:6744: checking for st_rdev in struct stat" >&5
6744 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 #include <sys/types.h>
6751 #include <sys/stat.h>
6753 struct stat s; s.st_rdev;
6756 if { (eval echo configure:6757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6758 ac_cv_struct_st_rdev=yes
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 ac_cv_struct_st_rdev=no
6768 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6769 if test $ac_cv_struct_st_rdev = yes; then
6770 cat >> confdefs.h <<\EOF
6771 #define HAVE_ST_RDEV 1
6776 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6777 echo "configure:6778: checking whether struct tm is in sys/time.h or time.h" >&5
6778 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
6784 #include <sys/types.h>
6787 struct tm *tp; tp->tm_sec;
6790 if { (eval echo configure:6791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6792 ac_cv_struct_tm=time.h
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6797 ac_cv_struct_tm=sys/time.h
6802 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6803 if test $ac_cv_struct_tm = sys/time.h; then
6804 cat >> confdefs.h <<\EOF
6805 #define TM_IN_SYS_TIME 1
6810 echo $ac_n "checking for working const""... $ac_c" 1>&6
6811 echo "configure:6812: checking for working const" >&5
6812 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6821 /* Ultrix mips cc rejects this. */
6822 typedef int charset[2]; const charset x;
6823 /* SunOS 4.1.1 cc rejects this. */
6824 char const *const *ccp;
6826 /* NEC SVR4.0.2 mips cc rejects this. */
6827 struct point {int x, y;};
6828 static struct point const zero = {0,0};
6829 /* AIX XL C 1.02.0.0 rejects this.
6830 It does not let you subtract one const X* pointer from another in an arm
6831 of an if-expression whose if-part is not a constant expression */
6832 const char *g = "string";
6833 ccp = &g + (g ? g-g : 0);
6834 /* HPUX 7.0 cc rejects these. */
6837 ccp = (char const *const *) p;
6838 { /* SCO 3.2v4 cc rejects this. */
6840 char const *s = 0 ? (char *) 0 : (char const *) 0;
6844 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6846 const int *foo = &x[0];
6849 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6850 typedef const int *iptr;
6854 { /* AIX XL C 1.02.0.0 rejects this saying
6855 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6856 struct s { int j; const int *ap[3]; };
6857 struct s *b; b->j = 5;
6859 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6865 if { (eval echo configure:6866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6877 echo "$ac_t""$ac_cv_c_const" 1>&6
6878 if test $ac_cv_c_const = no; then
6879 cat >> confdefs.h <<\EOF
6887 echo $ac_n "checking size of char""... $ac_c" 1>&6
6888 echo "configure:6889: checking size of char" >&5
6889 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6892 if test "$cross_compiling" = yes; then
6895 cat > conftest.$ac_ext <<EOF
6896 #line 6897 "configure"
6897 #include "confdefs.h"
6901 FILE *f=fopen("conftestval", "w");
6903 fprintf(f, "%d\n", sizeof(char));
6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6909 ac_cv_sizeof_char=`cat conftestval`
6911 echo "configure: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6920 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6921 cat >> confdefs.h <<EOF
6922 #define SIZEOF_CHAR $ac_cv_sizeof_char
6926 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6927 echo "configure:6928: checking size of short int" >&5
6928 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6931 if test "$cross_compiling" = yes; then
6932 ac_cv_sizeof_short_int=2
6934 cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6940 FILE *f=fopen("conftestval", "w");
6942 fprintf(f, "%d\n", sizeof(short int));
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6948 ac_cv_sizeof_short_int=`cat conftestval`
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6953 ac_cv_sizeof_short_int=0
6959 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6960 cat >> confdefs.h <<EOF
6961 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6965 echo $ac_n "checking size of int""... $ac_c" 1>&6
6966 echo "configure:6967: checking size of int" >&5
6967 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6970 if test "$cross_compiling" = yes; then
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6979 FILE *f=fopen("conftestval", "w");
6981 fprintf(f, "%d\n", sizeof(int));
6985 if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6987 ac_cv_sizeof_int=`cat conftestval`
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6998 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6999 cat >> confdefs.h <<EOF
7000 #define SIZEOF_INT $ac_cv_sizeof_int
7004 echo $ac_n "checking size of long int""... $ac_c" 1>&6
7005 echo "configure:7006: checking size of long int" >&5
7006 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
7007 echo $ac_n "(cached) $ac_c" 1>&6
7009 if test "$cross_compiling" = yes; then
7010 ac_cv_sizeof_long_int=4
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7018 FILE *f=fopen("conftestval", "w");
7020 fprintf(f, "%d\n", sizeof(long int));
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7026 ac_cv_sizeof_long_int=`cat conftestval`
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 ac_cv_sizeof_long_int=0
7037 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
7038 cat >> confdefs.h <<EOF
7039 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7043 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
7044 echo "configure:7045: checking size of long long int" >&5
7045 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7048 if test "$cross_compiling" = yes; then
7049 ac_cv_sizeof_long_long_int=8
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7057 FILE *f=fopen("conftestval", "w");
7059 fprintf(f, "%d\n", sizeof(long long int));
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7065 ac_cv_sizeof_long_long_int=`cat conftestval`
7067 echo "configure: failed program was:" >&5
7068 cat conftest.$ac_ext >&5
7070 ac_cv_sizeof_long_long_int=0
7076 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7077 cat >> confdefs.h <<EOF
7078 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7082 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7083 echo "configure:7084: checking size of int *" >&5
7084 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 if test "$cross_compiling" = yes; then
7088 ac_cv_sizeof_int_p=4
7090 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7096 FILE *f=fopen("conftestval", "w");
7098 fprintf(f, "%d\n", sizeof(int *));
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7104 ac_cv_sizeof_int_p=`cat conftestval`
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7109 ac_cv_sizeof_int_p=0
7115 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7116 cat >> confdefs.h <<EOF
7117 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7122 # Check for sys/types.h types
7123 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7124 echo "configure:7125: checking for u_int type" >&5
7125 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7132 #include <sys/types.h>
7137 if { (eval echo configure:7138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7139 ac_cv_have_u_int="yes"
7141 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7144 ac_cv_have_u_int="no"
7151 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7152 if test "x$ac_cv_have_u_int" = "xyes" ; then
7153 cat >> confdefs.h <<\EOF
7154 #define HAVE_U_INT 1
7160 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7161 echo "configure:7162: checking for intmax_t type" >&5
7162 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7166 cat > conftest.$ac_ext <<EOF
7167 #line 7168 "configure"
7168 #include "confdefs.h"
7169 #include <sys/types.h>
7174 if { (eval echo configure:7175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7176 ac_cv_have_intmax_t="yes"
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7190 if { (eval echo configure:7191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7192 ac_cv_have_intmax_t="yes"
7194 echo "configure: failed program was:" >&5
7195 cat conftest.$ac_ext >&5
7197 ac_cv_have_intmax_t="no"
7209 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7210 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7211 cat >> confdefs.h <<\EOF
7212 #define HAVE_INTMAX_T 1
7219 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7220 echo "configure:7221: checking for u_intmax_t type" >&5
7221 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7222 echo $ac_n "(cached) $ac_c" 1>&6
7225 cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7228 #include <sys/types.h>
7230 u_intmax_t a; a = 1;
7233 if { (eval echo configure:7234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7235 ac_cv_have_u_intmax_t="yes"
7237 echo "configure: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7246 u_intmax_t a; a = 1;
7249 if { (eval echo configure:7250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7251 ac_cv_have_u_intmax_t="yes"
7253 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7256 ac_cv_have_u_intmax_t="no"
7267 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7268 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7269 cat >> confdefs.h <<\EOF
7270 #define HAVE_U_INTMAX_T 1
7277 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7278 echo "configure:7279: checking for intXX_t types" >&5
7279 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7283 cat > conftest.$ac_ext <<EOF
7284 #line 7285 "configure"
7285 #include "confdefs.h"
7286 #include <sys/types.h>
7288 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7291 if { (eval echo configure:7292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7293 ac_cv_have_intxx_t="yes"
7295 echo "configure: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7298 ac_cv_have_intxx_t="no"
7305 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7306 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7307 cat >> confdefs.h <<\EOF
7308 #define HAVE_INTXX_T 1
7314 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7315 echo "configure:7316: checking for int64_t type" >&5
7316 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7317 echo $ac_n "(cached) $ac_c" 1>&6
7320 cat > conftest.$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7323 #include <sys/types.h>
7328 if { (eval echo configure:7329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7330 ac_cv_have_int64_t="yes"
7332 echo "configure: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7335 ac_cv_have_int64_t="no"
7342 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7343 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7344 cat >> confdefs.h <<\EOF
7345 #define HAVE_INT64_T 1
7351 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7352 echo "configure:7353: checking for u_intXX_t types" >&5
7353 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 #include <sys/types.h>
7362 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7365 if { (eval echo configure:7366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7367 ac_cv_have_u_intxx_t="yes"
7369 echo "configure: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7372 ac_cv_have_u_intxx_t="no"
7379 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7380 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7381 cat >> confdefs.h <<\EOF
7382 #define HAVE_U_INTXX_T 1
7388 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7389 echo "configure:7390: checking for u_int64_t types" >&5
7390 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7391 echo $ac_n "(cached) $ac_c" 1>&6
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 #include <sys/types.h>
7402 if { (eval echo configure:7403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7404 ac_cv_have_u_int64_t="yes"
7406 echo "configure: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7409 ac_cv_have_u_int64_t="no"
7416 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7417 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7418 cat >> confdefs.h <<\EOF
7419 #define HAVE_U_INT64_T 1
7425 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7426 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7428 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7429 echo "configure:7430: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7430 cat > conftest.$ac_ext <<EOF
7431 #line 7432 "configure"
7432 #include "confdefs.h"
7433 #include <sys/bitypes.h>
7435 int8_t a; int16_t b; int32_t c;
7436 u_int8_t e; u_int16_t f; u_int32_t g;
7437 a = b = c = e = f = g = 1;
7440 if { (eval echo configure:7441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7442 cat >> confdefs.h <<\EOF
7443 #define HAVE_U_INTXX_T 1
7446 cat >> confdefs.h <<\EOF
7447 #define HAVE_INTXX_T 1
7450 cat >> confdefs.h <<\EOF
7451 #define HAVE_SYS_BITYPES_H 1
7454 echo "$ac_t""yes" 1>&6
7456 echo "configure: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7459 echo "$ac_t""no" 1>&6
7465 if test -z "$have_u_intxx_t" ; then
7466 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7467 echo "configure:7468: checking for uintXX_t types" >&5
7468 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7472 cat > conftest.$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 #include <sys/types.h>
7477 uint8_t a; uint16_t b;
7478 uint32_t c; a = b = c = 1;
7481 if { (eval echo configure:7482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7483 ac_cv_have_uintxx_t="yes"
7485 echo "configure: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7488 ac_cv_have_uintxx_t="no"
7495 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7496 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7497 cat >> confdefs.h <<\EOF
7498 #define HAVE_UINTXX_T 1
7521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7522 echo "configure:7523: checking for $ac_func" >&5
7523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7526 cat > conftest.$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7529 /* System header to define __stub macros and hopefully few prototypes,
7530 which can conflict with char $ac_func(); below. */
7532 /* Override any gcc2 internal prototype to avoid an error. */
7533 /* We use char because int might match the return type of a gcc2
7534 builtin and then its argument prototype would still apply. */
7539 /* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7552 eval "ac_cv_func_$ac_func=yes"
7554 echo "configure: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7557 eval "ac_cv_func_$ac_func=no"
7562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7563 echo "$ac_t""yes" 1>&6
7564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7565 cat >> confdefs.h <<EOF
7566 #define $ac_tr_func 1
7570 echo "$ac_t""no" 1>&6
7571 echo 'configure: cannot find needed function.'; exit 1
7577 for ac_func in fchdir
7579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7580 echo "configure:7581: checking for $ac_func" >&5
7581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7584 cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587 /* System header to define __stub macros and hopefully few prototypes,
7588 which can conflict with char $ac_func(); below. */
7590 /* Override any gcc2 internal prototype to avoid an error. */
7591 /* We use char because int might match the return type of a gcc2
7592 builtin and then its argument prototype would still apply. */
7597 /* The GNU C library defines this for functions which it implements
7598 to always fail with ENOSYS. Some functions are actually named
7599 something starting with __ and the normal name is an alias. */
7600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7608 if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7610 eval "ac_cv_func_$ac_func=yes"
7612 echo "configure: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7615 eval "ac_cv_func_$ac_func=no"
7620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7621 echo "$ac_t""yes" 1>&6
7622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7623 cat >> confdefs.h <<EOF
7624 #define $ac_tr_func 1
7626 cat >> confdefs.h <<\EOF
7627 #define HAVE_FCHDIR 1
7631 echo "$ac_t""no" 1>&6
7636 for ac_func in snprintf vsnprintf gethostid getdomainname
7638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7639 echo "configure:7640: checking for $ac_func" >&5
7640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7643 cat > conftest.$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 /* System header to define __stub macros and hopefully few prototypes,
7647 which can conflict with char $ac_func(); below. */
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7656 /* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7669 eval "ac_cv_func_$ac_func=yes"
7671 echo "configure: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7674 eval "ac_cv_func_$ac_func=no"
7679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7682 cat >> confdefs.h <<EOF
7683 #define $ac_tr_func 1
7687 echo "$ac_t""no" 1>&6
7692 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7695 echo "configure:7696: checking for $ac_func" >&5
7696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7699 cat > conftest.$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7702 /* System header to define __stub macros and hopefully few prototypes,
7703 which can conflict with char $ac_func(); below. */
7705 /* Override any gcc2 internal prototype to avoid an error. */
7706 /* We use char because int might match the return type of a gcc2
7707 builtin and then its argument prototype would still apply. */
7712 /* The GNU C library defines this for functions which it implements
7713 to always fail with ENOSYS. Some functions are actually named
7714 something starting with __ and the normal name is an alias. */
7715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7723 if { (eval echo configure:7724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7725 eval "ac_cv_func_$ac_func=yes"
7727 echo "configure: failed program was:" >&5
7728 cat conftest.$ac_ext >&5
7730 eval "ac_cv_func_$ac_func=no"
7735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7736 echo "$ac_t""yes" 1>&6
7737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7738 cat >> confdefs.h <<EOF
7739 #define $ac_tr_func 1
7743 echo "$ac_t""no" 1>&6
7748 # If resolver functions are not in libc check for -lnsl or -lresolv.
7749 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7750 echo "configure:7751: checking for gethostbyname_r" >&5
7751 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7752 echo $ac_n "(cached) $ac_c" 1>&6
7754 cat > conftest.$ac_ext <<EOF
7755 #line 7756 "configure"
7756 #include "confdefs.h"
7757 /* System header to define __stub macros and hopefully few prototypes,
7758 which can conflict with char gethostbyname_r(); below. */
7760 /* Override any gcc2 internal prototype to avoid an error. */
7761 /* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7763 char gethostbyname_r();
7767 /* The GNU C library defines this for functions which it implements
7768 to always fail with ENOSYS. Some functions are actually named
7769 something starting with __ and the normal name is an alias. */
7770 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7778 if { (eval echo configure:7779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7780 eval "ac_cv_func_gethostbyname_r=yes"
7782 echo "configure: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7785 eval "ac_cv_func_gethostbyname_r=no"
7790 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7791 echo "$ac_t""yes" 1>&6
7792 echo "$ac_t""using libc's resolver" 1>&6
7794 echo "$ac_t""no" 1>&6
7795 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7796 echo "configure:7797: checking for gethostbyname_r in -lnsl" >&5
7797 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7801 ac_save_LIBS="$LIBS"
7803 cat > conftest.$ac_ext <<EOF
7804 #line 7805 "configure"
7805 #include "confdefs.h"
7806 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7809 char gethostbyname_r();
7815 if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7817 eval "ac_cv_lib_$ac_lib_var=yes"
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7822 eval "ac_cv_lib_$ac_lib_var=no"
7825 LIBS="$ac_save_LIBS"
7828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7829 echo "$ac_t""yes" 1>&6
7830 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7831 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7832 cat >> confdefs.h <<EOF
7833 #define $ac_tr_lib 1
7839 echo "$ac_t""no" 1>&6
7842 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7843 echo "configure:7844: checking for gethostbyname_r in -lresolv" >&5
7844 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7848 ac_save_LIBS="$LIBS"
7849 LIBS="-lresolv $LIBS"
7850 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853 /* Override any gcc2 internal prototype to avoid an error. */
7854 /* We use char because int might match the return type of a gcc2
7855 builtin and then its argument prototype would still apply. */
7856 char gethostbyname_r();
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 eval "ac_cv_lib_$ac_lib_var=yes"
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 eval "ac_cv_lib_$ac_lib_var=no"
7872 LIBS="$ac_save_LIBS"
7875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7876 echo "$ac_t""yes" 1>&6
7877 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7879 cat >> confdefs.h <<EOF
7880 #define $ac_tr_lib 1
7883 LIBS="-lresolv $LIBS"
7886 echo "$ac_t""no" 1>&6
7893 # Find where sockets are (especially for Solaris)
7894 echo $ac_n "checking for socket""... $ac_c" 1>&6
7895 echo "configure:7896: checking for socket" >&5
7896 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7899 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7902 /* System header to define __stub macros and hopefully few prototypes,
7903 which can conflict with char socket(); below. */
7905 /* Override any gcc2 internal prototype to avoid an error. */
7906 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7912 /* The GNU C library defines this for functions which it implements
7913 to always fail with ENOSYS. Some functions are actually named
7914 something starting with __ and the normal name is an alias. */
7915 #if defined (__stub_socket) || defined (__stub___socket)
7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7925 eval "ac_cv_func_socket=yes"
7927 echo "configure: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7930 eval "ac_cv_func_socket=no"
7935 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7936 echo "$ac_t""yes" 1>&6
7937 echo "$ac_t""using libc's socket" 1>&6
7939 echo "$ac_t""no" 1>&6
7940 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7941 echo "configure:7942: checking for socket in -lxnet" >&5
7942 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 ac_save_LIBS="$LIBS"
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7962 eval "ac_cv_lib_$ac_lib_var=yes"
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7967 eval "ac_cv_lib_$ac_lib_var=no"
7970 LIBS="$ac_save_LIBS"
7973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7977 cat >> confdefs.h <<EOF
7978 #define $ac_tr_lib 1
7984 echo "$ac_t""no" 1>&6
7987 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7988 echo "configure:7989: checking for socket in -lsocket" >&5
7989 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7991 echo $ac_n "(cached) $ac_c" 1>&6
7993 ac_save_LIBS="$LIBS"
7994 LIBS="-lsocket $LIBS"
7995 cat > conftest.$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
7998 /* Override any gcc2 internal prototype to avoid an error. */
7999 /* We use char because int might match the return type of a gcc2
8000 builtin and then its argument prototype would still apply. */
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8009 eval "ac_cv_lib_$ac_lib_var=yes"
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8014 eval "ac_cv_lib_$ac_lib_var=no"
8017 LIBS="$ac_save_LIBS"
8020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8021 echo "$ac_t""yes" 1>&6
8022 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
8023 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8024 cat >> confdefs.h <<EOF
8025 #define $ac_tr_lib 1
8028 LIBS="-lsocket $LIBS"
8031 echo "$ac_t""no" 1>&6
8034 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8035 echo "configure:8036: checking for socket in -linet" >&5
8036 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
8037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8038 echo $ac_n "(cached) $ac_c" 1>&6
8040 ac_save_LIBS="$LIBS"
8042 cat > conftest.$ac_ext <<EOF
8043 #line 8044 "configure"
8044 #include "confdefs.h"
8045 /* Override any gcc2 internal prototype to avoid an error. */
8046 /* We use char because int might match the return type of a gcc2
8047 builtin and then its argument prototype would still apply. */
8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8056 eval "ac_cv_lib_$ac_lib_var=yes"
8058 echo "configure: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8061 eval "ac_cv_lib_$ac_lib_var=no"
8064 LIBS="$ac_save_LIBS"
8067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8068 echo "$ac_t""yes" 1>&6
8069 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8071 cat >> confdefs.h <<EOF
8072 #define $ac_tr_lib 1
8078 echo "$ac_t""no" 1>&6
8084 for ac_func in inet_pton
8086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8087 echo "configure:8088: checking for $ac_func" >&5
8088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 /* System header to define __stub macros and hopefully few prototypes,
8095 which can conflict with char $ac_func(); below. */
8097 /* Override any gcc2 internal prototype to avoid an error. */
8098 /* We use char because int might match the return type of a gcc2
8099 builtin and then its argument prototype would still apply. */
8104 /* The GNU C library defines this for functions which it implements
8105 to always fail with ENOSYS. Some functions are actually named
8106 something starting with __ and the normal name is an alias. */
8107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8117 eval "ac_cv_func_$ac_func=yes"
8119 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8122 eval "ac_cv_func_$ac_func=no"
8127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8128 echo "$ac_t""yes" 1>&6
8129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8130 cat >> confdefs.h <<EOF
8131 #define $ac_tr_func 1
8133 cat >> confdefs.h <<\EOF
8134 #define HAVE_INET_PTON 1
8138 echo "$ac_t""no" 1>&6
8143 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8144 echo "configure:8145: checking for strftime" >&5
8145 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8146 echo $ac_n "(cached) $ac_c" 1>&6
8148 cat > conftest.$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char strftime(); below. */
8154 /* Override any gcc2 internal prototype to avoid an error. */
8155 /* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8161 /* The GNU C library defines this for functions which it implements
8162 to always fail with ENOSYS. Some functions are actually named
8163 something starting with __ and the normal name is an alias. */
8164 #if defined (__stub_strftime) || defined (__stub___strftime)
8172 if { (eval echo configure:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8174 eval "ac_cv_func_strftime=yes"
8176 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8179 eval "ac_cv_func_strftime=no"
8184 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 cat >> confdefs.h <<\EOF
8187 #define HAVE_STRFTIME 1
8191 echo "$ac_t""no" 1>&6
8192 # strftime is in -lintl on SCO UNIX.
8193 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8194 echo "configure:8195: checking for strftime in -lintl" >&5
8195 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8199 ac_save_LIBS="$LIBS"
8201 cat > conftest.$ac_ext <<EOF
8202 #line 8203 "configure"
8203 #include "confdefs.h"
8204 /* Override any gcc2 internal prototype to avoid an error. */
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8213 if { (eval echo configure:8214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8215 eval "ac_cv_lib_$ac_lib_var=yes"
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8220 eval "ac_cv_lib_$ac_lib_var=no"
8223 LIBS="$ac_save_LIBS"
8226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8227 echo "$ac_t""yes" 1>&6
8228 cat >> confdefs.h <<\EOF
8229 #define HAVE_STRFTIME 1
8234 echo "$ac_t""no" 1>&6
8239 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8240 echo "configure:8241: checking for vprintf" >&5
8241 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8242 echo $ac_n "(cached) $ac_c" 1>&6
8244 cat > conftest.$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8247 /* System header to define __stub macros and hopefully few prototypes,
8248 which can conflict with char vprintf(); below. */
8250 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8257 /* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8268 if { (eval echo configure:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8270 eval "ac_cv_func_vprintf=yes"
8272 echo "configure: failed program was:" >&5
8273 cat conftest.$ac_ext >&5
8275 eval "ac_cv_func_vprintf=no"
8280 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8281 echo "$ac_t""yes" 1>&6
8282 cat >> confdefs.h <<\EOF
8283 #define HAVE_VPRINTF 1
8287 echo "$ac_t""no" 1>&6
8290 if test "$ac_cv_func_vprintf" != yes; then
8291 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8292 echo "configure:8293: checking for _doprnt" >&5
8293 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8294 echo $ac_n "(cached) $ac_c" 1>&6
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8299 /* System header to define __stub macros and hopefully few prototypes,
8300 which can conflict with char _doprnt(); below. */
8302 /* Override any gcc2 internal prototype to avoid an error. */
8303 /* We use char because int might match the return type of a gcc2
8304 builtin and then its argument prototype would still apply. */
8309 /* The GNU C library defines this for functions which it implements
8310 to always fail with ENOSYS. Some functions are actually named
8311 something starting with __ and the normal name is an alias. */
8312 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8322 eval "ac_cv_func__doprnt=yes"
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 eval "ac_cv_func__doprnt=no"
8332 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8333 echo "$ac_t""yes" 1>&6
8334 cat >> confdefs.h <<\EOF
8335 #define HAVE_DOPRNT 1
8339 echo "$ac_t""no" 1>&6
8344 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8345 # for constant arguments. Useless!
8346 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8347 echo "configure:8348: checking for working alloca.h" >&5
8348 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8349 echo $ac_n "(cached) $ac_c" 1>&6
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8356 char *p = alloca(2 * sizeof(int));
8359 if { (eval echo configure:8360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8361 ac_cv_header_alloca_h=yes
8363 echo "configure: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8366 ac_cv_header_alloca_h=no
8371 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8372 if test $ac_cv_header_alloca_h = yes; then
8373 cat >> confdefs.h <<\EOF
8374 #define HAVE_ALLOCA_H 1
8379 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8380 echo "configure:8381: checking for alloca" >&5
8381 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
8384 cat > conftest.$ac_ext <<EOF
8385 #line 8386 "configure"
8386 #include "confdefs.h"
8389 # define alloca __builtin_alloca
8392 # include <malloc.h>
8393 # define alloca _alloca
8396 # include <alloca.h>
8401 # ifndef alloca /* predefined by HP cc +Olibcalls */
8410 char *p = (char *) alloca(1);
8413 if { (eval echo configure:8414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8415 ac_cv_func_alloca_works=yes
8417 echo "configure: failed program was:" >&5
8418 cat conftest.$ac_ext >&5
8420 ac_cv_func_alloca_works=no
8425 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8426 if test $ac_cv_func_alloca_works = yes; then
8427 cat >> confdefs.h <<\EOF
8428 #define HAVE_ALLOCA 1
8433 if test $ac_cv_func_alloca_works = no; then
8434 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8435 # that cause trouble. Some versions do not even contain alloca or
8436 # contain a buggy version. If you still want to use their alloca,
8437 # use ar to extract alloca.o from them instead of compiling alloca.c.
8438 ALLOCA=alloca.${ac_objext}
8439 cat >> confdefs.h <<\EOF
8444 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8445 echo "configure:8446: checking whether alloca needs Cray hooks" >&5
8446 if eval "test \"`echo '$''{'ac_cv_os_cray'+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 #if defined(CRAY) && ! defined(CRAY2)
8459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8460 egrep "webecray" >/dev/null 2>&1; then
8471 echo "$ac_t""$ac_cv_os_cray" 1>&6
8472 if test $ac_cv_os_cray = yes; then
8473 for ac_func in _getb67 GETB67 getb67; do
8474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8475 echo "configure:8476: checking for $ac_func" >&5
8476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8482 /* System header to define __stub macros and hopefully few prototypes,
8483 which can conflict with char $ac_func(); below. */
8485 /* Override any gcc2 internal prototype to avoid an error. */
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8492 /* The GNU C library defines this for functions which it implements
8493 to always fail with ENOSYS. Some functions are actually named
8494 something starting with __ and the normal name is an alias. */
8495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8503 if { (eval echo configure:8504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8505 eval "ac_cv_func_$ac_func=yes"
8507 echo "configure: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8510 eval "ac_cv_func_$ac_func=no"
8515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8516 echo "$ac_t""yes" 1>&6
8517 cat >> confdefs.h <<EOF
8518 #define CRAY_STACKSEG_END $ac_func
8523 echo "$ac_t""no" 1>&6
8529 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8530 echo "configure:8531: checking stack direction for C alloca" >&5
8531 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8534 if test "$cross_compiling" = yes; then
8535 ac_cv_c_stack_direction=0
8537 cat > conftest.$ac_ext <<EOF
8538 #line 8539 "configure"
8539 #include "confdefs.h"
8540 find_stack_direction ()
8542 static char *addr = 0;
8547 return find_stack_direction ();
8550 return (&dummy > addr) ? 1 : -1;
8554 exit (find_stack_direction() < 0);
8557 if { (eval echo configure:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8559 ac_cv_c_stack_direction=1
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8564 ac_cv_c_stack_direction=-1
8571 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8572 cat >> confdefs.h <<EOF
8573 #define STACK_DIRECTION $ac_cv_c_stack_direction
8578 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8579 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8580 echo "configure:8581: checking for getmntent in -lsun" >&5
8581 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8585 ac_save_LIBS="$LIBS"
8587 cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8590 /* Override any gcc2 internal prototype to avoid an error. */
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8599 if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8601 eval "ac_cv_lib_$ac_lib_var=yes"
8603 echo "configure: failed program was:" >&5
8604 cat conftest.$ac_ext >&5
8606 eval "ac_cv_lib_$ac_lib_var=no"
8609 LIBS="$ac_save_LIBS"
8612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8616 echo "$ac_t""no" 1>&6
8617 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8618 echo "configure:8619: checking for getmntent in -lseq" >&5
8619 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8623 ac_save_LIBS="$LIBS"
8625 cat > conftest.$ac_ext <<EOF
8626 #line 8627 "configure"
8627 #include "confdefs.h"
8628 /* Override any gcc2 internal prototype to avoid an error. */
8629 /* We use char because int might match the return type of a gcc2
8630 builtin and then its argument prototype would still apply. */
8637 if { (eval echo configure:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8639 eval "ac_cv_lib_$ac_lib_var=yes"
8641 echo "configure: failed program was:" >&5
8642 cat conftest.$ac_ext >&5
8644 eval "ac_cv_lib_$ac_lib_var=no"
8647 LIBS="$ac_save_LIBS"
8650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8651 echo "$ac_t""yes" 1>&6
8654 echo "$ac_t""no" 1>&6
8655 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8656 echo "configure:8657: checking for getmntent in -lgen" >&5
8657 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8659 echo $ac_n "(cached) $ac_c" 1>&6
8661 ac_save_LIBS="$LIBS"
8663 cat > conftest.$ac_ext <<EOF
8664 #line 8665 "configure"
8665 #include "confdefs.h"
8666 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8675 if { (eval echo configure:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8677 eval "ac_cv_lib_$ac_lib_var=yes"
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8682 eval "ac_cv_lib_$ac_lib_var=no"
8685 LIBS="$ac_save_LIBS"
8688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8689 echo "$ac_t""yes" 1>&6
8692 echo "$ac_t""no" 1>&6
8699 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8700 echo "configure:8701: checking for getmntent" >&5
8701 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8704 cat > conftest.$ac_ext <<EOF
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8707 /* System header to define __stub macros and hopefully few prototypes,
8708 which can conflict with char getmntent(); below. */
8710 /* Override any gcc2 internal prototype to avoid an error. */
8711 /* We use char because int might match the return type of a gcc2
8712 builtin and then its argument prototype would still apply. */
8717 /* The GNU C library defines this for functions which it implements
8718 to always fail with ENOSYS. Some functions are actually named
8719 something starting with __ and the normal name is an alias. */
8720 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8728 if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8730 eval "ac_cv_func_getmntent=yes"
8732 echo "configure: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8735 eval "ac_cv_func_getmntent=no"
8740 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8741 echo "$ac_t""yes" 1>&6
8742 cat >> confdefs.h <<\EOF
8743 #define HAVE_GETMNTENT 1
8747 echo "$ac_t""no" 1>&6
8750 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8751 echo "configure:8752: checking whether closedir returns void" >&5
8752 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8753 echo $ac_n "(cached) $ac_c" 1>&6
8755 if test "$cross_compiling" = yes; then
8756 ac_cv_func_closedir_void=yes
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8761 #include <sys/types.h>
8762 #include <$ac_header_dirent>
8763 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8767 ac_cv_func_closedir_void=no
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8772 ac_cv_func_closedir_void=yes
8779 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8780 if test $ac_cv_func_closedir_void = yes; then
8781 cat >> confdefs.h <<\EOF
8782 #define CLOSEDIR_VOID 1
8787 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8788 echo "configure:8789: checking whether setpgrp takes no argument" >&5
8789 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8792 if test "$cross_compiling" = yes; then
8793 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8795 cat > conftest.$ac_ext <<EOF
8796 #line 8797 "configure"
8797 #include "confdefs.h"
8799 #ifdef HAVE_UNISTD_H
8804 * If this system has a BSD-style setpgrp, which takes arguments, exit
8809 if (setpgrp(1,1) == -1)
8816 if { (eval echo configure:8817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8818 ac_cv_func_setpgrp_void=no
8820 echo "configure: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8823 ac_cv_func_setpgrp_void=yes
8831 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8832 if test $ac_cv_func_setpgrp_void = yes; then
8833 cat >> confdefs.h <<\EOF
8834 #define SETPGRP_VOID 1
8838 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8839 echo "configure:8840: checking for working fnmatch" >&5
8840 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8843 # Some versions of Solaris or SCO have a broken fnmatch function.
8844 # So we run a test program. If we are cross-compiling, take no chance.
8845 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8846 if test "$cross_compiling" = yes; then
8847 ac_cv_func_fnmatch_works=no
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8854 if { (eval echo configure:8855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8856 ac_cv_func_fnmatch_works=yes
8858 echo "configure: failed program was:" >&5
8859 cat conftest.$ac_ext >&5
8861 ac_cv_func_fnmatch_works=no
8868 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8869 if test $ac_cv_func_fnmatch_works = yes; then
8870 cat >> confdefs.h <<\EOF
8871 #define HAVE_FNMATCH 1
8878 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8879 echo "configure:8880: checking for setlocale in -lxpg4" >&5
8880 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8882 echo $ac_n "(cached) $ac_c" 1>&6
8884 ac_save_LIBS="$LIBS"
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 /* Override any gcc2 internal prototype to avoid an error. */
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8900 eval "ac_cv_lib_$ac_lib_var=yes"
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8905 eval "ac_cv_lib_$ac_lib_var=no"
8908 LIBS="$ac_save_LIBS"
8911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8912 echo "$ac_t""yes" 1>&6
8915 echo "$ac_t""no" 1>&6
8920 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8921 echo "configure:8922: checking for getpwnam in -lsun" >&5
8922 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8926 ac_save_LIBS="$LIBS"
8928 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure"
8930 #include "confdefs.h"
8931 /* Override any gcc2 internal prototype to avoid an error. */
8932 /* We use char because int might match the return type of a gcc2
8933 builtin and then its argument prototype would still apply. */
8940 if { (eval echo configure:8941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8942 eval "ac_cv_lib_$ac_lib_var=yes"
8944 echo "configure: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8947 eval "ac_cv_lib_$ac_lib_var=no"
8950 LIBS="$ac_save_LIBS"
8953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8954 echo "$ac_t""yes" 1>&6
8955 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8957 cat >> confdefs.h <<EOF
8958 #define $ac_tr_lib 1
8964 echo "$ac_t""no" 1>&6
8968 for ac_hdr in zlib.h
8970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8972 echo "configure:8973: checking for $ac_hdr" >&5
8973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8976 cat > conftest.$ac_ext <<EOF
8977 #line 8978 "configure"
8978 #include "confdefs.h"
8981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8982 { (eval echo configure:8983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8984 if test -z "$ac_err"; then
8986 eval "ac_cv_header_$ac_safe=yes"
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8992 eval "ac_cv_header_$ac_safe=no"
8996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8997 echo "$ac_t""yes" 1>&6
8998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8999 cat >> confdefs.h <<EOF
9000 #define $ac_tr_hdr 1
9004 echo "$ac_t""no" 1>&6
9008 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9009 echo "configure:9010: checking for deflate in -lz" >&5
9010 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9012 echo $ac_n "(cached) $ac_c" 1>&6
9014 ac_save_LIBS="$LIBS"
9016 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9019 /* Override any gcc2 internal prototype to avoid an error. */
9020 /* We use char because int might match the return type of a gcc2
9021 builtin and then its argument prototype would still apply. */
9028 if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9030 eval "ac_cv_lib_$ac_lib_var=yes"
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 eval "ac_cv_lib_$ac_lib_var=no"
9038 LIBS="$ac_save_LIBS"
9041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9042 echo "$ac_t""yes" 1>&6
9045 echo "$ac_t""no" 1>&6
9049 if test x$FDLIBS = x-lz; then
9050 cat >> confdefs.h <<\EOF
9058 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
9059 echo "configure:9060: checking for pthread_create in -lpthread" >&5
9060 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9064 ac_save_LIBS="$LIBS"
9065 LIBS="-lpthread $LIBS"
9066 cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 /* Override any gcc2 internal prototype to avoid an error. */
9070 /* We use char because int might match the return type of a gcc2
9071 builtin and then its argument prototype would still apply. */
9072 char pthread_create();
9078 if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9080 eval "ac_cv_lib_$ac_lib_var=yes"
9082 echo "configure: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9085 eval "ac_cv_lib_$ac_lib_var=no"
9088 LIBS="$ac_save_LIBS"
9091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9092 echo "$ac_t""yes" 1>&6
9093 PTHREAD_LIB="-lpthread"
9095 echo "$ac_t""no" 1>&6
9096 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9097 echo "configure:9098: checking for pthread_create in -lpthreads" >&5
9098 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9102 ac_save_LIBS="$LIBS"
9103 LIBS="-lpthreads $LIBS"
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9107 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9110 char pthread_create();
9116 if { (eval echo configure:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9118 eval "ac_cv_lib_$ac_lib_var=yes"
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9123 eval "ac_cv_lib_$ac_lib_var=no"
9126 LIBS="$ac_save_LIBS"
9129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9130 echo "$ac_t""yes" 1>&6
9131 PTHREAD_LIB="-lpthreads"
9133 echo "$ac_t""no" 1>&6
9134 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9135 echo "configure:9136: checking for pthread_create in -lc_r" >&5
9136 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9140 ac_save_LIBS="$LIBS"
9142 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9145 /* Override any gcc2 internal prototype to avoid an error. */
9146 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9148 char pthread_create();
9154 if { (eval echo configure:9155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9156 eval "ac_cv_lib_$ac_lib_var=yes"
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9161 eval "ac_cv_lib_$ac_lib_var=no"
9164 LIBS="$ac_save_LIBS"
9167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9168 echo "$ac_t""yes" 1>&6
9171 echo "$ac_t""no" 1>&6
9172 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9173 echo "configure:9174: checking for pthread_create" >&5
9174 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9177 cat > conftest.$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9180 /* System header to define __stub macros and hopefully few prototypes,
9181 which can conflict with char pthread_create(); below. */
9183 /* Override any gcc2 internal prototype to avoid an error. */
9184 /* We use char because int might match the return type of a gcc2
9185 builtin and then its argument prototype would still apply. */
9186 char pthread_create();
9190 /* The GNU C library defines this for functions which it implements
9191 to always fail with ENOSYS. Some functions are actually named
9192 something starting with __ and the normal name is an alias. */
9193 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9201 if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9203 eval "ac_cv_func_pthread_create=yes"
9205 echo "configure: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9208 eval "ac_cv_func_pthread_create=no"
9213 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9214 echo "$ac_t""yes" 1>&6
9217 echo "$ac_t""no" 1>&6
9231 cat >> confdefs.h <<\EOF
9238 LDFLAGS=${LDFLAGS--O}
9239 DB_LIBS="${SQL_LFLAGS}"
9241 CPPFLAGS="$CPPFLAGS"
9261 # Finally we set appropriate distribution specific
9262 # variables and defaults
9264 # PFILES are platform specific files
9265 PFILES="platforms/Makefile"
9272 PSCMD="ps -e -o pid,comm"
9274 platforms/aix/Makefile"
9278 PTHREAD_LIB="-lpthread -lexc"
9279 if test "${CC}" = "gcc" ; then
9286 TAPEDRIVE="/dev/nrmt0"
9289 DISTVER=`uname -a |awk '{print $3}'`
9290 TAPEDRIVE="/dev/nrst0"
9293 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
9294 TAPEDRIVE="/dev/nrst0"
9295 PSCMD="ps -e -o pid,command"
9296 hostname=`hostname -s`
9299 DISTVER=`uname -a |awk '{print $3}'`
9300 TAPEDRIVE="/dev/nrst0"
9302 CFLAGS="${CFLAGS} -mwindows"
9303 LDFLAGS="${LDFLAGS} -mwindows"
9307 TAPEDRIVE="/dev/nst0"
9308 PSCMD="ps -e -o pid,command"
9309 hostname=`hostname -s`
9311 platforms/darwin/Makefile"
9314 DISTVER=`cat /etc/debian_version`
9315 TAPEDRIVE="/dev/nrst0"
9316 PSCMD="ps -e -o pid,command"
9317 hostname=`hostname -s`
9320 DISTVER=`uname -a |awk '{print $3}'`
9321 PTHREAD_LIB="-pthread"
9322 CFLAGS="${CFLAGS} -pthread"
9325 TAPEDRIVE="/dev/nrst0"
9326 PSCMD="ps -x -o pid,command"
9328 platforms/freebsd/Makefile \
9329 platforms/freebsd/bacula-fd \
9330 platforms/freebsd/bacula-sd \
9331 platforms/freebsd/bacula-dir"
9332 hostname=`hostname -s`
9333 largefile_support="yes"
9337 TAPEDRIVE="/dev/rmt/0hnb"
9341 TAPEDRIVE="/dev/rmt/0cbn"
9342 PSCMD="ps -e -o pid,comm"
9343 hostname=`/usr/bsd/hostname -s`
9345 platforms/irix/Makefile \
9346 platforms/irix/bacula-fd \
9347 platforms/irix/bacula-sd \
9348 platforms/irix/bacula-dir"
9351 DISTVER=`uname -a |awk '{print $3}'`
9354 TAPEDRIVE="/dev/nrst0"
9355 PSCMD="ps -a -o pid,command"
9356 PTHREAD_LIB="-pthread"
9357 CFLAGS="${CFLAGS} -pthread"
9360 DISTVER=`uname -a |awk '{print $3}'`
9363 TAPEDRIVE="/dev/nrst0"
9364 PSCMD="ps -a -o pid,command"
9365 PTHREAD_LIB="-pthread"
9366 CFLAGS="${CFLAGS} -pthread"
9368 platforms/openbsd/Makefile \
9369 platforms/openbsd/bacula-fd \
9370 platforms/openbsd/bacula-sd \
9371 platforms/openbsd/bacula-dir"
9374 DISTVER=`cat /etc/redhat-release | grep release |\
9376 TAPEDRIVE="/dev/nst0"
9377 PSCMD="ps -e -o pid,command"
9379 platforms/redhat/Makefile \
9380 platforms/redhat/bacula-fd \
9381 platforms/redhat/bacula-sd \
9382 platforms/redhat/bacula-dir"
9383 hostname=`hostname -s`
9386 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
9387 TAPEDRIVE="/dev/nst0"
9388 PSCMD="ps -e -o pid,command"
9390 platforms/gentoo/Makefile \
9391 platforms/gentoo/bacula-fd \
9392 platforms/gentoo/bacula-sd \
9393 platforms/gentoo/bacula-dir"
9394 hostname=`hostname -s`
9398 DISTVER=`cat /etc/slackware-version`
9399 TAPEDRIVE="/dev/nst0"
9400 PSCMD="ps -e -o pid,command"
9401 hostname=`hostname -s`
9405 TAPEDRIVE="/dev/rmt/0cbn"
9406 PSCMD="ps -e -o pid,comm"
9408 platforms/solaris/Makefile \
9409 platforms/solaris/bacula-fd \
9410 platforms/solaris/bacula-sd \
9411 platforms/solaris/bacula-dir"
9414 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9416 TAPEDRIVE="/dev/nst0"
9417 PSCMD="ps -e -o pid,command"
9418 hostname=`hostname -s`
9423 TAPEDRIVE="/dev/nst0"
9424 PSCMD="ps -e -o pid,command"
9425 hostname=`hostname -s`
9429 TAPEDRIVE="/dev/nst0"
9432 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9439 LIBS="$PTHREAD_LIB $LIBS"
9441 cat >> confdefs.h <<EOF
9445 cat >> confdefs.h <<EOF
9456 MCOMMON=./autoconf/Make.common
9460 cat > confcache <<\EOF
9461 # This file is a shell script that caches the results of configure
9462 # tests run on this system so they can be shared between configure
9463 # scripts and configure runs. It is not useful on other systems.
9464 # If it contains results you don't want to keep, you may remove or edit it.
9466 # By default, configure uses ./config.cache as the cache file,
9467 # creating it if it does not exist already. You can give configure
9468 # the --cache-file=FILE option to use a different cache file; that is
9469 # what configure does when it calls configure scripts in
9470 # subdirectories, so they share the cache.
9471 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9472 # config.status only pays attention to the cache file if you give it the
9473 # --recheck option to rerun configure.
9476 # The following way of writing the cache mishandles newlines in values,
9477 # but we know of no workaround that is simple, portable, and efficient.
9478 # So, don't put newlines in cache variables' values.
9479 # Ultrix sh set writes to stderr and can't be redirected directly,
9480 # and sets the high bit in the cache file unless we assign to the vars.
9482 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9484 # `set' does not quote correctly, so add quotes (double-quote substitution
9485 # turns \\\\ into \\, and sed turns \\ into \).
9487 -e "s/'/'\\\\''/g" \
9488 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9491 # `set' quotes correctly as required by POSIX, so do not add quotes.
9492 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9495 if cmp -s $cache_file confcache; then
9498 if test -w $cache_file; then
9499 echo "updating cache $cache_file"
9500 cat confcache > $cache_file
9502 echo "not updating unwritable cache $cache_file"
9507 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9509 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9510 # Let make expand exec_prefix.
9511 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9513 # Any assignment to VPATH causes Sun make to only execute
9514 # the first set of double-colon rules, so remove it if not needed.
9515 # If there is a colon in the path, we need to keep it.
9516 if test "x$srcdir" = x.; then
9517 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9520 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9522 DEFS=-DHAVE_CONFIG_H
9524 # Without the "./", some shells look in PATH for config.status.
9525 : ${CONFIG_STATUS=./config.status}
9527 echo creating $CONFIG_STATUS
9528 rm -f $CONFIG_STATUS
9529 cat > $CONFIG_STATUS <<EOF
9531 # Generated automatically by configure.
9532 # Run this file to recreate the current configuration.
9533 # This directory was configured as follows,
9534 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9536 # $0 $ac_configure_args
9538 # Compiler output produced by configure, useful for debugging
9539 # configure, is in ./config.log if it exists.
9541 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9544 case "\$ac_option" in
9545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9546 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9547 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9548 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9549 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9551 -help | --help | --hel | --he | --h)
9552 echo "\$ac_cs_usage"; exit 0 ;;
9553 *) echo "\$ac_cs_usage"; exit 1 ;;
9557 ac_given_srcdir=$srcdir
9558 ac_given_INSTALL="$INSTALL"
9560 trap 'rm -fr `echo "autoconf/Make.common \
9563 rescue/linux/Makefile \
9564 rescue/freebsd/Makefile \
9565 rescue/solaris/Makefile \
9566 scripts/startmysql \
9568 scripts/btraceback \
9579 src/console/Makefile \
9580 src/console/console.conf \
9581 src/gnome-console/Makefile \
9582 src/gnome-console/gnome-console.conf \
9583 src/tconsole/Makefile \
9585 src/dird/bacula-dir.conf \
9587 src/stored/Makefile \
9588 src/stored/bacula-sd.conf \
9589 src/filed/Makefile \
9591 src/filed/bacula-fd.conf \
9592 src/filed/win32/Makefile \
9594 src/cats/make_catalog_backup \
9595 src/cats/delete_catalog_backup \
9596 src/cats/alter_mysql_tables \
9597 src/cats/make_mysql_tables \
9598 src/cats/drop_mysql_tables \
9599 src/cats/create_mysql_database \
9600 src/cats/grant_mysql_privileges \
9601 src/cats/alter_sqlite_tables \
9602 src/cats/make_sqlite_tables \
9603 src/cats/drop_sqlite_tables \
9604 src/cats/create_sqlite_database \
9607 src/cats/create_bdb_database \
9608 src/cats/make_bdb_tables \
9609 src/cats/drop_bdb_tables \
9610 src/cats/make_bacula_tables \
9611 src/cats/drop_bacula_tables \
9612 src/findlib/Makefile \
9613 src/tools/Makefile \
9614 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9616 cat >> $CONFIG_STATUS <<EOF
9618 # Protect against being on the right side of a sed subst in config.status.
9619 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9620 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9624 s%@CFLAGS@%$CFLAGS%g
9625 s%@CPPFLAGS@%$CPPFLAGS%g
9626 s%@CXXFLAGS@%$CXXFLAGS%g
9627 s%@FFLAGS@%$FFLAGS%g
9629 s%@LDFLAGS@%$LDFLAGS%g
9631 s%@exec_prefix@%$exec_prefix%g
9632 s%@prefix@%$prefix%g
9633 s%@program_transform_name@%$program_transform_name%g
9634 s%@bindir@%$bindir%g
9635 s%@sbindir@%$sbindir%g
9636 s%@libexecdir@%$libexecdir%g
9637 s%@datadir@%$datadir%g
9638 s%@sysconfdir@%$sysconfdir%g
9639 s%@sharedstatedir@%$sharedstatedir%g
9640 s%@localstatedir@%$localstatedir%g
9641 s%@libdir@%$libdir%g
9642 s%@includedir@%$includedir%g
9643 s%@oldincludedir@%$oldincludedir%g
9644 s%@infodir@%$infodir%g
9645 s%@mandir@%$mandir%g
9646 s%@BUILD_DIR@%$BUILD_DIR%g
9647 s%@TRUEPRG@%$TRUEPRG%g
9648 s%@FALSEPRG@%$FALSEPRG%g
9650 s%@host_alias@%$host_alias%g
9651 s%@host_cpu@%$host_cpu%g
9652 s%@host_vendor@%$host_vendor%g
9653 s%@host_os@%$host_os%g
9654 s%@VERSION@%$VERSION%g
9656 s%@LSMDATE@%$LSMDATE%g
9660 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9661 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9662 s%@INSTALL_DATA@%$INSTALL_DATA%g
9663 s%@RANLIB@%$RANLIB%g
9673 s%@OPENSSL@%$OPENSSL%g
9674 s%@ARFLAGS@%$ARFLAGS%g
9675 s%@MAKE_SHELL@%$MAKE_SHELL%g
9676 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9677 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9678 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9679 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9680 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9681 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9682 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9683 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9684 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9685 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9686 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9687 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9688 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9689 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9690 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9691 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9692 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9693 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9694 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9695 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9696 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9697 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9698 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9699 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9700 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
9701 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
9702 s%@HAVE_DARWIN_OS_TRUE@%$HAVE_DARWIN_OS_TRUE%g
9703 s%@HAVE_DARWIN_OS_FALSE@%$HAVE_DARWIN_OS_FALSE%g
9704 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9705 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9706 s%@MSGFMT@%$MSGFMT%g
9707 s%@GNOME_LIBS@%$GNOME_LIBS%g
9708 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9709 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9710 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9711 s%@ZVT_LIBS@%$ZVT_LIBS%g
9712 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9713 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9714 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9715 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9716 s%@ORBIT_IDL@%$ORBIT_IDL%g
9717 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9718 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9719 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9720 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9721 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9722 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9723 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9724 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9725 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9726 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9727 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9728 s%@GNOME_DIR@%$GNOME_DIR%g
9729 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
9730 s%@STATIC_FD@%$STATIC_FD%g
9731 s%@STATIC_SD@%$STATIC_SD%g
9732 s%@STATIC_DIR@%$STATIC_DIR%g
9733 s%@STATIC_CONS@%$STATIC_CONS%g
9734 s%@ALL_DIRS@%$ALL_DIRS%g
9735 s%@CONS_INC@%$CONS_INC%g
9736 s%@CONS_LIBS@%$CONS_LIBS%g
9737 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9738 s%@READLINE_SRC@%$READLINE_SRC%g
9739 s%@working_dir@%$working_dir%g
9740 s%@scriptdir@%$scriptdir%g
9741 s%@dump_email@%$dump_email%g
9742 s%@job_email@%$job_email%g
9743 s%@smtp_host@%$smtp_host%g
9744 s%@piddir@%$piddir%g
9745 s%@subsysdir@%$subsysdir%g
9746 s%@baseport@%$baseport%g
9747 s%@dir_port@%$dir_port%g
9748 s%@fd_port@%$fd_port%g
9749 s%@sd_port@%$sd_port%g
9750 s%@dir_password@%$dir_password%g
9751 s%@fd_password@%$fd_password%g
9752 s%@sd_password@%$sd_password%g
9753 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9754 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9755 s%@SQL_BINDIR@%$SQL_BINDIR%g
9757 s%@DB_NAME@%$DB_NAME%g
9758 s%@EXEEXT@%$EXEEXT%g
9760 s%@build_alias@%$build_alias%g
9761 s%@build_cpu@%$build_cpu%g
9762 s%@build_vendor@%$build_vendor%g
9763 s%@build_os@%$build_os%g
9764 s%@GETCONF@%$GETCONF%g
9765 s%@X_CFLAGS@%$X_CFLAGS%g
9766 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9767 s%@X_LIBS@%$X_LIBS%g
9768 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9769 s%@LIBOBJS@%$LIBOBJS%g
9770 s%@ALLOCA@%$ALLOCA%g
9771 s%@FDLIBS@%$FDLIBS%g
9773 s%@DINCLUDE@%$DINCLUDE%g
9775 s%@DB_LIBS@%$DB_LIBS%g
9776 s%@OBJLIST@%$OBJLIST%g
9777 s%@hostname@%$hostname%g
9778 s%@TAPEDRIVE@%$TAPEDRIVE%g
9781 s%@DISTNAME@%$DISTNAME%g
9782 s%@DISTVER@%$DISTVER%g
9783 /@MCOMMON@/r $MCOMMON
9789 cat >> $CONFIG_STATUS <<\EOF
9791 # Split the substitutions into bite-sized pieces for seds with
9792 # small command number limits, like on Digital OSF/1 and HP-UX.
9793 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9794 ac_file=1 # Number of current file.
9795 ac_beg=1 # First line for current file.
9796 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9799 while $ac_more_lines; do
9800 if test $ac_beg -gt 1; then
9801 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9803 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9805 if test ! -s conftest.s$ac_file; then
9807 rm -f conftest.s$ac_file
9809 if test -z "$ac_sed_cmds"; then
9810 ac_sed_cmds="sed -f conftest.s$ac_file"
9812 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9814 ac_file=`expr $ac_file + 1`
9816 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9819 if test -z "$ac_sed_cmds"; then
9824 cat >> $CONFIG_STATUS <<EOF
9826 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9829 rescue/linux/Makefile \
9830 rescue/freebsd/Makefile \
9831 rescue/solaris/Makefile \
9832 scripts/startmysql \
9834 scripts/btraceback \
9845 src/console/Makefile \
9846 src/console/console.conf \
9847 src/gnome-console/Makefile \
9848 src/gnome-console/gnome-console.conf \
9849 src/tconsole/Makefile \
9851 src/dird/bacula-dir.conf \
9853 src/stored/Makefile \
9854 src/stored/bacula-sd.conf \
9855 src/filed/Makefile \
9857 src/filed/bacula-fd.conf \
9858 src/filed/win32/Makefile \
9860 src/cats/make_catalog_backup \
9861 src/cats/delete_catalog_backup \
9862 src/cats/alter_mysql_tables \
9863 src/cats/make_mysql_tables \
9864 src/cats/drop_mysql_tables \
9865 src/cats/create_mysql_database \
9866 src/cats/grant_mysql_privileges \
9867 src/cats/alter_sqlite_tables \
9868 src/cats/make_sqlite_tables \
9869 src/cats/drop_sqlite_tables \
9870 src/cats/create_sqlite_database \
9873 src/cats/create_bdb_database \
9874 src/cats/make_bdb_tables \
9875 src/cats/drop_bdb_tables \
9876 src/cats/make_bacula_tables \
9877 src/cats/drop_bacula_tables \
9878 src/findlib/Makefile \
9879 src/tools/Makefile \
9882 cat >> $CONFIG_STATUS <<\EOF
9883 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9884 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9886 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9887 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9888 *) ac_file_in="${ac_file}.in" ;;
9891 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9893 # Remove last slash and all that follows it. Not all systems have dirname.
9894 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9895 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9896 # The file is in a subdirectory.
9897 test ! -d "$ac_dir" && mkdir "$ac_dir"
9898 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9899 # A "../" for each directory in $ac_dir_suffix.
9900 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9902 ac_dir_suffix= ac_dots=
9905 case "$ac_given_srcdir" in
9907 if test -z "$ac_dots"; then top_srcdir=.
9908 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9909 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9911 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9912 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9915 case "$ac_given_INSTALL" in
9916 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9917 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9920 echo creating "$ac_file"
9922 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9924 *Makefile*) ac_comsub="1i\\
9925 # $configure_input" ;;
9929 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9931 s%@configure_input@%$configure_input%g
9932 s%@srcdir@%$srcdir%g
9933 s%@top_srcdir@%$top_srcdir%g
9934 s%@INSTALL@%$INSTALL%g
9935 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9939 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9940 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9942 # ac_d sets the value in "#define NAME VALUE" lines.
9943 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9944 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9947 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9948 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9949 ac_uB='\([ ]\)%\1#\2define\3'
9952 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9953 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9954 ac_eB='$%\1#\2define\3'
9958 if test "${CONFIG_HEADERS+set}" != set; then
9960 cat >> $CONFIG_STATUS <<EOF
9961 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9963 cat >> $CONFIG_STATUS <<\EOF
9965 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9966 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9968 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9969 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9970 *) ac_file_in="${ac_file}.in" ;;
9973 echo creating $ac_file
9975 rm -f conftest.frag conftest.in conftest.out
9976 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9977 cat $ac_file_inputs > conftest.in
9981 # Transform confdefs.h into a sed script conftest.vals that substitutes
9982 # the proper values into config.h.in to produce config.h. And first:
9983 # Protect against being on the right side of a sed subst in config.status.
9984 # Protect against being in an unquoted here document in config.status.
9986 cat > conftest.hdr <<\EOF
9989 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9993 sed -n -f conftest.hdr confdefs.h > conftest.vals
9996 # This sed command replaces #undef with comments. This is necessary, for
9997 # example, in the case of _POSIX_SOURCE, which is predefined and required
9998 # on some systems where configure will not decide to define it.
9999 cat >> conftest.vals <<\EOF
10000 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10003 # Break up conftest.vals because some shells have a limit on
10004 # the size of here documents, and old seds have small limits too.
10006 rm -f conftest.tail
10009 ac_lines=`grep -c . conftest.vals`
10010 # grep -c gives empty output for an empty file on some AIX systems.
10011 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10012 # Write a limited-size here document to conftest.frag.
10013 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10014 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10016 sed -f conftest.frag conftest.in > conftest.out
10018 mv conftest.out conftest.in
10019 ' >> $CONFIG_STATUS
10020 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10021 rm -f conftest.vals
10022 mv conftest.tail conftest.vals
10024 rm -f conftest.vals
10026 cat >> $CONFIG_STATUS <<\EOF
10027 rm -f conftest.frag conftest.h
10028 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10029 cat conftest.in >> conftest.h
10031 if cmp -s $ac_file conftest.h 2>/dev/null; then
10032 echo "$ac_file is unchanged"
10035 # Remove last slash and all that follows it. Not all systems have dirname.
10036 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10037 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10038 # The file is in a subdirectory.
10039 test ! -d "$ac_dir" && mkdir "$ac_dir"
10042 mv conftest.h $ac_file
10047 cat >> $CONFIG_STATUS <<EOF
10050 cat >> $CONFIG_STATUS <<\EOF
10051 (echo "Doing make of dependencies"; make depend;)
10055 chmod +x $CONFIG_STATUS
10056 rm -fr confdefs* $ac_clean_files
10057 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10061 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
10062 chmod 755 console gconsole
10064 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
10065 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
10066 chmod 755 src/cats/create_mysql_database
10067 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
10068 chmod 755 src/cats/alter_mysql_tables
10069 chmod 755 src/cats/grant_mysql_privileges
10070 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
10071 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
10072 chmod 755 src/cats/create_sqlite_database
10073 chmod 755 src/cats/alter_sqlite_tables
10074 chmod 755 src/cats/sqlite
10075 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
10076 chmod 755 src/cats/create_bdb_database
10078 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
10079 largefile_support="yes"
10084 Configuration on `date`:
10086 Host: $host -- ${DISTNAME} ${DISTVER}
10087 Bacula version: ${VERSION} (${DATE})
10088 Source code location: ${srcdir}
10089 Install binaries: ${sbindir}
10090 Install config files: ${sysconfdir}
10091 Scripts directory ${scriptdir}
10092 Working directory ${working_dir}
10094 C++ Compiler: ${CXX}
10095 Compiler flags: ${CFLAGS}
10096 Linker flags: ${LDFLAGS}
10098 Statically Linked Tools: ${support_static_tools}
10099 Statically Linked FD: ${support_static_fd}
10100 Statically Linked SD: ${support_static_sd}
10101 Statically Linked DIR: ${support_static_dir}
10102 Statically Linked CONS: ${support_static_cons}
10103 Database type: ${db_name}
10104 Database lib: ${DB_LIBS}
10106 Job Output Email: ${job_email}
10107 Traceback Email: ${dump_email}
10108 SMTP Host Address: ${smtp_host}
10109 Director Port ${dir_port}
10110 File daemon Port ${fd_port}
10111 Storage daemon Port ${sd_port}
10112 SQL binaries Directory ${SQL_BINDIR}
10114 Large file support: $largefile_support
10115 readline support: ${got_readline} ${PRTREADLINE_SRC}
10116 TCP Wrappers support: ${TCPW_MSG}
10117 ZLIB support: ${have_zlib}
10118 enable-smartalloc: ${support_smartalloc}
10119 enable-gnome: ${support_gnome}
10120 client-only: ${build_client_only}
10127 # cweb support: ${got_cweb} ${CWEB_SRC}
10128 # gmp support: ${got_gmp} ${GMP_SRC}