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 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
711 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
712 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
713 echo "configuring for bacula $VERSION ($DATE)"
717 # Extract the first word of "gcc", so it can be a program name with args.
718 set dummy gcc; ac_word=$2
719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
720 echo "configure:721: checking for $ac_word" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 if test -n "$CC"; then
725 ac_cv_prog_CC="$CC" # Let the user override the test.
727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
729 for ac_dir in $ac_dummy; do
730 test -z "$ac_dir" && ac_dir=.
731 if test -f $ac_dir/$ac_word; then
740 if test -n "$CC"; then
741 echo "$ac_t""$CC" 1>&6
743 echo "$ac_t""no" 1>&6
746 if test -z "$CC"; then
747 # Extract the first word of "cc", so it can be a program name with args.
748 set dummy cc; ac_word=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 if test -n "$CC"; then
755 ac_cv_prog_CC="$CC" # Let the user override the test.
757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
760 for ac_dir in $ac_dummy; do
761 test -z "$ac_dir" && ac_dir=.
762 if test -f $ac_dir/$ac_word; then
763 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
772 if test $ac_prog_rejected = yes; then
773 # We found a bogon in the path, so make sure we never use it.
774 set dummy $ac_cv_prog_CC
776 if test $# -gt 0; then
777 # We chose a different compiler from the bogus one.
778 # However, it has the same basename, so the bogon will be chosen
779 # first if we set CC to just the basename; use the full file name.
781 set dummy "$ac_dir/$ac_word" "$@"
789 if test -n "$CC"; then
790 echo "$ac_t""$CC" 1>&6
792 echo "$ac_t""no" 1>&6
795 if test -z "$CC"; then
798 # Extract the first word of "cl", so it can be a program name with args.
799 set dummy cl; ac_word=$2
800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
801 echo "configure:802: checking for $ac_word" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 if test -n "$CC"; then
806 ac_cv_prog_CC="$CC" # Let the user override the test.
808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
810 for ac_dir in $ac_dummy; do
811 test -z "$ac_dir" && ac_dir=.
812 if test -f $ac_dir/$ac_word; then
821 if test -n "$CC"; then
822 echo "$ac_t""$CC" 1>&6
824 echo "$ac_t""no" 1>&6
829 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
832 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
833 echo "configure:834: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
837 ac_cpp='$CPP $CPPFLAGS'
838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
840 cross_compiling=$ac_cv_prog_cc_cross
842 cat > conftest.$ac_ext << EOF
844 #line 845 "configure"
845 #include "confdefs.h"
849 if { (eval echo configure:850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
850 ac_cv_prog_cc_works=yes
851 # If we can't run a trivial program, we are probably using a cross compiler.
852 if (./conftest; exit) 2>/dev/null; then
853 ac_cv_prog_cc_cross=no
855 ac_cv_prog_cc_cross=yes
858 echo "configure: failed program was:" >&5
859 cat conftest.$ac_ext >&5
860 ac_cv_prog_cc_works=no
864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
865 ac_cpp='$CPP $CPPFLAGS'
866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
868 cross_compiling=$ac_cv_prog_cc_cross
870 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
871 if test $ac_cv_prog_cc_works = no; then
872 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
874 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
875 echo "configure:876: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
876 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
877 cross_compiling=$ac_cv_prog_cc_cross
879 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
880 echo "configure:881: checking whether we are using GNU C" >&5
881 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
884 cat > conftest.c <<EOF
889 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
896 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
898 if test $ac_cv_prog_gcc = yes; then
904 ac_test_CFLAGS="${CFLAGS+set}"
905 ac_save_CFLAGS="$CFLAGS"
907 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
908 echo "configure:909: checking whether ${CC-cc} accepts -g" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 echo 'void f(){}' > conftest.c
913 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
922 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
923 if test "$ac_test_CFLAGS" = set; then
924 CFLAGS="$ac_save_CFLAGS"
925 elif test $ac_cv_prog_cc_g = yes; then
926 if test "$GCC" = yes; then
932 if test "$GCC" = yes; then
939 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
941 # Extract the first word of "$ac_prog", so it can be a program name with args.
942 set dummy $ac_prog; ac_word=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 if test -n "$CXX"; then
949 ac_cv_prog_CXX="$CXX" # Let the user override the test.
951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
953 for ac_dir in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir=.
955 if test -f $ac_dir/$ac_word; then
956 ac_cv_prog_CXX="$ac_prog"
963 CXX="$ac_cv_prog_CXX"
964 if test -n "$CXX"; then
965 echo "$ac_t""$CXX" 1>&6
967 echo "$ac_t""no" 1>&6
970 test -n "$CXX" && break
972 test -n "$CXX" || CXX="gcc"
975 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
976 echo "configure:977: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
980 ac_cpp='$CXXCPP $CPPFLAGS'
981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
983 cross_compiling=$ac_cv_prog_cxx_cross
985 cat > conftest.$ac_ext << EOF
987 #line 988 "configure"
988 #include "confdefs.h"
990 int main(){return(0);}
992 if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
993 ac_cv_prog_cxx_works=yes
994 # If we can't run a trivial program, we are probably using a cross compiler.
995 if (./conftest; exit) 2>/dev/null; then
996 ac_cv_prog_cxx_cross=no
998 ac_cv_prog_cxx_cross=yes
1001 echo "configure: failed program was:" >&5
1002 cat conftest.$ac_ext >&5
1003 ac_cv_prog_cxx_works=no
1007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1008 ac_cpp='$CPP $CPPFLAGS'
1009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1011 cross_compiling=$ac_cv_prog_cc_cross
1013 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1014 if test $ac_cv_prog_cxx_works = no; then
1015 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1017 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1019 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1020 cross_compiling=$ac_cv_prog_cxx_cross
1022 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether we are using GNU C++" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 cat > conftest.C <<EOF
1032 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1039 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1041 if test $ac_cv_prog_gxx = yes; then
1047 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1048 ac_save_CXXFLAGS="$CXXFLAGS"
1050 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1051 echo "configure:1052: checking whether ${CXX-g++} accepts -g" >&5
1052 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 echo 'void f(){}' > conftest.cc
1056 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1057 ac_cv_prog_cxx_g=yes
1065 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1066 if test "$ac_test_CXXFLAGS" = set; then
1067 CXXFLAGS="$ac_save_CXXFLAGS"
1068 elif test $ac_cv_prog_cxx_g = yes; then
1069 if test "$GXX" = yes; then
1075 if test "$GXX" = yes; then
1082 for ac_declaration in \
1084 '#include <stdlib.h>' \
1085 'extern "C" void std::exit (int) throw (); using std::exit;' \
1086 'extern "C" void std::exit (int); using std::exit;' \
1087 'extern "C" void exit (int) throw ();' \
1088 'extern "C" void exit (int);' \
1091 cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1100 if { (eval echo configure:1101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1109 cat > conftest.$ac_ext <<EOF
1110 #line 1111 "configure"
1111 #include "confdefs.h"
1117 if { (eval echo configure:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1121 echo "configure: failed program was:" >&5
1122 cat conftest.$ac_ext >&5
1126 if test -n "$ac_declaration"; then
1127 echo '#ifdef __cplusplus' >>confdefs.h
1128 echo $ac_declaration >>confdefs.h
1129 echo '#endif' >>confdefs.h
1133 if test "x$CC" != xcc; then
1134 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1135 echo "configure:1136: checking whether $CC and cc understand -c and -o together" >&5
1137 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether cc understands -c and -o together" >&5
1140 set dummy $CC; ac_cc="`echo $2 |
1141 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1142 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 echo 'foo(){}' > conftest.c
1146 # Make sure it works both with $CC and with simple cc.
1147 # We do the test twice because some compilers refuse to overwrite an
1148 # existing .o file with -o, though they will create one.
1149 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1150 if { (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1151 test -f conftest.o && { (eval echo configure:1152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1153 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1154 if test "x$CC" != xcc; then
1155 # Test first that cc exists at all.
1156 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1157 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1158 if { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1159 test -f conftest.o && { (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1164 # cc exists but doesn't like -o.
1165 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1170 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1175 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1176 echo "$ac_t""yes" 1>&6
1178 echo "$ac_t""no" 1>&6
1179 cat >> confdefs.h <<\EOF
1180 #define NO_MINUS_C_MINUS_O 1
1184 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1185 echo "configure:1186: checking how to run the C preprocessor" >&5
1186 # On Suns, sometimes $CPP names a directory.
1187 if test -n "$CPP" && test -d "$CPP"; then
1190 if test -z "$CPP"; then
1191 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 # This must be in double quotes, not single quotes, because CPP may get
1195 # substituted into the Makefile and "${CC-cc}" will confuse make.
1197 # On the NeXT, cc -E runs the code through the compiler's parser,
1198 # not just through cpp.
1199 cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1208 if test -z "$ac_err"; then
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1215 CPP="${CC-cc} -E -traditional-cpp"
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225 if test -z "$ac_err"; then
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1232 CPP="${CC-cc} -nologo -E"
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1240 { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1242 if test -z "$ac_err"; then
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1256 ac_cv_prog_CPP="$CPP"
1258 CPP="$ac_cv_prog_CPP"
1260 ac_cv_prog_CPP="$CPP"
1262 echo "$ac_t""$CPP" 1>&6
1264 if test $ac_cv_prog_gcc = yes; then
1265 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1266 echo "configure:1267: checking whether ${CC-cc} needs -traditional" >&5
1267 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 ac_pattern="Autoconf.*'x'"
1271 cat > conftest.$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1278 egrep "$ac_pattern" >/dev/null 2>&1; then
1280 ac_cv_prog_gcc_traditional=yes
1283 ac_cv_prog_gcc_traditional=no
1288 if test $ac_cv_prog_gcc_traditional = no; then
1289 cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1296 egrep "$ac_pattern" >/dev/null 2>&1; then
1298 ac_cv_prog_gcc_traditional=yes
1305 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1306 if test $ac_cv_prog_gcc_traditional = yes; then
1307 CC="$CC -traditional"
1313 cat >> confdefs.h <<\EOF
1319 # Find a good install program. We prefer a C program (faster),
1320 # so one script is as good as another. But avoid the broken or
1321 # incompatible versions:
1322 # SysV /etc/install, /usr/sbin/install
1323 # SunOS /usr/etc/install
1324 # IRIX /sbin/install
1326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1329 # ./install, which can be erroneously created by make from ./install.sh.
1330 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1331 echo "configure:1332: checking for a BSD compatible install" >&5
1332 if test -z "$INSTALL"; then
1333 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1337 for ac_dir in $PATH; do
1338 # Account for people who put trailing slashes in PATH elements.
1340 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1342 # OSF1 and SCO ODT 3.0 have their own names for install.
1343 # Don't use installbsd from OSF since it installs stuff as root
1345 for ac_prog in ginstall scoinst install; do
1346 if test -f $ac_dir/$ac_prog; then
1347 if test $ac_prog = install &&
1348 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1349 # AIX install. It has an incompatible calling convention.
1352 ac_cv_path_install="$ac_dir/$ac_prog -c"
1363 if test "${ac_cv_path_install+set}" = set; then
1364 INSTALL="$ac_cv_path_install"
1366 # As a last resort, use the slow shell script. We don't cache a
1367 # path for INSTALL within a source directory, because that will
1368 # break other packages using the cache if that directory is
1369 # removed, or if the path is relative.
1370 INSTALL="$ac_install_sh"
1373 echo "$ac_t""$INSTALL" 1>&6
1375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1376 # It thinks the first close brace ends the variable substitution.
1377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1383 # Extract the first word of "ranlib", so it can be a program name with args.
1384 set dummy ranlib; ac_word=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test -n "$RANLIB"; then
1391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1395 for ac_dir in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir=.
1397 if test -f $ac_dir/$ac_word; then
1398 ac_cv_prog_RANLIB="ranlib"
1403 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1406 RANLIB="$ac_cv_prog_RANLIB"
1407 if test -n "$RANLIB"; then
1408 echo "$ac_t""$RANLIB" 1>&6
1410 echo "$ac_t""no" 1>&6
1413 # Extract the first word of "mv", so it can be a program name with args.
1414 set dummy mv; ac_word=$2
1415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1416 echo "configure:1417: checking for $ac_word" >&5
1417 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1422 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1425 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1430 for ac_dir in $ac_dummy; do
1431 test -z "$ac_dir" && ac_dir=.
1432 if test -f $ac_dir/$ac_word; then
1433 ac_cv_path_MV="$ac_dir/$ac_word"
1438 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1443 if test -n "$MV"; then
1444 echo "$ac_t""$MV" 1>&6
1446 echo "$ac_t""no" 1>&6
1449 # Extract the first word of "rm", so it can be a program name with args.
1450 set dummy rm; ac_word=$2
1451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452 echo "configure:1453: checking for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1458 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1461 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1466 for ac_dir in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir=.
1468 if test -f $ac_dir/$ac_word; then
1469 ac_cv_path_RM="$ac_dir/$ac_word"
1474 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1479 if test -n "$RM"; then
1480 echo "$ac_t""$RM" 1>&6
1482 echo "$ac_t""no" 1>&6
1485 # Extract the first word of "cp", so it can be a program name with args.
1486 set dummy cp; ac_word=$2
1487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1488 echo "configure:1489: checking for $ac_word" >&5
1489 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1494 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1497 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1502 for ac_dir in $ac_dummy; do
1503 test -z "$ac_dir" && ac_dir=.
1504 if test -f $ac_dir/$ac_word; then
1505 ac_cv_path_CP="$ac_dir/$ac_word"
1510 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1515 if test -n "$CP"; then
1516 echo "$ac_t""$CP" 1>&6
1518 echo "$ac_t""no" 1>&6
1521 # Extract the first word of "sed", so it can be a program name with args.
1522 set dummy sed; ac_word=$2
1523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1524 echo "configure:1525: checking for $ac_word" >&5
1525 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1530 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1533 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1538 for ac_dir in $ac_dummy; do
1539 test -z "$ac_dir" && ac_dir=.
1540 if test -f $ac_dir/$ac_word; then
1541 ac_cv_path_SED="$ac_dir/$ac_word"
1546 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1550 SED="$ac_cv_path_SED"
1551 if test -n "$SED"; then
1552 echo "$ac_t""$SED" 1>&6
1554 echo "$ac_t""no" 1>&6
1557 # Extract the first word of "awk", so it can be a program name with args.
1558 set dummy awk; ac_word=$2
1559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1560 echo "configure:1561: checking for $ac_word" >&5
1561 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1566 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1569 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1574 for ac_dir in $ac_dummy; do
1575 test -z "$ac_dir" && ac_dir=.
1576 if test -f $ac_dir/$ac_word; then
1577 ac_cv_path_AWK="$ac_dir/$ac_word"
1582 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1586 AWK="$ac_cv_path_AWK"
1587 if test -n "$AWK"; then
1588 echo "$ac_t""$AWK" 1>&6
1590 echo "$ac_t""no" 1>&6
1593 # Extract the first word of "echo", so it can be a program name with args.
1594 set dummy echo; ac_word=$2
1595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1596 echo "configure:1597: checking for $ac_word" >&5
1597 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1602 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1605 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1610 for ac_dir in $ac_dummy; do
1611 test -z "$ac_dir" && ac_dir=.
1612 if test -f $ac_dir/$ac_word; then
1613 ac_cv_path_ECHO="$ac_dir/$ac_word"
1618 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1622 ECHO="$ac_cv_path_ECHO"
1623 if test -n "$ECHO"; then
1624 echo "$ac_t""$ECHO" 1>&6
1626 echo "$ac_t""no" 1>&6
1629 # Extract the first word of "cmp", so it can be a program name with args.
1630 set dummy cmp; ac_word=$2
1631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1632 echo "configure:1633: checking for $ac_word" >&5
1633 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1638 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1641 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1646 for ac_dir in $ac_dummy; do
1647 test -z "$ac_dir" && ac_dir=.
1648 if test -f $ac_dir/$ac_word; then
1649 ac_cv_path_CMP="$ac_dir/$ac_word"
1654 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1658 CMP="$ac_cv_path_CMP"
1659 if test -n "$CMP"; then
1660 echo "$ac_t""$CMP" 1>&6
1662 echo "$ac_t""no" 1>&6
1665 # Extract the first word of "tbl", so it can be a program name with args.
1666 set dummy tbl; ac_word=$2
1667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1668 echo "configure:1669: checking for $ac_word" >&5
1669 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1674 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1677 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1682 for ac_dir in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_path_TBL="$ac_dir/$ac_word"
1690 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1694 TBL="$ac_cv_path_TBL"
1695 if test -n "$TBL"; then
1696 echo "$ac_t""$TBL" 1>&6
1698 echo "$ac_t""no" 1>&6
1701 # Extract the first word of "ar", so it can be a program name with args.
1702 set dummy ar; ac_word=$2
1703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_word" >&5
1705 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1710 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1713 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1718 for ac_dir in $ac_dummy; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/$ac_word; then
1721 ac_cv_path_AR="$ac_dir/$ac_word"
1726 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1731 if test -n "$AR"; then
1732 echo "$ac_t""$AR" 1>&6
1734 echo "$ac_t""no" 1>&6
1737 # Extract the first word of "ranlib", so it can be a program name with args.
1738 set dummy ranlib; ac_word=$2
1739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_word" >&5
1741 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1746 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1749 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1754 for ac_dir in $ac_dummy; do
1755 test -z "$ac_dir" && ac_dir=.
1756 if test -f $ac_dir/$ac_word; then
1757 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1762 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1766 RANLIB="$ac_cv_path_RANLIB"
1767 if test -n "$RANLIB"; then
1768 echo "$ac_t""$RANLIB" 1>&6
1770 echo "$ac_t""no" 1>&6
1773 # Extract the first word of "openssl", so it can be a program name with args.
1774 set dummy openssl; ac_word=$2
1775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1776 echo "configure:1777: checking for $ac_word" >&5
1777 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1782 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1785 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1790 for ac_dir in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir=.
1792 if test -f $ac_dir/$ac_word; then
1793 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1798 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1802 OPENSSL="$ac_cv_path_OPENSSL"
1803 if test -n "$OPENSSL"; then
1804 echo "$ac_t""$OPENSSL" 1>&6
1806 echo "$ac_t""no" 1>&6
1809 # Extract the first word of "mtx", so it can be a program name with args.
1810 set dummy mtx; ac_word=$2
1811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1812 echo "configure:1813: checking for $ac_word" >&5
1813 if eval "test \"`echo '$''{'ac_cv_path_MTX'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1818 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
1821 ac_cv_path_MTX="$MTX" # Let the user override the test with a dos path.
1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1826 for ac_dir in $ac_dummy; do
1827 test -z "$ac_dir" && ac_dir=.
1828 if test -f $ac_dir/$ac_word; then
1829 ac_cv_path_MTX="$ac_dir/$ac_word"
1834 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
1838 MTX="$ac_cv_path_MTX"
1839 if test -n "$MTX"; then
1840 echo "$ac_t""$MTX" 1>&6
1842 echo "$ac_t""no" 1>&6
1845 # Extract the first word of "pkg-config", so it can be a program name with args.
1846 set dummy pkg-config; ac_word=$2
1847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_word" >&5
1849 if eval "test \"`echo '$''{'ac_cv_path_PKGCONFIG'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 case "$PKGCONFIG" in
1854 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
1857 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a dos path.
1860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1862 for ac_dir in $ac_dummy; do
1863 test -z "$ac_dir" && ac_dir=.
1864 if test -f $ac_dir/$ac_word; then
1865 ac_cv_path_PKGCONFIG="$ac_dir/$ac_word"
1870 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
1874 PKGCONFIG="$ac_cv_path_PKGCONFIG"
1875 if test -n "$PKGCONFIG"; then
1876 echo "$ac_t""$PKGCONFIG" 1>&6
1878 echo "$ac_t""no" 1>&6
1882 test -n "$ARFLAG" || ARFLAGS="cr"
1895 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1896 echo "configure:1897: checking for Operating System" >&5
1897 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1898 echo "configure:1899: checking for Cygwin environment" >&5
1899 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1909 #define __CYGWIN__ __CYGWIN32__
1914 if { (eval echo configure:1915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1927 echo "$ac_t""$ac_cv_cygwin" 1>&6
1929 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1930 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1936 HAVE_SUN_OS_FALSE='#'
1938 HAVE_SUN_OS_TRUE='#'
1941 cat >> confdefs.h <<\EOF
1942 #define HAVE_SUN_OS 1
1950 HAVE_SUN_OS_FALSE='#'
1952 HAVE_SUN_OS_TRUE='#'
1957 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1963 HAVE_OSF1_OS_FALSE='#'
1965 HAVE_OSF1_OS_TRUE='#'
1968 cat >> confdefs.h <<\EOF
1969 #define HAVE_OSF1_OS 1
1977 HAVE_OSF1_OS_FALSE='#'
1979 HAVE_OSF1_OS_TRUE='#'
1984 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1990 HAVE_AIX_OS_FALSE='#'
1992 HAVE_AIX_OS_TRUE='#'
1995 cat >> confdefs.h <<\EOF
1996 #define HAVE_AIX_OS 1
2004 HAVE_AIX_OS_FALSE='#'
2006 HAVE_AIX_OS_TRUE='#'
2011 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2017 HAVE_HPUX_OS_FALSE='#'
2019 HAVE_HPUX_OS_TRUE='#'
2022 cat >> confdefs.h <<\EOF
2023 #define HAVE_HPUX_OS 1
2031 HAVE_HPUX_OS_FALSE='#'
2033 HAVE_HPUX_OS_TRUE='#'
2038 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
2044 HAVE_LINUX_OS_FALSE='#'
2046 HAVE_LINUX_OS_TRUE='#'
2047 HAVE_LINUX_OS_FALSE=
2049 cat >> confdefs.h <<\EOF
2050 #define HAVE_LINUX_OS 1
2058 HAVE_LINUX_OS_FALSE='#'
2060 HAVE_LINUX_OS_TRUE='#'
2061 HAVE_LINUX_OS_FALSE=
2065 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2070 HAVE_FREEBSD_OS_TRUE=
2071 HAVE_FREEBSD_OS_FALSE='#'
2073 HAVE_FREEBSD_OS_TRUE='#'
2074 HAVE_FREEBSD_OS_FALSE=
2076 cat >> confdefs.h <<\EOF
2077 #define HAVE_FREEBSD_OS 1
2084 HAVE_FREEBSD_OS_TRUE=
2085 HAVE_FREEBSD_OS_FALSE='#'
2087 HAVE_FREEBSD_OS_TRUE='#'
2088 HAVE_FREEBSD_OS_FALSE=
2092 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2097 HAVE_NETBSD_OS_TRUE=
2098 HAVE_NETBSD_OS_FALSE='#'
2100 HAVE_NETBSD_OS_TRUE='#'
2101 HAVE_NETBSD_OS_FALSE=
2103 cat >> confdefs.h <<\EOF
2104 #define HAVE_NETBSD_OS 1
2111 HAVE_NETBSD_OS_TRUE=
2112 HAVE_NETBSD_OS_FALSE='#'
2114 HAVE_NETBSD_OS_TRUE='#'
2115 HAVE_NETBSD_OS_FALSE=
2119 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2124 HAVE_OPENBSD_OS_TRUE=
2125 HAVE_OPENBSD_OS_FALSE='#'
2127 HAVE_OPENBSD_OS_TRUE='#'
2128 HAVE_OPENBSD_OS_FALSE=
2130 cat >> confdefs.h <<\EOF
2131 #define HAVE_OPENBSD_OS 1
2138 HAVE_OPENBSD_OS_TRUE=
2139 HAVE_OPENBSD_OS_FALSE='#'
2141 HAVE_OPENBSD_OS_TRUE='#'
2142 HAVE_OPENBSD_OS_FALSE=
2146 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2152 HAVE_BSDI_OS_FALSE='#'
2154 HAVE_BSDI_OS_TRUE='#'
2157 cat >> confdefs.h <<\EOF
2158 #define HAVE_BSDI_OS 1
2166 HAVE_BSDI_OS_FALSE='#'
2168 HAVE_BSDI_OS_TRUE='#'
2173 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2179 HAVE_SGI_OS_FALSE='#'
2181 HAVE_SGI_OS_TRUE='#'
2184 cat >> confdefs.h <<\EOF
2185 #define HAVE_SGI_OS 1
2193 HAVE_SGI_OS_FALSE='#'
2195 HAVE_SGI_OS_TRUE='#'
2200 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2206 HAVE_IRIX_OS_FALSE='#'
2208 HAVE_IRIX_OS_TRUE='#'
2211 cat >> confdefs.h <<\EOF
2212 #define HAVE_IRIX_OS 1
2220 HAVE_IRIX_OS_FALSE='#'
2222 HAVE_IRIX_OS_TRUE='#'
2227 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2232 HAVE_DARWIN_OS_TRUE=
2233 HAVE_DARWIN_OS_FALSE='#'
2235 HAVE_DARWIN_OS_TRUE='#'
2236 HAVE_DARWIN_OS_FALSE=
2238 cat >> confdefs.h <<\EOF
2239 #define HAVE_DARWIN_OS 1
2246 HAVE_DARWIN_OS_TRUE=
2247 HAVE_DARWIN_OS_FALSE='#'
2249 HAVE_DARWIN_OS_TRUE='#'
2250 HAVE_DARWIN_OS_FALSE=
2254 echo "$ac_t""" "" 1>&6
2257 # -----------------------------------------------------------
2258 # ----------------------------------------------------------
2259 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2260 echo "configure:2261: checking for Operating System Distribution" >&5
2261 if test "x$DISTNAME" != "x"
2263 echo "distname set to $DISTNAME"
2264 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2267 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
2270 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2273 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2276 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2279 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2282 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2285 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2288 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2291 elif test -f /etc/SuSE-release
2294 elif test -d /etc/SuSEconfig
2297 elif test -f /etc/mandrake-release
2300 elif test -f /etc/redhat-release
2303 elif test -f /etc/gentoo-release
2306 elif test -f /etc/debian_version
2309 elif test -f /etc/slackware-version
2312 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2315 elif test -f /etc/engarde-version
2318 elif test "$ac_cv_cygwin" = yes
2321 cat >> confdefs.h <<\EOF
2322 #define HAVE_CYGWIN 1
2328 echo "$ac_t""" "" 1>&6
2331 # -----------------------------------------------------------
2332 # ----------------------------------------------------------
2337 INSIDE_GNOME_COMMON_TRUE=
2338 INSIDE_GNOME_COMMON_FALSE='#'
2340 INSIDE_GNOME_COMMON_TRUE='#'
2341 INSIDE_GNOME_COMMON_FALSE=
2344 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2346 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2349 # ------------------------------------------------------------------
2350 # If the user has not set --prefix, we set our default to nothing.
2351 # In this case, if the user has not set --sysconfdir, we set it
2352 # to the package default of /etc/bacula. If either --prefix or
2353 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2354 # ------------------------------------------------------------------
2355 if test x${prefix} = xNONE ; then
2356 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2357 sysconfdir=/etc/bacula
2361 sysconfdir=`eval echo ${sysconfdir}`
2363 # -------------------------------------------------------------------------
2364 # If the user has not set --exec-prefix, we default to ${prefix}
2365 # -------------------------------------------------------------------------
2366 if test x${exec_prefix} = xNONE ; then
2367 exec_prefix=${prefix}
2370 # ------------------------------------------------------------------
2371 # If the user has not set --sbindir, we set our default as /sbin
2372 # ------------------------------------------------------------------
2373 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2374 sbindir=${exec_prefix}/sbin
2376 sbindir=`eval echo ${sbindir}`
2378 # ------------------------------------------------------------------
2379 # All list of languages for which a translation exist. Each
2380 # language is separated by a space.
2381 # ------------------------------------------------------------------
2384 for ac_prog in msgfmt
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389 echo "configure:2390: checking for $ac_word" >&5
2390 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2395 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2398 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2403 for ac_dir in $ac_dummy; do
2404 test -z "$ac_dir" && ac_dir=.
2405 if test -f $ac_dir/$ac_word; then
2406 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2414 MSGFMT="$ac_cv_path_MSGFMT"
2415 if test -n "$MSGFMT"; then
2416 echo "$ac_t""$MSGFMT" 1>&6
2418 echo "$ac_t""no" 1>&6
2421 test -n "$MSGFMT" && break
2423 test -n "$MSGFMT" || MSGFMT="no"
2425 if test "$MSGFMT" = "no"
2427 echo 'msgfmt program not found, disabling NLS !'
2429 USE_INCLUDED_LIBINTL=no
2437 support_smartalloc=yes
2438 support_readline=yes
2440 support_static_tools=no
2441 support_static_fd=no
2442 support_static_sd=no
2443 support_static_dir=no
2444 support_static_cons=no
2445 build_client_only=no
2451 # -------------------------------------------
2452 # gnome (default off)
2453 # -------------------------------------------
2454 # Check whether --enable-gnome or --disable-gnome was given.
2455 if test "${enable_gnome+set}" = set; then
2456 enableval="$enable_gnome"
2457 if test x$enableval = xyes; then
2464 if test x$support_gnome = xyes; then
2465 abc=`$PKGCONFIG --exists libgnomeui-2.0`
2467 if test $pkg = 0; then
2468 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
2469 GNOMEUI_LIBS=`pkg-config --libs-only-other libgnomeui-2.0`
2470 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
2471 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
2476 GNOME_DIR=src/gnome2-console
2488 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2489 if test "${with_gnome_includes+set}" = set; then
2490 withval="$with_gnome_includes"
2492 CFLAGS="$CFLAGS -I$withval"
2497 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2498 if test "${with_gnome_libs+set}" = set; then
2499 withval="$with_gnome_libs"
2501 LDFLAGS="$LDFLAGS -L$withval"
2502 gnome_prefix=$withval
2507 # Check whether --with-gnome or --without-gnome was given.
2508 if test "${with_gnome+set}" = set; then
2509 withval="$with_gnome"
2510 if test x$withval = xyes; then
2514 if test "x$withval" = xno; then
2518 LDFLAGS="$LDFLAGS -L$withval/lib"
2519 CFLAGS="$CFLAGS -I$withval/include"
2520 gnome_prefix=$withval/lib
2528 if test "x$want_gnome" = xyes; then
2530 # Extract the first word of "gnome-config", so it can be a program name with args.
2531 set dummy gnome-config; ac_word=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 case "$GNOME_CONFIG" in
2539 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2542 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2547 for ac_dir in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir=.
2549 if test -f $ac_dir/$ac_word; then
2550 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2555 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2559 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2560 if test -n "$GNOME_CONFIG"; then
2561 echo "$ac_t""$GNOME_CONFIG" 1>&6
2563 echo "$ac_t""no" 1>&6
2566 if test "$GNOME_CONFIG" = "no"; then
2567 no_gnome_config="yes"
2569 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2570 echo "configure:2571: checking if $GNOME_CONFIG works" >&5
2571 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2572 echo "$ac_t""yes" 1>&6
2575 # Extract the first word of "orbit-config", so it can be a program name with args.
2576 set dummy orbit-config; ac_word=$2
2577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_word" >&5
2579 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 case "$ORBIT_CONFIG" in
2584 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2587 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2592 for ac_dir in $ac_dummy; do
2593 test -z "$ac_dir" && ac_dir=.
2594 if test -f $ac_dir/$ac_word; then
2595 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2600 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2604 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2605 if test -n "$ORBIT_CONFIG"; then
2606 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2608 echo "$ac_t""no" 1>&6
2611 # Extract the first word of "orbit-idl", so it can be a program name with args.
2612 set dummy orbit-idl; ac_word=$2
2613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2614 echo "configure:2615: checking for $ac_word" >&5
2615 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 case "$ORBIT_IDL" in
2620 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2623 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2628 for ac_dir in $ac_dummy; do
2629 test -z "$ac_dir" && ac_dir=.
2630 if test -f $ac_dir/$ac_word; then
2631 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2636 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2640 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2641 if test -n "$ORBIT_IDL"; then
2642 echo "$ac_t""$ORBIT_IDL" 1>&6
2644 echo "$ac_t""no" 1>&6
2647 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2648 echo "configure:2649: checking for working ORBit environment" >&5
2649 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2653 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2654 gnome_cv_orbit_found=no
2656 gnome_cv_orbit_found=yes
2661 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2664 if test x$gnome_cv_orbit_found = xyes; then
2666 HAVE_ORBIT_FALSE='#'
2671 if test x$gnome_cv_orbit_found = xyes; then
2673 ORBIT_CFLAGS=`orbit-config --cflags client server`
2674 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2678 if test xfail = xfailure; then
2679 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2683 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2684 echo "configure:2685: checking for gnorba libraries" >&5
2685 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2689 gnome_cv_gnorba_found=no
2690 if test x$gnome_cv_orbit_found = xyes; then
2691 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2692 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2693 if test -n "$GNORBA_LIBS"; then
2694 gnome_cv_gnorba_found=yes
2700 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2703 if test x$gnome_cv_gnorba_found = xyes; then
2705 HAVE_GNORBA_FALSE='#'
2707 HAVE_GNORBA_TRUE='#'
2710 if test x$gnome_cv_orbit_found = xyes; then
2712 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2713 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2717 if test xfail = xfailure; then
2718 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2722 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2723 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2724 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2725 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2726 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2727 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2728 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2731 echo "$ac_t""no" 1>&6
2732 no_gnome_config="yes"
2736 if test x$exec_prefix = xNONE; then
2737 if test x$prefix = xNONE; then
2738 gnome_prefix=$ac_default_prefix/lib
2740 gnome_prefix=$prefix/lib
2743 gnome_prefix=`eval echo \`echo $libdir\``
2746 if test "$no_gnome_config" = "yes"; then
2747 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2748 echo "configure:2749: checking for gnomeConf.sh file in $gnome_prefix" >&5
2749 if test -f $gnome_prefix/gnomeConf.sh; then
2750 echo "$ac_t""found" 1>&6
2751 echo "loading gnome configuration from" \
2752 "$gnome_prefix/gnomeConf.sh"
2753 . $gnome_prefix/gnomeConf.sh
2756 echo "$ac_t""not found" 1>&6
2757 if test xfail = xfail; then
2758 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2767 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2768 echo "configure:2769: checking extra library \"$i\"" >&5
2772 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2773 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2776 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2777 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2780 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2781 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2783 echo "$ac_t""unknown library" 1>&6
2785 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2786 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2791 GNOME_DIR=src/gnome-console
2797 # -------------------------------------------
2798 # smartalloc (default off)
2799 # -------------------------------------------
2800 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2801 if test "${enable_smartalloc+set}" = set; then
2802 enableval="$enable_smartalloc"
2803 if test x$enableval = xno; then
2804 support_smartalloc=no
2809 if test x$support_smartalloc = xyes; then
2810 cat >> confdefs.h <<\EOF
2811 #define SMARTALLOC 1
2816 # -------------------------------------------
2817 # static-tools (default off)
2818 # -------------------------------------------
2819 # Check whether --enable-static-tools or --disable-static-tools was given.
2820 if test "${enable_static_tools+set}" = set; then
2821 enableval="$enable_static_tools"
2822 if test x$enableval = xyes; then
2823 support_static_tools=yes
2829 if test x$support_static_tools = xyes; then
2830 TTOOL_LDFLAGS="-static"
2834 # -------------------------------------------
2835 # static-fd (default off)
2836 # -------------------------------------------
2837 # Check whether --enable-static-fd or --disable-static-fd was given.
2838 if test "${enable_static_fd+set}" = set; then
2839 enableval="$enable_static_fd"
2840 if test x$enableval = xyes; then
2841 support_static_fd=yes
2847 if test x$support_static_fd = xyes; then
2848 STATIC_FD="static-bacula-fd"
2852 # -------------------------------------------
2853 # static-sd (default off)
2854 # -------------------------------------------
2855 # Check whether --enable-static-sd or --disable-static-sd was given.
2856 if test "${enable_static_sd+set}" = set; then
2857 enableval="$enable_static_sd"
2858 if test x$enableval = xyes; then
2859 support_static_sd=yes
2865 if test x$support_static_sd = xyes; then
2866 STATIC_SD="static-bacula-sd"
2870 # -------------------------------------------
2871 # static-dir (default off)
2872 # -------------------------------------------
2873 # Check whether --enable-static-dir or --disable-static-dir was given.
2874 if test "${enable_static_dir+set}" = set; then
2875 enableval="$enable_static_dir"
2876 if test x$enableval = xyes; then
2877 support_static_dir=yes
2883 if test x$support_static_dir = xyes; then
2884 STATIC_DIR="static-bacula-dir"
2888 # -------------------------------------------
2889 # static-cons (default off)
2890 # -------------------------------------------
2891 # Check whether --enable-static-cons or --disable-static-cons was given.
2892 if test "${enable_static_cons+set}" = set; then
2893 enableval="$enable_static_cons"
2894 if test x$enableval = xyes; then
2895 support_static_cons=yes
2901 if test x$support_static_cons = xyes; then
2902 STATIC_CONS="static-console"
2906 # -------------------------------------------
2907 # client_only (default off)
2908 # -------------------------------------------
2909 # Check whether --enable-client-only or --disable-client-only was given.
2910 if test "${enable_client_only+set}" = set; then
2911 enableval="$enable_client_only"
2912 if test x$enableval = xyes; then
2913 build_client_only=yes
2917 if test x$build_client_only = xno; then
2924 # ---------------------------------------------------
2925 # Check for readline support/directory (default on)
2926 # ---------------------------------------------------
2927 # this allows you to turn it completely off
2928 # Check whether --enable-readline or --disable-readline was given.
2929 if test "${enable_readline+set}" = set; then
2930 enableval="$enable_readline"
2931 if test x$enableval = xno; then
2939 if test x$support_readline = xyes; then
2940 # Check whether --with-readline or --without-readline was given.
2941 if test "${with_readline+set}" = set; then
2942 withval="$with_readline"
2944 case "$with_readline" in
2947 if test "$with_readline" != "yes"; then
2948 CONS_INC="-I${with_readline}"
2949 CONS_LDFLAGS="-L$with_readline"
2951 with_readline="/usr/include/readline"
2953 ac_safe=`echo "${with_readline}/readline.h" | sed 'y%./+-%__p_%'`
2954 echo $ac_n "checking for ${with_readline}/readline.h""... $ac_c" 1>&6
2955 echo "configure:2956: checking for ${with_readline}/readline.h" >&5
2956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2962 #include <${with_readline}/readline.h>
2964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2965 { (eval echo configure:2966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2967 if test -z "$ac_err"; then
2969 eval "ac_cv_header_$ac_safe=yes"
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2975 eval "ac_cv_header_$ac_safe=no"
2979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2980 echo "$ac_t""yes" 1>&6
2981 cat >> confdefs.h <<\EOF
2982 #define HAVE_READLINE 1
2985 CONS_LIBS="-lreadline -ltermcap"
2989 echo "$ac_t""no" 1>&6
2990 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
3000 # check for standard readline library
3001 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
3002 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
3003 echo "configure:3004: checking for /usr/include/readline/readline.h" >&5
3004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 #include </usr/include/readline/readline.h>
3012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3013 { (eval echo configure:3014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3015 if test -z "$ac_err"; then
3017 eval "ac_cv_header_$ac_safe=yes"
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3023 eval "ac_cv_header_$ac_safe=no"
3027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3028 echo "$ac_t""yes" 1>&6
3029 cat >> confdefs.h <<\EOF
3030 #define HAVE_READLINE 1
3034 CONS_INC="-I/usr/include/readline"
3035 CONS_LIBS="-lreadline -ltermcap"
3038 echo "$ac_t""no" 1>&6
3040 # Did not find standard library, so try Bacula's default
3041 ac_safe=`echo "${TOP_DIR}/depkgs/readline/readline.h" | sed 'y%./+-%__p_%'`
3042 echo $ac_n "checking for ${TOP_DIR}/depkgs/readline/readline.h""... $ac_c" 1>&6
3043 echo "configure:3044: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
3044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 #include <${TOP_DIR}/depkgs/readline/readline.h>
3052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3053 { (eval echo configure:3054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3055 if test -z "$ac_err"; then
3057 eval "ac_cv_header_$ac_safe=yes"
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3063 eval "ac_cv_header_$ac_safe=no"
3067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3068 echo "$ac_t""yes" 1>&6
3069 cat >> confdefs.h <<\EOF
3070 #define HAVE_READLINE 1
3074 CONS_INC="-I${TOP_DIR}/depkgs/readline"
3075 CONS_LIBS="-lreadline -lhistory -ltermcap"
3076 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
3077 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
3080 echo "$ac_t""no" 1>&6
3081 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
3100 # Minimal stuff for readline Makefile configuration
3104 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3105 echo "configure:3106: checking whether stat file-mode macros are broken" >&5
3106 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 #include <sys/types.h>
3113 #include <sys/stat.h>
3115 #if defined(S_ISBLK) && defined(S_IFDIR)
3116 # if S_ISBLK (S_IFDIR)
3121 #if defined(S_ISBLK) && defined(S_IFCHR)
3122 # if S_ISBLK (S_IFCHR)
3127 #if defined(S_ISLNK) && defined(S_IFREG)
3128 # if S_ISLNK (S_IFREG)
3133 #if defined(S_ISSOCK) && defined(S_IFREG)
3134 # if S_ISSOCK (S_IFREG)
3140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3141 egrep "You lose" >/dev/null 2>&1; then
3143 ac_cv_header_stat_broken=yes
3146 ac_cv_header_stat_broken=no
3152 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3153 if test $ac_cv_header_stat_broken = yes; then
3154 cat >> confdefs.h <<\EOF
3155 #define STAT_MACROS_BROKEN 1
3161 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3163 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3164 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3165 echo "configure:3166: checking for $ac_hdr that defines DIR" >&5
3166 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 #include <sys/types.h>
3178 if { (eval echo configure:3179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3180 eval "ac_cv_header_dirent_$ac_safe=yes"
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 eval "ac_cv_header_dirent_$ac_safe=no"
3189 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3190 echo "$ac_t""yes" 1>&6
3191 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3192 cat >> confdefs.h <<EOF
3193 #define $ac_tr_hdr 1
3195 ac_header_dirent=$ac_hdr; break
3197 echo "$ac_t""no" 1>&6
3200 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3201 if test $ac_header_dirent = dirent.h; then
3202 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3203 echo "configure:3204: checking for opendir in -ldir" >&5
3204 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 ac_save_LIBS="$LIBS"
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 /* Override any gcc2 internal prototype to avoid an error. */
3214 /* We use char because int might match the return type of a gcc2
3215 builtin and then its argument prototype would still apply. */
3222 if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3224 eval "ac_cv_lib_$ac_lib_var=yes"
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 eval "ac_cv_lib_$ac_lib_var=no"
3232 LIBS="$ac_save_LIBS"
3235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3236 echo "$ac_t""yes" 1>&6
3239 echo "$ac_t""no" 1>&6
3243 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3244 echo "configure:3245: checking for opendir in -lx" >&5
3245 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 ac_save_LIBS="$LIBS"
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 /* Override any gcc2 internal prototype to avoid an error. */
3255 /* We use char because int might match the return type of a gcc2
3256 builtin and then its argument prototype would still apply. */
3263 if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3265 eval "ac_cv_lib_$ac_lib_var=yes"
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3270 eval "ac_cv_lib_$ac_lib_var=no"
3273 LIBS="$ac_save_LIBS"
3276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3280 echo "$ac_t""no" 1>&6
3286 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3289 echo "configure:3290: checking for $ac_func" >&5
3290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 /* System header to define __stub macros and hopefully few prototypes,
3297 which can conflict with char $ac_func(); below. */
3299 /* Override any gcc2 internal prototype to avoid an error. */
3300 /* We use char because int might match the return type of a gcc2
3301 builtin and then its argument prototype would still apply. */
3306 /* The GNU C library defines this for functions which it implements
3307 to always fail with ENOSYS. Some functions are actually named
3308 something starting with __ and the normal name is an alias. */
3309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3319 eval "ac_cv_func_$ac_func=yes"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3324 eval "ac_cv_func_$ac_func=no"
3329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3332 cat >> confdefs.h <<EOF
3333 #define $ac_tr_func 1
3337 echo "$ac_t""no" 1>&6
3341 for ac_func in nanosleep
3343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3344 echo "configure:3345: checking for $ac_func" >&5
3345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 /* System header to define __stub macros and hopefully few prototypes,
3352 which can conflict with char $ac_func(); below. */
3354 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3361 /* The GNU C library defines this for functions which it implements
3362 to always fail with ENOSYS. Some functions are actually named
3363 something starting with __ and the normal name is an alias. */
3364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3372 if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374 eval "ac_cv_func_$ac_func=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 eval "ac_cv_func_$ac_func=no"
3384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3387 cat >> confdefs.h <<EOF
3388 #define $ac_tr_func 1
3392 echo "$ac_t""no" 1>&6
3397 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3398 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3399 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3401 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3402 echo "configure:3403: checking for getopt_long" >&5
3403 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 /* System header to define __stub macros and hopefully few prototypes,
3410 which can conflict with char getopt_long(); below. */
3412 /* Override any gcc2 internal prototype to avoid an error. */
3413 /* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3419 /* The GNU C library defines this for functions which it implements
3420 to always fail with ENOSYS. Some functions are actually named
3421 something starting with __ and the normal name is an alias. */
3422 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3432 eval "ac_cv_func_getopt_long=yes"
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3437 eval "ac_cv_func_getopt_long=no"
3442 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3443 echo "$ac_t""yes" 1>&6
3444 cat >> confdefs.h <<\EOF
3445 #define HAVE_GETOPT_LONG 1
3449 echo "$ac_t""no" 1>&6
3454 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3455 echo "configure:3456: checking for working strcoll" >&5
3456 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 if test "$cross_compiling" = yes; then
3460 ac_cv_func_strcoll_works=no
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3468 exit (strcoll ("abc", "def") >= 0 ||
3469 strcoll ("ABC", "DEF") >= 0 ||
3470 strcoll ("123", "456") >= 0);
3473 if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3475 ac_cv_func_strcoll_works=yes
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3480 ac_cv_func_strcoll_works=no
3487 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3488 if test $ac_cv_func_strcoll_works = yes; then
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_STRCOLL 1
3496 for ac_hdr in varargs.h \
3497 sys/ptem.h sys/pte.h sys/stream.h
3499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3501 echo "configure:3502: checking for $ac_hdr" >&5
3502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3511 { (eval echo configure:3512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3513 if test -z "$ac_err"; then
3515 eval "ac_cv_header_$ac_safe=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 eval "ac_cv_header_$ac_safe=no"
3525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3526 echo "$ac_t""yes" 1>&6
3527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3528 cat >> confdefs.h <<EOF
3529 #define $ac_tr_hdr 1
3533 echo "$ac_t""no" 1>&6
3538 # End of readline stuff
3539 # -----------------------------------------------------------------------
3542 # ---------------------------------------------------
3543 # Check for GMP support/directory
3544 # ---------------------------------------------------
3548 # [ --with-gmp[=DIR] Specify gmp library directory],
3550 # case "$with_gmp" in
3553 # if test "$with_gmp" != "yes"; then
3554 # GMP_INC="-I$with_gmp"
3556 # GMP_LDFLAGS="-L$with_gmp"
3558 # with_gmp="/usr/include"
3560 # AC_CHECK_HEADER($with_gmp/gmp.h,
3561 # [ AC_MSG_RESULT(yes)
3562 # AC_DEFINE(HAVE_GMP)
3566 # [ AC_MSG_ERROR([*** gmp library missing])
3572 # # check for standard gmp library
3573 # AC_CHECK_HEADER(/usr/include/gmp.h,
3574 # [ AC_MSG_RESULT(yes)
3575 # AC_DEFINE(HAVE_GMP)
3580 # # Did not find standard library, so use our own
3581 # AC_MSG_RESULT(yes)
3582 # AC_DEFINE(HAVE_GMP)
3585 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3587 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3588 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3594 #AC_SUBST(GMP_LDFLAGS)
3598 # -----------------------------------------------------------------------
3601 # ---------------------------------------------------
3602 # Check for CWEB support/directory
3603 # ---------------------------------------------------
3608 # [ --with-cweb[=DIR] Specify cweb library directory],
3610 # case "$with_cweb" in
3613 # if test "$with_cweb" != "yes"; then
3614 # CWEB_INC="-I$with_cweb"
3615 # CWEB_LIBS="-lcweb"
3616 # CWEB_LDFLAGS="-L$with_cweb"
3618 # with_cweb="/usr/include"
3620 # AC_CHECK_HEADER($with_cweb/cweb.h,
3621 # [ AC_MSG_RESULT(yes)
3622 # AC_DEFINE(HAVE_CWEB)
3623 # CWEB_LIBS="-lcweb"
3626 # [ AC_MSG_ERROR([*** cweb library missing])
3632 # # check for standard cweb library
3633 # AC_CHECK_HEADER(/usr/include/cweb.h,
3634 # [ AC_MSG_RESULT(yes)
3635 # AC_DEFINE(HAVE_CWEB)
3638 # CWEB_LIBS="-lcweb"
3640 # # Did not find starndard library, so use our own
3641 # AC_MSG_RESULT(yes)
3642 # AC_DEFINE(HAVE_CWEB)
3645 # CWEB=${TOP_DIR}/depkgs/cweb
3646 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3647 # CWEB_LIBS="-lcweb"
3648 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3649 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3655 #AC_SUBST(CWEB_LIBS)
3656 #AC_SUBST(CWEB_LDFLAGS)
3660 # -----------------------------------------------------------------------
3664 # -----------------------------------------------------------
3665 # Check whether user wants TCP wrappers support (default off)
3666 # -----------------------------------------------------------
3668 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3669 if test "${with_tcp_wrappers+set}" = set; then
3670 withval="$with_tcp_wrappers"
3672 if test "x$withval" != "xno" ; then
3674 LIBS="$LIBS -lwrap -lnsl"
3675 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3676 echo "configure:3677: checking for libwrap" >&5
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3681 int deny_severity = 0;
3682 int allow_severity = 0;
3683 struct request_info *req;
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3691 echo "$ac_t""yes" 1>&6
3692 cat >> confdefs.h <<\EOF
3693 #define HAVE_LIBWRAP 1
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3712 # ------------------------------------------
3713 # Where to place working dir
3714 # ------------------------------------------
3715 working_dir=`eval echo ${sysconfdir}/working`
3716 # Check whether --with-working-dir or --without-working-dir was given.
3717 if test "${with_working_dir+set}" = set; then
3718 withval="$with_working_dir"
3720 if test "x$withval" != "xno" ; then
3721 working_dir=$withval
3731 # ------------------------------------------
3732 # Where to place scriptdir (script files)
3733 # ------------------------------------------
3734 scriptdir=`eval echo ${sysconfdir}`
3735 # Check whether --with-scriptdir or --without-scriptdir was given.
3736 if test "${with_scriptdir+set}" = set; then
3737 withval="$with_scriptdir"
3739 if test "x$withval" != "xno" ; then
3750 # ------------------------------------------
3751 # Where to send dump email
3752 # ------------------------------------------
3753 dump_email=root@localhost
3754 # Check whether --with-dump-email or --without-dump-email was given.
3755 if test "${with_dump_email+set}" = set; then
3756 withval="$with_dump_email"
3758 if test "x$withval" != "xno" ; then
3768 # ------------------------------------------
3769 # Where to send job email
3770 # ------------------------------------------
3771 job_email=root@localhost
3772 # Check whether --with-job-email or --without-job-email was given.
3773 if test "${with_job_email+set}" = set; then
3774 withval="$with_job_email"
3776 if test "x$withval" != "xno" ; then
3786 # ------------------------------------------
3787 # Where to find smtp host
3788 # ------------------------------------------
3790 # Check whether --with-smtp_host or --without-smtp_host was given.
3791 if test "${with_smtp_host+set}" = set; then
3792 withval="$with_smtp_host"
3794 if test "x$withval" != "xno" ; then
3805 # ------------------------------------
3806 # Where to place pid files
3807 # ------------------------------------
3809 # Check whether --with-pid-dir or --without-pid-dir was given.
3810 if test "${with_pid_dir+set}" = set; then
3811 withval="$with_pid_dir"
3813 if test "x$withval" != "xno" ; then
3821 cat >> confdefs.h <<EOF
3822 #define _PATH_BACULA_PIDDIR "$piddir"
3828 # ------------------------------------
3829 # Where to place subsys "lock file"
3830 # ------------------------------------
3831 subsysdir=/var/run/subsys
3832 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3833 if test "${with_subsys_dir+set}" = set; then
3834 withval="$with_subsys_dir"
3836 if test "x$withval" != "xno" ; then
3848 # ------------------------------------
3849 # Where to start assigning ports
3850 # ------------------------------------
3852 # Check whether --with-baseport or --without-baseport was given.
3853 if test "${with_baseport+set}" = set; then
3854 withval="$with_baseport"
3856 if test "x$withval" != "xno" ; then
3865 dir_port=`expr $baseport`
3866 fd_port=`expr $baseport + 1`
3867 sd_port=`expr $fd_port + 1`
3874 # ------------------------------------------
3875 # Generate passwords
3876 # ------------------------------------------
3878 # Check whether --with-dir-password or --without-dir-password was given.
3879 if test "${with_dir_password+set}" = set; then
3880 withval="$with_dir_password"
3882 if test "x$withval" != "xno" ; then
3883 dir_password=$withval
3890 if test "x$dir_password" = "x" ; then
3891 if test "x$OPENSSL" = "xnone" ; then
3892 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3893 key=`autoconf/randpass 33`
3895 key=`openssl rand -base64 33`
3901 # Check whether --with-fd-password or --without-fd-password was given.
3902 if test "${with_fd_password+set}" = set; then
3903 withval="$with_fd_password"
3905 if test "x$withval" != "xno" ; then
3906 fd_password=$withval
3913 if test "x$fd_password" = "x" ; then
3914 if test "x$OPENSSL" = "xnone" ; then
3915 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3916 key=`autoconf/randpass 37`
3918 key=`openssl rand -base64 33`
3924 # Check whether --with-sd-password or --without-sd-password was given.
3925 if test "${with_sd_password+set}" = set; then
3926 withval="$with_sd_password"
3928 if test "x$withval" != "xno" ; then
3929 sd_password=$withval
3936 if test "x$sd_password" = "x" ; then
3937 if test "x$OPENSSL" = "xnone" ; then
3938 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3939 key=`autoconf/randpass 41`
3941 key=`openssl rand -base64 33`
3954 # ------------------------------------------------
3955 # Bacula check for various SQL database engines
3956 # ------------------------------------------------
3959 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3960 echo "configure:3961: checking for MySQL support" >&5
3961 # Check whether --with-mysql or --without-mysql was given.
3962 if test "${with_mysql+set}" = set; then
3963 withval="$with_mysql"
3965 if test "$withval" != "no"; then
3966 if test "$withval" = "yes"; then
3967 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3968 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3969 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3970 MYSQL_BINDIR=/usr/local/mysql/bin
3971 elif test -f /usr/include/mysql/mysql.h; then
3972 MYSQL_INCDIR=/usr/include/mysql
3973 MYSQL_LIBDIR=/usr/lib/mysql
3974 MYSQL_BINDIR=/usr/bin
3975 elif test -f /usr/include/mysql.h; then
3976 MYSQL_INCDIR=/usr/include
3977 MYSQL_LIBDIR=/usr/lib
3978 MYSQL_BINDIR=/usr/bin
3979 elif test -f /usr/local/include/mysql/mysql.h; then
3980 MYSQL_INCDIR=/usr/local/include/mysql
3981 MYSQL_LIBDIR=/usr/local/lib/mysql
3982 MYSQL_BINDIR=/usr/local/bin
3983 elif test -f /usr/local/include/mysql.h; then
3984 MYSQL_INCDIR=/usr/local/include
3985 MYSQL_LIBDIR=/usr/local/lib
3986 MYSQL_BINDIR=/usr/local/bin
3988 echo "$ac_t""no" 1>&6
3989 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3992 if test -f $withval/include/mysql/mysql.h; then
3993 MYSQL_INCDIR=$withval/include/mysql
3994 MYSQL_LIBDIR=$withval/lib/mysql
3995 MYSQL_BINDIR=$withval/bin
3996 elif test -f $withval/include/mysql.h; then
3997 MYSQL_INCDIR=$withval/include
3998 MYSQL_LIBDIR=$withval/lib
3999 MYSQL_BINDIR=$withval/bin
4001 echo "$ac_t""no" 1>&6
4002 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
4005 SQL_INCLUDE=-I$MYSQL_INCDIR
4006 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
4007 SQL_BINDIR=$MYSQL_BINDIR
4009 cat >> confdefs.h <<\EOF
4010 #define HAVE_MYSQL 1
4013 echo "$ac_t""yes" 1>&6
4020 echo "$ac_t""no" 1>&6
4025 echo "$ac_t""no" 1>&6
4030 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
4031 if test "${with_embedded_mysql+set}" = set; then
4032 withval="$with_embedded_mysql"
4034 if test "$withval" != "no"; then
4035 if test "$withval" = "yes"; then
4036 if test -f /usr/local/mysql/include/mysql/mysql.h; then
4037 MYSQL_INCDIR=/usr/local/mysql/include/mysql
4038 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
4039 MYSQL_BINDIR=/usr/local/mysql/bin
4040 elif test -f /usr/include/mysql/mysql.h; then
4041 MYSQL_INCDIR=/usr/include/mysql
4042 MYSQL_LIBDIR=/usr/lib/mysql
4043 MYSQL_BINDIR=/usr/bin
4044 elif test -f /usr/include/mysql.h; then
4045 MYSQL_INCDIR=/usr/include
4046 MYSQL_LIBDIR=/usr/lib
4047 MYSQL_BINDIR=/usr/bin
4048 elif test -f /usr/local/include/mysql/mysql.h; then
4049 MYSQL_INCDIR=/usr/local/include/mysql
4050 MYSQL_LIBDIR=/usr/local/lib/mysql
4051 MYSQL_BINDIR=/usr/local/bin
4052 elif test -f /usr/local/include/mysql.h; then
4053 MYSQL_INCDIR=/usr/local/include
4054 MYSQL_LIBDIR=/usr/local/lib
4055 MYSQL_BINDIR=/usr/local/bin
4057 echo "$ac_t""no" 1>&6
4058 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
4061 if test -f $withval/include/mysql/mysql.h; then
4062 MYSQL_INCDIR=$withval/include/mysql
4063 MYSQL_LIBDIR=$withval/lib/mysql
4064 MYSQL_BINDIR=$withval/bin
4065 elif test -f $withval/include/mysql.h; then
4066 MYSQL_INCDIR=$withval/include
4067 MYSQL_LIBDIR=$withval/lib
4068 MYSQL_BINDIR=$withval/bin
4070 echo "$ac_t""no" 1>&6
4071 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
4074 SQL_INCLUDE=-I$MYSQL_INCDIR
4075 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
4076 SQL_BINDIR=$MYSQL_BINDIR
4078 cat >> confdefs.h <<\EOF
4079 #define HAVE_MYSQL 1
4082 cat >> confdefs.h <<\EOF
4083 #define HAVE_EMBEDDED_MYSQL 1
4086 echo "$ac_t""yes" 1>&6
4093 echo "$ac_t""no" 1>&6
4098 echo "$ac_t""no" 1>&6
4111 # ------------------------------------------------
4112 # Bacula check for various SQL database engines
4113 # ------------------------------------------------
4116 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
4117 echo "configure:4118: checking for SQLite support" >&5
4118 # Check whether --with-sqlite or --without-sqlite was given.
4119 if test "${with_sqlite+set}" = set; then
4120 withval="$with_sqlite"
4122 if test "$withval" != "no"; then
4123 if test "$withval" = "yes"; then
4124 if test -f /usr/local/include/sqlite.h; then
4125 SQLITE_INCDIR=/usr/local/include
4126 SQLITE_LIBDIR=/usr/local/lib
4127 SQLITE_BINDIR=/usr/local/bin
4128 elif test -f /usr/include/sqlite.h; then
4129 SQLITE_INCDIR=/usr/include
4130 SQLITE_LIBDIR=/usr/lib
4131 SQLITE_BINDIR=/usr/bin
4133 echo "$ac_t""no" 1>&6
4134 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
4137 if test -f $withval/sqlite.h; then
4138 SQLITE_INCDIR=$withval
4139 SQLITE_LIBDIR=$withval
4140 SQLITE_BINDIR=$withval
4142 echo "$ac_t""no" 1>&6
4143 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
4146 SQL_INCLUDE=-I$SQLITE_INCDIR
4147 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
4148 SQL_BINDIR=$SQLITE_BINDIR
4150 cat >> confdefs.h <<\EOF
4151 #define HAVE_SQLITE 1
4154 echo "$ac_t""yes" 1>&6
4161 echo "$ac_t""no" 1>&6
4166 echo "$ac_t""no" 1>&6
4179 cat >> confdefs.h <<\EOF
4180 #define PROTOTYPES 1
4184 if test -z "$CFLAGS"; then
4185 if test -z "$CCOPTS"; then
4192 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4193 echo "configure:4194: checking for mingw32 environment" >&5
4194 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4205 if { (eval echo configure:4206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4218 echo "$ac_t""$ac_cv_mingw32" 1>&6
4220 test "$ac_cv_mingw32" = yes && MINGW32=yes
4223 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4224 echo "configure:4225: checking for executable suffix" >&5
4225 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4232 echo 'int main () { return 0; }' > conftest.$ac_ext
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4235 for file in conftest.*; do
4237 *.c | *.o | *.obj) ;;
4238 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4242 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4245 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4250 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4251 echo "$ac_t""${ac_cv_exeext}" 1>&6
4255 largefile_support="no"
4256 echo $ac_n "checking build system type""... $ac_c" 1>&6
4257 echo "configure:4258: checking build system type" >&5
4260 case "$build_alias" in
4263 NONE) build_alias=$host_alias ;;
4264 *) build_alias=$nonopt ;;
4268 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4269 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4270 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4271 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4272 echo "$ac_t""$build" 1>&6
4275 # Make sure we can run config.sub.
4276 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
4277 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4280 echo $ac_n "checking host system type""... $ac_c" 1>&6
4281 echo "configure:4282: checking host system type" >&5
4284 case "$host_alias" in
4288 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
4289 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4291 *) host_alias=$nonopt ;;
4295 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
4296 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4297 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4298 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4299 echo "$ac_t""$host" 1>&6
4301 if test $host != $build; then
4302 ac_tool_prefix=${host_alias}-
4308 # Check whether --enable-largefile or --disable-largefile was given.
4309 if test "${enable_largefile+set}" = set; then
4310 enableval="$enable_largefile"
4314 if test "$enable_largefile" != no; then
4315 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4318 echo "configure:4319: checking for $ac_word" >&5
4319 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 if test -n "$GETCONF"; then
4323 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4327 for ac_dir in $ac_dummy; do
4328 test -z "$ac_dir" && ac_dir=.
4329 if test -f $ac_dir/$ac_word; then
4330 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4335 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4338 GETCONF="$ac_cv_prog_GETCONF"
4339 if test -n "$GETCONF"; then
4340 echo "$ac_t""$GETCONF" 1>&6
4342 echo "$ac_t""no" 1>&6
4347 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4348 echo "configure:4349: checking for CFLAGS value to request large file support" >&5
4349 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4353 ac_cv_sys_largefile_CFLAGS=no
4355 # IRIX 6.2 and later require cc -n32.
4356 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4357 if test "$GCC" != yes; then
4358 ac_cv_sys_largefile_CFLAGS=-n32
4361 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 ac_cv_sys_largefile_CFLAGS=no
4384 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4385 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4386 echo "configure:4387: checking for LDFLAGS value to request large file support" >&5
4387 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4391 ac_cv_sys_largefile_LDFLAGS=no
4396 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4397 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4398 echo "configure:4399: checking for LIBS value to request large file support" >&5
4399 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4403 ac_cv_sys_largefile_LIBS=no
4408 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4410 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4413 -D_FILE_OFFSET_BITS=*) ;;
4414 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4415 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4421 '') CPPFLAGS="$ac_flag" ;;
4422 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4430 '') CFLAGS="$ac_flag" ;;
4431 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4436 case "$ac_cv_sys_largefile_LDFLAGS" in
4440 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4441 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4444 case "$ac_cv_sys_largefile_LIBS" in
4448 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4449 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4452 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4453 echo "configure:4454: checking for _FILE_OFFSET_BITS" >&5
4454 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 ac_cv_sys_file_offset_bits=no
4459 # HP-UX 10.20 and later
4460 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4461 ac_cv_sys_file_offset_bits=64 ;;
4463 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4465 -D_FILE_OFFSET_BITS)
4466 ac_cv_sys_file_offset_bits=1 ;;
4467 -D_FILE_OFFSET_BITS=*)
4468 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4474 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4475 if test "$ac_cv_sys_file_offset_bits" != no; then
4476 cat >> confdefs.h <<EOF
4477 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4481 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4482 echo "configure:4483: checking for _LARGEFILE_SOURCE" >&5
4483 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 ac_cv_sys_largefile_source=no
4488 # HP-UX 10.20 and later
4489 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4490 ac_cv_sys_largefile_source=1 ;;
4492 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4494 -D_LARGEFILE_SOURCE)
4495 ac_cv_sys_largefile_source=1 ;;
4496 -D_LARGEFILE_SOURCE=*)
4497 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4503 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4504 if test "$ac_cv_sys_largefile_source" != no; then
4505 cat >> confdefs.h <<EOF
4506 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4510 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4511 echo "configure:4512: checking for _LARGE_FILES" >&5
4512 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 ac_cv_sys_large_files=no
4518 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4519 ac_cv_sys_large_files=1 ;;
4521 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4524 ac_cv_sys_large_files=1 ;;
4526 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4532 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4533 if test "$ac_cv_sys_large_files" != no; then
4534 cat >> confdefs.h <<EOF
4535 #define _LARGE_FILES $ac_cv_sys_large_files
4543 # If we find X, set shell vars x_includes and x_libraries to the
4544 # paths, otherwise set no_x=yes.
4545 # Uses ac_ vars as temps to allow command line to override cache and checks.
4546 # --without-x overrides everything else, but does not touch the cache.
4547 echo $ac_n "checking for X""... $ac_c" 1>&6
4548 echo "configure:4549: checking for X" >&5
4550 # Check whether --with-x or --without-x was given.
4551 if test "${with_x+set}" = set; then
4556 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4557 if test "x$with_x" = xno; then
4558 # The user explicitly disabled X.
4561 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4562 # Both variables are already set.
4565 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 # One or both of the vars are not set, and there is no cached value.
4569 ac_x_includes=NO ac_x_libraries=NO
4571 if mkdir conftestdir; then
4573 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4574 cat > Imakefile <<'EOF'
4576 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4578 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4579 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4580 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4581 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4582 for ac_extension in a so sl; do
4583 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4584 test -f $ac_im_libdir/libX11.$ac_extension; then
4585 ac_im_usrlibdir=$ac_im_libdir; break
4588 # Screen out bogus values from the imake configuration. They are
4589 # bogus both because they are the default anyway, and because
4590 # using them would break gcc on systems where it needs fixed includes.
4591 case "$ac_im_incroot" in
4593 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4595 case "$ac_im_usrlibdir" in
4597 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4604 if test "$ac_x_includes" = NO; then
4605 # Guess where to find include files, by looking for this one X11 .h file.
4606 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4608 # First, try using that file with no special directory specified.
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <$x_direct_test_include>
4614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4617 if test -z "$ac_err"; then
4619 # We can compile using X headers with no special include directory.
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4626 # Look for the header file in a standard set of common directories.
4627 # Check X11 before X11Rn because it is often a symlink to the current release.
4630 /usr/X11R6/include \
4631 /usr/X11R5/include \
4632 /usr/X11R4/include \
4635 /usr/include/X11R6 \
4636 /usr/include/X11R5 \
4637 /usr/include/X11R4 \
4639 /usr/local/X11/include \
4640 /usr/local/X11R6/include \
4641 /usr/local/X11R5/include \
4642 /usr/local/X11R4/include \
4644 /usr/local/include/X11 \
4645 /usr/local/include/X11R6 \
4646 /usr/local/include/X11R5 \
4647 /usr/local/include/X11R4 \
4651 /usr/XFree86/include/X11 \
4654 /usr/local/include \
4655 /usr/unsupported/include \
4656 /usr/athena/include \
4657 /usr/local/x11r5/include \
4658 /usr/lpp/Xamples/include \
4660 /usr/openwin/include \
4661 /usr/openwin/share/include \
4664 if test -r "$ac_dir/$x_direct_test_include"; then
4665 ac_x_includes=$ac_dir
4671 fi # $ac_x_includes = NO
4673 if test "$ac_x_libraries" = NO; then
4674 # Check for the libraries.
4676 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4677 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4679 # See if we find them without any special options.
4680 # Don't add to $LIBS permanently.
4681 ac_save_LIBS="$LIBS"
4682 LIBS="-l$x_direct_test_library $LIBS"
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4688 ${x_direct_test_function}()
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 LIBS="$ac_save_LIBS"
4694 # We can link X programs with no special library path.
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 LIBS="$ac_save_LIBS"
4701 # First see if replacing the include by lib works.
4702 # Check X11 before X11Rn because it is often a symlink to the current release.
4703 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4714 /usr/local/X11/lib \
4715 /usr/local/X11R6/lib \
4716 /usr/local/X11R5/lib \
4717 /usr/local/X11R4/lib \
4719 /usr/local/lib/X11 \
4720 /usr/local/lib/X11R6 \
4721 /usr/local/lib/X11R5 \
4722 /usr/local/lib/X11R4 \
4726 /usr/XFree86/lib/X11 \
4730 /usr/unsupported/lib \
4732 /usr/local/x11r5/lib \
4733 /usr/lpp/Xamples/lib \
4737 /usr/openwin/share/lib \
4740 for ac_extension in a so sl; do
4741 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4742 ac_x_libraries=$ac_dir
4749 fi # $ac_x_libraries = NO
4751 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4752 # Didn't find X anywhere. Cache the known absence of X.
4753 ac_cv_have_x="have_x=no"
4755 # Record where we found X for the cache.
4756 ac_cv_have_x="have_x=yes \
4757 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4761 eval "$ac_cv_have_x"
4764 if test "$have_x" != yes; then
4765 echo "$ac_t""$have_x" 1>&6
4768 # If each of the values was on the command line, it overrides each guess.
4769 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4770 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4771 # Update the cache value to reflect the command line values.
4772 ac_cv_have_x="have_x=yes \
4773 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4774 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4777 if test "$no_x" = yes; then
4778 # Not all programs may use this symbol, but it does not hurt to define it.
4779 cat >> confdefs.h <<\EOF
4780 #define X_DISPLAY_MISSING 1
4783 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4785 if test -n "$x_includes"; then
4786 X_CFLAGS="$X_CFLAGS -I$x_includes"
4789 # It would also be nice to do this for all -L options, not just this one.
4790 if test -n "$x_libraries"; then
4791 X_LIBS="$X_LIBS -L$x_libraries"
4792 # For Solaris; some versions of Sun CC require a space after -R and
4793 # others require no space. Words are not sufficient . . . .
4794 case "`(uname -sr) 2>/dev/null`" in
4796 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4797 echo "configure:4798: checking whether -R must be followed by a space" >&5
4798 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4817 if test $ac_R_nospace = yes; then
4818 echo "$ac_t""no" 1>&6
4819 X_LIBS="$X_LIBS -R$x_libraries"
4821 LIBS="$ac_xsave_LIBS -R $x_libraries"
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4830 if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4840 if test $ac_R_space = yes; then
4841 echo "$ac_t""yes" 1>&6
4842 X_LIBS="$X_LIBS -R $x_libraries"
4844 echo "$ac_t""neither works" 1>&6
4847 LIBS="$ac_xsave_LIBS"
4851 # Check for system-dependent libraries X programs must link with.
4852 # Do this before checking for the system-independent R6 libraries
4853 # (-lICE), since we may need -lsocket or whatever for X linking.
4855 if test "$ISC" = yes; then
4856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4858 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4859 # libraries were built with DECnet support. And karl@cs.umb.edu says
4860 # the Alpha needs dnet_stub (dnet does not exist).
4861 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4862 echo "configure:4863: checking for dnet_ntoa in -ldnet" >&5
4863 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 ac_save_LIBS="$LIBS"
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4883 eval "ac_cv_lib_$ac_lib_var=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "ac_cv_lib_$ac_lib_var=no"
4891 LIBS="$ac_save_LIBS"
4894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4896 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4898 echo "$ac_t""no" 1>&6
4901 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4902 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4903 echo "configure:4904: checking for dnet_ntoa in -ldnet_stub" >&5
4904 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 ac_save_LIBS="$LIBS"
4909 LIBS="-ldnet_stub $LIBS"
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924 eval "ac_cv_lib_$ac_lib_var=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_lib_$ac_lib_var=no"
4932 LIBS="$ac_save_LIBS"
4935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4939 echo "$ac_t""no" 1>&6
4944 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4945 # to get the SysV transport functions.
4946 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4948 # The nsl library prevents programs from opening the X display
4949 # on Irix 5.2, according to dickey@clark.net.
4950 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4951 echo "configure:4952: checking for gethostbyname" >&5
4952 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 cat > conftest.$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4958 /* System header to define __stub macros and hopefully few prototypes,
4959 which can conflict with char gethostbyname(); below. */
4961 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4964 char gethostbyname();
4968 /* The GNU C library defines this for functions which it implements
4969 to always fail with ENOSYS. Some functions are actually named
4970 something starting with __ and the normal name is an alias. */
4971 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4979 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4981 eval "ac_cv_func_gethostbyname=yes"
4983 echo "configure: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4986 eval "ac_cv_func_gethostbyname=no"
4991 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4995 echo "$ac_t""no" 1>&6
4998 if test $ac_cv_func_gethostbyname = no; then
4999 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5000 echo "configure:5001: checking for gethostbyname in -lnsl" >&5
5001 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5005 ac_save_LIBS="$LIBS"
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5010 /* Override any gcc2 internal prototype to avoid an error. */
5011 /* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5013 char gethostbyname();
5019 if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5021 eval "ac_cv_lib_$ac_lib_var=yes"
5023 echo "configure: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5026 eval "ac_cv_lib_$ac_lib_var=no"
5029 LIBS="$ac_save_LIBS"
5032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5033 echo "$ac_t""yes" 1>&6
5034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5036 echo "$ac_t""no" 1>&6
5041 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5042 # socket/setsockopt and other routines are undefined under SCO ODT
5043 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5044 # on later versions), says simon@lia.di.epfl.ch: it contains
5045 # gethostby* variants that don't use the nameserver (or something).
5046 # -lsocket must be given before -lnsl if both are needed.
5047 # We assume that if connect needs -lnsl, so does gethostbyname.
5048 echo $ac_n "checking for connect""... $ac_c" 1>&6
5049 echo "configure:5050: checking for connect" >&5
5050 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5056 /* System header to define __stub macros and hopefully few prototypes,
5057 which can conflict with char connect(); below. */
5059 /* Override any gcc2 internal prototype to avoid an error. */
5060 /* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */
5066 /* The GNU C library defines this for functions which it implements
5067 to always fail with ENOSYS. Some functions are actually named
5068 something starting with __ and the normal name is an alias. */
5069 #if defined (__stub_connect) || defined (__stub___connect)
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5079 eval "ac_cv_func_connect=yes"
5081 echo "configure: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5084 eval "ac_cv_func_connect=no"
5089 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5093 echo "$ac_t""no" 1>&6
5096 if test $ac_cv_func_connect = no; then
5097 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5098 echo "configure:5099: checking for connect in -lsocket" >&5
5099 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5103 ac_save_LIBS="$LIBS"
5104 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5108 /* Override any gcc2 internal prototype to avoid an error. */
5109 /* We use char because int might match the return type of a gcc2
5110 builtin and then its argument prototype would still apply. */
5117 if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5119 eval "ac_cv_lib_$ac_lib_var=yes"
5121 echo "configure: failed program was:" >&5
5122 cat conftest.$ac_ext >&5
5124 eval "ac_cv_lib_$ac_lib_var=no"
5127 LIBS="$ac_save_LIBS"
5130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5131 echo "$ac_t""yes" 1>&6
5132 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5134 echo "$ac_t""no" 1>&6
5139 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5140 echo $ac_n "checking for remove""... $ac_c" 1>&6
5141 echo "configure:5142: checking for remove" >&5
5142 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 cat > conftest.$ac_ext <<EOF
5146 #line 5147 "configure"
5147 #include "confdefs.h"
5148 /* System header to define __stub macros and hopefully few prototypes,
5149 which can conflict with char remove(); below. */
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5158 /* The GNU C library defines this for functions which it implements
5159 to always fail with ENOSYS. Some functions are actually named
5160 something starting with __ and the normal name is an alias. */
5161 #if defined (__stub_remove) || defined (__stub___remove)
5169 if { (eval echo configure:5170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5171 eval "ac_cv_func_remove=yes"
5173 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5176 eval "ac_cv_func_remove=no"
5181 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5182 echo "$ac_t""yes" 1>&6
5185 echo "$ac_t""no" 1>&6
5188 if test $ac_cv_func_remove = no; then
5189 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5190 echo "configure:5191: checking for remove in -lposix" >&5
5191 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 ac_save_LIBS="$LIBS"
5196 LIBS="-lposix $LIBS"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5211 eval "ac_cv_lib_$ac_lib_var=yes"
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5216 eval "ac_cv_lib_$ac_lib_var=no"
5219 LIBS="$ac_save_LIBS"
5222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5226 echo "$ac_t""no" 1>&6
5231 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5232 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5233 echo "configure:5234: checking for shmat" >&5
5234 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* System header to define __stub macros and hopefully few prototypes,
5241 which can conflict with char shmat(); below. */
5243 /* Override any gcc2 internal prototype to avoid an error. */
5244 /* We use char because int might match the return type of a gcc2
5245 builtin and then its argument prototype would still apply. */
5250 /* The GNU C library defines this for functions which it implements
5251 to always fail with ENOSYS. Some functions are actually named
5252 something starting with __ and the normal name is an alias. */
5253 #if defined (__stub_shmat) || defined (__stub___shmat)
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5263 eval "ac_cv_func_shmat=yes"
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5268 eval "ac_cv_func_shmat=no"
5273 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5274 echo "$ac_t""yes" 1>&6
5277 echo "$ac_t""no" 1>&6
5280 if test $ac_cv_func_shmat = no; then
5281 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5282 echo "configure:5283: checking for shmat in -lipc" >&5
5283 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 ac_save_LIBS="$LIBS"
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5292 /* Override any gcc2 internal prototype to avoid an error. */
5293 /* We use char because int might match the return type of a gcc2
5294 builtin and then its argument prototype would still apply. */
5301 if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303 eval "ac_cv_lib_$ac_lib_var=yes"
5305 echo "configure: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5308 eval "ac_cv_lib_$ac_lib_var=no"
5311 LIBS="$ac_save_LIBS"
5314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5318 echo "$ac_t""no" 1>&6
5324 # Check for libraries that X11R6 Xt/Xaw programs need.
5325 ac_save_LDFLAGS="$LDFLAGS"
5326 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5327 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5328 # check for ICE first), but we must link in the order -lSM -lICE or
5329 # we get undefined symbols. So assume we have SM if we have ICE.
5330 # These have to be linked with before -lX11, unlike the other
5331 # libraries we check for below, so use a different variable.
5332 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5333 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5334 echo "configure:5335: checking for IceConnectionNumber in -lICE" >&5
5335 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 ac_save_LIBS="$LIBS"
5340 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5344 /* Override any gcc2 internal prototype to avoid an error. */
5345 /* We use char because int might match the return type of a gcc2
5346 builtin and then its argument prototype would still apply. */
5347 char IceConnectionNumber();
5350 IceConnectionNumber()
5353 if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5355 eval "ac_cv_lib_$ac_lib_var=yes"
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5360 eval "ac_cv_lib_$ac_lib_var=no"
5363 LIBS="$ac_save_LIBS"
5366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5368 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5370 echo "$ac_t""no" 1>&6
5373 LDFLAGS="$ac_save_LDFLAGS"
5403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5405 echo "configure:5406: checking for $ac_hdr" >&5
5406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5415 { (eval echo configure:5416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5417 if test -z "$ac_err"; then
5419 eval "ac_cv_header_$ac_safe=yes"
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5425 eval "ac_cv_header_$ac_safe=no"
5429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5430 echo "$ac_t""yes" 1>&6
5431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5432 cat >> confdefs.h <<EOF
5433 #define $ac_tr_hdr 1
5437 echo "$ac_t""no" 1>&6
5441 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5442 echo "configure:5443: checking for ANSI C header files" >&5
5443 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5455 { (eval echo configure:5456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5457 if test -z "$ac_err"; then
5459 ac_cv_header_stdc=yes
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5465 ac_cv_header_stdc=no
5469 if test $ac_cv_header_stdc = yes; then
5470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5477 egrep "memchr" >/dev/null 2>&1; then
5481 ac_cv_header_stdc=no
5487 if test $ac_cv_header_stdc = yes; then
5488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5495 egrep "free" >/dev/null 2>&1; then
5499 ac_cv_header_stdc=no
5505 if test $ac_cv_header_stdc = yes; then
5506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5507 if test "$cross_compiling" = yes; then
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5514 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5515 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5517 int main () { int i; for (i = 0; i < 256; i++)
5518 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5529 ac_cv_header_stdc=no
5537 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5538 if test $ac_cv_header_stdc = yes; then
5539 cat >> confdefs.h <<\EOF
5540 #define STDC_HEADERS 1
5545 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5546 echo "configure:5547: checking whether sys/types.h defines makedev" >&5
5547 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 #include <sys/types.h>
5555 return makedev(0, 0);
5558 if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5560 ac_cv_header_sys_types_h_makedev=yes
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5565 ac_cv_header_sys_types_h_makedev=no
5571 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5573 if test $ac_cv_header_sys_types_h_makedev = no; then
5574 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5575 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5576 echo "configure:5577: checking for sys/mkdev.h" >&5
5577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 #include <sys/mkdev.h>
5585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5586 { (eval echo configure:5587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5588 if test -z "$ac_err"; then
5590 eval "ac_cv_header_$ac_safe=yes"
5593 echo "configure: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5596 eval "ac_cv_header_$ac_safe=no"
5600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5602 cat >> confdefs.h <<\EOF
5603 #define MAJOR_IN_MKDEV 1
5607 echo "$ac_t""no" 1>&6
5611 if test $ac_cv_header_sys_mkdev_h = no; then
5612 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5613 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5614 echo "configure:5615: checking for sys/sysmacros.h" >&5
5615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621 #include <sys/sysmacros.h>
5623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5624 { (eval echo configure:5625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5626 if test -z "$ac_err"; then
5628 eval "ac_cv_header_$ac_safe=yes"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 eval "ac_cv_header_$ac_safe=no"
5638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5640 cat >> confdefs.h <<\EOF
5641 #define MAJOR_IN_SYSMACROS 1
5645 echo "$ac_t""no" 1>&6
5652 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5655 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5656 echo "configure:5657: checking for $ac_hdr that defines DIR" >&5
5657 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5658 echo $ac_n "(cached) $ac_c" 1>&6
5660 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663 #include <sys/types.h>
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5671 eval "ac_cv_header_dirent_$ac_safe=yes"
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 eval "ac_cv_header_dirent_$ac_safe=no"
5680 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5681 echo "$ac_t""yes" 1>&6
5682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5683 cat >> confdefs.h <<EOF
5684 #define $ac_tr_hdr 1
5686 ac_header_dirent=$ac_hdr; break
5688 echo "$ac_t""no" 1>&6
5691 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5692 if test $ac_header_dirent = dirent.h; then
5693 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5694 echo "configure:5695: checking for opendir in -ldir" >&5
5695 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5697 echo $ac_n "(cached) $ac_c" 1>&6
5699 ac_save_LIBS="$LIBS"
5701 cat > conftest.$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5704 /* Override any gcc2 internal prototype to avoid an error. */
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5713 if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715 eval "ac_cv_lib_$ac_lib_var=yes"
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 eval "ac_cv_lib_$ac_lib_var=no"
5723 LIBS="$ac_save_LIBS"
5726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5727 echo "$ac_t""yes" 1>&6
5730 echo "$ac_t""no" 1>&6
5734 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5735 echo "configure:5736: checking for opendir in -lx" >&5
5736 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5740 ac_save_LIBS="$LIBS"
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5745 /* Override any gcc2 internal prototype to avoid an error. */
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5754 if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5756 eval "ac_cv_lib_$ac_lib_var=yes"
5758 echo "configure: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5761 eval "ac_cv_lib_$ac_lib_var=no"
5764 LIBS="$ac_save_LIBS"
5767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5768 echo "$ac_t""yes" 1>&6
5771 echo "$ac_t""no" 1>&6
5776 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5777 echo "configure:5778: checking whether stat file-mode macros are broken" >&5
5778 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 cat > conftest.$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5784 #include <sys/types.h>
5785 #include <sys/stat.h>
5787 #if defined(S_ISBLK) && defined(S_IFDIR)
5788 # if S_ISBLK (S_IFDIR)
5793 #if defined(S_ISBLK) && defined(S_IFCHR)
5794 # if S_ISBLK (S_IFCHR)
5799 #if defined(S_ISLNK) && defined(S_IFREG)
5800 # if S_ISLNK (S_IFREG)
5805 #if defined(S_ISSOCK) && defined(S_IFREG)
5806 # if S_ISSOCK (S_IFREG)
5812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5813 egrep "You lose" >/dev/null 2>&1; then
5815 ac_cv_header_stat_broken=yes
5818 ac_cv_header_stat_broken=no
5824 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5825 if test $ac_cv_header_stat_broken = yes; then
5826 cat >> confdefs.h <<\EOF
5827 #define STAT_MACROS_BROKEN 1
5832 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5833 echo "configure:5834: checking for sys/wait.h that is POSIX.1 compatible" >&5
5834 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 #include <sys/types.h>
5841 #include <sys/wait.h>
5843 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5846 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5851 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5854 if { (eval echo configure:5855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5856 ac_cv_header_sys_wait_h=yes
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5861 ac_cv_header_sys_wait_h=no
5866 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5867 if test $ac_cv_header_sys_wait_h = yes; then
5868 cat >> confdefs.h <<\EOF
5869 #define HAVE_SYS_WAIT_H 1
5874 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5875 echo "configure:5876: checking whether time.h and sys/time.h may both be included" >&5
5876 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5877 echo $ac_n "(cached) $ac_c" 1>&6
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5882 #include <sys/types.h>
5883 #include <sys/time.h>
5889 if { (eval echo configure:5890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5891 ac_cv_header_time=yes
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5896 ac_cv_header_time=no
5901 echo "$ac_t""$ac_cv_header_time" 1>&6
5902 if test $ac_cv_header_time = yes; then
5903 cat >> confdefs.h <<\EOF
5904 #define TIME_WITH_SYS_TIME 1
5909 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5910 echo "configure:5911: checking for st_blksize in struct stat" >&5
5911 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5912 echo $ac_n "(cached) $ac_c" 1>&6
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5917 #include <sys/types.h>
5918 #include <sys/stat.h>
5920 struct stat s; s.st_blksize;
5923 if { (eval echo configure:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5925 ac_cv_struct_st_blksize=yes
5927 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5930 ac_cv_struct_st_blksize=no
5935 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5936 if test $ac_cv_struct_st_blksize = yes; then
5937 cat >> confdefs.h <<\EOF
5938 #define HAVE_ST_BLKSIZE 1
5943 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5944 echo "configure:5945: checking for st_blocks in struct stat" >&5
5945 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 #include <sys/types.h>
5952 #include <sys/stat.h>
5954 struct stat s; s.st_blocks;
5957 if { (eval echo configure:5958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5959 ac_cv_struct_st_blocks=yes
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5964 ac_cv_struct_st_blocks=no
5969 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5970 if test $ac_cv_struct_st_blocks = yes; then
5971 cat >> confdefs.h <<\EOF
5972 #define HAVE_ST_BLOCKS 1
5976 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5979 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5980 echo "configure:5981: checking whether struct tm is in sys/time.h or time.h" >&5
5981 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 #include <sys/types.h>
5990 struct tm *tp; tp->tm_sec;
5993 if { (eval echo configure:5994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5995 ac_cv_struct_tm=time.h
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 ac_cv_struct_tm=sys/time.h
6005 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6006 if test $ac_cv_struct_tm = sys/time.h; then
6007 cat >> confdefs.h <<\EOF
6008 #define TM_IN_SYS_TIME 1
6013 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
6014 echo "configure:6015: checking for tm_zone in struct tm" >&5
6015 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021 #include <sys/types.h>
6022 #include <$ac_cv_struct_tm>
6024 struct tm tm; tm.tm_zone;
6027 if { (eval echo configure:6028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6029 ac_cv_struct_tm_zone=yes
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6034 ac_cv_struct_tm_zone=no
6039 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
6040 if test "$ac_cv_struct_tm_zone" = yes; then
6041 cat >> confdefs.h <<\EOF
6042 #define HAVE_TM_ZONE 1
6046 echo $ac_n "checking for tzname""... $ac_c" 1>&6
6047 echo "configure:6048: checking for tzname" >&5
6048 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6051 cat > conftest.$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6055 #ifndef tzname /* For SGI. */
6056 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6064 ac_cv_var_tzname=yes
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6074 echo "$ac_t""$ac_cv_var_tzname" 1>&6
6075 if test $ac_cv_var_tzname = yes; then
6076 cat >> confdefs.h <<\EOF
6077 #define HAVE_TZNAME 1
6084 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
6085 echo "configure:6086: checking for utime.h" >&5
6086 if eval "test \"`echo '$''{'ba_cv_header_utime_h'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6093 #include <sys/types.h>
6099 if { (eval echo configure:6100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6101 ba_cv_header_utime_h=yes
6103 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6106 ba_cv_header_utime_h=no
6111 echo "$ac_t""$ba_cv_header_utime_h" 1>&6
6112 test $ba_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
6113 #define HAVE_UTIME_H 1
6117 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
6118 echo "configure:6119: checking for socklen_t" >&5
6119 if eval "test \"`echo '$''{'ba_cv_header_socklen_t'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6126 #include <sys/types.h>
6127 #include <sys/socket.h>
6132 if { (eval echo configure:6133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6134 ba_cv_header_socklen_t=yes
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6139 ba_cv_header_socklen_t=no
6144 echo "$ac_t""$ba_cv_header_socklen_t" 1>&6
6145 test $ba_cv_header_socklen_t = yes && cat >> confdefs.h <<\EOF
6146 #define HAVE_SOCKLEN_T 1
6150 echo $ac_n "checking for bigendian""... $ac_c" 1>&6
6151 echo "configure:6152: checking for bigendian" >&5
6152 if eval "test \"`echo '$''{'ba_cv_bigendian'+set}'`\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6155 if test "$cross_compiling" = yes; then
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6161 main(){long a=1L; char *p=(char *)&a; exit(*p);}
6163 if { (eval echo configure:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6167 echo "configure: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6177 echo "$ac_t""$ba_cv_bigendian" 1>&6
6178 test $ba_cv_bigendian = yes && cat >> confdefs.h <<\EOF
6179 #define HAVE_BIGENDIAN 1
6184 echo $ac_n "checking for working const""... $ac_c" 1>&6
6185 echo "configure:6186: checking for working const" >&5
6186 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6195 /* Ultrix mips cc rejects this. */
6196 typedef int charset[2]; const charset x;
6197 /* SunOS 4.1.1 cc rejects this. */
6198 char const *const *ccp;
6200 /* NEC SVR4.0.2 mips cc rejects this. */
6201 struct point {int x, y;};
6202 static struct point const zero = {0,0};
6203 /* AIX XL C 1.02.0.0 rejects this.
6204 It does not let you subtract one const X* pointer from another in an arm
6205 of an if-expression whose if-part is not a constant expression */
6206 const char *g = "string";
6207 ccp = &g + (g ? g-g : 0);
6208 /* HPUX 7.0 cc rejects these. */
6211 ccp = (char const *const *) p;
6212 { /* SCO 3.2v4 cc rejects this. */
6214 char const *s = 0 ? (char *) 0 : (char const *) 0;
6218 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6220 const int *foo = &x[0];
6223 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6224 typedef const int *iptr;
6228 { /* AIX XL C 1.02.0.0 rejects this saying
6229 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6230 struct s { int j; const int *ap[3]; };
6231 struct s *b; b->j = 5;
6233 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6239 if { (eval echo configure:6240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6243 echo "configure: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6251 echo "$ac_t""$ac_cv_c_const" 1>&6
6252 if test $ac_cv_c_const = no; then
6253 cat >> confdefs.h <<\EOF
6261 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6262 echo "configure:6263: checking how to get filesystem type" >&5
6264 # The order of these tests is important.
6265 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6268 #include <sys/statvfs.h>
6269 #include <sys/fstyp.h>
6271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6272 { (eval echo configure:6273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6274 if test -z "$ac_err"; then
6276 cat >> confdefs.h <<\EOF
6277 #define FSTYPE_STATVFS 1
6282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6286 if test $fstype = no; then
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6290 #include <sys/statfs.h>
6291 #include <sys/fstyp.h>
6293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6294 { (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6296 if test -z "$ac_err"; then
6298 cat >> confdefs.h <<\EOF
6299 #define FSTYPE_USG_STATFS 1
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6309 if test $fstype = no; then
6310 cat > conftest.$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6313 #include <sys/statfs.h>
6314 #include <sys/vmount.h>
6316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6317 { (eval echo configure:6318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6319 if test -z "$ac_err"; then
6321 cat >> confdefs.h <<\EOF
6322 #define FSTYPE_AIX_STATFS 1
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6332 if test $fstype = no; then
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6339 { (eval echo configure:6340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6341 if test -z "$ac_err"; then
6343 cat >> confdefs.h <<\EOF
6344 #define FSTYPE_MNTENT 1
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6354 if test $fstype = no; then
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 #include <sys/mount.h>
6360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6361 egrep "f_type;" >/dev/null 2>&1; then
6363 cat >> confdefs.h <<\EOF
6364 #define FSTYPE_STATFS 1
6371 if test $fstype = no; then
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6375 #include <sys/mount.h>
6376 #include <sys/fs_types.h>
6378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6379 { (eval echo configure:6380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6381 if test -z "$ac_err"; then
6383 cat >> confdefs.h <<\EOF
6384 #define FSTYPE_GETMNT 1
6389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6394 echo "$ac_t""$fstype" 1>&6
6396 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6397 echo "configure:6398: checking return type of signal handlers" >&5
6398 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 #include <sys/types.h>
6410 extern "C" void (*signal (int, void (*)(int)))(int);
6412 void (*signal ()) ();
6419 if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6421 ac_cv_type_signal=void
6423 echo "configure: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6426 ac_cv_type_signal=int
6431 echo "$ac_t""$ac_cv_type_signal" 1>&6
6432 cat >> confdefs.h <<EOF
6433 #define RETSIGTYPE $ac_cv_type_signal
6438 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6439 echo "configure:6440: checking for type of signal functions" >&5
6440 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6451 struct sigaction sa;
6452 sigemptyset(&ss); sigsuspend(&ss);
6453 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6454 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6458 if { (eval echo configure:6459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6460 bash_cv_signal_vintage=posix
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6466 cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6472 int mask = sigmask(SIGINT);
6473 sigsetmask(mask); sigblock(mask); sigpause(mask);
6477 if { (eval echo configure:6478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6479 bash_cv_signal_vintage=4.2bsd
6481 echo "configure: failed program was:" >&5
6482 cat conftest.$ac_ext >&5
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6490 RETSIGTYPE foo() { }
6493 int mask = sigmask(SIGINT);
6494 sigset(SIGINT, foo); sigrelse(SIGINT);
6495 sighold(SIGINT); sigpause(SIGINT);
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6501 bash_cv_signal_vintage=svr3
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6506 bash_cv_signal_vintage=v7
6519 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6520 if test "$bash_cv_signal_vintage" = posix; then
6521 cat >> confdefs.h <<\EOF
6522 #define HAVE_POSIX_SIGNALS 1
6525 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6526 cat >> confdefs.h <<\EOF
6527 #define HAVE_BSD_SIGNALS 1
6530 elif test "$bash_cv_signal_vintage" = svr3; then
6531 cat >> confdefs.h <<\EOF
6532 #define HAVE_USG_SIGHOLD 1
6537 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6538 echo "configure:6539: checking for mode_t" >&5
6539 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6545 #include <sys/types.h>
6551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6554 ac_cv_type_mode_t=yes
6557 ac_cv_type_mode_t=no
6562 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6563 if test $ac_cv_type_mode_t = no; then
6564 cat >> confdefs.h <<\EOF
6570 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6571 echo "configure:6572: checking for uid_t in sys/types.h" >&5
6572 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6573 echo $ac_n "(cached) $ac_c" 1>&6
6575 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 #include <sys/types.h>
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 egrep "uid_t" >/dev/null 2>&1; then
6583 ac_cv_type_uid_t=yes
6592 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6593 if test $ac_cv_type_uid_t = no; then
6594 cat >> confdefs.h <<\EOF
6598 cat >> confdefs.h <<\EOF
6604 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6605 echo "configure:6606: checking for size_t" >&5
6606 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 #include <sys/types.h>
6618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6619 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6621 ac_cv_type_size_t=yes
6624 ac_cv_type_size_t=no
6629 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6630 if test $ac_cv_type_size_t = no; then
6631 cat >> confdefs.h <<\EOF
6632 #define size_t unsigned
6637 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6638 echo "configure:6639: checking for pid_t" >&5
6639 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 #include <sys/types.h>
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6654 ac_cv_type_pid_t=yes
6662 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6663 if test $ac_cv_type_pid_t = no; then
6664 cat >> confdefs.h <<\EOF
6670 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6671 echo "configure:6672: checking for off_t" >&5
6672 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6678 #include <sys/types.h>
6684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6685 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6687 ac_cv_type_off_t=yes
6695 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6696 if test $ac_cv_type_off_t = no; then
6697 cat >> confdefs.h <<\EOF
6703 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6704 echo "configure:6705: checking for ino_t" >&5
6705 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 #include <sys/types.h>
6717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6718 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6720 ac_cv_type_ino_t=yes
6728 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6729 if test $ac_cv_type_ino_t = no; then
6730 cat >> confdefs.h <<\EOF
6731 #define ino_t unsigned long
6736 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6737 echo "configure:6738: checking for dev_t" >&5
6738 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 #include <sys/types.h>
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6753 ac_cv_type_dev_t=yes
6761 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6762 if test $ac_cv_type_dev_t = no; then
6763 cat >> confdefs.h <<\EOF
6764 #define dev_t unsigned long
6769 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6770 echo "configure:6771: checking for daddr_t" >&5
6771 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <sys/types.h>
6783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6786 ac_cv_type_daddr_t=yes
6789 ac_cv_type_daddr_t=no
6794 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6795 if test $ac_cv_type_daddr_t = no; then
6796 cat >> confdefs.h <<\EOF
6797 #define daddr_t long
6802 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6803 echo "configure:6804: checking for major_t" >&5
6804 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6807 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6810 #include <sys/types.h>
6816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6817 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6819 ac_cv_type_major_t=yes
6822 ac_cv_type_major_t=no
6827 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6828 if test $ac_cv_type_major_t = no; then
6829 cat >> confdefs.h <<\EOF
6835 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6836 echo "configure:6837: checking for minor_t" >&5
6837 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6838 echo $ac_n "(cached) $ac_c" 1>&6
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6843 #include <sys/types.h>
6849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6850 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6852 ac_cv_type_minor_t=yes
6855 ac_cv_type_minor_t=no
6860 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6861 if test $ac_cv_type_minor_t = no; then
6862 cat >> confdefs.h <<\EOF
6868 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6869 echo "configure:6870: checking for ssize_t" >&5
6870 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6871 echo $ac_n "(cached) $ac_c" 1>&6
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6876 #include <sys/types.h>
6882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6883 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6885 ac_cv_type_ssize_t=yes
6888 ac_cv_type_ssize_t=no
6893 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6894 if test $ac_cv_type_ssize_t = no; then
6895 cat >> confdefs.h <<\EOF
6901 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6902 echo "configure:6903: checking for st_blocks in struct stat" >&5
6903 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 #include <sys/types.h>
6910 #include <sys/stat.h>
6912 struct stat s; s.st_blocks;
6915 if { (eval echo configure:6916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6917 ac_cv_struct_st_blocks=yes
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6922 ac_cv_struct_st_blocks=no
6927 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6928 if test $ac_cv_struct_st_blocks = yes; then
6929 cat >> confdefs.h <<\EOF
6930 #define HAVE_ST_BLOCKS 1
6934 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6937 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6938 echo "configure:6939: checking for st_rdev in struct stat" >&5
6939 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6940 echo $ac_n "(cached) $ac_c" 1>&6
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6945 #include <sys/types.h>
6946 #include <sys/stat.h>
6948 struct stat s; s.st_rdev;
6951 if { (eval echo configure:6952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6953 ac_cv_struct_st_rdev=yes
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 ac_cv_struct_st_rdev=no
6963 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6964 if test $ac_cv_struct_st_rdev = yes; then
6965 cat >> confdefs.h <<\EOF
6966 #define HAVE_ST_RDEV 1
6971 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6972 echo "configure:6973: checking whether struct tm is in sys/time.h or time.h" >&5
6973 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6976 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6979 #include <sys/types.h>
6982 struct tm *tp; tp->tm_sec;
6985 if { (eval echo configure:6986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6987 ac_cv_struct_tm=time.h
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 ac_cv_struct_tm=sys/time.h
6997 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6998 if test $ac_cv_struct_tm = sys/time.h; then
6999 cat >> confdefs.h <<\EOF
7000 #define TM_IN_SYS_TIME 1
7005 echo $ac_n "checking for working const""... $ac_c" 1>&6
7006 echo "configure:7007: checking for working const" >&5
7007 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7016 /* Ultrix mips cc rejects this. */
7017 typedef int charset[2]; const charset x;
7018 /* SunOS 4.1.1 cc rejects this. */
7019 char const *const *ccp;
7021 /* NEC SVR4.0.2 mips cc rejects this. */
7022 struct point {int x, y;};
7023 static struct point const zero = {0,0};
7024 /* AIX XL C 1.02.0.0 rejects this.
7025 It does not let you subtract one const X* pointer from another in an arm
7026 of an if-expression whose if-part is not a constant expression */
7027 const char *g = "string";
7028 ccp = &g + (g ? g-g : 0);
7029 /* HPUX 7.0 cc rejects these. */
7032 ccp = (char const *const *) p;
7033 { /* SCO 3.2v4 cc rejects this. */
7035 char const *s = 0 ? (char *) 0 : (char const *) 0;
7039 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7041 const int *foo = &x[0];
7044 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7045 typedef const int *iptr;
7049 { /* AIX XL C 1.02.0.0 rejects this saying
7050 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7051 struct s { int j; const int *ap[3]; };
7052 struct s *b; b->j = 5;
7054 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7060 if { (eval echo configure:7061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7072 echo "$ac_t""$ac_cv_c_const" 1>&6
7073 if test $ac_cv_c_const = no; then
7074 cat >> confdefs.h <<\EOF
7082 echo $ac_n "checking size of char""... $ac_c" 1>&6
7083 echo "configure:7084: checking size of char" >&5
7084 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 if test "$cross_compiling" = yes; then
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(char));
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_char=`cat conftestval`
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7115 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
7116 cat >> confdefs.h <<EOF
7117 #define SIZEOF_CHAR $ac_cv_sizeof_char
7121 echo $ac_n "checking size of short int""... $ac_c" 1>&6
7122 echo "configure:7123: checking size of short int" >&5
7123 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
7124 echo $ac_n "(cached) $ac_c" 1>&6
7126 if test "$cross_compiling" = yes; then
7127 ac_cv_sizeof_short_int=2
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7135 FILE *f=fopen("conftestval", "w");
7137 fprintf(f, "%d\n", sizeof(short int));
7141 if { (eval echo configure:7142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7143 ac_cv_sizeof_short_int=`cat conftestval`
7145 echo "configure: failed program was:" >&5
7146 cat conftest.$ac_ext >&5
7148 ac_cv_sizeof_short_int=0
7154 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
7155 cat >> confdefs.h <<EOF
7156 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
7160 echo $ac_n "checking size of int""... $ac_c" 1>&6
7161 echo "configure:7162: checking size of int" >&5
7162 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7165 if test "$cross_compiling" = yes; then
7168 cat > conftest.$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7174 FILE *f=fopen("conftestval", "w");
7176 fprintf(f, "%d\n", sizeof(int));
7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7182 ac_cv_sizeof_int=`cat conftestval`
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7193 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7194 cat >> confdefs.h <<EOF
7195 #define SIZEOF_INT $ac_cv_sizeof_int
7199 echo $ac_n "checking size of long int""... $ac_c" 1>&6
7200 echo "configure:7201: checking size of long int" >&5
7201 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7204 if test "$cross_compiling" = yes; then
7205 ac_cv_sizeof_long_int=4
7207 cat > conftest.$ac_ext <<EOF
7208 #line 7209 "configure"
7209 #include "confdefs.h"
7213 FILE *f=fopen("conftestval", "w");
7215 fprintf(f, "%d\n", sizeof(long int));
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7221 ac_cv_sizeof_long_int=`cat conftestval`
7223 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7226 ac_cv_sizeof_long_int=0
7232 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
7233 cat >> confdefs.h <<EOF
7234 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7238 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
7239 echo "configure:7240: checking size of long long int" >&5
7240 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
7241 echo $ac_n "(cached) $ac_c" 1>&6
7243 if test "$cross_compiling" = yes; then
7244 ac_cv_sizeof_long_long_int=8
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7252 FILE *f=fopen("conftestval", "w");
7254 fprintf(f, "%d\n", sizeof(long long int));
7258 if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7260 ac_cv_sizeof_long_long_int=`cat conftestval`
7262 echo "configure: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 ac_cv_sizeof_long_long_int=0
7271 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7272 cat >> confdefs.h <<EOF
7273 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7277 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7278 echo "configure:7279: checking size of int *" >&5
7279 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7282 if test "$cross_compiling" = yes; then
7283 ac_cv_sizeof_int_p=4
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7291 FILE *f=fopen("conftestval", "w");
7293 fprintf(f, "%d\n", sizeof(int *));
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7299 ac_cv_sizeof_int_p=`cat conftestval`
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 ac_cv_sizeof_int_p=0
7310 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7311 cat >> confdefs.h <<EOF
7312 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7317 # Check for sys/types.h types
7318 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7319 echo "configure:7320: checking for u_int type" >&5
7320 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7321 echo $ac_n "(cached) $ac_c" 1>&6
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 #include <sys/types.h>
7332 if { (eval echo configure:7333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7334 ac_cv_have_u_int="yes"
7336 echo "configure: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7339 ac_cv_have_u_int="no"
7346 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7347 if test "x$ac_cv_have_u_int" = "xyes" ; then
7348 cat >> confdefs.h <<\EOF
7349 #define HAVE_U_INT 1
7355 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7356 echo "configure:7357: checking for intmax_t type" >&5
7357 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7358 echo $ac_n "(cached) $ac_c" 1>&6
7361 cat > conftest.$ac_ext <<EOF
7362 #line 7363 "configure"
7363 #include "confdefs.h"
7364 #include <sys/types.h>
7369 if { (eval echo configure:7370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7371 ac_cv_have_intmax_t="yes"
7373 echo "configure: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7377 cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7385 if { (eval echo configure:7386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7387 ac_cv_have_intmax_t="yes"
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 ac_cv_have_intmax_t="no"
7404 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7405 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7406 cat >> confdefs.h <<\EOF
7407 #define HAVE_INTMAX_T 1
7414 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7415 echo "configure:7416: checking for u_intmax_t type" >&5
7416 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7420 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 #include <sys/types.h>
7425 u_intmax_t a; a = 1;
7428 if { (eval echo configure:7429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7430 ac_cv_have_u_intmax_t="yes"
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7436 cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7441 u_intmax_t a; a = 1;
7444 if { (eval echo configure:7445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7446 ac_cv_have_u_intmax_t="yes"
7448 echo "configure: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7451 ac_cv_have_u_intmax_t="no"
7462 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7463 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7464 cat >> confdefs.h <<\EOF
7465 #define HAVE_U_INTMAX_T 1
7472 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7473 echo "configure:7474: checking for intXX_t types" >&5
7474 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7475 echo $ac_n "(cached) $ac_c" 1>&6
7478 cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7481 #include <sys/types.h>
7483 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7486 if { (eval echo configure:7487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7488 ac_cv_have_intxx_t="yes"
7490 echo "configure: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7493 ac_cv_have_intxx_t="no"
7500 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7501 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7502 cat >> confdefs.h <<\EOF
7503 #define HAVE_INTXX_T 1
7509 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7510 echo "configure:7511: checking for int64_t type" >&5
7511 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 #include <sys/types.h>
7523 if { (eval echo configure:7524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7525 ac_cv_have_int64_t="yes"
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7530 ac_cv_have_int64_t="no"
7537 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7538 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7539 cat >> confdefs.h <<\EOF
7540 #define HAVE_INT64_T 1
7546 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7547 echo "configure:7548: checking for u_intXX_t types" >&5
7548 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7552 cat > conftest.$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7555 #include <sys/types.h>
7557 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7560 if { (eval echo configure:7561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7562 ac_cv_have_u_intxx_t="yes"
7564 echo "configure: failed program was:" >&5
7565 cat conftest.$ac_ext >&5
7567 ac_cv_have_u_intxx_t="no"
7574 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7575 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7576 cat >> confdefs.h <<\EOF
7577 #define HAVE_U_INTXX_T 1
7583 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7584 echo "configure:7585: checking for u_int64_t types" >&5
7585 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7589 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 #include <sys/types.h>
7597 if { (eval echo configure:7598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7599 ac_cv_have_u_int64_t="yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 ac_cv_have_u_int64_t="no"
7611 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7612 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7613 cat >> confdefs.h <<\EOF
7614 #define HAVE_U_INT64_T 1
7620 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7621 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7623 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7624 echo "configure:7625: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7625 cat > conftest.$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628 #include <sys/bitypes.h>
7630 int8_t a; int16_t b; int32_t c;
7631 u_int8_t e; u_int16_t f; u_int32_t g;
7632 a = b = c = e = f = g = 1;
7635 if { (eval echo configure:7636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7637 cat >> confdefs.h <<\EOF
7638 #define HAVE_U_INTXX_T 1
7641 cat >> confdefs.h <<\EOF
7642 #define HAVE_INTXX_T 1
7645 cat >> confdefs.h <<\EOF
7646 #define HAVE_SYS_BITYPES_H 1
7649 echo "$ac_t""yes" 1>&6
7651 echo "configure: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7654 echo "$ac_t""no" 1>&6
7660 if test -z "$have_u_intxx_t" ; then
7661 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7662 echo "configure:7663: checking for uintXX_t types" >&5
7663 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7667 cat > conftest.$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 #include <sys/types.h>
7672 uint8_t a; uint16_t b;
7673 uint32_t c; a = b = c = 1;
7676 if { (eval echo configure:7677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7678 ac_cv_have_uintxx_t="yes"
7680 echo "configure: failed program was:" >&5
7681 cat conftest.$ac_ext >&5
7683 ac_cv_have_uintxx_t="no"
7690 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7691 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7692 cat >> confdefs.h <<\EOF
7693 #define HAVE_UINTXX_T 1
7716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7717 echo "configure:7718: checking for $ac_func" >&5
7718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char $ac_func(); below. */
7727 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7734 /* The GNU C library defines this for functions which it implements
7735 to always fail with ENOSYS. Some functions are actually named
7736 something starting with __ and the normal name is an alias. */
7737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7745 if { (eval echo configure:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7747 eval "ac_cv_func_$ac_func=yes"
7749 echo "configure: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7752 eval "ac_cv_func_$ac_func=no"
7757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7758 echo "$ac_t""yes" 1>&6
7759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7760 cat >> confdefs.h <<EOF
7761 #define $ac_tr_func 1
7765 echo "$ac_t""no" 1>&6
7766 echo 'configure: cannot find needed function.'; exit 1
7772 for ac_func in fchdir
7774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7775 echo "configure:7776: checking for $ac_func" >&5
7776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7779 cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7782 /* System header to define __stub macros and hopefully few prototypes,
7783 which can conflict with char $ac_func(); below. */
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7792 /* The GNU C library defines this for functions which it implements
7793 to always fail with ENOSYS. Some functions are actually named
7794 something starting with __ and the normal name is an alias. */
7795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7803 if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7805 eval "ac_cv_func_$ac_func=yes"
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7810 eval "ac_cv_func_$ac_func=no"
7815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7816 echo "$ac_t""yes" 1>&6
7817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7818 cat >> confdefs.h <<EOF
7819 #define $ac_tr_func 1
7821 cat >> confdefs.h <<\EOF
7822 #define HAVE_FCHDIR 1
7826 echo "$ac_t""no" 1>&6
7830 for ac_func in strtoll
7832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7833 echo "configure:7834: checking for $ac_func" >&5
7834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 /* System header to define __stub macros and hopefully few prototypes,
7841 which can conflict with char $ac_func(); below. */
7843 /* Override any gcc2 internal prototype to avoid an error. */
7844 /* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7850 /* The GNU C library defines this for functions which it implements
7851 to always fail with ENOSYS. Some functions are actually named
7852 something starting with __ and the normal name is an alias. */
7853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7861 if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7863 eval "ac_cv_func_$ac_func=yes"
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7868 eval "ac_cv_func_$ac_func=no"
7873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7876 cat >> confdefs.h <<EOF
7877 #define $ac_tr_func 1
7879 cat >> confdefs.h <<\EOF
7880 #define HAVE_STRTOLL 1
7884 echo "$ac_t""no" 1>&6
7889 for ac_func in chflags
7891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7892 echo "configure:7893: checking for $ac_func" >&5
7893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7896 cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 /* System header to define __stub macros and hopefully few prototypes,
7900 which can conflict with char $ac_func(); below. */
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7920 if { (eval echo configure:7921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7922 eval "ac_cv_func_$ac_func=yes"
7924 echo "configure: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7927 eval "ac_cv_func_$ac_func=no"
7932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7933 echo "$ac_t""yes" 1>&6
7934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7935 cat >> confdefs.h <<EOF
7936 #define $ac_tr_func 1
7940 echo "$ac_t""no" 1>&6
7945 for ac_func in snprintf vsnprintf gethostid getdomainname
7947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7948 echo "configure:7949: checking for $ac_func" >&5
7949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7950 echo $ac_n "(cached) $ac_c" 1>&6
7952 cat > conftest.$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* System header to define __stub macros and hopefully few prototypes,
7956 which can conflict with char $ac_func(); below. */
7958 /* Override any gcc2 internal prototype to avoid an error. */
7959 /* We use char because int might match the return type of a gcc2
7960 builtin and then its argument prototype would still apply. */
7965 /* The GNU C library defines this for functions which it implements
7966 to always fail with ENOSYS. Some functions are actually named
7967 something starting with __ and the normal name is an alias. */
7968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7976 if { (eval echo configure:7977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7978 eval "ac_cv_func_$ac_func=yes"
7980 echo "configure: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7983 eval "ac_cv_func_$ac_func=no"
7988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7989 echo "$ac_t""yes" 1>&6
7990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7991 cat >> confdefs.h <<EOF
7992 #define $ac_tr_func 1
7996 echo "$ac_t""no" 1>&6
8001 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
8003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8004 echo "configure:8005: checking for $ac_func" >&5
8005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8011 /* System header to define __stub macros and hopefully few prototypes,
8012 which can conflict with char $ac_func(); below. */
8014 /* Override any gcc2 internal prototype to avoid an error. */
8015 /* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8021 /* The GNU C library defines this for functions which it implements
8022 to always fail with ENOSYS. Some functions are actually named
8023 something starting with __ and the normal name is an alias. */
8024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8032 if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8034 eval "ac_cv_func_$ac_func=yes"
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 eval "ac_cv_func_$ac_func=no"
8044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8045 echo "$ac_t""yes" 1>&6
8046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8047 cat >> confdefs.h <<EOF
8048 #define $ac_tr_func 1
8052 echo "$ac_t""no" 1>&6
8057 # If resolver functions are not in libc check for -lnsl or -lresolv.
8058 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
8059 echo "configure:8060: checking for gethostbyname_r" >&5
8060 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8063 cat > conftest.$ac_ext <<EOF
8064 #line 8065 "configure"
8065 #include "confdefs.h"
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char gethostbyname_r(); below. */
8069 /* Override any gcc2 internal prototype to avoid an error. */
8070 /* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8072 char gethostbyname_r();
8076 /* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
8079 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8089 eval "ac_cv_func_gethostbyname_r=yes"
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8094 eval "ac_cv_func_gethostbyname_r=no"
8099 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8101 echo "$ac_t""using libc's resolver" 1>&6
8103 echo "$ac_t""no" 1>&6
8104 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
8105 echo "configure:8106: checking for gethostbyname_r in -lnsl" >&5
8106 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
8107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8110 ac_save_LIBS="$LIBS"
8112 cat > conftest.$ac_ext <<EOF
8113 #line 8114 "configure"
8114 #include "confdefs.h"
8115 /* Override any gcc2 internal prototype to avoid an error. */
8116 /* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8118 char gethostbyname_r();
8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8126 eval "ac_cv_lib_$ac_lib_var=yes"
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8131 eval "ac_cv_lib_$ac_lib_var=no"
8134 LIBS="$ac_save_LIBS"
8137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8138 echo "$ac_t""yes" 1>&6
8139 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
8140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8141 cat >> confdefs.h <<EOF
8142 #define $ac_tr_lib 1
8148 echo "$ac_t""no" 1>&6
8151 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
8152 echo "configure:8153: checking for gethostbyname_r in -lresolv" >&5
8153 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
8154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8157 ac_save_LIBS="$LIBS"
8158 LIBS="-lresolv $LIBS"
8159 cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165 char gethostbyname_r();
8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8173 eval "ac_cv_lib_$ac_lib_var=yes"
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8178 eval "ac_cv_lib_$ac_lib_var=no"
8181 LIBS="$ac_save_LIBS"
8184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
8187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8188 cat >> confdefs.h <<EOF
8189 #define $ac_tr_lib 1
8192 LIBS="-lresolv $LIBS"
8195 echo "$ac_t""no" 1>&6
8202 # Find where sockets are (especially for Solaris)
8203 echo $ac_n "checking for socket""... $ac_c" 1>&6
8204 echo "configure:8205: checking for socket" >&5
8205 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 /* System header to define __stub macros and hopefully few prototypes,
8212 which can conflict with char socket(); below. */
8214 /* Override any gcc2 internal prototype to avoid an error. */
8215 /* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8221 /* The GNU C library defines this for functions which it implements
8222 to always fail with ENOSYS. Some functions are actually named
8223 something starting with __ and the normal name is an alias. */
8224 #if defined (__stub_socket) || defined (__stub___socket)
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8234 eval "ac_cv_func_socket=yes"
8236 echo "configure: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8239 eval "ac_cv_func_socket=no"
8244 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8245 echo "$ac_t""yes" 1>&6
8246 echo "$ac_t""using libc's socket" 1>&6
8248 echo "$ac_t""no" 1>&6
8249 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
8250 echo "configure:8251: checking for socket in -lxnet" >&5
8251 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
8252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8255 ac_save_LIBS="$LIBS"
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 /* Override any gcc2 internal prototype to avoid an error. */
8261 /* We use char because int might match the return type of a gcc2
8262 builtin and then its argument prototype would still apply. */
8269 if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271 eval "ac_cv_lib_$ac_lib_var=yes"
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 eval "ac_cv_lib_$ac_lib_var=no"
8279 LIBS="$ac_save_LIBS"
8282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8283 echo "$ac_t""yes" 1>&6
8284 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
8285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8286 cat >> confdefs.h <<EOF
8287 #define $ac_tr_lib 1
8293 echo "$ac_t""no" 1>&6
8296 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8297 echo "configure:8298: checking for socket in -lsocket" >&5
8298 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
8299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8300 echo $ac_n "(cached) $ac_c" 1>&6
8302 ac_save_LIBS="$LIBS"
8303 LIBS="-lsocket $LIBS"
8304 cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8307 /* Override any gcc2 internal prototype to avoid an error. */
8308 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8316 if { (eval echo configure:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8318 eval "ac_cv_lib_$ac_lib_var=yes"
8320 echo "configure: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8323 eval "ac_cv_lib_$ac_lib_var=no"
8326 LIBS="$ac_save_LIBS"
8329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8330 echo "$ac_t""yes" 1>&6
8331 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
8332 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8333 cat >> confdefs.h <<EOF
8334 #define $ac_tr_lib 1
8337 LIBS="-lsocket $LIBS"
8340 echo "$ac_t""no" 1>&6
8343 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8344 echo "configure:8345: checking for socket in -linet" >&5
8345 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
8346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8347 echo $ac_n "(cached) $ac_c" 1>&6
8349 ac_save_LIBS="$LIBS"
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8354 /* Override any gcc2 internal prototype to avoid an error. */
8355 /* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8365 eval "ac_cv_lib_$ac_lib_var=yes"
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8370 eval "ac_cv_lib_$ac_lib_var=no"
8373 LIBS="$ac_save_LIBS"
8376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8377 echo "$ac_t""yes" 1>&6
8378 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8379 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8380 cat >> confdefs.h <<EOF
8381 #define $ac_tr_lib 1
8387 echo "$ac_t""no" 1>&6
8393 for ac_func in inet_pton
8395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8396 echo "configure:8397: checking for $ac_func" >&5
8397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8398 echo $ac_n "(cached) $ac_c" 1>&6
8400 cat > conftest.$ac_ext <<EOF
8401 #line 8402 "configure"
8402 #include "confdefs.h"
8403 /* System header to define __stub macros and hopefully few prototypes,
8404 which can conflict with char $ac_func(); below. */
8406 /* Override any gcc2 internal prototype to avoid an error. */
8407 /* We use char because int might match the return type of a gcc2
8408 builtin and then its argument prototype would still apply. */
8413 /* The GNU C library defines this for functions which it implements
8414 to always fail with ENOSYS. Some functions are actually named
8415 something starting with __ and the normal name is an alias. */
8416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8424 if { (eval echo configure:8425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8426 eval "ac_cv_func_$ac_func=yes"
8428 echo "configure: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8431 eval "ac_cv_func_$ac_func=no"
8436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8437 echo "$ac_t""yes" 1>&6
8438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8439 cat >> confdefs.h <<EOF
8440 #define $ac_tr_func 1
8442 cat >> confdefs.h <<\EOF
8443 #define HAVE_INET_PTON 1
8447 echo "$ac_t""no" 1>&6
8452 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8453 echo "configure:8454: checking for strftime" >&5
8454 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8455 echo $ac_n "(cached) $ac_c" 1>&6
8457 cat > conftest.$ac_ext <<EOF
8458 #line 8459 "configure"
8459 #include "confdefs.h"
8460 /* System header to define __stub macros and hopefully few prototypes,
8461 which can conflict with char strftime(); below. */
8463 /* Override any gcc2 internal prototype to avoid an error. */
8464 /* We use char because int might match the return type of a gcc2
8465 builtin and then its argument prototype would still apply. */
8470 /* The GNU C library defines this for functions which it implements
8471 to always fail with ENOSYS. Some functions are actually named
8472 something starting with __ and the normal name is an alias. */
8473 #if defined (__stub_strftime) || defined (__stub___strftime)
8481 if { (eval echo configure:8482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8483 eval "ac_cv_func_strftime=yes"
8485 echo "configure: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8488 eval "ac_cv_func_strftime=no"
8493 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8494 echo "$ac_t""yes" 1>&6
8495 cat >> confdefs.h <<\EOF
8496 #define HAVE_STRFTIME 1
8500 echo "$ac_t""no" 1>&6
8501 # strftime is in -lintl on SCO UNIX.
8502 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8503 echo "configure:8504: checking for strftime in -lintl" >&5
8504 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8506 echo $ac_n "(cached) $ac_c" 1>&6
8508 ac_save_LIBS="$LIBS"
8510 cat > conftest.$ac_ext <<EOF
8511 #line 8512 "configure"
8512 #include "confdefs.h"
8513 /* Override any gcc2 internal prototype to avoid an error. */
8514 /* We use char because int might match the return type of a gcc2
8515 builtin and then its argument prototype would still apply. */
8522 if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8524 eval "ac_cv_lib_$ac_lib_var=yes"
8526 echo "configure: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8529 eval "ac_cv_lib_$ac_lib_var=no"
8532 LIBS="$ac_save_LIBS"
8535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8536 echo "$ac_t""yes" 1>&6
8537 cat >> confdefs.h <<\EOF
8538 #define HAVE_STRFTIME 1
8543 echo "$ac_t""no" 1>&6
8548 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8549 echo "configure:8550: checking for vprintf" >&5
8550 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8551 echo $ac_n "(cached) $ac_c" 1>&6
8553 cat > conftest.$ac_ext <<EOF
8554 #line 8555 "configure"
8555 #include "confdefs.h"
8556 /* System header to define __stub macros and hopefully few prototypes,
8557 which can conflict with char vprintf(); below. */
8559 /* Override any gcc2 internal prototype to avoid an error. */
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8566 /* The GNU C library defines this for functions which it implements
8567 to always fail with ENOSYS. Some functions are actually named
8568 something starting with __ and the normal name is an alias. */
8569 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8577 if { (eval echo configure:8578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8579 eval "ac_cv_func_vprintf=yes"
8581 echo "configure: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8584 eval "ac_cv_func_vprintf=no"
8589 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8590 echo "$ac_t""yes" 1>&6
8591 cat >> confdefs.h <<\EOF
8592 #define HAVE_VPRINTF 1
8596 echo "$ac_t""no" 1>&6
8599 if test "$ac_cv_func_vprintf" != yes; then
8600 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8601 echo "configure:8602: checking for _doprnt" >&5
8602 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8605 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 /* System header to define __stub macros and hopefully few prototypes,
8609 which can conflict with char _doprnt(); below. */
8611 /* Override any gcc2 internal prototype to avoid an error. */
8612 /* We use char because int might match the return type of a gcc2
8613 builtin and then its argument prototype would still apply. */
8618 /* The GNU C library defines this for functions which it implements
8619 to always fail with ENOSYS. Some functions are actually named
8620 something starting with __ and the normal name is an alias. */
8621 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8631 eval "ac_cv_func__doprnt=yes"
8633 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 eval "ac_cv_func__doprnt=no"
8641 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8642 echo "$ac_t""yes" 1>&6
8643 cat >> confdefs.h <<\EOF
8644 #define HAVE_DOPRNT 1
8648 echo "$ac_t""no" 1>&6
8653 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8654 # for constant arguments. Useless!
8655 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8656 echo "configure:8657: checking for working alloca.h" >&5
8657 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
8660 cat > conftest.$ac_ext <<EOF
8661 #line 8662 "configure"
8662 #include "confdefs.h"
8665 char *p = alloca(2 * sizeof(int));
8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8670 ac_cv_header_alloca_h=yes
8672 echo "configure: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8675 ac_cv_header_alloca_h=no
8680 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8681 if test $ac_cv_header_alloca_h = yes; then
8682 cat >> confdefs.h <<\EOF
8683 #define HAVE_ALLOCA_H 1
8688 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8689 echo "configure:8690: checking for alloca" >&5
8690 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8693 cat > conftest.$ac_ext <<EOF
8694 #line 8695 "configure"
8695 #include "confdefs.h"
8698 # define alloca __builtin_alloca
8701 # include <malloc.h>
8702 # define alloca _alloca
8705 # include <alloca.h>
8710 # ifndef alloca /* predefined by HP cc +Olibcalls */
8719 char *p = (char *) alloca(1);
8722 if { (eval echo configure:8723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8724 ac_cv_func_alloca_works=yes
8726 echo "configure: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8729 ac_cv_func_alloca_works=no
8734 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8735 if test $ac_cv_func_alloca_works = yes; then
8736 cat >> confdefs.h <<\EOF
8737 #define HAVE_ALLOCA 1
8742 if test $ac_cv_func_alloca_works = no; then
8743 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8744 # that cause trouble. Some versions do not even contain alloca or
8745 # contain a buggy version. If you still want to use their alloca,
8746 # use ar to extract alloca.o from them instead of compiling alloca.c.
8747 ALLOCA=alloca.${ac_objext}
8748 cat >> confdefs.h <<\EOF
8753 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8754 echo "configure:8755: checking whether alloca needs Cray hooks" >&5
8755 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8756 echo $ac_n "(cached) $ac_c" 1>&6
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8761 #if defined(CRAY) && ! defined(CRAY2)
8768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8769 egrep "webecray" >/dev/null 2>&1; then
8780 echo "$ac_t""$ac_cv_os_cray" 1>&6
8781 if test $ac_cv_os_cray = yes; then
8782 for ac_func in _getb67 GETB67 getb67; do
8783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8784 echo "configure:8785: checking for $ac_func" >&5
8785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 /* System header to define __stub macros and hopefully few prototypes,
8792 which can conflict with char $ac_func(); below. */
8794 /* Override any gcc2 internal prototype to avoid an error. */
8795 /* We use char because int might match the return type of a gcc2
8796 builtin and then its argument prototype would still apply. */
8801 /* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8814 eval "ac_cv_func_$ac_func=yes"
8816 echo "configure: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8819 eval "ac_cv_func_$ac_func=no"
8824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8825 echo "$ac_t""yes" 1>&6
8826 cat >> confdefs.h <<EOF
8827 #define CRAY_STACKSEG_END $ac_func
8832 echo "$ac_t""no" 1>&6
8838 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8839 echo "configure:8840: checking stack direction for C alloca" >&5
8840 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8843 if test "$cross_compiling" = yes; then
8844 ac_cv_c_stack_direction=0
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 find_stack_direction ()
8851 static char *addr = 0;
8856 return find_stack_direction ();
8859 return (&dummy > addr) ? 1 : -1;
8863 exit (find_stack_direction() < 0);
8866 if { (eval echo configure:8867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8868 ac_cv_c_stack_direction=1
8870 echo "configure: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8873 ac_cv_c_stack_direction=-1
8880 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8881 cat >> confdefs.h <<EOF
8882 #define STACK_DIRECTION $ac_cv_c_stack_direction
8887 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8888 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8889 echo "configure:8890: checking for getmntent in -lsun" >&5
8890 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8892 echo $ac_n "(cached) $ac_c" 1>&6
8894 ac_save_LIBS="$LIBS"
8896 cat > conftest.$ac_ext <<EOF
8897 #line 8898 "configure"
8898 #include "confdefs.h"
8899 /* Override any gcc2 internal prototype to avoid an error. */
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8908 if { (eval echo configure:8909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8910 eval "ac_cv_lib_$ac_lib_var=yes"
8912 echo "configure: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8915 eval "ac_cv_lib_$ac_lib_var=no"
8918 LIBS="$ac_save_LIBS"
8921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8922 echo "$ac_t""yes" 1>&6
8925 echo "$ac_t""no" 1>&6
8926 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8927 echo "configure:8928: checking for getmntent in -lseq" >&5
8928 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8932 ac_save_LIBS="$LIBS"
8934 cat > conftest.$ac_ext <<EOF
8935 #line 8936 "configure"
8936 #include "confdefs.h"
8937 /* Override any gcc2 internal prototype to avoid an error. */
8938 /* We use char because int might match the return type of a gcc2
8939 builtin and then its argument prototype would still apply. */
8946 if { (eval echo configure:8947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8948 eval "ac_cv_lib_$ac_lib_var=yes"
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8953 eval "ac_cv_lib_$ac_lib_var=no"
8956 LIBS="$ac_save_LIBS"
8959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8960 echo "$ac_t""yes" 1>&6
8963 echo "$ac_t""no" 1>&6
8964 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8965 echo "configure:8966: checking for getmntent in -lgen" >&5
8966 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8968 echo $ac_n "(cached) $ac_c" 1>&6
8970 ac_save_LIBS="$LIBS"
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 /* Override any gcc2 internal prototype to avoid an error. */
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8984 if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8986 eval "ac_cv_lib_$ac_lib_var=yes"
8988 echo "configure: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8991 eval "ac_cv_lib_$ac_lib_var=no"
8994 LIBS="$ac_save_LIBS"
8997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8998 echo "$ac_t""yes" 1>&6
9001 echo "$ac_t""no" 1>&6
9008 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
9009 echo "configure:9010: checking for getmntent" >&5
9010 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9016 /* System header to define __stub macros and hopefully few prototypes,
9017 which can conflict with char getmntent(); below. */
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. */
9026 /* The GNU C library defines this for functions which it implements
9027 to always fail with ENOSYS. Some functions are actually named
9028 something starting with __ and the normal name is an alias. */
9029 #if defined (__stub_getmntent) || defined (__stub___getmntent)
9037 if { (eval echo configure:9038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9039 eval "ac_cv_func_getmntent=yes"
9041 echo "configure: failed program was:" >&5
9042 cat conftest.$ac_ext >&5
9044 eval "ac_cv_func_getmntent=no"
9049 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
9050 echo "$ac_t""yes" 1>&6
9051 cat >> confdefs.h <<\EOF
9052 #define HAVE_GETMNTENT 1
9056 echo "$ac_t""no" 1>&6
9059 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
9060 echo "configure:9061: checking whether closedir returns void" >&5
9061 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9064 if test "$cross_compiling" = yes; then
9065 ac_cv_func_closedir_void=yes
9067 cat > conftest.$ac_ext <<EOF
9068 #line 9069 "configure"
9069 #include "confdefs.h"
9070 #include <sys/types.h>
9071 #include <$ac_header_dirent>
9072 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
9074 if { (eval echo configure:9075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9076 ac_cv_func_closedir_void=no
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9081 ac_cv_func_closedir_void=yes
9088 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
9089 if test $ac_cv_func_closedir_void = yes; then
9090 cat >> confdefs.h <<\EOF
9091 #define CLOSEDIR_VOID 1
9096 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
9097 echo "configure:9098: checking whether setpgrp takes no argument" >&5
9098 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9101 if test "$cross_compiling" = yes; then
9102 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9108 #ifdef HAVE_UNISTD_H
9113 * If this system has a BSD-style setpgrp, which takes arguments, exit
9118 if (setpgrp(1,1) == -1)
9125 if { (eval echo configure:9126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9127 ac_cv_func_setpgrp_void=no
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9132 ac_cv_func_setpgrp_void=yes
9140 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
9141 if test $ac_cv_func_setpgrp_void = yes; then
9142 cat >> confdefs.h <<\EOF
9143 #define SETPGRP_VOID 1
9147 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9148 echo "configure:9149: checking for working fnmatch" >&5
9149 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9152 # Some versions of Solaris or SCO have a broken fnmatch function.
9153 # So we run a test program. If we are cross-compiling, take no chance.
9154 # Thanks to John Oleynick and Franc,ois Pinard for this test.
9155 if test "$cross_compiling" = yes; then
9156 ac_cv_func_fnmatch_works=no
9158 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9161 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
9163 if { (eval echo configure:9164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9165 ac_cv_func_fnmatch_works=yes
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 ac_cv_func_fnmatch_works=no
9177 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
9178 if test $ac_cv_func_fnmatch_works = yes; then
9179 cat >> confdefs.h <<\EOF
9180 #define HAVE_FNMATCH 1
9187 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
9188 echo "configure:9189: checking for setlocale in -lxpg4" >&5
9189 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9193 ac_save_LIBS="$LIBS"
9195 cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9198 /* Override any gcc2 internal prototype to avoid an error. */
9199 /* We use char because int might match the return type of a gcc2
9200 builtin and then its argument prototype would still apply. */
9207 if { (eval echo configure:9208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9209 eval "ac_cv_lib_$ac_lib_var=yes"
9211 echo "configure: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9214 eval "ac_cv_lib_$ac_lib_var=no"
9217 LIBS="$ac_save_LIBS"
9220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9221 echo "$ac_t""yes" 1>&6
9224 echo "$ac_t""no" 1>&6
9229 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
9230 echo "configure:9231: checking for getpwnam in -lsun" >&5
9231 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
9232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9233 echo $ac_n "(cached) $ac_c" 1>&6
9235 ac_save_LIBS="$LIBS"
9237 cat > conftest.$ac_ext <<EOF
9238 #line 9239 "configure"
9239 #include "confdefs.h"
9240 /* Override any gcc2 internal prototype to avoid an error. */
9241 /* We use char because int might match the return type of a gcc2
9242 builtin and then its argument prototype would still apply. */
9249 if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9251 eval "ac_cv_lib_$ac_lib_var=yes"
9253 echo "configure: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9256 eval "ac_cv_lib_$ac_lib_var=no"
9259 LIBS="$ac_save_LIBS"
9262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9263 echo "$ac_t""yes" 1>&6
9264 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9266 cat >> confdefs.h <<EOF
9267 #define $ac_tr_lib 1
9273 echo "$ac_t""no" 1>&6
9277 for ac_hdr in zlib.h
9279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9281 echo "configure:9282: checking for $ac_hdr" >&5
9282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9285 cat > conftest.$ac_ext <<EOF
9286 #line 9287 "configure"
9287 #include "confdefs.h"
9290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9291 { (eval echo configure:9292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9293 if test -z "$ac_err"; then
9295 eval "ac_cv_header_$ac_safe=yes"
9298 echo "configure: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9301 eval "ac_cv_header_$ac_safe=no"
9305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9306 echo "$ac_t""yes" 1>&6
9307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9308 cat >> confdefs.h <<EOF
9309 #define $ac_tr_hdr 1
9313 echo "$ac_t""no" 1>&6
9317 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9318 echo "configure:9319: checking for deflate in -lz" >&5
9319 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9323 ac_save_LIBS="$LIBS"
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9328 /* Override any gcc2 internal prototype to avoid an error. */
9329 /* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9339 eval "ac_cv_lib_$ac_lib_var=yes"
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 eval "ac_cv_lib_$ac_lib_var=no"
9347 LIBS="$ac_save_LIBS"
9350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9354 echo "$ac_t""no" 1>&6
9358 if test x$FDLIBS = x-lz; then
9359 cat >> confdefs.h <<\EOF
9367 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
9368 echo "configure:9369: checking for pthread_create in -lpthread" >&5
9369 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9373 ac_save_LIBS="$LIBS"
9374 LIBS="-lpthread $LIBS"
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 /* Override any gcc2 internal prototype to avoid an error. */
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9381 char pthread_create();
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9389 eval "ac_cv_lib_$ac_lib_var=yes"
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 eval "ac_cv_lib_$ac_lib_var=no"
9397 LIBS="$ac_save_LIBS"
9400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9401 echo "$ac_t""yes" 1>&6
9402 PTHREAD_LIB="-lpthread"
9404 echo "$ac_t""no" 1>&6
9405 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9406 echo "configure:9407: checking for pthread_create in -lpthreads" >&5
9407 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9411 ac_save_LIBS="$LIBS"
9412 LIBS="-lpthreads $LIBS"
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9416 /* Override any gcc2 internal prototype to avoid an error. */
9417 /* We use char because int might match the return type of a gcc2
9418 builtin and then its argument prototype would still apply. */
9419 char pthread_create();
9425 if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9427 eval "ac_cv_lib_$ac_lib_var=yes"
9429 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9432 eval "ac_cv_lib_$ac_lib_var=no"
9435 LIBS="$ac_save_LIBS"
9438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9439 echo "$ac_t""yes" 1>&6
9440 PTHREAD_LIB="-lpthreads"
9442 echo "$ac_t""no" 1>&6
9443 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9444 echo "configure:9445: checking for pthread_create in -lc_r" >&5
9445 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9447 echo $ac_n "(cached) $ac_c" 1>&6
9449 ac_save_LIBS="$LIBS"
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 /* Override any gcc2 internal prototype to avoid an error. */
9455 /* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9457 char pthread_create();
9463 if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465 eval "ac_cv_lib_$ac_lib_var=yes"
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9470 eval "ac_cv_lib_$ac_lib_var=no"
9473 LIBS="$ac_save_LIBS"
9476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9477 echo "$ac_t""yes" 1>&6
9480 echo "$ac_t""no" 1>&6
9481 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9482 echo "configure:9483: checking for pthread_create" >&5
9483 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9486 cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9489 /* System header to define __stub macros and hopefully few prototypes,
9490 which can conflict with char pthread_create(); below. */
9492 /* Override any gcc2 internal prototype to avoid an error. */
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9495 char pthread_create();
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9510 if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9512 eval "ac_cv_func_pthread_create=yes"
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9517 eval "ac_cv_func_pthread_create=no"
9522 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9523 echo "$ac_t""yes" 1>&6
9526 echo "$ac_t""no" 1>&6
9540 cat >> confdefs.h <<\EOF
9547 LDFLAGS=${LDFLAGS--O}
9548 DB_LIBS="${SQL_LFLAGS}"
9550 CPPFLAGS="$CPPFLAGS"
9575 # Finally we set appropriate distribution specific
9576 # variables and defaults
9578 # PFILES are platform specific files
9579 PFILES="platforms/Makefile"
9586 PSCMD="ps -e -o pid,comm"
9588 platforms/aix/Makefile"
9589 TAPEDRIVE="/dev/rmt0.1"
9593 PTHREAD_LIB="-lpthread -lexc"
9594 if test "${CC}" = "gcc" ; then
9601 TAPEDRIVE="/dev/nrmt0"
9604 DISTVER=`uname -a |awk '{print $3}'`
9605 TAPEDRIVE="/dev/nrmt0"
9606 PTHREAD_LIB="-pthread"
9607 CFLAGS="${CFLAGS} -pthread"
9608 PSCMD="ps -x -o pid,command"
9612 platforms/bsdi/Makefile \
9613 platforms/bsdi/bacula-fd \
9614 platforms/bsdi/bacula-sd \
9615 platforms/bsdi/bacula-dir"
9616 hostname=`hostname -s`
9617 largefile_support="yes"
9620 DISTVER=`uname -a |awk '{print $3}'`
9621 TAPEDRIVE="/dev/nrst0"
9624 WLDFLAGS="-mwindows"
9628 TAPEDRIVE="/dev/nst0"
9629 PSCMD="ps -e -o pid,command"
9630 hostname=`hostname -s`
9632 platforms/darwin/Makefile"
9635 DISTVER=`cat /etc/debian_version`
9636 TAPEDRIVE="/dev/nrst0"
9637 PSCMD="ps -e -o pid,command"
9638 hostname=`hostname -s`
9641 DISTVER=`uname -a |awk '{print $3}'`
9642 PTHREAD_LIB="-pthread"
9643 CFLAGS="${CFLAGS} -pthread"
9646 TAPEDRIVE="/dev/nrsa0"
9647 PSCMD="ps -x -o pid,command"
9649 platforms/freebsd/Makefile \
9650 platforms/freebsd/bacula-fd \
9651 platforms/freebsd/bacula-sd \
9652 platforms/freebsd/bacula-dir"
9653 hostname=`hostname -s`
9654 largefile_support="yes"
9658 TAPEDRIVE="/dev/rmt/0hnb"
9662 TAPEDRIVE="/dev/rmt/0cbn"
9663 PSCMD="ps -e -o pid,comm"
9665 platforms/irix/Makefile \
9666 platforms/irix/bacula-fd \
9667 platforms/irix/bacula-sd \
9668 platforms/irix/bacula-dir"
9671 DISTVER=`uname -a |awk '{print $3}'`
9674 TAPEDRIVE="/dev/nrst0"
9675 PSCMD="ps -a -o pid,command"
9676 PTHREAD_LIB="-pthread"
9677 CFLAGS="${CFLAGS} -pthread"
9680 DISTVER=`uname -a |awk '{print $3}'`
9683 TAPEDRIVE="/dev/nrst0"
9684 PSCMD="ps -a -o pid,command"
9685 PTHREAD_LIB="-pthread"
9686 CFLAGS="${CFLAGS} -pthread"
9688 platforms/openbsd/Makefile \
9689 platforms/openbsd/bacula-fd \
9690 platforms/openbsd/bacula-sd \
9691 platforms/openbsd/bacula-dir"
9694 DISTVER=`cat /etc/redhat-release | grep release |\
9696 TAPEDRIVE="/dev/nst0"
9697 PSCMD="ps -e -o pid,command"
9699 platforms/redhat/Makefile \
9700 platforms/redhat/bacula-fd \
9701 platforms/redhat/bacula-sd \
9702 platforms/redhat/bacula-dir \
9703 platforms/redhat/bacula.spec \
9705 hostname=`hostname -s`
9708 DISTVER=`cat /etc/mandrake-release | grep release |\
9710 TAPEDRIVE="/dev/nst0"
9711 PSCMD="ps -e -o pid,command"
9713 platforms/mandrake/Makefile \
9714 platforms/mandrake/bacula-fd \
9715 platforms/mandrake/bacula-sd \
9716 platforms/mandrake/bacula-dir \
9717 platforms/mandrake/bacula.spec \
9719 hostname=`hostname -s`
9722 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
9723 TAPEDRIVE="/dev/nst0"
9724 PSCMD="ps -e -o pid,command"
9726 platforms/gentoo/Makefile \
9727 platforms/gentoo/bacula-fd \
9728 platforms/gentoo/bacula-sd \
9729 platforms/gentoo/bacula-dir"
9730 hostname=`hostname -s`
9734 DISTVER=`cat /etc/slackware-version`
9735 TAPEDRIVE="/dev/nst0"
9736 PSCMD="ps -e -o pid,command"
9737 hostname=`hostname -s`
9741 TAPEDRIVE="/dev/rmt/0cbn"
9742 PSCMD="ps -e -o pid,comm"
9744 platforms/solaris/Makefile \
9745 platforms/solaris/bacula-fd \
9746 platforms/solaris/bacula-sd \
9747 platforms/solaris/bacula-dir"
9748 if test x$DISTVER = x5.6 ; then
9749 cat >> confdefs.h <<\EOF
9750 #define HAVE_OLD_SOCKOPT 1
9756 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9758 TAPEDRIVE="/dev/nst0"
9759 PSCMD="ps -e -o pid,command"
9760 hostname=`hostname -s`
9765 TAPEDRIVE="/dev/nst0"
9766 PSCMD="ps -e -o pid,command"
9767 hostname=`hostname -s`
9771 TAPEDRIVE="/dev/nst0"
9774 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9780 LIBS="$PTHREAD_LIB $LIBS"
9782 cat >> confdefs.h <<EOF
9786 cat >> confdefs.h <<EOF
9796 MCOMMON=./autoconf/Make.common
9799 if test "x${subsysdir}" = "x${sbindir}" ; then
9802 echo "You have set both --sbindir and --with-subsys-dir"
9803 echo " equal to: ${subsysdir} "
9804 echo "This is not permitted. Please reconfigure."
9806 echo "Aborting configuration ..."
9813 cat > confcache <<\EOF
9814 # This file is a shell script that caches the results of configure
9815 # tests run on this system so they can be shared between configure
9816 # scripts and configure runs. It is not useful on other systems.
9817 # If it contains results you don't want to keep, you may remove or edit it.
9819 # By default, configure uses ./config.cache as the cache file,
9820 # creating it if it does not exist already. You can give configure
9821 # the --cache-file=FILE option to use a different cache file; that is
9822 # what configure does when it calls configure scripts in
9823 # subdirectories, so they share the cache.
9824 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9825 # config.status only pays attention to the cache file if you give it the
9826 # --recheck option to rerun configure.
9829 # The following way of writing the cache mishandles newlines in values,
9830 # but we know of no workaround that is simple, portable, and efficient.
9831 # So, don't put newlines in cache variables' values.
9832 # Ultrix sh set writes to stderr and can't be redirected directly,
9833 # and sets the high bit in the cache file unless we assign to the vars.
9835 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9837 # `set' does not quote correctly, so add quotes (double-quote substitution
9838 # turns \\\\ into \\, and sed turns \\ into \).
9840 -e "s/'/'\\\\''/g" \
9841 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9844 # `set' quotes correctly as required by POSIX, so do not add quotes.
9845 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9848 if cmp -s $cache_file confcache; then
9851 if test -w $cache_file; then
9852 echo "updating cache $cache_file"
9853 cat confcache > $cache_file
9855 echo "not updating unwritable cache $cache_file"
9860 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9863 # Let make expand exec_prefix.
9864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9866 # Any assignment to VPATH causes Sun make to only execute
9867 # the first set of double-colon rules, so remove it if not needed.
9868 # If there is a colon in the path, we need to keep it.
9869 if test "x$srcdir" = x.; then
9870 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9873 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9875 DEFS=-DHAVE_CONFIG_H
9877 # Without the "./", some shells look in PATH for config.status.
9878 : ${CONFIG_STATUS=./config.status}
9880 echo creating $CONFIG_STATUS
9881 rm -f $CONFIG_STATUS
9882 cat > $CONFIG_STATUS <<EOF
9884 # Generated automatically by configure.
9885 # Run this file to recreate the current configuration.
9886 # This directory was configured as follows,
9887 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9889 # $0 $ac_configure_args
9891 # Compiler output produced by configure, useful for debugging
9892 # configure, is in ./config.log if it exists.
9894 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9897 case "\$ac_option" in
9898 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9899 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9900 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9901 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9902 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9904 -help | --help | --hel | --he | --h)
9905 echo "\$ac_cs_usage"; exit 0 ;;
9906 *) echo "\$ac_cs_usage"; exit 1 ;;
9910 ac_given_srcdir=$srcdir
9911 ac_given_INSTALL="$INSTALL"
9913 trap 'rm -fr `echo "autoconf/Make.common \
9916 rescue/linux/Makefile \
9917 rescue/freebsd/Makefile \
9918 rescue/solaris/Makefile \
9919 scripts/startmysql \
9921 scripts/btraceback \
9930 scripts/bacula.desktop.gnome1 \
9931 scripts/bacula.desktop.gnome2 \
9932 scripts/mtx-changer \
9935 src/console/Makefile \
9936 src/console/console.conf \
9937 src/gnome-console/Makefile \
9938 src/gnome-console/gnome-console.conf \
9939 src/gnome2-console/Makefile \
9940 src/gnome2-console/gnome-console.conf \
9941 src/tconsole/Makefile \
9943 src/dird/bacula-dir.conf \
9945 src/stored/Makefile \
9946 src/stored/bacula-sd.conf \
9947 src/filed/Makefile \
9949 src/filed/bacula-fd.conf \
9950 src/filed/win32/Makefile \
9952 src/cats/make_catalog_backup \
9953 src/cats/delete_catalog_backup \
9954 src/cats/alter_mysql_tables \
9955 src/cats/make_mysql_tables \
9956 src/cats/drop_mysql_tables \
9957 src/cats/create_mysql_database \
9958 src/cats/grant_mysql_privileges \
9959 src/cats/alter_sqlite_tables \
9960 src/cats/make_sqlite_tables \
9961 src/cats/drop_sqlite_tables \
9962 src/cats/create_sqlite_database \
9965 src/cats/create_bdb_database \
9966 src/cats/make_bdb_tables \
9967 src/cats/drop_bdb_tables \
9968 src/cats/make_bacula_tables \
9969 src/cats/drop_bacula_tables \
9970 src/findlib/Makefile \
9971 src/tools/Makefile \
9972 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9974 cat >> $CONFIG_STATUS <<EOF
9976 # Protect against being on the right side of a sed subst in config.status.
9977 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9978 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9982 s%@CFLAGS@%$CFLAGS%g
9983 s%@CPPFLAGS@%$CPPFLAGS%g
9984 s%@CXXFLAGS@%$CXXFLAGS%g
9985 s%@FFLAGS@%$FFLAGS%g
9987 s%@LDFLAGS@%$LDFLAGS%g
9989 s%@exec_prefix@%$exec_prefix%g
9990 s%@prefix@%$prefix%g
9991 s%@program_transform_name@%$program_transform_name%g
9992 s%@bindir@%$bindir%g
9993 s%@sbindir@%$sbindir%g
9994 s%@libexecdir@%$libexecdir%g
9995 s%@datadir@%$datadir%g
9996 s%@sysconfdir@%$sysconfdir%g
9997 s%@sharedstatedir@%$sharedstatedir%g
9998 s%@localstatedir@%$localstatedir%g
9999 s%@libdir@%$libdir%g
10000 s%@includedir@%$includedir%g
10001 s%@oldincludedir@%$oldincludedir%g
10002 s%@infodir@%$infodir%g
10003 s%@mandir@%$mandir%g
10004 s%@BUILD_DIR@%$BUILD_DIR%g
10005 s%@TRUEPRG@%$TRUEPRG%g
10006 s%@FALSEPRG@%$FALSEPRG%g
10007 s%@VERSION@%$VERSION%g
10009 s%@LSMDATE@%$LSMDATE%g
10013 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10014 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10015 s%@INSTALL_DATA@%$INSTALL_DATA%g
10016 s%@RANLIB@%$RANLIB%g
10026 s%@OPENSSL@%$OPENSSL%g
10028 s%@PKGCONFIG@%$PKGCONFIG%g
10029 s%@ARFLAGS@%$ARFLAGS%g
10030 s%@MAKE_SHELL@%$MAKE_SHELL%g
10031 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
10032 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
10033 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
10034 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
10035 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
10036 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
10037 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
10038 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
10039 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
10040 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
10041 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
10042 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
10043 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
10044 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
10045 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
10046 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
10047 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
10048 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
10049 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
10050 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
10051 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
10052 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
10053 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
10054 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
10055 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
10056 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
10057 s%@HAVE_DARWIN_OS_TRUE@%$HAVE_DARWIN_OS_TRUE%g
10058 s%@HAVE_DARWIN_OS_FALSE@%$HAVE_DARWIN_OS_FALSE%g
10059 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
10060 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
10061 s%@MSGFMT@%$MSGFMT%g
10062 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
10063 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
10064 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
10065 s%@GNOME_LIBS@%$GNOME_LIBS%g
10066 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
10067 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
10068 s%@ZVT_LIBS@%$ZVT_LIBS%g
10069 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
10070 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
10071 s%@ORBIT_IDL@%$ORBIT_IDL%g
10072 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
10073 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
10074 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
10075 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
10076 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
10077 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
10078 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
10079 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
10080 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
10081 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
10082 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
10083 s%@GNOME_DIR@%$GNOME_DIR%g
10084 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
10085 s%@STATIC_FD@%$STATIC_FD%g
10086 s%@STATIC_SD@%$STATIC_SD%g
10087 s%@STATIC_DIR@%$STATIC_DIR%g
10088 s%@STATIC_CONS@%$STATIC_CONS%g
10089 s%@ALL_DIRS@%$ALL_DIRS%g
10090 s%@CONS_INC@%$CONS_INC%g
10091 s%@CONS_LIBS@%$CONS_LIBS%g
10092 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
10093 s%@READLINE_SRC@%$READLINE_SRC%g
10094 s%@working_dir@%$working_dir%g
10095 s%@scriptdir@%$scriptdir%g
10096 s%@dump_email@%$dump_email%g
10097 s%@job_email@%$job_email%g
10098 s%@smtp_host@%$smtp_host%g
10099 s%@piddir@%$piddir%g
10100 s%@subsysdir@%$subsysdir%g
10101 s%@baseport@%$baseport%g
10102 s%@dir_port@%$dir_port%g
10103 s%@fd_port@%$fd_port%g
10104 s%@sd_port@%$sd_port%g
10105 s%@dir_password@%$dir_password%g
10106 s%@fd_password@%$fd_password%g
10107 s%@sd_password@%$sd_password%g
10108 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
10109 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
10110 s%@SQL_BINDIR@%$SQL_BINDIR%g
10112 s%@DB_NAME@%$DB_NAME%g
10113 s%@EXEEXT@%$EXEEXT%g
10115 s%@host_alias@%$host_alias%g
10116 s%@host_cpu@%$host_cpu%g
10117 s%@host_vendor@%$host_vendor%g
10118 s%@host_os@%$host_os%g
10120 s%@build_alias@%$build_alias%g
10121 s%@build_cpu@%$build_cpu%g
10122 s%@build_vendor@%$build_vendor%g
10123 s%@build_os@%$build_os%g
10124 s%@GETCONF@%$GETCONF%g
10125 s%@X_CFLAGS@%$X_CFLAGS%g
10126 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
10127 s%@X_LIBS@%$X_LIBS%g
10128 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10129 s%@LIBOBJS@%$LIBOBJS%g
10130 s%@ALLOCA@%$ALLOCA%g
10131 s%@FDLIBS@%$FDLIBS%g
10133 s%@DINCLUDE@%$DINCLUDE%g
10135 s%@DB_LIBS@%$DB_LIBS%g
10136 s%@WCFLAGS@%$WCFLAGS%g
10137 s%@WLDFLAGS@%$WLDFLAGS%g
10138 s%@OBJLIST@%$OBJLIST%g
10139 s%@hostname@%$hostname%g
10140 s%@TAPEDRIVE@%$TAPEDRIVE%g
10143 s%@DISTNAME@%$DISTNAME%g
10144 s%@DISTVER@%$DISTVER%g
10145 /@MCOMMON@/r $MCOMMON
10151 cat >> $CONFIG_STATUS <<\EOF
10153 # Split the substitutions into bite-sized pieces for seds with
10154 # small command number limits, like on Digital OSF/1 and HP-UX.
10155 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10156 ac_file=1 # Number of current file.
10157 ac_beg=1 # First line for current file.
10158 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10161 while $ac_more_lines; do
10162 if test $ac_beg -gt 1; then
10163 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10165 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10167 if test ! -s conftest.s$ac_file; then
10168 ac_more_lines=false
10169 rm -f conftest.s$ac_file
10171 if test -z "$ac_sed_cmds"; then
10172 ac_sed_cmds="sed -f conftest.s$ac_file"
10174 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10176 ac_file=`expr $ac_file + 1`
10178 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10181 if test -z "$ac_sed_cmds"; then
10186 cat >> $CONFIG_STATUS <<EOF
10188 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
10191 rescue/linux/Makefile \
10192 rescue/freebsd/Makefile \
10193 rescue/solaris/Makefile \
10194 scripts/startmysql \
10195 scripts/stopmysql \
10196 scripts/btraceback \
10204 scripts/logrotate \
10205 scripts/bacula.desktop.gnome1 \
10206 scripts/bacula.desktop.gnome2 \
10207 scripts/mtx-changer \
10210 src/console/Makefile \
10211 src/console/console.conf \
10212 src/gnome-console/Makefile \
10213 src/gnome-console/gnome-console.conf \
10214 src/gnome2-console/Makefile \
10215 src/gnome2-console/gnome-console.conf \
10216 src/tconsole/Makefile \
10217 src/dird/Makefile \
10218 src/dird/bacula-dir.conf \
10220 src/stored/Makefile \
10221 src/stored/bacula-sd.conf \
10222 src/filed/Makefile \
10224 src/filed/bacula-fd.conf \
10225 src/filed/win32/Makefile \
10226 src/cats/Makefile \
10227 src/cats/make_catalog_backup \
10228 src/cats/delete_catalog_backup \
10229 src/cats/alter_mysql_tables \
10230 src/cats/make_mysql_tables \
10231 src/cats/drop_mysql_tables \
10232 src/cats/create_mysql_database \
10233 src/cats/grant_mysql_privileges \
10234 src/cats/alter_sqlite_tables \
10235 src/cats/make_sqlite_tables \
10236 src/cats/drop_sqlite_tables \
10237 src/cats/create_sqlite_database \
10240 src/cats/create_bdb_database \
10241 src/cats/make_bdb_tables \
10242 src/cats/drop_bdb_tables \
10243 src/cats/make_bacula_tables \
10244 src/cats/drop_bacula_tables \
10245 src/findlib/Makefile \
10246 src/tools/Makefile \
10249 cat >> $CONFIG_STATUS <<\EOF
10250 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10253 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10254 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10255 *) ac_file_in="${ac_file}.in" ;;
10258 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10260 # Remove last slash and all that follows it. Not all systems have dirname.
10261 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10262 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10263 # The file is in a subdirectory.
10264 test ! -d "$ac_dir" && mkdir "$ac_dir"
10265 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10266 # A "../" for each directory in $ac_dir_suffix.
10267 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10269 ac_dir_suffix= ac_dots=
10272 case "$ac_given_srcdir" in
10274 if test -z "$ac_dots"; then top_srcdir=.
10275 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10276 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10277 *) # Relative path.
10278 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10279 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10282 case "$ac_given_INSTALL" in
10283 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10284 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10287 echo creating "$ac_file"
10289 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10291 *Makefile*) ac_comsub="1i\\
10292 # $configure_input" ;;
10296 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10298 s%@configure_input@%$configure_input%g
10299 s%@srcdir@%$srcdir%g
10300 s%@top_srcdir@%$top_srcdir%g
10301 s%@INSTALL@%$INSTALL%g
10302 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10306 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10307 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10309 # ac_d sets the value in "#define NAME VALUE" lines.
10310 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10311 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10314 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10315 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10316 ac_uB='\([ ]\)%\1#\2define\3'
10319 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10320 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10321 ac_eB='$%\1#\2define\3'
10325 if test "${CONFIG_HEADERS+set}" != set; then
10327 cat >> $CONFIG_STATUS <<EOF
10328 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
10330 cat >> $CONFIG_STATUS <<\EOF
10332 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10333 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10335 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10336 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10337 *) ac_file_in="${ac_file}.in" ;;
10340 echo creating $ac_file
10342 rm -f conftest.frag conftest.in conftest.out
10343 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10344 cat $ac_file_inputs > conftest.in
10348 # Transform confdefs.h into a sed script conftest.vals that substitutes
10349 # the proper values into config.h.in to produce config.h. And first:
10350 # Protect against being on the right side of a sed subst in config.status.
10351 # Protect against being in an unquoted here document in config.status.
10352 rm -f conftest.vals
10353 cat > conftest.hdr <<\EOF
10356 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10360 sed -n -f conftest.hdr confdefs.h > conftest.vals
10363 # This sed command replaces #undef with comments. This is necessary, for
10364 # example, in the case of _POSIX_SOURCE, which is predefined and required
10365 # on some systems where configure will not decide to define it.
10366 cat >> conftest.vals <<\EOF
10367 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10370 # Break up conftest.vals because some shells have a limit on
10371 # the size of here documents, and old seds have small limits too.
10373 rm -f conftest.tail
10376 ac_lines=`grep -c . conftest.vals`
10377 # grep -c gives empty output for an empty file on some AIX systems.
10378 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10379 # Write a limited-size here document to conftest.frag.
10380 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10381 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10383 sed -f conftest.frag conftest.in > conftest.out
10385 mv conftest.out conftest.in
10386 ' >> $CONFIG_STATUS
10387 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10388 rm -f conftest.vals
10389 mv conftest.tail conftest.vals
10391 rm -f conftest.vals
10393 cat >> $CONFIG_STATUS <<\EOF
10394 rm -f conftest.frag conftest.h
10395 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10396 cat conftest.in >> conftest.h
10398 if cmp -s $ac_file conftest.h 2>/dev/null; then
10399 echo "$ac_file is unchanged"
10402 # Remove last slash and all that follows it. Not all systems have dirname.
10403 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10404 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10405 # The file is in a subdirectory.
10406 test ! -d "$ac_dir" && mkdir "$ac_dir"
10409 mv conftest.h $ac_file
10414 cat >> $CONFIG_STATUS <<EOF
10417 cat >> $CONFIG_STATUS <<\EOF
10418 (echo "Doing make of dependencies"; make depend;)
10422 chmod +x $CONFIG_STATUS
10423 rm -fr confdefs* $ac_clean_files
10424 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10428 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
10429 chmod 755 console gconsole mtx-changer
10431 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
10432 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
10433 chmod 755 src/cats/create_mysql_database
10434 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
10435 chmod 755 src/cats/alter_mysql_tables
10436 chmod 755 src/cats/grant_mysql_privileges
10437 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
10438 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
10439 chmod 755 src/cats/create_sqlite_database
10440 chmod 755 src/cats/alter_sqlite_tables
10441 chmod 755 src/cats/sqlite
10442 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
10443 chmod 755 src/cats/create_bdb_database
10445 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
10446 largefile_support="yes"
10450 # A whole lot of hand springs to get the compiler version.
10451 # This is because gcc changed the output in version 3.0
10453 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
10454 if test "x${CCVERSION}" = "x" ; then
10455 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
10457 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
10458 if test x"${CXXVERSION}" = x ; then
10459 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
10462 if test "x${subsysdir}" = "x${sbindir}" ; then
10465 echo "You have set --sbindir and --with-subsys-dir"
10466 echo " both equal to: ${subsysdir} "
10467 echo " This is not permitted. Please reconfigure."
10468 echo "Aborting configuration ..."
10475 Configuration on `date`:
10477 Host: $host -- ${DISTNAME} ${DISTVER}
10478 Bacula version: ${VERSION} (${DATE})
10479 Source code location: ${srcdir}
10480 Install binaries: ${sbindir}
10481 Install config files: ${sysconfdir}
10482 Scripts directory: ${scriptdir}
10483 Working directory: ${working_dir}
10484 PID directory: ${piddir}
10485 Subsys directory: ${subsysdir}
10486 C Compiler: ${CC} ${CCVERSION}
10487 C++ Compiler: ${CXX} ${CXXVERSION}
10488 Compiler flags: ${WCFLAGS} ${CFLAGS}
10489 Linker flags: ${WLDFLAGS} ${LDFLAGS}
10491 Statically Linked Tools: ${support_static_tools}
10492 Statically Linked FD: ${support_static_fd}
10493 Statically Linked SD: ${support_static_sd}
10494 Statically Linked DIR: ${support_static_dir}
10495 Statically Linked CONS: ${support_static_cons}
10496 Database type: ${db_name}
10497 Database lib: ${DB_LIBS}
10499 Job Output Email: ${job_email}
10500 Traceback Email: ${dump_email}
10501 SMTP Host Address: ${smtp_host}
10502 Director Port ${dir_port}
10503 File daemon Port ${fd_port}
10504 Storage daemon Port ${sd_port}
10505 SQL binaries Directory ${SQL_BINDIR}
10507 Large file support: $largefile_support
10508 readline support: ${got_readline} ${PRTREADLINE_SRC}
10509 TCP Wrappers support: ${TCPW_MSG}
10510 ZLIB support: ${have_zlib}
10511 enable-smartalloc: ${support_smartalloc}
10512 enable-gnome: ${support_gnome}
10513 client-only: ${build_client_only}
10520 # cweb support: ${got_cweb} ${CWEB_SRC}
10521 # gmp support: ${got_gmp} ${GMP_SRC}