2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Concurrent Versions System (CVS) 1.11.5.
5 # Report bugs to <bug-cvs@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 if expr a : '\(a\)' >/dev/null 2>&1; then
19 ## --------------------- ##
20 ## M4sh Initialization. ##
21 ## --------------------- ##
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Support unset when possible.
33 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
39 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
40 { $as_unset LANG || test "${LANG+set}" != set; } ||
41 { LANG=C; export LANG; }
42 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
44 { LC_ALL=C; export LC_ALL; }
45 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
47 { LC_TIME=C; export LC_TIME; }
48 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
50 { LC_CTYPE=C; export LC_CTYPE; }
51 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
53 { LANGUAGE=C; export LANGUAGE; }
54 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
56 { LC_COLLATE=C; export LC_COLLATE; }
57 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
59 { LC_NUMERIC=C; export LC_NUMERIC; }
60 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
62 { LC_MESSAGES=C; export LC_MESSAGES; }
65 # Name of the executable.
66 as_me=`(basename "$0") 2>/dev/null ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conftest.sh
88 echo "exit 0" >>conftest.sh
90 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
137 if ("$as_dir/$as_base" -c '
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 as_executable_p="test -f"
217 # Sed expression to map a string onto a valid CPP name.
218 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
220 # Sed expression to map a string onto a valid variable name.
221 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
225 # We need space, tab and new line, in precisely that order.
231 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
235 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
236 # so uname gets run too.
237 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244 ac_default_prefix=/usr/local
249 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Maximum number of lines to put in a shell here document.
252 # This variable seems obsolete. It should probably be removed, and
253 # only ac_max_sed_lines should be used.
254 : ${ac_max_here_lines=38}
256 # Identity of this package.
257 PACKAGE_NAME='Concurrent Versions System (CVS)'
258 PACKAGE_TARNAME='cvs'
259 PACKAGE_VERSION='1.11.5'
260 PACKAGE_STRING='Concurrent Versions System (CVS) 1.11.5'
261 PACKAGE_BUGREPORT='bug-cvs@gnu.org'
263 ac_unique_file="src/cvs.h"
264 # Factoring default headers for most tests.
265 ac_includes_default="\
268 # include <sys/types.h>
271 # include <sys/stat.h>
282 # if !STDC_HEADERS && HAVE_MEMORY_H
288 # include <strings.h>
291 # include <inttypes.h>
302 # Initialize some variables set by options.
304 ac_init_version=false
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
314 program_transform_name=s,x,x,
322 # Installation directory options.
323 # These are left unexpanded so users can "make install exec_prefix=/foo"
324 # and all the variables that are supposed to be based on exec_prefix
325 # by default will actually change.
326 # Use braces instead of parens because sh, perl, etc. also accept them.
327 bindir='${exec_prefix}/bin'
328 sbindir='${exec_prefix}/sbin'
329 libexecdir='${exec_prefix}/libexec'
330 datadir='${prefix}/share'
331 sysconfdir='${prefix}/etc'
332 sharedstatedir='${prefix}/com'
333 localstatedir='${prefix}/var'
334 libdir='${exec_prefix}/lib'
335 includedir='${prefix}/include'
336 oldincludedir='/usr/include'
337 infodir='${prefix}/info'
338 mandir='${prefix}/man'
343 # If the previous option needs an argument, assign it.
344 if test -n "$ac_prev"; then
345 eval "$ac_prev=\$ac_option"
350 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
352 # Accept the important Cygnus configure options, so we can diagnose typos.
356 -bindir | --bindir | --bindi | --bind | --bin | --bi)
358 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
361 -build | --build | --buil | --bui | --bu)
362 ac_prev=build_alias ;;
363 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
364 build_alias=$ac_optarg ;;
366 -cache-file | --cache-file | --cache-fil | --cache-fi \
367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368 ac_prev=cache_file ;;
369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
371 cache_file=$ac_optarg ;;
374 cache_file=config.cache ;;
376 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
378 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
380 datadir=$ac_optarg ;;
382 -disable-* | --disable-*)
383 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
384 # Reject names that are not valid shell variable names.
385 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387 { (exit 1); exit 1; }; }
388 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389 eval "enable_$ac_feature=no" ;;
391 -enable-* | --enable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
402 eval "enable_$ac_feature='$ac_optarg'" ;;
404 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406 | --exec | --exe | --ex)
407 ac_prev=exec_prefix ;;
408 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410 | --exec=* | --exe=* | --ex=*)
411 exec_prefix=$ac_optarg ;;
413 -gas | --gas | --ga | --g)
414 # Obsolete; use --with-gas.
417 -help | --help | --hel | --he | -h)
419 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420 ac_init_help=recursive ;;
421 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422 ac_init_help=short ;;
424 -host | --host | --hos | --ho)
425 ac_prev=host_alias ;;
426 -host=* | --host=* | --hos=* | --ho=*)
427 host_alias=$ac_optarg ;;
429 -includedir | --includedir | --includedi | --included | --include \
430 | --includ | --inclu | --incl | --inc)
431 ac_prev=includedir ;;
432 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433 | --includ=* | --inclu=* | --incl=* | --inc=*)
434 includedir=$ac_optarg ;;
436 -infodir | --infodir | --infodi | --infod | --info | --inf)
438 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
439 infodir=$ac_optarg ;;
441 -libdir | --libdir | --libdi | --libd)
443 -libdir=* | --libdir=* | --libdi=* | --libd=*)
446 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447 | --libexe | --libex | --libe)
448 ac_prev=libexecdir ;;
449 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450 | --libexe=* | --libex=* | --libe=*)
451 libexecdir=$ac_optarg ;;
453 -localstatedir | --localstatedir | --localstatedi | --localstated \
454 | --localstate | --localstat | --localsta | --localst \
455 | --locals | --local | --loca | --loc | --lo)
456 ac_prev=localstatedir ;;
457 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
460 localstatedir=$ac_optarg ;;
462 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
464 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468 # Obsolete; use --without-fp.
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c | -n)
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
479 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481 | --oldin | --oldi | --old | --ol | --o)
482 ac_prev=oldincludedir ;;
483 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
486 oldincludedir=$ac_optarg ;;
488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
493 -program-prefix | --program-prefix | --program-prefi | --program-pref \
494 | --program-pre | --program-pr | --program-p)
495 ac_prev=program_prefix ;;
496 -program-prefix=* | --program-prefix=* | --program-prefi=* \
497 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
498 program_prefix=$ac_optarg ;;
500 -program-suffix | --program-suffix | --program-suffi | --program-suff \
501 | --program-suf | --program-su | --program-s)
502 ac_prev=program_suffix ;;
503 -program-suffix=* | --program-suffix=* | --program-suffi=* \
504 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
505 program_suffix=$ac_optarg ;;
507 -program-transform-name | --program-transform-name \
508 | --program-transform-nam | --program-transform-na \
509 | --program-transform-n | --program-transform- \
510 | --program-transform | --program-transfor \
511 | --program-transfo | --program-transf \
512 | --program-trans | --program-tran \
513 | --progr-tra | --program-tr | --program-t)
514 ac_prev=program_transform_name ;;
515 -program-transform-name=* | --program-transform-name=* \
516 | --program-transform-nam=* | --program-transform-na=* \
517 | --program-transform-n=* | --program-transform-=* \
518 | --program-transform=* | --program-transfor=* \
519 | --program-transfo=* | --program-transf=* \
520 | --program-trans=* | --program-tran=* \
521 | --progr-tra=* | --program-tr=* | --program-t=*)
522 program_transform_name=$ac_optarg ;;
524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525 | -silent | --silent | --silen | --sile | --sil)
528 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
530 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
532 sbindir=$ac_optarg ;;
534 -sharedstatedir | --sharedstatedir | --sharedstatedi \
535 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536 | --sharedst | --shareds | --shared | --share | --shar \
538 ac_prev=sharedstatedir ;;
539 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
543 sharedstatedir=$ac_optarg ;;
545 -site | --site | --sit)
547 -site=* | --site=* | --sit=*)
550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
555 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556 | --syscon | --sysco | --sysc | --sys | --sy)
557 ac_prev=sysconfdir ;;
558 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
560 sysconfdir=$ac_optarg ;;
562 -target | --target | --targe | --targ | --tar | --ta | --t)
563 ac_prev=target_alias ;;
564 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
565 target_alias=$ac_optarg ;;
567 -v | -verbose | --verbose | --verbos | --verbo | --verb)
570 -version | --version | --versio | --versi | --vers | -V)
574 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
575 # Reject names that are not valid shell variable names.
576 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577 { echo "$as_me: error: invalid package name: $ac_package" >&2
578 { (exit 1); exit 1; }; }
579 ac_package=`echo $ac_package| sed 's/-/_/g'`
581 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
584 eval "with_$ac_package='$ac_optarg'" ;;
586 -without-* | --without-*)
587 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package | sed 's/-/_/g'`
593 eval "with_$ac_package=no" ;;
596 # Obsolete; use --with-x.
599 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600 | --x-incl | --x-inc | --x-in | --x-i)
601 ac_prev=x_includes ;;
602 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
604 x_includes=$ac_optarg ;;
606 -x-libraries | --x-libraries | --x-librarie | --x-librari \
607 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608 ac_prev=x_libraries ;;
609 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
611 x_libraries=$ac_optarg ;;
613 -*) { echo "$as_me: error: unrecognized option: $ac_option
614 Try \`$0 --help' for more information." >&2
615 { (exit 1); exit 1; }; }
619 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620 # Reject names that are not valid shell variable names.
621 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623 { (exit 1); exit 1; }; }
624 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625 eval "$ac_envvar='$ac_optarg'"
629 # FIXME: should be removed in autoconf 3.0.
630 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
639 if test -n "$ac_prev"; then
640 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641 { echo "$as_me: error: missing argument to $ac_option" >&2
642 { (exit 1); exit 1; }; }
645 # Be sure to have absolute paths.
646 for ac_var in exec_prefix prefix
648 eval ac_val=$`echo $ac_var`
650 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652 { (exit 1); exit 1; }; };;
656 # Be sure to have absolute paths.
657 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658 localstatedir libdir includedir oldincludedir infodir mandir
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # There might be people who depend on the old broken behavior: `$host'
669 # used to hold the argument of --host etc.
670 # FIXME: To remove some day.
675 # FIXME: To remove some day.
676 if test "x$host_alias" != x; then
677 if test "x$build_alias" = x; then
678 cross_compiling=maybe
679 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680 If a cross compiler is detected then cross compile mode will be used." >&2
681 elif test "x$build_alias" != "x$host_alias"; then
687 test -n "$host_alias" && ac_tool_prefix=$host_alias-
689 test "$silent" = yes && exec 6>/dev/null
692 # Find the source files, if location was not specified.
693 if test -z "$srcdir"; then
694 ac_srcdir_defaulted=yes
695 # Try the directory containing this script, then its parent.
696 ac_confdir=`(dirname "$0") 2>/dev/null ||
697 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698 X"$0" : 'X\(//\)[^/]' \| \
699 X"$0" : 'X\(//\)$' \| \
700 X"$0" : 'X\(/\)' \| \
701 . : '\(.\)' 2>/dev/null ||
703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705 /^X\(\/\/\)$/{ s//\1/; q; }
706 /^X\(\/\).*/{ s//\1/; q; }
709 if test ! -r $srcdir/$ac_unique_file; then
713 ac_srcdir_defaulted=no
715 if test ! -r $srcdir/$ac_unique_file; then
716 if test "$ac_srcdir_defaulted" = yes; then
717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718 { (exit 1); exit 1; }; }
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721 { (exit 1); exit 1; }; }
724 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725 ac_env_build_alias_set=${build_alias+set}
726 ac_env_build_alias_value=$build_alias
727 ac_cv_env_build_alias_set=${build_alias+set}
728 ac_cv_env_build_alias_value=$build_alias
729 ac_env_host_alias_set=${host_alias+set}
730 ac_env_host_alias_value=$host_alias
731 ac_cv_env_host_alias_set=${host_alias+set}
732 ac_cv_env_host_alias_value=$host_alias
733 ac_env_target_alias_set=${target_alias+set}
734 ac_env_target_alias_value=$target_alias
735 ac_cv_env_target_alias_set=${target_alias+set}
736 ac_cv_env_target_alias_value=$target_alias
737 ac_env_CC_set=${CC+set}
739 ac_cv_env_CC_set=${CC+set}
740 ac_cv_env_CC_value=$CC
741 ac_env_CFLAGS_set=${CFLAGS+set}
742 ac_env_CFLAGS_value=$CFLAGS
743 ac_cv_env_CFLAGS_set=${CFLAGS+set}
744 ac_cv_env_CFLAGS_value=$CFLAGS
745 ac_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_env_LDFLAGS_value=$LDFLAGS
747 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748 ac_cv_env_LDFLAGS_value=$LDFLAGS
749 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_env_CPPFLAGS_value=$CPPFLAGS
751 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_EDITOR_set=${EDITOR+set}
758 ac_env_EDITOR_value=$EDITOR
759 ac_cv_env_EDITOR_set=${EDITOR+set}
760 ac_cv_env_EDITOR_value=$EDITOR
763 # Report the --help message.
765 if test "$ac_init_help" = "long"; then
766 # Omit some internal or obsolete options to make the list less imposing.
767 # This message is too long to be a string in the A/UX 3.1 sh.
769 \`configure' configures Concurrent Versions System (CVS) 1.11.5 to adapt to many kinds of systems.
771 Usage: $0 [OPTION]... [VAR=VALUE]...
773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
774 VAR=VALUE. See below for descriptions of some of the useful variables.
776 Defaults for the options are specified in brackets.
779 -h, --help display this help and exit
780 --help=short display options specific to this package
781 --help=recursive display the short help of all the included packages
782 -V, --version display version information and exit
783 -q, --quiet, --silent do not print \`checking...' messages
784 --cache-file=FILE cache test results in FILE [disabled]
785 -C, --config-cache alias for \`--cache-file=config.cache'
786 -n, --no-create do not create output files
787 --srcdir=DIR find the sources in DIR [configure dir or \`..']
792 Installation directories:
793 --prefix=PREFIX install architecture-independent files in PREFIX
795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
798 By default, \`make install' will install all the files in
799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801 for instance \`--prefix=\$HOME'.
803 For better control, use the options below.
805 Fine tuning of the installation directories:
806 --bindir=DIR user executables [EPREFIX/bin]
807 --sbindir=DIR system admin executables [EPREFIX/sbin]
808 --libexecdir=DIR program executables [EPREFIX/libexec]
809 --datadir=DIR read-only architecture-independent data [PREFIX/share]
810 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
811 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
812 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
813 --libdir=DIR object code libraries [EPREFIX/lib]
814 --includedir=DIR C header files [PREFIX/include]
815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
816 --infodir=DIR info documentation [PREFIX/info]
817 --mandir=DIR man documentation [PREFIX/man]
823 --program-prefix=PREFIX prepend PREFIX to installed program names
824 --program-suffix=SUFFIX append SUFFIX to installed program names
825 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
829 if test -n "$ac_init_help"; then
830 case $ac_init_help in
831 short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.11.5:";;
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
838 --disable-dependency-tracking Speeds up one-time builds
839 --enable-dependency-tracking Do not reject slow dependency extractors
840 --enable-cvs-ndbm Use the NDBM library distributed with CVS rather
841 than attempting to use a system NDBM library.
842 Disabling this may not work. (default)
843 --enable-client Include code for running as a remote client
845 --enable-password-authenticated-client
846 Enable pserver as a remote access method in the CVS
848 --enable-server Include code for running as a server (default)
849 --enable-server-flow-control
850 If you are working with a large remote repository
851 and a 'cvs checkout' is swamping your network and
852 memory, define these to enable flow control. You may
853 optionally pass a low water mark in bytes and a high
854 water mark in bytes, separated by commas. (default
856 --enable-encryption Enable encryption support (disabled by default)
857 --enable-force-editor When committing or importing files, you must enter a
858 log message. Normally, you can do this either via
859 the -m flag on the command line, the -F flag on the
860 command line, or an editor will be started for you.
861 If you like to use logging templates (the rcsinfo
862 file within the $CVSROOT/CVSROOT directory), you
863 might want to force people to use the editor even if
864 they specify a message with -m or -F.
865 --enable-force-editor will cause the -m or -F
866 message to be appended to the temp file when the
867 editor is started. (disabled by default)
868 --enable-rootcommit Allow the root user to commit files (disabled by
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-krb4 Kerberos 4 directory (default /usr/kerberos)
875 --with-gssapi GSSAPI directory (default autoselects)
876 --with-editor The default text editor CVS should use for log
877 messages (default autoselects)
878 --with-tmpdir The temporary directory CVS should use as a default
879 (default autoselects)
880 --with-umask Set the umask CVS will use by default in the
881 repository (default 002)
882 --with-cvs-admin-group=GROUP
883 The CVS admin command is restricted to the members
884 of this group. If this group does not exist, all
885 users are allowed to run CVS admin. To disable the
886 CVS admin command for all users, create an empty
887 group by specifying the --with-cvs-admin-group=
888 option. To disable access control for CVS admin, run
889 configure with the --without-cvs-admin-group option.
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
900 EDITOR The text editor CVS will use by default for log messages.
902 Use these variables to override the choices made by `configure' or to help
903 it to find libraries and programs with nonstandard names/locations.
905 Report bugs to <bug-cvs@gnu.org>.
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 ac_dir_suffix= ac_top_builddir=
925 .) # No --srcdir option. We are building in place.
927 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
941 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
942 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
943 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
944 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
968 Concurrent Versions System (CVS) configure 1.11.5
969 generated by GNU Autoconf 2.53
971 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
972 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
983 It was created by Concurrent Versions System (CVS) $as_me 1.11.5, which was
984 generated by GNU Autoconf 2.53. Invocation command line was
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1005 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1008 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1009 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1010 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 test -z "$as_dir" && as_dir=.
1019 echo "PATH: $as_dir"
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Also quote any args containing shell meta-characters.
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n ) continue ;;
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050 case " $ac_configure_args " in
1051 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1052 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1055 # Get rid of the leading space.
1058 # When interrupted or exit'd, cleanup temporary files, and complete
1059 # config.log. We remove comments because anyway the quotes in there
1060 # would cause problems or look ugly.
1061 # WARNING: Be sure not to use single quotes in there, as some shells,
1062 # such as our DU 5.0 friend, will then `close' the trap.
1063 trap 'exit_status=$?
1064 # Save into config.log some information that might help in debugging.
1068 ## ---------------- ##
1069 ## Cache variables. ##
1070 ## ---------------- ##
1073 # The following way of writing the cache mishandles newlines in values,
1076 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1079 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1084 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089 if test -s confdefs.h; then
1096 sed "/^$/d" confdefs.h
1099 test "$ac_signal" != 0 &&
1100 echo "$as_me: caught signal $ac_signal"
1101 echo "$as_me: exit $exit_status"
1103 rm -f core core.* *.core &&
1104 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1107 for ac_signal in 1 2 13 15; do
1108 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1113 rm -rf conftest* confdefs.h
1114 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1117 # Predefined preprocessor variables.
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1144 # Let the site file select an alternate cache file if it wants to.
1145 # Prefer explicitly selected file to automatically selected ones.
1146 if test -z "$CONFIG_SITE"; then
1147 if test "x$prefix" != xNONE; then
1148 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1150 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1153 for ac_site_file in $CONFIG_SITE; do
1154 if test -r "$ac_site_file"; then
1155 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1156 echo "$as_me: loading site script $ac_site_file" >&6;}
1157 sed 's/^/| /' "$ac_site_file" >&5
1162 if test -r "$cache_file"; then
1163 # Some versions of bash will fail to source /dev/null (special
1164 # files actually), so we avoid doing that.
1165 if test -f "$cache_file"; then
1166 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1167 echo "$as_me: loading cache $cache_file" >&6;}
1169 [\\/]* | ?:[\\/]* ) . $cache_file;;
1170 *) . ./$cache_file;;
1174 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1179 # Check that the precious variables saved in the cache have kept the same
1181 ac_cache_corrupted=false
1182 for ac_var in `(set) 2>&1 |
1183 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1184 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1185 eval ac_new_set=\$ac_env_${ac_var}_set
1186 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1187 eval ac_new_val="\$ac_env_${ac_var}_value"
1188 case $ac_old_set,$ac_new_set in
1190 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1192 ac_cache_corrupted=: ;;
1194 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1195 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1196 ac_cache_corrupted=: ;;
1199 if test "x$ac_old_val" != "x$ac_new_val"; then
1200 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1201 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1202 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1203 echo "$as_me: former value: $ac_old_val" >&2;}
1204 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1205 echo "$as_me: current value: $ac_new_val" >&2;}
1206 ac_cache_corrupted=:
1209 # Pass precious variables to config.status.
1210 if test "$ac_new_set" = set; then
1212 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214 *) ac_arg=$ac_var=$ac_new_val ;;
1216 case " $ac_configure_args " in
1217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1218 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1222 if $ac_cache_corrupted; then
1223 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1224 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1225 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1226 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1227 { (exit 1); exit 1; }; }
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262 am__api_version="1.6"
1264 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1265 if test -f $ac_dir/install-sh; then
1267 ac_install_sh="$ac_aux_dir/install-sh -c"
1269 elif test -f $ac_dir/install.sh; then
1271 ac_install_sh="$ac_aux_dir/install.sh -c"
1273 elif test -f $ac_dir/shtool; then
1275 ac_install_sh="$ac_aux_dir/shtool install -c"
1279 if test -z "$ac_aux_dir"; then
1280 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1281 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1282 { (exit 1); exit 1; }; }
1284 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1285 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1286 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1288 # Find a good install program. We prefer a C program (faster),
1289 # so one script is as good as another. But avoid the broken or
1290 # incompatible versions:
1291 # SysV /etc/install, /usr/sbin/install
1292 # SunOS /usr/etc/install
1293 # IRIX /sbin/install
1295 # AmigaOS /C/install, which installs bootblocks on floppy discs
1296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1299 # ./install, which can be erroneously created by make from ./install.sh.
1300 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1301 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1302 if test -z "$INSTALL"; then
1303 if test "${ac_cv_path_install+set}" = set; then
1304 echo $ECHO_N "(cached) $ECHO_C" >&6
1306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1310 test -z "$as_dir" && as_dir=.
1311 # Account for people who put trailing slashes in PATH elements.
1313 ./ | .// | /cC/* | \
1314 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1317 # OSF1 and SCO ODT 3.0 have their own names for install.
1318 # Don't use installbsd from OSF since it installs stuff as root
1320 for ac_prog in ginstall scoinst install; do
1321 for ac_exec_ext in '' $ac_executable_extensions; do
1322 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1323 if test $ac_prog = install &&
1324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1325 # AIX install. It has an incompatible calling convention.
1327 elif test $ac_prog = install &&
1328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1329 # program-specific install script used by HP pwplus--don't use.
1332 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1344 if test "${ac_cv_path_install+set}" = set; then
1345 INSTALL=$ac_cv_path_install
1347 # As a last resort, use the slow shell script. We don't cache a
1348 # path for INSTALL within a source directory, because that will
1349 # break other packages using the cache if that directory is
1350 # removed, or if the path is relative.
1351 INSTALL=$ac_install_sh
1354 echo "$as_me:$LINENO: result: $INSTALL" >&5
1355 echo "${ECHO_T}$INSTALL" >&6
1357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1358 # It thinks the first close brace ends the variable substitution.
1359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1365 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1366 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1369 echo timestamp > conftest.file
1370 # Do `set' in a subshell so we don't clobber the current shell's
1371 # arguments. Must try -L first in case configure is actually a
1372 # symlink; some systems play weird games with the mod time of symlinks
1373 # (eg FreeBSD returns the mod time of the symlink's containing
1376 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1377 if test "$*" = "X"; then
1379 set X `ls -t $srcdir/configure conftest.file`
1382 if test "$*" != "X $srcdir/configure conftest.file" \
1383 && test "$*" != "X conftest.file $srcdir/configure"; then
1385 # If neither matched, then we have a broken ls. This can happen
1386 # if, for instance, CONFIG_SHELL is bash and it inherits a
1387 # broken ls alias from the environment. This has actually
1388 # happened. Such a system could not be considered "sane".
1389 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1390 alias in your environment" >&5
1391 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1392 alias in your environment" >&2;}
1393 { (exit 1); exit 1; }; }
1396 test "$2" = conftest.file
1402 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1403 Check your system clock" >&5
1404 echo "$as_me: error: newly created file is older than distributed files!
1405 Check your system clock" >&2;}
1406 { (exit 1); exit 1; }; }
1408 echo "$as_me:$LINENO: result: yes" >&5
1409 echo "${ECHO_T}yes" >&6
1410 test "$program_prefix" != NONE &&
1411 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1412 # Use a double $ so make ignores it.
1413 test "$program_suffix" != NONE &&
1414 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1415 # Double any \ or $. echo might interpret backslashes.
1416 # By default was `s,x,x', remove it if useless.
1417 cat <<\_ACEOF >conftest.sed
1418 s/[\\$]/&&/g;s/;s,x,x,$//
1420 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1424 # expand $ac_aux_dir to an absolute path
1425 am_aux_dir=`cd $ac_aux_dir && pwd`
1427 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1428 # Use eval to expand $SHELL
1429 if eval "$MISSING --run true"; then
1430 am_missing_run="$MISSING --run "
1433 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1434 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1437 for ac_prog in gawk mawk nawk awk
1439 # Extract the first word of "$ac_prog", so it can be a program name with args.
1440 set dummy $ac_prog; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_AWK+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 if test -n "$AWK"; then
1447 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_AWK="$ac_prog"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466 if test -n "$AWK"; then
1467 echo "$as_me:$LINENO: result: $AWK" >&5
1468 echo "${ECHO_T}$AWK" >&6
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1474 test -n "$AWK" && break
1477 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1478 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1479 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1480 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 cat >conftest.make <<\_ACEOF
1485 @echo 'ac_maketemp="${MAKE}"'
1487 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1488 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1489 if test -n "$ac_maketemp"; then
1490 eval ac_cv_prog_make_${ac_make}_set=yes
1492 eval ac_cv_prog_make_${ac_make}_set=no
1496 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1497 echo "$as_me:$LINENO: result: yes" >&5
1498 echo "${ECHO_T}yes" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1503 SET_MAKE="MAKE=${MAKE-make}"
1506 # test to see if srcdir already configured
1507 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1508 test -f $srcdir/config.status; then
1509 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1510 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1511 { (exit 1); exit 1; }; }
1514 # Define the identity of the package.
1519 # Some tools Automake needs.
1521 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1524 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1527 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1530 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1533 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1536 AMTAR=${AMTAR-"${am_missing_run}tar"}
1538 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1540 # Installed binaries are usually stripped using `strip' when the user
1541 # run `make install-strip'. However `strip' might not be the right
1542 # tool to use in cross-compilation environments, therefore Automake
1543 # will honor the `STRIP' environment variable to overrule this program.
1544 if test "$cross_compiling" != no; then
1545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}strip; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_STRIP+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$STRIP"; then
1554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 STRIP=$ac_cv_prog_STRIP
1573 if test -n "$STRIP"; then
1574 echo "$as_me:$LINENO: result: $STRIP" >&5
1575 echo "${ECHO_T}$STRIP" >&6
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1582 if test -z "$ac_cv_prog_STRIP"; then
1584 # Extract the first word of "strip", so it can be a program name with args.
1585 set dummy strip; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$ac_ct_STRIP"; then
1592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_ac_ct_STRIP="strip"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1612 if test -n "$ac_ct_STRIP"; then
1613 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1614 echo "${ECHO_T}$ac_ct_STRIP" >&6
1616 echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1622 STRIP="$ac_cv_prog_STRIP"
1626 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1628 # We need awk for the "check" target. The system "awk" is bad on
1635 if test "x$prefix" = xNONE; then
1636 echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1637 # Extract the first word of "cvs", so it can be a program name with args.
1638 set dummy cvs; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 case $ac_prefix_program in
1646 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 ac_prefix_program=$ac_cv_path_ac_prefix_program
1668 if test -n "$ac_prefix_program"; then
1669 echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1670 echo "${ECHO_T}$ac_prefix_program" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1676 if test -n $ac_prefix_program; then
1677 prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1678 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1679 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1680 X"$ac_prefix_program" : 'X\(//\)$' \| \
1681 X"$ac_prefix_program" : 'X\(/\)' \| \
1682 . : '\(.\)' 2>/dev/null ||
1683 echo X"$ac_prefix_program" |
1684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1686 /^X\(\/\/\)$/{ s//\1/; q; }
1687 /^X\(\/\).*/{ s//\1/; q; }
1689 prefix=`(dirname "$prefix") 2>/dev/null ||
1690 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1691 X"$prefix" : 'X\(//\)[^/]' \| \
1692 X"$prefix" : 'X\(//\)$' \| \
1693 X"$prefix" : 'X\(/\)' \| \
1694 . : '\(.\)' 2>/dev/null ||
1696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1698 /^X\(\/\/\)$/{ s//\1/; q; }
1699 /^X\(\/\).*/{ s//\1/; q; }
1704 # Add the stamp file to the list of files AC keeps track of,
1705 # along with our hook.
1706 ac_config_headers="$ac_config_headers config.h"
1712 ac_cpp='$CPP $CPPFLAGS'
1713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1716 if test -n "$ac_tool_prefix"; then
1717 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 if test -n "$CC"; then
1745 echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1753 if test -z "$ac_cv_prog_CC"; then
1755 # Extract the first word of "gcc", so it can be a program name with args.
1756 set dummy gcc; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$ac_ct_CC"; then
1763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_ac_ct_CC="gcc"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1782 if test -n "$ac_ct_CC"; then
1783 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1784 echo "${ECHO_T}$ac_ct_CC" >&6
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1795 if test -z "$CC"; then
1796 if test -n "$ac_tool_prefix"; then
1797 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1798 set dummy ${ac_tool_prefix}cc; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$CC"; then
1805 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_CC="${ac_tool_prefix}cc"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 if test -n "$CC"; then
1825 echo "$as_me:$LINENO: result: $CC" >&5
1826 echo "${ECHO_T}$CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1833 if test -z "$ac_cv_prog_CC"; then
1835 # Extract the first word of "cc", so it can be a program name with args.
1836 set dummy cc; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test -n "$ac_ct_CC"; then
1843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852 ac_cv_prog_ac_ct_CC="cc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1862 if test -n "$ac_ct_CC"; then
1863 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1864 echo "${ECHO_T}$ac_ct_CC" >&6
1866 echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1876 if test -z "$CC"; then
1877 # Extract the first word of "cc", so it can be a program name with args.
1878 set dummy cc; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1896 ac_prog_rejected=yes
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 if test $ac_prog_rejected = yes; then
1907 # We found a bogon in the path, so make sure we never use it.
1908 set dummy $ac_cv_prog_CC
1910 if test $# != 0; then
1911 # We chose a different compiler from the bogus one.
1912 # However, it has the same basename, so the bogon will be chosen
1913 # first if we set CC to just the basename; use the full file name.
1915 set dummy "$as_dir/$ac_word" ${1+"$@"}
1923 if test -n "$CC"; then
1924 echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1932 if test -z "$CC"; then
1933 if test -n "$ac_tool_prefix"; then
1936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 if test -n "$CC"; then
1964 echo "$as_me:$LINENO: result: $CC" >&5
1965 echo "${ECHO_T}$CC" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1971 test -n "$CC" && break
1974 if test -z "$CC"; then
1978 # Extract the first word of "$ac_prog", so it can be a program name with args.
1979 set dummy $ac_prog; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$ac_ct_CC"; then
1986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_ac_ct_CC="$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2005 if test -n "$ac_ct_CC"; then
2006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2007 echo "${ECHO_T}$ac_ct_CC" >&6
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2013 test -n "$ac_ct_CC" && break
2022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2023 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2024 { (exit 1); exit 1; }; }
2026 # Provide some information about the compiler.
2027 echo "$as_me:$LINENO:" \
2028 "checking for C compiler version" >&5
2029 ac_compiler=`set X $ac_compile; echo $2`
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2031 (eval $ac_compiler --version </dev/null >&5) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }
2035 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2036 (eval $ac_compiler -v </dev/null >&5) 2>&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }
2040 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2041 (eval $ac_compiler -V </dev/null >&5) 2>&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }
2046 cat >conftest.$ac_ext <<_ACEOF
2047 #line $LINENO "configure"
2048 #include "confdefs.h"
2050 #ifdef F77_DUMMY_MAIN
2054 int F77_DUMMY_MAIN() { return 1; }
2064 ac_clean_files_save=$ac_clean_files
2065 ac_clean_files="$ac_clean_files a.out a.exe"
2066 # Try to create an executable without -o first, disregard a.out.
2067 # It will help us diagnose broken compilers, and finding out an intuition
2069 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2070 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2073 (eval $ac_link_default) 2>&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; then
2077 # Find the output, starting from the most likely. This scheme is
2078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2081 # Be careful to initialize this variable, since it used to be cached.
2082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2084 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2085 ls a.out conftest 2>/dev/null;
2086 ls a.* conftest.* 2>/dev/null`; do
2088 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2089 a.out ) # We found the default executable, but exeext='' is most
2092 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2093 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2100 echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2103 echo "$as_me: error: C compiler cannot create executables" >&2;}
2104 { (exit 77); exit 77; }; }
2107 ac_exeext=$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_file" >&5
2109 echo "${ECHO_T}$ac_file" >&6
2111 # Check the compiler produces executables we can run. If not, either
2112 # the compiler is broken, or we cross compile.
2113 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2114 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2115 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2116 # If not cross compiling, check that we can run a simple program.
2117 if test "$cross_compiling" != yes; then
2118 if { ac_try='./$ac_file'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2126 if test "$cross_compiling" = maybe; then
2129 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2130 If you meant to cross compile, use \`--host'." >&5
2131 echo "$as_me: error: cannot run C compiled programs.
2132 If you meant to cross compile, use \`--host'." >&2;}
2133 { (exit 1); exit 1; }; }
2137 echo "$as_me:$LINENO: result: yes" >&5
2138 echo "${ECHO_T}yes" >&6
2140 rm -f a.out a.exe conftest$ac_cv_exeext
2141 ac_clean_files=$ac_clean_files_save
2142 # Check the compiler produces executables we can run. If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2145 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2146 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2147 echo "${ECHO_T}$cross_compiling" >&6
2149 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2150 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2152 (eval $ac_link) 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2157 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2158 # work properly (i.e., refer to `conftest.exe'), while it won't with
2160 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2162 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2170 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2171 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2172 { (exit 1); exit 1; }; }
2175 rm -f conftest$ac_cv_exeext
2176 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2177 echo "${ECHO_T}$ac_cv_exeext" >&6
2179 rm -f conftest.$ac_ext
2180 EXEEXT=$ac_cv_exeext
2182 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2183 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2184 if test "${ac_cv_objext+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 cat >conftest.$ac_ext <<_ACEOF
2188 #line $LINENO "configure"
2189 #include "confdefs.h"
2191 #ifdef F77_DUMMY_MAIN
2195 int F77_DUMMY_MAIN() { return 1; }
2205 rm -f conftest.o conftest.obj
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2214 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2223 { (exit 1); exit 1; }; }
2226 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2228 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2229 echo "${ECHO_T}$ac_cv_objext" >&6
2230 OBJEXT=$ac_cv_objext
2232 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2233 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2234 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 cat >conftest.$ac_ext <<_ACEOF
2238 #line $LINENO "configure"
2239 #include "confdefs.h"
2241 #ifdef F77_DUMMY_MAIN
2245 int F77_DUMMY_MAIN() { return 1; }
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2272 echo "$as_me: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2276 rm -f conftest.$ac_objext conftest.$ac_ext
2277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2282 GCC=`test $ac_compiler_gnu = yes && echo yes`
2283 ac_test_CFLAGS=${CFLAGS+set}
2284 ac_save_CFLAGS=$CFLAGS
2286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2288 if test "${ac_cv_prog_cc_g+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2293 #include "confdefs.h"
2295 #ifdef F77_DUMMY_MAIN
2299 int F77_DUMMY_MAIN() { return 1; }
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2323 echo "$as_me: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2330 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2331 if test "$ac_test_CFLAGS" = set; then
2332 CFLAGS=$ac_save_CFLAGS
2333 elif test $ac_cv_prog_cc_g = yes; then
2334 if test "$GCC" = yes; then
2340 if test "$GCC" = yes; then
2346 # Some people use a C++ compiler to compile C. Since we use `exit',
2347 # in C++ we need to declare it. In case someone uses the same compiler
2348 # for both compiling C and C++ we need to have the C++ compiler decide
2349 # the declaration of exit, since it's the most demanding environment.
2350 cat >conftest.$ac_ext <<_ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 for ac_declaration in \
2369 '#include <stdlib.h>' \
2370 'extern "C" void std::exit (int) throw (); using std::exit;' \
2371 'extern "C" void std::exit (int); using std::exit;' \
2372 'extern "C" void exit (int) throw ();' \
2373 'extern "C" void exit (int);' \
2376 cat >conftest.$ac_ext <<_ACEOF
2377 #line $LINENO "configure"
2378 #include "confdefs.h"
2381 #ifdef F77_DUMMY_MAIN
2385 int F77_DUMMY_MAIN() { return 1; }
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2409 echo "$as_me: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2413 rm -f conftest.$ac_objext conftest.$ac_ext
2414 cat >conftest.$ac_ext <<_ACEOF
2415 #line $LINENO "configure"
2416 #include "confdefs.h"
2418 #ifdef F77_DUMMY_MAIN
2422 int F77_DUMMY_MAIN() { return 1; }
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2452 if test -n "$ac_declaration"; then
2453 echo '#ifdef __cplusplus' >>confdefs.h
2454 echo $ac_declaration >>confdefs.h
2455 echo '#endif' >>confdefs.h
2459 echo "$as_me: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2462 rm -f conftest.$ac_objext conftest.$ac_ext
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468 rm -f .deps 2>/dev/null
2469 mkdir .deps 2>/dev/null
2470 if test -d .deps; then
2473 # MS-DOS does not allow filenames that begin with a dot.
2476 rmdir .deps 2>/dev/null
2479 ac_config_commands="$ac_config_commands depfiles"
2482 am_make=${MAKE-make}
2483 cat > confinc << 'END'
2487 # If we don't find an include directive, just comment out the code.
2488 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2489 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2493 # First try GNU make style include.
2494 echo "include confinc" > confmf
2495 # We grep out `Entering directory' and `Leaving directory'
2496 # messages which can occur if `w' ends up in MAKEFLAGS.
2497 # In particular we don't look at `^make:' because GNU make might
2498 # be invoked under some other name (usually "gmake"), in which
2499 # case it prints its new name instead of `make'.
2500 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2505 # Now try BSD make style include.
2506 if test "$am__include" = "#"; then
2507 echo '.include "confinc"' > confmf
2508 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2509 am__include=.include
2516 echo "$as_me:$LINENO: result: $_am_result" >&5
2517 echo "${ECHO_T}$_am_result" >&6
2518 rm -f confinc confmf
2520 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2521 if test "${enable_dependency_tracking+set}" = set; then
2522 enableval="$enable_dependency_tracking"
2525 if test "x$enable_dependency_tracking" != xno; then
2526 am_depcomp="$ac_aux_dir/depcomp"
2531 if test "x$enable_dependency_tracking" != xno; then
2542 depcc="$CC" am_compiler_list=
2544 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2545 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2546 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2550 # We make a subdir and do the tests there. Otherwise we can end up
2551 # making bogus files that we don't know about and never remove. For
2552 # instance it was reported that on HP-UX the gcc test will end up
2553 # making a dummy file named `D' -- because `-MD' means `put the output
2556 # Copy depcomp to subdir because otherwise we won't find it if we're
2557 # using a relative directory.
2558 cp "$am_depcomp" conftest.dir
2561 am_cv_CC_dependencies_compiler_type=none
2562 if test "$am_compiler_list" = ""; then
2563 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2565 for depmode in $am_compiler_list; do
2566 # We need to recreate these files for each test, as the compiler may
2567 # overwrite some of them when testing with obscure command lines.
2568 # This happens at least with the AIX C compiler.
2569 echo '#include "conftest.h"' > conftest.c
2570 echo 'int i;' > conftest.h
2571 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2575 # after this tag, mechanisms are not by side-effect, so they'll
2576 # only be used when explicitly requested
2577 if test "x$enable_dependency_tracking" = xyes; then
2585 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2586 # mode. It turns out that the SunPro C++ compiler does not properly
2587 # handle `-M -o', and we need to detect this.
2588 if depmode=$depmode \
2589 source=conftest.c object=conftest.o \
2590 depfile=conftest.Po tmpdepfile=conftest.TPo \
2591 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2592 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2594 am_cv_CC_dependencies_compiler_type=$depmode
2602 am_cv_CC_dependencies_compiler_type=none
2606 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2607 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2608 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2611 if test "x$CC" != xcc; then
2612 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2613 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2615 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2616 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2618 set dummy $CC; ac_cc=`echo $2 |
2619 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2620 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2625 #include "confdefs.h"
2627 #ifdef F77_DUMMY_MAIN
2631 int F77_DUMMY_MAIN() { return 1; }
2641 # Make sure it works both with $CC and with simple cc.
2642 # We do the test twice because some compilers refuse to overwrite an
2643 # existing .o file with -o, though they will create one.
2644 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2645 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); };
2656 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2657 if test "x$CC" != xcc; then
2658 # Test first that cc exists at all.
2659 if { ac_try='cc -c conftest.$ac_ext >&5'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2666 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); };
2680 # cc exists but doesn't like -o.
2681 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2686 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2691 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2692 echo "$as_me:$LINENO: result: yes" >&5
2693 echo "${ECHO_T}yes" >&6
2695 echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6
2698 cat >>confdefs.h <<\_ACEOF
2699 #define NO_MINUS_C_MINUS_O 1
2704 # FIXME: we rely on the cache variable name because
2705 # there is no other way.
2707 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2708 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2709 # Losing compiler, so override with the script.
2710 # FIXME: It is wrong to rewrite CC.
2711 # But if we don't then we get into trouble of one sort or another.
2712 # A longer-term fix would be to have automake use am__CC in this case,
2713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2714 CC="$am_aux_dir/compile $CC"
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2725 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2726 # On Suns, sometimes $CPP names a directory.
2727 if test -n "$CPP" && test -d "$CPP"; then
2730 if test -z "$CPP"; then
2731 if test "${ac_cv_prog_CPP+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 # Double quotes because CPP needs to be expanded
2735 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2738 for ac_c_preproc_warn_flag in '' yes
2740 # Use a header file that comes with gcc, so configuring glibc
2741 # with a fresh cross-compiler works.
2742 # On the NeXT, cc -E runs the code through the compiler's parser,
2743 # not just through cpp. "Syntax error" is here to catch this case.
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line $LINENO "configure"
2746 #include "confdefs.h"
2750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2753 egrep -v '^ *\+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } >/dev/null; then
2758 if test -s conftest.err; then
2759 ac_cpp_err=$ac_c_preproc_warn_flag
2766 if test -z "$ac_cpp_err"; then
2769 echo "$as_me: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2771 # Broken: fails on valid input.
2774 rm -f conftest.err conftest.$ac_ext
2776 # OK, works on sane cases. Now check whether non-existent headers
2777 # can be detected and how.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 #include "confdefs.h"
2781 #include <ac_nonexistent.h>
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2786 egrep -v '^ *\+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev/null; then
2791 if test -s conftest.err; then
2792 ac_cpp_err=$ac_c_preproc_warn_flag
2799 if test -z "$ac_cpp_err"; then
2800 # Broken: success on invalid input.
2803 echo "$as_me: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2805 # Passes both tests.
2809 rm -f conftest.err conftest.$ac_ext
2812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2813 rm -f conftest.err conftest.$ac_ext
2814 if $ac_preproc_ok; then
2826 echo "$as_me:$LINENO: result: $CPP" >&5
2827 echo "${ECHO_T}$CPP" >&6
2829 for ac_c_preproc_warn_flag in '' yes
2831 # Use a header file that comes with gcc, so configuring glibc
2832 # with a fresh cross-compiler works.
2833 # On the NeXT, cc -E runs the code through the compiler's parser,
2834 # not just through cpp. "Syntax error" is here to catch this case.
2835 cat >conftest.$ac_ext <<_ACEOF
2836 #line $LINENO "configure"
2837 #include "confdefs.h"
2841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2844 egrep -v '^ *\+' conftest.er1 >conftest.err
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } >/dev/null; then
2849 if test -s conftest.err; then
2850 ac_cpp_err=$ac_c_preproc_warn_flag
2857 if test -z "$ac_cpp_err"; then
2860 echo "$as_me: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 # Broken: fails on valid input.
2865 rm -f conftest.err conftest.$ac_ext
2867 # OK, works on sane cases. Now check whether non-existent headers
2868 # can be detected and how.
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line $LINENO "configure"
2871 #include "confdefs.h"
2872 #include <ac_nonexistent.h>
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2877 egrep -v '^ *\+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2890 if test -z "$ac_cpp_err"; then
2891 # Broken: success on invalid input.
2894 echo "$as_me: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 # Passes both tests.
2900 rm -f conftest.err conftest.$ac_ext
2903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2904 rm -f conftest.err conftest.$ac_ext
2905 if $ac_preproc_ok; then
2908 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2910 { (exit 1); exit 1; }; }
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 echo "$as_me:$LINENO: checking for AIX" >&5
2922 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2923 cat >conftest.$ac_ext <<_ACEOF
2924 #line $LINENO "configure"
2925 #include "confdefs.h"
2931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2932 egrep "yes" >/dev/null 2>&1; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6
2935 cat >>confdefs.h <<\_ACEOF
2936 #define _ALL_SOURCE 1
2940 echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2946 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2948 if test "${ac_cv_header_stdc+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 #include "confdefs.h"
2960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 egrep -v '^ *\+' conftest.er1 >conftest.err
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } >/dev/null; then
2968 if test -s conftest.err; then
2969 ac_cpp_err=$ac_c_preproc_warn_flag
2976 if test -z "$ac_cpp_err"; then
2977 ac_cv_header_stdc=yes
2979 echo "$as_me: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2981 ac_cv_header_stdc=no
2983 rm -f conftest.err conftest.$ac_ext
2985 if test $ac_cv_header_stdc = yes; then
2986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2987 cat >conftest.$ac_ext <<_ACEOF
2988 #line $LINENO "configure"
2989 #include "confdefs.h"
2993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2994 egrep "memchr" >/dev/null 2>&1; then
2997 ac_cv_header_stdc=no
3003 if test $ac_cv_header_stdc = yes; then
3004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 #include "confdefs.h"
3011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3012 egrep "free" >/dev/null 2>&1; then
3015 ac_cv_header_stdc=no
3021 if test $ac_cv_header_stdc = yes; then
3022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3023 if test "$cross_compiling" = yes; then
3026 cat >conftest.$ac_ext <<_ACEOF
3027 #line $LINENO "configure"
3028 #include "confdefs.h"
3030 #if ((' ' & 0x0FF) == 0x020)
3031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3034 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3035 || ('j' <= (c) && (c) <= 'r') \
3036 || ('s' <= (c) && (c) <= 'z'))
3037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3045 for (i = 0; i < 256; i++)
3046 if (XOR (islower (i), ISLOWER (i))
3047 || toupper (i) != TOUPPER (i))
3052 rm -f conftest$ac_exeext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3054 (eval $ac_link) 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3065 echo "$as_me: program exited with status $ac_status" >&5
3066 echo "$as_me: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3069 ac_cv_header_stdc=no
3071 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3077 if test $ac_cv_header_stdc = yes; then
3079 cat >>confdefs.h <<\_ACEOF
3080 #define STDC_HEADERS 1
3085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3096 inttypes.h stdint.h unistd.h
3098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3099 echo "$as_me:$LINENO: checking for $ac_header" >&5
3100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 cat >conftest.$ac_ext <<_ACEOF
3105 #line $LINENO "configure"
3106 #include "confdefs.h"
3107 $ac_includes_default
3109 #include <$ac_header>
3111 rm -f conftest.$ac_objext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3113 (eval $ac_compile) 2>&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3123 eval "$as_ac_Header=yes"
3125 echo "$as_me: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 eval "$as_ac_Header=no"
3129 rm -f conftest.$ac_objext conftest.$ac_ext
3131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3134 cat >>confdefs.h <<_ACEOF
3135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3143 if test "${ac_cv_header_minix_config_h+set}" = set; then
3144 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3145 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3146 if test "${ac_cv_header_minix_config_h+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3150 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3152 # Is the header compilable?
3153 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3154 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3155 cat >conftest.$ac_ext <<_ACEOF
3156 #line $LINENO "configure"
3157 #include "confdefs.h"
3158 $ac_includes_default
3159 #include <minix/config.h>
3161 rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3173 ac_header_compiler=yes
3175 echo "$as_me: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3177 ac_header_compiler=no
3179 rm -f conftest.$ac_objext conftest.$ac_ext
3180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3181 echo "${ECHO_T}$ac_header_compiler" >&6
3183 # Is the header present?
3184 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3185 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3186 cat >conftest.$ac_ext <<_ACEOF
3187 #line $LINENO "configure"
3188 #include "confdefs.h"
3189 #include <minix/config.h>
3191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3194 egrep -v '^ *\+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
3207 if test -z "$ac_cpp_err"; then
3208 ac_header_preproc=yes
3210 echo "$as_me: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 ac_header_preproc=no
3214 rm -f conftest.err conftest.$ac_ext
3215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3216 echo "${ECHO_T}$ac_header_preproc" >&6
3218 # So? What about this header?
3219 case $ac_header_compiler:$ac_header_preproc in
3221 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3222 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3223 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3224 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3226 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3227 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3228 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3229 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3230 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3231 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3233 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3234 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3235 if test "${ac_cv_header_minix_config_h+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 ac_cv_header_minix_config_h=$ac_header_preproc
3240 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3241 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3244 if test $ac_cv_header_minix_config_h = yes; then
3251 if test "$MINIX" = yes; then
3253 cat >>confdefs.h <<\_ACEOF
3254 #define _POSIX_SOURCE 1
3258 cat >>confdefs.h <<\_ACEOF
3259 #define _POSIX_1_SOURCE 2
3263 cat >>confdefs.h <<\_ACEOF
3270 # Find the posix library needed on INTERACTIVE UNIX (ISC)
3271 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3272 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3273 if test "${ac_cv_search_strerror+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 ac_func_search_save_LIBS=$LIBS
3277 ac_cv_search_strerror=no
3278 cat >conftest.$ac_ext <<_ACEOF
3279 #line $LINENO "configure"
3280 #include "confdefs.h"
3282 /* Override any gcc2 internal prototype to avoid an error. */
3286 /* We use char because int might match the return type of a gcc2
3287 builtin and then its argument prototype would still apply. */
3289 #ifdef F77_DUMMY_MAIN
3293 int F77_DUMMY_MAIN() { return 1; }
3303 rm -f conftest.$ac_objext conftest$ac_exeext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305 (eval $ac_link) 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_search_strerror="none required"
3317 echo "$as_me: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3321 if test "$ac_cv_search_strerror" = no; then
3322 for ac_lib in cposix; do
3323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 #include "confdefs.h"
3328 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3335 #ifdef F77_DUMMY_MAIN
3339 int F77_DUMMY_MAIN() { return 1; }
3349 rm -f conftest.$ac_objext conftest$ac_exeext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351 (eval $ac_link) 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try='test -s conftest$ac_exeext'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_cv_search_strerror="-l$ac_lib"
3364 echo "$as_me: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3370 LIBS=$ac_func_search_save_LIBS
3372 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3373 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3374 if test "$ac_cv_search_strerror" != no; then
3375 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3381 if test -n "$ac_tool_prefix"; then
3382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3384 echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3386 if test "${ac_cv_prog_RANLIB+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 if test -n "$RANLIB"; then
3390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 RANLIB=$ac_cv_prog_RANLIB
3409 if test -n "$RANLIB"; then
3410 echo "$as_me:$LINENO: result: $RANLIB" >&5
3411 echo "${ECHO_T}$RANLIB" >&6
3413 echo "$as_me:$LINENO: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3418 if test -z "$ac_cv_prog_RANLIB"; then
3419 ac_ct_RANLIB=$RANLIB
3420 # Extract the first word of "ranlib", so it can be a program name with args.
3421 set dummy ranlib; ac_word=$2
3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if test -n "$ac_ct_RANLIB"; then
3428 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_ac_ct_RANLIB="ranlib"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3447 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3448 if test -n "$ac_ct_RANLIB"; then
3449 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3450 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3452 echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3456 RANLIB=$ac_ct_RANLIB
3458 RANLIB="$ac_cv_prog_RANLIB"
3461 for ac_prog in 'bison -y' byacc
3463 # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_prog_YACC+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 if test -n "$YACC"; then
3471 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_YACC="$ac_prog"
3481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 YACC=$ac_cv_prog_YACC
3490 if test -n "$YACC"; then
3491 echo "$as_me:$LINENO: result: $YACC" >&5
3492 echo "${ECHO_T}$YACC" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 test -n "$YACC" && break
3500 test -n "$YACC" || YACC="yacc"
3502 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3503 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3505 if test "$LN_S" = "ln -s"; then
3506 echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6
3509 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3510 echo "${ECHO_T}no, using $LN_S" >&6
3515 # Extract the first word of "perl", so it can be a program name with args.
3516 set dummy perl; ac_word=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_path_PERL+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
3545 PERL=$ac_cv_path_PERL
3547 if test -n "$PERL"; then
3548 echo "$as_me:$LINENO: result: $PERL" >&5
3549 echo "${ECHO_T}$PERL" >&6
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3555 # Extract the first word of "csh", so it can be a program name with args.
3556 set dummy csh; ac_word=$2
3557 echo "$as_me:$LINENO: checking for $ac_word" >&5
3558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3559 if test "${ac_cv_path_CSH+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
3575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
3587 if test -n "$CSH"; then
3588 echo "$as_me:$LINENO: result: $CSH" >&5
3589 echo "${ECHO_T}$CSH" >&6
3591 echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6
3595 # Extract the first word of "pr", so it can be a program name with args.
3596 set dummy pr; ac_word=$2
3597 echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599 if test "${ac_cv_path_PR+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 ac_cv_path_PR="$PR" # Let the user override the test with a path.
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
3615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
3627 if test -n "$PR"; then
3628 echo "$as_me:$LINENO: result: $PR" >&5
3629 echo "${ECHO_T}$PR" >&6
3631 echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6
3636 if test x"$PR" != xno; then
3638 cat >>confdefs.h <<_ACEOF
3639 #define PR_PROGRAM "$PR"
3644 missing_dir=`cd $ac_aux_dir && pwd`
3645 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
3646 for ac_prog in groff roff
3648 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649 set dummy $ac_prog; ac_word=$2
3650 echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_path_ROFF+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $glocs
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 ROFF=$ac_cv_path_ROFF
3679 if test -n "$ROFF"; then
3680 echo "$as_me:$LINENO: result: $ROFF" >&5
3681 echo "${ECHO_T}$ROFF" >&6
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3687 test -n "$ROFF" && break
3689 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
3691 # Extract the first word of "ps2pdf", so it can be a program name with args.
3692 set dummy ps2pdf; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_path_PS2PDF+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
3711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
3721 PS2PDF=$ac_cv_path_PS2PDF
3723 if test -n "$PS2PDF"; then
3724 echo "$as_me:$LINENO: result: $PS2PDF" >&5
3725 echo "${ECHO_T}$PS2PDF" >&6
3727 echo "$as_me:$LINENO: result: no" >&5
3728 echo "${ECHO_T}no" >&6
3731 # Extract the first word of "texi2dvi", so it can be a program name with args.
3732 set dummy texi2dvi; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
3761 TEXI2DVI=$ac_cv_path_TEXI2DVI
3763 if test -n "$TEXI2DVI"; then
3764 echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
3765 echo "${ECHO_T}$TEXI2DVI" >&6
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3772 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
3773 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
3774 if test "${ac_cv_sys_interpreter+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
3782 if test $? -ne 69; then
3783 ac_cv_sys_interpreter=yes
3785 ac_cv_sys_interpreter=no
3789 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
3790 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
3791 interpval=$ac_cv_sys_interpreter
3793 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
3794 # silly trick to avoid problems in AC macros...
3795 ac_msg='perl scripts using #! may not be invoked properly'
3796 { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
3797 echo "$as_me: WARNING: $ac_msg" >&2;}
3800 # BSD's logo is a devil for a reason, hey?
3801 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
3802 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
3803 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 if test ! -d ac_test_dir ; then
3807 { ac_try='mkdir ac_test_dir'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }
3814 cat >conftestmake <<EOF
3816 ac_test_target: ac_test_dep
3817 echo BSD VPATH bug present >&2
3818 ac_test_dep: ac_test_dep_dep
3820 touch ac_test_dir/ac_test_dep_dep
3821 touch ac_test_dir/ac_test_dep
3822 touch ac_test_target
3823 # Don't know why, but the following test doesn't work under FreeBSD 4.2
3824 # without this sleep command
3826 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; } ; then
3832 ccvs_cv_bsd_make_vpath_bug=yes
3834 ccvs_cv_bsd_make_vpath_bug=no
3836 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }
3843 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
3844 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
3845 # We also don't need to worry about the bug when $srcdir = $builddir
3849 test $ccvs_cv_bsd_make_vpath_bug = no \
3850 || test $srcdir = .; then
3851 MAKE_TARGETS_IN_VPATH_TRUE=
3852 MAKE_TARGETS_IN_VPATH_FALSE='#'
3854 MAKE_TARGETS_IN_VPATH_TRUE='#'
3855 MAKE_TARGETS_IN_VPATH_FALSE=
3865 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3866 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3867 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3868 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 cat >conftest.$ac_ext <<_ACEOF
3873 #line $LINENO "configure"
3874 #include "confdefs.h"
3875 #include <sys/types.h>
3878 #ifdef F77_DUMMY_MAIN
3882 int F77_DUMMY_MAIN() { return 1; }
3893 rm -f conftest.$ac_objext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895 (eval $ac_compile) 2>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 eval "$as_ac_Header=yes"
3907 echo "$as_me: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3909 eval "$as_ac_Header=no"
3911 rm -f conftest.$ac_objext conftest.$ac_ext
3913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3916 cat >>confdefs.h <<_ACEOF
3917 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3920 ac_header_dirent=$ac_hdr; break
3924 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3925 if test $ac_header_dirent = dirent.h; then
3926 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3927 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3928 if test "${ac_cv_search_opendir+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 ac_func_search_save_LIBS=$LIBS
3932 ac_cv_search_opendir=no
3933 cat >conftest.$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3935 #include "confdefs.h"
3937 /* Override any gcc2 internal prototype to avoid an error. */
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3944 #ifdef F77_DUMMY_MAIN
3948 int F77_DUMMY_MAIN() { return 1; }
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960 (eval $ac_link) 2>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -s conftest$ac_exeext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_cv_search_opendir="none required"
3972 echo "$as_me: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3976 if test "$ac_cv_search_opendir" = no; then
3977 for ac_lib in dir; do
3978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3979 cat >conftest.$ac_ext <<_ACEOF
3980 #line $LINENO "configure"
3981 #include "confdefs.h"
3983 /* Override any gcc2 internal prototype to avoid an error. */
3987 /* We use char because int might match the return type of a gcc2
3988 builtin and then its argument prototype would still apply. */
3990 #ifdef F77_DUMMY_MAIN
3994 int F77_DUMMY_MAIN() { return 1; }
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -s conftest$ac_exeext'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
4016 ac_cv_search_opendir="-l$ac_lib"
4019 echo "$as_me: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4025 LIBS=$ac_func_search_save_LIBS
4027 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4028 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4029 if test "$ac_cv_search_opendir" != no; then
4030 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4035 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4036 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4037 if test "${ac_cv_search_opendir+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 ac_func_search_save_LIBS=$LIBS
4041 ac_cv_search_opendir=no
4042 cat >conftest.$ac_ext <<_ACEOF
4043 #line $LINENO "configure"
4044 #include "confdefs.h"
4046 /* Override any gcc2 internal prototype to avoid an error. */
4050 /* We use char because int might match the return type of a gcc2
4051 builtin and then its argument prototype would still apply. */
4053 #ifdef F77_DUMMY_MAIN
4057 int F77_DUMMY_MAIN() { return 1; }
4067 rm -f conftest.$ac_objext conftest$ac_exeext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4069 (eval $ac_link) 2>&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -s conftest$ac_exeext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 ac_cv_search_opendir="none required"
4081 echo "$as_me: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4085 if test "$ac_cv_search_opendir" = no; then
4087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4088 cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4090 #include "confdefs.h"
4092 /* Override any gcc2 internal prototype to avoid an error. */
4096 /* We use char because int might match the return type of a gcc2
4097 builtin and then its argument prototype would still apply. */
4099 #ifdef F77_DUMMY_MAIN
4103 int F77_DUMMY_MAIN() { return 1; }
4113 rm -f conftest.$ac_objext conftest$ac_exeext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4115 (eval $ac_link) 2>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -s conftest$ac_exeext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_cv_search_opendir="-l$ac_lib"
4128 echo "$as_me: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4134 LIBS=$ac_func_search_save_LIBS
4136 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4137 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4138 if test "$ac_cv_search_opendir" != no; then
4139 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4145 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4147 if test "${ac_cv_header_stdc+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 cat >conftest.$ac_ext <<_ACEOF
4151 #line $LINENO "configure"
4152 #include "confdefs.h"
4159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4162 egrep -v '^ *\+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } >/dev/null; then
4167 if test -s conftest.err; then
4168 ac_cpp_err=$ac_c_preproc_warn_flag
4175 if test -z "$ac_cpp_err"; then
4176 ac_cv_header_stdc=yes
4178 echo "$as_me: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4180 ac_cv_header_stdc=no
4182 rm -f conftest.err conftest.$ac_ext
4184 if test $ac_cv_header_stdc = yes; then
4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 #include "confdefs.h"
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 egrep "memchr" >/dev/null 2>&1; then
4196 ac_cv_header_stdc=no
4202 if test $ac_cv_header_stdc = yes; then
4203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4204 cat >conftest.$ac_ext <<_ACEOF
4205 #line $LINENO "configure"
4206 #include "confdefs.h"
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211 egrep "free" >/dev/null 2>&1; then
4214 ac_cv_header_stdc=no
4220 if test $ac_cv_header_stdc = yes; then
4221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4222 if test "$cross_compiling" = yes; then
4225 cat >conftest.$ac_ext <<_ACEOF
4226 #line $LINENO "configure"
4227 #include "confdefs.h"
4229 #if ((' ' & 0x0FF) == 0x020)
4230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4233 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4234 || ('j' <= (c) && (c) <= 'r') \
4235 || ('s' <= (c) && (c) <= 'z'))
4236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4244 for (i = 0; i < 256; i++)
4245 if (XOR (islower (i), ISLOWER (i))
4246 || toupper (i) != TOUPPER (i))
4251 rm -f conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253 (eval $ac_link) 2>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4264 echo "$as_me: program exited with status $ac_status" >&5
4265 echo "$as_me: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 ac_cv_header_stdc=no
4270 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4274 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4275 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4276 if test $ac_cv_header_stdc = yes; then
4278 cat >>confdefs.h <<\_ACEOF
4279 #define STDC_HEADERS 1
4284 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4285 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4286 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 cat >conftest.$ac_ext <<_ACEOF
4290 #line $LINENO "configure"
4291 #include "confdefs.h"
4292 #include <sys/types.h>
4293 #include <sys/wait.h>
4295 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4298 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4301 #ifdef F77_DUMMY_MAIN
4305 int F77_DUMMY_MAIN() { return 1; }
4312 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4317 rm -f conftest.$ac_objext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319 (eval $ac_compile) 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_header_sys_wait_h=yes
4331 echo "$as_me: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4333 ac_cv_header_sys_wait_h=no
4335 rm -f conftest.$ac_objext conftest.$ac_ext
4337 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4338 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4339 if test $ac_cv_header_sys_wait_h = yes; then
4341 cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_SYS_WAIT_H 1
4388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390 echo "$as_me:$LINENO: checking for $ac_header" >&5
4391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4398 # Is the header compilable?
4399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4401 cat >conftest.$ac_ext <<_ACEOF
4402 #line $LINENO "configure"
4403 #include "confdefs.h"
4404 $ac_includes_default
4405 #include <$ac_header>
4407 rm -f conftest.$ac_objext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 ac_header_compiler=yes
4421 echo "$as_me: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4423 ac_header_compiler=no
4425 rm -f conftest.$ac_objext conftest.$ac_ext
4426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4427 echo "${ECHO_T}$ac_header_compiler" >&6
4429 # Is the header present?
4430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4434 #include "confdefs.h"
4435 #include <$ac_header>
4437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4440 egrep -v '^ *\+' conftest.er1 >conftest.err
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } >/dev/null; then
4445 if test -s conftest.err; then
4446 ac_cpp_err=$ac_c_preproc_warn_flag
4453 if test -z "$ac_cpp_err"; then
4454 ac_header_preproc=yes
4456 echo "$as_me: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4458 ac_header_preproc=no
4460 rm -f conftest.err conftest.$ac_ext
4461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4462 echo "${ECHO_T}$ac_header_preproc" >&6
4464 # So? What about this header?
4465 case $ac_header_compiler:$ac_header_preproc in
4467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4479 echo "$as_me:$LINENO: checking for $ac_header" >&5
4480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 eval "$as_ac_Header=$ac_header_preproc"
4486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4491 cat >>confdefs.h <<_ACEOF
4492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4499 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4500 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4501 if test "${ac_cv_header_stat_broken+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4506 #include "confdefs.h"
4507 #include <sys/types.h>
4508 #include <sys/stat.h>
4510 #if defined(S_ISBLK) && defined(S_IFDIR)
4511 # if S_ISBLK (S_IFDIR)
4516 #if defined(S_ISBLK) && defined(S_IFCHR)
4517 # if S_ISBLK (S_IFCHR)
4522 #if defined(S_ISLNK) && defined(S_IFREG)
4523 # if S_ISLNK (S_IFREG)
4528 #if defined(S_ISSOCK) && defined(S_IFREG)
4529 # if S_ISSOCK (S_IFREG)
4535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4536 egrep "You lose" >/dev/null 2>&1; then
4537 ac_cv_header_stat_broken=yes
4539 ac_cv_header_stat_broken=no
4544 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4545 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4546 if test $ac_cv_header_stat_broken = yes; then
4548 cat >>confdefs.h <<\_ACEOF
4549 #define STAT_MACROS_BROKEN 1
4554 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4555 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4556 if test "${ac_cv_header_time+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 cat >conftest.$ac_ext <<_ACEOF
4560 #line $LINENO "configure"
4561 #include "confdefs.h"
4562 #include <sys/types.h>
4563 #include <sys/time.h>
4566 #ifdef F77_DUMMY_MAIN
4570 int F77_DUMMY_MAIN() { return 1; }
4575 if ((struct tm *) 0)
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 ac_cv_header_time=yes
4595 echo "$as_me: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597 ac_cv_header_time=no
4599 rm -f conftest.$ac_objext conftest.$ac_ext
4601 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4602 echo "${ECHO_T}$ac_cv_header_time" >&6
4603 if test $ac_cv_header_time = yes; then
4605 cat >>confdefs.h <<\_ACEOF
4606 #define TIME_WITH_SYS_TIME 1
4612 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4613 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4614 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 ac_cv_prog_cc_stdc=no
4619 cat >conftest.$ac_ext <<_ACEOF
4620 #line $LINENO "configure"
4621 #include "confdefs.h"
4624 #include <sys/types.h>
4625 #include <sys/stat.h>
4626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4627 struct buf { int x; };
4628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4629 static char *e (p, i)
4635 static char *f (char * (*g) (char **, int), char **p, ...)
4640 s = g (p, va_arg (v,int));
4644 int test (int i, double x);
4645 struct s1 {int (*f) (int a);};
4646 struct s2 {int (*f) (double a);};
4647 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4650 #ifdef F77_DUMMY_MAIN
4654 int F77_DUMMY_MAIN() { return 1; }
4659 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4664 # Don't try gcc -ansi; that turns off useful extensions and
4665 # breaks some systems' header files.
4666 # AIX -qlanglvl=ansi
4667 # Ultrix and OSF/1 -std1
4668 # HP-UX 10.20 and later -Ae
4669 # HP-UX older versions -Aa -D_HPUX_SOURCE
4670 # SVR4 -Xc -D__EXTENSIONS__
4671 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4673 CC="$ac_save_CC $ac_arg"
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_prog_cc_stdc=$ac_arg
4689 echo "$as_me: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4692 rm -f conftest.$ac_objext
4694 rm -f conftest.$ac_ext conftest.$ac_objext
4699 case "x$ac_cv_prog_cc_stdc" in
4701 echo "$as_me:$LINENO: result: none needed" >&5
4702 echo "${ECHO_T}none needed" >&6 ;;
4704 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4705 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4706 CC="$CC $ac_cv_prog_cc_stdc" ;;
4709 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4710 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4711 if test "${ac_cv_c_const+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4716 #include "confdefs.h"
4718 #ifdef F77_DUMMY_MAIN
4722 int F77_DUMMY_MAIN() { return 1; }
4727 /* FIXME: Include the comments suggested by Paul. */
4729 /* Ultrix mips cc rejects this. */
4730 typedef int charset[2];
4732 /* SunOS 4.1.1 cc rejects this. */
4733 char const *const *ccp;
4735 /* NEC SVR4.0.2 mips cc rejects this. */
4736 struct point {int x, y;};
4737 static struct point const zero = {0,0};
4738 /* AIX XL C 1.02.0.0 rejects this.
4739 It does not let you subtract one const X* pointer from another in
4740 an arm of an if-expression whose if-part is not a constant
4742 const char *g = "string";
4743 ccp = &g + (g ? g-g : 0);
4744 /* HPUX 7.0 cc rejects these. */
4747 ccp = (char const *const *) p;
4748 { /* SCO 3.2v4 cc rejects this. */
4750 char const *s = 0 ? (char *) 0 : (char const *) 0;
4754 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4756 const int *foo = &x[0];
4759 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4760 typedef const int *iptr;
4764 { /* AIX XL C 1.02.0.0 rejects this saying
4765 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4766 struct s { int j; const int *ap[3]; };
4767 struct s *b; b->j = 5;
4769 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780 (eval $ac_compile) 2>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4792 echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4796 rm -f conftest.$ac_objext conftest.$ac_ext
4798 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4799 echo "${ECHO_T}$ac_cv_c_const" >&6
4800 if test $ac_cv_c_const = no; then
4802 cat >>confdefs.h <<\_ACEOF
4808 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4809 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4810 if test "${ac_cv_type_uid_t+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 cat >conftest.$ac_ext <<_ACEOF
4814 #line $LINENO "configure"
4815 #include "confdefs.h"
4816 #include <sys/types.h>
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820 egrep "uid_t" >/dev/null 2>&1; then
4821 ac_cv_type_uid_t=yes
4828 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4829 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4830 if test $ac_cv_type_uid_t = no; then
4832 cat >>confdefs.h <<\_ACEOF
4837 cat >>confdefs.h <<\_ACEOF
4843 echo "$as_me:$LINENO: checking for mode_t" >&5
4844 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4845 if test "${ac_cv_type_mode_t+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 cat >conftest.$ac_ext <<_ACEOF
4849 #line $LINENO "configure"
4850 #include "confdefs.h"
4851 $ac_includes_default
4852 #ifdef F77_DUMMY_MAIN
4856 int F77_DUMMY_MAIN() { return 1; }
4863 if (sizeof (mode_t))
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_cv_type_mode_t=yes
4883 echo "$as_me: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 ac_cv_type_mode_t=no
4887 rm -f conftest.$ac_objext conftest.$ac_ext
4889 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4890 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4891 if test $ac_cv_type_mode_t = yes; then
4895 cat >>confdefs.h <<_ACEOF
4901 echo "$as_me:$LINENO: checking for pid_t" >&5
4902 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4903 if test "${ac_cv_type_pid_t+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 cat >conftest.$ac_ext <<_ACEOF
4907 #line $LINENO "configure"
4908 #include "confdefs.h"
4909 $ac_includes_default
4910 #ifdef F77_DUMMY_MAIN
4914 int F77_DUMMY_MAIN() { return 1; }
4927 rm -f conftest.$ac_objext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929 (eval $ac_compile) 2>&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_cv_type_pid_t=yes
4941 echo "$as_me: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4945 rm -f conftest.$ac_objext conftest.$ac_ext
4947 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4948 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4949 if test $ac_cv_type_pid_t = yes; then
4953 cat >>confdefs.h <<_ACEOF
4959 echo "$as_me:$LINENO: checking for size_t" >&5
4960 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4961 if test "${ac_cv_type_size_t+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 #include "confdefs.h"
4967 $ac_includes_default
4968 #ifdef F77_DUMMY_MAIN
4972 int F77_DUMMY_MAIN() { return 1; }
4979 if (sizeof (size_t))
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 ac_cv_type_size_t=yes
4999 echo "$as_me: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5001 ac_cv_type_size_t=no
5003 rm -f conftest.$ac_objext conftest.$ac_ext
5005 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5006 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5007 if test $ac_cv_type_size_t = yes; then
5011 cat >>confdefs.h <<_ACEOF
5012 #define size_t unsigned
5017 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5018 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5019 if test "${ac_cv_type_signal+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 cat >conftest.$ac_ext <<_ACEOF
5023 #line $LINENO "configure"
5024 #include "confdefs.h"
5025 #include <sys/types.h>
5031 extern "C" void (*signal (int, void (*)(int)))(int);
5033 void (*signal ()) ();
5036 #ifdef F77_DUMMY_MAIN
5040 int F77_DUMMY_MAIN() { return 1; }
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_type_signal=void
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 ac_cv_type_signal=int
5068 rm -f conftest.$ac_objext conftest.$ac_ext
5070 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5071 echo "${ECHO_T}$ac_cv_type_signal" >&6
5073 cat >>confdefs.h <<_ACEOF
5074 #define RETSIGTYPE $ac_cv_type_signal
5079 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5080 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5081 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 cat >conftest.$ac_ext <<_ACEOF
5085 #line $LINENO "configure"
5086 #include "confdefs.h"
5087 $ac_includes_default
5088 #ifdef F77_DUMMY_MAIN
5092 int F77_DUMMY_MAIN() { return 1; }
5097 static struct stat ac_aggr;
5098 if (ac_aggr.st_blksize)
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_member_struct_stat_st_blksize=yes
5118 echo "$as_me: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5120 ac_cv_member_struct_stat_st_blksize=no
5122 rm -f conftest.$ac_objext conftest.$ac_ext
5124 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5125 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5126 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5128 cat >>confdefs.h <<_ACEOF
5129 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5135 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5136 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5137 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5142 #include "confdefs.h"
5143 $ac_includes_default
5144 #ifdef F77_DUMMY_MAIN
5148 int F77_DUMMY_MAIN() { return 1; }
5153 static struct stat ac_aggr;
5154 if (ac_aggr.st_rdev)
5160 rm -f conftest.$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -s conftest.$ac_objext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_member_struct_stat_st_rdev=yes
5174 echo "$as_me: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5176 ac_cv_member_struct_stat_st_rdev=no
5178 rm -f conftest.$ac_objext conftest.$ac_ext
5180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5181 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5182 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5184 cat >>confdefs.h <<_ACEOF
5185 #define HAVE_STRUCT_STAT_ST_RDEV 1
5217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5218 echo "$as_me:$LINENO: checking for $ac_func" >&5
5219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5220 if eval "test \"\${$as_ac_var+set}\" = set"; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 cat >conftest.$ac_ext <<_ACEOF
5224 #line $LINENO "configure"
5225 #include "confdefs.h"
5226 /* System header to define __stub macros and hopefully few prototypes,
5227 which can conflict with char $ac_func (); below. */
5229 /* Override any gcc2 internal prototype to avoid an error. */
5233 /* We use char because int might match the return type of a gcc2
5234 builtin and then its argument prototype would still apply. */
5238 #ifdef F77_DUMMY_MAIN
5242 int F77_DUMMY_MAIN() { return 1; }
5247 /* The GNU C library defines this for functions which it implements
5248 to always fail with ENOSYS. Some functions are actually named
5249 something starting with __ and the normal name is an alias. */
5250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5260 rm -f conftest.$ac_objext conftest$ac_exeext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5262 (eval $ac_link) 2>&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -s conftest$ac_exeext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 eval "$as_ac_var=yes"
5274 echo "$as_me: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5276 eval "$as_ac_var=no"
5278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5282 if test `eval echo '${'$as_ac_var'}'` = yes; then
5283 cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5288 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5361 echo "$as_me:$LINENO: checking for $ac_func" >&5
5362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5363 if eval "test \"\${$as_ac_var+set}\" = set"; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5368 #include "confdefs.h"
5369 /* System header to define __stub macros and hopefully few prototypes,
5370 which can conflict with char $ac_func (); below. */
5372 /* Override any gcc2 internal prototype to avoid an error. */
5376 /* We use char because int might match the return type of a gcc2
5377 builtin and then its argument prototype would still apply. */
5381 #ifdef F77_DUMMY_MAIN
5385 int F77_DUMMY_MAIN() { return 1; }
5390 /* The GNU C library defines this for functions which it implements
5391 to always fail with ENOSYS. Some functions are actually named
5392 something starting with __ and the normal name is an alias. */
5393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405 (eval $ac_link) 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -s conftest$ac_exeext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 eval "$as_ac_var=yes"
5417 echo "$as_me: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 eval "$as_ac_var=no"
5421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5425 if test `eval echo '${'$as_ac_var'}'` = yes; then
5426 cat >>confdefs.h <<_ACEOF
5427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5433 # we only need one of the following
5443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5444 echo "$as_me:$LINENO: checking for $ac_func" >&5
5445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_var+set}\" = set"; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 #include "confdefs.h"
5452 /* System header to define __stub macros and hopefully few prototypes,
5453 which can conflict with char $ac_func (); below. */
5455 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5464 #ifdef F77_DUMMY_MAIN
5468 int F77_DUMMY_MAIN() { return 1; }
5473 /* The GNU C library defines this for functions which it implements
5474 to always fail with ENOSYS. Some functions are actually named
5475 something starting with __ and the normal name is an alias. */
5476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5486 rm -f conftest.$ac_objext conftest$ac_exeext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest$ac_exeext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 eval "$as_ac_var=yes"
5500 echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 eval "$as_ac_var=no"
5504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5508 if test `eval echo '${'$as_ac_var'}'` = yes; then
5509 cat >>confdefs.h <<_ACEOF
5510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5518 cat >>confdefs.h <<\_ACEOF
5519 #define HAVE_STRCHR 1
5523 cat >>confdefs.h <<\_ACEOF
5524 #define HAVE_MEMCHR 1
5529 cat >>confdefs.h <<\_ACEOF
5530 #define REGEX_MALLOC 1
5534 cat >>confdefs.h <<\_ACEOF
5535 #define _REGEX_RE_COMP 1
5540 for ac_header in unistd.h vfork.h
5542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5552 # Is the header compilable?
5553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5555 cat >conftest.$ac_ext <<_ACEOF
5556 #line $LINENO "configure"
5557 #include "confdefs.h"
5558 $ac_includes_default
5559 #include <$ac_header>
5561 rm -f conftest.$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } &&
5567 { ac_try='test -s conftest.$ac_objext'
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; }; then
5573 ac_header_compiler=yes
5575 echo "$as_me: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5577 ac_header_compiler=no
5579 rm -f conftest.$ac_objext conftest.$ac_ext
5580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5581 echo "${ECHO_T}$ac_header_compiler" >&6
5583 # Is the header present?
5584 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5588 #include "confdefs.h"
5589 #include <$ac_header>
5591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5594 egrep -v '^ *\+' conftest.er1 >conftest.err
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } >/dev/null; then
5599 if test -s conftest.err; then
5600 ac_cpp_err=$ac_c_preproc_warn_flag
5607 if test -z "$ac_cpp_err"; then
5608 ac_header_preproc=yes
5610 echo "$as_me: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5612 ac_header_preproc=no
5614 rm -f conftest.err conftest.$ac_ext
5615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5616 echo "${ECHO_T}$ac_header_preproc" >&6
5618 # So? What about this header?
5619 case $ac_header_compiler:$ac_header_preproc in
5621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5633 echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 eval "$as_ac_Header=$ac_header_preproc"
5640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5645 cat >>confdefs.h <<_ACEOF
5646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5655 for ac_func in fork vfork
5657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5658 echo "$as_me:$LINENO: checking for $ac_func" >&5
5659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5660 if eval "test \"\${$as_ac_var+set}\" = set"; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 cat >conftest.$ac_ext <<_ACEOF
5664 #line $LINENO "configure"
5665 #include "confdefs.h"
5666 /* System header to define __stub macros and hopefully few prototypes,
5667 which can conflict with char $ac_func (); below. */
5669 /* Override any gcc2 internal prototype to avoid an error. */
5673 /* We use char because int might match the return type of a gcc2
5674 builtin and then its argument prototype would still apply. */
5678 #ifdef F77_DUMMY_MAIN
5682 int F77_DUMMY_MAIN() { return 1; }
5687 /* The GNU C library defines this for functions which it implements
5688 to always fail with ENOSYS. Some functions are actually named
5689 something starting with __ and the normal name is an alias. */
5690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5700 rm -f conftest.$ac_objext conftest$ac_exeext
5701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702 (eval $ac_link) 2>&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try='test -s conftest$ac_exeext'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5712 eval "$as_ac_var=yes"
5714 echo "$as_me: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5716 eval "$as_ac_var=no"
5718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5722 if test `eval echo '${'$as_ac_var'}'` = yes; then
5723 cat >>confdefs.h <<_ACEOF
5724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5730 ac_cv_func_fork_works=$ac_cv_func_fork
5731 if test "x$ac_cv_func_fork" = xyes; then
5732 echo "$as_me:$LINENO: checking for working fork" >&5
5733 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5734 if test "${ac_cv_func_fork_works+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 if test "$cross_compiling" = yes; then
5738 ac_cv_func_fork_works=cross
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* By Ruediger Kuhlmann. */
5742 #include <sys/types.h>
5744 # include <unistd.h>
5746 /* Some systems only have a dummy stub for fork() */
5754 rm -f conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 ac_cv_func_fork_works=yes
5767 echo "$as_me: program exited with status $ac_status" >&5
5768 echo "$as_me: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5771 ac_cv_func_fork_works=no
5773 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5776 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5777 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5780 if test "x$ac_cv_func_fork_works" = xcross; then
5782 *-*-amigaos* | *-*-msdosdjgpp*)
5783 # Override, as these systems have only a dummy fork() stub
5784 ac_cv_func_fork_works=no
5787 ac_cv_func_fork_works=yes
5790 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5791 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5793 ac_cv_func_vfork_works=$ac_cv_func_vfork
5794 if test "x$ac_cv_func_vfork" = xyes; then
5795 echo "$as_me:$LINENO: checking for working vfork" >&5
5796 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5797 if test "${ac_cv_func_vfork_works+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 if test "$cross_compiling" = yes; then
5801 ac_cv_func_vfork_works=cross
5803 cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 #include "confdefs.h"
5806 /* Thanks to Paul Eggert for this test. */
5808 #include <sys/types.h>
5809 #include <sys/stat.h>
5811 # include <unistd.h>
5816 /* On some sparc systems, changes by the child to local and incoming
5817 argument registers are propagated back to the parent. The compiler
5818 is told about this with #include <vfork.h>, but some compilers
5819 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5820 static variable whose address is put into a register that is
5821 clobbered by the vfork. */
5824 sparc_address_test (int arg)
5826 sparc_address_test (arg) int arg;
5847 pid_t parent = getpid ();
5850 sparc_address_test ();
5855 /* Here is another test for sparc vfork register problems. This
5856 test uses lots of local variables, at least as many local
5857 variables as main has allocated so far including compiler
5858 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5859 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5860 reuse the register of parent for one of the local variables,
5861 since it will think that parent can't possibly be used any more
5862 in this routine. Assigning to the local variable will thus
5863 munge parent in the parent process. */
5865 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5866 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5867 /* Convince the compiler that p..p7 are live; otherwise, it might
5868 use the same hardware register for all 8 local variables. */
5869 if (p != p1 || p != p2 || p != p3 || p != p4
5870 || p != p5 || p != p6 || p != p7)
5873 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5874 from child file descriptors. If the child closes a descriptor
5875 before it execs or exits, this munges the parent's descriptor
5876 as well. Test for this by closing stdout in the child. */
5877 _exit(close(fileno(stdout)) != 0);
5882 while (wait(&status) != child)
5885 /* Was there some problem with vforking? */
5888 /* Did the child fail? (This shouldn't happen.) */
5891 /* Did the vfork/compiler bug occur? */
5892 || parent != getpid()
5894 /* Did the file descriptor bug occur? */
5895 || fstat(fileno(stdout), &st) != 0
5900 rm -f conftest$ac_exeext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5902 (eval $ac_link) 2>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 ac_cv_func_vfork_works=yes
5913 echo "$as_me: program exited with status $ac_status" >&5
5914 echo "$as_me: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5917 ac_cv_func_vfork_works=no
5919 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5922 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5923 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5926 if test "x$ac_cv_func_fork_works" = xcross; then
5927 ac_cv_func_vfork_works=ac_cv_func_vfork
5928 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5929 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5932 if test "x$ac_cv_func_vfork_works" = xyes; then
5934 cat >>confdefs.h <<\_ACEOF
5935 #define HAVE_WORKING_VFORK 1
5940 cat >>confdefs.h <<\_ACEOF
5945 if test "x$ac_cv_func_fork_works" = xyes; then
5947 cat >>confdefs.h <<\_ACEOF
5948 #define HAVE_WORKING_FORK 1
5953 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5954 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5955 if test "${ac_cv_func_closedir_void+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 if test "$cross_compiling" = yes; then
5959 ac_cv_func_closedir_void=yes
5961 cat >conftest.$ac_ext <<_ACEOF
5962 #line $LINENO "configure"
5963 #include "confdefs.h"
5964 $ac_includes_default
5965 #include <$ac_header_dirent>
5970 #ifdef F77_DUMMY_MAIN
5974 int F77_DUMMY_MAIN() { return 1; }
5979 exit (closedir (opendir (".")) != 0);
5984 rm -f conftest$ac_exeext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5986 (eval $ac_link) 2>&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_func_closedir_void=no
5997 echo "$as_me: program exited with status $ac_status" >&5
5998 echo "$as_me: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6001 ac_cv_func_closedir_void=yes
6003 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6007 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
6008 if test $ac_cv_func_closedir_void = yes; then
6010 cat >>confdefs.h <<\_ACEOF
6011 #define CLOSEDIR_VOID 1
6017 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
6018 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
6019 if test "${ac_cv_search_getspnam+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 ac_func_search_save_LIBS=$LIBS
6023 ac_cv_search_getspnam=no
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6028 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6035 #ifdef F77_DUMMY_MAIN
6039 int F77_DUMMY_MAIN() { return 1; }
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051 (eval $ac_link) 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -s conftest$ac_exeext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 ac_cv_search_getspnam="none required"
6063 echo "$as_me: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6067 if test "$ac_cv_search_getspnam" = no; then
6068 for ac_lib in sec gen; do
6069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6070 cat >conftest.$ac_ext <<_ACEOF
6071 #line $LINENO "configure"
6072 #include "confdefs.h"
6074 /* Override any gcc2 internal prototype to avoid an error. */
6078 /* We use char because int might match the return type of a gcc2
6079 builtin and then its argument prototype would still apply. */
6081 #ifdef F77_DUMMY_MAIN
6085 int F77_DUMMY_MAIN() { return 1; }
6095 rm -f conftest.$ac_objext conftest$ac_exeext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6097 (eval $ac_link) 2>&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -s conftest$ac_exeext'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6107 ac_cv_search_getspnam="-l$ac_lib"
6110 echo "$as_me: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6116 LIBS=$ac_func_search_save_LIBS
6118 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
6119 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
6120 if test "$ac_cv_search_getspnam" != no; then
6121 test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
6123 cat >>confdefs.h <<\_ACEOF
6124 #define HAVE_GETSPNAM 1
6130 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
6131 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
6132 if test "${ac_cv_func_utime_null+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 rm -f conftest.data; >conftest.data
6136 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
6137 if test "$cross_compiling" = yes; then
6138 ac_cv_func_utime_null=no
6140 cat >conftest.$ac_ext <<_ACEOF
6141 #line $LINENO "configure"
6142 #include "confdefs.h"
6143 $ac_includes_default
6144 #ifdef F77_DUMMY_MAIN
6148 int F77_DUMMY_MAIN() { return 1; }
6154 exit (!(stat ("conftest.data", &s) == 0
6155 && utime ("conftest.data", (long *)0) == 0
6156 && stat ("conftest.data", &t) == 0
6157 && t.st_mtime >= s.st_mtime
6158 && t.st_mtime - s.st_mtime < 120));
6163 rm -f conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_func_utime_null=yes
6176 echo "$as_me: program exited with status $ac_status" >&5
6177 echo "$as_me: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6180 ac_cv_func_utime_null=no
6182 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6184 rm -f core core.* *.core
6186 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
6187 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
6188 if test $ac_cv_func_utime_null = yes; then
6190 cat >>confdefs.h <<\_ACEOF
6191 #define HAVE_UTIME_NULL 1
6197 echo "$as_me:$LINENO: checking for long file names" >&5
6198 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6199 if test "${ac_cv_sys_long_file_names+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 ac_cv_sys_long_file_names=yes
6203 # Test for long file names in all the places we know might matter:
6204 # . the current directory, where building will happen
6205 # $prefix/lib where we will be installing things
6206 # $exec_prefix/lib likewise
6207 # eval it to expand exec_prefix.
6208 # $TMPDIR if set, where it might want to write temporary files
6209 # if $TMPDIR is not set:
6210 # /tmp where it might want to write temporary files
6213 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6216 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6218 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6219 test -d $ac_dir || continue
6220 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6221 ac_xdir=$ac_dir/cf$$
6222 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6223 ac_tf1=$ac_xdir/conftest9012345
6224 ac_tf2=$ac_xdir/conftest9012346
6225 (echo 1 >$ac_tf1) 2>/dev/null
6226 (echo 2 >$ac_tf2) 2>/dev/null
6227 ac_val=`cat $ac_tf1 2>/dev/null`
6228 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6229 ac_cv_sys_long_file_names=no
6230 rm -rf $ac_xdir 2>/dev/null
6233 rm -rf $ac_xdir 2>/dev/null
6236 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6237 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6238 if test $ac_cv_sys_long_file_names = yes; then
6240 cat >>confdefs.h <<\_ACEOF
6241 #define HAVE_LONG_FILE_NAMES 1
6247 echo "$as_me:$LINENO: checking for working GNU-style fnmatch" >&5
6248 echo $ECHO_N "checking for working GNU-style fnmatch... $ECHO_C" >&6
6249 if test "${ac_cv_func_fnmatch_works+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 # Some versions of Solaris, SCO, and the GNU C Library
6253 # have a broken or incompatible fnmatch.
6254 # So we run a test program. If we are cross-compiling, take no chance.
6255 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
6256 if test "$cross_compiling" = yes; then
6257 ac_cv_func_fnmatch_works=no
6259 cat >conftest.$ac_ext <<_ACEOF
6260 #line $LINENO "configure"
6261 #include "confdefs.h"
6262 #include <fnmatch.h>
6263 #ifdef F77_DUMMY_MAIN
6267 int F77_DUMMY_MAIN() { return 1; }
6272 exit (fnmatch ("a*", "abc", 0) != 0
6273 || fnmatch ("d*/*1", "d/s/1", FNM_FILE_NAME) != FNM_NOMATCH
6274 || fnmatch ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
6275 || fnmatch ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
6276 || fnmatch ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0);
6281 rm -f conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_cv_func_fnmatch_works=yes
6294 echo "$as_me: program exited with status $ac_status" >&5
6295 echo "$as_me: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6298 ac_cv_func_fnmatch_works=no
6300 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6303 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
6304 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
6305 if test $ac_cv_func_fnmatch_works = yes; then
6307 cat >>confdefs.h <<\_ACEOF
6308 #define HAVE_FNMATCH 1
6313 if test "$ac_cv_func_fnmatch_works" = no; then
6314 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
6315 ac_config_links="$ac_config_links lib/fnmatch.h:lib/fnmatch.h.in"
6322 for ac_header in stdlib.h unistd.h
6324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6326 echo "$as_me:$LINENO: checking for $ac_header" >&5
6327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6334 # Is the header compilable?
6335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6337 cat >conftest.$ac_ext <<_ACEOF
6338 #line $LINENO "configure"
6339 #include "confdefs.h"
6340 $ac_includes_default
6341 #include <$ac_header>
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_header_compiler=yes
6357 echo "$as_me: failed program was:" >&5
6358 cat conftest.$ac_ext >&5
6359 ac_header_compiler=no
6361 rm -f conftest.$ac_objext conftest.$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6
6365 # Is the header present?
6366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6368 cat >conftest.$ac_ext <<_ACEOF
6369 #line $LINENO "configure"
6370 #include "confdefs.h"
6371 #include <$ac_header>
6373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6376 egrep -v '^ *\+' conftest.er1 >conftest.err
6378 cat conftest.err >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } >/dev/null; then
6381 if test -s conftest.err; then
6382 ac_cpp_err=$ac_c_preproc_warn_flag
6389 if test -z "$ac_cpp_err"; then
6390 ac_header_preproc=yes
6392 echo "$as_me: failed program was:" >&5
6393 cat conftest.$ac_ext >&5
6394 ac_header_preproc=no
6396 rm -f conftest.err conftest.$ac_ext
6397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6398 echo "${ECHO_T}$ac_header_preproc" >&6
6400 # So? What about this header?
6401 case $ac_header_compiler:$ac_header_preproc in
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 eval "$as_ac_Header=$ac_header_preproc"
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6427 cat >>confdefs.h <<_ACEOF
6428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436 for ac_func in getpagesize
6438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6439 echo "$as_me:$LINENO: checking for $ac_func" >&5
6440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6441 if eval "test \"\${$as_ac_var+set}\" = set"; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 cat >conftest.$ac_ext <<_ACEOF
6445 #line $LINENO "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func (); below. */
6450 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6459 #ifdef F77_DUMMY_MAIN
6463 int F77_DUMMY_MAIN() { return 1; }
6468 /* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6481 rm -f conftest.$ac_objext conftest$ac_exeext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483 (eval $ac_link) 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -s conftest$ac_exeext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 eval "$as_ac_var=yes"
6495 echo "$as_me: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6497 eval "$as_ac_var=no"
6499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6503 if test `eval echo '${'$as_ac_var'}'` = yes; then
6504 cat >>confdefs.h <<_ACEOF
6505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6511 echo "$as_me:$LINENO: checking for working mmap" >&5
6512 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6513 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 if test "$cross_compiling" = yes; then
6517 ac_cv_func_mmap_fixed_mapped=no
6519 cat >conftest.$ac_ext <<_ACEOF
6520 #line $LINENO "configure"
6521 #include "confdefs.h"
6522 $ac_includes_default
6523 /* malloc might have been renamed as rpl_malloc. */
6526 /* Thanks to Mike Haertel and Jim Avera for this test.
6527 Here is a matrix of mmap possibilities:
6528 mmap private not fixed
6529 mmap private fixed at somewhere currently unmapped
6530 mmap private fixed at somewhere already mapped
6531 mmap shared not fixed
6532 mmap shared fixed at somewhere currently unmapped
6533 mmap shared fixed at somewhere already mapped
6534 For private mappings, we should verify that changes cannot be read()
6535 back from the file, nor mmap's back from the file at a different
6536 address. (There have been systems where private was not correctly
6537 implemented like the infamous i386 svr4.0, and systems where the
6538 VM page cache was not coherent with the file system buffer cache
6539 like early versions of FreeBSD and possibly contemporary NetBSD.)
6540 For shared mappings, we should conversely verify that changes get
6541 propagated back to all the places they're supposed to be.
6543 Grep wants private fixed already mapped.
6544 The main things grep needs to know about mmap are:
6545 * does it exist and is it safe to write into the mmap'd area
6546 * how to use it (BSD variants) */
6549 #include <sys/mman.h>
6551 #if !STDC_HEADERS && !HAVE_STDLIB_H
6555 /* This mess was copied from the GNU getpagesize.h. */
6556 #if !HAVE_GETPAGESIZE
6557 /* Assume that all systems that can run configure have sys/param.h. */
6558 # if !HAVE_SYS_PARAM_H
6559 # define HAVE_SYS_PARAM_H 1
6562 # ifdef _SC_PAGESIZE
6563 # define getpagesize() sysconf(_SC_PAGESIZE)
6564 # else /* no _SC_PAGESIZE */
6565 # if HAVE_SYS_PARAM_H
6566 # include <sys/param.h>
6567 # ifdef EXEC_PAGESIZE
6568 # define getpagesize() EXEC_PAGESIZE
6569 # else /* no EXEC_PAGESIZE */
6571 # define getpagesize() NBPG * CLSIZE
6574 # endif /* no CLSIZE */
6575 # else /* no NBPG */
6577 # define getpagesize() NBPC
6578 # else /* no NBPC */
6580 # define getpagesize() PAGESIZE
6581 # endif /* PAGESIZE */
6582 # endif /* no NBPC */
6583 # endif /* no NBPG */
6584 # endif /* no EXEC_PAGESIZE */
6585 # else /* no HAVE_SYS_PARAM_H */
6586 # define getpagesize() 8192 /* punt totally */
6587 # endif /* no HAVE_SYS_PARAM_H */
6588 # endif /* no _SC_PAGESIZE */
6590 #endif /* no HAVE_GETPAGESIZE */
6595 char *data, *data2, *data3;
6599 pagesize = getpagesize ();
6601 /* First, make a file with some known garbage in it. */
6602 data = (char *) malloc (pagesize);
6605 for (i = 0; i < pagesize; ++i)
6606 *(data + i) = rand ();
6608 fd = creat ("conftest.mmap", 0600);
6611 if (write (fd, data, pagesize) != pagesize)
6615 /* Next, try to mmap the file at a fixed address which already has
6616 something else allocated at it. If we can, also make sure that
6617 we see the same garbage. */
6618 fd = open ("conftest.mmap", O_RDWR);
6621 data2 = (char *) malloc (2 * pagesize);
6624 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6625 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6626 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6628 for (i = 0; i < pagesize; ++i)
6629 if (*(data + i) != *(data2 + i))
6632 /* Finally, make sure that changes to the mapped area do not
6633 percolate back to the file as seen by read(). (This is a bug on
6634 some variants of i386 svr4.0.) */
6635 for (i = 0; i < pagesize; ++i)
6636 *(data2 + i) = *(data2 + i) + 1;
6637 data3 = (char *) malloc (pagesize);
6640 if (read (fd, data3, pagesize) != pagesize)
6642 for (i = 0; i < pagesize; ++i)
6643 if (*(data + i) != *(data3 + i))
6649 rm -f conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_cv_func_mmap_fixed_mapped=yes
6662 echo "$as_me: program exited with status $ac_status" >&5
6663 echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 ac_cv_func_mmap_fixed_mapped=no
6668 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6671 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6672 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6673 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6675 cat >>confdefs.h <<\_ACEOF
6683 # Try to find connect and gethostbyname.
6685 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
6686 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6687 if test "${ac_cv_lib_nsl_main+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 ac_check_lib_save_LIBS=$LIBS
6692 cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6694 #include "confdefs.h"
6697 #ifdef F77_DUMMY_MAIN
6701 int F77_DUMMY_MAIN() { return 1; }
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713 (eval $ac_link) 2>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 ac_cv_lib_nsl_main=yes
6725 echo "$as_me: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6727 ac_cv_lib_nsl_main=no
6729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6730 LIBS=$ac_check_lib_save_LIBS
6732 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
6733 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6734 if test $ac_cv_lib_nsl_main = yes; then
6735 cat >>confdefs.h <<_ACEOF
6736 #define HAVE_LIBNSL 1
6743 echo "$as_me:$LINENO: checking for library containing connect" >&5
6744 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
6745 if test "${ac_cv_search_connect+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 ac_func_search_save_LIBS=$LIBS
6749 ac_cv_search_connect=no
6750 cat >conftest.$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6752 #include "confdefs.h"
6754 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6761 #ifdef F77_DUMMY_MAIN
6765 int F77_DUMMY_MAIN() { return 1; }
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_search_connect="none required"
6789 echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6793 if test "$ac_cv_search_connect" = no; then
6794 for ac_lib in xnet socket inet; do
6795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6796 cat >conftest.$ac_ext <<_ACEOF
6797 #line $LINENO "configure"
6798 #include "confdefs.h"
6800 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6807 #ifdef F77_DUMMY_MAIN
6811 int F77_DUMMY_MAIN() { return 1; }
6821 rm -f conftest.$ac_objext conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823 (eval $ac_link) 2>&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -s conftest$ac_exeext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_search_connect="-l$ac_lib"
6836 echo "$as_me: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6842 LIBS=$ac_func_search_save_LIBS
6844 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
6845 echo "${ECHO_T}$ac_cv_search_connect" >&6
6846 if test "$ac_cv_search_connect" != no; then
6847 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_CONNECT 1
6855 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6856 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
6857 if test "${ac_cv_search_gethostbyname+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_func_search_save_LIBS=$LIBS
6861 ac_cv_search_gethostbyname=no
6862 cat >conftest.$ac_ext <<_ACEOF
6863 #line $LINENO "configure"
6864 #include "confdefs.h"
6866 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char gethostbyname ();
6873 #ifdef F77_DUMMY_MAIN
6877 int F77_DUMMY_MAIN() { return 1; }
6887 rm -f conftest.$ac_objext conftest$ac_exeext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -s conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_search_gethostbyname="none required"
6901 echo "$as_me: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6905 if test "$ac_cv_search_gethostbyname" = no; then
6906 for ac_lib in netinet; do
6907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6908 cat >conftest.$ac_ext <<_ACEOF
6909 #line $LINENO "configure"
6910 #include "confdefs.h"
6912 /* Override any gcc2 internal prototype to avoid an error. */
6916 /* We use char because int might match the return type of a gcc2
6917 builtin and then its argument prototype would still apply. */
6918 char gethostbyname ();
6919 #ifdef F77_DUMMY_MAIN
6923 int F77_DUMMY_MAIN() { return 1; }
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935 (eval $ac_link) 2>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -s conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_search_gethostbyname="-l$ac_lib"
6948 echo "$as_me: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6954 LIBS=$ac_func_search_save_LIBS
6956 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6957 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
6958 if test "$ac_cv_search_gethostbyname" != no; then
6959 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6969 # Check whether --with-krb4 or --without-krb4 was given.
6970 if test "${with_krb4+set}" = set; then
6971 withval="$with_krb4"
6973 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
6974 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
6975 echo "$as_me:$LINENO: result: " >&5
6976 echo "${ECHO_T}" >&6
6980 echo "$as_me:$LINENO: checking for krb.h" >&5
6981 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
6982 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
6984 CFLAGS="$CFLAGS -I$KRB4/include"
6985 cat >conftest.$ac_ext <<_ACEOF
6986 #line $LINENO "configure"
6987 #include "confdefs.h"
6989 #ifdef F77_DUMMY_MAIN
6993 int F77_DUMMY_MAIN() { return 1; }
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 krb_h=yes krb_incdir=$KRB4/include
7017 echo "$as_me: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7020 cat >conftest.$ac_ext <<_ACEOF
7021 #line $LINENO "configure"
7022 #include "confdefs.h"
7024 #ifdef F77_DUMMY_MAIN
7028 int F77_DUMMY_MAIN() { return 1; }
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -s conftest$ac_exeext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 krb_h=yes krb_incdir=
7052 echo "$as_me: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7060 cat >conftest.$ac_ext <<_ACEOF
7061 #line $LINENO "configure"
7062 #include "confdefs.h"
7064 #ifdef F77_DUMMY_MAIN
7068 int F77_DUMMY_MAIN() { return 1; }
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080 (eval $ac_link) 2>&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -s conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 krb_h=yes krb_incdir=
7092 echo "$as_me: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7097 if test -z "$krb_h"; then
7098 cat >conftest.$ac_ext <<_ACEOF
7099 #line $LINENO "configure"
7100 #include "confdefs.h"
7102 #ifdef F77_DUMMY_MAIN
7106 int F77_DUMMY_MAIN() { return 1; }
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 krb_h=yes krb_incdir=
7130 echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
7134 CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
7135 cat >conftest.$ac_ext <<_ACEOF
7136 #line $LINENO "configure"
7137 #include "confdefs.h"
7139 #ifdef F77_DUMMY_MAIN
7143 int F77_DUMMY_MAIN() { return 1; }
7153 rm -f conftest.$ac_objext conftest$ac_exeext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7155 (eval $ac_link) 2>&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try='test -s conftest$ac_exeext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 krb_h=yes krb_incdir=$KRB4/include/kerberosIV
7167 echo "$as_me: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7176 echo "$as_me:$LINENO: result: $krb_h" >&5
7177 echo "${ECHO_T}$krb_h" >&6
7181 if test -n "$krb_h"; then
7183 if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
7184 hold_ldflags=$LDFLAGS
7185 LDFLAGS="-L${KRB4}/lib $LDFLAGS"
7186 echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
7187 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
7188 if test "${ac_cv_lib_krb_printf+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 ac_check_lib_save_LIBS=$LIBS
7193 cat >conftest.$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7197 /* Override any gcc2 internal prototype to avoid an error. */
7201 /* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7204 #ifdef F77_DUMMY_MAIN
7208 int F77_DUMMY_MAIN() { return 1; }
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220 (eval $ac_link) 2>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_lib_krb_printf=yes
7232 echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_lib_krb_printf=no
7236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7239 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
7240 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
7241 if test $ac_cv_lib_krb_printf = yes; then
7242 krb_lib=yes krb_libdir=${KRB4}/lib
7244 LDFLAGS=$hold_ldflags
7245 # Using open here instead of printf so we don't
7246 # get confused by the cached value for printf from above.
7247 echo "$as_me:$LINENO: checking for open in -lkrb" >&5
7248 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
7249 if test "${ac_cv_lib_krb_open+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 ac_check_lib_save_LIBS=$LIBS
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7256 #include "confdefs.h"
7258 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7265 #ifdef F77_DUMMY_MAIN
7269 int F77_DUMMY_MAIN() { return 1; }
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -s conftest$ac_exeext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_lib_krb_open=yes
7293 echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 ac_cv_lib_krb_open=no
7297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7298 LIBS=$ac_check_lib_save_LIBS
7300 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
7301 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
7302 if test $ac_cv_lib_krb_open = yes; then
7303 krb_lib=yes krb_libdir=
7308 LDFLAGS=$hold_ldflags
7310 echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
7311 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
7312 if test "${ac_cv_lib_krb_printf+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 ac_check_lib_save_LIBS=$LIBS
7317 cat >conftest.$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7319 #include "confdefs.h"
7321 /* Override any gcc2 internal prototype to avoid an error. */
7325 /* We use char because int might match the return type of a gcc2
7326 builtin and then its argument prototype would still apply. */
7328 #ifdef F77_DUMMY_MAIN
7332 int F77_DUMMY_MAIN() { return 1; }
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7344 (eval $ac_link) 2>&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -s conftest$ac_exeext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 ac_cv_lib_krb_printf=yes
7356 echo "$as_me: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7358 ac_cv_lib_krb_printf=no
7360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7361 LIBS=$ac_check_lib_save_LIBS
7363 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
7364 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
7365 if test $ac_cv_lib_krb_printf = yes; then
7366 krb_lib=yes krb_libdir=
7370 if test -n "$krb_lib"; then
7372 cat >>confdefs.h <<\_ACEOF
7373 #define HAVE_KERBEROS 1
7376 test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
7377 LIBS="${LIBS} -lkrb"
7378 # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
7379 # -ldes in the command line. Don't do it permanently so that we honor
7380 # the user's setting for LDFLAGS
7381 hold_ldflags=$LDFLAGS
7382 test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
7383 echo "$as_me:$LINENO: checking for printf in -ldes" >&5
7384 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
7385 if test "${ac_cv_lib_des_printf+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 ac_check_lib_save_LIBS=$LIBS
7390 cat >conftest.$ac_ext <<_ACEOF
7391 #line $LINENO "configure"
7392 #include "confdefs.h"
7394 /* Override any gcc2 internal prototype to avoid an error. */
7398 /* We use char because int might match the return type of a gcc2
7399 builtin and then its argument prototype would still apply. */
7401 #ifdef F77_DUMMY_MAIN
7405 int F77_DUMMY_MAIN() { return 1; }
7415 rm -f conftest.$ac_objext conftest$ac_exeext
7416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7417 (eval $ac_link) 2>&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } &&
7421 { ac_try='test -s conftest$ac_exeext'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; }; then
7427 ac_cv_lib_des_printf=yes
7429 echo "$as_me: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7431 ac_cv_lib_des_printf=no
7433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7434 LIBS=$ac_check_lib_save_LIBS
7436 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
7437 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
7438 if test $ac_cv_lib_des_printf = yes; then
7439 LIBS="${LIBS} -ldes"
7442 LDFLAGS=$hold_ldflags
7443 if test -n "$krb_incdir"; then
7444 includeopt="${includeopt} -I$krb_incdir"
7449 for ac_func in krb_get_err_text
7451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7452 echo "$as_me:$LINENO: checking for $ac_func" >&5
7453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_var+set}\" = set"; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 cat >conftest.$ac_ext <<_ACEOF
7458 #line $LINENO "configure"
7459 #include "confdefs.h"
7460 /* System header to define __stub macros and hopefully few prototypes,
7461 which can conflict with char $ac_func (); below. */
7463 /* Override any gcc2 internal prototype to avoid an error. */
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7472 #ifdef F77_DUMMY_MAIN
7476 int F77_DUMMY_MAIN() { return 1; }
7481 /* The GNU C library defines this for functions which it implements
7482 to always fail with ENOSYS. Some functions are actually named
7483 something starting with __ and the normal name is an alias. */
7484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7494 rm -f conftest.$ac_objext conftest$ac_exeext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7496 (eval $ac_link) 2>&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
7500 { ac_try='test -s conftest$ac_exeext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 eval "$as_ac_var=yes"
7508 echo "$as_me: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7510 eval "$as_ac_var=no"
7512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7516 if test `eval echo '${'$as_ac_var'}'` = yes; then
7517 cat >>confdefs.h <<_ACEOF
7518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7528 # Use --with-gssapi[=DIR] to enable GSSAPI support.
7530 # defaults to enabled with DIR in default list below
7532 # Search for /SUNHEA/ and read the comments about this default below.
7535 # Check whether --with-gssapi or --without-gssapi was given.
7536 if test "${with_gssapi+set}" = set; then
7537 withval="$with_gssapi"
7543 # Try to locate a GSSAPI installation if no location was specified, assuming
7544 # GSSAPI was enabled (the default).
7546 if test -n "$acx_gssapi_cv_gssapi"; then
7547 # Granted, this is a slightly ugly way to print this info, but the
7548 # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
7549 # AC_CACHE_CHECK worse
7550 echo "$as_me:$LINENO: checking for GSSAPI" >&5
7551 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
7553 if test "${acx_gssapi_cv_gssapi+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 if test x$with_gssapi = xyes; then
7558 # --with but no location specified
7559 # assume a gssapi.h or gssapi/gssapi.h locates our install.
7561 # This isn't always strictly true. For instance Solaris 7's SUNHEA (header)
7562 # package installs gssapi.h whether or not the necessary libraries are
7563 # installed. I'm still not sure whether to consider this a bug. The long
7564 # way around is to not consider GSSPAI installed unless gss_import_name is
7565 # found, but that brings up a lot of other hassles, like continuing to let
7566 # gcc & ld generate the error messages when the user uses --with-gssapi=dir
7567 # as a debugging aid. The short way around is to disable GSSAPI by default,
7568 # but I think Sun users have been faced with this for awhile and I haven't
7569 # heard many complaints.
7570 acx_gssapi_save_CPPFLAGS=$CPPFLAGS
7571 for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
7572 if test x$acx_gssapi_cv_gssapi = xno; then
7575 if test x$acx_gssapi_cv_gssapi = xyes; then
7576 echo "$as_me:$LINENO: checking for GSSAPI" >&5
7577 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
7578 echo "$as_me:$LINENO: result: " >&5
7579 echo "${ECHO_T}" >&6
7581 CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
7582 echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
7583 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
7584 echo "$as_me:$LINENO: result: " >&5
7585 echo "${ECHO_T}" >&6
7587 unset ac_cv_header_gssapi_h
7588 unset ac_cv_header_gssapi_gssapi_h
7589 unset ac_cv_header_krb5_h
7593 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
7595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7597 echo "$as_me:$LINENO: checking for $ac_header" >&5
7598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7605 # Is the header compilable?
7606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7608 cat >conftest.$ac_ext <<_ACEOF
7609 #line $LINENO "configure"
7610 #include "confdefs.h"
7611 $ac_includes_default
7612 #include <$ac_header>
7614 rm -f conftest.$ac_objext
7615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7616 (eval $ac_compile) 2>&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_header_compiler=yes
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7630 ac_header_compiler=no
7632 rm -f conftest.$ac_objext conftest.$ac_ext
7633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7634 echo "${ECHO_T}$ac_header_compiler" >&6
7636 # Is the header present?
7637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7639 cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7641 #include "confdefs.h"
7642 #include <$ac_header>
7644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7647 egrep -v '^ *\+' conftest.er1 >conftest.err
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } >/dev/null; then
7652 if test -s conftest.err; then
7653 ac_cpp_err=$ac_c_preproc_warn_flag
7660 if test -z "$ac_cpp_err"; then
7661 ac_header_preproc=yes
7663 echo "$as_me: failed program was:" >&5
7664 cat conftest.$ac_ext >&5
7665 ac_header_preproc=no
7667 rm -f conftest.err conftest.$ac_ext
7668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7669 echo "${ECHO_T}$ac_header_preproc" >&6
7671 # So? What about this header?
7672 case $ac_header_compiler:$ac_header_preproc in
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7686 echo "$as_me:$LINENO: checking for $ac_header" >&5
7687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 eval "$as_ac_Header=$ac_header_preproc"
7693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698 cat >>confdefs.h <<_ACEOF
7699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7706 if (test "$ac_cv_header_gssapi_h" = yes ||
7707 test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
7708 test "$ac_cv_header_krb5_h" = yes; then
7712 CPPFLAGS=$acx_gssapi_save_CPPFLAGS
7714 acx_gssapi_cv_gssapi=$with_gssapi
7716 echo "$as_me:$LINENO: checking for GSSAPI" >&5
7717 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
7720 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
7721 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
7724 # Set up GSSAPI includes for later use. We don't bother to check for
7725 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
7727 if test x$acx_gssapi_cv_gssapi = yes; then
7728 # no special includes necessary
7731 # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
7732 GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
7736 # Get the rest of the information CVS needs to compile with GSSAPI support
7738 if test x$acx_gssapi_cv_gssapi != xno; then
7739 # define HAVE_GSSAPI and set up the includes
7741 cat >>confdefs.h <<\_ACEOF
7745 includeopt=$includeopt$GSSAPI_INCLUDES
7747 # locate any other headers
7748 acx_gssapi_save_CPPFLAGS=$CPPFLAGS
7749 CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
7754 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
7756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7766 # Is the header compilable?
7767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7772 $ac_includes_default
7773 #include <$ac_header>
7775 rm -f conftest.$ac_objext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777 (eval $ac_compile) 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -s conftest.$ac_objext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 ac_header_compiler=yes
7789 echo "$as_me: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 ac_header_compiler=no
7793 rm -f conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 echo "${ECHO_T}$ac_header_compiler" >&6
7797 # Is the header present?
7798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 #include "confdefs.h"
7803 #include <$ac_header>
7805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7808 egrep -v '^ *\+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } >/dev/null; then
7813 if test -s conftest.err; then
7814 ac_cpp_err=$ac_c_preproc_warn_flag
7821 if test -z "$ac_cpp_err"; then
7822 ac_header_preproc=yes
7824 echo "$as_me: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7826 ac_header_preproc=no
7828 rm -f conftest.err conftest.$ac_ext
7829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830 echo "${ECHO_T}$ac_header_preproc" >&6
7832 # So? What about this header?
7833 case $ac_header_compiler:$ac_header_preproc in
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7847 echo "$as_me:$LINENO: checking for $ac_header" >&5
7848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 eval "$as_ac_Header=$ac_header_preproc"
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7859 cat >>confdefs.h <<_ACEOF
7860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7867 # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
7868 echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7869 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
7870 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 acx_gssapi_cv_gss_c_nt_hostbased_service=no
7875 if test "$ac_cv_header_gssapi_h" = "yes"; then
7876 cat >conftest.$ac_ext <<_ACEOF
7877 #line $LINENO "configure"
7878 #include "confdefs.h"
7882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7883 egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7884 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
7887 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7889 #include "confdefs.h"
7893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7894 egrep "gss_nt_service_name" >/dev/null 2>&1; then
7895 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
7904 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
7905 test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
7906 cat >conftest.$ac_ext <<_ACEOF
7907 #line $LINENO "configure"
7908 #include "confdefs.h"
7909 #include <gssapi/gssapi.h>
7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913 egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7914 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
7917 cat >conftest.$ac_ext <<_ACEOF
7918 #line $LINENO "configure"
7919 #include "confdefs.h"
7920 #include <gssapi/gssapi.h>
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924 egrep "gss_nt_service_name" >/dev/null 2>&1; then
7925 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
7934 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
7935 test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
7936 cat >conftest.$ac_ext <<_ACEOF
7937 #line $LINENO "configure"
7938 #include "confdefs.h"
7939 #include <gssapi/gssapi_generic.h>
7942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7943 egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7944 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
7947 cat >conftest.$ac_ext <<_ACEOF
7948 #line $LINENO "configure"
7949 #include "confdefs.h"
7950 #include <gssapi/gssapi_generic.h>
7953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7954 egrep "gss_nt_service_name" >/dev/null 2>&1; then
7955 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
7966 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
7967 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
7968 if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
7969 test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
7970 # don't define for yes since that means it already means something and
7971 # don't define for no since we'd rather the compiler catch the error
7972 # It's debatable whether we'd prefer that the compiler catch the error
7973 # - it seems our estranged developer is more likely to be familiar with
7974 # the intricacies of the compiler than with those of autoconf, but by
7975 # the same token, maybe we'd rather alert them to the fact that most
7976 # of the support they need to fix the problem is installed if they can
7977 # simply locate the appropriate symbol.
7979 cat >>confdefs.h <<_ACEOF
7980 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
7985 CPPFLAGS=$acx_gssapi_save_CPPFLAGS
7987 # Expect the libs to be installed parallel to the headers
7989 # We could try once with and once without, but I'm not sure it's worth the
7991 if test x$acx_gssapi_cv_gssapi != xyes; then
7992 if test -z "$LIBS"; then
7993 LIBS="-L$acx_gssapi_cv_gssapi/lib"
7995 LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
8000 # Some of the order below is particular due to library dependencies
8004 # des Heimdal K 0.3d, but Heimdal seems to be set up such
8005 # that it could have been installed from elsewhere.
8007 echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
8008 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
8009 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 ac_func_search_save_LIBS=$LIBS
8013 ac_cv_search_des_set_odd_parity=no
8014 cat >conftest.$ac_ext <<_ACEOF
8015 #line $LINENO "configure"
8016 #include "confdefs.h"
8018 /* Override any gcc2 internal prototype to avoid an error. */
8022 /* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8024 char des_set_odd_parity ();
8025 #ifdef F77_DUMMY_MAIN
8029 int F77_DUMMY_MAIN() { return 1; }
8034 des_set_odd_parity ();
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_cv_search_des_set_odd_parity="none required"
8053 echo "$as_me: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8057 if test "$ac_cv_search_des_set_odd_parity" = no; then
8058 for ac_lib in des; do
8059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 #include "confdefs.h"
8064 /* Override any gcc2 internal prototype to avoid an error. */
8068 /* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8070 char des_set_odd_parity ();
8071 #ifdef F77_DUMMY_MAIN
8075 int F77_DUMMY_MAIN() { return 1; }
8080 des_set_odd_parity ();
8085 rm -f conftest.$ac_objext conftest$ac_exeext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087 (eval $ac_link) 2>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -s conftest$ac_exeext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_search_des_set_odd_parity="-l$ac_lib"
8100 echo "$as_me: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8106 LIBS=$ac_func_search_save_LIBS
8108 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
8109 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
8110 if test "$ac_cv_search_des_set_odd_parity" != no; then
8111 test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
8117 # com_err Heimdal K 0.3d
8119 # com_err MIT K5 v1.2.2-beta1
8121 echo "$as_me:$LINENO: checking for library containing com_err" >&5
8122 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
8123 if test "${ac_cv_search_com_err+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 ac_func_search_save_LIBS=$LIBS
8127 ac_cv_search_com_err=no
8128 cat >conftest.$ac_ext <<_ACEOF
8129 #line $LINENO "configure"
8130 #include "confdefs.h"
8132 /* Override any gcc2 internal prototype to avoid an error. */
8136 /* We use char because int might match the return type of a gcc2
8137 builtin and then its argument prototype would still apply. */
8139 #ifdef F77_DUMMY_MAIN
8143 int F77_DUMMY_MAIN() { return 1; }
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } &&
8159 { ac_try='test -s conftest$ac_exeext'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 ac_cv_search_com_err="none required"
8167 echo "$as_me: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8171 if test "$ac_cv_search_com_err" = no; then
8172 for ac_lib in com_err; do
8173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8174 cat >conftest.$ac_ext <<_ACEOF
8175 #line $LINENO "configure"
8176 #include "confdefs.h"
8178 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8185 #ifdef F77_DUMMY_MAIN
8189 int F77_DUMMY_MAIN() { return 1; }
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201 (eval $ac_link) 2>&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_search_com_err="-l$ac_lib"
8214 echo "$as_me: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8220 LIBS=$ac_func_search_save_LIBS
8222 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8223 echo "${ECHO_T}$ac_cv_search_com_err" >&6
8224 if test "$ac_cv_search_com_err" != no; then
8225 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
8231 # asn1 Heimdal K 0.3d -lcom_err
8233 echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
8234 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
8235 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 ac_func_search_save_LIBS=$LIBS
8239 ac_cv_search_initialize_asn1_error_table_r=no
8240 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8244 /* Override any gcc2 internal prototype to avoid an error. */
8248 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */
8250 char initialize_asn1_error_table_r ();
8251 #ifdef F77_DUMMY_MAIN
8255 int F77_DUMMY_MAIN() { return 1; }
8260 initialize_asn1_error_table_r ();
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267 (eval $ac_link) 2>&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -s conftest$ac_exeext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 ac_cv_search_initialize_asn1_error_table_r="none required"
8279 echo "$as_me: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8283 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
8284 for ac_lib in asn1; do
8285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 #include "confdefs.h"
8290 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296 char initialize_asn1_error_table_r ();
8297 #ifdef F77_DUMMY_MAIN
8301 int F77_DUMMY_MAIN() { return 1; }
8306 initialize_asn1_error_table_r ();
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8313 (eval $ac_link) 2>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
8326 echo "$as_me: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_func_search_save_LIBS
8334 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
8335 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
8336 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
8337 test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
8343 # resolv required, but not installed by Heimdal K 0.3d
8345 # resolv MIT K5 1.2.2-beta1
8348 echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
8349 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
8350 if test "${ac_cv_search___dn_expand+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 ac_func_search_save_LIBS=$LIBS
8354 ac_cv_search___dn_expand=no
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 #include "confdefs.h"
8359 /* Override any gcc2 internal prototype to avoid an error. */
8363 /* We use char because int might match the return type of a gcc2
8364 builtin and then its argument prototype would still apply. */
8365 char __dn_expand ();
8366 #ifdef F77_DUMMY_MAIN
8370 int F77_DUMMY_MAIN() { return 1; }
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8382 (eval $ac_link) 2>&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -s conftest$ac_exeext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_search___dn_expand="none required"
8394 echo "$as_me: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8398 if test "$ac_cv_search___dn_expand" = no; then
8399 for ac_lib in resolv; do
8400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 #include "confdefs.h"
8405 /* Override any gcc2 internal prototype to avoid an error. */
8409 /* We use char because int might match the return type of a gcc2
8410 builtin and then its argument prototype would still apply. */
8411 char __dn_expand ();
8412 #ifdef F77_DUMMY_MAIN
8416 int F77_DUMMY_MAIN() { return 1; }
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_search___dn_expand="-l$ac_lib"
8441 echo "$as_me: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8447 LIBS=$ac_func_search_save_LIBS
8449 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
8450 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
8451 if test "$ac_cv_search___dn_expand" != no; then
8452 test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
8458 # roken Heimdal K 0.3d -lresolv
8460 echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
8461 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
8462 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 ac_func_search_save_LIBS=$LIBS
8466 ac_cv_search_roken_gethostbyaddr=no
8467 cat >conftest.$ac_ext <<_ACEOF
8468 #line $LINENO "configure"
8469 #include "confdefs.h"
8471 /* Override any gcc2 internal prototype to avoid an error. */
8475 /* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
8477 char roken_gethostbyaddr ();
8478 #ifdef F77_DUMMY_MAIN
8482 int F77_DUMMY_MAIN() { return 1; }
8487 roken_gethostbyaddr ();
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_cv_search_roken_gethostbyaddr="none required"
8506 echo "$as_me: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
8511 for ac_lib in roken; do
8512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8513 cat >conftest.$ac_ext <<_ACEOF
8514 #line $LINENO "configure"
8515 #include "confdefs.h"
8517 /* Override any gcc2 internal prototype to avoid an error. */
8521 /* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8523 char roken_gethostbyaddr ();
8524 #ifdef F77_DUMMY_MAIN
8528 int F77_DUMMY_MAIN() { return 1; }
8533 roken_gethostbyaddr ();
8538 rm -f conftest.$ac_objext conftest$ac_exeext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -s conftest$ac_exeext'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
8553 echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8559 LIBS=$ac_func_search_save_LIBS
8561 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
8562 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
8563 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
8564 test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
8570 # k5crypto MIT K5 v1.2.2-beta1
8572 echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
8573 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
8574 if test "${ac_cv_search_valid_enctype+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 ac_func_search_save_LIBS=$LIBS
8578 ac_cv_search_valid_enctype=no
8579 cat >conftest.$ac_ext <<_ACEOF
8580 #line $LINENO "configure"
8581 #include "confdefs.h"
8583 /* Override any gcc2 internal prototype to avoid an error. */
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8589 char valid_enctype ();
8590 #ifdef F77_DUMMY_MAIN
8594 int F77_DUMMY_MAIN() { return 1; }
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606 (eval $ac_link) 2>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -s conftest$ac_exeext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616 ac_cv_search_valid_enctype="none required"
8618 echo "$as_me: failed program was:" >&5
8619 cat conftest.$ac_ext >&5
8621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8622 if test "$ac_cv_search_valid_enctype" = no; then
8623 for ac_lib in k5crypto; do
8624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8625 cat >conftest.$ac_ext <<_ACEOF
8626 #line $LINENO "configure"
8627 #include "confdefs.h"
8629 /* Override any gcc2 internal prototype to avoid an error. */
8633 /* We use char because int might match the return type of a gcc2
8634 builtin and then its argument prototype would still apply. */
8635 char valid_enctype ();
8636 #ifdef F77_DUMMY_MAIN
8640 int F77_DUMMY_MAIN() { return 1; }
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8652 (eval $ac_link) 2>&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -s conftest$ac_exeext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_cv_search_valid_enctype="-l$ac_lib"
8665 echo "$as_me: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8671 LIBS=$ac_func_search_save_LIBS
8673 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
8674 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
8675 if test "$ac_cv_search_valid_enctype" != no; then
8676 test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
8682 # gen ? ? ? Needed on Irix 5.3 with some
8683 # Irix 5.3 version of Kerberos. I'm not
8684 # sure which since Irix didn't
8685 # get any testing this time
8686 # around. Original comment:
8688 # This is necessary on Irix 5.3, in order to link against libkrb5 --
8689 # there, an_to_ln.o refers to things defined only in -lgen.
8691 echo "$as_me:$LINENO: checking for library containing compile" >&5
8692 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
8693 if test "${ac_cv_search_compile+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 ac_func_search_save_LIBS=$LIBS
8697 ac_cv_search_compile=no
8698 cat >conftest.$ac_ext <<_ACEOF
8699 #line $LINENO "configure"
8700 #include "confdefs.h"
8702 /* Override any gcc2 internal prototype to avoid an error. */
8706 /* We use char because int might match the return type of a gcc2
8707 builtin and then its argument prototype would still apply. */
8709 #ifdef F77_DUMMY_MAIN
8713 int F77_DUMMY_MAIN() { return 1; }
8723 rm -f conftest.$ac_objext conftest$ac_exeext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8725 (eval $ac_link) 2>&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 ac_cv_search_compile="none required"
8737 echo "$as_me: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8741 if test "$ac_cv_search_compile" = no; then
8742 for ac_lib in gen; do
8743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8744 cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8746 #include "confdefs.h"
8748 /* Override any gcc2 internal prototype to avoid an error. */
8752 /* We use char because int might match the return type of a gcc2
8753 builtin and then its argument prototype would still apply. */
8755 #ifdef F77_DUMMY_MAIN
8759 int F77_DUMMY_MAIN() { return 1; }
8769 rm -f conftest.$ac_objext conftest$ac_exeext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } &&
8775 { ac_try='test -s conftest$ac_exeext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_search_compile="-l$ac_lib"
8784 echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790 LIBS=$ac_func_search_save_LIBS
8792 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
8793 echo "${ECHO_T}$ac_cv_search_compile" >&6
8794 if test "$ac_cv_search_compile" != no; then
8795 test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
8801 # krb5 ? ? ? -lgen -l???
8804 # krb5 MIT K5 v1.1.1
8806 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err
8809 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err -lresolv
8811 # krb5 Heimdal K 0.3d -lasn1 -lroken -ldes
8813 echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
8814 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
8815 if test "${ac_cv_search_krb5_free_context+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 ac_func_search_save_LIBS=$LIBS
8819 ac_cv_search_krb5_free_context=no
8820 cat >conftest.$ac_ext <<_ACEOF
8821 #line $LINENO "configure"
8822 #include "confdefs.h"
8824 /* Override any gcc2 internal prototype to avoid an error. */
8828 /* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8830 char krb5_free_context ();
8831 #ifdef F77_DUMMY_MAIN
8835 int F77_DUMMY_MAIN() { return 1; }
8840 krb5_free_context ();
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -s conftest$ac_exeext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 ac_cv_search_krb5_free_context="none required"
8859 echo "$as_me: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8863 if test "$ac_cv_search_krb5_free_context" = no; then
8864 for ac_lib in krb5; do
8865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8866 cat >conftest.$ac_ext <<_ACEOF
8867 #line $LINENO "configure"
8868 #include "confdefs.h"
8870 /* Override any gcc2 internal prototype to avoid an error. */
8874 /* We use char because int might match the return type of a gcc2
8875 builtin and then its argument prototype would still apply. */
8876 char krb5_free_context ();
8877 #ifdef F77_DUMMY_MAIN
8881 int F77_DUMMY_MAIN() { return 1; }
8886 krb5_free_context ();
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try='test -s conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_cv_search_krb5_free_context="-l$ac_lib"
8906 echo "$as_me: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_func_search_save_LIBS
8914 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
8915 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
8916 if test "$ac_cv_search_krb5_free_context" != no; then
8917 test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
8923 # gssapi_krb5 Only lib needed with MIT K5 v1.2.1, so find it first in
8924 # order to prefer MIT Kerberos. If both MIT & Heimdal
8925 # Kerberos are installed and in the path, this will leave
8926 # some of the libraries above in LIBS unnecessarily, but
8927 # noone would ever do that, right?
8929 # gssapi_krb5 MIT K5 v1.2.2-beta1 -lkrb5
8931 # gssapi Heimdal K 0.3d -lkrb5
8933 echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
8934 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
8935 if test "${ac_cv_search_gss_import_name+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 ac_func_search_save_LIBS=$LIBS
8939 ac_cv_search_gss_import_name=no
8940 cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8942 #include "confdefs.h"
8944 /* Override any gcc2 internal prototype to avoid an error. */
8948 /* We use char because int might match the return type of a gcc2
8949 builtin and then its argument prototype would still apply. */
8950 char gss_import_name ();
8951 #ifdef F77_DUMMY_MAIN
8955 int F77_DUMMY_MAIN() { return 1; }
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_search_gss_import_name="none required"
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8983 if test "$ac_cv_search_gss_import_name" = no; then
8984 for ac_lib in gssapi_krb5 gssapi; do
8985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8986 cat >conftest.$ac_ext <<_ACEOF
8987 #line $LINENO "configure"
8988 #include "confdefs.h"
8990 /* Override any gcc2 internal prototype to avoid an error. */
8994 /* We use char because int might match the return type of a gcc2
8995 builtin and then its argument prototype would still apply. */
8996 char gss_import_name ();
8997 #ifdef F77_DUMMY_MAIN
9001 int F77_DUMMY_MAIN() { return 1; }
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013 (eval $ac_link) 2>&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 ac_cv_search_gss_import_name="-l$ac_lib"
9026 echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9032 LIBS=$ac_func_search_save_LIBS
9034 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
9035 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
9036 if test "$ac_cv_search_gss_import_name" != no; then
9037 test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
9048 # Let the confiscator request a specific editor
9050 # Check whether --with-editor or --without-editor was given.
9051 if test "${with_editor+set}" = set; then
9052 withval="$with_editor"
9055 with_editor="vi emacs pico edit"
9059 if echo $with_editor |grep ^/ >/dev/null; then
9060 # If $with_editor is an absolute path, issue a warning if the executable
9061 # doesn't exist or isn't usable, but then trust the user and use it
9064 echo "$as_me:$LINENO: checking for an editor" >&5
9065 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
9066 echo "$as_me:$LINENO: result: $EDITOR" >&5
9067 echo "${ECHO_T}$EDITOR" >&6
9068 if ! test -f $with_editor \
9069 || ! test -x $with_editor; then
9070 # warn the user that they may encounter problems
9071 { echo "$as_me:$LINENO: WARNING: $with_editor is not a path to an executable file" >&5
9072 echo "$as_me: WARNING: $with_editor is not a path to an executable file" >&2;}
9074 elif test no != "${with_editor}"; then
9075 # Search for an editor
9076 for ac_prog in $with_editor
9078 # Extract the first word of "$ac_prog", so it can be a program name with args.
9079 set dummy $ac_prog; ac_word=$2
9080 echo "$as_me:$LINENO: checking for $ac_word" >&5
9081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9082 if test "${ac_cv_prog_EDITOR+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 if test -n "$EDITOR"; then
9086 ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_EDITOR="$ac_prog"
9096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 EDITOR=$ac_cv_prog_EDITOR
9105 if test -n "$EDITOR"; then
9106 echo "$as_me:$LINENO: result: $EDITOR" >&5
9107 echo "${ECHO_T}$EDITOR" >&6
9109 echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9113 test -n "$EDITOR" && break
9117 echo "$as_me:$LINENO: checking for an editor" >&5
9118 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
9119 echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6
9123 if test -n "${EDITOR}"; then
9125 cat >>confdefs.h <<_ACEOF
9126 #define EDITOR_DFLT "$EDITOR"
9134 # Check whether --with-tmpdir or --without-tmpdir was given.
9135 if test "${with_tmpdir+set}" = set; then
9136 withval="$with_tmpdir"
9140 echo "$as_me:$LINENO: checking for temporary directory" >&5
9141 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
9142 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
9143 for with_tmpdir in "$TMPDIR" "$TMP" "$TEMP" /tmp /var/tmp no; do
9144 if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
9145 && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
9149 if test no = "$with_tmpdir"; then
9150 { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&5
9151 echo "$as_me: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&2;}
9154 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
9155 echo "${ECHO_T}$with_tmpdir" >&6
9156 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
9157 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
9158 echo "${ECHO_T}$with_tmpdir" >&6
9159 { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
9160 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
9161 { (exit 1); exit 1; }; }
9162 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
9163 || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
9164 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
9165 echo "${ECHO_T}$with_tmpdir" >&6
9166 { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
9167 exist or lacks sufficient permissions for read/write." >&5
9168 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
9169 exist or lacks sufficient permissions for read/write." >&2;}
9173 cat >>confdefs.h <<_ACEOF
9174 #define TMPDIR_DFLT "$with_tmpdir"
9182 # Check whether --with-umask or --without-umask was given.
9183 if test "${with_umask+set}" = set; then
9184 withval="$with_umask"
9188 if test -z "$with_umask" || test yes = "$with_umask"; then
9190 elif test no = "$with_umask"; then
9195 cat >>confdefs.h <<_ACEOF
9196 #define UMASK_DFLT $with_umask
9202 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
9203 if test "${with_cvs_admin_group+set}" = set; then
9204 withval="$with_cvs_admin_group"
9207 with_cvs_admin_group=cvsadmin
9210 if test yes = "$with_cvs_admin_group"; then
9211 with_cvs_admin_group=cvsadmin
9213 if test no != "$with_cvs_admin_group"; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
9222 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
9223 if test "${enable_cvs_ndbm+set}" = set; then
9224 enableval="$enable_cvs_ndbm"
9229 if test no != "$enable_cvs_ndbm"; then
9231 cat >>confdefs.h <<\_ACEOF
9244 # Check for options requesting client and server feature. If none are
9245 # given and we have connect(), we want the full client & server arrangement.
9246 # Check whether --enable-client or --disable-client was given.
9247 if test "${enable_client+set}" = set; then
9248 enableval="$enable_client"
9251 if test "$ac_cv_search_connect" != no; then
9255 if test no != "$enable_client"; then
9257 cat >>confdefs.h <<\_ACEOF
9258 #define CLIENT_SUPPORT 1
9263 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
9264 if test "${enable_password_authenticated_client+set}" = set; then
9265 enableval="$enable_password_authenticated_client"
9269 if test no != "$enable_password_authenticated_client"; then
9270 if test no != "$enable_client"; then
9272 cat >>confdefs.h <<\_ACEOF
9273 #define AUTH_CLIENT_SUPPORT 1
9277 { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-server is meaningless with
9278 the CVS client disabled (--disable-client)" >&5
9279 echo "$as_me: WARNING: --enable-password-authenticated-server is meaningless with
9280 the CVS client disabled (--disable-client)" >&2;}
9285 # Check whether --enable-server or --disable-server was given.
9286 if test "${enable_server+set}" = set; then
9287 enableval="$enable_server"
9290 if test "$ac_cv_search_connect" != no; then
9295 if test no != "$enable_server"; then
9297 cat >>confdefs.h <<\_ACEOF
9298 #define SERVER_SUPPORT 1
9302 echo "$as_me:$LINENO: checking for library containing crypt" >&5
9303 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
9304 if test "${ac_cv_search_crypt+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 ac_func_search_save_LIBS=$LIBS
9308 ac_cv_search_crypt=no
9309 cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9311 #include "confdefs.h"
9313 /* Override any gcc2 internal prototype to avoid an error. */
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9320 #ifdef F77_DUMMY_MAIN
9324 int F77_DUMMY_MAIN() { return 1; }
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336 (eval $ac_link) 2>&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } &&
9340 { ac_try='test -s conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_cv_search_crypt="none required"
9348 echo "$as_me: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9352 if test "$ac_cv_search_crypt" = no; then
9353 for ac_lib in crypt; do
9354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9355 cat >conftest.$ac_ext <<_ACEOF
9356 #line $LINENO "configure"
9357 #include "confdefs.h"
9359 /* Override any gcc2 internal prototype to avoid an error. */
9363 /* We use char because int might match the return type of a gcc2
9364 builtin and then its argument prototype would still apply. */
9366 #ifdef F77_DUMMY_MAIN
9370 int F77_DUMMY_MAIN() { return 1; }
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -s conftest$ac_exeext'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; }; then
9392 ac_cv_search_crypt="-l$ac_lib"
9395 echo "$as_me: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9401 LIBS=$ac_func_search_save_LIBS
9403 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
9404 echo "${ECHO_T}$ac_cv_search_crypt" >&6
9405 if test "$ac_cv_search_crypt" != no; then
9406 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
9408 cat >>confdefs.h <<\_ACEOF
9409 #define HAVE_CRYPT 1
9413 cat >>confdefs.h <<\_ACEOF
9414 #define AUTH_SERVER_SUPPORT 1
9419 # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
9420 if test "${enable_server_flow_control+set}" = set; then
9421 enableval="$enable_server_flow_control"
9422 if test yes = $enable_server_flow_control; then
9423 enable_server_flow_control=1M,2M
9426 enable_server_flow_control=1M,2M
9428 if test no != $enable_server_flow_control; then
9429 ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
9430 ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
9431 ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
9432 ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
9433 test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
9435 G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
9436 M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
9437 k) ccvs_lwm="$ccvs_lwm * 1024";;
9439 *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
9440 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
9441 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
9442 ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
9443 { (exit 1); exit 1; }; }
9445 ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
9446 ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
9447 test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
9449 G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
9450 M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
9451 k) ccvs_hwm="$ccvs_hwm * 1024";;
9452 b | '') ccvs_hwm="$ccvs_hwm";;
9453 *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
9454 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
9455 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
9456 ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
9457 { (exit 1); exit 1; }; }
9461 cat >>confdefs.h <<\_ACEOF
9462 #define SERVER_FLOWCONTROL 1
9466 cat >>confdefs.h <<_ACEOF
9467 #define SERVER_LO_WATER ($ccvs_lwm)
9471 cat >>confdefs.h <<_ACEOF
9472 #define SERVER_HI_WATER ($ccvs_hwm)
9475 fi # enable_server_flow_control
9479 # Check whether --enable-encryption or --disable-encryption was given.
9480 if test "${enable_encryption+set}" = set; then
9481 enableval="$enable_encryption"
9484 enable_encryption=no
9486 if test "$enable_encryption" = yes; then
9487 if test no != "$with_client" || test no != "$with_server"; then
9489 cat >>confdefs.h <<\_ACEOF
9490 #define ENCRYPTION 1
9494 { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless with neither the CVS client
9495 nor the CVS server is enabled (--disable-client and --disable-server)." >&5
9496 echo "$as_me: WARNING: --enable-encryption is meaningless with neither the CVS client
9497 nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
9504 # Check whether --enable-force-editor or --disable-force-editor was given.
9505 if test "${enable_force_editor+set}" = set; then
9506 enableval="$enable_force_editor"
9509 enable_force_editor=no
9512 if test yes = "$enable_force_editor"; then
9514 cat >>confdefs.h <<\_ACEOF
9515 #define FORCE_USE_EDITOR 1
9523 # Check whether --enable-rootcommit or --disable-rootcommit was given.
9524 if test "${enable_rootcommit+set}" = set; then
9525 enableval="$enable_rootcommit"
9528 enable_rootcommit=no
9530 if test "$enable_rootcommit" = no; then
9532 cat >>confdefs.h <<\_ACEOF
9533 #define CVS_BADROOT 1
9544 echo "$as_me:$LINENO: checking for cygwin32" >&5
9545 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
9546 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 cat >conftest.$ac_ext <<_ACEOF
9550 #line $LINENO "configure"
9551 #include "confdefs.h"
9553 #ifdef F77_DUMMY_MAIN
9557 int F77_DUMMY_MAIN() { return 1; }
9562 return __CYGWIN32__;
9567 rm -f conftest.$ac_objext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9569 (eval $ac_compile) 2>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -s conftest.$ac_objext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ccvs_cv_sys_cygwin32=yes
9581 echo "$as_me: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 ccvs_cv_sys_cygwin32=no
9585 rm -f conftest.$ac_objext conftest.$ac_ext
9587 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
9588 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
9589 if test $ccvs_cv_sys_cygwin32 = yes; then
9590 LIBOBJS="$LIBOBJS fncase.$ac_objext"
9591 LIBS="$LIBS -ladvapi32"
9594 cat >>confdefs.h <<\_ACEOF
9595 #define UTIME_EXPECTS_WRITABLE 1
9600 cat >>confdefs.h <<\_ACEOF
9601 #define USE_SETMODE_STDOUT 1
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_SETMODE 1
9611 ac_config_files="$ac_config_files contrib/check_cvs"
9613 ac_config_files="$ac_config_files contrib/clmerge"
9615 ac_config_files="$ac_config_files contrib/cln_hist"
9617 ac_config_files="$ac_config_files contrib/commit_prep"
9619 ac_config_files="$ac_config_files contrib/cvs_acls"
9621 ac_config_files="$ac_config_files contrib/log"
9623 ac_config_files="$ac_config_files contrib/log_accum"
9625 ac_config_files="$ac_config_files contrib/mfpipe"
9627 ac_config_files="$ac_config_files contrib/pvcs2rcs"
9629 ac_config_files="$ac_config_files contrib/rcslock"
9631 ac_config_files="$ac_config_files contrib/sccs2rcs"
9633 ac_config_files="$ac_config_files src/cvsbug"
9636 ac_config_files="$ac_config_files Makefile contrib/Makefile cvs.spec diff/Makefile doc/Makefile emx/Makefile lib/Makefile man/Makefile os2/Makefile src/Makefile tools/Makefile vms/Makefile windows-NT/Makefile windows-NT/SCC/Makefile zlib/Makefile"
9639 cat >confcache <<\_ACEOF
9640 # This file is a shell script that caches the results of configure
9641 # tests run on this system so they can be shared between configure
9642 # scripts and configure runs, see configure's option --config-cache.
9643 # It is not useful on other systems. If it contains results you don't
9644 # want to keep, you may remove or edit it.
9646 # config.status only pays attention to the cache file if you give it
9647 # the --recheck option to rerun configure.
9649 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9655 # The following way of writing the cache mishandles newlines in values,
9656 # but we know of no workaround that is simple, portable, and efficient.
9657 # So, don't put newlines in cache variables' values.
9658 # Ultrix sh set writes to stderr and can't be redirected directly,
9659 # and sets the high bit in the cache file unless we assign to the vars.
9662 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9664 # `set' does not quote correctly, so add quotes (double-quote
9665 # substitution turns \\\\ into \\, and sed turns \\ into \).
9668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9671 # `set' quotes correctly as required by POSIX, so do not add quotes.
9673 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9682 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9684 if cmp -s $cache_file confcache; then :; else
9685 if test -w $cache_file; then
9686 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9687 cat confcache >$cache_file
9689 echo "not updating unwritable cache $cache_file"
9694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9695 # Let make expand exec_prefix.
9696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9700 # trailing colons and then remove the whole line if VPATH becomes empty
9701 # (actually we leave an empty line to preserve line numbers).
9702 if test "x$srcdir" = x.; then
9703 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9704 s/:*\$(srcdir):*/:/;
9705 s/:*\${srcdir}:*/:/;
9707 s/^\([^=]*=[ ]*\):*/\1/;
9713 DEFS=-DHAVE_CONFIG_H
9715 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9716 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9717 Usually this means the macro was only invoked conditionally." >&5
9718 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9719 Usually this means the macro was only invoked conditionally." >&2;}
9720 { (exit 1); exit 1; }; }
9722 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
9723 { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
9724 Usually this means the macro was only invoked conditionally." >&5
9725 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
9726 Usually this means the macro was only invoked conditionally." >&2;}
9727 { (exit 1); exit 1; }; }
9730 : ${CONFIG_STATUS=./config.status}
9731 ac_clean_files_save=$ac_clean_files
9732 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9733 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9734 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9735 cat >$CONFIG_STATUS <<_ACEOF
9737 # Generated by $as_me.
9738 # Run this file to recreate the current configuration.
9739 # Compiler output produced by configure, useful for debugging
9740 # configure, is in config.log if it exists.
9743 SHELL=\${CONFIG_SHELL-$SHELL}
9746 cat >>$CONFIG_STATUS <<\_ACEOF
9748 ## --------------------- ##
9749 ## M4sh Initialization. ##
9750 ## --------------------- ##
9752 # Be Bourne compatible
9753 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9756 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9761 # Support unset when possible.
9762 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9768 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9769 { $as_unset LANG || test "${LANG+set}" != set; } ||
9770 { LANG=C; export LANG; }
9771 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9772 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9773 { LC_ALL=C; export LC_ALL; }
9774 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9775 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9776 { LC_TIME=C; export LC_TIME; }
9777 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9778 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9779 { LC_CTYPE=C; export LC_CTYPE; }
9780 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9781 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9782 { LANGUAGE=C; export LANGUAGE; }
9783 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9784 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9785 { LC_COLLATE=C; export LC_COLLATE; }
9786 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9787 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9788 { LC_NUMERIC=C; export LC_NUMERIC; }
9789 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9790 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9791 { LC_MESSAGES=C; export LC_MESSAGES; }
9794 # Name of the executable.
9795 as_me=`(basename "$0") 2>/dev/null ||
9796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9797 X"$0" : 'X\(//\)$' \| \
9798 X"$0" : 'X\(/\)$' \| \
9799 . : '\(.\)' 2>/dev/null ||
9801 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9802 /^X\/\(\/\/\)$/{ s//\1/; q; }
9803 /^X\/\(\/\).*/{ s//\1/; q; }
9806 # PATH needs CR, and LINENO needs CR and PATH.
9807 # Avoid depending upon Character Ranges.
9808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9811 as_cr_digits='0123456789'
9812 as_cr_alnum=$as_cr_Letters$as_cr_digits
9814 # The user is always right.
9815 if test "${PATH_SEPARATOR+set}" != set; then
9816 echo "#! /bin/sh" >conftest.sh
9817 echo "exit 0" >>conftest.sh
9818 chmod +x conftest.sh
9819 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9831 test "x$as_lineno_1" != "x$as_lineno_2" &&
9832 test "x$as_lineno_3" = "x$as_lineno_2" || {
9833 # Find who we are. Look in the path if we contain no path at all
9836 *[\\/]* ) as_myself=$0 ;;
9837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841 test -z "$as_dir" && as_dir=.
9842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9847 # We did not find ourselves, most probably we were run as `sh COMMAND'
9848 # in which case we are not to be found in the path.
9849 if test "x$as_myself" = x; then
9852 if test ! -f "$as_myself"; then
9853 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9855 { (exit 1); exit 1; }; }
9857 case $CONFIG_SHELL in
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9863 test -z "$as_dir" && as_dir=.
9864 for as_base in sh bash ksh sh5; do
9867 if ("$as_dir/$as_base" -c '
9870 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9871 test "x$as_lineno_1" != "x$as_lineno_2" &&
9872 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9873 CONFIG_SHELL=$as_dir/$as_base
9875 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9883 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9884 # uniformly replaced by the line number. The first 'sed' inserts a
9885 # line-number line before each line; the second 'sed' does the real
9886 # work. The second script uses 'N' to pair each line-number line
9887 # with the numbered line, and appends trailing '-' during
9888 # substitution so that $LINENO is not a special case at line end.
9889 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9890 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9891 sed '=' <$as_myself |
9896 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9899 s,^['$as_cr_digits']*\n,,
9901 chmod +x $as_me.lineno ||
9902 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9903 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9904 { (exit 1); exit 1; }; }
9906 # Don't try to exec as it changes $[0], causing all sort of problems
9907 # (the dirname of $[0] is not the place where we might find the
9908 # original and so on. Autoconf is especially sensible to this).
9910 # Exit status is that of the last command.
9915 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9916 *c*,-n*) ECHO_N= ECHO_C='
9918 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9919 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9922 if expr a : '\(a\)' >/dev/null 2>&1; then
9928 rm -f conf$$ conf$$.exe conf$$.file
9930 if ln -s conf$$.file conf$$ 2>/dev/null; then
9931 # We could just check for DJGPP; but this test a) works b) is more generic
9932 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9933 if test -f conf$$.exe; then
9934 # Don't use ln at all; we don't have any links
9939 elif ln conf$$.file conf$$ 2>/dev/null; then
9944 rm -f conf$$ conf$$.exe conf$$.file
9946 as_executable_p="test -f"
9948 # Sed expression to map a string onto a valid CPP name.
9949 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9951 # Sed expression to map a string onto a valid variable name.
9952 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9956 # We need space, tab and new line, in precisely that order.
9962 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9966 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9967 # report actual input values of CONFIG_FILES etc. instead of their
9968 # values after options handling. Logging --version etc. is OK.
9972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9973 ## Running $as_me. ##
9978 This file was extended by Concurrent Versions System (CVS) $as_me 1.11.5, which was
9979 generated by GNU Autoconf 2.53. Invocation command line was
9981 CONFIG_FILES = $CONFIG_FILES
9982 CONFIG_HEADERS = $CONFIG_HEADERS
9983 CONFIG_LINKS = $CONFIG_LINKS
9984 CONFIG_COMMANDS = $CONFIG_COMMANDS
9988 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9992 # Files that config.status was made for.
9993 if test -n "$ac_config_files"; then
9994 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9997 if test -n "$ac_config_headers"; then
9998 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10001 if test -n "$ac_config_links"; then
10002 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10005 if test -n "$ac_config_commands"; then
10006 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10009 cat >>$CONFIG_STATUS <<\_ACEOF
10012 \`$as_me' instantiates files from templates according to the
10013 current configuration.
10015 Usage: $0 [OPTIONS] [FILE]...
10017 -h, --help print this help, then exit
10018 -V, --version print version number, then exit
10019 -d, --debug don't remove temporary files
10020 --recheck update $as_me by reconfiguring in the same conditions
10021 --file=FILE[:TEMPLATE]
10022 instantiate the configuration file FILE
10023 --header=FILE[:TEMPLATE]
10024 instantiate the configuration header FILE
10026 Configuration files:
10029 Configuration headers:
10032 Configuration links:
10035 Configuration commands:
10038 Report bugs to <bug-autoconf@gnu.org>."
10041 cat >>$CONFIG_STATUS <<_ACEOF
10043 Concurrent Versions System (CVS) config.status 1.11.5
10044 configured by $0, generated by GNU Autoconf 2.53,
10045 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10047 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10048 Free Software Foundation, Inc.
10049 This config.status script is free software; the Free Software Foundation
10050 gives unlimited permission to copy, distribute and modify it."
10055 cat >>$CONFIG_STATUS <<\_ACEOF
10056 # If no file are specified by the user, then we need to provide default
10057 # value. By we need to know if files were specified by the user.
10063 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10064 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10066 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10070 *) # This is not an option, so the user has probably given explicit
10072 ac_need_defaults=false;;
10076 # Handling of the options.
10078 cat >>$CONFIG_STATUS <<_ACEOF
10079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10080 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10081 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10083 cat >>$CONFIG_STATUS <<\_ACEOF
10084 --version | --vers* | -V )
10085 echo "$ac_cs_version"; exit 0 ;;
10087 # Conflict between --help and --header
10088 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10089 Try \`$0 --help' for more information." >&5
10090 echo "$as_me: error: ambiguous option: $1
10091 Try \`$0 --help' for more information." >&2;}
10092 { (exit 1); exit 1; }; };;
10093 --help | --hel | -h )
10094 echo "$ac_cs_usage"; exit 0 ;;
10095 --debug | --d* | -d )
10097 --file | --fil | --fi | --f )
10099 CONFIG_FILES="$CONFIG_FILES $1"
10100 ac_need_defaults=false;;
10101 --header | --heade | --head | --hea )
10103 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10104 ac_need_defaults=false;;
10106 # This is an error.
10107 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10108 Try \`$0 --help' for more information." >&5
10109 echo "$as_me: error: unrecognized option: $1
10110 Try \`$0 --help' for more information." >&2;}
10111 { (exit 1); exit 1; }; } ;;
10113 *) ac_config_targets="$ac_config_targets $1" ;;
10121 cat >>$CONFIG_STATUS <<_ACEOF
10123 # INIT-COMMANDS section.
10126 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10132 cat >>$CONFIG_STATUS <<\_ACEOF
10133 for ac_config_target in $ac_config_targets
10135 case "$ac_config_target" in
10136 # Handling of arguments.
10137 "contrib/check_cvs" ) CONFIG_FILES="$CONFIG_FILES contrib/check_cvs" ;;
10138 "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
10139 "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
10140 "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
10141 "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
10142 "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
10143 "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
10144 "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
10145 "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
10146 "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
10147 "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
10148 "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
10149 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10150 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
10151 "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
10152 "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
10153 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10154 "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
10155 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10156 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10157 "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
10158 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10159 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10160 "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
10161 "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
10162 "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
10163 "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
10164 "lib/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/fnmatch.h:lib/fnmatch.h.in" ;;
10165 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10166 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10167 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10168 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10169 { (exit 1); exit 1; }; };;
10173 # If the user did not use the arguments to specify the items to instantiate,
10174 # then the envvar interface is used. Set only those that are not.
10175 # We use the long form for the default assignment because of an extremely
10176 # bizarre bug on SunOS 4.1.3.
10177 if $ac_need_defaults; then
10178 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10179 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10180 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
10181 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10184 # Create a temporary directory, and hook for its removal unless debugging.
10187 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10188 trap '{ (exit 1); exit 1; }' 1 2 13 15
10191 # Create a (secure) tmp directory for tmp files.
10194 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10195 test -n "$tmp" && test -d "$tmp"
10198 tmp=$TMPDIR/cs$$-$RANDOM
10199 (umask 077 && mkdir $tmp)
10202 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10203 { (exit 1); exit 1; }
10208 cat >>$CONFIG_STATUS <<_ACEOF
10211 # CONFIG_FILES section.
10214 # No need to generate the scripts if there are no CONFIG_FILES.
10215 # This happens for instance when ./config.status config.h
10216 if test -n "\$CONFIG_FILES"; then
10217 # Protect against being on the right side of a sed subst in config.status.
10218 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10219 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10220 s,@SHELL@,$SHELL,;t t
10221 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10222 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10223 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10224 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10225 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10226 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10227 s,@exec_prefix@,$exec_prefix,;t t
10228 s,@prefix@,$prefix,;t t
10229 s,@program_transform_name@,$program_transform_name,;t t
10230 s,@bindir@,$bindir,;t t
10231 s,@sbindir@,$sbindir,;t t
10232 s,@libexecdir@,$libexecdir,;t t
10233 s,@datadir@,$datadir,;t t
10234 s,@sysconfdir@,$sysconfdir,;t t
10235 s,@sharedstatedir@,$sharedstatedir,;t t
10236 s,@localstatedir@,$localstatedir,;t t
10237 s,@libdir@,$libdir,;t t
10238 s,@includedir@,$includedir,;t t
10239 s,@oldincludedir@,$oldincludedir,;t t
10240 s,@infodir@,$infodir,;t t
10241 s,@mandir@,$mandir,;t t
10242 s,@build_alias@,$build_alias,;t t
10243 s,@host_alias@,$host_alias,;t t
10244 s,@target_alias@,$target_alias,;t t
10245 s,@DEFS@,$DEFS,;t t
10246 s,@ECHO_C@,$ECHO_C,;t t
10247 s,@ECHO_N@,$ECHO_N,;t t
10248 s,@ECHO_T@,$ECHO_T,;t t
10249 s,@LIBS@,$LIBS,;t t
10250 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10251 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10252 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10253 s,@PACKAGE@,$PACKAGE,;t t
10254 s,@VERSION@,$VERSION,;t t
10255 s,@ACLOCAL@,$ACLOCAL,;t t
10256 s,@AUTOCONF@,$AUTOCONF,;t t
10257 s,@AUTOMAKE@,$AUTOMAKE,;t t
10258 s,@AUTOHEADER@,$AUTOHEADER,;t t
10259 s,@MAKEINFO@,$MAKEINFO,;t t
10260 s,@AMTAR@,$AMTAR,;t t
10261 s,@install_sh@,$install_sh,;t t
10262 s,@STRIP@,$STRIP,;t t
10263 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10264 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10266 s,@SET_MAKE@,$SET_MAKE,;t t
10267 s,@ac_prefix_program@,$ac_prefix_program,;t t
10269 s,@CFLAGS@,$CFLAGS,;t t
10270 s,@LDFLAGS@,$LDFLAGS,;t t
10271 s,@CPPFLAGS@,$CPPFLAGS,;t t
10272 s,@ac_ct_CC@,$ac_ct_CC,;t t
10273 s,@EXEEXT@,$EXEEXT,;t t
10274 s,@OBJEXT@,$OBJEXT,;t t
10275 s,@DEPDIR@,$DEPDIR,;t t
10276 s,@am__include@,$am__include,;t t
10277 s,@am__quote@,$am__quote,;t t
10278 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10279 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10280 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10281 s,@CCDEPMODE@,$CCDEPMODE,;t t
10283 s,@RANLIB@,$RANLIB,;t t
10284 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10285 s,@YACC@,$YACC,;t t
10286 s,@LN_S@,$LN_S,;t t
10287 s,@PERL@,$PERL,;t t
10290 s,@ROFF@,$ROFF,;t t
10291 s,@PS2PDF@,$PS2PDF,;t t
10292 s,@TEXI2DVI@,$TEXI2DVI,;t t
10293 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
10294 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
10295 s,@LIBOBJS@,$LIBOBJS,;t t
10296 s,@KRB4@,$KRB4,;t t
10297 s,@includeopt@,$includeopt,;t t
10298 s,@EDITOR@,$EDITOR,;t t
10303 cat >>$CONFIG_STATUS <<\_ACEOF
10304 # Split the substitutions into bite-sized pieces for seds with
10305 # small command number limits, like on Digital OSF/1 and HP-UX.
10306 ac_max_sed_lines=48
10307 ac_sed_frag=1 # Number of current file.
10308 ac_beg=1 # First line for current file.
10309 ac_end=$ac_max_sed_lines # Line after last line for current file.
10312 while $ac_more_lines; do
10313 if test $ac_beg -gt 1; then
10314 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10316 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10318 if test ! -s $tmp/subs.frag; then
10319 ac_more_lines=false
10321 # The purpose of the label and of the branching condition is to
10322 # speed up the sed processing (if there are no `@' at all, there
10323 # is no need to browse any of the substitutions).
10324 # These are the two extra sed commands mentioned above.
10326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10327 if test -z "$ac_sed_cmds"; then
10328 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10330 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10332 ac_sed_frag=`expr $ac_sed_frag + 1`
10334 ac_end=`expr $ac_end + $ac_max_sed_lines`
10337 if test -z "$ac_sed_cmds"; then
10340 fi # test -n "$CONFIG_FILES"
10343 cat >>$CONFIG_STATUS <<\_ACEOF
10344 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10347 - | *:- | *:-:* ) # input from stdin
10349 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10350 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10351 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10353 * ) ac_file_in=$ac_file.in ;;
10356 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10357 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10359 X"$ac_file" : 'X\(//\)[^/]' \| \
10360 X"$ac_file" : 'X\(//\)$' \| \
10361 X"$ac_file" : 'X\(/\)' \| \
10362 . : '\(.\)' 2>/dev/null ||
10364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10366 /^X\(\/\/\)$/{ s//\1/; q; }
10367 /^X\(\/\).*/{ s//\1/; q; }
10369 { case "$ac_dir" in
10370 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10374 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10375 case $as_mkdir_dir in
10376 # Skip DOS drivespec
10377 ?:) as_incr_dir=$as_mkdir_dir ;;
10379 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10380 test -d "$as_incr_dir" ||
10381 mkdir "$as_incr_dir" ||
10382 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10383 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10384 { (exit 1); exit 1; }; }
10391 if test "$ac_dir" != .; then
10392 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10393 # A "../" for each directory in $ac_dir_suffix.
10394 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10396 ac_dir_suffix= ac_top_builddir=
10400 .) # No --srcdir option. We are building in place.
10402 if test -z "$ac_top_builddir"; then
10405 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10407 [\\/]* | ?:[\\/]* ) # Absolute path.
10408 ac_srcdir=$srcdir$ac_dir_suffix;
10409 ac_top_srcdir=$srcdir ;;
10410 *) # Relative path.
10411 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10412 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10414 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10416 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10417 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10418 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10419 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10423 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10424 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10427 if test x"$ac_file" != x-; then
10428 { echo "$as_me:$LINENO: creating $ac_file" >&5
10429 echo "$as_me: creating $ac_file" >&6;}
10432 # Let's still pretend it is `configure' which instantiates (i.e., don't
10433 # use $as_me), people would be surprised to read:
10434 # /* config.h. Generated by config.status. */
10435 if test x"$ac_file" = x-; then
10438 configure_input="$ac_file. "
10440 configure_input=$configure_input"Generated from `echo $ac_file_in |
10441 sed 's,.*/,,'` by configure."
10443 # First look for the input files in the build tree, otherwise in the
10445 ac_file_inputs=`IFS=:
10446 for f in $ac_file_in; do
10448 -) echo $tmp/stdin ;;
10450 # Absolute (can't be DOS-style, as IFS=:)
10451 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10452 echo "$as_me: error: cannot find input file: $f" >&2;}
10453 { (exit 1); exit 1; }; }
10456 if test -f "$f"; then
10459 elif test -f "$srcdir/$f"; then
10464 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10465 echo "$as_me: error: cannot find input file: $f" >&2;}
10466 { (exit 1); exit 1; }; }
10469 done` || { (exit 1); exit 1; }
10471 cat >>$CONFIG_STATUS <<_ACEOF
10475 cat >>$CONFIG_STATUS <<\_ACEOF
10477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10478 s,@configure_input@,$configure_input,;t t
10479 s,@srcdir@,$ac_srcdir,;t t
10480 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10481 s,@top_srcdir@,$ac_top_srcdir,;t t
10482 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10483 s,@builddir@,$ac_builddir,;t t
10484 s,@abs_builddir@,$ac_abs_builddir,;t t
10485 s,@top_builddir@,$ac_top_builddir,;t t
10486 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10487 s,@INSTALL@,$ac_INSTALL,;t t
10488 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10490 if test x"$ac_file" != x-; then
10491 mv $tmp/out $ac_file
10497 # Run the commands associated with the file.
10499 contrib/check_cvs ) chmod +x contrib/check_cvs ;;
10500 contrib/clmerge ) chmod +x contrib/clmerge ;;
10501 contrib/cln_hist ) chmod +x contrib/cln_hist ;;
10502 contrib/commit_prep ) chmod +x contrib/commit_prep ;;
10503 contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
10504 contrib/log ) chmod +x contrib/log ;;
10505 contrib/log_accum ) chmod +x contrib/log_accum ;;
10506 contrib/mfpipe ) chmod +x contrib/mfpipe ;;
10507 contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
10508 contrib/rcslock ) chmod +x contrib/rcslock ;;
10509 contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
10510 src/cvsbug ) chmod +x src/cvsbug ;;
10514 cat >>$CONFIG_STATUS <<\_ACEOF
10517 # CONFIG_HEADER section.
10520 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10521 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10523 # ac_d sets the value in "#define NAME VALUE" lines.
10524 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10525 ac_dB='[ ].*$,\1#\2'
10528 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10529 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10530 ac_uB='$,\1#\2define\3'
10534 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10535 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10537 - | *:- | *:-:* ) # input from stdin
10539 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10540 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10541 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10542 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10543 * ) ac_file_in=$ac_file.in ;;
10546 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10547 echo "$as_me: creating $ac_file" >&6;}
10549 # First look for the input files in the build tree, otherwise in the
10551 ac_file_inputs=`IFS=:
10552 for f in $ac_file_in; do
10554 -) echo $tmp/stdin ;;
10556 # Absolute (can't be DOS-style, as IFS=:)
10557 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10558 echo "$as_me: error: cannot find input file: $f" >&2;}
10559 { (exit 1); exit 1; }; }
10562 if test -f "$f"; then
10565 elif test -f "$srcdir/$f"; then
10570 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10571 echo "$as_me: error: cannot find input file: $f" >&2;}
10572 { (exit 1); exit 1; }; }
10575 done` || { (exit 1); exit 1; }
10576 # Remove the trailing spaces.
10577 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10581 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10582 # `conftest.undefs', that substitutes the proper values into
10583 # config.h.in to produce config.h. The first handles `#define'
10584 # templates, and the second `#undef' templates.
10585 # And first: Protect against being on the right side of a sed subst in
10586 # config.status. Protect against being in an unquoted here document
10587 # in config.status.
10588 rm -f conftest.defines conftest.undefs
10589 # Using a here document instead of a string reduces the quoting nightmare.
10590 # Putting comments in sed scripts is not portable.
10592 # `end' is used to avoid that the second main sed command (meant for
10593 # 0-ary CPP macros) applies to n-ary macro definitions.
10594 # See the Autoconf documentation for `clear'.
10595 cat >confdef2sed.sed <<\_ACEOF
10600 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10602 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10605 # If some macros were called several times there might be several times
10606 # the same #defines, which is useless. Nevertheless, we may not want to
10607 # sort them, since we want the *last* AC-DEFINE to be honored.
10608 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10609 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10610 rm -f confdef2sed.sed
10612 # This sed command replaces #undef with comments. This is necessary, for
10613 # example, in the case of _POSIX_SOURCE, which is predefined and required
10614 # on some systems where configure will not decide to define it.
10615 cat >>conftest.undefs <<\_ACEOF
10616 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10619 # Break up conftest.defines because some shells have a limit on the size
10620 # of here documents, and old seds have small limits too (100 cmds).
10621 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10622 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10623 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10624 echo ' :' >>$CONFIG_STATUS
10625 rm -f conftest.tail
10626 while grep . conftest.defines >/dev/null
10628 # Write a limited-size here document to $tmp/defines.sed.
10629 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10630 # Speed up: don't consider the non `#define' lines.
10631 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10632 # Work around the forget-to-reset-the-flag bug.
10633 echo 't clr' >>$CONFIG_STATUS
10634 echo ': clr' >>$CONFIG_STATUS
10635 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10637 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10639 mv $tmp/out $tmp/in
10641 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10642 rm -f conftest.defines
10643 mv conftest.tail conftest.defines
10645 rm -f conftest.defines
10646 echo ' fi # egrep' >>$CONFIG_STATUS
10647 echo >>$CONFIG_STATUS
10649 # Break up conftest.undefs because some shells have a limit on the size
10650 # of here documents, and old seds have small limits too (100 cmds).
10651 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10652 rm -f conftest.tail
10653 while grep . conftest.undefs >/dev/null
10655 # Write a limited-size here document to $tmp/undefs.sed.
10656 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10657 # Speed up: don't consider the non `#undef'
10658 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10659 # Work around the forget-to-reset-the-flag bug.
10660 echo 't clr' >>$CONFIG_STATUS
10661 echo ': clr' >>$CONFIG_STATUS
10662 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10664 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10666 mv $tmp/out $tmp/in
10668 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10669 rm -f conftest.undefs
10670 mv conftest.tail conftest.undefs
10672 rm -f conftest.undefs
10674 cat >>$CONFIG_STATUS <<\_ACEOF
10675 # Let's still pretend it is `configure' which instantiates (i.e., don't
10676 # use $as_me), people would be surprised to read:
10677 # /* config.h. Generated by config.status. */
10678 if test x"$ac_file" = x-; then
10679 echo "/* Generated by configure. */" >$tmp/config.h
10681 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10683 cat $tmp/in >>$tmp/config.h
10685 if test x"$ac_file" != x-; then
10686 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10687 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10688 echo "$as_me: $ac_file is unchanged" >&6;}
10690 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10692 X"$ac_file" : 'X\(//\)[^/]' \| \
10693 X"$ac_file" : 'X\(//\)$' \| \
10694 X"$ac_file" : 'X\(/\)' \| \
10695 . : '\(.\)' 2>/dev/null ||
10697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10699 /^X\(\/\/\)$/{ s//\1/; q; }
10700 /^X\(\/\).*/{ s//\1/; q; }
10702 { case "$ac_dir" in
10703 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10707 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10708 case $as_mkdir_dir in
10709 # Skip DOS drivespec
10710 ?:) as_incr_dir=$as_mkdir_dir ;;
10712 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10713 test -d "$as_incr_dir" ||
10714 mkdir "$as_incr_dir" ||
10715 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10716 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10717 { (exit 1); exit 1; }; }
10723 mv $tmp/config.h $ac_file
10727 rm -f $tmp/config.h
10729 # Run the commands associated with the file.
10731 config.h ) # update the timestamp
10732 echo 'timestamp for config.h' >"./stamp-h1"
10737 cat >>$CONFIG_STATUS <<\_ACEOF
10740 # CONFIG_LINKS section.
10743 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10744 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10745 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10747 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10748 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10750 if test ! -r $srcdir/$ac_source; then
10751 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10752 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10753 { (exit 1); exit 1; }; }
10757 # Make relative symlinks.
10758 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10759 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10760 X"$ac_dest" : 'X\(//\)[^/]' \| \
10761 X"$ac_dest" : 'X\(//\)$' \| \
10762 X"$ac_dest" : 'X\(/\)' \| \
10763 . : '\(.\)' 2>/dev/null ||
10765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10767 /^X\(\/\/\)$/{ s//\1/; q; }
10768 /^X\(\/\).*/{ s//\1/; q; }
10770 { case "$ac_dest_dir" in
10771 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10774 as_dummy="$ac_dest_dir"
10775 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10776 case $as_mkdir_dir in
10777 # Skip DOS drivespec
10778 ?:) as_incr_dir=$as_mkdir_dir ;;
10780 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10781 test -d "$as_incr_dir" ||
10782 mkdir "$as_incr_dir" ||
10783 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
10784 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
10785 { (exit 1); exit 1; }; }
10792 if test "$ac_dest_dir" != .; then
10793 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10794 # A "../" for each directory in $ac_dir_suffix.
10795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10797 ac_dir_suffix= ac_top_builddir=
10801 .) # No --srcdir option. We are building in place.
10803 if test -z "$ac_top_builddir"; then
10806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10808 [\\/]* | ?:[\\/]* ) # Absolute path.
10809 ac_srcdir=$srcdir$ac_dir_suffix;
10810 ac_top_srcdir=$srcdir ;;
10811 *) # Relative path.
10812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10815 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
10817 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
10818 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
10819 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
10820 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
10824 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10825 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10828 # Make a symlink if possible; otherwise try a hard link.
10829 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10830 ln $srcdir/$ac_source $ac_dest ||
10831 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
10832 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
10833 { (exit 1); exit 1; }; }
10836 cat >>$CONFIG_STATUS <<\_ACEOF
10839 # CONFIG_COMMANDS section.
10841 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10842 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10843 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10844 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10845 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10846 X"$ac_dest" : 'X\(//\)[^/]' \| \
10847 X"$ac_dest" : 'X\(//\)$' \| \
10848 X"$ac_dest" : 'X\(/\)' \| \
10849 . : '\(.\)' 2>/dev/null ||
10851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10853 /^X\(\/\/\)$/{ s//\1/; q; }
10854 /^X\(\/\).*/{ s//\1/; q; }
10858 if test "$ac_dir" != .; then
10859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10860 # A "../" for each directory in $ac_dir_suffix.
10861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10863 ac_dir_suffix= ac_top_builddir=
10867 .) # No --srcdir option. We are building in place.
10869 if test -z "$ac_top_builddir"; then
10872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10874 [\\/]* | ?:[\\/]* ) # Absolute path.
10875 ac_srcdir=$srcdir$ac_dir_suffix;
10876 ac_top_srcdir=$srcdir ;;
10877 *) # Relative path.
10878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10881 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10883 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10884 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10885 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10886 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10889 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10890 echo "$as_me: executing $ac_dest commands" >&6;}
10892 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10893 # Strip MF so we end up with the name of the file.
10894 mf=`echo "$mf" | sed -e 's/:.*$//'`
10895 # Check whether this is an Automake generated Makefile or not.
10896 # We used to match only the files named `Makefile.in', but
10897 # some people rename them; so instead we look at the file content.
10898 # Grep'ing the first line is not enough: some people post-process
10899 # each Makefile.in and add a new line on top of each file to say so.
10900 # So let's grep whole file.
10901 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10902 dirpart=`(dirname "$mf") 2>/dev/null ||
10903 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10904 X"$mf" : 'X\(//\)[^/]' \| \
10905 X"$mf" : 'X\(//\)$' \| \
10906 X"$mf" : 'X\(/\)' \| \
10907 . : '\(.\)' 2>/dev/null ||
10909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10911 /^X\(\/\/\)$/{ s//\1/; q; }
10912 /^X\(\/\).*/{ s//\1/; q; }
10917 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10918 # Extract the definition of DEP_FILES from the Makefile without
10920 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10921 test -z "$DEPDIR" && continue
10922 # When using ansi2knr, U may be empty or an underscore; expand it
10923 U=`sed -n -e '/^U = / s///p' < "$mf"`
10924 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10925 # We invoke sed twice because it is the simplest approach to
10926 # changing $(DEPDIR) to its actual value in the expansion.
10927 for file in `sed -n -e '
10928 /^DEP_FILES = .*\\\\$/ {
10937 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10938 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10939 # Make sure the directory exists.
10940 test -f "$dirpart/$file" && continue
10941 fdir=`(dirname "$file") 2>/dev/null ||
10942 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10943 X"$file" : 'X\(//\)[^/]' \| \
10944 X"$file" : 'X\(//\)$' \| \
10945 X"$file" : 'X\(/\)' \| \
10946 . : '\(.\)' 2>/dev/null ||
10948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10950 /^X\(\/\/\)$/{ s//\1/; q; }
10951 /^X\(\/\).*/{ s//\1/; q; }
10953 { case $dirpart/$fdir in
10954 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10957 as_dummy=$dirpart/$fdir
10958 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10959 case $as_mkdir_dir in
10960 # Skip DOS drivespec
10961 ?:) as_incr_dir=$as_mkdir_dir ;;
10963 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10964 test -d "$as_incr_dir" ||
10965 mkdir "$as_incr_dir" ||
10966 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10967 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10968 { (exit 1); exit 1; }; }
10973 # echo "creating $dirpart/$file"
10974 echo '# dummy' > "$dirpart/$file"
10982 cat >>$CONFIG_STATUS <<\_ACEOF
10984 { (exit 0); exit 0; }
10986 chmod +x $CONFIG_STATUS
10987 ac_clean_files=$ac_clean_files_save
10990 # configure is writing to config.log, and then calls config.status.
10991 # config.status does its own redirection, appending to config.log.
10992 # Unfortunately, on DOS this fails, as config.log is still kept open
10993 # by configure, so config.status won't be able to write to it; its
10994 # output is simply discarded. So we exec the FD to /dev/null,
10995 # effectively closing config.log, so it can be properly (re)opened and
10996 # appended to by config.status. When coming back to configure, we
10997 # need to make the FD available again.
10998 if test "$no_create" != yes; then
11001 $SHELL $CONFIG_STATUS || ac_cs_success=false
11003 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11004 # would make configure fail if this is the last instruction.
11005 $ac_cs_success || { (exit 1); exit 1; }