3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-everything enable standard non-multichoice features: marked *"
17 --enable-gnome enable build of gnome-console GUI *"
19 --with-gnome-includes Specify location of GNOME headers"
21 --with-gnome-libs Specify location of GNOME libs"
23 --with-gnome Specify prefix for GNOME files"
25 --enable-smartalloc enable smartalloc debugging support *"
27 --disable-readline disable readline support "
29 --with-readline[=DIR] Specify readline library directory"
31 --with-gmp[=DIR] Specify gmp library directory"
33 --with-cweb[=DIR] Specify cweb library directory"
35 --with-tcp-wrappers=DIR Enable tcpwrappers support"
37 --with-working-dir=PATH Specify location of Bacula working files"
39 --with-dump-email=Dump email address"
41 --with-job-email=Job output email address"
43 --with-smtp-host=SMTP mail host address"
45 --with-pid-dir=PATH Specify location of Bacula pid files"
47 --with-subsys-dir=PATH Specify location of Bacula subsys file"
49 --with-baseport=PORT Specify base port address for daemons"
51 --with-dir-password=PASSWORD Specify Director's password"
53 --with-fd-password=PASSWORD Specify Client's password"
55 --with-sd-password=PASSWORD Specify Storage daemon's password"
58 Which one DBMS do you want to use (please select only one):
59 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
60 install directory, default is to search through
61 a number of common places for the MySQL files."
64 Which one DBMS do you want to use (please select only one):
65 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
66 install directory, default is to search through
67 a number of common places for the SQLite files."
69 --with-x use the X Window System"
71 # Initialize some variables set by options.
72 # The variables have the same names as the options, with
73 # dashes changed to underlines.
75 cache_file=./config.cache
84 program_transform_name=s,x,x,
92 bindir='${exec_prefix}/bin'
93 sbindir='${exec_prefix}/sbin'
94 libexecdir='${exec_prefix}/libexec'
95 datadir='${prefix}/share'
96 sysconfdir='${prefix}/etc'
97 sharedstatedir='${prefix}/com'
98 localstatedir='${prefix}/var'
99 libdir='${exec_prefix}/lib'
100 includedir='${prefix}/include'
101 oldincludedir='/usr/include'
102 infodir='${prefix}/info'
103 mandir='${prefix}/man'
105 # Initialize some other variables.
108 SHELL=${CONFIG_SHELL-/bin/sh}
109 # Maximum number of lines to put in a shell here document.
116 # If the previous option needs an argument, assign it.
117 if test -n "$ac_prev"; then
118 eval "$ac_prev=\$ac_option"
124 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
128 # Accept the important Cygnus configure options, so we can diagnose typos.
132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
135 bindir="$ac_optarg" ;;
137 -build | --build | --buil | --bui | --bu)
139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
140 build="$ac_optarg" ;;
142 -cache-file | --cache-file | --cache-fil | --cache-fi \
143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
144 ac_prev=cache_file ;;
145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
147 cache_file="$ac_optarg" ;;
149 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 datadir="$ac_optarg" ;;
155 -disable-* | --disable-*)
156 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}=no" ;;
164 -enable-* | --enable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}='$ac_optarg'" ;;
177 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
178 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
179 | --exec | --exe | --ex)
180 ac_prev=exec_prefix ;;
181 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
182 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
183 | --exec=* | --exe=* | --ex=*)
184 exec_prefix="$ac_optarg" ;;
186 -gas | --gas | --ga | --g)
187 # Obsolete; use --with-gas.
190 -help | --help | --hel | --he)
191 # Omit some internal or obsolete options to make the list less imposing.
192 # This message is too long to be a string in the A/UX 3.1 sh.
194 Usage: configure [options] [host]
195 Options: [defaults in brackets after descriptions]
197 --cache-file=FILE cache test results in FILE
198 --help print this message
199 --no-create do not create output files
200 --quiet, --silent do not print \`checking...' messages
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
245 -host | --host | --hos | --ho)
247 -host=* | --host=* | --hos=* | --ho=*)
250 -includedir | --includedir | --includedi | --included | --include \
251 | --includ | --inclu | --incl | --inc)
252 ac_prev=includedir ;;
253 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
254 | --includ=* | --inclu=* | --incl=* | --inc=*)
255 includedir="$ac_optarg" ;;
257 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
260 infodir="$ac_optarg" ;;
262 -libdir | --libdir | --libdi | --libd)
264 -libdir=* | --libdir=* | --libdi=* | --libd=*)
265 libdir="$ac_optarg" ;;
267 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
268 | --libexe | --libex | --libe)
269 ac_prev=libexecdir ;;
270 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
271 | --libexe=* | --libex=* | --libe=*)
272 libexecdir="$ac_optarg" ;;
274 -localstatedir | --localstatedir | --localstatedi | --localstated \
275 | --localstate | --localstat | --localsta | --localst \
276 | --locals | --local | --loca | --loc | --lo)
277 ac_prev=localstatedir ;;
278 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
279 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
280 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
281 localstatedir="$ac_optarg" ;;
283 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
286 mandir="$ac_optarg" ;;
289 # Obsolete; use --without-fp.
292 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
297 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
301 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
302 | --oldin | --oldi | --old | --ol | --o)
303 ac_prev=oldincludedir ;;
304 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
305 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
306 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
307 oldincludedir="$ac_optarg" ;;
309 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
312 prefix="$ac_optarg" ;;
314 -program-prefix | --program-prefix | --program-prefi | --program-pref \
315 | --program-pre | --program-pr | --program-p)
316 ac_prev=program_prefix ;;
317 -program-prefix=* | --program-prefix=* | --program-prefi=* \
318 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
319 program_prefix="$ac_optarg" ;;
321 -program-suffix | --program-suffix | --program-suffi | --program-suff \
322 | --program-suf | --program-su | --program-s)
323 ac_prev=program_suffix ;;
324 -program-suffix=* | --program-suffix=* | --program-suffi=* \
325 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
326 program_suffix="$ac_optarg" ;;
328 -program-transform-name | --program-transform-name \
329 | --program-transform-nam | --program-transform-na \
330 | --program-transform-n | --program-transform- \
331 | --program-transform | --program-transfor \
332 | --program-transfo | --program-transf \
333 | --program-trans | --program-tran \
334 | --progr-tra | --program-tr | --program-t)
335 ac_prev=program_transform_name ;;
336 -program-transform-name=* | --program-transform-name=* \
337 | --program-transform-nam=* | --program-transform-na=* \
338 | --program-transform-n=* | --program-transform-=* \
339 | --program-transform=* | --program-transfor=* \
340 | --program-transfo=* | --program-transf=* \
341 | --program-trans=* | --program-tran=* \
342 | --progr-tra=* | --program-tr=* | --program-t=*)
343 program_transform_name="$ac_optarg" ;;
345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
346 | -silent | --silent | --silen | --sile | --sil)
349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 sbindir="$ac_optarg" ;;
355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
357 | --sharedst | --shareds | --shared | --share | --shar \
359 ac_prev=sharedstatedir ;;
360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 sharedstatedir="$ac_optarg" ;;
366 -site | --site | --sit)
368 -site=* | --site=* | --sit=*)
371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
374 srcdir="$ac_optarg" ;;
376 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
377 | --syscon | --sysco | --sysc | --sys | --sy)
378 ac_prev=sysconfdir ;;
379 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
380 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
381 sysconfdir="$ac_optarg" ;;
383 -target | --target | --targe | --targ | --tar | --ta | --t)
385 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
386 target="$ac_optarg" ;;
388 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 -version | --version | --versio | --versi | --vers)
392 echo "configure generated by autoconf version 2.13"
396 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes="$ac_optarg" ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries="$ac_optarg" ;;
435 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440 echo "configure: warning: $ac_option: invalid host type" 1>&2
442 if test "x$nonopt" != xNONE; then
443 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 if test -n "$ac_prev"; then
452 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457 # File descriptor usage:
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c) ;;
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
489 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 # Only set these to C if already set. These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
499 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
501 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file=src/version.h
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$CONFIG_SITE"; then
537 if test "x$prefix" != xNONE; then
538 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 for ac_site_file in $CONFIG_SITE; do
544 if test -r "$ac_site_file"; then
545 echo "loading site script $ac_site_file"
550 if test -r "$cache_file"; then
551 echo "loading cache $cache_file"
554 echo "creating cache $cache_file"
559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
560 ac_cpp='$CPP $CPPFLAGS'
561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
563 cross_compiling=$ac_cv_prog_cc_cross
567 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
568 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
569 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='\c' ac_t=
586 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
587 if test -f $ac_dir/install-sh; then
589 ac_install_sh="$ac_aux_dir/install-sh -c"
591 elif test -f $ac_dir/install.sh; then
593 ac_install_sh="$ac_aux_dir/install.sh -c"
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
611 # Extract the first word of "$ac_prog", so it can be a program name with args.
612 set dummy $ac_prog; ac_word=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
620 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
623 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
628 for ac_dir in $ac_dummy; do
629 test -z "$ac_dir" && ac_dir=.
630 if test -f $ac_dir/$ac_word; then
631 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
639 TRUEPRG="$ac_cv_path_TRUEPRG"
640 if test -n "$TRUEPRG"; then
641 echo "$ac_t""$TRUEPRG" 1>&6
643 echo "$ac_t""no" 1>&6
646 test -n "$TRUEPRG" && break
648 test -n "$TRUEPRG" || TRUEPRG=":"
652 # Extract the first word of "$ac_prog", so it can be a program name with args.
653 set dummy $ac_prog; ac_word=$2
654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
655 echo "configure:656: checking for $ac_word" >&5
656 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
661 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
664 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
669 for ac_dir in $ac_dummy; do
670 test -z "$ac_dir" && ac_dir=.
671 if test -f $ac_dir/$ac_word; then
672 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
680 FALSEPRG="$ac_cv_path_FALSEPRG"
681 if test -n "$FALSEPRG"; then
682 echo "$ac_t""$FALSEPRG" 1>&6
684 echo "$ac_t""no" 1>&6
687 test -n "$FALSEPRG" && break
689 test -n "$FALSEPRG" || FALSEPRG=":"
693 # Make sure we can run config.sub.
694 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
695 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
698 echo $ac_n "checking host system type""... $ac_c" 1>&6
699 echo "configure:700: checking host system type" >&5
702 case "$host_alias" in
706 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
707 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
709 *) host_alias=$nonopt ;;
713 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
714 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
717 echo "$ac_t""$host" 1>&6
720 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
721 DATE=`sed -n -e 's/^.* \t*DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
722 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
723 echo "configuring for bacula $VERSION ($DATE)"
727 # Extract the first word of "gcc", so it can be a program name with args.
728 set dummy gcc; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
756 if test -z "$CC"; then
757 # Extract the first word of "cc", so it can be a program name with args.
758 set dummy cc; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
770 for ac_dir in $ac_dummy; do
771 test -z "$ac_dir" && ac_dir=.
772 if test -f $ac_dir/$ac_word; then
773 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
782 if test $ac_prog_rejected = yes; then
783 # We found a bogon in the path, so make sure we never use it.
784 set dummy $ac_cv_prog_CC
786 if test $# -gt 0; then
787 # We chose a different compiler from the bogus one.
788 # However, it has the same basename, so the bogon will be chosen
789 # first if we set CC to just the basename; use the full file name.
791 set dummy "$ac_dir/$ac_word" "$@"
799 if test -n "$CC"; then
800 echo "$ac_t""$CC" 1>&6
802 echo "$ac_t""no" 1>&6
805 if test -z "$CC"; then
808 # Extract the first word of "cl", so it can be a program name with args.
809 set dummy cl; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
834 echo "$ac_t""no" 1>&6
839 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
842 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
843 echo "configure:844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
847 ac_cpp='$CPP $CPPFLAGS'
848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
850 cross_compiling=$ac_cv_prog_cc_cross
852 cat > conftest.$ac_ext << EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 if { (eval echo configure:860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
860 ac_cv_prog_cc_works=yes
861 # If we can't run a trivial program, we are probably using a cross compiler.
862 if (./conftest; exit) 2>/dev/null; then
863 ac_cv_prog_cc_cross=no
865 ac_cv_prog_cc_cross=yes
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
870 ac_cv_prog_cc_works=no
874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
875 ac_cpp='$CPP $CPPFLAGS'
876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
878 cross_compiling=$ac_cv_prog_cc_cross
880 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
881 if test $ac_cv_prog_cc_works = no; then
882 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
884 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
885 echo "configure:886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
886 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
887 cross_compiling=$ac_cv_prog_cc_cross
889 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
890 echo "configure:891: checking whether we are using GNU C" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
894 cat > conftest.c <<EOF
899 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
906 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
908 if test $ac_cv_prog_gcc = yes; then
914 ac_test_CFLAGS="${CFLAGS+set}"
915 ac_save_CFLAGS="$CFLAGS"
917 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
918 echo "configure:919: checking whether ${CC-cc} accepts -g" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 echo 'void f(){}' > conftest.c
923 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
932 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
933 if test "$ac_test_CFLAGS" = set; then
934 CFLAGS="$ac_save_CFLAGS"
935 elif test $ac_cv_prog_cc_g = yes; then
936 if test "$GCC" = yes; then
942 if test "$GCC" = yes; then
949 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
951 # Extract the first word of "$ac_prog", so it can be a program name with args.
952 set dummy $ac_prog; ac_word=$2
953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
954 echo "configure:955: checking for $ac_word" >&5
955 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
958 if test -n "$CXX"; then
959 ac_cv_prog_CXX="$CXX" # Let the user override the test.
961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
963 for ac_dir in $ac_dummy; do
964 test -z "$ac_dir" && ac_dir=.
965 if test -f $ac_dir/$ac_word; then
966 ac_cv_prog_CXX="$ac_prog"
973 CXX="$ac_cv_prog_CXX"
974 if test -n "$CXX"; then
975 echo "$ac_t""$CXX" 1>&6
977 echo "$ac_t""no" 1>&6
980 test -n "$CXX" && break
982 test -n "$CXX" || CXX="gcc"
985 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
986 echo "configure:987: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
990 ac_cpp='$CXXCPP $CPPFLAGS'
991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
993 cross_compiling=$ac_cv_prog_cxx_cross
995 cat > conftest.$ac_ext << EOF
997 #line 998 "configure"
998 #include "confdefs.h"
1000 int main(){return(0);}
1002 if { (eval echo configure:1003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1003 ac_cv_prog_cxx_works=yes
1004 # If we can't run a trivial program, we are probably using a cross compiler.
1005 if (./conftest; exit) 2>/dev/null; then
1006 ac_cv_prog_cxx_cross=no
1008 ac_cv_prog_cxx_cross=yes
1011 echo "configure: failed program was:" >&5
1012 cat conftest.$ac_ext >&5
1013 ac_cv_prog_cxx_works=no
1017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1018 ac_cpp='$CPP $CPPFLAGS'
1019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1021 cross_compiling=$ac_cv_prog_cc_cross
1023 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1024 if test $ac_cv_prog_cxx_works = no; then
1025 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1027 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1028 echo "configure:1029: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1029 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1030 cross_compiling=$ac_cv_prog_cxx_cross
1032 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether we are using GNU C++" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1037 cat > conftest.C <<EOF
1042 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1049 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1051 if test $ac_cv_prog_gxx = yes; then
1057 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1058 ac_save_CXXFLAGS="$CXXFLAGS"
1060 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1061 echo "configure:1062: checking whether ${CXX-g++} accepts -g" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 echo 'void f(){}' > conftest.cc
1066 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1067 ac_cv_prog_cxx_g=yes
1075 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1076 if test "$ac_test_CXXFLAGS" = set; then
1077 CXXFLAGS="$ac_save_CXXFLAGS"
1078 elif test $ac_cv_prog_cxx_g = yes; then
1079 if test "$GXX" = yes; then
1085 if test "$GXX" = yes; then
1092 for ac_declaration in \
1094 '#include <stdlib.h>' \
1095 'extern "C" void std::exit (int) throw (); using std::exit;' \
1096 'extern "C" void std::exit (int); using std::exit;' \
1097 'extern "C" void exit (int) throw ();' \
1098 'extern "C" void exit (int);' \
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1110 if { (eval echo configure:1111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1119 cat > conftest.$ac_ext <<EOF
1120 #line 1121 "configure"
1121 #include "confdefs.h"
1127 if { (eval echo configure:1128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1131 echo "configure: failed program was:" >&5
1132 cat conftest.$ac_ext >&5
1136 if test -n "$ac_declaration"; then
1137 echo '#ifdef __cplusplus' >>confdefs.h
1138 echo $ac_declaration >>confdefs.h
1139 echo '#endif' >>confdefs.h
1143 if test "x$CC" != xcc; then
1144 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether $CC and cc understand -c and -o together" >&5
1147 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether cc understands -c and -o together" >&5
1150 set dummy $CC; ac_cc="`echo $2 |
1151 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1152 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 echo 'foo(){}' > conftest.c
1156 # Make sure it works both with $CC and with simple cc.
1157 # We do the test twice because some compilers refuse to overwrite an
1158 # existing .o file with -o, though they will create one.
1159 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1160 if { (eval echo configure:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1161 test -f conftest.o && { (eval echo configure:1162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1163 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1164 if test "x$CC" != xcc; then
1165 # Test first that cc exists at all.
1166 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1167 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1168 if { (eval echo configure:1169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1169 test -f conftest.o && { (eval echo configure:1170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1174 # cc exists but doesn't like -o.
1175 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1180 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1185 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1186 echo "$ac_t""yes" 1>&6
1188 echo "$ac_t""no" 1>&6
1189 cat >> confdefs.h <<\EOF
1190 #define NO_MINUS_C_MINUS_O 1
1194 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1195 echo "configure:1196: checking how to run the C preprocessor" >&5
1196 # On Suns, sometimes $CPP names a directory.
1197 if test -n "$CPP" && test -d "$CPP"; then
1200 if test -z "$CPP"; then
1201 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 # This must be in double quotes, not single quotes, because CPP may get
1205 # substituted into the Makefile and "${CC-cc}" will confuse make.
1207 # On the NeXT, cc -E runs the code through the compiler's parser,
1208 # not just through cpp.
1209 cat > conftest.$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216 { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1218 if test -z "$ac_err"; then
1222 echo "configure: failed program was:" >&5
1223 cat conftest.$ac_ext >&5
1225 CPP="${CC-cc} -E -traditional-cpp"
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233 { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235 if test -z "$ac_err"; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1242 CPP="${CC-cc} -nologo -E"
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1250 { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1252 if test -z "$ac_err"; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1266 ac_cv_prog_CPP="$CPP"
1268 CPP="$ac_cv_prog_CPP"
1270 ac_cv_prog_CPP="$CPP"
1272 echo "$ac_t""$CPP" 1>&6
1274 if test $ac_cv_prog_gcc = yes; then
1275 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1276 echo "configure:1277: checking whether ${CC-cc} needs -traditional" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 ac_pattern="Autoconf.*'x'"
1281 cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1288 egrep "$ac_pattern" >/dev/null 2>&1; then
1290 ac_cv_prog_gcc_traditional=yes
1293 ac_cv_prog_gcc_traditional=no
1298 if test $ac_cv_prog_gcc_traditional = no; then
1299 cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1306 egrep "$ac_pattern" >/dev/null 2>&1; then
1308 ac_cv_prog_gcc_traditional=yes
1315 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1316 if test $ac_cv_prog_gcc_traditional = yes; then
1317 CC="$CC -traditional"
1323 cat >> confdefs.h <<\EOF
1329 # Find a good install program. We prefer a C program (faster),
1330 # so one script is as good as another. But avoid the broken or
1331 # incompatible versions:
1332 # SysV /etc/install, /usr/sbin/install
1333 # SunOS /usr/etc/install
1334 # IRIX /sbin/install
1336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1339 # ./install, which can be erroneously created by make from ./install.sh.
1340 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1341 echo "configure:1342: checking for a BSD compatible install" >&5
1342 if test -z "$INSTALL"; then
1343 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1347 for ac_dir in $PATH; do
1348 # Account for people who put trailing slashes in PATH elements.
1350 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1352 # OSF1 and SCO ODT 3.0 have their own names for install.
1353 # Don't use installbsd from OSF since it installs stuff as root
1355 for ac_prog in ginstall scoinst install; do
1356 if test -f $ac_dir/$ac_prog; then
1357 if test $ac_prog = install &&
1358 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1359 # AIX install. It has an incompatible calling convention.
1362 ac_cv_path_install="$ac_dir/$ac_prog -c"
1373 if test "${ac_cv_path_install+set}" = set; then
1374 INSTALL="$ac_cv_path_install"
1376 # As a last resort, use the slow shell script. We don't cache a
1377 # path for INSTALL within a source directory, because that will
1378 # break other packages using the cache if that directory is
1379 # removed, or if the path is relative.
1380 INSTALL="$ac_install_sh"
1383 echo "$ac_t""$INSTALL" 1>&6
1385 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1386 # It thinks the first close brace ends the variable substitution.
1387 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1389 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1391 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1393 # Extract the first word of "ranlib", so it can be a program name with args.
1394 set dummy ranlib; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 if test -n "$RANLIB"; then
1401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1405 for ac_dir in $ac_dummy; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_prog_RANLIB="ranlib"
1413 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1416 RANLIB="$ac_cv_prog_RANLIB"
1417 if test -n "$RANLIB"; then
1418 echo "$ac_t""$RANLIB" 1>&6
1420 echo "$ac_t""no" 1>&6
1423 # Extract the first word of "mv", so it can be a program name with args.
1424 set dummy mv; ac_word=$2
1425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1426 echo "configure:1427: checking for $ac_word" >&5
1427 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1432 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1435 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1440 for ac_dir in $ac_dummy; do
1441 test -z "$ac_dir" && ac_dir=.
1442 if test -f $ac_dir/$ac_word; then
1443 ac_cv_path_MV="$ac_dir/$ac_word"
1448 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1453 if test -n "$MV"; then
1454 echo "$ac_t""$MV" 1>&6
1456 echo "$ac_t""no" 1>&6
1459 # Extract the first word of "rm", so it can be a program name with args.
1460 set dummy rm; ac_word=$2
1461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1462 echo "configure:1463: checking for $ac_word" >&5
1463 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1468 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1471 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1476 for ac_dir in $ac_dummy; do
1477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_path_RM="$ac_dir/$ac_word"
1484 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1489 if test -n "$RM"; then
1490 echo "$ac_t""$RM" 1>&6
1492 echo "$ac_t""no" 1>&6
1495 # Extract the first word of "cp", so it can be a program name with args.
1496 set dummy cp; ac_word=$2
1497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1498 echo "configure:1499: checking for $ac_word" >&5
1499 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1504 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1507 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1512 for ac_dir in $ac_dummy; do
1513 test -z "$ac_dir" && ac_dir=.
1514 if test -f $ac_dir/$ac_word; then
1515 ac_cv_path_CP="$ac_dir/$ac_word"
1520 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1525 if test -n "$CP"; then
1526 echo "$ac_t""$CP" 1>&6
1528 echo "$ac_t""no" 1>&6
1531 # Extract the first word of "sed", so it can be a program name with args.
1532 set dummy sed; ac_word=$2
1533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1534 echo "configure:1535: checking for $ac_word" >&5
1535 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1540 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1543 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1548 for ac_dir in $ac_dummy; do
1549 test -z "$ac_dir" && ac_dir=.
1550 if test -f $ac_dir/$ac_word; then
1551 ac_cv_path_SED="$ac_dir/$ac_word"
1556 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1560 SED="$ac_cv_path_SED"
1561 if test -n "$SED"; then
1562 echo "$ac_t""$SED" 1>&6
1564 echo "$ac_t""no" 1>&6
1567 # Extract the first word of "awk", so it can be a program name with args.
1568 set dummy awk; ac_word=$2
1569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1570 echo "configure:1571: checking for $ac_word" >&5
1571 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1576 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1579 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1584 for ac_dir in $ac_dummy; do
1585 test -z "$ac_dir" && ac_dir=.
1586 if test -f $ac_dir/$ac_word; then
1587 ac_cv_path_AWK="$ac_dir/$ac_word"
1592 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1596 AWK="$ac_cv_path_AWK"
1597 if test -n "$AWK"; then
1598 echo "$ac_t""$AWK" 1>&6
1600 echo "$ac_t""no" 1>&6
1603 # Extract the first word of "echo", so it can be a program name with args.
1604 set dummy echo; ac_word=$2
1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_word" >&5
1607 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1612 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1615 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1620 for ac_dir in $ac_dummy; do
1621 test -z "$ac_dir" && ac_dir=.
1622 if test -f $ac_dir/$ac_word; then
1623 ac_cv_path_ECHO="$ac_dir/$ac_word"
1628 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1632 ECHO="$ac_cv_path_ECHO"
1633 if test -n "$ECHO"; then
1634 echo "$ac_t""$ECHO" 1>&6
1636 echo "$ac_t""no" 1>&6
1639 # Extract the first word of "cmp", so it can be a program name with args.
1640 set dummy cmp; ac_word=$2
1641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1642 echo "configure:1643: checking for $ac_word" >&5
1643 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1648 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1651 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1656 for ac_dir in $ac_dummy; do
1657 test -z "$ac_dir" && ac_dir=.
1658 if test -f $ac_dir/$ac_word; then
1659 ac_cv_path_CMP="$ac_dir/$ac_word"
1664 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1668 CMP="$ac_cv_path_CMP"
1669 if test -n "$CMP"; then
1670 echo "$ac_t""$CMP" 1>&6
1672 echo "$ac_t""no" 1>&6
1675 # Extract the first word of "tbl", so it can be a program name with args.
1676 set dummy tbl; ac_word=$2
1677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_word" >&5
1679 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1684 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1687 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1692 for ac_dir in $ac_dummy; do
1693 test -z "$ac_dir" && ac_dir=.
1694 if test -f $ac_dir/$ac_word; then
1695 ac_cv_path_TBL="$ac_dir/$ac_word"
1700 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1704 TBL="$ac_cv_path_TBL"
1705 if test -n "$TBL"; then
1706 echo "$ac_t""$TBL" 1>&6
1708 echo "$ac_t""no" 1>&6
1711 # Extract the first word of "ar", so it can be a program name with args.
1712 set dummy ar; ac_word=$2
1713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1714 echo "configure:1715: checking for $ac_word" >&5
1715 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1720 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1723 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1728 for ac_dir in $ac_dummy; do
1729 test -z "$ac_dir" && ac_dir=.
1730 if test -f $ac_dir/$ac_word; then
1731 ac_cv_path_AR="$ac_dir/$ac_word"
1736 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1741 if test -n "$AR"; then
1742 echo "$ac_t""$AR" 1>&6
1744 echo "$ac_t""no" 1>&6
1747 # Extract the first word of "ranlib", so it can be a program name with args.
1748 set dummy ranlib; ac_word=$2
1749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1750 echo "configure:1751: checking for $ac_word" >&5
1751 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1756 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1759 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1764 for ac_dir in $ac_dummy; do
1765 test -z "$ac_dir" && ac_dir=.
1766 if test -f $ac_dir/$ac_word; then
1767 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1772 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1776 RANLIB="$ac_cv_path_RANLIB"
1777 if test -n "$RANLIB"; then
1778 echo "$ac_t""$RANLIB" 1>&6
1780 echo "$ac_t""no" 1>&6
1783 # Extract the first word of "openssl", so it can be a program name with args.
1784 set dummy openssl; ac_word=$2
1785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1786 echo "configure:1787: checking for $ac_word" >&5
1787 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1792 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1795 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1800 for ac_dir in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1808 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1812 OPENSSL="$ac_cv_path_OPENSSL"
1813 if test -n "$OPENSSL"; then
1814 echo "$ac_t""$OPENSSL" 1>&6
1816 echo "$ac_t""no" 1>&6
1820 test -n "$ARFLAG" || ARFLAGS="cr"
1833 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1834 echo "configure:1835: checking for Operating System" >&5
1835 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1836 echo "configure:1837: checking for Cygwin environment" >&5
1837 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1847 #define __CYGWIN__ __CYGWIN32__
1852 if { (eval echo configure:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1865 echo "$ac_t""$ac_cv_cygwin" 1>&6
1867 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1868 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1874 HAVE_SUN_OS_FALSE='#'
1876 HAVE_SUN_OS_TRUE='#'
1879 cat >> confdefs.h <<\EOF
1880 #define HAVE_SUN_OS 1
1888 HAVE_SUN_OS_FALSE='#'
1890 HAVE_SUN_OS_TRUE='#'
1895 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1901 HAVE_OSF1_OS_FALSE='#'
1903 HAVE_OSF1_OS_TRUE='#'
1906 cat >> confdefs.h <<\EOF
1907 #define HAVE_OSF1_OS 1
1915 HAVE_OSF1_OS_FALSE='#'
1917 HAVE_OSF1_OS_TRUE='#'
1922 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1928 HAVE_AIX_OS_FALSE='#'
1930 HAVE_AIX_OS_TRUE='#'
1933 cat >> confdefs.h <<\EOF
1934 #define HAVE_AIX_OS 1
1942 HAVE_AIX_OS_FALSE='#'
1944 HAVE_AIX_OS_TRUE='#'
1949 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1955 HAVE_HPUX_OS_FALSE='#'
1957 HAVE_HPUX_OS_TRUE='#'
1960 cat >> confdefs.h <<\EOF
1961 #define HAVE_HPUX_OS 1
1969 HAVE_HPUX_OS_FALSE='#'
1971 HAVE_HPUX_OS_TRUE='#'
1976 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1982 HAVE_LINUX_OS_FALSE='#'
1984 HAVE_LINUX_OS_TRUE='#'
1985 HAVE_LINUX_OS_FALSE=
1987 cat >> confdefs.h <<\EOF
1988 #define HAVE_LINUX_OS 1
1996 HAVE_LINUX_OS_FALSE='#'
1998 HAVE_LINUX_OS_TRUE='#'
1999 HAVE_LINUX_OS_FALSE=
2003 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2008 HAVE_FREEBSD_OS_TRUE=
2009 HAVE_FREEBSD_OS_FALSE='#'
2011 HAVE_FREEBSD_OS_TRUE='#'
2012 HAVE_FREEBSD_OS_FALSE=
2014 cat >> confdefs.h <<\EOF
2015 #define HAVE_FREEBSD_OS 1
2022 HAVE_FREEBSD_OS_TRUE=
2023 HAVE_FREEBSD_OS_FALSE='#'
2025 HAVE_FREEBSD_OS_TRUE='#'
2026 HAVE_FREEBSD_OS_FALSE=
2030 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2035 HAVE_NETBSD_OS_TRUE=
2036 HAVE_NETBSD_OS_FALSE='#'
2038 HAVE_NETBSD_OS_TRUE='#'
2039 HAVE_NETBSD_OS_FALSE=
2041 cat >> confdefs.h <<\EOF
2042 #define HAVE_NETBSD_OS 1
2049 HAVE_NETBSD_OS_TRUE=
2050 HAVE_NETBSD_OS_FALSE='#'
2052 HAVE_NETBSD_OS_TRUE='#'
2053 HAVE_NETBSD_OS_FALSE=
2057 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2062 HAVE_OPENBSD_OS_TRUE=
2063 HAVE_OPENBSD_OS_FALSE='#'
2065 HAVE_OPENBSD_OS_TRUE='#'
2066 HAVE_OPENBSD_OS_FALSE=
2068 cat >> confdefs.h <<\EOF
2069 #define HAVE_OPENBSD_OS 1
2076 HAVE_OPENBSD_OS_TRUE=
2077 HAVE_OPENBSD_OS_FALSE='#'
2079 HAVE_OPENBSD_OS_TRUE='#'
2080 HAVE_OPENBSD_OS_FALSE=
2084 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2090 HAVE_BSDI_OS_FALSE='#'
2092 HAVE_BSDI_OS_TRUE='#'
2095 cat >> confdefs.h <<\EOF
2096 #define HAVE_BSDI_OS 1
2104 HAVE_BSDI_OS_FALSE='#'
2106 HAVE_BSDI_OS_TRUE='#'
2111 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2117 HAVE_SGI_OS_FALSE='#'
2119 HAVE_SGI_OS_TRUE='#'
2122 cat >> confdefs.h <<\EOF
2123 #define HAVE_SGI_OS 1
2131 HAVE_SGI_OS_FALSE='#'
2133 HAVE_SGI_OS_TRUE='#'
2137 echo "$ac_t""" "" 1>&6
2140 # -----------------------------------------------------------
2141 # ----------------------------------------------------------
2142 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2143 echo "configure:2144: checking for Operating System Distribution" >&5
2144 if test "x$DISTNAME" != "x"
2146 echo "distname set to $DISTNAME"
2147 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2168 elif test -f /etc/SuSE-release
2171 elif test -d /etc/SuSEconfig
2174 elif test -d /usr/src/OpenLinux
2177 elif test -f /etc/redhat-release
2180 elif test -f /etc/debian_version
2183 elif test -f /etc/slackware-version
2186 elif test "$ac_cv_cygwin" = yes
2189 cat >> confdefs.h <<\EOF
2190 #define HAVE_CYGWIN 1
2196 echo "$ac_t""" "" 1>&6
2199 # -----------------------------------------------------------
2200 # ----------------------------------------------------------
2205 INSIDE_GNOME_COMMON_TRUE=
2206 INSIDE_GNOME_COMMON_FALSE='#'
2208 INSIDE_GNOME_COMMON_TRUE='#'
2209 INSIDE_GNOME_COMMON_FALSE=
2212 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2214 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2217 # ------------------------------------------------------------------
2218 # If the user has not set --prefix, we set our default to nothing.
2219 # In this case, if the user has not set --sysconfdir, we set it
2220 # to the package default of /etc/bacula. If either --prefix or
2221 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2222 # ------------------------------------------------------------------
2223 if test x${prefix} = xNONE ; then
2224 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2225 sysconfdir=/etc/bacula
2229 sysconfdir=`eval echo ${sysconfdir}`
2231 # -------------------------------------------------------------------------
2232 # If the user has not set --exec-prefix, we default to ${prefix}
2233 # -------------------------------------------------------------------------
2234 if test x${exec_prefix} = xNONE ; then
2235 exec_prefix=${prefix}
2238 # ------------------------------------------------------------------
2239 # If the user has not set --sbindir, we set our default as /sbin
2240 # ------------------------------------------------------------------
2241 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2242 sbindir=${exec_prefix}/sbin
2244 sbindir=`eval echo ${sbindir}`
2246 # ------------------------------------------------------------------
2247 # All list of languages for which a translation exist. Each
2248 # language is separated by a space.
2249 # ------------------------------------------------------------------
2252 for ac_prog in msgfmt
2254 # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy $ac_prog; ac_word=$2
2256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_word" >&5
2258 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2263 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2266 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2271 for ac_dir in $ac_dummy; do
2272 test -z "$ac_dir" && ac_dir=.
2273 if test -f $ac_dir/$ac_word; then
2274 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2282 MSGFMT="$ac_cv_path_MSGFMT"
2283 if test -n "$MSGFMT"; then
2284 echo "$ac_t""$MSGFMT" 1>&6
2286 echo "$ac_t""no" 1>&6
2289 test -n "$MSGFMT" && break
2291 test -n "$MSGFMT" || MSGFMT="no"
2293 if test "$MSGFMT" = "no"
2295 echo 'msgfmt program not found, disabling NLS !'
2297 USE_INCLUDED_LIBINTL=no
2305 support_smartalloc=yes
2310 # Check whether --enable-everything or --disable-everything was given.
2311 if test "${enable_everything+set}" = set; then
2312 enableval="$enable_everything"
2313 if test x$enableval = xyes; then
2314 support_smartalloc=yes
2319 # -------------------------------------------
2320 # gnome (default off)
2321 # -------------------------------------------
2323 # Check whether --enable-gnome or --disable-gnome was given.
2324 if test "${enable_gnome+set}" = set; then
2325 enableval="$enable_gnome"
2326 if test x$enableval = xyes; then
2333 if test x$support_gnome = xyes; then
2344 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2345 if test "${with_gnome_includes+set}" = set; then
2346 withval="$with_gnome_includes"
2348 CFLAGS="$CFLAGS -I$withval"
2353 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2354 if test "${with_gnome_libs+set}" = set; then
2355 withval="$with_gnome_libs"
2357 LDFLAGS="$LDFLAGS -L$withval"
2358 gnome_prefix=$withval
2363 # Check whether --with-gnome or --without-gnome was given.
2364 if test "${with_gnome+set}" = set; then
2365 withval="$with_gnome"
2366 if test x$withval = xyes; then
2370 if test "x$withval" = xno; then
2374 LDFLAGS="$LDFLAGS -L$withval/lib"
2375 CFLAGS="$CFLAGS -I$withval/include"
2376 gnome_prefix=$withval/lib
2384 if test "x$want_gnome" = xyes; then
2386 # Extract the first word of "gnome-config", so it can be a program name with args.
2387 set dummy gnome-config; 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_GNOME_CONFIG'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 case "$GNOME_CONFIG" in
2395 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2398 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # 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_GNOME_CONFIG="$ac_dir/$ac_word"
2411 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2415 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2416 if test -n "$GNOME_CONFIG"; then
2417 echo "$ac_t""$GNOME_CONFIG" 1>&6
2419 echo "$ac_t""no" 1>&6
2422 if test "$GNOME_CONFIG" = "no"; then
2423 no_gnome_config="yes"
2425 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2426 echo "configure:2427: checking if $GNOME_CONFIG works" >&5
2427 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2428 echo "$ac_t""yes" 1>&6
2431 # Extract the first word of "orbit-config", so it can be a program name with args.
2432 set dummy orbit-config; ac_word=$2
2433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2434 echo "configure:2435: checking for $ac_word" >&5
2435 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 case "$ORBIT_CONFIG" in
2440 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2443 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2448 for ac_dir in $ac_dummy; do
2449 test -z "$ac_dir" && ac_dir=.
2450 if test -f $ac_dir/$ac_word; then
2451 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2456 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2460 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2461 if test -n "$ORBIT_CONFIG"; then
2462 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2464 echo "$ac_t""no" 1>&6
2467 # Extract the first word of "orbit-idl", so it can be a program name with args.
2468 set dummy orbit-idl; ac_word=$2
2469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_word" >&5
2471 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 case "$ORBIT_IDL" in
2476 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2479 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2484 for ac_dir in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir=.
2486 if test -f $ac_dir/$ac_word; then
2487 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2492 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2496 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2497 if test -n "$ORBIT_IDL"; then
2498 echo "$ac_t""$ORBIT_IDL" 1>&6
2500 echo "$ac_t""no" 1>&6
2503 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2504 echo "configure:2505: checking for working ORBit environment" >&5
2505 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2509 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2510 gnome_cv_orbit_found=no
2512 gnome_cv_orbit_found=yes
2517 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2520 if test x$gnome_cv_orbit_found = xyes; then
2522 HAVE_ORBIT_FALSE='#'
2527 if test x$gnome_cv_orbit_found = xyes; then
2529 ORBIT_CFLAGS=`orbit-config --cflags client server`
2530 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2534 if test xfail = xfailure; then
2535 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2539 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2540 echo "configure:2541: checking for gnorba libraries" >&5
2541 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2545 gnome_cv_gnorba_found=no
2546 if test x$gnome_cv_orbit_found = xyes; then
2547 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2548 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2549 if test -n "$GNORBA_LIBS"; then
2550 gnome_cv_gnorba_found=yes
2556 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2559 if test x$gnome_cv_gnorba_found = xyes; then
2561 HAVE_GNORBA_FALSE='#'
2563 HAVE_GNORBA_TRUE='#'
2566 if test x$gnome_cv_orbit_found = xyes; then
2568 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2569 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2573 if test xfail = xfailure; then
2574 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2578 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2579 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2580 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2581 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2582 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2583 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2584 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2587 echo "$ac_t""no" 1>&6
2588 no_gnome_config="yes"
2592 if test x$exec_prefix = xNONE; then
2593 if test x$prefix = xNONE; then
2594 gnome_prefix=$ac_default_prefix/lib
2596 gnome_prefix=$prefix/lib
2599 gnome_prefix=`eval echo \`echo $libdir\``
2602 if test "$no_gnome_config" = "yes"; then
2603 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2604 echo "configure:2605: checking for gnomeConf.sh file in $gnome_prefix" >&5
2605 if test -f $gnome_prefix/gnomeConf.sh; then
2606 echo "$ac_t""found" 1>&6
2607 echo "loading gnome configuration from" \
2608 "$gnome_prefix/gnomeConf.sh"
2609 . $gnome_prefix/gnomeConf.sh
2612 echo "$ac_t""not found" 1>&6
2613 if test xfail = xfail; then
2614 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2623 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2624 echo "configure:2625: checking extra library \"$i\"" >&5
2628 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2629 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2632 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2633 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2636 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2637 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2639 echo "$ac_t""unknown library" 1>&6
2641 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2642 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2647 GNOME_DIR=src/gnome-console
2652 # -------------------------------------------
2653 # smartalloc (default off)
2654 # -------------------------------------------
2655 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2656 if test "${enable_smartalloc+set}" = set; then
2657 enableval="$enable_smartalloc"
2658 if test x$enableval = xno; then
2659 support_smartalloc=no
2664 if test x$support_smartalloc = xyes; then
2665 cat >> confdefs.h <<\EOF
2666 #define SMARTALLOC 1
2673 # ---------------------------------------------------
2674 # Check for readline support/directory (default on)
2675 # ---------------------------------------------------
2676 support_readline=yes
2677 # this allows you to turn it completely off
2678 # Check whether --enable-readline or --disable-readline was given.
2679 if test "${enable_readline+set}" = set; then
2680 enableval="$enable_readline"
2681 if test x$enableval = xno; then
2689 if test x$support_readline = xyes; then
2690 # Check whether --with-readline or --without-readline was given.
2691 if test "${with_readline+set}" = set; then
2692 withval="$with_readline"
2694 case "$with_readline" in
2697 if test "$with_readline" != "yes"; then
2698 CONS_INC="-I$with_readline"
2699 CONS_LDFLAGS="-L$with_readline"
2701 with_readline="/usr/include/readline"
2703 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2705 echo "configure:2706: checking for $with_readline/readline.h" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 cat > conftest.$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2712 #include <$with_readline/readline.h>
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2719 eval "ac_cv_header_$ac_safe=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 eval "ac_cv_header_$ac_safe=no"
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 echo "$ac_t""yes" 1>&6
2732 cat >> confdefs.h <<\EOF
2733 #define HAVE_READLINE 1
2736 CONS_LIBS="-lreadline -ltermcap"
2740 echo "$ac_t""no" 1>&6
2741 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2751 # check for standard readline library
2752 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2753 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2754 echo "configure:2755: checking for /usr/include/readline/readline.h" >&5
2755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2758 cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2761 #include </usr/include/readline/readline.h>
2763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2764 { (eval echo configure:2765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2766 if test -z "$ac_err"; then
2768 eval "ac_cv_header_$ac_safe=yes"
2771 echo "configure: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2774 eval "ac_cv_header_$ac_safe=no"
2778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2779 echo "$ac_t""yes" 1>&6
2780 echo "$ac_t""yes" 1>&6
2781 cat >> confdefs.h <<\EOF
2782 #define HAVE_READLINE 1
2786 CONS_INC="-I/usr/include/readline"
2787 CONS_LIBS="-lreadline -ltermcap"
2790 echo "$ac_t""no" 1>&6
2792 # Did not find starndard library, so user our own
2793 echo "$ac_t""yes" 1>&6
2794 cat >> confdefs.h <<\EOF
2795 #define HAVE_READLINE 1
2799 CONS_INC="-I${TOP_DIR}/depkgs"
2800 CONS_LIBS="-lreadline -lhistory -ltermcap"
2801 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2802 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
2816 # Minimal stuff for readline Makefile configuration
2820 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2821 echo "configure:2822: checking whether stat file-mode macros are broken" >&5
2822 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2828 #include <sys/types.h>
2829 #include <sys/stat.h>
2831 #if defined(S_ISBLK) && defined(S_IFDIR)
2832 # if S_ISBLK (S_IFDIR)
2837 #if defined(S_ISBLK) && defined(S_IFCHR)
2838 # if S_ISBLK (S_IFCHR)
2843 #if defined(S_ISLNK) && defined(S_IFREG)
2844 # if S_ISLNK (S_IFREG)
2849 #if defined(S_ISSOCK) && defined(S_IFREG)
2850 # if S_ISSOCK (S_IFREG)
2856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857 egrep "You lose" >/dev/null 2>&1; then
2859 ac_cv_header_stat_broken=yes
2862 ac_cv_header_stat_broken=no
2868 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2869 if test $ac_cv_header_stat_broken = yes; then
2870 cat >> confdefs.h <<\EOF
2871 #define STAT_MACROS_BROKEN 1
2877 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2880 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2881 echo "configure:2882: checking for $ac_hdr that defines DIR" >&5
2882 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2888 #include <sys/types.h>
2894 if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2896 eval "ac_cv_header_dirent_$ac_safe=yes"
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2901 eval "ac_cv_header_dirent_$ac_safe=no"
2905 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2908 cat >> confdefs.h <<EOF
2909 #define $ac_tr_hdr 1
2911 ac_header_dirent=$ac_hdr; break
2913 echo "$ac_t""no" 1>&6
2916 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2917 if test $ac_header_dirent = dirent.h; then
2918 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2919 echo "configure:2920: checking for opendir in -ldir" >&5
2920 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 ac_save_LIBS="$LIBS"
2926 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2929 /* Override any gcc2 internal prototype to avoid an error. */
2930 /* We use char because int might match the return type of a gcc2
2931 builtin and then its argument prototype would still apply. */
2938 if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2940 eval "ac_cv_lib_$ac_lib_var=yes"
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2945 eval "ac_cv_lib_$ac_lib_var=no"
2948 LIBS="$ac_save_LIBS"
2951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2952 echo "$ac_t""yes" 1>&6
2955 echo "$ac_t""no" 1>&6
2959 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2960 echo "configure:2961: checking for opendir in -lx" >&5
2961 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 ac_save_LIBS="$LIBS"
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 /* Override any gcc2 internal prototype to avoid an error. */
2971 /* We use char because int might match the return type of a gcc2
2972 builtin and then its argument prototype would still apply. */
2979 if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2981 eval "ac_cv_lib_$ac_lib_var=yes"
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2986 eval "ac_cv_lib_$ac_lib_var=no"
2989 LIBS="$ac_save_LIBS"
2992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2996 echo "$ac_t""no" 1>&6
3002 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3005 echo "configure:3006: checking for $ac_func" >&5
3006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 /* System header to define __stub macros and hopefully few prototypes,
3013 which can conflict with char $ac_func(); below. */
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 /* We use char because int might match the return type of a gcc2
3017 builtin and then its argument prototype would still apply. */
3022 /* The GNU C library defines this for functions which it implements
3023 to always fail with ENOSYS. Some functions are actually named
3024 something starting with __ and the normal name is an alias. */
3025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3033 if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3035 eval "ac_cv_func_$ac_func=yes"
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3040 eval "ac_cv_func_$ac_func=no"
3045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3048 cat >> confdefs.h <<EOF
3049 #define $ac_tr_func 1
3053 echo "$ac_t""no" 1>&6
3058 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3059 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3060 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3062 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3063 echo "configure:3064: checking for getopt_long" >&5
3064 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 /* System header to define __stub macros and hopefully few prototypes,
3071 which can conflict with char getopt_long(); below. */
3073 /* Override any gcc2 internal prototype to avoid an error. */
3074 /* We use char because int might match the return type of a gcc2
3075 builtin and then its argument prototype would still apply. */
3080 /* The GNU C library defines this for functions which it implements
3081 to always fail with ENOSYS. Some functions are actually named
3082 something starting with __ and the normal name is an alias. */
3083 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3093 eval "ac_cv_func_getopt_long=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3098 eval "ac_cv_func_getopt_long=no"
3103 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3104 echo "$ac_t""yes" 1>&6
3105 cat >> confdefs.h <<\EOF
3106 #define HAVE_GETOPT_LONG 1
3110 echo "$ac_t""no" 1>&6
3115 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3116 echo "configure:3117: checking for working strcoll" >&5
3117 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 if test "$cross_compiling" = yes; then
3121 ac_cv_func_strcoll_works=no
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3129 exit (strcoll ("abc", "def") >= 0 ||
3130 strcoll ("ABC", "DEF") >= 0 ||
3131 strcoll ("123", "456") >= 0);
3134 if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3136 ac_cv_func_strcoll_works=yes
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3141 ac_cv_func_strcoll_works=no
3148 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3149 if test $ac_cv_func_strcoll_works = yes; then
3150 cat >> confdefs.h <<\EOF
3151 #define HAVE_STRCOLL 1
3157 for ac_hdr in varargs.h \
3158 sys/ptem.h sys/pte.h sys/stream.h
3160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3162 echo "configure:3163: checking for $ac_hdr" >&5
3163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3172 { (eval echo configure:3173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3174 if test -z "$ac_err"; then
3176 eval "ac_cv_header_$ac_safe=yes"
3179 echo "configure: failed program was:" >&5
3180 cat conftest.$ac_ext >&5
3182 eval "ac_cv_header_$ac_safe=no"
3186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3187 echo "$ac_t""yes" 1>&6
3188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3189 cat >> confdefs.h <<EOF
3190 #define $ac_tr_hdr 1
3194 echo "$ac_t""no" 1>&6
3199 # End of readline stuff
3200 # -----------------------------------------------------------------------
3203 # ---------------------------------------------------
3204 # Check for GMP support/directory
3205 # ---------------------------------------------------
3208 # Check whether --with-gmp or --without-gmp was given.
3209 if test "${with_gmp+set}" = set; then
3215 if test "$with_gmp" != "yes"; then
3216 GMP_INC="-I$with_gmp"
3218 GMP_LDFLAGS="-L$with_gmp"
3220 with_gmp="/usr/include"
3222 ac_safe=`echo "$with_gmp/gmp.h" | sed 'y%./+-%__p_%'`
3223 echo $ac_n "checking for $with_gmp/gmp.h""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $with_gmp/gmp.h" >&5
3225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 #include <$with_gmp/gmp.h>
3233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3234 { (eval echo configure:3235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3236 if test -z "$ac_err"; then
3238 eval "ac_cv_header_$ac_safe=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3244 eval "ac_cv_header_$ac_safe=no"
3248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3249 echo "$ac_t""yes" 1>&6
3250 echo "$ac_t""yes" 1>&6
3251 cat >> confdefs.h <<\EOF
3259 echo "$ac_t""no" 1>&6
3260 { echo "configure: error: *** gmp library missing" 1>&2; exit 1; }
3270 # check for standard gmp library
3271 ac_safe=`echo "/usr/include/gmp.h" | sed 'y%./+-%__p_%'`
3272 echo $ac_n "checking for /usr/include/gmp.h""... $ac_c" 1>&6
3273 echo "configure:3274: checking for /usr/include/gmp.h" >&5
3274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3280 #include </usr/include/gmp.h>
3282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3283 { (eval echo configure:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3285 if test -z "$ac_err"; then
3287 eval "ac_cv_header_$ac_safe=yes"
3290 echo "configure: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3293 eval "ac_cv_header_$ac_safe=no"
3297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3298 echo "$ac_t""yes" 1>&6
3299 echo "$ac_t""yes" 1>&6
3300 cat >> confdefs.h <<\EOF
3309 echo "$ac_t""no" 1>&6
3311 # Did not find standard library, so use our own
3312 echo "$ac_t""yes" 1>&6
3313 cat >> confdefs.h <<\EOF
3319 GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3321 GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3322 GMP_SRC="${TOP_DIR}/depkgs/gmp"
3336 # -----------------------------------------------------------------------
3339 # ---------------------------------------------------
3340 # Check for CWEB support/directory
3341 # ---------------------------------------------------
3345 # Check whether --with-cweb or --without-cweb was given.
3346 if test "${with_cweb+set}" = set; then
3347 withval="$with_cweb"
3349 case "$with_cweb" in
3352 if test "$with_cweb" != "yes"; then
3353 CWEB_INC="-I$with_cweb"
3355 CWEB_LDFLAGS="-L$with_cweb"
3357 with_cweb="/usr/include"
3359 ac_safe=`echo "$with_cweb/cweb.h" | sed 'y%./+-%__p_%'`
3360 echo $ac_n "checking for $with_cweb/cweb.h""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $with_cweb/cweb.h" >&5
3362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <$with_cweb/cweb.h>
3370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3371 { (eval echo configure:3372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3373 if test -z "$ac_err"; then
3375 eval "ac_cv_header_$ac_safe=yes"
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3381 eval "ac_cv_header_$ac_safe=no"
3385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 echo "$ac_t""yes" 1>&6
3388 cat >> confdefs.h <<\EOF
3396 echo "$ac_t""no" 1>&6
3397 { echo "configure: error: *** cweb library missing" 1>&2; exit 1; }
3407 # check for standard cweb library
3408 ac_safe=`echo "/usr/include/cweb.h" | sed 'y%./+-%__p_%'`
3409 echo $ac_n "checking for /usr/include/cweb.h""... $ac_c" 1>&6
3410 echo "configure:3411: checking for /usr/include/cweb.h" >&5
3411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include </usr/include/cweb.h>
3419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3420 { (eval echo configure:3421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3422 if test -z "$ac_err"; then
3424 eval "ac_cv_header_$ac_safe=yes"
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 eval "ac_cv_header_$ac_safe=no"
3434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3435 echo "$ac_t""yes" 1>&6
3436 echo "$ac_t""yes" 1>&6
3437 cat >> confdefs.h <<\EOF
3446 echo "$ac_t""no" 1>&6
3448 # Did not find starndard library, so use our own
3449 echo "$ac_t""yes" 1>&6
3450 cat >> confdefs.h <<\EOF
3456 CWEB=${TOP_DIR}/depkgs/cweb
3457 CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3459 CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3460 CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3475 # -----------------------------------------------------------------------
3479 # -----------------------------------------------------------
3480 # Check whether user wants TCP wrappers support (default off)
3481 # -----------------------------------------------------------
3483 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3484 if test "${with_tcp_wrappers+set}" = set; then
3485 withval="$with_tcp_wrappers"
3487 if test "x$withval" != "xno" ; then
3489 LIBS="$LIBS -lwrap -lnsl"
3490 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3491 echo "configure:3492: checking for libwrap" >&5
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3496 int deny_severity = 0;
3497 int allow_severity = 0;
3498 struct request_info *req;
3503 if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3506 echo "$ac_t""yes" 1>&6
3507 cat >> confdefs.h <<\EOF
3508 #define HAVE_LIBWRAP 1
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3517 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3527 # ------------------------------------------
3528 # Where to place working dir
3529 # ------------------------------------------
3530 working_dir=`eval echo ${sysconfdir}/working`
3531 # Check whether --with-working-dir or --without-working-dir was given.
3532 if test "${with_working_dir+set}" = set; then
3533 withval="$with_working_dir"
3535 if test "x$withval" != "xno" ; then
3536 working_dir=$withval
3545 # ------------------------------------------
3546 # Where to send dump email
3547 # ------------------------------------------
3549 # Check whether --with-dump-email or --without-dump-email was given.
3550 if test "${with_dump_email+set}" = set; then
3551 withval="$with_dump_email"
3553 if test "x$withval" != "xno" ; then
3563 # ------------------------------------------
3564 # Where to send job email
3565 # ------------------------------------------
3567 # Check whether --with-job-email or --without-job-email was given.
3568 if test "${with_job_email+set}" = set; then
3569 withval="$with_job_email"
3571 if test "x$withval" != "xno" ; then
3581 # ------------------------------------------
3582 # Where to find smtp host
3583 # ------------------------------------------
3585 # Check whether --with-smtp_host or --without-smtp_host was given.
3586 if test "${with_smtp_host+set}" = set; then
3587 withval="$with_smtp_host"
3589 if test "x$withval" != "xno" ; then
3600 # ------------------------------------
3601 # Where to place pid files
3602 # ------------------------------------
3604 # Check whether --with-pid-dir or --without-pid-dir was given.
3605 if test "${with_pid_dir+set}" = set; then
3606 withval="$with_pid_dir"
3608 if test "x$withval" != "xno" ; then
3616 # make sure the pid directory exists
3617 if test ! -d $piddir ; then
3618 piddir=`eval echo ${sysconfdir}`
3620 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3624 cat >> confdefs.h <<EOF
3625 #define _PATH_BACULA_PIDDIR "$piddir"
3631 # ------------------------------------
3632 # Where to place subsys "lock file"
3633 # ------------------------------------
3634 subsysdir=/var/run/subsys
3635 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3636 if test "${with_subsys_dir+set}" = set; then
3637 withval="$with_subsys_dir"
3639 if test "x$withval" != "xno" ; then
3647 # make sure the pid directory exists
3648 if test ! -d $subsysdir ; then
3649 subsysdir=`eval echo ${sysconfdir}`
3651 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3659 # ------------------------------------
3660 # Where to start assigning ports
3661 # ------------------------------------
3663 # Check whether --with-baseport or --without-baseport was given.
3664 if test "${with_baseport+set}" = set; then
3665 withval="$with_baseport"
3667 if test "x$withval" != "xno" ; then
3676 dir_port=`expr $baseport`
3677 fd_port=`expr $baseport + 1`
3678 sd_port=`expr $fd_port + 1`
3685 # ------------------------------------------
3686 # Generate passwords
3687 # ------------------------------------------
3689 # Check whether --with-dir-password or --without-dir-password was given.
3690 if test "${with_dir_password+set}" = set; then
3691 withval="$with_dir_password"
3693 if test "x$withval" != "xno" ; then
3694 dir_password=$withval
3701 if test "x$dir_password" = "x" ; then
3702 if test "x$OPENSSL" = "xnone" ; then
3703 key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3705 key=`openssl rand -base64 33`
3711 # Check whether --with-fd-password or --without-fd-password was given.
3712 if test "${with_fd_password+set}" = set; then
3713 withval="$with_fd_password"
3715 if test "x$withval" != "xno" ; then
3716 fd_password=$withval
3723 if test "x$fd_password" = "x" ; then
3724 if test "x$OPENSSL" = "xnone" ; then
3725 key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3727 key=`openssl rand -base64 33`
3733 # Check whether --with-sd-password or --without-sd-password was given.
3734 if test "${with_sd_password+set}" = set; then
3735 withval="$with_sd_password"
3737 if test "x$withval" != "xno" ; then
3738 sd_password=$withval
3745 if test "x$sd_password" = "x" ; then
3746 if test "x$OPENSSL" = "xnone" ; then
3747 key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3749 key=`openssl rand -base64 33`
3762 # ------------------------------------------------
3763 # Bacula check for various SQL database engines
3764 # ------------------------------------------------
3767 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3768 echo "configure:3769: checking for MySQL support" >&5
3769 # Check whether --with-mysql or --without-mysql was given.
3770 if test "${with_mysql+set}" = set; then
3771 withval="$with_mysql"
3773 if test "$withval" != "no"; then
3774 if test "$withval" = "yes"; then
3775 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3776 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3777 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3778 MYSQL_BINDIR=/usr/local/mysql/bin
3779 elif test -f /usr/include/mysql/mysql.h; then
3780 MYSQL_INCDIR=/usr/include/mysql
3781 MYSQL_LIBDIR=/usr/lib/mysql
3782 MYSQL_BINDIR=/usr/bin
3783 elif test -f /usr/include/mysql.h; then
3784 MYSQL_INCDIR=/usr/include
3785 MYSQL_LIBDIR=/usr/lib
3786 MYSQL_BINDIR=/usr/bin
3787 elif test -f /usr/local/include/mysql/mysql.h; then
3788 MYSQL_INCDIR=/usr/local/include/mysql
3789 MYSQL_LIBDIR=/usr/local/lib/mysql
3790 MYSQL_BINDIR=/usr/local/bin
3791 elif test -f /usr/local/include/mysql.h; then
3792 MYSQL_INCDIR=/usr/local/include
3793 MYSQL_LIBDIR=/usr/local/lib
3794 MYSQL_BINDIR=/usr/local/bin
3796 echo "$ac_t""no" 1>&6
3797 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3800 if test -f $withval/include/mysql/mysql.h; then
3801 MYSQL_INCDIR=$withval/include/mysql
3802 MYSQL_LIBDIR=$withval/lib/mysql
3803 MYSQL_BINDIR=$withval/bin
3804 elif test -f $withval/include/mysql.h; then
3805 MYSQL_INCDIR=$withval/include
3806 MYSQL_LIBDIR=$withval/lib
3807 MYSQL_BINDIR=$withval/bin
3809 echo "$ac_t""no" 1>&6
3810 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3813 SQL_INCLUDE=-I$MYSQL_INCDIR
3814 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient"
3815 SQL_BINDIR=$MYSQL_BINDIR
3817 cat >> confdefs.h <<\EOF
3818 #define HAVE_MYSQL 1
3821 echo "$ac_t""yes" 1>&6
3828 echo "$ac_t""no" 1>&6
3833 echo "$ac_t""no" 1>&6
3844 # ------------------------------------------------
3845 # Bacula check for various SQL database engines
3846 # ------------------------------------------------
3849 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3850 echo "configure:3851: checking for SQLite support" >&5
3851 # Check whether --with-sqlite or --without-sqlite was given.
3852 if test "${with_sqlite+set}" = set; then
3853 withval="$with_sqlite"
3855 if test "$withval" != "no"; then
3856 if test "$withval" = "yes"; then
3857 if test -f /usr/local/include/sqlite.h; then
3858 SQLITE_INCDIR=/usr/local/include
3859 SQLITE_LIBDIR=/usr/local/lib
3860 SQLITE_BINDIR=/usr/local/bin
3861 elif test -f /usr/include/sqlite.h; then
3862 SQLITE_INCDIR=/usr/include
3863 SQLITE_LIBDIR=/usr/lib
3864 SQLITE_BINDIR=/usr/bin
3866 echo "$ac_t""no" 1>&6
3867 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
3870 if test -f $withval/sqlite.h; then
3871 SQLITE_INCDIR=$withval
3872 SQLITE_LIBDIR=$withval
3873 SQLITE_BINDIR=$withval
3875 echo "$ac_t""no" 1>&6
3876 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
3879 SQL_INCLUDE=-I$SQLITE_INCDIR
3880 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
3881 SQL_BINDIR=$SQLITE_BINDIR
3883 cat >> confdefs.h <<\EOF
3884 #define HAVE_SQLITE 1
3887 echo "$ac_t""yes" 1>&6
3894 echo "$ac_t""no" 1>&6
3899 echo "$ac_t""no" 1>&6
3912 cat >> confdefs.h <<\EOF
3913 #define PROTOTYPES 1
3917 if test -z "$CFLAGS"; then
3918 if test -z "$CCOPTS"; then
3925 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3926 echo "configure:3927: checking for mingw32 environment" >&5
3927 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3928 echo $ac_n "(cached) $ac_c" 1>&6
3930 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3938 if { (eval echo configure:3939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3951 echo "$ac_t""$ac_cv_mingw32" 1>&6
3953 test "$ac_cv_mingw32" = yes && MINGW32=yes
3956 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3957 echo "configure:3958: checking for executable suffix" >&5
3958 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3961 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3965 echo 'int main () { return 0; }' > conftest.$ac_ext
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3968 for file in conftest.*; do
3970 *.c | *.o | *.obj) ;;
3971 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3975 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3978 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3983 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3984 echo "$ac_t""${ac_cv_exeext}" 1>&6
3990 # If we find X, set shell vars x_includes and x_libraries to the
3991 # paths, otherwise set no_x=yes.
3992 # Uses ac_ vars as temps to allow command line to override cache and checks.
3993 # --without-x overrides everything else, but does not touch the cache.
3994 echo $ac_n "checking for X""... $ac_c" 1>&6
3995 echo "configure:3996: checking for X" >&5
3997 # Check whether --with-x or --without-x was given.
3998 if test "${with_x+set}" = set; then
4003 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4004 if test "x$with_x" = xno; then
4005 # The user explicitly disabled X.
4008 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4009 # Both variables are already set.
4012 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4015 # One or both of the vars are not set, and there is no cached value.
4016 ac_x_includes=NO ac_x_libraries=NO
4018 if mkdir conftestdir; then
4020 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4021 cat > Imakefile <<'EOF'
4023 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4025 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4026 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4027 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4028 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4029 for ac_extension in a so sl; do
4030 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4031 test -f $ac_im_libdir/libX11.$ac_extension; then
4032 ac_im_usrlibdir=$ac_im_libdir; break
4035 # Screen out bogus values from the imake configuration. They are
4036 # bogus both because they are the default anyway, and because
4037 # using them would break gcc on systems where it needs fixed includes.
4038 case "$ac_im_incroot" in
4040 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4042 case "$ac_im_usrlibdir" in
4044 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4051 if test "$ac_x_includes" = NO; then
4052 # Guess where to find include files, by looking for this one X11 .h file.
4053 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4055 # First, try using that file with no special directory specified.
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4059 #include <$x_direct_test_include>
4061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4062 { (eval echo configure:4063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4064 if test -z "$ac_err"; then
4066 # We can compile using X headers with no special include directory.
4070 echo "configure: failed program was:" >&5
4071 cat conftest.$ac_ext >&5
4073 # Look for the header file in a standard set of common directories.
4074 # Check X11 before X11Rn because it is often a symlink to the current release.
4077 /usr/X11R6/include \
4078 /usr/X11R5/include \
4079 /usr/X11R4/include \
4082 /usr/include/X11R6 \
4083 /usr/include/X11R5 \
4084 /usr/include/X11R4 \
4086 /usr/local/X11/include \
4087 /usr/local/X11R6/include \
4088 /usr/local/X11R5/include \
4089 /usr/local/X11R4/include \
4091 /usr/local/include/X11 \
4092 /usr/local/include/X11R6 \
4093 /usr/local/include/X11R5 \
4094 /usr/local/include/X11R4 \
4098 /usr/XFree86/include/X11 \
4101 /usr/local/include \
4102 /usr/unsupported/include \
4103 /usr/athena/include \
4104 /usr/local/x11r5/include \
4105 /usr/lpp/Xamples/include \
4107 /usr/openwin/include \
4108 /usr/openwin/share/include \
4111 if test -r "$ac_dir/$x_direct_test_include"; then
4112 ac_x_includes=$ac_dir
4118 fi # $ac_x_includes = NO
4120 if test "$ac_x_libraries" = NO; then
4121 # Check for the libraries.
4123 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4124 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4126 # See if we find them without any special options.
4127 # Don't add to $LIBS permanently.
4128 ac_save_LIBS="$LIBS"
4129 LIBS="-l$x_direct_test_library $LIBS"
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4135 ${x_direct_test_function}()
4138 if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4140 LIBS="$ac_save_LIBS"
4141 # We can link X programs with no special library path.
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4147 LIBS="$ac_save_LIBS"
4148 # First see if replacing the include by lib works.
4149 # Check X11 before X11Rn because it is often a symlink to the current release.
4150 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4161 /usr/local/X11/lib \
4162 /usr/local/X11R6/lib \
4163 /usr/local/X11R5/lib \
4164 /usr/local/X11R4/lib \
4166 /usr/local/lib/X11 \
4167 /usr/local/lib/X11R6 \
4168 /usr/local/lib/X11R5 \
4169 /usr/local/lib/X11R4 \
4173 /usr/XFree86/lib/X11 \
4177 /usr/unsupported/lib \
4179 /usr/local/x11r5/lib \
4180 /usr/lpp/Xamples/lib \
4184 /usr/openwin/share/lib \
4187 for ac_extension in a so sl; do
4188 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4189 ac_x_libraries=$ac_dir
4196 fi # $ac_x_libraries = NO
4198 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4199 # Didn't find X anywhere. Cache the known absence of X.
4200 ac_cv_have_x="have_x=no"
4202 # Record where we found X for the cache.
4203 ac_cv_have_x="have_x=yes \
4204 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4208 eval "$ac_cv_have_x"
4211 if test "$have_x" != yes; then
4212 echo "$ac_t""$have_x" 1>&6
4215 # If each of the values was on the command line, it overrides each guess.
4216 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4217 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4218 # Update the cache value to reflect the command line values.
4219 ac_cv_have_x="have_x=yes \
4220 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4221 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4224 if test "$no_x" = yes; then
4225 # Not all programs may use this symbol, but it does not hurt to define it.
4226 cat >> confdefs.h <<\EOF
4227 #define X_DISPLAY_MISSING 1
4230 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4232 if test -n "$x_includes"; then
4233 X_CFLAGS="$X_CFLAGS -I$x_includes"
4236 # It would also be nice to do this for all -L options, not just this one.
4237 if test -n "$x_libraries"; then
4238 X_LIBS="$X_LIBS -L$x_libraries"
4239 # For Solaris; some versions of Sun CC require a space after -R and
4240 # others require no space. Words are not sufficient . . . .
4241 case "`(uname -sr) 2>/dev/null`" in
4243 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4244 echo "configure:4245: checking whether -R must be followed by a space" >&5
4245 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4246 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4264 if test $ac_R_nospace = yes; then
4265 echo "$ac_t""no" 1>&6
4266 X_LIBS="$X_LIBS -R$x_libraries"
4268 LIBS="$ac_xsave_LIBS -R $x_libraries"
4269 cat > conftest.$ac_ext <<EOF
4270 #line 4271 "configure"
4271 #include "confdefs.h"
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4287 if test $ac_R_space = yes; then
4288 echo "$ac_t""yes" 1>&6
4289 X_LIBS="$X_LIBS -R $x_libraries"
4291 echo "$ac_t""neither works" 1>&6
4294 LIBS="$ac_xsave_LIBS"
4298 # Check for system-dependent libraries X programs must link with.
4299 # Do this before checking for the system-independent R6 libraries
4300 # (-lICE), since we may need -lsocket or whatever for X linking.
4302 if test "$ISC" = yes; then
4303 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4305 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4306 # libraries were built with DECnet support. And karl@cs.umb.edu says
4307 # the Alpha needs dnet_stub (dnet does not exist).
4308 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4309 echo "configure:4310: checking for dnet_ntoa in -ldnet" >&5
4310 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 ac_save_LIBS="$LIBS"
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 /* Override any gcc2 internal prototype to avoid an error. */
4320 /* We use char because int might match the return type of a gcc2
4321 builtin and then its argument prototype would still apply. */
4328 if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4330 eval "ac_cv_lib_$ac_lib_var=yes"
4332 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4335 eval "ac_cv_lib_$ac_lib_var=no"
4338 LIBS="$ac_save_LIBS"
4341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4342 echo "$ac_t""yes" 1>&6
4343 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4345 echo "$ac_t""no" 1>&6
4348 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4349 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4350 echo "configure:4351: checking for dnet_ntoa in -ldnet_stub" >&5
4351 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 ac_save_LIBS="$LIBS"
4356 LIBS="-ldnet_stub $LIBS"
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 eval "ac_cv_lib_$ac_lib_var=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 eval "ac_cv_lib_$ac_lib_var=no"
4379 LIBS="$ac_save_LIBS"
4382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4384 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4386 echo "$ac_t""no" 1>&6
4391 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4392 # to get the SysV transport functions.
4393 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4395 # The nsl library prevents programs from opening the X display
4396 # on Irix 5.2, according to dickey@clark.net.
4397 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4398 echo "configure:4399: checking for gethostbyname" >&5
4399 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 /* System header to define __stub macros and hopefully few prototypes,
4406 which can conflict with char gethostbyname(); below. */
4408 /* Override any gcc2 internal prototype to avoid an error. */
4409 /* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4411 char gethostbyname();
4415 /* The GNU C library defines this for functions which it implements
4416 to always fail with ENOSYS. Some functions are actually named
4417 something starting with __ and the normal name is an alias. */
4418 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4428 eval "ac_cv_func_gethostbyname=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 eval "ac_cv_func_gethostbyname=no"
4438 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4442 echo "$ac_t""no" 1>&6
4445 if test $ac_cv_func_gethostbyname = no; then
4446 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4447 echo "configure:4448: checking for gethostbyname in -lnsl" >&5
4448 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 ac_save_LIBS="$LIBS"
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 /* Override any gcc2 internal prototype to avoid an error. */
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4460 char gethostbyname();
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4468 eval "ac_cv_lib_$ac_lib_var=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_lib_$ac_lib_var=no"
4476 LIBS="$ac_save_LIBS"
4479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4483 echo "$ac_t""no" 1>&6
4488 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4489 # socket/setsockopt and other routines are undefined under SCO ODT
4490 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4491 # on later versions), says simon@lia.di.epfl.ch: it contains
4492 # gethostby* variants that don't use the nameserver (or something).
4493 # -lsocket must be given before -lnsl if both are needed.
4494 # We assume that if connect needs -lnsl, so does gethostbyname.
4495 echo $ac_n "checking for connect""... $ac_c" 1>&6
4496 echo "configure:4497: checking for connect" >&5
4497 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4503 /* System header to define __stub macros and hopefully few prototypes,
4504 which can conflict with char connect(); below. */
4506 /* Override any gcc2 internal prototype to avoid an error. */
4507 /* We use char because int might match the return type of a gcc2
4508 builtin and then its argument prototype would still apply. */
4513 /* The GNU C library defines this for functions which it implements
4514 to always fail with ENOSYS. Some functions are actually named
4515 something starting with __ and the normal name is an alias. */
4516 #if defined (__stub_connect) || defined (__stub___connect)
4524 if { (eval echo configure:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4526 eval "ac_cv_func_connect=yes"
4528 echo "configure: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4531 eval "ac_cv_func_connect=no"
4536 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4540 echo "$ac_t""no" 1>&6
4543 if test $ac_cv_func_connect = no; then
4544 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4545 echo "configure:4546: checking for connect in -lsocket" >&5
4546 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4550 ac_save_LIBS="$LIBS"
4551 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* Override any gcc2 internal prototype to avoid an error. */
4556 /* We use char because int might match the return type of a gcc2
4557 builtin and then its argument prototype would still apply. */
4564 if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4566 eval "ac_cv_lib_$ac_lib_var=yes"
4568 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4571 eval "ac_cv_lib_$ac_lib_var=no"
4574 LIBS="$ac_save_LIBS"
4577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4579 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4581 echo "$ac_t""no" 1>&6
4586 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4587 echo $ac_n "checking for remove""... $ac_c" 1>&6
4588 echo "configure:4589: checking for remove" >&5
4589 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 /* System header to define __stub macros and hopefully few prototypes,
4596 which can conflict with char remove(); below. */
4598 /* Override any gcc2 internal prototype to avoid an error. */
4599 /* We use char because int might match the return type of a gcc2
4600 builtin and then its argument prototype would still apply. */
4605 /* The GNU C library defines this for functions which it implements
4606 to always fail with ENOSYS. Some functions are actually named
4607 something starting with __ and the normal name is an alias. */
4608 #if defined (__stub_remove) || defined (__stub___remove)
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4618 eval "ac_cv_func_remove=yes"
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4623 eval "ac_cv_func_remove=no"
4628 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4629 echo "$ac_t""yes" 1>&6
4632 echo "$ac_t""no" 1>&6
4635 if test $ac_cv_func_remove = no; then
4636 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4637 echo "configure:4638: checking for remove in -lposix" >&5
4638 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4642 ac_save_LIBS="$LIBS"
4643 LIBS="-lposix $LIBS"
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4647 /* Override any gcc2 internal prototype to avoid an error. */
4648 /* We use char because int might match the return type of a gcc2
4649 builtin and then its argument prototype would still apply. */
4656 if { (eval echo configure:4657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4658 eval "ac_cv_lib_$ac_lib_var=yes"
4660 echo "configure: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4663 eval "ac_cv_lib_$ac_lib_var=no"
4666 LIBS="$ac_save_LIBS"
4669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4670 echo "$ac_t""yes" 1>&6
4671 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4673 echo "$ac_t""no" 1>&6
4678 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4679 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4680 echo "configure:4681: checking for shmat" >&5
4681 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4682 echo $ac_n "(cached) $ac_c" 1>&6
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 /* System header to define __stub macros and hopefully few prototypes,
4688 which can conflict with char shmat(); below. */
4690 /* Override any gcc2 internal prototype to avoid an error. */
4691 /* We use char because int might match the return type of a gcc2
4692 builtin and then its argument prototype would still apply. */
4697 /* The GNU C library defines this for functions which it implements
4698 to always fail with ENOSYS. Some functions are actually named
4699 something starting with __ and the normal name is an alias. */
4700 #if defined (__stub_shmat) || defined (__stub___shmat)
4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4710 eval "ac_cv_func_shmat=yes"
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4715 eval "ac_cv_func_shmat=no"
4720 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4724 echo "$ac_t""no" 1>&6
4727 if test $ac_cv_func_shmat = no; then
4728 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4729 echo "configure:4730: checking for shmat in -lipc" >&5
4730 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 ac_save_LIBS="$LIBS"
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 eval "ac_cv_lib_$ac_lib_var=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 eval "ac_cv_lib_$ac_lib_var=no"
4758 LIBS="$ac_save_LIBS"
4761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4765 echo "$ac_t""no" 1>&6
4771 # Check for libraries that X11R6 Xt/Xaw programs need.
4772 ac_save_LDFLAGS="$LDFLAGS"
4773 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4774 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4775 # check for ICE first), but we must link in the order -lSM -lICE or
4776 # we get undefined symbols. So assume we have SM if we have ICE.
4777 # These have to be linked with before -lX11, unlike the other
4778 # libraries we check for below, so use a different variable.
4779 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4780 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4781 echo "configure:4782: checking for IceConnectionNumber in -lICE" >&5
4782 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 ac_save_LIBS="$LIBS"
4787 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4791 /* Override any gcc2 internal prototype to avoid an error. */
4792 /* We use char because int might match the return type of a gcc2
4793 builtin and then its argument prototype would still apply. */
4794 char IceConnectionNumber();
4797 IceConnectionNumber()
4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4802 eval "ac_cv_lib_$ac_lib_var=yes"
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4807 eval "ac_cv_lib_$ac_lib_var=no"
4810 LIBS="$ac_save_LIBS"
4813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4814 echo "$ac_t""yes" 1>&6
4815 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4817 echo "$ac_t""no" 1>&6
4820 LDFLAGS="$ac_save_LDFLAGS"
4843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4845 echo "configure:4846: checking for $ac_hdr" >&5
4846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4855 { (eval echo configure:4856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4857 if test -z "$ac_err"; then
4859 eval "ac_cv_header_$ac_safe=yes"
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4865 eval "ac_cv_header_$ac_safe=no"
4869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4872 cat >> confdefs.h <<EOF
4873 #define $ac_tr_hdr 1
4877 echo "$ac_t""no" 1>&6
4881 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4882 echo "configure:4883: checking for ANSI C header files" >&5
4883 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4895 { (eval echo configure:4896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4897 if test -z "$ac_err"; then
4899 ac_cv_header_stdc=yes
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 ac_cv_header_stdc=no
4909 if test $ac_cv_header_stdc = yes; then
4910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4917 egrep "memchr" >/dev/null 2>&1; then
4921 ac_cv_header_stdc=no
4927 if test $ac_cv_header_stdc = yes; then
4928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935 egrep "free" >/dev/null 2>&1; then
4939 ac_cv_header_stdc=no
4945 if test $ac_cv_header_stdc = yes; then
4946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4947 if test "$cross_compiling" = yes; then
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4954 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4955 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4957 int main () { int i; for (i = 0; i < 256; i++)
4958 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 ac_cv_header_stdc=no
4977 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4978 if test $ac_cv_header_stdc = yes; then
4979 cat >> confdefs.h <<\EOF
4980 #define STDC_HEADERS 1
4985 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
4986 echo "configure:4987: checking whether sys/types.h defines makedev" >&5
4987 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4993 #include <sys/types.h>
4995 return makedev(0, 0);
4998 if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5000 ac_cv_header_sys_types_h_makedev=yes
5002 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5005 ac_cv_header_sys_types_h_makedev=no
5011 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5013 if test $ac_cv_header_sys_types_h_makedev = no; then
5014 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5015 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5016 echo "configure:5017: checking for sys/mkdev.h" >&5
5017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 #include <sys/mkdev.h>
5025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5026 { (eval echo configure:5027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5028 if test -z "$ac_err"; then
5030 eval "ac_cv_header_$ac_safe=yes"
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5036 eval "ac_cv_header_$ac_safe=no"
5040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5041 echo "$ac_t""yes" 1>&6
5042 cat >> confdefs.h <<\EOF
5043 #define MAJOR_IN_MKDEV 1
5047 echo "$ac_t""no" 1>&6
5051 if test $ac_cv_header_sys_mkdev_h = no; then
5052 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5053 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5054 echo "configure:5055: checking for sys/sysmacros.h" >&5
5055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5058 cat > conftest.$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5061 #include <sys/sysmacros.h>
5063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5064 { (eval echo configure:5065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5066 if test -z "$ac_err"; then
5068 eval "ac_cv_header_$ac_safe=yes"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 eval "ac_cv_header_$ac_safe=no"
5078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5079 echo "$ac_t""yes" 1>&6
5080 cat >> confdefs.h <<\EOF
5081 #define MAJOR_IN_SYSMACROS 1
5085 echo "$ac_t""no" 1>&6
5092 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5095 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5096 echo "configure:5097: checking for $ac_hdr that defines DIR" >&5
5097 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 #include <sys/types.h>
5109 if { (eval echo configure:5110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5111 eval "ac_cv_header_dirent_$ac_safe=yes"
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 eval "ac_cv_header_dirent_$ac_safe=no"
5120 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5121 echo "$ac_t""yes" 1>&6
5122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5123 cat >> confdefs.h <<EOF
5124 #define $ac_tr_hdr 1
5126 ac_header_dirent=$ac_hdr; break
5128 echo "$ac_t""no" 1>&6
5131 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5132 if test $ac_header_dirent = dirent.h; then
5133 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5134 echo "configure:5135: checking for opendir in -ldir" >&5
5135 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 ac_save_LIBS="$LIBS"
5141 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure"
5143 #include "confdefs.h"
5144 /* Override any gcc2 internal prototype to avoid an error. */
5145 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */
5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5155 eval "ac_cv_lib_$ac_lib_var=yes"
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5160 eval "ac_cv_lib_$ac_lib_var=no"
5163 LIBS="$ac_save_LIBS"
5166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5167 echo "$ac_t""yes" 1>&6
5170 echo "$ac_t""no" 1>&6
5174 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5175 echo "configure:5176: checking for opendir in -lx" >&5
5176 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5180 ac_save_LIBS="$LIBS"
5182 cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 /* Override any gcc2 internal prototype to avoid an error. */
5186 /* We use char because int might match the return type of a gcc2
5187 builtin and then its argument prototype would still apply. */
5194 if { (eval echo configure:5195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5196 eval "ac_cv_lib_$ac_lib_var=yes"
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5201 eval "ac_cv_lib_$ac_lib_var=no"
5204 LIBS="$ac_save_LIBS"
5207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5208 echo "$ac_t""yes" 1>&6
5211 echo "$ac_t""no" 1>&6
5216 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5217 echo "configure:5218: checking whether stat file-mode macros are broken" >&5
5218 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5224 #include <sys/types.h>
5225 #include <sys/stat.h>
5227 #if defined(S_ISBLK) && defined(S_IFDIR)
5228 # if S_ISBLK (S_IFDIR)
5233 #if defined(S_ISBLK) && defined(S_IFCHR)
5234 # if S_ISBLK (S_IFCHR)
5239 #if defined(S_ISLNK) && defined(S_IFREG)
5240 # if S_ISLNK (S_IFREG)
5245 #if defined(S_ISSOCK) && defined(S_IFREG)
5246 # if S_ISSOCK (S_IFREG)
5252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5253 egrep "You lose" >/dev/null 2>&1; then
5255 ac_cv_header_stat_broken=yes
5258 ac_cv_header_stat_broken=no
5264 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5265 if test $ac_cv_header_stat_broken = yes; then
5266 cat >> confdefs.h <<\EOF
5267 #define STAT_MACROS_BROKEN 1
5272 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5273 echo "configure:5274: checking for sys/wait.h that is POSIX.1 compatible" >&5
5274 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5280 #include <sys/types.h>
5281 #include <sys/wait.h>
5283 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5286 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5291 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5294 if { (eval echo configure:5295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5296 ac_cv_header_sys_wait_h=yes
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5301 ac_cv_header_sys_wait_h=no
5306 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5307 if test $ac_cv_header_sys_wait_h = yes; then
5308 cat >> confdefs.h <<\EOF
5309 #define HAVE_SYS_WAIT_H 1
5314 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5315 echo "configure:5316: checking whether time.h and sys/time.h may both be included" >&5
5316 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 cat > conftest.$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5322 #include <sys/types.h>
5323 #include <sys/time.h>
5329 if { (eval echo configure:5330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5331 ac_cv_header_time=yes
5333 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5336 ac_cv_header_time=no
5341 echo "$ac_t""$ac_cv_header_time" 1>&6
5342 if test $ac_cv_header_time = yes; then
5343 cat >> confdefs.h <<\EOF
5344 #define TIME_WITH_SYS_TIME 1
5349 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5350 echo "configure:5351: checking for st_blksize in struct stat" >&5
5351 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5357 #include <sys/types.h>
5358 #include <sys/stat.h>
5360 struct stat s; s.st_blksize;
5363 if { (eval echo configure:5364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5365 ac_cv_struct_st_blksize=yes
5367 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5370 ac_cv_struct_st_blksize=no
5375 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5376 if test $ac_cv_struct_st_blksize = yes; then
5377 cat >> confdefs.h <<\EOF
5378 #define HAVE_ST_BLKSIZE 1
5383 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5384 echo "configure:5385: checking for st_blocks in struct stat" >&5
5385 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 #include <sys/types.h>
5392 #include <sys/stat.h>
5394 struct stat s; s.st_blocks;
5397 if { (eval echo configure:5398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5399 ac_cv_struct_st_blocks=yes
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5404 ac_cv_struct_st_blocks=no
5409 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5410 if test $ac_cv_struct_st_blocks = yes; then
5411 cat >> confdefs.h <<\EOF
5412 #define HAVE_ST_BLOCKS 1
5416 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5419 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5420 echo "configure:5421: checking whether struct tm is in sys/time.h or time.h" >&5
5421 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 #include <sys/types.h>
5430 struct tm *tp; tp->tm_sec;
5433 if { (eval echo configure:5434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5435 ac_cv_struct_tm=time.h
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 ac_cv_struct_tm=sys/time.h
5445 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5446 if test $ac_cv_struct_tm = sys/time.h; then
5447 cat >> confdefs.h <<\EOF
5448 #define TM_IN_SYS_TIME 1
5453 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5454 echo "configure:5455: checking for tm_zone in struct tm" >&5
5455 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5461 #include <sys/types.h>
5462 #include <$ac_cv_struct_tm>
5464 struct tm tm; tm.tm_zone;
5467 if { (eval echo configure:5468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5469 ac_cv_struct_tm_zone=yes
5471 echo "configure: failed program was:" >&5
5472 cat conftest.$ac_ext >&5
5474 ac_cv_struct_tm_zone=no
5479 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5480 if test "$ac_cv_struct_tm_zone" = yes; then
5481 cat >> confdefs.h <<\EOF
5482 #define HAVE_TM_ZONE 1
5486 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5487 echo "configure:5488: checking for tzname" >&5
5488 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5495 #ifndef tzname /* For SGI. */
5496 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5502 if { (eval echo configure:5503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5504 ac_cv_var_tzname=yes
5506 echo "configure: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5514 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5515 if test $ac_cv_var_tzname = yes; then
5516 cat >> confdefs.h <<\EOF
5517 #define HAVE_TZNAME 1
5524 # It seems that that many machines where <utime.h> seems to be
5525 # broken just require something like -D_XXX_SOURCE, where XXX might
5526 # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine.
5528 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5529 echo "configure:5530: checking for utime.h" >&5
5530 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5531 echo $ac_n "(cached) $ac_c" 1>&6
5533 cat > conftest.$ac_ext <<EOF
5534 #line 5535 "configure"
5535 #include "confdefs.h"
5537 #include <sys/types.h>
5543 if { (eval echo configure:5544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5545 tar_cv_header_utime_h=yes
5547 echo "configure: failed program was:" >&5
5548 cat conftest.$ac_ext >&5
5550 tar_cv_header_utime_h=no
5555 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5556 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5557 #define HAVE_UTIME_H 1
5561 echo $ac_n "checking for working const""... $ac_c" 1>&6
5562 echo "configure:5563: checking for working const" >&5
5563 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5564 echo $ac_n "(cached) $ac_c" 1>&6
5566 cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5572 /* Ultrix mips cc rejects this. */
5573 typedef int charset[2]; const charset x;
5574 /* SunOS 4.1.1 cc rejects this. */
5575 char const *const *ccp;
5577 /* NEC SVR4.0.2 mips cc rejects this. */
5578 struct point {int x, y;};
5579 static struct point const zero = {0,0};
5580 /* AIX XL C 1.02.0.0 rejects this.
5581 It does not let you subtract one const X* pointer from another in an arm
5582 of an if-expression whose if-part is not a constant expression */
5583 const char *g = "string";
5584 ccp = &g + (g ? g-g : 0);
5585 /* HPUX 7.0 cc rejects these. */
5588 ccp = (char const *const *) p;
5589 { /* SCO 3.2v4 cc rejects this. */
5591 char const *s = 0 ? (char *) 0 : (char const *) 0;
5595 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5597 const int *foo = &x[0];
5600 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5601 typedef const int *iptr;
5605 { /* AIX XL C 1.02.0.0 rejects this saying
5606 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5607 struct s { int j; const int *ap[3]; };
5608 struct s *b; b->j = 5;
5610 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5616 if { (eval echo configure:5617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5628 echo "$ac_t""$ac_cv_c_const" 1>&6
5629 if test $ac_cv_c_const = no; then
5630 cat >> confdefs.h <<\EOF
5638 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
5639 echo "configure:5640: checking how to get filesystem type" >&5
5641 # The order of these tests is important.
5642 cat > conftest.$ac_ext <<EOF
5643 #line 5644 "configure"
5644 #include "confdefs.h"
5645 #include <sys/statvfs.h>
5646 #include <sys/fstyp.h>
5648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5649 { (eval echo configure:5650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5651 if test -z "$ac_err"; then
5653 cat >> confdefs.h <<\EOF
5654 #define FSTYPE_STATVFS 1
5659 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5663 if test $fstype = no; then
5664 cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667 #include <sys/statfs.h>
5668 #include <sys/fstyp.h>
5670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5671 { (eval echo configure:5672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5673 if test -z "$ac_err"; then
5675 cat >> confdefs.h <<\EOF
5676 #define FSTYPE_USG_STATFS 1
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5686 if test $fstype = no; then
5687 cat > conftest.$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5690 #include <sys/statfs.h>
5691 #include <sys/vmount.h>
5693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5694 { (eval echo configure:5695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5696 if test -z "$ac_err"; then
5698 cat >> confdefs.h <<\EOF
5699 #define FSTYPE_AIX_STATFS 1
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5709 if test $fstype = no; then
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5716 { (eval echo configure:5717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5718 if test -z "$ac_err"; then
5720 cat >> confdefs.h <<\EOF
5721 #define FSTYPE_MNTENT 1
5726 echo "configure: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5731 if test $fstype = no; then
5732 cat > conftest.$ac_ext <<EOF
5733 #line 5734 "configure"
5734 #include "confdefs.h"
5735 #include <sys/mount.h>
5737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738 egrep "f_type;" >/dev/null 2>&1; then
5740 cat >> confdefs.h <<\EOF
5741 #define FSTYPE_STATFS 1
5748 if test $fstype = no; then
5749 cat > conftest.$ac_ext <<EOF
5750 #line 5751 "configure"
5751 #include "confdefs.h"
5752 #include <sys/mount.h>
5753 #include <sys/fs_types.h>
5755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5756 { (eval echo configure:5757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5758 if test -z "$ac_err"; then
5760 cat >> confdefs.h <<\EOF
5761 #define FSTYPE_GETMNT 1
5766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5771 echo "$ac_t""$fstype" 1>&6
5773 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5774 echo "configure:5775: checking return type of signal handlers" >&5
5775 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6
5778 cat > conftest.$ac_ext <<EOF
5779 #line 5780 "configure"
5780 #include "confdefs.h"
5781 #include <sys/types.h>
5787 extern "C" void (*signal (int, void (*)(int)))(int);
5789 void (*signal ()) ();
5796 if { (eval echo configure:5797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5798 ac_cv_type_signal=void
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5803 ac_cv_type_signal=int
5808 echo "$ac_t""$ac_cv_type_signal" 1>&6
5809 cat >> confdefs.h <<EOF
5810 #define RETSIGTYPE $ac_cv_type_signal
5815 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
5816 echo "configure:5817: checking for type of signal functions" >&5
5817 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5828 struct sigaction sa;
5829 sigemptyset(&ss); sigsuspend(&ss);
5830 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5831 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5835 if { (eval echo configure:5836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5837 bash_cv_signal_vintage=posix
5839 echo "configure: failed program was:" >&5
5840 cat conftest.$ac_ext >&5
5843 cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5849 int mask = sigmask(SIGINT);
5850 sigsetmask(mask); sigblock(mask); sigpause(mask);
5854 if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5856 bash_cv_signal_vintage=4.2bsd
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5862 cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5867 RETSIGTYPE foo() { }
5870 int mask = sigmask(SIGINT);
5871 sigset(SIGINT, foo); sigrelse(SIGINT);
5872 sighold(SIGINT); sigpause(SIGINT);
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5878 bash_cv_signal_vintage=svr3
5880 echo "configure: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5883 bash_cv_signal_vintage=v7
5896 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
5897 if test "$bash_cv_signal_vintage" = posix; then
5898 cat >> confdefs.h <<\EOF
5899 #define HAVE_POSIX_SIGNALS 1
5902 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5903 cat >> confdefs.h <<\EOF
5904 #define HAVE_BSD_SIGNALS 1
5907 elif test "$bash_cv_signal_vintage" = svr3; then
5908 cat >> confdefs.h <<\EOF
5909 #define HAVE_USG_SIGHOLD 1
5914 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5915 echo "configure:5916: checking for mode_t" >&5
5916 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 #include <sys/types.h>
5928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5929 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5931 ac_cv_type_mode_t=yes
5934 ac_cv_type_mode_t=no
5939 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5940 if test $ac_cv_type_mode_t = no; then
5941 cat >> confdefs.h <<\EOF
5947 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5948 echo "configure:5949: checking for uid_t in sys/types.h" >&5
5949 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5955 #include <sys/types.h>
5957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5958 egrep "uid_t" >/dev/null 2>&1; then
5960 ac_cv_type_uid_t=yes
5969 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5970 if test $ac_cv_type_uid_t = no; then
5971 cat >> confdefs.h <<\EOF
5975 cat >> confdefs.h <<\EOF
5981 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5982 echo "configure:5983: checking for size_t" >&5
5983 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
5986 cat > conftest.$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5989 #include <sys/types.h>
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5998 ac_cv_type_size_t=yes
6001 ac_cv_type_size_t=no
6006 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6007 if test $ac_cv_type_size_t = no; then
6008 cat >> confdefs.h <<\EOF
6009 #define size_t unsigned
6014 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6015 echo "configure:6016: checking for pid_t" >&5
6016 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6017 echo $ac_n "(cached) $ac_c" 1>&6
6019 cat > conftest.$ac_ext <<EOF
6020 #line 6021 "configure"
6021 #include "confdefs.h"
6022 #include <sys/types.h>
6028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6029 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6031 ac_cv_type_pid_t=yes
6039 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6040 if test $ac_cv_type_pid_t = no; then
6041 cat >> confdefs.h <<\EOF
6047 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6048 echo "configure:6049: checking for off_t" >&5
6049 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6050 echo $ac_n "(cached) $ac_c" 1>&6
6052 cat > conftest.$ac_ext <<EOF
6053 #line 6054 "configure"
6054 #include "confdefs.h"
6055 #include <sys/types.h>
6061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6062 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6064 ac_cv_type_off_t=yes
6072 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6073 if test $ac_cv_type_off_t = no; then
6074 cat >> confdefs.h <<\EOF
6080 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6081 echo "configure:6082: checking for ino_t" >&5
6082 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 #include <sys/types.h>
6094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6095 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6097 ac_cv_type_ino_t=yes
6105 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6106 if test $ac_cv_type_ino_t = no; then
6107 cat >> confdefs.h <<\EOF
6108 #define ino_t unsigned long
6113 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6114 echo "configure:6115: checking for dev_t" >&5
6115 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 #include <sys/types.h>
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6130 ac_cv_type_dev_t=yes
6138 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6139 if test $ac_cv_type_dev_t = no; then
6140 cat >> confdefs.h <<\EOF
6141 #define dev_t unsigned long
6146 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6147 echo "configure:6148: checking for daddr_t" >&5
6148 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6149 echo $ac_n "(cached) $ac_c" 1>&6
6151 cat > conftest.$ac_ext <<EOF
6152 #line 6153 "configure"
6153 #include "confdefs.h"
6154 #include <sys/types.h>
6160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6161 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6163 ac_cv_type_daddr_t=yes
6166 ac_cv_type_daddr_t=no
6171 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6172 if test $ac_cv_type_daddr_t = no; then
6173 cat >> confdefs.h <<\EOF
6174 #define daddr_t long
6179 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6180 echo "configure:6181: checking for major_t" >&5
6181 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6182 echo $ac_n "(cached) $ac_c" 1>&6
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6187 #include <sys/types.h>
6193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6196 ac_cv_type_major_t=yes
6199 ac_cv_type_major_t=no
6204 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6205 if test $ac_cv_type_major_t = no; then
6206 cat >> confdefs.h <<\EOF
6212 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6213 echo "configure:6214: checking for minor_t" >&5
6214 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6215 echo $ac_n "(cached) $ac_c" 1>&6
6217 cat > conftest.$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6220 #include <sys/types.h>
6226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6227 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6229 ac_cv_type_minor_t=yes
6232 ac_cv_type_minor_t=no
6237 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6238 if test $ac_cv_type_minor_t = no; then
6239 cat >> confdefs.h <<\EOF
6245 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6246 echo "configure:6247: checking for ssize_t" >&5
6247 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 #include <sys/types.h>
6259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6262 ac_cv_type_ssize_t=yes
6265 ac_cv_type_ssize_t=no
6270 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6271 if test $ac_cv_type_ssize_t = no; then
6272 cat >> confdefs.h <<\EOF
6278 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6279 echo "configure:6280: checking for st_blocks in struct stat" >&5
6280 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6283 cat > conftest.$ac_ext <<EOF
6284 #line 6285 "configure"
6285 #include "confdefs.h"
6286 #include <sys/types.h>
6287 #include <sys/stat.h>
6289 struct stat s; s.st_blocks;
6292 if { (eval echo configure:6293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6294 ac_cv_struct_st_blocks=yes
6296 echo "configure: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6299 ac_cv_struct_st_blocks=no
6304 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6305 if test $ac_cv_struct_st_blocks = yes; then
6306 cat >> confdefs.h <<\EOF
6307 #define HAVE_ST_BLOCKS 1
6311 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6314 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6315 echo "configure:6316: checking for st_rdev in struct stat" >&5
6316 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6317 echo $ac_n "(cached) $ac_c" 1>&6
6319 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure"
6321 #include "confdefs.h"
6322 #include <sys/types.h>
6323 #include <sys/stat.h>
6325 struct stat s; s.st_rdev;
6328 if { (eval echo configure:6329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6330 ac_cv_struct_st_rdev=yes
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 ac_cv_struct_st_rdev=no
6340 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6341 if test $ac_cv_struct_st_rdev = yes; then
6342 cat >> confdefs.h <<\EOF
6343 #define HAVE_ST_RDEV 1
6348 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6349 echo "configure:6350: checking whether struct tm is in sys/time.h or time.h" >&5
6350 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6353 cat > conftest.$ac_ext <<EOF
6354 #line 6355 "configure"
6355 #include "confdefs.h"
6356 #include <sys/types.h>
6359 struct tm *tp; tp->tm_sec;
6362 if { (eval echo configure:6363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6364 ac_cv_struct_tm=time.h
6366 echo "configure: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6369 ac_cv_struct_tm=sys/time.h
6374 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6375 if test $ac_cv_struct_tm = sys/time.h; then
6376 cat >> confdefs.h <<\EOF
6377 #define TM_IN_SYS_TIME 1
6382 echo $ac_n "checking for working const""... $ac_c" 1>&6
6383 echo "configure:6384: checking for working const" >&5
6384 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6387 cat > conftest.$ac_ext <<EOF
6388 #line 6389 "configure"
6389 #include "confdefs.h"
6393 /* Ultrix mips cc rejects this. */
6394 typedef int charset[2]; const charset x;
6395 /* SunOS 4.1.1 cc rejects this. */
6396 char const *const *ccp;
6398 /* NEC SVR4.0.2 mips cc rejects this. */
6399 struct point {int x, y;};
6400 static struct point const zero = {0,0};
6401 /* AIX XL C 1.02.0.0 rejects this.
6402 It does not let you subtract one const X* pointer from another in an arm
6403 of an if-expression whose if-part is not a constant expression */
6404 const char *g = "string";
6405 ccp = &g + (g ? g-g : 0);
6406 /* HPUX 7.0 cc rejects these. */
6409 ccp = (char const *const *) p;
6410 { /* SCO 3.2v4 cc rejects this. */
6412 char const *s = 0 ? (char *) 0 : (char const *) 0;
6416 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6418 const int *foo = &x[0];
6421 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6422 typedef const int *iptr;
6426 { /* AIX XL C 1.02.0.0 rejects this saying
6427 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6428 struct s { int j; const int *ap[3]; };
6429 struct s *b; b->j = 5;
6431 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6437 if { (eval echo configure:6438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6441 echo "configure: failed program was:" >&5
6442 cat conftest.$ac_ext >&5
6449 echo "$ac_t""$ac_cv_c_const" 1>&6
6450 if test $ac_cv_c_const = no; then
6451 cat >> confdefs.h <<\EOF
6459 echo $ac_n "checking size of char""... $ac_c" 1>&6
6460 echo "configure:6461: checking size of char" >&5
6461 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6462 echo $ac_n "(cached) $ac_c" 1>&6
6464 if test "$cross_compiling" = yes; then
6467 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure"
6469 #include "confdefs.h"
6473 FILE *f=fopen("conftestval", "w");
6475 fprintf(f, "%d\n", sizeof(char));
6479 if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6481 ac_cv_sizeof_char=`cat conftestval`
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6492 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6493 cat >> confdefs.h <<EOF
6494 #define SIZEOF_CHAR $ac_cv_sizeof_char
6498 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6499 echo "configure:6500: checking size of short int" >&5
6500 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6501 echo $ac_n "(cached) $ac_c" 1>&6
6503 if test "$cross_compiling" = yes; then
6504 ac_cv_sizeof_short_int=2
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6512 FILE *f=fopen("conftestval", "w");
6514 fprintf(f, "%d\n", sizeof(short int));
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6520 ac_cv_sizeof_short_int=`cat conftestval`
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6525 ac_cv_sizeof_short_int=0
6531 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6532 cat >> confdefs.h <<EOF
6533 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6537 echo $ac_n "checking size of int""... $ac_c" 1>&6
6538 echo "configure:6539: checking size of int" >&5
6539 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 if test "$cross_compiling" = yes; then
6545 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6551 FILE *f=fopen("conftestval", "w");
6553 fprintf(f, "%d\n", sizeof(int));
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6559 ac_cv_sizeof_int=`cat conftestval`
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6570 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6571 cat >> confdefs.h <<EOF
6572 #define SIZEOF_INT $ac_cv_sizeof_int
6576 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6577 echo "configure:6578: checking size of long int" >&5
6578 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6581 if test "$cross_compiling" = yes; then
6582 ac_cv_sizeof_long_int=4
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6590 FILE *f=fopen("conftestval", "w");
6592 fprintf(f, "%d\n", sizeof(long int));
6596 if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6598 ac_cv_sizeof_long_int=`cat conftestval`
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 ac_cv_sizeof_long_int=0
6609 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
6610 cat >> confdefs.h <<EOF
6611 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
6615 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
6616 echo "configure:6617: checking size of long long int" >&5
6617 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
6618 echo $ac_n "(cached) $ac_c" 1>&6
6620 if test "$cross_compiling" = yes; then
6621 ac_cv_sizeof_long_long_int=8
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6629 FILE *f=fopen("conftestval", "w");
6631 fprintf(f, "%d\n", sizeof(long long int));
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6637 ac_cv_sizeof_long_long_int=`cat conftestval`
6639 echo "configure: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6642 ac_cv_sizeof_long_long_int=0
6648 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
6649 cat >> confdefs.h <<EOF
6650 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
6654 echo $ac_n "checking size of int *""... $ac_c" 1>&6
6655 echo "configure:6656: checking size of int *" >&5
6656 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
6657 echo $ac_n "(cached) $ac_c" 1>&6
6659 if test "$cross_compiling" = yes; then
6660 ac_cv_sizeof_int_p=4
6662 cat > conftest.$ac_ext <<EOF
6663 #line 6664 "configure"
6664 #include "confdefs.h"
6668 FILE *f=fopen("conftestval", "w");
6670 fprintf(f, "%d\n", sizeof(int *));
6674 if { (eval echo configure:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6676 ac_cv_sizeof_int_p=`cat conftestval`
6678 echo "configure: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6681 ac_cv_sizeof_int_p=0
6687 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
6688 cat >> confdefs.h <<EOF
6689 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
6694 # Check for sys/types.h types
6695 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
6696 echo "configure:6697: checking for u_int type" >&5
6697 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 #include <sys/types.h>
6709 if { (eval echo configure:6710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6711 ac_cv_have_u_int="yes"
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 ac_cv_have_u_int="no"
6723 echo "$ac_t""$ac_cv_have_u_int" 1>&6
6724 if test "x$ac_cv_have_u_int" = "xyes" ; then
6725 cat >> confdefs.h <<\EOF
6726 #define HAVE_U_INT 1
6732 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
6733 echo "configure:6734: checking for intmax_t type" >&5
6734 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
6735 echo $ac_n "(cached) $ac_c" 1>&6
6738 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure"
6740 #include "confdefs.h"
6741 #include <sys/types.h>
6746 if { (eval echo configure:6747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6748 ac_cv_have_intmax_t="yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6754 cat > conftest.$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6762 if { (eval echo configure:6763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6764 ac_cv_have_intmax_t="yes"
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6769 ac_cv_have_intmax_t="no"
6781 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
6782 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
6783 cat >> confdefs.h <<\EOF
6784 #define HAVE_INTMAX_T 1
6791 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
6792 echo "configure:6793: checking for u_intmax_t type" >&5
6793 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6800 #include <sys/types.h>
6802 u_intmax_t a; a = 1;
6805 if { (eval echo configure:6806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6807 ac_cv_have_u_intmax_t="yes"
6809 echo "configure: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6813 cat > conftest.$ac_ext <<EOF
6814 #line 6815 "configure"
6815 #include "confdefs.h"
6818 u_intmax_t a; a = 1;
6821 if { (eval echo configure:6822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6823 ac_cv_have_u_intmax_t="yes"
6825 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6828 ac_cv_have_u_intmax_t="no"
6839 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
6840 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
6841 cat >> confdefs.h <<\EOF
6842 #define HAVE_U_INTMAX_T 1
6849 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
6850 echo "configure:6851: checking for intXX_t types" >&5
6851 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6855 cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 #include <sys/types.h>
6860 int8_t a; int16_t b; int32_t c; a = b = c = 1;
6863 if { (eval echo configure:6864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6865 ac_cv_have_intxx_t="yes"
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 ac_cv_have_intxx_t="no"
6877 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
6878 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
6879 cat >> confdefs.h <<\EOF
6880 #define HAVE_INTXX_T 1
6886 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
6887 echo "configure:6888: checking for int64_t type" >&5
6888 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6892 cat > conftest.$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6895 #include <sys/types.h>
6900 if { (eval echo configure:6901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6902 ac_cv_have_int64_t="yes"
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 ac_cv_have_int64_t="no"
6914 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
6915 if test "x$ac_cv_have_int64_t" = "xyes" ; then
6916 cat >> confdefs.h <<\EOF
6917 #define HAVE_INT64_T 1
6923 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
6924 echo "configure:6925: checking for u_intXX_t types" >&5
6925 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
6926 echo $ac_n "(cached) $ac_c" 1>&6
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6932 #include <sys/types.h>
6934 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
6937 if { (eval echo configure:6938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6939 ac_cv_have_u_intxx_t="yes"
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 ac_cv_have_u_intxx_t="no"
6951 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
6952 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
6953 cat >> confdefs.h <<\EOF
6954 #define HAVE_U_INTXX_T 1
6960 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
6961 echo "configure:6962: checking for u_int64_t types" >&5
6962 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 #include <sys/types.h>
6974 if { (eval echo configure:6975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6976 ac_cv_have_u_int64_t="yes"
6978 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6981 ac_cv_have_u_int64_t="no"
6988 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
6989 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
6990 cat >> confdefs.h <<\EOF
6991 #define HAVE_U_INT64_T 1
6997 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
6998 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7000 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7001 echo "configure:7002: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7002 cat > conftest.$ac_ext <<EOF
7003 #line 7004 "configure"
7004 #include "confdefs.h"
7005 #include <sys/bitypes.h>
7007 int8_t a; int16_t b; int32_t c;
7008 u_int8_t e; u_int16_t f; u_int32_t g;
7009 a = b = c = e = f = g = 1;
7012 if { (eval echo configure:7013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7014 cat >> confdefs.h <<\EOF
7015 #define HAVE_U_INTXX_T 1
7018 cat >> confdefs.h <<\EOF
7019 #define HAVE_INTXX_T 1
7022 cat >> confdefs.h <<\EOF
7023 #define HAVE_SYS_BITYPES_H 1
7026 echo "$ac_t""yes" 1>&6
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 echo "$ac_t""no" 1>&6
7037 if test -z "$have_u_intxx_t" ; then
7038 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7039 echo "configure:7040: checking for uintXX_t types" >&5
7040 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7044 cat > conftest.$ac_ext <<EOF
7045 #line 7046 "configure"
7046 #include "confdefs.h"
7047 #include <sys/types.h>
7049 uint8_t a; uint16_t b;
7050 uint32_t c; a = b = c = 1;
7053 if { (eval echo configure:7054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7055 ac_cv_have_uintxx_t="yes"
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7060 ac_cv_have_uintxx_t="no"
7067 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7068 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7069 cat >> confdefs.h <<\EOF
7070 #define HAVE_UINTXX_T 1
7092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7093 echo "configure:7094: checking for $ac_func" >&5
7094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7097 cat > conftest.$ac_ext <<EOF
7098 #line 7099 "configure"
7099 #include "confdefs.h"
7100 /* System header to define __stub macros and hopefully few prototypes,
7101 which can conflict with char $ac_func(); below. */
7103 /* Override any gcc2 internal prototype to avoid an error. */
7104 /* We use char because int might match the return type of a gcc2
7105 builtin and then its argument prototype would still apply. */
7110 /* The GNU C library defines this for functions which it implements
7111 to always fail with ENOSYS. Some functions are actually named
7112 something starting with __ and the normal name is an alias. */
7113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7121 if { (eval echo configure:7122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7123 eval "ac_cv_func_$ac_func=yes"
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7128 eval "ac_cv_func_$ac_func=no"
7133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7134 echo "$ac_t""yes" 1>&6
7135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7136 cat >> confdefs.h <<EOF
7137 #define $ac_tr_func 1
7141 echo "$ac_t""no" 1>&6
7142 echo 'configure: cannot find needed function.'; exit 1
7148 for ac_func in fchdir
7150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7151 echo "configure:7152: checking for $ac_func" >&5
7152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7158 /* System header to define __stub macros and hopefully few prototypes,
7159 which can conflict with char $ac_func(); below. */
7161 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7168 /* The GNU C library defines this for functions which it implements
7169 to always fail with ENOSYS. Some functions are actually named
7170 something starting with __ and the normal name is an alias. */
7171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7181 eval "ac_cv_func_$ac_func=yes"
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7186 eval "ac_cv_func_$ac_func=no"
7191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7192 echo "$ac_t""yes" 1>&6
7193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7194 cat >> confdefs.h <<EOF
7195 #define $ac_tr_func 1
7197 cat >> confdefs.h <<\EOF
7198 #define HAVE_FCHDIR 1
7202 echo "$ac_t""no" 1>&6
7207 for ac_func in snprintf vsnprintf
7209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7210 echo "configure:7211: checking for $ac_func" >&5
7211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7214 cat > conftest.$ac_ext <<EOF
7215 #line 7216 "configure"
7216 #include "confdefs.h"
7217 /* System header to define __stub macros and hopefully few prototypes,
7218 which can conflict with char $ac_func(); below. */
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7227 /* The GNU C library defines this for functions which it implements
7228 to always fail with ENOSYS. Some functions are actually named
7229 something starting with __ and the normal name is an alias. */
7230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7238 if { (eval echo configure:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240 eval "ac_cv_func_$ac_func=yes"
7242 echo "configure: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7245 eval "ac_cv_func_$ac_func=no"
7250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7251 echo "$ac_t""yes" 1>&6
7252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7253 cat >> confdefs.h <<EOF
7254 #define $ac_tr_func 1
7258 echo "$ac_t""no" 1>&6
7263 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7266 echo "configure:7267: checking for $ac_func" >&5
7267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7268 echo $ac_n "(cached) $ac_c" 1>&6
7270 cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7273 /* System header to define __stub macros and hopefully few prototypes,
7274 which can conflict with char $ac_func(); below. */
7276 /* Override any gcc2 internal prototype to avoid an error. */
7277 /* We use char because int might match the return type of a gcc2
7278 builtin and then its argument prototype would still apply. */
7283 /* The GNU C library defines this for functions which it implements
7284 to always fail with ENOSYS. Some functions are actually named
7285 something starting with __ and the normal name is an alias. */
7286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7296 eval "ac_cv_func_$ac_func=yes"
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7301 eval "ac_cv_func_$ac_func=no"
7306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7307 echo "$ac_t""yes" 1>&6
7308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7309 cat >> confdefs.h <<EOF
7310 #define $ac_tr_func 1
7314 echo "$ac_t""no" 1>&6
7319 # If resolver functions are not in libc check for -lnsl or -lresolv.
7320 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7321 echo "configure:7322: checking for gethostbyname_r" >&5
7322 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7323 echo $ac_n "(cached) $ac_c" 1>&6
7325 cat > conftest.$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7328 /* System header to define __stub macros and hopefully few prototypes,
7329 which can conflict with char gethostbyname_r(); below. */
7331 /* Override any gcc2 internal prototype to avoid an error. */
7332 /* We use char because int might match the return type of a gcc2
7333 builtin and then its argument prototype would still apply. */
7334 char gethostbyname_r();
7338 /* The GNU C library defines this for functions which it implements
7339 to always fail with ENOSYS. Some functions are actually named
7340 something starting with __ and the normal name is an alias. */
7341 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7349 if { (eval echo configure:7350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7351 eval "ac_cv_func_gethostbyname_r=yes"
7353 echo "configure: failed program was:" >&5
7354 cat conftest.$ac_ext >&5
7356 eval "ac_cv_func_gethostbyname_r=no"
7361 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7362 echo "$ac_t""yes" 1>&6
7363 echo "$ac_t""using libc's resolver" 1>&6
7365 echo "$ac_t""no" 1>&6
7366 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7367 echo "configure:7368: checking for gethostbyname_r in -lnsl" >&5
7368 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 ac_save_LIBS="$LIBS"
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 /* Override any gcc2 internal prototype to avoid an error. */
7378 /* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7380 char gethostbyname_r();
7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7388 eval "ac_cv_lib_$ac_lib_var=yes"
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7393 eval "ac_cv_lib_$ac_lib_var=no"
7396 LIBS="$ac_save_LIBS"
7399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7400 echo "$ac_t""yes" 1>&6
7401 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7402 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7403 cat >> confdefs.h <<EOF
7404 #define $ac_tr_lib 1
7410 echo "$ac_t""no" 1>&6
7413 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7414 echo "configure:7415: checking for gethostbyname_r in -lresolv" >&5
7415 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 ac_save_LIBS="$LIBS"
7420 LIBS="-lresolv $LIBS"
7421 cat > conftest.$ac_ext <<EOF
7422 #line 7423 "configure"
7423 #include "confdefs.h"
7424 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7427 char gethostbyname_r();
7433 if { (eval echo configure:7434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7435 eval "ac_cv_lib_$ac_lib_var=yes"
7437 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7440 eval "ac_cv_lib_$ac_lib_var=no"
7443 LIBS="$ac_save_LIBS"
7446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7447 echo "$ac_t""yes" 1>&6
7448 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7450 cat >> confdefs.h <<EOF
7451 #define $ac_tr_lib 1
7454 LIBS="-lresolv $LIBS"
7457 echo "$ac_t""no" 1>&6
7464 # Find where sockets are (especially for Solaris)
7465 echo $ac_n "checking for socket""... $ac_c" 1>&6
7466 echo "configure:7467: checking for socket" >&5
7467 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* System header to define __stub macros and hopefully few prototypes,
7474 which can conflict with char socket(); below. */
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7483 /* The GNU C library defines this for functions which it implements
7484 to always fail with ENOSYS. Some functions are actually named
7485 something starting with __ and the normal name is an alias. */
7486 #if defined (__stub_socket) || defined (__stub___socket)
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7496 eval "ac_cv_func_socket=yes"
7498 echo "configure: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7501 eval "ac_cv_func_socket=no"
7506 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7507 echo "$ac_t""yes" 1>&6
7508 echo "$ac_t""using libc's socket" 1>&6
7510 echo "$ac_t""no" 1>&6
7511 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7512 echo "configure:7513: checking for socket in -lxnet" >&5
7513 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7517 ac_save_LIBS="$LIBS"
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 /* Override any gcc2 internal prototype to avoid an error. */
7523 /* We use char because int might match the return type of a gcc2
7524 builtin and then its argument prototype would still apply. */
7531 if { (eval echo configure:7532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7533 eval "ac_cv_lib_$ac_lib_var=yes"
7535 echo "configure: failed program was:" >&5
7536 cat conftest.$ac_ext >&5
7538 eval "ac_cv_lib_$ac_lib_var=no"
7541 LIBS="$ac_save_LIBS"
7544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7545 echo "$ac_t""yes" 1>&6
7546 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7547 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7548 cat >> confdefs.h <<EOF
7549 #define $ac_tr_lib 1
7555 echo "$ac_t""no" 1>&6
7558 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7559 echo "configure:7560: checking for socket in -lsocket" >&5
7560 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7562 echo $ac_n "(cached) $ac_c" 1>&6
7564 ac_save_LIBS="$LIBS"
7565 LIBS="-lsocket $LIBS"
7566 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 /* Override any gcc2 internal prototype to avoid an error. */
7570 /* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7578 if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7580 eval "ac_cv_lib_$ac_lib_var=yes"
7582 echo "configure: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7585 eval "ac_cv_lib_$ac_lib_var=no"
7588 LIBS="$ac_save_LIBS"
7591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7592 echo "$ac_t""yes" 1>&6
7593 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
7594 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7595 cat >> confdefs.h <<EOF
7596 #define $ac_tr_lib 1
7599 LIBS="-lsocket $LIBS"
7602 echo "$ac_t""no" 1>&6
7605 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
7606 echo "configure:7607: checking for socket in -linet" >&5
7607 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
7608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7611 ac_save_LIBS="$LIBS"
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* Override any gcc2 internal prototype to avoid an error. */
7617 /* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7625 if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7627 eval "ac_cv_lib_$ac_lib_var=yes"
7629 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7632 eval "ac_cv_lib_$ac_lib_var=no"
7635 LIBS="$ac_save_LIBS"
7638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7639 echo "$ac_t""yes" 1>&6
7640 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
7641 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7642 cat >> confdefs.h <<EOF
7643 #define $ac_tr_lib 1
7649 echo "$ac_t""no" 1>&6
7656 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7657 echo "configure:7658: checking for strftime" >&5
7658 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7661 cat > conftest.$ac_ext <<EOF
7662 #line 7663 "configure"
7663 #include "confdefs.h"
7664 /* System header to define __stub macros and hopefully few prototypes,
7665 which can conflict with char strftime(); below. */
7667 /* Override any gcc2 internal prototype to avoid an error. */
7668 /* We use char because int might match the return type of a gcc2
7669 builtin and then its argument prototype would still apply. */
7674 /* The GNU C library defines this for functions which it implements
7675 to always fail with ENOSYS. Some functions are actually named
7676 something starting with __ and the normal name is an alias. */
7677 #if defined (__stub_strftime) || defined (__stub___strftime)
7685 if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7687 eval "ac_cv_func_strftime=yes"
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7692 eval "ac_cv_func_strftime=no"
7697 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7698 echo "$ac_t""yes" 1>&6
7699 cat >> confdefs.h <<\EOF
7700 #define HAVE_STRFTIME 1
7704 echo "$ac_t""no" 1>&6
7705 # strftime is in -lintl on SCO UNIX.
7706 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7707 echo "configure:7708: checking for strftime in -lintl" >&5
7708 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7710 echo $ac_n "(cached) $ac_c" 1>&6
7712 ac_save_LIBS="$LIBS"
7714 cat > conftest.$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7717 /* Override any gcc2 internal prototype to avoid an error. */
7718 /* We use char because int might match the return type of a gcc2
7719 builtin and then its argument prototype would still apply. */
7726 if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7728 eval "ac_cv_lib_$ac_lib_var=yes"
7730 echo "configure: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7733 eval "ac_cv_lib_$ac_lib_var=no"
7736 LIBS="$ac_save_LIBS"
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7740 echo "$ac_t""yes" 1>&6
7741 cat >> confdefs.h <<\EOF
7742 #define HAVE_STRFTIME 1
7747 echo "$ac_t""no" 1>&6
7752 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7753 echo "configure:7754: checking for vprintf" >&5
7754 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7757 cat > conftest.$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7760 /* System header to define __stub macros and hopefully few prototypes,
7761 which can conflict with char vprintf(); below. */
7763 /* Override any gcc2 internal prototype to avoid an error. */
7764 /* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7770 /* The GNU C library defines this for functions which it implements
7771 to always fail with ENOSYS. Some functions are actually named
7772 something starting with __ and the normal name is an alias. */
7773 #if defined (__stub_vprintf) || defined (__stub___vprintf)
7781 if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7783 eval "ac_cv_func_vprintf=yes"
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7788 eval "ac_cv_func_vprintf=no"
7793 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7794 echo "$ac_t""yes" 1>&6
7795 cat >> confdefs.h <<\EOF
7796 #define HAVE_VPRINTF 1
7800 echo "$ac_t""no" 1>&6
7803 if test "$ac_cv_func_vprintf" != yes; then
7804 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7805 echo "configure:7806: checking for _doprnt" >&5
7806 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6
7809 cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure"
7811 #include "confdefs.h"
7812 /* System header to define __stub macros and hopefully few prototypes,
7813 which can conflict with char _doprnt(); below. */
7815 /* Override any gcc2 internal prototype to avoid an error. */
7816 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7822 /* The GNU C library defines this for functions which it implements
7823 to always fail with ENOSYS. Some functions are actually named
7824 something starting with __ and the normal name is an alias. */
7825 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7835 eval "ac_cv_func__doprnt=yes"
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7840 eval "ac_cv_func__doprnt=no"
7845 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
7846 echo "$ac_t""yes" 1>&6
7847 cat >> confdefs.h <<\EOF
7848 #define HAVE_DOPRNT 1
7852 echo "$ac_t""no" 1>&6
7857 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7858 # for constant arguments. Useless!
7859 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7860 echo "configure:7861: checking for working alloca.h" >&5
7861 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7864 cat > conftest.$ac_ext <<EOF
7865 #line 7866 "configure"
7866 #include "confdefs.h"
7869 char *p = alloca(2 * sizeof(int));
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7874 ac_cv_header_alloca_h=yes
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7879 ac_cv_header_alloca_h=no
7884 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7885 if test $ac_cv_header_alloca_h = yes; then
7886 cat >> confdefs.h <<\EOF
7887 #define HAVE_ALLOCA_H 1
7892 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7893 echo "configure:7894: checking for alloca" >&5
7894 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7897 cat > conftest.$ac_ext <<EOF
7898 #line 7899 "configure"
7899 #include "confdefs.h"
7902 # define alloca __builtin_alloca
7905 # include <malloc.h>
7906 # define alloca _alloca
7909 # include <alloca.h>
7914 # ifndef alloca /* predefined by HP cc +Olibcalls */
7923 char *p = (char *) alloca(1);
7926 if { (eval echo configure:7927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7928 ac_cv_func_alloca_works=yes
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7933 ac_cv_func_alloca_works=no
7938 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7939 if test $ac_cv_func_alloca_works = yes; then
7940 cat >> confdefs.h <<\EOF
7941 #define HAVE_ALLOCA 1
7946 if test $ac_cv_func_alloca_works = no; then
7947 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7948 # that cause trouble. Some versions do not even contain alloca or
7949 # contain a buggy version. If you still want to use their alloca,
7950 # use ar to extract alloca.o from them instead of compiling alloca.c.
7951 ALLOCA=alloca.${ac_objext}
7952 cat >> confdefs.h <<\EOF
7957 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7958 echo "configure:7959: checking whether alloca needs Cray hooks" >&5
7959 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7965 #if defined(CRAY) && ! defined(CRAY2)
7972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973 egrep "webecray" >/dev/null 2>&1; then
7984 echo "$ac_t""$ac_cv_os_cray" 1>&6
7985 if test $ac_cv_os_cray = yes; then
7986 for ac_func in _getb67 GETB67 getb67; do
7987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7988 echo "configure:7989: checking for $ac_func" >&5
7989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7990 echo $ac_n "(cached) $ac_c" 1>&6
7992 cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7995 /* System header to define __stub macros and hopefully few prototypes,
7996 which can conflict with char $ac_func(); below. */
7998 /* Override any gcc2 internal prototype to avoid an error. */
7999 /* We use char because int might match the return type of a gcc2
8000 builtin and then its argument prototype would still apply. */
8005 /* The GNU C library defines this for functions which it implements
8006 to always fail with ENOSYS. Some functions are actually named
8007 something starting with __ and the normal name is an alias. */
8008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8018 eval "ac_cv_func_$ac_func=yes"
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8023 eval "ac_cv_func_$ac_func=no"
8028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8029 echo "$ac_t""yes" 1>&6
8030 cat >> confdefs.h <<EOF
8031 #define CRAY_STACKSEG_END $ac_func
8036 echo "$ac_t""no" 1>&6
8042 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8043 echo "configure:8044: checking stack direction for C alloca" >&5
8044 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8045 echo $ac_n "(cached) $ac_c" 1>&6
8047 if test "$cross_compiling" = yes; then
8048 ac_cv_c_stack_direction=0
8050 cat > conftest.$ac_ext <<EOF
8051 #line 8052 "configure"
8052 #include "confdefs.h"
8053 find_stack_direction ()
8055 static char *addr = 0;
8060 return find_stack_direction ();
8063 return (&dummy > addr) ? 1 : -1;
8067 exit (find_stack_direction() < 0);
8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8072 ac_cv_c_stack_direction=1
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8077 ac_cv_c_stack_direction=-1
8084 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8085 cat >> confdefs.h <<EOF
8086 #define STACK_DIRECTION $ac_cv_c_stack_direction
8091 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8092 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8093 echo "configure:8094: checking for getmntent in -lsun" >&5
8094 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8096 echo $ac_n "(cached) $ac_c" 1>&6
8098 ac_save_LIBS="$LIBS"
8100 cat > conftest.$ac_ext <<EOF
8101 #line 8102 "configure"
8102 #include "confdefs.h"
8103 /* Override any gcc2 internal prototype to avoid an error. */
8104 /* We use char because int might match the return type of a gcc2
8105 builtin and then its argument prototype would still apply. */
8112 if { (eval echo configure:8113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8114 eval "ac_cv_lib_$ac_lib_var=yes"
8116 echo "configure: failed program was:" >&5
8117 cat conftest.$ac_ext >&5
8119 eval "ac_cv_lib_$ac_lib_var=no"
8122 LIBS="$ac_save_LIBS"
8125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8126 echo "$ac_t""yes" 1>&6
8129 echo "$ac_t""no" 1>&6
8130 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8131 echo "configure:8132: checking for getmntent in -lseq" >&5
8132 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8134 echo $ac_n "(cached) $ac_c" 1>&6
8136 ac_save_LIBS="$LIBS"
8138 cat > conftest.$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8141 /* Override any gcc2 internal prototype to avoid an error. */
8142 /* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8150 if { (eval echo configure:8151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8152 eval "ac_cv_lib_$ac_lib_var=yes"
8154 echo "configure: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8157 eval "ac_cv_lib_$ac_lib_var=no"
8160 LIBS="$ac_save_LIBS"
8163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8164 echo "$ac_t""yes" 1>&6
8167 echo "$ac_t""no" 1>&6
8168 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8169 echo "configure:8170: checking for getmntent in -lgen" >&5
8170 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 ac_save_LIBS="$LIBS"
8176 cat > conftest.$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8179 /* Override any gcc2 internal prototype to avoid an error. */
8180 /* We use char because int might match the return type of a gcc2
8181 builtin and then its argument prototype would still apply. */
8188 if { (eval echo configure:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8190 eval "ac_cv_lib_$ac_lib_var=yes"
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8195 eval "ac_cv_lib_$ac_lib_var=no"
8198 LIBS="$ac_save_LIBS"
8201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8202 echo "$ac_t""yes" 1>&6
8205 echo "$ac_t""no" 1>&6
8212 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8213 echo "configure:8214: checking for getmntent" >&5
8214 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8215 echo $ac_n "(cached) $ac_c" 1>&6
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8220 /* System header to define __stub macros and hopefully few prototypes,
8221 which can conflict with char getmntent(); below. */
8223 /* Override any gcc2 internal prototype to avoid an error. */
8224 /* We use char because int might match the return type of a gcc2
8225 builtin and then its argument prototype would still apply. */
8230 /* The GNU C library defines this for functions which it implements
8231 to always fail with ENOSYS. Some functions are actually named
8232 something starting with __ and the normal name is an alias. */
8233 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8241 if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8243 eval "ac_cv_func_getmntent=yes"
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8248 eval "ac_cv_func_getmntent=no"
8253 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8254 echo "$ac_t""yes" 1>&6
8255 cat >> confdefs.h <<\EOF
8256 #define HAVE_GETMNTENT 1
8260 echo "$ac_t""no" 1>&6
8263 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8264 echo "configure:8265: checking whether closedir returns void" >&5
8265 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8266 echo $ac_n "(cached) $ac_c" 1>&6
8268 if test "$cross_compiling" = yes; then
8269 ac_cv_func_closedir_void=yes
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 #include <sys/types.h>
8275 #include <$ac_header_dirent>
8276 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8278 if { (eval echo configure:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8280 ac_cv_func_closedir_void=no
8282 echo "configure: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8285 ac_cv_func_closedir_void=yes
8292 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8293 if test $ac_cv_func_closedir_void = yes; then
8294 cat >> confdefs.h <<\EOF
8295 #define CLOSEDIR_VOID 1
8300 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8301 echo "configure:8302: checking whether setpgrp takes no argument" >&5
8302 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8305 if test "$cross_compiling" = yes; then
8306 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8312 #ifdef HAVE_UNISTD_H
8317 * If this system has a BSD-style setpgrp, which takes arguments, exit
8322 if (setpgrp(1,1) == -1)
8329 if { (eval echo configure:8330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8331 ac_cv_func_setpgrp_void=no
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8336 ac_cv_func_setpgrp_void=yes
8344 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8345 if test $ac_cv_func_setpgrp_void = yes; then
8346 cat >> confdefs.h <<\EOF
8347 #define SETPGRP_VOID 1
8351 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8352 echo "configure:8353: checking for working fnmatch" >&5
8353 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8354 echo $ac_n "(cached) $ac_c" 1>&6
8356 # Some versions of Solaris or SCO have a broken fnmatch function.
8357 # So we run a test program. If we are cross-compiling, take no chance.
8358 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8359 if test "$cross_compiling" = yes; then
8360 ac_cv_func_fnmatch_works=no
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8365 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8369 ac_cv_func_fnmatch_works=yes
8371 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8374 ac_cv_func_fnmatch_works=no
8381 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8382 if test $ac_cv_func_fnmatch_works = yes; then
8383 cat >> confdefs.h <<\EOF
8384 #define HAVE_FNMATCH 1
8391 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8392 echo "configure:8393: checking for setlocale in -lxpg4" >&5
8393 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8395 echo $ac_n "(cached) $ac_c" 1>&6
8397 ac_save_LIBS="$LIBS"
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 /* Override any gcc2 internal prototype to avoid an error. */
8403 /* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8413 eval "ac_cv_lib_$ac_lib_var=yes"
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8418 eval "ac_cv_lib_$ac_lib_var=no"
8421 LIBS="$ac_save_LIBS"
8424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8425 echo "$ac_t""yes" 1>&6
8428 echo "$ac_t""no" 1>&6
8433 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8434 echo "configure:8435: checking for getpwnam in -lsun" >&5
8435 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8439 ac_save_LIBS="$LIBS"
8441 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure"
8443 #include "confdefs.h"
8444 /* Override any gcc2 internal prototype to avoid an error. */
8445 /* We use char because int might match the return type of a gcc2
8446 builtin and then its argument prototype would still apply. */
8453 if { (eval echo configure:8454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8455 eval "ac_cv_lib_$ac_lib_var=yes"
8457 echo "configure: failed program was:" >&5
8458 cat conftest.$ac_ext >&5
8460 eval "ac_cv_lib_$ac_lib_var=no"
8463 LIBS="$ac_save_LIBS"
8466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8467 echo "$ac_t""yes" 1>&6
8468 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8469 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8470 cat >> confdefs.h <<EOF
8471 #define $ac_tr_lib 1
8477 echo "$ac_t""no" 1>&6
8480 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8481 echo "configure:8482: checking for deflate in -lz" >&5
8482 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
8483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8484 echo $ac_n "(cached) $ac_c" 1>&6
8486 ac_save_LIBS="$LIBS"
8488 cat > conftest.$ac_ext <<EOF
8489 #line 8490 "configure"
8490 #include "confdefs.h"
8491 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8500 if { (eval echo configure:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8502 eval "ac_cv_lib_$ac_lib_var=yes"
8504 echo "configure: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8507 eval "ac_cv_lib_$ac_lib_var=no"
8510 LIBS="$ac_save_LIBS"
8513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8514 echo "$ac_t""yes" 1>&6
8517 echo "$ac_t""no" 1>&6
8521 if test x$FDLIBS = x-lz; then
8522 cat >> confdefs.h <<\EOF
8530 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
8531 echo "configure:8532: checking for pthread_create in -lpthread" >&5
8532 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8534 echo $ac_n "(cached) $ac_c" 1>&6
8536 ac_save_LIBS="$LIBS"
8537 LIBS="-lpthread $LIBS"
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 /* Override any gcc2 internal prototype to avoid an error. */
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8544 char pthread_create();
8550 if { (eval echo configure:8551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8552 eval "ac_cv_lib_$ac_lib_var=yes"
8554 echo "configure: failed program was:" >&5
8555 cat conftest.$ac_ext >&5
8557 eval "ac_cv_lib_$ac_lib_var=no"
8560 LIBS="$ac_save_LIBS"
8563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8564 echo "$ac_t""yes" 1>&6
8565 PTHREAD_LIB="-lpthread"
8567 echo "$ac_t""no" 1>&6
8568 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
8569 echo "configure:8570: checking for pthread_create in -lpthreads" >&5
8570 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
8571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8574 ac_save_LIBS="$LIBS"
8575 LIBS="-lpthreads $LIBS"
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8582 char pthread_create();
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8590 eval "ac_cv_lib_$ac_lib_var=yes"
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8595 eval "ac_cv_lib_$ac_lib_var=no"
8598 LIBS="$ac_save_LIBS"
8601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8602 echo "$ac_t""yes" 1>&6
8603 PTHREAD_LIB="-lpthreads"
8605 echo "$ac_t""no" 1>&6
8606 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
8607 echo "configure:8608: checking for pthread_create in -lc_r" >&5
8608 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
8609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8610 echo $ac_n "(cached) $ac_c" 1>&6
8612 ac_save_LIBS="$LIBS"
8614 cat > conftest.$ac_ext <<EOF
8615 #line 8616 "configure"
8616 #include "confdefs.h"
8617 /* Override any gcc2 internal prototype to avoid an error. */
8618 /* We use char because int might match the return type of a gcc2
8619 builtin and then its argument prototype would still apply. */
8620 char pthread_create();
8626 if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8628 eval "ac_cv_lib_$ac_lib_var=yes"
8630 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8633 eval "ac_cv_lib_$ac_lib_var=no"
8636 LIBS="$ac_save_LIBS"
8639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8640 echo "$ac_t""yes" 1>&6
8643 echo "$ac_t""no" 1>&6
8644 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
8645 echo "configure:8646: checking for pthread_create" >&5
8646 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 /* System header to define __stub macros and hopefully few prototypes,
8653 which can conflict with char pthread_create(); below. */
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8658 char pthread_create();
8662 /* The GNU C library defines this for functions which it implements
8663 to always fail with ENOSYS. Some functions are actually named
8664 something starting with __ and the normal name is an alias. */
8665 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
8673 if { (eval echo configure:8674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8675 eval "ac_cv_func_pthread_create=yes"
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8680 eval "ac_cv_func_pthread_create=no"
8685 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
8686 echo "$ac_t""yes" 1>&6
8689 echo "$ac_t""no" 1>&6
8703 cat >> confdefs.h <<\EOF
8710 LDFLAGS=${LDFLAGS--O}
8711 LIBS="${LIBS} ${SQL_LFLAGS}"
8713 CPPFLAGS="$CPPFLAGS"
8732 # Finally we set appropriate distribution specific
8733 # variables and defaults
8735 # PFILES are platform specific files
8736 PFILES="platforms/Makefile"
8743 PTHREAD_LIB="-lpthread -lexc"
8744 if test "${CC}" = "gcc" ; then
8751 TAPEDRIVE="/dev/nrmt0"
8754 DISTVER=`uname -a |awk '{print $3}'`
8755 TAPEDRIVE="/dev/nrst0"
8758 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
8759 TAPEDRIVE="/dev/nrst0"
8760 PSCMD="ps -e -o pid,command"
8761 hostname=`hostname -s`
8764 DISTVER=`uname -a |awk '{print $3}'`
8765 TAPEDRIVE="/dev/nrst0"
8767 CFLAGS="${CFLAGS} -mwindows"
8768 LDFLAGS="${LDFLAGS} -mwindows"
8771 DISTVER=`cat /etc/debian_version`
8772 TAPEDRIVE="/dev/nrst0"
8773 PSCMD="ps -e -o pid,command"
8774 hostname=`hostname -s`
8777 DISTVER=`uname -a |awk '{print $3}'`
8778 PTHREAD_LIB="-pthread"
8779 CFLAGS="${CFLAGS} -pthread"
8782 TAPEDRIVE="/dev/nrst0"
8783 PSCMD="ps -x -o pid,command"
8785 platforms/freebsd/Makefile \
8786 platforms/freebsd/bacula-fd \
8787 platforms/freebsd/bacula-sd \
8788 platforms/freebsd/bacula-dir"
8789 hostname=`hostname -s`
8793 TAPEDRIVE="/dev/rmt/0hnb"
8796 DISTVER=`uname -a |awk '{print $3}'`
8799 TAPEDRIVE="/dev/nrst0"
8800 PSCMD="ps -a -o pid,command"
8803 DISTVER=`uname -a |awk '{print $3}'`
8806 TAPEDRIVE="/dev/nrst0"
8807 PSCMD="ps -a -o pid,command"
8810 DISTVER=`cat /etc/redhat-release | grep release |\
8812 TAPEDRIVE="/dev/nst0"
8813 PSCMD="ps -e -o pid,command"
8815 platforms/redhat/Makefile \
8816 platforms/redhat/bacula-fd \
8817 platforms/redhat/bacula-sd \
8818 platforms/redhat/bacula-dir"
8819 hostname=`hostname -s`
8822 DISTVER=`cat /etc/slackware-version`
8823 TAPEDRIVE="/dev/nst0"
8824 PSCMD="ps -e -o pid,command"
8825 hostname=`hostname -s`
8829 TAPEDRIVE="/dev/rmt/0cbn"
8830 PSCMD="ps -e -o pid,comm"
8832 platforms/solaris/Makefile \
8833 platforms/solaris/bacula-fd \
8834 platforms/solaris/bacula-sd \
8835 platforms/solaris/bacula-dir"
8838 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
8840 TAPEDRIVE="/dev/nst0"
8841 PSCMD="ps -e -o pid,command"
8842 hostname=`hostname -s`
8847 TAPEDRIVE="/dev/nst0"
8848 PSCMD="ps -e -o pid,command"
8849 hostname=`hostname -s`
8853 TAPEDRIVE="/dev/nst0"
8856 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
8863 LIBS="$PTHREAD_LIB $LIBS"
8865 cat >> confdefs.h <<EOF
8869 cat >> confdefs.h <<EOF
8880 MCOMMON=./autoconf/Make.common
8884 cat > confcache <<\EOF
8885 # This file is a shell script that caches the results of configure
8886 # tests run on this system so they can be shared between configure
8887 # scripts and configure runs. It is not useful on other systems.
8888 # If it contains results you don't want to keep, you may remove or edit it.
8890 # By default, configure uses ./config.cache as the cache file,
8891 # creating it if it does not exist already. You can give configure
8892 # the --cache-file=FILE option to use a different cache file; that is
8893 # what configure does when it calls configure scripts in
8894 # subdirectories, so they share the cache.
8895 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8896 # config.status only pays attention to the cache file if you give it the
8897 # --recheck option to rerun configure.
8900 # The following way of writing the cache mishandles newlines in values,
8901 # but we know of no workaround that is simple, portable, and efficient.
8902 # So, don't put newlines in cache variables' values.
8903 # Ultrix sh set writes to stderr and can't be redirected directly,
8904 # and sets the high bit in the cache file unless we assign to the vars.
8906 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8908 # `set' does not quote correctly, so add quotes (double-quote substitution
8909 # turns \\\\ into \\, and sed turns \\ into \).
8911 -e "s/'/'\\\\''/g" \
8912 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8915 # `set' quotes correctly as required by POSIX, so do not add quotes.
8916 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8919 if cmp -s $cache_file confcache; then
8922 if test -w $cache_file; then
8923 echo "updating cache $cache_file"
8924 cat confcache > $cache_file
8926 echo "not updating unwritable cache $cache_file"
8931 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8934 # Let make expand exec_prefix.
8935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8937 # Any assignment to VPATH causes Sun make to only execute
8938 # the first set of double-colon rules, so remove it if not needed.
8939 # If there is a colon in the path, we need to keep it.
8940 if test "x$srcdir" = x.; then
8941 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8944 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8946 DEFS=-DHAVE_CONFIG_H
8948 # Without the "./", some shells look in PATH for config.status.
8949 : ${CONFIG_STATUS=./config.status}
8951 echo creating $CONFIG_STATUS
8952 rm -f $CONFIG_STATUS
8953 cat > $CONFIG_STATUS <<EOF
8955 # Generated automatically by configure.
8956 # Run this file to recreate the current configuration.
8957 # This directory was configured as follows,
8958 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8960 # $0 $ac_configure_args
8962 # Compiler output produced by configure, useful for debugging
8963 # configure, is in ./config.log if it exists.
8965 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8968 case "\$ac_option" in
8969 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8970 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8971 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8972 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8973 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8975 -help | --help | --hel | --he | --h)
8976 echo "\$ac_cs_usage"; exit 0 ;;
8977 *) echo "\$ac_cs_usage"; exit 1 ;;
8981 ac_given_srcdir=$srcdir
8982 ac_given_INSTALL="$INSTALL"
8984 trap 'rm -fr `echo "autoconf/Make.common \
8995 src/console/Makefile \
8996 src/console/console.conf \
8997 src/gnome-console/Makefile \
8998 src/gnome-console/gnome-console.conf \
9000 src/dird/bacula-dir.conf \
9002 src/stored/Makefile \
9003 src/stored/bacula-sd.conf \
9004 src/filed/Makefile \
9005 src/filed/bacula-fd.conf \
9006 src/filed/win32/Makefile \
9008 src/cats/make_mysql_tables \
9009 src/cats/drop_mysql_tables \
9010 src/cats/create_mysql_database \
9011 src/cats/grant_mysql_privileges \
9012 src/cats/make_sqlite_tables \
9013 src/cats/drop_sqlite_tables \
9014 src/cats/create_sqlite_database \
9016 src/cats/create_bdb_database \
9017 src/cats/make_bdb_tables \
9018 src/cats/drop_bdb_tables \
9019 src/findlib/Makefile \
9020 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9022 cat >> $CONFIG_STATUS <<EOF
9024 # Protect against being on the right side of a sed subst in config.status.
9025 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9026 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9030 s%@CFLAGS@%$CFLAGS%g
9031 s%@CPPFLAGS@%$CPPFLAGS%g
9032 s%@CXXFLAGS@%$CXXFLAGS%g
9033 s%@FFLAGS@%$FFLAGS%g
9035 s%@LDFLAGS@%$LDFLAGS%g
9037 s%@exec_prefix@%$exec_prefix%g
9038 s%@prefix@%$prefix%g
9039 s%@program_transform_name@%$program_transform_name%g
9040 s%@bindir@%$bindir%g
9041 s%@sbindir@%$sbindir%g
9042 s%@libexecdir@%$libexecdir%g
9043 s%@datadir@%$datadir%g
9044 s%@sysconfdir@%$sysconfdir%g
9045 s%@sharedstatedir@%$sharedstatedir%g
9046 s%@localstatedir@%$localstatedir%g
9047 s%@libdir@%$libdir%g
9048 s%@includedir@%$includedir%g
9049 s%@oldincludedir@%$oldincludedir%g
9050 s%@infodir@%$infodir%g
9051 s%@mandir@%$mandir%g
9052 s%@BUILD_DIR@%$BUILD_DIR%g
9053 s%@TRUEPRG@%$TRUEPRG%g
9054 s%@FALSEPRG@%$FALSEPRG%g
9056 s%@host_alias@%$host_alias%g
9057 s%@host_cpu@%$host_cpu%g
9058 s%@host_vendor@%$host_vendor%g
9059 s%@host_os@%$host_os%g
9060 s%@VERSION@%$VERSION%g
9062 s%@LSMDATE@%$LSMDATE%g
9066 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9067 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9068 s%@INSTALL_DATA@%$INSTALL_DATA%g
9069 s%@RANLIB@%$RANLIB%g
9079 s%@OPENSSL@%$OPENSSL%g
9080 s%@ARFLAGS@%$ARFLAGS%g
9081 s%@MAKE_SHELL@%$MAKE_SHELL%g
9082 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9083 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9084 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9085 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9086 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9087 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9088 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9089 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9090 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9091 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9092 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9093 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9094 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9095 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9096 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9097 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9098 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9099 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9100 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9101 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9102 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9103 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9104 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9105 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9106 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9107 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9108 s%@MSGFMT@%$MSGFMT%g
9109 s%@GNOME_LIBS@%$GNOME_LIBS%g
9110 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9111 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9112 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9113 s%@ZVT_LIBS@%$ZVT_LIBS%g
9114 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9115 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9116 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9117 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9118 s%@ORBIT_IDL@%$ORBIT_IDL%g
9119 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9120 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9121 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9122 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9123 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9124 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9125 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9126 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9127 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9128 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9129 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9130 s%@GNOME_DIR@%$GNOME_DIR%g
9131 s%@CONS_INC@%$CONS_INC%g
9132 s%@CONS_LIBS@%$CONS_LIBS%g
9133 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9134 s%@READLINE_SRC@%$READLINE_SRC%g
9135 s%@GMP_INC@%$GMP_INC%g
9136 s%@GMP_LIBS@%$GMP_LIBS%g
9137 s%@GMP_LDFLAGS@%$GMP_LDFLAGS%g
9138 s%@GMP_SRC@%$GMP_SRC%g
9140 s%@CWEB_INC@%$CWEB_INC%g
9141 s%@CWEB_LIBS@%$CWEB_LIBS%g
9142 s%@CWEB_LDFLAGS@%$CWEB_LDFLAGS%g
9143 s%@CWEB_SRC@%$CWEB_SRC%g
9144 s%@working_dir@%$working_dir%g
9145 s%@dump_email@%$dump_email%g
9146 s%@job_email@%$job_email%g
9147 s%@smtp_host@%$smtp_host%g
9148 s%@piddir@%$piddir%g
9149 s%@subsysdir@%$subsysdir%g
9150 s%@baseport@%$baseport%g
9151 s%@dir_port@%$dir_port%g
9152 s%@fd_port@%$fd_port%g
9153 s%@sd_port@%$sd_port%g
9154 s%@dir_password@%$dir_password%g
9155 s%@fd_password@%$fd_password%g
9156 s%@sd_password@%$sd_password%g
9157 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9158 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9159 s%@SQL_BINDIR@%$SQL_BINDIR%g
9161 s%@DB_NAME@%$DB_NAME%g
9162 s%@EXEEXT@%$EXEEXT%g
9163 s%@X_CFLAGS@%$X_CFLAGS%g
9164 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9165 s%@X_LIBS@%$X_LIBS%g
9166 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9167 s%@LIBOBJS@%$LIBOBJS%g
9168 s%@ALLOCA@%$ALLOCA%g
9169 s%@FDLIBS@%$FDLIBS%g
9171 s%@DINCLUDE@%$DINCLUDE%g
9173 s%@OBJLIST@%$OBJLIST%g
9174 s%@hostname@%$hostname%g
9175 s%@TAPEDRIVE@%$TAPEDRIVE%g
9178 s%@DISTNAME@%$DISTNAME%g
9179 s%@DISTVER@%$DISTVER%g
9180 /@MCOMMON@/r $MCOMMON
9186 cat >> $CONFIG_STATUS <<\EOF
9188 # Split the substitutions into bite-sized pieces for seds with
9189 # small command number limits, like on Digital OSF/1 and HP-UX.
9190 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9191 ac_file=1 # Number of current file.
9192 ac_beg=1 # First line for current file.
9193 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9196 while $ac_more_lines; do
9197 if test $ac_beg -gt 1; then
9198 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9200 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9202 if test ! -s conftest.s$ac_file; then
9204 rm -f conftest.s$ac_file
9206 if test -z "$ac_sed_cmds"; then
9207 ac_sed_cmds="sed -f conftest.s$ac_file"
9209 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9211 ac_file=`expr $ac_file + 1`
9213 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9216 if test -z "$ac_sed_cmds"; then
9221 cat >> $CONFIG_STATUS <<EOF
9223 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9234 src/console/Makefile \
9235 src/console/console.conf \
9236 src/gnome-console/Makefile \
9237 src/gnome-console/gnome-console.conf \
9239 src/dird/bacula-dir.conf \
9241 src/stored/Makefile \
9242 src/stored/bacula-sd.conf \
9243 src/filed/Makefile \
9244 src/filed/bacula-fd.conf \
9245 src/filed/win32/Makefile \
9247 src/cats/make_mysql_tables \
9248 src/cats/drop_mysql_tables \
9249 src/cats/create_mysql_database \
9250 src/cats/grant_mysql_privileges \
9251 src/cats/make_sqlite_tables \
9252 src/cats/drop_sqlite_tables \
9253 src/cats/create_sqlite_database \
9255 src/cats/create_bdb_database \
9256 src/cats/make_bdb_tables \
9257 src/cats/drop_bdb_tables \
9258 src/findlib/Makefile \
9261 cat >> $CONFIG_STATUS <<\EOF
9262 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9265 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9266 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9267 *) ac_file_in="${ac_file}.in" ;;
9270 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9272 # Remove last slash and all that follows it. Not all systems have dirname.
9273 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9274 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9275 # The file is in a subdirectory.
9276 test ! -d "$ac_dir" && mkdir "$ac_dir"
9277 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9278 # A "../" for each directory in $ac_dir_suffix.
9279 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9281 ac_dir_suffix= ac_dots=
9284 case "$ac_given_srcdir" in
9286 if test -z "$ac_dots"; then top_srcdir=.
9287 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9288 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9290 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9291 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9294 case "$ac_given_INSTALL" in
9295 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9296 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9299 echo creating "$ac_file"
9301 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9303 *Makefile*) ac_comsub="1i\\
9304 # $configure_input" ;;
9308 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9310 s%@configure_input@%$configure_input%g
9311 s%@srcdir@%$srcdir%g
9312 s%@top_srcdir@%$top_srcdir%g
9313 s%@INSTALL@%$INSTALL%g
9314 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9318 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9319 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9321 # ac_d sets the value in "#define NAME VALUE" lines.
9322 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9323 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9326 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9327 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9328 ac_uB='\([ ]\)%\1#\2define\3'
9331 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9332 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9333 ac_eB='$%\1#\2define\3'
9337 if test "${CONFIG_HEADERS+set}" != set; then
9339 cat >> $CONFIG_STATUS <<EOF
9340 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9342 cat >> $CONFIG_STATUS <<\EOF
9344 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9347 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9348 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9349 *) ac_file_in="${ac_file}.in" ;;
9352 echo creating $ac_file
9354 rm -f conftest.frag conftest.in conftest.out
9355 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9356 cat $ac_file_inputs > conftest.in
9360 # Transform confdefs.h into a sed script conftest.vals that substitutes
9361 # the proper values into config.h.in to produce config.h. And first:
9362 # Protect against being on the right side of a sed subst in config.status.
9363 # Protect against being in an unquoted here document in config.status.
9365 cat > conftest.hdr <<\EOF
9368 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9372 sed -n -f conftest.hdr confdefs.h > conftest.vals
9375 # This sed command replaces #undef with comments. This is necessary, for
9376 # example, in the case of _POSIX_SOURCE, which is predefined and required
9377 # on some systems where configure will not decide to define it.
9378 cat >> conftest.vals <<\EOF
9379 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9382 # Break up conftest.vals because some shells have a limit on
9383 # the size of here documents, and old seds have small limits too.
9388 ac_lines=`grep -c . conftest.vals`
9389 # grep -c gives empty output for an empty file on some AIX systems.
9390 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9391 # Write a limited-size here document to conftest.frag.
9392 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9393 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9395 sed -f conftest.frag conftest.in > conftest.out
9397 mv conftest.out conftest.in
9399 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9401 mv conftest.tail conftest.vals
9405 cat >> $CONFIG_STATUS <<\EOF
9406 rm -f conftest.frag conftest.h
9407 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9408 cat conftest.in >> conftest.h
9410 if cmp -s $ac_file conftest.h 2>/dev/null; then
9411 echo "$ac_file is unchanged"
9414 # Remove last slash and all that follows it. Not all systems have dirname.
9415 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9416 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9417 # The file is in a subdirectory.
9418 test ! -d "$ac_dir" && mkdir "$ac_dir"
9421 mv conftest.h $ac_file
9426 cat >> $CONFIG_STATUS <<EOF
9429 cat >> $CONFIG_STATUS <<\EOF
9430 (echo "Doing make of dependencies"; make depend;)
9434 chmod +x $CONFIG_STATUS
9435 rm -fr confdefs* $ac_clean_files
9436 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9439 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
9440 cp -f startit stopit btraceback btraceback.gdb src/console
9441 cp -f startit stopit btraceback btraceback.gdb src/dird
9442 cp -f startit stopit btraceback btraceback.gdb src/filed
9443 cp -f startit stopit btraceback btraceback.gdb src/lib
9444 cp -f startit stopit btraceback btraceback.gdb src/stored
9445 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
9446 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
9447 chmod 755 src/cats/create_mysql_database
9448 chmod 755 src/cats/grant_mysql_privileges
9449 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
9450 chmod 755 src/cats/create_sqlite_database
9451 chmod 755 src/cats/sqlite
9452 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
9453 chmod 755 src/cats/create_bdb_database
9456 Configuration on `date`:
9458 Host: ${DISTNAME} ${DISTVER}
9459 Bacula version: ${VERSION} (${DATE})
9460 Source code location: ${srcdir}
9461 Install binaries: ${sbindir}
9462 Install config files: ${sysconfdir}
9464 C++ Compiler: ${CXX}
9465 Compiler flags: ${CFLAGS}
9466 Linker flags: ${LDFLAGS}
9468 Database found: ${have_db}
9469 Database type: ${db_name}
9471 Job Output Email: ${job_email}
9472 Traceback Email: ${dump_email}
9473 SMTP Host Address: ${smtp_host}
9474 Director Port ${dir_port}
9475 File daemon Port ${fd_port}
9476 Storage daemon Port ${sd_port}
9477 Working directory ${working_dir}
9478 SQL binaries Directory ${SQL_BINDIR}
9480 readline support: ${got_readline} ${PRTREADLINE_SRC}
9481 cweb support: ${got_cweb} ${CWEB_SRC}
9482 TCP Wrappers support: ${TCPW_MSG}
9483 ZLIB support: ${have_zlib}
9484 enable-smartalloc: ${support_smartalloc}
9485 enable-gnome: ${support_gnome}
9486 gmp support: ${got_gmp} ${GMP_SRC}