]> granicus.if.org Git - linux-pam/blob - configure
Relevant BUGIDs: 872943
[linux-pam] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="conf/pam_conv1/pam_conv.y"
275 ac_default_prefix=
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBPAM_VERSION_MAJOR LIBPAM_VERSION_MINOR LOCALSRCDIR LOCALOBJDIR OS CONF_CFLAGS MKDIR SHLIBMODE MANMODE USESONAME SOSWITCH NEEDSONAME LDCONFIG CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE WITH_DEBUG WITH_MEMORY_DEBUG WITH_LIBDEBUG FAKEROOT SECUREDIR SCONFIGDIR SUPLEMENTED INCLUDEDIR DOCDIR MANDIR WITH_PAMLOCKING PAM_READ_BOTH_CONFS STATIC_LIBPAM DYNAMIC_LIBPAM DYNAMIC STATIC WITH_LCKPWDF CPP EGREP PAM_NEEDS_LIBC HAVE_LCKPWDF LIBDL HAVE_LIBCRACK HAVE_LIBCRYPT HAVE_LIBUTIL HAVE_LIBNDBM HAVE_LIBDB HAVE_LIBFL HAVE_LIBNSL HAVE_LIBPWDB HAVE_LIBFLEX HAVE_LIBLEX HAVE_NDBM_H CRACKLIB_DICTPATH DYNTYPE OS_CFLAGS WARNINGS PIC LD LD_D LD_L RANLIB STRIP CC_STATIC LIBOBJS HAVE_SGML2TXT HAVE_SGML2HTML HAVE_SGML2LATEX HAVE_PS2PDF HAVE_SGML2PS PSER PS2PDF LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --enable-debug           specify you are building with debugging on
845   --enable-memory-debug    specify you want every malloc etc. call tracked
846   --enable-libdebug        specify you are building debugging libraries
847   --enable-fakeroot=<path to packaging directory>
848   --enable-securedir=<path to location of PAMs> default \$libdir/security
849   --enable-isadir=<path to arch-specific module files> default ../../\`basename \$libdir\`/security
850   --enable-sconfigdir=<path to module conf files> default \$sysconfdir/security
851   --enable-suplementedir=<path to module helper binaries> default \$sbindir
852   --enable-includedir=<path to include location> - where to put <security>
853   --enable-docdir=<path to store documentation in - /usr/share/doc/pam>
854   --enable-mandir=<path to store manuals in - /usr/share/man>
855   --enable-pamlocking      configure libpam to observe a global authentication lock
856   --enable-uglyhack        configure libpam to try to honor old pam_strerror syntax
857   --enable-read-both-confs  read both /etc/pam.d and /etc/pam.conf files
858   --enable-static-libpam   build a libpam.a library
859   --disable-dynamic-libpam do not build a shared libpam library
860   --enable-static-modules  do not make the modules dynamically loadable
861   --disable-lckpwdf do not use the lckpwdf function
862
863 Optional Packages:
864   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866   --with-mailspool         path to mail spool directory
867                            default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail
868
869 Some influential environment variables:
870   CC          C compiler command
871   CFLAGS      C compiler flags
872   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
873               nonstandard directory <lib dir>
874   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
875               headers in a nonstandard directory <include dir>
876   CPP         C preprocessor
877
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
880
881 _ACEOF
882 fi
883
884 if test "$ac_init_help" = "recursive"; then
885   # If there are subdirs, report their specific --help.
886   ac_popdir=`pwd`
887   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888     test -d $ac_dir || continue
889     ac_builddir=.
890
891 if test "$ac_dir" != .; then
892   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893   # A "../" for each directory in $ac_dir_suffix.
894   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 else
896   ac_dir_suffix= ac_top_builddir=
897 fi
898
899 case $srcdir in
900   .)  # No --srcdir option.  We are building in place.
901     ac_srcdir=.
902     if test -z "$ac_top_builddir"; then
903        ac_top_srcdir=.
904     else
905        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906     fi ;;
907   [\\/]* | ?:[\\/]* )  # Absolute path.
908     ac_srcdir=$srcdir$ac_dir_suffix;
909     ac_top_srcdir=$srcdir ;;
910   *) # Relative path.
911     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912     ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 esac
914
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
917 case `pwd` in
918 .) ac_abs_builddir="$ac_dir";;
919 *)
920   case "$ac_dir" in
921   .) ac_abs_builddir=`pwd`;;
922   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923   *) ac_abs_builddir=`pwd`/"$ac_dir";;
924   esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *)
929   case ${ac_top_builddir}. in
930   .) ac_abs_top_builddir=$ac_abs_builddir;;
931   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
937 *)
938   case $ac_srcdir in
939   .) ac_abs_srcdir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942   esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *)
947   case $ac_top_srcdir in
948   .) ac_abs_top_srcdir=$ac_abs_builddir;;
949   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951   esac;;
952 esac
953
954     cd $ac_dir
955     # Check for guested configure; otherwise get Cygnus style configure.
956     if test -f $ac_srcdir/configure.gnu; then
957       echo
958       $SHELL $ac_srcdir/configure.gnu  --help=recursive
959     elif test -f $ac_srcdir/configure; then
960       echo
961       $SHELL $ac_srcdir/configure  --help=recursive
962     elif test -f $ac_srcdir/configure.ac ||
963            test -f $ac_srcdir/configure.in; then
964       echo
965       $ac_configure --help
966     else
967       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968     fi
969     cd $ac_popdir
970   done
971 fi
972
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
975   cat <<\_ACEOF
976
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
980 _ACEOF
981   exit 0
982 fi
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
987
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59.  Invocation command line was
990
991   $ $0 $@
992
993 _ACEOF
994 {
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
999
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1008
1009 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1010 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1013 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1014 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1015 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1016
1017 _ASUNAME
1018
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1021 do
1022   IFS=$as_save_IFS
1023   test -z "$as_dir" && as_dir=.
1024   echo "PATH: $as_dir"
1025 done
1026
1027 } >&5
1028
1029 cat >&5 <<_ACEOF
1030
1031
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1035
1036 _ACEOF
1037
1038
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_configure_args=
1045 ac_configure_args0=
1046 ac_configure_args1=
1047 ac_sep=
1048 ac_must_keep_next=false
1049 for ac_pass in 1 2
1050 do
1051   for ac_arg
1052   do
1053     case $ac_arg in
1054     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056     | -silent | --silent | --silen | --sile | --sil)
1057       continue ;;
1058     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060     esac
1061     case $ac_pass in
1062     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063     2)
1064       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065       if test $ac_must_keep_next = true; then
1066         ac_must_keep_next=false # Got value, back to normal.
1067       else
1068         case $ac_arg in
1069           *=* | --config-cache | -C | -disable-* | --disable-* \
1070           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072           | -with-* | --with-* | -without-* | --without-* | --x)
1073             case "$ac_configure_args0 " in
1074               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075             esac
1076             ;;
1077           -* ) ac_must_keep_next=true ;;
1078         esac
1079       fi
1080       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081       # Get rid of the leading space.
1082       ac_sep=" "
1083       ;;
1084     esac
1085   done
1086 done
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log.  We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096   # Save into config.log some information that might help in debugging.
1097   {
1098     echo
1099
1100     cat <<\_ASBOX
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1104 _ASBOX
1105     echo
1106     # The following way of writing the cache mishandles newlines in values,
1107 {
1108   (set) 2>&1 |
1109     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110     *ac_space=\ *)
1111       sed -n \
1112         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114       ;;
1115     *)
1116       sed -n \
1117         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118       ;;
1119     esac;
1120 }
1121     echo
1122
1123     cat <<\_ASBOX
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1127 _ASBOX
1128     echo
1129     for ac_var in $ac_subst_vars
1130     do
1131       eval ac_val=$`echo $ac_var`
1132       echo "$ac_var='"'"'$ac_val'"'"'"
1133     done | sort
1134     echo
1135
1136     if test -n "$ac_subst_files"; then
1137       cat <<\_ASBOX
1138 ## ------------- ##
1139 ## Output files. ##
1140 ## ------------- ##
1141 _ASBOX
1142       echo
1143       for ac_var in $ac_subst_files
1144       do
1145         eval ac_val=$`echo $ac_var`
1146         echo "$ac_var='"'"'$ac_val'"'"'"
1147       done | sort
1148       echo
1149     fi
1150
1151     if test -s confdefs.h; then
1152       cat <<\_ASBOX
1153 ## ----------- ##
1154 ## confdefs.h. ##
1155 ## ----------- ##
1156 _ASBOX
1157       echo
1158       sed "/^$/d" confdefs.h | sort
1159       echo
1160     fi
1161     test "$ac_signal" != 0 &&
1162       echo "$as_me: caught signal $ac_signal"
1163     echo "$as_me: exit $exit_status"
1164   } >&5
1165   rm -f core *.core &&
1166   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167     exit $exit_status
1168      ' 0
1169 for ac_signal in 1 2 13 15; do
1170   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 done
1172 ac_signal=0
1173
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 echo >confdefs.h
1178
1179 # Predefined preprocessor variables.
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 _ACEOF
1204
1205
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209   if test "x$prefix" != xNONE; then
1210     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211   else
1212     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213   fi
1214 fi
1215 for ac_site_file in $CONFIG_SITE; do
1216   if test -r "$ac_site_file"; then
1217     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219     sed 's/^/| /' "$ac_site_file" >&5
1220     . "$ac_site_file"
1221   fi
1222 done
1223
1224 if test -r "$cache_file"; then
1225   # Some versions of bash will fail to source /dev/null (special
1226   # files actually), so we avoid doing that.
1227   if test -f "$cache_file"; then
1228     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1230     case $cache_file in
1231       [\\/]* | ?:[\\/]* ) . $cache_file;;
1232       *)                      . ./$cache_file;;
1233     esac
1234   fi
1235 else
1236   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1238   >$cache_file
1239 fi
1240
1241 # Check that the precious variables saved in the cache have kept the same
1242 # value.
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247   eval ac_new_set=\$ac_env_${ac_var}_set
1248   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249   eval ac_new_val="\$ac_env_${ac_var}_value"
1250   case $ac_old_set,$ac_new_set in
1251     set,)
1252       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254       ac_cache_corrupted=: ;;
1255     ,set)
1256       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258       ac_cache_corrupted=: ;;
1259     ,);;
1260     *)
1261       if test "x$ac_old_val" != "x$ac_new_val"; then
1262         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1265 echo "$as_me:   former value:  $ac_old_val" >&2;}
1266         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1267 echo "$as_me:   current value: $ac_new_val" >&2;}
1268         ac_cache_corrupted=:
1269       fi;;
1270   esac
1271   # Pass precious variables to config.status.
1272   if test "$ac_new_set" = set; then
1273     case $ac_new_val in
1274     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276     *) ac_arg=$ac_var=$ac_new_val ;;
1277     esac
1278     case " $ac_configure_args " in
1279       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1280       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281     esac
1282   fi
1283 done
1284 if $ac_cache_corrupted; then
1285   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289    { (exit 1); exit 1; }; }
1290 fi
1291
1292 ac_ext=c
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317           ac_config_headers="$ac_config_headers _pam_aconf.h"
1318
1319
1320
1321 LIBPAM_VERSION_MAJOR=0
1322 LIBPAM_VERSION_MINOR=79
1323
1324
1325
1326 cat >>confdefs.h <<\_ACEOF
1327 #define LIBPAM_VERSION_MAJOR 1
1328 _ACEOF
1329
1330 cat >>confdefs.h <<\_ACEOF
1331 #define LIBPAM_VERSION_MINOR 1
1332 _ACEOF
1333
1334
1335
1336
1337
1338 LOCALSRCDIR=`/bin/pwd`         ;
1339 LOCALOBJDIR=`/bin/pwd`         ;
1340 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1341
1342
1343
1344 CONF_CFLAGS=                    ;
1345 MKDIR="mkdir -p"                ;
1346
1347 SHLIBMODE=755                   ;
1348 MANMODE=644                     ;
1349
1350 USESONAME=yes                   ;
1351 SOSWITCH="-Wl,-soname -Wl,"     ;
1352 NEEDSONAME=yes                  ;
1353 LDCONFIG=/sbin/ldconfig         ;
1354
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360 if test -n "$ac_tool_prefix"; then
1361   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_CC+set}" = set; then
1366   echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368   if test -n "$CC"; then
1369   ac_cv_prog_CC="$CC" # Let the user override the test.
1370 else
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1373 do
1374   IFS=$as_save_IFS
1375   test -z "$as_dir" && as_dir=.
1376   for ac_exec_ext in '' $ac_executable_extensions; do
1377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380     break 2
1381   fi
1382 done
1383 done
1384
1385 fi
1386 fi
1387 CC=$ac_cv_prog_CC
1388 if test -n "$CC"; then
1389   echo "$as_me:$LINENO: result: $CC" >&5
1390 echo "${ECHO_T}$CC" >&6
1391 else
1392   echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1394 fi
1395
1396 fi
1397 if test -z "$ac_cv_prog_CC"; then
1398   ac_ct_CC=$CC
1399   # Extract the first word of "gcc", so it can be a program name with args.
1400 set dummy gcc; ac_word=$2
1401 echo "$as_me:$LINENO: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   if test -n "$ac_ct_CC"; then
1407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1408 else
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410 for as_dir in $PATH
1411 do
1412   IFS=$as_save_IFS
1413   test -z "$as_dir" && as_dir=.
1414   for ac_exec_ext in '' $ac_executable_extensions; do
1415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416     ac_cv_prog_ac_ct_CC="gcc"
1417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418     break 2
1419   fi
1420 done
1421 done
1422
1423 fi
1424 fi
1425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426 if test -n "$ac_ct_CC"; then
1427   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1428 echo "${ECHO_T}$ac_ct_CC" >&6
1429 else
1430   echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1432 fi
1433
1434   CC=$ac_ct_CC
1435 else
1436   CC="$ac_cv_prog_CC"
1437 fi
1438
1439 if test -z "$CC"; then
1440   if test -n "$ac_tool_prefix"; then
1441   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446   echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448   if test -n "$CC"; then
1449   ac_cv_prog_CC="$CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1453 do
1454   IFS=$as_save_IFS
1455   test -z "$as_dir" && as_dir=.
1456   for ac_exec_ext in '' $ac_executable_extensions; do
1457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458     ac_cv_prog_CC="${ac_tool_prefix}cc"
1459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460     break 2
1461   fi
1462 done
1463 done
1464
1465 fi
1466 fi
1467 CC=$ac_cv_prog_CC
1468 if test -n "$CC"; then
1469   echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1471 else
1472   echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1474 fi
1475
1476 fi
1477 if test -z "$ac_cv_prog_CC"; then
1478   ac_ct_CC=$CC
1479   # Extract the first word of "cc", so it can be a program name with args.
1480 set dummy cc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   if test -n "$ac_ct_CC"; then
1487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   for ac_exec_ext in '' $ac_executable_extensions; do
1495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496     ac_cv_prog_ac_ct_CC="cc"
1497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498     break 2
1499   fi
1500 done
1501 done
1502
1503 fi
1504 fi
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1509 else
1510   echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1512 fi
1513
1514   CC=$ac_ct_CC
1515 else
1516   CC="$ac_cv_prog_CC"
1517 fi
1518
1519 fi
1520 if test -z "$CC"; then
1521   # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   if test -n "$CC"; then
1529   ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531   ac_prog_rejected=no
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535   IFS=$as_save_IFS
1536   test -z "$as_dir" && as_dir=.
1537   for ac_exec_ext in '' $ac_executable_extensions; do
1538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1540        ac_prog_rejected=yes
1541        continue
1542      fi
1543     ac_cv_prog_CC="cc"
1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545     break 2
1546   fi
1547 done
1548 done
1549
1550 if test $ac_prog_rejected = yes; then
1551   # We found a bogon in the path, so make sure we never use it.
1552   set dummy $ac_cv_prog_CC
1553   shift
1554   if test $# != 0; then
1555     # We chose a different compiler from the bogus one.
1556     # However, it has the same basename, so the bogon will be chosen
1557     # first if we set CC to just the basename; use the full file name.
1558     shift
1559     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1560   fi
1561 fi
1562 fi
1563 fi
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566   echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572
1573 fi
1574 if test -z "$CC"; then
1575   if test -n "$ac_tool_prefix"; then
1576   for ac_prog in cl
1577   do
1578     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   if test -n "$CC"; then
1586   ac_cv_prog_CC="$CC" # Let the user override the test.
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591   IFS=$as_save_IFS
1592   test -z "$as_dir" && as_dir=.
1593   for ac_exec_ext in '' $ac_executable_extensions; do
1594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597     break 2
1598   fi
1599 done
1600 done
1601
1602 fi
1603 fi
1604 CC=$ac_cv_prog_CC
1605 if test -n "$CC"; then
1606   echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1608 else
1609   echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613     test -n "$CC" && break
1614   done
1615 fi
1616 if test -z "$CC"; then
1617   ac_ct_CC=$CC
1618   for ac_prog in cl
1619 do
1620   # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy $ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   if test -n "$ac_ct_CC"; then
1628   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   for ac_exec_ext in '' $ac_executable_extensions; do
1636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637     ac_cv_prog_ac_ct_CC="$ac_prog"
1638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639     break 2
1640   fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1647 if test -n "$ac_ct_CC"; then
1648   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1649 echo "${ECHO_T}$ac_ct_CC" >&6
1650 else
1651   echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655   test -n "$ac_ct_CC" && break
1656 done
1657
1658   CC=$ac_ct_CC
1659 fi
1660
1661 fi
1662
1663
1664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1665 See \`config.log' for more details." >&5
1666 echo "$as_me: error: no acceptable C compiler found in \$PATH
1667 See \`config.log' for more details." >&2;}
1668    { (exit 1); exit 1; }; }
1669
1670 # Provide some information about the compiler.
1671 echo "$as_me:$LINENO:" \
1672      "checking for C compiler version" >&5
1673 ac_compiler=`set X $ac_compile; echo $2`
1674 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1675   (eval $ac_compiler --version </dev/null >&5) 2>&5
1676   ac_status=$?
1677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1678   (exit $ac_status); }
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1680   (eval $ac_compiler -v </dev/null >&5) 2>&5
1681   ac_status=$?
1682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683   (exit $ac_status); }
1684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1685   (eval $ac_compiler -V </dev/null >&5) 2>&5
1686   ac_status=$?
1687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688   (exit $ac_status); }
1689
1690 cat >conftest.$ac_ext <<_ACEOF
1691 /* confdefs.h.  */
1692 _ACEOF
1693 cat confdefs.h >>conftest.$ac_ext
1694 cat >>conftest.$ac_ext <<_ACEOF
1695 /* end confdefs.h.  */
1696
1697 int
1698 main ()
1699 {
1700
1701   ;
1702   return 0;
1703 }
1704 _ACEOF
1705 ac_clean_files_save=$ac_clean_files
1706 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1707 # Try to create an executable without -o first, disregard a.out.
1708 # It will help us diagnose broken compilers, and finding out an intuition
1709 # of exeext.
1710 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1711 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1712 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1713 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1714   (eval $ac_link_default) 2>&5
1715   ac_status=$?
1716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717   (exit $ac_status); }; then
1718   # Find the output, starting from the most likely.  This scheme is
1719 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1720 # resort.
1721
1722 # Be careful to initialize this variable, since it used to be cached.
1723 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1724 ac_cv_exeext=
1725 # b.out is created by i960 compilers.
1726 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1727 do
1728   test -f "$ac_file" || continue
1729   case $ac_file in
1730     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1731         ;;
1732     conftest.$ac_ext )
1733         # This is the source file.
1734         ;;
1735     [ab].out )
1736         # We found the default executable, but exeext='' is most
1737         # certainly right.
1738         break;;
1739     *.* )
1740         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1741         # FIXME: I believe we export ac_cv_exeext for Libtool,
1742         # but it would be cool to find out if it's true.  Does anybody
1743         # maintain Libtool? --akim.
1744         export ac_cv_exeext
1745         break;;
1746     * )
1747         break;;
1748   esac
1749 done
1750 else
1751   echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1755 See \`config.log' for more details." >&5
1756 echo "$as_me: error: C compiler cannot create executables
1757 See \`config.log' for more details." >&2;}
1758    { (exit 77); exit 77; }; }
1759 fi
1760
1761 ac_exeext=$ac_cv_exeext
1762 echo "$as_me:$LINENO: result: $ac_file" >&5
1763 echo "${ECHO_T}$ac_file" >&6
1764
1765 # Check the compiler produces executables we can run.  If not, either
1766 # the compiler is broken, or we cross compile.
1767 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1770 # If not cross compiling, check that we can run a simple program.
1771 if test "$cross_compiling" != yes; then
1772   if { ac_try='./$ac_file'
1773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1774   (eval $ac_try) 2>&5
1775   ac_status=$?
1776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777   (exit $ac_status); }; }; then
1778     cross_compiling=no
1779   else
1780     if test "$cross_compiling" = maybe; then
1781         cross_compiling=yes
1782     else
1783         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1784 If you meant to cross compile, use \`--host'.
1785 See \`config.log' for more details." >&5
1786 echo "$as_me: error: cannot run C compiled programs.
1787 If you meant to cross compile, use \`--host'.
1788 See \`config.log' for more details." >&2;}
1789    { (exit 1); exit 1; }; }
1790     fi
1791   fi
1792 fi
1793 echo "$as_me:$LINENO: result: yes" >&5
1794 echo "${ECHO_T}yes" >&6
1795
1796 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1797 ac_clean_files=$ac_clean_files_save
1798 # Check the compiler produces executables we can run.  If not, either
1799 # the compiler is broken, or we cross compile.
1800 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1801 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1802 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1803 echo "${ECHO_T}$cross_compiling" >&6
1804
1805 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1806 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1808   (eval $ac_link) 2>&5
1809   ac_status=$?
1810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811   (exit $ac_status); }; then
1812   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1813 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1814 # work properly (i.e., refer to `conftest.exe'), while it won't with
1815 # `rm'.
1816 for ac_file in conftest.exe conftest conftest.*; do
1817   test -f "$ac_file" || continue
1818   case $ac_file in
1819     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1820     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821           export ac_cv_exeext
1822           break;;
1823     * ) break;;
1824   esac
1825 done
1826 else
1827   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1830 See \`config.log' for more details." >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833
1834 rm -f conftest$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1836 echo "${ECHO_T}$ac_cv_exeext" >&6
1837
1838 rm -f conftest.$ac_ext
1839 EXEEXT=$ac_cv_exeext
1840 ac_exeext=$EXEEXT
1841 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1842 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1843 if test "${ac_cv_objext+set}" = set; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   cat >conftest.$ac_ext <<_ACEOF
1847 /* confdefs.h.  */
1848 _ACEOF
1849 cat confdefs.h >>conftest.$ac_ext
1850 cat >>conftest.$ac_ext <<_ACEOF
1851 /* end confdefs.h.  */
1852
1853 int
1854 main ()
1855 {
1856
1857   ;
1858   return 0;
1859 }
1860 _ACEOF
1861 rm -f conftest.o conftest.obj
1862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1863   (eval $ac_compile) 2>&5
1864   ac_status=$?
1865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866   (exit $ac_status); }; then
1867   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1868   case $ac_file in
1869     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1870     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1871        break;;
1872   esac
1873 done
1874 else
1875   echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1879 See \`config.log' for more details." >&5
1880 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1881 See \`config.log' for more details." >&2;}
1882    { (exit 1); exit 1; }; }
1883 fi
1884
1885 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1886 fi
1887 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1888 echo "${ECHO_T}$ac_cv_objext" >&6
1889 OBJEXT=$ac_cv_objext
1890 ac_objext=$OBJEXT
1891 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1892 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1893 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   cat >conftest.$ac_ext <<_ACEOF
1897 /* confdefs.h.  */
1898 _ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h.  */
1902
1903 int
1904 main ()
1905 {
1906 #ifndef __GNUC__
1907        choke me
1908 #endif
1909
1910   ;
1911   return 0;
1912 }
1913 _ACEOF
1914 rm -f conftest.$ac_objext
1915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1916   (eval $ac_compile) 2>conftest.er1
1917   ac_status=$?
1918   grep -v '^ *+' conftest.er1 >conftest.err
1919   rm -f conftest.er1
1920   cat conftest.err >&5
1921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922   (exit $ac_status); } &&
1923          { ac_try='test -z "$ac_c_werror_flag"
1924                          || test ! -s conftest.err'
1925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1926   (eval $ac_try) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); }; } &&
1930          { ac_try='test -s conftest.$ac_objext'
1931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932   (eval $ac_try) 2>&5
1933   ac_status=$?
1934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935   (exit $ac_status); }; }; then
1936   ac_compiler_gnu=yes
1937 else
1938   echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_compiler_gnu=no
1942 fi
1943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1944 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1945
1946 fi
1947 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1948 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1949 GCC=`test $ac_compiler_gnu = yes && echo yes`
1950 ac_test_CFLAGS=${CFLAGS+set}
1951 ac_save_CFLAGS=$CFLAGS
1952 CFLAGS="-g"
1953 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1954 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1955 if test "${ac_cv_prog_cc_g+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   cat >conftest.$ac_ext <<_ACEOF
1959 /* confdefs.h.  */
1960 _ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h.  */
1964
1965 int
1966 main ()
1967 {
1968
1969   ;
1970   return 0;
1971 }
1972 _ACEOF
1973 rm -f conftest.$ac_objext
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975   (eval $ac_compile) 2>conftest.er1
1976   ac_status=$?
1977   grep -v '^ *+' conftest.er1 >conftest.err
1978   rm -f conftest.er1
1979   cat conftest.err >&5
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); } &&
1982          { ac_try='test -z "$ac_c_werror_flag"
1983                          || test ! -s conftest.err'
1984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985   (eval $ac_try) 2>&5
1986   ac_status=$?
1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988   (exit $ac_status); }; } &&
1989          { ac_try='test -s conftest.$ac_objext'
1990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1991   (eval $ac_try) 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }; }; then
1995   ac_cv_prog_cc_g=yes
1996 else
1997   echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 ac_cv_prog_cc_g=no
2001 fi
2002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2005 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2006 if test "$ac_test_CFLAGS" = set; then
2007   CFLAGS=$ac_save_CFLAGS
2008 elif test $ac_cv_prog_cc_g = yes; then
2009   if test "$GCC" = yes; then
2010     CFLAGS="-g -O2"
2011   else
2012     CFLAGS="-g"
2013   fi
2014 else
2015   if test "$GCC" = yes; then
2016     CFLAGS="-O2"
2017   else
2018     CFLAGS=
2019   fi
2020 fi
2021 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2022 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2023 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   ac_cv_prog_cc_stdc=no
2027 ac_save_CC=$CC
2028 cat >conftest.$ac_ext <<_ACEOF
2029 /* confdefs.h.  */
2030 _ACEOF
2031 cat confdefs.h >>conftest.$ac_ext
2032 cat >>conftest.$ac_ext <<_ACEOF
2033 /* end confdefs.h.  */
2034 #include <stdarg.h>
2035 #include <stdio.h>
2036 #include <sys/types.h>
2037 #include <sys/stat.h>
2038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2039 struct buf { int x; };
2040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2041 static char *e (p, i)
2042      char **p;
2043      int i;
2044 {
2045   return p[i];
2046 }
2047 static char *f (char * (*g) (char **, int), char **p, ...)
2048 {
2049   char *s;
2050   va_list v;
2051   va_start (v,p);
2052   s = g (p, va_arg (v,int));
2053   va_end (v);
2054   return s;
2055 }
2056
2057 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2058    function prototypes and stuff, but not '\xHH' hex character constants.
2059    These don't provoke an error unfortunately, instead are silently treated
2060    as 'x'.  The following induces an error, until -std1 is added to get
2061    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2062    array size at least.  It's necessary to write '\x00'==0 to get something
2063    that's true only with -std1.  */
2064 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2065
2066 int test (int i, double x);
2067 struct s1 {int (*f) (int a);};
2068 struct s2 {int (*f) (double a);};
2069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2070 int argc;
2071 char **argv;
2072 int
2073 main ()
2074 {
2075 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 # Don't try gcc -ansi; that turns off useful extensions and
2081 # breaks some systems' header files.
2082 # AIX                   -qlanglvl=ansi
2083 # Ultrix and OSF/1      -std1
2084 # HP-UX 10.20 and later -Ae
2085 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2086 # SVR4                  -Xc -D__EXTENSIONS__
2087 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2088 do
2089   CC="$ac_save_CC $ac_arg"
2090   rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092   (eval $ac_compile) 2>conftest.er1
2093   ac_status=$?
2094   grep -v '^ *+' conftest.er1 >conftest.err
2095   rm -f conftest.er1
2096   cat conftest.err >&5
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); } &&
2099          { ac_try='test -z "$ac_c_werror_flag"
2100                          || test ! -s conftest.err'
2101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102   (eval $ac_try) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }; } &&
2106          { ac_try='test -s conftest.$ac_objext'
2107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108   (eval $ac_try) 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }; }; then
2112   ac_cv_prog_cc_stdc=$ac_arg
2113 break
2114 else
2115   echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 fi
2119 rm -f conftest.err conftest.$ac_objext
2120 done
2121 rm -f conftest.$ac_ext conftest.$ac_objext
2122 CC=$ac_save_CC
2123
2124 fi
2125
2126 case "x$ac_cv_prog_cc_stdc" in
2127   x|xno)
2128     echo "$as_me:$LINENO: result: none needed" >&5
2129 echo "${ECHO_T}none needed" >&6 ;;
2130   *)
2131     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2132 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2133     CC="$CC $ac_cv_prog_cc_stdc" ;;
2134 esac
2135
2136 # Some people use a C++ compiler to compile C.  Since we use `exit',
2137 # in C++ we need to declare it.  In case someone uses the same compiler
2138 # for both compiling C and C++ we need to have the C++ compiler decide
2139 # the declaration of exit, since it's the most demanding environment.
2140 cat >conftest.$ac_ext <<_ACEOF
2141 #ifndef __cplusplus
2142   choke me
2143 #endif
2144 _ACEOF
2145 rm -f conftest.$ac_objext
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147   (eval $ac_compile) 2>conftest.er1
2148   ac_status=$?
2149   grep -v '^ *+' conftest.er1 >conftest.err
2150   rm -f conftest.er1
2151   cat conftest.err >&5
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); } &&
2154          { ac_try='test -z "$ac_c_werror_flag"
2155                          || test ! -s conftest.err'
2156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157   (eval $ac_try) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; } &&
2161          { ac_try='test -s conftest.$ac_objext'
2162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163   (eval $ac_try) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; }; then
2167   for ac_declaration in \
2168    '' \
2169    'extern "C" void std::exit (int) throw (); using std::exit;' \
2170    'extern "C" void std::exit (int); using std::exit;' \
2171    'extern "C" void exit (int) throw ();' \
2172    'extern "C" void exit (int);' \
2173    'void exit (int);'
2174 do
2175   cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h.  */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h.  */
2181 $ac_declaration
2182 #include <stdlib.h>
2183 int
2184 main ()
2185 {
2186 exit (42);
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>conftest.er1
2194   ac_status=$?
2195   grep -v '^ *+' conftest.er1 >conftest.err
2196   rm -f conftest.er1
2197   cat conftest.err >&5
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); } &&
2200          { ac_try='test -z "$ac_c_werror_flag"
2201                          || test ! -s conftest.err'
2202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203   (eval $ac_try) 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }; } &&
2207          { ac_try='test -s conftest.$ac_objext'
2208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209   (eval $ac_try) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; }; then
2213   :
2214 else
2215   echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 continue
2219 fi
2220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2221   cat >conftest.$ac_ext <<_ACEOF
2222 /* confdefs.h.  */
2223 _ACEOF
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h.  */
2227 $ac_declaration
2228 int
2229 main ()
2230 {
2231 exit (42);
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238   (eval $ac_compile) 2>conftest.er1
2239   ac_status=$?
2240   grep -v '^ *+' conftest.er1 >conftest.err
2241   rm -f conftest.er1
2242   cat conftest.err >&5
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); } &&
2245          { ac_try='test -z "$ac_c_werror_flag"
2246                          || test ! -s conftest.err'
2247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248   (eval $ac_try) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; } &&
2252          { ac_try='test -s conftest.$ac_objext'
2253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254   (eval $ac_try) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }; }; then
2258   break
2259 else
2260   echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2262
2263 fi
2264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2265 done
2266 rm -f conftest*
2267 if test -n "$ac_declaration"; then
2268   echo '#ifdef __cplusplus' >>confdefs.h
2269   echo $ac_declaration      >>confdefs.h
2270   echo '#endif'             >>confdefs.h
2271 fi
2272
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 fi
2278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279 ac_ext=c
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284
2285 for ac_prog in 'bison -y' byacc
2286 do
2287   # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_YACC+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   if test -n "$YACC"; then
2295   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_exec_ext in '' $ac_executable_extensions; do
2303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304     ac_cv_prog_YACC="$ac_prog"
2305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307   fi
2308 done
2309 done
2310
2311 fi
2312 fi
2313 YACC=$ac_cv_prog_YACC
2314 if test -n "$YACC"; then
2315   echo "$as_me:$LINENO: result: $YACC" >&5
2316 echo "${ECHO_T}$YACC" >&6
2317 else
2318   echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2320 fi
2321
2322   test -n "$YACC" && break
2323 done
2324 test -n "$YACC" || YACC="yacc"
2325
2326
2327 for ac_prog in flex lex
2328 do
2329   # Extract the first word of "$ac_prog", so it can be a program name with args.
2330 set dummy $ac_prog; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_LEX+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$LEX"; then
2337   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346     ac_cv_prog_LEX="$ac_prog"
2347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351 done
2352
2353 fi
2354 fi
2355 LEX=$ac_cv_prog_LEX
2356 if test -n "$LEX"; then
2357   echo "$as_me:$LINENO: result: $LEX" >&5
2358 echo "${ECHO_T}$LEX" >&6
2359 else
2360   echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2362 fi
2363
2364   test -n "$LEX" && break
2365 done
2366 test -n "$LEX" || LEX=":"
2367
2368 if test -z "$LEXLIB"
2369 then
2370   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2371 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2372 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2373   echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375   ac_check_lib_save_LIBS=$LIBS
2376 LIBS="-lfl  $LIBS"
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h.  */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h.  */
2383
2384 /* Override any gcc2 internal prototype to avoid an error.  */
2385 #ifdef __cplusplus
2386 extern "C"
2387 #endif
2388 /* We use char because int might match the return type of a gcc2
2389    builtin and then its argument prototype would still apply.  */
2390 char yywrap ();
2391 int
2392 main ()
2393 {
2394 yywrap ();
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 rm -f conftest.$ac_objext conftest$ac_exeext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2401   (eval $ac_link) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_c_werror_flag"
2409                          || test ! -s conftest.err'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest$ac_exeext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_cv_lib_fl_yywrap=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_cv_lib_fl_yywrap=no
2427 fi
2428 rm -f conftest.err conftest.$ac_objext \
2429       conftest$ac_exeext conftest.$ac_ext
2430 LIBS=$ac_check_lib_save_LIBS
2431 fi
2432 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2433 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2434 if test $ac_cv_lib_fl_yywrap = yes; then
2435   LEXLIB="-lfl"
2436 else
2437   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2438 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2439 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   ac_check_lib_save_LIBS=$LIBS
2443 LIBS="-ll  $LIBS"
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h.  */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h.  */
2450
2451 /* Override any gcc2 internal prototype to avoid an error.  */
2452 #ifdef __cplusplus
2453 extern "C"
2454 #endif
2455 /* We use char because int might match the return type of a gcc2
2456    builtin and then its argument prototype would still apply.  */
2457 char yywrap ();
2458 int
2459 main ()
2460 {
2461 yywrap ();
2462   ;
2463   return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext conftest$ac_exeext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2468   (eval $ac_link) 2>conftest.er1
2469   ac_status=$?
2470   grep -v '^ *+' conftest.er1 >conftest.err
2471   rm -f conftest.er1
2472   cat conftest.err >&5
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -z "$ac_c_werror_flag"
2476                          || test ! -s conftest.err'
2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478   (eval $ac_try) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; } &&
2482          { ac_try='test -s conftest$ac_exeext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   ac_cv_lib_l_yywrap=yes
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 ac_cv_lib_l_yywrap=no
2494 fi
2495 rm -f conftest.err conftest.$ac_objext \
2496       conftest$ac_exeext conftest.$ac_ext
2497 LIBS=$ac_check_lib_save_LIBS
2498 fi
2499 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2500 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2501 if test $ac_cv_lib_l_yywrap = yes; then
2502   LEXLIB="-ll"
2503 fi
2504
2505 fi
2506
2507 fi
2508
2509 if test "x$LEX" != "x:"; then
2510   echo "$as_me:$LINENO: checking lex output file root" >&5
2511 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2512 if test "${ac_cv_prog_lex_root+set}" = set; then
2513   echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515   # The minimal lex program is just a single line: %%.  But some broken lexes
2516 # (Solaris, I think it was) want two %% lines, so accommodate them.
2517 cat >conftest.l <<_ACEOF
2518 %%
2519 %%
2520 _ACEOF
2521 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2522   (eval $LEX conftest.l) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }
2526 if test -f lex.yy.c; then
2527   ac_cv_prog_lex_root=lex.yy
2528 elif test -f lexyy.c; then
2529   ac_cv_prog_lex_root=lexyy
2530 else
2531   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2532 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2533    { (exit 1); exit 1; }; }
2534 fi
2535 fi
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2537 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2538 rm -f conftest.l
2539 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2540
2541 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2542 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2543 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   # POSIX says lex can declare yytext either as a pointer or an array; the
2547 # default is implementation-dependent. Figure out which it is, since
2548 # not all implementations provide the %pointer and %array declarations.
2549 ac_cv_prog_lex_yytext_pointer=no
2550 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2551 ac_save_LIBS=$LIBS
2552 LIBS="$LIBS $LEXLIB"
2553 cat >conftest.$ac_ext <<_ACEOF
2554 `cat $LEX_OUTPUT_ROOT.c`
2555 _ACEOF
2556 rm -f conftest.$ac_objext conftest$ac_exeext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2558   (eval $ac_link) 2>conftest.er1
2559   ac_status=$?
2560   grep -v '^ *+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } &&
2565          { ac_try='test -z "$ac_c_werror_flag"
2566                          || test ! -s conftest.err'
2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568   (eval $ac_try) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; } &&
2572          { ac_try='test -s conftest$ac_exeext'
2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574   (eval $ac_try) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; }; then
2578   ac_cv_prog_lex_yytext_pointer=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 fi
2584 rm -f conftest.err conftest.$ac_objext \
2585       conftest$ac_exeext conftest.$ac_ext
2586 LIBS=$ac_save_LIBS
2587 rm -f "${LEX_OUTPUT_ROOT}.c"
2588
2589 fi
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2591 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2592 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2593
2594 cat >>confdefs.h <<\_ACEOF
2595 #define YYTEXT_POINTER 1
2596 _ACEOF
2597
2598 fi
2599
2600 fi
2601 ac_aux_dir=
2602 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2603   if test -f $ac_dir/install-sh; then
2604     ac_aux_dir=$ac_dir
2605     ac_install_sh="$ac_aux_dir/install-sh -c"
2606     break
2607   elif test -f $ac_dir/install.sh; then
2608     ac_aux_dir=$ac_dir
2609     ac_install_sh="$ac_aux_dir/install.sh -c"
2610     break
2611   elif test -f $ac_dir/shtool; then
2612     ac_aux_dir=$ac_dir
2613     ac_install_sh="$ac_aux_dir/shtool install -c"
2614     break
2615   fi
2616 done
2617 if test -z "$ac_aux_dir"; then
2618   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2619 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2620    { (exit 1); exit 1; }; }
2621 fi
2622 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2623 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2624 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2625
2626 # Find a good install program.  We prefer a C program (faster),
2627 # so one script is as good as another.  But avoid the broken or
2628 # incompatible versions:
2629 # SysV /etc/install, /usr/sbin/install
2630 # SunOS /usr/etc/install
2631 # IRIX /sbin/install
2632 # AIX /bin/install
2633 # AmigaOS /C/install, which installs bootblocks on floppy discs
2634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2637 # OS/2's system install, which has a completely different semantic
2638 # ./install, which can be erroneously created by make from ./install.sh.
2639 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2640 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2641 if test -z "$INSTALL"; then
2642 if test "${ac_cv_path_install+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650   # Account for people who put trailing slashes in PATH elements.
2651 case $as_dir/ in
2652   ./ | .// | /cC/* | \
2653   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2654   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2655   /usr/ucb/* ) ;;
2656   *)
2657     # OSF1 and SCO ODT 3.0 have their own names for install.
2658     # Don't use installbsd from OSF since it installs stuff as root
2659     # by default.
2660     for ac_prog in ginstall scoinst install; do
2661       for ac_exec_ext in '' $ac_executable_extensions; do
2662         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2663           if test $ac_prog = install &&
2664             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2665             # AIX install.  It has an incompatible calling convention.
2666             :
2667           elif test $ac_prog = install &&
2668             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2669             # program-specific install script used by HP pwplus--don't use.
2670             :
2671           else
2672             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2673             break 3
2674           fi
2675         fi
2676       done
2677     done
2678     ;;
2679 esac
2680 done
2681
2682
2683 fi
2684   if test "${ac_cv_path_install+set}" = set; then
2685     INSTALL=$ac_cv_path_install
2686   else
2687     # As a last resort, use the slow shell script.  We don't cache a
2688     # path for INSTALL within a source directory, because that will
2689     # break other packages using the cache if that directory is
2690     # removed, or if the path is relative.
2691     INSTALL=$ac_install_sh
2692   fi
2693 fi
2694 echo "$as_me:$LINENO: result: $INSTALL" >&5
2695 echo "${ECHO_T}$INSTALL" >&6
2696
2697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2698 # It thinks the first close brace ends the variable substitution.
2699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2700
2701 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2702
2703 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2704
2705 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2706 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2707 LN_S=$as_ln_s
2708 if test "$LN_S" = "ln -s"; then
2709   echo "$as_me:$LINENO: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6
2711 else
2712   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2713 echo "${ECHO_T}no, using $LN_S" >&6
2714 fi
2715
2716 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2719 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.make <<\_ACEOF
2723 all:
2724         @echo 'ac_maketemp="$(MAKE)"'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2727 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2728 if test -n "$ac_maketemp"; then
2729   eval ac_cv_prog_make_${ac_make}_set=yes
2730 else
2731   eval ac_cv_prog_make_${ac_make}_set=no
2732 fi
2733 rm -f conftest.make
2734 fi
2735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2736   echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738   SET_MAKE=
2739 else
2740   echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742   SET_MAKE="MAKE=${MAKE-make}"
2743 fi
2744
2745
2746
2747 # Check whether --enable-debug or --disable-debug was given.
2748 if test "${enable_debug+set}" = set; then
2749   enableval="$enable_debug"
2750   WITH_DEBUG=yes ; cat >>confdefs.h <<\_ACEOF
2751 #define DEBUG 1
2752 _ACEOF
2753
2754 else
2755   WITH_DEBUG=no
2756 fi;
2757
2758
2759 # Check whether --enable-memory-debug or --disable-memory-debug was given.
2760 if test "${enable_memory_debug+set}" = set; then
2761   enableval="$enable_memory_debug"
2762   WITH_MEMORY_DEBUG=yes ; cat >>confdefs.h <<\_ACEOF
2763 #define MEMORY_DEBUG 1
2764 _ACEOF
2765
2766 else
2767   WITH_MEMORY_DEBUG=no
2768 fi;
2769
2770
2771 # Check whether --enable-libdebug or --disable-libdebug was given.
2772 if test "${enable_libdebug+set}" = set; then
2773   enableval="$enable_libdebug"
2774   WITH_LIBDEBUG=yes ; cat >>confdefs.h <<\_ACEOF
2775 #define WITH_LIBDEBUG 1
2776 _ACEOF
2777
2778 else
2779   WITH_LIBDEBUG=no
2780 fi;
2781
2782
2783 # Check whether --enable-fakeroot or --disable-fakeroot was given.
2784 if test "${enable_fakeroot+set}" = set; then
2785   enableval="$enable_fakeroot"
2786   FAKEROOT=$enableval
2787 fi;
2788
2789
2790 # Check whether --enable-securedir or --disable-securedir was given.
2791 if test "${enable_securedir+set}" = set; then
2792   enableval="$enable_securedir"
2793   SECUREDIR=$enableval
2794 else
2795   SECUREDIR=$libdir/security
2796 fi;
2797
2798
2799 # Check whether --enable-isadir or --disable-isadir was given.
2800 if test "${enable_isadir+set}" = set; then
2801   enableval="$enable_isadir"
2802   ISA=$enableval
2803 else
2804   ISA=../../`basename $libdir`/security
2805 fi;
2806 unset mylibdirbase
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define _PAM_ISA "$ISA"
2810 _ACEOF
2811
2812 echo "$as_me:$LINENO: result: Defining \$ISA to \\"$ISA\\"." >&5
2813 echo "${ECHO_T}Defining \$ISA to \\"$ISA\\"." >&6
2814
2815 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
2816 if test "${enable_sconfigdir+set}" = set; then
2817   enableval="$enable_sconfigdir"
2818   SCONFIGDIR=$enableval
2819 else
2820   SCONFIGDIR=$sysconfdir/security
2821 fi;
2822
2823
2824 # Check whether --enable-suplementedir or --disable-suplementedir was given.
2825 if test "${enable_suplementedir+set}" = set; then
2826   enableval="$enable_suplementedir"
2827   SUPLEMENTED=$enableval
2828 else
2829   SUPLEMENTED=$sbindir
2830 fi;
2831
2832
2833 # Check whether --enable-includedir or --disable-includedir was given.
2834 if test "${enable_includedir+set}" = set; then
2835   enableval="$enable_includedir"
2836   INCLUDEDIR=$enableval
2837 else
2838   INCLUDEDIR=/usr/include
2839 fi;
2840
2841
2842 # Check whether --enable-docdir or --disable-docdir was given.
2843 if test "${enable_docdir+set}" = set; then
2844   enableval="$enable_docdir"
2845   DOCDIR=$enableval
2846 else
2847   DOCDIR=/usr/share/doc/pam
2848 fi;
2849
2850
2851 # Check whether --enable-mandir or --disable-mandir was given.
2852 if test "${enable_mandir+set}" = set; then
2853   enableval="$enable_mandir"
2854   MANDIR=$enableval
2855 else
2856   MANDIR=/usr/share/man
2857 fi;
2858
2859
2860 # Check whether --enable-pamlocking or --disable-pamlocking was given.
2861 if test "${enable_pamlocking+set}" = set; then
2862   enableval="$enable_pamlocking"
2863   WITH_PAMLOCKING=yes ; cat >>confdefs.h <<\_ACEOF
2864 #define PAM_LOCKING 1
2865 _ACEOF
2866
2867 else
2868   WITH_PAMLOCKING=no
2869 fi;
2870
2871
2872 # Check whether --enable-uglyhack or --disable-uglyhack was given.
2873 if test "${enable_uglyhack+set}" = set; then
2874   enableval="$enable_uglyhack"
2875   cat >>confdefs.h <<\_ACEOF
2876 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
2877 _ACEOF
2878
2879 fi;
2880
2881 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
2882 if test "${enable_read_both_confs+set}" = set; then
2883   enableval="$enable_read_both_confs"
2884   cat >>confdefs.h <<\_ACEOF
2885 #define PAM_READ_BOTH_CONFS 1
2886 _ACEOF
2887
2888 fi;
2889
2890
2891 # Check whether --enable-static-libpam or --disable-static-libpam was given.
2892 if test "${enable_static_libpam+set}" = set; then
2893   enableval="$enable_static_libpam"
2894   STATIC_LIBPAM=yes
2895 else
2896   STATIC_LIBPAM=no
2897 fi;
2898
2899
2900 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
2901 if test "${enable_dynamic_libpam+set}" = set; then
2902   enableval="$enable_dynamic_libpam"
2903   DYNAMIC_LIBPAM=no
2904 else
2905   DYNAMIC_LIBPAM=yes
2906 fi;
2907
2908
2909 DYNAMIC=-DPAM_DYNAMIC
2910
2911
2912 # Check whether --enable-static-modules or --disable-static-modules was given.
2913 if test "${enable_static_modules+set}" = set; then
2914   enableval="$enable_static_modules"
2915   STATIC=-DPAM_STATIC
2916 fi;
2917
2918
2919 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
2920 if test "${enable_lckpwdf+set}" = set; then
2921   enableval="$enable_lckpwdf"
2922   WITH_LCKPWDF=no
2923 else
2924   WITH_LCKPWDF=yes
2925 fi;
2926
2927
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2934 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2935 # On Suns, sometimes $CPP names a directory.
2936 if test -n "$CPP" && test -d "$CPP"; then
2937   CPP=
2938 fi
2939 if test -z "$CPP"; then
2940   if test "${ac_cv_prog_CPP+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943       # Double quotes because CPP needs to be expanded
2944     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2945     do
2946       ac_preproc_ok=false
2947 for ac_c_preproc_warn_flag in '' yes
2948 do
2949   # Use a header file that comes with gcc, so configuring glibc
2950   # with a fresh cross-compiler works.
2951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2952   # <limits.h> exists even on freestanding compilers.
2953   # On the NeXT, cc -E runs the code through the compiler's parser,
2954   # not just through cpp. "Syntax error" is here to catch this case.
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961 #ifdef __STDC__
2962 # include <limits.h>
2963 #else
2964 # include <assert.h>
2965 #endif
2966                      Syntax error
2967 _ACEOF
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } >/dev/null; then
2976   if test -s conftest.err; then
2977     ac_cpp_err=$ac_c_preproc_warn_flag
2978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2979   else
2980     ac_cpp_err=
2981   fi
2982 else
2983   ac_cpp_err=yes
2984 fi
2985 if test -z "$ac_cpp_err"; then
2986   :
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991   # Broken: fails on valid input.
2992 continue
2993 fi
2994 rm -f conftest.err conftest.$ac_ext
2995
2996   # OK, works on sane cases.  Now check whether non-existent headers
2997   # can be detected and how.
2998   cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3004 #include <ac_nonexistent.h>
3005 _ACEOF
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } >/dev/null; then
3014   if test -s conftest.err; then
3015     ac_cpp_err=$ac_c_preproc_warn_flag
3016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3017   else
3018     ac_cpp_err=
3019   fi
3020 else
3021   ac_cpp_err=yes
3022 fi
3023 if test -z "$ac_cpp_err"; then
3024   # Broken: success on invalid input.
3025 continue
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030   # Passes both tests.
3031 ac_preproc_ok=:
3032 break
3033 fi
3034 rm -f conftest.err conftest.$ac_ext
3035
3036 done
3037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3038 rm -f conftest.err conftest.$ac_ext
3039 if $ac_preproc_ok; then
3040   break
3041 fi
3042
3043     done
3044     ac_cv_prog_CPP=$CPP
3045
3046 fi
3047   CPP=$ac_cv_prog_CPP
3048 else
3049   ac_cv_prog_CPP=$CPP
3050 fi
3051 echo "$as_me:$LINENO: result: $CPP" >&5
3052 echo "${ECHO_T}$CPP" >&6
3053 ac_preproc_ok=false
3054 for ac_c_preproc_warn_flag in '' yes
3055 do
3056   # Use a header file that comes with gcc, so configuring glibc
3057   # with a fresh cross-compiler works.
3058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3059   # <limits.h> exists even on freestanding compilers.
3060   # On the NeXT, cc -E runs the code through the compiler's parser,
3061   # not just through cpp. "Syntax error" is here to catch this case.
3062   cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3068 #ifdef __STDC__
3069 # include <limits.h>
3070 #else
3071 # include <assert.h>
3072 #endif
3073                      Syntax error
3074 _ACEOF
3075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } >/dev/null; then
3083   if test -s conftest.err; then
3084     ac_cpp_err=$ac_c_preproc_warn_flag
3085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3086   else
3087     ac_cpp_err=
3088   fi
3089 else
3090   ac_cpp_err=yes
3091 fi
3092 if test -z "$ac_cpp_err"; then
3093   :
3094 else
3095   echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3097
3098   # Broken: fails on valid input.
3099 continue
3100 fi
3101 rm -f conftest.err conftest.$ac_ext
3102
3103   # OK, works on sane cases.  Now check whether non-existent headers
3104   # can be detected and how.
3105   cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h.  */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h.  */
3111 #include <ac_nonexistent.h>
3112 _ACEOF
3113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3115   ac_status=$?
3116   grep -v '^ *+' conftest.er1 >conftest.err
3117   rm -f conftest.er1
3118   cat conftest.err >&5
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } >/dev/null; then
3121   if test -s conftest.err; then
3122     ac_cpp_err=$ac_c_preproc_warn_flag
3123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3124   else
3125     ac_cpp_err=
3126   fi
3127 else
3128   ac_cpp_err=yes
3129 fi
3130 if test -z "$ac_cpp_err"; then
3131   # Broken: success on invalid input.
3132 continue
3133 else
3134   echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3136
3137   # Passes both tests.
3138 ac_preproc_ok=:
3139 break
3140 fi
3141 rm -f conftest.err conftest.$ac_ext
3142
3143 done
3144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3145 rm -f conftest.err conftest.$ac_ext
3146 if $ac_preproc_ok; then
3147   :
3148 else
3149   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3150 See \`config.log' for more details." >&5
3151 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3152 See \`config.log' for more details." >&2;}
3153    { (exit 1); exit 1; }; }
3154 fi
3155
3156 ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161
3162
3163 echo "$as_me:$LINENO: checking for egrep" >&5
3164 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3165 if test "${ac_cv_prog_egrep+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3169     then ac_cv_prog_egrep='grep -E'
3170     else ac_cv_prog_egrep='egrep'
3171     fi
3172 fi
3173 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3174 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3175  EGREP=$ac_cv_prog_egrep
3176
3177
3178 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3180 if test "${ac_cv_header_stdc+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189 #include <stdlib.h>
3190 #include <stdarg.h>
3191 #include <string.h>
3192 #include <float.h>
3193
3194 int
3195 main ()
3196 {
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204   (eval $ac_compile) 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } &&
3211          { ac_try='test -z "$ac_c_werror_flag"
3212                          || test ! -s conftest.err'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; } &&
3218          { ac_try='test -s conftest.$ac_objext'
3219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220   (eval $ac_try) 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; }; then
3224   ac_cv_header_stdc=yes
3225 else
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 ac_cv_header_stdc=no
3230 fi
3231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3232
3233 if test $ac_cv_header_stdc = yes; then
3234   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3235   cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h.  */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h.  */
3241 #include <string.h>
3242
3243 _ACEOF
3244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3245   $EGREP "memchr" >/dev/null 2>&1; then
3246   :
3247 else
3248   ac_cv_header_stdc=no
3249 fi
3250 rm -f conftest*
3251
3252 fi
3253
3254 if test $ac_cv_header_stdc = yes; then
3255   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #include <stdlib.h>
3263
3264 _ACEOF
3265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3266   $EGREP "free" >/dev/null 2>&1; then
3267   :
3268 else
3269   ac_cv_header_stdc=no
3270 fi
3271 rm -f conftest*
3272
3273 fi
3274
3275 if test $ac_cv_header_stdc = yes; then
3276   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3277   if test "$cross_compiling" = yes; then
3278   :
3279 else
3280   cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286 #include <ctype.h>
3287 #if ((' ' & 0x0FF) == 0x020)
3288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3290 #else
3291 # define ISLOWER(c) \
3292                    (('a' <= (c) && (c) <= 'i') \
3293                      || ('j' <= (c) && (c) <= 'r') \
3294                      || ('s' <= (c) && (c) <= 'z'))
3295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3296 #endif
3297
3298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3299 int
3300 main ()
3301 {
3302   int i;
3303   for (i = 0; i < 256; i++)
3304     if (XOR (islower (i), ISLOWER (i))
3305         || toupper (i) != TOUPPER (i))
3306       exit(2);
3307   exit (0);
3308 }
3309 _ACEOF
3310 rm -f conftest$ac_exeext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3312   (eval $ac_link) 2>&5
3313   ac_status=$?
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317   (eval $ac_try) 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; }; then
3321   :
3322 else
3323   echo "$as_me: program exited with status $ac_status" >&5
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 ( exit $ac_status )
3328 ac_cv_header_stdc=no
3329 fi
3330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3331 fi
3332 fi
3333 fi
3334 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3335 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3336 if test $ac_cv_header_stdc = yes; then
3337
3338 cat >>confdefs.h <<\_ACEOF
3339 #define STDC_HEADERS 1
3340 _ACEOF
3341
3342 fi
3343
3344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3355                   inttypes.h stdint.h unistd.h
3356 do
3357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3358 echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 $ac_includes_default
3370
3371 #include <$ac_header>
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375   (eval $ac_compile) 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } &&
3382          { ac_try='test -z "$ac_c_werror_flag"
3383                          || test ! -s conftest.err'
3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; } &&
3389          { ac_try='test -s conftest.$ac_objext'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; }; then
3395   eval "$as_ac_Header=yes"
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 eval "$as_ac_Header=no"
3401 fi
3402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403 fi
3404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3407   cat >>confdefs.h <<_ACEOF
3408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3409 _ACEOF
3410
3411 fi
3412
3413 done
3414
3415
3416
3417 for ac_header in paths.h
3418 do
3419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421   echo "$as_me:$LINENO: checking for $ac_header" >&5
3422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 fi
3426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3428 else
3429   # Is the header compilable?
3430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438 $ac_includes_default
3439 #include <$ac_header>
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443   (eval $ac_compile) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -z "$ac_c_werror_flag"
3451                          || test ! -s conftest.err'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   ac_header_compiler=yes
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 ac_header_compiler=no
3469 fi
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3472 echo "${ECHO_T}$ac_header_compiler" >&6
3473
3474 # Is the header present?
3475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483 #include <$ac_header>
3484 _ACEOF
3485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } >/dev/null; then
3493   if test -s conftest.err; then
3494     ac_cpp_err=$ac_c_preproc_warn_flag
3495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3496   else
3497     ac_cpp_err=
3498   fi
3499 else
3500   ac_cpp_err=yes
3501 fi
3502 if test -z "$ac_cpp_err"; then
3503   ac_header_preproc=yes
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508   ac_header_preproc=no
3509 fi
3510 rm -f conftest.err conftest.$ac_ext
3511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3512 echo "${ECHO_T}$ac_header_preproc" >&6
3513
3514 # So?  What about this header?
3515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3516   yes:no: )
3517     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3521     ac_header_preproc=yes
3522     ;;
3523   no:yes:* )
3524     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3526     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3527 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3528     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3530     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3531 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3534     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3536     (
3537       cat <<\_ASBOX
3538 ## ------------------------------------------ ##
3539 ## Report this to the AC_PACKAGE_NAME lists.  ##
3540 ## ------------------------------------------ ##
3541 _ASBOX
3542     ) |
3543       sed "s/^/$as_me: WARNING:     /" >&2
3544     ;;
3545 esac
3546 echo "$as_me:$LINENO: checking for $ac_header" >&5
3547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   eval "$as_ac_Header=\$ac_header_preproc"
3552 fi
3553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3555
3556 fi
3557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3558   cat >>confdefs.h <<_ACEOF
3559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3560 _ACEOF
3561
3562 fi
3563
3564 done
3565
3566
3567 # Check whether --with-mailspool or --without-mailspool was given.
3568 if test "${with_mailspool+set}" = set; then
3569   withval="$with_mailspool"
3570   with_mailspool=${withval}
3571 fi;
3572 if test x$with_mailspool != x ; then
3573         pam_mail_spool="\"$with_mailspool\""
3574 else
3575         if test "$cross_compiling" = yes; then
3576   pam_mail_spool="\"/var/spool/mail\""
3577 else
3578   cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584
3585 #include <paths.h>
3586 int main() {
3587 #ifdef _PATH_MAILDIR
3588 exit(0);
3589 #else
3590 exit(1);
3591 #endif
3592 }
3593 _ACEOF
3594 rm -f conftest$ac_exeext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596   (eval $ac_link) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601   (eval $ac_try) 2>&5
3602   ac_status=$?
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); }; }; then
3605   pam_mail_spool="_PATH_MAILDIR"
3606 else
3607   echo "$as_me: program exited with status $ac_status" >&5
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 ( exit $ac_status )
3612 pam_mail_spool="\"/var/spool/mail\""
3613 fi
3614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3615 fi
3616 fi
3617 cat >>confdefs.h <<_ACEOF
3618 #define PAM_PATH_MAILDIR $pam_mail_spool
3619 _ACEOF
3620
3621
3622 echo "$as_me:$LINENO: checking for __libc_sched_setscheduler in -lc" >&5
3623 echo $ECHO_N "checking for __libc_sched_setscheduler in -lc... $ECHO_C" >&6
3624 if test "${ac_cv_lib_c___libc_sched_setscheduler+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   ac_check_lib_save_LIBS=$LIBS
3628 LIBS="-lc  $LIBS"
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635
3636 /* Override any gcc2 internal prototype to avoid an error.  */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 /* We use char because int might match the return type of a gcc2
3641    builtin and then its argument prototype would still apply.  */
3642 char __libc_sched_setscheduler ();
3643 int
3644 main ()
3645 {
3646 __libc_sched_setscheduler ();
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.$ac_objext conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653   (eval $ac_link) 2>conftest.er1
3654   ac_status=$?
3655   grep -v '^ *+' conftest.er1 >conftest.err
3656   rm -f conftest.er1
3657   cat conftest.err >&5
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } &&
3660          { ac_try='test -z "$ac_c_werror_flag"
3661                          || test ! -s conftest.err'
3662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663   (eval $ac_try) 2>&5
3664   ac_status=$?
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); }; } &&
3667          { ac_try='test -s conftest$ac_exeext'
3668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669   (eval $ac_try) 2>&5
3670   ac_status=$?
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); }; }; then
3673   ac_cv_lib_c___libc_sched_setscheduler=yes
3674 else
3675   echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 ac_cv_lib_c___libc_sched_setscheduler=no
3679 fi
3680 rm -f conftest.err conftest.$ac_objext \
3681       conftest$ac_exeext conftest.$ac_ext
3682 LIBS=$ac_check_lib_save_LIBS
3683 fi
3684 echo "$as_me:$LINENO: result: $ac_cv_lib_c___libc_sched_setscheduler" >&5
3685 echo "${ECHO_T}$ac_cv_lib_c___libc_sched_setscheduler" >&6
3686 if test $ac_cv_lib_c___libc_sched_setscheduler = yes; then
3687   PAM_NEEDS_LIBC=
3688 else
3689   PAM_NEEDS_LIBC=-lc
3690 fi
3691
3692
3693
3694 echo "$as_me:$LINENO: checking for lckpwdf in -lc" >&5
3695 echo $ECHO_N "checking for lckpwdf in -lc... $ECHO_C" >&6
3696 if test "${ac_cv_lib_c_lckpwdf+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   ac_check_lib_save_LIBS=$LIBS
3700 LIBS="-lc  $LIBS"
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h.  */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h.  */
3707
3708 /* Override any gcc2 internal prototype to avoid an error.  */
3709 #ifdef __cplusplus
3710 extern "C"
3711 #endif
3712 /* We use char because int might match the return type of a gcc2
3713    builtin and then its argument prototype would still apply.  */
3714 char lckpwdf ();
3715 int
3716 main ()
3717 {
3718 lckpwdf ();
3719   ;
3720   return 0;
3721 }
3722 _ACEOF
3723 rm -f conftest.$ac_objext conftest$ac_exeext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725   (eval $ac_link) 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } &&
3732          { ac_try='test -z "$ac_c_werror_flag"
3733                          || test ! -s conftest.err'
3734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735   (eval $ac_try) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }; } &&
3739          { ac_try='test -s conftest$ac_exeext'
3740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741   (eval $ac_try) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); }; }; then
3745   ac_cv_lib_c_lckpwdf=yes
3746 else
3747   echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 ac_cv_lib_c_lckpwdf=no
3751 fi
3752 rm -f conftest.err conftest.$ac_objext \
3753       conftest$ac_exeext conftest.$ac_ext
3754 LIBS=$ac_check_lib_save_LIBS
3755 fi
3756 echo "$as_me:$LINENO: result: $ac_cv_lib_c_lckpwdf" >&5
3757 echo "${ECHO_T}$ac_cv_lib_c_lckpwdf" >&6
3758 if test $ac_cv_lib_c_lckpwdf = yes; then
3759   HAVE_LCKPWDF=yes
3760 else
3761   HAVE_LCKPWDF=no
3762 fi
3763
3764
3765
3766 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   ac_check_lib_save_LIBS=$LIBS
3772 LIBS="-ldl  $LIBS"
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779
3780 /* Override any gcc2 internal prototype to avoid an error.  */
3781 #ifdef __cplusplus
3782 extern "C"
3783 #endif
3784 /* We use char because int might match the return type of a gcc2
3785    builtin and then its argument prototype would still apply.  */
3786 char dlopen ();
3787 int
3788 main ()
3789 {
3790 dlopen ();
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 rm -f conftest.$ac_objext conftest$ac_exeext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3797   (eval $ac_link) 2>conftest.er1
3798   ac_status=$?
3799   grep -v '^ *+' conftest.er1 >conftest.err
3800   rm -f conftest.er1
3801   cat conftest.err >&5
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } &&
3804          { ac_try='test -z "$ac_c_werror_flag"
3805                          || test ! -s conftest.err'
3806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807   (eval $ac_try) 2>&5
3808   ac_status=$?
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); }; } &&
3811          { ac_try='test -s conftest$ac_exeext'
3812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813   (eval $ac_try) 2>&5
3814   ac_status=$?
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); }; }; then
3817   ac_cv_lib_dl_dlopen=yes
3818 else
3819   echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822 ac_cv_lib_dl_dlopen=no
3823 fi
3824 rm -f conftest.err conftest.$ac_objext \
3825       conftest$ac_exeext conftest.$ac_ext
3826 LIBS=$ac_check_lib_save_LIBS
3827 fi
3828 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3830 if test $ac_cv_lib_dl_dlopen = yes; then
3831   LIBDL=-ldl
3832 fi
3833
3834
3835
3836 echo "$as_me:$LINENO: checking for FascistCheck in -lcrack" >&5
3837 echo $ECHO_N "checking for FascistCheck in -lcrack... $ECHO_C" >&6
3838 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   ac_check_lib_save_LIBS=$LIBS
3842 LIBS="-lcrack  $LIBS"
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849
3850 /* Override any gcc2 internal prototype to avoid an error.  */
3851 #ifdef __cplusplus
3852 extern "C"
3853 #endif
3854 /* We use char because int might match the return type of a gcc2
3855    builtin and then its argument prototype would still apply.  */
3856 char FascistCheck ();
3857 int
3858 main ()
3859 {
3860 FascistCheck ();
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.$ac_objext conftest$ac_exeext
3866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3867   (eval $ac_link) 2>conftest.er1
3868   ac_status=$?
3869   grep -v '^ *+' conftest.er1 >conftest.err
3870   rm -f conftest.er1
3871   cat conftest.err >&5
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); } &&
3874          { ac_try='test -z "$ac_c_werror_flag"
3875                          || test ! -s conftest.err'
3876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877   (eval $ac_try) 2>&5
3878   ac_status=$?
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); }; } &&
3881          { ac_try='test -s conftest$ac_exeext'
3882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883   (eval $ac_try) 2>&5
3884   ac_status=$?
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); }; }; then
3887   ac_cv_lib_crack_FascistCheck=yes
3888 else
3889   echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 ac_cv_lib_crack_FascistCheck=no
3893 fi
3894 rm -f conftest.err conftest.$ac_objext \
3895       conftest$ac_exeext conftest.$ac_ext
3896 LIBS=$ac_check_lib_save_LIBS
3897 fi
3898 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistCheck" >&5
3899 echo "${ECHO_T}$ac_cv_lib_crack_FascistCheck" >&6
3900 if test $ac_cv_lib_crack_FascistCheck = yes; then
3901   HAVE_LIBCRACK=yes ; cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_LIBCRACK 1
3903 _ACEOF
3904
3905 else
3906   HAVE_LIBCRACK=no
3907 fi
3908
3909
3910
3911 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
3912 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
3913 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   ac_check_lib_save_LIBS=$LIBS
3917 LIBS="-lcrypt  $LIBS"
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924
3925 /* Override any gcc2 internal prototype to avoid an error.  */
3926 #ifdef __cplusplus
3927 extern "C"
3928 #endif
3929 /* We use char because int might match the return type of a gcc2
3930    builtin and then its argument prototype would still apply.  */
3931 char crypt ();
3932 int
3933 main ()
3934 {
3935 crypt ();
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 rm -f conftest.$ac_objext conftest$ac_exeext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942   (eval $ac_link) 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } &&
3949          { ac_try='test -z "$ac_c_werror_flag"
3950                          || test ! -s conftest.err'
3951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952   (eval $ac_try) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; } &&
3956          { ac_try='test -s conftest$ac_exeext'
3957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958   (eval $ac_try) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; }; then
3962   ac_cv_lib_crypt_crypt=yes
3963 else
3964   echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 ac_cv_lib_crypt_crypt=no
3968 fi
3969 rm -f conftest.err conftest.$ac_objext \
3970       conftest$ac_exeext conftest.$ac_ext
3971 LIBS=$ac_check_lib_save_LIBS
3972 fi
3973 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
3974 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
3975 if test $ac_cv_lib_crypt_crypt = yes; then
3976   HAVE_LIBCRYPT=yes ; cat >>confdefs.h <<\_ACEOF
3977 #define HAVE_LIBCRYPT 1
3978 _ACEOF
3979
3980 else
3981   HAVE_LIBCRYPT=no
3982 fi
3983
3984
3985 echo "$as_me:$LINENO: checking for logwtmp in -lutil" >&5
3986 echo $ECHO_N "checking for logwtmp in -lutil... $ECHO_C" >&6
3987 if test "${ac_cv_lib_util_logwtmp+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   ac_check_lib_save_LIBS=$LIBS
3991 LIBS="-lutil  $LIBS"
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h.  */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h.  */
3998
3999 /* Override any gcc2 internal prototype to avoid an error.  */
4000 #ifdef __cplusplus
4001 extern "C"
4002 #endif
4003 /* We use char because int might match the return type of a gcc2
4004    builtin and then its argument prototype would still apply.  */
4005 char logwtmp ();
4006 int
4007 main ()
4008 {
4009 logwtmp ();
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.$ac_objext conftest$ac_exeext
4015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4016   (eval $ac_link) 2>conftest.er1
4017   ac_status=$?
4018   grep -v '^ *+' conftest.er1 >conftest.err
4019   rm -f conftest.er1
4020   cat conftest.err >&5
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } &&
4023          { ac_try='test -z "$ac_c_werror_flag"
4024                          || test ! -s conftest.err'
4025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026   (eval $ac_try) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }; } &&
4030          { ac_try='test -s conftest$ac_exeext'
4031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032   (eval $ac_try) 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); }; }; then
4036   ac_cv_lib_util_logwtmp=yes
4037 else
4038   echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4040
4041 ac_cv_lib_util_logwtmp=no
4042 fi
4043 rm -f conftest.err conftest.$ac_objext \
4044       conftest$ac_exeext conftest.$ac_ext
4045 LIBS=$ac_check_lib_save_LIBS
4046 fi
4047 echo "$as_me:$LINENO: result: $ac_cv_lib_util_logwtmp" >&5
4048 echo "${ECHO_T}$ac_cv_lib_util_logwtmp" >&6
4049 if test $ac_cv_lib_util_logwtmp = yes; then
4050   HAVE_LIBUTIL=yes ; cat >>confdefs.h <<\_ACEOF
4051 #define HAVE_LIBUTIL 1
4052 _ACEOF
4053
4054 else
4055   HAVE_LIBUTIL=no
4056 fi
4057
4058
4059 echo "$as_me:$LINENO: checking for dbm_store in -lndbm" >&5
4060 echo $ECHO_N "checking for dbm_store in -lndbm... $ECHO_C" >&6
4061 if test "${ac_cv_lib_ndbm_dbm_store+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   ac_check_lib_save_LIBS=$LIBS
4065 LIBS="-lndbm  $LIBS"
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072
4073 /* Override any gcc2 internal prototype to avoid an error.  */
4074 #ifdef __cplusplus
4075 extern "C"
4076 #endif
4077 /* We use char because int might match the return type of a gcc2
4078    builtin and then its argument prototype would still apply.  */
4079 char dbm_store ();
4080 int
4081 main ()
4082 {
4083 dbm_store ();
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 rm -f conftest.$ac_objext conftest$ac_exeext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4090   (eval $ac_link) 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } &&
4097          { ac_try='test -z "$ac_c_werror_flag"
4098                          || test ! -s conftest.err'
4099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100   (eval $ac_try) 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; } &&
4104          { ac_try='test -s conftest$ac_exeext'
4105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106   (eval $ac_try) 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; }; then
4110   ac_cv_lib_ndbm_dbm_store=yes
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 ac_cv_lib_ndbm_dbm_store=no
4116 fi
4117 rm -f conftest.err conftest.$ac_objext \
4118       conftest$ac_exeext conftest.$ac_ext
4119 LIBS=$ac_check_lib_save_LIBS
4120 fi
4121 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_store" >&5
4122 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_store" >&6
4123 if test $ac_cv_lib_ndbm_dbm_store = yes; then
4124   HAVE_LIBNDBM=yes ; cat >>confdefs.h <<\_ACEOF
4125 #define HAVE_LIBNDBM 1
4126 _ACEOF
4127
4128 else
4129   HAVE_LIBNDBM=no
4130 fi
4131
4132
4133 echo "$as_me:$LINENO: checking for dbm_store in -ldb" >&5
4134 echo $ECHO_N "checking for dbm_store in -ldb... $ECHO_C" >&6
4135 if test "${ac_cv_lib_db_dbm_store+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138   ac_check_lib_save_LIBS=$LIBS
4139 LIBS="-ldb  $LIBS"
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146
4147 /* Override any gcc2 internal prototype to avoid an error.  */
4148 #ifdef __cplusplus
4149 extern "C"
4150 #endif
4151 /* We use char because int might match the return type of a gcc2
4152    builtin and then its argument prototype would still apply.  */
4153 char dbm_store ();
4154 int
4155 main ()
4156 {
4157 dbm_store ();
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164   (eval $ac_link) 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } &&
4171          { ac_try='test -z "$ac_c_werror_flag"
4172                          || test ! -s conftest.err'
4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174   (eval $ac_try) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; } &&
4178          { ac_try='test -s conftest$ac_exeext'
4179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180   (eval $ac_try) 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; }; then
4184   ac_cv_lib_db_dbm_store=yes
4185 else
4186   echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 ac_cv_lib_db_dbm_store=no
4190 fi
4191 rm -f conftest.err conftest.$ac_objext \
4192       conftest$ac_exeext conftest.$ac_ext
4193 LIBS=$ac_check_lib_save_LIBS
4194 fi
4195 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_store" >&5
4196 echo "${ECHO_T}$ac_cv_lib_db_dbm_store" >&6
4197 if test $ac_cv_lib_db_dbm_store = yes; then
4198   HAVE_LIBDB=yes ; cat >>confdefs.h <<\_ACEOF
4199 #define HAVE_LIBDB 1
4200 _ACEOF
4201
4202 else
4203   HAVE_LIBDB=no
4204 fi
4205
4206 if test x$HAVE_LIBDB != xyes ; then
4207         echo "$as_me:$LINENO: checking for db_create in -ldb" >&5
4208 echo $ECHO_N "checking for db_create in -ldb... $ECHO_C" >&6
4209 if test "${ac_cv_lib_db_db_create+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   ac_check_lib_save_LIBS=$LIBS
4213 LIBS="-ldb  $LIBS"
4214 cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220
4221 /* Override any gcc2 internal prototype to avoid an error.  */
4222 #ifdef __cplusplus
4223 extern "C"
4224 #endif
4225 /* We use char because int might match the return type of a gcc2
4226    builtin and then its argument prototype would still apply.  */
4227 char db_create ();
4228 int
4229 main ()
4230 {
4231 db_create ();
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 rm -f conftest.$ac_objext conftest$ac_exeext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4238   (eval $ac_link) 2>conftest.er1
4239   ac_status=$?
4240   grep -v '^ *+' conftest.er1 >conftest.err
4241   rm -f conftest.er1
4242   cat conftest.err >&5
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } &&
4245          { ac_try='test -z "$ac_c_werror_flag"
4246                          || test ! -s conftest.err'
4247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248   (eval $ac_try) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; } &&
4252          { ac_try='test -s conftest$ac_exeext'
4253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254   (eval $ac_try) 2>&5
4255   ac_status=$?
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); }; }; then
4258   ac_cv_lib_db_db_create=yes
4259 else
4260   echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 ac_cv_lib_db_db_create=no
4264 fi
4265 rm -f conftest.err conftest.$ac_objext \
4266       conftest$ac_exeext conftest.$ac_ext
4267 LIBS=$ac_check_lib_save_LIBS
4268 fi
4269 echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_create" >&5
4270 echo "${ECHO_T}$ac_cv_lib_db_db_create" >&6
4271 if test $ac_cv_lib_db_db_create = yes; then
4272   HAVE_LIBDB=yes ; cat >>confdefs.h <<\_ACEOF
4273 #define HAVE_LIBDB 1
4274 _ACEOF
4275
4276 else
4277   HAVE_LIBDB=no
4278 fi
4279
4280 fi
4281
4282 echo "$as_me:$LINENO: checking for yylex in -lfl" >&5
4283 echo $ECHO_N "checking for yylex in -lfl... $ECHO_C" >&6
4284 if test "${ac_cv_lib_fl_yylex+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   ac_check_lib_save_LIBS=$LIBS
4288 LIBS="-lfl HAVE_LIBFL=no $LIBS"
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295
4296 /* Override any gcc2 internal prototype to avoid an error.  */
4297 #ifdef __cplusplus
4298 extern "C"
4299 #endif
4300 /* We use char because int might match the return type of a gcc2
4301    builtin and then its argument prototype would still apply.  */
4302 char yylex ();
4303 int
4304 main ()
4305 {
4306 yylex ();
4307   ;
4308   return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest.$ac_objext conftest$ac_exeext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4313   (eval $ac_link) 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } &&
4320          { ac_try='test -z "$ac_c_werror_flag"
4321                          || test ! -s conftest.err'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; } &&
4327          { ac_try='test -s conftest$ac_exeext'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   ac_cv_lib_fl_yylex=yes
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 ac_cv_lib_fl_yylex=no
4339 fi
4340 rm -f conftest.err conftest.$ac_objext \
4341       conftest$ac_exeext conftest.$ac_ext
4342 LIBS=$ac_check_lib_save_LIBS
4343 fi
4344 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yylex" >&5
4345 echo "${ECHO_T}$ac_cv_lib_fl_yylex" >&6
4346 if test $ac_cv_lib_fl_yylex = yes; then
4347   yyterminate
4348 else
4349   HAVE_LIBFL=yes ; cat >>confdefs.h <<\_ACEOF
4350 #define HAVE_LIBFL 1
4351 _ACEOF
4352
4353 fi
4354
4355
4356 echo "$as_me:$LINENO: checking for yp_maplist in -lnsl" >&5
4357 echo $ECHO_N "checking for yp_maplist in -lnsl... $ECHO_C" >&6
4358 if test "${ac_cv_lib_nsl_yp_maplist+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   ac_check_lib_save_LIBS=$LIBS
4362 LIBS="-lnsl  $LIBS"
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369
4370 /* Override any gcc2 internal prototype to avoid an error.  */
4371 #ifdef __cplusplus
4372 extern "C"
4373 #endif
4374 /* We use char because int might match the return type of a gcc2
4375    builtin and then its argument prototype would still apply.  */
4376 char yp_maplist ();
4377 int
4378 main ()
4379 {
4380 yp_maplist ();
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387   (eval $ac_link) 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -z "$ac_c_werror_flag"
4395                          || test ! -s conftest.err'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; } &&
4401          { ac_try='test -s conftest$ac_exeext'
4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403   (eval $ac_try) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   ac_cv_lib_nsl_yp_maplist=yes
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ac_cv_lib_nsl_yp_maplist=no
4413 fi
4414 rm -f conftest.err conftest.$ac_objext \
4415       conftest$ac_exeext conftest.$ac_ext
4416 LIBS=$ac_check_lib_save_LIBS
4417 fi
4418 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_maplist" >&5
4419 echo "${ECHO_T}$ac_cv_lib_nsl_yp_maplist" >&6
4420 if test $ac_cv_lib_nsl_yp_maplist = yes; then
4421   HAVE_LIBNSL=yes ; cat >>confdefs.h <<\_ACEOF
4422 #define HAVE_LIBNSL 1
4423 _ACEOF
4424
4425 else
4426   HAVE_LIBNSL=no
4427 fi
4428
4429
4430
4431 if test $HAVE_LIBNSL = yes ; then
4432         pwdblibs="$pwdblibs -lnsl"
4433 fi
4434 echo "$as_me:$LINENO: checking for pwdb_db_name in -lpwdb" >&5
4435 echo $ECHO_N "checking for pwdb_db_name in -lpwdb... $ECHO_C" >&6
4436 if test "${ac_cv_lib_pwdb_pwdb_db_name+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   ac_check_lib_save_LIBS=$LIBS
4440 LIBS="-lpwdb $pwdblibs $LIBS"
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447
4448 /* Override any gcc2 internal prototype to avoid an error.  */
4449 #ifdef __cplusplus
4450 extern "C"
4451 #endif
4452 /* We use char because int might match the return type of a gcc2
4453    builtin and then its argument prototype would still apply.  */
4454 char pwdb_db_name ();
4455 int
4456 main ()
4457 {
4458 pwdb_db_name ();
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465   (eval $ac_link) 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } &&
4472          { ac_try='test -z "$ac_c_werror_flag"
4473                          || test ! -s conftest.err'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; } &&
4479          { ac_try='test -s conftest$ac_exeext'
4480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481   (eval $ac_try) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; }; then
4485   ac_cv_lib_pwdb_pwdb_db_name=yes
4486 else
4487   echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 ac_cv_lib_pwdb_pwdb_db_name=no
4491 fi
4492 rm -f conftest.err conftest.$ac_objext \
4493       conftest$ac_exeext conftest.$ac_ext
4494 LIBS=$ac_check_lib_save_LIBS
4495 fi
4496 echo "$as_me:$LINENO: result: $ac_cv_lib_pwdb_pwdb_db_name" >&5
4497 echo "${ECHO_T}$ac_cv_lib_pwdb_pwdb_db_name" >&6
4498 if test $ac_cv_lib_pwdb_pwdb_db_name = yes; then
4499   HAVE_LIBPWDB=yes ; cat >>confdefs.h <<\_ACEOF
4500 #define HAVE_LIBPWDB 1
4501 _ACEOF
4502
4503 else
4504   HAVE_LIBPWDB=no
4505 fi
4506
4507
4508 unset pwdblibs
4509
4510 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4511 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4512 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   ac_check_lib_save_LIBS=$LIBS
4516 LIBS="-lfl  $LIBS"
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523
4524 /* Override any gcc2 internal prototype to avoid an error.  */
4525 #ifdef __cplusplus
4526 extern "C"
4527 #endif
4528 /* We use char because int might match the return type of a gcc2
4529    builtin and then its argument prototype would still apply.  */
4530 char yywrap ();
4531 int
4532 main ()
4533 {
4534 yywrap ();
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext conftest$ac_exeext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541   (eval $ac_link) 2>conftest.er1
4542   ac_status=$?
4543   grep -v '^ *+' conftest.er1 >conftest.err
4544   rm -f conftest.er1
4545   cat conftest.err >&5
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } &&
4548          { ac_try='test -z "$ac_c_werror_flag"
4549                          || test ! -s conftest.err'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest$ac_exeext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   ac_cv_lib_fl_yywrap=yes
4562 else
4563   echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 ac_cv_lib_fl_yywrap=no
4567 fi
4568 rm -f conftest.err conftest.$ac_objext \
4569       conftest$ac_exeext conftest.$ac_ext
4570 LIBS=$ac_check_lib_save_LIBS
4571 fi
4572 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4573 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4574 if test $ac_cv_lib_fl_yywrap = yes; then
4575   HAVE_LIBFLEX=yes ; cat >>confdefs.h <<\_ACEOF
4576 #define HAVE_LIBFLEX 1
4577 _ACEOF
4578
4579 else
4580   HAVE_LIBFLEX=no
4581 fi
4582
4583
4584 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4585 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4586 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   ac_check_lib_save_LIBS=$LIBS
4590 LIBS="-ll  $LIBS"
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597
4598 /* Override any gcc2 internal prototype to avoid an error.  */
4599 #ifdef __cplusplus
4600 extern "C"
4601 #endif
4602 /* We use char because int might match the return type of a gcc2
4603    builtin and then its argument prototype would still apply.  */
4604 char yywrap ();
4605 int
4606 main ()
4607 {
4608 yywrap ();
4609   ;
4610   return 0;
4611 }
4612 _ACEOF
4613 rm -f conftest.$ac_objext conftest$ac_exeext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4615   (eval $ac_link) 2>conftest.er1
4616   ac_status=$?
4617   grep -v '^ *+' conftest.er1 >conftest.err
4618   rm -f conftest.er1
4619   cat conftest.err >&5
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } &&
4622          { ac_try='test -z "$ac_c_werror_flag"
4623                          || test ! -s conftest.err'
4624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625   (eval $ac_try) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; } &&
4629          { ac_try='test -s conftest$ac_exeext'
4630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631   (eval $ac_try) 2>&5
4632   ac_status=$?
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); }; }; then
4635   ac_cv_lib_l_yywrap=yes
4636 else
4637   echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640 ac_cv_lib_l_yywrap=no
4641 fi
4642 rm -f conftest.err conftest.$ac_objext \
4643       conftest$ac_exeext conftest.$ac_ext
4644 LIBS=$ac_check_lib_save_LIBS
4645 fi
4646 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4647 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4648 if test $ac_cv_lib_l_yywrap = yes; then
4649   HAVE_LIBLEX=yes ; cat >>confdefs.h <<\_ACEOF
4650 #define HAVE_LIBLEX 1
4651 _ACEOF
4652
4653 else
4654   HAVE_LIBLEX=no
4655 fi
4656
4657
4658
4659
4660
4661
4662
4663
4664 ac_header_dirent=no
4665 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4666   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4667 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4668 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h.  */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h.  */
4678 #include <sys/types.h>
4679 #include <$ac_hdr>
4680
4681 int
4682 main ()
4683 {
4684 if ((DIR *) 0)
4685 return 0;
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692   (eval $ac_compile) 2>conftest.er1
4693   ac_status=$?
4694   grep -v '^ *+' conftest.er1 >conftest.err
4695   rm -f conftest.er1
4696   cat conftest.err >&5
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); } &&
4699          { ac_try='test -z "$ac_c_werror_flag"
4700                          || test ! -s conftest.err'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; } &&
4706          { ac_try='test -s conftest.$ac_objext'
4707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708   (eval $ac_try) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }; }; then
4712   eval "$as_ac_Header=yes"
4713 else
4714   echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 eval "$as_ac_Header=no"
4718 fi
4719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4724   cat >>confdefs.h <<_ACEOF
4725 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4726 _ACEOF
4727
4728 ac_header_dirent=$ac_hdr; break
4729 fi
4730
4731 done
4732 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4733 if test $ac_header_dirent = dirent.h; then
4734   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4736 if test "${ac_cv_search_opendir+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   ac_func_search_save_LIBS=$LIBS
4740 ac_cv_search_opendir=no
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747
4748 /* Override any gcc2 internal prototype to avoid an error.  */
4749 #ifdef __cplusplus
4750 extern "C"
4751 #endif
4752 /* We use char because int might match the return type of a gcc2
4753    builtin and then its argument prototype would still apply.  */
4754 char opendir ();
4755 int
4756 main ()
4757 {
4758 opendir ();
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 rm -f conftest.$ac_objext conftest$ac_exeext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4765   (eval $ac_link) 2>conftest.er1
4766   ac_status=$?
4767   grep -v '^ *+' conftest.er1 >conftest.err
4768   rm -f conftest.er1
4769   cat conftest.err >&5
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); } &&
4772          { ac_try='test -z "$ac_c_werror_flag"
4773                          || test ! -s conftest.err'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; } &&
4779          { ac_try='test -s conftest$ac_exeext'
4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781   (eval $ac_try) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); }; }; then
4785   ac_cv_search_opendir="none required"
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 fi
4791 rm -f conftest.err conftest.$ac_objext \
4792       conftest$ac_exeext conftest.$ac_ext
4793 if test "$ac_cv_search_opendir" = no; then
4794   for ac_lib in dir; do
4795     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4796     cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802
4803 /* Override any gcc2 internal prototype to avoid an error.  */
4804 #ifdef __cplusplus
4805 extern "C"
4806 #endif
4807 /* We use char because int might match the return type of a gcc2
4808    builtin and then its argument prototype would still apply.  */
4809 char opendir ();
4810 int
4811 main ()
4812 {
4813 opendir ();
4814   ;
4815   return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext conftest$ac_exeext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4820   (eval $ac_link) 2>conftest.er1
4821   ac_status=$?
4822   grep -v '^ *+' conftest.er1 >conftest.err
4823   rm -f conftest.er1
4824   cat conftest.err >&5
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); } &&
4827          { ac_try='test -z "$ac_c_werror_flag"
4828                          || test ! -s conftest.err'
4829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830   (eval $ac_try) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; } &&
4834          { ac_try='test -s conftest$ac_exeext'
4835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836   (eval $ac_try) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; }; then
4840   ac_cv_search_opendir="-l$ac_lib"
4841 break
4842 else
4843   echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 fi
4847 rm -f conftest.err conftest.$ac_objext \
4848       conftest$ac_exeext conftest.$ac_ext
4849   done
4850 fi
4851 LIBS=$ac_func_search_save_LIBS
4852 fi
4853 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4854 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4855 if test "$ac_cv_search_opendir" != no; then
4856   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4857
4858 fi
4859
4860 else
4861   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4862 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4863 if test "${ac_cv_search_opendir+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   ac_func_search_save_LIBS=$LIBS
4867 ac_cv_search_opendir=no
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874
4875 /* Override any gcc2 internal prototype to avoid an error.  */
4876 #ifdef __cplusplus
4877 extern "C"
4878 #endif
4879 /* We use char because int might match the return type of a gcc2
4880    builtin and then its argument prototype would still apply.  */
4881 char opendir ();
4882 int
4883 main ()
4884 {
4885 opendir ();
4886   ;
4887   return 0;
4888 }
4889 _ACEOF
4890 rm -f conftest.$ac_objext conftest$ac_exeext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4892   (eval $ac_link) 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } &&
4899          { ac_try='test -z "$ac_c_werror_flag"
4900                          || test ! -s conftest.err'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; } &&
4906          { ac_try='test -s conftest$ac_exeext'
4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908   (eval $ac_try) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }; }; then
4912   ac_cv_search_opendir="none required"
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 fi
4918 rm -f conftest.err conftest.$ac_objext \
4919       conftest$ac_exeext conftest.$ac_ext
4920 if test "$ac_cv_search_opendir" = no; then
4921   for ac_lib in x; do
4922     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4923     cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h.  */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h.  */
4929
4930 /* Override any gcc2 internal prototype to avoid an error.  */
4931 #ifdef __cplusplus
4932 extern "C"
4933 #endif
4934 /* We use char because int might match the return type of a gcc2
4935    builtin and then its argument prototype would still apply.  */
4936 char opendir ();
4937 int
4938 main ()
4939 {
4940 opendir ();
4941   ;
4942   return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext conftest$ac_exeext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4947   (eval $ac_link) 2>conftest.er1
4948   ac_status=$?
4949   grep -v '^ *+' conftest.er1 >conftest.err
4950   rm -f conftest.er1
4951   cat conftest.err >&5
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); } &&
4954          { ac_try='test -z "$ac_c_werror_flag"
4955                          || test ! -s conftest.err'
4956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957   (eval $ac_try) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; } &&
4961          { ac_try='test -s conftest$ac_exeext'
4962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963   (eval $ac_try) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); }; }; then
4967   ac_cv_search_opendir="-l$ac_lib"
4968 break
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 fi
4974 rm -f conftest.err conftest.$ac_objext \
4975       conftest$ac_exeext conftest.$ac_ext
4976   done
4977 fi
4978 LIBS=$ac_func_search_save_LIBS
4979 fi
4980 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4981 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4982 if test "$ac_cv_search_opendir" != no; then
4983   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4984
4985 fi
4986
4987 fi
4988
4989 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4990 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4991 if test "${ac_cv_header_stdc+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000 #include <stdlib.h>
5001 #include <stdarg.h>
5002 #include <string.h>
5003 #include <float.h>
5004
5005 int
5006 main ()
5007 {
5008
5009   ;
5010   return 0;
5011 }
5012 _ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015   (eval $ac_compile) 2>conftest.er1
5016   ac_status=$?
5017   grep -v '^ *+' conftest.er1 >conftest.err
5018   rm -f conftest.er1
5019   cat conftest.err >&5
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } &&
5022          { ac_try='test -z "$ac_c_werror_flag"
5023                          || test ! -s conftest.err'
5024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025   (eval $ac_try) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); }; } &&
5029          { ac_try='test -s conftest.$ac_objext'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; }; then
5035   ac_cv_header_stdc=yes
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 ac_cv_header_stdc=no
5041 fi
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5043
5044 if test $ac_cv_header_stdc = yes; then
5045   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5046   cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h.  */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h.  */
5052 #include <string.h>
5053
5054 _ACEOF
5055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5056   $EGREP "memchr" >/dev/null 2>&1; then
5057   :
5058 else
5059   ac_cv_header_stdc=no
5060 fi
5061 rm -f conftest*
5062
5063 fi
5064
5065 if test $ac_cv_header_stdc = yes; then
5066   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5067   cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 #include <stdlib.h>
5074
5075 _ACEOF
5076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5077   $EGREP "free" >/dev/null 2>&1; then
5078   :
5079 else
5080   ac_cv_header_stdc=no
5081 fi
5082 rm -f conftest*
5083
5084 fi
5085
5086 if test $ac_cv_header_stdc = yes; then
5087   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5088   if test "$cross_compiling" = yes; then
5089   :
5090 else
5091   cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 #include <ctype.h>
5098 #if ((' ' & 0x0FF) == 0x020)
5099 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5100 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5101 #else
5102 # define ISLOWER(c) \
5103                    (('a' <= (c) && (c) <= 'i') \
5104                      || ('j' <= (c) && (c) <= 'r') \
5105                      || ('s' <= (c) && (c) <= 'z'))
5106 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5107 #endif
5108
5109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5110 int
5111 main ()
5112 {
5113   int i;
5114   for (i = 0; i < 256; i++)
5115     if (XOR (islower (i), ISLOWER (i))
5116         || toupper (i) != TOUPPER (i))
5117       exit(2);
5118   exit (0);
5119 }
5120 _ACEOF
5121 rm -f conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123   (eval $ac_link) 2>&5
5124   ac_status=$?
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128   (eval $ac_try) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; }; then
5132   :
5133 else
5134   echo "$as_me: program exited with status $ac_status" >&5
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138 ( exit $ac_status )
5139 ac_cv_header_stdc=no
5140 fi
5141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5142 fi
5143 fi
5144 fi
5145 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5146 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5147 if test $ac_cv_header_stdc = yes; then
5148
5149 cat >>confdefs.h <<\_ACEOF
5150 #define STDC_HEADERS 1
5151 _ACEOF
5152
5153 fi
5154
5155 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5156 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5157 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166 #include <sys/types.h>
5167 #include <sys/wait.h>
5168 #ifndef WEXITSTATUS
5169 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5170 #endif
5171 #ifndef WIFEXITED
5172 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5173 #endif
5174
5175 int
5176 main ()
5177 {
5178   int s;
5179   wait (&s);
5180   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187   (eval $ac_compile) 2>conftest.er1
5188   ac_status=$?
5189   grep -v '^ *+' conftest.er1 >conftest.err
5190   rm -f conftest.er1
5191   cat conftest.err >&5
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); } &&
5194          { ac_try='test -z "$ac_c_werror_flag"
5195                          || test ! -s conftest.err'
5196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197   (eval $ac_try) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }; } &&
5201          { ac_try='test -s conftest.$ac_objext'
5202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203   (eval $ac_try) 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); }; }; then
5207   ac_cv_header_sys_wait_h=yes
5208 else
5209   echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5211
5212 ac_cv_header_sys_wait_h=no
5213 fi
5214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5215 fi
5216 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5217 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5218 if test $ac_cv_header_sys_wait_h = yes; then
5219
5220 cat >>confdefs.h <<\_ACEOF
5221 #define HAVE_SYS_WAIT_H 1
5222 _ACEOF
5223
5224 fi
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236 for ac_header in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h sys/fsuid.h
5237 do
5238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5240   echo "$as_me:$LINENO: checking for $ac_header" >&5
5241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 fi
5245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5247 else
5248   # Is the header compilable?
5249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257 $ac_includes_default
5258 #include <$ac_header>
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262   (eval $ac_compile) 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -z "$ac_c_werror_flag"
5270                          || test ! -s conftest.err'
5271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272   (eval $ac_try) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; } &&
5276          { ac_try='test -s conftest.$ac_objext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   ac_header_compiler=yes
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_header_compiler=no
5288 fi
5289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5291 echo "${ECHO_T}$ac_header_compiler" >&6
5292
5293 # Is the header present?
5294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h.  */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h.  */
5302 #include <$ac_header>
5303 _ACEOF
5304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } >/dev/null; then
5312   if test -s conftest.err; then
5313     ac_cpp_err=$ac_c_preproc_warn_flag
5314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315   else
5316     ac_cpp_err=
5317   fi
5318 else
5319   ac_cpp_err=yes
5320 fi
5321 if test -z "$ac_cpp_err"; then
5322   ac_header_preproc=yes
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327   ac_header_preproc=no
5328 fi
5329 rm -f conftest.err conftest.$ac_ext
5330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5331 echo "${ECHO_T}$ac_header_preproc" >&6
5332
5333 # So?  What about this header?
5334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5335   yes:no: )
5336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5340     ac_header_preproc=yes
5341     ;;
5342   no:yes:* )
5343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5355     (
5356       cat <<\_ASBOX
5357 ## ------------------------------------------ ##
5358 ## Report this to the AC_PACKAGE_NAME lists.  ##
5359 ## ------------------------------------------ ##
5360 _ASBOX
5361     ) |
5362       sed "s/^/$as_me: WARNING:     /" >&2
5363     ;;
5364 esac
5365 echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370   eval "$as_ac_Header=\$ac_header_preproc"
5371 fi
5372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5374
5375 fi
5376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5377   cat >>confdefs.h <<_ACEOF
5378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5379 _ACEOF
5380
5381 fi
5382
5383 done
5384
5385
5386
5387 for ac_header in features.h
5388 do
5389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5391   echo "$as_me:$LINENO: checking for $ac_header" >&5
5392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 fi
5396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5398 else
5399   # Is the header compilable?
5400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h.  */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h.  */
5408 $ac_includes_default
5409 #include <$ac_header>
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413   (eval $ac_compile) 2>conftest.er1
5414   ac_status=$?
5415   grep -v '^ *+' conftest.er1 >conftest.err
5416   rm -f conftest.er1
5417   cat conftest.err >&5
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); } &&
5420          { ac_try='test -z "$ac_c_werror_flag"
5421                          || test ! -s conftest.err'
5422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423   (eval $ac_try) 2>&5
5424   ac_status=$?
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); }; } &&
5427          { ac_try='test -s conftest.$ac_objext'
5428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429   (eval $ac_try) 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); }; }; then
5433   ac_header_compiler=yes
5434 else
5435   echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438 ac_header_compiler=no
5439 fi
5440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5442 echo "${ECHO_T}$ac_header_compiler" >&6
5443
5444 # Is the header present?
5445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h.  */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h.  */
5453 #include <$ac_header>
5454 _ACEOF
5455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5457   ac_status=$?
5458   grep -v '^ *+' conftest.er1 >conftest.err
5459   rm -f conftest.er1
5460   cat conftest.err >&5
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } >/dev/null; then
5463   if test -s conftest.err; then
5464     ac_cpp_err=$ac_c_preproc_warn_flag
5465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5466   else
5467     ac_cpp_err=
5468   fi
5469 else
5470   ac_cpp_err=yes
5471 fi
5472 if test -z "$ac_cpp_err"; then
5473   ac_header_preproc=yes
5474 else
5475   echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478   ac_header_preproc=no
5479 fi
5480 rm -f conftest.err conftest.$ac_ext
5481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5482 echo "${ECHO_T}$ac_header_preproc" >&6
5483
5484 # So?  What about this header?
5485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5486   yes:no: )
5487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5491     ac_header_preproc=yes
5492     ;;
5493   no:yes:* )
5494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5506     (
5507       cat <<\_ASBOX
5508 ## ------------------------------------------ ##
5509 ## Report this to the AC_PACKAGE_NAME lists.  ##
5510 ## ------------------------------------------ ##
5511 _ASBOX
5512     ) |
5513       sed "s/^/$as_me: WARNING:     /" >&2
5514     ;;
5515 esac
5516 echo "$as_me:$LINENO: checking for $ac_header" >&5
5517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   eval "$as_ac_Header=\$ac_header_preproc"
5522 fi
5523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5525
5526 fi
5527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5528   cat >>confdefs.h <<_ACEOF
5529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5530 _ACEOF
5531
5532 fi
5533
5534 done
5535
5536
5537
5538 for ac_header in crypt.h
5539 do
5540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542   echo "$as_me:$LINENO: checking for $ac_header" >&5
5543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 fi
5547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5549 else
5550   # Is the header compilable?
5551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559 $ac_includes_default
5560 #include <$ac_header>
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564   (eval $ac_compile) 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } &&
5571          { ac_try='test -z "$ac_c_werror_flag"
5572                          || test ! -s conftest.err'
5573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574   (eval $ac_try) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }; } &&
5578          { ac_try='test -s conftest.$ac_objext'
5579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580   (eval $ac_try) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; }; then
5584   ac_header_compiler=yes
5585 else
5586   echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589 ac_header_compiler=no
5590 fi
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5593 echo "${ECHO_T}$ac_header_compiler" >&6
5594
5595 # Is the header present?
5596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604 #include <$ac_header>
5605 _ACEOF
5606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5607   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5608   ac_status=$?
5609   grep -v '^ *+' conftest.er1 >conftest.err
5610   rm -f conftest.er1
5611   cat conftest.err >&5
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } >/dev/null; then
5614   if test -s conftest.err; then
5615     ac_cpp_err=$ac_c_preproc_warn_flag
5616     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5617   else
5618     ac_cpp_err=
5619   fi
5620 else
5621   ac_cpp_err=yes
5622 fi
5623 if test -z "$ac_cpp_err"; then
5624   ac_header_preproc=yes
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629   ac_header_preproc=no
5630 fi
5631 rm -f conftest.err conftest.$ac_ext
5632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5633 echo "${ECHO_T}$ac_header_preproc" >&6
5634
5635 # So?  What about this header?
5636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5637   yes:no: )
5638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5642     ac_header_preproc=yes
5643     ;;
5644   no:yes:* )
5645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5657     (
5658       cat <<\_ASBOX
5659 ## ------------------------------------------ ##
5660 ## Report this to the AC_PACKAGE_NAME lists.  ##
5661 ## ------------------------------------------ ##
5662 _ASBOX
5663     ) |
5664       sed "s/^/$as_me: WARNING:     /" >&2
5665     ;;
5666 esac
5667 echo "$as_me:$LINENO: checking for $ac_header" >&5
5668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   eval "$as_ac_Header=\$ac_header_preproc"
5673 fi
5674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5676
5677 fi
5678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5679   cat >>confdefs.h <<_ACEOF
5680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5681 _ACEOF
5682
5683 fi
5684
5685 done
5686
5687
5688
5689
5690 for ac_header in ndbm.h db.h
5691 do
5692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5694   echo "$as_me:$LINENO: checking for $ac_header" >&5
5695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 fi
5699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701 else
5702   # Is the header compilable?
5703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711 $ac_includes_default
5712 #include <$ac_header>
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716   (eval $ac_compile) 2>conftest.er1
5717   ac_status=$?
5718   grep -v '^ *+' conftest.er1 >conftest.err
5719   rm -f conftest.er1
5720   cat conftest.err >&5
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } &&
5723          { ac_try='test -z "$ac_c_werror_flag"
5724                          || test ! -s conftest.err'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; } &&
5730          { ac_try='test -s conftest.$ac_objext'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; }; then
5736   ac_header_compiler=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_header_compiler=no
5742 fi
5743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5745 echo "${ECHO_T}$ac_header_compiler" >&6
5746
5747 # Is the header present?
5748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 #include <$ac_header>
5757 _ACEOF
5758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5760   ac_status=$?
5761   grep -v '^ *+' conftest.er1 >conftest.err
5762   rm -f conftest.er1
5763   cat conftest.err >&5
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); } >/dev/null; then
5766   if test -s conftest.err; then
5767     ac_cpp_err=$ac_c_preproc_warn_flag
5768     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5769   else
5770     ac_cpp_err=
5771   fi
5772 else
5773   ac_cpp_err=yes
5774 fi
5775 if test -z "$ac_cpp_err"; then
5776   ac_header_preproc=yes
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5780
5781   ac_header_preproc=no
5782 fi
5783 rm -f conftest.err conftest.$ac_ext
5784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5785 echo "${ECHO_T}$ac_header_preproc" >&6
5786
5787 # So?  What about this header?
5788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5789   yes:no: )
5790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5794     ac_header_preproc=yes
5795     ;;
5796   no:yes:* )
5797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5809     (
5810       cat <<\_ASBOX
5811 ## ------------------------------------------ ##
5812 ## Report this to the AC_PACKAGE_NAME lists.  ##
5813 ## ------------------------------------------ ##
5814 _ASBOX
5815     ) |
5816       sed "s/^/$as_me: WARNING:     /" >&2
5817     ;;
5818 esac
5819 echo "$as_me:$LINENO: checking for $ac_header" >&5
5820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824   eval "$as_ac_Header=\$ac_header_preproc"
5825 fi
5826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5828
5829 fi
5830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5831   cat >>confdefs.h <<_ACEOF
5832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5833 _ACEOF
5834
5835 fi
5836
5837 done
5838
5839 HAVE_NDBM_H=$ac_cv_header_ndbm_h
5840
5841
5842
5843
5844
5845 for ac_header in lastlog.h utmp.h utmpx.h
5846 do
5847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5849   echo "$as_me:$LINENO: checking for $ac_header" >&5
5850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 fi
5854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5856 else
5857   # Is the header compilable?
5858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866 $ac_includes_default
5867 #include <$ac_header>
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871   (eval $ac_compile) 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -z "$ac_c_werror_flag"
5879                          || test ! -s conftest.err'
5880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881   (eval $ac_try) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; } &&
5885          { ac_try='test -s conftest.$ac_objext'
5886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887   (eval $ac_try) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); }; }; then
5891   ac_header_compiler=yes
5892 else
5893   echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896 ac_header_compiler=no
5897 fi
5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5900 echo "${ECHO_T}$ac_header_compiler" >&6
5901
5902 # Is the header present?
5903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h.  */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h.  */
5911 #include <$ac_header>
5912 _ACEOF
5913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5915   ac_status=$?
5916   grep -v '^ *+' conftest.er1 >conftest.err
5917   rm -f conftest.er1
5918   cat conftest.err >&5
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); } >/dev/null; then
5921   if test -s conftest.err; then
5922     ac_cpp_err=$ac_c_preproc_warn_flag
5923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5924   else
5925     ac_cpp_err=
5926   fi
5927 else
5928   ac_cpp_err=yes
5929 fi
5930 if test -z "$ac_cpp_err"; then
5931   ac_header_preproc=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936   ac_header_preproc=no
5937 fi
5938 rm -f conftest.err conftest.$ac_ext
5939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5940 echo "${ECHO_T}$ac_header_preproc" >&6
5941
5942 # So?  What about this header?
5943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5944   yes:no: )
5945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5949     ac_header_preproc=yes
5950     ;;
5951   no:yes:* )
5952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5964     (
5965       cat <<\_ASBOX
5966 ## ------------------------------------------ ##
5967 ## Report this to the AC_PACKAGE_NAME lists.  ##
5968 ## ------------------------------------------ ##
5969 _ASBOX
5970     ) |
5971       sed "s/^/$as_me: WARNING:     /" >&2
5972     ;;
5973 esac
5974 echo "$as_me:$LINENO: checking for $ac_header" >&5
5975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   eval "$as_ac_Header=\$ac_header_preproc"
5980 fi
5981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5983
5984 fi
5985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5986   cat >>confdefs.h <<_ACEOF
5987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5988 _ACEOF
5989
5990 fi
5991
5992 done
5993
5994
5995
5996 echo "$as_me:$LINENO: checking path to cracklib dictionary" >&5
5997 echo $ECHO_N "checking path to cracklib dictionary... $ECHO_C" >&6
5998 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
5999   /usr/local/lib /usr/local/share/lib"
6000 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
6001 CRACKLIB_DICTPATH=""
6002 for d in $DICT_DIR_CANDIDATES ; do
6003       for f in $DICT_FILE_CANDIDATES ; do
6004               if test -r $d/$f.hwm ; then
6005                       CRACKLIB_DICTPATH=$d/$f
6006                       break 2
6007               elif test -r $d/dict/$f.hwm ; then
6008                       CRACKLIB_DICTPATH=$d/dict/$f
6009                       break 2
6010               fi
6011       done
6012 done
6013 if test -z "$CRACKLIB_DICTPATH" ; then
6014       { echo "$as_me:$LINENO: WARNING: none found - pam_cracklib will not be built" >&5
6015 echo "$as_me: WARNING: none found - pam_cracklib will not be built" >&2;}
6016 else
6017       echo "$as_me:$LINENO: result: $CRACKLIB_DICTPATH" >&5
6018 echo "${ECHO_T}$CRACKLIB_DICTPATH" >&6
6019 fi
6020
6021
6022
6023 GCC_WARNINGS="-Wall -Wwrite-strings \
6024         -Wpointer-arith -Wcast-qual -Wcast-align \
6025         -Wstrict-prototypes -Wmissing-prototypes \
6026         -Wnested-externs -Winline -Wshadow"
6027
6028 if test "$GCC" = yes; then
6029         CC=gcc                          ;
6030 ### May need per-OS attention
6031 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
6032         case $OS in
6033         linux)
6034                 OS_CFLAGS=
6035                 LD_D="$CC -shared $LDFLAGS"
6036                 WARNINGS="$GCC_WARNINGS"
6037                 PIC="-fPIC"
6038                 DYNTYPE=so
6039                 LD=gcc
6040                 LD_L="$CC -shared $LDFLAGS"
6041                 RANLIB=:
6042                 STRIP=strip
6043                 CC_STATIC="-Xlinker -export-dynamic"
6044                 ;;
6045         sunos)
6046                 OS_CFLAGS="-ansi -pedantic"
6047                 LD_D="gcc -shared -Xlinker -x"
6048                 WARNINGS="$GCC_WARNINGS"
6049                 PIC="-fPIC"
6050                 DYNTYPE=so
6051                 LD=ld
6052                 LD_L="$LD -x -shared"
6053                 RANLIB=ranlib
6054                 STRIP=strip
6055                 CC_STATIC="-Xlinker -export-dynamic"
6056                 ;;
6057         aix)
6058                 OS_CFLAGS=""
6059                 DYNTYPE=lo
6060                 LD=ld
6061                 LD_L=ld -bexpall -bM:SRE -bnoentry
6062                 LD_D="$LD_L"
6063                 RANLIB=ranlib
6064                 STRIP=strip
6065                 ;;
6066         *)
6067                 OS_CFLAGS=""
6068                 ;;
6069         esac
6070 else
6071 ###
6072 ### Non-gcc needs attention on per-OS basis
6073 ###
6074         case "$OS" in
6075         darwin)
6076 # add some stuff here (see sourceforge bug 534205)
6077 # DOCDIR=/System/Documentation/Administration/Libraries/PAM
6078 # MANDIR=/usr/share/man
6079                 ;;
6080         solaris)
6081             ### Support for Solaris-C
6082             OS_CFLAGS=""
6083             WARNINGS=""
6084             PIC="-K pic"
6085             LD=ld
6086             LD_D="cc -z text -G -R."
6087             LD_L="$LD_D"
6088             RANLIB=ranlib
6089             STRIP=strip
6090             CC_STATIC=
6091             ;;
6092         irix*)
6093             OSRELEASE=`uname -r`
6094             if test "$OSRELEASE" = 6.5; then
6095                 OS_CFLAGS=""
6096                 WARNINGS="-fullwarn"
6097                 PIC=                    #PIC code is default for IRIX
6098                 LD="cc -shared"         # modules friendly approach
6099                 LD_D="cc -shared"
6100                 LD_L="ld -G -z redlocsym"
6101                 RANLIB=echo
6102                 STRIP=strip
6103                 CC_STATIC=
6104             else
6105                 echo "IRIX prior to 6.5 not allowed for"
6106                 exit
6107             fi
6108             ;;
6109        *) echo "Native compiler on $OS is not yet supported"
6110                exit
6111             ;;
6112        esac
6113 fi
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6127 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6128 if test "${ac_cv_c_bigendian+set}" = set; then
6129   echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131   # See if sys/param.h defines the BYTE_ORDER macro.
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h.  */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h.  */
6138 #include <sys/types.h>
6139 #include <sys/param.h>
6140
6141 int
6142 main ()
6143 {
6144 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6145  bogus endian macros
6146 #endif
6147
6148   ;
6149   return 0;
6150 }
6151 _ACEOF
6152 rm -f conftest.$ac_objext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6154   (eval $ac_compile) 2>conftest.er1
6155   ac_status=$?
6156   grep -v '^ *+' conftest.er1 >conftest.err
6157   rm -f conftest.er1
6158   cat conftest.err >&5
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } &&
6161          { ac_try='test -z "$ac_c_werror_flag"
6162                          || test ! -s conftest.err'
6163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164   (eval $ac_try) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); }; } &&
6168          { ac_try='test -s conftest.$ac_objext'
6169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170   (eval $ac_try) 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); }; }; then
6174   # It does; now see whether it defined to BIG_ENDIAN or not.
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h.  */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h.  */
6181 #include <sys/types.h>
6182 #include <sys/param.h>
6183
6184 int
6185 main ()
6186 {
6187 #if BYTE_ORDER != BIG_ENDIAN
6188  not big endian
6189 #endif
6190
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197   (eval $ac_compile) 2>conftest.er1
6198   ac_status=$?
6199   grep -v '^ *+' conftest.er1 >conftest.err
6200   rm -f conftest.er1
6201   cat conftest.err >&5
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -z "$ac_c_werror_flag"
6205                          || test ! -s conftest.err'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; } &&
6211          { ac_try='test -s conftest.$ac_objext'
6212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213   (eval $ac_try) 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; }; then
6217   ac_cv_c_bigendian=yes
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 ac_cv_c_bigendian=no
6223 fi
6224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 # It does not; compile a test program.
6230 if test "$cross_compiling" = yes; then
6231   # try to guess the endianness by grepping values into an object file
6232   ac_cv_c_bigendian=unknown
6233   cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h.  */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h.  */
6239 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6240 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6241 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6242 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6243 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6244 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6245 int
6246 main ()
6247 {
6248  _ascii (); _ebcdic ();
6249   ;
6250   return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255   (eval $ac_compile) 2>conftest.er1
6256   ac_status=$?
6257   grep -v '^ *+' conftest.er1 >conftest.err
6258   rm -f conftest.er1
6259   cat conftest.err >&5
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } &&
6262          { ac_try='test -z "$ac_c_werror_flag"
6263                          || test ! -s conftest.err'
6264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265   (eval $ac_try) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); }; } &&
6269          { ac_try='test -s conftest.$ac_objext'
6270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271   (eval $ac_try) 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6276   ac_cv_c_bigendian=yes
6277 fi
6278 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6279   if test "$ac_cv_c_bigendian" = unknown; then
6280     ac_cv_c_bigendian=no
6281   else
6282     # finding both strings is unlikely to happen, but who knows?
6283     ac_cv_c_bigendian=unknown
6284   fi
6285 fi
6286 else
6287   echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6289
6290 fi
6291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6292 else
6293   cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h.  */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h.  */
6299 int
6300 main ()
6301 {
6302   /* Are we little or big endian?  From Harbison&Steele.  */
6303   union
6304   {
6305     long l;
6306     char c[sizeof (long)];
6307   } u;
6308   u.l = 1;
6309   exit (u.c[sizeof (long) - 1] == 1);
6310 }
6311 _ACEOF
6312 rm -f conftest$ac_exeext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314   (eval $ac_link) 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319   (eval $ac_try) 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }; }; then
6323   ac_cv_c_bigendian=no
6324 else
6325   echo "$as_me: program exited with status $ac_status" >&5
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6328
6329 ( exit $ac_status )
6330 ac_cv_c_bigendian=yes
6331 fi
6332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 fi
6335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336 fi
6337 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6338 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6339 case $ac_cv_c_bigendian in
6340   yes)
6341
6342 cat >>confdefs.h <<\_ACEOF
6343 #define WORDS_BIGENDIAN 1
6344 _ACEOF
6345  ;;
6346   no)
6347      ;;
6348   *)
6349     { { echo "$as_me:$LINENO: error: unknown endianness
6350 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6351 echo "$as_me: error: unknown endianness
6352 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6353    { (exit 1); exit 1; }; } ;;
6354 esac
6355
6356 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6357 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6358 if test "${ac_cv_c_const+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h.  */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h.  */
6367
6368 int
6369 main ()
6370 {
6371 /* FIXME: Include the comments suggested by Paul. */
6372 #ifndef __cplusplus
6373   /* Ultrix mips cc rejects this.  */
6374   typedef int charset[2];
6375   const charset x;
6376   /* SunOS 4.1.1 cc rejects this.  */
6377   char const *const *ccp;
6378   char **p;
6379   /* NEC SVR4.0.2 mips cc rejects this.  */
6380   struct point {int x, y;};
6381   static struct point const zero = {0,0};
6382   /* AIX XL C 1.02.0.0 rejects this.
6383      It does not let you subtract one const X* pointer from another in
6384      an arm of an if-expression whose if-part is not a constant
6385      expression */
6386   const char *g = "string";
6387   ccp = &g + (g ? g-g : 0);
6388   /* HPUX 7.0 cc rejects these. */
6389   ++ccp;
6390   p = (char**) ccp;
6391   ccp = (char const *const *) p;
6392   { /* SCO 3.2v4 cc rejects this.  */
6393     char *t;
6394     char const *s = 0 ? (char *) 0 : (char const *) 0;
6395
6396     *t++ = 0;
6397   }
6398   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6399     int x[] = {25, 17};
6400     const int *foo = &x[0];
6401     ++foo;
6402   }
6403   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6404     typedef const int *iptr;
6405     iptr p = 0;
6406     ++p;
6407   }
6408   { /* AIX XL C 1.02.0.0 rejects this saying
6409        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6410     struct s { int j; const int *ap[3]; };
6411     struct s *b; b->j = 5;
6412   }
6413   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6414     const int foo = 10;
6415   }
6416 #endif
6417
6418   ;
6419   return 0;
6420 }
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424   (eval $ac_compile) 2>conftest.er1
6425   ac_status=$?
6426   grep -v '^ *+' conftest.er1 >conftest.err
6427   rm -f conftest.er1
6428   cat conftest.err >&5
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } &&
6431          { ac_try='test -z "$ac_c_werror_flag"
6432                          || test ! -s conftest.err'
6433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434   (eval $ac_try) 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); }; } &&
6438          { ac_try='test -s conftest.$ac_objext'
6439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440   (eval $ac_try) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); }; }; then
6444   ac_cv_c_const=yes
6445 else
6446   echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 ac_cv_c_const=no
6450 fi
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 fi
6453 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6454 echo "${ECHO_T}$ac_cv_c_const" >&6
6455 if test $ac_cv_c_const = no; then
6456
6457 cat >>confdefs.h <<\_ACEOF
6458 #define const
6459 _ACEOF
6460
6461 fi
6462
6463 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6464 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6465 if test "${ac_cv_type_uid_t+set}" = set; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 #include <sys/types.h>
6475
6476 _ACEOF
6477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6478   $EGREP "uid_t" >/dev/null 2>&1; then
6479   ac_cv_type_uid_t=yes
6480 else
6481   ac_cv_type_uid_t=no
6482 fi
6483 rm -f conftest*
6484
6485 fi
6486 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6487 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6488 if test $ac_cv_type_uid_t = no; then
6489
6490 cat >>confdefs.h <<\_ACEOF
6491 #define uid_t int
6492 _ACEOF
6493
6494
6495 cat >>confdefs.h <<\_ACEOF
6496 #define gid_t int
6497 _ACEOF
6498
6499 fi
6500
6501 echo "$as_me:$LINENO: checking for off_t" >&5
6502 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6503 if test "${ac_cv_type_off_t+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h.  */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h.  */
6512 $ac_includes_default
6513 int
6514 main ()
6515 {
6516 if ((off_t *) 0)
6517   return 0;
6518 if (sizeof (off_t))
6519   return 0;
6520   ;
6521   return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526   (eval $ac_compile) 2>conftest.er1
6527   ac_status=$?
6528   grep -v '^ *+' conftest.er1 >conftest.err
6529   rm -f conftest.er1
6530   cat conftest.err >&5
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); } &&
6533          { ac_try='test -z "$ac_c_werror_flag"
6534                          || test ! -s conftest.err'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; } &&
6540          { ac_try='test -s conftest.$ac_objext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   ac_cv_type_off_t=yes
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_cv_type_off_t=no
6552 fi
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6556 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6557 if test $ac_cv_type_off_t = yes; then
6558   :
6559 else
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define off_t long
6563 _ACEOF
6564
6565 fi
6566
6567 echo "$as_me:$LINENO: checking for pid_t" >&5
6568 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6569 if test "${ac_cv_type_pid_t+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h.  */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h.  */
6578 $ac_includes_default
6579 int
6580 main ()
6581 {
6582 if ((pid_t *) 0)
6583   return 0;
6584 if (sizeof (pid_t))
6585   return 0;
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592   (eval $ac_compile) 2>conftest.er1
6593   ac_status=$?
6594   grep -v '^ *+' conftest.er1 >conftest.err
6595   rm -f conftest.er1
6596   cat conftest.err >&5
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } &&
6599          { ac_try='test -z "$ac_c_werror_flag"
6600                          || test ! -s conftest.err'
6601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602   (eval $ac_try) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; } &&
6606          { ac_try='test -s conftest.$ac_objext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612   ac_cv_type_pid_t=yes
6613 else
6614   echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 ac_cv_type_pid_t=no
6618 fi
6619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6620 fi
6621 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6622 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6623 if test $ac_cv_type_pid_t = yes; then
6624   :
6625 else
6626
6627 cat >>confdefs.h <<_ACEOF
6628 #define pid_t int
6629 _ACEOF
6630
6631 fi
6632
6633 echo "$as_me:$LINENO: checking for size_t" >&5
6634 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6635 if test "${ac_cv_type_size_t+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h.  */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h.  */
6644 $ac_includes_default
6645 int
6646 main ()
6647 {
6648 if ((size_t *) 0)
6649   return 0;
6650 if (sizeof (size_t))
6651   return 0;
6652   ;
6653   return 0;
6654 }
6655 _ACEOF
6656 rm -f conftest.$ac_objext
6657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658   (eval $ac_compile) 2>conftest.er1
6659   ac_status=$?
6660   grep -v '^ *+' conftest.er1 >conftest.err
6661   rm -f conftest.er1
6662   cat conftest.err >&5
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); } &&
6665          { ac_try='test -z "$ac_c_werror_flag"
6666                          || test ! -s conftest.err'
6667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668   (eval $ac_try) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; } &&
6672          { ac_try='test -s conftest.$ac_objext'
6673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674   (eval $ac_try) 2>&5
6675   ac_status=$?
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); }; }; then
6678   ac_cv_type_size_t=yes
6679 else
6680   echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6682
6683 ac_cv_type_size_t=no
6684 fi
6685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6686 fi
6687 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6688 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6689 if test $ac_cv_type_size_t = yes; then
6690   :
6691 else
6692
6693 cat >>confdefs.h <<_ACEOF
6694 #define size_t unsigned
6695 _ACEOF
6696
6697 fi
6698
6699 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6700 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6701 if test "${ac_cv_header_time+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710 #include <sys/types.h>
6711 #include <sys/time.h>
6712 #include <time.h>
6713
6714 int
6715 main ()
6716 {
6717 if ((struct tm *) 0)
6718 return 0;
6719   ;
6720   return 0;
6721 }
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6725   (eval $ac_compile) 2>conftest.er1
6726   ac_status=$?
6727   grep -v '^ *+' conftest.er1 >conftest.err
6728   rm -f conftest.er1
6729   cat conftest.err >&5
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); } &&
6732          { ac_try='test -z "$ac_c_werror_flag"
6733                          || test ! -s conftest.err'
6734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735   (eval $ac_try) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; } &&
6739          { ac_try='test -s conftest.$ac_objext'
6740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741   (eval $ac_try) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; }; then
6745   ac_cv_header_time=yes
6746 else
6747   echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6749
6750 ac_cv_header_time=no
6751 fi
6752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6753 fi
6754 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6755 echo "${ECHO_T}$ac_cv_header_time" >&6
6756 if test $ac_cv_header_time = yes; then
6757
6758 cat >>confdefs.h <<\_ACEOF
6759 #define TIME_WITH_SYS_TIME 1
6760 _ACEOF
6761
6762 fi
6763
6764 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6765 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6766 if test "${ac_cv_struct_tm+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h.  */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h.  */
6775 #include <sys/types.h>
6776 #include <time.h>
6777
6778 int
6779 main ()
6780 {
6781 struct tm *tp; tp->tm_sec;
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788   (eval $ac_compile) 2>conftest.er1
6789   ac_status=$?
6790   grep -v '^ *+' conftest.er1 >conftest.err
6791   rm -f conftest.er1
6792   cat conftest.err >&5
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); } &&
6795          { ac_try='test -z "$ac_c_werror_flag"
6796                          || test ! -s conftest.err'
6797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; } &&
6802          { ac_try='test -s conftest.$ac_objext'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; }; then
6808   ac_cv_struct_tm=time.h
6809 else
6810   echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 ac_cv_struct_tm=sys/time.h
6814 fi
6815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6816 fi
6817 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6818 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6819 if test $ac_cv_struct_tm = sys/time.h; then
6820
6821 cat >>confdefs.h <<\_ACEOF
6822 #define TM_IN_SYS_TIME 1
6823 _ACEOF
6824
6825 fi
6826
6827
6828 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6829 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6830 if test "${ac_cv_type_getgroups+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   if test "$cross_compiling" = yes; then
6834   ac_cv_type_getgroups=cross
6835 else
6836   cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h.  */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h.  */
6842 /* Thanks to Mike Rendell for this test.  */
6843 #include <sys/types.h>
6844 #define NGID 256
6845 #undef MAX
6846 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6847
6848 int
6849 main ()
6850 {
6851   gid_t gidset[NGID];
6852   int i, n;
6853   union { gid_t gval; long lval; }  val;
6854
6855   val.lval = -1;
6856   for (i = 0; i < NGID; i++)
6857     gidset[i] = val.gval;
6858   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6859                  gidset);
6860   /* Exit non-zero if getgroups seems to require an array of ints.  This
6861      happens when gid_t is short but getgroups modifies an array of ints.  */
6862   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6863 }
6864 _ACEOF
6865 rm -f conftest$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867   (eval $ac_link) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; }; then
6876   ac_cv_type_getgroups=gid_t
6877 else
6878   echo "$as_me: program exited with status $ac_status" >&5
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 ( exit $ac_status )
6883 ac_cv_type_getgroups=int
6884 fi
6885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6886 fi
6887 if test $ac_cv_type_getgroups = cross; then
6888         cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h.  */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h.  */
6894 #include <unistd.h>
6895
6896 _ACEOF
6897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6898   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6899   ac_cv_type_getgroups=gid_t
6900 else
6901   ac_cv_type_getgroups=int
6902 fi
6903 rm -f conftest*
6904
6905 fi
6906 fi
6907 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6908 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6909
6910 cat >>confdefs.h <<_ACEOF
6911 #define GETGROUPS_T $ac_cv_type_getgroups
6912 _ACEOF
6913
6914
6915 if test $ac_cv_c_compiler_gnu = yes; then
6916     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6917 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6918 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921     ac_pattern="Autoconf.*'x'"
6922   cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h.  */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h.  */
6928 #include <sgtty.h>
6929 Autoconf TIOCGETP
6930 _ACEOF
6931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6932   $EGREP "$ac_pattern" >/dev/null 2>&1; then
6933   ac_cv_prog_gcc_traditional=yes
6934 else
6935   ac_cv_prog_gcc_traditional=no
6936 fi
6937 rm -f conftest*
6938
6939
6940   if test $ac_cv_prog_gcc_traditional = no; then
6941     cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6947 #include <termio.h>
6948 Autoconf TCGETA
6949 _ACEOF
6950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6951   $EGREP "$ac_pattern" >/dev/null 2>&1; then
6952   ac_cv_prog_gcc_traditional=yes
6953 fi
6954 rm -f conftest*
6955
6956   fi
6957 fi
6958 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6959 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6960   if test $ac_cv_prog_gcc_traditional = yes; then
6961     CC="$CC -traditional"
6962   fi
6963 fi
6964
6965 echo "$as_me:$LINENO: checking for working memcmp" >&5
6966 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6967 if test "${ac_cv_func_memcmp_working+set}" = set; then
6968   echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970   if test "$cross_compiling" = yes; then
6971   ac_cv_func_memcmp_working=no
6972 else
6973   cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h.  */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h.  */
6979 $ac_includes_default
6980 int
6981 main ()
6982 {
6983
6984   /* Some versions of memcmp are not 8-bit clean.  */
6985   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6986   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6987     exit (1);
6988
6989   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6990      or more and with at least one buffer not starting on a 4-byte boundary.
6991      William Lewis provided this test program.   */
6992   {
6993     char foo[21];
6994     char bar[21];
6995     int i;
6996     for (i = 0; i < 4; i++)
6997       {
6998         char *a = foo + i;
6999         char *b = bar + i;
7000         strcpy (a, "--------01111111");
7001         strcpy (b, "--------10000000");
7002         if (memcmp (a, b, 16) >= 0)
7003           exit (1);
7004       }
7005     exit (0);
7006   }
7007
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014   (eval $ac_link) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019   (eval $ac_try) 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); }; }; then
7023   ac_cv_func_memcmp_working=yes
7024 else
7025   echo "$as_me: program exited with status $ac_status" >&5
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 ( exit $ac_status )
7030 ac_cv_func_memcmp_working=no
7031 fi
7032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7033 fi
7034 fi
7035 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7036 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
7037 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
7038     "memcmp.$ac_objext"   | \
7039   *" memcmp.$ac_objext"   | \
7040     "memcmp.$ac_objext "* | \
7041   *" memcmp.$ac_objext "* ) ;;
7042   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
7043 esac
7044
7045
7046
7047 for ac_func in vprintf
7048 do
7049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7050 echo "$as_me:$LINENO: checking for $ac_func" >&5
7051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7052 if eval "test \"\${$as_ac_var+set}\" = set"; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7063 #define $ac_func innocuous_$ac_func
7064
7065 /* System header to define __stub macros and hopefully few prototypes,
7066     which can conflict with char $ac_func (); below.
7067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068     <limits.h> exists even on freestanding compilers.  */
7069
7070 #ifdef __STDC__
7071 # include <limits.h>
7072 #else
7073 # include <assert.h>
7074 #endif
7075
7076 #undef $ac_func
7077
7078 /* Override any gcc2 internal prototype to avoid an error.  */
7079 #ifdef __cplusplus
7080 extern "C"
7081 {
7082 #endif
7083 /* We use char because int might match the return type of a gcc2
7084    builtin and then its argument prototype would still apply.  */
7085 char $ac_func ();
7086 /* The GNU C library defines this for functions which it implements
7087     to always fail with ENOSYS.  Some functions are actually named
7088     something starting with __ and the normal name is an alias.  */
7089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7090 choke me
7091 #else
7092 char (*f) () = $ac_func;
7093 #endif
7094 #ifdef __cplusplus
7095 }
7096 #endif
7097
7098 int
7099 main ()
7100 {
7101 return f != $ac_func;
7102   ;
7103   return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108   (eval $ac_link) 2>conftest.er1
7109   ac_status=$?
7110   grep -v '^ *+' conftest.er1 >conftest.err
7111   rm -f conftest.er1
7112   cat conftest.err >&5
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); } &&
7115          { ac_try='test -z "$ac_c_werror_flag"
7116                          || test ! -s conftest.err'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; } &&
7122          { ac_try='test -s conftest$ac_exeext'
7123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124   (eval $ac_try) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; }; then
7128   eval "$as_ac_var=yes"
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 eval "$as_ac_var=no"
7134 fi
7135 rm -f conftest.err conftest.$ac_objext \
7136       conftest$ac_exeext conftest.$ac_ext
7137 fi
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7140 if test `eval echo '${'$as_ac_var'}'` = yes; then
7141   cat >>confdefs.h <<_ACEOF
7142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7143 _ACEOF
7144
7145 echo "$as_me:$LINENO: checking for _doprnt" >&5
7146 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7147 if test "${ac_cv_func__doprnt+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h.  */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h.  */
7156 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7158 #define _doprnt innocuous__doprnt
7159
7160 /* System header to define __stub macros and hopefully few prototypes,
7161     which can conflict with char _doprnt (); below.
7162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7163     <limits.h> exists even on freestanding compilers.  */
7164
7165 #ifdef __STDC__
7166 # include <limits.h>
7167 #else
7168 # include <assert.h>
7169 #endif
7170
7171 #undef _doprnt
7172
7173 /* Override any gcc2 internal prototype to avoid an error.  */
7174 #ifdef __cplusplus
7175 extern "C"
7176 {
7177 #endif
7178 /* We use char because int might match the return type of a gcc2
7179    builtin and then its argument prototype would still apply.  */
7180 char _doprnt ();
7181 /* The GNU C library defines this for functions which it implements
7182     to always fail with ENOSYS.  Some functions are actually named
7183     something starting with __ and the normal name is an alias.  */
7184 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7185 choke me
7186 #else
7187 char (*f) () = _doprnt;
7188 #endif
7189 #ifdef __cplusplus
7190 }
7191 #endif
7192
7193 int
7194 main ()
7195 {
7196 return f != _doprnt;
7197   ;
7198   return 0;
7199 }
7200 _ACEOF
7201 rm -f conftest.$ac_objext conftest$ac_exeext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203   (eval $ac_link) 2>conftest.er1
7204   ac_status=$?
7205   grep -v '^ *+' conftest.er1 >conftest.err
7206   rm -f conftest.er1
7207   cat conftest.err >&5
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); } &&
7210          { ac_try='test -z "$ac_c_werror_flag"
7211                          || test ! -s conftest.err'
7212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213   (eval $ac_try) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); }; } &&
7217          { ac_try='test -s conftest$ac_exeext'
7218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219   (eval $ac_try) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); }; }; then
7223   ac_cv_func__doprnt=yes
7224 else
7225   echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 ac_cv_func__doprnt=no
7229 fi
7230 rm -f conftest.err conftest.$ac_objext \
7231       conftest$ac_exeext conftest.$ac_ext
7232 fi
7233 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7234 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7235 if test $ac_cv_func__doprnt = yes; then
7236
7237 cat >>confdefs.h <<\_ACEOF
7238 #define HAVE_DOPRNT 1
7239 _ACEOF
7240
7241 fi
7242
7243 fi
7244 done
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
7259 do
7260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7261 echo "$as_me:$LINENO: checking for $ac_func" >&5
7262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_var+set}\" = set"; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7274 #define $ac_func innocuous_$ac_func
7275
7276 /* System header to define __stub macros and hopefully few prototypes,
7277     which can conflict with char $ac_func (); below.
7278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7279     <limits.h> exists even on freestanding compilers.  */
7280
7281 #ifdef __STDC__
7282 # include <limits.h>
7283 #else
7284 # include <assert.h>
7285 #endif
7286
7287 #undef $ac_func
7288
7289 /* Override any gcc2 internal prototype to avoid an error.  */
7290 #ifdef __cplusplus
7291 extern "C"
7292 {
7293 #endif
7294 /* We use char because int might match the return type of a gcc2
7295    builtin and then its argument prototype would still apply.  */
7296 char $ac_func ();
7297 /* The GNU C library defines this for functions which it implements
7298     to always fail with ENOSYS.  Some functions are actually named
7299     something starting with __ and the normal name is an alias.  */
7300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7301 choke me
7302 #else
7303 char (*f) () = $ac_func;
7304 #endif
7305 #ifdef __cplusplus
7306 }
7307 #endif
7308
7309 int
7310 main ()
7311 {
7312 return f != $ac_func;
7313   ;
7314   return 0;
7315 }
7316 _ACEOF
7317 rm -f conftest.$ac_objext conftest$ac_exeext
7318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7319   (eval $ac_link) 2>conftest.er1
7320   ac_status=$?
7321   grep -v '^ *+' conftest.er1 >conftest.err
7322   rm -f conftest.er1
7323   cat conftest.err >&5
7324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325   (exit $ac_status); } &&
7326          { ac_try='test -z "$ac_c_werror_flag"
7327                          || test ! -s conftest.err'
7328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329   (eval $ac_try) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); }; } &&
7333          { ac_try='test -s conftest$ac_exeext'
7334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335   (eval $ac_try) 2>&5
7336   ac_status=$?
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; }; then
7339   eval "$as_ac_var=yes"
7340 else
7341   echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344 eval "$as_ac_var=no"
7345 fi
7346 rm -f conftest.err conftest.$ac_objext \
7347       conftest$ac_exeext conftest.$ac_ext
7348 fi
7349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7351 if test `eval echo '${'$as_ac_var'}'` = yes; then
7352   cat >>confdefs.h <<_ACEOF
7353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7354 _ACEOF
7355
7356 fi
7357 done
7358
7359
7360
7361
7362
7363
7364
7365
7366 for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r getgrouplist
7367 do
7368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7369 echo "$as_me:$LINENO: checking for $ac_func" >&5
7370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7371 if eval "test \"\${$as_ac_var+set}\" = set"; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7382 #define $ac_func innocuous_$ac_func
7383
7384 /* System header to define __stub macros and hopefully few prototypes,
7385     which can conflict with char $ac_func (); below.
7386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7387     <limits.h> exists even on freestanding compilers.  */
7388
7389 #ifdef __STDC__
7390 # include <limits.h>
7391 #else
7392 # include <assert.h>
7393 #endif
7394
7395 #undef $ac_func
7396
7397 /* Override any gcc2 internal prototype to avoid an error.  */
7398 #ifdef __cplusplus
7399 extern "C"
7400 {
7401 #endif
7402 /* We use char because int might match the return type of a gcc2
7403    builtin and then its argument prototype would still apply.  */
7404 char $ac_func ();
7405 /* The GNU C library defines this for functions which it implements
7406     to always fail with ENOSYS.  Some functions are actually named
7407     something starting with __ and the normal name is an alias.  */
7408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7409 choke me
7410 #else
7411 char (*f) () = $ac_func;
7412 #endif
7413 #ifdef __cplusplus
7414 }
7415 #endif
7416
7417 int
7418 main ()
7419 {
7420 return f != $ac_func;
7421   ;
7422   return 0;
7423 }
7424 _ACEOF
7425 rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7427   (eval $ac_link) 2>conftest.er1
7428   ac_status=$?
7429   grep -v '^ *+' conftest.er1 >conftest.err
7430   rm -f conftest.er1
7431   cat conftest.err >&5
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); } &&
7434          { ac_try='test -z "$ac_c_werror_flag"
7435                          || test ! -s conftest.err'
7436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437   (eval $ac_try) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); }; } &&
7441          { ac_try='test -s conftest$ac_exeext'
7442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443   (eval $ac_try) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); }; }; then
7447   eval "$as_ac_var=yes"
7448 else
7449   echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452 eval "$as_ac_var=no"
7453 fi
7454 rm -f conftest.err conftest.$ac_objext \
7455       conftest$ac_exeext conftest.$ac_ext
7456 fi
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7459 if test `eval echo '${'$as_ac_var'}'` = yes; then
7460   cat >>confdefs.h <<_ACEOF
7461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7462 _ACEOF
7463
7464 fi
7465 done
7466
7467
7468 # Extract the first word of "sgml2txt", so it can be a program name with args.
7469 set dummy sgml2txt; ac_word=$2
7470 echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7472 if test "${ac_cv_prog_HAVE_SGML2TXT+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   if test -n "$HAVE_SGML2TXT"; then
7476   ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483   for ac_exec_ext in '' $ac_executable_extensions; do
7484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485     ac_cv_prog_HAVE_SGML2TXT="yes"
7486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490 done
7491
7492   test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
7493 fi
7494 fi
7495 HAVE_SGML2TXT=$ac_cv_prog_HAVE_SGML2TXT
7496 if test -n "$HAVE_SGML2TXT"; then
7497   echo "$as_me:$LINENO: result: $HAVE_SGML2TXT" >&5
7498 echo "${ECHO_T}$HAVE_SGML2TXT" >&6
7499 else
7500   echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6
7502 fi
7503
7504 # Extract the first word of "sgml2html", so it can be a program name with args.
7505 set dummy sgml2html; ac_word=$2
7506 echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7508 if test "${ac_cv_prog_HAVE_SGML2HTML+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   if test -n "$HAVE_SGML2HTML"; then
7512   ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519   for ac_exec_ext in '' $ac_executable_extensions; do
7520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521     ac_cv_prog_HAVE_SGML2HTML="yes"
7522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526 done
7527
7528   test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
7529 fi
7530 fi
7531 HAVE_SGML2HTML=$ac_cv_prog_HAVE_SGML2HTML
7532 if test -n "$HAVE_SGML2HTML"; then
7533   echo "$as_me:$LINENO: result: $HAVE_SGML2HTML" >&5
7534 echo "${ECHO_T}$HAVE_SGML2HTML" >&6
7535 else
7536   echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6
7538 fi
7539
7540 # Extract the first word of "sgml2latex", so it can be a program name with args.
7541 set dummy sgml2latex; ac_word=$2
7542 echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7544 if test "${ac_cv_prog_HAVE_SGML2LATEX+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   if test -n "$HAVE_SGML2LATEX"; then
7548   ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555   for ac_exec_ext in '' $ac_executable_extensions; do
7556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557     ac_cv_prog_HAVE_SGML2LATEX="yes"
7558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559     break 2
7560   fi
7561 done
7562 done
7563
7564   test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
7565 fi
7566 fi
7567 HAVE_SGML2LATEX=$ac_cv_prog_HAVE_SGML2LATEX
7568 if test -n "$HAVE_SGML2LATEX"; then
7569   echo "$as_me:$LINENO: result: $HAVE_SGML2LATEX" >&5
7570 echo "${ECHO_T}$HAVE_SGML2LATEX" >&6
7571 else
7572   echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574 fi
7575
7576 if test $HAVE_SGML2LATEX = "yes" ; then
7577   if sgml2latex -h | grep -e --paper | grep  ' -p ' > /dev/null ; then
7578     PSER="sgml2latex -o ps"
7579   else
7580     PSER="sgml2latex -p"
7581   fi
7582   # Extract the first word of "ps2pdf", so it can be a program name with args.
7583 set dummy ps2pdf; ac_word=$2
7584 echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586 if test "${ac_cv_prog_HAVE_PS2PDF+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   if test -n "$HAVE_PS2PDF"; then
7590   ac_cv_prog_HAVE_PS2PDF="$HAVE_PS2PDF" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595   IFS=$as_save_IFS
7596   test -z "$as_dir" && as_dir=.
7597   for ac_exec_ext in '' $ac_executable_extensions; do
7598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599     ac_cv_prog_HAVE_PS2PDF="yes"
7600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601     break 2
7602   fi
7603 done
7604 done
7605
7606   test -z "$ac_cv_prog_HAVE_PS2PDF" && ac_cv_prog_HAVE_PS2PDF="no"
7607 fi
7608 fi
7609 HAVE_PS2PDF=$ac_cv_prog_HAVE_PS2PDF
7610 if test -n "$HAVE_PS2PDF"; then
7611   echo "$as_me:$LINENO: result: $HAVE_PS2PDF" >&5
7612 echo "${ECHO_T}$HAVE_PS2PDF" >&6
7613 else
7614   echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7616 fi
7617
7618 else
7619   # Extract the first word of "sgml2ps", so it can be a program name with args.
7620 set dummy sgml2ps; ac_word=$2
7621 echo "$as_me:$LINENO: checking for $ac_word" >&5
7622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7623 if test "${ac_cv_prog_HAVE_SGML2PS+set}" = set; then
7624   echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626   if test -n "$HAVE_SGML2PS"; then
7627   ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632   IFS=$as_save_IFS
7633   test -z "$as_dir" && as_dir=.
7634   for ac_exec_ext in '' $ac_executable_extensions; do
7635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636     ac_cv_prog_HAVE_SGML2PS="yes"
7637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638     break 2
7639   fi
7640 done
7641 done
7642
7643   test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
7644 fi
7645 fi
7646 HAVE_SGML2PS=$ac_cv_prog_HAVE_SGML2PS
7647 if test -n "$HAVE_SGML2PS"; then
7648   echo "$as_me:$LINENO: result: $HAVE_SGML2PS" >&5
7649 echo "${ECHO_T}$HAVE_SGML2PS" >&6
7650 else
7651   echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6
7653 fi
7654
7655   if test $HAVE_SGML2PS = yes ; then
7656     PSER="sgml2ps"
7657   fi
7658 fi
7659
7660
7661
7662           ac_config_files="$ac_config_files Make.Rules"
7663 cat >confcache <<\_ACEOF
7664 # This file is a shell script that caches the results of configure
7665 # tests run on this system so they can be shared between configure
7666 # scripts and configure runs, see configure's option --config-cache.
7667 # It is not useful on other systems.  If it contains results you don't
7668 # want to keep, you may remove or edit it.
7669 #
7670 # config.status only pays attention to the cache file if you give it
7671 # the --recheck option to rerun configure.
7672 #
7673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7675 # following values.
7676
7677 _ACEOF
7678
7679 # The following way of writing the cache mishandles newlines in values,
7680 # but we know of no workaround that is simple, portable, and efficient.
7681 # So, don't put newlines in cache variables' values.
7682 # Ultrix sh set writes to stderr and can't be redirected directly,
7683 # and sets the high bit in the cache file unless we assign to the vars.
7684 {
7685   (set) 2>&1 |
7686     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7687     *ac_space=\ *)
7688       # `set' does not quote correctly, so add quotes (double-quote
7689       # substitution turns \\\\ into \\, and sed turns \\ into \).
7690       sed -n \
7691         "s/'/'\\\\''/g;
7692           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7693       ;;
7694     *)
7695       # `set' quotes correctly as required by POSIX, so do not add quotes.
7696       sed -n \
7697         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7698       ;;
7699     esac;
7700 } |
7701   sed '
7702      t clear
7703      : clear
7704      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7705      t end
7706      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7707      : end' >>confcache
7708 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7709   if test -w $cache_file; then
7710     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7711     cat confcache >$cache_file
7712   else
7713     echo "not updating unwritable cache $cache_file"
7714   fi
7715 fi
7716 rm -f confcache
7717
7718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7719 # Let make expand exec_prefix.
7720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7721
7722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7724 # trailing colons and then remove the whole line if VPATH becomes empty
7725 # (actually we leave an empty line to preserve line numbers).
7726 if test "x$srcdir" = x.; then
7727   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7728 s/:*\$(srcdir):*/:/;
7729 s/:*\${srcdir}:*/:/;
7730 s/:*@srcdir@:*/:/;
7731 s/^\([^=]*=[     ]*\):*/\1/;
7732 s/:*$//;
7733 s/^[^=]*=[       ]*$//;
7734 }'
7735 fi
7736
7737 DEFS=-DHAVE_CONFIG_H
7738
7739 ac_libobjs=
7740 ac_ltlibobjs=
7741 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7742   # 1. Remove the extension, and $U if already installed.
7743   ac_i=`echo "$ac_i" |
7744          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7745   # 2. Add them.
7746   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7747   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7748 done
7749 LIBOBJS=$ac_libobjs
7750
7751 LTLIBOBJS=$ac_ltlibobjs
7752
7753
7754
7755 : ${CONFIG_STATUS=./config.status}
7756 ac_clean_files_save=$ac_clean_files
7757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7760 cat >$CONFIG_STATUS <<_ACEOF
7761 #! $SHELL
7762 # Generated by $as_me.
7763 # Run this file to recreate the current configuration.
7764 # Compiler output produced by configure, useful for debugging
7765 # configure, is in config.log if it exists.
7766
7767 debug=false
7768 ac_cs_recheck=false
7769 ac_cs_silent=false
7770 SHELL=\${CONFIG_SHELL-$SHELL}
7771 _ACEOF
7772
7773 cat >>$CONFIG_STATUS <<\_ACEOF
7774 ## --------------------- ##
7775 ## M4sh Initialization.  ##
7776 ## --------------------- ##
7777
7778 # Be Bourne compatible
7779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7780   emulate sh
7781   NULLCMD=:
7782   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7783   # is contrary to our usage.  Disable this feature.
7784   alias -g '${1+"$@"}'='"$@"'
7785 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7786   set -o posix
7787 fi
7788 DUALCASE=1; export DUALCASE # for MKS sh
7789
7790 # Support unset when possible.
7791 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7792   as_unset=unset
7793 else
7794   as_unset=false
7795 fi
7796
7797
7798 # Work around bugs in pre-3.0 UWIN ksh.
7799 $as_unset ENV MAIL MAILPATH
7800 PS1='$ '
7801 PS2='> '
7802 PS4='+ '
7803
7804 # NLS nuisances.
7805 for as_var in \
7806   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7807   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7808   LC_TELEPHONE LC_TIME
7809 do
7810   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7811     eval $as_var=C; export $as_var
7812   else
7813     $as_unset $as_var
7814   fi
7815 done
7816
7817 # Required to use basename.
7818 if expr a : '\(a\)' >/dev/null 2>&1; then
7819   as_expr=expr
7820 else
7821   as_expr=false
7822 fi
7823
7824 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7825   as_basename=basename
7826 else
7827   as_basename=false
7828 fi
7829
7830
7831 # Name of the executable.
7832 as_me=`$as_basename "$0" ||
7833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7834          X"$0" : 'X\(//\)$' \| \
7835          X"$0" : 'X\(/\)$' \| \
7836          .     : '\(.\)' 2>/dev/null ||
7837 echo X/"$0" |
7838     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7839           /^X\/\(\/\/\)$/{ s//\1/; q; }
7840           /^X\/\(\/\).*/{ s//\1/; q; }
7841           s/.*/./; q'`
7842
7843
7844 # PATH needs CR, and LINENO needs CR and PATH.
7845 # Avoid depending upon Character Ranges.
7846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7849 as_cr_digits='0123456789'
7850 as_cr_alnum=$as_cr_Letters$as_cr_digits
7851
7852 # The user is always right.
7853 if test "${PATH_SEPARATOR+set}" != set; then
7854   echo "#! /bin/sh" >conf$$.sh
7855   echo  "exit 0"   >>conf$$.sh
7856   chmod +x conf$$.sh
7857   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7858     PATH_SEPARATOR=';'
7859   else
7860     PATH_SEPARATOR=:
7861   fi
7862   rm -f conf$$.sh
7863 fi
7864
7865
7866   as_lineno_1=$LINENO
7867   as_lineno_2=$LINENO
7868   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7869   test "x$as_lineno_1" != "x$as_lineno_2" &&
7870   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7871   # Find who we are.  Look in the path if we contain no path at all
7872   # relative or not.
7873   case $0 in
7874     *[\\/]* ) as_myself=$0 ;;
7875     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878   IFS=$as_save_IFS
7879   test -z "$as_dir" && as_dir=.
7880   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7881 done
7882
7883        ;;
7884   esac
7885   # We did not find ourselves, most probably we were run as `sh COMMAND'
7886   # in which case we are not to be found in the path.
7887   if test "x$as_myself" = x; then
7888     as_myself=$0
7889   fi
7890   if test ! -f "$as_myself"; then
7891     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7892 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7893    { (exit 1); exit 1; }; }
7894   fi
7895   case $CONFIG_SHELL in
7896   '')
7897     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7899 do
7900   IFS=$as_save_IFS
7901   test -z "$as_dir" && as_dir=.
7902   for as_base in sh bash ksh sh5; do
7903          case $as_dir in
7904          /*)
7905            if ("$as_dir/$as_base" -c '
7906   as_lineno_1=$LINENO
7907   as_lineno_2=$LINENO
7908   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7909   test "x$as_lineno_1" != "x$as_lineno_2" &&
7910   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7911              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7912              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7913              CONFIG_SHELL=$as_dir/$as_base
7914              export CONFIG_SHELL
7915              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7916            fi;;
7917          esac
7918        done
7919 done
7920 ;;
7921   esac
7922
7923   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7924   # uniformly replaced by the line number.  The first 'sed' inserts a
7925   # line-number line before each line; the second 'sed' does the real
7926   # work.  The second script uses 'N' to pair each line-number line
7927   # with the numbered line, and appends trailing '-' during
7928   # substitution so that $LINENO is not a special case at line end.
7929   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7930   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7931   sed '=' <$as_myself |
7932     sed '
7933       N
7934       s,$,-,
7935       : loop
7936       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7937       t loop
7938       s,-$,,
7939       s,^['$as_cr_digits']*\n,,
7940     ' >$as_me.lineno &&
7941   chmod +x $as_me.lineno ||
7942     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7943 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7944    { (exit 1); exit 1; }; }
7945
7946   # Don't try to exec as it changes $[0], causing all sort of problems
7947   # (the dirname of $[0] is not the place where we might find the
7948   # original and so on.  Autoconf is especially sensible to this).
7949   . ./$as_me.lineno
7950   # Exit status is that of the last command.
7951   exit
7952 }
7953
7954
7955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7956   *c*,-n*) ECHO_N= ECHO_C='
7957 ' ECHO_T='      ' ;;
7958   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7959   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7960 esac
7961
7962 if expr a : '\(a\)' >/dev/null 2>&1; then
7963   as_expr=expr
7964 else
7965   as_expr=false
7966 fi
7967
7968 rm -f conf$$ conf$$.exe conf$$.file
7969 echo >conf$$.file
7970 if ln -s conf$$.file conf$$ 2>/dev/null; then
7971   # We could just check for DJGPP; but this test a) works b) is more generic
7972   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7973   if test -f conf$$.exe; then
7974     # Don't use ln at all; we don't have any links
7975     as_ln_s='cp -p'
7976   else
7977     as_ln_s='ln -s'
7978   fi
7979 elif ln conf$$.file conf$$ 2>/dev/null; then
7980   as_ln_s=ln
7981 else
7982   as_ln_s='cp -p'
7983 fi
7984 rm -f conf$$ conf$$.exe conf$$.file
7985
7986 if mkdir -p . 2>/dev/null; then
7987   as_mkdir_p=:
7988 else
7989   test -d ./-p && rmdir ./-p
7990   as_mkdir_p=false
7991 fi
7992
7993 as_executable_p="test -f"
7994
7995 # Sed expression to map a string onto a valid CPP name.
7996 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7997
7998 # Sed expression to map a string onto a valid variable name.
7999 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8000
8001
8002 # IFS
8003 # We need space, tab and new line, in precisely that order.
8004 as_nl='
8005 '
8006 IFS="   $as_nl"
8007
8008 # CDPATH.
8009 $as_unset CDPATH
8010
8011 exec 6>&1
8012
8013 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8014 # report actual input values of CONFIG_FILES etc. instead of their
8015 # values after options handling.  Logging --version etc. is OK.
8016 exec 5>>config.log
8017 {
8018   echo
8019   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8020 ## Running $as_me. ##
8021 _ASBOX
8022 } >&5
8023 cat >&5 <<_CSEOF
8024
8025 This file was extended by $as_me, which was
8026 generated by GNU Autoconf 2.59.  Invocation command line was
8027
8028   CONFIG_FILES    = $CONFIG_FILES
8029   CONFIG_HEADERS  = $CONFIG_HEADERS
8030   CONFIG_LINKS    = $CONFIG_LINKS
8031   CONFIG_COMMANDS = $CONFIG_COMMANDS
8032   $ $0 $@
8033
8034 _CSEOF
8035 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8036 echo >&5
8037 _ACEOF
8038
8039 # Files that config.status was made for.
8040 if test -n "$ac_config_files"; then
8041   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8042 fi
8043
8044 if test -n "$ac_config_headers"; then
8045   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8046 fi
8047
8048 if test -n "$ac_config_links"; then
8049   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8050 fi
8051
8052 if test -n "$ac_config_commands"; then
8053   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8054 fi
8055
8056 cat >>$CONFIG_STATUS <<\_ACEOF
8057
8058 ac_cs_usage="\
8059 \`$as_me' instantiates files from templates according to the
8060 current configuration.
8061
8062 Usage: $0 [OPTIONS] [FILE]...
8063
8064   -h, --help       print this help, then exit
8065   -V, --version    print version number, then exit
8066   -q, --quiet      do not print progress messages
8067   -d, --debug      don't remove temporary files
8068       --recheck    update $as_me by reconfiguring in the same conditions
8069   --file=FILE[:TEMPLATE]
8070                    instantiate the configuration file FILE
8071   --header=FILE[:TEMPLATE]
8072                    instantiate the configuration header FILE
8073
8074 Configuration files:
8075 $config_files
8076
8077 Configuration headers:
8078 $config_headers
8079
8080 Report bugs to <bug-autoconf@gnu.org>."
8081 _ACEOF
8082
8083 cat >>$CONFIG_STATUS <<_ACEOF
8084 ac_cs_version="\\
8085 config.status
8086 configured by $0, generated by GNU Autoconf 2.59,
8087   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8088
8089 Copyright (C) 2003 Free Software Foundation, Inc.
8090 This config.status script is free software; the Free Software Foundation
8091 gives unlimited permission to copy, distribute and modify it."
8092 srcdir=$srcdir
8093 INSTALL="$INSTALL"
8094 _ACEOF
8095
8096 cat >>$CONFIG_STATUS <<\_ACEOF
8097 # If no file are specified by the user, then we need to provide default
8098 # value.  By we need to know if files were specified by the user.
8099 ac_need_defaults=:
8100 while test $# != 0
8101 do
8102   case $1 in
8103   --*=*)
8104     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8105     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8106     ac_shift=:
8107     ;;
8108   -*)
8109     ac_option=$1
8110     ac_optarg=$2
8111     ac_shift=shift
8112     ;;
8113   *) # This is not an option, so the user has probably given explicit
8114      # arguments.
8115      ac_option=$1
8116      ac_need_defaults=false;;
8117   esac
8118
8119   case $ac_option in
8120   # Handling of the options.
8121 _ACEOF
8122 cat >>$CONFIG_STATUS <<\_ACEOF
8123   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8124     ac_cs_recheck=: ;;
8125   --version | --vers* | -V )
8126     echo "$ac_cs_version"; exit 0 ;;
8127   --he | --h)
8128     # Conflict between --help and --header
8129     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8130 Try \`$0 --help' for more information." >&5
8131 echo "$as_me: error: ambiguous option: $1
8132 Try \`$0 --help' for more information." >&2;}
8133    { (exit 1); exit 1; }; };;
8134   --help | --hel | -h )
8135     echo "$ac_cs_usage"; exit 0 ;;
8136   --debug | --d* | -d )
8137     debug=: ;;
8138   --file | --fil | --fi | --f )
8139     $ac_shift
8140     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8141     ac_need_defaults=false;;
8142   --header | --heade | --head | --hea )
8143     $ac_shift
8144     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8145     ac_need_defaults=false;;
8146   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8147   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8148     ac_cs_silent=: ;;
8149
8150   # This is an error.
8151   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8152 Try \`$0 --help' for more information." >&5
8153 echo "$as_me: error: unrecognized option: $1
8154 Try \`$0 --help' for more information." >&2;}
8155    { (exit 1); exit 1; }; } ;;
8156
8157   *) ac_config_targets="$ac_config_targets $1" ;;
8158
8159   esac
8160   shift
8161 done
8162
8163 ac_configure_extra_args=
8164
8165 if $ac_cs_silent; then
8166   exec 6>/dev/null
8167   ac_configure_extra_args="$ac_configure_extra_args --silent"
8168 fi
8169
8170 _ACEOF
8171 cat >>$CONFIG_STATUS <<_ACEOF
8172 if \$ac_cs_recheck; then
8173   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8174   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8175 fi
8176
8177 _ACEOF
8178
8179
8180
8181
8182
8183 cat >>$CONFIG_STATUS <<\_ACEOF
8184 for ac_config_target in $ac_config_targets
8185 do
8186   case "$ac_config_target" in
8187   # Handling of arguments.
8188   "Make.Rules" ) CONFIG_FILES="$CONFIG_FILES Make.Rules" ;;
8189   "_pam_aconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS _pam_aconf.h" ;;
8190   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8191 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8192    { (exit 1); exit 1; }; };;
8193   esac
8194 done
8195
8196 # If the user did not use the arguments to specify the items to instantiate,
8197 # then the envvar interface is used.  Set only those that are not.
8198 # We use the long form for the default assignment because of an extremely
8199 # bizarre bug on SunOS 4.1.3.
8200 if $ac_need_defaults; then
8201   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8202   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8203 fi
8204
8205 # Have a temporary directory for convenience.  Make it in the build tree
8206 # simply because there is no reason to put it here, and in addition,
8207 # creating and moving files from /tmp can sometimes cause problems.
8208 # Create a temporary directory, and hook for its removal unless debugging.
8209 $debug ||
8210 {
8211   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8212   trap '{ (exit 1); exit 1; }' 1 2 13 15
8213 }
8214
8215 # Create a (secure) tmp directory for tmp files.
8216
8217 {
8218   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8219   test -n "$tmp" && test -d "$tmp"
8220 }  ||
8221 {
8222   tmp=./confstat$$-$RANDOM
8223   (umask 077 && mkdir $tmp)
8224 } ||
8225 {
8226    echo "$me: cannot create a temporary directory in ." >&2
8227    { (exit 1); exit 1; }
8228 }
8229
8230 _ACEOF
8231
8232 cat >>$CONFIG_STATUS <<_ACEOF
8233
8234 #
8235 # CONFIG_FILES section.
8236 #
8237
8238 # No need to generate the scripts if there are no CONFIG_FILES.
8239 # This happens for instance when ./config.status config.h
8240 if test -n "\$CONFIG_FILES"; then
8241   # Protect against being on the right side of a sed subst in config.status.
8242   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8243    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8244 s,@SHELL@,$SHELL,;t t
8245 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8246 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8247 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8248 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8249 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8250 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8251 s,@exec_prefix@,$exec_prefix,;t t
8252 s,@prefix@,$prefix,;t t
8253 s,@program_transform_name@,$program_transform_name,;t t
8254 s,@bindir@,$bindir,;t t
8255 s,@sbindir@,$sbindir,;t t
8256 s,@libexecdir@,$libexecdir,;t t
8257 s,@datadir@,$datadir,;t t
8258 s,@sysconfdir@,$sysconfdir,;t t
8259 s,@sharedstatedir@,$sharedstatedir,;t t
8260 s,@localstatedir@,$localstatedir,;t t
8261 s,@libdir@,$libdir,;t t
8262 s,@includedir@,$includedir,;t t
8263 s,@oldincludedir@,$oldincludedir,;t t
8264 s,@infodir@,$infodir,;t t
8265 s,@mandir@,$mandir,;t t
8266 s,@build_alias@,$build_alias,;t t
8267 s,@host_alias@,$host_alias,;t t
8268 s,@target_alias@,$target_alias,;t t
8269 s,@DEFS@,$DEFS,;t t
8270 s,@ECHO_C@,$ECHO_C,;t t
8271 s,@ECHO_N@,$ECHO_N,;t t
8272 s,@ECHO_T@,$ECHO_T,;t t
8273 s,@LIBS@,$LIBS,;t t
8274 s,@LIBPAM_VERSION_MAJOR@,$LIBPAM_VERSION_MAJOR,;t t
8275 s,@LIBPAM_VERSION_MINOR@,$LIBPAM_VERSION_MINOR,;t t
8276 s,@LOCALSRCDIR@,$LOCALSRCDIR,;t t
8277 s,@LOCALOBJDIR@,$LOCALOBJDIR,;t t
8278 s,@OS@,$OS,;t t
8279 s,@CONF_CFLAGS@,$CONF_CFLAGS,;t t
8280 s,@MKDIR@,$MKDIR,;t t
8281 s,@SHLIBMODE@,$SHLIBMODE,;t t
8282 s,@MANMODE@,$MANMODE,;t t
8283 s,@USESONAME@,$USESONAME,;t t
8284 s,@SOSWITCH@,$SOSWITCH,;t t
8285 s,@NEEDSONAME@,$NEEDSONAME,;t t
8286 s,@LDCONFIG@,$LDCONFIG,;t t
8287 s,@CC@,$CC,;t t
8288 s,@CFLAGS@,$CFLAGS,;t t
8289 s,@LDFLAGS@,$LDFLAGS,;t t
8290 s,@CPPFLAGS@,$CPPFLAGS,;t t
8291 s,@ac_ct_CC@,$ac_ct_CC,;t t
8292 s,@EXEEXT@,$EXEEXT,;t t
8293 s,@OBJEXT@,$OBJEXT,;t t
8294 s,@YACC@,$YACC,;t t
8295 s,@LEX@,$LEX,;t t
8296 s,@LEXLIB@,$LEXLIB,;t t
8297 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8298 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8299 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8300 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8301 s,@LN_S@,$LN_S,;t t
8302 s,@SET_MAKE@,$SET_MAKE,;t t
8303 s,@WITH_DEBUG@,$WITH_DEBUG,;t t
8304 s,@WITH_MEMORY_DEBUG@,$WITH_MEMORY_DEBUG,;t t
8305 s,@WITH_LIBDEBUG@,$WITH_LIBDEBUG,;t t
8306 s,@FAKEROOT@,$FAKEROOT,;t t
8307 s,@SECUREDIR@,$SECUREDIR,;t t
8308 s,@SCONFIGDIR@,$SCONFIGDIR,;t t
8309 s,@SUPLEMENTED@,$SUPLEMENTED,;t t
8310 s,@INCLUDEDIR@,$INCLUDEDIR,;t t
8311 s,@DOCDIR@,$DOCDIR,;t t
8312 s,@MANDIR@,$MANDIR,;t t
8313 s,@WITH_PAMLOCKING@,$WITH_PAMLOCKING,;t t
8314 s,@PAM_READ_BOTH_CONFS@,$PAM_READ_BOTH_CONFS,;t t
8315 s,@STATIC_LIBPAM@,$STATIC_LIBPAM,;t t
8316 s,@DYNAMIC_LIBPAM@,$DYNAMIC_LIBPAM,;t t
8317 s,@DYNAMIC@,$DYNAMIC,;t t
8318 s,@STATIC@,$STATIC,;t t
8319 s,@WITH_LCKPWDF@,$WITH_LCKPWDF,;t t
8320 s,@CPP@,$CPP,;t t
8321 s,@EGREP@,$EGREP,;t t
8322 s,@PAM_NEEDS_LIBC@,$PAM_NEEDS_LIBC,;t t
8323 s,@HAVE_LCKPWDF@,$HAVE_LCKPWDF,;t t
8324 s,@LIBDL@,$LIBDL,;t t
8325 s,@HAVE_LIBCRACK@,$HAVE_LIBCRACK,;t t
8326 s,@HAVE_LIBCRYPT@,$HAVE_LIBCRYPT,;t t
8327 s,@HAVE_LIBUTIL@,$HAVE_LIBUTIL,;t t
8328 s,@HAVE_LIBNDBM@,$HAVE_LIBNDBM,;t t
8329 s,@HAVE_LIBDB@,$HAVE_LIBDB,;t t
8330 s,@HAVE_LIBFL@,$HAVE_LIBFL,;t t
8331 s,@HAVE_LIBNSL@,$HAVE_LIBNSL,;t t
8332 s,@HAVE_LIBPWDB@,$HAVE_LIBPWDB,;t t
8333 s,@HAVE_LIBFLEX@,$HAVE_LIBFLEX,;t t
8334 s,@HAVE_LIBLEX@,$HAVE_LIBLEX,;t t
8335 s,@HAVE_NDBM_H@,$HAVE_NDBM_H,;t t
8336 s,@CRACKLIB_DICTPATH@,$CRACKLIB_DICTPATH,;t t
8337 s,@DYNTYPE@,$DYNTYPE,;t t
8338 s,@OS_CFLAGS@,$OS_CFLAGS,;t t
8339 s,@WARNINGS@,$WARNINGS,;t t
8340 s,@PIC@,$PIC,;t t
8341 s,@LD@,$LD,;t t
8342 s,@LD_D@,$LD_D,;t t
8343 s,@LD_L@,$LD_L,;t t
8344 s,@RANLIB@,$RANLIB,;t t
8345 s,@STRIP@,$STRIP,;t t
8346 s,@CC_STATIC@,$CC_STATIC,;t t
8347 s,@LIBOBJS@,$LIBOBJS,;t t
8348 s,@HAVE_SGML2TXT@,$HAVE_SGML2TXT,;t t
8349 s,@HAVE_SGML2HTML@,$HAVE_SGML2HTML,;t t
8350 s,@HAVE_SGML2LATEX@,$HAVE_SGML2LATEX,;t t
8351 s,@HAVE_PS2PDF@,$HAVE_PS2PDF,;t t
8352 s,@HAVE_SGML2PS@,$HAVE_SGML2PS,;t t
8353 s,@PSER@,$PSER,;t t
8354 s,@PS2PDF@,$PS2PDF,;t t
8355 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8356 CEOF
8357
8358 _ACEOF
8359
8360   cat >>$CONFIG_STATUS <<\_ACEOF
8361   # Split the substitutions into bite-sized pieces for seds with
8362   # small command number limits, like on Digital OSF/1 and HP-UX.
8363   ac_max_sed_lines=48
8364   ac_sed_frag=1 # Number of current file.
8365   ac_beg=1 # First line for current file.
8366   ac_end=$ac_max_sed_lines # Line after last line for current file.
8367   ac_more_lines=:
8368   ac_sed_cmds=
8369   while $ac_more_lines; do
8370     if test $ac_beg -gt 1; then
8371       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8372     else
8373       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8374     fi
8375     if test ! -s $tmp/subs.frag; then
8376       ac_more_lines=false
8377     else
8378       # The purpose of the label and of the branching condition is to
8379       # speed up the sed processing (if there are no `@' at all, there
8380       # is no need to browse any of the substitutions).
8381       # These are the two extra sed commands mentioned above.
8382       (echo ':t
8383   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8384       if test -z "$ac_sed_cmds"; then
8385         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8386       else
8387         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8388       fi
8389       ac_sed_frag=`expr $ac_sed_frag + 1`
8390       ac_beg=$ac_end
8391       ac_end=`expr $ac_end + $ac_max_sed_lines`
8392     fi
8393   done
8394   if test -z "$ac_sed_cmds"; then
8395     ac_sed_cmds=cat
8396   fi
8397 fi # test -n "$CONFIG_FILES"
8398
8399 _ACEOF
8400 cat >>$CONFIG_STATUS <<\_ACEOF
8401 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8402   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8403   case $ac_file in
8404   - | *:- | *:-:* ) # input from stdin
8405         cat >$tmp/stdin
8406         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8407         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8408   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8409         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8410   * )   ac_file_in=$ac_file.in ;;
8411   esac
8412
8413   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8414   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8416          X"$ac_file" : 'X\(//\)[^/]' \| \
8417          X"$ac_file" : 'X\(//\)$' \| \
8418          X"$ac_file" : 'X\(/\)' \| \
8419          .     : '\(.\)' 2>/dev/null ||
8420 echo X"$ac_file" |
8421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8422           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8423           /^X\(\/\/\)$/{ s//\1/; q; }
8424           /^X\(\/\).*/{ s//\1/; q; }
8425           s/.*/./; q'`
8426   { if $as_mkdir_p; then
8427     mkdir -p "$ac_dir"
8428   else
8429     as_dir="$ac_dir"
8430     as_dirs=
8431     while test ! -d "$as_dir"; do
8432       as_dirs="$as_dir $as_dirs"
8433       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8435          X"$as_dir" : 'X\(//\)[^/]' \| \
8436          X"$as_dir" : 'X\(//\)$' \| \
8437          X"$as_dir" : 'X\(/\)' \| \
8438          .     : '\(.\)' 2>/dev/null ||
8439 echo X"$as_dir" |
8440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8441           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8442           /^X\(\/\/\)$/{ s//\1/; q; }
8443           /^X\(\/\).*/{ s//\1/; q; }
8444           s/.*/./; q'`
8445     done
8446     test ! -n "$as_dirs" || mkdir $as_dirs
8447   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8448 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8449    { (exit 1); exit 1; }; }; }
8450
8451   ac_builddir=.
8452
8453 if test "$ac_dir" != .; then
8454   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8455   # A "../" for each directory in $ac_dir_suffix.
8456   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8457 else
8458   ac_dir_suffix= ac_top_builddir=
8459 fi
8460
8461 case $srcdir in
8462   .)  # No --srcdir option.  We are building in place.
8463     ac_srcdir=.
8464     if test -z "$ac_top_builddir"; then
8465        ac_top_srcdir=.
8466     else
8467        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8468     fi ;;
8469   [\\/]* | ?:[\\/]* )  # Absolute path.
8470     ac_srcdir=$srcdir$ac_dir_suffix;
8471     ac_top_srcdir=$srcdir ;;
8472   *) # Relative path.
8473     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8474     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8475 esac
8476
8477 # Do not use `cd foo && pwd` to compute absolute paths, because
8478 # the directories may not exist.
8479 case `pwd` in
8480 .) ac_abs_builddir="$ac_dir";;
8481 *)
8482   case "$ac_dir" in
8483   .) ac_abs_builddir=`pwd`;;
8484   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8485   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8486   esac;;
8487 esac
8488 case $ac_abs_builddir in
8489 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8490 *)
8491   case ${ac_top_builddir}. in
8492   .) ac_abs_top_builddir=$ac_abs_builddir;;
8493   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8494   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8495   esac;;
8496 esac
8497 case $ac_abs_builddir in
8498 .) ac_abs_srcdir=$ac_srcdir;;
8499 *)
8500   case $ac_srcdir in
8501   .) ac_abs_srcdir=$ac_abs_builddir;;
8502   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8503   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8504   esac;;
8505 esac
8506 case $ac_abs_builddir in
8507 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8508 *)
8509   case $ac_top_srcdir in
8510   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8511   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8512   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8513   esac;;
8514 esac
8515
8516
8517   case $INSTALL in
8518   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8519   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8520   esac
8521
8522   if test x"$ac_file" != x-; then
8523     { echo "$as_me:$LINENO: creating $ac_file" >&5
8524 echo "$as_me: creating $ac_file" >&6;}
8525     rm -f "$ac_file"
8526   fi
8527   # Let's still pretend it is `configure' which instantiates (i.e., don't
8528   # use $as_me), people would be surprised to read:
8529   #    /* config.h.  Generated by config.status.  */
8530   if test x"$ac_file" = x-; then
8531     configure_input=
8532   else
8533     configure_input="$ac_file.  "
8534   fi
8535   configure_input=$configure_input"Generated from `echo $ac_file_in |
8536                                      sed 's,.*/,,'` by configure."
8537
8538   # First look for the input files in the build tree, otherwise in the
8539   # src tree.
8540   ac_file_inputs=`IFS=:
8541     for f in $ac_file_in; do
8542       case $f in
8543       -) echo $tmp/stdin ;;
8544       [\\/$]*)
8545          # Absolute (can't be DOS-style, as IFS=:)
8546          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8547 echo "$as_me: error: cannot find input file: $f" >&2;}
8548    { (exit 1); exit 1; }; }
8549          echo "$f";;
8550       *) # Relative
8551          if test -f "$f"; then
8552            # Build tree
8553            echo "$f"
8554          elif test -f "$srcdir/$f"; then
8555            # Source tree
8556            echo "$srcdir/$f"
8557          else
8558            # /dev/null tree
8559            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8560 echo "$as_me: error: cannot find input file: $f" >&2;}
8561    { (exit 1); exit 1; }; }
8562          fi;;
8563       esac
8564     done` || { (exit 1); exit 1; }
8565 _ACEOF
8566 cat >>$CONFIG_STATUS <<_ACEOF
8567   sed "$ac_vpsub
8568 $extrasub
8569 _ACEOF
8570 cat >>$CONFIG_STATUS <<\_ACEOF
8571 :t
8572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8573 s,@configure_input@,$configure_input,;t t
8574 s,@srcdir@,$ac_srcdir,;t t
8575 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8576 s,@top_srcdir@,$ac_top_srcdir,;t t
8577 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8578 s,@builddir@,$ac_builddir,;t t
8579 s,@abs_builddir@,$ac_abs_builddir,;t t
8580 s,@top_builddir@,$ac_top_builddir,;t t
8581 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8582 s,@INSTALL@,$ac_INSTALL,;t t
8583 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8584   rm -f $tmp/stdin
8585   if test x"$ac_file" != x-; then
8586     mv $tmp/out $ac_file
8587   else
8588     cat $tmp/out
8589     rm -f $tmp/out
8590   fi
8591
8592 done
8593 _ACEOF
8594 cat >>$CONFIG_STATUS <<\_ACEOF
8595
8596 #
8597 # CONFIG_HEADER section.
8598 #
8599
8600 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8601 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8602 #
8603 # ac_d sets the value in "#define NAME VALUE" lines.
8604 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8605 ac_dB='[         ].*$,\1#\2'
8606 ac_dC=' '
8607 ac_dD=',;t'
8608 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8609 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8610 ac_uB='$,\1#\2define\3'
8611 ac_uC=' '
8612 ac_uD=',;t'
8613
8614 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8615   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8616   case $ac_file in
8617   - | *:- | *:-:* ) # input from stdin
8618         cat >$tmp/stdin
8619         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8620         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8621   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8622         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8623   * )   ac_file_in=$ac_file.in ;;
8624   esac
8625
8626   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8627 echo "$as_me: creating $ac_file" >&6;}
8628
8629   # First look for the input files in the build tree, otherwise in the
8630   # src tree.
8631   ac_file_inputs=`IFS=:
8632     for f in $ac_file_in; do
8633       case $f in
8634       -) echo $tmp/stdin ;;
8635       [\\/$]*)
8636          # Absolute (can't be DOS-style, as IFS=:)
8637          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8638 echo "$as_me: error: cannot find input file: $f" >&2;}
8639    { (exit 1); exit 1; }; }
8640          # Do quote $f, to prevent DOS paths from being IFS'd.
8641          echo "$f";;
8642       *) # Relative
8643          if test -f "$f"; then
8644            # Build tree
8645            echo "$f"
8646          elif test -f "$srcdir/$f"; then
8647            # Source tree
8648            echo "$srcdir/$f"
8649          else
8650            # /dev/null tree
8651            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8652 echo "$as_me: error: cannot find input file: $f" >&2;}
8653    { (exit 1); exit 1; }; }
8654          fi;;
8655       esac
8656     done` || { (exit 1); exit 1; }
8657   # Remove the trailing spaces.
8658   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8659
8660 _ACEOF
8661
8662 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8663 # `conftest.undefs', that substitutes the proper values into
8664 # config.h.in to produce config.h.  The first handles `#define'
8665 # templates, and the second `#undef' templates.
8666 # And first: Protect against being on the right side of a sed subst in
8667 # config.status.  Protect against being in an unquoted here document
8668 # in config.status.
8669 rm -f conftest.defines conftest.undefs
8670 # Using a here document instead of a string reduces the quoting nightmare.
8671 # Putting comments in sed scripts is not portable.
8672 #
8673 # `end' is used to avoid that the second main sed command (meant for
8674 # 0-ary CPP macros) applies to n-ary macro definitions.
8675 # See the Autoconf documentation for `clear'.
8676 cat >confdef2sed.sed <<\_ACEOF
8677 s/[\\&,]/\\&/g
8678 s,[\\$`],\\&,g
8679 t clear
8680 : clear
8681 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8682 t end
8683 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8684 : end
8685 _ACEOF
8686 # If some macros were called several times there might be several times
8687 # the same #defines, which is useless.  Nevertheless, we may not want to
8688 # sort them, since we want the *last* AC-DEFINE to be honored.
8689 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8690 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8691 rm -f confdef2sed.sed
8692
8693 # This sed command replaces #undef with comments.  This is necessary, for
8694 # example, in the case of _POSIX_SOURCE, which is predefined and required
8695 # on some systems where configure will not decide to define it.
8696 cat >>conftest.undefs <<\_ACEOF
8697 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8698 _ACEOF
8699
8700 # Break up conftest.defines because some shells have a limit on the size
8701 # of here documents, and old seds have small limits too (100 cmds).
8702 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8703 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8704 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8705 echo '  :' >>$CONFIG_STATUS
8706 rm -f conftest.tail
8707 while grep . conftest.defines >/dev/null
8708 do
8709   # Write a limited-size here document to $tmp/defines.sed.
8710   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8711   # Speed up: don't consider the non `#define' lines.
8712   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8713   # Work around the forget-to-reset-the-flag bug.
8714   echo 't clr' >>$CONFIG_STATUS
8715   echo ': clr' >>$CONFIG_STATUS
8716   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8717   echo 'CEOF
8718   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8719   rm -f $tmp/in
8720   mv $tmp/out $tmp/in
8721 ' >>$CONFIG_STATUS
8722   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8723   rm -f conftest.defines
8724   mv conftest.tail conftest.defines
8725 done
8726 rm -f conftest.defines
8727 echo '  fi # grep' >>$CONFIG_STATUS
8728 echo >>$CONFIG_STATUS
8729
8730 # Break up conftest.undefs because some shells have a limit on the size
8731 # of here documents, and old seds have small limits too (100 cmds).
8732 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8733 rm -f conftest.tail
8734 while grep . conftest.undefs >/dev/null
8735 do
8736   # Write a limited-size here document to $tmp/undefs.sed.
8737   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8738   # Speed up: don't consider the non `#undef'
8739   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8740   # Work around the forget-to-reset-the-flag bug.
8741   echo 't clr' >>$CONFIG_STATUS
8742   echo ': clr' >>$CONFIG_STATUS
8743   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8744   echo 'CEOF
8745   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8746   rm -f $tmp/in
8747   mv $tmp/out $tmp/in
8748 ' >>$CONFIG_STATUS
8749   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8750   rm -f conftest.undefs
8751   mv conftest.tail conftest.undefs
8752 done
8753 rm -f conftest.undefs
8754
8755 cat >>$CONFIG_STATUS <<\_ACEOF
8756   # Let's still pretend it is `configure' which instantiates (i.e., don't
8757   # use $as_me), people would be surprised to read:
8758   #    /* config.h.  Generated by config.status.  */
8759   if test x"$ac_file" = x-; then
8760     echo "/* Generated by configure.  */" >$tmp/config.h
8761   else
8762     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8763   fi
8764   cat $tmp/in >>$tmp/config.h
8765   rm -f $tmp/in
8766   if test x"$ac_file" != x-; then
8767     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8768       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8769 echo "$as_me: $ac_file is unchanged" >&6;}
8770     else
8771       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8772 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8773          X"$ac_file" : 'X\(//\)[^/]' \| \
8774          X"$ac_file" : 'X\(//\)$' \| \
8775          X"$ac_file" : 'X\(/\)' \| \
8776          .     : '\(.\)' 2>/dev/null ||
8777 echo X"$ac_file" |
8778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8779           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8780           /^X\(\/\/\)$/{ s//\1/; q; }
8781           /^X\(\/\).*/{ s//\1/; q; }
8782           s/.*/./; q'`
8783       { if $as_mkdir_p; then
8784     mkdir -p "$ac_dir"
8785   else
8786     as_dir="$ac_dir"
8787     as_dirs=
8788     while test ! -d "$as_dir"; do
8789       as_dirs="$as_dir $as_dirs"
8790       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8792          X"$as_dir" : 'X\(//\)[^/]' \| \
8793          X"$as_dir" : 'X\(//\)$' \| \
8794          X"$as_dir" : 'X\(/\)' \| \
8795          .     : '\(.\)' 2>/dev/null ||
8796 echo X"$as_dir" |
8797     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8798           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8799           /^X\(\/\/\)$/{ s//\1/; q; }
8800           /^X\(\/\).*/{ s//\1/; q; }
8801           s/.*/./; q'`
8802     done
8803     test ! -n "$as_dirs" || mkdir $as_dirs
8804   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8805 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8806    { (exit 1); exit 1; }; }; }
8807
8808       rm -f $ac_file
8809       mv $tmp/config.h $ac_file
8810     fi
8811   else
8812     cat $tmp/config.h
8813     rm -f $tmp/config.h
8814   fi
8815 done
8816 _ACEOF
8817
8818 cat >>$CONFIG_STATUS <<\_ACEOF
8819
8820 { (exit 0); exit 0; }
8821 _ACEOF
8822 chmod +x $CONFIG_STATUS
8823 ac_clean_files=$ac_clean_files_save
8824
8825
8826 # configure is writing to config.log, and then calls config.status.
8827 # config.status does its own redirection, appending to config.log.
8828 # Unfortunately, on DOS this fails, as config.log is still kept open
8829 # by configure, so config.status won't be able to write to it; its
8830 # output is simply discarded.  So we exec the FD to /dev/null,
8831 # effectively closing config.log, so it can be properly (re)opened and
8832 # appended to by config.status.  When coming back to configure, we
8833 # need to make the FD available again.
8834 if test "$no_create" != yes; then
8835   ac_cs_success=:
8836   ac_config_status_args=
8837   test "$silent" = yes &&
8838     ac_config_status_args="$ac_config_status_args --quiet"
8839   exec 5>/dev/null
8840   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8841   exec 5>>config.log
8842   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8843   # would make configure fail if this is the last instruction.
8844   $ac_cs_success || { (exit 1); exit 1; }
8845 fi
8846