3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
16 --enable-debug specify you are building with debugging on"
18 --enable-memory-debug specify you want every malloc etc. call tracked"
20 --enable-libdebug specify you are building debugging libraries"
22 --enable-fakeroot=<path to packaging directory>"
24 --enable-securedir=<path to location of PAMs> [default \$libdir/security]"
26 --enable-sconfigdir=<path to module conf files> [default \$sysconfdir/security]"
28 --enable-suplementedir=<path to module helper binaries> [default \$sbindir]"
30 --enable-includedir=<path to include location> - where to put <security>"
32 --enable-docdir=<path to store documentation in - /usr/share/doc/pam>"
34 --enable-mandir=<path to store manuals in - /usr/share/man>"
36 --enable-pamlocking configure libpam to observe a global authentication lock"
38 --enable-uglyhack configure libpam to try to honor old pam_strerror syntax"
40 --enable-read-both-confs read both /etc/pam.d and /etc/pam.conf files"
42 --enable-static-libpam build a libpam.a library"
44 --disable-dynamic-libpam do not build a shared libpam library"
46 --enable-static-modules do not make the modules dynamically loadable"
48 --disable-lckpwdf do not use the lckpwdf function"
50 --with-mailspool path to mail spool directory
51 [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]"
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file=./config.cache
66 program_transform_name=s,x,x,
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
87 # Initialize some other variables.
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
119 -build | --build | --buil | --bui | --bu)
121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122 build="$ac_optarg" ;;
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135 datadir="$ac_optarg" ;;
137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host | --host | --hos | --ho)
229 -host=* | --host=* | --hos=* | --ho=*)
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
244 -libdir | --libdir | --libdi | --libd)
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335 sbindir="$ac_optarg" ;;
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346 sharedstatedir="$ac_optarg" ;;
348 -site | --site | --sit)
350 -site=* | --site=* | --sit=*)
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
365 -target | --target | --targe | --targ | --tar | --ta | --t)
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=conf/pam_conv1/pam_conv.y
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
566 LIBPAM_VERSION_MAJOR=0
567 LIBPAM_VERSION_MINOR=76
571 cat >> confdefs.h <<\EOF
572 #define LIBPAM_VERSION_MAJOR 1
575 cat >> confdefs.h <<\EOF
576 #define LIBPAM_VERSION_MINOR 1
583 LOCALSRCDIR=`/bin/pwd` ;
584 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
596 LDCONFIG=/sbin/ldconfig ;
598 if test "$OS" = "aix"; then
599 INSTALL=/usr/ucb/install -c
601 INSTALL=/usr/bin/install
605 # Extract the first word of "gcc", so it can be a program name with args.
606 set dummy gcc; ac_word=$2
607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
608 echo "configure:609: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
612 if test -n "$CC"; then
613 ac_cv_prog_CC="$CC" # Let the user override the test.
615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
617 for ac_dir in $ac_dummy; do
618 test -z "$ac_dir" && ac_dir=.
619 if test -f $ac_dir/$ac_word; then
628 if test -n "$CC"; then
629 echo "$ac_t""$CC" 1>&6
631 echo "$ac_t""no" 1>&6
634 if test -z "$CC"; then
635 # Extract the first word of "cc", so it can be a program name with args.
636 set dummy cc; ac_word=$2
637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
638 echo "configure:639: checking for $ac_word" >&5
639 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 if test -n "$CC"; then
643 ac_cv_prog_CC="$CC" # Let the user override the test.
645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
648 for ac_dir in $ac_dummy; do
649 test -z "$ac_dir" && ac_dir=.
650 if test -f $ac_dir/$ac_word; then
651 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
660 if test $ac_prog_rejected = yes; then
661 # We found a bogon in the path, so make sure we never use it.
662 set dummy $ac_cv_prog_CC
664 if test $# -gt 0; then
665 # We chose a different compiler from the bogus one.
666 # However, it has the same basename, so the bogon will be chosen
667 # first if we set CC to just the basename; use the full file name.
669 set dummy "$ac_dir/$ac_word" "$@"
677 if test -n "$CC"; then
678 echo "$ac_t""$CC" 1>&6
680 echo "$ac_t""no" 1>&6
683 if test -z "$CC"; then
686 # Extract the first word of "cl", so it can be a program name with args.
687 set dummy cl; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
693 if test -n "$CC"; then
694 ac_cv_prog_CC="$CC" # Let the user override the test.
696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
698 for ac_dir in $ac_dummy; do
699 test -z "$ac_dir" && ac_dir=.
700 if test -f $ac_dir/$ac_word; then
709 if test -n "$CC"; then
710 echo "$ac_t""$CC" 1>&6
712 echo "$ac_t""no" 1>&6
717 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
720 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
721 echo "configure:722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
725 ac_cpp='$CPP $CPPFLAGS'
726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
728 cross_compiling=$ac_cv_prog_cc_cross
730 cat > conftest.$ac_ext << EOF
732 #line 733 "configure"
733 #include "confdefs.h"
737 if { (eval echo configure:738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
738 ac_cv_prog_cc_works=yes
739 # If we can't run a trivial program, we are probably using a cross compiler.
740 if (./conftest; exit) 2>/dev/null; then
741 ac_cv_prog_cc_cross=no
743 ac_cv_prog_cc_cross=yes
746 echo "configure: failed program was:" >&5
747 cat conftest.$ac_ext >&5
748 ac_cv_prog_cc_works=no
752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753 ac_cpp='$CPP $CPPFLAGS'
754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756 cross_compiling=$ac_cv_prog_cc_cross
758 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
759 if test $ac_cv_prog_cc_works = no; then
760 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
763 echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
764 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
765 cross_compiling=$ac_cv_prog_cc_cross
767 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
768 echo "configure:769: checking whether we are using GNU C" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 cat > conftest.c <<EOF
777 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
784 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
786 if test $ac_cv_prog_gcc = yes; then
792 ac_test_CFLAGS="${CFLAGS+set}"
793 ac_save_CFLAGS="$CFLAGS"
795 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
796 echo "configure:797: checking whether ${CC-cc} accepts -g" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 echo 'void f(){}' > conftest.c
801 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
810 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
811 if test "$ac_test_CFLAGS" = set; then
812 CFLAGS="$ac_save_CFLAGS"
813 elif test $ac_cv_prog_cc_g = yes; then
814 if test "$GCC" = yes; then
820 if test "$GCC" = yes; then
827 for ac_prog in 'bison -y' byacc
829 # Extract the first word of "$ac_prog", so it can be a program name with args.
830 set dummy $ac_prog; ac_word=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 if test -n "$YACC"; then
837 ac_cv_prog_YACC="$YACC" # Let the user override the test.
839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
841 for ac_dir in $ac_dummy; do
842 test -z "$ac_dir" && ac_dir=.
843 if test -f $ac_dir/$ac_word; then
844 ac_cv_prog_YACC="$ac_prog"
851 YACC="$ac_cv_prog_YACC"
852 if test -n "$YACC"; then
853 echo "$ac_t""$YACC" 1>&6
855 echo "$ac_t""no" 1>&6
858 test -n "$YACC" && break
860 test -n "$YACC" || YACC="yacc"
862 # Extract the first word of "flex", so it can be a program name with args.
863 set dummy flex; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 if test -n "$LEX"; then
870 ac_cv_prog_LEX="$LEX" # Let the user override the test.
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
874 for ac_dir in $ac_dummy; do
875 test -z "$ac_dir" && ac_dir=.
876 if test -f $ac_dir/$ac_word; then
877 ac_cv_prog_LEX="flex"
882 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
885 LEX="$ac_cv_prog_LEX"
886 if test -n "$LEX"; then
887 echo "$ac_t""$LEX" 1>&6
889 echo "$ac_t""no" 1>&6
898 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
899 echo "configure:900: checking for yywrap in -l$ac_lib" >&5
900 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
905 LIBS="-l$ac_lib $LIBS"
906 cat > conftest.$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
909 /* Override any gcc2 internal prototype to avoid an error. */
910 /* We use char because int might match the return type of a gcc2
911 builtin and then its argument prototype would still apply. */
918 if { (eval echo configure:919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
920 eval "ac_cv_lib_$ac_lib_var=yes"
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
925 eval "ac_cv_lib_$ac_lib_var=no"
931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
932 echo "$ac_t""yes" 1>&6
935 echo "$ac_t""no" 1>&6
940 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
941 echo "configure:942: checking whether ln -s works" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
946 if ln -s X conftestdata 2>/dev/null
949 ac_cv_prog_LN_S="ln -s"
954 LN_S="$ac_cv_prog_LN_S"
955 if test "$ac_cv_prog_LN_S" = "ln -s"; then
956 echo "$ac_t""yes" 1>&6
958 echo "$ac_t""no" 1>&6
961 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
962 echo "configure:963: checking whether ${MAKE-make} sets \${MAKE}" >&5
963 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
964 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 cat > conftestmake <<\EOF
969 @echo 'ac_maketemp="${MAKE}"'
971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
972 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
973 if test -n "$ac_maketemp"; then
974 eval ac_cv_prog_make_${ac_make}_set=yes
976 eval ac_cv_prog_make_${ac_make}_set=no
980 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
981 echo "$ac_t""yes" 1>&6
984 echo "$ac_t""no" 1>&6
985 SET_MAKE="MAKE=${MAKE-make}"
990 # Check whether --enable-debug or --disable-debug was given.
991 if test "${enable_debug+set}" = set; then
992 enableval="$enable_debug"
993 WITH_DEBUG=yes ; cat >> confdefs.h <<\EOF
1003 # Check whether --enable-memory-debug or --disable-memory-debug was given.
1004 if test "${enable_memory_debug+set}" = set; then
1005 enableval="$enable_memory_debug"
1006 WITH_MEMORY_DEBUG=yes ; cat >> confdefs.h <<\EOF
1007 #define MEMORY_DEBUG 1
1011 WITH_MEMORY_DEBUG=no
1016 # Check whether --enable-libdebug or --disable-libdebug was given.
1017 if test "${enable_libdebug+set}" = set; then
1018 enableval="$enable_libdebug"
1019 WITH_LIBDEBUG=yes ; cat >> confdefs.h <<\EOF
1020 #define WITH_LIBDEBUG 1
1029 # Check whether --enable-fakeroot or --disable-fakeroot was given.
1030 if test "${enable_fakeroot+set}" = set; then
1031 enableval="$enable_fakeroot"
1037 # Check whether --enable-securedir or --disable-securedir was given.
1038 if test "${enable_securedir+set}" = set; then
1039 enableval="$enable_securedir"
1040 SECUREDIR=$enableval
1042 SECUREDIR=$libdir/security
1047 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
1048 if test "${enable_sconfigdir+set}" = set; then
1049 enableval="$enable_sconfigdir"
1050 SCONFIGDIR=$enableval
1052 SCONFIGDIR=$sysconfdir/security
1057 # Check whether --enable-suplementedir or --disable-suplementedir was given.
1058 if test "${enable_suplementedir+set}" = set; then
1059 enableval="$enable_suplementedir"
1060 SUPLEMENTED=$enableval
1062 SUPLEMENTED=$sbindir
1067 # Check whether --enable-includedir or --disable-includedir was given.
1068 if test "${enable_includedir+set}" = set; then
1069 enableval="$enable_includedir"
1070 INCLUDEDIR=$enableval
1072 INCLUDEDIR=/usr/include
1077 # Check whether --enable-docdir or --disable-docdir was given.
1078 if test "${enable_docdir+set}" = set; then
1079 enableval="$enable_docdir"
1082 DOCDIR=/usr/share/doc/pam
1087 # Check whether --enable-mandir or --disable-mandir was given.
1088 if test "${enable_mandir+set}" = set; then
1089 enableval="$enable_mandir"
1092 MANDIR=/usr/share/man
1097 # Check whether --enable-pamlocking or --disable-pamlocking was given.
1098 if test "${enable_pamlocking+set}" = set; then
1099 enableval="$enable_pamlocking"
1100 WITH_PAMLOCKING=yes ; cat >> confdefs.h <<\EOF
1101 #define PAM_LOCKING 1
1110 # Check whether --enable-uglyhack or --disable-uglyhack was given.
1111 if test "${enable_uglyhack+set}" = set; then
1112 enableval="$enable_uglyhack"
1113 cat >> confdefs.h <<\EOF
1114 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
1120 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
1121 if test "${enable_read_both_confs+set}" = set; then
1122 enableval="$enable_read_both_confs"
1123 cat >> confdefs.h <<\EOF
1124 #define PAM_READ_BOTH_CONFS 1
1131 # Check whether --enable-static-libpam or --disable-static-libpam was given.
1132 if test "${enable_static_libpam+set}" = set; then
1133 enableval="$enable_static_libpam"
1141 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
1142 if test "${enable_dynamic_libpam+set}" = set; then
1143 enableval="$enable_dynamic_libpam"
1151 DYNAMIC=-DPAM_DYNAMIC
1154 # Check whether --enable-static-modules or --disable-static-modules was given.
1155 if test "${enable_static_modules+set}" = set; then
1156 enableval="$enable_static_modules"
1162 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
1163 if test "${enable_lckpwdf+set}" = set; then
1164 enableval="$enable_lckpwdf"
1172 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1173 echo "configure:1174: checking how to run the C preprocessor" >&5
1174 # On Suns, sometimes $CPP names a directory.
1175 if test -n "$CPP" && test -d "$CPP"; then
1178 if test -z "$CPP"; then
1179 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 # This must be in double quotes, not single quotes, because CPP may get
1183 # substituted into the Makefile and "${CC-cc}" will confuse make.
1185 # On the NeXT, cc -E runs the code through the compiler's parser,
1186 # not just through cpp.
1187 cat > conftest.$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1196 if test -z "$ac_err"; then
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1203 CPP="${CC-cc} -E -traditional-cpp"
1204 cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1211 { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1213 if test -z "$ac_err"; then
1217 echo "configure: failed program was:" >&5
1218 cat conftest.$ac_ext >&5
1220 CPP="${CC-cc} -nologo -E"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1228 { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1230 if test -z "$ac_err"; then
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1244 ac_cv_prog_CPP="$CPP"
1246 CPP="$ac_cv_prog_CPP"
1248 ac_cv_prog_CPP="$CPP"
1250 echo "$ac_t""$CPP" 1>&6
1252 for ac_hdr in paths.h
1254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_hdr" >&5
1257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1266 { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1268 if test -z "$ac_err"; then
1270 eval "ac_cv_header_$ac_safe=yes"
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1276 eval "ac_cv_header_$ac_safe=no"
1280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1281 echo "$ac_t""yes" 1>&6
1282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1283 cat >> confdefs.h <<EOF
1284 #define $ac_tr_hdr 1
1288 echo "$ac_t""no" 1>&6
1292 # Check whether --with-mailspool or --without-mailspool was given.
1293 if test "${with_mailspool+set}" = set; then
1294 withval="$with_mailspool"
1295 with_mailspool=${withval}
1298 if test x$with_mailspool != x ; then
1299 pam_mail_spool="\"$with_mailspool\""
1301 if test "$cross_compiling" = yes; then
1302 pam_mail_spool="\"/var/spool/mail\""
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1310 #ifdef _PATH_MAILDIR
1317 if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1319 pam_mail_spool="_PATH_MAILDIR"
1321 echo "configure: failed program was:" >&5
1322 cat conftest.$ac_ext >&5
1324 pam_mail_spool="\"/var/spool/mail\""
1330 cat >> confdefs.h <<EOF
1331 #define PAM_PATH_MAILDIR $pam_mail_spool
1335 echo $ac_n "checking for __libc_sched_setscheduler in -lc""... $ac_c" 1>&6
1336 echo "configure:1337: checking for __libc_sched_setscheduler in -lc" >&5
1337 ac_lib_var=`echo c'_'__libc_sched_setscheduler | sed 'y%./+-%__p_%'`
1338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 ac_save_LIBS="$LIBS"
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* Override any gcc2 internal prototype to avoid an error. */
1347 /* We use char because int might match the return type of a gcc2
1348 builtin and then its argument prototype would still apply. */
1349 char __libc_sched_setscheduler();
1352 __libc_sched_setscheduler()
1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1357 eval "ac_cv_lib_$ac_lib_var=yes"
1359 echo "configure: failed program was:" >&5
1360 cat conftest.$ac_ext >&5
1362 eval "ac_cv_lib_$ac_lib_var=no"
1365 LIBS="$ac_save_LIBS"
1368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1372 echo "$ac_t""no" 1>&6
1378 echo $ac_n "checking for lckpwdf in -lc""... $ac_c" 1>&6
1379 echo "configure:1380: checking for lckpwdf in -lc" >&5
1380 ac_lib_var=`echo c'_'lckpwdf | sed 'y%./+-%__p_%'`
1381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 ac_save_LIBS="$LIBS"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 /* Override any gcc2 internal prototype to avoid an error. */
1390 /* We use char because int might match the return type of a gcc2
1391 builtin and then its argument prototype would still apply. */
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1400 eval "ac_cv_lib_$ac_lib_var=yes"
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 eval "ac_cv_lib_$ac_lib_var=no"
1408 LIBS="$ac_save_LIBS"
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1415 echo "$ac_t""no" 1>&6
1421 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1422 echo "configure:1423: checking for dlopen in -ldl" >&5
1423 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 ac_save_LIBS="$LIBS"
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* Override any gcc2 internal prototype to avoid an error. */
1433 /* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1443 eval "ac_cv_lib_$ac_lib_var=yes"
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1448 eval "ac_cv_lib_$ac_lib_var=no"
1451 LIBS="$ac_save_LIBS"
1454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1455 echo "$ac_t""yes" 1>&6
1458 echo "$ac_t""no" 1>&6
1463 echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
1464 echo "configure:1465: checking for FascistCheck in -lcrack" >&5
1465 ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
1466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 ac_save_LIBS="$LIBS"
1470 LIBS="-lcrack $LIBS"
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* Override any gcc2 internal prototype to avoid an error. */
1475 /* We use char because int might match the return type of a gcc2
1476 builtin and then its argument prototype would still apply. */
1477 char FascistCheck();
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1485 eval "ac_cv_lib_$ac_lib_var=yes"
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1490 eval "ac_cv_lib_$ac_lib_var=no"
1493 LIBS="$ac_save_LIBS"
1496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1497 echo "$ac_t""yes" 1>&6
1498 HAVE_LIBCRACK=yes ; cat >> confdefs.h <<\EOF
1499 #define HAVE_LIBCRACK 1
1503 echo "$ac_t""no" 1>&6
1509 echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
1510 echo "configure:1511: checking for fcrypt in -lcrypt" >&5
1511 ac_lib_var=`echo crypt'_'fcrypt | sed 'y%./+-%__p_%'`
1512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 ac_save_LIBS="$LIBS"
1516 LIBS="-lcrypt $LIBS"
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 /* Override any gcc2 internal prototype to avoid an error. */
1521 /* We use char because int might match the return type of a gcc2
1522 builtin and then its argument prototype would still apply. */
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1531 eval "ac_cv_lib_$ac_lib_var=yes"
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1536 eval "ac_cv_lib_$ac_lib_var=no"
1539 LIBS="$ac_save_LIBS"
1542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1543 echo "$ac_t""yes" 1>&6
1544 HAVE_LIBCRYPT=yes ; cat >> confdefs.h <<\EOF
1545 #define HAVE_LIBCRYPT 1
1549 echo "$ac_t""no" 1>&6
1554 echo $ac_n "checking for logwtmp in -lutil""... $ac_c" 1>&6
1555 echo "configure:1556: checking for logwtmp in -lutil" >&5
1556 ac_lib_var=`echo util'_'logwtmp | sed 'y%./+-%__p_%'`
1557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 ac_save_LIBS="$LIBS"
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 /* Override any gcc2 internal prototype to avoid an error. */
1566 /* We use char because int might match the return type of a gcc2
1567 builtin and then its argument prototype would still apply. */
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 eval "ac_cv_lib_$ac_lib_var=yes"
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1581 eval "ac_cv_lib_$ac_lib_var=no"
1584 LIBS="$ac_save_LIBS"
1587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1588 echo "$ac_t""yes" 1>&6
1589 HAVE_LIBUTIL=yes ; cat >> confdefs.h <<\EOF
1590 #define HAVE_LIBUTIL 1
1594 echo "$ac_t""no" 1>&6
1599 echo $ac_n "checking for dbm_store in -lndbm""... $ac_c" 1>&6
1600 echo "configure:1601: checking for dbm_store in -lndbm" >&5
1601 ac_lib_var=`echo ndbm'_'dbm_store | sed 'y%./+-%__p_%'`
1602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 ac_save_LIBS="$LIBS"
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 /* Override any gcc2 internal prototype to avoid an error. */
1611 /* We use char because int might match the return type of a gcc2
1612 builtin and then its argument prototype would still apply. */
1619 if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1621 eval "ac_cv_lib_$ac_lib_var=yes"
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1626 eval "ac_cv_lib_$ac_lib_var=no"
1629 LIBS="$ac_save_LIBS"
1632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1633 echo "$ac_t""yes" 1>&6
1634 HAVE_LIBNDBM=yes ; cat >> confdefs.h <<\EOF
1635 #define HAVE_LIBNDBM 1
1639 echo "$ac_t""no" 1>&6
1644 echo $ac_n "checking for dbm_store in -ldb""... $ac_c" 1>&6
1645 echo "configure:1646: checking for dbm_store in -ldb" >&5
1646 ac_lib_var=`echo db'_'dbm_store | sed 'y%./+-%__p_%'`
1647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 ac_save_LIBS="$LIBS"
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 /* Override any gcc2 internal prototype to avoid an error. */
1656 /* We use char because int might match the return type of a gcc2
1657 builtin and then its argument prototype would still apply. */
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1666 eval "ac_cv_lib_$ac_lib_var=yes"
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 eval "ac_cv_lib_$ac_lib_var=no"
1674 LIBS="$ac_save_LIBS"
1677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1678 echo "$ac_t""yes" 1>&6
1679 HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1680 #define HAVE_LIBDB 1
1684 echo "$ac_t""no" 1>&6
1688 if test x$HAVE_LIBDB != xyes ; then
1689 echo $ac_n "checking for db_create in -ldb""... $ac_c" 1>&6
1690 echo "configure:1691: checking for db_create in -ldb" >&5
1691 ac_lib_var=`echo db'_'db_create | sed 'y%./+-%__p_%'`
1692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 ac_save_LIBS="$LIBS"
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 /* Override any gcc2 internal prototype to avoid an error. */
1701 /* We use char because int might match the return type of a gcc2
1702 builtin and then its argument prototype would still apply. */
1709 if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1711 eval "ac_cv_lib_$ac_lib_var=yes"
1713 echo "configure: failed program was:" >&5
1714 cat conftest.$ac_ext >&5
1716 eval "ac_cv_lib_$ac_lib_var=no"
1719 LIBS="$ac_save_LIBS"
1722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1723 echo "$ac_t""yes" 1>&6
1724 HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1725 #define HAVE_LIBDB 1
1729 echo "$ac_t""no" 1>&6
1735 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1736 echo "configure:1737: checking for yylex in -lfl" >&5
1737 ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
1738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 ac_save_LIBS="$LIBS"
1742 LIBS="-lfl HAVE_LIBFL=no $LIBS"
1743 cat > conftest.$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 /* Override any gcc2 internal prototype to avoid an error. */
1747 /* We use char because int might match the return type of a gcc2
1748 builtin and then its argument prototype would still apply. */
1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1757 eval "ac_cv_lib_$ac_lib_var=yes"
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1762 eval "ac_cv_lib_$ac_lib_var=no"
1765 LIBS="$ac_save_LIBS"
1768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1769 echo "$ac_t""yes" 1>&6
1772 echo "$ac_t""no" 1>&6
1773 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1774 #define HAVE_LIBFL 1
1780 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1781 echo "configure:1782: checking for yp_maplist in -lnsl" >&5
1782 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 ac_save_LIBS="$LIBS"
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 /* Override any gcc2 internal prototype to avoid an error. */
1792 /* We use char because int might match the return type of a gcc2
1793 builtin and then its argument prototype would still apply. */
1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1802 eval "ac_cv_lib_$ac_lib_var=yes"
1804 echo "configure: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1807 eval "ac_cv_lib_$ac_lib_var=no"
1810 LIBS="$ac_save_LIBS"
1813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1814 echo "$ac_t""yes" 1>&6
1815 HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1816 #define HAVE_LIBNSL 1
1820 echo "$ac_t""no" 1>&6
1825 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1826 echo "configure:1827: checking for pwdb_db_name in -lpwdb" >&5
1827 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 ac_save_LIBS="$LIBS"
1833 cat > conftest.$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 /* Override any gcc2 internal prototype to avoid an error. */
1837 /* We use char because int might match the return type of a gcc2
1838 builtin and then its argument prototype would still apply. */
1839 char pwdb_db_name();
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1847 eval "ac_cv_lib_$ac_lib_var=yes"
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 eval "ac_cv_lib_$ac_lib_var=no"
1855 LIBS="$ac_save_LIBS"
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1861 #define HAVE_LIBPWDB 1
1865 echo "$ac_t""no" 1>&6
1872 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1875 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_hdr that defines DIR" >&5
1877 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 #include <sys/types.h>
1889 if { (eval echo configure:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1891 eval "ac_cv_header_dirent_$ac_safe=yes"
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1896 eval "ac_cv_header_dirent_$ac_safe=no"
1900 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1901 echo "$ac_t""yes" 1>&6
1902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1903 cat >> confdefs.h <<EOF
1904 #define $ac_tr_hdr 1
1906 ac_header_dirent=$ac_hdr; break
1908 echo "$ac_t""no" 1>&6
1911 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1912 if test $ac_header_dirent = dirent.h; then
1913 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1914 echo "configure:1915: checking for opendir in -ldir" >&5
1915 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 ac_save_LIBS="$LIBS"
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 /* Override any gcc2 internal prototype to avoid an error. */
1925 /* We use char because int might match the return type of a gcc2
1926 builtin and then its argument prototype would still apply. */
1933 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1935 eval "ac_cv_lib_$ac_lib_var=yes"
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1940 eval "ac_cv_lib_$ac_lib_var=no"
1943 LIBS="$ac_save_LIBS"
1946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1950 echo "$ac_t""no" 1>&6
1954 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1955 echo "configure:1956: checking for opendir in -lx" >&5
1956 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 ac_save_LIBS="$LIBS"
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1965 /* Override any gcc2 internal prototype to avoid an error. */
1966 /* We use char because int might match the return type of a gcc2
1967 builtin and then its argument prototype would still apply. */
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1976 eval "ac_cv_lib_$ac_lib_var=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_lib_$ac_lib_var=no"
1984 LIBS="$ac_save_LIBS"
1987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1991 echo "$ac_t""no" 1>&6
1996 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1997 echo "configure:1998: checking for ANSI C header files" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2010 { (eval echo configure:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2012 if test -z "$ac_err"; then
2014 ac_cv_header_stdc=yes
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2020 ac_cv_header_stdc=no
2024 if test $ac_cv_header_stdc = yes; then
2025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2032 egrep "memchr" >/dev/null 2>&1; then
2036 ac_cv_header_stdc=no
2042 if test $ac_cv_header_stdc = yes; then
2043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2044 cat > conftest.$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2050 egrep "free" >/dev/null 2>&1; then
2054 ac_cv_header_stdc=no
2060 if test $ac_cv_header_stdc = yes; then
2061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2062 if test "$cross_compiling" = yes; then
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2069 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2070 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2072 int main () { int i; for (i = 0; i < 256; i++)
2073 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2077 if { (eval echo configure:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2081 echo "configure: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2084 ac_cv_header_stdc=no
2092 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2093 if test $ac_cv_header_stdc = yes; then
2094 cat >> confdefs.h <<\EOF
2095 #define STDC_HEADERS 1
2100 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2101 echo "configure:2102: checking for sys/wait.h that is POSIX.1 compatible" >&5
2102 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 #include <sys/types.h>
2109 #include <sys/wait.h>
2111 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2114 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2119 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2122 if { (eval echo configure:2123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2124 ac_cv_header_sys_wait_h=yes
2126 echo "configure: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2129 ac_cv_header_sys_wait_h=no
2134 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2135 if test $ac_cv_header_sys_wait_h = yes; then
2136 cat >> confdefs.h <<\EOF
2137 #define HAVE_SYS_WAIT_H 1
2142 for ac_hdr 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
2144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2146 echo "configure:2147: checking for $ac_hdr" >&5
2147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 cat > conftest.$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2156 { (eval echo configure:2157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2158 if test -z "$ac_err"; then
2160 eval "ac_cv_header_$ac_safe=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 eval "ac_cv_header_$ac_safe=no"
2170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2173 cat >> confdefs.h <<EOF
2174 #define $ac_tr_hdr 1
2178 echo "$ac_t""no" 1>&6
2183 for ac_hdr in features.h
2185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2187 echo "configure:2188: checking for $ac_hdr" >&5
2188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2197 { (eval echo configure:2198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2199 if test -z "$ac_err"; then
2201 eval "ac_cv_header_$ac_safe=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2207 eval "ac_cv_header_$ac_safe=no"
2211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2212 echo "$ac_t""yes" 1>&6
2213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2214 cat >> confdefs.h <<EOF
2215 #define $ac_tr_hdr 1
2219 echo "$ac_t""no" 1>&6
2224 for ac_hdr in crypt.h
2226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2242 eval "ac_cv_header_$ac_safe=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 eval "ac_cv_header_$ac_safe=no"
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255 cat >> confdefs.h <<EOF
2256 #define $ac_tr_hdr 1
2260 echo "$ac_t""no" 1>&6
2265 for ac_hdr in ndbm.h db.h
2267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_hdr" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2283 eval "ac_cv_header_$ac_safe=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2289 eval "ac_cv_header_$ac_safe=no"
2293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2296 cat >> confdefs.h <<EOF
2297 #define $ac_tr_hdr 1
2301 echo "$ac_t""no" 1>&6
2305 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2308 for ac_hdr in lastlog.h utmp.h utmpx.h
2310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2312 echo "configure:2313: checking for $ac_hdr" >&5
2313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2322 { (eval echo configure:2323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2324 if test -z "$ac_err"; then
2326 eval "ac_cv_header_$ac_safe=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 eval "ac_cv_header_$ac_safe=no"
2336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2339 cat >> confdefs.h <<EOF
2340 #define $ac_tr_hdr 1
2344 echo "$ac_t""no" 1>&6
2350 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2351 echo "configure:2352: checking path to cracklib dictionary" >&5
2352 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2353 /usr/local/lib /usr/local/share/lib"
2354 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2355 CRACKLIB_DICTPATH=""
2356 for d in $DICT_DIR_CANDIDATES ; do
2357 for f in $DICT_FILE_CANDIDATES ; do
2358 if test -r $d/$f.hwm ; then
2359 CRACKLIB_DICTPATH=$d/$f
2361 elif test -r $d/dict/$f.hwm ; then
2362 CRACKLIB_DICTPATH=$d/dict/$f
2367 if test -z "$CRACKLIB_DICTPATH" ; then
2368 echo "$ac_t""none found" 1>&6
2370 echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2375 GCC_WARNINGS="-Wall -Wwrite-strings \
2376 -Wpointer-arith -Wcast-qual -Wcast-align \
2377 -Wstrict-prototypes -Wmissing-prototypes \
2378 -Wnested-externs -Winline -Wshadow"
2380 if test "$GCC" = yes; then
2382 ### May need per-OS attention
2383 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
2386 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2387 LD_D="gcc -shared -Xlinker -x"
2388 WARNINGS="$GCC_WARNINGS"
2392 LD_L="$LD -x -shared"
2395 CC_STATIC="-Xlinker -export-dynamic"
2398 OS_CFLAGS="-ansi -pedantic"
2399 LD_D="gcc -shared -Xlinker -x"
2400 WARNINGS="$GCC_WARNINGS"
2404 LD_L="$LD -x -shared"
2407 CC_STATIC="-Xlinker -export-dynamic"
2413 LD_L=ld -bexpall -bM:SRE -bnoentry
2424 ### Non-gcc needs attention on per-OS basis
2428 ### Support for Solaris-C
2433 LD_D="cc -z text -G -R."
2440 OSRELEASE=`uname -r`
2441 if test "$OSRELEASE" = 6.5; then
2443 WARNINGS="-fullwarn"
2444 PIC= #PIC code is default for IRIX
2445 LD="cc -shared" # modules friendly approach
2447 LD_L="ld -G -z redlocsym"
2452 echo "IRIX prior to 6.5 not allowed for"
2456 *) echo "Native compiler on $OS is not yet supported"
2473 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2474 echo "configure:2475: checking whether byte ordering is bigendian" >&5
2475 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 ac_cv_c_bigendian=unknown
2479 # See if sys/param.h defines the BYTE_ORDER macro.
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 #include <sys/types.h>
2484 #include <sys/param.h>
2487 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2492 if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2494 # It does; now see whether it defined to BIG_ENDIAN or not.
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 #include <sys/types.h>
2499 #include <sys/param.h>
2502 #if BYTE_ORDER != BIG_ENDIAN
2507 if { (eval echo configure:2508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2509 ac_cv_c_bigendian=yes
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 ac_cv_c_bigendian=no
2518 echo "configure: failed program was:" >&5
2519 cat conftest.$ac_ext >&5
2522 if test $ac_cv_c_bigendian = unknown; then
2523 if test "$cross_compiling" = yes; then
2524 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2526 cat > conftest.$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2530 /* Are we little or big endian? From Harbison&Steele. */
2534 char c[sizeof (long)];
2537 exit (u.c[sizeof (long) - 1] == 1);
2540 if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2542 ac_cv_c_bigendian=no
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2547 ac_cv_c_bigendian=yes
2555 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2556 if test $ac_cv_c_bigendian = yes; then
2557 cat >> confdefs.h <<\EOF
2558 #define WORDS_BIGENDIAN 1
2563 echo $ac_n "checking for working const""... $ac_c" 1>&6
2564 echo "configure:2565: checking for working const" >&5
2565 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2574 /* Ultrix mips cc rejects this. */
2575 typedef int charset[2]; const charset x;
2576 /* SunOS 4.1.1 cc rejects this. */
2577 char const *const *ccp;
2579 /* NEC SVR4.0.2 mips cc rejects this. */
2580 struct point {int x, y;};
2581 static struct point const zero = {0,0};
2582 /* AIX XL C 1.02.0.0 rejects this.
2583 It does not let you subtract one const X* pointer from another in an arm
2584 of an if-expression whose if-part is not a constant expression */
2585 const char *g = "string";
2586 ccp = &g + (g ? g-g : 0);
2587 /* HPUX 7.0 cc rejects these. */
2590 ccp = (char const *const *) p;
2591 { /* SCO 3.2v4 cc rejects this. */
2593 char const *s = 0 ? (char *) 0 : (char const *) 0;
2597 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2599 const int *foo = &x[0];
2602 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2603 typedef const int *iptr;
2607 { /* AIX XL C 1.02.0.0 rejects this saying
2608 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2609 struct s { int j; const int *ap[3]; };
2610 struct s *b; b->j = 5;
2612 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2618 if { (eval echo configure:2619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2630 echo "$ac_t""$ac_cv_c_const" 1>&6
2631 if test $ac_cv_c_const = no; then
2632 cat >> confdefs.h <<\EOF
2638 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2639 echo "configure:2640: checking for uid_t in sys/types.h" >&5
2640 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2646 #include <sys/types.h>
2648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2649 egrep "uid_t" >/dev/null 2>&1; then
2651 ac_cv_type_uid_t=yes
2660 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2661 if test $ac_cv_type_uid_t = no; then
2662 cat >> confdefs.h <<\EOF
2666 cat >> confdefs.h <<\EOF
2672 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2673 echo "configure:2674: checking for off_t" >&5
2674 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2687 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2689 ac_cv_type_off_t=yes
2697 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2698 if test $ac_cv_type_off_t = no; then
2699 cat >> confdefs.h <<\EOF
2705 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2706 echo "configure:2707: checking for pid_t" >&5
2707 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 #include <sys/types.h>
2719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2720 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2722 ac_cv_type_pid_t=yes
2730 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2731 if test $ac_cv_type_pid_t = no; then
2732 cat >> confdefs.h <<\EOF
2738 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2739 echo "configure:2740: checking for size_t" >&5
2740 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <sys/types.h>
2752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2753 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2755 ac_cv_type_size_t=yes
2758 ac_cv_type_size_t=no
2763 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2764 if test $ac_cv_type_size_t = no; then
2765 cat >> confdefs.h <<\EOF
2766 #define size_t unsigned
2771 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2772 echo "configure:2773: checking whether time.h and sys/time.h may both be included" >&5
2773 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 #include <sys/types.h>
2780 #include <sys/time.h>
2786 if { (eval echo configure:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2788 ac_cv_header_time=yes
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2793 ac_cv_header_time=no
2798 echo "$ac_t""$ac_cv_header_time" 1>&6
2799 if test $ac_cv_header_time = yes; then
2800 cat >> confdefs.h <<\EOF
2801 #define TIME_WITH_SYS_TIME 1
2806 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2807 echo "configure:2808: checking whether struct tm is in sys/time.h or time.h" >&5
2808 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2814 #include <sys/types.h>
2817 struct tm *tp; tp->tm_sec;
2820 if { (eval echo configure:2821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2822 ac_cv_struct_tm=time.h
2824 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2827 ac_cv_struct_tm=sys/time.h
2832 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2833 if test $ac_cv_struct_tm = sys/time.h; then
2834 cat >> confdefs.h <<\EOF
2835 #define TM_IN_SYS_TIME 1
2841 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2842 echo "configure:2843: checking type of array argument to getgroups" >&5
2843 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 if test "$cross_compiling" = yes; then
2847 ac_cv_type_getgroups=cross
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2853 /* Thanks to Mike Rendell for this test. */
2854 #include <sys/types.h>
2857 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2862 union { gid_t gval; long lval; } val;
2865 for (i = 0; i < NGID; i++)
2866 gidset[i] = val.gval;
2867 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2869 /* Exit non-zero if getgroups seems to require an array of ints. This
2870 happens when gid_t is short but getgroups modifies an array of ints. */
2871 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2875 if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2877 ac_cv_type_getgroups=gid_t
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2882 ac_cv_type_getgroups=int
2887 if test $ac_cv_type_getgroups = cross; then
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2894 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2896 ac_cv_type_getgroups=gid_t
2899 ac_cv_type_getgroups=int
2906 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2907 cat >> confdefs.h <<EOF
2908 #define GETGROUPS_T $ac_cv_type_getgroups
2912 if test $ac_cv_prog_gcc = yes; then
2913 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2914 echo "configure:2915: checking whether ${CC-cc} needs -traditional" >&5
2915 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 ac_pattern="Autoconf.*'x'"
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2926 egrep "$ac_pattern" >/dev/null 2>&1; then
2928 ac_cv_prog_gcc_traditional=yes
2931 ac_cv_prog_gcc_traditional=no
2936 if test $ac_cv_prog_gcc_traditional = no; then
2937 cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2944 egrep "$ac_pattern" >/dev/null 2>&1; then
2946 ac_cv_prog_gcc_traditional=yes
2953 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2954 if test $ac_cv_prog_gcc_traditional = yes; then
2955 CC="$CC -traditional"
2959 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2960 echo "configure:2961: checking for 8-bit clean memcmp" >&5
2961 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 if test "$cross_compiling" = yes; then
2965 ac_cv_func_memcmp_clean=no
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2973 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2974 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2980 ac_cv_func_memcmp_clean=yes
2982 echo "configure: failed program was:" >&5
2983 cat conftest.$ac_ext >&5
2985 ac_cv_func_memcmp_clean=no
2992 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2993 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2995 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2996 echo "configure:2997: checking for vprintf" >&5
2997 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 /* System header to define __stub macros and hopefully few prototypes,
3004 which can conflict with char vprintf(); below. */
3006 /* Override any gcc2 internal prototype to avoid an error. */
3007 /* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3013 /* The GNU C library defines this for functions which it implements
3014 to always fail with ENOSYS. Some functions are actually named
3015 something starting with __ and the normal name is an alias. */
3016 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3026 eval "ac_cv_func_vprintf=yes"
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 eval "ac_cv_func_vprintf=no"
3036 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3037 echo "$ac_t""yes" 1>&6
3038 cat >> confdefs.h <<\EOF
3039 #define HAVE_VPRINTF 1
3043 echo "$ac_t""no" 1>&6
3046 if test "$ac_cv_func_vprintf" != yes; then
3047 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3048 echo "configure:3049: checking for _doprnt" >&5
3049 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 cat > conftest.$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 /* System header to define __stub macros and hopefully few prototypes,
3056 which can conflict with char _doprnt(); below. */
3058 /* Override any gcc2 internal prototype to avoid an error. */
3059 /* We use char because int might match the return type of a gcc2
3060 builtin and then its argument prototype would still apply. */
3065 /* The GNU C library defines this for functions which it implements
3066 to always fail with ENOSYS. Some functions are actually named
3067 something starting with __ and the normal name is an alias. */
3068 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3076 if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3078 eval "ac_cv_func__doprnt=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3083 eval "ac_cv_func__doprnt=no"
3088 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3089 echo "$ac_t""yes" 1>&6
3090 cat >> confdefs.h <<\EOF
3091 #define HAVE_DOPRNT 1
3095 echo "$ac_t""no" 1>&6
3100 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
3102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_func" >&5
3104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 /* System header to define __stub macros and hopefully few prototypes,
3111 which can conflict with char $ac_func(); below. */
3113 /* Override any gcc2 internal prototype to avoid an error. */
3114 /* We use char because int might match the return type of a gcc2
3115 builtin and then its argument prototype would still apply. */
3120 /* The GNU C library defines this for functions which it implements
3121 to always fail with ENOSYS. Some functions are actually named
3122 something starting with __ and the normal name is an alias. */
3123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3131 if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3133 eval "ac_cv_func_$ac_func=yes"
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3138 eval "ac_cv_func_$ac_func=no"
3143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3144 echo "$ac_t""yes" 1>&6
3145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3146 cat >> confdefs.h <<EOF
3147 #define $ac_tr_func 1
3151 echo "$ac_t""no" 1>&6
3156 for ac_func in getpwnam_r getgrnam_r
3158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3159 echo "configure:3160: checking for $ac_func" >&5
3160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 /* System header to define __stub macros and hopefully few prototypes,
3167 which can conflict with char $ac_func(); below. */
3169 /* Override any gcc2 internal prototype to avoid an error. */
3170 /* We use char because int might match the return type of a gcc2
3171 builtin and then its argument prototype would still apply. */
3176 /* The GNU C library defines this for functions which it implements
3177 to always fail with ENOSYS. Some functions are actually named
3178 something starting with __ and the normal name is an alias. */
3179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3187 if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3189 eval "ac_cv_func_$ac_func=yes"
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3194 eval "ac_cv_func_$ac_func=no"
3199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3200 echo "$ac_t""yes" 1>&6
3201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3202 cat >> confdefs.h <<EOF
3203 #define $ac_tr_func 1
3207 echo "$ac_t""no" 1>&6
3212 # Extract the first word of "sgml2txt", so it can be a program name with args.
3213 set dummy sgml2txt; ac_word=$2
3214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3215 echo "configure:3216: checking for $ac_word" >&5
3216 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 if test -n "$HAVE_SGML2TXT"; then
3220 ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
3222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3224 for ac_dir in $ac_dummy; do
3225 test -z "$ac_dir" && ac_dir=.
3226 if test -f $ac_dir/$ac_word; then
3227 ac_cv_prog_HAVE_SGML2TXT="yes"
3232 test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
3235 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
3236 if test -n "$HAVE_SGML2TXT"; then
3237 echo "$ac_t""$HAVE_SGML2TXT" 1>&6
3239 echo "$ac_t""no" 1>&6
3242 # Extract the first word of "sgml2html", so it can be a program name with args.
3243 set dummy sgml2html; ac_word=$2
3244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3245 echo "configure:3246: checking for $ac_word" >&5
3246 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 if test -n "$HAVE_SGML2HTML"; then
3250 ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
3252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3254 for ac_dir in $ac_dummy; do
3255 test -z "$ac_dir" && ac_dir=.
3256 if test -f $ac_dir/$ac_word; then
3257 ac_cv_prog_HAVE_SGML2HTML="yes"
3262 test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
3265 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
3266 if test -n "$HAVE_SGML2HTML"; then
3267 echo "$ac_t""$HAVE_SGML2HTML" 1>&6
3269 echo "$ac_t""no" 1>&6
3272 # Extract the first word of "sgml2latex", so it can be a program name with args.
3273 set dummy sgml2latex; ac_word=$2
3274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_word" >&5
3276 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 if test -n "$HAVE_SGML2LATEX"; then
3280 ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3284 for ac_dir in $ac_dummy; do
3285 test -z "$ac_dir" && ac_dir=.
3286 if test -f $ac_dir/$ac_word; then
3287 ac_cv_prog_HAVE_SGML2LATEX="yes"
3292 test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3295 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3296 if test -n "$HAVE_SGML2LATEX"; then
3297 echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3299 echo "$ac_t""no" 1>&6
3302 if test $HAVE_SGML2LATEX = "yes" ; then
3303 if sgml2latex -h | grep -e --paper | grep ' -p ' > /dev/null ; then
3304 PSER="sgml2latex -o ps"
3306 PSER="sgml2latex -p"
3309 # Extract the first word of "sgml2ps", so it can be a program name with args.
3310 set dummy sgml2ps; ac_word=$2
3311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_word" >&5
3313 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 if test -n "$HAVE_SGML2PS"; then
3317 ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3321 for ac_dir in $ac_dummy; do
3322 test -z "$ac_dir" && ac_dir=.
3323 if test -f $ac_dir/$ac_word; then
3324 ac_cv_prog_HAVE_SGML2PS="yes"
3329 test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3332 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3333 if test -n "$HAVE_SGML2PS"; then
3334 echo "$ac_t""$HAVE_SGML2PS" 1>&6
3336 echo "$ac_t""no" 1>&6
3339 if test $HAVE_SGML2PS = yes ; then
3346 cat > confcache <<\EOF
3347 # This file is a shell script that caches the results of configure
3348 # tests run on this system so they can be shared between configure
3349 # scripts and configure runs. It is not useful on other systems.
3350 # If it contains results you don't want to keep, you may remove or edit it.
3352 # By default, configure uses ./config.cache as the cache file,
3353 # creating it if it does not exist already. You can give configure
3354 # the --cache-file=FILE option to use a different cache file; that is
3355 # what configure does when it calls configure scripts in
3356 # subdirectories, so they share the cache.
3357 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3358 # config.status only pays attention to the cache file if you give it the
3359 # --recheck option to rerun configure.
3362 # The following way of writing the cache mishandles newlines in values,
3363 # but we know of no workaround that is simple, portable, and efficient.
3364 # So, don't put newlines in cache variables' values.
3365 # Ultrix sh set writes to stderr and can't be redirected directly,
3366 # and sets the high bit in the cache file unless we assign to the vars.
3368 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3370 # `set' does not quote correctly, so add quotes (double-quote substitution
3371 # turns \\\\ into \\, and sed turns \\ into \).
3373 -e "s/'/'\\\\''/g" \
3374 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3377 # `set' quotes correctly as required by POSIX, so do not add quotes.
3378 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3381 if cmp -s $cache_file confcache; then
3384 if test -w $cache_file; then
3385 echo "updating cache $cache_file"
3386 cat confcache > $cache_file
3388 echo "not updating unwritable cache $cache_file"
3393 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3395 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3396 # Let make expand exec_prefix.
3397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3399 # Any assignment to VPATH causes Sun make to only execute
3400 # the first set of double-colon rules, so remove it if not needed.
3401 # If there is a colon in the path, we need to keep it.
3402 if test "x$srcdir" = x.; then
3403 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3406 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3408 DEFS=-DHAVE_CONFIG_H
3410 # Without the "./", some shells look in PATH for config.status.
3411 : ${CONFIG_STATUS=./config.status}
3413 echo creating $CONFIG_STATUS
3414 rm -f $CONFIG_STATUS
3415 cat > $CONFIG_STATUS <<EOF
3417 # Generated automatically by configure.
3418 # Run this file to recreate the current configuration.
3419 # This directory was configured as follows,
3420 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3422 # $0 $ac_configure_args
3424 # Compiler output produced by configure, useful for debugging
3425 # configure, is in ./config.log if it exists.
3427 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3430 case "\$ac_option" in
3431 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3432 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3433 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3434 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3435 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3437 -help | --help | --hel | --he | --h)
3438 echo "\$ac_cs_usage"; exit 0 ;;
3439 *) echo "\$ac_cs_usage"; exit 1 ;;
3443 ac_given_srcdir=$srcdir
3445 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3447 cat >> $CONFIG_STATUS <<EOF
3449 # Protect against being on the right side of a sed subst in config.status.
3450 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3451 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3455 s%@CFLAGS@%$CFLAGS%g
3456 s%@CPPFLAGS@%$CPPFLAGS%g
3457 s%@CXXFLAGS@%$CXXFLAGS%g
3458 s%@FFLAGS@%$FFLAGS%g
3460 s%@LDFLAGS@%$LDFLAGS%g
3462 s%@exec_prefix@%$exec_prefix%g
3463 s%@prefix@%$prefix%g
3464 s%@program_transform_name@%$program_transform_name%g
3465 s%@bindir@%$bindir%g
3466 s%@sbindir@%$sbindir%g
3467 s%@libexecdir@%$libexecdir%g
3468 s%@datadir@%$datadir%g
3469 s%@sysconfdir@%$sysconfdir%g
3470 s%@sharedstatedir@%$sharedstatedir%g
3471 s%@localstatedir@%$localstatedir%g
3472 s%@libdir@%$libdir%g
3473 s%@includedir@%$includedir%g
3474 s%@oldincludedir@%$oldincludedir%g
3475 s%@infodir@%$infodir%g
3476 s%@mandir@%$mandir%g
3477 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3478 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3479 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3481 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3483 s%@SHLIBMODE@%$SHLIBMODE%g
3484 s%@USESONAME@%$USESONAME%g
3485 s%@SOSWITCH@%$SOSWITCH%g
3486 s%@NEEDSONAME@%$NEEDSONAME%g
3487 s%@LDCONFIG@%$LDCONFIG%g
3488 s%@INSTALL@%$INSTALL%g
3492 s%@LEXLIB@%$LEXLIB%g
3494 s%@SET_MAKE@%$SET_MAKE%g
3495 s%@WITH_DEBUG@%$WITH_DEBUG%g
3496 s%@WITH_MEMORY_DEBUG@%$WITH_MEMORY_DEBUG%g
3497 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3498 s%@FAKEROOT@%$FAKEROOT%g
3499 s%@SECUREDIR@%$SECUREDIR%g
3500 s%@SCONFIGDIR@%$SCONFIGDIR%g
3501 s%@SUPLEMENTED@%$SUPLEMENTED%g
3502 s%@INCLUDEDIR@%$INCLUDEDIR%g
3503 s%@DOCDIR@%$DOCDIR%g
3504 s%@MANDIR@%$MANDIR%g
3505 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3506 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3507 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3508 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3509 s%@DYNAMIC@%$DYNAMIC%g
3510 s%@STATIC@%$STATIC%g
3511 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3513 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3514 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3516 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3517 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3518 s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
3519 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3520 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3521 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3522 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3523 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3524 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3525 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3526 s%@DYNTYPE@%$DYNTYPE%g
3527 s%@OS_CFLAGS@%$OS_CFLAGS%g
3528 s%@WARNINGS@%$WARNINGS%g
3533 s%@RANLIB@%$RANLIB%g
3535 s%@CC_STATIC@%$CC_STATIC%g
3536 s%@LIBOBJS@%$LIBOBJS%g
3537 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3538 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3539 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3540 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3546 cat >> $CONFIG_STATUS <<\EOF
3548 # Split the substitutions into bite-sized pieces for seds with
3549 # small command number limits, like on Digital OSF/1 and HP-UX.
3550 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3551 ac_file=1 # Number of current file.
3552 ac_beg=1 # First line for current file.
3553 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3556 while $ac_more_lines; do
3557 if test $ac_beg -gt 1; then
3558 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3560 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3562 if test ! -s conftest.s$ac_file; then
3564 rm -f conftest.s$ac_file
3566 if test -z "$ac_sed_cmds"; then
3567 ac_sed_cmds="sed -f conftest.s$ac_file"
3569 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3571 ac_file=`expr $ac_file + 1`
3573 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3576 if test -z "$ac_sed_cmds"; then
3581 cat >> $CONFIG_STATUS <<EOF
3583 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3585 cat >> $CONFIG_STATUS <<\EOF
3586 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3589 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3590 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3591 *) ac_file_in="${ac_file}.in" ;;
3594 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3596 # Remove last slash and all that follows it. Not all systems have dirname.
3597 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3598 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3599 # The file is in a subdirectory.
3600 test ! -d "$ac_dir" && mkdir "$ac_dir"
3601 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3602 # A "../" for each directory in $ac_dir_suffix.
3603 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3605 ac_dir_suffix= ac_dots=
3608 case "$ac_given_srcdir" in
3610 if test -z "$ac_dots"; then top_srcdir=.
3611 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3612 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3614 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3615 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3619 echo creating "$ac_file"
3621 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3623 *Makefile*) ac_comsub="1i\\
3624 # $configure_input" ;;
3628 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3630 s%@configure_input@%$configure_input%g
3631 s%@srcdir@%$srcdir%g
3632 s%@top_srcdir@%$top_srcdir%g
3633 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3637 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3638 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3640 # ac_d sets the value in "#define NAME VALUE" lines.
3641 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3642 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3645 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3646 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3647 ac_uB='\([ ]\)%\1#\2define\3'
3650 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3651 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3652 ac_eB='$%\1#\2define\3'
3656 if test "${CONFIG_HEADERS+set}" != set; then
3658 cat >> $CONFIG_STATUS <<EOF
3659 CONFIG_HEADERS="_pam_aconf.h"
3661 cat >> $CONFIG_STATUS <<\EOF
3663 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3664 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3666 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3667 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3668 *) ac_file_in="${ac_file}.in" ;;
3671 echo creating $ac_file
3673 rm -f conftest.frag conftest.in conftest.out
3674 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3675 cat $ac_file_inputs > conftest.in
3679 # Transform confdefs.h into a sed script conftest.vals that substitutes
3680 # the proper values into config.h.in to produce config.h. And first:
3681 # Protect against being on the right side of a sed subst in config.status.
3682 # Protect against being in an unquoted here document in config.status.
3684 cat > conftest.hdr <<\EOF
3687 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3691 sed -n -f conftest.hdr confdefs.h > conftest.vals
3694 # This sed command replaces #undef with comments. This is necessary, for
3695 # example, in the case of _POSIX_SOURCE, which is predefined and required
3696 # on some systems where configure will not decide to define it.
3697 cat >> conftest.vals <<\EOF
3698 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3701 # Break up conftest.vals because some shells have a limit on
3702 # the size of here documents, and old seds have small limits too.
3707 ac_lines=`grep -c . conftest.vals`
3708 # grep -c gives empty output for an empty file on some AIX systems.
3709 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3710 # Write a limited-size here document to conftest.frag.
3711 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3712 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3714 sed -f conftest.frag conftest.in > conftest.out
3716 mv conftest.out conftest.in
3718 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3720 mv conftest.tail conftest.vals
3724 cat >> $CONFIG_STATUS <<\EOF
3725 rm -f conftest.frag conftest.h
3726 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3727 cat conftest.in >> conftest.h
3729 if cmp -s $ac_file conftest.h 2>/dev/null; then
3730 echo "$ac_file is unchanged"
3733 # Remove last slash and all that follows it. Not all systems have dirname.
3734 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3735 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3736 # The file is in a subdirectory.
3737 test ! -d "$ac_dir" && mkdir "$ac_dir"
3740 mv conftest.h $ac_file
3745 cat >> $CONFIG_STATUS <<EOF
3748 cat >> $CONFIG_STATUS <<\EOF
3752 chmod +x $CONFIG_STATUS
3753 rm -fr confdefs* $ac_clean_files
3754 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1