2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="include/includes.h"
262 ac_default_prefix=/usr/local/samba
263 # Factoring default headers for most tests.
264 ac_includes_default="\
267 # include <sys/types.h>
270 # include <sys/stat.h>
281 # if !STDC_HEADERS && HAVE_MEMORY_H
287 # include <strings.h>
290 # include <inttypes.h>
301 # Initialize some variables set by options.
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
313 program_transform_name=s,x,x,
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
349 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
360 -build | --build | --buil | --bui | --bu)
361 ac_prev=build_alias ;;
362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363 build_alias=$ac_optarg ;;
365 -cache-file | --cache-file | --cache-fil | --cache-fi \
366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367 ac_prev=cache_file ;;
368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370 cache_file=$ac_optarg ;;
373 cache_file=config.cache ;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 datadir=$ac_optarg ;;
381 -disable-* | --disable-*)
382 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383 # Reject names that are not valid shell variable names.
384 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386 { (exit 1); exit 1; }; }
387 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388 eval "enable_$ac_feature=no" ;;
390 -enable-* | --enable-*)
391 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392 # Reject names that are not valid shell variable names.
393 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395 { (exit 1); exit 1; }; }
396 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
401 eval "enable_$ac_feature='$ac_optarg'" ;;
403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405 | --exec | --exe | --ex)
406 ac_prev=exec_prefix ;;
407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409 | --exec=* | --exe=* | --ex=*)
410 exec_prefix=$ac_optarg ;;
412 -gas | --gas | --ga | --g)
413 # Obsolete; use --with-gas.
416 -help | --help | --hel | --he | -h)
418 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419 ac_init_help=recursive ;;
420 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421 ac_init_help=short ;;
423 -host | --host | --hos | --ho)
424 ac_prev=host_alias ;;
425 -host=* | --host=* | --hos=* | --ho=*)
426 host_alias=$ac_optarg ;;
428 -includedir | --includedir | --includedi | --included | --include \
429 | --includ | --inclu | --incl | --inc)
430 ac_prev=includedir ;;
431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432 | --includ=* | --inclu=* | --incl=* | --inc=*)
433 includedir=$ac_optarg ;;
435 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438 infodir=$ac_optarg ;;
440 -libdir | --libdir | --libdi | --libd)
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446 | --libexe | --libex | --libe)
447 ac_prev=libexecdir ;;
448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449 | --libexe=* | --libex=* | --libe=*)
450 libexecdir=$ac_optarg ;;
452 -localstatedir | --localstatedir | --localstatedi | --localstated \
453 | --localstate | --localstat | --localsta | --localst \
454 | --locals | --local | --loca | --loc | --lo)
455 ac_prev=localstatedir ;;
456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459 localstatedir=$ac_optarg ;;
461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
467 # Obsolete; use --without-fp.
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c | -n)
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
478 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480 | --oldin | --oldi | --old | --ol | --o)
481 ac_prev=oldincludedir ;;
482 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485 oldincludedir=$ac_optarg ;;
487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
492 -program-prefix | --program-prefix | --program-prefi | --program-pref \
493 | --program-pre | --program-pr | --program-p)
494 ac_prev=program_prefix ;;
495 -program-prefix=* | --program-prefix=* | --program-prefi=* \
496 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497 program_prefix=$ac_optarg ;;
499 -program-suffix | --program-suffix | --program-suffi | --program-suff \
500 | --program-suf | --program-su | --program-s)
501 ac_prev=program_suffix ;;
502 -program-suffix=* | --program-suffix=* | --program-suffi=* \
503 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504 program_suffix=$ac_optarg ;;
506 -program-transform-name | --program-transform-name \
507 | --program-transform-nam | --program-transform-na \
508 | --program-transform-n | --program-transform- \
509 | --program-transform | --program-transfor \
510 | --program-transfo | --program-transf \
511 | --program-trans | --program-tran \
512 | --progr-tra | --program-tr | --program-t)
513 ac_prev=program_transform_name ;;
514 -program-transform-name=* | --program-transform-name=* \
515 | --program-transform-nam=* | --program-transform-na=* \
516 | --program-transform-n=* | --program-transform-=* \
517 | --program-transform=* | --program-transfor=* \
518 | --program-transfo=* | --program-transf=* \
519 | --program-trans=* | --program-tran=* \
520 | --progr-tra=* | --program-tr=* | --program-t=*)
521 program_transform_name=$ac_optarg ;;
523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524 | -silent | --silent | --silen | --sile | --sil)
527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 sbindir=$ac_optarg ;;
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
537 ac_prev=sharedstatedir ;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 sharedstatedir=$ac_optarg ;;
544 -site | --site | --sit)
546 -site=* | --site=* | --sit=*)
549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555 | --syscon | --sysco | --sysc | --sys | --sy)
556 ac_prev=sysconfdir ;;
557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559 sysconfdir=$ac_optarg ;;
561 -target | --target | --targe | --targ | --tar | --ta | --t)
562 ac_prev=target_alias ;;
563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564 target_alias=$ac_optarg ;;
566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
569 -version | --version | --versio | --versi | --vers | -V)
573 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid package name: $ac_package" >&2
577 { (exit 1); exit 1; }; }
578 ac_package=`echo $ac_package| sed 's/-/_/g'`
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "with_$ac_package='$ac_optarg'" ;;
585 -without-* | --without-*)
586 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package | sed 's/-/_/g'`
592 eval "with_$ac_package=no" ;;
595 # Obsolete; use --with-x.
598 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599 | --x-incl | --x-inc | --x-in | --x-i)
600 ac_prev=x_includes ;;
601 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603 x_includes=$ac_optarg ;;
605 -x-libraries | --x-libraries | --x-librarie | --x-librari \
606 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607 ac_prev=x_libraries ;;
608 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610 x_libraries=$ac_optarg ;;
612 -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614 { (exit 1); exit 1; }; }
618 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622 { (exit 1); exit 1; }; }
623 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624 eval "$ac_envvar='$ac_optarg'"
628 # FIXME: should be removed in autoconf 3.0.
629 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
638 if test -n "$ac_prev"; then
639 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640 { echo "$as_me: error: missing argument to $ac_option" >&2
641 { (exit 1); exit 1; }; }
644 # Be sure to have absolute paths.
645 for ac_var in exec_prefix prefix
647 eval ac_val=$`echo $ac_var`
649 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
655 # Be sure to have absolute paths.
656 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657 localstatedir libdir includedir oldincludedir infodir mandir
659 eval ac_val=$`echo $ac_var`
661 [\\/$]* | ?:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
667 # There might be people who depend on the old broken behavior: `$host'
668 # used to hold the argument of --host etc.
669 # FIXME: To remove some day.
674 # FIXME: To remove some day.
675 if test "x$host_alias" != x; then
676 if test "x$build_alias" = x; then
677 cross_compiling=maybe
678 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679 If a cross compiler is detected then cross compile mode will be used." >&2
680 elif test "x$build_alias" != "x$host_alias"; then
686 test -n "$host_alias" && ac_tool_prefix=$host_alias-
688 test "$silent" = yes && exec 6>/dev/null
691 # Find the source files, if location was not specified.
692 if test -z "$srcdir"; then
693 ac_srcdir_defaulted=yes
694 # Try the directory containing this script, then its parent.
695 ac_confdir=`(dirname "$0") 2>/dev/null ||
696 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697 X"$0" : 'X\(//\)[^/]' \| \
698 X"$0" : 'X\(//\)$' \| \
699 X"$0" : 'X\(/\)' \| \
700 . : '\(.\)' 2>/dev/null ||
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
708 if test ! -r $srcdir/$ac_unique_file; then
712 ac_srcdir_defaulted=no
714 if test ! -r $srcdir/$ac_unique_file; then
715 if test "$ac_srcdir_defaulted" = yes; then
716 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717 { (exit 1); exit 1; }; }
719 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720 { (exit 1); exit 1; }; }
723 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724 ac_env_build_alias_set=${build_alias+set}
725 ac_env_build_alias_value=$build_alias
726 ac_cv_env_build_alias_set=${build_alias+set}
727 ac_cv_env_build_alias_value=$build_alias
728 ac_env_host_alias_set=${host_alias+set}
729 ac_env_host_alias_value=$host_alias
730 ac_cv_env_host_alias_set=${host_alias+set}
731 ac_cv_env_host_alias_value=$host_alias
732 ac_env_target_alias_set=${target_alias+set}
733 ac_env_target_alias_value=$target_alias
734 ac_cv_env_target_alias_set=${target_alias+set}
735 ac_cv_env_target_alias_value=$target_alias
736 ac_env_CC_set=${CC+set}
738 ac_cv_env_CC_set=${CC+set}
739 ac_cv_env_CC_value=$CC
740 ac_env_CFLAGS_set=${CFLAGS+set}
741 ac_env_CFLAGS_value=$CFLAGS
742 ac_cv_env_CFLAGS_set=${CFLAGS+set}
743 ac_cv_env_CFLAGS_value=$CFLAGS
744 ac_env_LDFLAGS_set=${LDFLAGS+set}
745 ac_env_LDFLAGS_value=$LDFLAGS
746 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747 ac_cv_env_LDFLAGS_value=$LDFLAGS
748 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749 ac_env_CPPFLAGS_value=$CPPFLAGS
750 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752 ac_env_CPP_set=${CPP+set}
753 ac_env_CPP_value=$CPP
754 ac_cv_env_CPP_set=${CPP+set}
755 ac_cv_env_CPP_value=$CPP
758 # Report the --help message.
760 if test "$ac_init_help" = "long"; then
761 # Omit some internal or obsolete options to make the list less imposing.
762 # This message is too long to be a string in the A/UX 3.1 sh.
764 \`configure' configures this package to adapt to many kinds of systems.
766 Usage: $0 [OPTION]... [VAR=VALUE]...
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE. See below for descriptions of some of the useful variables.
771 Defaults for the options are specified in brackets.
774 -h, --help display this help and exit
775 --help=short display options specific to this package
776 --help=recursive display the short help of all the included packages
777 -V, --version display version information and exit
778 -q, --quiet, --silent do not print \`checking...' messages
779 --cache-file=FILE cache test results in FILE [disabled]
780 -C, --config-cache alias for \`--cache-file=config.cache'
781 -n, --no-create do not create output files
782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
798 For better control, use the options below.
800 Fine tuning of the installation directories:
801 --bindir=DIR user executables [EPREFIX/bin]
802 --sbindir=DIR system admin executables [EPREFIX/sbin]
803 --libexecdir=DIR program executables [EPREFIX/libexec]
804 --datadir=DIR read-only architecture-independent data [PREFIX/share]
805 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
806 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
807 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
808 --libdir=DIR object code libraries [EPREFIX/lib]
809 --includedir=DIR C header files [PREFIX/include]
810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
811 --infodir=DIR info documentation [PREFIX/info]
812 --mandir=DIR man documentation [PREFIX/man]
818 --build=BUILD configure for building on BUILD [guessed]
819 --host=HOST cross-compile to build programs to run on HOST [BUILD]
820 --target=TARGET configure for building compilers for TARGET [HOST]
824 if test -n "$ac_init_help"; then
829 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
830 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831 --enable-debug Turn on compiler debugging information (default=no)
832 --enable-developer Turn on developer warnings and debugging (default=no)
833 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
834 --enable-dmalloc Enable heap debugging default=no
835 --enable-cups Turn on CUPS support (default=auto)
836 --disable-mysqltest Do not try to compile and run a test MYSQL program
837 --disable-xmltest Do not try to compile and run a test LIBXML program
840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
842 --with-fhs Use FHS-compliant paths (default=no)
843 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)
844 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)
845 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)
846 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)
847 --with-configdir=DIR Where to put configuration files (\$libdir)
848 --with-logfilebase=DIR Where to put log files (\$(VARDIR))
849 --with-readline=DIR Look for readline include/libs in DIR (default=auto)
850 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
851 --with-smbwrapper Include SMB wrapper support (default=no)
852 --with-afs Include AFS clear-text auth support (default=no)
853 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)
854 --with-ads Active Directory support (default yes)
855 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)
856 --with-ldap LDAP support (default yes)
857 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)
858 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
859 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
860 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
861 --with-automount Include AUTOMOUNT support (default=no)
862 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)
863 --with-pam Include PAM support (default=no)
864 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)
865 --with-sam Build new (experimental) SAM database (default=no)
866 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)
867 --with-tdbsam Include experimental TDB SAM support (default=no)
868 --with-nisplussam Include NISPLUS SAM support (default=no)
869 --with-nisplus-home Include NISPLUS_HOME support (default=no)
870 --with-syslog Include experimental SYSLOG support (default=no)
871 --with-profiling-data Include gathering source code profile information (default=no)
872 --with-quotas Include experimental disk-quota support (default=no)
873 --with-utmp Include experimental utmp accounting (default=no)
874 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)
875 --with-libsmbclient Build the libsmbclient shared library (default=yes)
876 --with-spinlocks Use spin locks instead of fcntl locks (default=no)
877 --with-acl-support Include ACL support (default=no)
878 --with-sendfile-support Check for sendfile support (default=yes)
879 --with-winbind Build winbind (default, if supported by OS)
880 --with-included-popt use bundled popt library, not from system
881 --with-python=PYTHONNAME build Python libraries
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
931 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
958 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
959 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by $as_me, which was
971 generated by GNU Autoconf 2.53. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n ) continue ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 case " $ac_configure_args " in
1038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1039 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 if test -s confdefs.h; then
1083 sed "/^$/d" confdefs.h
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134 if test "x$prefix" != xNONE; then
1135 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140 for ac_site_file in $CONFIG_SITE; do
1141 if test -r "$ac_site_file"; then
1142 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144 sed 's/^/| /' "$ac_site_file" >&5
1149 if test -r "$cache_file"; then
1150 # Some versions of bash will fail to source /dev/null (special
1151 # files actually), so we avoid doing that.
1152 if test -f "$cache_file"; then
1153 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1166 # Check that the precious variables saved in the cache have kept the same
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172 eval ac_new_set=\$ac_env_${ac_var}_set
1173 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174 eval ac_new_val="\$ac_env_${ac_var}_value"
1175 case $ac_old_set,$ac_new_set in
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1186 if test "x$ac_old_val" != "x$ac_new_val"; then
1187 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1190 echo "$as_me: former value: $ac_old_val" >&2;}
1191 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1192 echo "$as_me: current value: $ac_new_val" >&2;}
1193 ac_cache_corrupted=:
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1203 case " $ac_configure_args " in
1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1205 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209 if $ac_cache_corrupted; then
1210 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214 { (exit 1); exit 1; }; }
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240 ac_config_headers="$ac_config_headers include/config.h"
1243 #################################################
1244 # Directory handling stuff to support both the
1245 # legacy SAMBA directories and FHS compliant
1250 # Check whether --with-fhs or --without-fhs was given.
1251 if test "${with_fhs+set}" = set; then
1253 configdir="${sysconfdir}/samba"
1254 lockdir="\${VARDIR}/cache/samba"
1255 piddir="\$(VARDIR)/run/samba"
1256 logfilebase="\${VARDIR}/log/samba"
1257 privatedir="\${CONFIGDIR}/private"
1258 swatdir="\${DATADIR}/samba/swat"
1260 configdir="\$(LIBDIR)"
1261 logfilebase="\$(VARDIR)"
1262 lockdir="\${VARDIR}/locks"
1263 piddir="\$(VARDIR)/locks"
1264 privatedir="\${prefix}/private"
1265 swatdir="\${prefix}/swat"
1268 #################################################
1269 # set private directory location
1271 # Check whether --with-privatedir or --without-privatedir was given.
1272 if test "${with_privatedir+set}" = set; then
1273 withval="$with_privatedir"
1277 # Just in case anybody calls it without argument
1279 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1280 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1283 privatedir="$withval"
1288 #################################################
1289 # set lock directory location
1291 # Check whether --with-lockdir or --without-lockdir was given.
1292 if test "${with_lockdir+set}" = set; then
1293 withval="$with_lockdir"
1297 # Just in case anybody calls it without argument
1299 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1300 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1308 #################################################
1309 # set pid directory location
1311 # Check whether --with-piddir or --without-piddir was given.
1312 if test "${with_piddir+set}" = set; then
1313 withval="$with_piddir"
1317 # Just in case anybody calls it without argument
1319 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1320 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1328 #################################################
1329 # set SWAT directory location
1331 # Check whether --with-swatdir or --without-swatdir was given.
1332 if test "${with_swatdir+set}" = set; then
1333 withval="$with_swatdir"
1337 # Just in case anybody does it
1339 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1340 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1348 #################################################
1349 # set configuration directory location
1351 # Check whether --with-configdir or --without-configdir was given.
1352 if test "${with_configdir+set}" = set; then
1353 withval="$with_configdir"
1357 # Just in case anybody does it
1359 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1360 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1363 configdir="$withval"
1368 #################################################
1369 # set log directory location
1371 # Check whether --with-logfilebase or --without-logfilebase was given.
1372 if test "${with_logfilebase+set}" = set; then
1373 withval="$with_logfilebase"
1377 # Just in case anybody does it
1379 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1380 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1383 logfilebase="$withval"
1417 # compile with optimization and without debugging by default
1418 CFLAGS="-O ${CFLAGS}"
1420 # Check whether --enable-debug or --disable-debug was given.
1421 if test "${enable_debug+set}" = set; then
1422 enableval="$enable_debug"
1423 if eval "test x$enable_debug = xyes"; then
1424 CFLAGS="${CFLAGS} -g"
1428 # Check whether --enable-developer or --disable-developer was given.
1429 if test "${enable_developer+set}" = set; then
1430 enableval="$enable_developer"
1431 if eval "test x$enable_developer = xyes"; then
1432 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1436 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1437 if test "${enable_krb5developer+set}" = set; then
1438 enableval="$enable_krb5developer"
1439 if eval "test x$enable_krb5developer = xyes"; then
1440 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1444 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1445 if test "${enable_dmalloc+set}" = set; then
1446 enableval="$enable_dmalloc"
1450 if test "x$enable_dmalloc" = xyes
1453 cat >>confdefs.h <<\_ACEOF
1454 #define ENABLE_DMALLOC 1
1458 cat >>confdefs.h <<\_ACEOF
1459 #define DMALLOC_FUNC_CHECK 1
1462 LIBS="$LIBS -ldmalloc"
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$ac_cv_prog_CC"; then
1509 # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_ac_ct_CC="gcc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$ac_cv_prog_CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1630 if test -z "$CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650 ac_prog_rejected=yes
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test $ac_prog_rejected = yes; then
1661 # We found a bogon in the path, so make sure we never use it.
1662 set dummy $ac_cv_prog_CC
1664 if test $# != 0; then
1665 # We chose a different compiler from the bogus one.
1666 # However, it has the same basename, so the bogon will be chosen
1667 # first if we set CC to just the basename; use the full file name.
1669 set dummy "$as_dir/$ac_word" ${1+"$@"}
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$CC" && break
1728 if test -z "$CC"; then
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 test -n "$ac_ct_CC" && break
1776 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1777 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1778 { (exit 1); exit 1; }; }
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782 "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785 (eval $ac_compiler --version </dev/null >&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790 (eval $ac_compiler -v </dev/null >&5) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795 (eval $ac_compiler -V </dev/null >&5) 2>&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line $LINENO "configure"
1802 #include "confdefs.h"
1804 #ifdef F77_DUMMY_MAIN
1808 int F77_DUMMY_MAIN() { return 1; }
1818 ac_clean_files_save=$ac_clean_files
1819 ac_clean_files="$ac_clean_files a.out a.exe"
1820 # Try to create an executable without -o first, disregard a.out.
1821 # It will help us diagnose broken compilers, and finding out an intuition
1823 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1824 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1826 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1827 (eval $ac_link_default) 2>&5
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; then
1831 # Find the output, starting from the most likely. This scheme is
1832 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1835 # Be careful to initialize this variable, since it used to be cached.
1836 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1839 ls a.out conftest 2>/dev/null;
1840 ls a.* conftest.* 2>/dev/null`; do
1842 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1843 a.out ) # We found the default executable, but exeext='' is most
1846 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1847 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1854 echo "$as_me: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1857 echo "$as_me: error: C compiler cannot create executables" >&2;}
1858 { (exit 77); exit 77; }; }
1861 ac_exeext=$ac_cv_exeext
1862 echo "$as_me:$LINENO: result: $ac_file" >&5
1863 echo "${ECHO_T}$ac_file" >&6
1865 # Check the compiler produces executables we can run. If not, either
1866 # the compiler is broken, or we cross compile.
1867 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1868 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1870 # If not cross compiling, check that we can run a simple program.
1871 if test "$cross_compiling" != yes; then
1872 if { ac_try='./$ac_file'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1880 if test "$cross_compiling" = maybe; then
1883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1884 If you meant to cross compile, use \`--host'." >&5
1885 echo "$as_me: error: cannot run C compiled programs.
1886 If you meant to cross compile, use \`--host'." >&2;}
1887 { (exit 1); exit 1; }; }
1891 echo "$as_me:$LINENO: result: yes" >&5
1892 echo "${ECHO_T}yes" >&6
1894 rm -f a.out a.exe conftest$ac_cv_exeext
1895 ac_clean_files=$ac_clean_files_save
1896 # Check the compiler produces executables we can run. If not, either
1897 # the compiler is broken, or we cross compile.
1898 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1899 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1900 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1901 echo "${ECHO_T}$cross_compiling" >&6
1903 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1904 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1906 (eval $ac_link) 2>&5
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }; then
1910 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1911 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1912 # work properly (i.e., refer to `conftest.exe'), while it won't with
1914 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1916 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1917 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1924 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1925 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1926 { (exit 1); exit 1; }; }
1929 rm -f conftest$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1931 echo "${ECHO_T}$ac_cv_exeext" >&6
1933 rm -f conftest.$ac_ext
1934 EXEEXT=$ac_cv_exeext
1936 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1937 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1938 if test "${ac_cv_objext+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 cat >conftest.$ac_ext <<_ACEOF
1942 #line $LINENO "configure"
1943 #include "confdefs.h"
1945 #ifdef F77_DUMMY_MAIN
1949 int F77_DUMMY_MAIN() { return 1; }
1959 rm -f conftest.o conftest.obj
1960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1973 echo "$as_me: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1975 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1976 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1977 { (exit 1); exit 1; }; }
1980 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1982 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1983 echo "${ECHO_T}$ac_cv_objext" >&6
1984 OBJEXT=$ac_cv_objext
1986 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1987 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1988 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 cat >conftest.$ac_ext <<_ACEOF
1992 #line $LINENO "configure"
1993 #include "confdefs.h"
1995 #ifdef F77_DUMMY_MAIN
1999 int F77_DUMMY_MAIN() { return 1; }
2012 rm -f conftest.$ac_objext
2013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014 (eval $ac_compile) 2>&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -s conftest.$ac_objext'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2030 rm -f conftest.$ac_objext conftest.$ac_ext
2031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2034 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2036 GCC=`test $ac_compiler_gnu = yes && echo yes`
2037 ac_test_CFLAGS=${CFLAGS+set}
2038 ac_save_CFLAGS=$CFLAGS
2040 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2041 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2042 if test "${ac_cv_prog_cc_g+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line $LINENO "configure"
2047 #include "confdefs.h"
2049 #ifdef F77_DUMMY_MAIN
2053 int F77_DUMMY_MAIN() { return 1; }
2063 rm -f conftest.$ac_objext
2064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2065 (eval $ac_compile) 2>&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2077 echo "$as_me: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2081 rm -f conftest.$ac_objext conftest.$ac_ext
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085 if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087 elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2094 if test "$GCC" = yes; then
2100 # Some people use a C++ compiler to compile C. Since we use `exit',
2101 # in C++ we need to declare it. In case someone uses the same compiler
2102 # for both compiling C and C++ we need to have the C++ compiler decide
2103 # the declaration of exit, since it's the most demanding environment.
2104 cat >conftest.$ac_ext <<_ACEOF
2109 rm -f conftest.$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2121 for ac_declaration in \
2123 '#include <stdlib.h>' \
2124 'extern "C" void std::exit (int) throw (); using std::exit;' \
2125 'extern "C" void std::exit (int); using std::exit;' \
2126 'extern "C" void exit (int) throw ();' \
2127 'extern "C" void exit (int);' \
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #line $LINENO "configure"
2132 #include "confdefs.h"
2135 #ifdef F77_DUMMY_MAIN
2139 int F77_DUMMY_MAIN() { return 1; }
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2163 echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2167 rm -f conftest.$ac_objext conftest.$ac_ext
2168 cat >conftest.$ac_ext <<_ACEOF
2169 #line $LINENO "configure"
2170 #include "confdefs.h"
2172 #ifdef F77_DUMMY_MAIN
2176 int F77_DUMMY_MAIN() { return 1; }
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); } &&
2192 { ac_try='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 rm -f conftest.$ac_objext conftest.$ac_ext
2206 if test -n "$ac_declaration"; then
2207 echo '#ifdef __cplusplus' >>confdefs.h
2208 echo $ac_declaration >>confdefs.h
2209 echo '#endif' >>confdefs.h
2213 echo "$as_me: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 rm -f conftest.$ac_objext conftest.$ac_ext
2218 ac_cpp='$CPP $CPPFLAGS'
2219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2225 if test -f $ac_dir/install-sh; then
2227 ac_install_sh="$ac_aux_dir/install-sh -c"
2229 elif test -f $ac_dir/install.sh; then
2231 ac_install_sh="$ac_aux_dir/install.sh -c"
2233 elif test -f $ac_dir/shtool; then
2235 ac_install_sh="$ac_aux_dir/shtool install -c"
2239 if test -z "$ac_aux_dir"; then
2240 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2241 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2242 { (exit 1); exit 1; }; }
2244 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2245 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2246 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2248 # Find a good install program. We prefer a C program (faster),
2249 # so one script is as good as another. But avoid the broken or
2250 # incompatible versions:
2251 # SysV /etc/install, /usr/sbin/install
2252 # SunOS /usr/etc/install
2253 # IRIX /sbin/install
2255 # AmigaOS /C/install, which installs bootblocks on floppy discs
2256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2259 # ./install, which can be erroneously created by make from ./install.sh.
2260 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2262 if test -z "$INSTALL"; then
2263 if test "${ac_cv_path_install+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 test -z "$as_dir" && as_dir=.
2271 # Account for people who put trailing slashes in PATH elements.
2273 ./ | .// | /cC/* | \
2274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2277 # OSF1 and SCO ODT 3.0 have their own names for install.
2278 # Don't use installbsd from OSF since it installs stuff as root
2280 for ac_prog in ginstall scoinst install; do
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2283 if test $ac_prog = install &&
2284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285 # AIX install. It has an incompatible calling convention.
2287 elif test $ac_prog = install &&
2288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # program-specific install script used by HP pwplus--don't use.
2292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2304 if test "${ac_cv_path_install+set}" = set; then
2305 INSTALL=$ac_cv_path_install
2307 # As a last resort, use the slow shell script. We don't cache a
2308 # path for INSTALL within a source directory, because that will
2309 # break other packages using the cache if that directory is
2310 # removed, or if the path is relative.
2311 INSTALL=$ac_install_sh
2314 echo "$as_me:$LINENO: result: $INSTALL" >&5
2315 echo "${ECHO_T}$INSTALL" >&6
2317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2318 # It thinks the first close brace ends the variable substitution.
2319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2325 for ac_prog in gawk mawk nawk awk
2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331 if test "${ac_cv_prog_AWK+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 if test -n "$AWK"; then
2335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344 ac_cv_prog_AWK="$ac_prog"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 if test -n "$AWK"; then
2355 echo "$as_me:$LINENO: result: $AWK" >&5
2356 echo "${ECHO_T}$AWK" >&6
2358 echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6
2362 test -n "$AWK" && break
2367 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2369 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2373 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2374 ac_cv_prog_gnu_ld=yes
2376 ac_cv_prog_gnu_ld=no
2379 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2380 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2384 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2385 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2386 if test "${ac_cv_search_strerror+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 ac_func_search_save_LIBS=$LIBS
2390 ac_cv_search_strerror=no
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line $LINENO "configure"
2393 #include "confdefs.h"
2395 /* Override any gcc2 internal prototype to avoid an error. */
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2402 #ifdef F77_DUMMY_MAIN
2406 int F77_DUMMY_MAIN() { return 1; }
2416 rm -f conftest.$ac_objext conftest$ac_exeext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2418 (eval $ac_link) 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -s conftest$ac_exeext'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 ac_cv_search_strerror="none required"
2430 echo "$as_me: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2434 if test "$ac_cv_search_strerror" = no; then
2435 for ac_lib in cposix; do
2436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2437 cat >conftest.$ac_ext <<_ACEOF
2438 #line $LINENO "configure"
2439 #include "confdefs.h"
2441 /* Override any gcc2 internal prototype to avoid an error. */
2445 /* We use char because int might match the return type of a gcc2
2446 builtin and then its argument prototype would still apply. */
2448 #ifdef F77_DUMMY_MAIN
2452 int F77_DUMMY_MAIN() { return 1; }
2462 rm -f conftest.$ac_objext conftest$ac_exeext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2464 (eval $ac_link) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest$ac_exeext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_search_strerror="-l$ac_lib"
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2483 LIBS=$ac_func_search_save_LIBS
2485 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2486 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2487 if test "$ac_cv_search_strerror" != no; then
2488 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2493 if test "x$CC" != xcc; then
2494 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2495 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2497 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2498 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2500 set dummy $CC; ac_cc=`echo $2 |
2501 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2502 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2507 #include "confdefs.h"
2509 #ifdef F77_DUMMY_MAIN
2513 int F77_DUMMY_MAIN() { return 1; }
2523 # Make sure it works both with $CC and with simple cc.
2524 # We do the test twice because some compilers refuse to overwrite an
2525 # existing .o file with -o, though they will create one.
2526 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2527 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); };
2538 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2539 if test "x$CC" != xcc; then
2540 # Test first that cc exists at all.
2541 if { ac_try='cc -c conftest.$ac_ext >&5'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2548 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); };
2562 # cc exists but doesn't like -o.
2563 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2568 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2573 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2574 echo "$as_me:$LINENO: result: yes" >&5
2575 echo "${ECHO_T}yes" >&6
2577 echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6
2580 cat >>confdefs.h <<\_ACEOF
2581 #define NO_MINUS_C_MINUS_O 1
2586 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2593 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2594 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2595 if test "${samba_cv_volatile+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2601 #include "confdefs.h"
2602 #include <sys/types.h>
2603 #ifdef F77_DUMMY_MAIN
2607 int F77_DUMMY_MAIN() { return 1; }
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 samba_cv_volatile=yes
2631 echo "$as_me: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2633 samba_cv_volatile=no
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2637 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2638 echo "${ECHO_T}$samba_cv_volatile" >&6
2639 if test x"$samba_cv_volatile" = x"yes"; then
2641 cat >>confdefs.h <<\_ACEOF
2642 #define HAVE_VOLATILE 1
2648 # Make sure we can run config.sub.
2649 $ac_config_sub sun4 >/dev/null 2>&1 ||
2650 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2651 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2652 { (exit 1); exit 1; }; }
2654 echo "$as_me:$LINENO: checking build system type" >&5
2655 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2656 if test "${ac_cv_build+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 ac_cv_build_alias=$build_alias
2660 test -z "$ac_cv_build_alias" &&
2661 ac_cv_build_alias=`$ac_config_guess`
2662 test -z "$ac_cv_build_alias" &&
2663 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2664 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2665 { (exit 1); exit 1; }; }
2666 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2667 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2668 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2669 { (exit 1); exit 1; }; }
2672 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2673 echo "${ECHO_T}$ac_cv_build" >&6
2675 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2676 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2677 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2680 echo "$as_me:$LINENO: checking host system type" >&5
2681 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2682 if test "${ac_cv_host+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 ac_cv_host_alias=$host_alias
2686 test -z "$ac_cv_host_alias" &&
2687 ac_cv_host_alias=$ac_cv_build_alias
2688 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2689 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2690 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2691 { (exit 1); exit 1; }; }
2694 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2695 echo "${ECHO_T}$ac_cv_host" >&6
2697 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2698 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2699 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2702 echo "$as_me:$LINENO: checking target system type" >&5
2703 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2704 if test "${ac_cv_target+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 ac_cv_target_alias=$target_alias
2708 test "x$ac_cv_target_alias" = "x" &&
2709 ac_cv_target_alias=$ac_cv_host_alias
2710 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2712 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2713 { (exit 1); exit 1; }; }
2716 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2717 echo "${ECHO_T}$ac_cv_target" >&6
2718 target=$ac_cv_target
2719 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2720 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2721 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2724 # The aliases save the names the user supplied, while $host etc.
2725 # will get canonicalized.
2726 test -n "$target_alias" &&
2727 test "$program_prefix$program_suffix$program_transform_name" = \
2729 program_prefix=${target_alias}-
2732 *irix6*) cat >> confdefs.h <<\EOF
2733 #include <standards.h>
2741 echo "$as_me:$LINENO: checking config.cache system type" >&5
2742 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2743 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2744 test x"$ac_cv_host_system_type" != x"$host"; } ||
2745 { test x"${ac_cv_build_system_type+set}" = x"set" &&
2746 test x"$ac_cv_build_system_type" != x"$build"; } ||
2747 { test x"${ac_cv_target_system_type+set}" = x"set" &&
2748 test x"$ac_cv_target_system_type" != x"$target"; }; then
2749 echo "$as_me:$LINENO: result: different" >&5
2750 echo "${ECHO_T}different" >&6
2751 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2752 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2753 { (exit 1); exit 1; }; }
2755 echo "$as_me:$LINENO: result: same" >&5
2756 echo "${ECHO_T}same" >&6
2758 ac_cv_host_system_type="$host"
2759 ac_cv_build_system_type="$build"
2760 ac_cv_target_system_type="$target"
2766 # Config CPPFLAG settings for strange OS's that must be set
2767 # before other tests.
2770 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2773 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2774 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 echo 'void f(){}' > conftest.c
2779 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2780 ac_cv_prog_cc_Ae=yes
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2789 # mmap on HPUX is completely broken...
2791 cat >>confdefs.h <<\_ACEOF
2792 #define MMAP_BLACKLIST 1
2795 if test $ac_cv_prog_cc_Ae = yes; then
2796 CPPFLAGS="$CPPFLAGS -Ae"
2799 # Defines needed for HPUX support.
2800 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2801 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2805 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2807 cat >>confdefs.h <<\_ACEOF
2808 #define USE_BOTH_CRYPT_CALLS 1
2812 cat >>confdefs.h <<\_ACEOF
2813 #define _HPUX_SOURCE 1
2817 cat >>confdefs.h <<\_ACEOF
2818 #define _POSIX_SOURCE 1
2822 cat >>confdefs.h <<\_ACEOF
2823 #define _ALIGNMENT_REQUIRED 1
2827 cat >>confdefs.h <<\_ACEOF
2828 #define _MAX_ALIGNMENT 4
2833 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2835 cat >>confdefs.h <<\_ACEOF
2836 #define USE_BOTH_CRYPT_CALLS 1
2840 cat >>confdefs.h <<\_ACEOF
2841 #define _HPUX_SOURCE 1
2845 cat >>confdefs.h <<\_ACEOF
2846 #define _POSIX_SOURCE 1
2850 cat >>confdefs.h <<\_ACEOF
2851 #define _LARGEFILE64_SOURCE 1
2855 cat >>confdefs.h <<\_ACEOF
2856 #define _ALIGNMENT_REQUIRED 1
2860 cat >>confdefs.h <<\_ACEOF
2861 #define _MAX_ALIGNMENT 4
2870 # CRAY Unicos has broken const handling
2872 echo "$as_me:$LINENO: result: disabling const" >&5
2873 echo "${ECHO_T}disabling const" >&6
2874 CPPFLAGS="$CPPFLAGS -Dconst="
2878 # AIX4.x doesn't even admit to having large
2879 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2882 echo "$as_me:$LINENO: result: enabling large file support" >&5
2883 echo "${ECHO_T}enabling large file support" >&6
2884 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2886 cat >>confdefs.h <<\_ACEOF
2887 #define _LARGE_FILES 1
2892 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2893 # to the existance of large files..
2894 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2895 # recommendations on large file support, however it makes the
2896 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2897 # recommendation makes the compile fail on gcc2.7. JRA.
2901 5.0*|5.1*|5.2*|5.3*|5.5*)
2902 echo "$as_me:$LINENO: result: no large file support" >&5
2903 echo "${ECHO_T}no large file support" >&6
2906 echo "$as_me:$LINENO: result: enabling large file support" >&5
2907 echo "${ECHO_T}enabling large file support" >&6
2908 if test "$ac_cv_c_compiler_gnu" = yes; then
2909 ${CC-cc} -v >conftest.c 2>&1
2910 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2912 case "$ac_cv_gcc_compiler_version_number" in
2913 *"gcc version 2.6"*|*"gcc version 2.7"*)
2914 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2916 cat >>confdefs.h <<\_ACEOF
2917 #define _LARGEFILE64_SOURCE 1
2922 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2924 cat >>confdefs.h <<\_ACEOF
2925 #define _LARGEFILE64_SOURCE 1
2929 cat >>confdefs.h <<\_ACEOF
2930 #define _FILE_OFFSET_BITS 64
2936 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2938 cat >>confdefs.h <<\_ACEOF
2939 #define _LARGEFILE64_SOURCE 1
2943 cat >>confdefs.h <<\_ACEOF
2944 #define _FILE_OFFSET_BITS 64
2952 # Tests needed for SINIX large file support.
2955 if test $host = mips-sni-sysv4 ; then
2956 echo "$as_me:$LINENO: checking for LFS support" >&5
2957 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
2958 old_CPPFLAGS="$CPPFLAGS"
2959 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
2960 if test "$cross_compiling" = yes; then
2961 SINIX_LFS_SUPPORT=cross
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 #include "confdefs.h"
2969 #if _LFS64_LARGEFILE == 1
2976 rm -f conftest$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978 (eval $ac_link) 2>&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 SINIX_LFS_SUPPORT=yes
2989 echo "$as_me: program exited with status $ac_status" >&5
2990 echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2993 SINIX_LFS_SUPPORT=no
2995 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2997 CPPFLAGS="$old_CPPFLAGS"
2998 if test x$SINIX_LFS_SUPPORT = xyes ; then
2999 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3001 cat >>confdefs.h <<\_ACEOF
3002 #define _LARGEFILE64_SOURCE 1
3005 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3006 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3007 LIBS="`getconf LFS64_LIBS` $LIBS"
3009 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3010 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3014 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3017 echo "$as_me:$LINENO: checking for LFS support" >&5
3018 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3019 old_CPPFLAGS="$CPPFLAGS"
3020 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3021 if test "$cross_compiling" = yes; then
3022 LINUX_LFS_SUPPORT=cross
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 #include "confdefs.h"
3029 #include <sys/utsname.h>
3031 #if _LFS64_LARGEFILE == 1
3036 /* Ensure this is glibc 2.2 or higher */
3037 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3038 int libc_major = __GLIBC__;
3039 int libc_minor = __GLIBC_MINOR__;
3047 /* Ensure this is kernel 2.4 or higher */
3050 release = uts.release;
3051 major = atoi(strsep(&release, "."));
3052 minor = atoi(strsep(&release, "."));
3054 if (major > 2 || (major == 2 && minor > 3))
3063 rm -f conftest$ac_exeext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065 (eval $ac_link) 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 LINUX_LFS_SUPPORT=yes
3076 echo "$as_me: program exited with status $ac_status" >&5
3077 echo "$as_me: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 LINUX_LFS_SUPPORT=no
3082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3084 CPPFLAGS="$old_CPPFLAGS"
3085 if test x$LINUX_LFS_SUPPORT = xyes ; then
3086 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3088 cat >>confdefs.h <<\_ACEOF
3089 #define _LARGEFILE64_SOURCE 1
3093 cat >>confdefs.h <<\_ACEOF
3094 #define _FILE_OFFSET_BITS 64
3098 cat >>confdefs.h <<\_ACEOF
3099 #define _GNU_SOURCE 1
3103 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3104 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3108 echo "$as_me:$LINENO: checking for LFS support" >&5
3109 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3110 old_CPPFLAGS="$CPPFLAGS"
3111 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3112 if test "$cross_compiling" = yes; then
3113 GLIBC_LFS_SUPPORT=cross
3115 cat >conftest.$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3117 #include "confdefs.h"
3121 #if _LFS64_LARGEFILE == 1
3128 rm -f conftest$ac_exeext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3130 (eval $ac_link) 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3139 GLIBC_LFS_SUPPORT=yes
3141 echo "$as_me: program exited with status $ac_status" >&5
3142 echo "$as_me: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 GLIBC_LFS_SUPPORT=no
3147 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3149 CPPFLAGS="$old_CPPFLAGS"
3150 if test x$GLIBC_LFS_SUPPORT = xyes ; then
3151 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3153 cat >>confdefs.h <<\_ACEOF
3154 #define _LARGEFILE64_SOURCE 1
3158 cat >>confdefs.h <<\_ACEOF
3159 #define _GNU_SOURCE 1
3163 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3164 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3169 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3170 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3171 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 ac_cv_prog_cc_stdc=no
3176 cat >conftest.$ac_ext <<_ACEOF
3177 #line $LINENO "configure"
3178 #include "confdefs.h"
3181 #include <sys/types.h>
3182 #include <sys/stat.h>
3183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3184 struct buf { int x; };
3185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3186 static char *e (p, i)
3192 static char *f (char * (*g) (char **, int), char **p, ...)
3197 s = g (p, va_arg (v,int));
3201 int test (int i, double x);
3202 struct s1 {int (*f) (int a);};
3203 struct s2 {int (*f) (double a);};
3204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 #ifdef F77_DUMMY_MAIN
3211 int F77_DUMMY_MAIN() { return 1; }
3216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 # Don't try gcc -ansi; that turns off useful extensions and
3222 # breaks some systems' header files.
3223 # AIX -qlanglvl=ansi
3224 # Ultrix and OSF/1 -std1
3225 # HP-UX 10.20 and later -Ae
3226 # HP-UX older versions -Aa -D_HPUX_SOURCE
3227 # SVR4 -Xc -D__EXTENSIONS__
3228 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3230 CC="$ac_save_CC $ac_arg"
3231 rm -f conftest.$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 ac_cv_prog_cc_stdc=$ac_arg
3246 echo "$as_me: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 rm -f conftest.$ac_objext
3251 rm -f conftest.$ac_ext conftest.$ac_objext
3256 case "x$ac_cv_prog_cc_stdc" in
3258 echo "$as_me:$LINENO: result: none needed" >&5
3259 echo "${ECHO_T}none needed" >&6 ;;
3261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3263 CC="$CC $ac_cv_prog_cc_stdc" ;;
3266 echo "$as_me:$LINENO: checking for inline" >&5
3267 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3268 if test "${ac_cv_c_inline+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 for ac_kw in inline __inline__ __inline; do
3273 cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 #include "confdefs.h"
3277 static $ac_kw int static_foo () {return 0; }
3278 $ac_kw int foo () {return 0; }
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_cv_c_inline=$ac_kw; break
3296 echo "$as_me: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3304 echo "${ECHO_T}$ac_cv_c_inline" >&6
3305 case $ac_cv_c_inline in
3308 cat >>confdefs.h <<\_ACEOF
3312 *) cat >>confdefs.h <<_ACEOF
3313 #define inline $ac_cv_c_inline
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3324 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3325 # On Suns, sometimes $CPP names a directory.
3326 if test -n "$CPP" && test -d "$CPP"; then
3329 if test -z "$CPP"; then
3330 if test "${ac_cv_prog_CPP+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 # Double quotes because CPP needs to be expanded
3334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3337 for ac_c_preproc_warn_flag in '' yes
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # On the NeXT, cc -E runs the code through the compiler's parser,
3342 # not just through cpp. "Syntax error" is here to catch this case.
3343 cat >conftest.$ac_ext <<_ACEOF
3344 #line $LINENO "configure"
3345 #include "confdefs.h"
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3352 egrep -v '^ *\+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev/null; then
3357 if test -s conftest.err; then
3358 ac_cpp_err=$ac_c_preproc_warn_flag
3365 if test -z "$ac_cpp_err"; then
3368 echo "$as_me: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3370 # Broken: fails on valid input.
3373 rm -f conftest.err conftest.$ac_ext
3375 # OK, works on sane cases. Now check whether non-existent headers
3376 # can be detected and how.
3377 cat >conftest.$ac_ext <<_ACEOF
3378 #line $LINENO "configure"
3379 #include "confdefs.h"
3380 #include <ac_nonexistent.h>
3382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3385 egrep -v '^ *\+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null; then
3390 if test -s conftest.err; then
3391 ac_cpp_err=$ac_c_preproc_warn_flag
3398 if test -z "$ac_cpp_err"; then
3399 # Broken: success on invalid input.
3402 echo "$as_me: failed program was:" >&5
3403 cat conftest.$ac_ext >&5
3404 # Passes both tests.
3408 rm -f conftest.err conftest.$ac_ext
3411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412 rm -f conftest.err conftest.$ac_ext
3413 if $ac_preproc_ok; then
3425 echo "$as_me:$LINENO: result: $CPP" >&5
3426 echo "${ECHO_T}$CPP" >&6
3428 for ac_c_preproc_warn_flag in '' yes
3430 # Use a header file that comes with gcc, so configuring glibc
3431 # with a fresh cross-compiler works.
3432 # On the NeXT, cc -E runs the code through the compiler's parser,
3433 # not just through cpp. "Syntax error" is here to catch this case.
3434 cat >conftest.$ac_ext <<_ACEOF
3435 #line $LINENO "configure"
3436 #include "confdefs.h"
3440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3443 egrep -v '^ *\+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null; then
3448 if test -s conftest.err; then
3449 ac_cpp_err=$ac_c_preproc_warn_flag
3456 if test -z "$ac_cpp_err"; then
3459 echo "$as_me: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 # Broken: fails on valid input.
3464 rm -f conftest.err conftest.$ac_ext
3466 # OK, works on sane cases. Now check whether non-existent headers
3467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3469 #line $LINENO "configure"
3470 #include "confdefs.h"
3471 #include <ac_nonexistent.h>
3473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3476 egrep -v '^ *\+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null; then
3481 if test -s conftest.err; then
3482 ac_cpp_err=$ac_c_preproc_warn_flag
3489 if test -z "$ac_cpp_err"; then
3490 # Broken: success on invalid input.
3493 echo "$as_me: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3495 # Passes both tests.
3499 rm -f conftest.err conftest.$ac_ext
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then
3507 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3508 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3509 { (exit 1); exit 1; }; }
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3520 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3521 if test "${ac_cv_header_stdc+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 cat >conftest.$ac_ext <<_ACEOF
3525 #line $LINENO "configure"
3526 #include "confdefs.h"
3533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3536 egrep -v '^ *\+' conftest.er1 >conftest.err
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } >/dev/null; then
3541 if test -s conftest.err; then
3542 ac_cpp_err=$ac_c_preproc_warn_flag
3549 if test -z "$ac_cpp_err"; then
3550 ac_cv_header_stdc=yes
3552 echo "$as_me: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 ac_cv_header_stdc=no
3556 rm -f conftest.err conftest.$ac_ext
3558 if test $ac_cv_header_stdc = yes; then
3559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3560 cat >conftest.$ac_ext <<_ACEOF
3561 #line $LINENO "configure"
3562 #include "confdefs.h"
3566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3567 egrep "memchr" >/dev/null 2>&1; then
3570 ac_cv_header_stdc=no
3576 if test $ac_cv_header_stdc = yes; then
3577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3578 cat >conftest.$ac_ext <<_ACEOF
3579 #line $LINENO "configure"
3580 #include "confdefs.h"
3584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3585 egrep "free" >/dev/null 2>&1; then
3588 ac_cv_header_stdc=no
3594 if test $ac_cv_header_stdc = yes; then
3595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3596 if test "$cross_compiling" = yes; then
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3601 #include "confdefs.h"
3603 #if ((' ' & 0x0FF) == 0x020)
3604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3607 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3608 || ('j' <= (c) && (c) <= 'r') \
3609 || ('s' <= (c) && (c) <= 'z'))
3610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3618 for (i = 0; i < 256; i++)
3619 if (XOR (islower (i), ISLOWER (i))
3620 || toupper (i) != TOUPPER (i))
3625 rm -f conftest$ac_exeext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3627 (eval $ac_link) 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3638 echo "$as_me: program exited with status $ac_status" >&5
3639 echo "$as_me: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 ac_cv_header_stdc=no
3644 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3648 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3649 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3650 if test $ac_cv_header_stdc = yes; then
3652 cat >>confdefs.h <<\_ACEOF
3653 #define STDC_HEADERS 1
3664 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3665 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3666 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3667 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 cat >conftest.$ac_ext <<_ACEOF
3672 #line $LINENO "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3677 #ifdef F77_DUMMY_MAIN
3681 int F77_DUMMY_MAIN() { return 1; }
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 eval "$as_ac_Header=yes"
3706 echo "$as_me: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 eval "$as_ac_Header=no"
3710 rm -f conftest.$ac_objext conftest.$ac_ext
3712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3715 cat >>confdefs.h <<_ACEOF
3716 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3719 ac_header_dirent=$ac_hdr; break
3723 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3724 if test $ac_header_dirent = dirent.h; then
3725 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3726 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3727 if test "${ac_cv_search_opendir+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 ac_func_search_save_LIBS=$LIBS
3731 ac_cv_search_opendir=no
3732 cat >conftest.$ac_ext <<_ACEOF
3733 #line $LINENO "configure"
3734 #include "confdefs.h"
3736 /* Override any gcc2 internal prototype to avoid an error. */
3740 /* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3743 #ifdef F77_DUMMY_MAIN
3747 int F77_DUMMY_MAIN() { return 1; }
3757 rm -f conftest.$ac_objext conftest$ac_exeext
3758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3759 (eval $ac_link) 2>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -s conftest$ac_exeext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 ac_cv_search_opendir="none required"
3771 echo "$as_me: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3775 if test "$ac_cv_search_opendir" = no; then
3776 for ac_lib in dir; do
3777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3778 cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3780 #include "confdefs.h"
3782 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3789 #ifdef F77_DUMMY_MAIN
3793 int F77_DUMMY_MAIN() { return 1; }
3803 rm -f conftest.$ac_objext conftest$ac_exeext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805 (eval $ac_link) 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -s conftest$ac_exeext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_cv_search_opendir="-l$ac_lib"
3818 echo "$as_me: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3824 LIBS=$ac_func_search_save_LIBS
3826 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3827 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3828 if test "$ac_cv_search_opendir" != no; then
3829 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3834 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3835 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3836 if test "${ac_cv_search_opendir+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_func_search_save_LIBS=$LIBS
3840 ac_cv_search_opendir=no
3841 cat >conftest.$ac_ext <<_ACEOF
3842 #line $LINENO "configure"
3843 #include "confdefs.h"
3845 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3852 #ifdef F77_DUMMY_MAIN