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 qspecify you are building with debugging on"
18 --enable-libdebug specify you are building debugging libraries"
20 --enable-fakeroot=<path to packaging directory>"
22 --enable-securedir=<path to location of PAMs> [default \$libdir/security]"
24 --enable-sconfigdir=<path to module conf files> [default \$sysconfdir/security]"
26 --enable-suplementedir=<path to module helper binaries> [default \$sbindir]"
28 --enable-includedir=<path to include location> - where to put <security>"
30 --enable-pamlocking configure libpam to observe a global authentication lock"
32 --enable-uglyhack configure libpam to try to honor old pam_strerror syntax"
34 --enable-read-both-confs read both /etc/pam.d and /etc/pam.conf files"
36 --enable-static-libpam build a libpam.a library"
38 --disable-dynamic-libpam do not build a shared libpam library"
40 --enable-static-modules do not make the modules dynamically loadable"
42 --disable-lckpwdf do not use the lckpwdf function"
44 --with-mailspool path to mail spool directory
45 [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]"
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
51 cache_file=./config.cache
60 program_transform_name=s,x,x,
68 bindir='${exec_prefix}/bin'
69 sbindir='${exec_prefix}/sbin'
70 libexecdir='${exec_prefix}/libexec'
71 datadir='${prefix}/share'
72 sysconfdir='${prefix}/etc'
73 sharedstatedir='${prefix}/com'
74 localstatedir='${prefix}/var'
75 libdir='${exec_prefix}/lib'
76 includedir='${prefix}/include'
77 oldincludedir='/usr/include'
78 infodir='${prefix}/info'
79 mandir='${prefix}/man'
81 # Initialize some other variables.
84 SHELL=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
118 -cache-file | --cache-file | --cache-fil | --cache-fi \
119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120 ac_prev=cache_file ;;
121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123 cache_file="$ac_optarg" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
129 datadir="$ac_optarg" ;;
131 -disable-* | --disable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* | --enable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155 | --exec | --exe | --ex)
156 ac_prev=exec_prefix ;;
157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159 | --exec=* | --exe=* | --ex=*)
160 exec_prefix="$ac_optarg" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
166 -help | --help | --hel | --he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host | --host | --hos | --ho)
223 -host=* | --host=* | --hos=* | --ho=*)
226 -includedir | --includedir | --includedi | --included | --include \
227 | --includ | --inclu | --incl | --inc)
228 ac_prev=includedir ;;
229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
230 | --includ=* | --inclu=* | --incl=* | --inc=*)
231 includedir="$ac_optarg" ;;
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
238 -libdir | --libdir | --libdi | --libd)
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
244 | --libexe | --libex | --libe)
245 ac_prev=libexecdir ;;
246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
247 | --libexe=* | --libex=* | --libe=*)
248 libexecdir="$ac_optarg" ;;
250 -localstatedir | --localstatedir | --localstatedi | --localstated \
251 | --localstate | --localstat | --localsta | --localst \
252 | --locals | --local | --loca | --loc | --lo)
253 ac_prev=localstatedir ;;
254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
255 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
256 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
257 localstatedir="$ac_optarg" ;;
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
278 | --oldin | --oldi | --old | --ol | --o)
279 ac_prev=oldincludedir ;;
280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
283 oldincludedir="$ac_optarg" ;;
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
291 | --program-pre | --program-pr | --program-p)
292 ac_prev=program_prefix ;;
293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
295 program_prefix="$ac_optarg" ;;
297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
298 | --program-suf | --program-su | --program-s)
299 ac_prev=program_suffix ;;
300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
302 program_suffix="$ac_optarg" ;;
304 -program-transform-name | --program-transform-name \
305 | --program-transform-nam | --program-transform-na \
306 | --program-transform-n | --program-transform- \
307 | --program-transform | --program-transfor \
308 | --program-transfo | --program-transf \
309 | --program-trans | --program-tran \
310 | --progr-tra | --program-tr | --program-t)
311 ac_prev=program_transform_name ;;
312 -program-transform-name=* | --program-transform-name=* \
313 | --program-transform-nam=* | --program-transform-na=* \
314 | --program-transform-n=* | --program-transform-=* \
315 | --program-transform=* | --program-transfor=* \
316 | --program-transfo=* | --program-transf=* \
317 | --program-trans=* | --program-tran=* \
318 | --progr-tra=* | --program-tr=* | --program-t=*)
319 program_transform_name="$ac_optarg" ;;
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
329 sbindir="$ac_optarg" ;;
331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333 | --sharedst | --shareds | --shared | --share | --shar \
335 ac_prev=sharedstatedir ;;
336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
340 sharedstatedir="$ac_optarg" ;;
342 -site | --site | --sit)
344 -site=* | --site=* | --sit=*)
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=conf/pam_conv1/pam_conv.y
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
560 LIBPAM_VERSION_MAJOR=0
561 LIBPAM_VERSION_MINOR=76
565 cat >> confdefs.h <<\EOF
566 #define LIBPAM_VERSION_MAJOR 1
569 cat >> confdefs.h <<\EOF
570 #define LIBPAM_VERSION_MINOR 1
577 LOCALSRCDIR=`/bin/pwd` ;
578 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
590 LDCONFIG=/sbin/ldconfig ;
592 if test "$OS" = "aix"; then
593 INSTALL=/usr/ucb/install -c
595 INSTALL=/usr/bin/install
599 # Extract the first word of "gcc", so it can be a program name with args.
600 set dummy gcc; ac_word=$2
601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
602 echo "configure:603: checking for $ac_word" >&5
603 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
606 if test -n "$CC"; then
607 ac_cv_prog_CC="$CC" # Let the user override the test.
609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
611 for ac_dir in $ac_dummy; do
612 test -z "$ac_dir" && ac_dir=.
613 if test -f $ac_dir/$ac_word; then
622 if test -n "$CC"; then
623 echo "$ac_t""$CC" 1>&6
625 echo "$ac_t""no" 1>&6
628 if test -z "$CC"; then
629 # Extract the first word of "cc", so it can be a program name with args.
630 set dummy cc; ac_word=$2
631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
632 echo "configure:633: checking for $ac_word" >&5
633 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 if test -n "$CC"; then
637 ac_cv_prog_CC="$CC" # Let the user override the test.
639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
642 for ac_dir in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir=.
644 if test -f $ac_dir/$ac_word; then
645 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
654 if test $ac_prog_rejected = yes; then
655 # We found a bogon in the path, so make sure we never use it.
656 set dummy $ac_cv_prog_CC
658 if test $# -gt 0; then
659 # We chose a different compiler from the bogus one.
660 # However, it has the same basename, so the bogon will be chosen
661 # first if we set CC to just the basename; use the full file name.
663 set dummy "$ac_dir/$ac_word" "$@"
671 if test -n "$CC"; then
672 echo "$ac_t""$CC" 1>&6
674 echo "$ac_t""no" 1>&6
677 if test -z "$CC"; then
680 # Extract the first word of "cl", so it can be a program name with args.
681 set dummy cl; ac_word=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
692 for ac_dir in $ac_dummy; do
693 test -z "$ac_dir" && ac_dir=.
694 if test -f $ac_dir/$ac_word; then
703 if test -n "$CC"; then
704 echo "$ac_t""$CC" 1>&6
706 echo "$ac_t""no" 1>&6
711 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
714 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
715 echo "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
719 ac_cpp='$CPP $CPPFLAGS'
720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
722 cross_compiling=$ac_cv_prog_cc_cross
724 cat > conftest.$ac_ext << EOF
726 #line 727 "configure"
727 #include "confdefs.h"
731 if { (eval echo configure:732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
732 ac_cv_prog_cc_works=yes
733 # If we can't run a trivial program, we are probably using a cross compiler.
734 if (./conftest; exit) 2>/dev/null; then
735 ac_cv_prog_cc_cross=no
737 ac_cv_prog_cc_cross=yes
740 echo "configure: failed program was:" >&5
741 cat conftest.$ac_ext >&5
742 ac_cv_prog_cc_works=no
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp='$CPP $CPPFLAGS'
748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling=$ac_cv_prog_cc_cross
752 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
753 if test $ac_cv_prog_cc_works = no; then
754 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
756 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
757 echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
758 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
759 cross_compiling=$ac_cv_prog_cc_cross
761 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
762 echo "configure:763: checking whether we are using GNU C" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 cat > conftest.c <<EOF
771 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
778 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
780 if test $ac_cv_prog_gcc = yes; then
786 ac_test_CFLAGS="${CFLAGS+set}"
787 ac_save_CFLAGS="$CFLAGS"
789 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${CC-cc} accepts -g" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 echo 'void f(){}' > conftest.c
795 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
804 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
805 if test "$ac_test_CFLAGS" = set; then
806 CFLAGS="$ac_save_CFLAGS"
807 elif test $ac_cv_prog_cc_g = yes; then
808 if test "$GCC" = yes; then
814 if test "$GCC" = yes; then
821 for ac_prog in 'bison -y' byacc
823 # Extract the first word of "$ac_prog", so it can be a program name with args.
824 set dummy $ac_prog; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$YACC"; then
831 ac_cv_prog_YACC="$YACC" # Let the user override the test.
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
835 for ac_dir in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir=.
837 if test -f $ac_dir/$ac_word; then
838 ac_cv_prog_YACC="$ac_prog"
845 YACC="$ac_cv_prog_YACC"
846 if test -n "$YACC"; then
847 echo "$ac_t""$YACC" 1>&6
849 echo "$ac_t""no" 1>&6
852 test -n "$YACC" && break
854 test -n "$YACC" || YACC="yacc"
856 # Extract the first word of "flex", so it can be a program name with args.
857 set dummy flex; ac_word=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 if test -n "$LEX"; then
864 ac_cv_prog_LEX="$LEX" # Let the user override the test.
866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
868 for ac_dir in $ac_dummy; do
869 test -z "$ac_dir" && ac_dir=.
870 if test -f $ac_dir/$ac_word; then
871 ac_cv_prog_LEX="flex"
876 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
879 LEX="$ac_cv_prog_LEX"
880 if test -n "$LEX"; then
881 echo "$ac_t""$LEX" 1>&6
883 echo "$ac_t""no" 1>&6
892 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
893 echo "configure:894: checking for yywrap in -l$ac_lib" >&5
894 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
899 LIBS="-l$ac_lib $LIBS"
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
903 /* Override any gcc2 internal prototype to avoid an error. */
904 /* We use char because int might match the return type of a gcc2
905 builtin and then its argument prototype would still apply. */
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
914 eval "ac_cv_lib_$ac_lib_var=yes"
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
919 eval "ac_cv_lib_$ac_lib_var=no"
925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
926 echo "$ac_t""yes" 1>&6
929 echo "$ac_t""no" 1>&6
934 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
935 echo "configure:936: checking whether ln -s works" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
940 if ln -s X conftestdata 2>/dev/null
943 ac_cv_prog_LN_S="ln -s"
948 LN_S="$ac_cv_prog_LN_S"
949 if test "$ac_cv_prog_LN_S" = "ln -s"; then
950 echo "$ac_t""yes" 1>&6
952 echo "$ac_t""no" 1>&6
955 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
956 echo "configure:957: checking whether ${MAKE-make} sets \${MAKE}" >&5
957 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
958 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 cat > conftestmake <<\EOF
963 @echo 'ac_maketemp="${MAKE}"'
965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
966 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
967 if test -n "$ac_maketemp"; then
968 eval ac_cv_prog_make_${ac_make}_set=yes
970 eval ac_cv_prog_make_${ac_make}_set=no
974 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
975 echo "$ac_t""yes" 1>&6
978 echo "$ac_t""no" 1>&6
979 SET_MAKE="MAKE=${MAKE-make}"
984 # Check whether --enable-debug or --disable-debug was given.
985 if test "${enable_debug+set}" = set; then
986 enableval="$enable_debug"
987 WITH_DEBUG=yes ; cat >> confdefs.h <<\EOF
997 # Check whether --enable-libdebug or --disable-libdebug was given.
998 if test "${enable_libdebug+set}" = set; then
999 enableval="$enable_libdebug"
1000 WITH_LIBDEBUG=yes ; cat >> confdefs.h <<\EOF
1001 #define WITH_LIBDEBUG 1
1010 # Check whether --enable-fakeroot or --disable-fakeroot was given.
1011 if test "${enable_fakeroot+set}" = set; then
1012 enableval="$enable_fakeroot"
1018 # Check whether --enable-securedir or --disable-securedir was given.
1019 if test "${enable_securedir+set}" = set; then
1020 enableval="$enable_securedir"
1021 SECUREDIR=$enableval
1023 SECUREDIR=$libdir/security
1028 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
1029 if test "${enable_sconfigdir+set}" = set; then
1030 enableval="$enable_sconfigdir"
1031 SCONFIGDIR=$enableval
1033 SCONFIGDIR=$sysconfdir/security
1038 # Check whether --enable-suplementedir or --disable-suplementedir was given.
1039 if test "${enable_suplementedir+set}" = set; then
1040 enableval="$enable_suplementedir"
1041 SUPLEMENTED=$enableval
1043 SUPLEMENTED=$sbindir
1048 # Check whether --enable-includedir or --disable-includedir was given.
1049 if test "${enable_includedir+set}" = set; then
1050 enableval="$enable_includedir"
1051 INCLUDEDIR=$enableval
1053 INCLUDEDIR=/usr/include
1058 # Check whether --enable-pamlocking or --disable-pamlocking was given.
1059 if test "${enable_pamlocking+set}" = set; then
1060 enableval="$enable_pamlocking"
1061 WITH_PAMLOCKING=yes ; cat >> confdefs.h <<\EOF
1062 #define PAM_LOCKING 1
1071 # Check whether --enable-uglyhack or --disable-uglyhack was given.
1072 if test "${enable_uglyhack+set}" = set; then
1073 enableval="$enable_uglyhack"
1074 cat >> confdefs.h <<\EOF
1075 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
1081 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
1082 if test "${enable_read_both_confs+set}" = set; then
1083 enableval="$enable_read_both_confs"
1084 cat >> confdefs.h <<\EOF
1085 #define PAM_READ_BOTH_CONFS 1
1092 # Check whether --enable-static-libpam or --disable-static-libpam was given.
1093 if test "${enable_static_libpam+set}" = set; then
1094 enableval="$enable_static_libpam"
1102 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
1103 if test "${enable_dynamic_libpam+set}" = set; then
1104 enableval="$enable_dynamic_libpam"
1112 DYNAMIC=-DPAM_DYNAMIC
1115 # Check whether --enable-static-modules or --disable-static-modules was given.
1116 if test "${enable_static_modules+set}" = set; then
1117 enableval="$enable_static_modules"
1123 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
1124 if test "${enable_lckpwdf+set}" = set; then
1125 enableval="$enable_lckpwdf"
1133 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1134 echo "configure:1135: checking how to run the C preprocessor" >&5
1135 # On Suns, sometimes $CPP names a directory.
1136 if test -n "$CPP" && test -d "$CPP"; then
1139 if test -z "$CPP"; then
1140 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 # This must be in double quotes, not single quotes, because CPP may get
1144 # substituted into the Makefile and "${CC-cc}" will confuse make.
1146 # On the NeXT, cc -E runs the code through the compiler's parser,
1147 # not just through cpp.
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1155 { (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1157 if test -z "$ac_err"; then
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1164 CPP="${CC-cc} -E -traditional-cpp"
1165 cat > conftest.$ac_ext <<EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1172 { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1174 if test -z "$ac_err"; then
1178 echo "configure: failed program was:" >&5
1179 cat conftest.$ac_ext >&5
1181 CPP="${CC-cc} -nologo -E"
1182 cat > conftest.$ac_ext <<EOF
1183 #line 1184 "configure"
1184 #include "confdefs.h"
1188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1191 if test -z "$ac_err"; then
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1205 ac_cv_prog_CPP="$CPP"
1207 CPP="$ac_cv_prog_CPP"
1209 ac_cv_prog_CPP="$CPP"
1211 echo "$ac_t""$CPP" 1>&6
1213 for ac_hdr in paths.h
1215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1217 echo "configure:1218: checking for $ac_hdr" >&5
1218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1227 { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1229 if test -z "$ac_err"; then
1231 eval "ac_cv_header_$ac_safe=yes"
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1237 eval "ac_cv_header_$ac_safe=no"
1241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1244 cat >> confdefs.h <<EOF
1245 #define $ac_tr_hdr 1
1249 echo "$ac_t""no" 1>&6
1253 # Check whether --with-mailspool or --without-mailspool was given.
1254 if test "${with_mailspool+set}" = set; then
1255 withval="$with_mailspool"
1256 with_mailspool=${withval}
1259 if test x$with_mailspool != x ; then
1260 pam_mail_spool="\"$with_mailspool\""
1262 if test "$cross_compiling" = yes; then
1263 pam_mail_spool="\"/var/spool/mail\""
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1271 #ifdef _PATH_MAILDIR
1278 if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1280 pam_mail_spool="_PATH_MAILDIR"
1282 echo "configure: failed program was:" >&5
1283 cat conftest.$ac_ext >&5
1285 pam_mail_spool="\"/var/spool/mail\""
1291 cat >> confdefs.h <<EOF
1292 #define PAM_PATH_MAILDIR $pam_mail_spool
1296 echo $ac_n "checking for __libc_sched_setscheduler in -lc""... $ac_c" 1>&6
1297 echo "configure:1298: checking for __libc_sched_setscheduler in -lc" >&5
1298 ac_lib_var=`echo c'_'__libc_sched_setscheduler | sed 'y%./+-%__p_%'`
1299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 ac_save_LIBS="$LIBS"
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 /* Override any gcc2 internal prototype to avoid an error. */
1308 /* We use char because int might match the return type of a gcc2
1309 builtin and then its argument prototype would still apply. */
1310 char __libc_sched_setscheduler();
1313 __libc_sched_setscheduler()
1316 if { (eval echo configure:1317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1318 eval "ac_cv_lib_$ac_lib_var=yes"
1320 echo "configure: failed program was:" >&5
1321 cat conftest.$ac_ext >&5
1323 eval "ac_cv_lib_$ac_lib_var=no"
1326 LIBS="$ac_save_LIBS"
1329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1330 echo "$ac_t""yes" 1>&6
1333 echo "$ac_t""no" 1>&6
1339 echo $ac_n "checking for lckpwdf in -lc""... $ac_c" 1>&6
1340 echo "configure:1341: checking for lckpwdf in -lc" >&5
1341 ac_lib_var=`echo c'_'lckpwdf | sed 'y%./+-%__p_%'`
1342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 ac_save_LIBS="$LIBS"
1347 cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1350 /* Override any gcc2 internal prototype to avoid an error. */
1351 /* We use char because int might match the return type of a gcc2
1352 builtin and then its argument prototype would still apply. */
1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1361 eval "ac_cv_lib_$ac_lib_var=yes"
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1366 eval "ac_cv_lib_$ac_lib_var=no"
1369 LIBS="$ac_save_LIBS"
1372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1373 echo "$ac_t""yes" 1>&6
1376 echo "$ac_t""no" 1>&6
1382 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1383 echo "configure:1384: checking for dlopen in -ldl" >&5
1384 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 ac_save_LIBS="$LIBS"
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1393 /* Override any gcc2 internal prototype to avoid an error. */
1394 /* We use char because int might match the return type of a gcc2
1395 builtin and then its argument prototype would still apply. */
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 eval "ac_cv_lib_$ac_lib_var=yes"
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1409 eval "ac_cv_lib_$ac_lib_var=no"
1412 LIBS="$ac_save_LIBS"
1415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1416 echo "$ac_t""yes" 1>&6
1419 echo "$ac_t""no" 1>&6
1424 echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
1425 echo "configure:1426: checking for FascistCheck in -lcrack" >&5
1426 ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
1427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 ac_save_LIBS="$LIBS"
1431 LIBS="-lcrack $LIBS"
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 /* Override any gcc2 internal prototype to avoid an error. */
1436 /* We use char because int might match the return type of a gcc2
1437 builtin and then its argument prototype would still apply. */
1438 char FascistCheck();
1444 if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1446 eval "ac_cv_lib_$ac_lib_var=yes"
1448 echo "configure: failed program was:" >&5
1449 cat conftest.$ac_ext >&5
1451 eval "ac_cv_lib_$ac_lib_var=no"
1454 LIBS="$ac_save_LIBS"
1457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1459 HAVE_LIBCRACK=yes ; cat >> confdefs.h <<\EOF
1460 #define HAVE_LIBCRACK 1
1464 echo "$ac_t""no" 1>&6
1470 echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
1471 echo "configure:1472: checking for fcrypt in -lcrypt" >&5
1472 ac_lib_var=`echo crypt'_'fcrypt | sed 'y%./+-%__p_%'`
1473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 ac_save_LIBS="$LIBS"
1477 LIBS="-lcrypt $LIBS"
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 /* Override any gcc2 internal prototype to avoid an error. */
1482 /* We use char because int might match the return type of a gcc2
1483 builtin and then its argument prototype would still apply. */
1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1492 eval "ac_cv_lib_$ac_lib_var=yes"
1494 echo "configure: failed program was:" >&5
1495 cat conftest.$ac_ext >&5
1497 eval "ac_cv_lib_$ac_lib_var=no"
1500 LIBS="$ac_save_LIBS"
1503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1504 echo "$ac_t""yes" 1>&6
1505 HAVE_LIBCRYPT=yes ; cat >> confdefs.h <<\EOF
1506 #define HAVE_LIBCRYPT 1
1510 echo "$ac_t""no" 1>&6
1515 echo $ac_n "checking for logwtmp in -lutil""... $ac_c" 1>&6
1516 echo "configure:1517: checking for logwtmp in -lutil" >&5
1517 ac_lib_var=`echo util'_'logwtmp | sed 'y%./+-%__p_%'`
1518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 ac_save_LIBS="$LIBS"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 /* Override any gcc2 internal prototype to avoid an error. */
1527 /* We use char because int might match the return type of a gcc2
1528 builtin and then its argument prototype would still apply. */
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1537 eval "ac_cv_lib_$ac_lib_var=yes"
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1542 eval "ac_cv_lib_$ac_lib_var=no"
1545 LIBS="$ac_save_LIBS"
1548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1549 echo "$ac_t""yes" 1>&6
1550 HAVE_LIBUTIL=yes ; cat >> confdefs.h <<\EOF
1551 #define HAVE_LIBUTIL 1
1555 echo "$ac_t""no" 1>&6
1560 echo $ac_n "checking for dbm_store in -lndbm""... $ac_c" 1>&6
1561 echo "configure:1562: checking for dbm_store in -lndbm" >&5
1562 ac_lib_var=`echo ndbm'_'dbm_store | sed 'y%./+-%__p_%'`
1563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 ac_save_LIBS="$LIBS"
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571 /* Override any gcc2 internal prototype to avoid an error. */
1572 /* We use char because int might match the return type of a gcc2
1573 builtin and then its argument prototype would still apply. */
1580 if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1582 eval "ac_cv_lib_$ac_lib_var=yes"
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1587 eval "ac_cv_lib_$ac_lib_var=no"
1590 LIBS="$ac_save_LIBS"
1593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1595 HAVE_LIBNDBM=yes ; cat >> confdefs.h <<\EOF
1596 #define HAVE_LIBNDBM 1
1600 echo "$ac_t""no" 1>&6
1605 echo $ac_n "checking for dbm_store in -ldb""... $ac_c" 1>&6
1606 echo "configure:1607: checking for dbm_store in -ldb" >&5
1607 ac_lib_var=`echo db'_'dbm_store | sed 'y%./+-%__p_%'`
1608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 ac_save_LIBS="$LIBS"
1613 cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1616 /* Override any gcc2 internal prototype to avoid an error. */
1617 /* We use char because int might match the return type of a gcc2
1618 builtin and then its argument prototype would still apply. */
1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1627 eval "ac_cv_lib_$ac_lib_var=yes"
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1632 eval "ac_cv_lib_$ac_lib_var=no"
1635 LIBS="$ac_save_LIBS"
1638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1639 echo "$ac_t""yes" 1>&6
1640 HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1641 #define HAVE_LIBDB 1
1645 echo "$ac_t""no" 1>&6
1649 if test x$HAVE_LIBDB != xyes ; then
1650 echo $ac_n "checking for db_create in -ldb""... $ac_c" 1>&6
1651 echo "configure:1652: checking for db_create in -ldb" >&5
1652 ac_lib_var=`echo db'_'db_create | sed 'y%./+-%__p_%'`
1653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 ac_save_LIBS="$LIBS"
1658 cat > conftest.$ac_ext <<EOF
1659 #line 1660 "configure"
1660 #include "confdefs.h"
1661 /* Override any gcc2 internal prototype to avoid an error. */
1662 /* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1670 if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1672 eval "ac_cv_lib_$ac_lib_var=yes"
1674 echo "configure: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1677 eval "ac_cv_lib_$ac_lib_var=no"
1680 LIBS="$ac_save_LIBS"
1683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1684 echo "$ac_t""yes" 1>&6
1685 HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1686 #define HAVE_LIBDB 1
1690 echo "$ac_t""no" 1>&6
1696 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1697 echo "configure:1698: checking for yylex in -lfl" >&5
1698 ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
1699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 ac_save_LIBS="$LIBS"
1703 LIBS="-lfl HAVE_LIBFL=no $LIBS"
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1707 /* Override any gcc2 internal prototype to avoid an error. */
1708 /* We use char because int might match the return type of a gcc2
1709 builtin and then its argument prototype would still apply. */
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1718 eval "ac_cv_lib_$ac_lib_var=yes"
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1723 eval "ac_cv_lib_$ac_lib_var=no"
1726 LIBS="$ac_save_LIBS"
1729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1730 echo "$ac_t""yes" 1>&6
1733 echo "$ac_t""no" 1>&6
1734 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1735 #define HAVE_LIBFL 1
1741 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1742 echo "configure:1743: checking for yp_maplist in -lnsl" >&5
1743 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1747 ac_save_LIBS="$LIBS"
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1761 if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1763 eval "ac_cv_lib_$ac_lib_var=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1768 eval "ac_cv_lib_$ac_lib_var=no"
1771 LIBS="$ac_save_LIBS"
1774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1776 HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1777 #define HAVE_LIBNSL 1
1781 echo "$ac_t""no" 1>&6
1786 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1787 echo "configure:1788: checking for pwdb_db_name in -lpwdb" >&5
1788 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 ac_save_LIBS="$LIBS"
1794 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 /* Override any gcc2 internal prototype to avoid an error. */
1798 /* We use char because int might match the return type of a gcc2
1799 builtin and then its argument prototype would still apply. */
1800 char pwdb_db_name();
1806 if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1808 eval "ac_cv_lib_$ac_lib_var=yes"
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1813 eval "ac_cv_lib_$ac_lib_var=no"
1816 LIBS="$ac_save_LIBS"
1819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1822 #define HAVE_LIBPWDB 1
1826 echo "$ac_t""no" 1>&6
1833 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1836 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_hdr that defines DIR" >&5
1838 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 #include <sys/types.h>
1850 if { (eval echo configure:1851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1852 eval "ac_cv_header_dirent_$ac_safe=yes"
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1857 eval "ac_cv_header_dirent_$ac_safe=no"
1861 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1862 echo "$ac_t""yes" 1>&6
1863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1864 cat >> confdefs.h <<EOF
1865 #define $ac_tr_hdr 1
1867 ac_header_dirent=$ac_hdr; break
1869 echo "$ac_t""no" 1>&6
1872 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1873 if test $ac_header_dirent = dirent.h; then
1874 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1875 echo "configure:1876: checking for opendir in -ldir" >&5
1876 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 ac_save_LIBS="$LIBS"
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 /* Override any gcc2 internal prototype to avoid an error. */
1886 /* We use char because int might match the return type of a gcc2
1887 builtin and then its argument prototype would still apply. */
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1896 eval "ac_cv_lib_$ac_lib_var=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_lib_$ac_lib_var=no"
1904 LIBS="$ac_save_LIBS"
1907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1911 echo "$ac_t""no" 1>&6
1915 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1916 echo "configure:1917: checking for opendir in -lx" >&5
1917 ac_lib_var=`echo x'_'opendir | 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
1952 echo "$ac_t""no" 1>&6
1957 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1958 echo "configure:1959: checking for ANSI C header files" >&5
1959 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1975 ac_cv_header_stdc=yes
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 ac_cv_header_stdc=no
1985 if test $ac_cv_header_stdc = yes; then
1986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1993 egrep "memchr" >/dev/null 2>&1; then
1997 ac_cv_header_stdc=no
2003 if test $ac_cv_header_stdc = yes; then
2004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2011 egrep "free" >/dev/null 2>&1; then
2015 ac_cv_header_stdc=no
2021 if test $ac_cv_header_stdc = yes; then
2022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2023 if test "$cross_compiling" = yes; then
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2030 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2031 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2032 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2033 int main () { int i; for (i = 0; i < 256; i++)
2034 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2038 if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 ac_cv_header_stdc=no
2053 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2054 if test $ac_cv_header_stdc = yes; then
2055 cat >> confdefs.h <<\EOF
2056 #define STDC_HEADERS 1
2061 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2062 echo "configure:2063: checking for sys/wait.h that is POSIX.1 compatible" >&5
2063 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 #include <sys/types.h>
2070 #include <sys/wait.h>
2072 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2075 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2080 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2083 if { (eval echo configure:2084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2085 ac_cv_header_sys_wait_h=yes
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2090 ac_cv_header_sys_wait_h=no
2095 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2096 if test $ac_cv_header_sys_wait_h = yes; then
2097 cat >> confdefs.h <<\EOF
2098 #define HAVE_SYS_WAIT_H 1
2103 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
2105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2107 echo "configure:2108: checking for $ac_hdr" >&5
2108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2117 { (eval echo configure:2118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2119 if test -z "$ac_err"; then
2121 eval "ac_cv_header_$ac_safe=yes"
2124 echo "configure: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2127 eval "ac_cv_header_$ac_safe=no"
2131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2132 echo "$ac_t""yes" 1>&6
2133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2134 cat >> confdefs.h <<EOF
2135 #define $ac_tr_hdr 1
2139 echo "$ac_t""no" 1>&6
2144 for ac_hdr in features.h
2146 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2148 echo "configure:2149: checking for $ac_hdr" >&5
2149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 cat > conftest.$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2158 { (eval echo configure:2159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2160 if test -z "$ac_err"; then
2162 eval "ac_cv_header_$ac_safe=yes"
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 eval "ac_cv_header_$ac_safe=no"
2172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2175 cat >> confdefs.h <<EOF
2176 #define $ac_tr_hdr 1
2180 echo "$ac_t""no" 1>&6
2185 for ac_hdr in crypt.h
2187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_hdr" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2203 eval "ac_cv_header_$ac_safe=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 eval "ac_cv_header_$ac_safe=no"
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2216 cat >> confdefs.h <<EOF
2217 #define $ac_tr_hdr 1
2221 echo "$ac_t""no" 1>&6
2226 for ac_hdr in ndbm.h db.h
2228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_hdr" >&5
2231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2240 { (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2242 if test -z "$ac_err"; then
2244 eval "ac_cv_header_$ac_safe=yes"
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2250 eval "ac_cv_header_$ac_safe=no"
2254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2256 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2257 cat >> confdefs.h <<EOF
2258 #define $ac_tr_hdr 1
2262 echo "$ac_t""no" 1>&6
2266 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2269 for ac_hdr in lastlog.h utmp.h utmpx.h
2271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2273 echo "configure:2274: checking for $ac_hdr" >&5
2274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283 { (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285 if test -z "$ac_err"; then
2287 eval "ac_cv_header_$ac_safe=yes"
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 eval "ac_cv_header_$ac_safe=no"
2297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2298 echo "$ac_t""yes" 1>&6
2299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2300 cat >> confdefs.h <<EOF
2301 #define $ac_tr_hdr 1
2305 echo "$ac_t""no" 1>&6
2311 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2312 echo "configure:2313: checking path to cracklib dictionary" >&5
2313 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2314 /usr/local/lib /usr/local/share/lib"
2315 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2316 CRACKLIB_DICTPATH=""
2317 for d in $DICT_DIR_CANDIDATES ; do
2318 for f in $DICT_FILE_CANDIDATES ; do
2319 if test -r $d/$f.hwm ; then
2320 CRACKLIB_DICTPATH=$d/$f
2322 elif test -r $d/dict/$f.hwm ; then
2323 CRACKLIB_DICTPATH=$d/dict/$f
2328 if test -z "$CRACKLIB_DICTPATH" ; then
2329 echo "$ac_t""none found" 1>&6
2331 echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2336 GCC_WARNINGS="-Wall -Wwrite-strings \
2337 -Wpointer-arith -Wcast-qual -Wcast-align \
2338 -Wstrict-prototypes -Wmissing-prototypes \
2339 -Wnested-externs -Winline -Wshadow"
2341 if test "$GCC" = yes; then
2343 ### May need per-OS attention
2344 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
2347 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2348 LD_D="gcc -shared -Xlinker -x"
2349 WARNINGS="$GCC_WARNINGS"
2353 LD_L="$LD -x -shared"
2356 CC_STATIC="-Xlinker -export-dynamic"
2359 OS_CFLAGS="-ansi -pedantic"
2360 LD_D="gcc -shared -Xlinker -x"
2361 WARNINGS="$GCC_WARNINGS"
2365 LD_L="$LD -x -shared"
2368 CC_STATIC="-Xlinker -export-dynamic"
2374 LD_L=ld -bexpall -bM:SRE -bnoentry
2385 ### Non-gcc needs attention on per-OS basis
2389 ### Support for Solaris-C
2394 LD_D="cc -z text -G -R."
2401 OSRELEASE=`uname -r`
2402 if test "$OSRELEASE" = 6.5; then
2404 WARNINGS="-fullwarn"
2405 PIC= #PIC code is default for IRIX
2406 LD="cc -shared" # modules friendly approach
2408 LD_L="ld -G -z redlocsym"
2413 echo "IRIX prior to 6.5 not allowed for"
2417 *) echo "Native compiler on $OS is not yet supported"
2434 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2435 echo "configure:2436: checking whether byte ordering is bigendian" >&5
2436 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 ac_cv_c_bigendian=unknown
2440 # See if sys/param.h defines the BYTE_ORDER macro.
2441 cat > conftest.$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2444 #include <sys/types.h>
2445 #include <sys/param.h>
2448 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2455 # It does; now see whether it defined to BIG_ENDIAN or not.
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 #include <sys/types.h>
2460 #include <sys/param.h>
2463 #if BYTE_ORDER != BIG_ENDIAN
2468 if { (eval echo configure:2469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2470 ac_cv_c_bigendian=yes
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2475 ac_cv_c_bigendian=no
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2483 if test $ac_cv_c_bigendian = unknown; then
2484 if test "$cross_compiling" = yes; then
2485 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2491 /* Are we little or big endian? From Harbison&Steele. */
2495 char c[sizeof (long)];
2498 exit (u.c[sizeof (long) - 1] == 1);
2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2503 ac_cv_c_bigendian=no
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2508 ac_cv_c_bigendian=yes
2516 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2517 if test $ac_cv_c_bigendian = yes; then
2518 cat >> confdefs.h <<\EOF
2519 #define WORDS_BIGENDIAN 1
2524 echo $ac_n "checking for working const""... $ac_c" 1>&6
2525 echo "configure:2526: checking for working const" >&5
2526 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2535 /* Ultrix mips cc rejects this. */
2536 typedef int charset[2]; const charset x;
2537 /* SunOS 4.1.1 cc rejects this. */
2538 char const *const *ccp;
2540 /* NEC SVR4.0.2 mips cc rejects this. */
2541 struct point {int x, y;};
2542 static struct point const zero = {0,0};
2543 /* AIX XL C 1.02.0.0 rejects this.
2544 It does not let you subtract one const X* pointer from another in an arm
2545 of an if-expression whose if-part is not a constant expression */
2546 const char *g = "string";
2547 ccp = &g + (g ? g-g : 0);
2548 /* HPUX 7.0 cc rejects these. */
2551 ccp = (char const *const *) p;
2552 { /* SCO 3.2v4 cc rejects this. */
2554 char const *s = 0 ? (char *) 0 : (char const *) 0;
2558 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2560 const int *foo = &x[0];
2563 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2564 typedef const int *iptr;
2568 { /* AIX XL C 1.02.0.0 rejects this saying
2569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2570 struct s { int j; const int *ap[3]; };
2571 struct s *b; b->j = 5;
2573 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2579 if { (eval echo configure:2580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2591 echo "$ac_t""$ac_cv_c_const" 1>&6
2592 if test $ac_cv_c_const = no; then
2593 cat >> confdefs.h <<\EOF
2599 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2600 echo "configure:2601: checking for uid_t in sys/types.h" >&5
2601 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2607 #include <sys/types.h>
2609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2610 egrep "uid_t" >/dev/null 2>&1; then
2612 ac_cv_type_uid_t=yes
2621 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2622 if test $ac_cv_type_uid_t = no; then
2623 cat >> confdefs.h <<\EOF
2627 cat >> confdefs.h <<\EOF
2633 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2634 echo "configure:2635: checking for off_t" >&5
2635 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 #include <sys/types.h>
2647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2648 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2650 ac_cv_type_off_t=yes
2658 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2659 if test $ac_cv_type_off_t = no; then
2660 cat >> confdefs.h <<\EOF
2666 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2667 echo "configure:2668: checking for pid_t" >&5
2668 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2674 #include <sys/types.h>
2680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2681 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2683 ac_cv_type_pid_t=yes
2691 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2692 if test $ac_cv_type_pid_t = no; then
2693 cat >> confdefs.h <<\EOF
2699 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2700 echo "configure:2701: checking for size_t" >&5
2701 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 #include <sys/types.h>
2713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2714 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2716 ac_cv_type_size_t=yes
2719 ac_cv_type_size_t=no
2724 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2725 if test $ac_cv_type_size_t = no; then
2726 cat >> confdefs.h <<\EOF
2727 #define size_t unsigned
2732 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2733 echo "configure:2734: checking whether time.h and sys/time.h may both be included" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <sys/types.h>
2741 #include <sys/time.h>
2747 if { (eval echo configure:2748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2749 ac_cv_header_time=yes
2751 echo "configure: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2754 ac_cv_header_time=no
2759 echo "$ac_t""$ac_cv_header_time" 1>&6
2760 if test $ac_cv_header_time = yes; then
2761 cat >> confdefs.h <<\EOF
2762 #define TIME_WITH_SYS_TIME 1
2767 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2768 echo "configure:2769: checking whether struct tm is in sys/time.h or time.h" >&5
2769 if eval "test \"`echo '$''{'ac_cv_struct_tm'+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>
2778 struct tm *tp; tp->tm_sec;
2781 if { (eval echo configure:2782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2783 ac_cv_struct_tm=time.h
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2788 ac_cv_struct_tm=sys/time.h
2793 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2794 if test $ac_cv_struct_tm = sys/time.h; then
2795 cat >> confdefs.h <<\EOF
2796 #define TM_IN_SYS_TIME 1
2802 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2803 echo "configure:2804: checking type of array argument to getgroups" >&5
2804 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 if test "$cross_compiling" = yes; then
2808 ac_cv_type_getgroups=cross
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2814 /* Thanks to Mike Rendell for this test. */
2815 #include <sys/types.h>
2818 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2823 union { gid_t gval; long lval; } val;
2826 for (i = 0; i < NGID; i++)
2827 gidset[i] = val.gval;
2828 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2830 /* Exit non-zero if getgroups seems to require an array of ints. This
2831 happens when gid_t is short but getgroups modifies an array of ints. */
2832 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2836 if { (eval echo configure:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2838 ac_cv_type_getgroups=gid_t
2840 echo "configure: failed program was:" >&5
2841 cat conftest.$ac_ext >&5
2843 ac_cv_type_getgroups=int
2848 if test $ac_cv_type_getgroups = cross; then
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2855 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2857 ac_cv_type_getgroups=gid_t
2860 ac_cv_type_getgroups=int
2867 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2868 cat >> confdefs.h <<EOF
2869 #define GETGROUPS_T $ac_cv_type_getgroups
2873 if test $ac_cv_prog_gcc = yes; then
2874 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2875 echo "configure:2876: checking whether ${CC-cc} needs -traditional" >&5
2876 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 ac_pattern="Autoconf.*'x'"
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2887 egrep "$ac_pattern" >/dev/null 2>&1; then
2889 ac_cv_prog_gcc_traditional=yes
2892 ac_cv_prog_gcc_traditional=no
2897 if test $ac_cv_prog_gcc_traditional = no; then
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2905 egrep "$ac_pattern" >/dev/null 2>&1; then
2907 ac_cv_prog_gcc_traditional=yes
2914 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2915 if test $ac_cv_prog_gcc_traditional = yes; then
2916 CC="$CC -traditional"
2920 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2921 echo "configure:2922: checking for 8-bit clean memcmp" >&5
2922 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 if test "$cross_compiling" = yes; then
2926 ac_cv_func_memcmp_clean=no
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2934 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2935 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2941 ac_cv_func_memcmp_clean=yes
2943 echo "configure: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2946 ac_cv_func_memcmp_clean=no
2953 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2954 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2956 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2957 echo "configure:2958: checking for vprintf" >&5
2958 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 /* System header to define __stub macros and hopefully few prototypes,
2965 which can conflict with char vprintf(); below. */
2967 /* Override any gcc2 internal prototype to avoid an error. */
2968 /* We use char because int might match the return type of a gcc2
2969 builtin and then its argument prototype would still apply. */
2974 /* The GNU C library defines this for functions which it implements
2975 to always fail with ENOSYS. Some functions are actually named
2976 something starting with __ and the normal name is an alias. */
2977 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2985 if { (eval echo configure:2986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2987 eval "ac_cv_func_vprintf=yes"
2989 echo "configure: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2992 eval "ac_cv_func_vprintf=no"
2997 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2998 echo "$ac_t""yes" 1>&6
2999 cat >> confdefs.h <<\EOF
3000 #define HAVE_VPRINTF 1
3004 echo "$ac_t""no" 1>&6
3007 if test "$ac_cv_func_vprintf" != yes; then
3008 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3009 echo "configure:3010: checking for _doprnt" >&5
3010 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 /* System header to define __stub macros and hopefully few prototypes,
3017 which can conflict with char _doprnt(); below. */
3019 /* Override any gcc2 internal prototype to avoid an error. */
3020 /* We use char because int might match the return type of a gcc2
3021 builtin and then its argument prototype would still apply. */
3026 /* The GNU C library defines this for functions which it implements
3027 to always fail with ENOSYS. Some functions are actually named
3028 something starting with __ and the normal name is an alias. */
3029 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3037 if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3039 eval "ac_cv_func__doprnt=yes"
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3044 eval "ac_cv_func__doprnt=no"
3049 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3050 echo "$ac_t""yes" 1>&6
3051 cat >> confdefs.h <<\EOF
3052 #define HAVE_DOPRNT 1
3056 echo "$ac_t""no" 1>&6
3061 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
3063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3064 echo "configure:3065: checking for $ac_func" >&5
3065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 /* System header to define __stub macros and hopefully few prototypes,
3072 which can conflict with char $ac_func(); below. */
3074 /* Override any gcc2 internal prototype to avoid an error. */
3075 /* We use char because int might match the return type of a gcc2
3076 builtin and then its argument prototype would still apply. */
3081 /* The GNU C library defines this for functions which it implements
3082 to always fail with ENOSYS. Some functions are actually named
3083 something starting with __ and the normal name is an alias. */
3084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 eval "ac_cv_func_$ac_func=yes"
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 eval "ac_cv_func_$ac_func=no"
3104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3107 cat >> confdefs.h <<EOF
3108 #define $ac_tr_func 1
3112 echo "$ac_t""no" 1>&6
3117 for ac_func in getpwnam_r getgrnam_r
3119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3120 echo "configure:3121: checking for $ac_func" >&5
3121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 /* System header to define __stub macros and hopefully few prototypes,
3128 which can conflict with char $ac_func(); below. */
3130 /* Override any gcc2 internal prototype to avoid an error. */
3131 /* We use char because int might match the return type of a gcc2
3132 builtin and then its argument prototype would still apply. */
3137 /* The GNU C library defines this for functions which it implements
3138 to always fail with ENOSYS. Some functions are actually named
3139 something starting with __ and the normal name is an alias. */
3140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3148 if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3150 eval "ac_cv_func_$ac_func=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 eval "ac_cv_func_$ac_func=no"
3160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3163 cat >> confdefs.h <<EOF
3164 #define $ac_tr_func 1
3168 echo "$ac_t""no" 1>&6
3173 # Extract the first word of "sgml2txt", so it can be a program name with args.
3174 set dummy sgml2txt; ac_word=$2
3175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3176 echo "configure:3177: checking for $ac_word" >&5
3177 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 if test -n "$HAVE_SGML2TXT"; then
3181 ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
3183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3185 for ac_dir in $ac_dummy; do
3186 test -z "$ac_dir" && ac_dir=.
3187 if test -f $ac_dir/$ac_word; then
3188 ac_cv_prog_HAVE_SGML2TXT="yes"
3193 test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
3196 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
3197 if test -n "$HAVE_SGML2TXT"; then
3198 echo "$ac_t""$HAVE_SGML2TXT" 1>&6
3200 echo "$ac_t""no" 1>&6
3203 # Extract the first word of "sgml2html", so it can be a program name with args.
3204 set dummy sgml2html; ac_word=$2
3205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3206 echo "configure:3207: checking for $ac_word" >&5
3207 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 if test -n "$HAVE_SGML2HTML"; then
3211 ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
3213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3215 for ac_dir in $ac_dummy; do
3216 test -z "$ac_dir" && ac_dir=.
3217 if test -f $ac_dir/$ac_word; then
3218 ac_cv_prog_HAVE_SGML2HTML="yes"
3223 test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
3226 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
3227 if test -n "$HAVE_SGML2HTML"; then
3228 echo "$ac_t""$HAVE_SGML2HTML" 1>&6
3230 echo "$ac_t""no" 1>&6
3233 # Extract the first word of "sgml2latex", so it can be a program name with args.
3234 set dummy sgml2latex; ac_word=$2
3235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_word" >&5
3237 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 if test -n "$HAVE_SGML2LATEX"; then
3241 ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3245 for ac_dir in $ac_dummy; do
3246 test -z "$ac_dir" && ac_dir=.
3247 if test -f $ac_dir/$ac_word; then
3248 ac_cv_prog_HAVE_SGML2LATEX="yes"
3253 test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3256 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3257 if test -n "$HAVE_SGML2LATEX"; then
3258 echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3260 echo "$ac_t""no" 1>&6
3263 if test $HAVE_SGML2LATEX = "yes" ; then
3264 if sgml2latex -h | grep -e --paper | grep ' -p ' > /dev/null ; then
3265 PSER="sgml2latex -o ps"
3267 PSER="sgml2latex -p"
3270 # Extract the first word of "sgml2ps", so it can be a program name with args.
3271 set dummy sgml2ps; ac_word=$2
3272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3273 echo "configure:3274: checking for $ac_word" >&5
3274 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 if test -n "$HAVE_SGML2PS"; then
3278 ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3282 for ac_dir in $ac_dummy; do
3283 test -z "$ac_dir" && ac_dir=.
3284 if test -f $ac_dir/$ac_word; then
3285 ac_cv_prog_HAVE_SGML2PS="yes"
3290 test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3293 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3294 if test -n "$HAVE_SGML2PS"; then
3295 echo "$ac_t""$HAVE_SGML2PS" 1>&6
3297 echo "$ac_t""no" 1>&6
3300 if test $HAVE_SGML2PS = yes ; then
3307 cat > confcache <<\EOF
3308 # This file is a shell script that caches the results of configure
3309 # tests run on this system so they can be shared between configure
3310 # scripts and configure runs. It is not useful on other systems.
3311 # If it contains results you don't want to keep, you may remove or edit it.
3313 # By default, configure uses ./config.cache as the cache file,
3314 # creating it if it does not exist already. You can give configure
3315 # the --cache-file=FILE option to use a different cache file; that is
3316 # what configure does when it calls configure scripts in
3317 # subdirectories, so they share the cache.
3318 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3319 # config.status only pays attention to the cache file if you give it the
3320 # --recheck option to rerun configure.
3323 # The following way of writing the cache mishandles newlines in values,
3324 # but we know of no workaround that is simple, portable, and efficient.
3325 # So, don't put newlines in cache variables' values.
3326 # Ultrix sh set writes to stderr and can't be redirected directly,
3327 # and sets the high bit in the cache file unless we assign to the vars.
3329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3331 # `set' does not quote correctly, so add quotes (double-quote substitution
3332 # turns \\\\ into \\, and sed turns \\ into \).
3334 -e "s/'/'\\\\''/g" \
3335 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3338 # `set' quotes correctly as required by POSIX, so do not add quotes.
3339 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3342 if cmp -s $cache_file confcache; then
3345 if test -w $cache_file; then
3346 echo "updating cache $cache_file"
3347 cat confcache > $cache_file
3349 echo "not updating unwritable cache $cache_file"
3354 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3356 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3357 # Let make expand exec_prefix.
3358 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3360 # Any assignment to VPATH causes Sun make to only execute
3361 # the first set of double-colon rules, so remove it if not needed.
3362 # If there is a colon in the path, we need to keep it.
3363 if test "x$srcdir" = x.; then
3364 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3367 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3369 DEFS=-DHAVE_CONFIG_H
3371 # Without the "./", some shells look in PATH for config.status.
3372 : ${CONFIG_STATUS=./config.status}
3374 echo creating $CONFIG_STATUS
3375 rm -f $CONFIG_STATUS
3376 cat > $CONFIG_STATUS <<EOF
3378 # Generated automatically by configure.
3379 # Run this file to recreate the current configuration.
3380 # This directory was configured as follows,
3381 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3383 # $0 $ac_configure_args
3385 # Compiler output produced by configure, useful for debugging
3386 # configure, is in ./config.log if it exists.
3388 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3391 case "\$ac_option" in
3392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3393 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3394 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3395 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3396 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3398 -help | --help | --hel | --he | --h)
3399 echo "\$ac_cs_usage"; exit 0 ;;
3400 *) echo "\$ac_cs_usage"; exit 1 ;;
3404 ac_given_srcdir=$srcdir
3406 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3408 cat >> $CONFIG_STATUS <<EOF
3410 # Protect against being on the right side of a sed subst in config.status.
3411 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3412 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3416 s%@CFLAGS@%$CFLAGS%g
3417 s%@CPPFLAGS@%$CPPFLAGS%g
3418 s%@CXXFLAGS@%$CXXFLAGS%g
3419 s%@FFLAGS@%$FFLAGS%g
3421 s%@LDFLAGS@%$LDFLAGS%g
3423 s%@exec_prefix@%$exec_prefix%g
3424 s%@prefix@%$prefix%g
3425 s%@program_transform_name@%$program_transform_name%g
3426 s%@bindir@%$bindir%g
3427 s%@sbindir@%$sbindir%g
3428 s%@libexecdir@%$libexecdir%g
3429 s%@datadir@%$datadir%g
3430 s%@sysconfdir@%$sysconfdir%g
3431 s%@sharedstatedir@%$sharedstatedir%g
3432 s%@localstatedir@%$localstatedir%g
3433 s%@libdir@%$libdir%g
3434 s%@includedir@%$includedir%g
3435 s%@oldincludedir@%$oldincludedir%g
3436 s%@infodir@%$infodir%g
3437 s%@mandir@%$mandir%g
3438 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3439 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3440 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3442 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3444 s%@SHLIBMODE@%$SHLIBMODE%g
3445 s%@USESONAME@%$USESONAME%g
3446 s%@SOSWITCH@%$SOSWITCH%g
3447 s%@NEEDSONAME@%$NEEDSONAME%g
3448 s%@LDCONFIG@%$LDCONFIG%g
3449 s%@INSTALL@%$INSTALL%g
3453 s%@LEXLIB@%$LEXLIB%g
3455 s%@SET_MAKE@%$SET_MAKE%g
3456 s%@WITH_DEBUG@%$WITH_DEBUG%g
3457 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3458 s%@FAKEROOT@%$FAKEROOT%g
3459 s%@SECUREDIR@%$SECUREDIR%g
3460 s%@SCONFIGDIR@%$SCONFIGDIR%g
3461 s%@SUPLEMENTED@%$SUPLEMENTED%g
3462 s%@INCLUDEDIR@%$INCLUDEDIR%g
3463 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3464 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3465 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3466 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3467 s%@DYNAMIC@%$DYNAMIC%g
3468 s%@STATIC@%$STATIC%g
3469 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3471 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3472 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3474 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3475 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3476 s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
3477 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3478 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3479 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3480 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3481 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3482 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3483 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3484 s%@DYNTYPE@%$DYNTYPE%g
3485 s%@OS_CFLAGS@%$OS_CFLAGS%g
3486 s%@WARNINGS@%$WARNINGS%g
3491 s%@RANLIB@%$RANLIB%g
3493 s%@CC_STATIC@%$CC_STATIC%g
3494 s%@LIBOBJS@%$LIBOBJS%g
3495 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3496 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3497 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3498 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3504 cat >> $CONFIG_STATUS <<\EOF
3506 # Split the substitutions into bite-sized pieces for seds with
3507 # small command number limits, like on Digital OSF/1 and HP-UX.
3508 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3509 ac_file=1 # Number of current file.
3510 ac_beg=1 # First line for current file.
3511 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3514 while $ac_more_lines; do
3515 if test $ac_beg -gt 1; then
3516 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3518 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3520 if test ! -s conftest.s$ac_file; then
3522 rm -f conftest.s$ac_file
3524 if test -z "$ac_sed_cmds"; then
3525 ac_sed_cmds="sed -f conftest.s$ac_file"
3527 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3529 ac_file=`expr $ac_file + 1`
3531 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3534 if test -z "$ac_sed_cmds"; then
3539 cat >> $CONFIG_STATUS <<EOF
3541 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3543 cat >> $CONFIG_STATUS <<\EOF
3544 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3547 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3548 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3549 *) ac_file_in="${ac_file}.in" ;;
3552 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3554 # Remove last slash and all that follows it. Not all systems have dirname.
3555 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3556 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3557 # The file is in a subdirectory.
3558 test ! -d "$ac_dir" && mkdir "$ac_dir"
3559 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3560 # A "../" for each directory in $ac_dir_suffix.
3561 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3563 ac_dir_suffix= ac_dots=
3566 case "$ac_given_srcdir" in
3568 if test -z "$ac_dots"; then top_srcdir=.
3569 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3570 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3572 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3573 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3577 echo creating "$ac_file"
3579 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3581 *Makefile*) ac_comsub="1i\\
3582 # $configure_input" ;;
3586 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3588 s%@configure_input@%$configure_input%g
3589 s%@srcdir@%$srcdir%g
3590 s%@top_srcdir@%$top_srcdir%g
3591 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3595 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3596 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3598 # ac_d sets the value in "#define NAME VALUE" lines.
3599 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3600 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3603 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3604 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3605 ac_uB='\([ ]\)%\1#\2define\3'
3608 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3609 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3610 ac_eB='$%\1#\2define\3'
3614 if test "${CONFIG_HEADERS+set}" != set; then
3616 cat >> $CONFIG_STATUS <<EOF
3617 CONFIG_HEADERS="_pam_aconf.h"
3619 cat >> $CONFIG_STATUS <<\EOF
3621 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3622 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3624 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3625 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3626 *) ac_file_in="${ac_file}.in" ;;
3629 echo creating $ac_file
3631 rm -f conftest.frag conftest.in conftest.out
3632 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3633 cat $ac_file_inputs > conftest.in
3637 # Transform confdefs.h into a sed script conftest.vals that substitutes
3638 # the proper values into config.h.in to produce config.h. And first:
3639 # Protect against being on the right side of a sed subst in config.status.
3640 # Protect against being in an unquoted here document in config.status.
3642 cat > conftest.hdr <<\EOF
3645 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3649 sed -n -f conftest.hdr confdefs.h > conftest.vals
3652 # This sed command replaces #undef with comments. This is necessary, for
3653 # example, in the case of _POSIX_SOURCE, which is predefined and required
3654 # on some systems where configure will not decide to define it.
3655 cat >> conftest.vals <<\EOF
3656 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3659 # Break up conftest.vals because some shells have a limit on
3660 # the size of here documents, and old seds have small limits too.
3665 ac_lines=`grep -c . conftest.vals`
3666 # grep -c gives empty output for an empty file on some AIX systems.
3667 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3668 # Write a limited-size here document to conftest.frag.
3669 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3670 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3672 sed -f conftest.frag conftest.in > conftest.out
3674 mv conftest.out conftest.in
3676 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3678 mv conftest.tail conftest.vals
3682 cat >> $CONFIG_STATUS <<\EOF
3683 rm -f conftest.frag conftest.h
3684 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3685 cat conftest.in >> conftest.h
3687 if cmp -s $ac_file conftest.h 2>/dev/null; then
3688 echo "$ac_file is unchanged"
3691 # Remove last slash and all that follows it. Not all systems have dirname.
3692 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3693 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3694 # The file is in a subdirectory.
3695 test ! -d "$ac_dir" && mkdir "$ac_dir"
3698 mv conftest.h $ac_file
3703 cat >> $CONFIG_STATUS <<EOF
3706 cat >> $CONFIG_STATUS <<\EOF
3710 chmod +x $CONFIG_STATUS
3711 rm -fr confdefs* $ac_clean_files
3712 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1