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
1870 echo $ac_n "checking for yywrap in -lfl""... $ac_c" 1>&6
1871 echo "configure:1872: checking for yywrap in -lfl" >&5
1872 ac_lib_var=`echo fl'_'yywrap | sed 'y%./+-%__p_%'`
1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 ac_save_LIBS="$LIBS"
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 /* Override any gcc2 internal prototype to avoid an error. */
1882 /* We use char because int might match the return type of a gcc2
1883 builtin and then its argument prototype would still apply. */
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1892 eval "ac_cv_lib_$ac_lib_var=yes"
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1897 eval "ac_cv_lib_$ac_lib_var=no"
1900 LIBS="$ac_save_LIBS"
1903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1904 echo "$ac_t""yes" 1>&6
1905 HAVE_LIBFLEX=yes ; cat >> confdefs.h <<\EOF
1906 #define HAVE_LIBFLEX 1
1910 echo "$ac_t""no" 1>&6
1915 echo $ac_n "checking for yywrap in -ll""... $ac_c" 1>&6
1916 echo "configure:1917: checking for yywrap in -ll" >&5
1917 ac_lib_var=`echo l'_'yywrap | sed 'y%./+-%__p_%'`
1918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 ac_save_LIBS="$LIBS"
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1926 /* Override any gcc2 internal prototype to avoid an error. */
1927 /* We use char because int might match the return type of a gcc2
1928 builtin and then its argument prototype would still apply. */
1935 if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1937 eval "ac_cv_lib_$ac_lib_var=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 eval "ac_cv_lib_$ac_lib_var=no"
1945 LIBS="$ac_save_LIBS"
1948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1949 echo "$ac_t""yes" 1>&6
1950 HAVE_LIBLEX=yes ; cat >> confdefs.h <<\EOF
1951 #define HAVE_LIBLEX 1
1955 echo "$ac_t""no" 1>&6
1962 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1965 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_hdr that defines DIR" >&5
1967 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 #include <sys/types.h>
1979 if { (eval echo configure:1980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1981 eval "ac_cv_header_dirent_$ac_safe=yes"
1983 echo "configure: failed program was:" >&5
1984 cat conftest.$ac_ext >&5
1986 eval "ac_cv_header_dirent_$ac_safe=no"
1990 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1991 echo "$ac_t""yes" 1>&6
1992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1993 cat >> confdefs.h <<EOF
1994 #define $ac_tr_hdr 1
1996 ac_header_dirent=$ac_hdr; break
1998 echo "$ac_t""no" 1>&6
2001 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2002 if test $ac_header_dirent = dirent.h; then
2003 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2004 echo "configure:2005: checking for opendir in -ldir" >&5
2005 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 ac_save_LIBS="$LIBS"
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2014 /* Override any gcc2 internal prototype to avoid an error. */
2015 /* We use char because int might match the return type of a gcc2
2016 builtin and then its argument prototype would still apply. */
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2025 eval "ac_cv_lib_$ac_lib_var=yes"
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2030 eval "ac_cv_lib_$ac_lib_var=no"
2033 LIBS="$ac_save_LIBS"
2036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2037 echo "$ac_t""yes" 1>&6
2040 echo "$ac_t""no" 1>&6
2044 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2045 echo "configure:2046: checking for opendir in -lx" >&5
2046 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2048 echo $ac_n "(cached) $ac_c" 1>&6
2050 ac_save_LIBS="$LIBS"
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 /* Override any gcc2 internal prototype to avoid an error. */
2056 /* We use char because int might match the return type of a gcc2
2057 builtin and then its argument prototype would still apply. */
2064 if { (eval echo configure:2065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2066 eval "ac_cv_lib_$ac_lib_var=yes"
2068 echo "configure: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2071 eval "ac_cv_lib_$ac_lib_var=no"
2074 LIBS="$ac_save_LIBS"
2077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2078 echo "$ac_t""yes" 1>&6
2081 echo "$ac_t""no" 1>&6
2086 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2087 echo "configure:2088: checking for ANSI C header files" >&5
2088 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2100 { (eval echo configure:2101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2102 if test -z "$ac_err"; then
2104 ac_cv_header_stdc=yes
2107 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2110 ac_cv_header_stdc=no
2114 if test $ac_cv_header_stdc = yes; then
2115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2122 egrep "memchr" >/dev/null 2>&1; then
2126 ac_cv_header_stdc=no
2132 if test $ac_cv_header_stdc = yes; then
2133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2134 cat > conftest.$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2140 egrep "free" >/dev/null 2>&1; then
2144 ac_cv_header_stdc=no
2150 if test $ac_cv_header_stdc = yes; then
2151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2152 if test "$cross_compiling" = yes; then
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2159 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2160 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2162 int main () { int i; for (i = 0; i < 256; i++)
2163 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 ac_cv_header_stdc=no
2182 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2183 if test $ac_cv_header_stdc = yes; then
2184 cat >> confdefs.h <<\EOF
2185 #define STDC_HEADERS 1
2190 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2191 echo "configure:2192: checking for sys/wait.h that is POSIX.1 compatible" >&5
2192 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <sys/types.h>
2199 #include <sys/wait.h>
2201 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2204 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2209 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2214 ac_cv_header_sys_wait_h=yes
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 ac_cv_header_sys_wait_h=no
2224 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2225 if test $ac_cv_header_sys_wait_h = yes; then
2226 cat >> confdefs.h <<\EOF
2227 #define HAVE_SYS_WAIT_H 1
2232 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
2234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2250 eval "ac_cv_header_$ac_safe=yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2256 eval "ac_cv_header_$ac_safe=no"
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_hdr 1
2268 echo "$ac_t""no" 1>&6
2273 for ac_hdr in features.h
2275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2277 echo "configure:2278: checking for $ac_hdr" >&5
2278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2287 { (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2289 if test -z "$ac_err"; then
2291 eval "ac_cv_header_$ac_safe=yes"
2294 echo "configure: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2297 eval "ac_cv_header_$ac_safe=no"
2301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2302 echo "$ac_t""yes" 1>&6
2303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2304 cat >> confdefs.h <<EOF
2305 #define $ac_tr_hdr 1
2309 echo "$ac_t""no" 1>&6
2314 for ac_hdr in crypt.h
2316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_hdr" >&5
2319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2328 { (eval echo configure:2329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2330 if test -z "$ac_err"; then
2332 eval "ac_cv_header_$ac_safe=yes"
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 eval "ac_cv_header_$ac_safe=no"
2342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2345 cat >> confdefs.h <<EOF
2346 #define $ac_tr_hdr 1
2350 echo "$ac_t""no" 1>&6
2355 for ac_hdr in ndbm.h db.h
2357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_hdr" >&5
2360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2369 { (eval echo configure:2370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2371 if test -z "$ac_err"; then
2373 eval "ac_cv_header_$ac_safe=yes"
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2379 eval "ac_cv_header_$ac_safe=no"
2383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2386 cat >> confdefs.h <<EOF
2387 #define $ac_tr_hdr 1
2391 echo "$ac_t""no" 1>&6
2395 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2398 for ac_hdr in lastlog.h utmp.h utmpx.h
2400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2402 echo "configure:2403: checking for $ac_hdr" >&5
2403 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2412 { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2414 if test -z "$ac_err"; then
2416 eval "ac_cv_header_$ac_safe=yes"
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2422 eval "ac_cv_header_$ac_safe=no"
2426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2429 cat >> confdefs.h <<EOF
2430 #define $ac_tr_hdr 1
2434 echo "$ac_t""no" 1>&6
2440 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2441 echo "configure:2442: checking path to cracklib dictionary" >&5
2442 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2443 /usr/local/lib /usr/local/share/lib"
2444 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2445 CRACKLIB_DICTPATH=""
2446 for d in $DICT_DIR_CANDIDATES ; do
2447 for f in $DICT_FILE_CANDIDATES ; do
2448 if test -r $d/$f.hwm ; then
2449 CRACKLIB_DICTPATH=$d/$f
2451 elif test -r $d/dict/$f.hwm ; then
2452 CRACKLIB_DICTPATH=$d/dict/$f
2457 if test -z "$CRACKLIB_DICTPATH" ; then
2458 echo "$ac_t""none found" 1>&6
2460 echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2465 GCC_WARNINGS="-Wall -Wwrite-strings \
2466 -Wpointer-arith -Wcast-qual -Wcast-align \
2467 -Wstrict-prototypes -Wmissing-prototypes \
2468 -Wnested-externs -Winline -Wshadow"
2470 if test "$GCC" = yes; then
2472 ### May need per-OS attention
2473 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
2476 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2477 LD_D="gcc -shared -Xlinker -x"
2478 WARNINGS="$GCC_WARNINGS"
2482 LD_L="$LD -x -shared"
2485 CC_STATIC="-Xlinker -export-dynamic"
2488 OS_CFLAGS="-ansi -pedantic"
2489 LD_D="gcc -shared -Xlinker -x"
2490 WARNINGS="$GCC_WARNINGS"
2494 LD_L="$LD -x -shared"
2497 CC_STATIC="-Xlinker -export-dynamic"
2503 LD_L=ld -bexpall -bM:SRE -bnoentry
2514 ### Non-gcc needs attention on per-OS basis
2518 # add some stuff here (see sourceforge bug 534205)
2519 # DOCDIR=/System/Documentation/Administration/Libraries/PAM
2520 # MANDIR=/usr/share/man
2523 ### Support for Solaris-C
2528 LD_D="cc -z text -G -R."
2535 OSRELEASE=`uname -r`
2536 if test "$OSRELEASE" = 6.5; then
2538 WARNINGS="-fullwarn"
2539 PIC= #PIC code is default for IRIX
2540 LD="cc -shared" # modules friendly approach
2542 LD_L="ld -G -z redlocsym"
2547 echo "IRIX prior to 6.5 not allowed for"
2551 *) echo "Native compiler on $OS is not yet supported"
2568 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2569 echo "configure:2570: checking whether byte ordering is bigendian" >&5
2570 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 ac_cv_c_bigendian=unknown
2574 # See if sys/param.h defines the BYTE_ORDER macro.
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 #include <sys/types.h>
2579 #include <sys/param.h>
2582 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2587 if { (eval echo configure:2588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2589 # It does; now see whether it defined to BIG_ENDIAN or not.
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <sys/types.h>
2594 #include <sys/param.h>
2597 #if BYTE_ORDER != BIG_ENDIAN
2602 if { (eval echo configure:2603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2604 ac_cv_c_bigendian=yes
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2609 ac_cv_c_bigendian=no
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2617 if test $ac_cv_c_bigendian = unknown; then
2618 if test "$cross_compiling" = yes; then
2619 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2625 /* Are we little or big endian? From Harbison&Steele. */
2629 char c[sizeof (long)];
2632 exit (u.c[sizeof (long) - 1] == 1);
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2637 ac_cv_c_bigendian=no
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 ac_cv_c_bigendian=yes
2650 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2651 if test $ac_cv_c_bigendian = yes; then
2652 cat >> confdefs.h <<\EOF
2653 #define WORDS_BIGENDIAN 1
2658 echo $ac_n "checking for working const""... $ac_c" 1>&6
2659 echo "configure:2660: checking for working const" >&5
2660 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2669 /* Ultrix mips cc rejects this. */
2670 typedef int charset[2]; const charset x;
2671 /* SunOS 4.1.1 cc rejects this. */
2672 char const *const *ccp;
2674 /* NEC SVR4.0.2 mips cc rejects this. */
2675 struct point {int x, y;};
2676 static struct point const zero = {0,0};
2677 /* AIX XL C 1.02.0.0 rejects this.
2678 It does not let you subtract one const X* pointer from another in an arm
2679 of an if-expression whose if-part is not a constant expression */
2680 const char *g = "string";
2681 ccp = &g + (g ? g-g : 0);
2682 /* HPUX 7.0 cc rejects these. */
2685 ccp = (char const *const *) p;
2686 { /* SCO 3.2v4 cc rejects this. */
2688 char const *s = 0 ? (char *) 0 : (char const *) 0;
2692 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2694 const int *foo = &x[0];
2697 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2698 typedef const int *iptr;
2702 { /* AIX XL C 1.02.0.0 rejects this saying
2703 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2704 struct s { int j; const int *ap[3]; };
2705 struct s *b; b->j = 5;
2707 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2713 if { (eval echo configure:2714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2725 echo "$ac_t""$ac_cv_c_const" 1>&6
2726 if test $ac_cv_c_const = no; then
2727 cat >> confdefs.h <<\EOF
2733 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2734 echo "configure:2735: checking for uid_t in sys/types.h" >&5
2735 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <sys/types.h>
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744 egrep "uid_t" >/dev/null 2>&1; then
2746 ac_cv_type_uid_t=yes
2755 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2756 if test $ac_cv_type_uid_t = no; then
2757 cat >> confdefs.h <<\EOF
2761 cat >> confdefs.h <<\EOF
2767 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2768 echo "configure:2769: checking for off_t" >&5
2769 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <sys/types.h>
2781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2782 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2784 ac_cv_type_off_t=yes
2792 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2793 if test $ac_cv_type_off_t = no; then
2794 cat >> confdefs.h <<\EOF
2800 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2801 echo "configure:2802: checking for pid_t" >&5
2802 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #include <sys/types.h>
2814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2815 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2817 ac_cv_type_pid_t=yes
2825 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2826 if test $ac_cv_type_pid_t = no; then
2827 cat >> confdefs.h <<\EOF
2833 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2834 echo "configure:2835: checking for size_t" >&5
2835 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 #include <sys/types.h>
2847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2848 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2850 ac_cv_type_size_t=yes
2853 ac_cv_type_size_t=no
2858 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2859 if test $ac_cv_type_size_t = no; then
2860 cat >> confdefs.h <<\EOF
2861 #define size_t unsigned
2866 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2867 echo "configure:2868: checking whether time.h and sys/time.h may both be included" >&5
2868 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 #include <sys/types.h>
2875 #include <sys/time.h>
2881 if { (eval echo configure:2882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2883 ac_cv_header_time=yes
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2888 ac_cv_header_time=no
2893 echo "$ac_t""$ac_cv_header_time" 1>&6
2894 if test $ac_cv_header_time = yes; then
2895 cat >> confdefs.h <<\EOF
2896 #define TIME_WITH_SYS_TIME 1
2901 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2902 echo "configure:2903: checking whether struct tm is in sys/time.h or time.h" >&5
2903 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2909 #include <sys/types.h>
2912 struct tm *tp; tp->tm_sec;
2915 if { (eval echo configure:2916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2917 ac_cv_struct_tm=time.h
2919 echo "configure: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2922 ac_cv_struct_tm=sys/time.h
2927 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2928 if test $ac_cv_struct_tm = sys/time.h; then
2929 cat >> confdefs.h <<\EOF
2930 #define TM_IN_SYS_TIME 1
2936 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2937 echo "configure:2938: checking type of array argument to getgroups" >&5
2938 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 if test "$cross_compiling" = yes; then
2942 ac_cv_type_getgroups=cross
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2948 /* Thanks to Mike Rendell for this test. */
2949 #include <sys/types.h>
2952 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2957 union { gid_t gval; long lval; } val;
2960 for (i = 0; i < NGID; i++)
2961 gidset[i] = val.gval;
2962 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2964 /* Exit non-zero if getgroups seems to require an array of ints. This
2965 happens when gid_t is short but getgroups modifies an array of ints. */
2966 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2970 if { (eval echo configure:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2972 ac_cv_type_getgroups=gid_t
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2977 ac_cv_type_getgroups=int
2982 if test $ac_cv_type_getgroups = cross; then
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2989 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2991 ac_cv_type_getgroups=gid_t
2994 ac_cv_type_getgroups=int
3001 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3002 cat >> confdefs.h <<EOF
3003 #define GETGROUPS_T $ac_cv_type_getgroups
3007 if test $ac_cv_prog_gcc = yes; then
3008 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3009 echo "configure:3010: checking whether ${CC-cc} needs -traditional" >&5
3010 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 ac_pattern="Autoconf.*'x'"
3014 cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3021 egrep "$ac_pattern" >/dev/null 2>&1; then
3023 ac_cv_prog_gcc_traditional=yes
3026 ac_cv_prog_gcc_traditional=no
3031 if test $ac_cv_prog_gcc_traditional = no; then
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039 egrep "$ac_pattern" >/dev/null 2>&1; then
3041 ac_cv_prog_gcc_traditional=yes
3048 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3049 if test $ac_cv_prog_gcc_traditional = yes; then
3050 CC="$CC -traditional"
3054 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3055 echo "configure:3056: checking for 8-bit clean memcmp" >&5
3056 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 if test "$cross_compiling" = yes; then
3060 ac_cv_func_memcmp_clean=no
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3068 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3069 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3073 if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3075 ac_cv_func_memcmp_clean=yes
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 ac_cv_func_memcmp_clean=no
3087 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3088 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3090 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3091 echo "configure:3092: checking for vprintf" >&5
3092 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098 /* System header to define __stub macros and hopefully few prototypes,
3099 which can conflict with char vprintf(); below. */
3101 /* Override any gcc2 internal prototype to avoid an error. */
3102 /* We use char because int might match the return type of a gcc2
3103 builtin and then its argument prototype would still apply. */
3108 /* The GNU C library defines this for functions which it implements
3109 to always fail with ENOSYS. Some functions are actually named
3110 something starting with __ and the normal name is an alias. */
3111 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3121 eval "ac_cv_func_vprintf=yes"
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3126 eval "ac_cv_func_vprintf=no"
3131 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3132 echo "$ac_t""yes" 1>&6
3133 cat >> confdefs.h <<\EOF
3134 #define HAVE_VPRINTF 1
3138 echo "$ac_t""no" 1>&6
3141 if test "$ac_cv_func_vprintf" != yes; then
3142 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3143 echo "configure:3144: checking for _doprnt" >&5
3144 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3150 /* System header to define __stub macros and hopefully few prototypes,
3151 which can conflict with char _doprnt(); below. */
3153 /* Override any gcc2 internal prototype to avoid an error. */
3154 /* We use char because int might match the return type of a gcc2
3155 builtin and then its argument prototype would still apply. */
3160 /* The GNU C library defines this for functions which it implements
3161 to always fail with ENOSYS. Some functions are actually named
3162 something starting with __ and the normal name is an alias. */
3163 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3173 eval "ac_cv_func__doprnt=yes"
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3178 eval "ac_cv_func__doprnt=no"
3183 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3184 echo "$ac_t""yes" 1>&6
3185 cat >> confdefs.h <<\EOF
3186 #define HAVE_DOPRNT 1
3190 echo "$ac_t""no" 1>&6
3195 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
3197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3198 echo "configure:3199: checking for $ac_func" >&5
3199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 /* System header to define __stub macros and hopefully few prototypes,
3206 which can conflict with char $ac_func(); below. */
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3215 /* The GNU C library defines this for functions which it implements
3216 to always fail with ENOSYS. Some functions are actually named
3217 something starting with __ and the normal name is an alias. */
3218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3226 if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 eval "ac_cv_func_$ac_func=yes"
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3233 eval "ac_cv_func_$ac_func=no"
3238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3241 cat >> confdefs.h <<EOF
3242 #define $ac_tr_func 1
3246 echo "$ac_t""no" 1>&6
3251 for ac_func in getpwnam_r getgrnam_r
3253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_func" >&5
3255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* System header to define __stub macros and hopefully few prototypes,
3262 which can conflict with char $ac_func(); below. */
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3271 /* The GNU C library defines this for functions which it implements
3272 to always fail with ENOSYS. Some functions are actually named
3273 something starting with __ and the normal name is an alias. */
3274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3282 if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3284 eval "ac_cv_func_$ac_func=yes"
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3289 eval "ac_cv_func_$ac_func=no"
3294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3295 echo "$ac_t""yes" 1>&6
3296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3297 cat >> confdefs.h <<EOF
3298 #define $ac_tr_func 1
3302 echo "$ac_t""no" 1>&6
3307 # Extract the first word of "sgml2txt", so it can be a program name with args.
3308 set dummy sgml2txt; ac_word=$2
3309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3310 echo "configure:3311: checking for $ac_word" >&5
3311 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 if test -n "$HAVE_SGML2TXT"; then
3315 ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
3317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3319 for ac_dir in $ac_dummy; do
3320 test -z "$ac_dir" && ac_dir=.
3321 if test -f $ac_dir/$ac_word; then
3322 ac_cv_prog_HAVE_SGML2TXT="yes"
3327 test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
3330 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
3331 if test -n "$HAVE_SGML2TXT"; then
3332 echo "$ac_t""$HAVE_SGML2TXT" 1>&6
3334 echo "$ac_t""no" 1>&6
3337 # Extract the first word of "sgml2html", so it can be a program name with args.
3338 set dummy sgml2html; ac_word=$2
3339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3340 echo "configure:3341: checking for $ac_word" >&5
3341 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 if test -n "$HAVE_SGML2HTML"; then
3345 ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
3347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3349 for ac_dir in $ac_dummy; do
3350 test -z "$ac_dir" && ac_dir=.
3351 if test -f $ac_dir/$ac_word; then
3352 ac_cv_prog_HAVE_SGML2HTML="yes"
3357 test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
3360 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
3361 if test -n "$HAVE_SGML2HTML"; then
3362 echo "$ac_t""$HAVE_SGML2HTML" 1>&6
3364 echo "$ac_t""no" 1>&6
3367 # Extract the first word of "sgml2latex", so it can be a program name with args.
3368 set dummy sgml2latex; ac_word=$2
3369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_word" >&5
3371 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3374 if test -n "$HAVE_SGML2LATEX"; then
3375 ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3379 for ac_dir in $ac_dummy; do
3380 test -z "$ac_dir" && ac_dir=.
3381 if test -f $ac_dir/$ac_word; then
3382 ac_cv_prog_HAVE_SGML2LATEX="yes"
3387 test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3390 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3391 if test -n "$HAVE_SGML2LATEX"; then
3392 echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3394 echo "$ac_t""no" 1>&6
3397 if test $HAVE_SGML2LATEX = "yes" ; then
3398 if sgml2latex -h | grep -e --paper | grep ' -p ' > /dev/null ; then
3399 PSER="sgml2latex -o ps"
3401 PSER="sgml2latex -p"
3403 # Extract the first word of "ps2pdf", so it can be a program name with args.
3404 set dummy ps2pdf; ac_word=$2
3405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_word" >&5
3407 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_PS2PDF'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 if test -n "$HAVE_PS2PDF"; then
3411 ac_cv_prog_HAVE_PS2PDF="$HAVE_PS2PDF" # Let the user override the test.
3413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3415 for ac_dir in $ac_dummy; do
3416 test -z "$ac_dir" && ac_dir=.
3417 if test -f $ac_dir/$ac_word; then
3418 ac_cv_prog_HAVE_PS2PDF="yes"
3423 test -z "$ac_cv_prog_HAVE_PS2PDF" && ac_cv_prog_HAVE_PS2PDF="no"
3426 HAVE_PS2PDF="$ac_cv_prog_HAVE_PS2PDF"
3427 if test -n "$HAVE_PS2PDF"; then
3428 echo "$ac_t""$HAVE_PS2PDF" 1>&6
3430 echo "$ac_t""no" 1>&6
3434 # Extract the first word of "sgml2ps", so it can be a program name with args.
3435 set dummy sgml2ps; ac_word=$2
3436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3437 echo "configure:3438: checking for $ac_word" >&5
3438 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 if test -n "$HAVE_SGML2PS"; then
3442 ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3446 for ac_dir in $ac_dummy; do
3447 test -z "$ac_dir" && ac_dir=.
3448 if test -f $ac_dir/$ac_word; then
3449 ac_cv_prog_HAVE_SGML2PS="yes"
3454 test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3457 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3458 if test -n "$HAVE_SGML2PS"; then
3459 echo "$ac_t""$HAVE_SGML2PS" 1>&6
3461 echo "$ac_t""no" 1>&6
3464 if test $HAVE_SGML2PS = yes ; then
3472 cat > confcache <<\EOF
3473 # This file is a shell script that caches the results of configure
3474 # tests run on this system so they can be shared between configure
3475 # scripts and configure runs. It is not useful on other systems.
3476 # If it contains results you don't want to keep, you may remove or edit it.
3478 # By default, configure uses ./config.cache as the cache file,
3479 # creating it if it does not exist already. You can give configure
3480 # the --cache-file=FILE option to use a different cache file; that is
3481 # what configure does when it calls configure scripts in
3482 # subdirectories, so they share the cache.
3483 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3484 # config.status only pays attention to the cache file if you give it the
3485 # --recheck option to rerun configure.
3488 # The following way of writing the cache mishandles newlines in values,
3489 # but we know of no workaround that is simple, portable, and efficient.
3490 # So, don't put newlines in cache variables' values.
3491 # Ultrix sh set writes to stderr and can't be redirected directly,
3492 # and sets the high bit in the cache file unless we assign to the vars.
3494 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3496 # `set' does not quote correctly, so add quotes (double-quote substitution
3497 # turns \\\\ into \\, and sed turns \\ into \).
3499 -e "s/'/'\\\\''/g" \
3500 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3503 # `set' quotes correctly as required by POSIX, so do not add quotes.
3504 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3507 if cmp -s $cache_file confcache; then
3510 if test -w $cache_file; then
3511 echo "updating cache $cache_file"
3512 cat confcache > $cache_file
3514 echo "not updating unwritable cache $cache_file"
3519 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3522 # Let make expand exec_prefix.
3523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3525 # Any assignment to VPATH causes Sun make to only execute
3526 # the first set of double-colon rules, so remove it if not needed.
3527 # If there is a colon in the path, we need to keep it.
3528 if test "x$srcdir" = x.; then
3529 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3532 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3534 DEFS=-DHAVE_CONFIG_H
3536 # Without the "./", some shells look in PATH for config.status.
3537 : ${CONFIG_STATUS=./config.status}
3539 echo creating $CONFIG_STATUS
3540 rm -f $CONFIG_STATUS
3541 cat > $CONFIG_STATUS <<EOF
3543 # Generated automatically by configure.
3544 # Run this file to recreate the current configuration.
3545 # This directory was configured as follows,
3546 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3548 # $0 $ac_configure_args
3550 # Compiler output produced by configure, useful for debugging
3551 # configure, is in ./config.log if it exists.
3553 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3556 case "\$ac_option" in
3557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3558 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3559 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3560 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3561 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3563 -help | --help | --hel | --he | --h)
3564 echo "\$ac_cs_usage"; exit 0 ;;
3565 *) echo "\$ac_cs_usage"; exit 1 ;;
3569 ac_given_srcdir=$srcdir
3571 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3573 cat >> $CONFIG_STATUS <<EOF
3575 # Protect against being on the right side of a sed subst in config.status.
3576 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3577 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3581 s%@CFLAGS@%$CFLAGS%g
3582 s%@CPPFLAGS@%$CPPFLAGS%g
3583 s%@CXXFLAGS@%$CXXFLAGS%g
3584 s%@FFLAGS@%$FFLAGS%g
3586 s%@LDFLAGS@%$LDFLAGS%g
3588 s%@exec_prefix@%$exec_prefix%g
3589 s%@prefix@%$prefix%g
3590 s%@program_transform_name@%$program_transform_name%g
3591 s%@bindir@%$bindir%g
3592 s%@sbindir@%$sbindir%g
3593 s%@libexecdir@%$libexecdir%g
3594 s%@datadir@%$datadir%g
3595 s%@sysconfdir@%$sysconfdir%g
3596 s%@sharedstatedir@%$sharedstatedir%g
3597 s%@localstatedir@%$localstatedir%g
3598 s%@libdir@%$libdir%g
3599 s%@includedir@%$includedir%g
3600 s%@oldincludedir@%$oldincludedir%g
3601 s%@infodir@%$infodir%g
3602 s%@mandir@%$mandir%g
3603 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3604 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3605 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3607 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3609 s%@SHLIBMODE@%$SHLIBMODE%g
3610 s%@USESONAME@%$USESONAME%g
3611 s%@SOSWITCH@%$SOSWITCH%g
3612 s%@NEEDSONAME@%$NEEDSONAME%g
3613 s%@LDCONFIG@%$LDCONFIG%g
3614 s%@INSTALL@%$INSTALL%g
3618 s%@LEXLIB@%$LEXLIB%g
3620 s%@SET_MAKE@%$SET_MAKE%g
3621 s%@WITH_DEBUG@%$WITH_DEBUG%g
3622 s%@WITH_MEMORY_DEBUG@%$WITH_MEMORY_DEBUG%g
3623 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3624 s%@FAKEROOT@%$FAKEROOT%g
3625 s%@SECUREDIR@%$SECUREDIR%g
3626 s%@SCONFIGDIR@%$SCONFIGDIR%g
3627 s%@SUPLEMENTED@%$SUPLEMENTED%g
3628 s%@INCLUDEDIR@%$INCLUDEDIR%g
3629 s%@DOCDIR@%$DOCDIR%g
3630 s%@MANDIR@%$MANDIR%g
3631 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3632 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3633 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3634 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3635 s%@DYNAMIC@%$DYNAMIC%g
3636 s%@STATIC@%$STATIC%g
3637 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3639 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3640 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3642 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3643 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3644 s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
3645 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3646 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3647 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3648 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3649 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3650 s%@HAVE_LIBFLEX@%$HAVE_LIBFLEX%g
3651 s%@HAVE_LIBLEX@%$HAVE_LIBLEX%g
3652 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3653 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3654 s%@DYNTYPE@%$DYNTYPE%g
3655 s%@OS_CFLAGS@%$OS_CFLAGS%g
3656 s%@WARNINGS@%$WARNINGS%g
3661 s%@RANLIB@%$RANLIB%g
3663 s%@CC_STATIC@%$CC_STATIC%g
3664 s%@LIBOBJS@%$LIBOBJS%g
3665 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3666 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3667 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3668 s%@HAVE_PS2PDF@%$HAVE_PS2PDF%g
3669 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3671 s%@PS2PDF@%$PS2PDF%g
3676 cat >> $CONFIG_STATUS <<\EOF
3678 # Split the substitutions into bite-sized pieces for seds with
3679 # small command number limits, like on Digital OSF/1 and HP-UX.
3680 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3681 ac_file=1 # Number of current file.
3682 ac_beg=1 # First line for current file.
3683 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3686 while $ac_more_lines; do
3687 if test $ac_beg -gt 1; then
3688 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3690 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3692 if test ! -s conftest.s$ac_file; then
3694 rm -f conftest.s$ac_file
3696 if test -z "$ac_sed_cmds"; then
3697 ac_sed_cmds="sed -f conftest.s$ac_file"
3699 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3701 ac_file=`expr $ac_file + 1`
3703 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3706 if test -z "$ac_sed_cmds"; then
3711 cat >> $CONFIG_STATUS <<EOF
3713 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3715 cat >> $CONFIG_STATUS <<\EOF
3716 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3717 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3719 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3720 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3721 *) ac_file_in="${ac_file}.in" ;;
3724 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3726 # Remove last slash and all that follows it. Not all systems have dirname.
3727 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3728 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3729 # The file is in a subdirectory.
3730 test ! -d "$ac_dir" && mkdir "$ac_dir"
3731 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3732 # A "../" for each directory in $ac_dir_suffix.
3733 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3735 ac_dir_suffix= ac_dots=
3738 case "$ac_given_srcdir" in
3740 if test -z "$ac_dots"; then top_srcdir=.
3741 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3742 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3744 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3745 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3749 echo creating "$ac_file"
3751 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3753 *Makefile*) ac_comsub="1i\\
3754 # $configure_input" ;;
3758 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3760 s%@configure_input@%$configure_input%g
3761 s%@srcdir@%$srcdir%g
3762 s%@top_srcdir@%$top_srcdir%g
3763 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3767 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3768 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3770 # ac_d sets the value in "#define NAME VALUE" lines.
3771 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3772 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3775 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3776 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3777 ac_uB='\([ ]\)%\1#\2define\3'
3780 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3781 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3782 ac_eB='$%\1#\2define\3'
3786 if test "${CONFIG_HEADERS+set}" != set; then
3788 cat >> $CONFIG_STATUS <<EOF
3789 CONFIG_HEADERS="_pam_aconf.h"
3791 cat >> $CONFIG_STATUS <<\EOF
3793 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3794 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3796 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3797 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3798 *) ac_file_in="${ac_file}.in" ;;
3801 echo creating $ac_file
3803 rm -f conftest.frag conftest.in conftest.out
3804 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3805 cat $ac_file_inputs > conftest.in
3809 # Transform confdefs.h into a sed script conftest.vals that substitutes
3810 # the proper values into config.h.in to produce config.h. And first:
3811 # Protect against being on the right side of a sed subst in config.status.
3812 # Protect against being in an unquoted here document in config.status.
3814 cat > conftest.hdr <<\EOF
3817 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3821 sed -n -f conftest.hdr confdefs.h > conftest.vals
3824 # This sed command replaces #undef with comments. This is necessary, for
3825 # example, in the case of _POSIX_SOURCE, which is predefined and required
3826 # on some systems where configure will not decide to define it.
3827 cat >> conftest.vals <<\EOF
3828 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3831 # Break up conftest.vals because some shells have a limit on
3832 # the size of here documents, and old seds have small limits too.
3837 ac_lines=`grep -c . conftest.vals`
3838 # grep -c gives empty output for an empty file on some AIX systems.
3839 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3840 # Write a limited-size here document to conftest.frag.
3841 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3842 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3844 sed -f conftest.frag conftest.in > conftest.out
3846 mv conftest.out conftest.in
3848 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3850 mv conftest.tail conftest.vals
3854 cat >> $CONFIG_STATUS <<\EOF
3855 rm -f conftest.frag conftest.h
3856 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3857 cat conftest.in >> conftest.h
3859 if cmp -s $ac_file conftest.h 2>/dev/null; then
3860 echo "$ac_file is unchanged"
3863 # Remove last slash and all that follows it. Not all systems have dirname.
3864 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3865 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3866 # The file is in a subdirectory.
3867 test ! -d "$ac_dir" && mkdir "$ac_dir"
3870 mv conftest.h $ac_file
3875 cat >> $CONFIG_STATUS <<EOF
3878 cat >> $CONFIG_STATUS <<\EOF
3882 chmod +x $CONFIG_STATUS
3883 rm -fr confdefs* $ac_clean_files
3884 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1