2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
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; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="conf/pam_conv1/pam_conv.y"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBPAM_VERSION_MAJOR LIBPAM_VERSION_MINOR LOCALSRCDIR LOCALOBJDIR OS CONF_CFLAGS MKDIR SHLIBMODE MANMODE USESONAME SOSWITCH NEEDSONAME LDCONFIG CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE WITH_DEBUG WITH_MEMORY_DEBUG WITH_LIBDEBUG WITH_PRELUDE FAKEROOT SECUREDIR SCONFIGDIR SUPLEMENTED INCLUDEDIR DOCDIR MANDIR WITH_PAMLOCKING PAM_READ_BOTH_CONFS STATIC_LIBPAM DYNAMIC_LIBPAM DYNAMIC STATIC WITH_LCKPWDF CPP EGREP PAM_NEEDS_LIBC HAVE_LCKPWDF LIBDL HAVE_LIBCRACK HAVE_LIBCRYPT HAVE_LIBUTIL HAVE_LIBNDBM HAVE_LIBDB HAVE_LIBFL HAVE_LIBNSL HAVE_LIBSELINUX HAVE_LIBPWDB HAVE_LIBFLEX HAVE_LIBLEX HAVE_NDBM_H CRACKLIB_DICTPATH DYNTYPE OS_CFLAGS WARNINGS PIC LD LD_D LD_L RANLIB STRIP CC_STATIC LIBOBJS HAVE_SGML2TXT HAVE_SGML2HTML HAVE_SGML2LATEX HAVE_PS2PDF HAVE_SGML2PS PSER PS2PDF LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
837 if test -n "$ac_init_help"; then
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-debug specify you are building with debugging on
845 --enable-memory-debug specify you want every malloc etc. call tracked
846 --enable-libdebug specify you are building debugging libraries
847 --enable-prelude build prelude ids support
848 --enable-fakeroot=<path to packaging directory>
849 --enable-securedir=<path to location of PAMs> default \$libdir/security
850 --enable-isadir=<path to arch-specific module files> default ../../\`basename \$libdir\`/security
851 --enable-sconfigdir=<path to module conf files> default \$sysconfdir/security
852 --enable-suplementedir=<path to module helper binaries> default \$sbindir
853 --enable-includedir=<path to include location> - where to put <security>
854 --enable-docdir=<path to store documentation in - /usr/share/doc/pam>
855 --enable-mandir=<path to store manuals in - /usr/share/man>
856 --enable-pamlocking configure libpam to observe a global authentication lock
857 --enable-read-both-confs read both /etc/pam.d and /etc/pam.conf files
858 --enable-static-libpam build a libpam.a library
859 --disable-dynamic-libpam do not build a shared libpam library
860 --enable-static-modules do not make the modules dynamically loadable
861 --disable-lckpwdf do not use the lckpwdf function
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-mailspool path to mail spool directory
867 default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 ac_dir_suffix= ac_top_builddir=
900 .) # No --srcdir option. We are building in place.
902 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
918 .) ac_abs_builddir="$ac_dir";;
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_must_keep_next=false
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 -* ) ac_must_keep_next=true ;;
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1106 # The following way of writing the cache mishandles newlines in values,
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -n "$ac_subst_files"; then
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -s confdefs.h; then
1158 sed "/^$/d" confdefs.h | sort
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1241 # Check that the precious variables saved in the cache have kept the same
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 ac_config_headers="$ac_config_headers config.h"
1321 LIBPAM_VERSION_MAJOR=0
1322 LIBPAM_VERSION_MINOR=81
1330 LOCALSRCDIR=`/bin/pwd` ;
1331 LOCALOBJDIR=`/bin/pwd` ;
1332 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1343 SOSWITCH="-Wl,-soname -Wl," ;
1345 LDCONFIG=/sbin/ldconfig ;
1348 ac_cpp='$CPP $CPPFLAGS'
1349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1352 if test -n "$ac_tool_prefix"; then
1353 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1355 echo "$as_me:$LINENO: checking for $ac_word" >&5
1356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1357 if test "${ac_cv_prog_CC+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 if test -n "$CC"; then
1361 ac_cv_prog_CC="$CC" # Let the user override the test.
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 test -z "$as_dir" && as_dir=.
1368 for ac_exec_ext in '' $ac_executable_extensions; do
1369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1370 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380 if test -n "$CC"; then
1381 echo "$as_me:$LINENO: result: $CC" >&5
1382 echo "${ECHO_T}$CC" >&6
1384 echo "$as_me:$LINENO: result: no" >&5
1385 echo "${ECHO_T}no" >&6
1389 if test -z "$ac_cv_prog_CC"; then
1391 # Extract the first word of "gcc", so it can be a program name with args.
1392 set dummy gcc; ac_word=$2
1393 echo "$as_me:$LINENO: checking for $ac_word" >&5
1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 if test -n "$ac_ct_CC"; then
1399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 test -z "$as_dir" && as_dir=.
1406 for ac_exec_ext in '' $ac_executable_extensions; do
1407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1408 ac_cv_prog_ac_ct_CC="gcc"
1409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1418 if test -n "$ac_ct_CC"; then
1419 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1420 echo "${ECHO_T}$ac_ct_CC" >&6
1422 echo "$as_me:$LINENO: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1431 if test -z "$CC"; then
1432 if test -n "$ac_tool_prefix"; then
1433 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}cc; ac_word=$2
1435 echo "$as_me:$LINENO: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_CC+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 if test -n "$CC"; then
1441 ac_cv_prog_CC="$CC" # Let the user override the test.
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 test -z "$as_dir" && as_dir=.
1448 for ac_exec_ext in '' $ac_executable_extensions; do
1449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1450 ac_cv_prog_CC="${ac_tool_prefix}cc"
1451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 if test -n "$CC"; then
1461 echo "$as_me:$LINENO: result: $CC" >&5
1462 echo "${ECHO_T}$CC" >&6
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1469 if test -z "$ac_cv_prog_CC"; then
1471 # Extract the first word of "cc", so it can be a program name with args.
1472 set dummy cc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$ac_ct_CC"; then
1479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_ac_ct_CC="cc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1498 if test -n "$ac_ct_CC"; then
1499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1500 echo "${ECHO_T}$ac_ct_CC" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1512 if test -z "$CC"; then
1513 # Extract the first word of "cc", so it can be a program name with args.
1514 set dummy cc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$CC"; then
1521 ac_cv_prog_CC="$CC" # Let the user override the test.
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1532 ac_prog_rejected=yes
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 if test $ac_prog_rejected = yes; then
1543 # We found a bogon in the path, so make sure we never use it.
1544 set dummy $ac_cv_prog_CC
1546 if test $# != 0; then
1547 # We chose a different compiler from the bogus one.
1548 # However, it has the same basename, so the bogon will be chosen
1549 # first if we set CC to just the basename; use the full file name.
1551 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1557 if test -n "$CC"; then
1558 echo "$as_me:$LINENO: result: $CC" >&5
1559 echo "${ECHO_T}$CC" >&6
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1566 if test -z "$CC"; then
1567 if test -n "$ac_tool_prefix"; then
1570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_CC+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 if test -n "$CC"; then
1578 ac_cv_prog_CC="$CC" # Let the user override the test.
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 test -z "$as_dir" && as_dir=.
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597 if test -n "$CC"; then
1598 echo "$as_me:$LINENO: result: $CC" >&5
1599 echo "${ECHO_T}$CC" >&6
1601 echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1605 test -n "$CC" && break
1608 if test -z "$CC"; then
1612 # Extract the first word of "$ac_prog", so it can be a program name with args.
1613 set dummy $ac_prog; ac_word=$2
1614 echo "$as_me:$LINENO: checking for $ac_word" >&5
1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 if test -n "$ac_ct_CC"; then
1620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 test -z "$as_dir" && as_dir=.
1627 for ac_exec_ext in '' $ac_executable_extensions; do
1628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1629 ac_cv_prog_ac_ct_CC="$ac_prog"
1630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1639 if test -n "$ac_ct_CC"; then
1640 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1641 echo "${ECHO_T}$ac_ct_CC" >&6
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1647 test -n "$ac_ct_CC" && break
1656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1657 See \`config.log' for more details." >&5
1658 echo "$as_me: error: no acceptable C compiler found in \$PATH
1659 See \`config.log' for more details." >&2;}
1660 { (exit 1); exit 1; }; }
1662 # Provide some information about the compiler.
1663 echo "$as_me:$LINENO:" \
1664 "checking for C compiler version" >&5
1665 ac_compiler=`set X $ac_compile; echo $2`
1666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1667 (eval $ac_compiler --version </dev/null >&5) 2>&5
1669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1670 (exit $ac_status); }
1671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1672 (eval $ac_compiler -v </dev/null >&5) 2>&5
1674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1675 (exit $ac_status); }
1676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1677 (eval $ac_compiler -V </dev/null >&5) 2>&5
1679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680 (exit $ac_status); }
1682 cat >conftest.$ac_ext <<_ACEOF
1685 cat confdefs.h >>conftest.$ac_ext
1686 cat >>conftest.$ac_ext <<_ACEOF
1687 /* end confdefs.h. */
1697 ac_clean_files_save=$ac_clean_files
1698 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1699 # Try to create an executable without -o first, disregard a.out.
1700 # It will help us diagnose broken compilers, and finding out an intuition
1702 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1703 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1704 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1705 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1706 (eval $ac_link_default) 2>&5
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }; then
1710 # Find the output, starting from the most likely. This scheme is
1711 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1714 # Be careful to initialize this variable, since it used to be cached.
1715 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1717 # b.out is created by i960 compilers.
1718 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1720 test -f "$ac_file" || continue
1722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1725 # This is the source file.
1728 # We found the default executable, but exeext='' is most
1732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1733 # FIXME: I believe we export ac_cv_exeext for Libtool,
1734 # but it would be cool to find out if it's true. Does anybody
1735 # maintain Libtool? --akim.
1743 echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1747 See \`config.log' for more details." >&5
1748 echo "$as_me: error: C compiler cannot create executables
1749 See \`config.log' for more details." >&2;}
1750 { (exit 77); exit 77; }; }
1753 ac_exeext=$ac_cv_exeext
1754 echo "$as_me:$LINENO: result: $ac_file" >&5
1755 echo "${ECHO_T}$ac_file" >&6
1757 # Check the compiler produces executables we can run. If not, either
1758 # the compiler is broken, or we cross compile.
1759 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1760 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1761 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1762 # If not cross compiling, check that we can run a simple program.
1763 if test "$cross_compiling" != yes; then
1764 if { ac_try='./$ac_file'
1765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }; }; then
1772 if test "$cross_compiling" = maybe; then
1775 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1776 If you meant to cross compile, use \`--host'.
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: cannot run C compiled programs.
1779 If you meant to cross compile, use \`--host'.
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1785 echo "$as_me:$LINENO: result: yes" >&5
1786 echo "${ECHO_T}yes" >&6
1788 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1789 ac_clean_files=$ac_clean_files_save
1790 # Check the compiler produces executables we can run. If not, either
1791 # the compiler is broken, or we cross compile.
1792 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1793 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1794 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1795 echo "${ECHO_T}$cross_compiling" >&6
1797 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1798 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1800 (eval $ac_link) 2>&5
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); }; then
1804 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1805 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1806 # work properly (i.e., refer to `conftest.exe'), while it won't with
1808 for ac_file in conftest.exe conftest conftest.*; do
1809 test -f "$ac_file" || continue
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1822 See \`config.log' for more details." >&2;}
1823 { (exit 1); exit 1; }; }
1826 rm -f conftest$ac_cv_exeext
1827 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1828 echo "${ECHO_T}$ac_cv_exeext" >&6
1830 rm -f conftest.$ac_ext
1831 EXEEXT=$ac_cv_exeext
1833 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1834 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1835 if test "${ac_cv_objext+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 cat >conftest.$ac_ext <<_ACEOF
1841 cat confdefs.h >>conftest.$ac_ext
1842 cat >>conftest.$ac_ext <<_ACEOF
1843 /* end confdefs.h. */
1853 rm -f conftest.o conftest.obj
1854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1855 (eval $ac_compile) 2>&5
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; then
1859 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1867 echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1871 See \`config.log' for more details." >&5
1872 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1873 See \`config.log' for more details." >&2;}
1874 { (exit 1); exit 1; }; }
1877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1879 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1880 echo "${ECHO_T}$ac_cv_objext" >&6
1881 OBJEXT=$ac_cv_objext
1883 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1884 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1885 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 cat >conftest.$ac_ext <<_ACEOF
1891 cat confdefs.h >>conftest.$ac_ext
1892 cat >>conftest.$ac_ext <<_ACEOF
1893 /* end confdefs.h. */
1906 rm -f conftest.$ac_objext
1907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>conftest.er1
1910 grep -v '^ *+' conftest.er1 >conftest.err
1912 cat conftest.err >&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try='test -z "$ac_c_werror_flag"
1916 || test ! -s conftest.err'
1917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; } &&
1922 { ac_try='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1930 echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1936 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1939 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1940 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1941 GCC=`test $ac_compiler_gnu = yes && echo yes`
1942 ac_test_CFLAGS=${CFLAGS+set}
1943 ac_save_CFLAGS=$CFLAGS
1945 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1946 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1947 if test "${ac_cv_prog_cc_g+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 cat >conftest.$ac_ext <<_ACEOF
1953 cat confdefs.h >>conftest.$ac_ext
1954 cat >>conftest.$ac_ext <<_ACEOF
1955 /* end confdefs.h. */
1965 rm -f conftest.$ac_objext
1966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1967 (eval $ac_compile) 2>conftest.er1
1969 grep -v '^ *+' conftest.er1 >conftest.err
1971 cat conftest.err >&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); } &&
1974 { ac_try='test -z "$ac_c_werror_flag"
1975 || test ! -s conftest.err'
1976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1989 echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1997 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1998 if test "$ac_test_CFLAGS" = set; then
1999 CFLAGS=$ac_save_CFLAGS
2000 elif test $ac_cv_prog_cc_g = yes; then
2001 if test "$GCC" = yes; then
2007 if test "$GCC" = yes; then
2013 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2014 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2015 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 ac_cv_prog_cc_stdc=no
2020 cat >conftest.$ac_ext <<_ACEOF
2023 cat confdefs.h >>conftest.$ac_ext
2024 cat >>conftest.$ac_ext <<_ACEOF
2025 /* end confdefs.h. */
2028 #include <sys/types.h>
2029 #include <sys/stat.h>
2030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2031 struct buf { int x; };
2032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2033 static char *e (p, i)
2039 static char *f (char * (*g) (char **, int), char **p, ...)
2044 s = g (p, va_arg (v,int));
2049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2050 function prototypes and stuff, but not '\xHH' hex character constants.
2051 These don't provoke an error unfortunately, instead are silently treated
2052 as 'x'. The following induces an error, until -std1 is added to get
2053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2054 array size at least. It's necessary to write '\x00'==0 to get something
2055 that's true only with -std1. */
2056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2058 int test (int i, double x);
2059 struct s1 {int (*f) (int a);};
2060 struct s2 {int (*f) (double a);};
2061 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2067 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2072 # Don't try gcc -ansi; that turns off useful extensions and
2073 # breaks some systems' header files.
2074 # AIX -qlanglvl=ansi
2075 # Ultrix and OSF/1 -std1
2076 # HP-UX 10.20 and later -Ae
2077 # HP-UX older versions -Aa -D_HPUX_SOURCE
2078 # SVR4 -Xc -D__EXTENSIONS__
2079 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2081 CC="$ac_save_CC $ac_arg"
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2086 grep -v '^ *+' conftest.er1 >conftest.err
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag"
2092 || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2104 ac_cv_prog_cc_stdc=$ac_arg
2107 echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2111 rm -f conftest.err conftest.$ac_objext
2113 rm -f conftest.$ac_ext conftest.$ac_objext
2118 case "x$ac_cv_prog_cc_stdc" in
2120 echo "$as_me:$LINENO: result: none needed" >&5
2121 echo "${ECHO_T}none needed" >&6 ;;
2123 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2124 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2125 CC="$CC $ac_cv_prog_cc_stdc" ;;
2128 # Some people use a C++ compiler to compile C. Since we use `exit',
2129 # in C++ we need to declare it. In case someone uses the same compiler
2130 # for both compiling C and C++ we need to have the C++ compiler decide
2131 # the declaration of exit, since it's the most demanding environment.
2132 cat >conftest.$ac_ext <<_ACEOF
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2141 grep -v '^ *+' conftest.er1 >conftest.err
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag"
2147 || test ! -s conftest.err'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2159 for ac_declaration in \
2161 'extern "C" void std::exit (int) throw (); using std::exit;' \
2162 'extern "C" void std::exit (int); using std::exit;' \
2163 'extern "C" void exit (int) throw ();' \
2164 'extern "C" void exit (int);' \
2167 cat >conftest.$ac_ext <<_ACEOF
2170 cat confdefs.h >>conftest.$ac_ext
2171 cat >>conftest.$ac_ext <<_ACEOF
2172 /* end confdefs.h. */
2183 rm -f conftest.$ac_objext
2184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185 (eval $ac_compile) 2>conftest.er1
2187 grep -v '^ *+' conftest.er1 >conftest.err
2189 cat conftest.err >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); } &&
2192 { ac_try='test -z "$ac_c_werror_flag"
2193 || test ! -s conftest.err'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; } &&
2199 { ac_try='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2213 cat >conftest.$ac_ext <<_ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2228 rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2232 grep -v '^ *+' conftest.er1 >conftest.err
2234 cat conftest.err >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -z "$ac_c_werror_flag"
2238 || test ! -s conftest.err'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259 if test -n "$ac_declaration"; then
2260 echo '#ifdef __cplusplus' >>confdefs.h
2261 echo $ac_declaration >>confdefs.h
2262 echo '#endif' >>confdefs.h
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2272 ac_cpp='$CPP $CPPFLAGS'
2273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277 for ac_prog in 'bison -y' byacc
2279 # Extract the first word of "$ac_prog", so it can be a program name with args.
2280 set dummy $ac_prog; ac_word=$2
2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283 if test "${ac_cv_prog_YACC+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 if test -n "$YACC"; then
2287 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296 ac_cv_prog_YACC="$ac_prog"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 YACC=$ac_cv_prog_YACC
2306 if test -n "$YACC"; then
2307 echo "$as_me:$LINENO: result: $YACC" >&5
2308 echo "${ECHO_T}$YACC" >&6
2310 echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2314 test -n "$YACC" && break
2316 test -n "$YACC" || YACC="yacc"
2319 for ac_prog in flex lex
2321 # Extract the first word of "$ac_prog", so it can be a program name with args.
2322 set dummy $ac_prog; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_LEX+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$LEX"; then
2329 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_LEX="$ac_prog"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 if test -n "$LEX"; then
2349 echo "$as_me:$LINENO: result: $LEX" >&5
2350 echo "${ECHO_T}$LEX" >&6
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2356 test -n "$LEX" && break
2358 test -n "$LEX" || LEX=":"
2360 if test -z "$LEXLIB"
2362 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2363 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2364 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 ac_check_lib_save_LIBS=$LIBS
2369 cat >conftest.$ac_ext <<_ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2376 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2391 rm -f conftest.$ac_objext conftest$ac_exeext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393 (eval $ac_link) 2>conftest.er1
2395 grep -v '^ *+' conftest.er1 >conftest.err
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest$ac_exeext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_lib_fl_yywrap=yes
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2418 ac_cv_lib_fl_yywrap=no
2420 rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
2422 LIBS=$ac_check_lib_save_LIBS
2424 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2425 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2426 if test $ac_cv_lib_fl_yywrap = yes; then
2429 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2430 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2431 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_check_lib_save_LIBS=$LIBS
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2443 /* Override any gcc2 internal prototype to avoid an error. */
2447 /* We use char because int might match the return type of a gcc2
2448 builtin and then its argument prototype would still apply. */
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2460 (eval $ac_link) 2>conftest.er1
2462 grep -v '^ *+' conftest.er1 >conftest.err
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag"
2468 || test ! -s conftest.err'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest$ac_exeext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_cv_lib_l_yywrap=yes
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2485 ac_cv_lib_l_yywrap=no
2487 rm -f conftest.err conftest.$ac_objext \
2488 conftest$ac_exeext conftest.$ac_ext
2489 LIBS=$ac_check_lib_save_LIBS
2491 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2492 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2493 if test $ac_cv_lib_l_yywrap = yes; then
2501 if test "x$LEX" != "x:"; then
2502 echo "$as_me:$LINENO: checking lex output file root" >&5
2503 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2504 if test "${ac_cv_prog_lex_root+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 # The minimal lex program is just a single line: %%. But some broken lexes
2508 # (Solaris, I think it was) want two %% lines, so accommodate them.
2509 cat >conftest.l <<_ACEOF
2513 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2514 (eval $LEX conftest.l) 2>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }
2518 if test -f lex.yy.c; then
2519 ac_cv_prog_lex_root=lex.yy
2520 elif test -f lexyy.c; then
2521 ac_cv_prog_lex_root=lexyy
2523 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2524 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2525 { (exit 1); exit 1; }; }
2528 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2529 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2531 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2533 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2534 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2535 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 # POSIX says lex can declare yytext either as a pointer or an array; the
2539 # default is implementation-dependent. Figure out which it is, since
2540 # not all implementations provide the %pointer and %array declarations.
2541 ac_cv_prog_lex_yytext_pointer=no
2542 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2544 LIBS="$LIBS $LEXLIB"
2545 cat >conftest.$ac_ext <<_ACEOF
2546 `cat $LEX_OUTPUT_ROOT.c`
2548 rm -f conftest.$ac_objext conftest$ac_exeext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2550 (eval $ac_link) 2>conftest.er1
2552 grep -v '^ *+' conftest.er1 >conftest.err
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -z "$ac_c_werror_flag"
2558 || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest$ac_exeext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 ac_cv_prog_lex_yytext_pointer=yes
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2576 rm -f conftest.err conftest.$ac_objext \
2577 conftest$ac_exeext conftest.$ac_ext
2579 rm -f "${LEX_OUTPUT_ROOT}.c"
2582 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2583 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2584 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2586 cat >>confdefs.h <<\_ACEOF
2587 #define YYTEXT_POINTER 1
2594 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2595 if test -f $ac_dir/install-sh; then
2597 ac_install_sh="$ac_aux_dir/install-sh -c"
2599 elif test -f $ac_dir/install.sh; then
2601 ac_install_sh="$ac_aux_dir/install.sh -c"
2603 elif test -f $ac_dir/shtool; then
2605 ac_install_sh="$ac_aux_dir/shtool install -c"
2609 if test -z "$ac_aux_dir"; then
2610 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2611 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2612 { (exit 1); exit 1; }; }
2614 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2615 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2616 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2618 # Find a good install program. We prefer a C program (faster),
2619 # so one script is as good as another. But avoid the broken or
2620 # incompatible versions:
2621 # SysV /etc/install, /usr/sbin/install
2622 # SunOS /usr/etc/install
2623 # IRIX /sbin/install
2625 # AmigaOS /C/install, which installs bootblocks on floppy discs
2626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2629 # OS/2's system install, which has a completely different semantic
2630 # ./install, which can be erroneously created by make from ./install.sh.
2631 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2632 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2633 if test -z "$INSTALL"; then
2634 if test "${ac_cv_path_install+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 # Account for people who put trailing slashes in PATH elements.
2644 ./ | .// | /cC/* | \
2645 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2646 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2649 # OSF1 and SCO ODT 3.0 have their own names for install.
2650 # Don't use installbsd from OSF since it installs stuff as root
2652 for ac_prog in ginstall scoinst install; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2655 if test $ac_prog = install &&
2656 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657 # AIX install. It has an incompatible calling convention.
2659 elif test $ac_prog = install &&
2660 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2661 # program-specific install script used by HP pwplus--don't use.
2664 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2676 if test "${ac_cv_path_install+set}" = set; then
2677 INSTALL=$ac_cv_path_install
2679 # As a last resort, use the slow shell script. We don't cache a
2680 # path for INSTALL within a source directory, because that will
2681 # break other packages using the cache if that directory is
2682 # removed, or if the path is relative.
2683 INSTALL=$ac_install_sh
2686 echo "$as_me:$LINENO: result: $INSTALL" >&5
2687 echo "${ECHO_T}$INSTALL" >&6
2689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2690 # It thinks the first close brace ends the variable substitution.
2691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2693 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2695 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2697 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2698 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2700 if test "$LN_S" = "ln -s"; then
2701 echo "$as_me:$LINENO: result: yes" >&5
2702 echo "${ECHO_T}yes" >&6
2704 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2705 echo "${ECHO_T}no, using $LN_S" >&6
2708 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2710 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2711 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 cat >conftest.make <<\_ACEOF
2716 @echo 'ac_maketemp="$(MAKE)"'
2718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2719 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2720 if test -n "$ac_maketemp"; then
2721 eval ac_cv_prog_make_${ac_make}_set=yes
2723 eval ac_cv_prog_make_${ac_make}_set=no
2727 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2728 echo "$as_me:$LINENO: result: yes" >&5
2729 echo "${ECHO_T}yes" >&6
2732 echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6
2734 SET_MAKE="MAKE=${MAKE-make}"
2739 # Check whether --enable-debug or --disable-debug was given.
2740 if test "${enable_debug+set}" = set; then
2741 enableval="$enable_debug"
2743 cat >>confdefs.h <<\_ACEOF
2752 # Check whether --enable-memory-debug or --disable-memory-debug was given.
2753 if test "${enable_memory_debug+set}" = set; then
2754 enableval="$enable_memory_debug"
2755 WITH_MEMORY_DEBUG=yes ;
2756 cat >>confdefs.h <<\_ACEOF
2757 #define MEMORY_DEBUG
2761 WITH_MEMORY_DEBUG=no
2767 # Check whether --enable-libdebug or --disable-libdebug was given.
2768 if test "${enable_libdebug+set}" = set; then
2769 enableval="$enable_libdebug"
2771 cat >>confdefs.h <<\_ACEOF
2772 #define WITH_LIBDEBUG
2780 # Check whether --enable-prelude or --disable-prelude was given.
2781 if test "${enable_prelude+set}" = set; then
2782 enableval="$enable_prelude"
2784 cat >>confdefs.h <<\_ACEOF
2785 #define WITH_PRELUDE
2793 # Check whether --enable-fakeroot or --disable-fakeroot was given.
2794 if test "${enable_fakeroot+set}" = set; then
2795 enableval="$enable_fakeroot"
2800 # Check whether --enable-securedir or --disable-securedir was given.
2801 if test "${enable_securedir+set}" = set; then
2802 enableval="$enable_securedir"
2803 SECUREDIR=$enableval
2805 SECUREDIR=$libdir/security
2809 # Check whether --enable-isadir or --disable-isadir was given.
2810 if test "${enable_isadir+set}" = set; then
2811 enableval="$enable_isadir"
2814 ISA=../../`basename $libdir`/security
2818 cat >>confdefs.h <<_ACEOF
2819 #define _PAM_ISA "$ISA"
2822 echo "$as_me:$LINENO: result: Defining \$ISA to \\"$ISA\\"." >&5
2823 echo "${ECHO_T}Defining \$ISA to \\"$ISA\\"." >&6
2825 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
2826 if test "${enable_sconfigdir+set}" = set; then
2827 enableval="$enable_sconfigdir"
2828 SCONFIGDIR=$enableval
2830 SCONFIGDIR=$sysconfdir/security
2834 # Check whether --enable-suplementedir or --disable-suplementedir was given.
2835 if test "${enable_suplementedir+set}" = set; then
2836 enableval="$enable_suplementedir"
2837 SUPLEMENTED=$enableval
2839 SUPLEMENTED=$sbindir
2843 # Check whether --enable-includedir or --disable-includedir was given.
2844 if test "${enable_includedir+set}" = set; then
2845 enableval="$enable_includedir"
2846 INCLUDEDIR=$enableval
2848 INCLUDEDIR=/usr/include
2852 # Check whether --enable-docdir or --disable-docdir was given.
2853 if test "${enable_docdir+set}" = set; then
2854 enableval="$enable_docdir"
2857 DOCDIR=/usr/share/doc/pam
2861 # Check whether --enable-mandir or --disable-mandir was given.
2862 if test "${enable_mandir+set}" = set; then
2863 enableval="$enable_mandir"
2866 MANDIR=/usr/share/man
2870 # Check whether --enable-pamlocking or --disable-pamlocking was given.
2871 if test "${enable_pamlocking+set}" = set; then
2872 enableval="$enable_pamlocking"
2873 WITH_PAMLOCKING=yes ;
2874 cat >>confdefs.h <<\_ACEOF
2883 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
2884 if test "${enable_read_both_confs+set}" = set; then
2885 enableval="$enable_read_both_confs"
2887 cat >>confdefs.h <<\_ACEOF
2888 #define PAM_READ_BOTH_CONFS
2894 # Check whether --enable-static-libpam or --disable-static-libpam was given.
2895 if test "${enable_static_libpam+set}" = set; then
2896 enableval="$enable_static_libpam"
2903 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
2904 if test "${enable_dynamic_libpam+set}" = set; then
2905 enableval="$enable_dynamic_libpam"
2912 DYNAMIC=-DPAM_DYNAMIC
2915 # Check whether --enable-static-modules or --disable-static-modules was given.
2916 if test "${enable_static_modules+set}" = set; then
2917 enableval="$enable_static_modules"
2922 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
2923 if test "${enable_lckpwdf+set}" = set; then
2924 enableval="$enable_lckpwdf"
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2937 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2938 # On Suns, sometimes $CPP names a directory.
2939 if test -n "$CPP" && test -d "$CPP"; then
2942 if test -z "$CPP"; then
2943 if test "${ac_cv_prog_CPP+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 # Double quotes because CPP needs to be expanded
2947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2950 for ac_c_preproc_warn_flag in '' yes
2952 # Use a header file that comes with gcc, so configuring glibc
2953 # with a fresh cross-compiler works.
2954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2955 # <limits.h> exists even on freestanding compilers.
2956 # On the NeXT, cc -E runs the code through the compiler's parser,
2957 # not just through cpp. "Syntax error" is here to catch this case.
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2965 # include <limits.h>
2967 # include <assert.h>
2971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } >/dev/null; then
2979 if test -s conftest.err; then
2980 ac_cpp_err=$ac_c_preproc_warn_flag
2981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2988 if test -z "$ac_cpp_err"; then
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2994 # Broken: fails on valid input.
2997 rm -f conftest.err conftest.$ac_ext
2999 # OK, works on sane cases. Now check whether non-existent headers
3000 # can be detected and how.
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007 #include <ac_nonexistent.h>
3009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } >/dev/null; then
3017 if test -s conftest.err; then
3018 ac_cpp_err=$ac_c_preproc_warn_flag
3019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3026 if test -z "$ac_cpp_err"; then
3027 # Broken: success on invalid input.
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 # Passes both tests.
3037 rm -f conftest.err conftest.$ac_ext
3040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3041 rm -f conftest.err conftest.$ac_ext
3042 if $ac_preproc_ok; then
3054 echo "$as_me:$LINENO: result: $CPP" >&5
3055 echo "${ECHO_T}$CPP" >&6
3057 for ac_c_preproc_warn_flag in '' yes
3059 # Use a header file that comes with gcc, so configuring glibc
3060 # with a fresh cross-compiler works.
3061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3062 # <limits.h> exists even on freestanding compilers.
3063 # On the NeXT, cc -E runs the code through the compiler's parser,
3064 # not just through cpp. "Syntax error" is here to catch this case.
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3072 # include <limits.h>
3074 # include <assert.h>
3078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } >/dev/null; then
3086 if test -s conftest.err; then
3087 ac_cpp_err=$ac_c_preproc_warn_flag
3088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3095 if test -z "$ac_cpp_err"; then
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 # Broken: fails on valid input.
3104 rm -f conftest.err conftest.$ac_ext
3106 # OK, works on sane cases. Now check whether non-existent headers
3107 # can be detected and how.
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3114 #include <ac_nonexistent.h>
3116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3119 grep -v '^ *+' conftest.er1 >conftest.err
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } >/dev/null; then
3124 if test -s conftest.err; then
3125 ac_cpp_err=$ac_c_preproc_warn_flag
3126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3133 if test -z "$ac_cpp_err"; then
3134 # Broken: success on invalid input.
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 # Passes both tests.
3144 rm -f conftest.err conftest.$ac_ext
3147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3148 rm -f conftest.err conftest.$ac_ext
3149 if $ac_preproc_ok; then
3152 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking for egrep" >&5
3167 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3168 if test "${ac_cv_prog_egrep+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3172 then ac_cv_prog_egrep='grep -E'
3173 else ac_cv_prog_egrep='egrep'
3176 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3177 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3178 EGREP=$ac_cv_prog_egrep
3181 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3182 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3183 if test "${ac_cv_header_stdc+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3205 rm -f conftest.$ac_objext
3206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207 (eval $ac_compile) 2>conftest.er1
3209 grep -v '^ *+' conftest.er1 >conftest.err
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try='test -z "$ac_c_werror_flag"
3215 || test ! -s conftest.err'
3216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; }; then
3227 ac_cv_header_stdc=yes
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3232 ac_cv_header_stdc=no
3234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236 if test $ac_cv_header_stdc = yes; then
3237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3248 $EGREP "memchr" >/dev/null 2>&1; then
3251 ac_cv_header_stdc=no
3257 if test $ac_cv_header_stdc = yes; then
3258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3269 $EGREP "free" >/dev/null 2>&1; then
3272 ac_cv_header_stdc=no
3278 if test $ac_cv_header_stdc = yes; then
3279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3280 if test "$cross_compiling" = yes; then
3283 cat >conftest.$ac_ext <<_ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3290 #if ((' ' & 0x0FF) == 0x020)
3291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3294 # define ISLOWER(c) \
3295 (('a' <= (c) && (c) <= 'i') \
3296 || ('j' <= (c) && (c) <= 'r') \
3297 || ('s' <= (c) && (c) <= 'z'))
3298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3306 for (i = 0; i < 256; i++)
3307 if (XOR (islower (i), ISLOWER (i))
3308 || toupper (i) != TOUPPER (i))
3313 rm -f conftest$ac_exeext
3314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3315 (eval $ac_link) 2>&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3326 echo "$as_me: program exited with status $ac_status" >&5
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3331 ac_cv_header_stdc=no
3333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3338 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3339 if test $ac_cv_header_stdc = yes; then
3341 cat >>confdefs.h <<\_ACEOF
3342 #define STDC_HEADERS 1
3347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3358 inttypes.h stdint.h unistd.h
3360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3361 echo "$as_me:$LINENO: checking for $ac_header" >&5
3362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 $ac_includes_default
3374 #include <$ac_header>
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378 (eval $ac_compile) 2>conftest.er1
3380 grep -v '^ *+' conftest.er1 >conftest.err
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -z "$ac_c_werror_flag"
3386 || test ! -s conftest.err'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 eval "$as_ac_Header=yes"
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 eval "$as_ac_Header=no"
3405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3410 cat >>confdefs.h <<_ACEOF
3411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3420 for ac_header in paths.h
3422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3424 echo "$as_me:$LINENO: checking for $ac_header" >&5
3425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432 # Is the header compilable?
3433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 $ac_includes_default
3442 #include <$ac_header>
3444 rm -f conftest.$ac_objext
3445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446 (eval $ac_compile) 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try='test -z "$ac_c_werror_flag"
3454 || test ! -s conftest.err'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; } &&
3460 { ac_try='test -s conftest.$ac_objext'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3466 ac_header_compiler=yes
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 ac_header_compiler=no
3473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3475 echo "${ECHO_T}$ac_header_compiler" >&6
3477 # Is the header present?
3478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 #include <$ac_header>
3488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null; then
3496 if test -s conftest.err; then
3497 ac_cpp_err=$ac_c_preproc_warn_flag
3498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505 if test -z "$ac_cpp_err"; then
3506 ac_header_preproc=yes
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 ac_header_preproc=no
3513 rm -f conftest.err conftest.$ac_ext
3514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3515 echo "${ECHO_T}$ac_header_preproc" >&6
3517 # So? What about this header?
3518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3524 ac_header_preproc=yes
3527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3541 ## ------------------------------------------ ##
3542 ## Report this to the AC_PACKAGE_NAME lists. ##
3543 ## ------------------------------------------ ##
3546 sed "s/^/$as_me: WARNING: /" >&2
3549 echo "$as_me:$LINENO: checking for $ac_header" >&5
3550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 eval "$as_ac_Header=\$ac_header_preproc"
3556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3561 cat >>confdefs.h <<_ACEOF
3562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3570 # Check whether --with-mailspool or --without-mailspool was given.
3571 if test "${with_mailspool+set}" = set; then
3572 withval="$with_mailspool"
3573 with_mailspool=${withval}
3575 if test x$with_mailspool != x ; then
3576 pam_mail_spool="\"$with_mailspool\""
3578 if test "$cross_compiling" = yes; then
3579 pam_mail_spool="\"/var/spool/mail\""
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3590 #ifdef _PATH_MAILDIR
3597 rm -f conftest$ac_exeext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3599 (eval $ac_link) 2>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; }; then
3608 pam_mail_spool="_PATH_MAILDIR"
3610 echo "$as_me: program exited with status $ac_status" >&5
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3615 pam_mail_spool="\"/var/spool/mail\""
3617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3621 cat >>confdefs.h <<_ACEOF
3622 #define PAM_PATH_MAILDIR $pam_mail_spool
3626 echo "$as_me:$LINENO: checking for __libc_sched_setscheduler in -lc" >&5
3627 echo $ECHO_N "checking for __libc_sched_setscheduler in -lc... $ECHO_C" >&6
3628 if test "${ac_cv_lib_c___libc_sched_setscheduler+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 ac_check_lib_save_LIBS=$LIBS
3633 cat >conftest.$ac_ext <<_ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3640 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char __libc_sched_setscheduler ();
3650 __libc_sched_setscheduler ();
3655 rm -f conftest.$ac_objext conftest$ac_exeext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3657 (eval $ac_link) 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_lib_c___libc_sched_setscheduler=yes
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 ac_cv_lib_c___libc_sched_setscheduler=no
3684 rm -f conftest.err conftest.$ac_objext \
3685 conftest$ac_exeext conftest.$ac_ext
3686 LIBS=$ac_check_lib_save_LIBS
3688 echo "$as_me:$LINENO: result: $ac_cv_lib_c___libc_sched_setscheduler" >&5
3689 echo "${ECHO_T}$ac_cv_lib_c___libc_sched_setscheduler" >&6
3690 if test $ac_cv_lib_c___libc_sched_setscheduler = yes; then
3698 echo "$as_me:$LINENO: checking for lckpwdf in -lc" >&5
3699 echo $ECHO_N "checking for lckpwdf in -lc... $ECHO_C" >&6
3700 if test "${ac_cv_lib_c_lckpwdf+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_check_lib_save_LIBS=$LIBS
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3712 /* Override any gcc2 internal prototype to avoid an error. */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3727 rm -f conftest.$ac_objext conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_c_werror_flag"
3737 || test ! -s conftest.err'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; } &&
3743 { ac_try='test -s conftest$ac_exeext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_cv_lib_c_lckpwdf=yes
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 ac_cv_lib_c_lckpwdf=no
3756 rm -f conftest.err conftest.$ac_objext \
3757 conftest$ac_exeext conftest.$ac_ext
3758 LIBS=$ac_check_lib_save_LIBS
3760 echo "$as_me:$LINENO: result: $ac_cv_lib_c_lckpwdf" >&5
3761 echo "${ECHO_T}$ac_cv_lib_c_lckpwdf" >&6
3762 if test $ac_cv_lib_c_lckpwdf = yes; then
3770 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3771 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3772 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 ac_check_lib_save_LIBS=$LIBS
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3784 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3799 rm -f conftest.$ac_objext conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>conftest.er1
3803 grep -v '^ *+' conftest.er1 >conftest.err
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest$ac_exeext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 ac_cv_lib_dl_dlopen=yes
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 ac_cv_lib_dl_dlopen=no
3828 rm -f conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
3830 LIBS=$ac_check_lib_save_LIBS
3832 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3833 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3834 if test $ac_cv_lib_dl_dlopen = yes; then
3840 echo "$as_me:$LINENO: checking for FascistCheck in -lcrack" >&5
3841 echo $ECHO_N "checking for FascistCheck in -lcrack... $ECHO_C" >&6
3842 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 ac_check_lib_save_LIBS=$LIBS
3846 LIBS="-lcrack $LIBS"
3847 cat >conftest.$ac_ext <<_ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3854 /* Override any gcc2 internal prototype to avoid an error. */
3858 /* We use char because int might match the return type of a gcc2
3859 builtin and then its argument prototype would still apply. */
3860 char FascistCheck ();
3869 rm -f conftest.$ac_objext conftest$ac_exeext
3870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3871 (eval $ac_link) 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } &&
3878 { ac_try='test -z "$ac_c_werror_flag"
3879 || test ! -s conftest.err'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; } &&
3885 { ac_try='test -s conftest$ac_exeext'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; }; then
3891 ac_cv_lib_crack_FascistCheck=yes
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 ac_cv_lib_crack_FascistCheck=no
3898 rm -f conftest.err conftest.$ac_objext \
3899 conftest$ac_exeext conftest.$ac_ext
3900 LIBS=$ac_check_lib_save_LIBS
3902 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistCheck" >&5
3903 echo "${ECHO_T}$ac_cv_lib_crack_FascistCheck" >&6
3904 if test $ac_cv_lib_crack_FascistCheck = yes; then
3907 cat >>confdefs.h <<\_ACEOF
3908 #define HAVE_LIBCRACK
3917 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
3918 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
3919 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 ac_check_lib_save_LIBS=$LIBS
3923 LIBS="-lcrypt $LIBS"
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3931 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3946 rm -f conftest.$ac_objext conftest$ac_exeext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948 (eval $ac_link) 2>conftest.er1
3950 grep -v '^ *+' conftest.er1 >conftest.err
3952 cat conftest.err >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } &&
3955 { ac_try='test -z "$ac_c_werror_flag"
3956 || test ! -s conftest.err'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; } &&
3962 { ac_try='test -s conftest$ac_exeext'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 ac_cv_lib_crypt_crypt=yes
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 ac_cv_lib_crypt_crypt=no
3975 rm -f conftest.err conftest.$ac_objext \
3976 conftest$ac_exeext conftest.$ac_ext
3977 LIBS=$ac_check_lib_save_LIBS
3979 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
3980 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
3981 if test $ac_cv_lib_crypt_crypt = yes; then
3984 cat >>confdefs.h <<\_ACEOF
3985 #define HAVE_LIBCRYPT
3993 echo "$as_me:$LINENO: checking for logwtmp in -lutil" >&5
3994 echo $ECHO_N "checking for logwtmp in -lutil... $ECHO_C" >&6
3995 if test "${ac_cv_lib_util_logwtmp+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 ac_check_lib_save_LIBS=$LIBS
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4007 /* Override any gcc2 internal prototype to avoid an error. */
4011 /* We use char because int might match the return type of a gcc2
4012 builtin and then its argument prototype would still apply. */
4022 rm -f conftest.$ac_objext conftest$ac_exeext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024 (eval $ac_link) 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_c_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest$ac_exeext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_cv_lib_util_logwtmp=yes
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 ac_cv_lib_util_logwtmp=no
4051 rm -f conftest.err conftest.$ac_objext \
4052 conftest$ac_exeext conftest.$ac_ext
4053 LIBS=$ac_check_lib_save_LIBS
4055 echo "$as_me:$LINENO: result: $ac_cv_lib_util_logwtmp" >&5
4056 echo "${ECHO_T}$ac_cv_lib_util_logwtmp" >&6
4057 if test $ac_cv_lib_util_logwtmp = yes; then
4060 cat >>confdefs.h <<\_ACEOF
4061 #define HAVE_LIBUTIL
4069 echo "$as_me:$LINENO: checking for dbm_store in -lndbm" >&5
4070 echo $ECHO_N "checking for dbm_store in -lndbm... $ECHO_C" >&6
4071 if test "${ac_cv_lib_ndbm_dbm_store+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 ac_check_lib_save_LIBS=$LIBS
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4083 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4098 rm -f conftest.$ac_objext conftest$ac_exeext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4100 (eval $ac_link) 2>conftest.er1
4102 grep -v '^ *+' conftest.er1 >conftest.err
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -z "$ac_c_werror_flag"
4108 || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest$ac_exeext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_lib_ndbm_dbm_store=yes
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 ac_cv_lib_ndbm_dbm_store=no
4127 rm -f conftest.err conftest.$ac_objext \
4128 conftest$ac_exeext conftest.$ac_ext
4129 LIBS=$ac_check_lib_save_LIBS
4131 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_store" >&5
4132 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_store" >&6
4133 if test $ac_cv_lib_ndbm_dbm_store = yes; then
4136 cat >>confdefs.h <<\_ACEOF
4137 #define HAVE_LIBNDBM
4145 echo "$as_me:$LINENO: checking for dbm_store in -ldb" >&5
4146 echo $ECHO_N "checking for dbm_store in -ldb... $ECHO_C" >&6
4147 if test "${ac_cv_lib_db_dbm_store+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 ac_check_lib_save_LIBS=$LIBS
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4159 /* Override any gcc2 internal prototype to avoid an error. */
4163 /* We use char because int might match the return type of a gcc2
4164 builtin and then its argument prototype would still apply. */
4174 rm -f conftest.$ac_objext conftest$ac_exeext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4176 (eval $ac_link) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_lib_db_dbm_store=yes
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 ac_cv_lib_db_dbm_store=no
4203 rm -f conftest.err conftest.$ac_objext \
4204 conftest$ac_exeext conftest.$ac_ext
4205 LIBS=$ac_check_lib_save_LIBS
4207 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_store" >&5
4208 echo "${ECHO_T}$ac_cv_lib_db_dbm_store" >&6
4209 if test $ac_cv_lib_db_dbm_store = yes; then
4212 cat >>confdefs.h <<\_ACEOF
4220 if test x$HAVE_LIBDB != xyes ; then
4221 echo "$as_me:$LINENO: checking for db_create in -ldb" >&5
4222 echo $ECHO_N "checking for db_create in -ldb... $ECHO_C" >&6
4223 if test "${ac_cv_lib_db_db_create+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 ac_check_lib_save_LIBS=$LIBS
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4235 /* Override any gcc2 internal prototype to avoid an error. */
4239 /* We use char because int might match the return type of a gcc2
4240 builtin and then its argument prototype would still apply. */
4250 rm -f conftest.$ac_objext conftest$ac_exeext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4252 (eval $ac_link) 2>conftest.er1
4254 grep -v '^ *+' conftest.er1 >conftest.err
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -z "$ac_c_werror_flag"
4260 || test ! -s conftest.err'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest$ac_exeext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 ac_cv_lib_db_db_create=yes
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4277 ac_cv_lib_db_db_create=no
4279 rm -f conftest.err conftest.$ac_objext \
4280 conftest$ac_exeext conftest.$ac_ext
4281 LIBS=$ac_check_lib_save_LIBS
4283 echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_create" >&5
4284 echo "${ECHO_T}$ac_cv_lib_db_db_create" >&6
4285 if test $ac_cv_lib_db_db_create = yes; then
4288 cat >>confdefs.h <<\_ACEOF
4298 echo "$as_me:$LINENO: checking for yylex in -lfl" >&5
4299 echo $ECHO_N "checking for yylex in -lfl... $ECHO_C" >&6
4300 if test "${ac_cv_lib_fl_yylex+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 ac_check_lib_save_LIBS=$LIBS
4304 LIBS="-lfl HAVE_LIBFL=no $LIBS"
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4312 /* Override any gcc2 internal prototype to avoid an error. */
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329 (eval $ac_link) 2>conftest.er1
4331 grep -v '^ *+' conftest.er1 >conftest.err
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest$ac_exeext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_lib_fl_yylex=yes
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 ac_cv_lib_fl_yylex=no
4356 rm -f conftest.err conftest.$ac_objext \
4357 conftest$ac_exeext conftest.$ac_ext
4358 LIBS=$ac_check_lib_save_LIBS
4360 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yylex" >&5
4361 echo "${ECHO_T}$ac_cv_lib_fl_yylex" >&6
4362 if test $ac_cv_lib_fl_yylex = yes; then
4367 cat >>confdefs.h <<\_ACEOF
4374 echo "$as_me:$LINENO: checking for yp_maplist in -lnsl" >&5
4375 echo $ECHO_N "checking for yp_maplist in -lnsl... $ECHO_C" >&6
4376 if test "${ac_cv_lib_nsl_yp_maplist+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 ac_check_lib_save_LIBS=$LIBS
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4388 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag"
4413 || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 ac_cv_lib_nsl_yp_maplist=yes
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_cv_lib_nsl_yp_maplist=no
4432 rm -f conftest.err conftest.$ac_objext \
4433 conftest$ac_exeext conftest.$ac_ext
4434 LIBS=$ac_check_lib_save_LIBS
4436 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_maplist" >&5
4437 echo "${ECHO_T}$ac_cv_lib_nsl_yp_maplist" >&6
4438 if test $ac_cv_lib_nsl_yp_maplist = yes; then
4441 cat >>confdefs.h <<\_ACEOF
4451 echo "$as_me:$LINENO: checking for getfilecon in -lselinux" >&5
4452 echo $ECHO_N "checking for getfilecon in -lselinux... $ECHO_C" >&6
4453 if test "${ac_cv_lib_selinux_getfilecon+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 ac_check_lib_save_LIBS=$LIBS
4457 LIBS="-lselinux $LIBS"
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4465 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4480 rm -f conftest.$ac_objext conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>conftest.er1
4484 grep -v '^ *+' conftest.er1 >conftest.err
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest$ac_exeext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_lib_selinux_getfilecon=yes
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_cv_lib_selinux_getfilecon=no
4509 rm -f conftest.err conftest.$ac_objext \
4510 conftest$ac_exeext conftest.$ac_ext
4511 LIBS=$ac_check_lib_save_LIBS
4513 echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getfilecon" >&5
4514 echo "${ECHO_T}$ac_cv_lib_selinux_getfilecon" >&6
4515 if test $ac_cv_lib_selinux_getfilecon = yes; then
4516 HAVE_LIBSELINUX=yes ;
4518 cat >>confdefs.h <<\_ACEOF
4519 #define HAVE_LIBSELINUX
4528 if test $HAVE_LIBSELINUX = yes ; then
4529 pwdblibs="$pwdblibs -lselinux"
4531 if test $HAVE_LIBNSL = yes ; then
4532 pwdblibs="$pwdblibs -lnsl"
4534 echo "$as_me:$LINENO: checking for pwdb_db_name in -lpwdb" >&5
4535 echo $ECHO_N "checking for pwdb_db_name in -lpwdb... $ECHO_C" >&6
4536 if test "${ac_cv_lib_pwdb_pwdb_db_name+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 ac_check_lib_save_LIBS=$LIBS
4540 LIBS="-lpwdb $pwdblibs $LIBS"
4541 cat >conftest.$ac_ext <<_ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4548 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4554 char pwdb_db_name ();
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>conftest.er1
4567 grep -v '^ *+' conftest.er1 >conftest.err
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_lib_pwdb_pwdb_db_name=yes
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 ac_cv_lib_pwdb_pwdb_db_name=no
4592 rm -f conftest.err conftest.$ac_objext \
4593 conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4596 echo "$as_me:$LINENO: result: $ac_cv_lib_pwdb_pwdb_db_name" >&5
4597 echo "${ECHO_T}$ac_cv_lib_pwdb_pwdb_db_name" >&6
4598 if test $ac_cv_lib_pwdb_pwdb_db_name = yes; then
4601 cat >>confdefs.h <<\_ACEOF
4602 #define HAVE_LIBPWDB
4612 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4613 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4614 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 ac_check_lib_save_LIBS=$LIBS
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4626 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643 (eval $ac_link) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest$ac_exeext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ac_cv_lib_fl_yywrap=yes
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 ac_cv_lib_fl_yywrap=no
4670 rm -f conftest.err conftest.$ac_objext \
4671 conftest$ac_exeext conftest.$ac_ext
4672 LIBS=$ac_check_lib_save_LIBS
4674 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4675 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4676 if test $ac_cv_lib_fl_yywrap = yes; then
4679 cat >>confdefs.h <<\_ACEOF
4680 #define HAVE_LIBFLEX
4688 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4689 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4690 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 ac_check_lib_save_LIBS=$LIBS
4695 cat >conftest.$ac_ext <<_ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4702 /* Override any gcc2 internal prototype to avoid an error. */
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4717 rm -f conftest.$ac_objext conftest$ac_exeext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719 (eval $ac_link) 2>conftest.er1
4721 grep -v '^ *+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest$ac_exeext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_cv_lib_l_yywrap=yes
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_cv_lib_l_yywrap=no
4746 rm -f conftest.err conftest.$ac_objext \
4747 conftest$ac_exeext conftest.$ac_ext
4748 LIBS=$ac_check_lib_save_LIBS
4750 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4751 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4752 if test $ac_cv_lib_l_yywrap = yes; then
4755 cat >>confdefs.h <<\_ACEOF
4771 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4772 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4773 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4774 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 cat >conftest.$ac_ext <<_ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h. */
4784 #include <sys/types.h>
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_c_werror_flag"
4806 || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 eval "$as_ac_Header=yes"
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 eval "$as_ac_Header=no"
4825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4830 cat >>confdefs.h <<_ACEOF
4831 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4834 ac_header_dirent=$ac_hdr; break
4838 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4839 if test $ac_header_dirent = dirent.h; then
4840 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4841 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4842 if test "${ac_cv_search_opendir+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 ac_func_search_save_LIBS=$LIBS
4846 ac_cv_search_opendir=no
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4869 rm -f conftest.$ac_objext conftest$ac_exeext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4871 (eval $ac_link) 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -z "$ac_c_werror_flag"
4879 || test ! -s conftest.err'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try='test -s conftest$ac_exeext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_cv_search_opendir="none required"
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4897 rm -f conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext conftest.$ac_ext
4899 if test "$ac_cv_search_opendir" = no; then
4900 for ac_lib in dir; do
4901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4909 /* Override any gcc2 internal prototype to avoid an error. */
4913 /* We use char because int might match the return type of a gcc2
4914 builtin and then its argument prototype would still apply. */
4924 rm -f conftest.$ac_objext conftest$ac_exeext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4926 (eval $ac_link) 2>conftest.er1
4928 grep -v '^ *+' conftest.er1 >conftest.err
4930 cat conftest.err >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -z "$ac_c_werror_flag"
4934 || test ! -s conftest.err'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; } &&
4940 { ac_try='test -s conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_cv_search_opendir="-l$ac_lib"
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4953 rm -f conftest.err conftest.$ac_objext \
4954 conftest$ac_exeext conftest.$ac_ext
4957 LIBS=$ac_func_search_save_LIBS
4959 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4960 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4961 if test "$ac_cv_search_opendir" != no; then
4962 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4967 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4968 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4969 if test "${ac_cv_search_opendir+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 ac_func_search_save_LIBS=$LIBS
4973 ac_cv_search_opendir=no
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4981 /* Override any gcc2 internal prototype to avoid an error. */
4985 /* We use char because int might match the return type of a gcc2
4986 builtin and then its argument prototype would still apply. */
4996 rm -f conftest.$ac_objext conftest$ac_exeext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4998 (eval $ac_link) 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -z "$ac_c_werror_flag"
5006 || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest$ac_exeext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_cv_search_opendir="none required"
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5024 rm -f conftest.err conftest.$ac_objext \
5025 conftest$ac_exeext conftest.$ac_ext
5026 if test "$ac_cv_search_opendir" = no; then
5028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag"
5061 || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest$ac_exeext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_cv_search_opendir="-l$ac_lib"
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5080 rm -f conftest.err conftest.$ac_objext \
5081 conftest$ac_exeext conftest.$ac_ext
5084 LIBS=$ac_func_search_save_LIBS
5086 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5087 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5088 if test "$ac_cv_search_opendir" != no; then
5089 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5095 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5097 if test "${ac_cv_header_stdc+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5119 rm -f conftest.$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_cv_header_stdc=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ac_cv_header_stdc=no
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5150 if test $ac_cv_header_stdc = yes; then
5151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5152 cat >conftest.$ac_ext <<_ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5162 $EGREP "memchr" >/dev/null 2>&1; then
5165 ac_cv_header_stdc=no
5171 if test $ac_cv_header_stdc = yes; then
5172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183 $EGREP "free" >/dev/null 2>&1; then
5186 ac_cv_header_stdc=no
5192 if test $ac_cv_header_stdc = yes; then
5193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5194 if test "$cross_compiling" = yes; then
5197 cat >conftest.$ac_ext <<_ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5204 #if ((' ' & 0x0FF) == 0x020)
5205 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5206 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5208 # define ISLOWER(c) \
5209 (('a' <= (c) && (c) <= 'i') \
5210 || ('j' <= (c) && (c) <= 'r') \
5211 || ('s' <= (c) && (c) <= 'z'))
5212 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5215 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5220 for (i = 0; i < 256; i++)
5221 if (XOR (islower (i), ISLOWER (i))
5222 || toupper (i) != TOUPPER (i))
5227 rm -f conftest$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5240 echo "$as_me: program exited with status $ac_status" >&5
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5245 ac_cv_header_stdc=no
5247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5251 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5252 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5253 if test $ac_cv_header_stdc = yes; then
5255 cat >>confdefs.h <<\_ACEOF
5256 #define STDC_HEADERS 1
5261 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5262 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5263 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 cat >conftest.$ac_ext <<_ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #include <sys/types.h>
5273 #include <sys/wait.h>
5275 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5278 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5286 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_header_sys_wait_h=yes
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_header_sys_wait_h=no
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5323 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5324 if test $ac_cv_header_sys_wait_h = yes; then
5326 cat >>confdefs.h <<\_ACEOF
5327 #define HAVE_SYS_WAIT_H 1
5343 for ac_header in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h sys/fsuid.h inittypes.h
5345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5347 echo "$as_me:$LINENO: checking for $ac_header" >&5
5348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5355 # Is the header compilable?
5356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 $ac_includes_default
5365 #include <$ac_header>
5367 rm -f conftest.$ac_objext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>conftest.er1
5371 grep -v '^ *+' conftest.er1 >conftest.err
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try='test -z "$ac_c_werror_flag"
5377 || test ! -s conftest.err'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; } &&
5383 { ac_try='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_header_compiler=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_header_compiler=no
5396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5398 echo "${ECHO_T}$ac_header_compiler" >&6
5400 # Is the header present?
5401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #include <$ac_header>
5411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5414 grep -v '^ *+' conftest.er1 >conftest.err
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } >/dev/null; then
5419 if test -s conftest.err; then
5420 ac_cpp_err=$ac_c_preproc_warn_flag
5421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5428 if test -z "$ac_cpp_err"; then
5429 ac_header_preproc=yes
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 ac_header_preproc=no
5436 rm -f conftest.err conftest.$ac_ext
5437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5438 echo "${ECHO_T}$ac_header_preproc" >&6
5440 # So? What about this header?
5441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5447 ac_header_preproc=yes
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5464 ## ------------------------------------------ ##
5465 ## Report this to the AC_PACKAGE_NAME lists. ##
5466 ## ------------------------------------------ ##
5469 sed "s/^/$as_me: WARNING: /" >&2
5472 echo "$as_me:$LINENO: checking for $ac_header" >&5
5473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 eval "$as_ac_Header=\$ac_header_preproc"
5479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5484 cat >>confdefs.h <<_ACEOF
5485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5494 for ac_header in crypt.h
5496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5498 echo "$as_me:$LINENO: checking for $ac_header" >&5
5499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5506 # Is the header compilable?
5507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5509 cat >conftest.$ac_ext <<_ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515 $ac_includes_default
5516 #include <$ac_header>
5518 rm -f conftest.$ac_objext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5520 (eval $ac_compile) 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_c_werror_flag"
5528 || test ! -s conftest.err'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; } &&
5534 { ac_try='test -s conftest.$ac_objext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_header_compiler=yes
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_header_compiler=no
5547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5549 echo "${ECHO_T}$ac_header_compiler" >&6
5551 # Is the header present?
5552 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5554 cat >conftest.$ac_ext <<_ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 #include <$ac_header>
5562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } >/dev/null; then
5570 if test -s conftest.err; then
5571 ac_cpp_err=$ac_c_preproc_warn_flag
5572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5579 if test -z "$ac_cpp_err"; then
5580 ac_header_preproc=yes
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 ac_header_preproc=no
5587 rm -f conftest.err conftest.$ac_ext
5588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5589 echo "${ECHO_T}$ac_header_preproc" >&6
5591 # So? What about this header?
5592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5598 ac_header_preproc=yes
5601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5615 ## ------------------------------------------ ##
5616 ## Report this to the AC_PACKAGE_NAME lists. ##
5617 ## ------------------------------------------ ##
5620 sed "s/^/$as_me: WARNING: /" >&2
5623 echo "$as_me:$LINENO: checking for $ac_header" >&5
5624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 eval "$as_ac_Header=\$ac_header_preproc"
5630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5635 cat >>confdefs.h <<_ACEOF
5636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5646 for ac_header in ndbm.h db.h
5648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5650 echo "$as_me:$LINENO: checking for $ac_header" >&5
5651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5658 # Is the header compilable?
5659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5661 cat >conftest.$ac_ext <<_ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 $ac_includes_default
5668 #include <$ac_header>
5670 rm -f conftest.$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>conftest.er1
5674 grep -v '^ *+' conftest.er1 >conftest.err
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_header_compiler=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_header_compiler=no
5699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5701 echo "${ECHO_T}$ac_header_compiler" >&6
5703 # Is the header present?
5704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5706 cat >conftest.$ac_ext <<_ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #include <$ac_header>
5714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5717 grep -v '^ *+' conftest.er1 >conftest.err
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } >/dev/null; then
5722 if test -s conftest.err; then
5723 ac_cpp_err=$ac_c_preproc_warn_flag
5724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5731 if test -z "$ac_cpp_err"; then
5732 ac_header_preproc=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_header_preproc=no
5739 rm -f conftest.err conftest.$ac_ext
5740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5741 echo "${ECHO_T}$ac_header_preproc" >&6
5743 # So? What about this header?
5744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5750 ac_header_preproc=yes
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5767 ## ------------------------------------------ ##
5768 ## Report this to the AC_PACKAGE_NAME lists. ##
5769 ## ------------------------------------------ ##
5772 sed "s/^/$as_me: WARNING: /" >&2
5775 echo "$as_me:$LINENO: checking for $ac_header" >&5
5776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 eval "$as_ac_Header=\$ac_header_preproc"
5782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5787 cat >>confdefs.h <<_ACEOF
5788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5795 HAVE_NDBM_H=$ac_cv_header_ndbm_h
5801 for ac_header in lastlog.h utmp.h utmpx.h
5803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5805 echo "$as_me:$LINENO: checking for $ac_header" >&5
5806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5813 # Is the header compilable?
5814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5816 cat >conftest.$ac_ext <<_ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5823 #include <$ac_header>
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_header_compiler=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 ac_header_compiler=no
5854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5856 echo "${ECHO_T}$ac_header_compiler" >&6
5858 # Is the header present?
5859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5861 cat >conftest.$ac_ext <<_ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 #include <$ac_header>
5869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } >/dev/null; then
5877 if test -s conftest.err; then
5878 ac_cpp_err=$ac_c_preproc_warn_flag
5879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5886 if test -z "$ac_cpp_err"; then
5887 ac_header_preproc=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_header_preproc=no
5894 rm -f conftest.err conftest.$ac_ext
5895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5896 echo "${ECHO_T}$ac_header_preproc" >&6
5898 # So? What about this header?
5899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5905 ac_header_preproc=yes
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5922 ## ------------------------------------------ ##
5923 ## Report this to the AC_PACKAGE_NAME lists. ##
5924 ## ------------------------------------------ ##
5927 sed "s/^/$as_me: WARNING: /" >&2
5930 echo "$as_me:$LINENO: checking for $ac_header" >&5
5931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 eval "$as_ac_Header=\$ac_header_preproc"
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5942 cat >>confdefs.h <<_ACEOF
5943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5952 echo "$as_me:$LINENO: checking path to cracklib dictionary" >&5
5953 echo $ECHO_N "checking path to cracklib dictionary... $ECHO_C" >&6
5954 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
5955 /usr/local/lib /usr/local/share/lib /usr/share/cracklib"
5956 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
5957 CRACKLIB_DICTPATH=""
5958 for d in $DICT_DIR_CANDIDATES ; do
5959 for f in $DICT_FILE_CANDIDATES ; do
5960 if test -r $d/$f.hwm ; then
5961 CRACKLIB_DICTPATH=$d/$f
5963 elif test -r $d/dict/$f.hwm ; then
5964 CRACKLIB_DICTPATH=$d/dict/$f
5969 if test -z "$CRACKLIB_DICTPATH" ; then
5970 { echo "$as_me:$LINENO: WARNING: none found - pam_cracklib will not be built" >&5
5971 echo "$as_me: WARNING: none found - pam_cracklib will not be built" >&2;}
5973 echo "$as_me:$LINENO: result: $CRACKLIB_DICTPATH" >&5
5974 echo "${ECHO_T}$CRACKLIB_DICTPATH" >&6
5979 GCC_WARNINGS="-Wall -Wwrite-strings \
5980 -Wpointer-arith -Wcast-qual -Wcast-align \
5981 -Wstrict-prototypes -Wmissing-prototypes \
5982 -Wnested-externs -Winline -Wshadow"
5984 if test "$GCC" = yes; then
5986 ### May need per-OS attention
5987 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
5991 LD_D="$CC -shared $LDFLAGS"
5992 WARNINGS="$GCC_WARNINGS"
5996 LD_L="$CC -shared $LDFLAGS"
5999 CC_STATIC="-Xlinker -export-dynamic"
6002 OS_CFLAGS="-ansi -pedantic"
6003 LD_D="gcc -shared -Xlinker -x"
6004 WARNINGS="$GCC_WARNINGS"
6008 LD_L="$LD -x -shared"
6011 CC_STATIC="-Xlinker -export-dynamic"
6017 LD_L=ld -bexpall -bM:SRE -bnoentry
6028 ### Non-gcc needs attention on per-OS basis
6032 # add some stuff here (see sourceforge bug 534205)
6033 # DOCDIR=/System/Documentation/Administration/Libraries/PAM
6034 # MANDIR=/usr/share/man
6037 ### Support for Solaris-C
6042 LD_D="cc -z text -G -R."
6049 OSRELEASE=`uname -r`
6050 if test "$OSRELEASE" = 6.5; then
6052 WARNINGS="-fullwarn"
6053 PIC= #PIC code is default for IRIX
6054 LD="cc -shared" # modules friendly approach
6056 LD_L="ld -G -z redlocsym"
6061 echo "IRIX prior to 6.5 not allowed for"
6065 *) echo "Native compiler on $OS is not yet supported"
6082 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6083 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6084 if test "${ac_cv_c_bigendian+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 # See if sys/param.h defines the BYTE_ORDER macro.
6088 cat >conftest.$ac_ext <<_ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <sys/types.h>
6095 #include <sys/param.h>
6100 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6108 rm -f conftest.$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 # It does; now see whether it defined to BIG_ENDIAN or not.
6131 cat >conftest.$ac_ext <<_ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 #include <sys/types.h>
6138 #include <sys/param.h>
6143 #if BYTE_ORDER != BIG_ENDIAN
6151 rm -f conftest.$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_c_werror_flag"
6161 || test ! -s conftest.err'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; } &&
6167 { ac_try='test -s conftest.$ac_objext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_c_bigendian=yes
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_cv_c_bigendian=no
6180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 # It does not; compile a test program.
6186 if test "$cross_compiling" = yes; then
6187 # try to guess the endianness by grepping values into an object file
6188 ac_cv_c_bigendian=unknown
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6196 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6197 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6198 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6199 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6200 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6204 _ascii (); _ebcdic ();
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6232 ac_cv_c_bigendian=yes
6234 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6235 if test "$ac_cv_c_bigendian" = unknown; then
6236 ac_cv_c_bigendian=no
6238 # finding both strings is unlikely to happen, but who knows?
6239 ac_cv_c_bigendian=unknown
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249 cat >conftest.$ac_ext <<_ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6258 /* Are we little or big endian? From Harbison&Steele. */
6262 char c[sizeof (long)];
6265 exit (u.c[sizeof (long) - 1] == 1);
6268 rm -f conftest$ac_exeext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 ac_cv_c_bigendian=no
6281 echo "$as_me: program exited with status $ac_status" >&5
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_cv_c_bigendian=yes
6288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6293 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6294 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6295 case $ac_cv_c_bigendian in
6298 cat >>confdefs.h <<\_ACEOF
6299 #define WORDS_BIGENDIAN 1
6305 { { echo "$as_me:$LINENO: error: unknown endianness
6306 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6307 echo "$as_me: error: unknown endianness
6308 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6309 { (exit 1); exit 1; }; } ;;
6312 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6313 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6314 if test "${ac_cv_c_const+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 cat >conftest.$ac_ext <<_ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6327 /* FIXME: Include the comments suggested by Paul. */
6329 /* Ultrix mips cc rejects this. */
6330 typedef int charset[2];
6332 /* SunOS 4.1.1 cc rejects this. */
6333 char const *const *ccp;
6335 /* NEC SVR4.0.2 mips cc rejects this. */
6336 struct point {int x, y;};
6337 static struct point const zero = {0,0};
6338 /* AIX XL C 1.02.0.0 rejects this.
6339 It does not let you subtract one const X* pointer from another in
6340 an arm of an if-expression whose if-part is not a constant
6342 const char *g = "string";
6343 ccp = &g + (g ? g-g : 0);
6344 /* HPUX 7.0 cc rejects these. */
6347 ccp = (char const *const *) p;
6348 { /* SCO 3.2v4 cc rejects this. */
6350 char const *s = 0 ? (char *) 0 : (char const *) 0;
6354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6356 const int *foo = &x[0];
6359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6360 typedef const int *iptr;
6364 { /* AIX XL C 1.02.0.0 rejects this saying
6365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6366 struct s { int j; const int *ap[3]; };
6367 struct s *b; b->j = 5;
6369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6378 rm -f conftest.$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -z "$ac_c_werror_flag"
6388 || test ! -s conftest.err'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6409 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6410 echo "${ECHO_T}$ac_cv_c_const" >&6
6411 if test $ac_cv_c_const = no; then
6413 cat >>confdefs.h <<\_ACEOF
6419 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6420 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6421 if test "${ac_cv_type_uid_t+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 cat >conftest.$ac_ext <<_ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 #include <sys/types.h>
6433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6434 $EGREP "uid_t" >/dev/null 2>&1; then
6435 ac_cv_type_uid_t=yes
6442 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6443 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6444 if test $ac_cv_type_uid_t = no; then
6446 cat >>confdefs.h <<\_ACEOF
6451 cat >>confdefs.h <<\_ACEOF
6457 echo "$as_me:$LINENO: checking for off_t" >&5
6458 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6459 if test "${ac_cv_type_off_t+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6484 grep -v '^ *+' conftest.er1 >conftest.err
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_cv_type_off_t=yes
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6511 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6512 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6513 if test $ac_cv_type_off_t = yes; then
6517 cat >>confdefs.h <<_ACEOF
6523 echo "$as_me:$LINENO: checking for pid_t" >&5
6524 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6525 if test "${ac_cv_type_pid_t+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6546 rm -f conftest.$ac_objext
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>conftest.er1
6550 grep -v '^ *+' conftest.er1 >conftest.err
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -z "$ac_c_werror_flag"
6556 || test ! -s conftest.err'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; } &&
6562 { ac_try='test -s conftest.$ac_objext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 ac_cv_type_pid_t=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6578 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6579 if test $ac_cv_type_pid_t = yes; then
6583 cat >>confdefs.h <<_ACEOF
6589 echo "$as_me:$LINENO: checking for size_t" >&5
6590 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6591 if test "${ac_cv_type_size_t+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 cat >conftest.$ac_ext <<_ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 $ac_includes_default
6606 if (sizeof (size_t))
6612 rm -f conftest.$ac_objext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>conftest.er1
6616 grep -v '^ *+' conftest.er1 >conftest.err
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest.$ac_objext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_type_size_t=yes
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 ac_cv_type_size_t=no
6641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6644 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6645 if test $ac_cv_type_size_t = yes; then
6649 cat >>confdefs.h <<_ACEOF
6650 #define size_t unsigned
6655 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6656 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6657 if test "${ac_cv_header_time+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 cat >conftest.$ac_ext <<_ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6666 #include <sys/types.h>
6667 #include <sys/time.h>
6673 if ((struct tm *) 0)
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>conftest.er1
6683 grep -v '^ *+' conftest.er1 >conftest.err
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_header_time=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 ac_cv_header_time=no
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6711 echo "${ECHO_T}$ac_cv_header_time" >&6
6712 if test $ac_cv_header_time = yes; then
6714 cat >>confdefs.h <<\_ACEOF
6715 #define TIME_WITH_SYS_TIME 1
6720 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6721 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6722 if test "${ac_cv_struct_tm+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 cat >conftest.$ac_ext <<_ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <sys/types.h>
6737 struct tm *tp; tp->tm_sec;
6742 rm -f conftest.$ac_objext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_c_werror_flag"
6752 || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_struct_tm=time.h
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 ac_cv_struct_tm=sys/time.h
6771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6773 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6774 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6775 if test $ac_cv_struct_tm = sys/time.h; then
6777 cat >>confdefs.h <<\_ACEOF
6778 #define TM_IN_SYS_TIME 1
6784 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6785 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6786 if test "${ac_cv_type_getgroups+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 if test "$cross_compiling" = yes; then
6790 ac_cv_type_getgroups=cross
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 /* Thanks to Mike Rendell for this test. */
6799 #include <sys/types.h>
6802 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6809 union { gid_t gval; long lval; } val;
6812 for (i = 0; i < NGID; i++)
6813 gidset[i] = val.gval;
6814 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6816 /* Exit non-zero if getgroups seems to require an array of ints. This
6817 happens when gid_t is short but getgroups modifies an array of ints. */
6818 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6821 rm -f 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); } && { ac_try='./conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_cv_type_getgroups=gid_t
6834 echo "$as_me: program exited with status $ac_status" >&5
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_cv_type_getgroups=int
6841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6843 if test $ac_cv_type_getgroups = cross; then
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6855 ac_cv_type_getgroups=gid_t
6857 ac_cv_type_getgroups=int
6863 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6864 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6866 cat >>confdefs.h <<_ACEOF
6867 #define GETGROUPS_T $ac_cv_type_getgroups
6871 if test $ac_cv_c_compiler_gnu = yes; then
6872 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6873 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6874 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 ac_pattern="Autoconf.*'x'"
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6888 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6889 ac_cv_prog_gcc_traditional=yes
6891 ac_cv_prog_gcc_traditional=no
6896 if test $ac_cv_prog_gcc_traditional = no; then
6897 cat >conftest.$ac_ext <<_ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6907 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6908 ac_cv_prog_gcc_traditional=yes
6914 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6915 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6916 if test $ac_cv_prog_gcc_traditional = yes; then
6917 CC="$CC -traditional"
6921 echo "$as_me:$LINENO: checking for working memcmp" >&5
6922 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6923 if test "${ac_cv_func_memcmp_working+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 if test "$cross_compiling" = yes; then
6927 ac_cv_func_memcmp_working=no
6929 cat >conftest.$ac_ext <<_ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 $ac_includes_default
6940 /* Some versions of memcmp are not 8-bit clean. */
6941 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6942 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6945 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6946 or more and with at least one buffer not starting on a 4-byte boundary.
6947 William Lewis provided this test program. */
6952 for (i = 0; i < 4; i++)
6956 strcpy (a, "--------01111111");
6957 strcpy (b, "--------10000000");
6958 if (memcmp (a, b, 16) >= 0)
6968 rm -f conftest$ac_exeext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970 (eval $ac_link) 2>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; }; then
6979 ac_cv_func_memcmp_working=yes
6981 echo "$as_me: program exited with status $ac_status" >&5
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6986 ac_cv_func_memcmp_working=no
6988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6991 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6992 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
6993 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
6994 "memcmp.$ac_objext" | \
6995 *" memcmp.$ac_objext" | \
6996 "memcmp.$ac_objext "* | \
6997 *" memcmp.$ac_objext "* ) ;;
6998 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
7003 for ac_func in vprintf
7005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7006 echo "$as_me:$LINENO: checking for $ac_func" >&5
7007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7008 if eval "test \"\${$as_ac_var+set}\" = set"; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 cat >conftest.$ac_ext <<_ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7019 #define $ac_func innocuous_$ac_func
7021 /* System header to define __stub macros and hopefully few prototypes,
7022 which can conflict with char $ac_func (); below.
7023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7024 <limits.h> exists even on freestanding compilers. */
7027 # include <limits.h>
7029 # include <assert.h>
7034 /* Override any gcc2 internal prototype to avoid an error. */
7039 /* We use char because int might match the return type of a gcc2
7040 builtin and then its argument prototype would still apply. */
7042 /* The GNU C library defines this for functions which it implements
7043 to always fail with ENOSYS. Some functions are actually named
7044 something starting with __ and the normal name is an alias. */
7045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7048 char (*f) () = $ac_func;
7057 return f != $ac_func;
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>conftest.er1
7066 grep -v '^ *+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -z "$ac_c_werror_flag"
7072 || test ! -s conftest.err'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; } &&
7078 { ac_try='test -s conftest$ac_exeext'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7084 eval "$as_ac_var=yes"
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 eval "$as_ac_var=no"
7091 rm -f conftest.err conftest.$ac_objext \
7092 conftest$ac_exeext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7096 if test `eval echo '${'$as_ac_var'}'` = yes; then
7097 cat >>confdefs.h <<_ACEOF
7098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7101 echo "$as_me:$LINENO: checking for _doprnt" >&5
7102 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7103 if test "${ac_cv_func__doprnt+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7114 #define _doprnt innocuous__doprnt
7116 /* System header to define __stub macros and hopefully few prototypes,
7117 which can conflict with char _doprnt (); below.
7118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7119 <limits.h> exists even on freestanding compilers. */
7122 # include <limits.h>
7124 # include <assert.h>
7129 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7137 /* The GNU C library defines this for functions which it implements
7138 to always fail with ENOSYS. Some functions are actually named
7139 something starting with __ and the normal name is an alias. */
7140 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7143 char (*f) () = _doprnt;
7152 return f != _doprnt;
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_c_werror_flag"
7167 || test ! -s conftest.err'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try='test -s conftest$ac_exeext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_cv_func__doprnt=yes
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_cv_func__doprnt=no
7186 rm -f conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7189 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7190 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7191 if test $ac_cv_func__doprnt = yes; then
7193 cat >>confdefs.h <<\_ACEOF
7194 #define HAVE_DOPRNT 1
7214 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
7216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7217 echo "$as_me:$LINENO: checking for $ac_func" >&5
7218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7219 if eval "test \"\${$as_ac_var+set}\" = set"; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 cat >conftest.$ac_ext <<_ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7230 #define $ac_func innocuous_$ac_func
7232 /* System header to define __stub macros and hopefully few prototypes,
7233 which can conflict with char $ac_func (); below.
7234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235 <limits.h> exists even on freestanding compilers. */
7238 # include <limits.h>
7240 # include <assert.h>
7245 /* Override any gcc2 internal prototype to avoid an error. */
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7259 char (*f) () = $ac_func;
7268 return f != $ac_func;
7273 rm -f conftest.$ac_objext conftest$ac_exeext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7275 (eval $ac_link) 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest$ac_exeext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 eval "$as_ac_var=yes"
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 eval "$as_ac_var=no"
7302 rm -f conftest.err conftest.$ac_objext \
7303 conftest$ac_exeext conftest.$ac_ext
7305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7307 if test `eval echo '${'$as_ac_var'}'` = yes; then
7308 cat >>confdefs.h <<_ACEOF
7309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7322 for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r getgrouplist
7324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7325 echo "$as_me:$LINENO: checking for $ac_func" >&5
7326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7327 if eval "test \"\${$as_ac_var+set}\" = set"; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 cat >conftest.$ac_ext <<_ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7338 #define $ac_func innocuous_$ac_func
7340 /* System header to define __stub macros and hopefully few prototypes,
7341 which can conflict with char $ac_func (); below.
7342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7343 <limits.h> exists even on freestanding compilers. */
7346 # include <limits.h>
7348 # include <assert.h>
7353 /* Override any gcc2 internal prototype to avoid an error. */
7358 /* We use char because int might match the return type of a gcc2
7359 builtin and then its argument prototype would still apply. */
7361 /* The GNU C library defines this for functions which it implements
7362 to always fail with ENOSYS. Some functions are actually named
7363 something starting with __ and the normal name is an alias. */
7364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7367 char (*f) () = $ac_func;
7376 return f != $ac_func;
7381 rm -f conftest.$ac_objext conftest$ac_exeext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383 (eval $ac_link) 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -z "$ac_c_werror_flag"
7391 || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 eval "$as_ac_var=yes"
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7408 eval "$as_ac_var=no"
7410 rm -f conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7415 if test `eval echo '${'$as_ac_var'}'` = yes; then
7416 cat >>confdefs.h <<_ACEOF
7417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7424 # Extract the first word of "sgml2txt", so it can be a program name with args.
7425 set dummy sgml2txt; ac_word=$2
7426 echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7428 if test "${ac_cv_prog_HAVE_SGML2TXT+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 if test -n "$HAVE_SGML2TXT"; then
7432 ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_HAVE_SGML2TXT="yes"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
7451 HAVE_SGML2TXT=$ac_cv_prog_HAVE_SGML2TXT
7452 if test -n "$HAVE_SGML2TXT"; then
7453 echo "$as_me:$LINENO: result: $HAVE_SGML2TXT" >&5
7454 echo "${ECHO_T}$HAVE_SGML2TXT" >&6
7456 echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6
7460 # Extract the first word of "sgml2html", so it can be a program name with args.
7461 set dummy sgml2html; ac_word=$2
7462 echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7464 if test "${ac_cv_prog_HAVE_SGML2HTML+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 if test -n "$HAVE_SGML2HTML"; then
7468 ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_HAVE_SGML2HTML="yes"
7478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
7487 HAVE_SGML2HTML=$ac_cv_prog_HAVE_SGML2HTML
7488 if test -n "$HAVE_SGML2HTML"; then
7489 echo "$as_me:$LINENO: result: $HAVE_SGML2HTML" >&5
7490 echo "${ECHO_T}$HAVE_SGML2HTML" >&6
7492 echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7496 # Extract the first word of "sgml2latex", so it can be a program name with args.
7497 set dummy sgml2latex; ac_word=$2
7498 echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7500 if test "${ac_cv_prog_HAVE_SGML2LATEX+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 if test -n "$HAVE_SGML2LATEX"; then
7504 ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_HAVE_SGML2LATEX="yes"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
7523 HAVE_SGML2LATEX=$ac_cv_prog_HAVE_SGML2LATEX
7524 if test -n "$HAVE_SGML2LATEX"; then
7525 echo "$as_me:$LINENO: result: $HAVE_SGML2LATEX" >&5
7526 echo "${ECHO_T}$HAVE_SGML2LATEX" >&6
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7532 if test $HAVE_SGML2LATEX = "yes" ; then
7533 if sgml2latex -h | grep -e --paper | grep ' -p ' > /dev/null ; then
7534 PSER="sgml2latex -o ps"
7536 PSER="sgml2latex -p"
7538 # Extract the first word of "ps2pdf", so it can be a program name with args.
7539 set dummy ps2pdf; ac_word=$2
7540 echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7542 if test "${ac_cv_prog_HAVE_PS2PDF+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 if test -n "$HAVE_PS2PDF"; then
7546 ac_cv_prog_HAVE_PS2PDF="$HAVE_PS2PDF" # Let the user override the test.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_HAVE_PS2PDF="yes"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 test -z "$ac_cv_prog_HAVE_PS2PDF" && ac_cv_prog_HAVE_PS2PDF="no"
7565 HAVE_PS2PDF=$ac_cv_prog_HAVE_PS2PDF
7566 if test -n "$HAVE_PS2PDF"; then
7567 echo "$as_me:$LINENO: result: $HAVE_PS2PDF" >&5
7568 echo "${ECHO_T}$HAVE_PS2PDF" >&6
7570 echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6
7575 # Extract the first word of "sgml2ps", so it can be a program name with args.
7576 set dummy sgml2ps; ac_word=$2
7577 echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7579 if test "${ac_cv_prog_HAVE_SGML2PS+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 if test -n "$HAVE_SGML2PS"; then
7583 ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_HAVE_SGML2PS="yes"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
7602 HAVE_SGML2PS=$ac_cv_prog_HAVE_SGML2PS
7603 if test -n "$HAVE_SGML2PS"; then
7604 echo "$as_me:$LINENO: result: $HAVE_SGML2PS" >&5
7605 echo "${ECHO_T}$HAVE_SGML2PS" >&6
7607 echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6
7611 if test $HAVE_SGML2PS = yes ; then
7618 ac_config_files="$ac_config_files Make.Rules"
7619 cat >confcache <<\_ACEOF
7620 # This file is a shell script that caches the results of configure
7621 # tests run on this system so they can be shared between configure
7622 # scripts and configure runs, see configure's option --config-cache.
7623 # It is not useful on other systems. If it contains results you don't
7624 # want to keep, you may remove or edit it.
7626 # config.status only pays attention to the cache file if you give it
7627 # the --recheck option to rerun configure.
7629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7635 # The following way of writing the cache mishandles newlines in values,
7636 # but we know of no workaround that is simple, portable, and efficient.
7637 # So, don't put newlines in cache variables' values.
7638 # Ultrix sh set writes to stderr and can't be redirected directly,
7639 # and sets the high bit in the cache file unless we assign to the vars.
7642 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7644 # `set' does not quote correctly, so add quotes (double-quote
7645 # substitution turns \\\\ into \\, and sed turns \\ into \).
7648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7651 # `set' quotes correctly as required by POSIX, so do not add quotes.
7653 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7662 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7664 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7665 if test -w $cache_file; then
7666 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7667 cat confcache >$cache_file
7669 echo "not updating unwritable cache $cache_file"
7674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7675 # Let make expand exec_prefix.
7676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7680 # trailing colons and then remove the whole line if VPATH becomes empty
7681 # (actually we leave an empty line to preserve line numbers).
7682 if test "x$srcdir" = x.; then
7683 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7684 s/:*\$(srcdir):*/:/;
7685 s/:*\${srcdir}:*/:/;
7687 s/^\([^=]*=[ ]*\):*/\1/;
7693 DEFS=-DHAVE_CONFIG_H
7697 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7698 # 1. Remove the extension, and $U if already installed.
7699 ac_i=`echo "$ac_i" |
7700 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7702 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7703 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7707 LTLIBOBJS=$ac_ltlibobjs
7711 : ${CONFIG_STATUS=./config.status}
7712 ac_clean_files_save=$ac_clean_files
7713 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7714 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7715 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7716 cat >$CONFIG_STATUS <<_ACEOF
7718 # Generated by $as_me.
7719 # Run this file to recreate the current configuration.
7720 # Compiler output produced by configure, useful for debugging
7721 # configure, is in config.log if it exists.
7726 SHELL=\${CONFIG_SHELL-$SHELL}
7729 cat >>$CONFIG_STATUS <<\_ACEOF
7730 ## --------------------- ##
7731 ## M4sh Initialization. ##
7732 ## --------------------- ##
7734 # Be Bourne compatible
7735 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7738 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7739 # is contrary to our usage. Disable this feature.
7740 alias -g '${1+"$@"}'='"$@"'
7741 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7744 DUALCASE=1; export DUALCASE # for MKS sh
7746 # Support unset when possible.
7747 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7754 # Work around bugs in pre-3.0 UWIN ksh.
7755 $as_unset ENV MAIL MAILPATH
7762 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7763 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7764 LC_TELEPHONE LC_TIME
7766 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7767 eval $as_var=C; export $as_var
7773 # Required to use basename.
7774 if expr a : '\(a\)' >/dev/null 2>&1; then
7780 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7781 as_basename=basename
7787 # Name of the executable.
7788 as_me=`$as_basename "$0" ||
7789 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7790 X"$0" : 'X\(//\)$' \| \
7791 X"$0" : 'X\(/\)$' \| \
7792 . : '\(.\)' 2>/dev/null ||
7794 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7795 /^X\/\(\/\/\)$/{ s//\1/; q; }
7796 /^X\/\(\/\).*/{ s//\1/; q; }
7800 # PATH needs CR, and LINENO needs CR and PATH.
7801 # Avoid depending upon Character Ranges.
7802 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7803 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7804 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7805 as_cr_digits='0123456789'
7806 as_cr_alnum=$as_cr_Letters$as_cr_digits
7808 # The user is always right.
7809 if test "${PATH_SEPARATOR+set}" != set; then
7810 echo "#! /bin/sh" >conf$$.sh
7811 echo "exit 0" >>conf$$.sh
7813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7825 test "x$as_lineno_1" != "x$as_lineno_2" &&
7826 test "x$as_lineno_3" = "x$as_lineno_2" || {
7827 # Find who we are. Look in the path if we contain no path at all
7830 *[\\/]* ) as_myself=$0 ;;
7831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir=.
7836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7841 # We did not find ourselves, most probably we were run as `sh COMMAND'
7842 # in which case we are not to be found in the path.
7843 if test "x$as_myself" = x; then
7846 if test ! -f "$as_myself"; then
7847 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7848 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7849 { (exit 1); exit 1; }; }
7851 case $CONFIG_SHELL in
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7857 test -z "$as_dir" && as_dir=.
7858 for as_base in sh bash ksh sh5; do
7861 if ("$as_dir/$as_base" -c '
7864 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7865 test "x$as_lineno_1" != "x$as_lineno_2" &&
7866 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7867 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7868 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7869 CONFIG_SHELL=$as_dir/$as_base
7871 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7879 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7880 # uniformly replaced by the line number. The first 'sed' inserts a
7881 # line-number line before each line; the second 'sed' does the real
7882 # work. The second script uses 'N' to pair each line-number line
7883 # with the numbered line, and appends trailing '-' during
7884 # substitution so that $LINENO is not a special case at line end.
7885 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7886 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7887 sed '=' <$as_myself |
7892 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7895 s,^['$as_cr_digits']*\n,,
7897 chmod +x $as_me.lineno ||
7898 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7899 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7900 { (exit 1); exit 1; }; }
7902 # Don't try to exec as it changes $[0], causing all sort of problems
7903 # (the dirname of $[0] is not the place where we might find the
7904 # original and so on. Autoconf is especially sensible to this).
7906 # Exit status is that of the last command.
7911 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7912 *c*,-n*) ECHO_N= ECHO_C='
7914 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7915 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7918 if expr a : '\(a\)' >/dev/null 2>&1; then
7924 rm -f conf$$ conf$$.exe conf$$.file
7926 if ln -s conf$$.file conf$$ 2>/dev/null; then
7927 # We could just check for DJGPP; but this test a) works b) is more generic
7928 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7929 if test -f conf$$.exe; then
7930 # Don't use ln at all; we don't have any links
7935 elif ln conf$$.file conf$$ 2>/dev/null; then
7940 rm -f conf$$ conf$$.exe conf$$.file
7942 if mkdir -p . 2>/dev/null; then
7945 test -d ./-p && rmdir ./-p
7949 as_executable_p="test -f"
7951 # Sed expression to map a string onto a valid CPP name.
7952 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7954 # Sed expression to map a string onto a valid variable name.
7955 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7959 # We need space, tab and new line, in precisely that order.
7969 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7970 # report actual input values of CONFIG_FILES etc. instead of their
7971 # values after options handling. Logging --version etc. is OK.
7975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7976 ## Running $as_me. ##
7981 This file was extended by $as_me, which was
7982 generated by GNU Autoconf 2.59. Invocation command line was
7984 CONFIG_FILES = $CONFIG_FILES
7985 CONFIG_HEADERS = $CONFIG_HEADERS
7986 CONFIG_LINKS = $CONFIG_LINKS
7987 CONFIG_COMMANDS = $CONFIG_COMMANDS
7991 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7995 # Files that config.status was made for.
7996 if test -n "$ac_config_files"; then
7997 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8000 if test -n "$ac_config_headers"; then
8001 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8004 if test -n "$ac_config_links"; then
8005 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8008 if test -n "$ac_config_commands"; then
8009 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8012 cat >>$CONFIG_STATUS <<\_ACEOF
8015 \`$as_me' instantiates files from templates according to the
8016 current configuration.
8018 Usage: $0 [OPTIONS] [FILE]...
8020 -h, --help print this help, then exit
8021 -V, --version print version number, then exit
8022 -q, --quiet do not print progress messages
8023 -d, --debug don't remove temporary files
8024 --recheck update $as_me by reconfiguring in the same conditions
8025 --file=FILE[:TEMPLATE]
8026 instantiate the configuration file FILE
8027 --header=FILE[:TEMPLATE]
8028 instantiate the configuration header FILE
8030 Configuration files:
8033 Configuration headers:
8036 Report bugs to <bug-autoconf@gnu.org>."
8039 cat >>$CONFIG_STATUS <<_ACEOF
8042 configured by $0, generated by GNU Autoconf 2.59,
8043 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8045 Copyright (C) 2003 Free Software Foundation, Inc.
8046 This config.status script is free software; the Free Software Foundation
8047 gives unlimited permission to copy, distribute and modify it."
8052 cat >>$CONFIG_STATUS <<\_ACEOF
8053 # If no file are specified by the user, then we need to provide default
8054 # value. By we need to know if files were specified by the user.
8060 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8061 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8069 *) # This is not an option, so the user has probably given explicit
8072 ac_need_defaults=false;;
8076 # Handling of the options.
8078 cat >>$CONFIG_STATUS <<\_ACEOF
8079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8081 --version | --vers* | -V )
8082 echo "$ac_cs_version"; exit 0 ;;
8084 # Conflict between --help and --header
8085 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8086 Try \`$0 --help' for more information." >&5
8087 echo "$as_me: error: ambiguous option: $1
8088 Try \`$0 --help' for more information." >&2;}
8089 { (exit 1); exit 1; }; };;
8090 --help | --hel | -h )
8091 echo "$ac_cs_usage"; exit 0 ;;
8092 --debug | --d* | -d )
8094 --file | --fil | --fi | --f )
8096 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8097 ac_need_defaults=false;;
8098 --header | --heade | --head | --hea )
8100 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8101 ac_need_defaults=false;;
8102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8103 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8107 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8108 Try \`$0 --help' for more information." >&5
8109 echo "$as_me: error: unrecognized option: $1
8110 Try \`$0 --help' for more information." >&2;}
8111 { (exit 1); exit 1; }; } ;;
8113 *) ac_config_targets="$ac_config_targets $1" ;;
8119 ac_configure_extra_args=
8121 if $ac_cs_silent; then
8123 ac_configure_extra_args="$ac_configure_extra_args --silent"
8127 cat >>$CONFIG_STATUS <<_ACEOF
8128 if \$ac_cs_recheck; then
8129 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8130 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8139 cat >>$CONFIG_STATUS <<\_ACEOF
8140 for ac_config_target in $ac_config_targets
8142 case "$ac_config_target" in
8143 # Handling of arguments.
8144 "Make.Rules" ) CONFIG_FILES="$CONFIG_FILES Make.Rules" ;;
8145 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8146 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8147 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8148 { (exit 1); exit 1; }; };;
8152 # If the user did not use the arguments to specify the items to instantiate,
8153 # then the envvar interface is used. Set only those that are not.
8154 # We use the long form for the default assignment because of an extremely
8155 # bizarre bug on SunOS 4.1.3.
8156 if $ac_need_defaults; then
8157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8161 # Have a temporary directory for convenience. Make it in the build tree
8162 # simply because there is no reason to put it here, and in addition,
8163 # creating and moving files from /tmp can sometimes cause problems.
8164 # Create a temporary directory, and hook for its removal unless debugging.
8167 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8168 trap '{ (exit 1); exit 1; }' 1 2 13 15
8171 # Create a (secure) tmp directory for tmp files.
8174 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8175 test -n "$tmp" && test -d "$tmp"
8178 tmp=./confstat$$-$RANDOM
8179 (umask 077 && mkdir $tmp)
8182 echo "$me: cannot create a temporary directory in ." >&2
8183 { (exit 1); exit 1; }
8188 cat >>$CONFIG_STATUS <<_ACEOF
8191 # CONFIG_FILES section.
8194 # No need to generate the scripts if there are no CONFIG_FILES.
8195 # This happens for instance when ./config.status config.h
8196 if test -n "\$CONFIG_FILES"; then
8197 # Protect against being on the right side of a sed subst in config.status.
8198 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8199 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8200 s,@SHELL@,$SHELL,;t t
8201 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8202 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8203 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8204 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8205 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8206 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8207 s,@exec_prefix@,$exec_prefix,;t t
8208 s,@prefix@,$prefix,;t t
8209 s,@program_transform_name@,$program_transform_name,;t t
8210 s,@bindir@,$bindir,;t t
8211 s,@sbindir@,$sbindir,;t t
8212 s,@libexecdir@,$libexecdir,;t t
8213 s,@datadir@,$datadir,;t t
8214 s,@sysconfdir@,$sysconfdir,;t t
8215 s,@sharedstatedir@,$sharedstatedir,;t t
8216 s,@localstatedir@,$localstatedir,;t t
8217 s,@libdir@,$libdir,;t t
8218 s,@includedir@,$includedir,;t t
8219 s,@oldincludedir@,$oldincludedir,;t t
8220 s,@infodir@,$infodir,;t t
8221 s,@mandir@,$mandir,;t t
8222 s,@build_alias@,$build_alias,;t t
8223 s,@host_alias@,$host_alias,;t t
8224 s,@target_alias@,$target_alias,;t t
8226 s,@ECHO_C@,$ECHO_C,;t t
8227 s,@ECHO_N@,$ECHO_N,;t t
8228 s,@ECHO_T@,$ECHO_T,;t t
8230 s,@LIBPAM_VERSION_MAJOR@,$LIBPAM_VERSION_MAJOR,;t t
8231 s,@LIBPAM_VERSION_MINOR@,$LIBPAM_VERSION_MINOR,;t t
8232 s,@LOCALSRCDIR@,$LOCALSRCDIR,;t t
8233 s,@LOCALOBJDIR@,$LOCALOBJDIR,;t t
8235 s,@CONF_CFLAGS@,$CONF_CFLAGS,;t t
8236 s,@MKDIR@,$MKDIR,;t t
8237 s,@SHLIBMODE@,$SHLIBMODE,;t t
8238 s,@MANMODE@,$MANMODE,;t t
8239 s,@USESONAME@,$USESONAME,;t t
8240 s,@SOSWITCH@,$SOSWITCH,;t t
8241 s,@NEEDSONAME@,$NEEDSONAME,;t t
8242 s,@LDCONFIG@,$LDCONFIG,;t t
8244 s,@CFLAGS@,$CFLAGS,;t t
8245 s,@LDFLAGS@,$LDFLAGS,;t t
8246 s,@CPPFLAGS@,$CPPFLAGS,;t t
8247 s,@ac_ct_CC@,$ac_ct_CC,;t t
8248 s,@EXEEXT@,$EXEEXT,;t t
8249 s,@OBJEXT@,$OBJEXT,;t t
8252 s,@LEXLIB@,$LEXLIB,;t t
8253 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8254 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8255 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8256 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8258 s,@SET_MAKE@,$SET_MAKE,;t t
8259 s,@WITH_DEBUG@,$WITH_DEBUG,;t t
8260 s,@WITH_MEMORY_DEBUG@,$WITH_MEMORY_DEBUG,;t t
8261 s,@WITH_LIBDEBUG@,$WITH_LIBDEBUG,;t t
8262 s,@WITH_PRELUDE@,$WITH_PRELUDE,;t t
8263 s,@FAKEROOT@,$FAKEROOT,;t t
8264 s,@SECUREDIR@,$SECUREDIR,;t t
8265 s,@SCONFIGDIR@,$SCONFIGDIR,;t t
8266 s,@SUPLEMENTED@,$SUPLEMENTED,;t t
8267 s,@INCLUDEDIR@,$INCLUDEDIR,;t t
8268 s,@DOCDIR@,$DOCDIR,;t t
8269 s,@MANDIR@,$MANDIR,;t t
8270 s,@WITH_PAMLOCKING@,$WITH_PAMLOCKING,;t t
8271 s,@PAM_READ_BOTH_CONFS@,$PAM_READ_BOTH_CONFS,;t t
8272 s,@STATIC_LIBPAM@,$STATIC_LIBPAM,;t t
8273 s,@DYNAMIC_LIBPAM@,$DYNAMIC_LIBPAM,;t t
8274 s,@DYNAMIC@,$DYNAMIC,;t t
8275 s,@STATIC@,$STATIC,;t t
8276 s,@WITH_LCKPWDF@,$WITH_LCKPWDF,;t t
8278 s,@EGREP@,$EGREP,;t t
8279 s,@PAM_NEEDS_LIBC@,$PAM_NEEDS_LIBC,;t t
8280 s,@HAVE_LCKPWDF@,$HAVE_LCKPWDF,;t t
8281 s,@LIBDL@,$LIBDL,;t t
8282 s,@HAVE_LIBCRACK@,$HAVE_LIBCRACK,;t t
8283 s,@HAVE_LIBCRYPT@,$HAVE_LIBCRYPT,;t t
8284 s,@HAVE_LIBUTIL@,$HAVE_LIBUTIL,;t t
8285 s,@HAVE_LIBNDBM@,$HAVE_LIBNDBM,;t t
8286 s,@HAVE_LIBDB@,$HAVE_LIBDB,;t t
8287 s,@HAVE_LIBFL@,$HAVE_LIBFL,;t t
8288 s,@HAVE_LIBNSL@,$HAVE_LIBNSL,;t t
8289 s,@HAVE_LIBSELINUX@,$HAVE_LIBSELINUX,;t t
8290 s,@HAVE_LIBPWDB@,$HAVE_LIBPWDB,;t t
8291 s,@HAVE_LIBFLEX@,$HAVE_LIBFLEX,;t t
8292 s,@HAVE_LIBLEX@,$HAVE_LIBLEX,;t t
8293 s,@HAVE_NDBM_H@,$HAVE_NDBM_H,;t t
8294 s,@CRACKLIB_DICTPATH@,$CRACKLIB_DICTPATH,;t t
8295 s,@DYNTYPE@,$DYNTYPE,;t t
8296 s,@OS_CFLAGS@,$OS_CFLAGS,;t t
8297 s,@WARNINGS@,$WARNINGS,;t t
8302 s,@RANLIB@,$RANLIB,;t t
8303 s,@STRIP@,$STRIP,;t t
8304 s,@CC_STATIC@,$CC_STATIC,;t t
8305 s,@LIBOBJS@,$LIBOBJS,;t t
8306 s,@HAVE_SGML2TXT@,$HAVE_SGML2TXT,;t t
8307 s,@HAVE_SGML2HTML@,$HAVE_SGML2HTML,;t t
8308 s,@HAVE_SGML2LATEX@,$HAVE_SGML2LATEX,;t t
8309 s,@HAVE_PS2PDF@,$HAVE_PS2PDF,;t t
8310 s,@HAVE_SGML2PS@,$HAVE_SGML2PS,;t t
8312 s,@PS2PDF@,$PS2PDF,;t t
8313 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8318 cat >>$CONFIG_STATUS <<\_ACEOF
8319 # Split the substitutions into bite-sized pieces for seds with
8320 # small command number limits, like on Digital OSF/1 and HP-UX.
8322 ac_sed_frag=1 # Number of current file.
8323 ac_beg=1 # First line for current file.
8324 ac_end=$ac_max_sed_lines # Line after last line for current file.
8327 while $ac_more_lines; do
8328 if test $ac_beg -gt 1; then
8329 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8331 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8333 if test ! -s $tmp/subs.frag; then
8336 # The purpose of the label and of the branching condition is to
8337 # speed up the sed processing (if there are no `@' at all, there
8338 # is no need to browse any of the substitutions).
8339 # These are the two extra sed commands mentioned above.
8341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8342 if test -z "$ac_sed_cmds"; then
8343 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8345 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8347 ac_sed_frag=`expr $ac_sed_frag + 1`
8349 ac_end=`expr $ac_end + $ac_max_sed_lines`
8352 if test -z "$ac_sed_cmds"; then
8355 fi # test -n "$CONFIG_FILES"
8358 cat >>$CONFIG_STATUS <<\_ACEOF
8359 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8360 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8362 - | *:- | *:-:* ) # input from stdin
8364 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8365 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8366 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8367 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8368 * ) ac_file_in=$ac_file.in ;;
8371 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8372 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8374 X"$ac_file" : 'X\(//\)[^/]' \| \
8375 X"$ac_file" : 'X\(//\)$' \| \
8376 X"$ac_file" : 'X\(/\)' \| \
8377 . : '\(.\)' 2>/dev/null ||
8379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8381 /^X\(\/\/\)$/{ s//\1/; q; }
8382 /^X\(\/\).*/{ s//\1/; q; }
8384 { if $as_mkdir_p; then
8389 while test ! -d "$as_dir"; do
8390 as_dirs="$as_dir $as_dirs"
8391 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8393 X"$as_dir" : 'X\(//\)[^/]' \| \
8394 X"$as_dir" : 'X\(//\)$' \| \
8395 X"$as_dir" : 'X\(/\)' \| \
8396 . : '\(.\)' 2>/dev/null ||
8398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8400 /^X\(\/\/\)$/{ s//\1/; q; }
8401 /^X\(\/\).*/{ s//\1/; q; }
8404 test ! -n "$as_dirs" || mkdir $as_dirs
8405 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8406 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8407 { (exit 1); exit 1; }; }; }
8411 if test "$ac_dir" != .; then
8412 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8413 # A "../" for each directory in $ac_dir_suffix.
8414 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8416 ac_dir_suffix= ac_top_builddir=
8420 .) # No --srcdir option. We are building in place.
8422 if test -z "$ac_top_builddir"; then
8425 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8427 [\\/]* | ?:[\\/]* ) # Absolute path.
8428 ac_srcdir=$srcdir$ac_dir_suffix;
8429 ac_top_srcdir=$srcdir ;;
8431 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8432 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8435 # Do not use `cd foo && pwd` to compute absolute paths, because
8436 # the directories may not exist.
8438 .) ac_abs_builddir="$ac_dir";;
8441 .) ac_abs_builddir=`pwd`;;
8442 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8443 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8446 case $ac_abs_builddir in
8447 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8449 case ${ac_top_builddir}. in
8450 .) ac_abs_top_builddir=$ac_abs_builddir;;
8451 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8452 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8455 case $ac_abs_builddir in
8456 .) ac_abs_srcdir=$ac_srcdir;;
8459 .) ac_abs_srcdir=$ac_abs_builddir;;
8460 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8461 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8464 case $ac_abs_builddir in
8465 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8467 case $ac_top_srcdir in
8468 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8469 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8470 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8477 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8480 if test x"$ac_file" != x-; then
8481 { echo "$as_me:$LINENO: creating $ac_file" >&5
8482 echo "$as_me: creating $ac_file" >&6;}
8485 # Let's still pretend it is `configure' which instantiates (i.e., don't
8486 # use $as_me), people would be surprised to read:
8487 # /* config.h. Generated by config.status. */
8488 if test x"$ac_file" = x-; then
8491 configure_input="$ac_file. "
8493 configure_input=$configure_input"Generated from `echo $ac_file_in |
8494 sed 's,.*/,,'` by configure."
8496 # First look for the input files in the build tree, otherwise in the
8498 ac_file_inputs=`IFS=:
8499 for f in $ac_file_in; do
8501 -) echo $tmp/stdin ;;
8503 # Absolute (can't be DOS-style, as IFS=:)
8504 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8505 echo "$as_me: error: cannot find input file: $f" >&2;}
8506 { (exit 1); exit 1; }; }
8509 if test -f "$f"; then
8512 elif test -f "$srcdir/$f"; then
8517 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8518 echo "$as_me: error: cannot find input file: $f" >&2;}
8519 { (exit 1); exit 1; }; }
8522 done` || { (exit 1); exit 1; }
8524 cat >>$CONFIG_STATUS <<_ACEOF
8528 cat >>$CONFIG_STATUS <<\_ACEOF
8530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8531 s,@configure_input@,$configure_input,;t t
8532 s,@srcdir@,$ac_srcdir,;t t
8533 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8534 s,@top_srcdir@,$ac_top_srcdir,;t t
8535 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8536 s,@builddir@,$ac_builddir,;t t
8537 s,@abs_builddir@,$ac_abs_builddir,;t t
8538 s,@top_builddir@,$ac_top_builddir,;t t
8539 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8540 s,@INSTALL@,$ac_INSTALL,;t t
8541 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8543 if test x"$ac_file" != x-; then
8544 mv $tmp/out $ac_file
8552 cat >>$CONFIG_STATUS <<\_ACEOF
8555 # CONFIG_HEADER section.
8558 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8559 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8561 # ac_d sets the value in "#define NAME VALUE" lines.
8562 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8563 ac_dB='[ ].*$,\1#\2'
8566 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8567 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8568 ac_uB='$,\1#\2define\3'
8572 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8573 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8575 - | *:- | *:-:* ) # input from stdin
8577 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8579 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8580 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8581 * ) ac_file_in=$ac_file.in ;;
8584 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8585 echo "$as_me: creating $ac_file" >&6;}
8587 # First look for the input files in the build tree, otherwise in the
8589 ac_file_inputs=`IFS=:
8590 for f in $ac_file_in; do
8592 -) echo $tmp/stdin ;;
8594 # Absolute (can't be DOS-style, as IFS=:)
8595 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8596 echo "$as_me: error: cannot find input file: $f" >&2;}
8597 { (exit 1); exit 1; }; }
8598 # Do quote $f, to prevent DOS paths from being IFS'd.
8601 if test -f "$f"; then
8604 elif test -f "$srcdir/$f"; then
8609 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8610 echo "$as_me: error: cannot find input file: $f" >&2;}
8611 { (exit 1); exit 1; }; }
8614 done` || { (exit 1); exit 1; }
8615 # Remove the trailing spaces.
8616 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8620 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8621 # `conftest.undefs', that substitutes the proper values into
8622 # config.h.in to produce config.h. The first handles `#define'
8623 # templates, and the second `#undef' templates.
8624 # And first: Protect against being on the right side of a sed subst in
8625 # config.status. Protect against being in an unquoted here document
8627 rm -f conftest.defines conftest.undefs
8628 # Using a here document instead of a string reduces the quoting nightmare.
8629 # Putting comments in sed scripts is not portable.
8631 # `end' is used to avoid that the second main sed command (meant for
8632 # 0-ary CPP macros) applies to n-ary macro definitions.
8633 # See the Autoconf documentation for `clear'.
8634 cat >confdef2sed.sed <<\_ACEOF
8639 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8641 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8644 # If some macros were called several times there might be several times
8645 # the same #defines, which is useless. Nevertheless, we may not want to
8646 # sort them, since we want the *last* AC-DEFINE to be honored.
8647 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8648 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8649 rm -f confdef2sed.sed
8651 # This sed command replaces #undef with comments. This is necessary, for
8652 # example, in the case of _POSIX_SOURCE, which is predefined and required
8653 # on some systems where configure will not decide to define it.
8654 cat >>conftest.undefs <<\_ACEOF
8655 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8658 # Break up conftest.defines because some shells have a limit on the size
8659 # of here documents, and old seds have small limits too (100 cmds).
8660 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8661 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8662 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8663 echo ' :' >>$CONFIG_STATUS
8665 while grep . conftest.defines >/dev/null
8667 # Write a limited-size here document to $tmp/defines.sed.
8668 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8669 # Speed up: don't consider the non `#define' lines.
8670 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8671 # Work around the forget-to-reset-the-flag bug.
8672 echo 't clr' >>$CONFIG_STATUS
8673 echo ': clr' >>$CONFIG_STATUS
8674 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8676 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8680 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8681 rm -f conftest.defines
8682 mv conftest.tail conftest.defines
8684 rm -f conftest.defines
8685 echo ' fi # grep' >>$CONFIG_STATUS
8686 echo >>$CONFIG_STATUS
8688 # Break up conftest.undefs because some shells have a limit on the size
8689 # of here documents, and old seds have small limits too (100 cmds).
8690 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8692 while grep . conftest.undefs >/dev/null
8694 # Write a limited-size here document to $tmp/undefs.sed.
8695 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8696 # Speed up: don't consider the non `#undef'
8697 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8698 # Work around the forget-to-reset-the-flag bug.
8699 echo 't clr' >>$CONFIG_STATUS
8700 echo ': clr' >>$CONFIG_STATUS
8701 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8703 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8707 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8708 rm -f conftest.undefs
8709 mv conftest.tail conftest.undefs
8711 rm -f conftest.undefs
8713 cat >>$CONFIG_STATUS <<\_ACEOF
8714 # Let's still pretend it is `configure' which instantiates (i.e., don't
8715 # use $as_me), people would be surprised to read:
8716 # /* config.h. Generated by config.status. */
8717 if test x"$ac_file" = x-; then
8718 echo "/* Generated by configure. */" >$tmp/config.h
8720 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8722 cat $tmp/in >>$tmp/config.h
8724 if test x"$ac_file" != x-; then
8725 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8726 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8727 echo "$as_me: $ac_file is unchanged" >&6;}
8729 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8731 X"$ac_file" : 'X\(//\)[^/]' \| \
8732 X"$ac_file" : 'X\(//\)$' \| \
8733 X"$ac_file" : 'X\(/\)' \| \
8734 . : '\(.\)' 2>/dev/null ||
8736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8738 /^X\(\/\/\)$/{ s//\1/; q; }
8739 /^X\(\/\).*/{ s//\1/; q; }
8741 { if $as_mkdir_p; then
8746 while test ! -d "$as_dir"; do
8747 as_dirs="$as_dir $as_dirs"
8748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8750 X"$as_dir" : 'X\(//\)[^/]' \| \
8751 X"$as_dir" : 'X\(//\)$' \| \
8752 X"$as_dir" : 'X\(/\)' \| \
8753 . : '\(.\)' 2>/dev/null ||
8755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8757 /^X\(\/\/\)$/{ s//\1/; q; }
8758 /^X\(\/\).*/{ s//\1/; q; }
8761 test ! -n "$as_dirs" || mkdir $as_dirs
8762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8763 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8764 { (exit 1); exit 1; }; }; }
8767 mv $tmp/config.h $ac_file
8776 cat >>$CONFIG_STATUS <<\_ACEOF
8778 { (exit 0); exit 0; }
8780 chmod +x $CONFIG_STATUS
8781 ac_clean_files=$ac_clean_files_save
8784 # configure is writing to config.log, and then calls config.status.
8785 # config.status does its own redirection, appending to config.log.
8786 # Unfortunately, on DOS this fails, as config.log is still kept open
8787 # by configure, so config.status won't be able to write to it; its
8788 # output is simply discarded. So we exec the FD to /dev/null,
8789 # effectively closing config.log, so it can be properly (re)opened and
8790 # appended to by config.status. When coming back to configure, we
8791 # need to make the FD available again.
8792 if test "$no_create" != yes; then
8794 ac_config_status_args=
8795 test "$silent" = yes &&
8796 ac_config_status_args="$ac_config_status_args --quiet"
8798 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8800 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8801 # would make configure fail if this is the last instruction.
8802 $ac_cs_success || { (exit 1); exit 1; }