3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-gnome enable build of gnome-console GUI [disabled]"
17 --with-gnome-includes Specify location of GNOME headers"
19 --with-gnome-libs Specify location of GNOME libs"
21 --with-gnome Specify prefix for GNOME files"
23 --enable-smartalloc enable smartalloc debugging support [disabled]"
25 --enable-static-tools enable static tape tools [disabled]"
27 --enable-static-fd enable static File daemon [disabled]"
29 --enable-static-sd enable static Storage daemon [disabled]"
31 --enable-static-dir enable static Director [disabled]"
33 --enable-static-cons enable static Console [disabled]"
35 --enable-client-only build client (File daemon) only [disabled]"
37 --disable-readline disable readline support [enabled]
40 --with-readline=DIR specify readline library directory"
42 --with-tcp-wrappers=DIR enable tcpwrappers support"
44 --with-working-dir=PATH specify path of Bacula working directory"
46 --with-scriptdir=PATH specify path of Bacula scripts directory"
48 --with-dump-email=EMAIL dump email address"
50 --with-job-email=EMAIL job output email address"
52 --with-smtp-host=HOST SMTP mail host address"
54 --with-pid-dir=PATH specify location of Bacula pid files"
56 --with-subsys-dir=PATH specify location of Bacula subsys file"
58 --with-baseport=PORT specify base port address for daemons"
60 --with-dir-password=PASSWORD specify Director's password"
62 --with-fd-password=PASSWORD specify Client's password"
64 --with-sd-password=PASSWORD specify Storage daemon's password"
67 Which DBMS do you want to use (please select only one):
68 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
69 install directory, default is to search through
70 a number of common places for the MySQL files."
73 Which DBMS do you want to use (please select only one):
74 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
75 install directory, default is to search through
76 a number of common places for the MySQL files."
79 Which DBMS do you want to use (please select only one):
80 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
81 install directory, default is to search through
82 a number of common places for the SQLite files."
84 --disable-largefile omit support for large files"
86 --with-x use the X Window System"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=src/version.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
603 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
604 if test -f $ac_dir/install-sh; then
606 ac_install_sh="$ac_aux_dir/install-sh -c"
608 elif test -f $ac_dir/install.sh; then
610 ac_install_sh="$ac_aux_dir/install.sh -c"
614 if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
617 ac_config_guess=$ac_aux_dir/config.guess
618 ac_config_sub=$ac_aux_dir/config.sub
619 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
628 # Extract the first word of "$ac_prog", so it can be a program name with args.
629 set dummy $ac_prog; ac_word=$2
630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" >&5
632 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
637 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
640 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
645 for ac_dir in $ac_dummy; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f $ac_dir/$ac_word; then
648 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
656 TRUEPRG="$ac_cv_path_TRUEPRG"
657 if test -n "$TRUEPRG"; then
658 echo "$ac_t""$TRUEPRG" 1>&6
660 echo "$ac_t""no" 1>&6
663 test -n "$TRUEPRG" && break
665 test -n "$TRUEPRG" || TRUEPRG=":"
669 # Extract the first word of "$ac_prog", so it can be a program name with args.
670 set dummy $ac_prog; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
678 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
681 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
697 FALSEPRG="$ac_cv_path_FALSEPRG"
698 if test -n "$FALSEPRG"; then
699 echo "$ac_t""$FALSEPRG" 1>&6
701 echo "$ac_t""no" 1>&6
704 test -n "$FALSEPRG" && break
706 test -n "$FALSEPRG" || FALSEPRG=":"
710 # Make sure we can run config.sub.
711 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
712 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
715 echo $ac_n "checking host system type""... $ac_c" 1>&6
716 echo "configure:717: checking host system type" >&5
719 case "$host_alias" in
723 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
724 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
726 *) host_alias=$nonopt ;;
730 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
731 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$host" 1>&6
737 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
738 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
739 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
740 echo "configuring for bacula $VERSION ($DATE)"
744 # Extract the first word of "gcc", so it can be a program name with args.
745 set dummy gcc; ac_word=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 if test -n "$CC"; then
752 ac_cv_prog_CC="$CC" # Let the user override the test.
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
756 for ac_dir in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
773 if test -z "$CC"; then
774 # Extract the first word of "cc", so it can be a program name with args.
775 set dummy cc; ac_word=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC="$CC" # Let the user override the test.
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
799 if test $ac_prog_rejected = yes; then
800 # We found a bogon in the path, so make sure we never use it.
801 set dummy $ac_cv_prog_CC
803 if test $# -gt 0; then
804 # We chose a different compiler from the bogus one.
805 # However, it has the same basename, so the bogon will be chosen
806 # first if we set CC to just the basename; use the full file name.
808 set dummy "$ac_dir/$ac_word" "$@"
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
825 # Extract the first word of "cl", so it can be a program name with args.
826 set dummy cl; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
856 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
859 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
860 echo "configure:861: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp='$CPP $CPPFLAGS'
865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling=$ac_cv_prog_cc_cross
869 cat > conftest.$ac_ext << EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
877 ac_cv_prog_cc_works=yes
878 # If we can't run a trivial program, we are probably using a cross compiler.
879 if (./conftest; exit) 2>/dev/null; then
880 ac_cv_prog_cc_cross=no
882 ac_cv_prog_cc_cross=yes
885 echo "configure: failed program was:" >&5
886 cat conftest.$ac_ext >&5
887 ac_cv_prog_cc_works=no
891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892 ac_cpp='$CPP $CPPFLAGS'
893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895 cross_compiling=$ac_cv_prog_cc_cross
897 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898 if test $ac_cv_prog_cc_works = no; then
899 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902 echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904 cross_compiling=$ac_cv_prog_cc_cross
906 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907 echo "configure:908: checking whether we are using GNU C" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.c <<EOF
916 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
923 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
925 if test $ac_cv_prog_gcc = yes; then
931 ac_test_CFLAGS="${CFLAGS+set}"
932 ac_save_CFLAGS="$CFLAGS"
934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
935 echo "configure:936: checking whether ${CC-cc} accepts -g" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 echo 'void f(){}' > conftest.c
940 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
949 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
950 if test "$ac_test_CFLAGS" = set; then
951 CFLAGS="$ac_save_CFLAGS"
952 elif test $ac_cv_prog_cc_g = yes; then
953 if test "$GCC" = yes; then
959 if test "$GCC" = yes; then
966 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
968 # Extract the first word of "$ac_prog", so it can be a program name with args.
969 set dummy $ac_prog; ac_word=$2
970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
971 echo "configure:972: checking for $ac_word" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 if test -n "$CXX"; then
976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
980 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_CXX="$ac_prog"
990 CXX="$ac_cv_prog_CXX"
991 if test -n "$CXX"; then
992 echo "$ac_t""$CXX" 1>&6
994 echo "$ac_t""no" 1>&6
997 test -n "$CXX" && break
999 test -n "$CXX" || CXX="gcc"
1002 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1007 ac_cpp='$CXXCPP $CPPFLAGS'
1008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1010 cross_compiling=$ac_cv_prog_cxx_cross
1012 cat > conftest.$ac_ext << EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1017 int main(){return(0);}
1019 if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1020 ac_cv_prog_cxx_works=yes
1021 # If we can't run a trivial program, we are probably using a cross compiler.
1022 if (./conftest; exit) 2>/dev/null; then
1023 ac_cv_prog_cxx_cross=no
1025 ac_cv_prog_cxx_cross=yes
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1030 ac_cv_prog_cxx_works=no
1034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1035 ac_cpp='$CPP $CPPFLAGS'
1036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1038 cross_compiling=$ac_cv_prog_cc_cross
1040 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1041 if test $ac_cv_prog_cxx_works = no; then
1042 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1044 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1045 echo "configure:1046: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1046 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1047 cross_compiling=$ac_cv_prog_cxx_cross
1049 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether we are using GNU C++" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 cat > conftest.C <<EOF
1059 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1066 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1068 if test $ac_cv_prog_gxx = yes; then
1074 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1075 ac_save_CXXFLAGS="$CXXFLAGS"
1077 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ${CXX-g++} accepts -g" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 echo 'void f(){}' > conftest.cc
1083 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1084 ac_cv_prog_cxx_g=yes
1092 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1093 if test "$ac_test_CXXFLAGS" = set; then
1094 CXXFLAGS="$ac_save_CXXFLAGS"
1095 elif test $ac_cv_prog_cxx_g = yes; then
1096 if test "$GXX" = yes; then
1102 if test "$GXX" = yes; then
1109 for ac_declaration in \
1111 '#include <stdlib.h>' \
1112 'extern "C" void std::exit (int) throw (); using std::exit;' \
1113 'extern "C" void std::exit (int); using std::exit;' \
1114 'extern "C" void exit (int) throw ();' \
1115 'extern "C" void exit (int);' \
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1127 if { (eval echo configure:1128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1144 if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1153 if test -n "$ac_declaration"; then
1154 echo '#ifdef __cplusplus' >>confdefs.h
1155 echo $ac_declaration >>confdefs.h
1156 echo '#endif' >>confdefs.h
1160 if test "x$CC" != xcc; then
1161 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether $CC and cc understand -c and -o together" >&5
1164 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether cc understands -c and -o together" >&5
1167 set dummy $CC; ac_cc="`echo $2 |
1168 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1169 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 echo 'foo(){}' > conftest.c
1173 # Make sure it works both with $CC and with simple cc.
1174 # We do the test twice because some compilers refuse to overwrite an
1175 # existing .o file with -o, though they will create one.
1176 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1177 if { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1178 test -f conftest.o && { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1180 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1181 if test "x$CC" != xcc; then
1182 # Test first that cc exists at all.
1183 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1184 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1185 if { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1186 test -f conftest.o && { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1191 # cc exists but doesn't like -o.
1192 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1197 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1202 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1205 echo "$ac_t""no" 1>&6
1206 cat >> confdefs.h <<\EOF
1207 #define NO_MINUS_C_MINUS_O 1
1211 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1212 echo "configure:1213: checking how to run the C preprocessor" >&5
1213 # On Suns, sometimes $CPP names a directory.
1214 if test -n "$CPP" && test -d "$CPP"; then
1217 if test -z "$CPP"; then
1218 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 # This must be in double quotes, not single quotes, because CPP may get
1222 # substituted into the Makefile and "${CC-cc}" will confuse make.
1224 # On the NeXT, cc -E runs the code through the compiler's parser,
1225 # not just through cpp.
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233 { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235 if test -z "$ac_err"; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1242 CPP="${CC-cc} -E -traditional-cpp"
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1250 { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1252 if test -z "$ac_err"; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1259 CPP="${CC-cc} -nologo -E"
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267 { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1269 if test -z "$ac_err"; then
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1283 ac_cv_prog_CPP="$CPP"
1285 CPP="$ac_cv_prog_CPP"
1287 ac_cv_prog_CPP="$CPP"
1289 echo "$ac_t""$CPP" 1>&6
1291 if test $ac_cv_prog_gcc = yes; then
1292 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether ${CC-cc} needs -traditional" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_pattern="Autoconf.*'x'"
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1305 egrep "$ac_pattern" >/dev/null 2>&1; then
1307 ac_cv_prog_gcc_traditional=yes
1310 ac_cv_prog_gcc_traditional=no
1315 if test $ac_cv_prog_gcc_traditional = no; then
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1323 egrep "$ac_pattern" >/dev/null 2>&1; then
1325 ac_cv_prog_gcc_traditional=yes
1332 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1333 if test $ac_cv_prog_gcc_traditional = yes; then
1334 CC="$CC -traditional"
1340 cat >> confdefs.h <<\EOF
1346 # Find a good install program. We prefer a C program (faster),
1347 # so one script is as good as another. But avoid the broken or
1348 # incompatible versions:
1349 # SysV /etc/install, /usr/sbin/install
1350 # SunOS /usr/etc/install
1351 # IRIX /sbin/install
1353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1358 echo "configure:1359: checking for a BSD compatible install" >&5
1359 if test -z "$INSTALL"; then
1360 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1364 for ac_dir in $PATH; do
1365 # Account for people who put trailing slashes in PATH elements.
1367 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1369 # OSF1 and SCO ODT 3.0 have their own names for install.
1370 # Don't use installbsd from OSF since it installs stuff as root
1372 for ac_prog in ginstall scoinst install; do
1373 if test -f $ac_dir/$ac_prog; then
1374 if test $ac_prog = install &&
1375 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1376 # AIX install. It has an incompatible calling convention.
1379 ac_cv_path_install="$ac_dir/$ac_prog -c"
1390 if test "${ac_cv_path_install+set}" = set; then
1391 INSTALL="$ac_cv_path_install"
1393 # As a last resort, use the slow shell script. We don't cache a
1394 # path for INSTALL within a source directory, because that will
1395 # break other packages using the cache if that directory is
1396 # removed, or if the path is relative.
1397 INSTALL="$ac_install_sh"
1400 echo "$ac_t""$INSTALL" 1>&6
1402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1403 # It thinks the first close brace ends the variable substitution.
1404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1410 # Extract the first word of "ranlib", so it can be a program name with args.
1411 set dummy ranlib; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$RANLIB"; then
1418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1422 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_RANLIB="ranlib"
1430 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1433 RANLIB="$ac_cv_prog_RANLIB"
1434 if test -n "$RANLIB"; then
1435 echo "$ac_t""$RANLIB" 1>&6
1437 echo "$ac_t""no" 1>&6
1440 # Extract the first word of "mv", so it can be a program name with args.
1441 set dummy mv; ac_word=$2
1442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1443 echo "configure:1444: checking for $ac_word" >&5
1444 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1449 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1452 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1457 for ac_dir in $ac_dummy; do
1458 test -z "$ac_dir" && ac_dir=.
1459 if test -f $ac_dir/$ac_word; then
1460 ac_cv_path_MV="$ac_dir/$ac_word"
1465 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1470 if test -n "$MV"; then
1471 echo "$ac_t""$MV" 1>&6
1473 echo "$ac_t""no" 1>&6
1476 # Extract the first word of "rm", so it can be a program name with args.
1477 set dummy rm; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1485 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1488 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_path_RM="$ac_dir/$ac_word"
1501 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1506 if test -n "$RM"; then
1507 echo "$ac_t""$RM" 1>&6
1509 echo "$ac_t""no" 1>&6
1512 # Extract the first word of "cp", so it can be a program name with args.
1513 set dummy cp; ac_word=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1516 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1521 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1524 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_path_CP="$ac_dir/$ac_word"
1537 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1542 if test -n "$CP"; then
1543 echo "$ac_t""$CP" 1>&6
1545 echo "$ac_t""no" 1>&6
1548 # Extract the first word of "sed", so it can be a program name with args.
1549 set dummy sed; ac_word=$2
1550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_word" >&5
1552 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1557 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1560 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 for ac_dir in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1568 ac_cv_path_SED="$ac_dir/$ac_word"
1573 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1577 SED="$ac_cv_path_SED"
1578 if test -n "$SED"; then
1579 echo "$ac_t""$SED" 1>&6
1581 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "awk", so it can be a program name with args.
1585 set dummy awk; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1593 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1596 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 ac_cv_path_AWK="$ac_dir/$ac_word"
1609 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1613 AWK="$ac_cv_path_AWK"
1614 if test -n "$AWK"; then
1615 echo "$ac_t""$AWK" 1>&6
1617 echo "$ac_t""no" 1>&6
1620 # Extract the first word of "echo", so it can be a program name with args.
1621 set dummy echo; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1629 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1632 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1637 for ac_dir in $ac_dummy; do
1638 test -z "$ac_dir" && ac_dir=.
1639 if test -f $ac_dir/$ac_word; then
1640 ac_cv_path_ECHO="$ac_dir/$ac_word"
1645 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1649 ECHO="$ac_cv_path_ECHO"
1650 if test -n "$ECHO"; then
1651 echo "$ac_t""$ECHO" 1>&6
1653 echo "$ac_t""no" 1>&6
1656 # Extract the first word of "cmp", so it can be a program name with args.
1657 set dummy cmp; ac_word=$2
1658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_word" >&5
1660 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1665 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1668 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1673 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_path_CMP="$ac_dir/$ac_word"
1681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1685 CMP="$ac_cv_path_CMP"
1686 if test -n "$CMP"; then
1687 echo "$ac_t""$CMP" 1>&6
1689 echo "$ac_t""no" 1>&6
1692 # Extract the first word of "tbl", so it can be a program name with args.
1693 set dummy tbl; ac_word=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5
1696 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1701 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1704 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 for ac_dir in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir=.
1711 if test -f $ac_dir/$ac_word; then
1712 ac_cv_path_TBL="$ac_dir/$ac_word"
1717 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1721 TBL="$ac_cv_path_TBL"
1722 if test -n "$TBL"; then
1723 echo "$ac_t""$TBL" 1>&6
1725 echo "$ac_t""no" 1>&6
1728 # Extract the first word of "ar", so it can be a program name with args.
1729 set dummy ar; ac_word=$2
1730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_word" >&5
1732 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1737 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1740 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1748 ac_cv_path_AR="$ac_dir/$ac_word"
1753 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1758 if test -n "$AR"; then
1759 echo "$ac_t""$AR" 1>&6
1761 echo "$ac_t""no" 1>&6
1764 # Extract the first word of "ranlib", so it can be a program name with args.
1765 set dummy ranlib; ac_word=$2
1766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1767 echo "configure:1768: checking for $ac_word" >&5
1768 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1773 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1776 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1789 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1793 RANLIB="$ac_cv_path_RANLIB"
1794 if test -n "$RANLIB"; then
1795 echo "$ac_t""$RANLIB" 1>&6
1797 echo "$ac_t""no" 1>&6
1800 # Extract the first word of "openssl", so it can be a program name with args.
1801 set dummy openssl; ac_word=$2
1802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_word" >&5
1804 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1809 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1812 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1817 for ac_dir in $ac_dummy; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/$ac_word; then
1820 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1825 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1829 OPENSSL="$ac_cv_path_OPENSSL"
1830 if test -n "$OPENSSL"; then
1831 echo "$ac_t""$OPENSSL" 1>&6
1833 echo "$ac_t""no" 1>&6
1837 test -n "$ARFLAG" || ARFLAGS="cr"
1850 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1851 echo "configure:1852: checking for Operating System" >&5
1852 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1853 echo "configure:1854: checking for Cygwin environment" >&5
1854 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1864 #define __CYGWIN__ __CYGWIN32__
1869 if { (eval echo configure:1870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1882 echo "$ac_t""$ac_cv_cygwin" 1>&6
1884 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1885 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1891 HAVE_SUN_OS_FALSE='#'
1893 HAVE_SUN_OS_TRUE='#'
1896 cat >> confdefs.h <<\EOF
1897 #define HAVE_SUN_OS 1
1905 HAVE_SUN_OS_FALSE='#'
1907 HAVE_SUN_OS_TRUE='#'
1912 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1918 HAVE_OSF1_OS_FALSE='#'
1920 HAVE_OSF1_OS_TRUE='#'
1923 cat >> confdefs.h <<\EOF
1924 #define HAVE_OSF1_OS 1
1932 HAVE_OSF1_OS_FALSE='#'
1934 HAVE_OSF1_OS_TRUE='#'
1939 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1945 HAVE_AIX_OS_FALSE='#'
1947 HAVE_AIX_OS_TRUE='#'
1950 cat >> confdefs.h <<\EOF
1951 #define HAVE_AIX_OS 1
1959 HAVE_AIX_OS_FALSE='#'
1961 HAVE_AIX_OS_TRUE='#'
1966 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1972 HAVE_HPUX_OS_FALSE='#'
1974 HAVE_HPUX_OS_TRUE='#'
1977 cat >> confdefs.h <<\EOF
1978 #define HAVE_HPUX_OS 1
1986 HAVE_HPUX_OS_FALSE='#'
1988 HAVE_HPUX_OS_TRUE='#'
1993 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1999 HAVE_LINUX_OS_FALSE='#'
2001 HAVE_LINUX_OS_TRUE='#'
2002 HAVE_LINUX_OS_FALSE=
2004 cat >> confdefs.h <<\EOF
2005 #define HAVE_LINUX_OS 1
2013 HAVE_LINUX_OS_FALSE='#'
2015 HAVE_LINUX_OS_TRUE='#'
2016 HAVE_LINUX_OS_FALSE=
2020 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2025 HAVE_FREEBSD_OS_TRUE=
2026 HAVE_FREEBSD_OS_FALSE='#'
2028 HAVE_FREEBSD_OS_TRUE='#'
2029 HAVE_FREEBSD_OS_FALSE=
2031 cat >> confdefs.h <<\EOF
2032 #define HAVE_FREEBSD_OS 1
2039 HAVE_FREEBSD_OS_TRUE=
2040 HAVE_FREEBSD_OS_FALSE='#'
2042 HAVE_FREEBSD_OS_TRUE='#'
2043 HAVE_FREEBSD_OS_FALSE=
2047 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2052 HAVE_NETBSD_OS_TRUE=
2053 HAVE_NETBSD_OS_FALSE='#'
2055 HAVE_NETBSD_OS_TRUE='#'
2056 HAVE_NETBSD_OS_FALSE=
2058 cat >> confdefs.h <<\EOF
2059 #define HAVE_NETBSD_OS 1
2066 HAVE_NETBSD_OS_TRUE=
2067 HAVE_NETBSD_OS_FALSE='#'
2069 HAVE_NETBSD_OS_TRUE='#'
2070 HAVE_NETBSD_OS_FALSE=
2074 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2079 HAVE_OPENBSD_OS_TRUE=
2080 HAVE_OPENBSD_OS_FALSE='#'
2082 HAVE_OPENBSD_OS_TRUE='#'
2083 HAVE_OPENBSD_OS_FALSE=
2085 cat >> confdefs.h <<\EOF
2086 #define HAVE_OPENBSD_OS 1
2093 HAVE_OPENBSD_OS_TRUE=
2094 HAVE_OPENBSD_OS_FALSE='#'
2096 HAVE_OPENBSD_OS_TRUE='#'
2097 HAVE_OPENBSD_OS_FALSE=
2101 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2107 HAVE_BSDI_OS_FALSE='#'
2109 HAVE_BSDI_OS_TRUE='#'
2112 cat >> confdefs.h <<\EOF
2113 #define HAVE_BSDI_OS 1
2121 HAVE_BSDI_OS_FALSE='#'
2123 HAVE_BSDI_OS_TRUE='#'
2128 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2134 HAVE_SGI_OS_FALSE='#'
2136 HAVE_SGI_OS_TRUE='#'
2139 cat >> confdefs.h <<\EOF
2140 #define HAVE_SGI_OS 1
2148 HAVE_SGI_OS_FALSE='#'
2150 HAVE_SGI_OS_TRUE='#'
2155 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2161 HAVE_IRIX_OS_FALSE='#'
2163 HAVE_IRIX_OS_TRUE='#'
2166 cat >> confdefs.h <<\EOF
2167 #define HAVE_IRIX_OS 1
2175 HAVE_IRIX_OS_FALSE='#'
2177 HAVE_IRIX_OS_TRUE='#'
2182 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2187 HAVE_DARWIN_OS_TRUE=
2188 HAVE_DARWIN_OS_FALSE='#'
2190 HAVE_DARWIN_OS_TRUE='#'
2191 HAVE_DARWIN_OS_FALSE=
2193 cat >> confdefs.h <<\EOF
2194 #define HAVE_DARWIN_OS 1
2201 HAVE_DARWIN_OS_TRUE=
2202 HAVE_DARWIN_OS_FALSE='#'
2204 HAVE_DARWIN_OS_TRUE='#'
2205 HAVE_DARWIN_OS_FALSE=
2209 echo "$ac_t""" "" 1>&6
2212 # -----------------------------------------------------------
2213 # ----------------------------------------------------------
2214 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2215 echo "configure:2216: checking for Operating System Distribution" >&5
2216 if test "x$DISTNAME" != "x"
2218 echo "distname set to $DISTNAME"
2219 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2222 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2225 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2228 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2231 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2234 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2237 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2240 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2243 elif test -f /etc/SuSE-release
2246 elif test -d /etc/SuSEconfig
2249 elif test -d /usr/src/OpenLinux
2252 elif test -f /etc/redhat-release
2255 elif test -f /etc/gentoo-release
2258 elif test -f /etc/debian_version
2261 elif test -f /etc/slackware-version
2264 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2267 elif test "$ac_cv_cygwin" = yes
2270 cat >> confdefs.h <<\EOF
2271 #define HAVE_CYGWIN 1
2277 echo "$ac_t""" "" 1>&6
2280 # -----------------------------------------------------------
2281 # ----------------------------------------------------------
2286 INSIDE_GNOME_COMMON_TRUE=
2287 INSIDE_GNOME_COMMON_FALSE='#'
2289 INSIDE_GNOME_COMMON_TRUE='#'
2290 INSIDE_GNOME_COMMON_FALSE=
2293 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2295 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2298 # ------------------------------------------------------------------
2299 # If the user has not set --prefix, we set our default to nothing.
2300 # In this case, if the user has not set --sysconfdir, we set it
2301 # to the package default of /etc/bacula. If either --prefix or
2302 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2303 # ------------------------------------------------------------------
2304 if test x${prefix} = xNONE ; then
2305 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2306 sysconfdir=/etc/bacula
2310 sysconfdir=`eval echo ${sysconfdir}`
2312 # -------------------------------------------------------------------------
2313 # If the user has not set --exec-prefix, we default to ${prefix}
2314 # -------------------------------------------------------------------------
2315 if test x${exec_prefix} = xNONE ; then
2316 exec_prefix=${prefix}
2319 # ------------------------------------------------------------------
2320 # If the user has not set --sbindir, we set our default as /sbin
2321 # ------------------------------------------------------------------
2322 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2323 sbindir=${exec_prefix}/sbin
2325 sbindir=`eval echo ${sbindir}`
2327 # ------------------------------------------------------------------
2328 # All list of languages for which a translation exist. Each
2329 # language is separated by a space.
2330 # ------------------------------------------------------------------
2333 for ac_prog in msgfmt
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_word" >&5
2339 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2344 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2347 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2352 for ac_dir in $ac_dummy; do
2353 test -z "$ac_dir" && ac_dir=.
2354 if test -f $ac_dir/$ac_word; then
2355 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2363 MSGFMT="$ac_cv_path_MSGFMT"
2364 if test -n "$MSGFMT"; then
2365 echo "$ac_t""$MSGFMT" 1>&6
2367 echo "$ac_t""no" 1>&6
2370 test -n "$MSGFMT" && break
2372 test -n "$MSGFMT" || MSGFMT="no"
2374 if test "$MSGFMT" = "no"
2376 echo 'msgfmt program not found, disabling NLS !'
2378 USE_INCLUDED_LIBINTL=no
2386 support_smartalloc=yes
2387 support_readline=yes
2389 support_static_tools=no
2390 support_static_fd=no
2391 support_static_sd=no
2392 support_static_dir=no
2393 support_static_cons=no
2394 build_client_only=no
2400 # -------------------------------------------
2401 # gnome (default off)
2402 # -------------------------------------------
2403 # Check whether --enable-gnome or --disable-gnome was given.
2404 if test "${enable_gnome+set}" = set; then
2405 enableval="$enable_gnome"
2406 if test x$enableval = xyes; then
2413 if test x$support_gnome = xyes; then
2424 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2425 if test "${with_gnome_includes+set}" = set; then
2426 withval="$with_gnome_includes"
2428 CFLAGS="$CFLAGS -I$withval"
2433 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2434 if test "${with_gnome_libs+set}" = set; then
2435 withval="$with_gnome_libs"
2437 LDFLAGS="$LDFLAGS -L$withval"
2438 gnome_prefix=$withval
2443 # Check whether --with-gnome or --without-gnome was given.
2444 if test "${with_gnome+set}" = set; then
2445 withval="$with_gnome"
2446 if test x$withval = xyes; then
2450 if test "x$withval" = xno; then
2454 LDFLAGS="$LDFLAGS -L$withval/lib"
2455 CFLAGS="$CFLAGS -I$withval/include"
2456 gnome_prefix=$withval/lib
2464 if test "x$want_gnome" = xyes; then
2466 # Extract the first word of "gnome-config", so it can be a program name with args.
2467 set dummy gnome-config; ac_word=$2
2468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_word" >&5
2470 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 case "$GNOME_CONFIG" in
2475 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2478 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2483 for ac_dir in $ac_dummy; do
2484 test -z "$ac_dir" && ac_dir=.
2485 if test -f $ac_dir/$ac_word; then
2486 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2491 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2495 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2496 if test -n "$GNOME_CONFIG"; then
2497 echo "$ac_t""$GNOME_CONFIG" 1>&6
2499 echo "$ac_t""no" 1>&6
2502 if test "$GNOME_CONFIG" = "no"; then
2503 no_gnome_config="yes"
2505 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2506 echo "configure:2507: checking if $GNOME_CONFIG works" >&5
2507 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2508 echo "$ac_t""yes" 1>&6
2511 # Extract the first word of "orbit-config", so it can be a program name with args.
2512 set dummy orbit-config; ac_word=$2
2513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2514 echo "configure:2515: checking for $ac_word" >&5
2515 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 case "$ORBIT_CONFIG" in
2520 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2523 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2528 for ac_dir in $ac_dummy; do
2529 test -z "$ac_dir" && ac_dir=.
2530 if test -f $ac_dir/$ac_word; then
2531 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2536 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2540 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2541 if test -n "$ORBIT_CONFIG"; then
2542 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 # Extract the first word of "orbit-idl", so it can be a program name with args.
2548 set dummy orbit-idl; ac_word=$2
2549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_word" >&5
2551 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 case "$ORBIT_IDL" in
2556 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2559 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2564 for ac_dir in $ac_dummy; do
2565 test -z "$ac_dir" && ac_dir=.
2566 if test -f $ac_dir/$ac_word; then
2567 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2572 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2576 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2577 if test -n "$ORBIT_IDL"; then
2578 echo "$ac_t""$ORBIT_IDL" 1>&6
2580 echo "$ac_t""no" 1>&6
2583 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2584 echo "configure:2585: checking for working ORBit environment" >&5
2585 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2589 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2590 gnome_cv_orbit_found=no
2592 gnome_cv_orbit_found=yes
2597 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2600 if test x$gnome_cv_orbit_found = xyes; then
2602 HAVE_ORBIT_FALSE='#'
2607 if test x$gnome_cv_orbit_found = xyes; then
2609 ORBIT_CFLAGS=`orbit-config --cflags client server`
2610 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2614 if test xfail = xfailure; then
2615 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2619 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2620 echo "configure:2621: checking for gnorba libraries" >&5
2621 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2625 gnome_cv_gnorba_found=no
2626 if test x$gnome_cv_orbit_found = xyes; then
2627 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2628 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2629 if test -n "$GNORBA_LIBS"; then
2630 gnome_cv_gnorba_found=yes
2636 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2639 if test x$gnome_cv_gnorba_found = xyes; then
2641 HAVE_GNORBA_FALSE='#'
2643 HAVE_GNORBA_TRUE='#'
2646 if test x$gnome_cv_orbit_found = xyes; then
2648 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2649 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2653 if test xfail = xfailure; then
2654 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2658 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2659 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2660 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2661 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2662 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2663 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2664 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2667 echo "$ac_t""no" 1>&6
2668 no_gnome_config="yes"
2672 if test x$exec_prefix = xNONE; then
2673 if test x$prefix = xNONE; then
2674 gnome_prefix=$ac_default_prefix/lib
2676 gnome_prefix=$prefix/lib
2679 gnome_prefix=`eval echo \`echo $libdir\``
2682 if test "$no_gnome_config" = "yes"; then
2683 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2684 echo "configure:2685: checking for gnomeConf.sh file in $gnome_prefix" >&5
2685 if test -f $gnome_prefix/gnomeConf.sh; then
2686 echo "$ac_t""found" 1>&6
2687 echo "loading gnome configuration from" \
2688 "$gnome_prefix/gnomeConf.sh"
2689 . $gnome_prefix/gnomeConf.sh
2692 echo "$ac_t""not found" 1>&6
2693 if test xfail = xfail; then
2694 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2703 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2704 echo "configure:2705: checking extra library \"$i\"" >&5
2708 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2709 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2712 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2713 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2716 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2717 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2719 echo "$ac_t""unknown library" 1>&6
2721 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2722 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2727 GNOME_DIR=src/gnome-console
2732 # -------------------------------------------
2733 # smartalloc (default off)
2734 # -------------------------------------------
2735 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2736 if test "${enable_smartalloc+set}" = set; then
2737 enableval="$enable_smartalloc"
2738 if test x$enableval = xno; then
2739 support_smartalloc=no
2744 if test x$support_smartalloc = xyes; then
2745 cat >> confdefs.h <<\EOF
2746 #define SMARTALLOC 1
2751 # -------------------------------------------
2752 # static-tools (default off)
2753 # -------------------------------------------
2754 # Check whether --enable-static-tools or --disable-static-tools was given.
2755 if test "${enable_static_tools+set}" = set; then
2756 enableval="$enable_static_tools"
2757 if test x$enableval = xyes; then
2758 support_static_tools=yes
2764 if test x$support_static_tools = xyes; then
2765 TTOOL_LDFLAGS="-static"
2769 # -------------------------------------------
2770 # static-fd (default off)
2771 # -------------------------------------------
2772 # Check whether --enable-static-fd or --disable-static-fd was given.
2773 if test "${enable_static_fd+set}" = set; then
2774 enableval="$enable_static_fd"
2775 if test x$enableval = xyes; then
2776 support_static_fd=yes
2782 if test x$support_static_fd = xyes; then
2783 STATIC_FD="static-bacula-fd"
2787 # -------------------------------------------
2788 # static-sd (default off)
2789 # -------------------------------------------
2790 # Check whether --enable-static-sd or --disable-static-sd was given.
2791 if test "${enable_static_sd+set}" = set; then
2792 enableval="$enable_static_sd"
2793 if test x$enableval = xyes; then
2794 support_static_sd=yes
2800 if test x$support_static_sd = xyes; then
2801 STATIC_SD="static-bacula-sd"
2805 # -------------------------------------------
2806 # static-dir (default off)
2807 # -------------------------------------------
2808 # Check whether --enable-static-dir or --disable-static-dir was given.
2809 if test "${enable_static_dir+set}" = set; then
2810 enableval="$enable_static_dir"
2811 if test x$enableval = xyes; then
2812 support_static_dir=yes
2818 if test x$support_static_dir = xyes; then
2819 STATIC_DIR="static-bacula-dir"
2823 # -------------------------------------------
2824 # static-cons (default off)
2825 # -------------------------------------------
2826 # Check whether --enable-static-cons or --disable-static-cons was given.
2827 if test "${enable_static_cons+set}" = set; then
2828 enableval="$enable_static_cons"
2829 if test x$enableval = xyes; then
2830 support_static_cons=yes
2836 if test x$support_static_cons = xyes; then
2837 STATIC_CONS="static-console"
2841 # -------------------------------------------
2842 # client_only (default off)
2843 # -------------------------------------------
2844 # Check whether --enable-client-only or --disable-client-only was given.
2845 if test "${enable_client_only+set}" = set; then
2846 enableval="$enable_client_only"
2847 if test x$enableval = xyes; then
2848 build_client_only=yes
2852 if test x$build_client_only = xno; then
2859 # ---------------------------------------------------
2860 # Check for readline support/directory (default on)
2861 # ---------------------------------------------------
2862 # this allows you to turn it completely off
2863 # Check whether --enable-readline or --disable-readline was given.
2864 if test "${enable_readline+set}" = set; then
2865 enableval="$enable_readline"
2866 if test x$enableval = xno; then
2874 if test x$support_readline = xyes; then
2875 # Check whether --with-readline or --without-readline was given.
2876 if test "${with_readline+set}" = set; then
2877 withval="$with_readline"
2879 case "$with_readline" in
2882 if test "$with_readline" != "yes"; then
2883 CONS_INC="-I$with_readline"
2884 CONS_LDFLAGS="-L$with_readline"
2886 with_readline="/usr/include/readline"
2888 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2889 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2890 echo "configure:2891: checking for $with_readline/readline.h" >&5
2891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 #include <$with_readline/readline.h>
2899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2900 { (eval echo configure:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2902 if test -z "$ac_err"; then
2904 eval "ac_cv_header_$ac_safe=yes"
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2910 eval "ac_cv_header_$ac_safe=no"
2914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2916 echo "$ac_t""yes" 1>&6
2917 cat >> confdefs.h <<\EOF
2918 #define HAVE_READLINE 1
2921 CONS_LIBS="-lreadline -ltermcap"
2925 echo "$ac_t""no" 1>&6
2926 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2936 # check for standard readline library
2937 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2938 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2939 echo "configure:2940: checking for /usr/include/readline/readline.h" >&5
2940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 #include </usr/include/readline/readline.h>
2948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2949 { (eval echo configure:2950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2951 if test -z "$ac_err"; then
2953 eval "ac_cv_header_$ac_safe=yes"
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 eval "ac_cv_header_$ac_safe=no"
2963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2964 echo "$ac_t""yes" 1>&6
2965 echo "$ac_t""yes" 1>&6
2966 cat >> confdefs.h <<\EOF
2967 #define HAVE_READLINE 1
2971 CONS_INC="-I/usr/include/readline"
2972 CONS_LIBS="-lreadline -ltermcap"
2975 echo "$ac_t""no" 1>&6
2977 # Did not find starndard library, so user our own
2978 echo "$ac_t""yes" 1>&6
2979 cat >> confdefs.h <<\EOF
2980 #define HAVE_READLINE 1
2984 CONS_INC="-I${TOP_DIR}/depkgs"
2985 CONS_LIBS="-lreadline -lhistory -ltermcap"
2986 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2987 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
3001 # Minimal stuff for readline Makefile configuration
3005 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3006 echo "configure:3007: checking whether stat file-mode macros are broken" >&5
3007 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 cat > conftest.$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3013 #include <sys/types.h>
3014 #include <sys/stat.h>
3016 #if defined(S_ISBLK) && defined(S_IFDIR)
3017 # if S_ISBLK (S_IFDIR)
3022 #if defined(S_ISBLK) && defined(S_IFCHR)
3023 # if S_ISBLK (S_IFCHR)
3028 #if defined(S_ISLNK) && defined(S_IFREG)
3029 # if S_ISLNK (S_IFREG)
3034 #if defined(S_ISSOCK) && defined(S_IFREG)
3035 # if S_ISSOCK (S_IFREG)
3041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3042 egrep "You lose" >/dev/null 2>&1; then
3044 ac_cv_header_stat_broken=yes
3047 ac_cv_header_stat_broken=no
3053 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3054 if test $ac_cv_header_stat_broken = yes; then
3055 cat >> confdefs.h <<\EOF
3056 #define STAT_MACROS_BROKEN 1
3062 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3065 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_hdr that defines DIR" >&5
3067 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 #include <sys/types.h>
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 eval "ac_cv_header_dirent_$ac_safe=yes"
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3086 eval "ac_cv_header_dirent_$ac_safe=no"
3090 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3093 cat >> confdefs.h <<EOF
3094 #define $ac_tr_hdr 1
3096 ac_header_dirent=$ac_hdr; break
3098 echo "$ac_t""no" 1>&6
3101 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3102 if test $ac_header_dirent = dirent.h; then
3103 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3104 echo "configure:3105: checking for opendir in -ldir" >&5
3105 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 ac_save_LIBS="$LIBS"
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 /* Override any gcc2 internal prototype to avoid an error. */
3115 /* We use char because int might match the return type of a gcc2
3116 builtin and then its argument prototype would still apply. */
3123 if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3125 eval "ac_cv_lib_$ac_lib_var=yes"
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3130 eval "ac_cv_lib_$ac_lib_var=no"
3133 LIBS="$ac_save_LIBS"
3136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3137 echo "$ac_t""yes" 1>&6
3140 echo "$ac_t""no" 1>&6
3144 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3145 echo "configure:3146: checking for opendir in -lx" >&5
3146 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 ac_save_LIBS="$LIBS"
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3155 /* Override any gcc2 internal prototype to avoid an error. */
3156 /* We use char because int might match the return type of a gcc2
3157 builtin and then its argument prototype would still apply. */
3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3166 eval "ac_cv_lib_$ac_lib_var=yes"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3171 eval "ac_cv_lib_$ac_lib_var=no"
3174 LIBS="$ac_save_LIBS"
3177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3181 echo "$ac_t""no" 1>&6
3187 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3190 echo "configure:3191: checking for $ac_func" >&5
3191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* System header to define __stub macros and hopefully few prototypes,
3198 which can conflict with char $ac_func(); below. */
3200 /* Override any gcc2 internal prototype to avoid an error. */
3201 /* We use char because int might match the return type of a gcc2
3202 builtin and then its argument prototype would still apply. */
3207 /* The GNU C library defines this for functions which it implements
3208 to always fail with ENOSYS. Some functions are actually named
3209 something starting with __ and the normal name is an alias. */
3210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3220 eval "ac_cv_func_$ac_func=yes"
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3225 eval "ac_cv_func_$ac_func=no"
3230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3233 cat >> confdefs.h <<EOF
3234 #define $ac_tr_func 1
3238 echo "$ac_t""no" 1>&6
3243 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3244 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3245 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3247 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3248 echo "configure:3249: checking for getopt_long" >&5
3249 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 /* System header to define __stub macros and hopefully few prototypes,
3256 which can conflict with char getopt_long(); below. */
3258 /* Override any gcc2 internal prototype to avoid an error. */
3259 /* We use char because int might match the return type of a gcc2
3260 builtin and then its argument prototype would still apply. */
3265 /* The GNU C library defines this for functions which it implements
3266 to always fail with ENOSYS. Some functions are actually named
3267 something starting with __ and the normal name is an alias. */
3268 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3278 eval "ac_cv_func_getopt_long=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 eval "ac_cv_func_getopt_long=no"
3288 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3289 echo "$ac_t""yes" 1>&6
3290 cat >> confdefs.h <<\EOF
3291 #define HAVE_GETOPT_LONG 1
3295 echo "$ac_t""no" 1>&6
3300 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3301 echo "configure:3302: checking for working strcoll" >&5
3302 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 if test "$cross_compiling" = yes; then
3306 ac_cv_func_strcoll_works=no
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3314 exit (strcoll ("abc", "def") >= 0 ||
3315 strcoll ("ABC", "DEF") >= 0 ||
3316 strcoll ("123", "456") >= 0);
3319 if { (eval echo configure:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3321 ac_cv_func_strcoll_works=yes
3323 echo "configure: failed program was:" >&5
3324 cat conftest.$ac_ext >&5
3326 ac_cv_func_strcoll_works=no
3333 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3334 if test $ac_cv_func_strcoll_works = yes; then
3335 cat >> confdefs.h <<\EOF
3336 #define HAVE_STRCOLL 1
3342 for ac_hdr in varargs.h \
3343 sys/ptem.h sys/pte.h sys/stream.h
3345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3347 echo "configure:3348: checking for $ac_hdr" >&5
3348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3357 { (eval echo configure:3358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3359 if test -z "$ac_err"; then
3361 eval "ac_cv_header_$ac_safe=yes"
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 eval "ac_cv_header_$ac_safe=no"
3371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3372 echo "$ac_t""yes" 1>&6
3373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3374 cat >> confdefs.h <<EOF
3375 #define $ac_tr_hdr 1
3379 echo "$ac_t""no" 1>&6
3384 # End of readline stuff
3385 # -----------------------------------------------------------------------
3388 # ---------------------------------------------------
3389 # Check for GMP support/directory
3390 # ---------------------------------------------------
3394 # [ --with-gmp[=DIR] Specify gmp library directory],
3396 # case "$with_gmp" in
3399 # if test "$with_gmp" != "yes"; then
3400 # GMP_INC="-I$with_gmp"
3402 # GMP_LDFLAGS="-L$with_gmp"
3404 # with_gmp="/usr/include"
3406 # AC_CHECK_HEADER($with_gmp/gmp.h,
3407 # [ AC_MSG_RESULT(yes)
3408 # AC_DEFINE(HAVE_GMP)
3412 # [ AC_MSG_ERROR([*** gmp library missing])
3418 # # check for standard gmp library
3419 # AC_CHECK_HEADER(/usr/include/gmp.h,
3420 # [ AC_MSG_RESULT(yes)
3421 # AC_DEFINE(HAVE_GMP)
3426 # # Did not find standard library, so use our own
3427 # AC_MSG_RESULT(yes)
3428 # AC_DEFINE(HAVE_GMP)
3431 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3433 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3434 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3440 #AC_SUBST(GMP_LDFLAGS)
3444 # -----------------------------------------------------------------------
3447 # ---------------------------------------------------
3448 # Check for CWEB support/directory
3449 # ---------------------------------------------------
3454 # [ --with-cweb[=DIR] Specify cweb library directory],
3456 # case "$with_cweb" in
3459 # if test "$with_cweb" != "yes"; then
3460 # CWEB_INC="-I$with_cweb"
3461 # CWEB_LIBS="-lcweb"
3462 # CWEB_LDFLAGS="-L$with_cweb"
3464 # with_cweb="/usr/include"
3466 # AC_CHECK_HEADER($with_cweb/cweb.h,
3467 # [ AC_MSG_RESULT(yes)
3468 # AC_DEFINE(HAVE_CWEB)
3469 # CWEB_LIBS="-lcweb"
3472 # [ AC_MSG_ERROR([*** cweb library missing])
3478 # # check for standard cweb library
3479 # AC_CHECK_HEADER(/usr/include/cweb.h,
3480 # [ AC_MSG_RESULT(yes)
3481 # AC_DEFINE(HAVE_CWEB)
3484 # CWEB_LIBS="-lcweb"
3486 # # Did not find starndard library, so use our own
3487 # AC_MSG_RESULT(yes)
3488 # AC_DEFINE(HAVE_CWEB)
3491 # CWEB=${TOP_DIR}/depkgs/cweb
3492 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3493 # CWEB_LIBS="-lcweb"
3494 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3495 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3501 #AC_SUBST(CWEB_LIBS)
3502 #AC_SUBST(CWEB_LDFLAGS)
3506 # -----------------------------------------------------------------------
3510 # -----------------------------------------------------------
3511 # Check whether user wants TCP wrappers support (default off)
3512 # -----------------------------------------------------------
3514 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3515 if test "${with_tcp_wrappers+set}" = set; then
3516 withval="$with_tcp_wrappers"
3518 if test "x$withval" != "xno" ; then
3520 LIBS="$LIBS -lwrap -lnsl"
3521 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3522 echo "configure:3523: checking for libwrap" >&5
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3527 int deny_severity = 0;
3528 int allow_severity = 0;
3529 struct request_info *req;
3534 if { (eval echo configure:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3537 echo "$ac_t""yes" 1>&6
3538 cat >> confdefs.h <<\EOF
3539 #define HAVE_LIBWRAP 1
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3558 # ------------------------------------------
3559 # Where to place working dir
3560 # ------------------------------------------
3561 working_dir=`eval echo ${sysconfdir}/working`
3562 # Check whether --with-working-dir or --without-working-dir was given.
3563 if test "${with_working_dir+set}" = set; then
3564 withval="$with_working_dir"
3566 if test "x$withval" != "xno" ; then
3567 working_dir=$withval
3577 # ------------------------------------------
3578 # Where to place scriptdir (script files)
3579 # ------------------------------------------
3580 scriptdir=`eval echo ${sysconfdir}`
3581 # Check whether --with-scriptdir or --without-scriptdir was given.
3582 if test "${with_scriptdir+set}" = set; then
3583 withval="$with_scriptdir"
3585 if test "x$withval" != "xno" ; then
3596 # ------------------------------------------
3597 # Where to send dump email
3598 # ------------------------------------------
3599 dump_email=root@localhost
3600 # Check whether --with-dump-email or --without-dump-email was given.
3601 if test "${with_dump_email+set}" = set; then
3602 withval="$with_dump_email"
3604 if test "x$withval" != "xno" ; then
3614 # ------------------------------------------
3615 # Where to send job email
3616 # ------------------------------------------
3617 job_email=root@localhost
3618 # Check whether --with-job-email or --without-job-email was given.
3619 if test "${with_job_email+set}" = set; then
3620 withval="$with_job_email"
3622 if test "x$withval" != "xno" ; then
3632 # ------------------------------------------
3633 # Where to find smtp host
3634 # ------------------------------------------
3636 # Check whether --with-smtp_host or --without-smtp_host was given.
3637 if test "${with_smtp_host+set}" = set; then
3638 withval="$with_smtp_host"
3640 if test "x$withval" != "xno" ; then
3651 # ------------------------------------
3652 # Where to place pid files
3653 # ------------------------------------
3655 # Check whether --with-pid-dir or --without-pid-dir was given.
3656 if test "${with_pid_dir+set}" = set; then
3657 withval="$with_pid_dir"
3659 if test "x$withval" != "xno" ; then
3667 # make sure the pid directory exists
3668 if test ! -d $piddir ; then
3669 piddir=`eval echo ${sysconfdir}`
3671 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3675 cat >> confdefs.h <<EOF
3676 #define _PATH_BACULA_PIDDIR "$piddir"
3682 # ------------------------------------
3683 # Where to place subsys "lock file"
3684 # ------------------------------------
3685 subsysdir=/var/run/subsys
3686 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3687 if test "${with_subsys_dir+set}" = set; then
3688 withval="$with_subsys_dir"
3690 if test "x$withval" != "xno" ; then
3698 # make sure the pid directory exists
3699 if test ! -d $subsysdir ; then
3700 subsysdir=`eval echo ${sysconfdir}`
3702 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3710 # ------------------------------------
3711 # Where to start assigning ports
3712 # ------------------------------------
3714 # Check whether --with-baseport or --without-baseport was given.
3715 if test "${with_baseport+set}" = set; then
3716 withval="$with_baseport"
3718 if test "x$withval" != "xno" ; then
3727 dir_port=`expr $baseport`
3728 fd_port=`expr $baseport + 1`
3729 sd_port=`expr $fd_port + 1`
3736 # ------------------------------------------
3737 # Generate passwords
3738 # ------------------------------------------
3740 # Check whether --with-dir-password or --without-dir-password was given.
3741 if test "${with_dir_password+set}" = set; then
3742 withval="$with_dir_password"
3744 if test "x$withval" != "xno" ; then
3745 dir_password=$withval
3752 if test "x$dir_password" = "x" ; then
3753 if test "x$OPENSSL" = "xnone" ; then
3754 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3755 key=`autoconf/randpass 33`
3757 key=`openssl rand -base64 33`
3763 # Check whether --with-fd-password or --without-fd-password was given.
3764 if test "${with_fd_password+set}" = set; then
3765 withval="$with_fd_password"
3767 if test "x$withval" != "xno" ; then
3768 fd_password=$withval
3775 if test "x$fd_password" = "x" ; then
3776 if test "x$OPENSSL" = "xnone" ; then
3777 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3778 key=`autoconf/randpass 37`
3780 key=`openssl rand -base64 33`
3786 # Check whether --with-sd-password or --without-sd-password was given.
3787 if test "${with_sd_password+set}" = set; then
3788 withval="$with_sd_password"
3790 if test "x$withval" != "xno" ; then
3791 sd_password=$withval
3798 if test "x$sd_password" = "x" ; then
3799 if test "x$OPENSSL" = "xnone" ; then
3800 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3801 key=`autocnf/randpass 41`
3803 key=`openssl rand -base64 33`
3816 # ------------------------------------------------
3817 # Bacula check for various SQL database engines
3818 # ------------------------------------------------
3821 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3822 echo "configure:3823: checking for MySQL support" >&5
3823 # Check whether --with-mysql or --without-mysql was given.
3824 if test "${with_mysql+set}" = set; then
3825 withval="$with_mysql"
3827 if test "$withval" != "no"; then
3828 if test "$withval" = "yes"; then
3829 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3830 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3831 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3832 MYSQL_BINDIR=/usr/local/mysql/bin
3833 elif test -f /usr/include/mysql/mysql.h; then
3834 MYSQL_INCDIR=/usr/include/mysql
3835 MYSQL_LIBDIR=/usr/lib/mysql
3836 MYSQL_BINDIR=/usr/bin
3837 elif test -f /usr/include/mysql.h; then
3838 MYSQL_INCDIR=/usr/include
3839 MYSQL_LIBDIR=/usr/lib
3840 MYSQL_BINDIR=/usr/bin
3841 elif test -f /usr/local/include/mysql/mysql.h; then
3842 MYSQL_INCDIR=/usr/local/include/mysql
3843 MYSQL_LIBDIR=/usr/local/lib/mysql
3844 MYSQL_BINDIR=/usr/local/bin
3845 elif test -f /usr/local/include/mysql.h; then
3846 MYSQL_INCDIR=/usr/local/include
3847 MYSQL_LIBDIR=/usr/local/lib
3848 MYSQL_BINDIR=/usr/local/bin
3850 echo "$ac_t""no" 1>&6
3851 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3854 if test -f $withval/include/mysql/mysql.h; then
3855 MYSQL_INCDIR=$withval/include/mysql
3856 MYSQL_LIBDIR=$withval/lib/mysql
3857 MYSQL_BINDIR=$withval/bin
3858 elif test -f $withval/include/mysql.h; then
3859 MYSQL_INCDIR=$withval/include
3860 MYSQL_LIBDIR=$withval/lib
3861 MYSQL_BINDIR=$withval/bin
3863 echo "$ac_t""no" 1>&6
3864 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3867 SQL_INCLUDE=-I$MYSQL_INCDIR
3868 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
3869 SQL_BINDIR=$MYSQL_BINDIR
3871 cat >> confdefs.h <<\EOF
3872 #define HAVE_MYSQL 1
3875 echo "$ac_t""yes" 1>&6
3882 echo "$ac_t""no" 1>&6
3887 echo "$ac_t""no" 1>&6
3892 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
3893 if test "${with_embedded_mysql+set}" = set; then
3894 withval="$with_embedded_mysql"
3896 if test "$withval" != "no"; then
3897 if test "$withval" = "yes"; then
3898 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3899 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3900 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3901 MYSQL_BINDIR=/usr/local/mysql/bin
3902 elif test -f /usr/include/mysql/mysql.h; then
3903 MYSQL_INCDIR=/usr/include/mysql
3904 MYSQL_LIBDIR=/usr/lib/mysql
3905 MYSQL_BINDIR=/usr/bin
3906 elif test -f /usr/include/mysql.h; then
3907 MYSQL_INCDIR=/usr/include
3908 MYSQL_LIBDIR=/usr/lib
3909 MYSQL_BINDIR=/usr/bin
3910 elif test -f /usr/local/include/mysql/mysql.h; then
3911 MYSQL_INCDIR=/usr/local/include/mysql
3912 MYSQL_LIBDIR=/usr/local/lib/mysql
3913 MYSQL_BINDIR=/usr/local/bin
3914 elif test -f /usr/local/include/mysql.h; then
3915 MYSQL_INCDIR=/usr/local/include
3916 MYSQL_LIBDIR=/usr/local/lib
3917 MYSQL_BINDIR=/usr/local/bin
3919 echo "$ac_t""no" 1>&6
3920 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3923 if test -f $withval/include/mysql/mysql.h; then
3924 MYSQL_INCDIR=$withval/include/mysql
3925 MYSQL_LIBDIR=$withval/lib/mysql
3926 MYSQL_BINDIR=$withval/bin
3927 elif test -f $withval/include/mysql.h; then
3928 MYSQL_INCDIR=$withval/include
3929 MYSQL_LIBDIR=$withval/lib
3930 MYSQL_BINDIR=$withval/bin
3932 echo "$ac_t""no" 1>&6
3933 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3936 SQL_INCLUDE=-I$MYSQL_INCDIR
3937 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
3938 SQL_BINDIR=$MYSQL_BINDIR
3940 cat >> confdefs.h <<\EOF
3941 #define HAVE_MYSQL 1
3944 cat >> confdefs.h <<\EOF
3945 #define HAVE_EMBEDDED_MYSQL 1
3948 echo "$ac_t""yes" 1>&6
3955 echo "$ac_t""no" 1>&6
3960 echo "$ac_t""no" 1>&6
3973 # ------------------------------------------------
3974 # Bacula check for various SQL database engines
3975 # ------------------------------------------------
3978 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3979 echo "configure:3980: checking for SQLite support" >&5
3980 # Check whether --with-sqlite or --without-sqlite was given.
3981 if test "${with_sqlite+set}" = set; then
3982 withval="$with_sqlite"
3984 if test "$withval" != "no"; then
3985 if test "$withval" = "yes"; then
3986 if test -f /usr/local/include/sqlite.h; then
3987 SQLITE_INCDIR=/usr/local/include
3988 SQLITE_LIBDIR=/usr/local/lib
3989 SQLITE_BINDIR=/usr/local/bin
3990 elif test -f /usr/include/sqlite.h; then
3991 SQLITE_INCDIR=/usr/include
3992 SQLITE_LIBDIR=/usr/lib
3993 SQLITE_BINDIR=/usr/bin
3995 echo "$ac_t""no" 1>&6
3996 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
3999 if test -f $withval/sqlite.h; then
4000 SQLITE_INCDIR=$withval
4001 SQLITE_LIBDIR=$withval
4002 SQLITE_BINDIR=$withval
4004 echo "$ac_t""no" 1>&6
4005 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
4008 SQL_INCLUDE=-I$SQLITE_INCDIR
4009 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
4010 SQL_BINDIR=$SQLITE_BINDIR
4012 cat >> confdefs.h <<\EOF
4013 #define HAVE_SQLITE 1
4016 echo "$ac_t""yes" 1>&6
4023 echo "$ac_t""no" 1>&6
4028 echo "$ac_t""no" 1>&6
4041 cat >> confdefs.h <<\EOF
4042 #define PROTOTYPES 1
4046 if test -z "$CFLAGS"; then
4047 if test -z "$CCOPTS"; then
4054 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4055 echo "configure:4056: checking for mingw32 environment" >&5
4056 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4067 if { (eval echo configure:4068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4080 echo "$ac_t""$ac_cv_mingw32" 1>&6
4082 test "$ac_cv_mingw32" = yes && MINGW32=yes
4085 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4086 echo "configure:4087: checking for executable suffix" >&5
4087 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4094 echo 'int main () { return 0; }' > conftest.$ac_ext
4096 if { (eval echo configure:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4097 for file in conftest.*; do
4099 *.c | *.o | *.obj) ;;
4100 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4104 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4107 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4112 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4113 echo "$ac_t""${ac_cv_exeext}" 1>&6
4117 largefile_support="no"
4118 echo $ac_n "checking build system type""... $ac_c" 1>&6
4119 echo "configure:4120: checking build system type" >&5
4122 case "$build_alias" in
4125 NONE) build_alias=$host_alias ;;
4126 *) build_alias=$nonopt ;;
4130 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4131 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4132 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4133 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4134 echo "$ac_t""$build" 1>&6
4136 if test $host != $build; then
4137 ac_tool_prefix=${host_alias}-
4143 # Check whether --enable-largefile or --disable-largefile was given.
4144 if test "${enable_largefile+set}" = set; then
4145 enableval="$enable_largefile"
4149 if test "$enable_largefile" != no; then
4150 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4153 echo "configure:4154: checking for $ac_word" >&5
4154 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 if test -n "$GETCONF"; then
4158 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4162 for ac_dir in $ac_dummy; do
4163 test -z "$ac_dir" && ac_dir=.
4164 if test -f $ac_dir/$ac_word; then
4165 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4170 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4173 GETCONF="$ac_cv_prog_GETCONF"
4174 if test -n "$GETCONF"; then
4175 echo "$ac_t""$GETCONF" 1>&6
4177 echo "$ac_t""no" 1>&6
4182 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4183 echo "configure:4184: checking for CFLAGS value to request large file support" >&5
4184 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4188 ac_cv_sys_largefile_CFLAGS=no
4190 # IRIX 6.2 and later require cc -n32.
4191 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4192 if test "$GCC" != yes; then
4193 ac_cv_sys_largefile_CFLAGS=-n32
4196 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 ac_cv_sys_largefile_CFLAGS=no
4219 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4220 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4221 echo "configure:4222: checking for LDFLAGS value to request large file support" >&5
4222 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4225 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4226 ac_cv_sys_largefile_LDFLAGS=no
4231 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4232 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4233 echo "configure:4234: checking for LIBS value to request large file support" >&5
4234 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4235 echo $ac_n "(cached) $ac_c" 1>&6
4237 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4238 ac_cv_sys_largefile_LIBS=no
4243 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4245 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4248 -D_FILE_OFFSET_BITS=*) ;;
4249 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4250 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4256 '') CPPFLAGS="$ac_flag" ;;
4257 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4265 '') CFLAGS="$ac_flag" ;;
4266 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4271 case "$ac_cv_sys_largefile_LDFLAGS" in
4275 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4276 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4279 case "$ac_cv_sys_largefile_LIBS" in
4283 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4284 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4287 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4288 echo "configure:4289: checking for _FILE_OFFSET_BITS" >&5
4289 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 ac_cv_sys_file_offset_bits=no
4294 # HP-UX 10.20 and later
4295 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4296 ac_cv_sys_file_offset_bits=64 ;;
4298 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4300 -D_FILE_OFFSET_BITS)
4301 ac_cv_sys_file_offset_bits=1 ;;
4302 -D_FILE_OFFSET_BITS=*)
4303 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4309 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4310 if test "$ac_cv_sys_file_offset_bits" != no; then
4311 cat >> confdefs.h <<EOF
4312 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4316 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4317 echo "configure:4318: checking for _LARGEFILE_SOURCE" >&5
4318 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4321 ac_cv_sys_largefile_source=no
4323 # HP-UX 10.20 and later
4324 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4325 ac_cv_sys_largefile_source=1 ;;
4327 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4329 -D_LARGEFILE_SOURCE)
4330 ac_cv_sys_largefile_source=1 ;;
4331 -D_LARGEFILE_SOURCE=*)
4332 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4338 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4339 if test "$ac_cv_sys_largefile_source" != no; then
4340 cat >> confdefs.h <<EOF
4341 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4345 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4346 echo "configure:4347: checking for _LARGE_FILES" >&5
4347 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 ac_cv_sys_large_files=no
4353 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4354 ac_cv_sys_large_files=1 ;;
4356 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4359 ac_cv_sys_large_files=1 ;;
4361 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4367 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4368 if test "$ac_cv_sys_large_files" != no; then
4369 cat >> confdefs.h <<EOF
4370 #define _LARGE_FILES $ac_cv_sys_large_files
4378 # If we find X, set shell vars x_includes and x_libraries to the
4379 # paths, otherwise set no_x=yes.
4380 # Uses ac_ vars as temps to allow command line to override cache and checks.
4381 # --without-x overrides everything else, but does not touch the cache.
4382 echo $ac_n "checking for X""... $ac_c" 1>&6
4383 echo "configure:4384: checking for X" >&5
4385 # Check whether --with-x or --without-x was given.
4386 if test "${with_x+set}" = set; then
4391 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4392 if test "x$with_x" = xno; then
4393 # The user explicitly disabled X.
4396 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4397 # Both variables are already set.
4400 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 # One or both of the vars are not set, and there is no cached value.
4404 ac_x_includes=NO ac_x_libraries=NO
4406 if mkdir conftestdir; then
4408 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4409 cat > Imakefile <<'EOF'
4411 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4413 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4415 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4416 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4417 for ac_extension in a so sl; do
4418 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4419 test -f $ac_im_libdir/libX11.$ac_extension; then
4420 ac_im_usrlibdir=$ac_im_libdir; break
4423 # Screen out bogus values from the imake configuration. They are
4424 # bogus both because they are the default anyway, and because
4425 # using them would break gcc on systems where it needs fixed includes.
4426 case "$ac_im_incroot" in
4428 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4430 case "$ac_im_usrlibdir" in
4432 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4439 if test "$ac_x_includes" = NO; then
4440 # Guess where to find include files, by looking for this one X11 .h file.
4441 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4443 # First, try using that file with no special directory specified.
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447 #include <$x_direct_test_include>
4449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4450 { (eval echo configure:4451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4452 if test -z "$ac_err"; then
4454 # We can compile using X headers with no special include directory.
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 # Look for the header file in a standard set of common directories.
4462 # Check X11 before X11Rn because it is often a symlink to the current release.
4465 /usr/X11R6/include \
4466 /usr/X11R5/include \
4467 /usr/X11R4/include \
4470 /usr/include/X11R6 \
4471 /usr/include/X11R5 \
4472 /usr/include/X11R4 \
4474 /usr/local/X11/include \
4475 /usr/local/X11R6/include \
4476 /usr/local/X11R5/include \
4477 /usr/local/X11R4/include \
4479 /usr/local/include/X11 \
4480 /usr/local/include/X11R6 \
4481 /usr/local/include/X11R5 \
4482 /usr/local/include/X11R4 \
4486 /usr/XFree86/include/X11 \
4489 /usr/local/include \
4490 /usr/unsupported/include \
4491 /usr/athena/include \
4492 /usr/local/x11r5/include \
4493 /usr/lpp/Xamples/include \
4495 /usr/openwin/include \
4496 /usr/openwin/share/include \
4499 if test -r "$ac_dir/$x_direct_test_include"; then
4500 ac_x_includes=$ac_dir
4506 fi # $ac_x_includes = NO
4508 if test "$ac_x_libraries" = NO; then
4509 # Check for the libraries.
4511 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4512 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4514 # See if we find them without any special options.
4515 # Don't add to $LIBS permanently.
4516 ac_save_LIBS="$LIBS"
4517 LIBS="-l$x_direct_test_library $LIBS"
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4523 ${x_direct_test_function}()
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 LIBS="$ac_save_LIBS"
4529 # We can link X programs with no special library path.
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4535 LIBS="$ac_save_LIBS"
4536 # First see if replacing the include by lib works.
4537 # Check X11 before X11Rn because it is often a symlink to the current release.
4538 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4549 /usr/local/X11/lib \
4550 /usr/local/X11R6/lib \
4551 /usr/local/X11R5/lib \
4552 /usr/local/X11R4/lib \
4554 /usr/local/lib/X11 \
4555 /usr/local/lib/X11R6 \
4556 /usr/local/lib/X11R5 \
4557 /usr/local/lib/X11R4 \
4561 /usr/XFree86/lib/X11 \
4565 /usr/unsupported/lib \
4567 /usr/local/x11r5/lib \
4568 /usr/lpp/Xamples/lib \
4572 /usr/openwin/share/lib \
4575 for ac_extension in a so sl; do
4576 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4577 ac_x_libraries=$ac_dir
4584 fi # $ac_x_libraries = NO
4586 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4587 # Didn't find X anywhere. Cache the known absence of X.
4588 ac_cv_have_x="have_x=no"
4590 # Record where we found X for the cache.
4591 ac_cv_have_x="have_x=yes \
4592 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4596 eval "$ac_cv_have_x"
4599 if test "$have_x" != yes; then
4600 echo "$ac_t""$have_x" 1>&6
4603 # If each of the values was on the command line, it overrides each guess.
4604 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4605 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4606 # Update the cache value to reflect the command line values.
4607 ac_cv_have_x="have_x=yes \
4608 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4609 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4612 if test "$no_x" = yes; then
4613 # Not all programs may use this symbol, but it does not hurt to define it.
4614 cat >> confdefs.h <<\EOF
4615 #define X_DISPLAY_MISSING 1
4618 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4620 if test -n "$x_includes"; then
4621 X_CFLAGS="$X_CFLAGS -I$x_includes"
4624 # It would also be nice to do this for all -L options, not just this one.
4625 if test -n "$x_libraries"; then
4626 X_LIBS="$X_LIBS -L$x_libraries"
4627 # For Solaris; some versions of Sun CC require a space after -R and
4628 # others require no space. Words are not sufficient . . . .
4629 case "`(uname -sr) 2>/dev/null`" in
4631 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4632 echo "configure:4633: checking whether -R must be followed by a space" >&5
4633 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4642 if { (eval echo configure:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646 echo "configure: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4652 if test $ac_R_nospace = yes; then
4653 echo "$ac_t""no" 1>&6
4654 X_LIBS="$X_LIBS -R$x_libraries"
4656 LIBS="$ac_xsave_LIBS -R $x_libraries"
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4665 if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4669 echo "configure: failed program was:" >&5
4670 cat conftest.$ac_ext >&5
4675 if test $ac_R_space = yes; then
4676 echo "$ac_t""yes" 1>&6
4677 X_LIBS="$X_LIBS -R $x_libraries"
4679 echo "$ac_t""neither works" 1>&6
4682 LIBS="$ac_xsave_LIBS"
4686 # Check for system-dependent libraries X programs must link with.
4687 # Do this before checking for the system-independent R6 libraries
4688 # (-lICE), since we may need -lsocket or whatever for X linking.
4690 if test "$ISC" = yes; then
4691 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4693 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4694 # libraries were built with DECnet support. And karl@cs.umb.edu says
4695 # the Alpha needs dnet_stub (dnet does not exist).
4696 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4697 echo "configure:4698: checking for dnet_ntoa in -ldnet" >&5
4698 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 ac_save_LIBS="$LIBS"
4704 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4707 /* Override any gcc2 internal prototype to avoid an error. */
4708 /* We use char because int might match the return type of a gcc2
4709 builtin and then its argument prototype would still apply. */
4716 if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4718 eval "ac_cv_lib_$ac_lib_var=yes"
4720 echo "configure: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4723 eval "ac_cv_lib_$ac_lib_var=no"
4726 LIBS="$ac_save_LIBS"
4729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4730 echo "$ac_t""yes" 1>&6
4731 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4733 echo "$ac_t""no" 1>&6
4736 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4737 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4738 echo "configure:4739: checking for dnet_ntoa in -ldnet_stub" >&5
4739 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 ac_save_LIBS="$LIBS"
4744 LIBS="-ldnet_stub $LIBS"
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4748 /* Override any gcc2 internal prototype to avoid an error. */
4749 /* We use char because int might match the return type of a gcc2
4750 builtin and then its argument prototype would still apply. */
4757 if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4759 eval "ac_cv_lib_$ac_lib_var=yes"
4761 echo "configure: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4764 eval "ac_cv_lib_$ac_lib_var=no"
4767 LIBS="$ac_save_LIBS"
4770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4771 echo "$ac_t""yes" 1>&6
4772 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4774 echo "$ac_t""no" 1>&6
4779 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4780 # to get the SysV transport functions.
4781 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4783 # The nsl library prevents programs from opening the X display
4784 # on Irix 5.2, according to dickey@clark.net.
4785 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4786 echo "configure:4787: checking for gethostbyname" >&5
4787 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 /* System header to define __stub macros and hopefully few prototypes,
4794 which can conflict with char gethostbyname(); below. */
4796 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4799 char gethostbyname();
4803 /* The GNU C library defines this for functions which it implements
4804 to always fail with ENOSYS. Some functions are actually named
4805 something starting with __ and the normal name is an alias. */
4806 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4814 if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4816 eval "ac_cv_func_gethostbyname=yes"
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4821 eval "ac_cv_func_gethostbyname=no"
4826 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4830 echo "$ac_t""no" 1>&6
4833 if test $ac_cv_func_gethostbyname = no; then
4834 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4835 echo "configure:4836: checking for gethostbyname in -lnsl" >&5
4836 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 ac_save_LIBS="$LIBS"
4842 cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4848 char gethostbyname();
4854 if { (eval echo configure:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4856 eval "ac_cv_lib_$ac_lib_var=yes"
4858 echo "configure: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4861 eval "ac_cv_lib_$ac_lib_var=no"
4864 LIBS="$ac_save_LIBS"
4867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4871 echo "$ac_t""no" 1>&6
4876 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4877 # socket/setsockopt and other routines are undefined under SCO ODT
4878 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4879 # on later versions), says simon@lia.di.epfl.ch: it contains
4880 # gethostby* variants that don't use the nameserver (or something).
4881 # -lsocket must be given before -lnsl if both are needed.
4882 # We assume that if connect needs -lnsl, so does gethostbyname.
4883 echo $ac_n "checking for connect""... $ac_c" 1>&6
4884 echo "configure:4885: checking for connect" >&5
4885 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* System header to define __stub macros and hopefully few prototypes,
4892 which can conflict with char connect(); below. */
4894 /* Override any gcc2 internal prototype to avoid an error. */
4895 /* We use char because int might match the return type of a gcc2
4896 builtin and then its argument prototype would still apply. */
4901 /* The GNU C library defines this for functions which it implements
4902 to always fail with ENOSYS. Some functions are actually named
4903 something starting with __ and the normal name is an alias. */
4904 #if defined (__stub_connect) || defined (__stub___connect)
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4914 eval "ac_cv_func_connect=yes"
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4919 eval "ac_cv_func_connect=no"
4924 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4928 echo "$ac_t""no" 1>&6
4931 if test $ac_cv_func_connect = no; then
4932 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4933 echo "configure:4934: checking for connect in -lsocket" >&5
4934 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 ac_save_LIBS="$LIBS"
4939 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4940 cat > conftest.$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4943 /* Override any gcc2 internal prototype to avoid an error. */
4944 /* We use char because int might match the return type of a gcc2
4945 builtin and then its argument prototype would still apply. */
4952 if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4954 eval "ac_cv_lib_$ac_lib_var=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 eval "ac_cv_lib_$ac_lib_var=no"
4962 LIBS="$ac_save_LIBS"
4965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4966 echo "$ac_t""yes" 1>&6
4967 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4969 echo "$ac_t""no" 1>&6
4974 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4975 echo $ac_n "checking for remove""... $ac_c" 1>&6
4976 echo "configure:4977: checking for remove" >&5
4977 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 cat > conftest.$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983 /* System header to define __stub macros and hopefully few prototypes,
4984 which can conflict with char remove(); below. */
4986 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4993 /* The GNU C library defines this for functions which it implements
4994 to always fail with ENOSYS. Some functions are actually named
4995 something starting with __ and the normal name is an alias. */
4996 #if defined (__stub_remove) || defined (__stub___remove)
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5006 eval "ac_cv_func_remove=yes"
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5011 eval "ac_cv_func_remove=no"
5016 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5017 echo "$ac_t""yes" 1>&6
5020 echo "$ac_t""no" 1>&6
5023 if test $ac_cv_func_remove = no; then
5024 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5025 echo "configure:5026: checking for remove in -lposix" >&5
5026 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5030 ac_save_LIBS="$LIBS"
5031 LIBS="-lposix $LIBS"
5032 cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5035 /* Override any gcc2 internal prototype to avoid an error. */
5036 /* We use char because int might match the return type of a gcc2
5037 builtin and then its argument prototype would still apply. */
5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5046 eval "ac_cv_lib_$ac_lib_var=yes"
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5051 eval "ac_cv_lib_$ac_lib_var=no"
5054 LIBS="$ac_save_LIBS"
5057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5061 echo "$ac_t""no" 1>&6
5066 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5067 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5068 echo "configure:5069: checking for shmat" >&5
5069 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075 /* System header to define __stub macros and hopefully few prototypes,
5076 which can conflict with char shmat(); below. */
5078 /* Override any gcc2 internal prototype to avoid an error. */
5079 /* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5085 /* The GNU C library defines this for functions which it implements
5086 to always fail with ENOSYS. Some functions are actually named
5087 something starting with __ and the normal name is an alias. */
5088 #if defined (__stub_shmat) || defined (__stub___shmat)
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5098 eval "ac_cv_func_shmat=yes"
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 eval "ac_cv_func_shmat=no"
5108 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5112 echo "$ac_t""no" 1>&6
5115 if test $ac_cv_func_shmat = no; then
5116 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5117 echo "configure:5118: checking for shmat in -lipc" >&5
5118 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 ac_save_LIBS="$LIBS"
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 /* Override any gcc2 internal prototype to avoid an error. */
5128 /* We use char because int might match the return type of a gcc2
5129 builtin and then its argument prototype would still apply. */
5136 if { (eval echo configure:5137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5138 eval "ac_cv_lib_$ac_lib_var=yes"
5140 echo "configure: failed program was:" >&5
5141 cat conftest.$ac_ext >&5
5143 eval "ac_cv_lib_$ac_lib_var=no"
5146 LIBS="$ac_save_LIBS"
5149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5150 echo "$ac_t""yes" 1>&6
5151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5153 echo "$ac_t""no" 1>&6
5159 # Check for libraries that X11R6 Xt/Xaw programs need.
5160 ac_save_LDFLAGS="$LDFLAGS"
5161 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5162 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5163 # check for ICE first), but we must link in the order -lSM -lICE or
5164 # we get undefined symbols. So assume we have SM if we have ICE.
5165 # These have to be linked with before -lX11, unlike the other
5166 # libraries we check for below, so use a different variable.
5167 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5168 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5169 echo "configure:5170: checking for IceConnectionNumber in -lICE" >&5
5170 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 ac_save_LIBS="$LIBS"
5175 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* Override any gcc2 internal prototype to avoid an error. */
5180 /* We use char because int might match the return type of a gcc2
5181 builtin and then its argument prototype would still apply. */
5182 char IceConnectionNumber();
5185 IceConnectionNumber()
5188 if { (eval echo configure:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190 eval "ac_cv_lib_$ac_lib_var=yes"
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5195 eval "ac_cv_lib_$ac_lib_var=no"
5198 LIBS="$ac_save_LIBS"
5201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5205 echo "$ac_t""no" 1>&6
5208 LDFLAGS="$ac_save_LDFLAGS"
5232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5234 echo "configure:5235: checking for $ac_hdr" >&5
5235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5244 { (eval echo configure:5245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5246 if test -z "$ac_err"; then
5248 eval "ac_cv_header_$ac_safe=yes"
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 eval "ac_cv_header_$ac_safe=no"
5258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5259 echo "$ac_t""yes" 1>&6
5260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5261 cat >> confdefs.h <<EOF
5262 #define $ac_tr_hdr 1
5266 echo "$ac_t""no" 1>&6
5270 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5271 echo "configure:5272: checking for ANSI C header files" >&5
5272 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5284 { (eval echo configure:5285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5286 if test -z "$ac_err"; then
5288 ac_cv_header_stdc=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 ac_cv_header_stdc=no
5298 if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 egrep "memchr" >/dev/null 2>&1; then
5310 ac_cv_header_stdc=no
5316 if test $ac_cv_header_stdc = yes; then
5317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5324 egrep "free" >/dev/null 2>&1; then
5328 ac_cv_header_stdc=no
5334 if test $ac_cv_header_stdc = yes; then
5335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5336 if test "$cross_compiling" = yes; then
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5343 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5344 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5346 int main () { int i; for (i = 0; i < 256; i++)
5347 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5351 if { (eval echo configure:5352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5358 ac_cv_header_stdc=no
5366 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5367 if test $ac_cv_header_stdc = yes; then
5368 cat >> confdefs.h <<\EOF
5369 #define STDC_HEADERS 1
5374 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5375 echo "configure:5376: checking whether sys/types.h defines makedev" >&5
5376 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 #include <sys/types.h>
5384 return makedev(0, 0);
5387 if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5389 ac_cv_header_sys_types_h_makedev=yes
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 ac_cv_header_sys_types_h_makedev=no
5400 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5402 if test $ac_cv_header_sys_types_h_makedev = no; then
5403 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5404 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5405 echo "configure:5406: checking for sys/mkdev.h" >&5
5406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5412 #include <sys/mkdev.h>
5414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5415 { (eval echo configure:5416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5417 if test -z "$ac_err"; then
5419 eval "ac_cv_header_$ac_safe=yes"
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5425 eval "ac_cv_header_$ac_safe=no"
5429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5430 echo "$ac_t""yes" 1>&6
5431 cat >> confdefs.h <<\EOF
5432 #define MAJOR_IN_MKDEV 1
5436 echo "$ac_t""no" 1>&6
5440 if test $ac_cv_header_sys_mkdev_h = no; then
5441 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5442 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5443 echo "configure:5444: checking for sys/sysmacros.h" >&5
5444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 cat > conftest.$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 #include <sys/sysmacros.h>
5452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5453 { (eval echo configure:5454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5455 if test -z "$ac_err"; then
5457 eval "ac_cv_header_$ac_safe=yes"
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 eval "ac_cv_header_$ac_safe=no"
5467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5468 echo "$ac_t""yes" 1>&6
5469 cat >> confdefs.h <<\EOF
5470 #define MAJOR_IN_SYSMACROS 1
5474 echo "$ac_t""no" 1>&6
5481 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5484 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5485 echo "configure:5486: checking for $ac_hdr that defines DIR" >&5
5486 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 #include <sys/types.h>
5498 if { (eval echo configure:5499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5500 eval "ac_cv_header_dirent_$ac_safe=yes"
5502 echo "configure: failed program was:" >&5
5503 cat conftest.$ac_ext >&5
5505 eval "ac_cv_header_dirent_$ac_safe=no"
5509 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5510 echo "$ac_t""yes" 1>&6
5511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5512 cat >> confdefs.h <<EOF
5513 #define $ac_tr_hdr 1
5515 ac_header_dirent=$ac_hdr; break
5517 echo "$ac_t""no" 1>&6
5520 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5521 if test $ac_header_dirent = dirent.h; then
5522 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5523 echo "configure:5524: checking for opendir in -ldir" >&5
5524 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5526 echo $ac_n "(cached) $ac_c" 1>&6
5528 ac_save_LIBS="$LIBS"
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 /* Override any gcc2 internal prototype to avoid an error. */
5534 /* We use char because int might match the return type of a gcc2
5535 builtin and then its argument prototype would still apply. */
5542 if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5544 eval "ac_cv_lib_$ac_lib_var=yes"
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 eval "ac_cv_lib_$ac_lib_var=no"
5552 LIBS="$ac_save_LIBS"
5555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5556 echo "$ac_t""yes" 1>&6
5559 echo "$ac_t""no" 1>&6
5563 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5564 echo "configure:5565: checking for opendir in -lx" >&5
5565 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5567 echo $ac_n "(cached) $ac_c" 1>&6
5569 ac_save_LIBS="$LIBS"
5571 cat > conftest.$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 /* Override any gcc2 internal prototype to avoid an error. */
5575 /* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5583 if { (eval echo configure:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5585 eval "ac_cv_lib_$ac_lib_var=yes"
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5590 eval "ac_cv_lib_$ac_lib_var=no"
5593 LIBS="$ac_save_LIBS"
5596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5600 echo "$ac_t""no" 1>&6
5605 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5606 echo "configure:5607: checking whether stat file-mode macros are broken" >&5
5607 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 #include <sys/types.h>
5614 #include <sys/stat.h>
5616 #if defined(S_ISBLK) && defined(S_IFDIR)
5617 # if S_ISBLK (S_IFDIR)
5622 #if defined(S_ISBLK) && defined(S_IFCHR)
5623 # if S_ISBLK (S_IFCHR)
5628 #if defined(S_ISLNK) && defined(S_IFREG)
5629 # if S_ISLNK (S_IFREG)
5634 #if defined(S_ISSOCK) && defined(S_IFREG)
5635 # if S_ISSOCK (S_IFREG)
5641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5642 egrep "You lose" >/dev/null 2>&1; then
5644 ac_cv_header_stat_broken=yes
5647 ac_cv_header_stat_broken=no
5653 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5654 if test $ac_cv_header_stat_broken = yes; then
5655 cat >> confdefs.h <<\EOF
5656 #define STAT_MACROS_BROKEN 1
5661 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5662 echo "configure:5663: checking for sys/wait.h that is POSIX.1 compatible" >&5
5663 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5664 echo $ac_n "(cached) $ac_c" 1>&6
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5669 #include <sys/types.h>
5670 #include <sys/wait.h>
5672 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5675 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5680 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5683 if { (eval echo configure:5684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5685 ac_cv_header_sys_wait_h=yes
5687 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5690 ac_cv_header_sys_wait_h=no
5695 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5696 if test $ac_cv_header_sys_wait_h = yes; then
5697 cat >> confdefs.h <<\EOF
5698 #define HAVE_SYS_WAIT_H 1
5703 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5704 echo "configure:5705: checking whether time.h and sys/time.h may both be included" >&5
5705 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5706 echo $ac_n "(cached) $ac_c" 1>&6
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5711 #include <sys/types.h>
5712 #include <sys/time.h>
5718 if { (eval echo configure:5719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5720 ac_cv_header_time=yes
5722 echo "configure: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5725 ac_cv_header_time=no
5730 echo "$ac_t""$ac_cv_header_time" 1>&6
5731 if test $ac_cv_header_time = yes; then
5732 cat >> confdefs.h <<\EOF
5733 #define TIME_WITH_SYS_TIME 1
5738 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5739 echo "configure:5740: checking for st_blksize in struct stat" >&5
5740 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5746 #include <sys/types.h>
5747 #include <sys/stat.h>
5749 struct stat s; s.st_blksize;
5752 if { (eval echo configure:5753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5754 ac_cv_struct_st_blksize=yes
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 ac_cv_struct_st_blksize=no
5764 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5765 if test $ac_cv_struct_st_blksize = yes; then
5766 cat >> confdefs.h <<\EOF
5767 #define HAVE_ST_BLKSIZE 1
5772 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5773 echo "configure:5774: checking for st_blocks in struct stat" >&5
5774 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 cat > conftest.$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5780 #include <sys/types.h>
5781 #include <sys/stat.h>
5783 struct stat s; s.st_blocks;
5786 if { (eval echo configure:5787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5788 ac_cv_struct_st_blocks=yes
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 ac_cv_struct_st_blocks=no
5798 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5799 if test $ac_cv_struct_st_blocks = yes; then
5800 cat >> confdefs.h <<\EOF
5801 #define HAVE_ST_BLOCKS 1
5805 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5808 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5809 echo "configure:5810: checking whether struct tm is in sys/time.h or time.h" >&5
5810 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 #include <sys/types.h>
5819 struct tm *tp; tp->tm_sec;
5822 if { (eval echo configure:5823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5824 ac_cv_struct_tm=time.h
5826 echo "configure: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5829 ac_cv_struct_tm=sys/time.h
5834 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5835 if test $ac_cv_struct_tm = sys/time.h; then
5836 cat >> confdefs.h <<\EOF
5837 #define TM_IN_SYS_TIME 1
5842 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5843 echo "configure:5844: checking for tm_zone in struct tm" >&5
5844 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 #include <sys/types.h>
5851 #include <$ac_cv_struct_tm>
5853 struct tm tm; tm.tm_zone;
5856 if { (eval echo configure:5857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5858 ac_cv_struct_tm_zone=yes
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5863 ac_cv_struct_tm_zone=no
5868 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5869 if test "$ac_cv_struct_tm_zone" = yes; then
5870 cat >> confdefs.h <<\EOF
5871 #define HAVE_TM_ZONE 1
5875 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5876 echo "configure:5877: checking for tzname" >&5
5877 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5884 #ifndef tzname /* For SGI. */
5885 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893 ac_cv_var_tzname=yes
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5903 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5904 if test $ac_cv_var_tzname = yes; then
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE_TZNAME 1
5913 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5914 echo "configure:5915: checking for utime.h" >&5
5915 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 cat > conftest.$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5922 #include <sys/types.h>
5928 if { (eval echo configure:5929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5930 tar_cv_header_utime_h=yes
5932 echo "configure: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5935 tar_cv_header_utime_h=no
5940 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5941 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5942 #define HAVE_UTIME_H 1
5946 echo $ac_n "checking for bigendian""... $ac_c" 1>&6
5947 echo "configure:5948: checking for bigendian" >&5
5948 if eval "test \"`echo '$''{'ba_cv_bigendian'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5951 if test "$cross_compiling" = yes; then
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 main(){long a=1L; char *p=(char *)&a; exit(*p);}
5959 if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5973 echo "$ac_t""$ba_cv_bigendian" 1>&6
5974 test $ba_cv_bigendian = yes && cat >> confdefs.h <<\EOF
5975 #define HAVE_BIGENDIAN 1
5980 echo $ac_n "checking for working const""... $ac_c" 1>&6
5981 echo "configure:5982: checking for working const" >&5
5982 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5983 echo $ac_n "(cached) $ac_c" 1>&6
5985 cat > conftest.$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5991 /* Ultrix mips cc rejects this. */
5992 typedef int charset[2]; const charset x;
5993 /* SunOS 4.1.1 cc rejects this. */
5994 char const *const *ccp;
5996 /* NEC SVR4.0.2 mips cc rejects this. */
5997 struct point {int x, y;};
5998 static struct point const zero = {0,0};
5999 /* AIX XL C 1.02.0.0 rejects this.
6000 It does not let you subtract one const X* pointer from another in an arm
6001 of an if-expression whose if-part is not a constant expression */
6002 const char *g = "string";
6003 ccp = &g + (g ? g-g : 0);
6004 /* HPUX 7.0 cc rejects these. */
6007 ccp = (char const *const *) p;
6008 { /* SCO 3.2v4 cc rejects this. */
6010 char const *s = 0 ? (char *) 0 : (char const *) 0;
6014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6016 const int *foo = &x[0];
6019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6020 typedef const int *iptr;
6024 { /* AIX XL C 1.02.0.0 rejects this saying
6025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6026 struct s { int j; const int *ap[3]; };
6027 struct s *b; b->j = 5;
6029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6035 if { (eval echo configure:6036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6047 echo "$ac_t""$ac_cv_c_const" 1>&6
6048 if test $ac_cv_c_const = no; then
6049 cat >> confdefs.h <<\EOF
6057 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6058 echo "configure:6059: checking how to get filesystem type" >&5
6060 # The order of these tests is important.
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 #include <sys/statvfs.h>
6065 #include <sys/fstyp.h>
6067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6068 { (eval echo configure:6069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6070 if test -z "$ac_err"; then
6072 cat >> confdefs.h <<\EOF
6073 #define FSTYPE_STATVFS 1
6078 echo "configure: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6082 if test $fstype = no; then
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6086 #include <sys/statfs.h>
6087 #include <sys/fstyp.h>
6089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6090 { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6092 if test -z "$ac_err"; then
6094 cat >> confdefs.h <<\EOF
6095 #define FSTYPE_USG_STATFS 1
6100 echo "configure: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6105 if test $fstype = no; then
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 #include <sys/statfs.h>
6110 #include <sys/vmount.h>
6112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6113 { (eval echo configure:6114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6115 if test -z "$ac_err"; then
6117 cat >> confdefs.h <<\EOF
6118 #define FSTYPE_AIX_STATFS 1
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6128 if test $fstype = no; then
6129 cat > conftest.$ac_ext <<EOF
6130 #line 6131 "configure"
6131 #include "confdefs.h"
6134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6135 { (eval echo configure:6136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6137 if test -z "$ac_err"; then
6139 cat >> confdefs.h <<\EOF
6140 #define FSTYPE_MNTENT 1
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6150 if test $fstype = no; then
6151 cat > conftest.$ac_ext <<EOF
6152 #line 6153 "configure"
6153 #include "confdefs.h"
6154 #include <sys/mount.h>
6156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6157 egrep "f_type;" >/dev/null 2>&1; then
6159 cat >> confdefs.h <<\EOF
6160 #define FSTYPE_STATFS 1
6167 if test $fstype = no; then
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6171 #include <sys/mount.h>
6172 #include <sys/fs_types.h>
6174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6175 { (eval echo configure:6176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6177 if test -z "$ac_err"; then
6179 cat >> confdefs.h <<\EOF
6180 #define FSTYPE_GETMNT 1
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6190 echo "$ac_t""$fstype" 1>&6
6192 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6193 echo "configure:6194: checking return type of signal handlers" >&5
6194 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 #include <sys/types.h>
6206 extern "C" void (*signal (int, void (*)(int)))(int);
6208 void (*signal ()) ();
6215 if { (eval echo configure:6216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6217 ac_cv_type_signal=void
6219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6222 ac_cv_type_signal=int
6227 echo "$ac_t""$ac_cv_type_signal" 1>&6
6228 cat >> confdefs.h <<EOF
6229 #define RETSIGTYPE $ac_cv_type_signal
6234 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6235 echo "configure:6236: checking for type of signal functions" >&5
6236 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6237 echo $ac_n "(cached) $ac_c" 1>&6
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6242 "configure"
6242 #include "confdefs.h"
6247 struct sigaction sa;
6248 sigemptyset(&ss); sigsuspend(&ss);
6249 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6250 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6254 if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6256 bash_cv_signal_vintage=posix
6258 echo "configure: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6268 int mask = sigmask(SIGINT);
6269 sigsetmask(mask); sigblock(mask); sigpause(mask);
6273 if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6275 bash_cv_signal_vintage=4.2bsd
6277 echo "configure: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6281 cat > conftest.$ac_ext <<EOF
6282 #line 6283 "configure"
6283 #include "confdefs.h"
6286 RETSIGTYPE foo() { }
6289 int mask = sigmask(SIGINT);
6290 sigset(SIGINT, foo); sigrelse(SIGINT);
6291 sighold(SIGINT); sigpause(SIGINT);
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 bash_cv_signal_vintage=svr3
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6302 bash_cv_signal_vintage=v7
6315 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6316 if test "$bash_cv_signal_vintage" = posix; then
6317 cat >> confdefs.h <<\EOF
6318 #define HAVE_POSIX_SIGNALS 1
6321 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_BSD_SIGNALS 1
6326 elif test "$bash_cv_signal_vintage" = svr3; then
6327 cat >> confdefs.h <<\EOF
6328 #define HAVE_USG_SIGHOLD 1
6333 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6334 echo "configure:6335: checking for mode_t" >&5
6335 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6336 echo $ac_n "(cached) $ac_c" 1>&6
6338 cat > conftest.$ac_ext <<EOF
6339 #line 6340 "configure"
6340 #include "confdefs.h"
6341 #include <sys/types.h>
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6350 ac_cv_type_mode_t=yes
6353 ac_cv_type_mode_t=no
6358 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6359 if test $ac_cv_type_mode_t = no; then
6360 cat >> confdefs.h <<\EOF
6366 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6367 echo "configure:6368: checking for uid_t in sys/types.h" >&5
6368 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6369 echo $ac_n "(cached) $ac_c" 1>&6
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 #include <sys/types.h>
6376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6377 egrep "uid_t" >/dev/null 2>&1; then
6379 ac_cv_type_uid_t=yes
6388 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6389 if test $ac_cv_type_uid_t = no; then
6390 cat >> confdefs.h <<\EOF
6394 cat >> confdefs.h <<\EOF
6400 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6401 echo "configure:6402: checking for size_t" >&5
6402 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6403 echo $ac_n "(cached) $ac_c" 1>&6
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 #include <sys/types.h>
6414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6415 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6417 ac_cv_type_size_t=yes
6420 ac_cv_type_size_t=no
6425 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6426 if test $ac_cv_type_size_t = no; then
6427 cat >> confdefs.h <<\EOF
6428 #define size_t unsigned
6433 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6434 echo "configure:6435: checking for pid_t" >&5
6435 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 #include <sys/types.h>
6447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6448 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6450 ac_cv_type_pid_t=yes
6458 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6459 if test $ac_cv_type_pid_t = no; then
6460 cat >> confdefs.h <<\EOF
6466 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6467 echo "configure:6468: checking for off_t" >&5
6468 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6471 cat > conftest.$ac_ext <<EOF
6472 #line 6473 "configure"
6473 #include "confdefs.h"
6474 #include <sys/types.h>
6480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6481 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6483 ac_cv_type_off_t=yes
6491 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6492 if test $ac_cv_type_off_t = no; then
6493 cat >> confdefs.h <<\EOF
6499 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6500 echo "configure:6501: checking for ino_t" >&5
6501 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6504 cat > conftest.$ac_ext <<EOF
6505 #line 6506 "configure"
6506 #include "confdefs.h"
6507 #include <sys/types.h>
6513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6514 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6516 ac_cv_type_ino_t=yes
6524 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6525 if test $ac_cv_type_ino_t = no; then
6526 cat >> confdefs.h <<\EOF
6527 #define ino_t unsigned long
6532 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6533 echo "configure:6534: checking for dev_t" >&5
6534 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6535 echo $ac_n "(cached) $ac_c" 1>&6
6537 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6540 #include <sys/types.h>
6546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6547 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6549 ac_cv_type_dev_t=yes
6557 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6558 if test $ac_cv_type_dev_t = no; then
6559 cat >> confdefs.h <<\EOF
6560 #define dev_t unsigned long
6565 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6566 echo "configure:6567: checking for daddr_t" >&5
6567 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 #include <sys/types.h>
6579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6580 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6582 ac_cv_type_daddr_t=yes
6585 ac_cv_type_daddr_t=no
6590 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6591 if test $ac_cv_type_daddr_t = no; then
6592 cat >> confdefs.h <<\EOF
6593 #define daddr_t long
6598 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6599 echo "configure:6600: checking for major_t" >&5
6600 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6601 echo $ac_n "(cached) $ac_c" 1>&6
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 #include <sys/types.h>
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6615 ac_cv_type_major_t=yes
6618 ac_cv_type_major_t=no
6623 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6624 if test $ac_cv_type_major_t = no; then
6625 cat >> confdefs.h <<\EOF
6631 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6632 echo "configure:6633: checking for minor_t" >&5
6633 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 #include <sys/types.h>
6645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6646 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6648 ac_cv_type_minor_t=yes
6651 ac_cv_type_minor_t=no
6656 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6657 if test $ac_cv_type_minor_t = no; then
6658 cat >> confdefs.h <<\EOF
6664 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6665 echo "configure:6666: checking for ssize_t" >&5
6666 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 #include <sys/types.h>
6678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6679 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6681 ac_cv_type_ssize_t=yes
6684 ac_cv_type_ssize_t=no
6689 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6690 if test $ac_cv_type_ssize_t = no; then
6691 cat >> confdefs.h <<\EOF
6697 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6698 echo "configure:6699: checking for st_blocks in struct stat" >&5
6699 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6700 echo $ac_n "(cached) $ac_c" 1>&6
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6705 #include <sys/types.h>
6706 #include <sys/stat.h>
6708 struct stat s; s.st_blocks;
6711 if { (eval echo configure:6712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6713 ac_cv_struct_st_blocks=yes
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 ac_cv_struct_st_blocks=no
6723 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6724 if test $ac_cv_struct_st_blocks = yes; then
6725 cat >> confdefs.h <<\EOF
6726 #define HAVE_ST_BLOCKS 1
6730 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6733 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6734 echo "configure:6735: checking for st_rdev in struct stat" >&5
6735 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6736 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>
6742 #include <sys/stat.h>
6744 struct stat s; s.st_rdev;
6747 if { (eval echo configure:6748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6749 ac_cv_struct_st_rdev=yes
6751 echo "configure: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6754 ac_cv_struct_st_rdev=no
6759 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6760 if test $ac_cv_struct_st_rdev = yes; then
6761 cat >> confdefs.h <<\EOF
6762 #define HAVE_ST_RDEV 1
6767 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6768 echo "configure:6769: checking whether struct tm is in sys/time.h or time.h" >&5
6769 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6770 echo $ac_n "(cached) $ac_c" 1>&6
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 #include <sys/types.h>
6778 struct tm *tp; tp->tm_sec;
6781 if { (eval echo configure:6782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6783 ac_cv_struct_tm=time.h
6785 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6788 ac_cv_struct_tm=sys/time.h
6793 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6794 if test $ac_cv_struct_tm = sys/time.h; then
6795 cat >> confdefs.h <<\EOF
6796 #define TM_IN_SYS_TIME 1
6801 echo $ac_n "checking for working const""... $ac_c" 1>&6
6802 echo "configure:6803: checking for working const" >&5
6803 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6812 /* Ultrix mips cc rejects this. */
6813 typedef int charset[2]; const charset x;
6814 /* SunOS 4.1.1 cc rejects this. */
6815 char const *const *ccp;
6817 /* NEC SVR4.0.2 mips cc rejects this. */
6818 struct point {int x, y;};
6819 static struct point const zero = {0,0};
6820 /* AIX XL C 1.02.0.0 rejects this.
6821 It does not let you subtract one const X* pointer from another in an arm
6822 of an if-expression whose if-part is not a constant expression */
6823 const char *g = "string";
6824 ccp = &g + (g ? g-g : 0);
6825 /* HPUX 7.0 cc rejects these. */
6828 ccp = (char const *const *) p;
6829 { /* SCO 3.2v4 cc rejects this. */
6831 char const *s = 0 ? (char *) 0 : (char const *) 0;
6835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6837 const int *foo = &x[0];
6840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6841 typedef const int *iptr;
6845 { /* AIX XL C 1.02.0.0 rejects this saying
6846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6847 struct s { int j; const int *ap[3]; };
6848 struct s *b; b->j = 5;
6850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6856 if { (eval echo configure:6857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6868 echo "$ac_t""$ac_cv_c_const" 1>&6
6869 if test $ac_cv_c_const = no; then
6870 cat >> confdefs.h <<\EOF
6878 echo $ac_n "checking size of char""... $ac_c" 1>&6
6879 echo "configure:6880: checking size of char" >&5
6880 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6883 if test "$cross_compiling" = yes; then
6886 cat > conftest.$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6892 FILE *f=fopen("conftestval", "w");
6894 fprintf(f, "%d\n", sizeof(char));
6898 if { (eval echo configure:6899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6900 ac_cv_sizeof_char=`cat conftestval`
6902 echo "configure: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6911 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6912 cat >> confdefs.h <<EOF
6913 #define SIZEOF_CHAR $ac_cv_sizeof_char
6917 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6918 echo "configure:6919: checking size of short int" >&5
6919 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6922 if test "$cross_compiling" = yes; then
6923 ac_cv_sizeof_short_int=2
6925 cat > conftest.$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6931 FILE *f=fopen("conftestval", "w");
6933 fprintf(f, "%d\n", sizeof(short int));
6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6939 ac_cv_sizeof_short_int=`cat conftestval`
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 ac_cv_sizeof_short_int=0
6950 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6951 cat >> confdefs.h <<EOF
6952 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6956 echo $ac_n "checking size of int""... $ac_c" 1>&6
6957 echo "configure:6958: checking size of int" >&5
6958 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6959 echo $ac_n "(cached) $ac_c" 1>&6
6961 if test "$cross_compiling" = yes; then
6964 cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6970 FILE *f=fopen("conftestval", "w");
6972 fprintf(f, "%d\n", sizeof(int));
6976 if { (eval echo configure:6977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6978 ac_cv_sizeof_int=`cat conftestval`
6980 echo "configure: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6989 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6990 cat >> confdefs.h <<EOF
6991 #define SIZEOF_INT $ac_cv_sizeof_int
6995 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6996 echo "configure:6997: checking size of long int" >&5
6997 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6998 echo $ac_n "(cached) $ac_c" 1>&6
7000 if test "$cross_compiling" = yes; then
7001 ac_cv_sizeof_long_int=4
7003 cat > conftest.$ac_ext <<EOF
7004 #line 7005 "configure"
7005 #include "confdefs.h"
7009 FILE *f=fopen("conftestval", "w");
7011 fprintf(f, "%d\n", sizeof(long int));
7015 if { (eval echo configure:7016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7017 ac_cv_sizeof_long_int=`cat conftestval`
7019 echo "configure: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7022 ac_cv_sizeof_long_int=0
7028 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
7029 cat >> confdefs.h <<EOF
7030 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7034 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
7035 echo "configure:7036: checking size of long long int" >&5
7036 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 if test "$cross_compiling" = yes; then
7040 ac_cv_sizeof_long_long_int=8
7042 cat > conftest.$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7048 FILE *f=fopen("conftestval", "w");
7050 fprintf(f, "%d\n", sizeof(long long int));
7054 if { (eval echo configure:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7056 ac_cv_sizeof_long_long_int=`cat conftestval`
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7061 ac_cv_sizeof_long_long_int=0
7067 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7068 cat >> confdefs.h <<EOF
7069 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7073 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7074 echo "configure:7075: checking size of int *" >&5
7075 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7078 if test "$cross_compiling" = yes; then
7079 ac_cv_sizeof_int_p=4
7081 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7087 FILE *f=fopen("conftestval", "w");
7089 fprintf(f, "%d\n", sizeof(int *));
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7095 ac_cv_sizeof_int_p=`cat conftestval`
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7100 ac_cv_sizeof_int_p=0
7106 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7107 cat >> confdefs.h <<EOF
7108 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7113 # Check for sys/types.h types
7114 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7115 echo "configure:7116: checking for u_int type" >&5
7116 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 #include <sys/types.h>
7128 if { (eval echo configure:7129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7130 ac_cv_have_u_int="yes"
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7135 ac_cv_have_u_int="no"
7142 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7143 if test "x$ac_cv_have_u_int" = "xyes" ; then
7144 cat >> confdefs.h <<\EOF
7145 #define HAVE_U_INT 1
7151 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7152 echo "configure:7153: checking for intmax_t type" >&5
7153 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7160 #include <sys/types.h>
7165 if { (eval echo configure:7166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7167 ac_cv_have_intmax_t="yes"
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7173 cat > conftest.$ac_ext <<EOF
7174 #line 7175 "configure"
7175 #include "confdefs.h"
7181 if { (eval echo configure:7182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7183 ac_cv_have_intmax_t="yes"
7185 echo "configure: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7188 ac_cv_have_intmax_t="no"
7200 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7201 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7202 cat >> confdefs.h <<\EOF
7203 #define HAVE_INTMAX_T 1
7210 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7211 echo "configure:7212: checking for u_intmax_t type" >&5
7212 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7216 cat > conftest.$ac_ext <<EOF
7217 #line 7218 "configure"
7218 #include "confdefs.h"
7219 #include <sys/types.h>
7221 u_intmax_t a; a = 1;
7224 if { (eval echo configure:7225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7226 ac_cv_have_u_intmax_t="yes"
7228 echo "configure: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7232 cat > conftest.$ac_ext <<EOF
7233 #line 7234 "configure"
7234 #include "confdefs.h"
7237 u_intmax_t a; a = 1;
7240 if { (eval echo configure:7241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7242 ac_cv_have_u_intmax_t="yes"
7244 echo "configure: failed program was:" >&5
7245 cat conftest.$ac_ext >&5
7247 ac_cv_have_u_intmax_t="no"
7258 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7259 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7260 cat >> confdefs.h <<\EOF
7261 #define HAVE_U_INTMAX_T 1
7268 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7269 echo "configure:7270: checking for intXX_t types" >&5
7270 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7274 cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7277 #include <sys/types.h>
7279 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7282 if { (eval echo configure:7283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7284 ac_cv_have_intxx_t="yes"
7286 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7289 ac_cv_have_intxx_t="no"
7296 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7297 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7298 cat >> confdefs.h <<\EOF
7299 #define HAVE_INTXX_T 1
7305 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7306 echo "configure:7307: checking for int64_t type" >&5
7307 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 #include <sys/types.h>
7319 if { (eval echo configure:7320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7321 ac_cv_have_int64_t="yes"
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7326 ac_cv_have_int64_t="no"
7333 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7334 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7335 cat >> confdefs.h <<\EOF
7336 #define HAVE_INT64_T 1
7342 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7343 echo "configure:7344: checking for u_intXX_t types" >&5
7344 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7345 echo $ac_n "(cached) $ac_c" 1>&6
7348 cat > conftest.$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 #include <sys/types.h>
7353 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7356 if { (eval echo configure:7357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7358 ac_cv_have_u_intxx_t="yes"
7360 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7363 ac_cv_have_u_intxx_t="no"
7370 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7371 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7372 cat >> confdefs.h <<\EOF
7373 #define HAVE_U_INTXX_T 1
7379 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7380 echo "configure:7381: checking for u_int64_t types" >&5
7381 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7385 cat > conftest.$ac_ext <<EOF
7386 #line 7387 "configure"
7387 #include "confdefs.h"
7388 #include <sys/types.h>
7393 if { (eval echo configure:7394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7395 ac_cv_have_u_int64_t="yes"
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7400 ac_cv_have_u_int64_t="no"
7407 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7408 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7409 cat >> confdefs.h <<\EOF
7410 #define HAVE_U_INT64_T 1
7416 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7417 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7419 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7420 echo "configure:7421: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7421 cat > conftest.$ac_ext <<EOF
7422 #line 7423 "configure"
7423 #include "confdefs.h"
7424 #include <sys/bitypes.h>
7426 int8_t a; int16_t b; int32_t c;
7427 u_int8_t e; u_int16_t f; u_int32_t g;
7428 a = b = c = e = f = g = 1;
7431 if { (eval echo configure:7432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7433 cat >> confdefs.h <<\EOF
7434 #define HAVE_U_INTXX_T 1
7437 cat >> confdefs.h <<\EOF
7438 #define HAVE_INTXX_T 1
7441 cat >> confdefs.h <<\EOF
7442 #define HAVE_SYS_BITYPES_H 1
7445 echo "$ac_t""yes" 1>&6
7447 echo "configure: failed program was:" >&5
7448 cat conftest.$ac_ext >&5
7450 echo "$ac_t""no" 1>&6
7456 if test -z "$have_u_intxx_t" ; then
7457 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7458 echo "configure:7459: checking for uintXX_t types" >&5
7459 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7460 echo $ac_n "(cached) $ac_c" 1>&6
7463 cat > conftest.$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7466 #include <sys/types.h>
7468 uint8_t a; uint16_t b;
7469 uint32_t c; a = b = c = 1;
7472 if { (eval echo configure:7473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7474 ac_cv_have_uintxx_t="yes"
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7479 ac_cv_have_uintxx_t="no"
7486 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7487 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7488 cat >> confdefs.h <<\EOF
7489 #define HAVE_UINTXX_T 1
7512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7513 echo "configure:7514: checking for $ac_func" >&5
7514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7517 cat > conftest.$ac_ext <<EOF
7518 #line 7519 "configure"
7519 #include "confdefs.h"
7520 /* System header to define __stub macros and hopefully few prototypes,
7521 which can conflict with char $ac_func(); below. */
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7530 /* The GNU C library defines this for functions which it implements
7531 to always fail with ENOSYS. Some functions are actually named
7532 something starting with __ and the normal name is an alias. */
7533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7541 if { (eval echo configure:7542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7543 eval "ac_cv_func_$ac_func=yes"
7545 echo "configure: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7548 eval "ac_cv_func_$ac_func=no"
7553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7556 cat >> confdefs.h <<EOF
7557 #define $ac_tr_func 1
7561 echo "$ac_t""no" 1>&6
7562 echo 'configure: cannot find needed function.'; exit 1
7568 for ac_func in fchdir
7570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7571 echo "configure:7572: checking for $ac_func" >&5
7572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7573 echo $ac_n "(cached) $ac_c" 1>&6
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7578 /* System header to define __stub macros and hopefully few prototypes,
7579 which can conflict with char $ac_func(); below. */
7581 /* Override any gcc2 internal prototype to avoid an error. */
7582 /* We use char because int might match the return type of a gcc2
7583 builtin and then its argument prototype would still apply. */
7588 /* The GNU C library defines this for functions which it implements
7589 to always fail with ENOSYS. Some functions are actually named
7590 something starting with __ and the normal name is an alias. */
7591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7599 if { (eval echo configure:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7601 eval "ac_cv_func_$ac_func=yes"
7603 echo "configure: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7606 eval "ac_cv_func_$ac_func=no"
7611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7612 echo "$ac_t""yes" 1>&6
7613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7614 cat >> confdefs.h <<EOF
7615 #define $ac_tr_func 1
7617 cat >> confdefs.h <<\EOF
7618 #define HAVE_FCHDIR 1
7622 echo "$ac_t""no" 1>&6
7627 for ac_func in snprintf vsnprintf gethostid getdomainname
7629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7630 echo "configure:7631: checking for $ac_func" >&5
7631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7637 /* System header to define __stub macros and hopefully few prototypes,
7638 which can conflict with char $ac_func(); below. */
7640 /* Override any gcc2 internal prototype to avoid an error. */
7641 /* We use char because int might match the return type of a gcc2
7642 builtin and then its argument prototype would still apply. */
7647 /* The GNU C library defines this for functions which it implements
7648 to always fail with ENOSYS. Some functions are actually named
7649 something starting with __ and the normal name is an alias. */
7650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7658 if { (eval echo configure:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7660 eval "ac_cv_func_$ac_func=yes"
7662 echo "configure: failed program was:" >&5
7663 cat conftest.$ac_ext >&5
7665 eval "ac_cv_func_$ac_func=no"
7670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7671 echo "$ac_t""yes" 1>&6
7672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7673 cat >> confdefs.h <<EOF
7674 #define $ac_tr_func 1
7678 echo "$ac_t""no" 1>&6
7683 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7686 echo "configure:7687: checking for $ac_func" >&5
7687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7690 cat > conftest.$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7693 /* System header to define __stub macros and hopefully few prototypes,
7694 which can conflict with char $ac_func(); below. */
7696 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7703 /* The GNU C library defines this for functions which it implements
7704 to always fail with ENOSYS. Some functions are actually named
7705 something starting with __ and the normal name is an alias. */
7706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7716 eval "ac_cv_func_$ac_func=yes"
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7721 eval "ac_cv_func_$ac_func=no"
7726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7729 cat >> confdefs.h <<EOF
7730 #define $ac_tr_func 1
7734 echo "$ac_t""no" 1>&6
7739 # If resolver functions are not in libc check for -lnsl or -lresolv.
7740 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7741 echo "configure:7742: checking for gethostbyname_r" >&5
7742 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7745 cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* System header to define __stub macros and hopefully few prototypes,
7749 which can conflict with char gethostbyname_r(); below. */
7751 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7754 char gethostbyname_r();
7758 /* The GNU C library defines this for functions which it implements
7759 to always fail with ENOSYS. Some functions are actually named
7760 something starting with __ and the normal name is an alias. */
7761 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7769 if { (eval echo configure:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7771 eval "ac_cv_func_gethostbyname_r=yes"
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7776 eval "ac_cv_func_gethostbyname_r=no"
7781 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7782 echo "$ac_t""yes" 1>&6
7783 echo "$ac_t""using libc's resolver" 1>&6
7785 echo "$ac_t""no" 1>&6
7786 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7787 echo "configure:7788: checking for gethostbyname_r in -lnsl" >&5
7788 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7790 echo $ac_n "(cached) $ac_c" 1>&6
7792 ac_save_LIBS="$LIBS"
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 /* Override any gcc2 internal prototype to avoid an error. */
7798 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */
7800 char gethostbyname_r();
7806 if { (eval echo configure:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7808 eval "ac_cv_lib_$ac_lib_var=yes"
7810 echo "configure: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7813 eval "ac_cv_lib_$ac_lib_var=no"
7816 LIBS="$ac_save_LIBS"
7819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7820 echo "$ac_t""yes" 1>&6
7821 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7822 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7823 cat >> confdefs.h <<EOF
7824 #define $ac_tr_lib 1
7830 echo "$ac_t""no" 1>&6
7833 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7834 echo "configure:7835: checking for gethostbyname_r in -lresolv" >&5
7835 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7837 echo $ac_n "(cached) $ac_c" 1>&6
7839 ac_save_LIBS="$LIBS"
7840 LIBS="-lresolv $LIBS"
7841 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure"
7843 #include "confdefs.h"
7844 /* Override any gcc2 internal prototype to avoid an error. */
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7847 char gethostbyname_r();
7853 if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7855 eval "ac_cv_lib_$ac_lib_var=yes"
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7860 eval "ac_cv_lib_$ac_lib_var=no"
7863 LIBS="$ac_save_LIBS"
7866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7867 echo "$ac_t""yes" 1>&6
7868 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7869 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7870 cat >> confdefs.h <<EOF
7871 #define $ac_tr_lib 1
7874 LIBS="-lresolv $LIBS"
7877 echo "$ac_t""no" 1>&6
7884 # Find where sockets are (especially for Solaris)
7885 echo $ac_n "checking for socket""... $ac_c" 1>&6
7886 echo "configure:7887: checking for socket" >&5
7887 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 /* System header to define __stub macros and hopefully few prototypes,
7894 which can conflict with char socket(); below. */
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 /* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7903 /* The GNU C library defines this for functions which it implements
7904 to always fail with ENOSYS. Some functions are actually named
7905 something starting with __ and the normal name is an alias. */
7906 #if defined (__stub_socket) || defined (__stub___socket)
7914 if { (eval echo configure:7915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7916 eval "ac_cv_func_socket=yes"
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7921 eval "ac_cv_func_socket=no"
7926 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7927 echo "$ac_t""yes" 1>&6
7928 echo "$ac_t""using libc's socket" 1>&6
7930 echo "$ac_t""no" 1>&6
7931 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7932 echo "configure:7933: checking for socket in -lxnet" >&5
7933 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7934 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7935 echo $ac_n "(cached) $ac_c" 1>&6
7937 ac_save_LIBS="$LIBS"
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7942 /* Override any gcc2 internal prototype to avoid an error. */
7943 /* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */
7951 if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7953 eval "ac_cv_lib_$ac_lib_var=yes"
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7958 eval "ac_cv_lib_$ac_lib_var=no"
7961 LIBS="$ac_save_LIBS"
7964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7965 echo "$ac_t""yes" 1>&6
7966 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7967 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7968 cat >> confdefs.h <<EOF
7969 #define $ac_tr_lib 1
7975 echo "$ac_t""no" 1>&6
7978 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7979 echo "configure:7980: checking for socket in -lsocket" >&5
7980 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7984 ac_save_LIBS="$LIBS"
7985 LIBS="-lsocket $LIBS"
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7998 if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8000 eval "ac_cv_lib_$ac_lib_var=yes"
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8005 eval "ac_cv_lib_$ac_lib_var=no"
8008 LIBS="$ac_save_LIBS"
8011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8012 echo "$ac_t""yes" 1>&6
8013 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
8014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8015 cat >> confdefs.h <<EOF
8016 #define $ac_tr_lib 1
8019 LIBS="-lsocket $LIBS"
8022 echo "$ac_t""no" 1>&6
8025 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8026 echo "configure:8027: checking for socket in -linet" >&5
8027 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
8028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8031 ac_save_LIBS="$LIBS"
8033 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8036 /* Override any gcc2 internal prototype to avoid an error. */
8037 /* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */
8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8047 eval "ac_cv_lib_$ac_lib_var=yes"
8049 echo "configure: failed program was:" >&5
8050 cat conftest.$ac_ext >&5
8052 eval "ac_cv_lib_$ac_lib_var=no"
8055 LIBS="$ac_save_LIBS"
8058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8059 echo "$ac_t""yes" 1>&6
8060 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8061 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8062 cat >> confdefs.h <<EOF
8063 #define $ac_tr_lib 1
8069 echo "$ac_t""no" 1>&6
8075 for ac_func in inet_pton
8077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8078 echo "configure:8079: checking for $ac_func" >&5
8079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8080 echo $ac_n "(cached) $ac_c" 1>&6
8082 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8085 /* System header to define __stub macros and hopefully few prototypes,
8086 which can conflict with char $ac_func(); below. */
8088 /* Override any gcc2 internal prototype to avoid an error. */
8089 /* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8095 /* The GNU C library defines this for functions which it implements
8096 to always fail with ENOSYS. Some functions are actually named
8097 something starting with __ and the normal name is an alias. */
8098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8106 if { (eval echo configure:8107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8108 eval "ac_cv_func_$ac_func=yes"
8110 echo "configure: failed program was:" >&5
8111 cat conftest.$ac_ext >&5
8113 eval "ac_cv_func_$ac_func=no"
8118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8119 echo "$ac_t""yes" 1>&6
8120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8121 cat >> confdefs.h <<EOF
8122 #define $ac_tr_func 1
8124 cat >> confdefs.h <<\EOF
8125 #define HAVE_INET_PTON 1
8129 echo "$ac_t""no" 1>&6
8134 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8135 echo "configure:8136: checking for strftime" >&5
8136 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* System header to define __stub macros and hopefully few prototypes,
8143 which can conflict with char strftime(); below. */
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8152 /* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155 #if defined (__stub_strftime) || defined (__stub___strftime)
8163 if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8165 eval "ac_cv_func_strftime=yes"
8167 echo "configure: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8170 eval "ac_cv_func_strftime=no"
8175 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8176 echo "$ac_t""yes" 1>&6
8177 cat >> confdefs.h <<\EOF
8178 #define HAVE_STRFTIME 1
8182 echo "$ac_t""no" 1>&6
8183 # strftime is in -lintl on SCO UNIX.
8184 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8185 echo "configure:8186: checking for strftime in -lintl" >&5
8186 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8188 echo $ac_n "(cached) $ac_c" 1>&6
8190 ac_save_LIBS="$LIBS"
8192 cat > conftest.$ac_ext <<EOF
8193 #line 8194 "configure"
8194 #include "confdefs.h"
8195 /* Override any gcc2 internal prototype to avoid an error. */
8196 /* We use char because int might match the return type of a gcc2
8197 builtin and then its argument prototype would still apply. */
8204 if { (eval echo configure:8205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8206 eval "ac_cv_lib_$ac_lib_var=yes"
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8211 eval "ac_cv_lib_$ac_lib_var=no"
8214 LIBS="$ac_save_LIBS"
8217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8218 echo "$ac_t""yes" 1>&6
8219 cat >> confdefs.h <<\EOF
8220 #define HAVE_STRFTIME 1
8225 echo "$ac_t""no" 1>&6
8230 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8231 echo "configure:8232: checking for vprintf" >&5
8232 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8233 echo $ac_n "(cached) $ac_c" 1>&6
8235 cat > conftest.$ac_ext <<EOF
8236 #line 8237 "configure"
8237 #include "confdefs.h"
8238 /* System header to define __stub macros and hopefully few prototypes,
8239 which can conflict with char vprintf(); below. */
8241 /* Override any gcc2 internal prototype to avoid an error. */
8242 /* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8248 /* The GNU C library defines this for functions which it implements
8249 to always fail with ENOSYS. Some functions are actually named
8250 something starting with __ and the normal name is an alias. */
8251 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261 eval "ac_cv_func_vprintf=yes"
8263 echo "configure: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8266 eval "ac_cv_func_vprintf=no"
8271 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8272 echo "$ac_t""yes" 1>&6
8273 cat >> confdefs.h <<\EOF
8274 #define HAVE_VPRINTF 1
8278 echo "$ac_t""no" 1>&6
8281 if test "$ac_cv_func_vprintf" != yes; then
8282 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8283 echo "configure:8284: checking for _doprnt" >&5
8284 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8285 echo $ac_n "(cached) $ac_c" 1>&6
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8290 /* System header to define __stub macros and hopefully few prototypes,
8291 which can conflict with char _doprnt(); below. */
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8300 /* The GNU C library defines this for functions which it implements
8301 to always fail with ENOSYS. Some functions are actually named
8302 something starting with __ and the normal name is an alias. */
8303 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8311 if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313 eval "ac_cv_func__doprnt=yes"
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8318 eval "ac_cv_func__doprnt=no"
8323 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8324 echo "$ac_t""yes" 1>&6
8325 cat >> confdefs.h <<\EOF
8326 #define HAVE_DOPRNT 1
8330 echo "$ac_t""no" 1>&6
8335 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8336 # for constant arguments. Useless!
8337 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8338 echo "configure:8339: checking for working alloca.h" >&5
8339 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8347 char *p = alloca(2 * sizeof(int));
8350 if { (eval echo configure:8351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8352 ac_cv_header_alloca_h=yes
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8357 ac_cv_header_alloca_h=no
8362 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8363 if test $ac_cv_header_alloca_h = yes; then
8364 cat >> confdefs.h <<\EOF
8365 #define HAVE_ALLOCA_H 1
8370 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8371 echo "configure:8372: checking for alloca" >&5
8372 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8375 cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8380 # define alloca __builtin_alloca
8383 # include <malloc.h>
8384 # define alloca _alloca
8387 # include <alloca.h>
8392 # ifndef alloca /* predefined by HP cc +Olibcalls */
8401 char *p = (char *) alloca(1);
8404 if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8406 ac_cv_func_alloca_works=yes
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8411 ac_cv_func_alloca_works=no
8416 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8417 if test $ac_cv_func_alloca_works = yes; then
8418 cat >> confdefs.h <<\EOF
8419 #define HAVE_ALLOCA 1
8424 if test $ac_cv_func_alloca_works = no; then
8425 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8426 # that cause trouble. Some versions do not even contain alloca or
8427 # contain a buggy version. If you still want to use their alloca,
8428 # use ar to extract alloca.o from them instead of compiling alloca.c.
8429 ALLOCA=alloca.${ac_objext}
8430 cat >> confdefs.h <<\EOF
8435 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8436 echo "configure:8437: checking whether alloca needs Cray hooks" >&5
8437 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8440 cat > conftest.$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 #if defined(CRAY) && ! defined(CRAY2)
8450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8451 egrep "webecray" >/dev/null 2>&1; then
8462 echo "$ac_t""$ac_cv_os_cray" 1>&6
8463 if test $ac_cv_os_cray = yes; then
8464 for ac_func in _getb67 GETB67 getb67; do
8465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8466 echo "configure:8467: checking for $ac_func" >&5
8467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8473 /* System header to define __stub macros and hopefully few prototypes,
8474 which can conflict with char $ac_func(); below. */
8476 /* Override any gcc2 internal prototype to avoid an error. */
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8483 /* The GNU C library defines this for functions which it implements
8484 to always fail with ENOSYS. Some functions are actually named
8485 something starting with __ and the normal name is an alias. */
8486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8494 if { (eval echo configure:8495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8496 eval "ac_cv_func_$ac_func=yes"
8498 echo "configure: failed program was:" >&5
8499 cat conftest.$ac_ext >&5
8501 eval "ac_cv_func_$ac_func=no"
8506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8507 echo "$ac_t""yes" 1>&6
8508 cat >> confdefs.h <<EOF
8509 #define CRAY_STACKSEG_END $ac_func
8514 echo "$ac_t""no" 1>&6
8520 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8521 echo "configure:8522: checking stack direction for C alloca" >&5
8522 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8525 if test "$cross_compiling" = yes; then
8526 ac_cv_c_stack_direction=0
8528 cat > conftest.$ac_ext <<EOF
8529 #line 8530 "configure"
8530 #include "confdefs.h"
8531 find_stack_direction ()
8533 static char *addr = 0;
8538 return find_stack_direction ();
8541 return (&dummy > addr) ? 1 : -1;
8545 exit (find_stack_direction() < 0);
8548 if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8550 ac_cv_c_stack_direction=1
8552 echo "configure: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8555 ac_cv_c_stack_direction=-1
8562 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8563 cat >> confdefs.h <<EOF
8564 #define STACK_DIRECTION $ac_cv_c_stack_direction
8569 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8570 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8571 echo "configure:8572: checking for getmntent in -lsun" >&5
8572 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8576 ac_save_LIBS="$LIBS"
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8581 /* Override any gcc2 internal prototype to avoid an error. */
8582 /* We use char because int might match the return type of a gcc2
8583 builtin and then its argument prototype would still apply. */
8590 if { (eval echo configure:8591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8592 eval "ac_cv_lib_$ac_lib_var=yes"
8594 echo "configure: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8597 eval "ac_cv_lib_$ac_lib_var=no"
8600 LIBS="$ac_save_LIBS"
8603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8604 echo "$ac_t""yes" 1>&6
8607 echo "$ac_t""no" 1>&6
8608 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8609 echo "configure:8610: checking for getmntent in -lseq" >&5
8610 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8614 ac_save_LIBS="$LIBS"
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8619 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8628 if { (eval echo configure:8629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8630 eval "ac_cv_lib_$ac_lib_var=yes"
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8635 eval "ac_cv_lib_$ac_lib_var=no"
8638 LIBS="$ac_save_LIBS"
8641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8642 echo "$ac_t""yes" 1>&6
8645 echo "$ac_t""no" 1>&6
8646 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8647 echo "configure:8648: checking for getmntent in -lgen" >&5
8648 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8650 echo $ac_n "(cached) $ac_c" 1>&6
8652 ac_save_LIBS="$LIBS"
8654 cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8657 /* Override any gcc2 internal prototype to avoid an error. */
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8666 if { (eval echo configure:8667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8668 eval "ac_cv_lib_$ac_lib_var=yes"
8670 echo "configure: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8673 eval "ac_cv_lib_$ac_lib_var=no"
8676 LIBS="$ac_save_LIBS"
8679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8680 echo "$ac_t""yes" 1>&6
8683 echo "$ac_t""no" 1>&6
8690 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8691 echo "configure:8692: checking for getmntent" >&5
8692 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 /* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char getmntent(); below. */
8701 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8708 /* The GNU C library defines this for functions which it implements
8709 to always fail with ENOSYS. Some functions are actually named
8710 something starting with __ and the normal name is an alias. */
8711 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8721 eval "ac_cv_func_getmntent=yes"
8723 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8726 eval "ac_cv_func_getmntent=no"
8731 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8732 echo "$ac_t""yes" 1>&6
8733 cat >> confdefs.h <<\EOF
8734 #define HAVE_GETMNTENT 1
8738 echo "$ac_t""no" 1>&6
8741 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8742 echo "configure:8743: checking whether closedir returns void" >&5
8743 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8746 if test "$cross_compiling" = yes; then
8747 ac_cv_func_closedir_void=yes
8749 cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8752 #include <sys/types.h>
8753 #include <$ac_header_dirent>
8754 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8756 if { (eval echo configure:8757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8758 ac_cv_func_closedir_void=no
8760 echo "configure: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8763 ac_cv_func_closedir_void=yes
8770 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8771 if test $ac_cv_func_closedir_void = yes; then
8772 cat >> confdefs.h <<\EOF
8773 #define CLOSEDIR_VOID 1
8778 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8779 echo "configure:8780: checking whether setpgrp takes no argument" >&5
8780 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8783 if test "$cross_compiling" = yes; then
8784 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8790 #ifdef HAVE_UNISTD_H
8795 * If this system has a BSD-style setpgrp, which takes arguments, exit
8800 if (setpgrp(1,1) == -1)
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8809 ac_cv_func_setpgrp_void=no
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8814 ac_cv_func_setpgrp_void=yes
8822 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8823 if test $ac_cv_func_setpgrp_void = yes; then
8824 cat >> confdefs.h <<\EOF
8825 #define SETPGRP_VOID 1
8829 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8830 echo "configure:8831: checking for working fnmatch" >&5
8831 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8834 # Some versions of Solaris or SCO have a broken fnmatch function.
8835 # So we run a test program. If we are cross-compiling, take no chance.
8836 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8837 if test "$cross_compiling" = yes; then
8838 ac_cv_func_fnmatch_works=no
8840 cat > conftest.$ac_ext <<EOF
8841 #line 8842 "configure"
8842 #include "confdefs.h"
8843 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8845 if { (eval echo configure:8846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8847 ac_cv_func_fnmatch_works=yes
8849 echo "configure: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8852 ac_cv_func_fnmatch_works=no
8859 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8860 if test $ac_cv_func_fnmatch_works = yes; then
8861 cat >> confdefs.h <<\EOF
8862 #define HAVE_FNMATCH 1
8869 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8870 echo "configure:8871: checking for setlocale in -lxpg4" >&5
8871 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8875 ac_save_LIBS="$LIBS"
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 /* Override any gcc2 internal prototype to avoid an error. */
8881 /* We use char because int might match the return type of a gcc2
8882 builtin and then its argument prototype would still apply. */
8889 if { (eval echo configure:8890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8891 eval "ac_cv_lib_$ac_lib_var=yes"
8893 echo "configure: failed program was:" >&5
8894 cat conftest.$ac_ext >&5
8896 eval "ac_cv_lib_$ac_lib_var=no"
8899 LIBS="$ac_save_LIBS"
8902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8903 echo "$ac_t""yes" 1>&6
8906 echo "$ac_t""no" 1>&6
8911 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8912 echo "configure:8913: checking for getpwnam in -lsun" >&5
8913 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8917 ac_save_LIBS="$LIBS"
8919 cat > conftest.$ac_ext <<EOF
8920 #line 8921 "configure"
8921 #include "confdefs.h"
8922 /* Override any gcc2 internal prototype to avoid an error. */
8923 /* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */
8931 if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8933 eval "ac_cv_lib_$ac_lib_var=yes"
8935 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8938 eval "ac_cv_lib_$ac_lib_var=no"
8941 LIBS="$ac_save_LIBS"
8944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8945 echo "$ac_t""yes" 1>&6
8946 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8947 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8948 cat >> confdefs.h <<EOF
8949 #define $ac_tr_lib 1
8955 echo "$ac_t""no" 1>&6
8959 for ac_hdr in zlib.h
8961 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8963 echo "configure:8964: checking for $ac_hdr" >&5
8964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8965 echo $ac_n "(cached) $ac_c" 1>&6
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8973 { (eval echo configure:8974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8975 if test -z "$ac_err"; then
8977 eval "ac_cv_header_$ac_safe=yes"
8980 echo "configure: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8983 eval "ac_cv_header_$ac_safe=no"
8987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8988 echo "$ac_t""yes" 1>&6
8989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8990 cat >> confdefs.h <<EOF
8991 #define $ac_tr_hdr 1
8995 echo "$ac_t""no" 1>&6
8999 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9000 echo "configure:9001: checking for deflate in -lz" >&5
9001 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9005 ac_save_LIBS="$LIBS"
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 /* Override any gcc2 internal prototype to avoid an error. */
9011 /* We use char because int might match the return type of a gcc2
9012 builtin and then its argument prototype would still apply. */
9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9021 eval "ac_cv_lib_$ac_lib_var=yes"
9023 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9026 eval "ac_cv_lib_$ac_lib_var=no"
9029 LIBS="$ac_save_LIBS"
9032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9033 echo "$ac_t""yes" 1>&6
9036 echo "$ac_t""no" 1>&6
9040 if test x$FDLIBS = x-lz; then
9041 cat >> confdefs.h <<\EOF
9049 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
9050 echo "configure:9051: checking for pthread_create in -lpthread" >&5
9051 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9055 ac_save_LIBS="$LIBS"
9056 LIBS="-lpthread $LIBS"
9057 cat > conftest.$ac_ext <<EOF
9058 #line 9059 "configure"
9059 #include "confdefs.h"
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9063 char pthread_create();
9069 if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9071 eval "ac_cv_lib_$ac_lib_var=yes"
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 eval "ac_cv_lib_$ac_lib_var=no"
9079 LIBS="$ac_save_LIBS"
9082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9083 echo "$ac_t""yes" 1>&6
9084 PTHREAD_LIB="-lpthread"
9086 echo "$ac_t""no" 1>&6
9087 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9088 echo "configure:9089: checking for pthread_create in -lpthreads" >&5
9089 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9093 ac_save_LIBS="$LIBS"
9094 LIBS="-lpthreads $LIBS"
9095 cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9098 /* Override any gcc2 internal prototype to avoid an error. */
9099 /* We use char because int might match the return type of a gcc2
9100 builtin and then its argument prototype would still apply. */
9101 char pthread_create();
9107 if { (eval echo configure:9108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9109 eval "ac_cv_lib_$ac_lib_var=yes"
9111 echo "configure: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9114 eval "ac_cv_lib_$ac_lib_var=no"
9117 LIBS="$ac_save_LIBS"
9120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9121 echo "$ac_t""yes" 1>&6
9122 PTHREAD_LIB="-lpthreads"
9124 echo "$ac_t""no" 1>&6
9125 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9126 echo "configure:9127: checking for pthread_create in -lc_r" >&5
9127 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9131 ac_save_LIBS="$LIBS"
9133 cat > conftest.$ac_ext <<EOF
9134 #line 9135 "configure"
9135 #include "confdefs.h"
9136 /* Override any gcc2 internal prototype to avoid an error. */
9137 /* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9139 char pthread_create();
9145 if { (eval echo configure:9146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9147 eval "ac_cv_lib_$ac_lib_var=yes"
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9152 eval "ac_cv_lib_$ac_lib_var=no"
9155 LIBS="$ac_save_LIBS"
9158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9159 echo "$ac_t""yes" 1>&6
9162 echo "$ac_t""no" 1>&6
9163 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9164 echo "configure:9165: checking for pthread_create" >&5
9165 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 /* System header to define __stub macros and hopefully few prototypes,
9172 which can conflict with char pthread_create(); below. */
9174 /* Override any gcc2 internal prototype to avoid an error. */
9175 /* We use char because int might match the return type of a gcc2
9176 builtin and then its argument prototype would still apply. */
9177 char pthread_create();
9181 /* The GNU C library defines this for functions which it implements
9182 to always fail with ENOSYS. Some functions are actually named
9183 something starting with __ and the normal name is an alias. */
9184 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9192 if { (eval echo configure:9193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9194 eval "ac_cv_func_pthread_create=yes"
9196 echo "configure: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9199 eval "ac_cv_func_pthread_create=no"
9204 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9205 echo "$ac_t""yes" 1>&6
9208 echo "$ac_t""no" 1>&6
9222 cat >> confdefs.h <<\EOF
9229 LDFLAGS=${LDFLAGS--O}
9230 DB_LIBS="${SQL_LFLAGS}"
9232 CPPFLAGS="$CPPFLAGS"
9252 # Finally we set appropriate distribution specific
9253 # variables and defaults
9255 # PFILES are platform specific files
9256 PFILES="platforms/Makefile"
9263 PTHREAD_LIB="-lpthread -lexc"
9264 if test "${CC}" = "gcc" ; then
9271 TAPEDRIVE="/dev/nrmt0"
9274 DISTVER=`uname -a |awk '{print $3}'`
9275 TAPEDRIVE="/dev/nrst0"
9278 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
9279 TAPEDRIVE="/dev/nrst0"
9280 PSCMD="ps -e -o pid,command"
9281 hostname=`hostname -s`
9284 DISTVER=`uname -a |awk '{print $3}'`
9285 TAPEDRIVE="/dev/nrst0"
9287 CFLAGS="${CFLAGS} -mwindows"
9288 LDFLAGS="${LDFLAGS} -mwindows"
9292 TAPEDRIVE="/dev/nst0"
9293 PSCMD="ps -e -o pid,command"
9294 hostname=`hostname -s`
9296 platforms/darwin/Makefile"
9299 DISTVER=`cat /etc/debian_version`
9300 TAPEDRIVE="/dev/nrst0"
9301 PSCMD="ps -e -o pid,command"
9302 hostname=`hostname -s`
9305 DISTVER=`uname -a |awk '{print $3}'`
9306 PTHREAD_LIB="-pthread"
9307 CFLAGS="${CFLAGS} -pthread"
9310 TAPEDRIVE="/dev/nrst0"
9311 PSCMD="ps -x -o pid,command"
9313 platforms/freebsd/Makefile \
9314 platforms/freebsd/bacula-fd \
9315 platforms/freebsd/bacula-sd \
9316 platforms/freebsd/bacula-dir"
9317 hostname=`hostname -s`
9318 largefile_support="yes"
9322 TAPEDRIVE="/dev/rmt/0hnb"
9326 TAPEDRIVE="/dev/rmt/0cbn"
9327 PSCMD="ps -e -o pid,comm"
9328 hostname=`/usr/bsd/hostname -s`
9330 platforms/irix/Makefile \
9331 platforms/irix/bacula-fd \
9332 platforms/irix/bacula-sd \
9333 platforms/irix/bacula-dir"
9336 DISTVER=`uname -a |awk '{print $3}'`
9339 TAPEDRIVE="/dev/nrst0"
9340 PSCMD="ps -a -o pid,command"
9341 PTHREAD_LIB="-pthread"
9342 CFLAGS="${CFLAGS} -pthread"
9345 DISTVER=`uname -a |awk '{print $3}'`
9348 TAPEDRIVE="/dev/nrst0"
9349 PSCMD="ps -a -o pid,command"
9350 PTHREAD_LIB="-pthread"
9351 CFLAGS="${CFLAGS} -pthread"
9353 platforms/openbsd/Makefile \
9354 platforms/openbsd/bacula-fd \
9355 platforms/openbsd/bacula-sd \
9356 platforms/openbsd/bacula-dir"
9359 DISTVER=`cat /etc/redhat-release | grep release |\
9361 TAPEDRIVE="/dev/nst0"
9362 PSCMD="ps -e -o pid,command"
9364 platforms/redhat/Makefile \
9365 platforms/redhat/bacula-fd \
9366 platforms/redhat/bacula-sd \
9367 platforms/redhat/bacula-dir"
9368 hostname=`hostname -s`
9371 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
9372 TAPEDRIVE="/dev/nst0"
9373 PSCMD="ps -e -o pid,command"
9375 platforms/gentoo/Makefile \
9376 platforms/gentoo/bacula-fd \
9377 platforms/gentoo/bacula-sd \
9378 platforms/gentoo/bacula-dir"
9379 hostname=`hostname -s`
9383 DISTVER=`cat /etc/slackware-version`
9384 TAPEDRIVE="/dev/nst0"
9385 PSCMD="ps -e -o pid,command"
9386 hostname=`hostname -s`
9390 TAPEDRIVE="/dev/rmt/0cbn"
9391 PSCMD="ps -e -o pid,comm"
9393 platforms/solaris/Makefile \
9394 platforms/solaris/bacula-fd \
9395 platforms/solaris/bacula-sd \
9396 platforms/solaris/bacula-dir"
9399 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9401 TAPEDRIVE="/dev/nst0"
9402 PSCMD="ps -e -o pid,command"
9403 hostname=`hostname -s`
9408 TAPEDRIVE="/dev/nst0"
9409 PSCMD="ps -e -o pid,command"
9410 hostname=`hostname -s`
9414 TAPEDRIVE="/dev/nst0"
9417 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9424 LIBS="$PTHREAD_LIB $LIBS"
9426 cat >> confdefs.h <<EOF
9430 cat >> confdefs.h <<EOF
9441 MCOMMON=./autoconf/Make.common
9445 cat > confcache <<\EOF
9446 # This file is a shell script that caches the results of configure
9447 # tests run on this system so they can be shared between configure
9448 # scripts and configure runs. It is not useful on other systems.
9449 # If it contains results you don't want to keep, you may remove or edit it.
9451 # By default, configure uses ./config.cache as the cache file,
9452 # creating it if it does not exist already. You can give configure
9453 # the --cache-file=FILE option to use a different cache file; that is
9454 # what configure does when it calls configure scripts in
9455 # subdirectories, so they share the cache.
9456 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9457 # config.status only pays attention to the cache file if you give it the
9458 # --recheck option to rerun configure.
9461 # The following way of writing the cache mishandles newlines in values,
9462 # but we know of no workaround that is simple, portable, and efficient.
9463 # So, don't put newlines in cache variables' values.
9464 # Ultrix sh set writes to stderr and can't be redirected directly,
9465 # and sets the high bit in the cache file unless we assign to the vars.
9467 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9469 # `set' does not quote correctly, so add quotes (double-quote substitution
9470 # turns \\\\ into \\, and sed turns \\ into \).
9472 -e "s/'/'\\\\''/g" \
9473 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9476 # `set' quotes correctly as required by POSIX, so do not add quotes.
9477 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9480 if cmp -s $cache_file confcache; then
9483 if test -w $cache_file; then
9484 echo "updating cache $cache_file"
9485 cat confcache > $cache_file
9487 echo "not updating unwritable cache $cache_file"
9492 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9495 # Let make expand exec_prefix.
9496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9498 # Any assignment to VPATH causes Sun make to only execute
9499 # the first set of double-colon rules, so remove it if not needed.
9500 # If there is a colon in the path, we need to keep it.
9501 if test "x$srcdir" = x.; then
9502 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9505 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9507 DEFS=-DHAVE_CONFIG_H
9509 # Without the "./", some shells look in PATH for config.status.
9510 : ${CONFIG_STATUS=./config.status}
9512 echo creating $CONFIG_STATUS
9513 rm -f $CONFIG_STATUS
9514 cat > $CONFIG_STATUS <<EOF
9516 # Generated automatically by configure.
9517 # Run this file to recreate the current configuration.
9518 # This directory was configured as follows,
9519 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9521 # $0 $ac_configure_args
9523 # Compiler output produced by configure, useful for debugging
9524 # configure, is in ./config.log if it exists.
9526 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9529 case "\$ac_option" in
9530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9531 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9532 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9533 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9534 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9536 -help | --help | --hel | --he | --h)
9537 echo "\$ac_cs_usage"; exit 0 ;;
9538 *) echo "\$ac_cs_usage"; exit 1 ;;
9542 ac_given_srcdir=$srcdir
9543 ac_given_INSTALL="$INSTALL"
9545 trap 'rm -fr `echo "autoconf/Make.common \
9548 rescue/linux/Makefile \
9549 rescue/freebsd/Makefile \
9550 rescue/solaris/Makefile \
9551 scripts/startmysql \
9553 scripts/btraceback \
9564 src/console/Makefile \
9565 src/console/console.conf \
9566 src/gnome-console/Makefile \
9567 src/gnome-console/gnome-console.conf \
9568 src/tconsole/Makefile \
9570 src/dird/bacula-dir.conf \
9572 src/stored/Makefile \
9573 src/stored/bacula-sd.conf \
9574 src/filed/Makefile \
9576 src/filed/bacula-fd.conf \
9577 src/filed/win32/Makefile \
9579 src/cats/make_catalog_backup \
9580 src/cats/delete_catalog_backup \
9581 src/cats/alter_mysql_tables \
9582 src/cats/make_mysql_tables \
9583 src/cats/drop_mysql_tables \
9584 src/cats/create_mysql_database \
9585 src/cats/grant_mysql_privileges \
9586 src/cats/alter_sqlite_tables \
9587 src/cats/make_sqlite_tables \
9588 src/cats/drop_sqlite_tables \
9589 src/cats/create_sqlite_database \
9592 src/cats/create_bdb_database \
9593 src/cats/make_bdb_tables \
9594 src/cats/drop_bdb_tables \
9595 src/cats/make_bacula_tables \
9596 src/cats/drop_bacula_tables \
9597 src/findlib/Makefile \
9598 src/tools/Makefile \
9599 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9601 cat >> $CONFIG_STATUS <<EOF
9603 # Protect against being on the right side of a sed subst in config.status.
9604 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9605 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9609 s%@CFLAGS@%$CFLAGS%g
9610 s%@CPPFLAGS@%$CPPFLAGS%g
9611 s%@CXXFLAGS@%$CXXFLAGS%g
9612 s%@FFLAGS@%$FFLAGS%g
9614 s%@LDFLAGS@%$LDFLAGS%g
9616 s%@exec_prefix@%$exec_prefix%g
9617 s%@prefix@%$prefix%g
9618 s%@program_transform_name@%$program_transform_name%g
9619 s%@bindir@%$bindir%g
9620 s%@sbindir@%$sbindir%g
9621 s%@libexecdir@%$libexecdir%g
9622 s%@datadir@%$datadir%g
9623 s%@sysconfdir@%$sysconfdir%g
9624 s%@sharedstatedir@%$sharedstatedir%g
9625 s%@localstatedir@%$localstatedir%g
9626 s%@libdir@%$libdir%g
9627 s%@includedir@%$includedir%g
9628 s%@oldincludedir@%$oldincludedir%g
9629 s%@infodir@%$infodir%g
9630 s%@mandir@%$mandir%g
9631 s%@BUILD_DIR@%$BUILD_DIR%g
9632 s%@TRUEPRG@%$TRUEPRG%g
9633 s%@FALSEPRG@%$FALSEPRG%g
9635 s%@host_alias@%$host_alias%g
9636 s%@host_cpu@%$host_cpu%g
9637 s%@host_vendor@%$host_vendor%g
9638 s%@host_os@%$host_os%g
9639 s%@VERSION@%$VERSION%g
9641 s%@LSMDATE@%$LSMDATE%g
9645 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9646 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9647 s%@INSTALL_DATA@%$INSTALL_DATA%g
9648 s%@RANLIB@%$RANLIB%g
9658 s%@OPENSSL@%$OPENSSL%g
9659 s%@ARFLAGS@%$ARFLAGS%g
9660 s%@MAKE_SHELL@%$MAKE_SHELL%g
9661 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9662 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9663 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9664 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9665 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9666 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9667 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9668 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9669 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9670 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9671 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9672 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9673 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9674 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9675 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9676 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9677 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9678 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9679 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9680 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9681 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9682 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9683 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9684 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9685 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
9686 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
9687 s%@HAVE_DARWIN_OS_TRUE@%$HAVE_DARWIN_OS_TRUE%g
9688 s%@HAVE_DARWIN_OS_FALSE@%$HAVE_DARWIN_OS_FALSE%g
9689 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9690 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9691 s%@MSGFMT@%$MSGFMT%g
9692 s%@GNOME_LIBS@%$GNOME_LIBS%g
9693 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9694 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9695 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9696 s%@ZVT_LIBS@%$ZVT_LIBS%g
9697 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9698 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9699 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9700 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9701 s%@ORBIT_IDL@%$ORBIT_IDL%g
9702 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9703 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9704 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9705 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9706 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9707 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9708 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9709 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9710 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9711 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9712 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9713 s%@GNOME_DIR@%$GNOME_DIR%g
9714 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
9715 s%@STATIC_FD@%$STATIC_FD%g
9716 s%@STATIC_SD@%$STATIC_SD%g
9717 s%@STATIC_DIR@%$STATIC_DIR%g
9718 s%@STATIC_CONS@%$STATIC_CONS%g
9719 s%@ALL_DIRS@%$ALL_DIRS%g
9720 s%@CONS_INC@%$CONS_INC%g
9721 s%@CONS_LIBS@%$CONS_LIBS%g
9722 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9723 s%@READLINE_SRC@%$READLINE_SRC%g
9724 s%@working_dir@%$working_dir%g
9725 s%@scriptdir@%$scriptdir%g
9726 s%@dump_email@%$dump_email%g
9727 s%@job_email@%$job_email%g
9728 s%@smtp_host@%$smtp_host%g
9729 s%@piddir@%$piddir%g
9730 s%@subsysdir@%$subsysdir%g
9731 s%@baseport@%$baseport%g
9732 s%@dir_port@%$dir_port%g
9733 s%@fd_port@%$fd_port%g
9734 s%@sd_port@%$sd_port%g
9735 s%@dir_password@%$dir_password%g
9736 s%@fd_password@%$fd_password%g
9737 s%@sd_password@%$sd_password%g
9738 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9739 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9740 s%@SQL_BINDIR@%$SQL_BINDIR%g
9742 s%@DB_NAME@%$DB_NAME%g
9743 s%@EXEEXT@%$EXEEXT%g
9745 s%@build_alias@%$build_alias%g
9746 s%@build_cpu@%$build_cpu%g
9747 s%@build_vendor@%$build_vendor%g
9748 s%@build_os@%$build_os%g
9749 s%@GETCONF@%$GETCONF%g
9750 s%@X_CFLAGS@%$X_CFLAGS%g
9751 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9752 s%@X_LIBS@%$X_LIBS%g
9753 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9754 s%@LIBOBJS@%$LIBOBJS%g
9755 s%@ALLOCA@%$ALLOCA%g
9756 s%@FDLIBS@%$FDLIBS%g
9758 s%@DINCLUDE@%$DINCLUDE%g
9760 s%@DB_LIBS@%$DB_LIBS%g
9761 s%@OBJLIST@%$OBJLIST%g
9762 s%@hostname@%$hostname%g
9763 s%@TAPEDRIVE@%$TAPEDRIVE%g
9766 s%@DISTNAME@%$DISTNAME%g
9767 s%@DISTVER@%$DISTVER%g
9768 /@MCOMMON@/r $MCOMMON
9774 cat >> $CONFIG_STATUS <<\EOF
9776 # Split the substitutions into bite-sized pieces for seds with
9777 # small command number limits, like on Digital OSF/1 and HP-UX.
9778 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9779 ac_file=1 # Number of current file.
9780 ac_beg=1 # First line for current file.
9781 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9784 while $ac_more_lines; do
9785 if test $ac_beg -gt 1; then
9786 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9788 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9790 if test ! -s conftest.s$ac_file; then
9792 rm -f conftest.s$ac_file
9794 if test -z "$ac_sed_cmds"; then
9795 ac_sed_cmds="sed -f conftest.s$ac_file"
9797 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9799 ac_file=`expr $ac_file + 1`
9801 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9804 if test -z "$ac_sed_cmds"; then
9809 cat >> $CONFIG_STATUS <<EOF
9811 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9814 rescue/linux/Makefile \
9815 rescue/freebsd/Makefile \
9816 rescue/solaris/Makefile \
9817 scripts/startmysql \
9819 scripts/btraceback \
9830 src/console/Makefile \
9831 src/console/console.conf \
9832 src/gnome-console/Makefile \
9833 src/gnome-console/gnome-console.conf \
9834 src/tconsole/Makefile \
9836 src/dird/bacula-dir.conf \
9838 src/stored/Makefile \
9839 src/stored/bacula-sd.conf \
9840 src/filed/Makefile \
9842 src/filed/bacula-fd.conf \
9843 src/filed/win32/Makefile \
9845 src/cats/make_catalog_backup \
9846 src/cats/delete_catalog_backup \
9847 src/cats/alter_mysql_tables \
9848 src/cats/make_mysql_tables \
9849 src/cats/drop_mysql_tables \
9850 src/cats/create_mysql_database \
9851 src/cats/grant_mysql_privileges \
9852 src/cats/alter_sqlite_tables \
9853 src/cats/make_sqlite_tables \
9854 src/cats/drop_sqlite_tables \
9855 src/cats/create_sqlite_database \
9858 src/cats/create_bdb_database \
9859 src/cats/make_bdb_tables \
9860 src/cats/drop_bdb_tables \
9861 src/cats/make_bacula_tables \
9862 src/cats/drop_bacula_tables \
9863 src/findlib/Makefile \
9864 src/tools/Makefile \
9867 cat >> $CONFIG_STATUS <<\EOF
9868 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9871 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9872 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9873 *) ac_file_in="${ac_file}.in" ;;
9876 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9878 # Remove last slash and all that follows it. Not all systems have dirname.
9879 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9880 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9881 # The file is in a subdirectory.
9882 test ! -d "$ac_dir" && mkdir "$ac_dir"
9883 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9884 # A "../" for each directory in $ac_dir_suffix.
9885 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9887 ac_dir_suffix= ac_dots=
9890 case "$ac_given_srcdir" in
9892 if test -z "$ac_dots"; then top_srcdir=.
9893 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9894 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9896 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9897 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9900 case "$ac_given_INSTALL" in
9901 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9902 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9905 echo creating "$ac_file"
9907 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9909 *Makefile*) ac_comsub="1i\\
9910 # $configure_input" ;;
9914 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9916 s%@configure_input@%$configure_input%g
9917 s%@srcdir@%$srcdir%g
9918 s%@top_srcdir@%$top_srcdir%g
9919 s%@INSTALL@%$INSTALL%g
9920 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9924 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9925 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9927 # ac_d sets the value in "#define NAME VALUE" lines.
9928 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9929 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9932 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9933 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9934 ac_uB='\([ ]\)%\1#\2define\3'
9937 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9938 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9939 ac_eB='$%\1#\2define\3'
9943 if test "${CONFIG_HEADERS+set}" != set; then
9945 cat >> $CONFIG_STATUS <<EOF
9946 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9948 cat >> $CONFIG_STATUS <<\EOF
9950 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9953 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9954 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9955 *) ac_file_in="${ac_file}.in" ;;
9958 echo creating $ac_file
9960 rm -f conftest.frag conftest.in conftest.out
9961 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9962 cat $ac_file_inputs > conftest.in
9966 # Transform confdefs.h into a sed script conftest.vals that substitutes
9967 # the proper values into config.h.in to produce config.h. And first:
9968 # Protect against being on the right side of a sed subst in config.status.
9969 # Protect against being in an unquoted here document in config.status.
9971 cat > conftest.hdr <<\EOF
9974 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9978 sed -n -f conftest.hdr confdefs.h > conftest.vals
9981 # This sed command replaces #undef with comments. This is necessary, for
9982 # example, in the case of _POSIX_SOURCE, which is predefined and required
9983 # on some systems where configure will not decide to define it.
9984 cat >> conftest.vals <<\EOF
9985 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9988 # Break up conftest.vals because some shells have a limit on
9989 # the size of here documents, and old seds have small limits too.
9994 ac_lines=`grep -c . conftest.vals`
9995 # grep -c gives empty output for an empty file on some AIX systems.
9996 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9997 # Write a limited-size here document to conftest.frag.
9998 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9999 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10001 sed -f conftest.frag conftest.in > conftest.out
10003 mv conftest.out conftest.in
10004 ' >> $CONFIG_STATUS
10005 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10006 rm -f conftest.vals
10007 mv conftest.tail conftest.vals
10009 rm -f conftest.vals
10011 cat >> $CONFIG_STATUS <<\EOF
10012 rm -f conftest.frag conftest.h
10013 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10014 cat conftest.in >> conftest.h
10016 if cmp -s $ac_file conftest.h 2>/dev/null; then
10017 echo "$ac_file is unchanged"
10020 # Remove last slash and all that follows it. Not all systems have dirname.
10021 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10022 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10023 # The file is in a subdirectory.
10024 test ! -d "$ac_dir" && mkdir "$ac_dir"
10027 mv conftest.h $ac_file
10032 cat >> $CONFIG_STATUS <<EOF
10035 cat >> $CONFIG_STATUS <<\EOF
10036 (echo "Doing make of dependencies"; make depend;)
10040 chmod +x $CONFIG_STATUS
10041 rm -fr confdefs* $ac_clean_files
10042 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10046 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
10047 chmod 755 console gconsole
10049 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
10050 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
10051 chmod 755 src/cats/create_mysql_database
10052 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
10053 chmod 755 src/cats/alter_mysql_tables
10054 chmod 755 src/cats/grant_mysql_privileges
10055 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
10056 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
10057 chmod 755 src/cats/create_sqlite_database
10058 chmod 755 src/cats/alter_sqlite_tables
10059 chmod 755 src/cats/sqlite
10060 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
10061 chmod 755 src/cats/create_bdb_database
10063 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
10064 largefile_support="yes"
10069 Configuration on `date`:
10071 Host: $host -- ${DISTNAME} ${DISTVER}
10072 Bacula version: ${VERSION} (${DATE})
10073 Source code location: ${srcdir}
10074 Install binaries: ${sbindir}
10075 Install config files: ${sysconfdir}
10076 Scripts directory ${scriptdir}
10077 Working directory ${working_dir}
10079 C++ Compiler: ${CXX}
10080 Compiler flags: ${CFLAGS}
10081 Linker flags: ${LDFLAGS}
10083 Statically Linked Tools: ${support_static_tools}
10084 Statically Linked FD: ${support_static_fd}
10085 Statically Linked SD: ${support_static_sd}
10086 Statically Linked DIR: ${support_static_dir}
10087 Statically Linked CONS: ${support_static_cons}
10088 Database type: ${db_name}
10089 Database lib: ${DB_LIBS}
10091 Job Output Email: ${job_email}
10092 Traceback Email: ${dump_email}
10093 SMTP Host Address: ${smtp_host}
10094 Director Port ${dir_port}
10095 File daemon Port ${fd_port}
10096 Storage daemon Port ${sd_port}
10097 SQL binaries Directory ${SQL_BINDIR}
10099 Large file support: $largefile_support
10100 readline support: ${got_readline} ${PRTREADLINE_SRC}
10101 TCP Wrappers support: ${TCPW_MSG}
10102 ZLIB support: ${have_zlib}
10103 enable-smartalloc: ${support_smartalloc}
10104 enable-gnome: ${support_gnome}
10105 client-only: ${build_client_only}
10112 # cweb support: ${got_cweb} ${CWEB_SRC}
10113 # gmp support: ${got_gmp} ${GMP_SRC}