]> granicus.if.org Git - linux-pam/blob - configure
Relevant BUGIDs: 476985
[linux-pam] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=
15 ac_help="$ac_help
16   --enable-debug           qspecify you are building with debugging on"
17 ac_help="$ac_help
18   --enable-libdebug        specify you are building debugging libraries"
19 ac_help="$ac_help
20   --enable-fakeroot=<path to packaging directory>"
21 ac_help="$ac_help
22   --enable-securedir=<path to location of PAMs> [default \$libdir/security]"
23 ac_help="$ac_help
24   --enable-sconfigdir=<path to module conf files> [default \$sysconfdir/security]"
25 ac_help="$ac_help
26   --enable-suplementedir=<path to module helper binaries> [default \$sbindir]"
27 ac_help="$ac_help
28   --enable-includedir=<path to include location> - where to put <security>"
29 ac_help="$ac_help
30   --enable-docdir=<path to store documentation in - /usr/share/doc/pam>"
31 ac_help="$ac_help
32   --enable-mandir=<path to store manuals in - /usr/share/man>"
33 ac_help="$ac_help
34   --enable-pamlocking      configure libpam to observe a global authentication lock"
35 ac_help="$ac_help
36   --enable-uglyhack        configure libpam to try to honor old pam_strerror syntax"
37 ac_help="$ac_help
38   --enable-read-both-confs  read both /etc/pam.d and /etc/pam.conf files"
39 ac_help="$ac_help
40   --enable-static-libpam   build a libpam.a library"
41 ac_help="$ac_help
42   --disable-dynamic-libpam do not build a shared libpam library"
43 ac_help="$ac_help
44   --enable-static-modules  do not make the modules dynamically loadable"
45 ac_help="$ac_help
46   --disable-lckpwdf do not use the lckpwdf function"
47 ac_help="$ac_help
48   --with-mailspool         path to mail spool directory
49                            [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]"
50
51 # Initialize some variables set by options.
52 # The variables have the same names as the options, with
53 # dashes changed to underlines.
54 build=NONE
55 cache_file=./config.cache
56 exec_prefix=NONE
57 host=NONE
58 no_create=
59 nonopt=NONE
60 no_recursion=
61 prefix=NONE
62 program_prefix=NONE
63 program_suffix=NONE
64 program_transform_name=s,x,x,
65 silent=
66 site=
67 srcdir=
68 target=NONE
69 verbose=
70 x_includes=NONE
71 x_libraries=NONE
72 bindir='${exec_prefix}/bin'
73 sbindir='${exec_prefix}/sbin'
74 libexecdir='${exec_prefix}/libexec'
75 datadir='${prefix}/share'
76 sysconfdir='${prefix}/etc'
77 sharedstatedir='${prefix}/com'
78 localstatedir='${prefix}/var'
79 libdir='${exec_prefix}/lib'
80 includedir='${prefix}/include'
81 oldincludedir='/usr/include'
82 infodir='${prefix}/info'
83 mandir='${prefix}/man'
84
85 # Initialize some other variables.
86 subdirs=
87 MFLAGS= MAKEFLAGS=
88 SHELL=${CONFIG_SHELL-/bin/sh}
89 # Maximum number of lines to put in a shell here document.
90 ac_max_here_lines=12
91
92 ac_prev=
93 for ac_option
94 do
95
96   # If the previous option needs an argument, assign it.
97   if test -n "$ac_prev"; then
98     eval "$ac_prev=\$ac_option"
99     ac_prev=
100     continue
101   fi
102
103   case "$ac_option" in
104   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
105   *) ac_optarg= ;;
106   esac
107
108   # Accept the important Cygnus configure options, so we can diagnose typos.
109
110   case "$ac_option" in
111
112   -bindir | --bindir | --bindi | --bind | --bin | --bi)
113     ac_prev=bindir ;;
114   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115     bindir="$ac_optarg" ;;
116
117   -build | --build | --buil | --bui | --bu)
118     ac_prev=build ;;
119   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
120     build="$ac_optarg" ;;
121
122   -cache-file | --cache-file | --cache-fil | --cache-fi \
123   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124     ac_prev=cache_file ;;
125   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127     cache_file="$ac_optarg" ;;
128
129   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
130     ac_prev=datadir ;;
131   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
132   | --da=*)
133     datadir="$ac_optarg" ;;
134
135   -disable-* | --disable-*)
136     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
137     # Reject names that are not valid shell variable names.
138     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
139       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140     fi
141     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142     eval "enable_${ac_feature}=no" ;;
143
144   -enable-* | --enable-*)
145     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146     # Reject names that are not valid shell variable names.
147     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149     fi
150     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151     case "$ac_option" in
152       *=*) ;;
153       *) ac_optarg=yes ;;
154     esac
155     eval "enable_${ac_feature}='$ac_optarg'" ;;
156
157   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159   | --exec | --exe | --ex)
160     ac_prev=exec_prefix ;;
161   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163   | --exec=* | --exe=* | --ex=*)
164     exec_prefix="$ac_optarg" ;;
165
166   -gas | --gas | --ga | --g)
167     # Obsolete; use --with-gas.
168     with_gas=yes ;;
169
170   -help | --help | --hel | --he)
171     # Omit some internal or obsolete options to make the list less imposing.
172     # This message is too long to be a string in the A/UX 3.1 sh.
173     cat << EOF
174 Usage: configure [options] [host]
175 Options: [defaults in brackets after descriptions]
176 Configuration:
177   --cache-file=FILE       cache test results in FILE
178   --help                  print this message
179   --no-create             do not create output files
180   --quiet, --silent       do not print \`checking...' messages
181   --version               print the version of autoconf that created configure
182 Directory and file names:
183   --prefix=PREFIX         install architecture-independent files in PREFIX
184                           [$ac_default_prefix]
185   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
186                           [same as prefix]
187   --bindir=DIR            user executables in DIR [EPREFIX/bin]
188   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
189   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
190   --datadir=DIR           read-only architecture-independent data in DIR
191                           [PREFIX/share]
192   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
193   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
194                           [PREFIX/com]
195   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
196   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
197   --includedir=DIR        C header files in DIR [PREFIX/include]
198   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
199   --infodir=DIR           info documentation in DIR [PREFIX/info]
200   --mandir=DIR            man documentation in DIR [PREFIX/man]
201   --srcdir=DIR            find the sources in DIR [configure dir or ..]
202   --program-prefix=PREFIX prepend PREFIX to installed program names
203   --program-suffix=SUFFIX append SUFFIX to installed program names
204   --program-transform-name=PROGRAM
205                           run sed PROGRAM on installed program names
206 EOF
207     cat << EOF
208 Host type:
209   --build=BUILD           configure for building on BUILD [BUILD=HOST]
210   --host=HOST             configure for HOST [guessed]
211   --target=TARGET         configure for TARGET [TARGET=HOST]
212 Features and packages:
213   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
214   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
215   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
216   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
217   --x-includes=DIR        X include files are in DIR
218   --x-libraries=DIR       X library files are in DIR
219 EOF
220     if test -n "$ac_help"; then
221       echo "--enable and --with options recognized:$ac_help"
222     fi
223     exit 0 ;;
224
225   -host | --host | --hos | --ho)
226     ac_prev=host ;;
227   -host=* | --host=* | --hos=* | --ho=*)
228     host="$ac_optarg" ;;
229
230   -includedir | --includedir | --includedi | --included | --include \
231   | --includ | --inclu | --incl | --inc)
232     ac_prev=includedir ;;
233   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234   | --includ=* | --inclu=* | --incl=* | --inc=*)
235     includedir="$ac_optarg" ;;
236
237   -infodir | --infodir | --infodi | --infod | --info | --inf)
238     ac_prev=infodir ;;
239   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240     infodir="$ac_optarg" ;;
241
242   -libdir | --libdir | --libdi | --libd)
243     ac_prev=libdir ;;
244   -libdir=* | --libdir=* | --libdi=* | --libd=*)
245     libdir="$ac_optarg" ;;
246
247   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248   | --libexe | --libex | --libe)
249     ac_prev=libexecdir ;;
250   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251   | --libexe=* | --libex=* | --libe=*)
252     libexecdir="$ac_optarg" ;;
253
254   -localstatedir | --localstatedir | --localstatedi | --localstated \
255   | --localstate | --localstat | --localsta | --localst \
256   | --locals | --local | --loca | --loc | --lo)
257     ac_prev=localstatedir ;;
258   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261     localstatedir="$ac_optarg" ;;
262
263   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264     ac_prev=mandir ;;
265   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266     mandir="$ac_optarg" ;;
267
268   -nfp | --nfp | --nf)
269     # Obsolete; use --without-fp.
270     with_fp=no ;;
271
272   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273   | --no-cr | --no-c)
274     no_create=yes ;;
275
276   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
278     no_recursion=yes ;;
279
280   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282   | --oldin | --oldi | --old | --ol | --o)
283     ac_prev=oldincludedir ;;
284   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287     oldincludedir="$ac_optarg" ;;
288
289   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290     ac_prev=prefix ;;
291   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292     prefix="$ac_optarg" ;;
293
294   -program-prefix | --program-prefix | --program-prefi | --program-pref \
295   | --program-pre | --program-pr | --program-p)
296     ac_prev=program_prefix ;;
297   -program-prefix=* | --program-prefix=* | --program-prefi=* \
298   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299     program_prefix="$ac_optarg" ;;
300
301   -program-suffix | --program-suffix | --program-suffi | --program-suff \
302   | --program-suf | --program-su | --program-s)
303     ac_prev=program_suffix ;;
304   -program-suffix=* | --program-suffix=* | --program-suffi=* \
305   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306     program_suffix="$ac_optarg" ;;
307
308   -program-transform-name | --program-transform-name \
309   | --program-transform-nam | --program-transform-na \
310   | --program-transform-n | --program-transform- \
311   | --program-transform | --program-transfor \
312   | --program-transfo | --program-transf \
313   | --program-trans | --program-tran \
314   | --progr-tra | --program-tr | --program-t)
315     ac_prev=program_transform_name ;;
316   -program-transform-name=* | --program-transform-name=* \
317   | --program-transform-nam=* | --program-transform-na=* \
318   | --program-transform-n=* | --program-transform-=* \
319   | --program-transform=* | --program-transfor=* \
320   | --program-transfo=* | --program-transf=* \
321   | --program-trans=* | --program-tran=* \
322   | --progr-tra=* | --program-tr=* | --program-t=*)
323     program_transform_name="$ac_optarg" ;;
324
325   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326   | -silent | --silent | --silen | --sile | --sil)
327     silent=yes ;;
328
329   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330     ac_prev=sbindir ;;
331   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332   | --sbi=* | --sb=*)
333     sbindir="$ac_optarg" ;;
334
335   -sharedstatedir | --sharedstatedir | --sharedstatedi \
336   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337   | --sharedst | --shareds | --shared | --share | --shar \
338   | --sha | --sh)
339     ac_prev=sharedstatedir ;;
340   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343   | --sha=* | --sh=*)
344     sharedstatedir="$ac_optarg" ;;
345
346   -site | --site | --sit)
347     ac_prev=site ;;
348   -site=* | --site=* | --sit=*)
349     site="$ac_optarg" ;;
350
351   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352     ac_prev=srcdir ;;
353   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354     srcdir="$ac_optarg" ;;
355
356   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357   | --syscon | --sysco | --sysc | --sys | --sy)
358     ac_prev=sysconfdir ;;
359   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361     sysconfdir="$ac_optarg" ;;
362
363   -target | --target | --targe | --targ | --tar | --ta | --t)
364     ac_prev=target ;;
365   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366     target="$ac_optarg" ;;
367
368   -v | -verbose | --verbose | --verbos | --verbo | --verb)
369     verbose=yes ;;
370
371   -version | --version | --versio | --versi | --vers)
372     echo "configure generated by autoconf version 2.13"
373     exit 0 ;;
374
375   -with-* | --with-*)
376     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377     # Reject names that are not valid shell variable names.
378     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380     fi
381     ac_package=`echo $ac_package| sed 's/-/_/g'`
382     case "$ac_option" in
383       *=*) ;;
384       *) ac_optarg=yes ;;
385     esac
386     eval "with_${ac_package}='$ac_optarg'" ;;
387
388   -without-* | --without-*)
389     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390     # Reject names that are not valid shell variable names.
391     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393     fi
394     ac_package=`echo $ac_package| sed 's/-/_/g'`
395     eval "with_${ac_package}=no" ;;
396
397   --x)
398     # Obsolete; use --with-x.
399     with_x=yes ;;
400
401   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402   | --x-incl | --x-inc | --x-in | --x-i)
403     ac_prev=x_includes ;;
404   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406     x_includes="$ac_optarg" ;;
407
408   -x-libraries | --x-libraries | --x-librarie | --x-librari \
409   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410     ac_prev=x_libraries ;;
411   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413     x_libraries="$ac_optarg" ;;
414
415   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416     ;;
417
418   *)
419     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420       echo "configure: warning: $ac_option: invalid host type" 1>&2
421     fi
422     if test "x$nonopt" != xNONE; then
423       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424     fi
425     nonopt="$ac_option"
426     ;;
427
428   esac
429 done
430
431 if test -n "$ac_prev"; then
432   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433 fi
434
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
436
437 # File descriptor usage:
438 # 0 standard input
439 # 1 file creation
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
446   exec 6>/dev/null
447 else
448   exec 6>&1
449 fi
450 exec 5>./config.log
451
452 echo "\
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
455 " 1>&5
456
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
459 ac_configure_args=
460 for ac_arg
461 do
462   case "$ac_arg" in
463   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464   | --no-cr | --no-c) ;;
465   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470   esac
471 done
472
473 # NLS nuisances.
474 # Only set these to C if already set.  These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
482
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 echo > confdefs.h
487
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file=conf/pam_conv1/pam_conv.y
491
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494   ac_srcdir_defaulted=yes
495   # Try the directory containing this script, then its parent.
496   ac_prog=$0
497   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499   srcdir=$ac_confdir
500   if test ! -r $srcdir/$ac_unique_file; then
501     srcdir=..
502   fi
503 else
504   ac_srcdir_defaulted=no
505 fi
506 if test ! -r $srcdir/$ac_unique_file; then
507   if test "$ac_srcdir_defaulted" = yes; then
508     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509   else
510     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511   fi
512 fi
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
514
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$CONFIG_SITE"; then
517   if test "x$prefix" != xNONE; then
518     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519   else
520     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521   fi
522 fi
523 for ac_site_file in $CONFIG_SITE; do
524   if test -r "$ac_site_file"; then
525     echo "loading site script $ac_site_file"
526     . "$ac_site_file"
527   fi
528 done
529
530 if test -r "$cache_file"; then
531   echo "loading cache $cache_file"
532   . $cache_file
533 else
534   echo "creating cache $cache_file"
535   > $cache_file
536 fi
537
538 ac_ext=c
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
544
545 ac_exeext=
546 ac_objext=o
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550     ac_n= ac_c='
551 ' ac_t='        '
552   else
553     ac_n=-n ac_c= ac_t=
554   fi
555 else
556   ac_n= ac_c='\c' ac_t=
557 fi
558
559
560
561
562
563
564 LIBPAM_VERSION_MAJOR=0
565 LIBPAM_VERSION_MINOR=76
566
567
568
569 cat >> confdefs.h <<\EOF
570 #define LIBPAM_VERSION_MAJOR 1
571 EOF
572
573 cat >> confdefs.h <<\EOF
574 #define LIBPAM_VERSION_MINOR 1
575 EOF
576
577
578
579
580
581 LOCALSRCDIR=`/bin/pwd`         ; 
582 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
583
584
585
586 CONF_CFLAGS=                    ; 
587 MKDIR="mkdir -p"                ; 
588
589 SHLIBMODE=755                   ; 
590
591 USESONAME=yes                   ; 
592 SOSWITCH=-soname                ; 
593 NEEDSONAME=no                   ; 
594 LDCONFIG=/sbin/ldconfig         ; 
595
596 if test "$OS" = "aix"; then
597   INSTALL=/usr/ucb/install -c
598 else
599   INSTALL=/usr/bin/install
600 fi
601
602
603 # Extract the first word of "gcc", so it can be a program name with args.
604 set dummy gcc; ac_word=$2
605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
606 echo "configure:607: checking for $ac_word" >&5
607 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
608   echo $ac_n "(cached) $ac_c" 1>&6
609 else
610   if test -n "$CC"; then
611   ac_cv_prog_CC="$CC" # Let the user override the test.
612 else
613   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
614   ac_dummy="$PATH"
615   for ac_dir in $ac_dummy; do
616     test -z "$ac_dir" && ac_dir=.
617     if test -f $ac_dir/$ac_word; then
618       ac_cv_prog_CC="gcc"
619       break
620     fi
621   done
622   IFS="$ac_save_ifs"
623 fi
624 fi
625 CC="$ac_cv_prog_CC"
626 if test -n "$CC"; then
627   echo "$ac_t""$CC" 1>&6
628 else
629   echo "$ac_t""no" 1>&6
630 fi
631
632 if test -z "$CC"; then
633   # Extract the first word of "cc", so it can be a program name with args.
634 set dummy cc; ac_word=$2
635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
636 echo "configure:637: checking for $ac_word" >&5
637 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
638   echo $ac_n "(cached) $ac_c" 1>&6
639 else
640   if test -n "$CC"; then
641   ac_cv_prog_CC="$CC" # Let the user override the test.
642 else
643   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
644   ac_prog_rejected=no
645   ac_dummy="$PATH"
646   for ac_dir in $ac_dummy; do
647     test -z "$ac_dir" && ac_dir=.
648     if test -f $ac_dir/$ac_word; then
649       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
650         ac_prog_rejected=yes
651         continue
652       fi
653       ac_cv_prog_CC="cc"
654       break
655     fi
656   done
657   IFS="$ac_save_ifs"
658 if test $ac_prog_rejected = yes; then
659   # We found a bogon in the path, so make sure we never use it.
660   set dummy $ac_cv_prog_CC
661   shift
662   if test $# -gt 0; then
663     # We chose a different compiler from the bogus one.
664     # However, it has the same basename, so the bogon will be chosen
665     # first if we set CC to just the basename; use the full file name.
666     shift
667     set dummy "$ac_dir/$ac_word" "$@"
668     shift
669     ac_cv_prog_CC="$@"
670   fi
671 fi
672 fi
673 fi
674 CC="$ac_cv_prog_CC"
675 if test -n "$CC"; then
676   echo "$ac_t""$CC" 1>&6
677 else
678   echo "$ac_t""no" 1>&6
679 fi
680
681   if test -z "$CC"; then
682     case "`uname -s`" in
683     *win32* | *WIN32*)
684       # Extract the first word of "cl", so it can be a program name with args.
685 set dummy cl; ac_word=$2
686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687 echo "configure:688: checking for $ac_word" >&5
688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
689   echo $ac_n "(cached) $ac_c" 1>&6
690 else
691   if test -n "$CC"; then
692   ac_cv_prog_CC="$CC" # Let the user override the test.
693 else
694   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
695   ac_dummy="$PATH"
696   for ac_dir in $ac_dummy; do
697     test -z "$ac_dir" && ac_dir=.
698     if test -f $ac_dir/$ac_word; then
699       ac_cv_prog_CC="cl"
700       break
701     fi
702   done
703   IFS="$ac_save_ifs"
704 fi
705 fi
706 CC="$ac_cv_prog_CC"
707 if test -n "$CC"; then
708   echo "$ac_t""$CC" 1>&6
709 else
710   echo "$ac_t""no" 1>&6
711 fi
712  ;;
713     esac
714   fi
715   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
716 fi
717
718 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
719 echo "configure:720: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
720
721 ac_ext=c
722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
723 ac_cpp='$CPP $CPPFLAGS'
724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
726 cross_compiling=$ac_cv_prog_cc_cross
727
728 cat > conftest.$ac_ext << EOF
729
730 #line 731 "configure"
731 #include "confdefs.h"
732
733 main(){return(0);}
734 EOF
735 if { (eval echo configure:736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
736   ac_cv_prog_cc_works=yes
737   # If we can't run a trivial program, we are probably using a cross compiler.
738   if (./conftest; exit) 2>/dev/null; then
739     ac_cv_prog_cc_cross=no
740   else
741     ac_cv_prog_cc_cross=yes
742   fi
743 else
744   echo "configure: failed program was:" >&5
745   cat conftest.$ac_ext >&5
746   ac_cv_prog_cc_works=no
747 fi
748 rm -fr conftest*
749 ac_ext=c
750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
751 ac_cpp='$CPP $CPPFLAGS'
752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
754 cross_compiling=$ac_cv_prog_cc_cross
755
756 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
757 if test $ac_cv_prog_cc_works = no; then
758   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
759 fi
760 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
761 echo "configure:762: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
762 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
763 cross_compiling=$ac_cv_prog_cc_cross
764
765 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
766 echo "configure:767: checking whether we are using GNU C" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
768   echo $ac_n "(cached) $ac_c" 1>&6
769 else
770   cat > conftest.c <<EOF
771 #ifdef __GNUC__
772   yes;
773 #endif
774 EOF
775 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
776   ac_cv_prog_gcc=yes
777 else
778   ac_cv_prog_gcc=no
779 fi
780 fi
781
782 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
783
784 if test $ac_cv_prog_gcc = yes; then
785   GCC=yes
786 else
787   GCC=
788 fi
789
790 ac_test_CFLAGS="${CFLAGS+set}"
791 ac_save_CFLAGS="$CFLAGS"
792 CFLAGS=
793 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
794 echo "configure:795: checking whether ${CC-cc} accepts -g" >&5
795 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
796   echo $ac_n "(cached) $ac_c" 1>&6
797 else
798   echo 'void f(){}' > conftest.c
799 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
800   ac_cv_prog_cc_g=yes
801 else
802   ac_cv_prog_cc_g=no
803 fi
804 rm -f conftest*
805
806 fi
807
808 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
809 if test "$ac_test_CFLAGS" = set; then
810   CFLAGS="$ac_save_CFLAGS"
811 elif test $ac_cv_prog_cc_g = yes; then
812   if test "$GCC" = yes; then
813     CFLAGS="-g -O2"
814   else
815     CFLAGS="-g"
816   fi
817 else
818   if test "$GCC" = yes; then
819     CFLAGS="-O2"
820   else
821     CFLAGS=
822   fi
823 fi
824
825 for ac_prog in 'bison -y' byacc
826 do
827 # Extract the first word of "$ac_prog", so it can be a program name with args.
828 set dummy $ac_prog; ac_word=$2
829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
830 echo "configure:831: checking for $ac_word" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
832   echo $ac_n "(cached) $ac_c" 1>&6
833 else
834   if test -n "$YACC"; then
835   ac_cv_prog_YACC="$YACC" # Let the user override the test.
836 else
837   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
838   ac_dummy="$PATH"
839   for ac_dir in $ac_dummy; do
840     test -z "$ac_dir" && ac_dir=.
841     if test -f $ac_dir/$ac_word; then
842       ac_cv_prog_YACC="$ac_prog"
843       break
844     fi
845   done
846   IFS="$ac_save_ifs"
847 fi
848 fi
849 YACC="$ac_cv_prog_YACC"
850 if test -n "$YACC"; then
851   echo "$ac_t""$YACC" 1>&6
852 else
853   echo "$ac_t""no" 1>&6
854 fi
855
856 test -n "$YACC" && break
857 done
858 test -n "$YACC" || YACC="yacc"
859
860 # Extract the first word of "flex", so it can be a program name with args.
861 set dummy flex; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
865   echo $ac_n "(cached) $ac_c" 1>&6
866 else
867   if test -n "$LEX"; then
868   ac_cv_prog_LEX="$LEX" # Let the user override the test.
869 else
870   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
871   ac_dummy="$PATH"
872   for ac_dir in $ac_dummy; do
873     test -z "$ac_dir" && ac_dir=.
874     if test -f $ac_dir/$ac_word; then
875       ac_cv_prog_LEX="flex"
876       break
877     fi
878   done
879   IFS="$ac_save_ifs"
880   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
881 fi
882 fi
883 LEX="$ac_cv_prog_LEX"
884 if test -n "$LEX"; then
885   echo "$ac_t""$LEX" 1>&6
886 else
887   echo "$ac_t""no" 1>&6
888 fi
889
890 if test -z "$LEXLIB"
891 then
892   case "$LEX" in
893   flex*) ac_lib=fl ;;
894   *) ac_lib=l ;;
895   esac
896   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
897 echo "configure:898: checking for yywrap in -l$ac_lib" >&5
898 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
900   echo $ac_n "(cached) $ac_c" 1>&6
901 else
902   ac_save_LIBS="$LIBS"
903 LIBS="-l$ac_lib  $LIBS"
904 cat > conftest.$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
907 /* Override any gcc2 internal prototype to avoid an error.  */
908 /* We use char because int might match the return type of a gcc2
909     builtin and then its argument prototype would still apply.  */
910 char yywrap();
911
912 int main() {
913 yywrap()
914 ; return 0; }
915 EOF
916 if { (eval echo configure:917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
917   rm -rf conftest*
918   eval "ac_cv_lib_$ac_lib_var=yes"
919 else
920   echo "configure: failed program was:" >&5
921   cat conftest.$ac_ext >&5
922   rm -rf conftest*
923   eval "ac_cv_lib_$ac_lib_var=no"
924 fi
925 rm -f conftest*
926 LIBS="$ac_save_LIBS"
927
928 fi
929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
930   echo "$ac_t""yes" 1>&6
931   LEXLIB="-l$ac_lib"
932 else
933   echo "$ac_t""no" 1>&6
934 fi
935
936 fi
937
938 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
939 echo "configure:940: checking whether ln -s works" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
941   echo $ac_n "(cached) $ac_c" 1>&6
942 else
943   rm -f conftestdata
944 if ln -s X conftestdata 2>/dev/null
945 then
946   rm -f conftestdata
947   ac_cv_prog_LN_S="ln -s"
948 else
949   ac_cv_prog_LN_S=ln
950 fi
951 fi
952 LN_S="$ac_cv_prog_LN_S"
953 if test "$ac_cv_prog_LN_S" = "ln -s"; then
954   echo "$ac_t""yes" 1>&6
955 else
956   echo "$ac_t""no" 1>&6
957 fi
958
959 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
960 echo "configure:961: checking whether ${MAKE-make} sets \${MAKE}" >&5
961 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
962 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
963   echo $ac_n "(cached) $ac_c" 1>&6
964 else
965   cat > conftestmake <<\EOF
966 all:
967         @echo 'ac_maketemp="${MAKE}"'
968 EOF
969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
970 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
971 if test -n "$ac_maketemp"; then
972   eval ac_cv_prog_make_${ac_make}_set=yes
973 else
974   eval ac_cv_prog_make_${ac_make}_set=no
975 fi
976 rm -f conftestmake
977 fi
978 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979   echo "$ac_t""yes" 1>&6
980   SET_MAKE=
981 else
982   echo "$ac_t""no" 1>&6
983   SET_MAKE="MAKE=${MAKE-make}"
984 fi
985
986
987
988 # Check whether --enable-debug or --disable-debug was given.
989 if test "${enable_debug+set}" = set; then
990   enableval="$enable_debug"
991   WITH_DEBUG=yes ; cat >> confdefs.h <<\EOF
992 #define DEBUG 1
993 EOF
994  
995 else
996   WITH_DEBUG=no
997 fi
998
999
1000
1001 # Check whether --enable-libdebug or --disable-libdebug was given.
1002 if test "${enable_libdebug+set}" = set; then
1003   enableval="$enable_libdebug"
1004   WITH_LIBDEBUG=yes ; cat >> confdefs.h <<\EOF
1005 #define WITH_LIBDEBUG 1
1006 EOF
1007  
1008 else
1009   WITH_LIBDEBUG=no
1010 fi
1011
1012
1013
1014 # Check whether --enable-fakeroot or --disable-fakeroot was given.
1015 if test "${enable_fakeroot+set}" = set; then
1016   enableval="$enable_fakeroot"
1017   FAKEROOT=$enableval
1018 fi
1019
1020
1021
1022 # Check whether --enable-securedir or --disable-securedir was given.
1023 if test "${enable_securedir+set}" = set; then
1024   enableval="$enable_securedir"
1025   SECUREDIR=$enableval
1026 else
1027   SECUREDIR=$libdir/security
1028 fi
1029
1030
1031
1032 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
1033 if test "${enable_sconfigdir+set}" = set; then
1034   enableval="$enable_sconfigdir"
1035   SCONFIGDIR=$enableval
1036 else
1037   SCONFIGDIR=$sysconfdir/security
1038 fi
1039
1040
1041
1042 # Check whether --enable-suplementedir or --disable-suplementedir was given.
1043 if test "${enable_suplementedir+set}" = set; then
1044   enableval="$enable_suplementedir"
1045   SUPLEMENTED=$enableval
1046 else
1047   SUPLEMENTED=$sbindir
1048 fi
1049
1050
1051
1052 # Check whether --enable-includedir or --disable-includedir was given.
1053 if test "${enable_includedir+set}" = set; then
1054   enableval="$enable_includedir"
1055   INCLUDEDIR=$enableval
1056 else
1057   INCLUDEDIR=/usr/include
1058 fi
1059
1060
1061
1062 # Check whether --enable-docdir or --disable-docdir was given.
1063 if test "${enable_docdir+set}" = set; then
1064   enableval="$enable_docdir"
1065   DOCDIR=$enableval
1066 else
1067   DOCDIR=/usr/share/doc/pam
1068 fi
1069
1070
1071
1072 # Check whether --enable-mandir or --disable-mandir was given.
1073 if test "${enable_mandir+set}" = set; then
1074   enableval="$enable_mandir"
1075   MANDIR=$enableval
1076 else
1077   MANDIR=/usr/share/man
1078 fi
1079
1080
1081
1082 # Check whether --enable-pamlocking or --disable-pamlocking was given.
1083 if test "${enable_pamlocking+set}" = set; then
1084   enableval="$enable_pamlocking"
1085   WITH_PAMLOCKING=yes ; cat >> confdefs.h <<\EOF
1086 #define PAM_LOCKING 1
1087 EOF
1088  
1089 else
1090   WITH_PAMLOCKING=no
1091 fi
1092
1093
1094
1095 # Check whether --enable-uglyhack or --disable-uglyhack was given.
1096 if test "${enable_uglyhack+set}" = set; then
1097   enableval="$enable_uglyhack"
1098   cat >> confdefs.h <<\EOF
1099 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
1100 EOF
1101
1102 fi
1103
1104
1105 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
1106 if test "${enable_read_both_confs+set}" = set; then
1107   enableval="$enable_read_both_confs"
1108   cat >> confdefs.h <<\EOF
1109 #define PAM_READ_BOTH_CONFS 1
1110 EOF
1111
1112 fi
1113
1114
1115
1116 # Check whether --enable-static-libpam or --disable-static-libpam was given.
1117 if test "${enable_static_libpam+set}" = set; then
1118   enableval="$enable_static_libpam"
1119   STATIC_LIBPAM=yes 
1120 else
1121   STATIC_LIBPAM=no
1122 fi
1123
1124
1125
1126 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
1127 if test "${enable_dynamic_libpam+set}" = set; then
1128   enableval="$enable_dynamic_libpam"
1129   DYNAMIC_LIBPAM=no
1130 else
1131   DYNAMIC_LIBPAM=yes
1132 fi
1133
1134
1135
1136 DYNAMIC=-DPAM_DYNAMIC
1137
1138
1139 # Check whether --enable-static-modules or --disable-static-modules was given.
1140 if test "${enable_static_modules+set}" = set; then
1141   enableval="$enable_static_modules"
1142   STATIC=-DPAM_STATIC
1143 fi
1144
1145
1146
1147 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
1148 if test "${enable_lckpwdf+set}" = set; then
1149   enableval="$enable_lckpwdf"
1150   WITH_LCKPWDF=no
1151 else
1152   WITH_LCKPWDF=yes
1153 fi
1154
1155
1156
1157 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1158 echo "configure:1159: checking how to run the C preprocessor" >&5
1159 # On Suns, sometimes $CPP names a directory.
1160 if test -n "$CPP" && test -d "$CPP"; then
1161   CPP=
1162 fi
1163 if test -z "$CPP"; then
1164 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1165   echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167     # This must be in double quotes, not single quotes, because CPP may get
1168   # substituted into the Makefile and "${CC-cc}" will confuse make.
1169   CPP="${CC-cc} -E"
1170   # On the NeXT, cc -E runs the code through the compiler's parser,
1171   # not just through cpp.
1172   cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1175 #include <assert.h>
1176 Syntax Error
1177 EOF
1178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1179 { (eval echo configure:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1181 if test -z "$ac_err"; then
1182   :
1183 else
1184   echo "$ac_err" >&5
1185   echo "configure: failed program was:" >&5
1186   cat conftest.$ac_ext >&5
1187   rm -rf conftest*
1188   CPP="${CC-cc} -E -traditional-cpp"
1189   cat > conftest.$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1192 #include <assert.h>
1193 Syntax Error
1194 EOF
1195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1196 { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1198 if test -z "$ac_err"; then
1199   :
1200 else
1201   echo "$ac_err" >&5
1202   echo "configure: failed program was:" >&5
1203   cat conftest.$ac_ext >&5
1204   rm -rf conftest*
1205   CPP="${CC-cc} -nologo -E"
1206   cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1209 #include <assert.h>
1210 Syntax Error
1211 EOF
1212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1213 { (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1215 if test -z "$ac_err"; then
1216   :
1217 else
1218   echo "$ac_err" >&5
1219   echo "configure: failed program was:" >&5
1220   cat conftest.$ac_ext >&5
1221   rm -rf conftest*
1222   CPP=/lib/cpp
1223 fi
1224 rm -f conftest*
1225 fi
1226 rm -f conftest*
1227 fi
1228 rm -f conftest*
1229   ac_cv_prog_CPP="$CPP"
1230 fi
1231   CPP="$ac_cv_prog_CPP"
1232 else
1233   ac_cv_prog_CPP="$CPP"
1234 fi
1235 echo "$ac_t""$CPP" 1>&6
1236
1237 for ac_hdr in paths.h
1238 do
1239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_hdr" >&5
1242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1243   echo $ac_n "(cached) $ac_c" 1>&6
1244 else
1245   cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1248 #include <$ac_hdr>
1249 EOF
1250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1251 { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1253 if test -z "$ac_err"; then
1254   rm -rf conftest*
1255   eval "ac_cv_header_$ac_safe=yes"
1256 else
1257   echo "$ac_err" >&5
1258   echo "configure: failed program was:" >&5
1259   cat conftest.$ac_ext >&5
1260   rm -rf conftest*
1261   eval "ac_cv_header_$ac_safe=no"
1262 fi
1263 rm -f conftest*
1264 fi
1265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1266   echo "$ac_t""yes" 1>&6
1267     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1268   cat >> confdefs.h <<EOF
1269 #define $ac_tr_hdr 1
1270 EOF
1271  
1272 else
1273   echo "$ac_t""no" 1>&6
1274 fi
1275 done
1276
1277 # Check whether --with-mailspool or --without-mailspool was given.
1278 if test "${with_mailspool+set}" = set; then
1279   withval="$with_mailspool"
1280   with_mailspool=${withval}
1281 fi
1282
1283 if test x$with_mailspool != x ; then
1284         pam_mail_spool="\"$with_mailspool\""
1285 else
1286         if test "$cross_compiling" = yes; then
1287   pam_mail_spool="\"/var/spool/mail\""
1288 else
1289   cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1292
1293 #include <paths.h>
1294 int main() {
1295 #ifdef _PATH_MAILDIR
1296 exit(0);
1297 #else
1298 exit(1);
1299 #endif
1300 }
1301 EOF
1302 if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1303 then
1304   pam_mail_spool="_PATH_MAILDIR"
1305 else
1306   echo "configure: failed program was:" >&5
1307   cat conftest.$ac_ext >&5
1308   rm -fr conftest*
1309   pam_mail_spool="\"/var/spool/mail\""
1310 fi
1311 rm -fr conftest*
1312 fi
1313
1314 fi
1315 cat >> confdefs.h <<EOF
1316 #define PAM_PATH_MAILDIR $pam_mail_spool
1317 EOF
1318
1319
1320 echo $ac_n "checking for __libc_sched_setscheduler in -lc""... $ac_c" 1>&6
1321 echo "configure:1322: checking for __libc_sched_setscheduler in -lc" >&5
1322 ac_lib_var=`echo c'_'__libc_sched_setscheduler | sed 'y%./+-%__p_%'`
1323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324   echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326   ac_save_LIBS="$LIBS"
1327 LIBS="-lc  $LIBS"
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 /* Override any gcc2 internal prototype to avoid an error.  */
1332 /* We use char because int might match the return type of a gcc2
1333     builtin and then its argument prototype would still apply.  */
1334 char __libc_sched_setscheduler();
1335
1336 int main() {
1337 __libc_sched_setscheduler()
1338 ; return 0; }
1339 EOF
1340 if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1341   rm -rf conftest*
1342   eval "ac_cv_lib_$ac_lib_var=yes"
1343 else
1344   echo "configure: failed program was:" >&5
1345   cat conftest.$ac_ext >&5
1346   rm -rf conftest*
1347   eval "ac_cv_lib_$ac_lib_var=no"
1348 fi
1349 rm -f conftest*
1350 LIBS="$ac_save_LIBS"
1351
1352 fi
1353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354   echo "$ac_t""yes" 1>&6
1355   PAM_NEEDS_LIBC=
1356 else
1357   echo "$ac_t""no" 1>&6
1358 PAM_NEEDS_LIBC=-lc
1359 fi
1360
1361
1362
1363 echo $ac_n "checking for lckpwdf in -lc""... $ac_c" 1>&6
1364 echo "configure:1365: checking for lckpwdf in -lc" >&5
1365 ac_lib_var=`echo c'_'lckpwdf | sed 'y%./+-%__p_%'`
1366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1367   echo $ac_n "(cached) $ac_c" 1>&6
1368 else
1369   ac_save_LIBS="$LIBS"
1370 LIBS="-lc  $LIBS"
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* Override any gcc2 internal prototype to avoid an error.  */
1375 /* We use char because int might match the return type of a gcc2
1376     builtin and then its argument prototype would still apply.  */
1377 char lckpwdf();
1378
1379 int main() {
1380 lckpwdf()
1381 ; return 0; }
1382 EOF
1383 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1384   rm -rf conftest*
1385   eval "ac_cv_lib_$ac_lib_var=yes"
1386 else
1387   echo "configure: failed program was:" >&5
1388   cat conftest.$ac_ext >&5
1389   rm -rf conftest*
1390   eval "ac_cv_lib_$ac_lib_var=no"
1391 fi
1392 rm -f conftest*
1393 LIBS="$ac_save_LIBS"
1394
1395 fi
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397   echo "$ac_t""yes" 1>&6
1398   HAVE_LCKPWDF=yes
1399 else
1400   echo "$ac_t""no" 1>&6
1401 HAVE_LCKPWDF=no
1402 fi
1403
1404
1405
1406 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1407 echo "configure:1408: checking for dlopen in -ldl" >&5
1408 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1410   echo $ac_n "(cached) $ac_c" 1>&6
1411 else
1412   ac_save_LIBS="$LIBS"
1413 LIBS="-ldl  $LIBS"
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1417 /* Override any gcc2 internal prototype to avoid an error.  */
1418 /* We use char because int might match the return type of a gcc2
1419     builtin and then its argument prototype would still apply.  */
1420 char dlopen();
1421
1422 int main() {
1423 dlopen()
1424 ; return 0; }
1425 EOF
1426 if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1427   rm -rf conftest*
1428   eval "ac_cv_lib_$ac_lib_var=yes"
1429 else
1430   echo "configure: failed program was:" >&5
1431   cat conftest.$ac_ext >&5
1432   rm -rf conftest*
1433   eval "ac_cv_lib_$ac_lib_var=no"
1434 fi
1435 rm -f conftest*
1436 LIBS="$ac_save_LIBS"
1437
1438 fi
1439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1440   echo "$ac_t""yes" 1>&6
1441   LIBDL=-ldl
1442 else
1443   echo "$ac_t""no" 1>&6
1444 fi
1445  
1446
1447
1448 echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
1449 echo "configure:1450: checking for FascistCheck in -lcrack" >&5
1450 ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
1451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1452   echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454   ac_save_LIBS="$LIBS"
1455 LIBS="-lcrack  $LIBS"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 /* Override any gcc2 internal prototype to avoid an error.  */
1460 /* We use char because int might match the return type of a gcc2
1461     builtin and then its argument prototype would still apply.  */
1462 char FascistCheck();
1463
1464 int main() {
1465 FascistCheck()
1466 ; return 0; }
1467 EOF
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1469   rm -rf conftest*
1470   eval "ac_cv_lib_$ac_lib_var=yes"
1471 else
1472   echo "configure: failed program was:" >&5
1473   cat conftest.$ac_ext >&5
1474   rm -rf conftest*
1475   eval "ac_cv_lib_$ac_lib_var=no"
1476 fi
1477 rm -f conftest*
1478 LIBS="$ac_save_LIBS"
1479
1480 fi
1481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1482   echo "$ac_t""yes" 1>&6
1483   HAVE_LIBCRACK=yes ; cat >> confdefs.h <<\EOF
1484 #define HAVE_LIBCRACK 1
1485 EOF
1486
1487 else
1488   echo "$ac_t""no" 1>&6
1489 HAVE_LIBCRACK=no
1490 fi
1491
1492
1493
1494 echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
1495 echo "configure:1496: checking for fcrypt in -lcrypt" >&5
1496 ac_lib_var=`echo crypt'_'fcrypt | sed 'y%./+-%__p_%'`
1497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1498   echo $ac_n "(cached) $ac_c" 1>&6
1499 else
1500   ac_save_LIBS="$LIBS"
1501 LIBS="-lcrypt  $LIBS"
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 /* Override any gcc2 internal prototype to avoid an error.  */
1506 /* We use char because int might match the return type of a gcc2
1507     builtin and then its argument prototype would still apply.  */
1508 char fcrypt();
1509
1510 int main() {
1511 fcrypt()
1512 ; return 0; }
1513 EOF
1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1515   rm -rf conftest*
1516   eval "ac_cv_lib_$ac_lib_var=yes"
1517 else
1518   echo "configure: failed program was:" >&5
1519   cat conftest.$ac_ext >&5
1520   rm -rf conftest*
1521   eval "ac_cv_lib_$ac_lib_var=no"
1522 fi
1523 rm -f conftest*
1524 LIBS="$ac_save_LIBS"
1525
1526 fi
1527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1528   echo "$ac_t""yes" 1>&6
1529   HAVE_LIBCRYPT=yes ; cat >> confdefs.h <<\EOF
1530 #define HAVE_LIBCRYPT 1
1531 EOF
1532
1533 else
1534   echo "$ac_t""no" 1>&6
1535 HAVE_LIBCRYPT=no
1536 fi
1537
1538
1539 echo $ac_n "checking for logwtmp in -lutil""... $ac_c" 1>&6
1540 echo "configure:1541: checking for logwtmp in -lutil" >&5
1541 ac_lib_var=`echo util'_'logwtmp | sed 'y%./+-%__p_%'`
1542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1543   echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545   ac_save_LIBS="$LIBS"
1546 LIBS="-lutil  $LIBS"
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 /* Override any gcc2 internal prototype to avoid an error.  */
1551 /* We use char because int might match the return type of a gcc2
1552     builtin and then its argument prototype would still apply.  */
1553 char logwtmp();
1554
1555 int main() {
1556 logwtmp()
1557 ; return 0; }
1558 EOF
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1560   rm -rf conftest*
1561   eval "ac_cv_lib_$ac_lib_var=yes"
1562 else
1563   echo "configure: failed program was:" >&5
1564   cat conftest.$ac_ext >&5
1565   rm -rf conftest*
1566   eval "ac_cv_lib_$ac_lib_var=no"
1567 fi
1568 rm -f conftest*
1569 LIBS="$ac_save_LIBS"
1570
1571 fi
1572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1573   echo "$ac_t""yes" 1>&6
1574   HAVE_LIBUTIL=yes ; cat >> confdefs.h <<\EOF
1575 #define HAVE_LIBUTIL 1
1576 EOF
1577
1578 else
1579   echo "$ac_t""no" 1>&6
1580 HAVE_LIBUTIL=no
1581 fi
1582
1583
1584 echo $ac_n "checking for dbm_store in -lndbm""... $ac_c" 1>&6
1585 echo "configure:1586: checking for dbm_store in -lndbm" >&5
1586 ac_lib_var=`echo ndbm'_'dbm_store | sed 'y%./+-%__p_%'`
1587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1588   echo $ac_n "(cached) $ac_c" 1>&6
1589 else
1590   ac_save_LIBS="$LIBS"
1591 LIBS="-lndbm  $LIBS"
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 /* Override any gcc2 internal prototype to avoid an error.  */
1596 /* We use char because int might match the return type of a gcc2
1597     builtin and then its argument prototype would still apply.  */
1598 char dbm_store();
1599
1600 int main() {
1601 dbm_store()
1602 ; return 0; }
1603 EOF
1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1605   rm -rf conftest*
1606   eval "ac_cv_lib_$ac_lib_var=yes"
1607 else
1608   echo "configure: failed program was:" >&5
1609   cat conftest.$ac_ext >&5
1610   rm -rf conftest*
1611   eval "ac_cv_lib_$ac_lib_var=no"
1612 fi
1613 rm -f conftest*
1614 LIBS="$ac_save_LIBS"
1615
1616 fi
1617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1618   echo "$ac_t""yes" 1>&6
1619   HAVE_LIBNDBM=yes ; cat >> confdefs.h <<\EOF
1620 #define HAVE_LIBNDBM 1
1621 EOF
1622
1623 else
1624   echo "$ac_t""no" 1>&6
1625 HAVE_LIBNDBM=no
1626 fi
1627
1628
1629 echo $ac_n "checking for dbm_store in -ldb""... $ac_c" 1>&6
1630 echo "configure:1631: checking for dbm_store in -ldb" >&5
1631 ac_lib_var=`echo db'_'dbm_store | sed 'y%./+-%__p_%'`
1632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1633   echo $ac_n "(cached) $ac_c" 1>&6
1634 else
1635   ac_save_LIBS="$LIBS"
1636 LIBS="-ldb  $LIBS"
1637 cat > conftest.$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1640 /* Override any gcc2 internal prototype to avoid an error.  */
1641 /* We use char because int might match the return type of a gcc2
1642     builtin and then its argument prototype would still apply.  */
1643 char dbm_store();
1644
1645 int main() {
1646 dbm_store()
1647 ; return 0; }
1648 EOF
1649 if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1650   rm -rf conftest*
1651   eval "ac_cv_lib_$ac_lib_var=yes"
1652 else
1653   echo "configure: failed program was:" >&5
1654   cat conftest.$ac_ext >&5
1655   rm -rf conftest*
1656   eval "ac_cv_lib_$ac_lib_var=no"
1657 fi
1658 rm -f conftest*
1659 LIBS="$ac_save_LIBS"
1660
1661 fi
1662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1663   echo "$ac_t""yes" 1>&6
1664   HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1665 #define HAVE_LIBDB 1
1666 EOF
1667
1668 else
1669   echo "$ac_t""no" 1>&6
1670 HAVE_LIBDB=no
1671 fi
1672
1673 if test x$HAVE_LIBDB != xyes ; then
1674         echo $ac_n "checking for db_create in -ldb""... $ac_c" 1>&6
1675 echo "configure:1676: checking for db_create in -ldb" >&5
1676 ac_lib_var=`echo db'_'db_create | sed 'y%./+-%__p_%'`
1677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1678   echo $ac_n "(cached) $ac_c" 1>&6
1679 else
1680   ac_save_LIBS="$LIBS"
1681 LIBS="-ldb  $LIBS"
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 /* Override any gcc2 internal prototype to avoid an error.  */
1686 /* We use char because int might match the return type of a gcc2
1687     builtin and then its argument prototype would still apply.  */
1688 char db_create();
1689
1690 int main() {
1691 db_create()
1692 ; return 0; }
1693 EOF
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695   rm -rf conftest*
1696   eval "ac_cv_lib_$ac_lib_var=yes"
1697 else
1698   echo "configure: failed program was:" >&5
1699   cat conftest.$ac_ext >&5
1700   rm -rf conftest*
1701   eval "ac_cv_lib_$ac_lib_var=no"
1702 fi
1703 rm -f conftest*
1704 LIBS="$ac_save_LIBS"
1705
1706 fi
1707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1708   echo "$ac_t""yes" 1>&6
1709   HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1710 #define HAVE_LIBDB 1
1711 EOF
1712
1713 else
1714   echo "$ac_t""no" 1>&6
1715 HAVE_LIBDB=no
1716 fi
1717
1718 fi
1719
1720 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1721 echo "configure:1722: checking for yylex in -lfl" >&5
1722 ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
1723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1724   echo $ac_n "(cached) $ac_c" 1>&6
1725 else
1726   ac_save_LIBS="$LIBS"
1727 LIBS="-lfl HAVE_LIBFL=no $LIBS"
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1731 /* Override any gcc2 internal prototype to avoid an error.  */
1732 /* We use char because int might match the return type of a gcc2
1733     builtin and then its argument prototype would still apply.  */
1734 char yylex();
1735
1736 int main() {
1737 yylex()
1738 ; return 0; }
1739 EOF
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1741   rm -rf conftest*
1742   eval "ac_cv_lib_$ac_lib_var=yes"
1743 else
1744   echo "configure: failed program was:" >&5
1745   cat conftest.$ac_ext >&5
1746   rm -rf conftest*
1747   eval "ac_cv_lib_$ac_lib_var=no"
1748 fi
1749 rm -f conftest*
1750 LIBS="$ac_save_LIBS"
1751
1752 fi
1753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1754   echo "$ac_t""yes" 1>&6
1755   yyterminate
1756 else
1757   echo "$ac_t""no" 1>&6
1758 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1759 #define HAVE_LIBFL 1
1760 EOF
1761
1762 fi
1763
1764
1765 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1766 echo "configure:1767: checking for yp_maplist in -lnsl" >&5
1767 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1769   echo $ac_n "(cached) $ac_c" 1>&6
1770 else
1771   ac_save_LIBS="$LIBS"
1772 LIBS="-lnsl  $LIBS"
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 /* Override any gcc2 internal prototype to avoid an error.  */
1777 /* We use char because int might match the return type of a gcc2
1778     builtin and then its argument prototype would still apply.  */
1779 char yp_maplist();
1780
1781 int main() {
1782 yp_maplist()
1783 ; return 0; }
1784 EOF
1785 if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786   rm -rf conftest*
1787   eval "ac_cv_lib_$ac_lib_var=yes"
1788 else
1789   echo "configure: failed program was:" >&5
1790   cat conftest.$ac_ext >&5
1791   rm -rf conftest*
1792   eval "ac_cv_lib_$ac_lib_var=no"
1793 fi
1794 rm -f conftest*
1795 LIBS="$ac_save_LIBS"
1796
1797 fi
1798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1799   echo "$ac_t""yes" 1>&6
1800   HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1801 #define HAVE_LIBNSL 1
1802 EOF
1803
1804 else
1805   echo "$ac_t""no" 1>&6
1806 HAVE_LIBNSL=no
1807 fi
1808
1809
1810 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1811 echo "configure:1812: checking for pwdb_db_name in -lpwdb" >&5
1812 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1814   echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816   ac_save_LIBS="$LIBS"
1817 LIBS="-lpwdb  $LIBS"
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 /* Override any gcc2 internal prototype to avoid an error.  */
1822 /* We use char because int might match the return type of a gcc2
1823     builtin and then its argument prototype would still apply.  */
1824 char pwdb_db_name();
1825
1826 int main() {
1827 pwdb_db_name()
1828 ; return 0; }
1829 EOF
1830 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1831   rm -rf conftest*
1832   eval "ac_cv_lib_$ac_lib_var=yes"
1833 else
1834   echo "configure: failed program was:" >&5
1835   cat conftest.$ac_ext >&5
1836   rm -rf conftest*
1837   eval "ac_cv_lib_$ac_lib_var=no"
1838 fi
1839 rm -f conftest*
1840 LIBS="$ac_save_LIBS"
1841
1842 fi
1843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1844   echo "$ac_t""yes" 1>&6
1845   HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1846 #define HAVE_LIBPWDB 1
1847 EOF
1848
1849 else
1850   echo "$ac_t""no" 1>&6
1851 HAVE_LIBPWDB=no
1852 fi
1853
1854
1855
1856 ac_header_dirent=no
1857 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1858 do
1859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1860 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_hdr that defines DIR" >&5
1862 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1863   echo $ac_n "(cached) $ac_c" 1>&6
1864 else
1865   cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 #include <sys/types.h>
1869 #include <$ac_hdr>
1870 int main() {
1871 DIR *dirp = 0;
1872 ; return 0; }
1873 EOF
1874 if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1875   rm -rf conftest*
1876   eval "ac_cv_header_dirent_$ac_safe=yes"
1877 else
1878   echo "configure: failed program was:" >&5
1879   cat conftest.$ac_ext >&5
1880   rm -rf conftest*
1881   eval "ac_cv_header_dirent_$ac_safe=no"
1882 fi
1883 rm -f conftest*
1884 fi
1885 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1886   echo "$ac_t""yes" 1>&6
1887     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1888   cat >> confdefs.h <<EOF
1889 #define $ac_tr_hdr 1
1890 EOF
1891  ac_header_dirent=$ac_hdr; break
1892 else
1893   echo "$ac_t""no" 1>&6
1894 fi
1895 done
1896 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1897 if test $ac_header_dirent = dirent.h; then
1898 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1899 echo "configure:1900: checking for opendir in -ldir" >&5
1900 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1902   echo $ac_n "(cached) $ac_c" 1>&6
1903 else
1904   ac_save_LIBS="$LIBS"
1905 LIBS="-ldir  $LIBS"
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 /* Override any gcc2 internal prototype to avoid an error.  */
1910 /* We use char because int might match the return type of a gcc2
1911     builtin and then its argument prototype would still apply.  */
1912 char opendir();
1913
1914 int main() {
1915 opendir()
1916 ; return 0; }
1917 EOF
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1919   rm -rf conftest*
1920   eval "ac_cv_lib_$ac_lib_var=yes"
1921 else
1922   echo "configure: failed program was:" >&5
1923   cat conftest.$ac_ext >&5
1924   rm -rf conftest*
1925   eval "ac_cv_lib_$ac_lib_var=no"
1926 fi
1927 rm -f conftest*
1928 LIBS="$ac_save_LIBS"
1929
1930 fi
1931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1932   echo "$ac_t""yes" 1>&6
1933   LIBS="$LIBS -ldir"
1934 else
1935   echo "$ac_t""no" 1>&6
1936 fi
1937
1938 else
1939 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1940 echo "configure:1941: checking for opendir in -lx" >&5
1941 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1943   echo $ac_n "(cached) $ac_c" 1>&6
1944 else
1945   ac_save_LIBS="$LIBS"
1946 LIBS="-lx  $LIBS"
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 /* Override any gcc2 internal prototype to avoid an error.  */
1951 /* We use char because int might match the return type of a gcc2
1952     builtin and then its argument prototype would still apply.  */
1953 char opendir();
1954
1955 int main() {
1956 opendir()
1957 ; return 0; }
1958 EOF
1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1960   rm -rf conftest*
1961   eval "ac_cv_lib_$ac_lib_var=yes"
1962 else
1963   echo "configure: failed program was:" >&5
1964   cat conftest.$ac_ext >&5
1965   rm -rf conftest*
1966   eval "ac_cv_lib_$ac_lib_var=no"
1967 fi
1968 rm -f conftest*
1969 LIBS="$ac_save_LIBS"
1970
1971 fi
1972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1973   echo "$ac_t""yes" 1>&6
1974   LIBS="$LIBS -lx"
1975 else
1976   echo "$ac_t""no" 1>&6
1977 fi
1978
1979 fi
1980
1981 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1982 echo "configure:1983: checking for ANSI C header files" >&5
1983 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1984   echo $ac_n "(cached) $ac_c" 1>&6
1985 else
1986   cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 #include <stdlib.h>
1990 #include <stdarg.h>
1991 #include <string.h>
1992 #include <float.h>
1993 EOF
1994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1995 { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1997 if test -z "$ac_err"; then
1998   rm -rf conftest*
1999   ac_cv_header_stdc=yes
2000 else
2001   echo "$ac_err" >&5
2002   echo "configure: failed program was:" >&5
2003   cat conftest.$ac_ext >&5
2004   rm -rf conftest*
2005   ac_cv_header_stdc=no
2006 fi
2007 rm -f conftest*
2008
2009 if test $ac_cv_header_stdc = yes; then
2010   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2014 #include <string.h>
2015 EOF
2016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2017   egrep "memchr" >/dev/null 2>&1; then
2018   :
2019 else
2020   rm -rf conftest*
2021   ac_cv_header_stdc=no
2022 fi
2023 rm -f conftest*
2024
2025 fi
2026
2027 if test $ac_cv_header_stdc = yes; then
2028   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 #include <stdlib.h>
2033 EOF
2034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2035   egrep "free" >/dev/null 2>&1; then
2036   :
2037 else
2038   rm -rf conftest*
2039   ac_cv_header_stdc=no
2040 fi
2041 rm -f conftest*
2042
2043 fi
2044
2045 if test $ac_cv_header_stdc = yes; then
2046   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2047 if test "$cross_compiling" = yes; then
2048   :
2049 else
2050   cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2053 #include <ctype.h>
2054 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2055 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2057 int main () { int i; for (i = 0; i < 256; i++)
2058 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2059 exit (0); }
2060
2061 EOF
2062 if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2063 then
2064   :
2065 else
2066   echo "configure: failed program was:" >&5
2067   cat conftest.$ac_ext >&5
2068   rm -fr conftest*
2069   ac_cv_header_stdc=no
2070 fi
2071 rm -fr conftest*
2072 fi
2073
2074 fi
2075 fi
2076
2077 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2078 if test $ac_cv_header_stdc = yes; then
2079   cat >> confdefs.h <<\EOF
2080 #define STDC_HEADERS 1
2081 EOF
2082
2083 fi
2084
2085 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2086 echo "configure:2087: checking for sys/wait.h that is POSIX.1 compatible" >&5
2087 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2088   echo $ac_n "(cached) $ac_c" 1>&6
2089 else
2090   cat > conftest.$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2093 #include <sys/types.h>
2094 #include <sys/wait.h>
2095 #ifndef WEXITSTATUS
2096 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2097 #endif
2098 #ifndef WIFEXITED
2099 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2100 #endif
2101 int main() {
2102 int s;
2103 wait (&s);
2104 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2105 ; return 0; }
2106 EOF
2107 if { (eval echo configure:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2108   rm -rf conftest*
2109   ac_cv_header_sys_wait_h=yes
2110 else
2111   echo "configure: failed program was:" >&5
2112   cat conftest.$ac_ext >&5
2113   rm -rf conftest*
2114   ac_cv_header_sys_wait_h=no
2115 fi
2116 rm -f conftest*
2117 fi
2118
2119 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2120 if test $ac_cv_header_sys_wait_h = yes; then
2121   cat >> confdefs.h <<\EOF
2122 #define HAVE_SYS_WAIT_H 1
2123 EOF
2124
2125 fi
2126
2127 for ac_hdr in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h sys/fsuid.h
2128 do
2129 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2130 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_hdr" >&5
2132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2133   echo $ac_n "(cached) $ac_c" 1>&6
2134 else
2135   cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 #include <$ac_hdr>
2139 EOF
2140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2141 { (eval echo configure:2142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2143 if test -z "$ac_err"; then
2144   rm -rf conftest*
2145   eval "ac_cv_header_$ac_safe=yes"
2146 else
2147   echo "$ac_err" >&5
2148   echo "configure: failed program was:" >&5
2149   cat conftest.$ac_ext >&5
2150   rm -rf conftest*
2151   eval "ac_cv_header_$ac_safe=no"
2152 fi
2153 rm -f conftest*
2154 fi
2155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2156   echo "$ac_t""yes" 1>&6
2157     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2158   cat >> confdefs.h <<EOF
2159 #define $ac_tr_hdr 1
2160 EOF
2161  
2162 else
2163   echo "$ac_t""no" 1>&6
2164 fi
2165 done
2166
2167
2168 for ac_hdr in features.h
2169 do
2170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_hdr" >&5
2173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2174   echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176   cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2179 #include <$ac_hdr>
2180 EOF
2181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2182 { (eval echo configure:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2184 if test -z "$ac_err"; then
2185   rm -rf conftest*
2186   eval "ac_cv_header_$ac_safe=yes"
2187 else
2188   echo "$ac_err" >&5
2189   echo "configure: failed program was:" >&5
2190   cat conftest.$ac_ext >&5
2191   rm -rf conftest*
2192   eval "ac_cv_header_$ac_safe=no"
2193 fi
2194 rm -f conftest*
2195 fi
2196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2197   echo "$ac_t""yes" 1>&6
2198     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2199   cat >> confdefs.h <<EOF
2200 #define $ac_tr_hdr 1
2201 EOF
2202  
2203 else
2204   echo "$ac_t""no" 1>&6
2205 fi
2206 done
2207
2208
2209 for ac_hdr in crypt.h
2210 do
2211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2213 echo "configure:2214: checking for $ac_hdr" >&5
2214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2215   echo $ac_n "(cached) $ac_c" 1>&6
2216 else
2217   cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2220 #include <$ac_hdr>
2221 EOF
2222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2223 { (eval echo configure:2224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2225 if test -z "$ac_err"; then
2226   rm -rf conftest*
2227   eval "ac_cv_header_$ac_safe=yes"
2228 else
2229   echo "$ac_err" >&5
2230   echo "configure: failed program was:" >&5
2231   cat conftest.$ac_ext >&5
2232   rm -rf conftest*
2233   eval "ac_cv_header_$ac_safe=no"
2234 fi
2235 rm -f conftest*
2236 fi
2237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2238   echo "$ac_t""yes" 1>&6
2239     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2240   cat >> confdefs.h <<EOF
2241 #define $ac_tr_hdr 1
2242 EOF
2243  
2244 else
2245   echo "$ac_t""no" 1>&6
2246 fi
2247 done
2248
2249
2250 for ac_hdr in ndbm.h db.h
2251 do
2252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_hdr" >&5
2255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2256   echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258   cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 #include <$ac_hdr>
2262 EOF
2263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2264 { (eval echo configure:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2266 if test -z "$ac_err"; then
2267   rm -rf conftest*
2268   eval "ac_cv_header_$ac_safe=yes"
2269 else
2270   echo "$ac_err" >&5
2271   echo "configure: failed program was:" >&5
2272   cat conftest.$ac_ext >&5
2273   rm -rf conftest*
2274   eval "ac_cv_header_$ac_safe=no"
2275 fi
2276 rm -f conftest*
2277 fi
2278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2279   echo "$ac_t""yes" 1>&6
2280     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2281   cat >> confdefs.h <<EOF
2282 #define $ac_tr_hdr 1
2283 EOF
2284  
2285 else
2286   echo "$ac_t""no" 1>&6
2287 fi
2288 done
2289
2290 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2291
2292
2293 for ac_hdr in lastlog.h utmp.h utmpx.h
2294 do
2295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_hdr" >&5
2298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2299   echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301   cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 #include <$ac_hdr>
2305 EOF
2306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2307 { (eval echo configure:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2309 if test -z "$ac_err"; then
2310   rm -rf conftest*
2311   eval "ac_cv_header_$ac_safe=yes"
2312 else
2313   echo "$ac_err" >&5
2314   echo "configure: failed program was:" >&5
2315   cat conftest.$ac_ext >&5
2316   rm -rf conftest*
2317   eval "ac_cv_header_$ac_safe=no"
2318 fi
2319 rm -f conftest*
2320 fi
2321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2322   echo "$ac_t""yes" 1>&6
2323     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2324   cat >> confdefs.h <<EOF
2325 #define $ac_tr_hdr 1
2326 EOF
2327  
2328 else
2329   echo "$ac_t""no" 1>&6
2330 fi
2331 done
2332
2333
2334
2335 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2336 echo "configure:2337: checking path to cracklib dictionary" >&5
2337 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2338   /usr/local/lib /usr/local/share/lib"
2339 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2340 CRACKLIB_DICTPATH=""
2341 for d in $DICT_DIR_CANDIDATES ; do
2342       for f in $DICT_FILE_CANDIDATES ; do
2343               if test -r $d/$f.hwm ; then
2344                       CRACKLIB_DICTPATH=$d/$f
2345                       break 2
2346               elif test -r $d/dict/$f.hwm ; then
2347                       CRACKLIB_DICTPATH=$d/dict/$f
2348                       break 2
2349               fi
2350       done
2351 done
2352 if test -z "$CRACKLIB_DICTPATH" ; then
2353       echo "$ac_t""none found" 1>&6
2354 else
2355       echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2356 fi
2357
2358
2359
2360 GCC_WARNINGS="-Wall -Wwrite-strings \
2361         -Wpointer-arith -Wcast-qual -Wcast-align \
2362         -Wstrict-prototypes -Wmissing-prototypes \
2363         -Wnested-externs -Winline -Wshadow"
2364
2365 if test "$GCC" = yes; then
2366         CC=gcc                          ; 
2367 ### May need per-OS attention
2368 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
2369         case $OS in
2370         linux)
2371                 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2372                 LD_D="gcc -shared -Xlinker -x"
2373                 WARNINGS="$GCC_WARNINGS"
2374                 PIC="-fPIC"
2375                 DYNTYPE=so
2376                 LD=ld                           
2377                 LD_L="$LD -x -shared"
2378                 RANLIB=ranlib
2379                 STRIP=strip
2380                 CC_STATIC="-Xlinker -export-dynamic"
2381                 ;;
2382         sunos)
2383                 OS_CFLAGS="-ansi -pedantic"
2384                 LD_D="gcc -shared -Xlinker -x"
2385                 WARNINGS="$GCC_WARNINGS"
2386                 PIC="-fPIC"
2387                 DYNTYPE=so
2388                 LD=ld                           
2389                 LD_L="$LD -x -shared"
2390                 RANLIB=ranlib
2391                 STRIP=strip
2392                 CC_STATIC="-Xlinker -export-dynamic"
2393                 ;;
2394         aix)
2395                 OS_CFLAGS=""
2396                 DYNTYPE=lo
2397                 LD=ld                           
2398                 LD_L=ld -bexpall -bM:SRE -bnoentry
2399                 LD_D="$LD_L"
2400                 RANLIB=ranlib
2401                 STRIP=strip
2402                 ;;
2403         *)
2404                 OS_CFLAGS=""
2405                 ;;
2406         esac
2407 else
2408 ###
2409 ### Non-gcc needs attention on per-OS basis
2410 ###
2411         case "$OS" in
2412         solaris)
2413             ### Support for Solaris-C
2414             OS_CFLAGS=""
2415             WARNINGS=""
2416             PIC="-K pic"
2417             LD=ld
2418             LD_D="cc -z text -G -R."
2419             LD_L="$LD_D"
2420             RANLIB=ranlib
2421             STRIP=strip
2422             CC_STATIC=
2423             ;;
2424         irix*)
2425             OSRELEASE=`uname -r`
2426             if test "$OSRELEASE" = 6.5; then
2427                 OS_CFLAGS=""
2428                 WARNINGS="-fullwarn"
2429                 PIC=                    #PIC code is default for IRIX
2430                 LD="cc -shared"         # modules friendly approach
2431                 LD_D="cc -shared"
2432                 LD_L="ld -G -z redlocsym"
2433                 RANLIB=echo
2434                 STRIP=strip
2435                 CC_STATIC=
2436             else
2437                 echo "IRIX prior to 6.5 not allowed for"
2438                 exit
2439             fi
2440             ;;
2441        *) echo "Native compiler on $OS is not yet supported"
2442                exit
2443             ;;
2444        esac
2445 fi
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2459 echo "configure:2460: checking whether byte ordering is bigendian" >&5
2460 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2461   echo $ac_n "(cached) $ac_c" 1>&6
2462 else
2463   ac_cv_c_bigendian=unknown
2464 # See if sys/param.h defines the BYTE_ORDER macro.
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <sys/types.h>
2469 #include <sys/param.h>
2470 int main() {
2471
2472 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2473  bogus endian macros
2474 #endif
2475 ; return 0; }
2476 EOF
2477 if { (eval echo configure:2478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2478   rm -rf conftest*
2479   # It does; now see whether it defined to BIG_ENDIAN or not.
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 #include <sys/types.h>
2484 #include <sys/param.h>
2485 int main() {
2486
2487 #if BYTE_ORDER != BIG_ENDIAN
2488  not big endian
2489 #endif
2490 ; return 0; }
2491 EOF
2492 if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493   rm -rf conftest*
2494   ac_cv_c_bigendian=yes
2495 else
2496   echo "configure: failed program was:" >&5
2497   cat conftest.$ac_ext >&5
2498   rm -rf conftest*
2499   ac_cv_c_bigendian=no
2500 fi
2501 rm -f conftest*
2502 else
2503   echo "configure: failed program was:" >&5
2504   cat conftest.$ac_ext >&5
2505 fi
2506 rm -f conftest*
2507 if test $ac_cv_c_bigendian = unknown; then
2508 if test "$cross_compiling" = yes; then
2509     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2510 else
2511   cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 main () {
2515   /* Are we little or big endian?  From Harbison&Steele.  */
2516   union
2517   {
2518     long l;
2519     char c[sizeof (long)];
2520   } u;
2521   u.l = 1;
2522   exit (u.c[sizeof (long) - 1] == 1);
2523 }
2524 EOF
2525 if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2526 then
2527   ac_cv_c_bigendian=no
2528 else
2529   echo "configure: failed program was:" >&5
2530   cat conftest.$ac_ext >&5
2531   rm -fr conftest*
2532   ac_cv_c_bigendian=yes
2533 fi
2534 rm -fr conftest*
2535 fi
2536
2537 fi
2538 fi
2539
2540 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2541 if test $ac_cv_c_bigendian = yes; then
2542   cat >> confdefs.h <<\EOF
2543 #define WORDS_BIGENDIAN 1
2544 EOF
2545
2546 fi
2547
2548 echo $ac_n "checking for working const""... $ac_c" 1>&6
2549 echo "configure:2550: checking for working const" >&5
2550 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2551   echo $ac_n "(cached) $ac_c" 1>&6
2552 else
2553   cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556
2557 int main() {
2558
2559 /* Ultrix mips cc rejects this.  */
2560 typedef int charset[2]; const charset x;
2561 /* SunOS 4.1.1 cc rejects this.  */
2562 char const *const *ccp;
2563 char **p;
2564 /* NEC SVR4.0.2 mips cc rejects this.  */
2565 struct point {int x, y;};
2566 static struct point const zero = {0,0};
2567 /* AIX XL C 1.02.0.0 rejects this.
2568    It does not let you subtract one const X* pointer from another in an arm
2569    of an if-expression whose if-part is not a constant expression */
2570 const char *g = "string";
2571 ccp = &g + (g ? g-g : 0);
2572 /* HPUX 7.0 cc rejects these. */
2573 ++ccp;
2574 p = (char**) ccp;
2575 ccp = (char const *const *) p;
2576 { /* SCO 3.2v4 cc rejects this.  */
2577   char *t;
2578   char const *s = 0 ? (char *) 0 : (char const *) 0;
2579
2580   *t++ = 0;
2581 }
2582 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2583   int x[] = {25, 17};
2584   const int *foo = &x[0];
2585   ++foo;
2586 }
2587 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2588   typedef const int *iptr;
2589   iptr p = 0;
2590   ++p;
2591 }
2592 { /* AIX XL C 1.02.0.0 rejects this saying
2593      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2594   struct s { int j; const int *ap[3]; };
2595   struct s *b; b->j = 5;
2596 }
2597 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2598   const int foo = 10;
2599 }
2600
2601 ; return 0; }
2602 EOF
2603 if { (eval echo configure:2604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2604   rm -rf conftest*
2605   ac_cv_c_const=yes
2606 else
2607   echo "configure: failed program was:" >&5
2608   cat conftest.$ac_ext >&5
2609   rm -rf conftest*
2610   ac_cv_c_const=no
2611 fi
2612 rm -f conftest*
2613 fi
2614
2615 echo "$ac_t""$ac_cv_c_const" 1>&6
2616 if test $ac_cv_c_const = no; then
2617   cat >> confdefs.h <<\EOF
2618 #define const 
2619 EOF
2620
2621 fi
2622
2623 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2624 echo "configure:2625: checking for uid_t in sys/types.h" >&5
2625 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2626   echo $ac_n "(cached) $ac_c" 1>&6
2627 else
2628   cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 #include <sys/types.h>
2632 EOF
2633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2634   egrep "uid_t" >/dev/null 2>&1; then
2635   rm -rf conftest*
2636   ac_cv_type_uid_t=yes
2637 else
2638   rm -rf conftest*
2639   ac_cv_type_uid_t=no
2640 fi
2641 rm -f conftest*
2642
2643 fi
2644
2645 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2646 if test $ac_cv_type_uid_t = no; then
2647   cat >> confdefs.h <<\EOF
2648 #define uid_t int
2649 EOF
2650
2651   cat >> confdefs.h <<\EOF
2652 #define gid_t int
2653 EOF
2654
2655 fi
2656
2657 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2658 echo "configure:2659: checking for off_t" >&5
2659 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2660   echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662   cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 #include <sys/types.h>
2666 #if STDC_HEADERS
2667 #include <stdlib.h>
2668 #include <stddef.h>
2669 #endif
2670 EOF
2671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2672   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2673   rm -rf conftest*
2674   ac_cv_type_off_t=yes
2675 else
2676   rm -rf conftest*
2677   ac_cv_type_off_t=no
2678 fi
2679 rm -f conftest*
2680
2681 fi
2682 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2683 if test $ac_cv_type_off_t = no; then
2684   cat >> confdefs.h <<\EOF
2685 #define off_t long
2686 EOF
2687
2688 fi
2689
2690 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2691 echo "configure:2692: checking for pid_t" >&5
2692 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2693   echo $ac_n "(cached) $ac_c" 1>&6
2694 else
2695   cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <sys/types.h>
2699 #if STDC_HEADERS
2700 #include <stdlib.h>
2701 #include <stddef.h>
2702 #endif
2703 EOF
2704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2705   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2706   rm -rf conftest*
2707   ac_cv_type_pid_t=yes
2708 else
2709   rm -rf conftest*
2710   ac_cv_type_pid_t=no
2711 fi
2712 rm -f conftest*
2713
2714 fi
2715 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2716 if test $ac_cv_type_pid_t = no; then
2717   cat >> confdefs.h <<\EOF
2718 #define pid_t int
2719 EOF
2720
2721 fi
2722
2723 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2724 echo "configure:2725: checking for size_t" >&5
2725 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2726   echo $ac_n "(cached) $ac_c" 1>&6
2727 else
2728   cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 #include <sys/types.h>
2732 #if STDC_HEADERS
2733 #include <stdlib.h>
2734 #include <stddef.h>
2735 #endif
2736 EOF
2737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2738   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2739   rm -rf conftest*
2740   ac_cv_type_size_t=yes
2741 else
2742   rm -rf conftest*
2743   ac_cv_type_size_t=no
2744 fi
2745 rm -f conftest*
2746
2747 fi
2748 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2749 if test $ac_cv_type_size_t = no; then
2750   cat >> confdefs.h <<\EOF
2751 #define size_t unsigned
2752 EOF
2753
2754 fi
2755
2756 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2757 echo "configure:2758: checking whether time.h and sys/time.h may both be included" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2759   echo $ac_n "(cached) $ac_c" 1>&6
2760 else
2761   cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <sys/types.h>
2765 #include <sys/time.h>
2766 #include <time.h>
2767 int main() {
2768 struct tm *tp;
2769 ; return 0; }
2770 EOF
2771 if { (eval echo configure:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2772   rm -rf conftest*
2773   ac_cv_header_time=yes
2774 else
2775   echo "configure: failed program was:" >&5
2776   cat conftest.$ac_ext >&5
2777   rm -rf conftest*
2778   ac_cv_header_time=no
2779 fi
2780 rm -f conftest*
2781 fi
2782
2783 echo "$ac_t""$ac_cv_header_time" 1>&6
2784 if test $ac_cv_header_time = yes; then
2785   cat >> confdefs.h <<\EOF
2786 #define TIME_WITH_SYS_TIME 1
2787 EOF
2788
2789 fi
2790
2791 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2792 echo "configure:2793: checking whether struct tm is in sys/time.h or time.h" >&5
2793 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2794   echo $ac_n "(cached) $ac_c" 1>&6
2795 else
2796   cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 #include <sys/types.h>
2800 #include <time.h>
2801 int main() {
2802 struct tm *tp; tp->tm_sec;
2803 ; return 0; }
2804 EOF
2805 if { (eval echo configure:2806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2806   rm -rf conftest*
2807   ac_cv_struct_tm=time.h
2808 else
2809   echo "configure: failed program was:" >&5
2810   cat conftest.$ac_ext >&5
2811   rm -rf conftest*
2812   ac_cv_struct_tm=sys/time.h
2813 fi
2814 rm -f conftest*
2815 fi
2816
2817 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2818 if test $ac_cv_struct_tm = sys/time.h; then
2819   cat >> confdefs.h <<\EOF
2820 #define TM_IN_SYS_TIME 1
2821 EOF
2822
2823 fi
2824
2825
2826 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2827 echo "configure:2828: checking type of array argument to getgroups" >&5
2828 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2829   echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831   if test "$cross_compiling" = yes; then
2832   ac_cv_type_getgroups=cross
2833 else
2834   cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837
2838 /* Thanks to Mike Rendell for this test.  */
2839 #include <sys/types.h>
2840 #define NGID 256
2841 #undef MAX
2842 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2843 main()
2844 {
2845   gid_t gidset[NGID];
2846   int i, n;
2847   union { gid_t gval; long lval; }  val;
2848
2849   val.lval = -1;
2850   for (i = 0; i < NGID; i++)
2851     gidset[i] = val.gval;
2852   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2853                  gidset);
2854   /* Exit non-zero if getgroups seems to require an array of ints.  This
2855      happens when gid_t is short but getgroups modifies an array of ints.  */
2856   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2857 }
2858
2859 EOF
2860 if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2861 then
2862     ac_cv_type_getgroups=gid_t
2863 else
2864   echo "configure: failed program was:" >&5
2865   cat conftest.$ac_ext >&5
2866   rm -fr conftest*
2867   ac_cv_type_getgroups=int
2868 fi
2869 rm -fr conftest*
2870 fi
2871
2872 if test $ac_cv_type_getgroups = cross; then
2873         cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 #include <unistd.h>
2877 EOF
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2880   rm -rf conftest*
2881   ac_cv_type_getgroups=gid_t
2882 else
2883   rm -rf conftest*
2884   ac_cv_type_getgroups=int
2885 fi
2886 rm -f conftest*
2887
2888 fi
2889 fi
2890
2891 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2892 cat >> confdefs.h <<EOF
2893 #define GETGROUPS_T $ac_cv_type_getgroups
2894 EOF
2895
2896
2897 if test $ac_cv_prog_gcc = yes; then
2898     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2899 echo "configure:2900: checking whether ${CC-cc} needs -traditional" >&5
2900 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2901   echo $ac_n "(cached) $ac_c" 1>&6
2902 else
2903     ac_pattern="Autoconf.*'x'"
2904   cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2907 #include <sgtty.h>
2908 Autoconf TIOCGETP
2909 EOF
2910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2911   egrep "$ac_pattern" >/dev/null 2>&1; then
2912   rm -rf conftest*
2913   ac_cv_prog_gcc_traditional=yes
2914 else
2915   rm -rf conftest*
2916   ac_cv_prog_gcc_traditional=no
2917 fi
2918 rm -f conftest*
2919
2920
2921   if test $ac_cv_prog_gcc_traditional = no; then
2922     cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2925 #include <termio.h>
2926 Autoconf TCGETA
2927 EOF
2928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2929   egrep "$ac_pattern" >/dev/null 2>&1; then
2930   rm -rf conftest*
2931   ac_cv_prog_gcc_traditional=yes
2932 fi
2933 rm -f conftest*
2934
2935   fi
2936 fi
2937
2938 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2939   if test $ac_cv_prog_gcc_traditional = yes; then
2940     CC="$CC -traditional"
2941   fi
2942 fi
2943
2944 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2945 echo "configure:2946: checking for 8-bit clean memcmp" >&5
2946 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2947   echo $ac_n "(cached) $ac_c" 1>&6
2948 else
2949   if test "$cross_compiling" = yes; then
2950   ac_cv_func_memcmp_clean=no
2951 else
2952   cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955
2956 main()
2957 {
2958   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2959   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2960 }
2961
2962 EOF
2963 if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2964 then
2965   ac_cv_func_memcmp_clean=yes
2966 else
2967   echo "configure: failed program was:" >&5
2968   cat conftest.$ac_ext >&5
2969   rm -fr conftest*
2970   ac_cv_func_memcmp_clean=no
2971 fi
2972 rm -fr conftest*
2973 fi
2974
2975 fi
2976
2977 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2978 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2979
2980 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2981 echo "configure:2982: checking for vprintf" >&5
2982 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2983   echo $ac_n "(cached) $ac_c" 1>&6
2984 else
2985   cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 /* System header to define __stub macros and hopefully few prototypes,
2989     which can conflict with char vprintf(); below.  */
2990 #include <assert.h>
2991 /* Override any gcc2 internal prototype to avoid an error.  */
2992 /* We use char because int might match the return type of a gcc2
2993     builtin and then its argument prototype would still apply.  */
2994 char vprintf();
2995
2996 int main() {
2997
2998 /* The GNU C library defines this for functions which it implements
2999     to always fail with ENOSYS.  Some functions are actually named
3000     something starting with __ and the normal name is an alias.  */
3001 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3002 choke me
3003 #else
3004 vprintf();
3005 #endif
3006
3007 ; return 0; }
3008 EOF
3009 if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3010   rm -rf conftest*
3011   eval "ac_cv_func_vprintf=yes"
3012 else
3013   echo "configure: failed program was:" >&5
3014   cat conftest.$ac_ext >&5
3015   rm -rf conftest*
3016   eval "ac_cv_func_vprintf=no"
3017 fi
3018 rm -f conftest*
3019 fi
3020
3021 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3022   echo "$ac_t""yes" 1>&6
3023   cat >> confdefs.h <<\EOF
3024 #define HAVE_VPRINTF 1
3025 EOF
3026
3027 else
3028   echo "$ac_t""no" 1>&6
3029 fi
3030
3031 if test "$ac_cv_func_vprintf" != yes; then
3032 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3033 echo "configure:3034: checking for _doprnt" >&5
3034 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3035   echo $ac_n "(cached) $ac_c" 1>&6
3036 else
3037   cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 /* System header to define __stub macros and hopefully few prototypes,
3041     which can conflict with char _doprnt(); below.  */
3042 #include <assert.h>
3043 /* Override any gcc2 internal prototype to avoid an error.  */
3044 /* We use char because int might match the return type of a gcc2
3045     builtin and then its argument prototype would still apply.  */
3046 char _doprnt();
3047
3048 int main() {
3049
3050 /* The GNU C library defines this for functions which it implements
3051     to always fail with ENOSYS.  Some functions are actually named
3052     something starting with __ and the normal name is an alias.  */
3053 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3054 choke me
3055 #else
3056 _doprnt();
3057 #endif
3058
3059 ; return 0; }
3060 EOF
3061 if { (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3062   rm -rf conftest*
3063   eval "ac_cv_func__doprnt=yes"
3064 else
3065   echo "configure: failed program was:" >&5
3066   cat conftest.$ac_ext >&5
3067   rm -rf conftest*
3068   eval "ac_cv_func__doprnt=no"
3069 fi
3070 rm -f conftest*
3071 fi
3072
3073 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3074   echo "$ac_t""yes" 1>&6
3075   cat >> confdefs.h <<\EOF
3076 #define HAVE_DOPRNT 1
3077 EOF
3078
3079 else
3080   echo "$ac_t""no" 1>&6
3081 fi
3082
3083 fi
3084
3085 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
3086 do
3087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_func" >&5
3089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3090   echo $ac_n "(cached) $ac_c" 1>&6
3091 else
3092   cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 /* System header to define __stub macros and hopefully few prototypes,
3096     which can conflict with char $ac_func(); below.  */
3097 #include <assert.h>
3098 /* Override any gcc2 internal prototype to avoid an error.  */
3099 /* We use char because int might match the return type of a gcc2
3100     builtin and then its argument prototype would still apply.  */
3101 char $ac_func();
3102
3103 int main() {
3104
3105 /* The GNU C library defines this for functions which it implements
3106     to always fail with ENOSYS.  Some functions are actually named
3107     something starting with __ and the normal name is an alias.  */
3108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3109 choke me
3110 #else
3111 $ac_func();
3112 #endif
3113
3114 ; return 0; }
3115 EOF
3116 if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3117   rm -rf conftest*
3118   eval "ac_cv_func_$ac_func=yes"
3119 else
3120   echo "configure: failed program was:" >&5
3121   cat conftest.$ac_ext >&5
3122   rm -rf conftest*
3123   eval "ac_cv_func_$ac_func=no"
3124 fi
3125 rm -f conftest*
3126 fi
3127
3128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3129   echo "$ac_t""yes" 1>&6
3130     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3131   cat >> confdefs.h <<EOF
3132 #define $ac_tr_func 1
3133 EOF
3134  
3135 else
3136   echo "$ac_t""no" 1>&6
3137 fi
3138 done
3139
3140
3141 for ac_func in getpwnam_r getgrnam_r
3142 do
3143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_func" >&5
3145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3146   echo $ac_n "(cached) $ac_c" 1>&6
3147 else
3148   cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 /* System header to define __stub macros and hopefully few prototypes,
3152     which can conflict with char $ac_func(); below.  */
3153 #include <assert.h>
3154 /* Override any gcc2 internal prototype to avoid an error.  */
3155 /* We use char because int might match the return type of a gcc2
3156     builtin and then its argument prototype would still apply.  */
3157 char $ac_func();
3158
3159 int main() {
3160
3161 /* The GNU C library defines this for functions which it implements
3162     to always fail with ENOSYS.  Some functions are actually named
3163     something starting with __ and the normal name is an alias.  */
3164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3165 choke me
3166 #else
3167 $ac_func();
3168 #endif
3169
3170 ; return 0; }
3171 EOF
3172 if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3173   rm -rf conftest*
3174   eval "ac_cv_func_$ac_func=yes"
3175 else
3176   echo "configure: failed program was:" >&5
3177   cat conftest.$ac_ext >&5
3178   rm -rf conftest*
3179   eval "ac_cv_func_$ac_func=no"
3180 fi
3181 rm -f conftest*
3182 fi
3183
3184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3185   echo "$ac_t""yes" 1>&6
3186     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3187   cat >> confdefs.h <<EOF
3188 #define $ac_tr_func 1
3189 EOF
3190  
3191 else
3192   echo "$ac_t""no" 1>&6
3193 fi
3194 done
3195
3196
3197 # Extract the first word of "sgml2txt", so it can be a program name with args.
3198 set dummy sgml2txt; ac_word=$2
3199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_word" >&5
3201 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
3202   echo $ac_n "(cached) $ac_c" 1>&6
3203 else
3204   if test -n "$HAVE_SGML2TXT"; then
3205   ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
3206 else
3207   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3208   ac_dummy="$PATH"
3209   for ac_dir in $ac_dummy; do
3210     test -z "$ac_dir" && ac_dir=.
3211     if test -f $ac_dir/$ac_word; then
3212       ac_cv_prog_HAVE_SGML2TXT="yes"
3213       break
3214     fi
3215   done
3216   IFS="$ac_save_ifs"
3217   test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
3218 fi
3219 fi
3220 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
3221 if test -n "$HAVE_SGML2TXT"; then
3222   echo "$ac_t""$HAVE_SGML2TXT" 1>&6
3223 else
3224   echo "$ac_t""no" 1>&6
3225 fi
3226
3227 # Extract the first word of "sgml2html", so it can be a program name with args.
3228 set dummy sgml2html; ac_word=$2
3229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_word" >&5
3231 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
3232   echo $ac_n "(cached) $ac_c" 1>&6
3233 else
3234   if test -n "$HAVE_SGML2HTML"; then
3235   ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
3236 else
3237   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3238   ac_dummy="$PATH"
3239   for ac_dir in $ac_dummy; do
3240     test -z "$ac_dir" && ac_dir=.
3241     if test -f $ac_dir/$ac_word; then
3242       ac_cv_prog_HAVE_SGML2HTML="yes"
3243       break
3244     fi
3245   done
3246   IFS="$ac_save_ifs"
3247   test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
3248 fi
3249 fi
3250 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
3251 if test -n "$HAVE_SGML2HTML"; then
3252   echo "$ac_t""$HAVE_SGML2HTML" 1>&6
3253 else
3254   echo "$ac_t""no" 1>&6
3255 fi
3256
3257 # Extract the first word of "sgml2latex", so it can be a program name with args.
3258 set dummy sgml2latex; ac_word=$2
3259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3260 echo "configure:3261: checking for $ac_word" >&5
3261 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
3262   echo $ac_n "(cached) $ac_c" 1>&6
3263 else
3264   if test -n "$HAVE_SGML2LATEX"; then
3265   ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3266 else
3267   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3268   ac_dummy="$PATH"
3269   for ac_dir in $ac_dummy; do
3270     test -z "$ac_dir" && ac_dir=.
3271     if test -f $ac_dir/$ac_word; then
3272       ac_cv_prog_HAVE_SGML2LATEX="yes"
3273       break
3274     fi
3275   done
3276   IFS="$ac_save_ifs"
3277   test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3278 fi
3279 fi
3280 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3281 if test -n "$HAVE_SGML2LATEX"; then
3282   echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3283 else
3284   echo "$ac_t""no" 1>&6
3285 fi
3286
3287 if test $HAVE_SGML2LATEX = "yes" ; then
3288   if sgml2latex -h | grep -e --paper | grep  ' -p ' > /dev/null ; then
3289     PSER="sgml2latex -o ps"
3290   else
3291     PSER="sgml2latex -p"
3292   fi
3293 else
3294   # Extract the first word of "sgml2ps", so it can be a program name with args.
3295 set dummy sgml2ps; ac_word=$2
3296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_word" >&5
3298 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3299   echo $ac_n "(cached) $ac_c" 1>&6
3300 else
3301   if test -n "$HAVE_SGML2PS"; then
3302   ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3303 else
3304   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3305   ac_dummy="$PATH"
3306   for ac_dir in $ac_dummy; do
3307     test -z "$ac_dir" && ac_dir=.
3308     if test -f $ac_dir/$ac_word; then
3309       ac_cv_prog_HAVE_SGML2PS="yes"
3310       break
3311     fi
3312   done
3313   IFS="$ac_save_ifs"
3314   test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3315 fi
3316 fi
3317 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3318 if test -n "$HAVE_SGML2PS"; then
3319   echo "$ac_t""$HAVE_SGML2PS" 1>&6
3320 else
3321   echo "$ac_t""no" 1>&6
3322 fi
3323
3324   if test $HAVE_SGML2PS = yes ; then
3325     PSER="sgml2ps"
3326   fi
3327 fi
3328
3329
3330 trap '' 1 2 15
3331 cat > confcache <<\EOF
3332 # This file is a shell script that caches the results of configure
3333 # tests run on this system so they can be shared between configure
3334 # scripts and configure runs.  It is not useful on other systems.
3335 # If it contains results you don't want to keep, you may remove or edit it.
3336 #
3337 # By default, configure uses ./config.cache as the cache file,
3338 # creating it if it does not exist already.  You can give configure
3339 # the --cache-file=FILE option to use a different cache file; that is
3340 # what configure does when it calls configure scripts in
3341 # subdirectories, so they share the cache.
3342 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3343 # config.status only pays attention to the cache file if you give it the
3344 # --recheck option to rerun configure.
3345 #
3346 EOF
3347 # The following way of writing the cache mishandles newlines in values,
3348 # but we know of no workaround that is simple, portable, and efficient.
3349 # So, don't put newlines in cache variables' values.
3350 # Ultrix sh set writes to stderr and can't be redirected directly,
3351 # and sets the high bit in the cache file unless we assign to the vars.
3352 (set) 2>&1 |
3353   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3354   *ac_space=\ *)
3355     # `set' does not quote correctly, so add quotes (double-quote substitution
3356     # turns \\\\ into \\, and sed turns \\ into \).
3357     sed -n \
3358       -e "s/'/'\\\\''/g" \
3359       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3360     ;;
3361   *)
3362     # `set' quotes correctly as required by POSIX, so do not add quotes.
3363     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3364     ;;
3365   esac >> confcache
3366 if cmp -s $cache_file confcache; then
3367   :
3368 else
3369   if test -w $cache_file; then
3370     echo "updating cache $cache_file"
3371     cat confcache > $cache_file
3372   else
3373     echo "not updating unwritable cache $cache_file"
3374   fi
3375 fi
3376 rm -f confcache
3377
3378 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3379
3380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3381 # Let make expand exec_prefix.
3382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3383
3384 # Any assignment to VPATH causes Sun make to only execute
3385 # the first set of double-colon rules, so remove it if not needed.
3386 # If there is a colon in the path, we need to keep it.
3387 if test "x$srcdir" = x.; then
3388   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3389 fi
3390
3391 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3392
3393 DEFS=-DHAVE_CONFIG_H
3394
3395 # Without the "./", some shells look in PATH for config.status.
3396 : ${CONFIG_STATUS=./config.status}
3397
3398 echo creating $CONFIG_STATUS
3399 rm -f $CONFIG_STATUS
3400 cat > $CONFIG_STATUS <<EOF
3401 #! /bin/sh
3402 # Generated automatically by configure.
3403 # Run this file to recreate the current configuration.
3404 # This directory was configured as follows,
3405 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3406 #
3407 # $0 $ac_configure_args
3408 #
3409 # Compiler output produced by configure, useful for debugging
3410 # configure, is in ./config.log if it exists.
3411
3412 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3413 for ac_option
3414 do
3415   case "\$ac_option" in
3416   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3417     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3418     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3419   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3420     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3421     exit 0 ;;
3422   -help | --help | --hel | --he | --h)
3423     echo "\$ac_cs_usage"; exit 0 ;;
3424   *) echo "\$ac_cs_usage"; exit 1 ;;
3425   esac
3426 done
3427
3428 ac_given_srcdir=$srcdir
3429
3430 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3431 EOF
3432 cat >> $CONFIG_STATUS <<EOF
3433
3434 # Protect against being on the right side of a sed subst in config.status.
3435 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3436  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3437 $ac_vpsub
3438 $extrasub
3439 s%@SHELL@%$SHELL%g
3440 s%@CFLAGS@%$CFLAGS%g
3441 s%@CPPFLAGS@%$CPPFLAGS%g
3442 s%@CXXFLAGS@%$CXXFLAGS%g
3443 s%@FFLAGS@%$FFLAGS%g
3444 s%@DEFS@%$DEFS%g
3445 s%@LDFLAGS@%$LDFLAGS%g
3446 s%@LIBS@%$LIBS%g
3447 s%@exec_prefix@%$exec_prefix%g
3448 s%@prefix@%$prefix%g
3449 s%@program_transform_name@%$program_transform_name%g
3450 s%@bindir@%$bindir%g
3451 s%@sbindir@%$sbindir%g
3452 s%@libexecdir@%$libexecdir%g
3453 s%@datadir@%$datadir%g
3454 s%@sysconfdir@%$sysconfdir%g
3455 s%@sharedstatedir@%$sharedstatedir%g
3456 s%@localstatedir@%$localstatedir%g
3457 s%@libdir@%$libdir%g
3458 s%@includedir@%$includedir%g
3459 s%@oldincludedir@%$oldincludedir%g
3460 s%@infodir@%$infodir%g
3461 s%@mandir@%$mandir%g
3462 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3463 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3464 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3465 s%@OS@%$OS%g
3466 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3467 s%@MKDIR@%$MKDIR%g
3468 s%@SHLIBMODE@%$SHLIBMODE%g
3469 s%@USESONAME@%$USESONAME%g
3470 s%@SOSWITCH@%$SOSWITCH%g
3471 s%@NEEDSONAME@%$NEEDSONAME%g
3472 s%@LDCONFIG@%$LDCONFIG%g
3473 s%@INSTALL@%$INSTALL%g
3474 s%@CC@%$CC%g
3475 s%@YACC@%$YACC%g
3476 s%@LEX@%$LEX%g
3477 s%@LEXLIB@%$LEXLIB%g
3478 s%@LN_S@%$LN_S%g
3479 s%@SET_MAKE@%$SET_MAKE%g
3480 s%@WITH_DEBUG@%$WITH_DEBUG%g
3481 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3482 s%@FAKEROOT@%$FAKEROOT%g
3483 s%@SECUREDIR@%$SECUREDIR%g
3484 s%@SCONFIGDIR@%$SCONFIGDIR%g
3485 s%@SUPLEMENTED@%$SUPLEMENTED%g
3486 s%@INCLUDEDIR@%$INCLUDEDIR%g
3487 s%@DOCDIR@%$DOCDIR%g
3488 s%@MANDIR@%$MANDIR%g
3489 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3490 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3491 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3492 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3493 s%@DYNAMIC@%$DYNAMIC%g
3494 s%@STATIC@%$STATIC%g
3495 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3496 s%@CPP@%$CPP%g
3497 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3498 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3499 s%@LIBDL@%$LIBDL%g
3500 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3501 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3502 s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
3503 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3504 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3505 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3506 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3507 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3508 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3509 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3510 s%@DYNTYPE@%$DYNTYPE%g
3511 s%@OS_CFLAGS@%$OS_CFLAGS%g
3512 s%@WARNINGS@%$WARNINGS%g
3513 s%@PIC@%$PIC%g
3514 s%@LD@%$LD%g
3515 s%@LD_D@%$LD_D%g
3516 s%@LD_L@%$LD_L%g
3517 s%@RANLIB@%$RANLIB%g
3518 s%@STRIP@%$STRIP%g
3519 s%@CC_STATIC@%$CC_STATIC%g
3520 s%@LIBOBJS@%$LIBOBJS%g
3521 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3522 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3523 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3524 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3525 s%@PSER@%$PSER%g
3526
3527 CEOF
3528 EOF
3529
3530 cat >> $CONFIG_STATUS <<\EOF
3531
3532 # Split the substitutions into bite-sized pieces for seds with
3533 # small command number limits, like on Digital OSF/1 and HP-UX.
3534 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3535 ac_file=1 # Number of current file.
3536 ac_beg=1 # First line for current file.
3537 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3538 ac_more_lines=:
3539 ac_sed_cmds=""
3540 while $ac_more_lines; do
3541   if test $ac_beg -gt 1; then
3542     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3543   else
3544     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3545   fi
3546   if test ! -s conftest.s$ac_file; then
3547     ac_more_lines=false
3548     rm -f conftest.s$ac_file
3549   else
3550     if test -z "$ac_sed_cmds"; then
3551       ac_sed_cmds="sed -f conftest.s$ac_file"
3552     else
3553       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3554     fi
3555     ac_file=`expr $ac_file + 1`
3556     ac_beg=$ac_end
3557     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3558   fi
3559 done
3560 if test -z "$ac_sed_cmds"; then
3561   ac_sed_cmds=cat
3562 fi
3563 EOF
3564
3565 cat >> $CONFIG_STATUS <<EOF
3566
3567 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3568 EOF
3569 cat >> $CONFIG_STATUS <<\EOF
3570 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3571   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3572   case "$ac_file" in
3573   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3574        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3575   *) ac_file_in="${ac_file}.in" ;;
3576   esac
3577
3578   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3579
3580   # Remove last slash and all that follows it.  Not all systems have dirname.
3581   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3582   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3583     # The file is in a subdirectory.
3584     test ! -d "$ac_dir" && mkdir "$ac_dir"
3585     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3586     # A "../" for each directory in $ac_dir_suffix.
3587     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3588   else
3589     ac_dir_suffix= ac_dots=
3590   fi
3591
3592   case "$ac_given_srcdir" in
3593   .)  srcdir=.
3594       if test -z "$ac_dots"; then top_srcdir=.
3595       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3596   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3597   *) # Relative path.
3598     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3599     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3600   esac
3601
3602
3603   echo creating "$ac_file"
3604   rm -f "$ac_file"
3605   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3606   case "$ac_file" in
3607   *Makefile*) ac_comsub="1i\\
3608 # $configure_input" ;;
3609   *) ac_comsub= ;;
3610   esac
3611
3612   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3613   sed -e "$ac_comsub
3614 s%@configure_input@%$configure_input%g
3615 s%@srcdir@%$srcdir%g
3616 s%@top_srcdir@%$top_srcdir%g
3617 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3618 fi; done
3619 rm -f conftest.s*
3620
3621 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3622 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3623 #
3624 # ac_d sets the value in "#define NAME VALUE" lines.
3625 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3626 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3627 ac_dC='\3'
3628 ac_dD='%g'
3629 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3630 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3631 ac_uB='\([      ]\)%\1#\2define\3'
3632 ac_uC=' '
3633 ac_uD='\4%g'
3634 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3635 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3636 ac_eB='$%\1#\2define\3'
3637 ac_eC=' '
3638 ac_eD='%g'
3639
3640 if test "${CONFIG_HEADERS+set}" != set; then
3641 EOF
3642 cat >> $CONFIG_STATUS <<EOF
3643   CONFIG_HEADERS="_pam_aconf.h"
3644 EOF
3645 cat >> $CONFIG_STATUS <<\EOF
3646 fi
3647 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3648   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3649   case "$ac_file" in
3650   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3651        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3652   *) ac_file_in="${ac_file}.in" ;;
3653   esac
3654
3655   echo creating $ac_file
3656
3657   rm -f conftest.frag conftest.in conftest.out
3658   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3659   cat $ac_file_inputs > conftest.in
3660
3661 EOF
3662
3663 # Transform confdefs.h into a sed script conftest.vals that substitutes
3664 # the proper values into config.h.in to produce config.h.  And first:
3665 # Protect against being on the right side of a sed subst in config.status.
3666 # Protect against being in an unquoted here document in config.status.
3667 rm -f conftest.vals
3668 cat > conftest.hdr <<\EOF
3669 s/[\\&%]/\\&/g
3670 s%[\\$`]%\\&%g
3671 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3672 s%ac_d%ac_u%gp
3673 s%ac_u%ac_e%gp
3674 EOF
3675 sed -n -f conftest.hdr confdefs.h > conftest.vals
3676 rm -f conftest.hdr
3677
3678 # This sed command replaces #undef with comments.  This is necessary, for
3679 # example, in the case of _POSIX_SOURCE, which is predefined and required
3680 # on some systems where configure will not decide to define it.
3681 cat >> conftest.vals <<\EOF
3682 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3683 EOF
3684
3685 # Break up conftest.vals because some shells have a limit on
3686 # the size of here documents, and old seds have small limits too.
3687
3688 rm -f conftest.tail
3689 while :
3690 do
3691   ac_lines=`grep -c . conftest.vals`
3692   # grep -c gives empty output for an empty file on some AIX systems.
3693   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3694   # Write a limited-size here document to conftest.frag.
3695   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3696   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3697   echo 'CEOF
3698   sed -f conftest.frag conftest.in > conftest.out
3699   rm -f conftest.in
3700   mv conftest.out conftest.in
3701 ' >> $CONFIG_STATUS
3702   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3703   rm -f conftest.vals
3704   mv conftest.tail conftest.vals
3705 done
3706 rm -f conftest.vals
3707
3708 cat >> $CONFIG_STATUS <<\EOF
3709   rm -f conftest.frag conftest.h
3710   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3711   cat conftest.in >> conftest.h
3712   rm -f conftest.in
3713   if cmp -s $ac_file conftest.h 2>/dev/null; then
3714     echo "$ac_file is unchanged"
3715     rm -f conftest.h
3716   else
3717     # Remove last slash and all that follows it.  Not all systems have dirname.
3718       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3719       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3720       # The file is in a subdirectory.
3721       test ! -d "$ac_dir" && mkdir "$ac_dir"
3722     fi
3723     rm -f $ac_file
3724     mv conftest.h $ac_file
3725   fi
3726 fi; done
3727
3728 EOF
3729 cat >> $CONFIG_STATUS <<EOF
3730
3731 EOF
3732 cat >> $CONFIG_STATUS <<\EOF
3733
3734 exit 0
3735 EOF
3736 chmod +x $CONFIG_STATUS
3737 rm -fr confdefs* $ac_clean_files
3738 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3739