]> andersk Git - gssapi-openssh.git/blob - openssh/autom4te-2.53.cache/output.0
82dff16eb6d8be6e5c7d866bfaa57411d6de1155
[gssapi-openssh.git] / openssh / autom4te-2.53.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.53.
4 @%:@ 
5 @%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 @%:@ Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="ssh.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760   # Omit some internal or obsolete options to make the list less imposing.
761   # This message is too long to be a string in the A/UX 3.1 sh.
762   cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773   -h, --help              display this help and exit
774       --help=short        display options specific to this package
775       --help=recursive    display the short help of all the included packages
776   -V, --version           display version information and exit
777   -q, --quiet, --silent   do not print \`checking...' messages
778       --cache-file=FILE   cache test results in FILE [disabled]
779   -C, --config-cache      alias for \`--cache-file=config.cache'
780   -n, --no-create         do not create output files
781       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785   cat <<_ACEOF
786 Installation directories:
787   --prefix=PREFIX         install architecture-independent files in PREFIX
788                           [$ac_default_prefix]
789   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                           [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800   --bindir=DIR           user executables [EPREFIX/bin]
801   --sbindir=DIR          system admin executables [EPREFIX/sbin]
802   --libexecdir=DIR       program executables [EPREFIX/libexec]
803   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807   --libdir=DIR           object code libraries [EPREFIX/lib]
808   --includedir=DIR       C header files [PREFIX/include]
809   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810   --infodir=DIR          info documentation [PREFIX/info]
811   --mandir=DIR           man documentation [PREFIX/man]
812 _ACEOF
813
814   cat <<\_ACEOF
815
816 System types:
817   --build=BUILD     configure for building on BUILD [guessed]
818   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
819 _ACEOF
820 fi
821
822 if test -n "$ac_init_help"; then
823
824   cat <<\_ACEOF
825
826 Optional Features:
827   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
828   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
829   --disable-largefile     omit support for large files
830   --enable-suid-ssh       Install ssh as suid root (default)
831   --disable-suid-ssh      Install ssh without suid bit
832   --disable-lastlog       disable use of lastlog even if detected no
833   --disable-utmp          disable use of utmp even if detected no
834   --disable-utmpx         disable use of utmpx even if detected no
835   --disable-wtmp          disable use of wtmp even if detected no
836   --disable-wtmpx         disable use of wtmpx even if detected no
837   --disable-libutil       disable use of libutil (login() etc.) no
838   --disable-pututline     disable use of pututline() etc. (uwtmp) no
839   --disable-pututxline    disable use of pututxline() etc. (uwtmpx) no
840
841 Optional Packages:
842   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
843   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
844   --with-osfsia           Enable Digital Unix SIA
845   --with-cflags           Specify additional flags to pass to compiler
846   --with-cppflags         Specify additional flags to pass to preprocessor 
847   --with-ldflags          Specify additional flags to pass to linker
848   --with-libs             Specify additional libraries to link with
849   --without-rpath         Disable auto-added -R linker paths
850   --with-zlib=PATH        Use zlib in PATH
851   --with-skey[=PATH]      Enable S/Key support
852                             (optionally in PATH)
853   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
854                             (optionally in PATH)
855   --with-pam              Enable PAM support 
856   --with-ssl-dir=PATH     Specify path to OpenSSL installation 
857   --with-rand-helper      Use subprocess to gather strong randomness 
858   --with-prngd-port=PORT  read entropy from PRNGD/EGD TCP localhost:PORT
859   --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
860   --with-entropy-timeout  Specify entropy gathering command timeout (msec)
861   --with-privsep-user=user Specify non-privileged user for privilege separation
862   --with-sectok           Enable smartcard support using libsectok
863   --with-opensc=PFX       Enable smartcard support using OpenSC
864   --with-kerberos5=PATH   Enable Kerberos 5 support
865   --with-kerberos4=PATH   Enable Kerberos 4 support
866   --with-afs=PATH         Enable AFS support
867   --with-rsh=PATH         Specify path to remote shell program 
868   --with-privsep-path=xxx Path for privilege separation chroot 
869   --with-xauth=PATH       Specify path to xauth program 
870   --with-mantype=man|cat|doc  Set man page type
871   --with-md5-passwords    Enable use of MD5 passwords
872   --without-shadow        Disable shadow password support
873   --with-ipaddr-display   Use ip address instead of hostname in \$DISPLAY
874   --with-default-path=    Specify default \$PATH environment for server
875   --with-superuser-path=  Specify different path for super-user
876   --with-ipv4-default     Use IPv4 by connections unless '-6' specified
877   --with-4in6             Check for and convert IPv4 in IPv6 mapped addresses
878   --with-bsd-auth         Enable BSD auth support
879   --with-pid-dir=PATH     Specify location of ssh.pid file
880   --with-lastlog=FILE|DIR specify lastlog location common locations
881
882 Some influential environment variables:
883   CC          C compiler command
884   CFLAGS      C compiler flags
885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
886               nonstandard directory <lib dir>
887   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
888               headers in a nonstandard directory <include dir>
889   CPP         C preprocessor
890
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
893
894 _ACEOF
895 fi
896
897 if test "$ac_init_help" = "recursive"; then
898   # If there are subdirs, report their specific --help.
899   ac_popdir=`pwd`
900   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901     test -d $ac_dir || continue
902     ac_builddir=.
903
904 if test "$ac_dir" != .; then
905   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906   # A "../" for each directory in $ac_dir_suffix.
907   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909   ac_dir_suffix= ac_top_builddir=
910 fi
911
912 case $srcdir in
913   .)  # No --srcdir option.  We are building in place.
914     ac_srcdir=.
915     if test -z "$ac_top_builddir"; then
916        ac_top_srcdir=.
917     else
918        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919     fi ;;
920   [\\/]* | ?:[\\/]* )  # Absolute path.
921     ac_srcdir=$srcdir$ac_dir_suffix;
922     ac_top_srcdir=$srcdir ;;
923   *) # Relative path.
924     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925     ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928 # absolute.
929 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
930 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
931 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
932 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
933
934     cd $ac_dir
935     # Check for guested configure; otherwise get Cygnus style configure.
936     if test -f $ac_srcdir/configure.gnu; then
937       echo
938       $SHELL $ac_srcdir/configure.gnu  --help=recursive
939     elif test -f $ac_srcdir/configure; then
940       echo
941       $SHELL $ac_srcdir/configure  --help=recursive
942     elif test -f $ac_srcdir/configure.ac ||
943            test -f $ac_srcdir/configure.in; then
944       echo
945       $ac_configure --help
946     else
947       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948     fi
949     cd $ac_popdir
950   done
951 fi
952
953 test -n "$ac_init_help" && exit 0
954 if $ac_init_version; then
955   cat <<\_ACEOF
956
957 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
958 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
961 _ACEOF
962   exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.53.  Invocation command line was
971
972   $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 @%:@@%:@ --------- @%:@@%:@
978 @%:@@%:@ Platform. @%:@@%:@
979 @%:@@%:@ --------- @%:@@%:@
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003   IFS=$as_save_IFS
1004   test -z "$as_dir" && as_dir=.
1005   echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 @%:@@%:@ ----------- @%:@@%:@
1014 @%:@@%:@ Core tests. @%:@@%:@
1015 @%:@@%:@ ----------- @%:@@%:@
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1026 do
1027   case $ac_arg in
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n ) continue ;;
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     continue ;;
1033   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035   esac
1036   case " $ac_configure_args " in
1037     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1038     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039        ac_sep=" " ;;
1040   esac
1041   # Get rid of the leading space.
1042 done
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053     cat <<\_ASBOX
1054 @%:@@%:@ ---------------- @%:@@%:@
1055 @%:@@%:@ Cache variables. @%:@@%:@
1056 @%:@@%:@ ---------------- @%:@@%:@
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075     if test -s confdefs.h; then
1076       cat <<\_ASBOX
1077 @%:@@%:@ ----------- @%:@@%:@
1078 @%:@@%:@ confdefs.h. @%:@@%:@
1079 @%:@@%:@ ----------- @%:@@%:@
1080 _ASBOX
1081       echo
1082       sed "/^$/d" confdefs.h
1083       echo
1084     fi
1085     test "$ac_signal" != 0 &&
1086       echo "$as_me: caught signal $ac_signal"
1087     echo "$as_me: exit $exit_status"
1088   } >&5
1089   rm -f core core.* *.core &&
1090   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091     exit $exit_status
1092      ' 0
1093 for ac_signal in 1 2 13 15; do
1094   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1097
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1102
1103 # Predefined preprocessor variables.
1104
1105 cat >>confdefs.h <<_ACEOF
1106 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1128
1129
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133   if test "x$prefix" != xNONE; then
1134     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135   else
1136     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137   fi
1138 fi
1139 for ac_site_file in $CONFIG_SITE; do
1140   if test -r "$ac_site_file"; then
1141     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143     sed 's/^/| /' "$ac_site_file" >&5
1144     . "$ac_site_file"
1145   fi
1146 done
1147
1148 if test -r "$cache_file"; then
1149   # Some versions of bash will fail to source /dev/null (special
1150   # files actually), so we avoid doing that.
1151   if test -f "$cache_file"; then
1152     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154     case $cache_file in
1155       [\\/]* | ?:[\\/]* ) . $cache_file;;
1156       *)                      . ./$cache_file;;
1157     esac
1158   fi
1159 else
1160   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162   >$cache_file
1163 fi
1164
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171   eval ac_new_set=\$ac_env_${ac_var}_set
1172   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173   eval ac_new_val="\$ac_env_${ac_var}_value"
1174   case $ac_old_set,$ac_new_set in
1175     set,)
1176       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178       ac_cache_corrupted=: ;;
1179     ,set)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,);;
1184     *)
1185       if test "x$ac_old_val" != "x$ac_new_val"; then
1186         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1189 echo "$as_me:   former value:  $ac_old_val" >&2;}
1190         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1191 echo "$as_me:   current value: $ac_new_val" >&2;}
1192         ac_cache_corrupted=:
1193       fi;;
1194   esac
1195   # Pass precious variables to config.status.
1196   if test "$ac_new_set" = set; then
1197     case $ac_new_val in
1198     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200     *) ac_arg=$ac_var=$ac_new_val ;;
1201     esac
1202     case " $ac_configure_args " in
1203       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1204       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205     esac
1206   fi
1207 done
1208 if $ac_cache_corrupted; then
1209   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241 ac_config_headers="$ac_config_headers config.h"
1242
1243 ac_ext=c
1244 ac_cpp='$CPP $CPPFLAGS'
1245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1248 if test -n "$ac_tool_prefix"; then
1249   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1250 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1251 echo "$as_me:$LINENO: checking for $ac_word" >&5
1252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1253 if test "${ac_cv_prog_CC+set}" = set; then
1254   echo $ECHO_N "(cached) $ECHO_C" >&6
1255 else
1256   if test -n "$CC"; then
1257   ac_cv_prog_CC="$CC" # Let the user override the test.
1258 else
1259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1260 for as_dir in $PATH
1261 do
1262   IFS=$as_save_IFS
1263   test -z "$as_dir" && as_dir=.
1264   for ac_exec_ext in '' $ac_executable_extensions; do
1265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1266     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1268     break 2
1269   fi
1270 done
1271 done
1272
1273 fi
1274 fi
1275 CC=$ac_cv_prog_CC
1276 if test -n "$CC"; then
1277   echo "$as_me:$LINENO: result: $CC" >&5
1278 echo "${ECHO_T}$CC" >&6
1279 else
1280   echo "$as_me:$LINENO: result: no" >&5
1281 echo "${ECHO_T}no" >&6
1282 fi
1283
1284 fi
1285 if test -z "$ac_cv_prog_CC"; then
1286   ac_ct_CC=$CC
1287   # Extract the first word of "gcc", so it can be a program name with args.
1288 set dummy gcc; ac_word=$2
1289 echo "$as_me:$LINENO: checking for $ac_word" >&5
1290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1292   echo $ECHO_N "(cached) $ECHO_C" >&6
1293 else
1294   if test -n "$ac_ct_CC"; then
1295   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1296 else
1297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1298 for as_dir in $PATH
1299 do
1300   IFS=$as_save_IFS
1301   test -z "$as_dir" && as_dir=.
1302   for ac_exec_ext in '' $ac_executable_extensions; do
1303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1304     ac_cv_prog_ac_ct_CC="gcc"
1305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1306     break 2
1307   fi
1308 done
1309 done
1310
1311 fi
1312 fi
1313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1314 if test -n "$ac_ct_CC"; then
1315   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1316 echo "${ECHO_T}$ac_ct_CC" >&6
1317 else
1318   echo "$as_me:$LINENO: result: no" >&5
1319 echo "${ECHO_T}no" >&6
1320 fi
1321
1322   CC=$ac_ct_CC
1323 else
1324   CC="$ac_cv_prog_CC"
1325 fi
1326
1327 if test -z "$CC"; then
1328   if test -n "$ac_tool_prefix"; then
1329   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1330 set dummy ${ac_tool_prefix}cc; ac_word=$2
1331 echo "$as_me:$LINENO: checking for $ac_word" >&5
1332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1333 if test "${ac_cv_prog_CC+set}" = set; then
1334   echo $ECHO_N "(cached) $ECHO_C" >&6
1335 else
1336   if test -n "$CC"; then
1337   ac_cv_prog_CC="$CC" # Let the user override the test.
1338 else
1339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1340 for as_dir in $PATH
1341 do
1342   IFS=$as_save_IFS
1343   test -z "$as_dir" && as_dir=.
1344   for ac_exec_ext in '' $ac_executable_extensions; do
1345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1346     ac_cv_prog_CC="${ac_tool_prefix}cc"
1347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348     break 2
1349   fi
1350 done
1351 done
1352
1353 fi
1354 fi
1355 CC=$ac_cv_prog_CC
1356 if test -n "$CC"; then
1357   echo "$as_me:$LINENO: result: $CC" >&5
1358 echo "${ECHO_T}$CC" >&6
1359 else
1360   echo "$as_me:$LINENO: result: no" >&5
1361 echo "${ECHO_T}no" >&6
1362 fi
1363
1364 fi
1365 if test -z "$ac_cv_prog_CC"; then
1366   ac_ct_CC=$CC
1367   # Extract the first word of "cc", so it can be a program name with args.
1368 set dummy cc; ac_word=$2
1369 echo "$as_me:$LINENO: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1372   echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374   if test -n "$ac_ct_CC"; then
1375   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1376 else
1377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378 for as_dir in $PATH
1379 do
1380   IFS=$as_save_IFS
1381   test -z "$as_dir" && as_dir=.
1382   for ac_exec_ext in '' $ac_executable_extensions; do
1383   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1384     ac_cv_prog_ac_ct_CC="cc"
1385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1386     break 2
1387   fi
1388 done
1389 done
1390
1391 fi
1392 fi
1393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1394 if test -n "$ac_ct_CC"; then
1395   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1396 echo "${ECHO_T}$ac_ct_CC" >&6
1397 else
1398   echo "$as_me:$LINENO: result: no" >&5
1399 echo "${ECHO_T}no" >&6
1400 fi
1401
1402   CC=$ac_ct_CC
1403 else
1404   CC="$ac_cv_prog_CC"
1405 fi
1406
1407 fi
1408 if test -z "$CC"; then
1409   # Extract the first word of "cc", so it can be a program name with args.
1410 set dummy cc; ac_word=$2
1411 echo "$as_me:$LINENO: checking for $ac_word" >&5
1412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413 if test "${ac_cv_prog_CC+set}" = set; then
1414   echo $ECHO_N "(cached) $ECHO_C" >&6
1415 else
1416   if test -n "$CC"; then
1417   ac_cv_prog_CC="$CC" # Let the user override the test.
1418 else
1419   ac_prog_rejected=no
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 for as_dir in $PATH
1422 do
1423   IFS=$as_save_IFS
1424   test -z "$as_dir" && as_dir=.
1425   for ac_exec_ext in '' $ac_executable_extensions; do
1426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1428        ac_prog_rejected=yes
1429        continue
1430      fi
1431     ac_cv_prog_CC="cc"
1432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433     break 2
1434   fi
1435 done
1436 done
1437
1438 if test $ac_prog_rejected = yes; then
1439   # We found a bogon in the path, so make sure we never use it.
1440   set dummy $ac_cv_prog_CC
1441   shift
1442   if test $@%:@ != 0; then
1443     # We chose a different compiler from the bogus one.
1444     # However, it has the same basename, so the bogon will be chosen
1445     # first if we set CC to just the basename; use the full file name.
1446     shift
1447     set dummy "$as_dir/$ac_word" ${1+"$@"}
1448     shift
1449     ac_cv_prog_CC="$@"
1450   fi
1451 fi
1452 fi
1453 fi
1454 CC=$ac_cv_prog_CC
1455 if test -n "$CC"; then
1456   echo "$as_me:$LINENO: result: $CC" >&5
1457 echo "${ECHO_T}$CC" >&6
1458 else
1459   echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1461 fi
1462
1463 fi
1464 if test -z "$CC"; then
1465   if test -n "$ac_tool_prefix"; then
1466   for ac_prog in cl
1467   do
1468     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473   echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475   if test -n "$CC"; then
1476   ac_cv_prog_CC="$CC" # Let the user override the test.
1477 else
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 for as_dir in $PATH
1480 do
1481   IFS=$as_save_IFS
1482   test -z "$as_dir" && as_dir=.
1483   for ac_exec_ext in '' $ac_executable_extensions; do
1484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487     break 2
1488   fi
1489 done
1490 done
1491
1492 fi
1493 fi
1494 CC=$ac_cv_prog_CC
1495 if test -n "$CC"; then
1496   echo "$as_me:$LINENO: result: $CC" >&5
1497 echo "${ECHO_T}$CC" >&6
1498 else
1499   echo "$as_me:$LINENO: result: no" >&5
1500 echo "${ECHO_T}no" >&6
1501 fi
1502
1503     test -n "$CC" && break
1504   done
1505 fi
1506 if test -z "$CC"; then
1507   ac_ct_CC=$CC
1508   for ac_prog in cl
1509 do
1510   # Extract the first word of "$ac_prog", so it can be a program name with args.
1511 set dummy $ac_prog; ac_word=$2
1512 echo "$as_me:$LINENO: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1515   echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517   if test -n "$ac_ct_CC"; then
1518   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 else
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1522 do
1523   IFS=$as_save_IFS
1524   test -z "$as_dir" && as_dir=.
1525   for ac_exec_ext in '' $ac_executable_extensions; do
1526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527     ac_cv_prog_ac_ct_CC="$ac_prog"
1528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529     break 2
1530   fi
1531 done
1532 done
1533
1534 fi
1535 fi
1536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1537 if test -n "$ac_ct_CC"; then
1538   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1539 echo "${ECHO_T}$ac_ct_CC" >&6
1540 else
1541   echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1543 fi
1544
1545   test -n "$ac_ct_CC" && break
1546 done
1547
1548   CC=$ac_ct_CC
1549 fi
1550
1551 fi
1552
1553
1554 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1555 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1556    { (exit 1); exit 1; }; }
1557
1558 # Provide some information about the compiler.
1559 echo "$as_me:$LINENO:" \
1560      "checking for C compiler version" >&5
1561 ac_compiler=`set X $ac_compile; echo $2`
1562 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1563   (eval $ac_compiler --version </dev/null >&5) 2>&5
1564   ac_status=$?
1565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1566   (exit $ac_status); }
1567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1568   (eval $ac_compiler -v </dev/null >&5) 2>&5
1569   ac_status=$?
1570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1571   (exit $ac_status); }
1572 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1573   (eval $ac_compiler -V </dev/null >&5) 2>&5
1574   ac_status=$?
1575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1576   (exit $ac_status); }
1577
1578 cat >conftest.$ac_ext <<_ACEOF
1579 #line $LINENO "configure"
1580 #include "confdefs.h"
1581
1582 #ifdef F77_DUMMY_MAIN
1583 #  ifdef __cplusplus
1584      extern "C"
1585 #  endif
1586    int F77_DUMMY_MAIN() { return 1; }
1587 #endif
1588 int
1589 main ()
1590 {
1591
1592   ;
1593   return 0;
1594 }
1595 _ACEOF
1596 ac_clean_files_save=$ac_clean_files
1597 ac_clean_files="$ac_clean_files a.out a.exe"
1598 # Try to create an executable without -o first, disregard a.out.
1599 # It will help us diagnose broken compilers, and finding out an intuition
1600 # of exeext.
1601 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1602 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1603 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1604 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1605   (eval $ac_link_default) 2>&5
1606   ac_status=$?
1607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608   (exit $ac_status); }; then
1609   # Find the output, starting from the most likely.  This scheme is
1610 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1611 # resort.
1612
1613 # Be careful to initialize this variable, since it used to be cached.
1614 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1615 ac_cv_exeext=
1616 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1617                 ls a.out conftest 2>/dev/null;
1618                 ls a.* conftest.* 2>/dev/null`; do
1619   case $ac_file in
1620     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1621     a.out ) # We found the default executable, but exeext='' is most
1622             # certainly right.
1623             break;;
1624     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1625           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1626           export ac_cv_exeext
1627           break;;
1628     * ) break;;
1629   esac
1630 done
1631 else
1632   echo "$as_me: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1634 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1635 echo "$as_me: error: C compiler cannot create executables" >&2;}
1636    { (exit 77); exit 77; }; }
1637 fi
1638
1639 ac_exeext=$ac_cv_exeext
1640 echo "$as_me:$LINENO: result: $ac_file" >&5
1641 echo "${ECHO_T}$ac_file" >&6
1642
1643 # Check the compiler produces executables we can run.  If not, either
1644 # the compiler is broken, or we cross compile.
1645 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1646 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1647 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1648 # If not cross compiling, check that we can run a simple program.
1649 if test "$cross_compiling" != yes; then
1650   if { ac_try='./$ac_file'
1651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1652   (eval $ac_try) 2>&5
1653   ac_status=$?
1654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655   (exit $ac_status); }; }; then
1656     cross_compiling=no
1657   else
1658     if test "$cross_compiling" = maybe; then
1659         cross_compiling=yes
1660     else
1661         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1662 If you meant to cross compile, use \`--host'." >&5
1663 echo "$as_me: error: cannot run C compiled programs.
1664 If you meant to cross compile, use \`--host'." >&2;}
1665    { (exit 1); exit 1; }; }
1666     fi
1667   fi
1668 fi
1669 echo "$as_me:$LINENO: result: yes" >&5
1670 echo "${ECHO_T}yes" >&6
1671
1672 rm -f a.out a.exe conftest$ac_cv_exeext
1673 ac_clean_files=$ac_clean_files_save
1674 # Check the compiler produces executables we can run.  If not, either
1675 # the compiler is broken, or we cross compile.
1676 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1677 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1678 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1679 echo "${ECHO_T}$cross_compiling" >&6
1680
1681 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1682 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1684   (eval $ac_link) 2>&5
1685   ac_status=$?
1686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687   (exit $ac_status); }; then
1688   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1689 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1690 # work properly (i.e., refer to `conftest.exe'), while it won't with
1691 # `rm'.
1692 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1693   case $ac_file in
1694     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1695     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1696           export ac_cv_exeext
1697           break;;
1698     * ) break;;
1699   esac
1700 done
1701 else
1702   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1704    { (exit 1); exit 1; }; }
1705 fi
1706
1707 rm -f conftest$ac_cv_exeext
1708 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1709 echo "${ECHO_T}$ac_cv_exeext" >&6
1710
1711 rm -f conftest.$ac_ext
1712 EXEEXT=$ac_cv_exeext
1713 ac_exeext=$EXEEXT
1714 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1715 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1716 if test "${ac_cv_objext+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   cat >conftest.$ac_ext <<_ACEOF
1720 #line $LINENO "configure"
1721 #include "confdefs.h"
1722
1723 #ifdef F77_DUMMY_MAIN
1724 #  ifdef __cplusplus
1725      extern "C"
1726 #  endif
1727    int F77_DUMMY_MAIN() { return 1; }
1728 #endif
1729 int
1730 main ()
1731 {
1732
1733   ;
1734   return 0;
1735 }
1736 _ACEOF
1737 rm -f conftest.o conftest.obj
1738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1739   (eval $ac_compile) 2>&5
1740   ac_status=$?
1741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742   (exit $ac_status); }; then
1743   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1744   case $ac_file in
1745     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1746     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1747        break;;
1748   esac
1749 done
1750 else
1751   echo "$as_me: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1754 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1755    { (exit 1); exit 1; }; }
1756 fi
1757
1758 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1759 fi
1760 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1761 echo "${ECHO_T}$ac_cv_objext" >&6
1762 OBJEXT=$ac_cv_objext
1763 ac_objext=$OBJEXT
1764 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1765 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1767   echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769   cat >conftest.$ac_ext <<_ACEOF
1770 #line $LINENO "configure"
1771 #include "confdefs.h"
1772
1773 #ifdef F77_DUMMY_MAIN
1774 #  ifdef __cplusplus
1775      extern "C"
1776 #  endif
1777    int F77_DUMMY_MAIN() { return 1; }
1778 #endif
1779 int
1780 main ()
1781 {
1782 #ifndef __GNUC__
1783        choke me
1784 #endif
1785
1786   ;
1787   return 0;
1788 }
1789 _ACEOF
1790 rm -f conftest.$ac_objext
1791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1792   (eval $ac_compile) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); } &&
1796          { ac_try='test -s conftest.$ac_objext'
1797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1798   (eval $ac_try) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }; }; then
1802   ac_compiler_gnu=yes
1803 else
1804   echo "$as_me: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1806 ac_compiler_gnu=no
1807 fi
1808 rm -f conftest.$ac_objext conftest.$ac_ext
1809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1810
1811 fi
1812 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1814 GCC=`test $ac_compiler_gnu = yes && echo yes`
1815 ac_test_CFLAGS=${CFLAGS+set}
1816 ac_save_CFLAGS=$CFLAGS
1817 CFLAGS="-g"
1818 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1819 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1820 if test "${ac_cv_prog_cc_g+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   cat >conftest.$ac_ext <<_ACEOF
1824 #line $LINENO "configure"
1825 #include "confdefs.h"
1826
1827 #ifdef F77_DUMMY_MAIN
1828 #  ifdef __cplusplus
1829      extern "C"
1830 #  endif
1831    int F77_DUMMY_MAIN() { return 1; }
1832 #endif
1833 int
1834 main ()
1835 {
1836
1837   ;
1838   return 0;
1839 }
1840 _ACEOF
1841 rm -f conftest.$ac_objext
1842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1843   (eval $ac_compile) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); } &&
1847          { ac_try='test -s conftest.$ac_objext'
1848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849   (eval $ac_try) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }; }; then
1853   ac_cv_prog_cc_g=yes
1854 else
1855   echo "$as_me: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1857 ac_cv_prog_cc_g=no
1858 fi
1859 rm -f conftest.$ac_objext conftest.$ac_ext
1860 fi
1861 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1862 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1863 if test "$ac_test_CFLAGS" = set; then
1864   CFLAGS=$ac_save_CFLAGS
1865 elif test $ac_cv_prog_cc_g = yes; then
1866   if test "$GCC" = yes; then
1867     CFLAGS="-g -O2"
1868   else
1869     CFLAGS="-g"
1870   fi
1871 else
1872   if test "$GCC" = yes; then
1873     CFLAGS="-O2"
1874   else
1875     CFLAGS=
1876   fi
1877 fi
1878 # Some people use a C++ compiler to compile C.  Since we use `exit',
1879 # in C++ we need to declare it.  In case someone uses the same compiler
1880 # for both compiling C and C++ we need to have the C++ compiler decide
1881 # the declaration of exit, since it's the most demanding environment.
1882 cat >conftest.$ac_ext <<_ACEOF
1883 @%:@ifndef __cplusplus
1884   choke me
1885 @%:@endif
1886 _ACEOF
1887 rm -f conftest.$ac_objext
1888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1889   (eval $ac_compile) 2>&5
1890   ac_status=$?
1891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892   (exit $ac_status); } &&
1893          { ac_try='test -s conftest.$ac_objext'
1894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895   (eval $ac_try) 2>&5
1896   ac_status=$?
1897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898   (exit $ac_status); }; }; then
1899   for ac_declaration in \
1900    ''\
1901    '#include <stdlib.h>' \
1902    'extern "C" void std::exit (int) throw (); using std::exit;' \
1903    'extern "C" void std::exit (int); using std::exit;' \
1904    'extern "C" void exit (int) throw ();' \
1905    'extern "C" void exit (int);' \
1906    'void exit (int);'
1907 do
1908   cat >conftest.$ac_ext <<_ACEOF
1909 #line $LINENO "configure"
1910 #include "confdefs.h"
1911 @%:@include <stdlib.h>
1912 $ac_declaration
1913 #ifdef F77_DUMMY_MAIN
1914 #  ifdef __cplusplus
1915      extern "C"
1916 #  endif
1917    int F77_DUMMY_MAIN() { return 1; }
1918 #endif
1919 int
1920 main ()
1921 {
1922 exit (42);
1923   ;
1924   return 0;
1925 }
1926 _ACEOF
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929   (eval $ac_compile) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); } &&
1933          { ac_try='test -s conftest.$ac_objext'
1934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935   (eval $ac_try) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); }; }; then
1939   :
1940 else
1941   echo "$as_me: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1943 continue
1944 fi
1945 rm -f conftest.$ac_objext conftest.$ac_ext
1946   cat >conftest.$ac_ext <<_ACEOF
1947 #line $LINENO "configure"
1948 #include "confdefs.h"
1949 $ac_declaration
1950 #ifdef F77_DUMMY_MAIN
1951 #  ifdef __cplusplus
1952      extern "C"
1953 #  endif
1954    int F77_DUMMY_MAIN() { return 1; }
1955 #endif
1956 int
1957 main ()
1958 {
1959 exit (42);
1960   ;
1961   return 0;
1962 }
1963 _ACEOF
1964 rm -f conftest.$ac_objext
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966   (eval $ac_compile) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); } &&
1970          { ac_try='test -s conftest.$ac_objext'
1971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1972   (eval $ac_try) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; }; then
1976   break
1977 else
1978   echo "$as_me: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 fi
1981 rm -f conftest.$ac_objext conftest.$ac_ext
1982 done
1983 rm -f conftest*
1984 if test -n "$ac_declaration"; then
1985   echo '#ifdef __cplusplus' >>confdefs.h
1986   echo $ac_declaration      >>confdefs.h
1987   echo '#endif'             >>confdefs.h
1988 fi
1989
1990 else
1991   echo "$as_me: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1993 fi
1994 rm -f conftest.$ac_objext conftest.$ac_ext
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000
2001 ac_aux_dir=
2002 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2003   if test -f $ac_dir/install-sh; then
2004     ac_aux_dir=$ac_dir
2005     ac_install_sh="$ac_aux_dir/install-sh -c"
2006     break
2007   elif test -f $ac_dir/install.sh; then
2008     ac_aux_dir=$ac_dir
2009     ac_install_sh="$ac_aux_dir/install.sh -c"
2010     break
2011   elif test -f $ac_dir/shtool; then
2012     ac_aux_dir=$ac_dir
2013     ac_install_sh="$ac_aux_dir/shtool install -c"
2014     break
2015   fi
2016 done
2017 if test -z "$ac_aux_dir"; then
2018   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2019 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2020    { (exit 1); exit 1; }; }
2021 fi
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2024 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2025
2026 # Make sure we can run config.sub.
2027 $ac_config_sub sun4 >/dev/null 2>&1 ||
2028   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2029 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2030    { (exit 1); exit 1; }; }
2031
2032 echo "$as_me:$LINENO: checking build system type" >&5
2033 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2034 if test "${ac_cv_build+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   ac_cv_build_alias=$build_alias
2038 test -z "$ac_cv_build_alias" &&
2039   ac_cv_build_alias=`$ac_config_guess`
2040 test -z "$ac_cv_build_alias" &&
2041   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2042 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2043    { (exit 1); exit 1; }; }
2044 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2045   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2046 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2047    { (exit 1); exit 1; }; }
2048
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2051 echo "${ECHO_T}$ac_cv_build" >&6
2052 build=$ac_cv_build
2053 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2054 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2055 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2056
2057
2058 echo "$as_me:$LINENO: checking host system type" >&5
2059 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2060 if test "${ac_cv_host+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   ac_cv_host_alias=$host_alias
2064 test -z "$ac_cv_host_alias" &&
2065   ac_cv_host_alias=$ac_cv_build_alias
2066 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2067   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2068 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2069    { (exit 1); exit 1; }; }
2070
2071 fi
2072 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2073 echo "${ECHO_T}$ac_cv_host" >&6
2074 host=$ac_cv_host
2075 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2076 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2077 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2078
2079
2080
2081 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2082 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2083 if test "${ac_cv_c_bigendian+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   # See if sys/param.h defines the BYTE_ORDER macro.
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 #include "confdefs.h"
2090 #include <sys/types.h>
2091 #include <sys/param.h>
2092
2093 #ifdef F77_DUMMY_MAIN
2094 #  ifdef __cplusplus
2095      extern "C"
2096 #  endif
2097    int F77_DUMMY_MAIN() { return 1; }
2098 #endif
2099 int
2100 main ()
2101 {
2102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2103  bogus endian macros
2104 #endif
2105
2106   ;
2107   return 0;
2108 }
2109 _ACEOF
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112   (eval $ac_compile) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); } &&
2116          { ac_try='test -s conftest.$ac_objext'
2117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118   (eval $ac_try) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }; }; then
2122   # It does; now see whether it defined to BIG_ENDIAN or not.
2123 cat >conftest.$ac_ext <<_ACEOF
2124 #line $LINENO "configure"
2125 #include "confdefs.h"
2126 #include <sys/types.h>
2127 #include <sys/param.h>
2128
2129 #ifdef F77_DUMMY_MAIN
2130 #  ifdef __cplusplus
2131      extern "C"
2132 #  endif
2133    int F77_DUMMY_MAIN() { return 1; }
2134 #endif
2135 int
2136 main ()
2137 {
2138 #if BYTE_ORDER != BIG_ENDIAN
2139  not big endian
2140 #endif
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); } &&
2152          { ac_try='test -s conftest.$ac_objext'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158   ac_cv_c_bigendian=yes
2159 else
2160   echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 ac_cv_c_bigendian=no
2163 fi
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165 else
2166   echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 # It does not; compile a test program.
2169 if test "$cross_compiling" = yes; then
2170   # try to guess the endianess by grep'ing values into an object file
2171   ac_cv_c_bigendian=unknown
2172   cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 #include "confdefs.h"
2175 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2176 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2177 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2178 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2179 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2180 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2181 #ifdef F77_DUMMY_MAIN
2182 #  ifdef __cplusplus
2183      extern "C"
2184 #  endif
2185    int F77_DUMMY_MAIN() { return 1; }
2186 #endif
2187 int
2188 main ()
2189 {
2190  _ascii (); _ebcdic (); 
2191   ;
2192   return 0;
2193 }
2194 _ACEOF
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197   (eval $ac_compile) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); } &&
2201          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2207   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2208   ac_cv_c_bigendian=yes
2209 fi
2210 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2211   if test "$ac_cv_c_bigendian" = unknown; then
2212     ac_cv_c_bigendian=no
2213   else
2214     # finding both strings is unlikely to happen, but who knows?
2215     ac_cv_c_bigendian=unknown
2216   fi
2217 fi
2218 else
2219   echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 fi
2222 rm -f conftest.$ac_objext conftest.$ac_ext
2223 else
2224   cat >conftest.$ac_ext <<_ACEOF
2225 #line $LINENO "configure"
2226 #include "confdefs.h"
2227 int
2228 main ()
2229 {
2230   /* Are we little or big endian?  From Harbison&Steele.  */
2231   union
2232   {
2233     long l;
2234     char c[sizeof (long)];
2235   } u;
2236   u.l = 1;
2237   exit (u.c[sizeof (long) - 1] == 1);
2238 }
2239 _ACEOF
2240 rm -f conftest$ac_exeext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2242   (eval $ac_link) 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247   (eval $ac_try) 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); }; }; then
2251   ac_cv_c_bigendian=no
2252 else
2253   echo "$as_me: program exited with status $ac_status" >&5
2254 echo "$as_me: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2256 ( exit $ac_status )
2257 ac_cv_c_bigendian=yes
2258 fi
2259 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 fi
2262 rm -f conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2265 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2266 case $ac_cv_c_bigendian in
2267   yes)
2268     
2269 cat >>confdefs.h <<\_ACEOF
2270 @%:@define WORDS_BIGENDIAN 1
2271 _ACEOF
2272  ;;
2273   no)
2274      ;;
2275   *)
2276     { { echo "$as_me:$LINENO: error: unknown endianess
2277 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2278 echo "$as_me: error: unknown endianess
2279 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2280    { (exit 1); exit 1; }; } ;;
2281 esac
2282
2283
2284 # Checks for programs.
2285 ac_ext=c
2286 ac_cpp='$CPP $CPPFLAGS'
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2291 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2292 # On Suns, sometimes $CPP names a directory.
2293 if test -n "$CPP" && test -d "$CPP"; then
2294   CPP=
2295 fi
2296 if test -z "$CPP"; then
2297   if test "${ac_cv_prog_CPP+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300       # Double quotes because CPP needs to be expanded
2301     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2302     do
2303       ac_preproc_ok=false
2304 for ac_c_preproc_warn_flag in '' yes
2305 do
2306   # Use a header file that comes with gcc, so configuring glibc
2307   # with a fresh cross-compiler works.
2308   # On the NeXT, cc -E runs the code through the compiler's parser,
2309   # not just through cpp. "Syntax error" is here to catch this case.
2310   cat >conftest.$ac_ext <<_ACEOF
2311 #line $LINENO "configure"
2312 #include "confdefs.h"
2313 @%:@include <assert.h>
2314                      Syntax error
2315 _ACEOF
2316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2318   ac_status=$?
2319   egrep -v '^ *\+' conftest.er1 >conftest.err
2320   rm -f conftest.er1
2321   cat conftest.err >&5
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); } >/dev/null; then
2324   if test -s conftest.err; then
2325     ac_cpp_err=$ac_c_preproc_warn_flag
2326   else
2327     ac_cpp_err=
2328   fi
2329 else
2330   ac_cpp_err=yes
2331 fi
2332 if test -z "$ac_cpp_err"; then
2333   :
2334 else
2335   echo "$as_me: failed program was:" >&5
2336   cat conftest.$ac_ext >&5
2337   # Broken: fails on valid input.
2338 continue
2339 fi
2340 rm -f conftest.err conftest.$ac_ext
2341
2342   # OK, works on sane cases.  Now check whether non-existent headers
2343   # can be detected and how.
2344   cat >conftest.$ac_ext <<_ACEOF
2345 #line $LINENO "configure"
2346 #include "confdefs.h"
2347 @%:@include <ac_nonexistent.h>
2348 _ACEOF
2349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351   ac_status=$?
2352   egrep -v '^ *\+' conftest.er1 >conftest.err
2353   rm -f conftest.er1
2354   cat conftest.err >&5
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); } >/dev/null; then
2357   if test -s conftest.err; then
2358     ac_cpp_err=$ac_c_preproc_warn_flag
2359   else
2360     ac_cpp_err=
2361   fi
2362 else
2363   ac_cpp_err=yes
2364 fi
2365 if test -z "$ac_cpp_err"; then
2366   # Broken: success on invalid input.
2367 continue
2368 else
2369   echo "$as_me: failed program was:" >&5
2370   cat conftest.$ac_ext >&5
2371   # Passes both tests.
2372 ac_preproc_ok=:
2373 break
2374 fi
2375 rm -f conftest.err conftest.$ac_ext
2376
2377 done
2378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2379 rm -f conftest.err conftest.$ac_ext
2380 if $ac_preproc_ok; then
2381   break
2382 fi
2383
2384     done
2385     ac_cv_prog_CPP=$CPP
2386   
2387 fi
2388   CPP=$ac_cv_prog_CPP
2389 else
2390   ac_cv_prog_CPP=$CPP
2391 fi
2392 echo "$as_me:$LINENO: result: $CPP" >&5
2393 echo "${ECHO_T}$CPP" >&6
2394 ac_preproc_ok=false
2395 for ac_c_preproc_warn_flag in '' yes
2396 do
2397   # Use a header file that comes with gcc, so configuring glibc
2398   # with a fresh cross-compiler works.
2399   # On the NeXT, cc -E runs the code through the compiler's parser,
2400   # not just through cpp. "Syntax error" is here to catch this case.
2401   cat >conftest.$ac_ext <<_ACEOF
2402 #line $LINENO "configure"
2403 #include "confdefs.h"
2404 @%:@include <assert.h>
2405                      Syntax error
2406 _ACEOF
2407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2409   ac_status=$?
2410   egrep -v '^ *\+' conftest.er1 >conftest.err
2411   rm -f conftest.er1
2412   cat conftest.err >&5
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); } >/dev/null; then
2415   if test -s conftest.err; then
2416     ac_cpp_err=$ac_c_preproc_warn_flag
2417   else
2418     ac_cpp_err=
2419   fi
2420 else
2421   ac_cpp_err=yes
2422 fi
2423 if test -z "$ac_cpp_err"; then
2424   :
2425 else
2426   echo "$as_me: failed program was:" >&5
2427   cat conftest.$ac_ext >&5
2428   # Broken: fails on valid input.
2429 continue
2430 fi
2431 rm -f conftest.err conftest.$ac_ext
2432
2433   # OK, works on sane cases.  Now check whether non-existent headers
2434   # can be detected and how.
2435   cat >conftest.$ac_ext <<_ACEOF
2436 #line $LINENO "configure"
2437 #include "confdefs.h"
2438 @%:@include <ac_nonexistent.h>
2439 _ACEOF
2440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2442   ac_status=$?
2443   egrep -v '^ *\+' conftest.er1 >conftest.err
2444   rm -f conftest.er1
2445   cat conftest.err >&5
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); } >/dev/null; then
2448   if test -s conftest.err; then
2449     ac_cpp_err=$ac_c_preproc_warn_flag
2450   else
2451     ac_cpp_err=
2452   fi
2453 else
2454   ac_cpp_err=yes
2455 fi
2456 if test -z "$ac_cpp_err"; then
2457   # Broken: success on invalid input.
2458 continue
2459 else
2460   echo "$as_me: failed program was:" >&5
2461   cat conftest.$ac_ext >&5
2462   # Passes both tests.
2463 ac_preproc_ok=:
2464 break
2465 fi
2466 rm -f conftest.err conftest.$ac_ext
2467
2468 done
2469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2470 rm -f conftest.err conftest.$ac_ext
2471 if $ac_preproc_ok; then
2472   :
2473 else
2474   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2475 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2476    { (exit 1); exit 1; }; }
2477 fi
2478
2479 ac_ext=c
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484
2485 if test -n "$ac_tool_prefix"; then
2486   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2488 echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2490 if test "${ac_cv_prog_RANLIB+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493   if test -n "$RANLIB"; then
2494   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499   IFS=$as_save_IFS
2500   test -z "$as_dir" && as_dir=.
2501   for ac_exec_ext in '' $ac_executable_extensions; do
2502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505     break 2
2506   fi
2507 done
2508 done
2509
2510 fi
2511 fi
2512 RANLIB=$ac_cv_prog_RANLIB
2513 if test -n "$RANLIB"; then
2514   echo "$as_me:$LINENO: result: $RANLIB" >&5
2515 echo "${ECHO_T}$RANLIB" >&6
2516 else
2517   echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6
2519 fi
2520
2521 fi
2522 if test -z "$ac_cv_prog_RANLIB"; then
2523   ac_ct_RANLIB=$RANLIB
2524   # Extract the first word of "ranlib", so it can be a program name with args.
2525 set dummy ranlib; ac_word=$2
2526 echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   if test -n "$ac_ct_RANLIB"; then
2532   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539   for ac_exec_ext in '' $ac_executable_extensions; do
2540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541     ac_cv_prog_ac_ct_RANLIB="ranlib"
2542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543     break 2
2544   fi
2545 done
2546 done
2547
2548   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2549 fi
2550 fi
2551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2552 if test -n "$ac_ct_RANLIB"; then
2553   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2554 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2555 else
2556   echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2558 fi
2559
2560   RANLIB=$ac_ct_RANLIB
2561 else
2562   RANLIB="$ac_cv_prog_RANLIB"
2563 fi
2564
2565 # Find a good install program.  We prefer a C program (faster),
2566 # so one script is as good as another.  But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2571 # AIX /bin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # ./install, which can be erroneously created by make from ./install.sh.
2577 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2578 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2579 if test -z "$INSTALL"; then
2580 if test "${ac_cv_path_install+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588   # Account for people who put trailing slashes in PATH elements.
2589 case $as_dir/ in
2590   ./ | .// | /cC/* | \
2591   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592   /usr/ucb/* ) ;;
2593   *)
2594     # OSF1 and SCO ODT 3.0 have their own names for install.
2595     # Don't use installbsd from OSF since it installs stuff as root
2596     # by default.
2597     for ac_prog in ginstall scoinst install; do
2598       for ac_exec_ext in '' $ac_executable_extensions; do
2599         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2600           if test $ac_prog = install &&
2601             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602             # AIX install.  It has an incompatible calling convention.
2603             :
2604           elif test $ac_prog = install &&
2605             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606             # program-specific install script used by HP pwplus--don't use.
2607             :
2608           else
2609             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2610             break 3
2611           fi
2612         fi
2613       done
2614     done
2615     ;;
2616 esac
2617 done
2618
2619
2620 fi
2621   if test "${ac_cv_path_install+set}" = set; then
2622     INSTALL=$ac_cv_path_install
2623   else
2624     # As a last resort, use the slow shell script.  We don't cache a
2625     # path for INSTALL within a source directory, because that will
2626     # break other packages using the cache if that directory is
2627     # removed, or if the path is relative.
2628     INSTALL=$ac_install_sh
2629   fi
2630 fi
2631 echo "$as_me:$LINENO: result: $INSTALL" >&5
2632 echo "${ECHO_T}$INSTALL" >&6
2633
2634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2635 # It thinks the first close brace ends the variable substitution.
2636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2637
2638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2639
2640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2641
2642 # Extract the first word of "ar", so it can be a program name with args.
2643 set dummy ar; ac_word=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_path_AR+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   case $AR in
2650   [\\/]* | ?:[\\/]*)
2651   ac_cv_path_AR="$AR" # Let the user override the test with a path.
2652   ;;
2653   *)
2654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659   for ac_exec_ext in '' $ac_executable_extensions; do
2660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667
2668   ;;
2669 esac
2670 fi
2671 AR=$ac_cv_path_AR
2672
2673 if test -n "$AR"; then
2674   echo "$as_me:$LINENO: result: $AR" >&5
2675 echo "${ECHO_T}$AR" >&6
2676 else
2677   echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2679 fi
2680
2681 for ac_prog in perl5 perl
2682 do
2683   # Extract the first word of "$ac_prog", so it can be a program name with args.
2684 set dummy $ac_prog; ac_word=$2
2685 echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2687 if test "${ac_cv_path_PERL+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   case $PERL in
2691   [\\/]* | ?:[\\/]*)
2692   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2693   ;;
2694   *)
2695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698   IFS=$as_save_IFS
2699   test -z "$as_dir" && as_dir=.
2700   for ac_exec_ext in '' $ac_executable_extensions; do
2701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704     break 2
2705   fi
2706 done
2707 done
2708
2709   ;;
2710 esac
2711 fi
2712 PERL=$ac_cv_path_PERL
2713
2714 if test -n "$PERL"; then
2715   echo "$as_me:$LINENO: result: $PERL" >&5
2716 echo "${ECHO_T}$PERL" >&6
2717 else
2718   echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6
2720 fi
2721
2722   test -n "$PERL" && break
2723 done
2724
2725
2726 # Extract the first word of "ent", so it can be a program name with args.
2727 set dummy ent; ac_word=$2
2728 echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730 if test "${ac_cv_path_ENT+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733   case $ENT in
2734   [\\/]* | ?:[\\/]*)
2735   ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2736   ;;
2737   *)
2738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743   for ac_exec_ext in '' $ac_executable_extensions; do
2744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745     ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
2746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750 done
2751
2752   ;;
2753 esac
2754 fi
2755 ENT=$ac_cv_path_ENT
2756
2757 if test -n "$ENT"; then
2758   echo "$as_me:$LINENO: result: $ENT" >&5
2759 echo "${ECHO_T}$ENT" >&6
2760 else
2761   echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2763 fi
2764
2765
2766 for ac_prog in filepriv
2767 do
2768   # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2772 if test "${ac_cv_path_FILEPRIV+set}" = set; then
2773   echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775   case $FILEPRIV in
2776   [\\/]* | ?:[\\/]*)
2777   ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a path.
2778   ;;
2779   *)
2780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 as_dummy="/sbin:/usr/sbin"
2782 for as_dir in $as_dummy
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788     ac_cv_path_FILEPRIV="$as_dir/$ac_word$ac_exec_ext"
2789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793 done
2794
2795   ;;
2796 esac
2797 fi
2798 FILEPRIV=$ac_cv_path_FILEPRIV
2799
2800 if test -n "$FILEPRIV"; then
2801   echo "$as_me:$LINENO: result: $FILEPRIV" >&5
2802 echo "${ECHO_T}$FILEPRIV" >&6
2803 else
2804   echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806 fi
2807
2808   test -n "$FILEPRIV" && break
2809 done
2810 test -n "$FILEPRIV" || FILEPRIV="true"
2811
2812 # Extract the first word of "bash", so it can be a program name with args.
2813 set dummy bash; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   case $TEST_MINUS_S_SH in
2820   [\\/]* | ?:[\\/]*)
2821   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2822   ;;
2823   *)
2824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829   for ac_exec_ext in '' $ac_executable_extensions; do
2830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836 done
2837
2838   ;;
2839 esac
2840 fi
2841 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2842
2843 if test -n "$TEST_MINUS_S_SH"; then
2844   echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2845 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2846 else
2847   echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2849 fi
2850
2851 # Extract the first word of "ksh", so it can be a program name with args.
2852 set dummy ksh; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2856   echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858   case $TEST_MINUS_S_SH in
2859   [\\/]* | ?:[\\/]*)
2860   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2861   ;;
2862   *)
2863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876
2877   ;;
2878 esac
2879 fi
2880 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2881
2882 if test -n "$TEST_MINUS_S_SH"; then
2883   echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2884 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2885 else
2886   echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2888 fi
2889
2890 # Extract the first word of "sh", so it can be a program name with args.
2891 set dummy sh; ac_word=$2
2892 echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2894 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897   case $TEST_MINUS_S_SH in
2898   [\\/]* | ?:[\\/]*)
2899   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2900   ;;
2901   *)
2902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915
2916   ;;
2917 esac
2918 fi
2919 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2920
2921 if test -n "$TEST_MINUS_S_SH"; then
2922   echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2923 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2924 else
2925   echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6
2927 fi
2928
2929 # Extract the first word of "sh", so it can be a program name with args.
2930 set dummy sh; ac_word=$2
2931 echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933 if test "${ac_cv_path_SH+set}" = set; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   case $SH in
2937   [\\/]* | ?:[\\/]*)
2938   ac_cv_path_SH="$SH" # Let the user override the test with a path.
2939   ;;
2940   *)
2941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946   for ac_exec_ext in '' $ac_executable_extensions; do
2947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
2949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953 done
2954
2955   ;;
2956 esac
2957 fi
2958 SH=$ac_cv_path_SH
2959
2960 if test -n "$SH"; then
2961   echo "$as_me:$LINENO: result: $SH" >&5
2962 echo "${ECHO_T}$SH" >&6
2963 else
2964   echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2966 fi
2967
2968
2969 # System features
2970 # Check whether --enable-largefile or --disable-largefile was given.
2971 if test "${enable_largefile+set}" = set; then
2972   enableval="$enable_largefile"
2973   
2974 fi; 
2975 if test "$enable_largefile" != no; then
2976
2977   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2978 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2979 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   ac_cv_sys_largefile_CC=no
2983      if test "$GCC" != yes; then
2984        ac_save_CC=$CC
2985        while :; do
2986          # IRIX 6.2 and later do not support large files by default,
2987          # so use the C compiler's -n32 option if that helps.
2988          cat >conftest.$ac_ext <<_ACEOF
2989 #line $LINENO "configure"
2990 #include "confdefs.h"
2991 @%:@include <sys/types.h>
2992  /* Check that off_t can represent 2**63 - 1 correctly.
2993     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2994     since some C++ compilers masquerading as C compilers
2995     incorrectly reject 9223372036854775807.  */
2996 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2997   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2998                        && LARGE_OFF_T % 2147483647 == 1)
2999                       ? 1 : -1];
3000 #ifdef F77_DUMMY_MAIN
3001 #  ifdef __cplusplus
3002      extern "C"
3003 #  endif
3004    int F77_DUMMY_MAIN() { return 1; }
3005 #endif
3006 int
3007 main ()
3008 {
3009
3010   ;
3011   return 0;
3012 }
3013 _ACEOF
3014          rm -f conftest.$ac_objext
3015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3016   (eval $ac_compile) 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } &&
3020          { ac_try='test -s conftest.$ac_objext'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; }; then
3026   break
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3030 fi
3031 rm -f conftest.$ac_objext 
3032          CC="$CC -n32"
3033          rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035   (eval $ac_compile) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } &&
3039          { ac_try='test -s conftest.$ac_objext'
3040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041   (eval $ac_try) 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; }; then
3045   ac_cv_sys_largefile_CC=' -n32'; break
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3049 fi
3050 rm -f conftest.$ac_objext 
3051          break
3052        done
3053        CC=$ac_save_CC
3054        rm -f conftest.$ac_ext
3055     fi
3056 fi
3057 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3058 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3059   if test "$ac_cv_sys_largefile_CC" != no; then
3060     CC=$CC$ac_cv_sys_largefile_CC
3061   fi
3062
3063   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3064 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3065 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3066   echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068   while :; do
3069   ac_cv_sys_file_offset_bits=no
3070   cat >conftest.$ac_ext <<_ACEOF
3071 #line $LINENO "configure"
3072 #include "confdefs.h"
3073 @%:@include <sys/types.h>
3074  /* Check that off_t can represent 2**63 - 1 correctly.
3075     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3076     since some C++ compilers masquerading as C compilers
3077     incorrectly reject 9223372036854775807.  */
3078 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3079   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3080                        && LARGE_OFF_T % 2147483647 == 1)
3081                       ? 1 : -1];
3082 #ifdef F77_DUMMY_MAIN
3083 #  ifdef __cplusplus
3084      extern "C"
3085 #  endif
3086    int F77_DUMMY_MAIN() { return 1; }
3087 #endif
3088 int
3089 main ()
3090 {
3091
3092   ;
3093   return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098   (eval $ac_compile) 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } &&
3102          { ac_try='test -s conftest.$ac_objext'
3103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104   (eval $ac_try) 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }; }; then
3108   break
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3112 fi
3113 rm -f conftest.$ac_objext conftest.$ac_ext
3114   cat >conftest.$ac_ext <<_ACEOF
3115 #line $LINENO "configure"
3116 #include "confdefs.h"
3117 @%:@define _FILE_OFFSET_BITS 64
3118 @%:@include <sys/types.h>
3119  /* Check that off_t can represent 2**63 - 1 correctly.
3120     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3121     since some C++ compilers masquerading as C compilers
3122     incorrectly reject 9223372036854775807.  */
3123 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3124   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3125                        && LARGE_OFF_T % 2147483647 == 1)
3126                       ? 1 : -1];
3127 #ifdef F77_DUMMY_MAIN
3128 #  ifdef __cplusplus
3129      extern "C"
3130 #  endif
3131    int F77_DUMMY_MAIN() { return 1; }
3132 #endif
3133 int
3134 main ()
3135 {
3136
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143   (eval $ac_compile) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } &&
3147          { ac_try='test -s conftest.$ac_objext'
3148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149   (eval $ac_try) 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; }; then
3153   ac_cv_sys_file_offset_bits=64; break
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3157 fi
3158 rm -f conftest.$ac_objext conftest.$ac_ext
3159   break
3160 done
3161 fi
3162 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3163 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3164 if test "$ac_cv_sys_file_offset_bits" != no; then
3165   
3166 cat >>confdefs.h <<_ACEOF
3167 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3168 _ACEOF
3169
3170 fi
3171 rm -f conftest*
3172   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3173 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3174 if test "${ac_cv_sys_large_files+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   while :; do
3178   ac_cv_sys_large_files=no
3179   cat >conftest.$ac_ext <<_ACEOF
3180 #line $LINENO "configure"
3181 #include "confdefs.h"
3182 @%:@include <sys/types.h>
3183  /* Check that off_t can represent 2**63 - 1 correctly.
3184     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3185     since some C++ compilers masquerading as C compilers
3186     incorrectly reject 9223372036854775807.  */
3187 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3188   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3189                        && LARGE_OFF_T % 2147483647 == 1)
3190                       ? 1 : -1];
3191 #ifdef F77_DUMMY_MAIN
3192 #  ifdef __cplusplus
3193      extern "C"
3194 #  endif
3195    int F77_DUMMY_MAIN() { return 1; }
3196 #endif
3197 int
3198 main ()
3199 {
3200
3201   ;
3202   return 0;
3203 }
3204 _ACEOF
3205 rm -f conftest.$ac_objext
3206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207   (eval $ac_compile) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } &&
3211          { ac_try='test -s conftest.$ac_objext'
3212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213   (eval $ac_try) 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }; }; then
3217   break
3218 else
3219   echo "$as_me: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3221 fi
3222 rm -f conftest.$ac_objext conftest.$ac_ext
3223   cat >conftest.$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3225 #include "confdefs.h"
3226 @%:@define _LARGE_FILES 1
3227 @%:@include <sys/types.h>
3228  /* Check that off_t can represent 2**63 - 1 correctly.
3229     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3230     since some C++ compilers masquerading as C compilers
3231     incorrectly reject 9223372036854775807.  */
3232 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3233   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3234                        && LARGE_OFF_T % 2147483647 == 1)
3235                       ? 1 : -1];
3236 #ifdef F77_DUMMY_MAIN
3237 #  ifdef __cplusplus
3238      extern "C"
3239 #  endif
3240    int F77_DUMMY_MAIN() { return 1; }
3241 #endif
3242 int
3243 main ()
3244 {
3245
3246   ;
3247   return 0;
3248 }
3249 _ACEOF
3250 rm -f conftest.$ac_objext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252   (eval $ac_compile) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } &&
3256          { ac_try='test -s conftest.$ac_objext'
3257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258   (eval $ac_try) 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; }; then
3262   ac_cv_sys_large_files=1; break
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3266 fi
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3268   break
3269 done
3270 fi
3271 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3272 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3273 if test "$ac_cv_sys_large_files" != no; then
3274   
3275 cat >>confdefs.h <<_ACEOF
3276 @%:@define _LARGE_FILES $ac_cv_sys_large_files
3277 _ACEOF
3278
3279 fi
3280 rm -f conftest*
3281 fi
3282
3283
3284 if test -z "$AR" ; then
3285         { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3286 echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3287    { (exit 1); exit 1; }; }
3288 fi
3289
3290 # Use LOGIN_PROGRAM from environment if possible
3291 if test ! -z "$LOGIN_PROGRAM" ; then
3292         cat >>confdefs.h <<_ACEOF
3293 @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3294 _ACEOF
3295
3296 else
3297         # Search for login
3298         # Extract the first word of "login", so it can be a program name with args.
3299 set dummy login; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $LOGIN_PROGRAM_FALLBACK in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   ;;
3325 esac
3326 fi
3327 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3328
3329 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3330   echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3331 echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3332 else
3333   echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6
3335 fi
3336
3337         if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3338                 cat >>confdefs.h <<_ACEOF
3339 @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3340 _ACEOF
3341
3342         fi
3343 fi
3344
3345 if test -z "$LD" ; then
3346         LD=$CC
3347 fi
3348
3349         
3350 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3351 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3352 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   ac_cv_prog_cc_stdc=no
3356 ac_save_CC=$CC
3357 cat >conftest.$ac_ext <<_ACEOF
3358 #line $LINENO "configure"
3359 #include "confdefs.h"
3360 #include <stdarg.h>
3361 #include <stdio.h>
3362 #include <sys/types.h>
3363 #include <sys/stat.h>
3364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3365 struct buf { int x; };
3366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3367 static char *e (p, i)
3368      char **p;
3369      int i;
3370 {
3371   return p[i];
3372 }
3373 static char *f (char * (*g) (char **, int), char **p, ...)
3374 {
3375   char *s;
3376   va_list v;
3377   va_start (v,p);
3378   s = g (p, va_arg (v,int));
3379   va_end (v);
3380   return s;
3381 }
3382 int test (int i, double x);
3383 struct s1 {int (*f) (int a);};
3384 struct s2 {int (*f) (double a);};
3385 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386 int argc;
3387 char **argv;
3388 #ifdef F77_DUMMY_MAIN
3389 #  ifdef __cplusplus
3390      extern "C"
3391 #  endif
3392    int F77_DUMMY_MAIN() { return 1; }
3393 #endif
3394 int
3395 main ()
3396 {
3397 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 # Don't try gcc -ansi; that turns off useful extensions and
3403 # breaks some systems' header files.
3404 # AIX                   -qlanglvl=ansi
3405 # Ultrix and OSF/1      -std1
3406 # HP-UX 10.20 and later -Ae
3407 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3408 # SVR4                  -Xc -D__EXTENSIONS__
3409 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3410 do
3411   CC="$ac_save_CC $ac_arg"
3412   rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414   (eval $ac_compile) 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } &&
3418          { ac_try='test -s conftest.$ac_objext'
3419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420   (eval $ac_try) 2>&5
3421   ac_status=$?
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); }; }; then
3424   ac_cv_prog_cc_stdc=$ac_arg
3425 break
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3429 fi
3430 rm -f conftest.$ac_objext 
3431 done
3432 rm -f conftest.$ac_ext conftest.$ac_objext
3433 CC=$ac_save_CC
3434
3435 fi
3436
3437 case "x$ac_cv_prog_cc_stdc" in
3438   x|xno)
3439     echo "$as_me:$LINENO: result: none needed" >&5
3440 echo "${ECHO_T}none needed" >&6 ;;
3441   *)
3442     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3443 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3444     CC="$CC $ac_cv_prog_cc_stdc" ;;
3445 esac
3446
3447 echo "$as_me:$LINENO: checking for inline" >&5
3448 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3449 if test "${ac_cv_c_inline+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   ac_cv_c_inline=no
3453 for ac_kw in inline __inline__ __inline; do
3454   cat >conftest.$ac_ext <<_ACEOF
3455 #line $LINENO "configure"
3456 #include "confdefs.h"
3457 #ifndef __cplusplus
3458 static $ac_kw int static_foo () {return 0; }
3459 $ac_kw int foo () {return 0; }
3460 #endif
3461
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465   (eval $ac_compile) 2>&5
3466   ac_status=$?
3467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); } &&
3469          { ac_try='test -s conftest.$ac_objext'
3470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471   (eval $ac_try) 2>&5
3472   ac_status=$?
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); }; }; then
3475   ac_cv_c_inline=$ac_kw; break
3476 else
3477   echo "$as_me: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3479 fi
3480 rm -f conftest.$ac_objext conftest.$ac_ext
3481 done
3482
3483 fi
3484 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3485 echo "${ECHO_T}$ac_cv_c_inline" >&6
3486 case $ac_cv_c_inline in
3487   inline | yes) ;;
3488   no) 
3489 cat >>confdefs.h <<\_ACEOF
3490 @%:@define inline 
3491 _ACEOF
3492  ;;
3493   *)  cat >>confdefs.h <<_ACEOF
3494 @%:@define inline $ac_cv_c_inline
3495 _ACEOF
3496  ;;
3497 esac
3498
3499 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 
3500         CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3501 fi
3502
3503 # Check for some target-specific stuff
3504 case "$host" in
3505 *-*-aix*)
3506         AFS_LIBS="-lld"
3507         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3508         LDFLAGS="$LDFLAGS -L/usr/local/lib"
3509         if (test "$LD" != "gcc" && test -z "$blibpath"); then
3510                 echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5
3511 echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6
3512                 saved_LDFLAGS="$LDFLAGS"
3513                 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib"
3514                 cat >conftest.$ac_ext <<_ACEOF
3515 #line $LINENO "configure"
3516 #include "confdefs.h"
3517
3518 #ifdef F77_DUMMY_MAIN
3519 #  ifdef __cplusplus
3520      extern "C"
3521 #  endif
3522    int F77_DUMMY_MAIN() { return 1; }
3523 #endif
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 rm -f conftest.$ac_objext conftest$ac_exeext
3533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3534   (eval $ac_link) 2>&5
3535   ac_status=$?
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } &&
3538          { ac_try='test -s conftest$ac_exeext'
3539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540   (eval $ac_try) 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; }; then
3544   
3545                                 echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6
3547                                 blibpath="/usr/lib:/lib:/usr/local/lib"
3548                         
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3552  echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6 
3554                 
3555 fi
3556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3557                 LDFLAGS="$saved_LDFLAGS"
3558         fi
3559         echo "$as_me:$LINENO: checking for authenticate" >&5
3560 echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3561 if test "${ac_cv_func_authenticate+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   cat >conftest.$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3566 #include "confdefs.h"
3567 /* System header to define __stub macros and hopefully few prototypes,
3568     which can conflict with char authenticate (); below.  */
3569 #include <assert.h>
3570 /* Override any gcc2 internal prototype to avoid an error.  */
3571 #ifdef __cplusplus
3572 extern "C"
3573 #endif
3574 /* We use char because int might match the return type of a gcc2
3575    builtin and then its argument prototype would still apply.  */
3576 char authenticate ();
3577 char (*f) ();
3578
3579 #ifdef F77_DUMMY_MAIN
3580 #  ifdef __cplusplus
3581      extern "C"
3582 #  endif
3583    int F77_DUMMY_MAIN() { return 1; }
3584 #endif
3585 int
3586 main ()
3587 {
3588 /* The GNU C library defines this for functions which it implements
3589     to always fail with ENOSYS.  Some functions are actually named
3590     something starting with __ and the normal name is an alias.  */
3591 #if defined (__stub_authenticate) || defined (__stub___authenticate)
3592 choke me
3593 #else
3594 f = authenticate;
3595 #endif
3596
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 rm -f conftest.$ac_objext conftest$ac_exeext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603   (eval $ac_link) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } &&
3607          { ac_try='test -s conftest$ac_exeext'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; }; then
3613   ac_cv_func_authenticate=yes
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 ac_cv_func_authenticate=no
3618 fi
3619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3620 fi
3621 echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3622 echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3623 if test $ac_cv_func_authenticate = yes; then
3624   cat >>confdefs.h <<\_ACEOF
3625 @%:@define WITH_AIXAUTHENTICATE 1
3626 _ACEOF
3627
3628 fi
3629
3630         cat >>confdefs.h <<\_ACEOF
3631 @%:@define BROKEN_GETADDRINFO 1
3632 _ACEOF
3633
3634         cat >>confdefs.h <<\_ACEOF
3635 @%:@define BROKEN_REALPATH 1
3636 _ACEOF
3637
3638                 cat >>confdefs.h <<\_ACEOF
3639 @%:@define DISABLE_LASTLOG 1
3640 _ACEOF
3641
3642         ;;
3643 *-*-cygwin*)
3644         LIBS="$LIBS /usr/lib/textmode.o"
3645         cat >>confdefs.h <<\_ACEOF
3646 @%:@define HAVE_CYGWIN 1
3647 _ACEOF
3648
3649         cat >>confdefs.h <<\_ACEOF
3650 @%:@define USE_PIPES 1
3651 _ACEOF
3652
3653         cat >>confdefs.h <<\_ACEOF
3654 @%:@define DISABLE_SHADOW 1
3655 _ACEOF
3656
3657         cat >>confdefs.h <<\_ACEOF
3658 @%:@define IPV4_DEFAULT 1
3659 _ACEOF
3660
3661         cat >>confdefs.h <<\_ACEOF
3662 @%:@define IP_TOS_IS_BROKEN 1
3663 _ACEOF
3664
3665         cat >>confdefs.h <<\_ACEOF
3666 @%:@define NO_X11_UNIX_SOCKETS 1
3667 _ACEOF
3668
3669         ;;
3670 *-*-dgux*)
3671         cat >>confdefs.h <<\_ACEOF
3672 @%:@define IP_TOS_IS_BROKEN 1
3673 _ACEOF
3674
3675         ;;
3676 *-*-darwin*)
3677         cat >>confdefs.h <<\_ACEOF
3678 @%:@define BROKEN_GETADDRINFO 1
3679 _ACEOF
3680
3681         ;;
3682 *-*-hpux10.26)
3683         if test -z "$GCC"; then
3684                 CFLAGS="$CFLAGS -Ae"
3685         fi
3686         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3687         IPADDR_IN_DISPLAY=yes
3688         cat >>confdefs.h <<\_ACEOF
3689 @%:@define HAVE_SECUREWARE 1
3690 _ACEOF
3691
3692         cat >>confdefs.h <<\_ACEOF
3693 @%:@define USE_PIPES 1
3694 _ACEOF
3695
3696         cat >>confdefs.h <<\_ACEOF
3697 @%:@define LOGIN_NO_ENDOPT 1
3698 _ACEOF
3699
3700         cat >>confdefs.h <<\_ACEOF
3701 @%:@define LOGIN_NEEDS_UTMPX 1
3702 _ACEOF
3703
3704         cat >>confdefs.h <<\_ACEOF
3705 @%:@define DISABLE_SHADOW 1
3706 _ACEOF
3707
3708         cat >>confdefs.h <<\_ACEOF
3709 @%:@define DISABLE_UTMP 1
3710 _ACEOF
3711
3712         cat >>confdefs.h <<\_ACEOF
3713 @%:@define SPT_TYPE SPT_PSTAT
3714 _ACEOF
3715
3716         LIBS="$LIBS -lxnet -lsec -lsecpw"
3717         disable_ptmx_check=yes
3718         ;;
3719 *-*-hpux10*)
3720         if test -z "$GCC"; then
3721                 CFLAGS="$CFLAGS -Ae"
3722         fi
3723         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3724         IPADDR_IN_DISPLAY=yes
3725         cat >>confdefs.h <<\_ACEOF
3726 @%:@define USE_PIPES 1
3727 _ACEOF
3728
3729         cat >>confdefs.h <<\_ACEOF
3730 @%:@define LOGIN_NO_ENDOPT 1
3731 _ACEOF
3732
3733         cat >>confdefs.h <<\_ACEOF
3734 @%:@define LOGIN_NEEDS_UTMPX 1
3735 _ACEOF
3736
3737         cat >>confdefs.h <<\_ACEOF
3738 @%:@define DISABLE_SHADOW 1
3739 _ACEOF
3740
3741         cat >>confdefs.h <<\_ACEOF
3742 @%:@define DISABLE_UTMP 1
3743 _ACEOF
3744
3745         cat >>confdefs.h <<\_ACEOF
3746 @%:@define SPT_TYPE SPT_PSTAT
3747 _ACEOF
3748
3749         LIBS="$LIBS -lxnet -lsec"
3750         ;;
3751 *-*-hpux11*)
3752         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3753         IPADDR_IN_DISPLAY=yes
3754         cat >>confdefs.h <<\_ACEOF
3755 @%:@define PAM_SUN_CODEBASE 1
3756 _ACEOF
3757
3758         cat >>confdefs.h <<\_ACEOF
3759 @%:@define USE_PIPES 1
3760 _ACEOF
3761
3762         cat >>confdefs.h <<\_ACEOF
3763 @%:@define LOGIN_NO_ENDOPT 1
3764 _ACEOF
3765
3766         cat >>confdefs.h <<\_ACEOF
3767 @%:@define LOGIN_NEEDS_UTMPX 1
3768 _ACEOF
3769
3770         cat >>confdefs.h <<\_ACEOF
3771 @%:@define DISABLE_SHADOW 1
3772 _ACEOF
3773
3774         cat >>confdefs.h <<\_ACEOF
3775 @%:@define DISABLE_UTMP 1
3776 _ACEOF
3777
3778         cat >>confdefs.h <<\_ACEOF
3779 @%:@define SPT_TYPE SPT_PSTAT
3780 _ACEOF
3781
3782         LIBS="$LIBS -lxnet -lsec"
3783         ;;
3784 *-*-irix5*)
3785         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3786         LDFLAGS="$LDFLAGS"
3787         PATH="$PATH:/usr/etc"
3788         cat >>confdefs.h <<\_ACEOF
3789 @%:@define BROKEN_INET_NTOA 1
3790 _ACEOF
3791
3792         cat >>confdefs.h <<\_ACEOF
3793 @%:@define WITH_ABBREV_NO_TTY 1
3794 _ACEOF
3795
3796         ;;
3797 *-*-irix6*)
3798         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3799         LDFLAGS="$LDFLAGS"
3800         PATH="$PATH:/usr/etc"
3801         cat >>confdefs.h <<\_ACEOF
3802 @%:@define WITH_IRIX_ARRAY 1
3803 _ACEOF
3804
3805         cat >>confdefs.h <<\_ACEOF
3806 @%:@define WITH_IRIX_PROJECT 1
3807 _ACEOF
3808
3809         cat >>confdefs.h <<\_ACEOF
3810 @%:@define WITH_IRIX_AUDIT 1
3811 _ACEOF
3812
3813         echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
3814 echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
3815 if test "${ac_cv_func_jlimit_startjob+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   cat >conftest.$ac_ext <<_ACEOF
3819 #line $LINENO "configure"
3820 #include "confdefs.h"
3821 /* System header to define __stub macros and hopefully few prototypes,
3822     which can conflict with char jlimit_startjob (); below.  */
3823 #include <assert.h>
3824 /* Override any gcc2 internal prototype to avoid an error.  */
3825 #ifdef __cplusplus
3826 extern "C"
3827 #endif
3828 /* We use char because int might match the return type of a gcc2
3829    builtin and then its argument prototype would still apply.  */
3830 char jlimit_startjob ();
3831 char (*f) ();
3832
3833 #ifdef F77_DUMMY_MAIN
3834 #  ifdef __cplusplus
3835      extern "C"
3836 #  endif
3837    int F77_DUMMY_MAIN() { return 1; }
3838 #endif
3839 int
3840 main ()
3841 {
3842 /* The GNU C library defines this for functions which it implements
3843     to always fail with ENOSYS.  Some functions are actually named
3844     something starting with __ and the normal name is an alias.  */
3845 #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
3846 choke me
3847 #else
3848 f = jlimit_startjob;
3849 #endif
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.$ac_objext conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857   (eval $ac_link) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } &&
3861          { ac_try='test -s conftest$ac_exeext'
3862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863   (eval $ac_try) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   ac_cv_func_jlimit_startjob=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3871 ac_cv_func_jlimit_startjob=no
3872 fi
3873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3874 fi
3875 echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
3876 echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
3877 if test $ac_cv_func_jlimit_startjob = yes; then
3878   cat >>confdefs.h <<\_ACEOF
3879 @%:@define WITH_IRIX_JOBS 1
3880 _ACEOF
3881
3882 fi
3883
3884         cat >>confdefs.h <<\_ACEOF
3885 @%:@define BROKEN_INET_NTOA 1
3886 _ACEOF
3887
3888         cat >>confdefs.h <<\_ACEOF
3889 @%:@define WITH_ABBREV_NO_TTY 1
3890 _ACEOF
3891
3892         ;;
3893 *-*-linux*)
3894         no_dev_ptmx=1
3895         check_for_libcrypt_later=1
3896         cat >>confdefs.h <<\_ACEOF
3897 @%:@define DONT_TRY_OTHER_AF 1
3898 _ACEOF
3899
3900         cat >>confdefs.h <<\_ACEOF
3901 @%:@define PAM_TTY_KLUDGE 1
3902 _ACEOF
3903
3904         inet6_default_4in6=yes
3905         ;;
3906 mips-sony-bsd|mips-sony-newsos4)
3907         cat >>confdefs.h <<\_ACEOF
3908 @%:@define HAVE_NEWS4 1
3909 _ACEOF
3910
3911         SONY=1
3912         ;;
3913 *-*-netbsd*)
3914         need_dash_r=1
3915         ;;
3916 *-*-freebsd*)
3917         check_for_libcrypt_later=1
3918         ;;
3919 *-next-*)
3920         conf_lastlog_location="/usr/adm/lastlog"
3921         conf_utmp_location=/etc/utmp
3922         conf_wtmp_location=/usr/adm/wtmp
3923         MAIL=/usr/spool/mail
3924         cat >>confdefs.h <<\_ACEOF
3925 @%:@define HAVE_NEXT 1
3926 _ACEOF
3927
3928         cat >>confdefs.h <<\_ACEOF
3929 @%:@define BROKEN_REALPATH 1
3930 _ACEOF
3931
3932         cat >>confdefs.h <<\_ACEOF
3933 @%:@define USE_PIPES 1
3934 _ACEOF
3935
3936         cat >>confdefs.h <<\_ACEOF
3937 @%:@define BROKEN_SAVED_UIDS 1
3938 _ACEOF
3939
3940         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3941         CFLAGS="$CFLAGS"
3942         ;;
3943 *-*-solaris*)
3944         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3945         LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" 
3946         need_dash_r=1
3947         cat >>confdefs.h <<\_ACEOF
3948 @%:@define PAM_SUN_CODEBASE 1
3949 _ACEOF
3950
3951         cat >>confdefs.h <<\_ACEOF
3952 @%:@define LOGIN_NEEDS_UTMPX 1
3953 _ACEOF
3954
3955         cat >>confdefs.h <<\_ACEOF
3956 @%:@define LOGIN_NEEDS_TERM 1
3957 _ACEOF
3958
3959         cat >>confdefs.h <<\_ACEOF
3960 @%:@define PAM_TTY_KLUDGE 1
3961 _ACEOF
3962
3963         # hardwire lastlog location (can't detect it on some versions)
3964         conf_lastlog_location="/var/adm/lastlog"
3965         echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
3966 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
3967         sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
3968         if test "$sol2ver" -ge 8; then
3969                 echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6
3971                 cat >>confdefs.h <<\_ACEOF
3972 @%:@define DISABLE_UTMP 1
3973 _ACEOF
3974
3975                 cat >>confdefs.h <<\_ACEOF
3976 @%:@define DISABLE_WTMP 1
3977 _ACEOF
3978
3979         else
3980                 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982         fi
3983         ;;
3984 *-*-sunos4*)
3985         CPPFLAGS="$CPPFLAGS -DSUNOS4"
3986         
3987 for ac_func in getpwanam
3988 do
3989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3990 echo "$as_me:$LINENO: checking for $ac_func" >&5
3991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3992 if eval "test \"\${$as_ac_var+set}\" = set"; then
3993   echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995   cat >conftest.$ac_ext <<_ACEOF
3996 #line $LINENO "configure"
3997 #include "confdefs.h"
3998 /* System header to define __stub macros and hopefully few prototypes,
3999     which can conflict with char $ac_func (); below.  */
4000 #include <assert.h>
4001 /* Override any gcc2 internal prototype to avoid an error.  */
4002 #ifdef __cplusplus
4003 extern "C"
4004 #endif
4005 /* We use char because int might match the return type of a gcc2
4006    builtin and then its argument prototype would still apply.  */
4007 char $ac_func ();
4008 char (*f) ();
4009
4010 #ifdef F77_DUMMY_MAIN
4011 #  ifdef __cplusplus
4012      extern "C"
4013 #  endif
4014    int F77_DUMMY_MAIN() { return 1; }
4015 #endif
4016 int
4017 main ()
4018 {
4019 /* The GNU C library defines this for functions which it implements
4020     to always fail with ENOSYS.  Some functions are actually named
4021     something starting with __ and the normal name is an alias.  */
4022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4023 choke me
4024 #else
4025 f = $ac_func;
4026 #endif
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext conftest$ac_exeext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4034   (eval $ac_link) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } &&
4038          { ac_try='test -s conftest$ac_exeext'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; }; then
4044   eval "$as_ac_var=yes"
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 eval "$as_ac_var=no"
4049 fi
4050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4051 fi
4052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4054 if test `eval echo '${'$as_ac_var'}'` = yes; then
4055   cat >>confdefs.h <<_ACEOF
4056 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4057 _ACEOF
4058  
4059 fi
4060 done
4061
4062         cat >>confdefs.h <<\_ACEOF
4063 @%:@define PAM_SUN_CODEBASE 1
4064 _ACEOF
4065
4066         conf_utmp_location=/etc/utmp
4067         conf_wtmp_location=/var/adm/wtmp
4068         conf_lastlog_location=/var/adm/lastlog
4069         cat >>confdefs.h <<\_ACEOF
4070 @%:@define USE_PIPES 1
4071 _ACEOF
4072
4073         ;;
4074 *-ncr-sysv*)
4075         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4076         LDFLAGS="$LDFLAGS -L/usr/local/lib"
4077         LIBS="$LIBS -lc89"
4078         cat >>confdefs.h <<\_ACEOF
4079 @%:@define USE_PIPES 1
4080 _ACEOF
4081
4082         ;;
4083 *-sni-sysv*)
4084         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4085         # /usr/ucblib MUST NOT be searched on ReliantUNIX
4086         LDFLAGS="$LDFLAGS -L/usr/local/lib"
4087         IPADDR_IN_DISPLAY=yes
4088         cat >>confdefs.h <<\_ACEOF
4089 @%:@define USE_PIPES 1
4090 _ACEOF
4091
4092         cat >>confdefs.h <<\_ACEOF
4093 @%:@define IP_TOS_IS_BROKEN 1
4094 _ACEOF
4095
4096         # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4097         # Attention: always take care to bind libsocket and libnsl before libc,
4098         # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4099         ;;
4100 *-*-sysv4.2*)
4101         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4102         LDFLAGS="$LDFLAGS -L/usr/local/lib"
4103 #       enable_suid_ssh=no
4104         cat >>confdefs.h <<\_ACEOF
4105 @%:@define USE_PIPES 1
4106 _ACEOF
4107
4108         ;;
4109 *-*-sysv5*)
4110         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4111         LDFLAGS="$LDFLAGS -L/usr/local/lib"
4112 #       enable_suid_ssh=no
4113         cat >>confdefs.h <<\_ACEOF
4114 @%:@define USE_PIPES 1
4115 _ACEOF
4116
4117         ;;
4118 *-*-sysv*)
4119         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4120         LDFLAGS="$LDFLAGS -L/usr/local/lib"
4121         ;;
4122 *-*-sco3.2v4*)
4123         CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4124         LDFLAGS="$LDFLAGS -L/usr/local/lib"
4125         LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4126         rsh_path="/usr/bin/rcmd"
4127         RANLIB=true
4128         no_dev_ptmx=1
4129         cat >>confdefs.h <<\_ACEOF
4130 @%:@define BROKEN_SYS_TERMIO_H 1
4131 _ACEOF
4132
4133         cat >>confdefs.h <<\_ACEOF
4134 @%:@define USE_PIPES 1
4135 _ACEOF
4136
4137         cat >>confdefs.h <<\_ACEOF
4138 @%:@define HAVE_SECUREWARE 1
4139 _ACEOF
4140
4141         cat >>confdefs.h <<\_ACEOF
4142 @%:@define DISABLE_SHADOW 1
4143 _ACEOF
4144
4145         cat >>confdefs.h <<\_ACEOF
4146 @%:@define BROKEN_SAVED_UIDS 1
4147 _ACEOF
4148
4149         
4150
4151 for ac_func in getluid setluid
4152 do
4153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4154 echo "$as_me:$LINENO: checking for $ac_func" >&5
4155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4156 if eval "test \"\${$as_ac_var+set}\" = set"; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   cat >conftest.$ac_ext <<_ACEOF
4160 #line $LINENO "configure"
4161 #include "confdefs.h"
4162 /* System header to define __stub macros and hopefully few prototypes,
4163     which can conflict with char $ac_func (); below.  */
4164 #include <assert.h>
4165 /* Override any gcc2 internal prototype to avoid an error.  */
4166 #ifdef __cplusplus
4167 extern "C"
4168 #endif
4169 /* We use char because int might match the return type of a gcc2
4170    builtin and then its argument prototype would still apply.  */
4171 char $ac_func ();
4172 char (*f) ();
4173
4174 #ifdef F77_DUMMY_MAIN
4175 #  ifdef __cplusplus
4176      extern "C"
4177 #  endif
4178    int F77_DUMMY_MAIN() { return 1; }
4179 #endif
4180 int
4181 main ()
4182 {
4183 /* The GNU C library defines this for functions which it implements
4184     to always fail with ENOSYS.  Some functions are actually named
4185     something starting with __ and the normal name is an alias.  */
4186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4187 choke me
4188 #else
4189 f = $ac_func;
4190 #endif
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 rm -f conftest.$ac_objext conftest$ac_exeext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198   (eval $ac_link) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } &&
4202          { ac_try='test -s conftest$ac_exeext'
4203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204   (eval $ac_try) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; }; then
4208   eval "$as_ac_var=yes"
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4212 eval "$as_ac_var=no"
4213 fi
4214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4215 fi
4216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4218 if test `eval echo '${'$as_ac_var'}'` = yes; then
4219   cat >>confdefs.h <<_ACEOF
4220 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4221 _ACEOF
4222  
4223 fi
4224 done
4225
4226         MANTYPE=man
4227         do_sco3_extra_lib_check=yes
4228         ;;
4229 *-*-sco3.2v5*)
4230         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4231         LDFLAGS="$LDFLAGS -L/usr/local/lib"
4232         LIBS="$LIBS -lprot -lx -ltinfo -lm"
4233         no_dev_ptmx=1
4234         rsh_path="/usr/bin/rcmd"
4235         cat >>confdefs.h <<\_ACEOF
4236 @%:@define USE_PIPES 1
4237 _ACEOF
4238
4239         cat >>confdefs.h <<\_ACEOF
4240 @%:@define HAVE_SECUREWARE 1
4241 _ACEOF
4242
4243         cat >>confdefs.h <<\_ACEOF
4244 @%:@define DISABLE_SHADOW 1
4245 _ACEOF
4246
4247         
4248
4249 for ac_func in getluid setluid
4250 do
4251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4252 echo "$as_me:$LINENO: checking for $ac_func" >&5
4253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4254 if eval "test \"\${$as_ac_var+set}\" = set"; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257   cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 #include "confdefs.h"
4260 /* System header to define __stub macros and hopefully few prototypes,
4261     which can conflict with char $ac_func (); below.  */
4262 #include <assert.h>
4263 /* Override any gcc2 internal prototype to avoid an error.  */
4264 #ifdef __cplusplus
4265 extern "C"
4266 #endif
4267 /* We use char because int might match the return type of a gcc2
4268    builtin and then its argument prototype would still apply.  */
4269 char $ac_func ();
4270 char (*f) ();
4271
4272 #ifdef F77_DUMMY_MAIN
4273 #  ifdef __cplusplus
4274      extern "C"
4275 #  endif
4276    int F77_DUMMY_MAIN() { return 1; }
4277 #endif
4278 int
4279 main ()
4280 {
4281 /* The GNU C library defines this for functions which it implements
4282     to always fail with ENOSYS.  Some functions are actually named
4283     something starting with __ and the normal name is an alias.  */
4284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4285 choke me
4286 #else
4287 f = $ac_func;
4288 #endif
4289
4290   ;
4291   return 0;
4292 }
4293 _ACEOF
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296   (eval $ac_link) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } &&
4300          { ac_try='test -s conftest$ac_exeext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   eval "$as_ac_var=yes"
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4310 eval "$as_ac_var=no"
4311 fi
4312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4313 fi
4314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4316 if test `eval echo '${'$as_ac_var'}'` = yes; then
4317   cat >>confdefs.h <<_ACEOF
4318 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4319 _ACEOF
4320  
4321 fi
4322 done
4323
4324         MANTYPE=man
4325         ;;
4326 *-*-unicos*)
4327         no_libsocket=1
4328         no_libnsl=1
4329         cat >>confdefs.h <<\_ACEOF
4330 @%:@define USE_PIPES 1
4331 _ACEOF
4332
4333         LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal,-L/usr/local/lib"
4334         LIBS="$LIBS -lgen -lrsc"
4335         ;;
4336 *-dec-osf*)
4337         echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4338 echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4339         no_osfsia=""
4340         
4341 # Check whether --with-osfsia or --without-osfsia was given.
4342 if test "${with_osfsia+set}" = set; then
4343   withval="$with_osfsia"
4344   
4345                         if test "x$withval" = "xno" ; then
4346                                 echo "$as_me:$LINENO: result: disabled" >&5
4347 echo "${ECHO_T}disabled" >&6
4348                                 no_osfsia=1
4349                         fi
4350                 
4351 fi; 
4352         if test -z "$no_osfsia" ; then
4353                 if test -f /etc/sia/matrix.conf; then
4354                         echo "$as_me:$LINENO: result: yes" >&5
4355 echo "${ECHO_T}yes" >&6
4356                         cat >>confdefs.h <<\_ACEOF
4357 @%:@define HAVE_OSF_SIA 1
4358 _ACEOF
4359
4360                         cat >>confdefs.h <<\_ACEOF
4361 @%:@define DISABLE_LOGIN 1
4362 _ACEOF
4363
4364                         LIBS="$LIBS -lsecurity -ldb -lm -laud"
4365                 else
4366                         echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6
4368                 fi
4369         fi
4370         ;;
4371
4372 *-*-nto-qnx)
4373         cat >>confdefs.h <<\_ACEOF
4374 @%:@define USE_PIPES 1
4375 _ACEOF
4376
4377         cat >>confdefs.h <<\_ACEOF
4378 @%:@define NO_X11_UNIX_SOCKETS 1
4379 _ACEOF
4380
4381         cat >>confdefs.h <<\_ACEOF
4382 @%:@define MISSING_NFDBITS 1
4383 _ACEOF
4384
4385         cat >>confdefs.h <<\_ACEOF
4386 @%:@define MISSING_HOWMANY 1
4387 _ACEOF
4388
4389         cat >>confdefs.h <<\_ACEOF
4390 @%:@define MISSING_FD_MASK 1
4391 _ACEOF
4392
4393         ;;
4394 esac
4395
4396 # Allow user to specify flags
4397
4398 # Check whether --with-cflags or --without-cflags was given.
4399 if test "${with_cflags+set}" = set; then
4400   withval="$with_cflags"
4401   
4402                 if test "x$withval" != "xno" ; then
4403                         CFLAGS="$CFLAGS $withval"
4404                 fi
4405                 
4406
4407 fi; 
4408
4409 # Check whether --with-cppflags or --without-cppflags was given.
4410 if test "${with_cppflags+set}" = set; then
4411   withval="$with_cppflags"
4412   
4413                 if test "x$withval" != "xno"; then
4414                         CPPFLAGS="$CPPFLAGS $withval"
4415                 fi
4416         
4417
4418 fi; 
4419
4420 # Check whether --with-ldflags or --without-ldflags was given.
4421 if test "${with_ldflags+set}" = set; then
4422   withval="$with_ldflags"
4423   
4424                 if test "x$withval" != "xno" ; then
4425                         LDFLAGS="$LDFLAGS $withval"
4426                 fi
4427                 
4428
4429 fi; 
4430
4431 # Check whether --with-libs or --without-libs was given.
4432 if test "${with_libs+set}" = set; then
4433   withval="$with_libs"
4434   
4435                 if test "x$withval" != "xno" ; then
4436                         LIBS="$LIBS $withval"
4437                 fi
4438                 
4439
4440 fi; 
4441
4442 # Checks for header files.
4443
4444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4446 if test "${ac_cv_header_stdc+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 #include "confdefs.h"
4452 #include <stdlib.h>
4453 #include <stdarg.h>
4454 #include <string.h>
4455 #include <float.h>
4456
4457 _ACEOF
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460   ac_status=$?
4461   egrep -v '^ *\+' conftest.er1 >conftest.err
4462   rm -f conftest.er1
4463   cat conftest.err >&5
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } >/dev/null; then
4466   if test -s conftest.err; then
4467     ac_cpp_err=$ac_c_preproc_warn_flag
4468   else
4469     ac_cpp_err=
4470   fi
4471 else
4472   ac_cpp_err=yes
4473 fi
4474 if test -z "$ac_cpp_err"; then
4475   ac_cv_header_stdc=yes
4476 else
4477   echo "$as_me: failed program was:" >&5
4478   cat conftest.$ac_ext >&5
4479   ac_cv_header_stdc=no
4480 fi
4481 rm -f conftest.err conftest.$ac_ext
4482
4483 if test $ac_cv_header_stdc = yes; then
4484   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485   cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4487 #include "confdefs.h"
4488 #include <string.h>
4489
4490 _ACEOF
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492   egrep "memchr" >/dev/null 2>&1; then
4493   :
4494 else
4495   ac_cv_header_stdc=no
4496 fi
4497 rm -f conftest*
4498
4499 fi
4500
4501 if test $ac_cv_header_stdc = yes; then
4502   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4503   cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 #include "confdefs.h"
4506 #include <stdlib.h>
4507
4508 _ACEOF
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510   egrep "free" >/dev/null 2>&1; then
4511   :
4512 else
4513   ac_cv_header_stdc=no
4514 fi
4515 rm -f conftest*
4516
4517 fi
4518
4519 if test $ac_cv_header_stdc = yes; then
4520   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4521   if test "$cross_compiling" = yes; then
4522   :
4523 else
4524   cat >conftest.$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4526 #include "confdefs.h"
4527 #include <ctype.h>
4528 #if ((' ' & 0x0FF) == 0x020)
4529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531 #else
4532 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4533                      || ('j' <= (c) && (c) <= 'r') \
4534                      || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536 #endif
4537
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4539 int
4540 main ()
4541 {
4542   int i;
4543   for (i = 0; i < 256; i++)
4544     if (XOR (islower (i), ISLOWER (i))
4545         || toupper (i) != TOUPPER (i))
4546       exit(2);
4547   exit (0);
4548 }
4549 _ACEOF
4550 rm -f conftest$ac_exeext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552   (eval $ac_link) 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } && { ac_try='./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   :
4562 else
4563   echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 cat conftest.$ac_ext >&5
4566 ( exit $ac_status )
4567 ac_cv_header_stdc=no
4568 fi
4569 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570 fi
4571 fi
4572 fi
4573 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4574 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4575 if test $ac_cv_header_stdc = yes; then
4576   
4577 cat >>confdefs.h <<\_ACEOF
4578 @%:@define STDC_HEADERS 1
4579 _ACEOF
4580
4581 fi
4582
4583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4594                   inttypes.h stdint.h unistd.h
4595 do
4596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4597 echo "$as_me:$LINENO: checking for $ac_header" >&5
4598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4600   echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602   cat >conftest.$ac_ext <<_ACEOF
4603 #line $LINENO "configure"
4604 #include "confdefs.h"
4605 $ac_includes_default
4606
4607 @%:@include <$ac_header>
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611   (eval $ac_compile) 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } &&
4615          { ac_try='test -s conftest.$ac_objext'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; }; then
4621   eval "$as_ac_Header=yes"
4622 else
4623   echo "$as_me: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4625 eval "$as_ac_Header=no"
4626 fi
4627 rm -f conftest.$ac_objext conftest.$ac_ext
4628 fi
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4632   cat >>confdefs.h <<_ACEOF
4633 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634 _ACEOF
4635  
4636 fi
4637
4638 done
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681 for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
4682         getopt.h glob.h lastlog.h limits.h login.h \
4683         login_cap.h maillock.h netdb.h netgroup.h \
4684         netinet/in_systm.h paths.h pty.h readpassphrase.h \
4685         rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4686         strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
4687         sys/mman.h sys/select.h sys/stat.h \
4688         sys/stropts.h sys/sysmacros.h sys/time.h \
4689         sys/un.h time.h ttyent.h usersec.h \
4690         util.h utime.h utmp.h utmpx.h
4691 do
4692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4694   echo "$as_me:$LINENO: checking for $ac_header" >&5
4695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 fi
4699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4701 else
4702   # Is the header compilable?
4703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4705 cat >conftest.$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4707 #include "confdefs.h"
4708 $ac_includes_default
4709 @%:@include <$ac_header>
4710 _ACEOF
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713   (eval $ac_compile) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); } &&
4717          { ac_try='test -s conftest.$ac_objext'
4718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719   (eval $ac_try) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }; }; then
4723   ac_header_compiler=yes
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 ac_header_compiler=no
4728 fi
4729 rm -f conftest.$ac_objext conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731 echo "${ECHO_T}$ac_header_compiler" >&6
4732
4733 # Is the header present?
4734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4738 #include "confdefs.h"
4739 @%:@include <$ac_header>
4740 _ACEOF
4741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4743   ac_status=$?
4744   egrep -v '^ *\+' conftest.er1 >conftest.err
4745   rm -f conftest.er1
4746   cat conftest.err >&5
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); } >/dev/null; then
4749   if test -s conftest.err; then
4750     ac_cpp_err=$ac_c_preproc_warn_flag
4751   else
4752     ac_cpp_err=
4753   fi
4754 else
4755   ac_cpp_err=yes
4756 fi
4757 if test -z "$ac_cpp_err"; then
4758   ac_header_preproc=yes
4759 else
4760   echo "$as_me: failed program was:" >&5
4761   cat conftest.$ac_ext >&5
4762   ac_header_preproc=no
4763 fi
4764 rm -f conftest.err conftest.$ac_ext
4765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4766 echo "${ECHO_T}$ac_header_preproc" >&6
4767
4768 # So?  What about this header?
4769 case $ac_header_compiler:$ac_header_preproc in
4770   yes:no )
4771     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4775   no:yes )
4776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4778     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4782 esac
4783 echo "$as_me:$LINENO: checking for $ac_header" >&5
4784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   eval "$as_ac_Header=$ac_header_preproc"
4789 fi
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792
4793 fi
4794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4795   cat >>confdefs.h <<_ACEOF
4796 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4797 _ACEOF
4798  
4799 fi
4800
4801 done
4802
4803
4804 # Checks for libraries.
4805 echo "$as_me:$LINENO: checking for yp_match" >&5
4806 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
4807 if test "${ac_cv_func_yp_match+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   cat >conftest.$ac_ext <<_ACEOF
4811 #line $LINENO "configure"
4812 #include "confdefs.h"
4813 /* System header to define __stub macros and hopefully few prototypes,
4814     which can conflict with char yp_match (); below.  */
4815 #include <assert.h>
4816 /* Override any gcc2 internal prototype to avoid an error.  */
4817 #ifdef __cplusplus
4818 extern "C"
4819 #endif
4820 /* We use char because int might match the return type of a gcc2
4821    builtin and then its argument prototype would still apply.  */
4822 char yp_match ();
4823 char (*f) ();
4824
4825 #ifdef F77_DUMMY_MAIN
4826 #  ifdef __cplusplus
4827      extern "C"
4828 #  endif
4829    int F77_DUMMY_MAIN() { return 1; }
4830 #endif
4831 int
4832 main ()
4833 {
4834 /* The GNU C library defines this for functions which it implements
4835     to always fail with ENOSYS.  Some functions are actually named
4836     something starting with __ and the normal name is an alias.  */
4837 #if defined (__stub_yp_match) || defined (__stub___yp_match)
4838 choke me
4839 #else
4840 f = yp_match;
4841 #endif
4842
4843   ;
4844   return 0;
4845 }
4846 _ACEOF
4847 rm -f conftest.$ac_objext conftest$ac_exeext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849   (eval $ac_link) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } &&
4853          { ac_try='test -s conftest$ac_exeext'
4854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855   (eval $ac_try) 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }; }; then
4859   ac_cv_func_yp_match=yes
4860 else
4861   echo "$as_me: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 ac_cv_func_yp_match=no
4864 fi
4865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4866 fi
4867 echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
4868 echo "${ECHO_T}$ac_cv_func_yp_match" >&6
4869 if test $ac_cv_func_yp_match = yes; then
4870   :
4871 else
4872   
4873 echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
4874 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
4875 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   ac_check_lib_save_LIBS=$LIBS
4879 LIBS="-lnsl  $LIBS"
4880 cat >conftest.$ac_ext <<_ACEOF
4881 #line $LINENO "configure"
4882 #include "confdefs.h"
4883
4884 /* Override any gcc2 internal prototype to avoid an error.  */
4885 #ifdef __cplusplus
4886 extern "C"
4887 #endif
4888 /* We use char because int might match the return type of a gcc2
4889    builtin and then its argument prototype would still apply.  */
4890 char yp_match ();
4891 #ifdef F77_DUMMY_MAIN
4892 #  ifdef __cplusplus
4893      extern "C"
4894 #  endif
4895    int F77_DUMMY_MAIN() { return 1; }
4896 #endif
4897 int
4898 main ()
4899 {
4900 yp_match ();
4901   ;
4902   return 0;
4903 }
4904 _ACEOF
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4907   (eval $ac_link) 2>&5
4908   ac_status=$?
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } &&
4911          { ac_try='test -s conftest$ac_exeext'
4912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913   (eval $ac_try) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); }; }; then
4917   ac_cv_lib_nsl_yp_match=yes
4918 else
4919   echo "$as_me: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4921 ac_cv_lib_nsl_yp_match=no
4922 fi
4923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4924 LIBS=$ac_check_lib_save_LIBS
4925 fi
4926 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
4927 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
4928 if test $ac_cv_lib_nsl_yp_match = yes; then
4929   cat >>confdefs.h <<_ACEOF
4930 @%:@define HAVE_LIBNSL 1
4931 _ACEOF
4932
4933   LIBS="-lnsl $LIBS"
4934
4935 fi
4936
4937 fi
4938
4939 echo "$as_me:$LINENO: checking for setsockopt" >&5
4940 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4941 if test "${ac_cv_func_setsockopt+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   cat >conftest.$ac_ext <<_ACEOF
4945 #line $LINENO "configure"
4946 #include "confdefs.h"
4947 /* System header to define __stub macros and hopefully few prototypes,
4948     which can conflict with char setsockopt (); below.  */
4949 #include <assert.h>
4950 /* Override any gcc2 internal prototype to avoid an error.  */
4951 #ifdef __cplusplus
4952 extern "C"
4953 #endif
4954 /* We use char because int might match the return type of a gcc2
4955    builtin and then its argument prototype would still apply.  */
4956 char setsockopt ();
4957 char (*f) ();
4958
4959 #ifdef F77_DUMMY_MAIN
4960 #  ifdef __cplusplus
4961      extern "C"
4962 #  endif
4963    int F77_DUMMY_MAIN() { return 1; }
4964 #endif
4965 int
4966 main ()
4967 {
4968 /* The GNU C library defines this for functions which it implements
4969     to always fail with ENOSYS.  Some functions are actually named
4970     something starting with __ and the normal name is an alias.  */
4971 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4972 choke me
4973 #else
4974 f = setsockopt;
4975 #endif
4976
4977   ;
4978   return 0;
4979 }
4980 _ACEOF
4981 rm -f conftest.$ac_objext conftest$ac_exeext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4983   (eval $ac_link) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); } &&
4987          { ac_try='test -s conftest$ac_exeext'
4988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989   (eval $ac_try) 2>&5
4990   ac_status=$?
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); }; }; then
4993   ac_cv_func_setsockopt=yes
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
4997 ac_cv_func_setsockopt=no
4998 fi
4999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5000 fi
5001 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5002 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5003 if test $ac_cv_func_setsockopt = yes; then
5004   :
5005 else
5006   
5007 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5008 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5009 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   ac_check_lib_save_LIBS=$LIBS
5013 LIBS="-lsocket  $LIBS"
5014 cat >conftest.$ac_ext <<_ACEOF
5015 #line $LINENO "configure"
5016 #include "confdefs.h"
5017
5018 /* Override any gcc2 internal prototype to avoid an error.  */
5019 #ifdef __cplusplus
5020 extern "C"
5021 #endif
5022 /* We use char because int might match the return type of a gcc2
5023    builtin and then its argument prototype would still apply.  */
5024 char setsockopt ();
5025 #ifdef F77_DUMMY_MAIN
5026 #  ifdef __cplusplus
5027      extern "C"
5028 #  endif
5029    int F77_DUMMY_MAIN() { return 1; }
5030 #endif
5031 int
5032 main ()
5033 {
5034 setsockopt ();
5035   ;
5036   return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041   (eval $ac_link) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); } &&
5045          { ac_try='test -s conftest$ac_exeext'
5046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047   (eval $ac_try) 2>&5
5048   ac_status=$?
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); }; }; then
5051   ac_cv_lib_socket_setsockopt=yes
5052 else
5053   echo "$as_me: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5055 ac_cv_lib_socket_setsockopt=no
5056 fi
5057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5058 LIBS=$ac_check_lib_save_LIBS
5059 fi
5060 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5061 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5062 if test $ac_cv_lib_socket_setsockopt = yes; then
5063   cat >>confdefs.h <<_ACEOF
5064 @%:@define HAVE_LIBSOCKET 1
5065 _ACEOF
5066
5067   LIBS="-lsocket $LIBS"
5068
5069 fi
5070
5071 fi
5072
5073
5074 if test "x$with_tcp_wrappers" != "xno" ; then
5075     if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5076         echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
5077 echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5078 if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081   ac_check_lib_save_LIBS=$LIBS
5082 LIBS="-lrpc -lyp -lrpc $LIBS"
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 #include "confdefs.h"
5086
5087 /* Override any gcc2 internal prototype to avoid an error.  */
5088 #ifdef __cplusplus
5089 extern "C"
5090 #endif
5091 /* We use char because int might match the return type of a gcc2
5092    builtin and then its argument prototype would still apply.  */
5093 char innetgr ();
5094 #ifdef F77_DUMMY_MAIN
5095 #  ifdef __cplusplus
5096      extern "C"
5097 #  endif
5098    int F77_DUMMY_MAIN() { return 1; }
5099 #endif
5100 int
5101 main ()
5102 {
5103 innetgr ();
5104   ;
5105   return 0;
5106 }
5107 _ACEOF
5108 rm -f conftest.$ac_objext conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110   (eval $ac_link) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); } &&
5114          { ac_try='test -s conftest$ac_exeext'
5115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116   (eval $ac_try) 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); }; }; then
5120   ac_cv_lib_rpc_innetgr=yes
5121 else
5122   echo "$as_me: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5124 ac_cv_lib_rpc_innetgr=no
5125 fi
5126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5127 LIBS=$ac_check_lib_save_LIBS
5128 fi
5129 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5130 echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5131 if test $ac_cv_lib_rpc_innetgr = yes; then
5132   LIBS="-lrpc -lyp -lrpc $LIBS" 
5133 fi
5134
5135     fi
5136 fi
5137
5138 echo "$as_me:$LINENO: checking for getspnam" >&5
5139 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5140 if test "${ac_cv_func_getspnam+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   cat >conftest.$ac_ext <<_ACEOF
5144 #line $LINENO "configure"
5145 #include "confdefs.h"
5146 /* System header to define __stub macros and hopefully few prototypes,
5147     which can conflict with char getspnam (); below.  */
5148 #include <assert.h>
5149 /* Override any gcc2 internal prototype to avoid an error.  */
5150 #ifdef __cplusplus
5151 extern "C"
5152 #endif
5153 /* We use char because int might match the return type of a gcc2
5154    builtin and then its argument prototype would still apply.  */
5155 char getspnam ();
5156 char (*f) ();
5157
5158 #ifdef F77_DUMMY_MAIN
5159 #  ifdef __cplusplus
5160      extern "C"
5161 #  endif
5162    int F77_DUMMY_MAIN() { return 1; }
5163 #endif
5164 int
5165 main ()
5166 {
5167 /* The GNU C library defines this for functions which it implements
5168     to always fail with ENOSYS.  Some functions are actually named
5169     something starting with __ and the normal name is an alias.  */
5170 #if defined (__stub_getspnam) || defined (__stub___getspnam)
5171 choke me
5172 #else
5173 f = getspnam;
5174 #endif
5175
5176   ;
5177   return 0;
5178 }
5179 _ACEOF
5180 rm -f conftest.$ac_objext conftest$ac_exeext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182   (eval $ac_link) 2>&5
5183   ac_status=$?
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); } &&
5186          { ac_try='test -s conftest$ac_exeext'
5187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188   (eval $ac_try) 2>&5
5189   ac_status=$?
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); }; }; then
5192   ac_cv_func_getspnam=yes
5193 else
5194   echo "$as_me: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5196 ac_cv_func_getspnam=no
5197 fi
5198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5199 fi
5200 echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5201 echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5202 if test $ac_cv_func_getspnam = yes; then
5203   :
5204 else
5205   echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5206 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5207 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210   ac_check_lib_save_LIBS=$LIBS
5211 LIBS="-lgen  $LIBS"
5212 cat >conftest.$ac_ext <<_ACEOF
5213 #line $LINENO "configure"
5214 #include "confdefs.h"
5215
5216 /* Override any gcc2 internal prototype to avoid an error.  */
5217 #ifdef __cplusplus
5218 extern "C"
5219 #endif
5220 /* We use char because int might match the return type of a gcc2
5221    builtin and then its argument prototype would still apply.  */
5222 char getspnam ();
5223 #ifdef F77_DUMMY_MAIN
5224 #  ifdef __cplusplus
5225      extern "C"
5226 #  endif
5227    int F77_DUMMY_MAIN() { return 1; }
5228 #endif
5229 int
5230 main ()
5231 {
5232 getspnam ();
5233   ;
5234   return 0;
5235 }
5236 _ACEOF
5237 rm -f conftest.$ac_objext conftest$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239   (eval $ac_link) 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); } &&
5243          { ac_try='test -s conftest$ac_exeext'
5244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245   (eval $ac_try) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; }; then
5249   ac_cv_lib_gen_getspnam=yes
5250 else
5251   echo "$as_me: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 ac_cv_lib_gen_getspnam=no
5254 fi
5255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5256 LIBS=$ac_check_lib_save_LIBS
5257 fi
5258 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5259 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5260 if test $ac_cv_lib_gen_getspnam = yes; then
5261   LIBS="$LIBS -lgen"
5262 fi
5263
5264 fi
5265
5266
5267
5268 # Check whether --with-rpath or --without-rpath was given.
5269 if test "${with_rpath+set}" = set; then
5270   withval="$with_rpath"
5271   
5272                 if test "x$withval" = "xno" ; then      
5273                         need_dash_r=""
5274                 fi
5275                 if test "x$withval" = "xyes" ; then
5276                         need_dash_r=1
5277                 fi
5278         
5279
5280 fi; 
5281
5282
5283 # Check whether --with-zlib or --without-zlib was given.
5284 if test "${with_zlib+set}" = set; then
5285   withval="$with_zlib"
5286   
5287                 if test "x$withval" = "xno" ; then
5288                         { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5289 echo "$as_me: error: *** zlib is required ***" >&2;}
5290    { (exit 1); exit 1; }; }
5291                 fi
5292                 if test -d "$withval/lib"; then
5293                         if test -n "${need_dash_r}"; then
5294                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5295                         else
5296                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5297                         fi
5298                 else
5299                         if test -n "${need_dash_r}"; then
5300                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5301                         else
5302                                 LDFLAGS="-L${withval} ${LDFLAGS}"
5303                         fi
5304                 fi
5305                 if test -d "$withval/include"; then
5306                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5307                 else
5308                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
5309                 fi
5310         
5311
5312 fi; 
5313
5314
5315 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5316 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5317 if test "${ac_cv_lib_z_deflate+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320   ac_check_lib_save_LIBS=$LIBS
5321 LIBS="-lz  $LIBS"
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 #include "confdefs.h"
5325
5326 /* Override any gcc2 internal prototype to avoid an error.  */
5327 #ifdef __cplusplus
5328 extern "C"
5329 #endif
5330 /* We use char because int might match the return type of a gcc2
5331    builtin and then its argument prototype would still apply.  */
5332 char deflate ();
5333 #ifdef F77_DUMMY_MAIN
5334 #  ifdef __cplusplus
5335      extern "C"
5336 #  endif
5337    int F77_DUMMY_MAIN() { return 1; }
5338 #endif
5339 int
5340 main ()
5341 {
5342 deflate ();
5343   ;
5344   return 0;
5345 }
5346 _ACEOF
5347 rm -f conftest.$ac_objext conftest$ac_exeext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5349   (eval $ac_link) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); } &&
5353          { ac_try='test -s conftest$ac_exeext'
5354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355   (eval $ac_try) 2>&5
5356   ac_status=$?
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); }; }; then
5359   ac_cv_lib_z_deflate=yes
5360 else
5361   echo "$as_me: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5363 ac_cv_lib_z_deflate=no
5364 fi
5365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5366 LIBS=$ac_check_lib_save_LIBS
5367 fi
5368 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5369 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5370 if test $ac_cv_lib_z_deflate = yes; then
5371   cat >>confdefs.h <<_ACEOF
5372 @%:@define HAVE_LIBZ 1
5373 _ACEOF
5374
5375   LIBS="-lz $LIBS"
5376
5377 else
5378   { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5379 echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5380    { (exit 1); exit 1; }; }
5381 fi
5382
5383
5384 echo "$as_me:$LINENO: checking for strcasecmp" >&5
5385 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5386 if test "${ac_cv_func_strcasecmp+set}" = set; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   cat >conftest.$ac_ext <<_ACEOF
5390 #line $LINENO "configure"
5391 #include "confdefs.h"
5392 /* System header to define __stub macros and hopefully few prototypes,
5393     which can conflict with char strcasecmp (); below.  */
5394 #include <assert.h>
5395 /* Override any gcc2 internal prototype to avoid an error.  */
5396 #ifdef __cplusplus
5397 extern "C"
5398 #endif
5399 /* We use char because int might match the return type of a gcc2
5400    builtin and then its argument prototype would still apply.  */
5401 char strcasecmp ();
5402 char (*f) ();
5403
5404 #ifdef F77_DUMMY_MAIN
5405 #  ifdef __cplusplus
5406      extern "C"
5407 #  endif
5408    int F77_DUMMY_MAIN() { return 1; }
5409 #endif
5410 int
5411 main ()
5412 {
5413 /* The GNU C library defines this for functions which it implements
5414     to always fail with ENOSYS.  Some functions are actually named
5415     something starting with __ and the normal name is an alias.  */
5416 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5417 choke me
5418 #else
5419 f = strcasecmp;
5420 #endif
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428   (eval $ac_link) 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); } &&
5432          { ac_try='test -s conftest$ac_exeext'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; }; then
5438   ac_cv_func_strcasecmp=yes
5439 else
5440   echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_func_strcasecmp=no
5443 fi
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5445 fi
5446 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5447 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5448 if test $ac_cv_func_strcasecmp = yes; then
5449   :
5450 else
5451    echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5452 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5453 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5454   echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456   ac_check_lib_save_LIBS=$LIBS
5457 LIBS="-lresolv  $LIBS"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 #include "confdefs.h"
5461
5462 /* Override any gcc2 internal prototype to avoid an error.  */
5463 #ifdef __cplusplus
5464 extern "C"
5465 #endif
5466 /* We use char because int might match the return type of a gcc2
5467    builtin and then its argument prototype would still apply.  */
5468 char strcasecmp ();
5469 #ifdef F77_DUMMY_MAIN
5470 #  ifdef __cplusplus
5471      extern "C"
5472 #  endif
5473    int F77_DUMMY_MAIN() { return 1; }
5474 #endif
5475 int
5476 main ()
5477 {
5478 strcasecmp ();
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485   (eval $ac_link) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } &&
5489          { ac_try='test -s conftest$ac_exeext'
5490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491   (eval $ac_try) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_cv_lib_resolv_strcasecmp=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 ac_cv_lib_resolv_strcasecmp=no
5500 fi
5501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5502 LIBS=$ac_check_lib_save_LIBS
5503 fi
5504 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5505 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5506 if test $ac_cv_lib_resolv_strcasecmp = yes; then
5507   LIBS="$LIBS -lresolv"
5508 fi
5509  
5510
5511 fi
5512
5513 echo "$as_me:$LINENO: checking for utimes" >&5
5514 echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5515 if test "${ac_cv_func_utimes+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521 /* System header to define __stub macros and hopefully few prototypes,
5522     which can conflict with char utimes (); below.  */
5523 #include <assert.h>
5524 /* Override any gcc2 internal prototype to avoid an error.  */
5525 #ifdef __cplusplus
5526 extern "C"
5527 #endif
5528 /* We use char because int might match the return type of a gcc2
5529    builtin and then its argument prototype would still apply.  */
5530 char utimes ();
5531 char (*f) ();
5532
5533 #ifdef F77_DUMMY_MAIN
5534 #  ifdef __cplusplus
5535      extern "C"
5536 #  endif
5537    int F77_DUMMY_MAIN() { return 1; }
5538 #endif
5539 int
5540 main ()
5541 {
5542 /* The GNU C library defines this for functions which it implements
5543     to always fail with ENOSYS.  Some functions are actually named
5544     something starting with __ and the normal name is an alias.  */
5545 #if defined (__stub_utimes) || defined (__stub___utimes)
5546 choke me
5547 #else
5548 f = utimes;
5549 #endif
5550
5551   ;
5552   return 0;
5553 }
5554 _ACEOF
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557   (eval $ac_link) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); } &&
5561          { ac_try='test -s conftest$ac_exeext'
5562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563   (eval $ac_try) 2>&5
5564   ac_status=$?
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); }; }; then
5567   ac_cv_func_utimes=yes
5568 else
5569   echo "$as_me: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 ac_cv_func_utimes=no
5572 fi
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5574 fi
5575 echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5576 echo "${ECHO_T}$ac_cv_func_utimes" >&6
5577 if test $ac_cv_func_utimes = yes; then
5578   :
5579 else
5580    echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5581 echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5582 if test "${ac_cv_lib_c89_utimes+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   ac_check_lib_save_LIBS=$LIBS
5586 LIBS="-lc89  $LIBS"
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5589 #include "confdefs.h"
5590
5591 /* Override any gcc2 internal prototype to avoid an error.  */
5592 #ifdef __cplusplus
5593 extern "C"
5594 #endif
5595 /* We use char because int might match the return type of a gcc2
5596    builtin and then its argument prototype would still apply.  */
5597 char utimes ();
5598 #ifdef F77_DUMMY_MAIN
5599 #  ifdef __cplusplus
5600      extern "C"
5601 #  endif
5602    int F77_DUMMY_MAIN() { return 1; }
5603 #endif
5604 int
5605 main ()
5606 {
5607 utimes ();
5608   ;
5609   return 0;
5610 }
5611 _ACEOF
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614   (eval $ac_link) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } &&
5618          { ac_try='test -s conftest$ac_exeext'
5619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620   (eval $ac_try) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); }; }; then
5624   ac_cv_lib_c89_utimes=yes
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 ac_cv_lib_c89_utimes=no
5629 fi
5630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_check_lib_save_LIBS
5632 fi
5633 echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
5634 echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5635 if test $ac_cv_lib_c89_utimes = yes; then
5636   LIBS="$LIBS -lc89"
5637 fi
5638  
5639
5640 fi
5641
5642
5643
5644 for ac_header in libutil.h
5645 do
5646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648   echo "$as_me:$LINENO: checking for $ac_header" >&5
5649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 fi
5653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5655 else
5656   # Is the header compilable?
5657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5660 #line $LINENO "configure"
5661 #include "confdefs.h"
5662 $ac_includes_default
5663 @%:@include <$ac_header>
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667   (eval $ac_compile) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } &&
5671          { ac_try='test -s conftest.$ac_objext'
5672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673   (eval $ac_try) 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); }; }; then
5677   ac_header_compiler=yes
5678 else
5679   echo "$as_me: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 ac_header_compiler=no
5682 fi
5683 rm -f conftest.$ac_objext conftest.$ac_ext
5684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5685 echo "${ECHO_T}$ac_header_compiler" >&6
5686
5687 # Is the header present?
5688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5690 cat >conftest.$ac_ext <<_ACEOF
5691 #line $LINENO "configure"
5692 #include "confdefs.h"
5693 @%:@include <$ac_header>
5694 _ACEOF
5695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5697   ac_status=$?
5698   egrep -v '^ *\+' conftest.er1 >conftest.err
5699   rm -f conftest.er1
5700   cat conftest.err >&5
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); } >/dev/null; then
5703   if test -s conftest.err; then
5704     ac_cpp_err=$ac_c_preproc_warn_flag
5705   else
5706     ac_cpp_err=
5707   fi
5708 else
5709   ac_cpp_err=yes
5710 fi
5711 if test -z "$ac_cpp_err"; then
5712   ac_header_preproc=yes
5713 else
5714   echo "$as_me: failed program was:" >&5
5715   cat conftest.$ac_ext >&5
5716   ac_header_preproc=no
5717 fi
5718 rm -f conftest.err conftest.$ac_ext
5719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5720 echo "${ECHO_T}$ac_header_preproc" >&6
5721
5722 # So?  What about this header?
5723 case $ac_header_compiler:$ac_header_preproc in
5724   yes:no )
5725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5729   no:yes )
5730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5732     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5736 esac
5737 echo "$as_me:$LINENO: checking for $ac_header" >&5
5738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   eval "$as_ac_Header=$ac_header_preproc"
5743 fi
5744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5746
5747 fi
5748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5749   cat >>confdefs.h <<_ACEOF
5750 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5751 _ACEOF
5752  
5753 fi
5754
5755 done
5756
5757 echo "$as_me:$LINENO: checking for library containing login" >&5
5758 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
5759 if test "${ac_cv_search_login+set}" = set; then
5760   echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762   ac_func_search_save_LIBS=$LIBS
5763 ac_cv_search_login=no
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5766 #include "confdefs.h"
5767
5768 /* Override any gcc2 internal prototype to avoid an error.  */
5769 #ifdef __cplusplus
5770 extern "C"
5771 #endif
5772 /* We use char because int might match the return type of a gcc2
5773    builtin and then its argument prototype would still apply.  */
5774 char login ();
5775 #ifdef F77_DUMMY_MAIN
5776 #  ifdef __cplusplus
5777      extern "C"
5778 #  endif
5779    int F77_DUMMY_MAIN() { return 1; }
5780 #endif
5781 int
5782 main ()
5783 {
5784 login ();
5785   ;
5786   return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791   (eval $ac_link) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } &&
5795          { ac_try='test -s conftest$ac_exeext'
5796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; }; then
5801   ac_cv_search_login="none required"
5802 else
5803   echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5805 fi
5806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5807 if test "$ac_cv_search_login" = no; then
5808   for ac_lib in util bsd; do
5809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5810     cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5812 #include "confdefs.h"
5813
5814 /* Override any gcc2 internal prototype to avoid an error.  */
5815 #ifdef __cplusplus
5816 extern "C"
5817 #endif
5818 /* We use char because int might match the return type of a gcc2
5819    builtin and then its argument prototype would still apply.  */
5820 char login ();
5821 #ifdef F77_DUMMY_MAIN
5822 #  ifdef __cplusplus
5823      extern "C"
5824 #  endif
5825    int F77_DUMMY_MAIN() { return 1; }
5826 #endif
5827 int
5828 main ()
5829 {
5830 login ();
5831   ;
5832   return 0;
5833 }
5834 _ACEOF
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837   (eval $ac_link) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } &&
5841          { ac_try='test -s conftest$ac_exeext'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   ac_cv_search_login="-l$ac_lib"
5848 break
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5852 fi
5853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5854   done
5855 fi
5856 LIBS=$ac_func_search_save_LIBS
5857 fi
5858 echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
5859 echo "${ECHO_T}$ac_cv_search_login" >&6
5860 if test "$ac_cv_search_login" != no; then
5861   test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
5862   cat >>confdefs.h <<\_ACEOF
5863 @%:@define HAVE_LOGIN 1
5864 _ACEOF
5865
5866 fi
5867
5868
5869
5870
5871 for ac_func in logout updwtmp logwtmp
5872 do
5873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5874 echo "$as_me:$LINENO: checking for $ac_func" >&5
5875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5876 if eval "test \"\${$as_ac_var+set}\" = set"; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5882 /* System header to define __stub macros and hopefully few prototypes,
5883     which can conflict with char $ac_func (); below.  */
5884 #include <assert.h>
5885 /* Override any gcc2 internal prototype to avoid an error.  */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
5889 /* We use char because int might match the return type of a gcc2
5890    builtin and then its argument prototype would still apply.  */
5891 char $ac_func ();
5892 char (*f) ();
5893
5894 #ifdef F77_DUMMY_MAIN
5895 #  ifdef __cplusplus
5896      extern "C"
5897 #  endif
5898    int F77_DUMMY_MAIN() { return 1; }
5899 #endif
5900 int
5901 main ()
5902 {
5903 /* The GNU C library defines this for functions which it implements
5904     to always fail with ENOSYS.  Some functions are actually named
5905     something starting with __ and the normal name is an alias.  */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5907 choke me
5908 #else
5909 f = $ac_func;
5910 #endif
5911
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918   (eval $ac_link) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } &&
5922          { ac_try='test -s conftest$ac_exeext'
5923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924   (eval $ac_try) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; }; then
5928   eval "$as_ac_var=yes"
5929 else
5930   echo "$as_me: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5932 eval "$as_ac_var=no"
5933 fi
5934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5935 fi
5936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5938 if test `eval echo '${'$as_ac_var'}'` = yes; then
5939   cat >>confdefs.h <<_ACEOF
5940 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5941 _ACEOF
5942  
5943 fi
5944 done
5945
5946
5947
5948 for ac_func in strftime
5949 do
5950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5951 echo "$as_me:$LINENO: checking for $ac_func" >&5
5952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_var+set}\" = set"; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5958 #include "confdefs.h"
5959 /* System header to define __stub macros and hopefully few prototypes,
5960     which can conflict with char $ac_func (); below.  */
5961 #include <assert.h>
5962 /* Override any gcc2 internal prototype to avoid an error.  */
5963 #ifdef __cplusplus
5964 extern "C"
5965 #endif
5966 /* We use char because int might match the return type of a gcc2
5967    builtin and then its argument prototype would still apply.  */
5968 char $ac_func ();
5969 char (*f) ();
5970
5971 #ifdef F77_DUMMY_MAIN
5972 #  ifdef __cplusplus
5973      extern "C"
5974 #  endif
5975    int F77_DUMMY_MAIN() { return 1; }
5976 #endif
5977 int
5978 main ()
5979 {
5980 /* The GNU C library defines this for functions which it implements
5981     to always fail with ENOSYS.  Some functions are actually named
5982     something starting with __ and the normal name is an alias.  */
5983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5984 choke me
5985 #else
5986 f = $ac_func;
5987 #endif
5988
5989   ;
5990   return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5995   (eval $ac_link) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } &&
5999          { ac_try='test -s conftest$ac_exeext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   eval "$as_ac_var=yes"
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6009 eval "$as_ac_var=no"
6010 fi
6011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6012 fi
6013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6015 if test `eval echo '${'$as_ac_var'}'` = yes; then
6016   cat >>confdefs.h <<_ACEOF
6017 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6018 _ACEOF
6019  
6020 else
6021   # strftime is in -lintl on SCO UNIX.
6022 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6023 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6024 if test "${ac_cv_lib_intl_strftime+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   ac_check_lib_save_LIBS=$LIBS
6028 LIBS="-lintl  $LIBS"
6029 cat >conftest.$ac_ext <<_ACEOF
6030 #line $LINENO "configure"
6031 #include "confdefs.h"
6032
6033 /* Override any gcc2 internal prototype to avoid an error.  */
6034 #ifdef __cplusplus
6035 extern "C"
6036 #endif
6037 /* We use char because int might match the return type of a gcc2
6038    builtin and then its argument prototype would still apply.  */
6039 char strftime ();
6040 #ifdef F77_DUMMY_MAIN
6041 #  ifdef __cplusplus
6042      extern "C"
6043 #  endif
6044    int F77_DUMMY_MAIN() { return 1; }
6045 #endif
6046 int
6047 main ()
6048 {
6049 strftime ();
6050   ;
6051   return 0;
6052 }
6053 _ACEOF
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056   (eval $ac_link) 2>&5
6057   ac_status=$?
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); } &&
6060          { ac_try='test -s conftest$ac_exeext'
6061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062   (eval $ac_try) 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); }; }; then
6066   ac_cv_lib_intl_strftime=yes
6067 else
6068   echo "$as_me: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6070 ac_cv_lib_intl_strftime=no
6071 fi
6072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6074 fi
6075 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6076 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6077 if test $ac_cv_lib_intl_strftime = yes; then
6078   cat >>confdefs.h <<\_ACEOF
6079 @%:@define HAVE_STRFTIME 1
6080 _ACEOF
6081
6082 LIBS="-lintl $LIBS"
6083 fi
6084
6085 fi
6086 done
6087
6088
6089 # Check for ALTDIRFUNC glob() extension
6090 echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6091 echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6092 cat >conftest.$ac_ext <<_ACEOF
6093 #line $LINENO "configure"
6094 #include "confdefs.h"
6095
6096                 #include <glob.h>
6097                 #ifdef GLOB_ALTDIRFUNC
6098                 FOUNDIT
6099                 #endif
6100         
6101 _ACEOF
6102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6103   egrep "FOUNDIT" >/dev/null 2>&1; then
6104   
6105                 cat >>confdefs.h <<\_ACEOF
6106 @%:@define GLOB_HAS_ALTDIRFUNC 1
6107 _ACEOF
6108
6109                 echo "$as_me:$LINENO: result: yes" >&5
6110 echo "${ECHO_T}yes" >&6
6111         
6112 else
6113   
6114                 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6116         
6117
6118 fi
6119 rm -f conftest*
6120
6121
6122 # Check for g.gl_matchc glob() extension
6123 echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6124 echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6125 cat >conftest.$ac_ext <<_ACEOF
6126 #line $LINENO "configure"
6127 #include "confdefs.h"
6128
6129                 #include <glob.h>
6130                 int main(void){glob_t g; g.gl_matchc = 1;}
6131         
6132 _ACEOF
6133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6134   egrep "FOUNDIT" >/dev/null 2>&1; then
6135   
6136                 cat >>confdefs.h <<\_ACEOF
6137 @%:@define GLOB_HAS_GL_MATCHC 1
6138 _ACEOF
6139
6140                 echo "$as_me:$LINENO: result: yes" >&5
6141 echo "${ECHO_T}yes" >&6
6142         
6143 else
6144   
6145                 echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6
6147         
6148
6149 fi
6150 rm -f conftest*
6151
6152
6153 echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6154 echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6155 if test "$cross_compiling" = yes; then
6156   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6157 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6158    { (exit 1); exit 1; }; }
6159 else
6160   cat >conftest.$ac_ext <<_ACEOF
6161 #line $LINENO "configure"
6162 #include "confdefs.h"
6163
6164 #include <sys/types.h>
6165 #include <dirent.h>
6166 int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));}
6167         
6168 _ACEOF
6169 rm -f conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171   (eval $ac_link) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176   (eval $ac_try) 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); }; }; then
6180   echo "$as_me:$LINENO: result: yes" >&5
6181 echo "${ECHO_T}yes" >&6
6182 else
6183   echo "$as_me: program exited with status $ac_status" >&5
6184 echo "$as_me: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6186 ( exit $ac_status )
6187
6188                 echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6
6190                 cat >>confdefs.h <<\_ACEOF
6191 @%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6192 _ACEOF
6193
6194         
6195
6196 fi
6197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6198 fi
6199
6200 # Check whether user wants S/Key support
6201 SKEY_MSG="no" 
6202
6203 # Check whether --with-skey or --without-skey was given.
6204 if test "${with_skey+set}" = set; then
6205   withval="$with_skey"
6206   
6207                 if test "x$withval" != "xno" ; then
6208
6209                         if test "x$withval" != "xyes" ; then
6210                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6211                                 LDFLAGS="$LDFLAGS -L${withval}/lib"
6212                         fi
6213
6214                         cat >>confdefs.h <<\_ACEOF
6215 @%:@define SKEY 1
6216 _ACEOF
6217
6218                         LIBS="-lskey $LIBS"
6219                         SKEY_MSG="yes" 
6220         
6221                         echo "$as_me:$LINENO: checking for s/key support" >&5
6222 echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6223                         if test "$cross_compiling" = yes; then
6224   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6225 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6226    { (exit 1); exit 1; }; }
6227 else
6228   cat >conftest.$ac_ext <<_ACEOF
6229 #line $LINENO "configure"
6230 #include "confdefs.h"
6231
6232 #include <stdio.h>
6233 #include <skey.h>
6234 int main() { char *ff = skey_keyinfo(""); ff=""; return 0; }
6235                                 
6236 _ACEOF
6237 rm -f conftest$ac_exeext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239   (eval $ac_link) 2>&5
6240   ac_status=$?
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244   (eval $ac_try) 2>&5
6245   ac_status=$?
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); }; }; then
6248   echo "$as_me:$LINENO: result: yes" >&5
6249 echo "${ECHO_T}yes" >&6
6250 else
6251   echo "$as_me: program exited with status $ac_status" >&5
6252 echo "$as_me: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6254 ( exit $ac_status )
6255
6256                                         echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6
6258                                         { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6259 echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6260    { (exit 1); exit 1; }; }
6261                                 
6262 fi
6263 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6264 fi
6265                 fi
6266         
6267
6268 fi; 
6269
6270 # Check whether user wants TCP wrappers support
6271 TCPW_MSG="no"
6272
6273 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6274 if test "${with_tcp_wrappers+set}" = set; then
6275   withval="$with_tcp_wrappers"
6276   
6277                 if test "x$withval" != "xno" ; then
6278                         saved_LIBS="$LIBS"
6279                         saved_LDFLAGS="$LDFLAGS"
6280                         saved_CPPFLAGS="$CPPFLAGS"
6281                         if test -n "${withval}" -a "${withval}" != "yes"; then
6282                                 if test -d "${withval}/lib"; then
6283                                         if test -n "${need_dash_r}"; then
6284                                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6285                                         else
6286                                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6287                                         fi
6288                                 else
6289                                         if test -n "${need_dash_r}"; then
6290                                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6291                                         else
6292                                                 LDFLAGS="-L${withval} ${LDFLAGS}"
6293                                         fi
6294                                 fi
6295                                 if test -d "${withval}/include"; then
6296                                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6297                                 else
6298                                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
6299                                 fi
6300                         fi
6301                         LIBWRAP="-lwrap"
6302                         LIBS="$LIBWRAP $LIBS"
6303                         echo "$as_me:$LINENO: checking for libwrap" >&5
6304 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6305                         cat >conftest.$ac_ext <<_ACEOF
6306 #line $LINENO "configure"
6307 #include "confdefs.h"
6308
6309 #include <tcpd.h>
6310                                         int deny_severity = 0, allow_severity = 0;
6311                                 
6312 #ifdef F77_DUMMY_MAIN
6313 #  ifdef __cplusplus
6314      extern "C"
6315 #  endif
6316    int F77_DUMMY_MAIN() { return 1; }
6317 #endif
6318 int
6319 main ()
6320 {
6321 hosts_access(0);
6322   ;
6323   return 0;
6324 }
6325 _ACEOF
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328   (eval $ac_link) 2>&5
6329   ac_status=$?
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } &&
6332          { ac_try='test -s conftest$ac_exeext'
6333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334   (eval $ac_try) 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; }; then
6338   
6339                                         echo "$as_me:$LINENO: result: yes" >&5
6340 echo "${ECHO_T}yes" >&6
6341                                         cat >>confdefs.h <<\_ACEOF
6342 @%:@define LIBWRAP 1
6343 _ACEOF
6344
6345                                         
6346                                         TCPW_MSG="yes"
6347                                 
6348 else
6349   echo "$as_me: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6351
6352                                         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6353 echo "$as_me: error: *** libwrap missing" >&2;}
6354    { (exit 1); exit 1; }; }
6355                                 
6356                         
6357 fi
6358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6359                         LIBS="$saved_LIBS"
6360                 fi
6361         
6362
6363 fi; 
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430 for ac_func in arc4random b64_ntop bcopy bindresvport_sa \
6431         clock fchmod fchown freeaddrinfo futimes gai_strerror \
6432         getaddrinfo getcwd getgrouplist getnameinfo getopt \
6433         getrlimit getrusage getttyent glob inet_aton inet_ntoa \
6434         inet_ntop innetgr login_getcapbool md5_crypt memmove \
6435         mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \
6436         realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
6437         setenv seteuid setlogin setproctitle setresgid setreuid setrlimit \
6438         setsid setvbuf sigaction sigvec snprintf socketpair strerror \
6439         strlcat strlcpy strmode strsep sysconf tcgetpgrp truncate utimes \
6440         vhangup vsnprintf waitpid __b64_ntop _getpty
6441 do
6442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6443 echo "$as_me:$LINENO: checking for $ac_func" >&5
6444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6445 if eval "test \"\${$as_ac_var+set}\" = set"; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   cat >conftest.$ac_ext <<_ACEOF
6449 #line $LINENO "configure"
6450 #include "confdefs.h"
6451 /* System header to define __stub macros and hopefully few prototypes,
6452     which can conflict with char $ac_func (); below.  */
6453 #include <assert.h>
6454 /* Override any gcc2 internal prototype to avoid an error.  */
6455 #ifdef __cplusplus
6456 extern "C"
6457 #endif
6458 /* We use char because int might match the return type of a gcc2
6459    builtin and then its argument prototype would still apply.  */
6460 char $ac_func ();
6461 char (*f) ();
6462
6463 #ifdef F77_DUMMY_MAIN
6464 #  ifdef __cplusplus
6465      extern "C"
6466 #  endif
6467    int F77_DUMMY_MAIN() { return 1; }
6468 #endif
6469 int
6470 main ()
6471 {
6472 /* The GNU C library defines this for functions which it implements
6473     to always fail with ENOSYS.  Some functions are actually named
6474     something starting with __ and the normal name is an alias.  */
6475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6476 choke me
6477 #else
6478 f = $ac_func;
6479 #endif
6480
6481   ;
6482   return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext conftest$ac_exeext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487   (eval $ac_link) 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } &&
6491          { ac_try='test -s conftest$ac_exeext'
6492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493   (eval $ac_try) 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); }; }; then
6497   eval "$as_ac_var=yes"
6498 else
6499   echo "$as_me: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6501 eval "$as_ac_var=no"
6502 fi
6503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6504 fi
6505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6507 if test `eval echo '${'$as_ac_var'}'` = yes; then
6508   cat >>confdefs.h <<_ACEOF
6509 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6510 _ACEOF
6511  
6512 fi
6513 done
6514
6515
6516
6517 for ac_func in dirname
6518 do
6519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6520 echo "$as_me:$LINENO: checking for $ac_func" >&5
6521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_var+set}\" = set"; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6527 #include "confdefs.h"
6528 /* System header to define __stub macros and hopefully few prototypes,
6529     which can conflict with char $ac_func (); below.  */
6530 #include <assert.h>
6531 /* Override any gcc2 internal prototype to avoid an error.  */
6532 #ifdef __cplusplus
6533 extern "C"
6534 #endif
6535 /* We use char because int might match the return type of a gcc2
6536    builtin and then its argument prototype would still apply.  */
6537 char $ac_func ();
6538 char (*f) ();
6539
6540 #ifdef F77_DUMMY_MAIN
6541 #  ifdef __cplusplus
6542      extern "C"
6543 #  endif
6544    int F77_DUMMY_MAIN() { return 1; }
6545 #endif
6546 int
6547 main ()
6548 {
6549 /* The GNU C library defines this for functions which it implements
6550     to always fail with ENOSYS.  Some functions are actually named
6551     something starting with __ and the normal name is an alias.  */
6552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6553 choke me
6554 #else
6555 f = $ac_func;
6556 #endif
6557
6558   ;
6559   return 0;
6560 }
6561 _ACEOF
6562 rm -f conftest.$ac_objext conftest$ac_exeext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6564   (eval $ac_link) 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } &&
6568          { ac_try='test -s conftest$ac_exeext'
6569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570   (eval $ac_try) 2>&5
6571   ac_status=$?
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); }; }; then
6574   eval "$as_ac_var=yes"
6575 else
6576   echo "$as_me: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6578 eval "$as_ac_var=no"
6579 fi
6580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6581 fi
6582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6584 if test `eval echo '${'$as_ac_var'}'` = yes; then
6585   cat >>confdefs.h <<_ACEOF
6586 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6587 _ACEOF
6588  
6589 for ac_header in libgen.h
6590 do
6591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6593   echo "$as_me:$LINENO: checking for $ac_header" >&5
6594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 fi
6598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6600 else
6601   # Is the header compilable?
6602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6604 cat >conftest.$ac_ext <<_ACEOF
6605 #line $LINENO "configure"
6606 #include "confdefs.h"
6607 $ac_includes_default
6608 @%:@include <$ac_header>
6609 _ACEOF
6610 rm -f conftest.$ac_objext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612   (eval $ac_compile) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } &&
6616          { ac_try='test -s conftest.$ac_objext'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; }; then
6622   ac_header_compiler=yes
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6626 ac_header_compiler=no
6627 fi
6628 rm -f conftest.$ac_objext conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6630 echo "${ECHO_T}$ac_header_compiler" >&6
6631
6632 # Is the header present?
6633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6635 cat >conftest.$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6637 #include "confdefs.h"
6638 @%:@include <$ac_header>
6639 _ACEOF
6640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6642   ac_status=$?
6643   egrep -v '^ *\+' conftest.er1 >conftest.err
6644   rm -f conftest.er1
6645   cat conftest.err >&5
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); } >/dev/null; then
6648   if test -s conftest.err; then
6649     ac_cpp_err=$ac_c_preproc_warn_flag
6650   else
6651     ac_cpp_err=
6652   fi
6653 else
6654   ac_cpp_err=yes
6655 fi
6656 if test -z "$ac_cpp_err"; then
6657   ac_header_preproc=yes
6658 else
6659   echo "$as_me: failed program was:" >&5
6660   cat conftest.$ac_ext >&5
6661   ac_header_preproc=no
6662 fi
6663 rm -f conftest.err conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6665 echo "${ECHO_T}$ac_header_preproc" >&6
6666
6667 # So?  What about this header?
6668 case $ac_header_compiler:$ac_header_preproc in
6669   yes:no )
6670     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6674   no:yes )
6675     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6677     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6681 esac
6682 echo "$as_me:$LINENO: checking for $ac_header" >&5
6683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   eval "$as_ac_Header=$ac_header_preproc"
6688 fi
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6691
6692 fi
6693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6694   cat >>confdefs.h <<_ACEOF
6695 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6696 _ACEOF
6697  
6698 fi
6699
6700 done
6701  
6702 else
6703   
6704         echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
6705 echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
6706 if test "${ac_cv_lib_gen_dirname+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   ac_check_lib_save_LIBS=$LIBS
6710 LIBS="-lgen  $LIBS"
6711 cat >conftest.$ac_ext <<_ACEOF
6712 #line $LINENO "configure"
6713 #include "confdefs.h"
6714
6715 /* Override any gcc2 internal prototype to avoid an error.  */
6716 #ifdef __cplusplus
6717 extern "C"
6718 #endif
6719 /* We use char because int might match the return type of a gcc2
6720    builtin and then its argument prototype would still apply.  */
6721 char dirname ();
6722 #ifdef F77_DUMMY_MAIN
6723 #  ifdef __cplusplus
6724      extern "C"
6725 #  endif
6726    int F77_DUMMY_MAIN() { return 1; }
6727 #endif
6728 int
6729 main ()
6730 {
6731 dirname ();
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738   (eval $ac_link) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } &&
6742          { ac_try='test -s conftest$ac_exeext'
6743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744   (eval $ac_try) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); }; }; then
6748   ac_cv_lib_gen_dirname=yes
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 ac_cv_lib_gen_dirname=no
6753 fi
6754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6755 LIBS=$ac_check_lib_save_LIBS
6756 fi
6757 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
6758 echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
6759 if test $ac_cv_lib_gen_dirname = yes; then
6760   
6761                 echo "$as_me:$LINENO: checking for broken dirname" >&5
6762 echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
6763 if test "${ac_cv_have_broken_dirname+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   
6767                         save_LIBS="$LIBS"
6768                         LIBS="$LIBS -lgen"
6769                         if test "$cross_compiling" = yes; then
6770   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6771 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6772    { (exit 1); exit 1; }; }
6773 else
6774   cat >conftest.$ac_ext <<_ACEOF
6775 #line $LINENO "configure"
6776 #include "confdefs.h"
6777
6778 #include <libgen.h>
6779 #include <string.h>
6780
6781 int main(int argc, char **argv) {
6782     char *s, buf[32];
6783
6784     strncpy(buf,"/etc", 32);
6785     s = dirname(buf);
6786     if (!s || strncmp(s, "/", 32) != 0) {
6787         exit(1);
6788     } else {
6789         exit(0);
6790     }
6791 }
6792                                 
6793 _ACEOF
6794 rm -f conftest$ac_exeext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6796   (eval $ac_link) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805    ac_cv_have_broken_dirname="no" 
6806 else
6807   echo "$as_me: program exited with status $ac_status" >&5
6808 echo "$as_me: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6810 ( exit $ac_status )
6811  ac_cv_have_broken_dirname="yes" 
6812                         
6813 fi
6814 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6815 fi
6816                         LIBS="$save_LIBS"
6817                 
6818 fi
6819 echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
6820 echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
6821                 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
6822                         LIBS="$LIBS -lgen"
6823                         cat >>confdefs.h <<\_ACEOF
6824 @%:@define HAVE_DIRNAME 1
6825 _ACEOF
6826
6827                         
6828 for ac_header in libgen.h
6829 do
6830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6832   echo "$as_me:$LINENO: checking for $ac_header" >&5
6833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6835   echo $ECHO_N "(cached) $ECHO_C" >&6
6836 fi
6837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6839 else
6840   # Is the header compilable?
6841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6843 cat >conftest.$ac_ext <<_ACEOF
6844 #line $LINENO "configure"
6845 #include "confdefs.h"
6846 $ac_includes_default
6847 @%:@include <$ac_header>
6848 _ACEOF
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851   (eval $ac_compile) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); } &&
6855          { ac_try='test -s conftest.$ac_objext'
6856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857   (eval $ac_try) 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }; }; then
6861   ac_header_compiler=yes
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6865 ac_header_compiler=no
6866 fi
6867 rm -f conftest.$ac_objext conftest.$ac_ext
6868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6869 echo "${ECHO_T}$ac_header_compiler" >&6
6870
6871 # Is the header present?
6872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6874 cat >conftest.$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 #include "confdefs.h"
6877 @%:@include <$ac_header>
6878 _ACEOF
6879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6881   ac_status=$?
6882   egrep -v '^ *\+' conftest.er1 >conftest.err
6883   rm -f conftest.er1
6884   cat conftest.err >&5
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); } >/dev/null; then
6887   if test -s conftest.err; then
6888     ac_cpp_err=$ac_c_preproc_warn_flag
6889   else
6890     ac_cpp_err=
6891   fi
6892 else
6893   ac_cpp_err=yes
6894 fi
6895 if test -z "$ac_cpp_err"; then
6896   ac_header_preproc=yes
6897 else
6898   echo "$as_me: failed program was:" >&5
6899   cat conftest.$ac_ext >&5
6900   ac_header_preproc=no
6901 fi
6902 rm -f conftest.err conftest.$ac_ext
6903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6904 echo "${ECHO_T}$ac_header_preproc" >&6
6905
6906 # So?  What about this header?
6907 case $ac_header_compiler:$ac_header_preproc in
6908   yes:no )
6909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6913   no:yes )
6914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6916     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6920 esac
6921 echo "$as_me:$LINENO: checking for $ac_header" >&5
6922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6924   echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926   eval "$as_ac_Header=$ac_header_preproc"
6927 fi
6928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6930
6931 fi
6932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6933   cat >>confdefs.h <<_ACEOF
6934 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6935 _ACEOF
6936  
6937 fi
6938
6939 done
6940
6941                 fi
6942         
6943 fi
6944
6945
6946 fi
6947 done
6948
6949
6950
6951
6952 for ac_func in gettimeofday time
6953 do
6954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6955 echo "$as_me:$LINENO: checking for $ac_func" >&5
6956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6957 if eval "test \"\${$as_ac_var+set}\" = set"; then
6958   echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960   cat >conftest.$ac_ext <<_ACEOF
6961 #line $LINENO "configure"
6962 #include "confdefs.h"
6963 /* System header to define __stub macros and hopefully few prototypes,
6964     which can conflict with char $ac_func (); below.  */
6965 #include <assert.h>
6966 /* Override any gcc2 internal prototype to avoid an error.  */
6967 #ifdef __cplusplus
6968 extern "C"
6969 #endif
6970 /* We use char because int might match the return type of a gcc2
6971    builtin and then its argument prototype would still apply.  */
6972 char $ac_func ();
6973 char (*f) ();
6974
6975 #ifdef F77_DUMMY_MAIN
6976 #  ifdef __cplusplus
6977      extern "C"
6978 #  endif
6979    int F77_DUMMY_MAIN() { return 1; }
6980 #endif
6981 int
6982 main ()
6983 {
6984 /* The GNU C library defines this for functions which it implements
6985     to always fail with ENOSYS.  Some functions are actually named
6986     something starting with __ and the normal name is an alias.  */
6987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6988 choke me
6989 #else
6990 f = $ac_func;
6991 #endif
6992
6993   ;
6994   return 0;
6995 }
6996 _ACEOF
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999   (eval $ac_link) 2>&5
7000   ac_status=$?
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); } &&
7003          { ac_try='test -s conftest$ac_exeext'
7004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005   (eval $ac_try) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); }; }; then
7009   eval "$as_ac_var=yes"
7010 else
7011   echo "$as_me: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7013 eval "$as_ac_var=no"
7014 fi
7015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7016 fi
7017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7019 if test `eval echo '${'$as_ac_var'}'` = yes; then
7020   cat >>confdefs.h <<_ACEOF
7021 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7022 _ACEOF
7023  
7024 fi
7025 done
7026
7027
7028
7029
7030
7031
7032
7033 for ac_func in endutent getutent getutid getutline pututline setutent
7034 do
7035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7036 echo "$as_me:$LINENO: checking for $ac_func" >&5
7037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7038 if eval "test \"\${$as_ac_var+set}\" = set"; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   cat >conftest.$ac_ext <<_ACEOF
7042 #line $LINENO "configure"
7043 #include "confdefs.h"
7044 /* System header to define __stub macros and hopefully few prototypes,
7045     which can conflict with char $ac_func (); below.  */
7046 #include <assert.h>
7047 /* Override any gcc2 internal prototype to avoid an error.  */
7048 #ifdef __cplusplus
7049 extern "C"
7050 #endif
7051 /* We use char because int might match the return type of a gcc2
7052    builtin and then its argument prototype would still apply.  */
7053 char $ac_func ();
7054 char (*f) ();
7055
7056 #ifdef F77_DUMMY_MAIN
7057 #  ifdef __cplusplus
7058      extern "C"
7059 #  endif
7060    int F77_DUMMY_MAIN() { return 1; }
7061 #endif
7062 int
7063 main ()
7064 {
7065 /* The GNU C library defines this for functions which it implements
7066     to always fail with ENOSYS.  Some functions are actually named
7067     something starting with __ and the normal name is an alias.  */
7068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7069 choke me
7070 #else
7071 f = $ac_func;
7072 #endif
7073
7074   ;
7075   return 0;
7076 }
7077 _ACEOF
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080   (eval $ac_link) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); } &&
7084          { ac_try='test -s conftest$ac_exeext'
7085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086   (eval $ac_try) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   eval "$as_ac_var=yes"
7091 else
7092   echo "$as_me: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7094 eval "$as_ac_var=no"
7095 fi
7096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7097 fi
7098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7100 if test `eval echo '${'$as_ac_var'}'` = yes; then
7101   cat >>confdefs.h <<_ACEOF
7102 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7103 _ACEOF
7104  
7105 fi
7106 done
7107
7108
7109 for ac_func in utmpname
7110 do
7111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 echo "$as_me:$LINENO: checking for $ac_func" >&5
7113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7114 if eval "test \"\${$as_ac_var+set}\" = set"; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   cat >conftest.$ac_ext <<_ACEOF
7118 #line $LINENO "configure"
7119 #include "confdefs.h"
7120 /* System header to define __stub macros and hopefully few prototypes,
7121     which can conflict with char $ac_func (); below.  */
7122 #include <assert.h>
7123 /* Override any gcc2 internal prototype to avoid an error.  */
7124 #ifdef __cplusplus
7125 extern "C"
7126 #endif
7127 /* We use char because int might match the return type of a gcc2
7128    builtin and then its argument prototype would still apply.  */
7129 char $ac_func ();
7130 char (*f) ();
7131
7132 #ifdef F77_DUMMY_MAIN
7133 #  ifdef __cplusplus
7134      extern "C"
7135 #  endif
7136    int F77_DUMMY_MAIN() { return 1; }
7137 #endif
7138 int
7139 main ()
7140 {
7141 /* The GNU C library defines this for functions which it implements
7142     to always fail with ENOSYS.  Some functions are actually named
7143     something starting with __ and the normal name is an alias.  */
7144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7145 choke me
7146 #else
7147 f = $ac_func;
7148 #endif
7149
7150   ;
7151   return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156   (eval $ac_link) 2>&5
7157   ac_status=$?
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); } &&
7160          { ac_try='test -s conftest$ac_exeext'
7161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162   (eval $ac_try) 2>&5
7163   ac_status=$?
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); }; }; then
7166   eval "$as_ac_var=yes"
7167 else
7168   echo "$as_me: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7170 eval "$as_ac_var=no"
7171 fi
7172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7173 fi
7174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7176 if test `eval echo '${'$as_ac_var'}'` = yes; then
7177   cat >>confdefs.h <<_ACEOF
7178 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7179 _ACEOF
7180  
7181 fi
7182 done
7183
7184
7185
7186
7187
7188
7189 for ac_func in endutxent getutxent getutxid getutxline pututxline 
7190 do
7191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7192 echo "$as_me:$LINENO: checking for $ac_func" >&5
7193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7194 if eval "test \"\${$as_ac_var+set}\" = set"; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   cat >conftest.$ac_ext <<_ACEOF
7198 #line $LINENO "configure"
7199 #include "confdefs.h"
7200 /* System header to define __stub macros and hopefully few prototypes,
7201     which can conflict with char $ac_func (); below.  */
7202 #include <assert.h>
7203 /* Override any gcc2 internal prototype to avoid an error.  */
7204 #ifdef __cplusplus
7205 extern "C"
7206 #endif
7207 /* We use char because int might match the return type of a gcc2
7208    builtin and then its argument prototype would still apply.  */
7209 char $ac_func ();
7210 char (*f) ();
7211
7212 #ifdef F77_DUMMY_MAIN
7213 #  ifdef __cplusplus
7214      extern "C"
7215 #  endif
7216    int F77_DUMMY_MAIN() { return 1; }
7217 #endif
7218 int
7219 main ()
7220 {
7221 /* The GNU C library defines this for functions which it implements
7222     to always fail with ENOSYS.  Some functions are actually named
7223     something starting with __ and the normal name is an alias.  */
7224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7225 choke me
7226 #else
7227 f = $ac_func;
7228 #endif
7229
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236   (eval $ac_link) 2>&5
7237   ac_status=$?
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } &&
7240          { ac_try='test -s conftest$ac_exeext'
7241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242   (eval $ac_try) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); }; }; then
7246   eval "$as_ac_var=yes"
7247 else
7248   echo "$as_me: failed program was:" >&5
7249 cat conftest.$ac_ext >&5
7250 eval "$as_ac_var=no"
7251 fi
7252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7253 fi
7254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7256 if test `eval echo '${'$as_ac_var'}'` = yes; then
7257   cat >>confdefs.h <<_ACEOF
7258 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7259 _ACEOF
7260  
7261 fi
7262 done
7263
7264
7265
7266 for ac_func in setutxent utmpxname
7267 do
7268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7269 echo "$as_me:$LINENO: checking for $ac_func" >&5
7270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7271 if eval "test \"\${$as_ac_var+set}\" = set"; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   cat >conftest.$ac_ext <<_ACEOF
7275 #line $LINENO "configure"
7276 #include "confdefs.h"
7277 /* System header to define __stub macros and hopefully few prototypes,
7278     which can conflict with char $ac_func (); below.  */
7279 #include <assert.h>
7280 /* Override any gcc2 internal prototype to avoid an error.  */
7281 #ifdef __cplusplus
7282 extern "C"
7283 #endif
7284 /* We use char because int might match the return type of a gcc2
7285    builtin and then its argument prototype would still apply.  */
7286 char $ac_func ();
7287 char (*f) ();
7288
7289 #ifdef F77_DUMMY_MAIN
7290 #  ifdef __cplusplus
7291      extern "C"
7292 #  endif
7293    int F77_DUMMY_MAIN() { return 1; }
7294 #endif
7295 int
7296 main ()
7297 {
7298 /* The GNU C library defines this for functions which it implements
7299     to always fail with ENOSYS.  Some functions are actually named
7300     something starting with __ and the normal name is an alias.  */
7301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7302 choke me
7303 #else
7304 f = $ac_func;
7305 #endif
7306
7307   ;
7308   return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext conftest$ac_exeext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313   (eval $ac_link) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); } &&
7317          { ac_try='test -s conftest$ac_exeext'
7318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319   (eval $ac_try) 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); }; }; then
7323   eval "$as_ac_var=yes"
7324 else
7325   echo "$as_me: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7327 eval "$as_ac_var=no"
7328 fi
7329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7330 fi
7331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7333 if test `eval echo '${'$as_ac_var'}'` = yes; then
7334   cat >>confdefs.h <<_ACEOF
7335 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7336 _ACEOF
7337  
7338 fi
7339 done
7340
7341
7342 echo "$as_me:$LINENO: checking for getuserattr" >&5
7343 echo $ECHO_N "checking for getuserattr... $ECHO_C" >&6
7344 if test "${ac_cv_func_getuserattr+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347   cat >conftest.$ac_ext <<_ACEOF
7348 #line $LINENO "configure"
7349 #include "confdefs.h"
7350 /* System header to define __stub macros and hopefully few prototypes,
7351     which can conflict with char getuserattr (); below.  */
7352 #include <assert.h>
7353 /* Override any gcc2 internal prototype to avoid an error.  */
7354 #ifdef __cplusplus
7355 extern "C"
7356 #endif
7357 /* We use char because int might match the return type of a gcc2
7358    builtin and then its argument prototype would still apply.  */
7359 char getuserattr ();
7360 char (*f) ();
7361
7362 #ifdef F77_DUMMY_MAIN
7363 #  ifdef __cplusplus
7364      extern "C"
7365 #  endif
7366    int F77_DUMMY_MAIN() { return 1; }
7367 #endif
7368 int
7369 main ()
7370 {
7371 /* The GNU C library defines this for functions which it implements
7372     to always fail with ENOSYS.  Some functions are actually named
7373     something starting with __ and the normal name is an alias.  */
7374 #if defined (__stub_getuserattr) || defined (__stub___getuserattr)
7375 choke me
7376 #else
7377 f = getuserattr;
7378 #endif
7379
7380   ;
7381   return 0;
7382 }
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386   (eval $ac_link) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } &&
7390          { ac_try='test -s conftest$ac_exeext'
7391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392   (eval $ac_try) 2>&5
7393   ac_status=$?
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); }; }; then
7396   ac_cv_func_getuserattr=yes
7397 else
7398   echo "$as_me: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7400 ac_cv_func_getuserattr=no
7401 fi
7402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7403 fi
7404 echo "$as_me:$LINENO: result: $ac_cv_func_getuserattr" >&5
7405 echo "${ECHO_T}$ac_cv_func_getuserattr" >&6
7406 if test $ac_cv_func_getuserattr = yes; then
7407   cat >>confdefs.h <<\_ACEOF
7408 @%:@define HAVE_GETUSERATTR 1
7409 _ACEOF
7410
7411 else
7412   echo "$as_me:$LINENO: checking for getuserattr in -ls" >&5
7413 echo $ECHO_N "checking for getuserattr in -ls... $ECHO_C" >&6
7414 if test "${ac_cv_lib_s_getuserattr+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   ac_check_lib_save_LIBS=$LIBS
7418 LIBS="-ls  $LIBS"
7419 cat >conftest.$ac_ext <<_ACEOF
7420 #line $LINENO "configure"
7421 #include "confdefs.h"
7422
7423 /* Override any gcc2 internal prototype to avoid an error.  */
7424 #ifdef __cplusplus
7425 extern "C"
7426 #endif
7427 /* We use char because int might match the return type of a gcc2
7428    builtin and then its argument prototype would still apply.  */
7429 char getuserattr ();
7430 #ifdef F77_DUMMY_MAIN
7431 #  ifdef __cplusplus
7432      extern "C"
7433 #  endif
7434    int F77_DUMMY_MAIN() { return 1; }
7435 #endif
7436 int
7437 main ()
7438 {
7439 getuserattr ();
7440   ;
7441   return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446   (eval $ac_link) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -s conftest$ac_exeext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   ac_cv_lib_s_getuserattr=yes
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7460 ac_cv_lib_s_getuserattr=no
7461 fi
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7463 LIBS=$ac_check_lib_save_LIBS
7464 fi
7465 echo "$as_me:$LINENO: result: $ac_cv_lib_s_getuserattr" >&5
7466 echo "${ECHO_T}$ac_cv_lib_s_getuserattr" >&6
7467 if test $ac_cv_lib_s_getuserattr = yes; then
7468   LIBS="$LIBS -ls"; cat >>confdefs.h <<\_ACEOF
7469 @%:@define HAVE_GETUSERATTR 1
7470 _ACEOF
7471
7472 fi
7473
7474
7475 fi
7476
7477
7478 echo "$as_me:$LINENO: checking for daemon" >&5
7479 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7480 if test "${ac_cv_func_daemon+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   cat >conftest.$ac_ext <<_ACEOF
7484 #line $LINENO "configure"
7485 #include "confdefs.h"
7486 /* System header to define __stub macros and hopefully few prototypes,
7487     which can conflict with char daemon (); below.  */
7488 #include <assert.h>
7489 /* Override any gcc2 internal prototype to avoid an error.  */
7490 #ifdef __cplusplus
7491 extern "C"
7492 #endif
7493 /* We use char because int might match the return type of a gcc2
7494    builtin and then its argument prototype would still apply.  */
7495 char daemon ();
7496 char (*f) ();
7497
7498 #ifdef F77_DUMMY_MAIN
7499 #  ifdef __cplusplus
7500      extern "C"
7501 #  endif
7502    int F77_DUMMY_MAIN() { return 1; }
7503 #endif
7504 int
7505 main ()
7506 {
7507 /* The GNU C library defines this for functions which it implements
7508     to always fail with ENOSYS.  Some functions are actually named
7509     something starting with __ and the normal name is an alias.  */
7510 #if defined (__stub_daemon) || defined (__stub___daemon)
7511 choke me
7512 #else
7513 f = daemon;
7514 #endif
7515
7516   ;
7517   return 0;
7518 }
7519 _ACEOF
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7522   (eval $ac_link) 2>&5
7523   ac_status=$?
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -s conftest$ac_exeext'
7527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528   (eval $ac_try) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); }; }; then
7532   ac_cv_func_daemon=yes
7533 else
7534   echo "$as_me: failed program was:" >&5
7535 cat conftest.$ac_ext >&5
7536 ac_cv_func_daemon=no
7537 fi
7538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7539 fi
7540 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
7541 echo "${ECHO_T}$ac_cv_func_daemon" >&6
7542 if test $ac_cv_func_daemon = yes; then
7543   cat >>confdefs.h <<\_ACEOF
7544 @%:@define HAVE_DAEMON 1
7545 _ACEOF
7546
7547 else
7548   echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
7549 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7550 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   ac_check_lib_save_LIBS=$LIBS
7554 LIBS="-lbsd  $LIBS"
7555 cat >conftest.$ac_ext <<_ACEOF
7556 #line $LINENO "configure"
7557 #include "confdefs.h"
7558
7559 /* Override any gcc2 internal prototype to avoid an error.  */
7560 #ifdef __cplusplus
7561 extern "C"
7562 #endif
7563 /* We use char because int might match the return type of a gcc2
7564    builtin and then its argument prototype would still apply.  */
7565 char daemon ();
7566 #ifdef F77_DUMMY_MAIN
7567 #  ifdef __cplusplus
7568      extern "C"
7569 #  endif
7570    int F77_DUMMY_MAIN() { return 1; }
7571 #endif
7572 int
7573 main ()
7574 {
7575 daemon ();
7576   ;
7577   return 0;
7578 }
7579 _ACEOF
7580 rm -f conftest.$ac_objext conftest$ac_exeext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582   (eval $ac_link) 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); } &&
7586          { ac_try='test -s conftest$ac_exeext'
7587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588   (eval $ac_try) 2>&5
7589   ac_status=$?
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); }; }; then
7592   ac_cv_lib_bsd_daemon=yes
7593 else
7594   echo "$as_me: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7596 ac_cv_lib_bsd_daemon=no
7597 fi
7598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7599 LIBS=$ac_check_lib_save_LIBS
7600 fi
7601 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
7602 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7603 if test $ac_cv_lib_bsd_daemon = yes; then
7604   LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
7605 @%:@define HAVE_DAEMON 1
7606 _ACEOF
7607
7608 fi
7609
7610
7611 fi
7612
7613
7614 echo "$as_me:$LINENO: checking for getpagesize" >&5
7615 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7616 if test "${ac_cv_func_getpagesize+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   cat >conftest.$ac_ext <<_ACEOF
7620 #line $LINENO "configure"
7621 #include "confdefs.h"
7622 /* System header to define __stub macros and hopefully few prototypes,
7623     which can conflict with char getpagesize (); below.  */
7624 #include <assert.h>
7625 /* Override any gcc2 internal prototype to avoid an error.  */
7626 #ifdef __cplusplus
7627 extern "C"
7628 #endif
7629 /* We use char because int might match the return type of a gcc2
7630    builtin and then its argument prototype would still apply.  */
7631 char getpagesize ();
7632 char (*f) ();
7633
7634 #ifdef F77_DUMMY_MAIN
7635 #  ifdef __cplusplus
7636      extern "C"
7637 #  endif
7638    int F77_DUMMY_MAIN() { return 1; }
7639 #endif
7640 int
7641 main ()
7642 {
7643 /* The GNU C library defines this for functions which it implements
7644     to always fail with ENOSYS.  Some functions are actually named
7645     something starting with __ and the normal name is an alias.  */
7646 #if defined (__stub_getpagesize) || defined (__stub___getpagesize)
7647 choke me
7648 #else
7649 f = getpagesize;
7650 #endif
7651
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658   (eval $ac_link) 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); } &&
7662          { ac_try='test -s conftest$ac_exeext'
7663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664   (eval $ac_try) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; }; then
7668   ac_cv_func_getpagesize=yes
7669 else
7670   echo "$as_me: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7672 ac_cv_func_getpagesize=no
7673 fi
7674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7675 fi
7676 echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
7677 echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7678 if test $ac_cv_func_getpagesize = yes; then
7679   cat >>confdefs.h <<\_ACEOF
7680 @%:@define HAVE_GETPAGESIZE 1
7681 _ACEOF
7682
7683 else
7684   echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
7685 echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7686 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   ac_check_lib_save_LIBS=$LIBS
7690 LIBS="-lucb  $LIBS"
7691 cat >conftest.$ac_ext <<_ACEOF
7692 #line $LINENO "configure"
7693 #include "confdefs.h"
7694
7695 /* Override any gcc2 internal prototype to avoid an error.  */
7696 #ifdef __cplusplus
7697 extern "C"
7698 #endif
7699 /* We use char because int might match the return type of a gcc2
7700    builtin and then its argument prototype would still apply.  */
7701 char getpagesize ();
7702 #ifdef F77_DUMMY_MAIN
7703 #  ifdef __cplusplus
7704      extern "C"
7705 #  endif
7706    int F77_DUMMY_MAIN() { return 1; }
7707 #endif
7708 int
7709 main ()
7710 {
7711 getpagesize ();
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext conftest$ac_exeext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7718   (eval $ac_link) 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } &&
7722          { ac_try='test -s conftest$ac_exeext'
7723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724   (eval $ac_try) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); }; }; then
7728   ac_cv_lib_ucb_getpagesize=yes
7729 else
7730   echo "$as_me: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7732 ac_cv_lib_ucb_getpagesize=no
7733 fi
7734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7735 LIBS=$ac_check_lib_save_LIBS
7736 fi
7737 echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
7738 echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7739 if test $ac_cv_lib_ucb_getpagesize = yes; then
7740   LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
7741 @%:@define HAVE_GETPAGESIZE 1
7742 _ACEOF
7743
7744 fi
7745
7746
7747 fi
7748
7749
7750 # Check for broken snprintf
7751 if test "x$ac_cv_func_snprintf" = "xyes" ; then
7752         echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
7753 echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
7754         if test "$cross_compiling" = yes; then
7755   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7756 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7757    { (exit 1); exit 1; }; }
7758 else
7759   cat >conftest.$ac_ext <<_ACEOF
7760 #line $LINENO "configure"
7761 #include "confdefs.h"
7762
7763 #include <stdio.h>
7764 int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
7765                 
7766 _ACEOF
7767 rm -f conftest$ac_exeext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769   (eval $ac_link) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774   (eval $ac_try) 2>&5
7775   ac_status=$?
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); }; }; then
7778   echo "$as_me:$LINENO: result: yes" >&5
7779 echo "${ECHO_T}yes" >&6
7780 else
7781   echo "$as_me: program exited with status $ac_status" >&5
7782 echo "$as_me: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7784 ( exit $ac_status )
7785
7786                         echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6
7788                         cat >>confdefs.h <<\_ACEOF
7789 @%:@define BROKEN_SNPRINTF 1
7790 _ACEOF
7791
7792                         { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
7793 echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
7794                 
7795         
7796 fi
7797 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 fi
7800
7801 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7802 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7803 if test "${ac_cv_func_getpgrp_void+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   # Use it with a single arg.
7807 cat >conftest.$ac_ext <<_ACEOF
7808 #line $LINENO "configure"
7809 #include "confdefs.h"
7810 $ac_includes_default
7811 #ifdef F77_DUMMY_MAIN
7812 #  ifdef __cplusplus
7813      extern "C"
7814 #  endif
7815    int F77_DUMMY_MAIN() { return 1; }
7816 #endif
7817 int
7818 main ()
7819 {
7820 getpgrp (0);
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7827   (eval $ac_compile) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } &&
7831          { ac_try='test -s conftest.$ac_objext'
7832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833   (eval $ac_try) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); }; }; then
7837   ac_cv_func_getpgrp_void=no
7838 else
7839   echo "$as_me: failed program was:" >&5
7840 cat conftest.$ac_ext >&5
7841 ac_cv_func_getpgrp_void=yes
7842 fi
7843 rm -f conftest.$ac_objext conftest.$ac_ext
7844
7845 fi
7846 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
7847 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
7848 if test $ac_cv_func_getpgrp_void = yes; then
7849   
7850 cat >>confdefs.h <<\_ACEOF
7851 @%:@define GETPGRP_VOID 1
7852 _ACEOF
7853
7854 fi
7855
7856
7857 # Check for PAM libs
7858 PAM_MSG="no"
7859
7860 # Check whether --with-pam or --without-pam was given.
7861 if test "${with_pam+set}" = set; then
7862   withval="$with_pam"
7863   
7864                 if test "x$withval" != "xno" ; then
7865                         if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
7866                                 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
7867 echo "$as_me: error: PAM headers not found" >&2;}
7868    { (exit 1); exit 1; }; }
7869                         fi
7870
7871                         
7872 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7873 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   ac_check_lib_save_LIBS=$LIBS
7878 LIBS="-ldl  $LIBS"
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882
7883 /* Override any gcc2 internal prototype to avoid an error.  */
7884 #ifdef __cplusplus
7885 extern "C"
7886 #endif
7887 /* We use char because int might match the return type of a gcc2
7888    builtin and then its argument prototype would still apply.  */
7889 char dlopen ();
7890 #ifdef F77_DUMMY_MAIN
7891 #  ifdef __cplusplus
7892      extern "C"
7893 #  endif
7894    int F77_DUMMY_MAIN() { return 1; }
7895 #endif
7896 int
7897 main ()
7898 {
7899 dlopen ();
7900   ;
7901   return 0;
7902 }
7903 _ACEOF
7904 rm -f conftest.$ac_objext conftest$ac_exeext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7906   (eval $ac_link) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } &&
7910          { ac_try='test -s conftest$ac_exeext'
7911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912   (eval $ac_try) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; }; then
7916   ac_cv_lib_dl_dlopen=yes
7917 else
7918   echo "$as_me: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 ac_cv_lib_dl_dlopen=no
7921 fi
7922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7923 LIBS=$ac_check_lib_save_LIBS
7924 fi
7925 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7927 if test $ac_cv_lib_dl_dlopen = yes; then
7928   cat >>confdefs.h <<_ACEOF
7929 @%:@define HAVE_LIBDL 1
7930 _ACEOF
7931
7932   LIBS="-ldl $LIBS"
7933
7934 fi
7935
7936                         
7937 echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
7938 echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
7939 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   ac_check_lib_save_LIBS=$LIBS
7943 LIBS="-lpam  $LIBS"
7944 cat >conftest.$ac_ext <<_ACEOF
7945 #line $LINENO "configure"
7946 #include "confdefs.h"
7947
7948 /* Override any gcc2 internal prototype to avoid an error.  */
7949 #ifdef __cplusplus
7950 extern "C"
7951 #endif
7952 /* We use char because int might match the return type of a gcc2
7953    builtin and then its argument prototype would still apply.  */
7954 char pam_set_item ();
7955 #ifdef F77_DUMMY_MAIN
7956 #  ifdef __cplusplus
7957      extern "C"
7958 #  endif
7959    int F77_DUMMY_MAIN() { return 1; }
7960 #endif
7961 int
7962 main ()
7963 {
7964 pam_set_item ();
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971   (eval $ac_link) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } &&
7975          { ac_try='test -s conftest$ac_exeext'
7976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977   (eval $ac_try) 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); }; }; then
7981   ac_cv_lib_pam_pam_set_item=yes
7982 else
7983   echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 ac_cv_lib_pam_pam_set_item=no
7986 fi
7987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_check_lib_save_LIBS
7989 fi
7990 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
7991 echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
7992 if test $ac_cv_lib_pam_pam_set_item = yes; then
7993   cat >>confdefs.h <<_ACEOF
7994 @%:@define HAVE_LIBPAM 1
7995 _ACEOF
7996
7997   LIBS="-lpam $LIBS"
7998
7999 else
8000   { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
8001 echo "$as_me: error: *** libpam missing" >&2;}
8002    { (exit 1); exit 1; }; }
8003 fi
8004
8005                         
8006 for ac_func in pam_getenvlist
8007 do
8008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8009 echo "$as_me:$LINENO: checking for $ac_func" >&5
8010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8011 if eval "test \"\${$as_ac_var+set}\" = set"; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   cat >conftest.$ac_ext <<_ACEOF
8015 #line $LINENO "configure"
8016 #include "confdefs.h"
8017 /* System header to define __stub macros and hopefully few prototypes,
8018     which can conflict with char $ac_func (); below.  */
8019 #include <assert.h>
8020 /* Override any gcc2 internal prototype to avoid an error.  */
8021 #ifdef __cplusplus
8022 extern "C"
8023 #endif
8024 /* We use char because int might match the return type of a gcc2
8025    builtin and then its argument prototype would still apply.  */
8026 char $ac_func ();
8027 char (*f) ();
8028
8029 #ifdef F77_DUMMY_MAIN
8030 #  ifdef __cplusplus
8031      extern "C"
8032 #  endif
8033    int F77_DUMMY_MAIN() { return 1; }
8034 #endif
8035 int
8036 main ()
8037 {
8038 /* The GNU C library defines this for functions which it implements
8039     to always fail with ENOSYS.  Some functions are actually named
8040     something starting with __ and the normal name is an alias.  */
8041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8042 choke me
8043 #else
8044 f = $ac_func;
8045 #endif
8046
8047   ;
8048   return 0;
8049 }
8050 _ACEOF
8051 rm -f conftest.$ac_objext conftest$ac_exeext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8053   (eval $ac_link) 2>&5
8054   ac_status=$?
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); } &&
8057          { ac_try='test -s conftest$ac_exeext'
8058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059   (eval $ac_try) 2>&5
8060   ac_status=$?
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); }; }; then
8063   eval "$as_ac_var=yes"
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8067 eval "$as_ac_var=no"
8068 fi
8069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8070 fi
8071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8073 if test `eval echo '${'$as_ac_var'}'` = yes; then
8074   cat >>confdefs.h <<_ACEOF
8075 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8076 _ACEOF
8077  
8078 fi
8079 done
8080
8081
8082                         disable_shadow=yes
8083                         PAM_MSG="yes"
8084
8085                         cat >>confdefs.h <<\_ACEOF
8086 @%:@define USE_PAM 1
8087 _ACEOF
8088
8089                         if test $ac_cv_lib_dl_dlopen = yes; then
8090                                 LIBPAM="-lpam -ldl"
8091                         else
8092                                 LIBPAM="-lpam"
8093                         fi
8094                         
8095                 fi
8096         
8097
8098 fi; 
8099
8100 # Check for older PAM
8101 if test "x$PAM_MSG" = "xyes" ; then
8102         # Check PAM strerror arguments (old PAM)
8103         echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
8104 echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
8105         cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8107 #include "confdefs.h"
8108
8109 #include <stdlib.h>
8110 #include <security/pam_appl.h>
8111                 
8112 #ifdef F77_DUMMY_MAIN
8113 #  ifdef __cplusplus
8114      extern "C"
8115 #  endif
8116    int F77_DUMMY_MAIN() { return 1; }
8117 #endif
8118 int
8119 main ()
8120 {
8121 (void)pam_strerror((pam_handle_t *)NULL, -1);
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128   (eval $ac_compile) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -s conftest.$ac_objext'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134   (eval $ac_try) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; }; then
8138   echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8143
8144                         cat >>confdefs.h <<\_ACEOF
8145 @%:@define HAVE_OLD_PAM 1
8146 _ACEOF
8147
8148                         echo "$as_me:$LINENO: result: yes" >&5
8149 echo "${ECHO_T}yes" >&6
8150                         PAM_MSG="yes (old library)"
8151                 
8152         
8153 fi
8154 rm -f conftest.$ac_objext conftest.$ac_ext
8155 fi
8156
8157 # Search for OpenSSL
8158 saved_CPPFLAGS="$CPPFLAGS"
8159 saved_LDFLAGS="$LDFLAGS"
8160
8161 # Check whether --with-ssl-dir or --without-ssl-dir was given.
8162 if test "${with_ssl_dir+set}" = set; then
8163   withval="$with_ssl_dir"
8164   
8165                 if test "x$withval" != "xno" ; then
8166                         if test -d "$withval/lib"; then
8167                                 if test -n "${need_dash_r}"; then
8168                                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8169                                 else
8170                                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8171                                 fi
8172                         else
8173                                 if test -n "${need_dash_r}"; then
8174                                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8175                                 else
8176                                         LDFLAGS="-L${withval} ${LDFLAGS}"
8177                                 fi
8178                         fi
8179                         if test -d "$withval/include"; then
8180                                 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8181                         else
8182                                 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8183                         fi
8184                 fi
8185         
8186
8187 fi; 
8188 LIBS="$LIBS -lcrypto"
8189 cat >conftest.$ac_ext <<_ACEOF
8190 #line $LINENO "configure"
8191 #include "confdefs.h"
8192
8193 /* Override any gcc2 internal prototype to avoid an error.  */
8194 #ifdef __cplusplus
8195 extern "C"
8196 #endif
8197 /* We use char because int might match the return type of a gcc2
8198    builtin and then its argument prototype would still apply.  */
8199 char RAND_add ();
8200 #ifdef F77_DUMMY_MAIN
8201 #  ifdef __cplusplus
8202      extern "C"
8203 #  endif
8204    int F77_DUMMY_MAIN() { return 1; }
8205 #endif
8206 int
8207 main ()
8208 {
8209 RAND_add ();
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216   (eval $ac_link) 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } &&
8220          { ac_try='test -s conftest$ac_exeext'
8221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222   (eval $ac_try) 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; }; then
8226   cat >>confdefs.h <<\_ACEOF
8227 @%:@define HAVE_OPENSSL 1
8228 _ACEOF
8229
8230 else
8231   echo "$as_me: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233
8234                                 if test -n "${need_dash_r}"; then
8235                         LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8236                 else
8237                         LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8238                 fi
8239                 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8240                 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8243
8244 /* Override any gcc2 internal prototype to avoid an error.  */
8245 #ifdef __cplusplus
8246 extern "C"
8247 #endif
8248 /* We use char because int might match the return type of a gcc2
8249    builtin and then its argument prototype would still apply.  */
8250 char RAND_add ();
8251 #ifdef F77_DUMMY_MAIN
8252 #  ifdef __cplusplus
8253      extern "C"
8254 #  endif
8255    int F77_DUMMY_MAIN() { return 1; }
8256 #endif
8257 int
8258 main ()
8259 {
8260 RAND_add ();
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267   (eval $ac_link) 2>&5
8268   ac_status=$?
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } &&
8271          { ac_try='test -s conftest$ac_exeext'
8272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273   (eval $ac_try) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); }; }; then
8277   cat >>confdefs.h <<\_ACEOF
8278 @%:@define HAVE_OPENSSL 1
8279 _ACEOF
8280
8281 else
8282   echo "$as_me: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8284
8285                                 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8286 echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8287    { (exit 1); exit 1; }; }
8288                         
8289                 
8290 fi
8291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8292         
8293
8294 fi
8295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8296
8297
8298 # Sanity check OpenSSL headers
8299 echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
8300 echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8301 if test "$cross_compiling" = yes; then
8302   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8303 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8304    { (exit 1); exit 1; }; }
8305 else
8306   cat >conftest.$ac_ext <<_ACEOF
8307 #line $LINENO "configure"
8308 #include "confdefs.h"
8309
8310 #include <string.h>
8311 #include <openssl/opensslv.h>
8312 int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8313         
8314 _ACEOF
8315 rm -f conftest$ac_exeext
8316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8317   (eval $ac_link) 2>&5
8318   ac_status=$?
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322   (eval $ac_try) 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); }; }; then
8326   
8327                 echo "$as_me:$LINENO: result: yes" >&5
8328 echo "${ECHO_T}yes" >&6
8329         
8330 else
8331   echo "$as_me: program exited with status $ac_status" >&5
8332 echo "$as_me: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8334 ( exit $ac_status )
8335
8336                 echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8338                 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
8339 echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
8340    { (exit 1); exit 1; }; }
8341         
8342
8343 fi
8344 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8345 fi
8346
8347 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the 
8348 # version in OpenSSL. Skip this for PAM
8349 if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
8350         echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8351 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8352 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   ac_check_lib_save_LIBS=$LIBS
8356 LIBS="-lcrypt  $LIBS"
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 #include "confdefs.h"
8360
8361 /* Override any gcc2 internal prototype to avoid an error.  */
8362 #ifdef __cplusplus
8363 extern "C"
8364 #endif
8365 /* We use char because int might match the return type of a gcc2
8366    builtin and then its argument prototype would still apply.  */
8367 char crypt ();
8368 #ifdef F77_DUMMY_MAIN
8369 #  ifdef __cplusplus
8370      extern "C"
8371 #  endif
8372    int F77_DUMMY_MAIN() { return 1; }
8373 #endif
8374 int
8375 main ()
8376 {
8377 crypt ();
8378   ;
8379   return 0;
8380 }
8381 _ACEOF
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384   (eval $ac_link) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); } &&
8388          { ac_try='test -s conftest$ac_exeext'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; }; then
8394   ac_cv_lib_crypt_crypt=yes
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8398 ac_cv_lib_crypt_crypt=no
8399 fi
8400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8401 LIBS=$ac_check_lib_save_LIBS
8402 fi
8403 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8404 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8405 if test $ac_cv_lib_crypt_crypt = yes; then
8406   LIBS="$LIBS -lcrypt"
8407 fi
8408
8409 fi
8410
8411
8412 ### Configure cryptographic random number support
8413
8414 # Check wheter OpenSSL seeds itself
8415 echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
8416 echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
8417 if test "$cross_compiling" = yes; then
8418   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8419 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8420    { (exit 1); exit 1; }; }
8421 else
8422   cat >conftest.$ac_ext <<_ACEOF
8423 #line $LINENO "configure"
8424 #include "confdefs.h"
8425
8426 #include <string.h>
8427 #include <openssl/rand.h>
8428 int main(void) { return(RAND_status() == 1 ? 0 : 1); }
8429         
8430 _ACEOF
8431 rm -f conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433   (eval $ac_link) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; }; then
8442   
8443                 OPENSSL_SEEDS_ITSELF=yes
8444                 echo "$as_me:$LINENO: result: yes" >&5
8445 echo "${ECHO_T}yes" >&6
8446         
8447 else
8448   echo "$as_me: program exited with status $ac_status" >&5
8449 echo "$as_me: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 ( exit $ac_status )
8452
8453                 echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8455                 # Default to use of the rand helper if OpenSSL doesn't
8456                 # seed itself
8457                 USE_RAND_HELPER=yes
8458         
8459
8460 fi
8461 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8462 fi
8463
8464
8465 # Do we want to force the use of the rand helper?
8466
8467 # Check whether --with-rand-helper or --without-rand-helper was given.
8468 if test "${with_rand_helper+set}" = set; then
8469   withval="$with_rand_helper"
8470   
8471                 if test "x$withval" = "xno" ; then
8472                         # Force use of OpenSSL's internal RNG, even if 
8473                         # the previous test showed it to be unseeded.
8474                         if test -z "$OPENSSL_SEEDS_ITSELF" ; then
8475                                 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
8476 echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
8477                                 OPENSSL_SEEDS_ITSELF=yes
8478                                 USE_RAND_HELPER=""
8479                         fi
8480                 else
8481                         USE_RAND_HELPER=yes
8482                 fi
8483         
8484 fi;     
8485
8486 # Which randomness source do we use?
8487 if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
8488         # OpenSSL only
8489         cat >>confdefs.h <<\_ACEOF
8490 @%:@define OPENSSL_PRNG_ONLY 1
8491 _ACEOF
8492
8493         RAND_MSG="OpenSSL internal ONLY"
8494         INSTALL_SSH_RAND_HELPER=""
8495 elif test ! -z "$USE_RAND_HELPER" ; then
8496         # install rand helper
8497         RAND_MSG="ssh-rand-helper"
8498         INSTALL_SSH_RAND_HELPER="yes"
8499 fi
8500
8501
8502 ### Configuration of ssh-rand-helper
8503
8504 # PRNGD TCP socket
8505
8506 # Check whether --with-prngd-port or --without-prngd-port was given.
8507 if test "${with_prngd_port+set}" = set; then
8508   withval="$with_prngd_port"
8509   
8510                 case "$withval" in
8511                 no)
8512                         withval=""
8513                         ;;
8514                 [0-9]*)
8515                         ;;
8516                 *)
8517                         { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
8518 echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
8519    { (exit 1); exit 1; }; }
8520                         ;;
8521                 esac
8522                 if test ! -z "$withval" ; then
8523                         PRNGD_PORT="$withval"
8524                         cat >>confdefs.h <<_ACEOF
8525 @%:@define PRNGD_PORT $PRNGD_PORT
8526 _ACEOF
8527
8528                 fi
8529         
8530
8531 fi; 
8532
8533 # PRNGD Unix domain socket
8534
8535 # Check whether --with-prngd-socket or --without-prngd-socket was given.
8536 if test "${with_prngd_socket+set}" = set; then
8537   withval="$with_prngd_socket"
8538   
8539                 case "$withval" in
8540                 yes)
8541                         withval="/var/run/egd-pool"
8542                         ;;
8543                 no)
8544                         withval=""
8545                         ;;
8546                 /*)
8547                         ;;
8548                 *)
8549                         { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
8550 echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
8551    { (exit 1); exit 1; }; }
8552                         ;;
8553                 esac
8554
8555                 if test ! -z "$withval" ; then
8556                         if test ! -z "$PRNGD_PORT" ; then
8557                                 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
8558 echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
8559    { (exit 1); exit 1; }; }
8560                         fi
8561                         if test ! -r "$withval" ; then
8562                                 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
8563 echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
8564                         fi
8565                         PRNGD_SOCKET="$withval"
8566                         cat >>confdefs.h <<_ACEOF
8567 @%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8568 _ACEOF
8569
8570                 fi
8571         
8572 else
8573   
8574                 # Check for existing socket only if we don't have a random device already
8575                 if test "$USE_RAND_HELPER" = yes ; then
8576                         echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
8577 echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
8578                         # Insert other locations here
8579                         for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
8580                                 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
8581                                         PRNGD_SOCKET="$sock"
8582                                         cat >>confdefs.h <<_ACEOF
8583 @%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8584 _ACEOF
8585
8586                                         break;
8587                                 fi
8588                         done
8589                         if test ! -z "$PRNGD_SOCKET" ; then
8590                                 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
8591 echo "${ECHO_T}$PRNGD_SOCKET" >&6
8592                         else
8593                                 echo "$as_me:$LINENO: result: not found" >&5
8594 echo "${ECHO_T}not found" >&6
8595                         fi
8596                 fi
8597         
8598
8599 fi; 
8600
8601 # Change default command timeout for hashing entropy source
8602 entropy_timeout=200
8603
8604 # Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8605 if test "${with_entropy_timeout+set}" = set; then
8606   withval="$with_entropy_timeout"
8607   
8608                 if test "x$withval" != "xno" ; then
8609                         entropy_timeout=$withval
8610                 fi
8611                 
8612
8613 fi; 
8614 cat >>confdefs.h <<_ACEOF
8615 @%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8616 _ACEOF
8617
8618
8619 ssh_privsep_user=sshd
8620
8621 # Check whether --with-privsep-user or --without-privsep-user was given.
8622 if test "${with_privsep_user+set}" = set; then
8623   withval="$with_privsep_user"
8624   
8625                 if test -n "$withval"; then
8626                         ssh_privsep_user=$withval
8627                 fi
8628                 
8629
8630 fi; 
8631 cat >>confdefs.h <<_ACEOF
8632 @%:@define SSH_PRIVSEP_USER "$ssh_privsep_user"
8633 _ACEOF
8634
8635
8636 # We do this little dance with the search path to insure
8637 # that programs that we select for use by installed programs
8638 # (which may be run by the super-user) come from trusted
8639 # locations before they come from the user's private area.
8640 # This should help avoid accidentally configuring some
8641 # random version of a program in someone's personal bin.
8642
8643 OPATH=$PATH
8644 PATH=/bin:/usr/bin
8645 test -h /bin 2> /dev/null && PATH=/usr/bin
8646 test -d /sbin && PATH=$PATH:/sbin
8647 test -d /usr/sbin && PATH=$PATH:/usr/sbin
8648 PATH=$PATH:/etc:$OPATH
8649
8650 # These programs are used by the command hashing source to gather entropy 
8651
8652         # Extract the first word of "ls", so it can be a program name with args.
8653 set dummy ls; ac_word=$2
8654 echo "$as_me:$LINENO: checking for $ac_word" >&5
8655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8656 if test "${ac_cv_path_PROG_LS+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   case $PROG_LS in
8660   [\\/]* | ?:[\\/]*)
8661   ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
8662   ;;
8663   *)
8664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667   IFS=$as_save_IFS
8668   test -z "$as_dir" && as_dir=.
8669   for ac_exec_ext in '' $ac_executable_extensions; do
8670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671     ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
8672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673     break 2
8674   fi
8675 done
8676 done
8677
8678   ;;
8679 esac
8680 fi
8681 PROG_LS=$ac_cv_path_PROG_LS
8682
8683 if test -n "$PROG_LS"; then
8684   echo "$as_me:$LINENO: result: $PROG_LS" >&5
8685 echo "${ECHO_T}$PROG_LS" >&6
8686 else
8687   echo "$as_me:$LINENO: result: no" >&5
8688 echo "${ECHO_T}no" >&6
8689 fi
8690
8691         if test -z "$PROG_LS" ; then
8692                 PROG_LS="undef"
8693         fi
8694         
8695
8696
8697         # Extract the first word of "netstat", so it can be a program name with args.
8698 set dummy netstat; ac_word=$2
8699 echo "$as_me:$LINENO: checking for $ac_word" >&5
8700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8701 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
8702   echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704   case $PROG_NETSTAT in
8705   [\\/]* | ?:[\\/]*)
8706   ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
8707   ;;
8708   *)
8709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 for as_dir in $PATH
8711 do
8712   IFS=$as_save_IFS
8713   test -z "$as_dir" && as_dir=.
8714   for ac_exec_ext in '' $ac_executable_extensions; do
8715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8716     ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
8717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718     break 2
8719   fi
8720 done
8721 done
8722
8723   ;;
8724 esac
8725 fi
8726 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
8727
8728 if test -n "$PROG_NETSTAT"; then
8729   echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
8730 echo "${ECHO_T}$PROG_NETSTAT" >&6
8731 else
8732   echo "$as_me:$LINENO: result: no" >&5
8733 echo "${ECHO_T}no" >&6
8734 fi
8735
8736         if test -z "$PROG_NETSTAT" ; then
8737                 PROG_NETSTAT="undef"
8738         fi
8739         
8740
8741
8742         # Extract the first word of "arp", so it can be a program name with args.
8743 set dummy arp; ac_word=$2
8744 echo "$as_me:$LINENO: checking for $ac_word" >&5
8745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8746 if test "${ac_cv_path_PROG_ARP+set}" = set; then
8747   echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749   case $PROG_ARP in
8750   [\\/]* | ?:[\\/]*)
8751   ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
8752   ;;
8753   *)
8754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757   IFS=$as_save_IFS
8758   test -z "$as_dir" && as_dir=.
8759   for ac_exec_ext in '' $ac_executable_extensions; do
8760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761     ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
8762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763     break 2
8764   fi
8765 done
8766 done
8767
8768   ;;
8769 esac
8770 fi
8771 PROG_ARP=$ac_cv_path_PROG_ARP
8772
8773 if test -n "$PROG_ARP"; then
8774   echo "$as_me:$LINENO: result: $PROG_ARP" >&5
8775 echo "${ECHO_T}$PROG_ARP" >&6
8776 else
8777   echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6
8779 fi
8780
8781         if test -z "$PROG_ARP" ; then
8782                 PROG_ARP="undef"
8783         fi
8784         
8785
8786
8787         # Extract the first word of "ifconfig", so it can be a program name with args.
8788 set dummy ifconfig; ac_word=$2
8789 echo "$as_me:$LINENO: checking for $ac_word" >&5
8790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
8792   echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794   case $PROG_IFCONFIG in
8795   [\\/]* | ?:[\\/]*)
8796   ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
8797   ;;
8798   *)
8799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802   IFS=$as_save_IFS
8803   test -z "$as_dir" && as_dir=.
8804   for ac_exec_ext in '' $ac_executable_extensions; do
8805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806     ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
8807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8808     break 2
8809   fi
8810 done
8811 done
8812
8813   ;;
8814 esac
8815 fi
8816 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
8817
8818 if test -n "$PROG_IFCONFIG"; then
8819   echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
8820 echo "${ECHO_T}$PROG_IFCONFIG" >&6
8821 else
8822   echo "$as_me:$LINENO: result: no" >&5
8823 echo "${ECHO_T}no" >&6
8824 fi
8825
8826         if test -z "$PROG_IFCONFIG" ; then
8827                 PROG_IFCONFIG="undef"
8828         fi
8829         
8830
8831
8832         # Extract the first word of "jstat", so it can be a program name with args.
8833 set dummy jstat; ac_word=$2
8834 echo "$as_me:$LINENO: checking for $ac_word" >&5
8835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8836 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
8837   echo $ECHO_N "(cached) $ECHO_C" >&6
8838 else
8839   case $PROG_JSTAT in
8840   [\\/]* | ?:[\\/]*)
8841   ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
8842   ;;
8843   *)
8844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847   IFS=$as_save_IFS
8848   test -z "$as_dir" && as_dir=.
8849   for ac_exec_ext in '' $ac_executable_extensions; do
8850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8851     ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
8852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8853     break 2
8854   fi
8855 done
8856 done
8857
8858   ;;
8859 esac
8860 fi
8861 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
8862
8863 if test -n "$PROG_JSTAT"; then
8864   echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
8865 echo "${ECHO_T}$PROG_JSTAT" >&6
8866 else
8867   echo "$as_me:$LINENO: result: no" >&5
8868 echo "${ECHO_T}no" >&6
8869 fi
8870
8871         if test -z "$PROG_JSTAT" ; then
8872                 PROG_JSTAT="undef"
8873         fi
8874         
8875
8876
8877         # Extract the first word of "ps", so it can be a program name with args.
8878 set dummy ps; ac_word=$2
8879 echo "$as_me:$LINENO: checking for $ac_word" >&5
8880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8881 if test "${ac_cv_path_PROG_PS+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   case $PROG_PS in
8885   [\\/]* | ?:[\\/]*)
8886   ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
8887   ;;
8888   *)
8889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892   IFS=$as_save_IFS
8893   test -z "$as_dir" && as_dir=.
8894   for ac_exec_ext in '' $ac_executable_extensions; do
8895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896     ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
8897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8898     break 2
8899   fi
8900 done
8901 done
8902
8903   ;;
8904 esac
8905 fi
8906 PROG_PS=$ac_cv_path_PROG_PS
8907
8908 if test -n "$PROG_PS"; then
8909   echo "$as_me:$LINENO: result: $PROG_PS" >&5
8910 echo "${ECHO_T}$PROG_PS" >&6
8911 else
8912   echo "$as_me:$LINENO: result: no" >&5
8913 echo "${ECHO_T}no" >&6
8914 fi
8915
8916         if test -z "$PROG_PS" ; then
8917                 PROG_PS="undef"
8918         fi
8919         
8920
8921
8922         # Extract the first word of "sar", so it can be a program name with args.
8923 set dummy sar; ac_word=$2
8924 echo "$as_me:$LINENO: checking for $ac_word" >&5
8925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8926 if test "${ac_cv_path_PROG_SAR+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929   case $PROG_SAR in
8930   [\\/]* | ?:[\\/]*)
8931   ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
8932   ;;
8933   *)
8934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8936 do
8937   IFS=$as_save_IFS
8938   test -z "$as_dir" && as_dir=.
8939   for ac_exec_ext in '' $ac_executable_extensions; do
8940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8941     ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
8942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8943     break 2
8944   fi
8945 done
8946 done
8947
8948   ;;
8949 esac
8950 fi
8951 PROG_SAR=$ac_cv_path_PROG_SAR
8952
8953 if test -n "$PROG_SAR"; then
8954   echo "$as_me:$LINENO: result: $PROG_SAR" >&5
8955 echo "${ECHO_T}$PROG_SAR" >&6
8956 else
8957   echo "$as_me:$LINENO: result: no" >&5
8958 echo "${ECHO_T}no" >&6
8959 fi
8960
8961         if test -z "$PROG_SAR" ; then
8962                 PROG_SAR="undef"
8963         fi
8964         
8965
8966
8967         # Extract the first word of "w", so it can be a program name with args.
8968 set dummy w; ac_word=$2
8969 echo "$as_me:$LINENO: checking for $ac_word" >&5
8970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8971 if test "${ac_cv_path_PROG_W+set}" = set; then
8972   echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974   case $PROG_W in
8975   [\\/]* | ?:[\\/]*)
8976   ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
8977   ;;
8978   *)
8979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in $PATH
8981 do
8982   IFS=$as_save_IFS
8983   test -z "$as_dir" && as_dir=.
8984   for ac_exec_ext in '' $ac_executable_extensions; do
8985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986     ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
8987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8988     break 2
8989   fi
8990 done
8991 done
8992
8993   ;;
8994 esac
8995 fi
8996 PROG_W=$ac_cv_path_PROG_W
8997
8998 if test -n "$PROG_W"; then
8999   echo "$as_me:$LINENO: result: $PROG_W" >&5
9000 echo "${ECHO_T}$PROG_W" >&6
9001 else
9002   echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6
9004 fi
9005
9006         if test -z "$PROG_W" ; then
9007                 PROG_W="undef"
9008         fi
9009         
9010
9011
9012         # Extract the first word of "who", so it can be a program name with args.
9013 set dummy who; ac_word=$2
9014 echo "$as_me:$LINENO: checking for $ac_word" >&5
9015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9016 if test "${ac_cv_path_PROG_WHO+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   case $PROG_WHO in
9020   [\\/]* | ?:[\\/]*)
9021   ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
9022   ;;
9023   *)
9024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 for as_dir in $PATH
9026 do
9027   IFS=$as_save_IFS
9028   test -z "$as_dir" && as_dir=.
9029   for ac_exec_ext in '' $ac_executable_extensions; do
9030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031     ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
9032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9033     break 2
9034   fi
9035 done
9036 done
9037
9038   ;;
9039 esac
9040 fi
9041 PROG_WHO=$ac_cv_path_PROG_WHO
9042
9043 if test -n "$PROG_WHO"; then
9044   echo "$as_me:$LINENO: result: $PROG_WHO" >&5
9045 echo "${ECHO_T}$PROG_WHO" >&6
9046 else
9047   echo "$as_me:$LINENO: result: no" >&5
9048 echo "${ECHO_T}no" >&6
9049 fi
9050
9051         if test -z "$PROG_WHO" ; then
9052                 PROG_WHO="undef"
9053         fi
9054         
9055
9056
9057         # Extract the first word of "last", so it can be a program name with args.
9058 set dummy last; ac_word=$2
9059 echo "$as_me:$LINENO: checking for $ac_word" >&5
9060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9061 if test "${ac_cv_path_PROG_LAST+set}" = set; then
9062   echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064   case $PROG_LAST in
9065   [\\/]* | ?:[\\/]*)
9066   ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
9067   ;;
9068   *)
9069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 for as_dir in $PATH
9071 do
9072   IFS=$as_save_IFS
9073   test -z "$as_dir" && as_dir=.
9074   for ac_exec_ext in '' $ac_executable_extensions; do
9075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9076     ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
9077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9078     break 2
9079   fi
9080 done
9081 done
9082
9083   ;;
9084 esac
9085 fi
9086 PROG_LAST=$ac_cv_path_PROG_LAST
9087
9088 if test -n "$PROG_LAST"; then
9089   echo "$as_me:$LINENO: result: $PROG_LAST" >&5
9090 echo "${ECHO_T}$PROG_LAST" >&6
9091 else
9092   echo "$as_me:$LINENO: result: no" >&5
9093 echo "${ECHO_T}no" >&6
9094 fi
9095
9096         if test -z "$PROG_LAST" ; then
9097                 PROG_LAST="undef"
9098         fi
9099         
9100
9101
9102         # Extract the first word of "lastlog", so it can be a program name with args.
9103 set dummy lastlog; ac_word=$2
9104 echo "$as_me:$LINENO: checking for $ac_word" >&5
9105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9106 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   case $PROG_LASTLOG in
9110   [\\/]* | ?:[\\/]*)
9111   ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
9112   ;;
9113   *)
9114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 for as_dir in $PATH
9116 do
9117   IFS=$as_save_IFS
9118   test -z "$as_dir" && as_dir=.
9119   for ac_exec_ext in '' $ac_executable_extensions; do
9120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9121     ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
9122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9123     break 2
9124   fi
9125 done
9126 done
9127
9128   ;;
9129 esac
9130 fi
9131 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
9132
9133 if test -n "$PROG_LASTLOG"; then
9134   echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9135 echo "${ECHO_T}$PROG_LASTLOG" >&6
9136 else
9137   echo "$as_me:$LINENO: result: no" >&5
9138 echo "${ECHO_T}no" >&6
9139 fi
9140
9141         if test -z "$PROG_LASTLOG" ; then
9142                 PROG_LASTLOG="undef"
9143         fi
9144         
9145
9146
9147         # Extract the first word of "df", so it can be a program name with args.
9148 set dummy df; ac_word=$2
9149 echo "$as_me:$LINENO: checking for $ac_word" >&5
9150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9151 if test "${ac_cv_path_PROG_DF+set}" = set; then
9152   echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154   case $PROG_DF in
9155   [\\/]* | ?:[\\/]*)
9156   ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9157   ;;
9158   *)
9159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in $PATH
9161 do
9162   IFS=$as_save_IFS
9163   test -z "$as_dir" && as_dir=.
9164   for ac_exec_ext in '' $ac_executable_extensions; do
9165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9166     ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
9167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9168     break 2
9169   fi
9170 done
9171 done
9172
9173   ;;
9174 esac
9175 fi
9176 PROG_DF=$ac_cv_path_PROG_DF
9177
9178 if test -n "$PROG_DF"; then
9179   echo "$as_me:$LINENO: result: $PROG_DF" >&5
9180 echo "${ECHO_T}$PROG_DF" >&6
9181 else
9182   echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6
9184 fi
9185
9186         if test -z "$PROG_DF" ; then
9187                 PROG_DF="undef"
9188         fi
9189         
9190
9191
9192         # Extract the first word of "vmstat", so it can be a program name with args.
9193 set dummy vmstat; ac_word=$2
9194 echo "$as_me:$LINENO: checking for $ac_word" >&5
9195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9196 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9197   echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199   case $PROG_VMSTAT in
9200   [\\/]* | ?:[\\/]*)
9201   ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9202   ;;
9203   *)
9204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH
9206 do
9207   IFS=$as_save_IFS
9208   test -z "$as_dir" && as_dir=.
9209   for ac_exec_ext in '' $ac_executable_extensions; do
9210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9211     ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
9212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9213     break 2
9214   fi
9215 done
9216 done
9217
9218   ;;
9219 esac
9220 fi
9221 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9222
9223 if test -n "$PROG_VMSTAT"; then
9224   echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9225 echo "${ECHO_T}$PROG_VMSTAT" >&6
9226 else
9227   echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6
9229 fi
9230
9231         if test -z "$PROG_VMSTAT" ; then
9232                 PROG_VMSTAT="undef"
9233         fi
9234         
9235
9236
9237         # Extract the first word of "uptime", so it can be a program name with args.
9238 set dummy uptime; ac_word=$2
9239 echo "$as_me:$LINENO: checking for $ac_word" >&5
9240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9241 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9242   echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244   case $PROG_UPTIME in
9245   [\\/]* | ?:[\\/]*)
9246   ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9247   ;;
9248   *)
9249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9251 do
9252   IFS=$as_save_IFS
9253   test -z "$as_dir" && as_dir=.
9254   for ac_exec_ext in '' $ac_executable_extensions; do
9255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256     ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
9257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9258     break 2
9259   fi
9260 done
9261 done
9262
9263   ;;
9264 esac
9265 fi
9266 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9267
9268 if test -n "$PROG_UPTIME"; then
9269   echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
9270 echo "${ECHO_T}$PROG_UPTIME" >&6
9271 else
9272   echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9274 fi
9275
9276         if test -z "$PROG_UPTIME" ; then
9277                 PROG_UPTIME="undef"
9278         fi
9279         
9280
9281
9282         # Extract the first word of "ipcs", so it can be a program name with args.
9283 set dummy ipcs; ac_word=$2
9284 echo "$as_me:$LINENO: checking for $ac_word" >&5
9285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9286 if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   case $PROG_IPCS in
9290   [\\/]* | ?:[\\/]*)
9291   ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9292   ;;
9293   *)
9294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9296 do
9297   IFS=$as_save_IFS
9298   test -z "$as_dir" && as_dir=.
9299   for ac_exec_ext in '' $ac_executable_extensions; do
9300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9301     ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
9302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9303     break 2
9304   fi
9305 done
9306 done
9307
9308   ;;
9309 esac
9310 fi
9311 PROG_IPCS=$ac_cv_path_PROG_IPCS
9312
9313 if test -n "$PROG_IPCS"; then
9314   echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
9315 echo "${ECHO_T}$PROG_IPCS" >&6
9316 else
9317   echo "$as_me:$LINENO: result: no" >&5
9318 echo "${ECHO_T}no" >&6
9319 fi
9320
9321         if test -z "$PROG_IPCS" ; then
9322                 PROG_IPCS="undef"
9323         fi
9324         
9325
9326
9327         # Extract the first word of "tail", so it can be a program name with args.
9328 set dummy tail; ac_word=$2
9329 echo "$as_me:$LINENO: checking for $ac_word" >&5
9330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9331 if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9332   echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334   case $PROG_TAIL in
9335   [\\/]* | ?:[\\/]*)
9336   ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9337   ;;
9338   *)
9339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9341 do
9342   IFS=$as_save_IFS
9343   test -z "$as_dir" && as_dir=.
9344   for ac_exec_ext in '' $ac_executable_extensions; do
9345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9346     ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
9347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9348     break 2
9349   fi
9350 done
9351 done
9352
9353   ;;
9354 esac
9355 fi
9356 PROG_TAIL=$ac_cv_path_PROG_TAIL
9357
9358 if test -n "$PROG_TAIL"; then
9359   echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
9360 echo "${ECHO_T}$PROG_TAIL" >&6
9361 else
9362   echo "$as_me:$LINENO: result: no" >&5
9363 echo "${ECHO_T}no" >&6
9364 fi
9365
9366         if test -z "$PROG_TAIL" ; then
9367                 PROG_TAIL="undef"
9368         fi
9369         
9370
9371 # restore PATH
9372 PATH=$OPATH
9373
9374 # Where does ssh-rand-helper get its randomness from?
9375 INSTALL_SSH_PRNG_CMDS=""
9376 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
9377         if test ! -z "$PRNGD_PORT" ; then
9378                 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
9379         elif test ! -z "$PRNGD_SOCKET" ; then
9380                 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
9381         else
9382                 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9383                 RAND_HELPER_CMDHASH=yes
9384                 INSTALL_SSH_PRNG_CMDS="yes"
9385         fi
9386 fi
9387
9388
9389
9390 # Cheap hack to ensure NEWS-OS libraries are arranged right.
9391 if test ! -z "$SONY" ; then
9392   LIBS="$LIBS -liberty";
9393 fi
9394
9395 # Checks for data types
9396 echo "$as_me:$LINENO: checking for char" >&5
9397 echo $ECHO_N "checking for char... $ECHO_C" >&6
9398 if test "${ac_cv_type_char+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 #include "confdefs.h"
9404 $ac_includes_default
9405 #ifdef F77_DUMMY_MAIN
9406 #  ifdef __cplusplus
9407      extern "C"
9408 #  endif
9409    int F77_DUMMY_MAIN() { return 1; }
9410 #endif
9411 int
9412 main ()
9413 {
9414 if ((char *) 0)
9415   return 0;
9416 if (sizeof (char))
9417   return 0;
9418   ;
9419   return 0;
9420 }
9421 _ACEOF
9422 rm -f conftest.$ac_objext
9423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424   (eval $ac_compile) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } &&
9428          { ac_try='test -s conftest.$ac_objext'
9429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430   (eval $ac_try) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; }; then
9434   ac_cv_type_char=yes
9435 else
9436   echo "$as_me: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 ac_cv_type_char=no
9439 fi
9440 rm -f conftest.$ac_objext conftest.$ac_ext
9441 fi
9442 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9443 echo "${ECHO_T}$ac_cv_type_char" >&6
9444
9445 echo "$as_me:$LINENO: checking size of char" >&5
9446 echo $ECHO_N "checking size of char... $ECHO_C" >&6
9447 if test "${ac_cv_sizeof_char+set}" = set; then
9448   echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450   if test "$ac_cv_type_char" = yes; then
9451   # The cast to unsigned long works around a bug in the HP C Compiler
9452   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9453   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9454   # This bug is HP SR number 8606223364.
9455   if test "$cross_compiling" = yes; then
9456   # Depending upon the size, compute the lo and hi bounds.
9457 cat >conftest.$ac_ext <<_ACEOF
9458 #line $LINENO "configure"
9459 #include "confdefs.h"
9460 $ac_includes_default
9461 #ifdef F77_DUMMY_MAIN
9462 #  ifdef __cplusplus
9463      extern "C"
9464 #  endif
9465    int F77_DUMMY_MAIN() { return 1; }
9466 #endif
9467 int
9468 main ()
9469 {
9470 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
9471 test_array @<:@0@:>@ = 0
9472
9473   ;
9474   return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9479   (eval $ac_compile) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -s conftest.$ac_objext'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; }; then
9489   ac_lo=0 ac_mid=0
9490   while :; do
9491     cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9493 #include "confdefs.h"
9494 $ac_includes_default
9495 #ifdef F77_DUMMY_MAIN
9496 #  ifdef __cplusplus
9497      extern "C"
9498 #  endif
9499    int F77_DUMMY_MAIN() { return 1; }
9500 #endif
9501 int
9502 main ()
9503 {
9504 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9505 test_array @<:@0@:>@ = 0
9506
9507   ;
9508   return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513   (eval $ac_compile) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); } &&
9517          { ac_try='test -s conftest.$ac_objext'
9518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519   (eval $ac_try) 2>&5
9520   ac_status=$?
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); }; }; then
9523   ac_hi=$ac_mid; break
9524 else
9525   echo "$as_me: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 ac_lo=`expr $ac_mid + 1`
9528                     if test $ac_lo -le $ac_mid; then
9529                       ac_lo= ac_hi=
9530                       break
9531                     fi
9532                     ac_mid=`expr 2 '*' $ac_mid + 1`
9533 fi
9534 rm -f conftest.$ac_objext conftest.$ac_ext
9535   done
9536 else
9537   echo "$as_me: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9539 cat >conftest.$ac_ext <<_ACEOF
9540 #line $LINENO "configure"
9541 #include "confdefs.h"
9542 $ac_includes_default
9543 #ifdef F77_DUMMY_MAIN
9544 #  ifdef __cplusplus
9545      extern "C"
9546 #  endif
9547    int F77_DUMMY_MAIN() { return 1; }
9548 #endif
9549 int
9550 main ()
9551 {
9552 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
9553 test_array @<:@0@:>@ = 0
9554
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561   (eval $ac_compile) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -s conftest.$ac_objext'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571   ac_hi=-1 ac_mid=-1
9572   while :; do
9573     cat >conftest.$ac_ext <<_ACEOF
9574 #line $LINENO "configure"
9575 #include "confdefs.h"
9576 $ac_includes_default
9577 #ifdef F77_DUMMY_MAIN
9578 #  ifdef __cplusplus
9579      extern "C"
9580 #  endif
9581    int F77_DUMMY_MAIN() { return 1; }
9582 #endif
9583 int
9584 main ()
9585 {
9586 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
9587 test_array @<:@0@:>@ = 0
9588
9589   ;
9590   return 0;
9591 }
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595   (eval $ac_compile) 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); } &&
9599          { ac_try='test -s conftest.$ac_objext'
9600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601   (eval $ac_try) 2>&5
9602   ac_status=$?
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); }; }; then
9605   ac_lo=$ac_mid; break
9606 else
9607   echo "$as_me: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 ac_hi=`expr '(' $ac_mid ')' - 1`
9610                        if test $ac_mid -le $ac_hi; then
9611                          ac_lo= ac_hi=
9612                          break
9613                        fi
9614                        ac_mid=`expr 2 '*' $ac_mid`
9615 fi
9616 rm -f conftest.$ac_objext conftest.$ac_ext
9617   done
9618 else
9619   echo "$as_me: failed program was:" >&5
9620 cat conftest.$ac_ext >&5
9621 ac_lo= ac_hi=
9622 fi
9623 rm -f conftest.$ac_objext conftest.$ac_ext
9624 fi
9625 rm -f conftest.$ac_objext conftest.$ac_ext
9626 # Binary search between lo and hi bounds.
9627 while test "x$ac_lo" != "x$ac_hi"; do
9628   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9629   cat >conftest.$ac_ext <<_ACEOF
9630 #line $LINENO "configure"
9631 #include "confdefs.h"
9632 $ac_includes_default
9633 #ifdef F77_DUMMY_MAIN
9634 #  ifdef __cplusplus
9635      extern "C"
9636 #  endif
9637    int F77_DUMMY_MAIN() { return 1; }
9638 #endif
9639 int
9640 main ()
9641 {
9642 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9643 test_array @<:@0@:>@ = 0
9644
9645   ;
9646   return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext
9650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9651   (eval $ac_compile) 2>&5
9652   ac_status=$?
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); } &&
9655          { ac_try='test -s conftest.$ac_objext'
9656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657   (eval $ac_try) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); }; }; then
9661   ac_hi=$ac_mid
9662 else
9663   echo "$as_me: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9665 ac_lo=`expr '(' $ac_mid ')' + 1`
9666 fi
9667 rm -f conftest.$ac_objext conftest.$ac_ext
9668 done
9669 case $ac_lo in
9670 ?*) ac_cv_sizeof_char=$ac_lo;;
9671 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9672 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9673    { (exit 1); exit 1; }; } ;;
9674 esac
9675 else
9676   if test "$cross_compiling" = yes; then
9677   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9678 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9679    { (exit 1); exit 1; }; }
9680 else
9681   cat >conftest.$ac_ext <<_ACEOF
9682 #line $LINENO "configure"
9683 #include "confdefs.h"
9684 $ac_includes_default
9685 long longval () { return (long) (sizeof (char)); }
9686 unsigned long ulongval () { return (long) (sizeof (char)); }
9687 @%:@include <stdio.h>
9688 @%:@include <stdlib.h>
9689 #ifdef F77_DUMMY_MAIN
9690 #  ifdef __cplusplus
9691      extern "C"
9692 #  endif
9693    int F77_DUMMY_MAIN() { return 1; }
9694 #endif
9695 int
9696 main ()
9697 {
9698
9699   FILE *f = fopen ("conftest.val", "w");
9700   if (! f)
9701     exit (1);
9702   if (((long) (sizeof (char))) < 0)
9703     {
9704       long i = longval ();
9705       if (i != ((long) (sizeof (char))))
9706         exit (1);
9707       fprintf (f, "%ld\n", i);
9708     }
9709   else
9710     {
9711       unsigned long i = ulongval ();
9712       if (i != ((long) (sizeof (char))))
9713         exit (1);
9714       fprintf (f, "%lu\n", i);
9715     }
9716   exit (ferror (f) || fclose (f) != 0);
9717
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 rm -f conftest$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724   (eval $ac_link) 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729   (eval $ac_try) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733   ac_cv_sizeof_char=`cat conftest.val`
9734 else
9735   echo "$as_me: program exited with status $ac_status" >&5
9736 echo "$as_me: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9738 ( exit $ac_status )
9739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9740 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9741    { (exit 1); exit 1; }; }
9742 fi
9743 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9744 fi
9745 fi
9746 rm -f conftest.val
9747 else
9748   ac_cv_sizeof_char=0
9749 fi
9750 fi
9751 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
9752 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
9753 cat >>confdefs.h <<_ACEOF
9754 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
9755 _ACEOF
9756
9757
9758 echo "$as_me:$LINENO: checking for short int" >&5
9759 echo $ECHO_N "checking for short int... $ECHO_C" >&6
9760 if test "${ac_cv_type_short_int+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   cat >conftest.$ac_ext <<_ACEOF
9764 #line $LINENO "configure"
9765 #include "confdefs.h"
9766 $ac_includes_default
9767 #ifdef F77_DUMMY_MAIN
9768 #  ifdef __cplusplus
9769      extern "C"
9770 #  endif
9771    int F77_DUMMY_MAIN() { return 1; }
9772 #endif
9773 int
9774 main ()
9775 {
9776 if ((short int *) 0)
9777   return 0;
9778 if (sizeof (short int))
9779   return 0;
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9786   (eval $ac_compile) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } &&
9790          { ac_try='test -s conftest.$ac_objext'
9791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792   (eval $ac_try) 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; }; then
9796   ac_cv_type_short_int=yes
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 ac_cv_type_short_int=no
9801 fi
9802 rm -f conftest.$ac_objext conftest.$ac_ext
9803 fi
9804 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
9805 echo "${ECHO_T}$ac_cv_type_short_int" >&6
9806
9807 echo "$as_me:$LINENO: checking size of short int" >&5
9808 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
9809 if test "${ac_cv_sizeof_short_int+set}" = set; then
9810   echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812   if test "$ac_cv_type_short_int" = yes; then
9813   # The cast to unsigned long works around a bug in the HP C Compiler
9814   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9815   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9816   # This bug is HP SR number 8606223364.
9817   if test "$cross_compiling" = yes; then
9818   # Depending upon the size, compute the lo and hi bounds.
9819 cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9821 #include "confdefs.h"
9822 $ac_includes_default
9823 #ifdef F77_DUMMY_MAIN
9824 #  ifdef __cplusplus
9825      extern "C"
9826 #  endif
9827    int F77_DUMMY_MAIN() { return 1; }
9828 #endif
9829 int
9830 main ()
9831 {
9832 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@;
9833 test_array @<:@0@:>@ = 0
9834
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841   (eval $ac_compile) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); } &&
9845          { ac_try='test -s conftest.$ac_objext'
9846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847   (eval $ac_try) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   ac_lo=0 ac_mid=0
9852   while :; do
9853     cat >conftest.$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9855 #include "confdefs.h"
9856 $ac_includes_default
9857 #ifdef F77_DUMMY_MAIN
9858 #  ifdef __cplusplus
9859      extern "C"
9860 #  endif
9861    int F77_DUMMY_MAIN() { return 1; }
9862 #endif
9863 int
9864 main ()
9865 {
9866 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
9867 test_array @<:@0@:>@ = 0
9868
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875   (eval $ac_compile) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -s conftest.$ac_objext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_hi=$ac_mid; break
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 ac_lo=`expr $ac_mid + 1`
9890                     if test $ac_lo -le $ac_mid; then
9891                       ac_lo= ac_hi=
9892                       break
9893                     fi
9894                     ac_mid=`expr 2 '*' $ac_mid + 1`
9895 fi
9896 rm -f conftest.$ac_objext conftest.$ac_ext
9897   done
9898 else
9899   echo "$as_me: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9903 #include "confdefs.h"
9904 $ac_includes_default
9905 #ifdef F77_DUMMY_MAIN
9906 #  ifdef __cplusplus
9907      extern "C"
9908 #  endif
9909    int F77_DUMMY_MAIN() { return 1; }
9910 #endif
9911 int
9912 main ()
9913 {
9914 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@;
9915 test_array @<:@0@:>@ = 0
9916
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9923   (eval $ac_compile) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -s conftest.$ac_objext'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; }; then
9933   ac_hi=-1 ac_mid=-1
9934   while :; do
9935     cat >conftest.$ac_ext <<_ACEOF
9936 #line $LINENO "configure"
9937 #include "confdefs.h"
9938 $ac_includes_default
9939 #ifdef F77_DUMMY_MAIN
9940 #  ifdef __cplusplus
9941      extern "C"
9942 #  endif
9943    int F77_DUMMY_MAIN() { return 1; }
9944 #endif
9945 int
9946 main ()
9947 {
9948 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@;
9949 test_array @<:@0@:>@ = 0
9950
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9957   (eval $ac_compile) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -s conftest.$ac_objext'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   ac_lo=$ac_mid; break
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9971 ac_hi=`expr '(' $ac_mid ')' - 1`
9972                        if test $ac_mid -le $ac_hi; then
9973                          ac_lo= ac_hi=
9974                          break
9975                        fi
9976                        ac_mid=`expr 2 '*' $ac_mid`
9977 fi
9978 rm -f conftest.$ac_objext conftest.$ac_ext
9979   done
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 ac_lo= ac_hi=
9984 fi
9985 rm -f conftest.$ac_objext conftest.$ac_ext
9986 fi
9987 rm -f conftest.$ac_objext conftest.$ac_ext
9988 # Binary search between lo and hi bounds.
9989 while test "x$ac_lo" != "x$ac_hi"; do
9990   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9991   cat >conftest.$ac_ext <<_ACEOF
9992 #line $LINENO "configure"
9993 #include "confdefs.h"
9994 $ac_includes_default
9995 #ifdef F77_DUMMY_MAIN
9996 #  ifdef __cplusplus
9997      extern "C"
9998 #  endif
9999    int F77_DUMMY_MAIN() { return 1; }
10000 #endif
10001 int
10002 main ()
10003 {
10004 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
10005 test_array @<:@0@:>@ = 0
10006
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013   (eval $ac_compile) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } &&
10017          { ac_try='test -s conftest.$ac_objext'
10018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019   (eval $ac_try) 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; }; then
10023   ac_hi=$ac_mid
10024 else
10025   echo "$as_me: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10027 ac_lo=`expr '(' $ac_mid ')' + 1`
10028 fi
10029 rm -f conftest.$ac_objext conftest.$ac_ext
10030 done
10031 case $ac_lo in
10032 ?*) ac_cv_sizeof_short_int=$ac_lo;;
10033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10034 echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10035    { (exit 1); exit 1; }; } ;;
10036 esac
10037 else
10038   if test "$cross_compiling" = yes; then
10039   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10040 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10041    { (exit 1); exit 1; }; }
10042 else
10043   cat >conftest.$ac_ext <<_ACEOF
10044 #line $LINENO "configure"
10045 #include "confdefs.h"
10046 $ac_includes_default
10047 long longval () { return (long) (sizeof (short int)); }
10048 unsigned long ulongval () { return (long) (sizeof (short int)); }
10049 @%:@include <stdio.h>
10050 @%:@include <stdlib.h>
10051 #ifdef F77_DUMMY_MAIN
10052 #  ifdef __cplusplus
10053      extern "C"
10054 #  endif
10055    int F77_DUMMY_MAIN() { return 1; }
10056 #endif
10057 int
10058 main ()
10059 {
10060
10061   FILE *f = fopen ("conftest.val", "w");
10062   if (! f)
10063     exit (1);
10064   if (((long) (sizeof (short int))) < 0)
10065     {
10066       long i = longval ();
10067       if (i != ((long) (sizeof (short int))))
10068         exit (1);
10069       fprintf (f, "%ld\n", i);
10070     }
10071   else
10072     {
10073       unsigned long i = ulongval ();
10074       if (i != ((long) (sizeof (short int))))
10075         exit (1);
10076       fprintf (f, "%lu\n", i);
10077     }
10078   exit (ferror (f) || fclose (f) != 0);
10079
10080   ;
10081   return 0;
10082 }
10083 _ACEOF
10084 rm -f conftest$ac_exeext
10085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10086   (eval $ac_link) 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091   (eval $ac_try) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; }; then
10095   ac_cv_sizeof_short_int=`cat conftest.val`
10096 else
10097   echo "$as_me: program exited with status $ac_status" >&5
10098 echo "$as_me: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 ( exit $ac_status )
10101 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10102 echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10103    { (exit 1); exit 1; }; }
10104 fi
10105 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10106 fi
10107 fi
10108 rm -f conftest.val
10109 else
10110   ac_cv_sizeof_short_int=0
10111 fi
10112 fi
10113 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
10114 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10115 cat >>confdefs.h <<_ACEOF
10116 @%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10117 _ACEOF
10118
10119
10120 echo "$as_me:$LINENO: checking for int" >&5
10121 echo $ECHO_N "checking for int... $ECHO_C" >&6
10122 if test "${ac_cv_type_int+set}" = set; then
10123   echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125   cat >conftest.$ac_ext <<_ACEOF
10126 #line $LINENO "configure"
10127 #include "confdefs.h"
10128 $ac_includes_default
10129 #ifdef F77_DUMMY_MAIN
10130 #  ifdef __cplusplus
10131      extern "C"
10132 #  endif
10133    int F77_DUMMY_MAIN() { return 1; }
10134 #endif
10135 int
10136 main ()
10137 {
10138 if ((int *) 0)
10139   return 0;
10140 if (sizeof (int))
10141   return 0;
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10148   (eval $ac_compile) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); } &&
10152          { ac_try='test -s conftest.$ac_objext'
10153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154   (eval $ac_try) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; }; then
10158   ac_cv_type_int=yes
10159 else
10160   echo "$as_me: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 ac_cv_type_int=no
10163 fi
10164 rm -f conftest.$ac_objext conftest.$ac_ext
10165 fi
10166 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10167 echo "${ECHO_T}$ac_cv_type_int" >&6
10168
10169 echo "$as_me:$LINENO: checking size of int" >&5
10170 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10171 if test "${ac_cv_sizeof_int+set}" = set; then
10172   echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174   if test "$ac_cv_type_int" = yes; then
10175   # The cast to unsigned long works around a bug in the HP C Compiler
10176   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10177   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10178   # This bug is HP SR number 8606223364.
10179   if test "$cross_compiling" = yes; then
10180   # Depending upon the size, compute the lo and hi bounds.
10181 cat >conftest.$ac_ext <<_ACEOF
10182 #line $LINENO "configure"
10183 #include "confdefs.h"
10184 $ac_includes_default
10185 #ifdef F77_DUMMY_MAIN
10186 #  ifdef __cplusplus
10187      extern "C"
10188 #  endif
10189    int F77_DUMMY_MAIN() { return 1; }
10190 #endif
10191 int
10192 main ()
10193 {
10194 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
10195 test_array @<:@0@:>@ = 0
10196
10197   ;
10198   return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203   (eval $ac_compile) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); } &&
10207          { ac_try='test -s conftest.$ac_objext'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   ac_lo=0 ac_mid=0
10214   while :; do
10215     cat >conftest.$ac_ext <<_ACEOF
10216 #line $LINENO "configure"
10217 #include "confdefs.h"
10218 $ac_includes_default
10219 #ifdef F77_DUMMY_MAIN
10220 #  ifdef __cplusplus
10221      extern "C"
10222 #  endif
10223    int F77_DUMMY_MAIN() { return 1; }
10224 #endif
10225 int
10226 main ()
10227 {
10228 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10229 test_array @<:@0@:>@ = 0
10230
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 rm -f conftest.$ac_objext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10237   (eval $ac_compile) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } &&
10241          { ac_try='test -s conftest.$ac_objext'
10242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243   (eval $ac_try) 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; }; then
10247   ac_hi=$ac_mid; break
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10251 ac_lo=`expr $ac_mid + 1`
10252                     if test $ac_lo -le $ac_mid; then
10253                       ac_lo= ac_hi=
10254                       break
10255                     fi
10256                     ac_mid=`expr 2 '*' $ac_mid + 1`
10257 fi
10258 rm -f conftest.$ac_objext conftest.$ac_ext
10259   done
10260 else
10261   echo "$as_me: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10263 cat >conftest.$ac_ext <<_ACEOF
10264 #line $LINENO "configure"
10265 #include "confdefs.h"
10266 $ac_includes_default
10267 #ifdef F77_DUMMY_MAIN
10268 #  ifdef __cplusplus
10269      extern "C"
10270 #  endif
10271    int F77_DUMMY_MAIN() { return 1; }
10272 #endif
10273 int
10274 main ()
10275 {
10276 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
10277 test_array @<:@0@:>@ = 0
10278
10279   ;
10280   return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285   (eval $ac_compile) 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } &&
10289          { ac_try='test -s conftest.$ac_objext'
10290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291   (eval $ac_try) 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; }; then
10295   ac_hi=-1 ac_mid=-1
10296   while :; do
10297     cat >conftest.$ac_ext <<_ACEOF
10298 #line $LINENO "configure"
10299 #include "confdefs.h"
10300 $ac_includes_default
10301 #ifdef F77_DUMMY_MAIN
10302 #  ifdef __cplusplus
10303      extern "C"
10304 #  endif
10305    int F77_DUMMY_MAIN() { return 1; }
10306 #endif
10307 int
10308 main ()
10309 {
10310 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
10311 test_array @<:@0@:>@ = 0
10312
10313   ;
10314   return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319   (eval $ac_compile) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); } &&
10323          { ac_try='test -s conftest.$ac_objext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329   ac_lo=$ac_mid; break
10330 else
10331   echo "$as_me: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10333 ac_hi=`expr '(' $ac_mid ')' - 1`
10334                        if test $ac_mid -le $ac_hi; then
10335                          ac_lo= ac_hi=
10336                          break
10337                        fi
10338                        ac_mid=`expr 2 '*' $ac_mid`
10339 fi
10340 rm -f conftest.$ac_objext conftest.$ac_ext
10341   done
10342 else
10343   echo "$as_me: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10345 ac_lo= ac_hi=
10346 fi
10347 rm -f conftest.$ac_objext conftest.$ac_ext
10348 fi
10349 rm -f conftest.$ac_objext conftest.$ac_ext
10350 # Binary search between lo and hi bounds.
10351 while test "x$ac_lo" != "x$ac_hi"; do
10352   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10353   cat >conftest.$ac_ext <<_ACEOF
10354 #line $LINENO "configure"
10355 #include "confdefs.h"
10356 $ac_includes_default
10357 #ifdef F77_DUMMY_MAIN
10358 #  ifdef __cplusplus
10359      extern "C"
10360 #  endif
10361    int F77_DUMMY_MAIN() { return 1; }
10362 #endif
10363 int
10364 main ()
10365 {
10366 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10367 test_array @<:@0@:>@ = 0
10368
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375   (eval $ac_compile) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } &&
10379          { ac_try='test -s conftest.$ac_objext'
10380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381   (eval $ac_try) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; }; then
10385   ac_hi=$ac_mid
10386 else
10387   echo "$as_me: failed program was:" >&5
10388 cat conftest.$ac_ext >&5
10389 ac_lo=`expr '(' $ac_mid ')' + 1`
10390 fi
10391 rm -f conftest.$ac_objext conftest.$ac_ext
10392 done
10393 case $ac_lo in
10394 ?*) ac_cv_sizeof_int=$ac_lo;;
10395 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10396 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10397    { (exit 1); exit 1; }; } ;;
10398 esac
10399 else
10400   if test "$cross_compiling" = yes; then
10401   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10402 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10403    { (exit 1); exit 1; }; }
10404 else
10405   cat >conftest.$ac_ext <<_ACEOF
10406 #line $LINENO "configure"
10407 #include "confdefs.h"
10408 $ac_includes_default
10409 long longval () { return (long) (sizeof (int)); }
10410 unsigned long ulongval () { return (long) (sizeof (int)); }
10411 @%:@include <stdio.h>
10412 @%:@include <stdlib.h>
10413 #ifdef F77_DUMMY_MAIN
10414 #  ifdef __cplusplus
10415      extern "C"
10416 #  endif
10417    int F77_DUMMY_MAIN() { return 1; }
10418 #endif
10419 int
10420 main ()
10421 {
10422
10423   FILE *f = fopen ("conftest.val", "w");
10424   if (! f)
10425     exit (1);
10426   if (((long) (sizeof (int))) < 0)
10427     {
10428       long i = longval ();
10429       if (i != ((long) (sizeof (int))))
10430         exit (1);
10431       fprintf (f, "%ld\n", i);
10432     }
10433   else
10434     {
10435       unsigned long i = ulongval ();
10436       if (i != ((long) (sizeof (int))))
10437         exit (1);
10438       fprintf (f, "%lu\n", i);
10439     }
10440   exit (ferror (f) || fclose (f) != 0);
10441
10442   ;
10443   return 0;
10444 }
10445 _ACEOF
10446 rm -f conftest$ac_exeext
10447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10448   (eval $ac_link) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453   (eval $ac_try) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); }; }; then
10457   ac_cv_sizeof_int=`cat conftest.val`
10458 else
10459   echo "$as_me: program exited with status $ac_status" >&5
10460 echo "$as_me: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 ( exit $ac_status )
10463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10464 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10465    { (exit 1); exit 1; }; }
10466 fi
10467 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10468 fi
10469 fi
10470 rm -f conftest.val
10471 else
10472   ac_cv_sizeof_int=0
10473 fi
10474 fi
10475 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10476 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10477 cat >>confdefs.h <<_ACEOF
10478 @%:@define SIZEOF_INT $ac_cv_sizeof_int
10479 _ACEOF
10480
10481
10482 echo "$as_me:$LINENO: checking for long int" >&5
10483 echo $ECHO_N "checking for long int... $ECHO_C" >&6
10484 if test "${ac_cv_type_long_int+set}" = set; then
10485   echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487   cat >conftest.$ac_ext <<_ACEOF
10488 #line $LINENO "configure"
10489 #include "confdefs.h"
10490 $ac_includes_default
10491 #ifdef F77_DUMMY_MAIN
10492 #  ifdef __cplusplus
10493      extern "C"
10494 #  endif
10495    int F77_DUMMY_MAIN() { return 1; }
10496 #endif
10497 int
10498 main ()
10499 {
10500 if ((long int *) 0)
10501   return 0;
10502 if (sizeof (long int))
10503   return 0;
10504   ;
10505   return 0;
10506 }
10507 _ACEOF
10508 rm -f conftest.$ac_objext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510   (eval $ac_compile) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); } &&
10514          { ac_try='test -s conftest.$ac_objext'
10515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516   (eval $ac_try) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; }; then
10520   ac_cv_type_long_int=yes
10521 else
10522   echo "$as_me: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 ac_cv_type_long_int=no
10525 fi
10526 rm -f conftest.$ac_objext conftest.$ac_ext
10527 fi
10528 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10529 echo "${ECHO_T}$ac_cv_type_long_int" >&6
10530
10531 echo "$as_me:$LINENO: checking size of long int" >&5
10532 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10533 if test "${ac_cv_sizeof_long_int+set}" = set; then
10534   echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536   if test "$ac_cv_type_long_int" = yes; then
10537   # The cast to unsigned long works around a bug in the HP C Compiler
10538   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10539   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10540   # This bug is HP SR number 8606223364.
10541   if test "$cross_compiling" = yes; then
10542   # Depending upon the size, compute the lo and hi bounds.
10543 cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10545 #include "confdefs.h"
10546 $ac_includes_default
10547 #ifdef F77_DUMMY_MAIN
10548 #  ifdef __cplusplus
10549      extern "C"
10550 #  endif
10551    int F77_DUMMY_MAIN() { return 1; }
10552 #endif
10553 int
10554 main ()
10555 {
10556 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@;
10557 test_array @<:@0@:>@ = 0
10558
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10565   (eval $ac_compile) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } &&
10569          { ac_try='test -s conftest.$ac_objext'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; }; then
10575   ac_lo=0 ac_mid=0
10576   while :; do
10577     cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 #include "confdefs.h"
10580 $ac_includes_default
10581 #ifdef F77_DUMMY_MAIN
10582 #  ifdef __cplusplus
10583      extern "C"
10584 #  endif
10585    int F77_DUMMY_MAIN() { return 1; }
10586 #endif
10587 int
10588 main ()
10589 {
10590 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10591 test_array @<:@0@:>@ = 0
10592
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599   (eval $ac_compile) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } &&
10603          { ac_try='test -s conftest.$ac_objext'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; }; then
10609   ac_hi=$ac_mid; break
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 ac_lo=`expr $ac_mid + 1`
10614                     if test $ac_lo -le $ac_mid; then
10615                       ac_lo= ac_hi=
10616                       break
10617                     fi
10618                     ac_mid=`expr 2 '*' $ac_mid + 1`
10619 fi
10620 rm -f conftest.$ac_objext conftest.$ac_ext
10621   done
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10627 #include "confdefs.h"
10628 $ac_includes_default
10629 #ifdef F77_DUMMY_MAIN
10630 #  ifdef __cplusplus
10631      extern "C"
10632 #  endif
10633    int F77_DUMMY_MAIN() { return 1; }
10634 #endif
10635 int
10636 main ()
10637 {
10638 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@;
10639 test_array @<:@0@:>@ = 0
10640
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 rm -f conftest.$ac_objext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10647   (eval $ac_compile) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } &&
10651          { ac_try='test -s conftest.$ac_objext'
10652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653   (eval $ac_try) 2>&5
10654   ac_status=$?
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); }; }; then
10657   ac_hi=-1 ac_mid=-1
10658   while :; do
10659     cat >conftest.$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10661 #include "confdefs.h"
10662 $ac_includes_default
10663 #ifdef F77_DUMMY_MAIN
10664 #  ifdef __cplusplus
10665      extern "C"
10666 #  endif
10667    int F77_DUMMY_MAIN() { return 1; }
10668 #endif
10669 int
10670 main ()
10671 {
10672 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@;
10673 test_array @<:@0@:>@ = 0
10674
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 rm -f conftest.$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681   (eval $ac_compile) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } &&
10685          { ac_try='test -s conftest.$ac_objext'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; }; then
10691   ac_lo=$ac_mid; break
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10695 ac_hi=`expr '(' $ac_mid ')' - 1`
10696                        if test $ac_mid -le $ac_hi; then
10697                          ac_lo= ac_hi=
10698                          break
10699                        fi
10700                        ac_mid=`expr 2 '*' $ac_mid`
10701 fi
10702 rm -f conftest.$ac_objext conftest.$ac_ext
10703   done
10704 else
10705   echo "$as_me: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10707 ac_lo= ac_hi=
10708 fi
10709 rm -f conftest.$ac_objext conftest.$ac_ext
10710 fi
10711 rm -f conftest.$ac_objext conftest.$ac_ext
10712 # Binary search between lo and hi bounds.
10713 while test "x$ac_lo" != "x$ac_hi"; do
10714   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10715   cat >conftest.$ac_ext <<_ACEOF
10716 #line $LINENO "configure"
10717 #include "confdefs.h"
10718 $ac_includes_default
10719 #ifdef F77_DUMMY_MAIN
10720 #  ifdef __cplusplus
10721      extern "C"
10722 #  endif
10723    int F77_DUMMY_MAIN() { return 1; }
10724 #endif
10725 int
10726 main ()
10727 {
10728 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10729 test_array @<:@0@:>@ = 0
10730
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 rm -f conftest.$ac_objext
10736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10737   (eval $ac_compile) 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); } &&
10741          { ac_try='test -s conftest.$ac_objext'
10742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743   (eval $ac_try) 2>&5
10744   ac_status=$?
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); }; }; then
10747   ac_hi=$ac_mid
10748 else
10749   echo "$as_me: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 ac_lo=`expr '(' $ac_mid ')' + 1`
10752 fi
10753 rm -f conftest.$ac_objext conftest.$ac_ext
10754 done
10755 case $ac_lo in
10756 ?*) ac_cv_sizeof_long_int=$ac_lo;;
10757 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10758 echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10759    { (exit 1); exit 1; }; } ;;
10760 esac
10761 else
10762   if test "$cross_compiling" = yes; then
10763   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10764 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10765    { (exit 1); exit 1; }; }
10766 else
10767   cat >conftest.$ac_ext <<_ACEOF
10768 #line $LINENO "configure"
10769 #include "confdefs.h"
10770 $ac_includes_default
10771 long longval () { return (long) (sizeof (long int)); }
10772 unsigned long ulongval () { return (long) (sizeof (long int)); }
10773 @%:@include <stdio.h>
10774 @%:@include <stdlib.h>
10775 #ifdef F77_DUMMY_MAIN
10776 #  ifdef __cplusplus
10777      extern "C"
10778 #  endif
10779    int F77_DUMMY_MAIN() { return 1; }
10780 #endif
10781 int
10782 main ()
10783 {
10784
10785   FILE *f = fopen ("conftest.val", "w");
10786   if (! f)
10787     exit (1);
10788   if (((long) (sizeof (long int))) < 0)
10789     {
10790       long i = longval ();
10791       if (i != ((long) (sizeof (long int))))
10792         exit (1);
10793       fprintf (f, "%ld\n", i);
10794     }
10795   else
10796     {
10797       unsigned long i = ulongval ();
10798       if (i != ((long) (sizeof (long int))))
10799         exit (1);
10800       fprintf (f, "%lu\n", i);
10801     }
10802   exit (ferror (f) || fclose (f) != 0);
10803
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810   (eval $ac_link) 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; }; then
10819   ac_cv_sizeof_long_int=`cat conftest.val`
10820 else
10821   echo "$as_me: program exited with status $ac_status" >&5
10822 echo "$as_me: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 ( exit $ac_status )
10825 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10826 echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10827    { (exit 1); exit 1; }; }
10828 fi
10829 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10830 fi
10831 fi
10832 rm -f conftest.val
10833 else
10834   ac_cv_sizeof_long_int=0
10835 fi
10836 fi
10837 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
10838 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
10839 cat >>confdefs.h <<_ACEOF
10840 @%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
10841 _ACEOF
10842
10843
10844 echo "$as_me:$LINENO: checking for long long int" >&5
10845 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
10846 if test "${ac_cv_type_long_long_int+set}" = set; then
10847   echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849   cat >conftest.$ac_ext <<_ACEOF
10850 #line $LINENO "configure"
10851 #include "confdefs.h"
10852 $ac_includes_default
10853 #ifdef F77_DUMMY_MAIN
10854 #  ifdef __cplusplus
10855      extern "C"
10856 #  endif
10857    int F77_DUMMY_MAIN() { return 1; }
10858 #endif
10859 int
10860 main ()
10861 {
10862 if ((long long int *) 0)
10863   return 0;
10864 if (sizeof (long long int))
10865   return 0;
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 rm -f conftest.$ac_objext
10871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10872   (eval $ac_compile) 2>&5
10873   ac_status=$?
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); } &&
10876          { ac_try='test -s conftest.$ac_objext'
10877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878   (eval $ac_try) 2>&5
10879   ac_status=$?
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); }; }; then
10882   ac_cv_type_long_long_int=yes
10883 else
10884   echo "$as_me: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10886 ac_cv_type_long_long_int=no
10887 fi
10888 rm -f conftest.$ac_objext conftest.$ac_ext
10889 fi
10890 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
10891 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
10892
10893 echo "$as_me:$LINENO: checking size of long long int" >&5
10894 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
10895 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
10896   echo $ECHO_N "(cached) $ECHO_C" >&6
10897 else
10898   if test "$ac_cv_type_long_long_int" = yes; then
10899   # The cast to unsigned long works around a bug in the HP C Compiler
10900   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10901   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10902   # This bug is HP SR number 8606223364.
10903   if test "$cross_compiling" = yes; then
10904   # Depending upon the size, compute the lo and hi bounds.
10905 cat >conftest.$ac_ext <<_ACEOF
10906 #line $LINENO "configure"
10907 #include "confdefs.h"
10908 $ac_includes_default
10909 #ifdef F77_DUMMY_MAIN
10910 #  ifdef __cplusplus
10911      extern "C"
10912 #  endif
10913    int F77_DUMMY_MAIN() { return 1; }
10914 #endif
10915 int
10916 main ()
10917 {
10918 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@;
10919 test_array @<:@0@:>@ = 0
10920
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927   (eval $ac_compile) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } &&
10931          { ac_try='test -s conftest.$ac_objext'
10932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933   (eval $ac_try) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; }; then
10937   ac_lo=0 ac_mid=0
10938   while :; do
10939     cat >conftest.$ac_ext <<_ACEOF
10940 #line $LINENO "configure"
10941 #include "confdefs.h"
10942 $ac_includes_default
10943 #ifdef F77_DUMMY_MAIN
10944 #  ifdef __cplusplus
10945      extern "C"
10946 #  endif
10947    int F77_DUMMY_MAIN() { return 1; }
10948 #endif
10949 int
10950 main ()
10951 {
10952 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
10953 test_array @<:@0@:>@ = 0
10954
10955   ;
10956   return 0;
10957 }
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961   (eval $ac_compile) 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } &&
10965          { ac_try='test -s conftest.$ac_objext'
10966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967   (eval $ac_try) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); }; }; then
10971   ac_hi=$ac_mid; break
10972 else
10973   echo "$as_me: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 ac_lo=`expr $ac_mid + 1`
10976                     if test $ac_lo -le $ac_mid; then
10977                       ac_lo= ac_hi=
10978                       break
10979                     fi
10980                     ac_mid=`expr 2 '*' $ac_mid + 1`
10981 fi
10982 rm -f conftest.$ac_objext conftest.$ac_ext
10983   done
10984 else
10985   echo "$as_me: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line $LINENO "configure"
10989 #include "confdefs.h"
10990 $ac_includes_default
10991 #ifdef F77_DUMMY_MAIN
10992 #  ifdef __cplusplus
10993      extern "C"
10994 #  endif
10995    int F77_DUMMY_MAIN() { return 1; }
10996 #endif
10997 int
10998 main ()
10999 {
11000 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@;
11001 test_array @<:@0@:>@ = 0
11002
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009   (eval $ac_compile) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -s conftest.$ac_objext'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   ac_hi=-1 ac_mid=-1
11020   while :; do
11021     cat >conftest.$ac_ext <<_ACEOF
11022 #line $LINENO "configure"
11023 #include "confdefs.h"
11024 $ac_includes_default
11025 #ifdef F77_DUMMY_MAIN
11026 #  ifdef __cplusplus
11027      extern "C"
11028 #  endif
11029    int F77_DUMMY_MAIN() { return 1; }
11030 #endif
11031 int
11032 main ()
11033 {
11034 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@;
11035 test_array @<:@0@:>@ = 0
11036
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043   (eval $ac_compile) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } &&
11047          { ac_try='test -s conftest.$ac_objext'
11048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049   (eval $ac_try) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); }; }; then
11053   ac_lo=$ac_mid; break
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 ac_hi=`expr '(' $ac_mid ')' - 1`
11058                        if test $ac_mid -le $ac_hi; then
11059                          ac_lo= ac_hi=
11060                          break
11061                        fi
11062                        ac_mid=`expr 2 '*' $ac_mid`
11063 fi
11064 rm -f conftest.$ac_objext conftest.$ac_ext
11065   done
11066 else
11067   echo "$as_me: failed program was:" >&5
11068 cat conftest.$ac_ext >&5
11069 ac_lo= ac_hi=
11070 fi
11071 rm -f conftest.$ac_objext conftest.$ac_ext
11072 fi
11073 rm -f conftest.$ac_objext conftest.$ac_ext
11074 # Binary search between lo and hi bounds.
11075 while test "x$ac_lo" != "x$ac_hi"; do
11076   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11077   cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11079 #include "confdefs.h"
11080 $ac_includes_default
11081 #ifdef F77_DUMMY_MAIN
11082 #  ifdef __cplusplus
11083      extern "C"
11084 #  endif
11085    int F77_DUMMY_MAIN() { return 1; }
11086 #endif
11087 int
11088 main ()
11089 {
11090 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
11091 test_array @<:@0@:>@ = 0
11092
11093   ;
11094   return 0;
11095 }
11096 _ACEOF
11097 rm -f conftest.$ac_objext
11098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099   (eval $ac_compile) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); } &&
11103          { ac_try='test -s conftest.$ac_objext'
11104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105   (eval $ac_try) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; }; then
11109   ac_hi=$ac_mid
11110 else
11111   echo "$as_me: failed program was:" >&5
11112 cat conftest.$ac_ext >&5
11113 ac_lo=`expr '(' $ac_mid ')' + 1`
11114 fi
11115 rm -f conftest.$ac_objext conftest.$ac_ext
11116 done
11117 case $ac_lo in
11118 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
11119 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11120 echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11121    { (exit 1); exit 1; }; } ;;
11122 esac
11123 else
11124   if test "$cross_compiling" = yes; then
11125   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11126 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11127    { (exit 1); exit 1; }; }
11128 else
11129   cat >conftest.$ac_ext <<_ACEOF
11130 #line $LINENO "configure"
11131 #include "confdefs.h"
11132 $ac_includes_default
11133 long longval () { return (long) (sizeof (long long int)); }
11134 unsigned long ulongval () { return (long) (sizeof (long long int)); }
11135 @%:@include <stdio.h>
11136 @%:@include <stdlib.h>
11137 #ifdef F77_DUMMY_MAIN
11138 #  ifdef __cplusplus
11139      extern "C"
11140 #  endif
11141    int F77_DUMMY_MAIN() { return 1; }
11142 #endif
11143 int
11144 main ()
11145 {
11146
11147   FILE *f = fopen ("conftest.val", "w");
11148   if (! f)
11149     exit (1);
11150   if (((long) (sizeof (long long int))) < 0)
11151     {
11152       long i = longval ();
11153       if (i != ((long) (sizeof (long long int))))
11154         exit (1);
11155       fprintf (f, "%ld\n", i);
11156     }
11157   else
11158     {
11159       unsigned long i = ulongval ();
11160       if (i != ((long) (sizeof (long long int))))
11161         exit (1);
11162       fprintf (f, "%lu\n", i);
11163     }
11164   exit (ferror (f) || fclose (f) != 0);
11165
11166   ;
11167   return 0;
11168 }
11169 _ACEOF
11170 rm -f conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172   (eval $ac_link) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177   (eval $ac_try) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; }; then
11181   ac_cv_sizeof_long_long_int=`cat conftest.val`
11182 else
11183   echo "$as_me: program exited with status $ac_status" >&5
11184 echo "$as_me: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 ( exit $ac_status )
11187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11188 echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11189    { (exit 1); exit 1; }; }
11190 fi
11191 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11192 fi
11193 fi
11194 rm -f conftest.val
11195 else
11196   ac_cv_sizeof_long_long_int=0
11197 fi
11198 fi
11199 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11200 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11201 cat >>confdefs.h <<_ACEOF
11202 @%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11203 _ACEOF
11204
11205
11206
11207 # Sanity check long long for some platforms (AIX)
11208 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11209         ac_cv_sizeof_long_long_int=0
11210 fi
11211
11212 # More checks for data types
11213 echo "$as_me:$LINENO: checking for u_int type" >&5
11214 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11215 if test "${ac_cv_have_u_int+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   
11219         cat >conftest.$ac_ext <<_ACEOF
11220 #line $LINENO "configure"
11221 #include "confdefs.h"
11222  #include <sys/types.h> 
11223 #ifdef F77_DUMMY_MAIN
11224 #  ifdef __cplusplus
11225      extern "C"
11226 #  endif
11227    int F77_DUMMY_MAIN() { return 1; }
11228 #endif
11229 int
11230 main ()
11231 {
11232  u_int a; a = 1;
11233   ;
11234   return 0;
11235 }
11236 _ACEOF
11237 rm -f conftest.$ac_objext
11238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11239   (eval $ac_compile) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } &&
11243          { ac_try='test -s conftest.$ac_objext'
11244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245   (eval $ac_try) 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); }; }; then
11249    ac_cv_have_u_int="yes" 
11250 else
11251   echo "$as_me: failed program was:" >&5
11252 cat conftest.$ac_ext >&5
11253  ac_cv_have_u_int="no" 
11254         
11255 fi
11256 rm -f conftest.$ac_objext conftest.$ac_ext
11257
11258 fi
11259 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
11260 echo "${ECHO_T}$ac_cv_have_u_int" >&6
11261 if test "x$ac_cv_have_u_int" = "xyes" ; then
11262         cat >>confdefs.h <<\_ACEOF
11263 @%:@define HAVE_U_INT 1
11264 _ACEOF
11265
11266         have_u_int=1
11267 fi
11268
11269 echo "$as_me:$LINENO: checking for intXX_t types" >&5
11270 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11271 if test "${ac_cv_have_intxx_t+set}" = set; then
11272   echo $ECHO_N "(cached) $ECHO_C" >&6
11273 else
11274   
11275         cat >conftest.$ac_ext <<_ACEOF
11276 #line $LINENO "configure"
11277 #include "confdefs.h"
11278  #include <sys/types.h> 
11279 #ifdef F77_DUMMY_MAIN
11280 #  ifdef __cplusplus
11281      extern "C"
11282 #  endif
11283    int F77_DUMMY_MAIN() { return 1; }
11284 #endif
11285 int
11286 main ()
11287 {
11288  int8_t a; int16_t b; int32_t c; a = b = c = 1;
11289   ;
11290   return 0;
11291 }
11292 _ACEOF
11293 rm -f conftest.$ac_objext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295   (eval $ac_compile) 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); } &&
11299          { ac_try='test -s conftest.$ac_objext'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; }; then
11305    ac_cv_have_intxx_t="yes" 
11306 else
11307   echo "$as_me: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309  ac_cv_have_intxx_t="no" 
11310         
11311 fi
11312 rm -f conftest.$ac_objext conftest.$ac_ext
11313
11314 fi
11315 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
11316 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11317 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11318         cat >>confdefs.h <<\_ACEOF
11319 @%:@define HAVE_INTXX_T 1
11320 _ACEOF
11321
11322         have_intxx_t=1
11323 fi
11324
11325 if (test -z "$have_intxx_t" && \
11326            test "x$ac_cv_header_stdint_h" = "xyes")
11327 then
11328     echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
11329 echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11330         cat >conftest.$ac_ext <<_ACEOF
11331 #line $LINENO "configure"
11332 #include "confdefs.h"
11333  #include <stdint.h> 
11334 #ifdef F77_DUMMY_MAIN
11335 #  ifdef __cplusplus
11336      extern "C"
11337 #  endif
11338    int F77_DUMMY_MAIN() { return 1; }
11339 #endif
11340 int
11341 main ()
11342 {
11343  int8_t a; int16_t b; int32_t c; a = b = c = 1;
11344   ;
11345   return 0;
11346 }
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11350   (eval $ac_compile) 2>&5
11351   ac_status=$?
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); } &&
11354          { ac_try='test -s conftest.$ac_objext'
11355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356   (eval $ac_try) 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; }; then
11360   
11361                         cat >>confdefs.h <<\_ACEOF
11362 @%:@define HAVE_INTXX_T 1
11363 _ACEOF
11364
11365                         echo "$as_me:$LINENO: result: yes" >&5
11366 echo "${ECHO_T}yes" >&6
11367                 
11368 else
11369   echo "$as_me: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371  echo "$as_me:$LINENO: result: no" >&5
11372 echo "${ECHO_T}no" >&6 
11373         
11374 fi
11375 rm -f conftest.$ac_objext conftest.$ac_ext
11376 fi
11377
11378 echo "$as_me:$LINENO: checking for int64_t type" >&5
11379 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11380 if test "${ac_cv_have_int64_t+set}" = set; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   
11384         cat >conftest.$ac_ext <<_ACEOF
11385 #line $LINENO "configure"
11386 #include "confdefs.h"
11387  #include <sys/types.h> 
11388 #ifdef F77_DUMMY_MAIN
11389 #  ifdef __cplusplus
11390      extern "C"
11391 #  endif
11392    int F77_DUMMY_MAIN() { return 1; }
11393 #endif
11394 int
11395 main ()
11396 {
11397  int64_t a; a = 1;
11398   ;
11399   return 0;
11400 }
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404   (eval $ac_compile) 2>&5
11405   ac_status=$?
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); } &&
11408          { ac_try='test -s conftest.$ac_objext'
11409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410   (eval $ac_try) 2>&5
11411   ac_status=$?
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); }; }; then
11414    ac_cv_have_int64_t="yes" 
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418  ac_cv_have_int64_t="no" 
11419         
11420 fi
11421 rm -f conftest.$ac_objext conftest.$ac_ext
11422
11423 fi
11424 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
11425 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11426 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11427         cat >>confdefs.h <<\_ACEOF
11428 @%:@define HAVE_INT64_T 1
11429 _ACEOF
11430
11431         have_int64_t=1
11432 fi
11433         
11434 if test -z "$have_int64_t" ; then
11435     echo "$as_me:$LINENO: checking for int64_t type in sys/socket.h" >&5
11436 echo $ECHO_N "checking for int64_t type in sys/socket.h... $ECHO_C" >&6
11437         cat >conftest.$ac_ext <<_ACEOF
11438 #line $LINENO "configure"
11439 #include "confdefs.h"
11440  #include <sys/socket.h> 
11441 #ifdef F77_DUMMY_MAIN
11442 #  ifdef __cplusplus
11443      extern "C"
11444 #  endif
11445    int F77_DUMMY_MAIN() { return 1; }
11446 #endif
11447 int
11448 main ()
11449 {
11450  int64_t a; a = 1
11451   ;
11452   return 0;
11453 }
11454 _ACEOF
11455 rm -f conftest.$ac_objext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11457   (eval $ac_compile) 2>&5
11458   ac_status=$?
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); } &&
11461          { ac_try='test -s conftest.$ac_objext'
11462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463   (eval $ac_try) 2>&5
11464   ac_status=$?
11465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466   (exit $ac_status); }; }; then
11467   
11468                         cat >>confdefs.h <<\_ACEOF
11469 @%:@define HAVE_INT64_T 1
11470 _ACEOF
11471
11472                         echo "$as_me:$LINENO: result: yes" >&5
11473 echo "${ECHO_T}yes" >&6
11474                 
11475 else
11476   echo "$as_me: failed program was:" >&5
11477 cat conftest.$ac_ext >&5
11478  echo "$as_me:$LINENO: result: no" >&5
11479 echo "${ECHO_T}no" >&6 
11480         
11481 fi
11482 rm -f conftest.$ac_objext conftest.$ac_ext
11483 fi
11484
11485 if test -z "$have_int64_t" ; then
11486     echo "$as_me:$LINENO: checking for int64_t type in sys/bitypes.h" >&5
11487 echo $ECHO_N "checking for int64_t type in sys/bitypes.h... $ECHO_C" >&6
11488         cat >conftest.$ac_ext <<_ACEOF
11489 #line $LINENO "configure"
11490 #include "confdefs.h"
11491  #include <sys/bitypes.h> 
11492 #ifdef F77_DUMMY_MAIN
11493 #  ifdef __cplusplus
11494      extern "C"
11495 #  endif
11496    int F77_DUMMY_MAIN() { return 1; }
11497 #endif
11498 int
11499 main ()
11500 {
11501  int64_t a; a = 1
11502   ;
11503   return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508   (eval $ac_compile) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); } &&
11512          { ac_try='test -s conftest.$ac_objext'
11513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514   (eval $ac_try) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; }; then
11518   
11519                         cat >>confdefs.h <<\_ACEOF
11520 @%:@define HAVE_INT64_T 1
11521 _ACEOF
11522
11523                         echo "$as_me:$LINENO: result: yes" >&5
11524 echo "${ECHO_T}yes" >&6
11525                 
11526 else
11527   echo "$as_me: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529  echo "$as_me:$LINENO: result: no" >&5
11530 echo "${ECHO_T}no" >&6 
11531         
11532 fi
11533 rm -f conftest.$ac_objext conftest.$ac_ext
11534 fi
11535
11536 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
11537 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11538 if test "${ac_cv_have_u_intxx_t+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   
11542         cat >conftest.$ac_ext <<_ACEOF
11543 #line $LINENO "configure"
11544 #include "confdefs.h"
11545  #include <sys/types.h> 
11546 #ifdef F77_DUMMY_MAIN
11547 #  ifdef __cplusplus
11548      extern "C"
11549 #  endif
11550    int F77_DUMMY_MAIN() { return 1; }
11551 #endif
11552 int
11553 main ()
11554 {
11555  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 rm -f conftest.$ac_objext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562   (eval $ac_compile) 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } &&
11566          { ac_try='test -s conftest.$ac_objext'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; }; then
11572    ac_cv_have_u_intxx_t="yes" 
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576  ac_cv_have_u_intxx_t="no" 
11577         
11578 fi
11579 rm -f conftest.$ac_objext conftest.$ac_ext
11580
11581 fi
11582 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
11583 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11584 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11585         cat >>confdefs.h <<\_ACEOF
11586 @%:@define HAVE_U_INTXX_T 1
11587 _ACEOF
11588
11589         have_u_intxx_t=1
11590 fi
11591
11592 if test -z "$have_u_intxx_t" ; then
11593     echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
11594 echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11595         cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11598  #include <sys/socket.h> 
11599 #ifdef F77_DUMMY_MAIN
11600 #  ifdef __cplusplus
11601      extern "C"
11602 #  endif
11603    int F77_DUMMY_MAIN() { return 1; }
11604 #endif
11605 int
11606 main ()
11607 {
11608  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615   (eval $ac_compile) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } &&
11619          { ac_try='test -s conftest.$ac_objext'
11620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621   (eval $ac_try) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; }; then
11625   
11626                         cat >>confdefs.h <<\_ACEOF
11627 @%:@define HAVE_U_INTXX_T 1
11628 _ACEOF
11629
11630                         echo "$as_me:$LINENO: result: yes" >&5
11631 echo "${ECHO_T}yes" >&6
11632                 
11633 else
11634   echo "$as_me: failed program was:" >&5
11635 cat conftest.$ac_ext >&5
11636  echo "$as_me:$LINENO: result: no" >&5
11637 echo "${ECHO_T}no" >&6 
11638         
11639 fi
11640 rm -f conftest.$ac_objext conftest.$ac_ext
11641 fi
11642
11643 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
11644 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11645 if test "${ac_cv_have_u_int64_t+set}" = set; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   
11649         cat >conftest.$ac_ext <<_ACEOF
11650 #line $LINENO "configure"
11651 #include "confdefs.h"
11652  #include <sys/types.h> 
11653 #ifdef F77_DUMMY_MAIN
11654 #  ifdef __cplusplus
11655      extern "C"
11656 #  endif
11657    int F77_DUMMY_MAIN() { return 1; }
11658 #endif
11659 int
11660 main ()
11661 {
11662  u_int64_t a; a = 1;
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669   (eval $ac_compile) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -s conftest.$ac_objext'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679    ac_cv_have_u_int64_t="yes" 
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683  ac_cv_have_u_int64_t="no" 
11684         
11685 fi
11686 rm -f conftest.$ac_objext conftest.$ac_ext
11687
11688 fi
11689 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
11690 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11691 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11692         cat >>confdefs.h <<\_ACEOF
11693 @%:@define HAVE_U_INT64_T 1
11694 _ACEOF
11695
11696         have_u_int64_t=1
11697 fi
11698
11699 if test -z "$have_u_int64_t" ; then
11700     echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
11701 echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
11702         cat >conftest.$ac_ext <<_ACEOF
11703 #line $LINENO "configure"
11704 #include "confdefs.h"
11705  #include <sys/bitypes.h> 
11706 #ifdef F77_DUMMY_MAIN
11707 #  ifdef __cplusplus
11708      extern "C"
11709 #  endif
11710    int F77_DUMMY_MAIN() { return 1; }
11711 #endif
11712 int
11713 main ()
11714 {
11715  u_int64_t a; a = 1
11716   ;
11717   return 0;
11718 }
11719 _ACEOF
11720 rm -f conftest.$ac_objext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11722   (eval $ac_compile) 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } &&
11726          { ac_try='test -s conftest.$ac_objext'
11727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728   (eval $ac_try) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; }; then
11732   
11733                         cat >>confdefs.h <<\_ACEOF
11734 @%:@define HAVE_U_INT64_T 1
11735 _ACEOF
11736
11737                         echo "$as_me:$LINENO: result: yes" >&5
11738 echo "${ECHO_T}yes" >&6
11739                 
11740 else
11741   echo "$as_me: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11743  echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6 
11745         
11746 fi
11747 rm -f conftest.$ac_objext conftest.$ac_ext
11748 fi
11749
11750 if test -z "$have_u_intxx_t" ; then
11751         echo "$as_me:$LINENO: checking for uintXX_t types" >&5
11752 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
11753 if test "${ac_cv_have_uintxx_t+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   
11757                 cat >conftest.$ac_ext <<_ACEOF
11758 #line $LINENO "configure"
11759 #include "confdefs.h"
11760
11761 #include <sys/types.h>
11762                         
11763 #ifdef F77_DUMMY_MAIN
11764 #  ifdef __cplusplus
11765      extern "C"
11766 #  endif
11767    int F77_DUMMY_MAIN() { return 1; }
11768 #endif
11769 int
11770 main ()
11771 {
11772  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; 
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11779   (eval $ac_compile) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } &&
11783          { ac_try='test -s conftest.$ac_objext'
11784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785   (eval $ac_try) 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; }; then
11789    ac_cv_have_uintxx_t="yes" 
11790 else
11791   echo "$as_me: failed program was:" >&5
11792 cat conftest.$ac_ext >&5
11793  ac_cv_have_uintxx_t="no" 
11794                 
11795 fi
11796 rm -f conftest.$ac_objext conftest.$ac_ext
11797         
11798 fi
11799 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
11800 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
11801         if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
11802                 cat >>confdefs.h <<\_ACEOF
11803 @%:@define HAVE_UINTXX_T 1
11804 _ACEOF
11805
11806         fi
11807 fi
11808
11809 if test -z "$have_uintxx_t" ; then
11810     echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
11811 echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
11812         cat >conftest.$ac_ext <<_ACEOF
11813 #line $LINENO "configure"
11814 #include "confdefs.h"
11815  #include <stdint.h> 
11816 #ifdef F77_DUMMY_MAIN
11817 #  ifdef __cplusplus
11818      extern "C"
11819 #  endif
11820    int F77_DUMMY_MAIN() { return 1; }
11821 #endif
11822 int
11823 main ()
11824 {
11825  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11826   ;
11827   return 0;
11828 }
11829 _ACEOF
11830 rm -f conftest.$ac_objext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11832   (eval $ac_compile) 2>&5
11833   ac_status=$?
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); } &&
11836          { ac_try='test -s conftest.$ac_objext'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; }; then
11842   
11843                         cat >>confdefs.h <<\_ACEOF
11844 @%:@define HAVE_UINTXX_T 1
11845 _ACEOF
11846
11847                         echo "$as_me:$LINENO: result: yes" >&5
11848 echo "${ECHO_T}yes" >&6
11849                 
11850 else
11851   echo "$as_me: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11853  echo "$as_me:$LINENO: result: no" >&5
11854 echo "${ECHO_T}no" >&6 
11855         
11856 fi
11857 rm -f conftest.$ac_objext conftest.$ac_ext
11858 fi
11859
11860 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
11861            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
11862 then
11863         echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
11864 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
11865         cat >conftest.$ac_ext <<_ACEOF
11866 #line $LINENO "configure"
11867 #include "confdefs.h"
11868
11869 #include <sys/bitypes.h>
11870                 
11871 #ifdef F77_DUMMY_MAIN
11872 #  ifdef __cplusplus
11873      extern "C"
11874 #  endif
11875    int F77_DUMMY_MAIN() { return 1; }
11876 #endif
11877 int
11878 main ()
11879 {
11880
11881                         int8_t a; int16_t b; int32_t c;
11882                         u_int8_t e; u_int16_t f; u_int32_t g;
11883                         a = b = c = e = f = g = 1;
11884                 
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891   (eval $ac_compile) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); } &&
11895          { ac_try='test -s conftest.$ac_objext'
11896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897   (eval $ac_try) 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }; then
11901   
11902                         cat >>confdefs.h <<\_ACEOF
11903 @%:@define HAVE_U_INTXX_T 1
11904 _ACEOF
11905
11906                         cat >>confdefs.h <<\_ACEOF
11907 @%:@define HAVE_INTXX_T 1
11908 _ACEOF
11909
11910                         echo "$as_me:$LINENO: result: yes" >&5
11911 echo "${ECHO_T}yes" >&6
11912                 
11913 else
11914   echo "$as_me: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 echo "$as_me:$LINENO: result: no" >&5
11917 echo "${ECHO_T}no" >&6
11918         
11919 fi
11920 rm -f conftest.$ac_objext conftest.$ac_ext 
11921 fi
11922
11923
11924 echo "$as_me:$LINENO: checking for u_char" >&5
11925 echo $ECHO_N "checking for u_char... $ECHO_C" >&6
11926 if test "${ac_cv_have_u_char+set}" = set; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   
11930         cat >conftest.$ac_ext <<_ACEOF
11931 #line $LINENO "configure"
11932 #include "confdefs.h"
11933
11934 #include <sys/types.h>
11935                 
11936 #ifdef F77_DUMMY_MAIN
11937 #  ifdef __cplusplus
11938      extern "C"
11939 #  endif
11940    int F77_DUMMY_MAIN() { return 1; }
11941 #endif
11942 int
11943 main ()
11944 {
11945  u_char foo; foo = 125; 
11946   ;
11947   return 0;
11948 }
11949 _ACEOF
11950 rm -f conftest.$ac_objext
11951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11952   (eval $ac_compile) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } &&
11956          { ac_try='test -s conftest.$ac_objext'
11957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958   (eval $ac_try) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); }; }; then
11962    ac_cv_have_u_char="yes" 
11963 else
11964   echo "$as_me: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966  ac_cv_have_u_char="no" 
11967         
11968 fi
11969 rm -f conftest.$ac_objext conftest.$ac_ext
11970
11971 fi
11972 echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
11973 echo "${ECHO_T}$ac_cv_have_u_char" >&6
11974 if test "x$ac_cv_have_u_char" = "xyes" ; then
11975         cat >>confdefs.h <<\_ACEOF
11976 @%:@define HAVE_U_CHAR 1
11977 _ACEOF
11978
11979 fi
11980
11981
11982    echo "$as_me:$LINENO: checking for socklen_t" >&5
11983 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11984 if test "${ac_cv_type_socklen_t+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 #include "confdefs.h"
11990 #include <sys/types.h>
11991 #include <sys/socket.h>
11992
11993 #ifdef F77_DUMMY_MAIN
11994 #  ifdef __cplusplus
11995      extern "C"
11996 #  endif
11997    int F77_DUMMY_MAIN() { return 1; }
11998 #endif
11999 int
12000 main ()
12001 {
12002 if ((socklen_t *) 0)
12003   return 0;
12004 if (sizeof (socklen_t))
12005   return 0;
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012   (eval $ac_compile) 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } &&
12016          { ac_try='test -s conftest.$ac_objext'
12017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018   (eval $ac_try) 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); }; }; then
12022   ac_cv_type_socklen_t=yes
12023 else
12024   echo "$as_me: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 ac_cv_type_socklen_t=no
12027 fi
12028 rm -f conftest.$ac_objext conftest.$ac_ext
12029 fi
12030 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12031 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
12032 if test $ac_cv_type_socklen_t = yes; then
12033   :
12034 else
12035   
12036       echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
12037 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
12038       if test "${curl_cv_socklen_t_equiv+set}" = set; then
12039   echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041   
12042          # Systems have either "struct sockaddr *" or
12043          # "void *" as the second argument to getpeername
12044          curl_cv_socklen_t_equiv=
12045          for arg2 in "struct sockaddr" void; do
12046             for t in int size_t unsigned long "unsigned long"; do
12047                cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12049 #include "confdefs.h"
12050
12051                   #include <sys/types.h>
12052                   #include <sys/socket.h>
12053
12054                   int getpeername (int, $arg2 *, $t *);
12055                
12056 #ifdef F77_DUMMY_MAIN
12057 #  ifdef __cplusplus
12058      extern "C"
12059 #  endif
12060    int F77_DUMMY_MAIN() { return 1; }
12061 #endif
12062 int
12063 main ()
12064 {
12065
12066                   $t len;
12067                   getpeername(0,0,&len);
12068                
12069   ;
12070   return 0;
12071 }
12072 _ACEOF
12073 rm -f conftest.$ac_objext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12075   (eval $ac_compile) 2>&5
12076   ac_status=$?
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); } &&
12079          { ac_try='test -s conftest.$ac_objext'
12080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081   (eval $ac_try) 2>&5
12082   ac_status=$?
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); }; }; then
12085   
12086                   curl_cv_socklen_t_equiv="$t"
12087                   break
12088                
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12092 fi
12093 rm -f conftest.$ac_objext conftest.$ac_ext
12094             done
12095          done
12096
12097          if test "x$curl_cv_socklen_t_equiv" = x; then
12098             { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
12099 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12100    { (exit 1); exit 1; }; }
12101          fi
12102       
12103 fi
12104
12105       echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
12106 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12107       
12108 cat >>confdefs.h <<_ACEOF
12109 @%:@define socklen_t $curl_cv_socklen_t_equiv
12110 _ACEOF
12111
12112 fi
12113
12114
12115
12116 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
12117 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12118 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12119   echo $ECHO_N "(cached) $ECHO_C" >&6
12120 else
12121   cat >conftest.$ac_ext <<_ACEOF
12122 #line $LINENO "configure"
12123 #include "confdefs.h"
12124 #include <signal.h>
12125
12126 #ifdef F77_DUMMY_MAIN
12127 #  ifdef __cplusplus
12128      extern "C"
12129 #  endif
12130    int F77_DUMMY_MAIN() { return 1; }
12131 #endif
12132 int
12133 main ()
12134 {
12135 if ((sig_atomic_t *) 0)
12136   return 0;
12137 if (sizeof (sig_atomic_t))
12138   return 0;
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145   (eval $ac_compile) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -s conftest.$ac_objext'
12150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151   (eval $ac_try) 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; }; then
12155   ac_cv_type_sig_atomic_t=yes
12156 else
12157   echo "$as_me: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 ac_cv_type_sig_atomic_t=no
12160 fi
12161 rm -f conftest.$ac_objext conftest.$ac_ext
12162 fi
12163 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12164 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12165 if test $ac_cv_type_sig_atomic_t = yes; then
12166   
12167 cat >>confdefs.h <<_ACEOF
12168 @%:@define HAVE_SIG_ATOMIC_T 1
12169 _ACEOF
12170
12171
12172 fi
12173
12174
12175 echo "$as_me:$LINENO: checking for size_t" >&5
12176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12177 if test "${ac_cv_have_size_t+set}" = set; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180   
12181         cat >conftest.$ac_ext <<_ACEOF
12182 #line $LINENO "configure"
12183 #include "confdefs.h"
12184
12185 #include <sys/types.h>
12186                 
12187 #ifdef F77_DUMMY_MAIN
12188 #  ifdef __cplusplus
12189      extern "C"
12190 #  endif
12191    int F77_DUMMY_MAIN() { return 1; }
12192 #endif
12193 int
12194 main ()
12195 {
12196  size_t foo; foo = 1235; 
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12203   (eval $ac_compile) 2>&5
12204   ac_status=$?
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -s conftest.$ac_objext'
12208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209   (eval $ac_try) 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; }; then
12213    ac_cv_have_size_t="yes" 
12214 else
12215   echo "$as_me: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12217  ac_cv_have_size_t="no" 
12218         
12219 fi
12220 rm -f conftest.$ac_objext conftest.$ac_ext
12221
12222 fi
12223 echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12224 echo "${ECHO_T}$ac_cv_have_size_t" >&6
12225 if test "x$ac_cv_have_size_t" = "xyes" ; then
12226         cat >>confdefs.h <<\_ACEOF
12227 @%:@define HAVE_SIZE_T 1
12228 _ACEOF
12229
12230 fi
12231
12232 echo "$as_me:$LINENO: checking for ssize_t" >&5
12233 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12234 if test "${ac_cv_have_ssize_t+set}" = set; then
12235   echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237   
12238         cat >conftest.$ac_ext <<_ACEOF
12239 #line $LINENO "configure"
12240 #include "confdefs.h"
12241
12242 #include <sys/types.h>
12243                 
12244 #ifdef F77_DUMMY_MAIN
12245 #  ifdef __cplusplus
12246      extern "C"
12247 #  endif
12248    int F77_DUMMY_MAIN() { return 1; }
12249 #endif
12250 int
12251 main ()
12252 {
12253  ssize_t foo; foo = 1235; 
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260   (eval $ac_compile) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); } &&
12264          { ac_try='test -s conftest.$ac_objext'
12265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266   (eval $ac_try) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; }; then
12270    ac_cv_have_ssize_t="yes" 
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12274  ac_cv_have_ssize_t="no" 
12275         
12276 fi
12277 rm -f conftest.$ac_objext conftest.$ac_ext
12278
12279 fi
12280 echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12281 echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12282 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12283         cat >>confdefs.h <<\_ACEOF
12284 @%:@define HAVE_SSIZE_T 1
12285 _ACEOF
12286
12287 fi
12288
12289 echo "$as_me:$LINENO: checking for clock_t" >&5
12290 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12291 if test "${ac_cv_have_clock_t+set}" = set; then
12292   echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294   
12295         cat >conftest.$ac_ext <<_ACEOF
12296 #line $LINENO "configure"
12297 #include "confdefs.h"
12298
12299 #include <time.h>
12300                 
12301 #ifdef F77_DUMMY_MAIN
12302 #  ifdef __cplusplus
12303      extern "C"
12304 #  endif
12305    int F77_DUMMY_MAIN() { return 1; }
12306 #endif
12307 int
12308 main ()
12309 {
12310  clock_t foo; foo = 1235; 
12311   ;
12312   return 0;
12313 }
12314 _ACEOF
12315 rm -f conftest.$ac_objext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12317   (eval $ac_compile) 2>&5
12318   ac_status=$?
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); } &&
12321          { ac_try='test -s conftest.$ac_objext'
12322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323   (eval $ac_try) 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); }; }; then
12327    ac_cv_have_clock_t="yes" 
12328 else
12329   echo "$as_me: failed program was:" >&5
12330 cat conftest.$ac_ext >&5
12331  ac_cv_have_clock_t="no" 
12332         
12333 fi
12334 rm -f conftest.$ac_objext conftest.$ac_ext
12335
12336 fi
12337 echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12338 echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12339 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12340         cat >>confdefs.h <<\_ACEOF
12341 @%:@define HAVE_CLOCK_T 1
12342 _ACEOF
12343
12344 fi
12345
12346 echo "$as_me:$LINENO: checking for sa_family_t" >&5
12347 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12348 if test "${ac_cv_have_sa_family_t+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   
12352         cat >conftest.$ac_ext <<_ACEOF
12353 #line $LINENO "configure"
12354 #include "confdefs.h"
12355
12356 #include <sys/types.h>
12357 #include <sys/socket.h>
12358                 
12359 #ifdef F77_DUMMY_MAIN
12360 #  ifdef __cplusplus
12361      extern "C"
12362 #  endif
12363    int F77_DUMMY_MAIN() { return 1; }
12364 #endif
12365 int
12366 main ()
12367 {
12368  sa_family_t foo; foo = 1235; 
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 rm -f conftest.$ac_objext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12375   (eval $ac_compile) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); } &&
12379          { ac_try='test -s conftest.$ac_objext'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; }; then
12385    ac_cv_have_sa_family_t="yes" 
12386 else
12387   echo "$as_me: failed program was:" >&5
12388 cat conftest.$ac_ext >&5
12389  cat >conftest.$ac_ext <<_ACEOF
12390 #line $LINENO "configure"
12391 #include "confdefs.h"
12392
12393 #include <sys/types.h>
12394 #include <sys/socket.h>
12395 #include <netinet/in.h>
12396                 
12397 #ifdef F77_DUMMY_MAIN
12398 #  ifdef __cplusplus
12399      extern "C"
12400 #  endif
12401    int F77_DUMMY_MAIN() { return 1; }
12402 #endif
12403 int
12404 main ()
12405 {
12406  sa_family_t foo; foo = 1235; 
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413   (eval $ac_compile) 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -s conftest.$ac_objext'
12418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419   (eval $ac_try) 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); }; }; then
12423    ac_cv_have_sa_family_t="yes" 
12424 else
12425   echo "$as_me: failed program was:" >&5
12426 cat conftest.$ac_ext >&5
12427  ac_cv_have_sa_family_t="no" 
12428         
12429 fi
12430 rm -f conftest.$ac_objext conftest.$ac_ext
12431         
12432 fi
12433 rm -f conftest.$ac_objext conftest.$ac_ext
12434
12435 fi
12436 echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
12437 echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12438 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12439         cat >>confdefs.h <<\_ACEOF
12440 @%:@define HAVE_SA_FAMILY_T 1
12441 _ACEOF
12442
12443 fi
12444
12445 echo "$as_me:$LINENO: checking for pid_t" >&5
12446 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12447 if test "${ac_cv_have_pid_t+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   
12451         cat >conftest.$ac_ext <<_ACEOF
12452 #line $LINENO "configure"
12453 #include "confdefs.h"
12454
12455 #include <sys/types.h>
12456                 
12457 #ifdef F77_DUMMY_MAIN
12458 #  ifdef __cplusplus
12459      extern "C"
12460 #  endif
12461    int F77_DUMMY_MAIN() { return 1; }
12462 #endif
12463 int
12464 main ()
12465 {
12466  pid_t foo; foo = 1235; 
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 rm -f conftest.$ac_objext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12473   (eval $ac_compile) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } &&
12477          { ac_try='test -s conftest.$ac_objext'
12478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479   (eval $ac_try) 2>&5
12480   ac_status=$?
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); }; }; then
12483    ac_cv_have_pid_t="yes" 
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 cat conftest.$ac_ext >&5
12487  ac_cv_have_pid_t="no" 
12488         
12489 fi
12490 rm -f conftest.$ac_objext conftest.$ac_ext
12491
12492 fi
12493 echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
12494 echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12495 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12496         cat >>confdefs.h <<\_ACEOF
12497 @%:@define HAVE_PID_T 1
12498 _ACEOF
12499
12500 fi
12501
12502 echo "$as_me:$LINENO: checking for mode_t" >&5
12503 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12504 if test "${ac_cv_have_mode_t+set}" = set; then
12505   echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507   
12508         cat >conftest.$ac_ext <<_ACEOF
12509 #line $LINENO "configure"
12510 #include "confdefs.h"
12511
12512 #include <sys/types.h>
12513                 
12514 #ifdef F77_DUMMY_MAIN
12515 #  ifdef __cplusplus
12516      extern "C"
12517 #  endif
12518    int F77_DUMMY_MAIN() { return 1; }
12519 #endif
12520 int
12521 main ()
12522 {
12523  mode_t foo; foo = 1235; 
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530   (eval $ac_compile) 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); } &&
12534          { ac_try='test -s conftest.$ac_objext'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; }; then
12540    ac_cv_have_mode_t="yes" 
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12544  ac_cv_have_mode_t="no" 
12545         
12546 fi
12547 rm -f conftest.$ac_objext conftest.$ac_ext
12548
12549 fi
12550 echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
12551 echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12552 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12553         cat >>confdefs.h <<\_ACEOF
12554 @%:@define HAVE_MODE_T 1
12555 _ACEOF
12556
12557 fi
12558
12559
12560 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12561 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12562 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12563   echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565   
12566         cat >conftest.$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12568 #include "confdefs.h"
12569
12570 #include <sys/types.h>
12571 #include <sys/socket.h>
12572                 
12573 #ifdef F77_DUMMY_MAIN
12574 #  ifdef __cplusplus
12575      extern "C"
12576 #  endif
12577    int F77_DUMMY_MAIN() { return 1; }
12578 #endif
12579 int
12580 main ()
12581 {
12582  struct sockaddr_storage s; 
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589   (eval $ac_compile) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); } &&
12593          { ac_try='test -s conftest.$ac_objext'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; }; then
12599    ac_cv_have_struct_sockaddr_storage="yes" 
12600 else
12601   echo "$as_me: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12603  ac_cv_have_struct_sockaddr_storage="no" 
12604         
12605 fi
12606 rm -f conftest.$ac_objext conftest.$ac_ext
12607
12608 fi
12609 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
12610 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12611 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12612         cat >>confdefs.h <<\_ACEOF
12613 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
12614 _ACEOF
12615
12616 fi
12617
12618 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
12619 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12620 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12621   echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623   
12624         cat >conftest.$ac_ext <<_ACEOF
12625 #line $LINENO "configure"
12626 #include "confdefs.h"
12627
12628 #include <sys/types.h>
12629 #include <netinet/in.h>
12630                 
12631 #ifdef F77_DUMMY_MAIN
12632 #  ifdef __cplusplus
12633      extern "C"
12634 #  endif
12635    int F77_DUMMY_MAIN() { return 1; }
12636 #endif
12637 int
12638 main ()
12639 {
12640  struct sockaddr_in6 s; s.sin6_family = 0; 
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 rm -f conftest.$ac_objext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647   (eval $ac_compile) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); } &&
12651          { ac_try='test -s conftest.$ac_objext'
12652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653   (eval $ac_try) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); }; }; then
12657    ac_cv_have_struct_sockaddr_in6="yes" 
12658 else
12659   echo "$as_me: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661  ac_cv_have_struct_sockaddr_in6="no" 
12662         
12663 fi
12664 rm -f conftest.$ac_objext conftest.$ac_ext
12665
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
12668 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12669 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12670         cat >>confdefs.h <<\_ACEOF
12671 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
12672 _ACEOF
12673
12674 fi
12675
12676 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
12677 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12678 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12679   echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681   
12682         cat >conftest.$ac_ext <<_ACEOF
12683 #line $LINENO "configure"
12684 #include "confdefs.h"
12685
12686 #include <sys/types.h>
12687 #include <netinet/in.h>
12688                 
12689 #ifdef F77_DUMMY_MAIN
12690 #  ifdef __cplusplus
12691      extern "C"
12692 #  endif
12693    int F77_DUMMY_MAIN() { return 1; }
12694 #endif
12695 int
12696 main ()
12697 {
12698  struct in6_addr s; s.s6_addr[0] = 0; 
12699   ;
12700   return 0;
12701 }
12702 _ACEOF
12703 rm -f conftest.$ac_objext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705   (eval $ac_compile) 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } &&
12709          { ac_try='test -s conftest.$ac_objext'
12710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711   (eval $ac_try) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; }; then
12715    ac_cv_have_struct_in6_addr="yes" 
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 cat conftest.$ac_ext >&5
12719  ac_cv_have_struct_in6_addr="no" 
12720         
12721 fi
12722 rm -f conftest.$ac_objext conftest.$ac_ext
12723
12724 fi
12725 echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
12726 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
12727 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12728         cat >>confdefs.h <<\_ACEOF
12729 @%:@define HAVE_STRUCT_IN6_ADDR 1
12730 _ACEOF
12731
12732 fi
12733
12734 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12735 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12736 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
12737   echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739   
12740         cat >conftest.$ac_ext <<_ACEOF
12741 #line $LINENO "configure"
12742 #include "confdefs.h"
12743
12744 #include <sys/types.h>
12745 #include <sys/socket.h>
12746 #include <netdb.h>
12747                 
12748 #ifdef F77_DUMMY_MAIN
12749 #  ifdef __cplusplus
12750      extern "C"
12751 #  endif
12752    int F77_DUMMY_MAIN() { return 1; }
12753 #endif
12754 int
12755 main ()
12756 {
12757  struct addrinfo s; s.ai_flags = AI_PASSIVE; 
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764   (eval $ac_compile) 2>&5
12765   ac_status=$?
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); } &&
12768          { ac_try='test -s conftest.$ac_objext'
12769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770   (eval $ac_try) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; }; then
12774    ac_cv_have_struct_addrinfo="yes" 
12775 else
12776   echo "$as_me: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12778  ac_cv_have_struct_addrinfo="no" 
12779         
12780 fi
12781 rm -f conftest.$ac_objext conftest.$ac_ext
12782
12783 fi
12784 echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
12785 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
12786 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12787         cat >>confdefs.h <<\_ACEOF
12788 @%:@define HAVE_STRUCT_ADDRINFO 1
12789 _ACEOF
12790
12791 fi
12792
12793 echo "$as_me:$LINENO: checking for struct timeval" >&5
12794 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
12795 if test "${ac_cv_have_struct_timeval+set}" = set; then
12796   echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798   
12799         cat >conftest.$ac_ext <<_ACEOF
12800 #line $LINENO "configure"
12801 #include "confdefs.h"
12802  #include <sys/time.h> 
12803 #ifdef F77_DUMMY_MAIN
12804 #  ifdef __cplusplus
12805      extern "C"
12806 #  endif
12807    int F77_DUMMY_MAIN() { return 1; }
12808 #endif
12809 int
12810 main ()
12811 {
12812  struct timeval tv; tv.tv_sec = 1;
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 rm -f conftest.$ac_objext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819   (eval $ac_compile) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } &&
12823          { ac_try='test -s conftest.$ac_objext'
12824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825   (eval $ac_try) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; }; then
12829    ac_cv_have_struct_timeval="yes" 
12830 else
12831   echo "$as_me: failed program was:" >&5
12832 cat conftest.$ac_ext >&5
12833  ac_cv_have_struct_timeval="no" 
12834         
12835 fi
12836 rm -f conftest.$ac_objext conftest.$ac_ext
12837
12838 fi
12839 echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
12840 echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
12841 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12842         cat >>confdefs.h <<\_ACEOF
12843 @%:@define HAVE_STRUCT_TIMEVAL 1
12844 _ACEOF
12845
12846         have_struct_timeval=1
12847 fi
12848
12849 # If we don't have int64_t then we can't compile sftp-server.  So don't
12850 # even attempt to do it. 
12851 if test "x$ac_cv_have_int64_t" = "xno" -a \
12852         "x$ac_cv_sizeof_long_int" != "x8" -a \
12853         "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12854         NO_SFTP='#'
12855 else
12856         if test "$cross_compiling" = yes; then
12857   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12858 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12859    { (exit 1); exit 1; }; }
12860 else
12861   cat >conftest.$ac_ext <<_ACEOF
12862 #line $LINENO "configure"
12863 #include "confdefs.h"
12864
12865 #include <stdio.h>
12866 #include <string.h>
12867 #ifdef HAVE_SNPRINTF
12868 main()
12869 {
12870         char buf[50];
12871         char expected_out[50];
12872         int mazsize = 50 ;
12873 #if (SIZEOF_LONG_INT == 8)
12874         long int num = 0x7fffffffffffffff;
12875 #else
12876         long long num = 0x7fffffffffffffffll;
12877 #endif
12878         strcpy(expected_out, "9223372036854775807");
12879         snprintf(buf, mazsize, "%lld", num);
12880         if(strcmp(buf, expected_out) != 0)
12881                 exit(1);
12882         exit(0);
12883 }
12884 #else
12885 main() { exit(0); }
12886 #endif
12887                 
12888 _ACEOF
12889 rm -f conftest$ac_exeext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891   (eval $ac_link) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896   (eval $ac_try) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; }; then
12900    true 
12901 else
12902   echo "$as_me: program exited with status $ac_status" >&5
12903 echo "$as_me: failed program was:" >&5
12904 cat conftest.$ac_ext >&5
12905 ( exit $ac_status )
12906  cat >>confdefs.h <<\_ACEOF
12907 @%:@define BROKEN_SNPRINTF 1
12908 _ACEOF
12909  
12910         
12911 fi
12912 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12913 fi
12914 fi
12915
12916
12917
12918 # look for field 'ut_host' in header 'utmp.h'
12919                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12920                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12921         echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
12922 echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
12923         if eval "test \"\${$ossh_varname+set}\" = set"; then
12924   echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926   
12927                 cat >conftest.$ac_ext <<_ACEOF
12928 #line $LINENO "configure"
12929 #include "confdefs.h"
12930 #include <utmp.h>
12931
12932 _ACEOF
12933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12934   egrep "ut_host" >/dev/null 2>&1; then
12935                         eval "$ossh_varname=yes"                
12936 else
12937                         eval "$ossh_varname=no"                 
12938 fi
12939 rm -f conftest*
12940         
12941 fi
12942
12943         ossh_result=`eval 'echo $'"$ossh_varname"`
12944         if test -n "`echo $ossh_varname`"; then
12945                 echo "$as_me:$LINENO: result: $ossh_result" >&5
12946 echo "${ECHO_T}$ossh_result" >&6
12947                 if test "x$ossh_result" = "xyes"; then
12948                         cat >>confdefs.h <<\_ACEOF
12949 @%:@define HAVE_HOST_IN_UTMP 1
12950 _ACEOF
12951
12952                 fi
12953         else
12954                 echo "$as_me:$LINENO: result: no" >&5
12955 echo "${ECHO_T}no" >&6
12956         fi
12957
12958
12959 # look for field 'ut_host' in header 'utmpx.h'
12960                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12961                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12962         echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
12963 echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
12964         if eval "test \"\${$ossh_varname+set}\" = set"; then
12965   echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967   
12968                 cat >conftest.$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12970 #include "confdefs.h"
12971 #include <utmpx.h>
12972
12973 _ACEOF
12974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12975   egrep "ut_host" >/dev/null 2>&1; then
12976                         eval "$ossh_varname=yes"                
12977 else
12978                         eval "$ossh_varname=no"                 
12979 fi
12980 rm -f conftest*
12981         
12982 fi
12983
12984         ossh_result=`eval 'echo $'"$ossh_varname"`
12985         if test -n "`echo $ossh_varname`"; then
12986                 echo "$as_me:$LINENO: result: $ossh_result" >&5
12987 echo "${ECHO_T}$ossh_result" >&6
12988                 if test "x$ossh_result" = "xyes"; then
12989                         cat >>confdefs.h <<\_ACEOF
12990 @%:@define HAVE_HOST_IN_UTMPX 1
12991 _ACEOF
12992
12993                 fi
12994         else
12995                 echo "$as_me:$LINENO: result: no" >&5
12996 echo "${ECHO_T}no" >&6
12997         fi
12998
12999
13000 # look for field 'syslen' in header 'utmpx.h'
13001                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13002                 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13003         echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
13004 echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
13005         if eval "test \"\${$ossh_varname+set}\" = set"; then
13006   echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008   
13009                 cat >conftest.$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13011 #include "confdefs.h"
13012 #include <utmpx.h>
13013
13014 _ACEOF
13015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13016   egrep "syslen" >/dev/null 2>&1; then
13017                         eval "$ossh_varname=yes"                
13018 else
13019                         eval "$ossh_varname=no"                 
13020 fi
13021 rm -f conftest*
13022         
13023 fi
13024
13025         ossh_result=`eval 'echo $'"$ossh_varname"`
13026         if test -n "`echo $ossh_varname`"; then
13027                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13028 echo "${ECHO_T}$ossh_result" >&6
13029                 if test "x$ossh_result" = "xyes"; then
13030                         cat >>confdefs.h <<\_ACEOF
13031 @%:@define HAVE_SYSLEN_IN_UTMPX 1
13032 _ACEOF
13033
13034                 fi
13035         else
13036                 echo "$as_me:$LINENO: result: no" >&5
13037 echo "${ECHO_T}no" >&6
13038         fi
13039
13040
13041 # look for field 'ut_pid' in header 'utmp.h'
13042                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13043                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13044         echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
13045 echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
13046         if eval "test \"\${$ossh_varname+set}\" = set"; then
13047   echo $ECHO_N "(cached) $ECHO_C" >&6
13048 else
13049   
13050                 cat >conftest.$ac_ext <<_ACEOF
13051 #line $LINENO "configure"
13052 #include "confdefs.h"
13053 #include <utmp.h>
13054
13055 _ACEOF
13056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13057   egrep "ut_pid" >/dev/null 2>&1; then
13058                         eval "$ossh_varname=yes"                
13059 else
13060                         eval "$ossh_varname=no"                 
13061 fi
13062 rm -f conftest*
13063         
13064 fi
13065
13066         ossh_result=`eval 'echo $'"$ossh_varname"`
13067         if test -n "`echo $ossh_varname`"; then
13068                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13069 echo "${ECHO_T}$ossh_result" >&6
13070                 if test "x$ossh_result" = "xyes"; then
13071                         cat >>confdefs.h <<\_ACEOF
13072 @%:@define HAVE_PID_IN_UTMP 1
13073 _ACEOF
13074
13075                 fi
13076         else
13077                 echo "$as_me:$LINENO: result: no" >&5
13078 echo "${ECHO_T}no" >&6
13079         fi
13080
13081
13082 # look for field 'ut_type' in header 'utmp.h'
13083                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13084                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13085         echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
13086 echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
13087         if eval "test \"\${$ossh_varname+set}\" = set"; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   
13091                 cat >conftest.$ac_ext <<_ACEOF
13092 #line $LINENO "configure"
13093 #include "confdefs.h"
13094 #include <utmp.h>
13095
13096 _ACEOF
13097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13098   egrep "ut_type" >/dev/null 2>&1; then
13099                         eval "$ossh_varname=yes"                
13100 else
13101                         eval "$ossh_varname=no"                 
13102 fi
13103 rm -f conftest*
13104         
13105 fi
13106
13107         ossh_result=`eval 'echo $'"$ossh_varname"`
13108         if test -n "`echo $ossh_varname`"; then
13109                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13110 echo "${ECHO_T}$ossh_result" >&6
13111                 if test "x$ossh_result" = "xyes"; then
13112                         cat >>confdefs.h <<\_ACEOF
13113 @%:@define HAVE_TYPE_IN_UTMP 1
13114 _ACEOF
13115
13116                 fi
13117         else
13118                 echo "$as_me:$LINENO: result: no" >&5
13119 echo "${ECHO_T}no" >&6
13120         fi
13121
13122
13123 # look for field 'ut_type' in header 'utmpx.h'
13124                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13125                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13126         echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
13127 echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
13128         if eval "test \"\${$ossh_varname+set}\" = set"; then
13129   echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131   
13132                 cat >conftest.$ac_ext <<_ACEOF
13133 #line $LINENO "configure"
13134 #include "confdefs.h"
13135 #include <utmpx.h>
13136
13137 _ACEOF
13138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13139   egrep "ut_type" >/dev/null 2>&1; then
13140                         eval "$ossh_varname=yes"                
13141 else
13142                         eval "$ossh_varname=no"                 
13143 fi
13144 rm -f conftest*
13145         
13146 fi
13147
13148         ossh_result=`eval 'echo $'"$ossh_varname"`
13149         if test -n "`echo $ossh_varname`"; then
13150                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13151 echo "${ECHO_T}$ossh_result" >&6
13152                 if test "x$ossh_result" = "xyes"; then
13153                         cat >>confdefs.h <<\_ACEOF
13154 @%:@define HAVE_TYPE_IN_UTMPX 1
13155 _ACEOF
13156
13157                 fi
13158         else
13159                 echo "$as_me:$LINENO: result: no" >&5
13160 echo "${ECHO_T}no" >&6
13161         fi
13162
13163
13164 # look for field 'ut_tv' in header 'utmp.h'
13165                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13166                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13167         echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
13168 echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13169         if eval "test \"\${$ossh_varname+set}\" = set"; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   
13173                 cat >conftest.$ac_ext <<_ACEOF
13174 #line $LINENO "configure"
13175 #include "confdefs.h"
13176 #include <utmp.h>
13177
13178 _ACEOF
13179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13180   egrep "ut_tv" >/dev/null 2>&1; then
13181                         eval "$ossh_varname=yes"                
13182 else
13183                         eval "$ossh_varname=no"                 
13184 fi
13185 rm -f conftest*
13186         
13187 fi
13188
13189         ossh_result=`eval 'echo $'"$ossh_varname"`
13190         if test -n "`echo $ossh_varname`"; then
13191                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13192 echo "${ECHO_T}$ossh_result" >&6
13193                 if test "x$ossh_result" = "xyes"; then
13194                         cat >>confdefs.h <<\_ACEOF
13195 @%:@define HAVE_TV_IN_UTMP 1
13196 _ACEOF
13197
13198                 fi
13199         else
13200                 echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6
13202         fi
13203
13204
13205 # look for field 'ut_id' in header 'utmp.h'
13206                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13207                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13208         echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
13209 echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13210         if eval "test \"\${$ossh_varname+set}\" = set"; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213   
13214                 cat >conftest.$ac_ext <<_ACEOF
13215 #line $LINENO "configure"
13216 #include "confdefs.h"
13217 #include <utmp.h>
13218
13219 _ACEOF
13220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13221   egrep "ut_id" >/dev/null 2>&1; then
13222                         eval "$ossh_varname=yes"                
13223 else
13224                         eval "$ossh_varname=no"                 
13225 fi
13226 rm -f conftest*
13227         
13228 fi
13229
13230         ossh_result=`eval 'echo $'"$ossh_varname"`
13231         if test -n "`echo $ossh_varname`"; then
13232                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13233 echo "${ECHO_T}$ossh_result" >&6
13234                 if test "x$ossh_result" = "xyes"; then
13235                         cat >>confdefs.h <<\_ACEOF
13236 @%:@define HAVE_ID_IN_UTMP 1
13237 _ACEOF
13238
13239                 fi
13240         else
13241                 echo "$as_me:$LINENO: result: no" >&5
13242 echo "${ECHO_T}no" >&6
13243         fi
13244
13245
13246 # look for field 'ut_id' in header 'utmpx.h'
13247                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13248                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13249         echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
13250 echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13251         if eval "test \"\${$ossh_varname+set}\" = set"; then
13252   echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254   
13255                 cat >conftest.$ac_ext <<_ACEOF
13256 #line $LINENO "configure"
13257 #include "confdefs.h"
13258 #include <utmpx.h>
13259
13260 _ACEOF
13261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13262   egrep "ut_id" >/dev/null 2>&1; then
13263                         eval "$ossh_varname=yes"                
13264 else
13265                         eval "$ossh_varname=no"                 
13266 fi
13267 rm -f conftest*
13268         
13269 fi
13270
13271         ossh_result=`eval 'echo $'"$ossh_varname"`
13272         if test -n "`echo $ossh_varname`"; then
13273                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13274 echo "${ECHO_T}$ossh_result" >&6
13275                 if test "x$ossh_result" = "xyes"; then
13276                         cat >>confdefs.h <<\_ACEOF
13277 @%:@define HAVE_ID_IN_UTMPX 1
13278 _ACEOF
13279
13280                 fi
13281         else
13282                 echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6
13284         fi
13285
13286
13287 # look for field 'ut_addr' in header 'utmp.h'
13288                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13289                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13290         echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
13291 echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13292         if eval "test \"\${$ossh_varname+set}\" = set"; then
13293   echo $ECHO_N "(cached) $ECHO_C" >&6
13294 else
13295   
13296                 cat >conftest.$ac_ext <<_ACEOF
13297 #line $LINENO "configure"
13298 #include "confdefs.h"
13299 #include <utmp.h>
13300
13301 _ACEOF
13302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13303   egrep "ut_addr" >/dev/null 2>&1; then
13304                         eval "$ossh_varname=yes"                
13305 else
13306                         eval "$ossh_varname=no"                 
13307 fi
13308 rm -f conftest*
13309         
13310 fi
13311
13312         ossh_result=`eval 'echo $'"$ossh_varname"`
13313         if test -n "`echo $ossh_varname`"; then
13314                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13315 echo "${ECHO_T}$ossh_result" >&6
13316                 if test "x$ossh_result" = "xyes"; then
13317                         cat >>confdefs.h <<\_ACEOF
13318 @%:@define HAVE_ADDR_IN_UTMP 1
13319 _ACEOF
13320
13321                 fi
13322         else
13323                 echo "$as_me:$LINENO: result: no" >&5
13324 echo "${ECHO_T}no" >&6
13325         fi
13326
13327
13328 # look for field 'ut_addr' in header 'utmpx.h'
13329                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13330                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13331         echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
13332 echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13333         if eval "test \"\${$ossh_varname+set}\" = set"; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336   
13337                 cat >conftest.$ac_ext <<_ACEOF
13338 #line $LINENO "configure"
13339 #include "confdefs.h"
13340 #include <utmpx.h>
13341
13342 _ACEOF
13343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13344   egrep "ut_addr" >/dev/null 2>&1; then
13345                         eval "$ossh_varname=yes"                
13346 else
13347                         eval "$ossh_varname=no"                 
13348 fi
13349 rm -f conftest*
13350         
13351 fi
13352
13353         ossh_result=`eval 'echo $'"$ossh_varname"`
13354         if test -n "`echo $ossh_varname`"; then
13355                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13356 echo "${ECHO_T}$ossh_result" >&6
13357                 if test "x$ossh_result" = "xyes"; then
13358                         cat >>confdefs.h <<\_ACEOF
13359 @%:@define HAVE_ADDR_IN_UTMPX 1
13360 _ACEOF
13361
13362                 fi
13363         else
13364                 echo "$as_me:$LINENO: result: no" >&5
13365 echo "${ECHO_T}no" >&6
13366         fi
13367
13368
13369 # look for field 'ut_addr_v6' in header 'utmp.h'
13370                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13371                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13372         echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
13373 echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13374         if eval "test \"\${$ossh_varname+set}\" = set"; then
13375   echo $ECHO_N "(cached) $ECHO_C" >&6
13376 else
13377   
13378                 cat >conftest.$ac_ext <<_ACEOF
13379 #line $LINENO "configure"
13380 #include "confdefs.h"
13381 #include <utmp.h>
13382
13383 _ACEOF
13384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13385   egrep "ut_addr_v6" >/dev/null 2>&1; then
13386                         eval "$ossh_varname=yes"                
13387 else
13388                         eval "$ossh_varname=no"                 
13389 fi
13390 rm -f conftest*
13391         
13392 fi
13393
13394         ossh_result=`eval 'echo $'"$ossh_varname"`
13395         if test -n "`echo $ossh_varname`"; then
13396                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13397 echo "${ECHO_T}$ossh_result" >&6
13398                 if test "x$ossh_result" = "xyes"; then
13399                         cat >>confdefs.h <<\_ACEOF
13400 @%:@define HAVE_ADDR_V6_IN_UTMP 1
13401 _ACEOF
13402
13403                 fi
13404         else
13405                 echo "$as_me:$LINENO: result: no" >&5
13406 echo "${ECHO_T}no" >&6
13407         fi
13408
13409
13410 # look for field 'ut_addr_v6' in header 'utmpx.h'
13411                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13412                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13413         echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
13414 echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13415         if eval "test \"\${$ossh_varname+set}\" = set"; then
13416   echo $ECHO_N "(cached) $ECHO_C" >&6
13417 else
13418   
13419                 cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13421 #include "confdefs.h"
13422 #include <utmpx.h>
13423
13424 _ACEOF
13425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13426   egrep "ut_addr_v6" >/dev/null 2>&1; then
13427                         eval "$ossh_varname=yes"                
13428 else
13429                         eval "$ossh_varname=no"                 
13430 fi
13431 rm -f conftest*
13432         
13433 fi
13434
13435         ossh_result=`eval 'echo $'"$ossh_varname"`
13436         if test -n "`echo $ossh_varname`"; then
13437                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13438 echo "${ECHO_T}$ossh_result" >&6
13439                 if test "x$ossh_result" = "xyes"; then
13440                         cat >>confdefs.h <<\_ACEOF
13441 @%:@define HAVE_ADDR_V6_IN_UTMPX 1
13442 _ACEOF
13443
13444                 fi
13445         else
13446                 echo "$as_me:$LINENO: result: no" >&5
13447 echo "${ECHO_T}no" >&6
13448         fi
13449
13450
13451 # look for field 'ut_exit' in header 'utmp.h'
13452                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13453                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13454         echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
13455 echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13456         if eval "test \"\${$ossh_varname+set}\" = set"; then
13457   echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459   
13460                 cat >conftest.$ac_ext <<_ACEOF
13461 #line $LINENO "configure"
13462 #include "confdefs.h"
13463 #include <utmp.h>
13464
13465 _ACEOF
13466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13467   egrep "ut_exit" >/dev/null 2>&1; then
13468                         eval "$ossh_varname=yes"                
13469 else
13470                         eval "$ossh_varname=no"                 
13471 fi
13472 rm -f conftest*
13473         
13474 fi
13475
13476         ossh_result=`eval 'echo $'"$ossh_varname"`
13477         if test -n "`echo $ossh_varname`"; then
13478                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13479 echo "${ECHO_T}$ossh_result" >&6
13480                 if test "x$ossh_result" = "xyes"; then
13481                         cat >>confdefs.h <<\_ACEOF
13482 @%:@define HAVE_EXIT_IN_UTMP 1
13483 _ACEOF
13484
13485                 fi
13486         else
13487                 echo "$as_me:$LINENO: result: no" >&5
13488 echo "${ECHO_T}no" >&6
13489         fi
13490
13491
13492 # look for field 'ut_time' in header 'utmp.h'
13493                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13494                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13495         echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
13496 echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13497         if eval "test \"\${$ossh_varname+set}\" = set"; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500   
13501                 cat >conftest.$ac_ext <<_ACEOF
13502 #line $LINENO "configure"
13503 #include "confdefs.h"
13504 #include <utmp.h>
13505
13506 _ACEOF
13507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13508   egrep "ut_time" >/dev/null 2>&1; then
13509                         eval "$ossh_varname=yes"                
13510 else
13511                         eval "$ossh_varname=no"                 
13512 fi
13513 rm -f conftest*
13514         
13515 fi
13516
13517         ossh_result=`eval 'echo $'"$ossh_varname"`
13518         if test -n "`echo $ossh_varname`"; then
13519                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13520 echo "${ECHO_T}$ossh_result" >&6
13521                 if test "x$ossh_result" = "xyes"; then
13522                         cat >>confdefs.h <<\_ACEOF
13523 @%:@define HAVE_TIME_IN_UTMP 1
13524 _ACEOF
13525
13526                 fi
13527         else
13528                 echo "$as_me:$LINENO: result: no" >&5
13529 echo "${ECHO_T}no" >&6
13530         fi
13531
13532
13533 # look for field 'ut_time' in header 'utmpx.h'
13534                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13535                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13536         echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
13537 echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13538         if eval "test \"\${$ossh_varname+set}\" = set"; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541   
13542                 cat >conftest.$ac_ext <<_ACEOF
13543 #line $LINENO "configure"
13544 #include "confdefs.h"
13545 #include <utmpx.h>
13546
13547 _ACEOF
13548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13549   egrep "ut_time" >/dev/null 2>&1; then
13550                         eval "$ossh_varname=yes"                
13551 else
13552                         eval "$ossh_varname=no"                 
13553 fi
13554 rm -f conftest*
13555         
13556 fi
13557
13558         ossh_result=`eval 'echo $'"$ossh_varname"`
13559         if test -n "`echo $ossh_varname`"; then
13560                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13561 echo "${ECHO_T}$ossh_result" >&6
13562                 if test "x$ossh_result" = "xyes"; then
13563                         cat >>confdefs.h <<\_ACEOF
13564 @%:@define HAVE_TIME_IN_UTMPX 1
13565 _ACEOF
13566
13567                 fi
13568         else
13569                 echo "$as_me:$LINENO: result: no" >&5
13570 echo "${ECHO_T}no" >&6
13571         fi
13572
13573
13574 # look for field 'ut_tv' in header 'utmpx.h'
13575                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13576                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13577         echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
13578 echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13579         if eval "test \"\${$ossh_varname+set}\" = set"; then
13580   echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582   
13583                 cat >conftest.$ac_ext <<_ACEOF
13584 #line $LINENO "configure"
13585 #include "confdefs.h"
13586 #include <utmpx.h>
13587
13588 _ACEOF
13589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13590   egrep "ut_tv" >/dev/null 2>&1; then
13591                         eval "$ossh_varname=yes"                
13592 else
13593                         eval "$ossh_varname=no"                 
13594 fi
13595 rm -f conftest*
13596         
13597 fi
13598
13599         ossh_result=`eval 'echo $'"$ossh_varname"`
13600         if test -n "`echo $ossh_varname`"; then
13601                 echo "$as_me:$LINENO: result: $ossh_result" >&5
13602 echo "${ECHO_T}$ossh_result" >&6
13603                 if test "x$ossh_result" = "xyes"; then
13604                         cat >>confdefs.h <<\_ACEOF
13605 @%:@define HAVE_TV_IN_UTMPX 1
13606 _ACEOF
13607
13608                 fi
13609         else
13610                 echo "$as_me:$LINENO: result: no" >&5
13611 echo "${ECHO_T}no" >&6
13612         fi
13613
13614
13615 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13616 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13617 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13618   echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620   cat >conftest.$ac_ext <<_ACEOF
13621 #line $LINENO "configure"
13622 #include "confdefs.h"
13623 $ac_includes_default
13624 #ifdef F77_DUMMY_MAIN
13625 #  ifdef __cplusplus
13626      extern "C"
13627 #  endif
13628    int F77_DUMMY_MAIN() { return 1; }
13629 #endif
13630 int
13631 main ()
13632 {
13633 static struct stat ac_aggr;
13634 if (ac_aggr.st_blksize)
13635 return 0;
13636   ;
13637   return 0;
13638 }
13639 _ACEOF
13640 rm -f conftest.$ac_objext
13641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13642   (eval $ac_compile) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); } &&
13646          { ac_try='test -s conftest.$ac_objext'
13647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648   (eval $ac_try) 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); }; }; then
13652   ac_cv_member_struct_stat_st_blksize=yes
13653 else
13654   echo "$as_me: failed program was:" >&5
13655 cat conftest.$ac_ext >&5
13656 ac_cv_member_struct_stat_st_blksize=no
13657 fi
13658 rm -f conftest.$ac_objext conftest.$ac_ext
13659 fi
13660 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13661 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13662 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13663   
13664 cat >>confdefs.h <<_ACEOF
13665 @%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13666 _ACEOF
13667
13668
13669 fi
13670
13671
13672 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13673 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13674 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677   
13678         cat >conftest.$ac_ext <<_ACEOF
13679 #line $LINENO "configure"
13680 #include "confdefs.h"
13681
13682 #include <sys/types.h>
13683 #include <sys/socket.h>
13684                 
13685 #ifdef F77_DUMMY_MAIN
13686 #  ifdef __cplusplus
13687      extern "C"
13688 #  endif
13689    int F77_DUMMY_MAIN() { return 1; }
13690 #endif
13691 int
13692 main ()
13693 {
13694  struct sockaddr_storage s; s.ss_family = 1; 
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701   (eval $ac_compile) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); } &&
13705          { ac_try='test -s conftest.$ac_objext'
13706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707   (eval $ac_try) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; }; then
13711    ac_cv_have_ss_family_in_struct_ss="yes" 
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715  ac_cv_have_ss_family_in_struct_ss="no" 
13716 fi
13717 rm -f conftest.$ac_objext conftest.$ac_ext
13718
13719 fi
13720 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13721 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
13722 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13723         cat >>confdefs.h <<\_ACEOF
13724 @%:@define HAVE_SS_FAMILY_IN_SS 1
13725 _ACEOF
13726
13727 fi
13728
13729 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
13730 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13731 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   
13735         cat >conftest.$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13737 #include "confdefs.h"
13738
13739 #include <sys/types.h>
13740 #include <sys/socket.h>
13741                 
13742 #ifdef F77_DUMMY_MAIN
13743 #  ifdef __cplusplus
13744      extern "C"
13745 #  endif
13746    int F77_DUMMY_MAIN() { return 1; }
13747 #endif
13748 int
13749 main ()
13750 {
13751  struct sockaddr_storage s; s.__ss_family = 1; 
13752   ;
13753   return 0;
13754 }
13755 _ACEOF
13756 rm -f conftest.$ac_objext
13757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13758   (eval $ac_compile) 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } &&
13762          { ac_try='test -s conftest.$ac_objext'
13763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764   (eval $ac_try) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }; }; then
13768    ac_cv_have___ss_family_in_struct_ss="yes" 
13769 else
13770   echo "$as_me: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772  ac_cv_have___ss_family_in_struct_ss="no" 
13773         
13774 fi
13775 rm -f conftest.$ac_objext conftest.$ac_ext
13776
13777 fi
13778 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13779 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
13780 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13781         cat >>confdefs.h <<\_ACEOF
13782 @%:@define HAVE___SS_FAMILY_IN_SS 1
13783 _ACEOF
13784
13785 fi
13786
13787 echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
13788 echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
13789 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
13790   echo $ECHO_N "(cached) $ECHO_C" >&6
13791 else
13792   
13793         cat >conftest.$ac_ext <<_ACEOF
13794 #line $LINENO "configure"
13795 #include "confdefs.h"
13796
13797 #include <pwd.h>
13798                 
13799 #ifdef F77_DUMMY_MAIN
13800 #  ifdef __cplusplus
13801      extern "C"
13802 #  endif
13803    int F77_DUMMY_MAIN() { return 1; }
13804 #endif
13805 int
13806 main ()
13807 {
13808  struct passwd p; p.pw_class = 0; 
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815   (eval $ac_compile) 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } &&
13819          { ac_try='test -s conftest.$ac_objext'
13820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821   (eval $ac_try) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; }; then
13825    ac_cv_have_pw_class_in_struct_passwd="yes" 
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13829  ac_cv_have_pw_class_in_struct_passwd="no" 
13830         
13831 fi
13832 rm -f conftest.$ac_objext conftest.$ac_ext
13833
13834 fi
13835 echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13836 echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
13837 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13838         cat >>confdefs.h <<\_ACEOF
13839 @%:@define HAVE_PW_CLASS_IN_PASSWD 1
13840 _ACEOF
13841
13842 fi
13843
13844 echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
13845 echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
13846 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
13847   echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849   
13850         cat >conftest.$ac_ext <<_ACEOF
13851 #line $LINENO "configure"
13852 #include "confdefs.h"
13853
13854 #include <pwd.h>
13855                 
13856 #ifdef F77_DUMMY_MAIN
13857 #  ifdef __cplusplus
13858      extern "C"
13859 #  endif
13860    int F77_DUMMY_MAIN() { return 1; }
13861 #endif
13862 int
13863 main ()
13864 {
13865  struct passwd p; p.pw_expire = 0; 
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest.$ac_objext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872   (eval $ac_compile) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); } &&
13876          { ac_try='test -s conftest.$ac_objext'
13877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878   (eval $ac_try) 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; }; then
13882    ac_cv_have_pw_expire_in_struct_passwd="yes" 
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 cat conftest.$ac_ext >&5
13886  ac_cv_have_pw_expire_in_struct_passwd="no" 
13887         
13888 fi
13889 rm -f conftest.$ac_objext conftest.$ac_ext
13890
13891 fi
13892 echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13893 echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
13894 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13895         cat >>confdefs.h <<\_ACEOF
13896 @%:@define HAVE_PW_EXPIRE_IN_PASSWD 1
13897 _ACEOF
13898
13899 fi
13900
13901 echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
13902 echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
13903 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906   
13907         cat >conftest.$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13909 #include "confdefs.h"
13910
13911 #include <pwd.h>
13912                 
13913 #ifdef F77_DUMMY_MAIN
13914 #  ifdef __cplusplus
13915      extern "C"
13916 #  endif
13917    int F77_DUMMY_MAIN() { return 1; }
13918 #endif
13919 int
13920 main ()
13921 {
13922  struct passwd p; p.pw_change = 0; 
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929   (eval $ac_compile) 2>&5
13930   ac_status=$?
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } &&
13933          { ac_try='test -s conftest.$ac_objext'
13934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935   (eval $ac_try) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; }; then
13939    ac_cv_have_pw_change_in_struct_passwd="yes" 
13940 else
13941   echo "$as_me: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13943  ac_cv_have_pw_change_in_struct_passwd="no" 
13944         
13945 fi
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13947
13948 fi
13949 echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13950 echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
13951 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13952         cat >>confdefs.h <<\_ACEOF
13953 @%:@define HAVE_PW_CHANGE_IN_PASSWD 1
13954 _ACEOF
13955
13956 fi
13957
13958 echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
13959 echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
13960 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
13961   echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963   
13964         cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13966 #include "confdefs.h"
13967
13968 #include <sys/types.h>
13969 #include <sys/socket.h>
13970 #include <sys/uio.h>
13971                 
13972 #ifdef F77_DUMMY_MAIN
13973 #  ifdef __cplusplus
13974      extern "C"
13975 #  endif
13976    int F77_DUMMY_MAIN() { return 1; }
13977 #endif
13978 int
13979 main ()
13980 {
13981  struct msghdr m; m.msg_accrights = 0; 
13982   ;
13983   return 0;
13984 }
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988   (eval $ac_compile) 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } &&
13992          { ac_try='test -s conftest.$ac_objext'
13993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994   (eval $ac_try) 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); }; }; then
13998    ac_cv_have_accrights_in_msghdr="yes" 
13999 else
14000   echo "$as_me: failed program was:" >&5
14001 cat conftest.$ac_ext >&5
14002  ac_cv_have_accrights_in_msghdr="no" 
14003         
14004 fi
14005 rm -f conftest.$ac_objext conftest.$ac_ext
14006
14007 fi
14008 echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
14009 echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
14010 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14011         cat >>confdefs.h <<\_ACEOF
14012 @%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1
14013 _ACEOF
14014
14015 fi
14016
14017 echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
14018 echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
14019 if test "${ac_cv_have_control_in_msghdr+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022   
14023         cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14026
14027 #include <sys/types.h>
14028 #include <sys/socket.h>
14029 #include <sys/uio.h>
14030                 
14031 #ifdef F77_DUMMY_MAIN
14032 #  ifdef __cplusplus
14033      extern "C"
14034 #  endif
14035    int F77_DUMMY_MAIN() { return 1; }
14036 #endif
14037 int
14038 main ()
14039 {
14040  struct msghdr m; m.msg_control = 0; 
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 rm -f conftest.$ac_objext
14046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047   (eval $ac_compile) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } &&
14051          { ac_try='test -s conftest.$ac_objext'
14052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053   (eval $ac_try) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; }; then
14057    ac_cv_have_control_in_msghdr="yes" 
14058 else
14059   echo "$as_me: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061  ac_cv_have_control_in_msghdr="no" 
14062         
14063 fi
14064 rm -f conftest.$ac_objext conftest.$ac_ext
14065
14066 fi
14067 echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
14068 echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14069 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14070         cat >>confdefs.h <<\_ACEOF
14071 @%:@define HAVE_CONTROL_IN_MSGHDR 1
14072 _ACEOF
14073
14074 fi
14075
14076 echo "$as_me:$LINENO: checking if libc defines __progname" >&5
14077 echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14078 if test "${ac_cv_libc_defines___progname+set}" = set; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   
14082         cat >conftest.$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 #include "confdefs.h"
14085
14086 #ifdef F77_DUMMY_MAIN
14087 #  ifdef __cplusplus
14088      extern "C"
14089 #  endif
14090    int F77_DUMMY_MAIN() { return 1; }
14091 #endif
14092 int
14093 main ()
14094 {
14095  extern char *__progname; printf("%s", __progname); 
14096   ;
14097   return 0;
14098 }
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102   (eval $ac_link) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); } &&
14106          { ac_try='test -s conftest$ac_exeext'
14107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108   (eval $ac_try) 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); }; }; then
14112    ac_cv_libc_defines___progname="yes" 
14113 else
14114   echo "$as_me: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14116  ac_cv_libc_defines___progname="no" 
14117         
14118 fi
14119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14120
14121 fi
14122 echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
14123 echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14124 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14125         cat >>confdefs.h <<\_ACEOF
14126 @%:@define HAVE___PROGNAME 1
14127 _ACEOF
14128
14129 fi
14130
14131 echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14132 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14133 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14134   echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136   
14137         cat >conftest.$ac_ext <<_ACEOF
14138 #line $LINENO "configure"
14139 #include "confdefs.h"
14140
14141 #include <stdio.h>
14142
14143 #ifdef F77_DUMMY_MAIN
14144 #  ifdef __cplusplus
14145      extern "C"
14146 #  endif
14147    int F77_DUMMY_MAIN() { return 1; }
14148 #endif
14149 int
14150 main ()
14151 {
14152  printf("%s", __FUNCTION__); 
14153   ;
14154   return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159   (eval $ac_link) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); } &&
14163          { ac_try='test -s conftest$ac_exeext'
14164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165   (eval $ac_try) 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; }; then
14169    ac_cv_cc_implements___FUNCTION__="yes" 
14170 else
14171   echo "$as_me: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173  ac_cv_cc_implements___FUNCTION__="no" 
14174         
14175 fi
14176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14177
14178 fi
14179 echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14180 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14181 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14182         cat >>confdefs.h <<\_ACEOF
14183 @%:@define HAVE___FUNCTION__ 1
14184 _ACEOF
14185
14186 fi
14187
14188 echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14189 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14190 if test "${ac_cv_cc_implements___func__+set}" = set; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   
14194         cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 #include "confdefs.h"
14197
14198 #include <stdio.h>
14199
14200 #ifdef F77_DUMMY_MAIN
14201 #  ifdef __cplusplus
14202      extern "C"
14203 #  endif
14204    int F77_DUMMY_MAIN() { return 1; }
14205 #endif
14206 int
14207 main ()
14208 {
14209  printf("%s", __func__); 
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14216   (eval $ac_link) 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -s conftest$ac_exeext'
14221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222   (eval $ac_try) 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); }; }; then
14226    ac_cv_cc_implements___func__="yes" 
14227 else
14228   echo "$as_me: failed program was:" >&5
14229 cat conftest.$ac_ext >&5
14230  ac_cv_cc_implements___func__="no" 
14231         
14232 fi
14233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14234
14235 fi
14236 echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14237 echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14238 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14239         cat >>confdefs.h <<\_ACEOF
14240 @%:@define HAVE___func__ 1
14241 _ACEOF
14242
14243 fi
14244
14245 echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14246 echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14247 if test "${ac_cv_have_getopt_optreset+set}" = set; then
14248   echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250   
14251         cat >conftest.$ac_ext <<_ACEOF
14252 #line $LINENO "configure"
14253 #include "confdefs.h"
14254
14255 #include <getopt.h>
14256                 
14257 #ifdef F77_DUMMY_MAIN
14258 #  ifdef __cplusplus
14259      extern "C"
14260 #  endif
14261    int F77_DUMMY_MAIN() { return 1; }
14262 #endif
14263 int
14264 main ()
14265 {
14266  extern int optreset; optreset = 0; 
14267   ;
14268   return 0;
14269 }
14270 _ACEOF
14271 rm -f conftest.$ac_objext conftest$ac_exeext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14273   (eval $ac_link) 2>&5
14274   ac_status=$?
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } &&
14277          { ac_try='test -s conftest$ac_exeext'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; }; then
14283    ac_cv_have_getopt_optreset="yes" 
14284 else
14285   echo "$as_me: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14287  ac_cv_have_getopt_optreset="no" 
14288         
14289 fi
14290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14291
14292 fi
14293 echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
14294 echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14295 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14296         cat >>confdefs.h <<\_ACEOF
14297 @%:@define HAVE_GETOPT_OPTRESET 1
14298 _ACEOF
14299
14300 fi
14301
14302 echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
14303 echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14304 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14305   echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307   
14308         cat >conftest.$ac_ext <<_ACEOF
14309 #line $LINENO "configure"
14310 #include "confdefs.h"
14311
14312 #ifdef F77_DUMMY_MAIN
14313 #  ifdef __cplusplus
14314      extern "C"
14315 #  endif
14316    int F77_DUMMY_MAIN() { return 1; }
14317 #endif
14318 int
14319 main ()
14320 {
14321  extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 rm -f conftest.$ac_objext conftest$ac_exeext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328   (eval $ac_link) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); } &&
14332          { ac_try='test -s conftest$ac_exeext'
14333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }; then
14338    ac_cv_libc_defines_sys_errlist="yes" 
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342  ac_cv_libc_defines_sys_errlist="no" 
14343         
14344 fi
14345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14346
14347 fi
14348 echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
14349 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14350 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14351         cat >>confdefs.h <<\_ACEOF
14352 @%:@define HAVE_SYS_ERRLIST 1
14353 _ACEOF
14354
14355 fi
14356
14357
14358 echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
14359 echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14360 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14361   echo $ECHO_N "(cached) $ECHO_C" >&6
14362 else
14363   
14364         cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14367
14368 #ifdef F77_DUMMY_MAIN
14369 #  ifdef __cplusplus
14370      extern "C"
14371 #  endif
14372    int F77_DUMMY_MAIN() { return 1; }
14373 #endif
14374 int
14375 main ()
14376 {
14377  extern int sys_nerr; printf("%i", sys_nerr);
14378   ;
14379   return 0;
14380 }
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384   (eval $ac_link) 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); } &&
14388          { ac_try='test -s conftest$ac_exeext'
14389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390   (eval $ac_try) 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); }; }; then
14394    ac_cv_libc_defines_sys_nerr="yes" 
14395 else
14396   echo "$as_me: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398  ac_cv_libc_defines_sys_nerr="no" 
14399         
14400 fi
14401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14402
14403 fi
14404 echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
14405 echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14406 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14407         cat >>confdefs.h <<\_ACEOF
14408 @%:@define HAVE_SYS_NERR 1
14409 _ACEOF
14410
14411 fi
14412
14413 SCARD_MSG="no" 
14414
14415 # Check whether user wants sectok support
14416
14417 # Check whether --with-sectok or --without-sectok was given.
14418 if test "${with_sectok+set}" = set; then
14419   withval="$with_sectok"
14420   
14421                 if test "x$withval" != "xno" ; then
14422                         if test "x$withval" != "xyes" ; then
14423                                 CPPFLAGS="$CPPFLAGS -I${withval}"
14424                                 LDFLAGS="$LDFLAGS -L${withval}"
14425                                 if test ! -z "$need_dash_r" ; then
14426                                         LDFLAGS="$LDFLAGS -R${withval}"
14427                                 fi
14428                                 if test ! -z "$blibpath" ; then
14429                                         blibpath="$blibpath:${withval}"
14430                                 fi
14431                         fi
14432                         
14433 for ac_header in sectok.h
14434 do
14435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437   echo "$as_me:$LINENO: checking for $ac_header" >&5
14438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14440   echo $ECHO_N "(cached) $ECHO_C" >&6
14441 fi
14442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14444 else
14445   # Is the header compilable?
14446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 $ac_includes_default
14452 @%:@include <$ac_header>
14453 _ACEOF
14454 rm -f conftest.$ac_objext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456   (eval $ac_compile) 2>&5
14457   ac_status=$?
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); } &&
14460          { ac_try='test -s conftest.$ac_objext'
14461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462   (eval $ac_try) 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; }; then
14466   ac_header_compiler=yes
14467 else
14468   echo "$as_me: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 ac_header_compiler=no
14471 fi
14472 rm -f conftest.$ac_objext conftest.$ac_ext
14473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14474 echo "${ECHO_T}$ac_header_compiler" >&6
14475
14476 # Is the header present?
14477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14479 cat >conftest.$ac_ext <<_ACEOF
14480 #line $LINENO "configure"
14481 #include "confdefs.h"
14482 @%:@include <$ac_header>
14483 _ACEOF
14484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14486   ac_status=$?
14487   egrep -v '^ *\+' conftest.er1 >conftest.err
14488   rm -f conftest.er1
14489   cat conftest.err >&5
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); } >/dev/null; then
14492   if test -s conftest.err; then
14493     ac_cpp_err=$ac_c_preproc_warn_flag
14494   else
14495     ac_cpp_err=
14496   fi
14497 else
14498   ac_cpp_err=yes
14499 fi
14500 if test -z "$ac_cpp_err"; then
14501   ac_header_preproc=yes
14502 else
14503   echo "$as_me: failed program was:" >&5
14504   cat conftest.$ac_ext >&5
14505   ac_header_preproc=no
14506 fi
14507 rm -f conftest.err conftest.$ac_ext
14508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14509 echo "${ECHO_T}$ac_header_preproc" >&6
14510
14511 # So?  What about this header?
14512 case $ac_header_compiler:$ac_header_preproc in
14513   yes:no )
14514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14518   no:yes )
14519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14521     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14525 esac
14526 echo "$as_me:$LINENO: checking for $ac_header" >&5
14527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531   eval "$as_ac_Header=$ac_header_preproc"
14532 fi
14533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14535
14536 fi
14537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14538   cat >>confdefs.h <<_ACEOF
14539 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14540 _ACEOF
14541  
14542 fi
14543
14544 done
14545
14546                         if test "$ac_cv_header_sectok_h" != yes; then
14547                                 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
14548 echo "$as_me: error: Can't find sectok.h" >&2;}
14549    { (exit 1); exit 1; }; }
14550                         fi
14551                         
14552 echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
14553 echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14554 if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14555   echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557   ac_check_lib_save_LIBS=$LIBS
14558 LIBS="-lsectok  $LIBS"
14559 cat >conftest.$ac_ext <<_ACEOF
14560 #line $LINENO "configure"
14561 #include "confdefs.h"
14562
14563 /* Override any gcc2 internal prototype to avoid an error.  */
14564 #ifdef __cplusplus
14565 extern "C"
14566 #endif
14567 /* We use char because int might match the return type of a gcc2
14568    builtin and then its argument prototype would still apply.  */
14569 char sectok_open ();
14570 #ifdef F77_DUMMY_MAIN
14571 #  ifdef __cplusplus
14572      extern "C"
14573 #  endif
14574    int F77_DUMMY_MAIN() { return 1; }
14575 #endif
14576 int
14577 main ()
14578 {
14579 sectok_open ();
14580   ;
14581   return 0;
14582 }
14583 _ACEOF
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586   (eval $ac_link) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); } &&
14590          { ac_try='test -s conftest$ac_exeext'
14591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592   (eval $ac_try) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; }; then
14596   ac_cv_lib_sectok_sectok_open=yes
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14600 ac_cv_lib_sectok_sectok_open=no
14601 fi
14602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14603 LIBS=$ac_check_lib_save_LIBS
14604 fi
14605 echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
14606 echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14607 if test $ac_cv_lib_sectok_sectok_open = yes; then
14608   cat >>confdefs.h <<_ACEOF
14609 @%:@define HAVE_LIBSECTOK 1
14610 _ACEOF
14611
14612   LIBS="-lsectok $LIBS"
14613
14614 fi
14615
14616                         if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14617                                 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
14618 echo "$as_me: error: Can't find libsectok" >&2;}
14619    { (exit 1); exit 1; }; }
14620                         fi
14621                         cat >>confdefs.h <<\_ACEOF
14622 @%:@define SMARTCARD 1
14623 _ACEOF
14624
14625                         cat >>confdefs.h <<\_ACEOF
14626 @%:@define USE_SECTOK 1
14627 _ACEOF
14628
14629                         SCARD_MSG="yes, using sectok" 
14630                 fi
14631         
14632
14633 fi; 
14634
14635 # Check whether user wants OpenSC support
14636
14637 # Check whether --with-opensc or --without-opensc was given.
14638 if test "${with_opensc+set}" = set; then
14639   withval="$with_opensc"
14640   opensc_config_prefix="$withval"
14641 else
14642   opensc_config_prefix=""
14643 fi; 
14644 if test x$opensc_config_prefix != x ; then
14645   OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14646   # Extract the first word of "opensc-config", so it can be a program name with args.
14647 set dummy opensc-config; ac_word=$2
14648 echo "$as_me:$LINENO: checking for $ac_word" >&5
14649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14650 if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14651   echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653   case $OPENSC_CONFIG in
14654   [\\/]* | ?:[\\/]*)
14655   ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14656   ;;
14657   *)
14658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14660 do
14661   IFS=$as_save_IFS
14662   test -z "$as_dir" && as_dir=.
14663   for ac_exec_ext in '' $ac_executable_extensions; do
14664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14665     ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14667     break 2
14668   fi
14669 done
14670 done
14671
14672   test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14673   ;;
14674 esac
14675 fi
14676 OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14677
14678 if test -n "$OPENSC_CONFIG"; then
14679   echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
14680 echo "${ECHO_T}$OPENSC_CONFIG" >&6
14681 else
14682   echo "$as_me:$LINENO: result: no" >&5
14683 echo "${ECHO_T}no" >&6
14684 fi
14685
14686   if test "$OPENSC_CONFIG" != "no"; then
14687     LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14688     LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14689     CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14690     LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14691     cat >>confdefs.h <<\_ACEOF
14692 @%:@define SMARTCARD 1
14693 _ACEOF
14694
14695     cat >>confdefs.h <<\_ACEOF
14696 @%:@define USE_OPENSC 1
14697 _ACEOF
14698
14699     SCARD_MSG="yes, using OpenSC" 
14700   fi
14701 fi
14702
14703 # Check whether user wants Kerberos 5 support
14704 KRB5_MSG="no" 
14705
14706 # Check whether --with-kerberos5 or --without-kerberos5 was given.
14707 if test "${with_kerberos5+set}" = set; then
14708   withval="$with_kerberos5"
14709   
14710                 if test "x$withval" != "xno" ; then
14711                         if test "x$withval" = "xyes" ; then
14712                                 KRB5ROOT="/usr/local"
14713                         else
14714                                 KRB5ROOT=${withval}
14715                         fi
14716                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14717                         LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14718                         cat >>confdefs.h <<\_ACEOF
14719 @%:@define KRB5 1
14720 _ACEOF
14721
14722                         KRB5_MSG="yes"
14723                         echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
14724 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
14725                         cat >conftest.$ac_ext <<_ACEOF
14726 #line $LINENO "configure"
14727 #include "confdefs.h"
14728  #include <krb5.h> 
14729 #ifdef F77_DUMMY_MAIN
14730 #  ifdef __cplusplus
14731      extern "C"
14732 #  endif
14733    int F77_DUMMY_MAIN() { return 1; }
14734 #endif
14735 int
14736 main ()
14737 {
14738  char *tmp = heimdal_version; 
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745   (eval $ac_compile) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); } &&
14749          { ac_try='test -s conftest.$ac_objext'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755    echo "$as_me:$LINENO: result: yes" >&5
14756 echo "${ECHO_T}yes" >&6
14757                                          cat >>confdefs.h <<\_ACEOF
14758 @%:@define HEIMDAL 1
14759 _ACEOF
14760
14761                                          K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
14762                                        
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766  echo "$as_me:$LINENO: result: no" >&5
14767 echo "${ECHO_T}no" >&6
14768                                          K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14769                                        
14770                         
14771 fi
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14773                         if test ! -z "$need_dash_r" ; then
14774                                 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14775                         fi
14776                         if test ! -z "$blibpath" ; then
14777                                 blibpath="$blibpath:${KRB5ROOT}/lib"
14778                         fi
14779                         
14780 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
14781 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
14782 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
14783   echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785   ac_check_lib_save_LIBS=$LIBS
14786 LIBS="-lresolv  $LIBS"
14787 cat >conftest.$ac_ext <<_ACEOF
14788 #line $LINENO "configure"
14789 #include "confdefs.h"
14790
14791 /* Override any gcc2 internal prototype to avoid an error.  */
14792 #ifdef __cplusplus
14793 extern "C"
14794 #endif
14795 /* We use char because int might match the return type of a gcc2
14796    builtin and then its argument prototype would still apply.  */
14797 char dn_expand ();
14798 #ifdef F77_DUMMY_MAIN
14799 #  ifdef __cplusplus
14800      extern "C"
14801 #  endif
14802    int F77_DUMMY_MAIN() { return 1; }
14803 #endif
14804 int
14805 main ()
14806 {
14807 dn_expand ();
14808   ;
14809   return 0;
14810 }
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14814   (eval $ac_link) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); } &&
14818          { ac_try='test -s conftest$ac_exeext'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; }; then
14824   ac_cv_lib_resolv_dn_expand=yes
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14828 ac_cv_lib_resolv_dn_expand=no
14829 fi
14830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14831 LIBS=$ac_check_lib_save_LIBS
14832 fi
14833 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
14834 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
14835 if test $ac_cv_lib_resolv_dn_expand = yes; then
14836   cat >>confdefs.h <<_ACEOF
14837 @%:@define HAVE_LIBRESOLV 1
14838 _ACEOF
14839
14840   LIBS="-lresolv $LIBS"
14841
14842 fi
14843
14844
14845                         KRB5=yes
14846                 fi
14847         
14848
14849 fi; 
14850 # Check whether user wants Kerberos 4 support
14851 KRB4_MSG="no" 
14852
14853 # Check whether --with-kerberos4 or --without-kerberos4 was given.
14854 if test "${with_kerberos4+set}" = set; then
14855   withval="$with_kerberos4"
14856   
14857                 if test "x$withval" != "xno" ; then
14858                         if test "x$withval" != "xyes" ; then
14859                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
14860                                 LDFLAGS="$LDFLAGS -L${withval}/lib"
14861                                 if test ! -z "$need_dash_r" ; then
14862                                         LDFLAGS="$LDFLAGS -R${withval}/lib"
14863                                 fi
14864                                 if test ! -z "$blibpath" ; then
14865                                         blibpath="$blibpath:${withval}/lib"
14866                                 fi
14867                         else
14868                                 if test -d /usr/include/kerberosIV ; then
14869                                         CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
14870                                 fi
14871                         fi
14872
14873                         
14874 for ac_header in krb.h
14875 do
14876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14878   echo "$as_me:$LINENO: checking for $ac_header" >&5
14879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 fi
14883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14885 else
14886   # Is the header compilable?
14887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14889 cat >conftest.$ac_ext <<_ACEOF
14890 #line $LINENO "configure"
14891 #include "confdefs.h"
14892 $ac_includes_default
14893 @%:@include <$ac_header>
14894 _ACEOF
14895 rm -f conftest.$ac_objext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897   (eval $ac_compile) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); } &&
14901          { ac_try='test -s conftest.$ac_objext'
14902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903   (eval $ac_try) 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; }; then
14907   ac_header_compiler=yes
14908 else
14909   echo "$as_me: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14911 ac_header_compiler=no
14912 fi
14913 rm -f conftest.$ac_objext conftest.$ac_ext
14914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14915 echo "${ECHO_T}$ac_header_compiler" >&6
14916
14917 # Is the header present?
14918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14920 cat >conftest.$ac_ext <<_ACEOF
14921 #line $LINENO "configure"
14922 #include "confdefs.h"
14923 @%:@include <$ac_header>
14924 _ACEOF
14925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14926   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14927   ac_status=$?
14928   egrep -v '^ *\+' conftest.er1 >conftest.err
14929   rm -f conftest.er1
14930   cat conftest.err >&5
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); } >/dev/null; then
14933   if test -s conftest.err; then
14934     ac_cpp_err=$ac_c_preproc_warn_flag
14935   else
14936     ac_cpp_err=
14937   fi
14938 else
14939   ac_cpp_err=yes
14940 fi
14941 if test -z "$ac_cpp_err"; then
14942   ac_header_preproc=yes
14943 else
14944   echo "$as_me: failed program was:" >&5
14945   cat conftest.$ac_ext >&5
14946   ac_header_preproc=no
14947 fi
14948 rm -f conftest.err conftest.$ac_ext
14949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 echo "${ECHO_T}$ac_header_preproc" >&6
14951
14952 # So?  What about this header?
14953 case $ac_header_compiler:$ac_header_preproc in
14954   yes:no )
14955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14959   no:yes )
14960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14962     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14966 esac
14967 echo "$as_me:$LINENO: checking for $ac_header" >&5
14968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14970   echo $ECHO_N "(cached) $ECHO_C" >&6
14971 else
14972   eval "$as_ac_Header=$ac_header_preproc"
14973 fi
14974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14976
14977 fi
14978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14979   cat >>confdefs.h <<_ACEOF
14980 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14981 _ACEOF
14982  
14983 fi
14984
14985 done
14986
14987                         if test "$ac_cv_header_krb_h" != yes; then
14988                                 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
14989 echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
14990                         fi
14991                         
14992 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
14993 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
14994 if test "${ac_cv_lib_krb_main+set}" = set; then
14995   echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997   ac_check_lib_save_LIBS=$LIBS
14998 LIBS="-lkrb  $LIBS"
14999 cat >conftest.$ac_ext <<_ACEOF
15000 #line $LINENO "configure"
15001 #include "confdefs.h"
15002
15003
15004 #ifdef F77_DUMMY_MAIN
15005 #  ifdef __cplusplus
15006      extern "C"
15007 #  endif
15008    int F77_DUMMY_MAIN() { return 1; }
15009 #endif
15010 int
15011 main ()
15012 {
15013 main ();
15014   ;
15015   return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020   (eval $ac_link) 2>&5
15021   ac_status=$?
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } &&
15024          { ac_try='test -s conftest$ac_exeext'
15025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026   (eval $ac_try) 2>&5
15027   ac_status=$?
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); }; }; then
15030   ac_cv_lib_krb_main=yes
15031 else
15032   echo "$as_me: failed program was:" >&5
15033 cat conftest.$ac_ext >&5
15034 ac_cv_lib_krb_main=no
15035 fi
15036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15037 LIBS=$ac_check_lib_save_LIBS
15038 fi
15039 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
15040 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
15041 if test $ac_cv_lib_krb_main = yes; then
15042   cat >>confdefs.h <<_ACEOF
15043 @%:@define HAVE_LIBKRB 1
15044 _ACEOF
15045
15046   LIBS="-lkrb $LIBS"
15047
15048 fi
15049
15050                         if test "$ac_cv_lib_krb_main" != yes; then
15051                                 
15052 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
15053 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
15054 if test "${ac_cv_lib_krb4_main+set}" = set; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   ac_check_lib_save_LIBS=$LIBS
15058 LIBS="-lkrb4  $LIBS"
15059 cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062
15063
15064 #ifdef F77_DUMMY_MAIN
15065 #  ifdef __cplusplus
15066      extern "C"
15067 #  endif
15068    int F77_DUMMY_MAIN() { return 1; }
15069 #endif
15070 int
15071 main ()
15072 {
15073 main ();
15074   ;
15075   return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15080   (eval $ac_link) 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -s conftest$ac_exeext'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; }; then
15090   ac_cv_lib_krb4_main=yes
15091 else
15092   echo "$as_me: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 ac_cv_lib_krb4_main=no
15095 fi
15096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15098 fi
15099 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
15100 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
15101 if test $ac_cv_lib_krb4_main = yes; then
15102   cat >>confdefs.h <<_ACEOF
15103 @%:@define HAVE_LIBKRB4 1
15104 _ACEOF
15105
15106   LIBS="-lkrb4 $LIBS"
15107
15108 fi
15109
15110                                 if test "$ac_cv_lib_krb4_main" != yes; then
15111                                         { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
15112 echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
15113                                 else
15114                                         KLIBS="-lkrb4"
15115                                 fi
15116                         else
15117                                 KLIBS="-lkrb"
15118                         fi
15119                         
15120 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15121 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15122 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15123   echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125   ac_check_lib_save_LIBS=$LIBS
15126 LIBS="-ldes  $LIBS"
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15129 #include "confdefs.h"
15130
15131 /* Override any gcc2 internal prototype to avoid an error.  */
15132 #ifdef __cplusplus
15133 extern "C"
15134 #endif
15135 /* We use char because int might match the return type of a gcc2
15136    builtin and then its argument prototype would still apply.  */
15137 char des_cbc_encrypt ();
15138 #ifdef F77_DUMMY_MAIN
15139 #  ifdef __cplusplus
15140      extern "C"
15141 #  endif
15142    int F77_DUMMY_MAIN() { return 1; }
15143 #endif
15144 int
15145 main ()
15146 {
15147 des_cbc_encrypt ();
15148   ;
15149   return 0;
15150 }
15151 _ACEOF
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15154   (eval $ac_link) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); } &&
15158          { ac_try='test -s conftest$ac_exeext'
15159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160   (eval $ac_try) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164   ac_cv_lib_des_des_cbc_encrypt=yes
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15168 ac_cv_lib_des_des_cbc_encrypt=no
15169 fi
15170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15172 fi
15173 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15174 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15175 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15176   cat >>confdefs.h <<_ACEOF
15177 @%:@define HAVE_LIBDES 1
15178 _ACEOF
15179
15180   LIBS="-ldes $LIBS"
15181
15182 fi
15183
15184                         if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15185                                 
15186 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15187 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15188 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15189   echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191   ac_check_lib_save_LIBS=$LIBS
15192 LIBS="-ldes425  $LIBS"
15193 cat >conftest.$ac_ext <<_ACEOF
15194 #line $LINENO "configure"
15195 #include "confdefs.h"
15196
15197 /* Override any gcc2 internal prototype to avoid an error.  */
15198 #ifdef __cplusplus
15199 extern "C"
15200 #endif
15201 /* We use char because int might match the return type of a gcc2
15202    builtin and then its argument prototype would still apply.  */
15203 char des_cbc_encrypt ();
15204 #ifdef F77_DUMMY_MAIN
15205 #  ifdef __cplusplus
15206      extern "C"
15207 #  endif
15208    int F77_DUMMY_MAIN() { return 1; }
15209 #endif
15210 int
15211 main ()
15212 {
15213 des_cbc_encrypt ();
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220   (eval $ac_link) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -s conftest$ac_exeext'
15225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226   (eval $ac_try) 2>&5
15227   ac_status=$?
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); }; }; then
15230   ac_cv_lib_des425_des_cbc_encrypt=yes
15231 else
15232   echo "$as_me: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 ac_cv_lib_des425_des_cbc_encrypt=no
15235 fi
15236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15237 LIBS=$ac_check_lib_save_LIBS
15238 fi
15239 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15240 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15241 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15242   cat >>confdefs.h <<_ACEOF
15243 @%:@define HAVE_LIBDES425 1
15244 _ACEOF
15245
15246   LIBS="-ldes425 $LIBS"
15247
15248 fi
15249
15250                                 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
15251                                         { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
15252 echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15253                                 else
15254                                         KLIBS="-ldes425"
15255                                 fi
15256                         else
15257                                 KLIBS="-ldes"
15258                         fi
15259                         
15260 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15261 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15262 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15263   echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265   ac_check_lib_save_LIBS=$LIBS
15266 LIBS="-lresolv  $LIBS"
15267 cat >conftest.$ac_ext <<_ACEOF
15268 #line $LINENO "configure"
15269 #include "confdefs.h"
15270
15271 /* Override any gcc2 internal prototype to avoid an error.  */
15272 #ifdef __cplusplus
15273 extern "C"
15274 #endif
15275 /* We use char because int might match the return type of a gcc2
15276    builtin and then its argument prototype would still apply.  */
15277 char dn_expand ();
15278 #ifdef F77_DUMMY_MAIN
15279 #  ifdef __cplusplus
15280      extern "C"
15281 #  endif
15282    int F77_DUMMY_MAIN() { return 1; }
15283 #endif
15284 int
15285 main ()
15286 {
15287 dn_expand ();
15288   ;
15289   return 0;
15290 }
15291 _ACEOF
15292 rm -f conftest.$ac_objext conftest$ac_exeext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15294   (eval $ac_link) 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); } &&
15298          { ac_try='test -s conftest$ac_exeext'
15299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300   (eval $ac_try) 2>&5
15301   ac_status=$?
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); }; }; then
15304   ac_cv_lib_resolv_dn_expand=yes
15305 else
15306   echo "$as_me: failed program was:" >&5
15307 cat conftest.$ac_ext >&5
15308 ac_cv_lib_resolv_dn_expand=no
15309 fi
15310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15311 LIBS=$ac_check_lib_save_LIBS
15312 fi
15313 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15314 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15315 if test $ac_cv_lib_resolv_dn_expand = yes; then
15316   cat >>confdefs.h <<_ACEOF
15317 @%:@define HAVE_LIBRESOLV 1
15318 _ACEOF
15319
15320   LIBS="-lresolv $LIBS"
15321
15322 fi
15323
15324                         KRB4=yes
15325                         KRB4_MSG="yes" 
15326                         cat >>confdefs.h <<\_ACEOF
15327 @%:@define KRB4 1
15328 _ACEOF
15329
15330                 fi
15331         
15332
15333 fi; 
15334
15335 # Check whether user wants AFS support
15336 AFS_MSG="no" 
15337
15338 # Check whether --with-afs or --without-afs was given.
15339 if test "${with_afs+set}" = set; then
15340   withval="$with_afs"
15341   
15342                 if test "x$withval" != "xno" ; then
15343
15344                         if test "x$withval" != "xyes" ; then
15345                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15346                                 LDFLAGS="$LDFLAGS -L${withval}/lib"
15347                         fi
15348
15349                         if test -z "$KRB4" ; then
15350                                 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
15351 echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
15352                         fi
15353
15354                         LIBS="-lkafs $LIBS"
15355                         if test ! -z "$AFS_LIBS" ; then
15356                                 LIBS="$LIBS $AFS_LIBS"
15357                         fi
15358                         cat >>confdefs.h <<\_ACEOF
15359 @%:@define AFS 1
15360 _ACEOF
15361
15362                         AFS_MSG="yes" 
15363                 fi
15364         
15365
15366 fi; 
15367 LIBS="$LIBS $KLIBS $K5LIBS"
15368
15369 # Looking for programs, paths and files
15370
15371 # Check whether --with-rsh or --without-rsh was given.
15372 if test "${with_rsh+set}" = set; then
15373   withval="$with_rsh"
15374   
15375                 if test "x$withval" != "$no" ; then
15376                         rsh_path=$withval
15377                 fi
15378         
15379 else
15380   
15381                 # Extract the first word of "rsh", so it can be a program name with args.
15382 set dummy rsh; ac_word=$2
15383 echo "$as_me:$LINENO: checking for $ac_word" >&5
15384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15385 if test "${ac_cv_path_rsh_path+set}" = set; then
15386   echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388   case $rsh_path in
15389   [\\/]* | ?:[\\/]*)
15390   ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path.
15391   ;;
15392   *)
15393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15394 for as_dir in $PATH
15395 do
15396   IFS=$as_save_IFS
15397   test -z "$as_dir" && as_dir=.
15398   for ac_exec_ext in '' $ac_executable_extensions; do
15399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15400     ac_cv_path_rsh_path="$as_dir/$ac_word$ac_exec_ext"
15401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15402     break 2
15403   fi
15404 done
15405 done
15406
15407   ;;
15408 esac
15409 fi
15410 rsh_path=$ac_cv_path_rsh_path
15411
15412 if test -n "$rsh_path"; then
15413   echo "$as_me:$LINENO: result: $rsh_path" >&5
15414 echo "${ECHO_T}$rsh_path" >&6
15415 else
15416   echo "$as_me:$LINENO: result: no" >&5
15417 echo "${ECHO_T}no" >&6
15418 fi
15419
15420         
15421
15422 fi; 
15423
15424 PRIVSEP_PATH=/var/empty
15425
15426 # Check whether --with-privsep-path or --without-privsep-path was given.
15427 if test "${with_privsep_path+set}" = set; then
15428   withval="$with_privsep_path"
15429   
15430                 if test "x$withval" != "$no" ; then
15431                         PRIVSEP_PATH=$withval
15432                 fi
15433         
15434
15435 fi; 
15436
15437
15438
15439 # Check whether --with-xauth or --without-xauth was given.
15440 if test "${with_xauth+set}" = set; then
15441   withval="$with_xauth"
15442   
15443                 if test "x$withval" != "xno" ; then
15444                         xauth_path=$withval
15445                 fi
15446         
15447 else
15448   
15449                 # Extract the first word of "xauth", so it can be a program name with args.
15450 set dummy xauth; ac_word=$2
15451 echo "$as_me:$LINENO: checking for $ac_word" >&5
15452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15453 if test "${ac_cv_path_xauth_path+set}" = set; then
15454   echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456   case $xauth_path in
15457   [\\/]* | ?:[\\/]*)
15458   ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15459   ;;
15460   *)
15461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin
15463 do
15464   IFS=$as_save_IFS
15465   test -z "$as_dir" && as_dir=.
15466   for ac_exec_ext in '' $ac_executable_extensions; do
15467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15468     ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15470     break 2
15471   fi
15472 done
15473 done
15474
15475   ;;
15476 esac
15477 fi
15478 xauth_path=$ac_cv_path_xauth_path
15479
15480 if test -n "$xauth_path"; then
15481   echo "$as_me:$LINENO: result: $xauth_path" >&5
15482 echo "${ECHO_T}$xauth_path" >&6
15483 else
15484   echo "$as_me:$LINENO: result: no" >&5
15485 echo "${ECHO_T}no" >&6
15486 fi
15487
15488                 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15489                         xauth_path="/usr/openwin/bin/xauth"
15490                 fi
15491         
15492
15493 fi; 
15494
15495 if test -z "$xauth_path" ; then
15496         XAUTH_PATH="undefined"
15497         
15498 else
15499         cat >>confdefs.h <<_ACEOF
15500 @%:@define XAUTH_PATH "$xauth_path"
15501 _ACEOF
15502
15503         XAUTH_PATH=$xauth_path
15504         
15505 fi
15506 if test ! -z "$rsh_path" ; then
15507         cat >>confdefs.h <<_ACEOF
15508 @%:@define RSH_PATH "$rsh_path"
15509 _ACEOF
15510
15511 fi
15512
15513 # Check for mail directory (last resort if we cannot get it from headers)
15514 if test ! -z "$MAIL" ; then
15515         maildir=`dirname $MAIL`
15516         cat >>confdefs.h <<_ACEOF
15517 @%:@define MAIL_DIRECTORY "$maildir"
15518 _ACEOF
15519
15520 fi
15521
15522 if test -z "$no_dev_ptmx" ; then
15523         if test "x$disable_ptmx_check" != "xyes" ; then
15524                 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
15525 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15526 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15527   echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529   test "$cross_compiling" = yes &&
15530   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15531 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15532    { (exit 1); exit 1; }; }
15533 if test -r ""/dev/ptmx""; then
15534   ac_cv_file___dev_ptmx_=yes
15535 else
15536   ac_cv_file___dev_ptmx_=no
15537 fi
15538 fi
15539 echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
15540 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15541 if test $ac_cv_file___dev_ptmx_ = yes; then
15542   
15543                                 cat >>confdefs.h <<_ACEOF
15544 @%:@define HAVE_DEV_PTMX 1
15545 _ACEOF
15546
15547                                 have_dev_ptmx=1
15548                         
15549                 
15550 fi
15551
15552         fi
15553 fi
15554 echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
15555 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15556 if test "${ac_cv_file___dev_ptc_+set}" = set; then
15557   echo $ECHO_N "(cached) $ECHO_C" >&6
15558 else
15559   test "$cross_compiling" = yes &&
15560   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15561 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15562    { (exit 1); exit 1; }; }
15563 if test -r ""/dev/ptc""; then
15564   ac_cv_file___dev_ptc_=yes
15565 else
15566   ac_cv_file___dev_ptc_=no
15567 fi
15568 fi
15569 echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
15570 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15571 if test $ac_cv_file___dev_ptc_ = yes; then
15572   
15573                 cat >>confdefs.h <<_ACEOF
15574 @%:@define HAVE_DEV_PTS_AND_PTC 1
15575 _ACEOF
15576
15577                 have_dev_ptc=1
15578         
15579
15580 fi
15581
15582
15583 # Options from here on. Some of these are preset by platform above
15584
15585 # Check whether --with-mantype or --without-mantype was given.
15586 if test "${with_mantype+set}" = set; then
15587   withval="$with_mantype"
15588   
15589                 case "$withval" in
15590                 man|cat|doc)
15591                         MANTYPE=$withval
15592                         ;;
15593                 *)
15594                         { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
15595 echo "$as_me: error: invalid man type: $withval" >&2;}
15596    { (exit 1); exit 1; }; }
15597                         ;;
15598                 esac
15599         
15600
15601 fi; 
15602 if test -z "$MANTYPE"; then
15603         for ac_prog in nroff awf
15604 do
15605   # Extract the first word of "$ac_prog", so it can be a program name with args.
15606 set dummy $ac_prog; ac_word=$2
15607 echo "$as_me:$LINENO: checking for $ac_word" >&5
15608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15609 if test "${ac_cv_path_NROFF+set}" = set; then
15610   echo $ECHO_N "(cached) $ECHO_C" >&6
15611 else
15612   case $NROFF in
15613   [\\/]* | ?:[\\/]*)
15614   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15615   ;;
15616   *)
15617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15618 as_dummy="/usr/bin:/usr/ucb"
15619 for as_dir in $as_dummy
15620 do
15621   IFS=$as_save_IFS
15622   test -z "$as_dir" && as_dir=.
15623   for ac_exec_ext in '' $ac_executable_extensions; do
15624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15625     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15627     break 2
15628   fi
15629 done
15630 done
15631
15632   ;;
15633 esac
15634 fi
15635 NROFF=$ac_cv_path_NROFF
15636
15637 if test -n "$NROFF"; then
15638   echo "$as_me:$LINENO: result: $NROFF" >&5
15639 echo "${ECHO_T}$NROFF" >&6
15640 else
15641   echo "$as_me:$LINENO: result: no" >&5
15642 echo "${ECHO_T}no" >&6
15643 fi
15644
15645   test -n "$NROFF" && break
15646 done
15647 test -n "$NROFF" || NROFF="/bin/false"
15648
15649         if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15650                 MANTYPE=doc
15651         elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15652                 MANTYPE=man
15653         else
15654                 MANTYPE=cat
15655         fi
15656 fi
15657
15658 if test "$MANTYPE" = "doc"; then
15659         mansubdir=man;
15660 else
15661         mansubdir=$MANTYPE;
15662 fi
15663
15664
15665 # Check whether to enable MD5 passwords
15666 MD5_MSG="no" 
15667
15668 # Check whether --with-md5-passwords or --without-md5-passwords was given.
15669 if test "${with_md5_passwords+set}" = set; then
15670   withval="$with_md5_passwords"
15671   
15672                 if test "x$withval" != "xno" ; then
15673                         cat >>confdefs.h <<\_ACEOF
15674 @%:@define HAVE_MD5_PASSWORDS 1
15675 _ACEOF
15676
15677                         MD5_MSG="yes" 
15678                 fi
15679         
15680
15681 fi; 
15682
15683 # Whether to disable shadow password support
15684
15685 # Check whether --with-shadow or --without-shadow was given.
15686 if test "${with_shadow+set}" = set; then
15687   withval="$with_shadow"
15688   
15689                 if test "x$withval" = "xno" ; then      
15690                         cat >>confdefs.h <<\_ACEOF
15691 @%:@define DISABLE_SHADOW 1
15692 _ACEOF
15693
15694                         disable_shadow=yes
15695                 fi
15696         
15697
15698 fi; 
15699
15700 if test -z "$disable_shadow" ; then
15701         echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
15702 echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
15703         cat >conftest.$ac_ext <<_ACEOF
15704 #line $LINENO "configure"
15705 #include "confdefs.h"
15706
15707 #include <sys/types.h>
15708 #include <shadow.h>
15709         struct spwd sp;
15710         
15711 #ifdef F77_DUMMY_MAIN
15712 #  ifdef __cplusplus
15713      extern "C"
15714 #  endif
15715    int F77_DUMMY_MAIN() { return 1; }
15716 #endif
15717 int
15718 main ()
15719 {
15720  sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; 
15721   ;
15722   return 0;
15723 }
15724 _ACEOF
15725 rm -f conftest.$ac_objext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15727   (eval $ac_compile) 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } &&
15731          { ac_try='test -s conftest.$ac_objext'
15732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733   (eval $ac_try) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); }; }; then
15737    sp_expire_available=yes 
15738 else
15739   echo "$as_me: failed program was:" >&5
15740 cat conftest.$ac_ext >&5
15741
15742         
15743 fi
15744 rm -f conftest.$ac_objext conftest.$ac_ext
15745
15746         if test "x$sp_expire_available" = "xyes" ; then
15747                 echo "$as_me:$LINENO: result: yes" >&5
15748 echo "${ECHO_T}yes" >&6
15749                 cat >>confdefs.h <<\_ACEOF
15750 @%:@define HAS_SHADOW_EXPIRE 1
15751 _ACEOF
15752
15753         else
15754                 echo "$as_me:$LINENO: result: no" >&5
15755 echo "${ECHO_T}no" >&6
15756         fi
15757 fi
15758
15759 # Use ip address instead of hostname in $DISPLAY
15760 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15761         DISPLAY_HACK_MSG="yes"
15762         cat >>confdefs.h <<\_ACEOF
15763 @%:@define IPADDR_IN_DISPLAY 1
15764 _ACEOF
15765
15766 else
15767         DISPLAY_HACK_MSG="no" 
15768         
15769 # Check whether --with-ipaddr-display or --without-ipaddr-display was given.
15770 if test "${with_ipaddr_display+set}" = set; then
15771   withval="$with_ipaddr_display"
15772   
15773                         if test "x$withval" != "xno" ; then     
15774                                 cat >>confdefs.h <<\_ACEOF
15775 @%:@define IPADDR_IN_DISPLAY 1
15776 _ACEOF
15777
15778                                 DISPLAY_HACK_MSG="yes" 
15779                         fi
15780                 
15781         
15782 fi; 
15783 fi
15784
15785 if test $ac_cv_func_login_getcapbool = "yes" -a \
15786         $ac_cv_header_login_cap_h = "yes" ; then
15787         USES_LOGIN_CONF=yes
15788 fi
15789 # Whether to mess with the default path
15790 SERVER_PATH_MSG="(default)" 
15791
15792 # Check whether --with-default-path or --without-default-path was given.
15793 if test "${with_default_path+set}" = set; then
15794   withval="$with_default_path"
15795   
15796                 if test "$USES_LOGIN_CONF" = "yes" ; then
15797                         { echo "$as_me:$LINENO: WARNING: 
15798 --with-default-path=PATH has no effect on this system.
15799 Edit /etc/login.conf instead." >&5
15800 echo "$as_me: WARNING: 
15801 --with-default-path=PATH has no effect on this system.
15802 Edit /etc/login.conf instead." >&2;}
15803                 elif test "x$withval" != "xno" ; then   
15804                         user_path="$withval"
15805                         SERVER_PATH_MSG="$withval" 
15806                 fi
15807         
15808 else
15809    if test "$USES_LOGIN_CONF" = "yes" ; then
15810         { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15811 echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15812         else
15813         if test "$cross_compiling" = yes; then
15814    user_path="/usr/bin:/bin:/usr/sbin:/sbin" 
15815         
15816 else
15817   cat >conftest.$ac_ext <<_ACEOF
15818 #line $LINENO "configure"
15819 #include "confdefs.h"
15820
15821 /* find out what STDPATH is */
15822 #include <stdio.h>
15823 #ifdef HAVE_PATHS_H
15824 # include <paths.h>
15825 #endif
15826 #ifndef _PATH_STDPATH
15827 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15828 #endif
15829 #include <sys/types.h>
15830 #include <sys/stat.h>
15831 #include <fcntl.h>
15832 #define DATA "conftest.stdpath"
15833
15834 main()
15835 {
15836         FILE *fd;
15837         int rc;
15838         
15839         fd = fopen(DATA,"w");
15840         if(fd == NULL)
15841                 exit(1);
15842         
15843         if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15844                 exit(1);
15845
15846         exit(0);
15847 }
15848                 
15849 _ACEOF
15850 rm -f conftest$ac_exeext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852   (eval $ac_link) 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857   (eval $ac_try) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; }; then
15861    user_path=`cat conftest.stdpath` 
15862 else
15863   echo "$as_me: program exited with status $ac_status" >&5
15864 echo "$as_me: failed program was:" >&5
15865 cat conftest.$ac_ext >&5
15866 ( exit $ac_status )
15867  user_path="/usr/bin:/bin:/usr/sbin:/sbin" 
15868 fi
15869 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15870 fi
15871 # make sure $bindir is in USER_PATH so scp will work
15872                 t_bindir=`eval echo ${bindir}`
15873                 case $t_bindir in
15874                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15875                 esac
15876                 case $t_bindir in
15877                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15878                 esac
15879                 echo $user_path | grep ":$t_bindir"  > /dev/null 2>&1
15880                 if test $? -ne 0  ; then
15881                         echo $user_path | grep "^$t_bindir"  > /dev/null 2>&1
15882                         if test $? -ne 0  ; then
15883                                 user_path=$user_path:$t_bindir
15884                                 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15885 echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
15886                         fi
15887                 fi
15888         fi 
15889
15890 fi; 
15891 if test "$USES_LOGIN_CONF" != "yes" ; then
15892         cat >>confdefs.h <<_ACEOF
15893 @%:@define USER_PATH "$user_path"
15894 _ACEOF
15895
15896         
15897 fi
15898
15899 # Set superuser path separately to user path
15900
15901 # Check whether --with-superuser-path or --without-superuser-path was given.
15902 if test "${with_superuser_path+set}" = set; then
15903   withval="$with_superuser_path"
15904   
15905                 if test "x$withval" != "xno" ; then
15906                         cat >>confdefs.h <<_ACEOF
15907 @%:@define SUPERUSER_PATH "$withval"
15908 _ACEOF
15909
15910                         superuser_path=$withval
15911                 fi
15912         
15913
15914 fi; 
15915
15916
15917 # Whether to force IPv4 by default (needed on broken glibc Linux)
15918 IPV4_HACK_MSG="no" 
15919
15920 # Check whether --with-ipv4-default or --without-ipv4-default was given.
15921 if test "${with_ipv4_default+set}" = set; then
15922   withval="$with_ipv4_default"
15923   
15924                 if test "x$withval" != "xno" ; then     
15925                         cat >>confdefs.h <<\_ACEOF
15926 @%:@define IPV4_DEFAULT 1
15927 _ACEOF
15928
15929                         IPV4_HACK_MSG="yes" 
15930                 fi
15931         
15932
15933 fi; 
15934
15935 echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15936 echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
15937 IPV4_IN6_HACK_MSG="no" 
15938
15939 # Check whether --with-4in6 or --without-4in6 was given.
15940 if test "${with_4in6+set}" = set; then
15941   withval="$with_4in6"
15942   
15943                 if test "x$withval" != "xno" ; then
15944                         echo "$as_me:$LINENO: result: yes" >&5
15945 echo "${ECHO_T}yes" >&6
15946                         cat >>confdefs.h <<\_ACEOF
15947 @%:@define IPV4_IN_IPV6 1
15948 _ACEOF
15949
15950                         IPV4_IN6_HACK_MSG="yes" 
15951                 else
15952                         echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6
15954                 fi
15955         
15956 else
15957   
15958                 if test "x$inet6_default_4in6" = "xyes"; then
15959                         echo "$as_me:$LINENO: result: yes (default)" >&5
15960 echo "${ECHO_T}yes (default)" >&6
15961                         cat >>confdefs.h <<\_ACEOF
15962 @%:@define IPV4_IN_IPV6 1
15963 _ACEOF
15964
15965                         IPV4_IN6_HACK_MSG="yes" 
15966                 else
15967                         echo "$as_me:$LINENO: result: no (default)" >&5
15968 echo "${ECHO_T}no (default)" >&6
15969                 fi
15970         
15971
15972 fi; 
15973
15974 # Whether to enable BSD auth support
15975 BSD_AUTH_MSG=no
15976
15977 # Check whether --with-bsd-auth or --without-bsd-auth was given.
15978 if test "${with_bsd_auth+set}" = set; then
15979   withval="$with_bsd_auth"
15980   
15981                 if test "x$withval" != "xno" ; then     
15982                         cat >>confdefs.h <<\_ACEOF
15983 @%:@define BSD_AUTH 1
15984 _ACEOF
15985
15986                         BSD_AUTH_MSG=yes
15987                 fi
15988         
15989
15990 fi; 
15991
15992 echo "$as_me:$LINENO: checking whether to install ssh as suid root" >&5
15993 echo $ECHO_N "checking whether to install ssh as suid root... $ECHO_C" >&6
15994 # Check whether --enable-suid-ssh or --disable-suid-ssh was given.
15995 if test "${enable_suid_ssh+set}" = set; then
15996   enableval="$enable_suid_ssh"
15997    case "$enableval" in
15998   no)
15999        echo "$as_me:$LINENO: result: no" >&5
16000 echo "${ECHO_T}no" >&6
16001        SSHMODE=0711
16002        ;;
16003   *)   echo "$as_me:$LINENO: result: yes" >&5
16004 echo "${ECHO_T}yes" >&6
16005        SSHMODE=4711
16006        ;;
16007   esac 
16008 else
16009   echo "$as_me:$LINENO: result: yes" >&5
16010 echo "${ECHO_T}yes" >&6
16011   SSHMODE=4711
16012
16013 fi; 
16014
16015
16016
16017 # Where to place sshd.pid
16018 piddir=/var/run
16019 # make sure the directory exists
16020 if test ! -d $piddir ; then     
16021         piddir=`eval echo ${sysconfdir}`
16022         case $piddir in
16023                 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16024         esac
16025 fi
16026
16027
16028 # Check whether --with-pid-dir or --without-pid-dir was given.
16029 if test "${with_pid_dir+set}" = set; then
16030   withval="$with_pid_dir"
16031   
16032                 if test "x$withval" != "xno" ; then     
16033                         piddir=$withval
16034                         if test ! -d $piddir ; then     
16035                         { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
16036 echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16037                         fi
16038                 fi
16039         
16040
16041 fi; 
16042
16043 cat >>confdefs.h <<_ACEOF
16044 @%:@define _PATH_SSH_PIDDIR "$piddir"
16045 _ACEOF
16046
16047
16048
16049 # Check whether --enable-lastlog or --disable-lastlog was given.
16050 if test "${enable_lastlog+set}" = set; then
16051   enableval="$enable_lastlog"
16052    cat >>confdefs.h <<\_ACEOF
16053 @%:@define DISABLE_LASTLOG 1
16054 _ACEOF
16055  
16056
16057 fi; 
16058 # Check whether --enable-utmp or --disable-utmp was given.
16059 if test "${enable_utmp+set}" = set; then
16060   enableval="$enable_utmp"
16061    cat >>confdefs.h <<\_ACEOF
16062 @%:@define DISABLE_UTMP 1
16063 _ACEOF
16064  
16065
16066 fi; 
16067 # Check whether --enable-utmpx or --disable-utmpx was given.
16068 if test "${enable_utmpx+set}" = set; then
16069   enableval="$enable_utmpx"
16070    cat >>confdefs.h <<\_ACEOF
16071 @%:@define DISABLE_UTMPX 1
16072 _ACEOF
16073  
16074
16075 fi; 
16076 # Check whether --enable-wtmp or --disable-wtmp was given.
16077 if test "${enable_wtmp+set}" = set; then
16078   enableval="$enable_wtmp"
16079    cat >>confdefs.h <<\_ACEOF
16080 @%:@define DISABLE_WTMP 1
16081 _ACEOF
16082  
16083
16084 fi; 
16085 # Check whether --enable-wtmpx or --disable-wtmpx was given.
16086 if test "${enable_wtmpx+set}" = set; then
16087   enableval="$enable_wtmpx"
16088    cat >>confdefs.h <<\_ACEOF
16089 @%:@define DISABLE_WTMPX 1
16090 _ACEOF
16091  
16092
16093 fi; 
16094 # Check whether --enable-libutil or --disable-libutil was given.
16095 if test "${enable_libutil+set}" = set; then
16096   enableval="$enable_libutil"
16097    cat >>confdefs.h <<\_ACEOF
16098 @%:@define DISABLE_LOGIN 1
16099 _ACEOF
16100  
16101
16102 fi; 
16103 # Check whether --enable-pututline or --disable-pututline was given.
16104 if test "${enable_pututline+set}" = set; then
16105   enableval="$enable_pututline"
16106    cat >>confdefs.h <<\_ACEOF
16107 @%:@define DISABLE_PUTUTLINE 1
16108 _ACEOF
16109  
16110
16111 fi; 
16112 # Check whether --enable-pututxline or --disable-pututxline was given.
16113 if test "${enable_pututxline+set}" = set; then
16114   enableval="$enable_pututxline"
16115    cat >>confdefs.h <<\_ACEOF
16116 @%:@define DISABLE_PUTUTXLINE 1
16117 _ACEOF
16118  
16119
16120 fi; 
16121
16122 # Check whether --with-lastlog or --without-lastlog was given.
16123 if test "${with_lastlog+set}" = set; then
16124   withval="$with_lastlog"
16125   
16126                 if test "x$withval" = "xno" ; then      
16127                         cat >>confdefs.h <<\_ACEOF
16128 @%:@define DISABLE_LASTLOG 1
16129 _ACEOF
16130
16131                 else
16132                         conf_lastlog_location=$withval
16133                 fi
16134         
16135
16136 fi; 
16137
16138
16139 echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
16140 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
16141 cat >conftest.$ac_ext <<_ACEOF
16142 #line $LINENO "configure"
16143 #include "confdefs.h"
16144
16145 #include <sys/types.h>
16146 #include <utmp.h>
16147 #ifdef HAVE_LASTLOG_H
16148 #  include <lastlog.h>
16149 #endif
16150 #ifdef HAVE_PATHS_H
16151 #  include <paths.h>
16152 #endif
16153 #ifdef HAVE_LOGIN_H
16154 # include <login.h>
16155 #endif
16156         
16157 #ifdef F77_DUMMY_MAIN
16158 #  ifdef __cplusplus
16159      extern "C"
16160 #  endif
16161    int F77_DUMMY_MAIN() { return 1; }
16162 #endif
16163 int
16164 main ()
16165 {
16166  char *lastlog = LASTLOG_FILE; 
16167   ;
16168   return 0;
16169 }
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173   (eval $ac_compile) 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } &&
16177          { ac_try='test -s conftest.$ac_objext'
16178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179   (eval $ac_try) 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); }; }; then
16183    echo "$as_me:$LINENO: result: yes" >&5
16184 echo "${ECHO_T}yes" >&6 
16185 else
16186   echo "$as_me: failed program was:" >&5
16187 cat conftest.$ac_ext >&5
16188
16189                 echo "$as_me:$LINENO: result: no" >&5
16190 echo "${ECHO_T}no" >&6
16191                 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16192 echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16193                 cat >conftest.$ac_ext <<_ACEOF
16194 #line $LINENO "configure"
16195 #include "confdefs.h"
16196
16197 #include <sys/types.h>
16198 #include <utmp.h>
16199 #ifdef HAVE_LASTLOG_H
16200 #  include <lastlog.h>
16201 #endif
16202 #ifdef HAVE_PATHS_H
16203 #  include <paths.h>
16204 #endif
16205                 
16206 #ifdef F77_DUMMY_MAIN
16207 #  ifdef __cplusplus
16208      extern "C"
16209 #  endif
16210    int F77_DUMMY_MAIN() { return 1; }
16211 #endif
16212 int
16213 main ()
16214 {
16215  char *lastlog = _PATH_LASTLOG; 
16216   ;
16217   return 0;
16218 }
16219 _ACEOF
16220 rm -f conftest.$ac_objext
16221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16222   (eval $ac_compile) 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); } &&
16226          { ac_try='test -s conftest.$ac_objext'
16227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228   (eval $ac_try) 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); }; }; then
16232    echo "$as_me:$LINENO: result: yes" >&5
16233 echo "${ECHO_T}yes" >&6 
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 cat conftest.$ac_ext >&5
16237
16238                         echo "$as_me:$LINENO: result: no" >&5
16239 echo "${ECHO_T}no" >&6
16240                         system_lastlog_path=no
16241                 
16242 fi
16243 rm -f conftest.$ac_objext conftest.$ac_ext
16244         
16245
16246 fi
16247 rm -f conftest.$ac_objext conftest.$ac_ext
16248
16249 if test -z "$conf_lastlog_location"; then
16250         if test x"$system_lastlog_path" = x"no" ; then
16251                 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16252                                 if (test -d "$f" || test -f "$f") ; then
16253                                         conf_lastlog_location=$f
16254                                 fi
16255                 done
16256                 if test -z "$conf_lastlog_location"; then
16257                         { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16258 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16259                                         fi
16260         fi
16261 fi
16262
16263 if test -n "$conf_lastlog_location"; then
16264         cat >>confdefs.h <<_ACEOF
16265 @%:@define CONF_LASTLOG_FILE "$conf_lastlog_location"
16266 _ACEOF
16267
16268 fi      
16269
16270 echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16271 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16272 cat >conftest.$ac_ext <<_ACEOF
16273 #line $LINENO "configure"
16274 #include "confdefs.h"
16275
16276 #include <sys/types.h>
16277 #include <utmp.h>
16278 #ifdef HAVE_PATHS_H
16279 #  include <paths.h>
16280 #endif
16281         
16282 #ifdef F77_DUMMY_MAIN
16283 #  ifdef __cplusplus
16284      extern "C"
16285 #  endif
16286    int F77_DUMMY_MAIN() { return 1; }
16287 #endif
16288 int
16289 main ()
16290 {
16291  char *utmp = UTMP_FILE; 
16292   ;
16293   return 0;
16294 }
16295 _ACEOF
16296 rm -f conftest.$ac_objext
16297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298   (eval $ac_compile) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); } &&
16302          { ac_try='test -s conftest.$ac_objext'
16303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304   (eval $ac_try) 2>&5
16305   ac_status=$?
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); }; }; then
16308    echo "$as_me:$LINENO: result: yes" >&5
16309 echo "${ECHO_T}yes" >&6 
16310 else
16311   echo "$as_me: failed program was:" >&5
16312 cat conftest.$ac_ext >&5
16313  echo "$as_me:$LINENO: result: no" >&5
16314 echo "${ECHO_T}no" >&6
16315           system_utmp_path=no 
16316
16317 fi
16318 rm -f conftest.$ac_objext conftest.$ac_ext
16319 if test -z "$conf_utmp_location"; then
16320         if test x"$system_utmp_path" = x"no" ; then
16321                 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16322                         if test -f $f ; then
16323                                 conf_utmp_location=$f
16324                         fi
16325                 done
16326                 if test -z "$conf_utmp_location"; then
16327                         cat >>confdefs.h <<\_ACEOF
16328 @%:@define DISABLE_UTMP 1
16329 _ACEOF
16330
16331                 fi
16332         fi
16333 fi
16334 if test -n "$conf_utmp_location"; then
16335         cat >>confdefs.h <<_ACEOF
16336 @%:@define CONF_UTMP_FILE "$conf_utmp_location"
16337 _ACEOF
16338
16339 fi      
16340
16341 echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
16342 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16343 cat >conftest.$ac_ext <<_ACEOF
16344 #line $LINENO "configure"
16345 #include "confdefs.h"
16346
16347 #include <sys/types.h>
16348 #include <utmp.h>
16349 #ifdef HAVE_PATHS_H
16350 #  include <paths.h>
16351 #endif
16352         
16353 #ifdef F77_DUMMY_MAIN
16354 #  ifdef __cplusplus
16355      extern "C"
16356 #  endif
16357    int F77_DUMMY_MAIN() { return 1; }
16358 #endif
16359 int
16360 main ()
16361 {
16362  char *wtmp = WTMP_FILE; 
16363   ;
16364   return 0;
16365 }
16366 _ACEOF
16367 rm -f conftest.$ac_objext
16368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16369   (eval $ac_compile) 2>&5
16370   ac_status=$?
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   (exit $ac_status); } &&
16373          { ac_try='test -s conftest.$ac_objext'
16374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375   (eval $ac_try) 2>&5
16376   ac_status=$?
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); }; }; then
16379    echo "$as_me:$LINENO: result: yes" >&5
16380 echo "${ECHO_T}yes" >&6 
16381 else
16382   echo "$as_me: failed program was:" >&5
16383 cat conftest.$ac_ext >&5
16384  echo "$as_me:$LINENO: result: no" >&5
16385 echo "${ECHO_T}no" >&6
16386           system_wtmp_path=no 
16387
16388 fi
16389 rm -f conftest.$ac_objext conftest.$ac_ext
16390 if test -z "$conf_wtmp_location"; then
16391         if test x"$system_wtmp_path" = x"no" ; then
16392                 for f in /usr/adm/wtmp /var/log/wtmp; do
16393                         if test -f $f ; then
16394                                 conf_wtmp_location=$f
16395                         fi
16396                 done
16397                 if test -z "$conf_wtmp_location"; then
16398                         cat >>confdefs.h <<\_ACEOF
16399 @%:@define DISABLE_WTMP 1
16400 _ACEOF
16401
16402                 fi
16403         fi
16404 fi
16405 if test -n "$conf_wtmp_location"; then
16406         cat >>confdefs.h <<_ACEOF
16407 @%:@define CONF_WTMP_FILE "$conf_wtmp_location"
16408 _ACEOF
16409
16410 fi      
16411
16412
16413 echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
16414 echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16415 cat >conftest.$ac_ext <<_ACEOF
16416 #line $LINENO "configure"
16417 #include "confdefs.h"
16418
16419 #include <sys/types.h>
16420 #include <utmp.h>
16421 #ifdef HAVE_UTMPX_H
16422 #include <utmpx.h>
16423 #endif
16424 #ifdef HAVE_PATHS_H
16425 #  include <paths.h>
16426 #endif
16427         
16428 #ifdef F77_DUMMY_MAIN
16429 #  ifdef __cplusplus
16430      extern "C"
16431 #  endif
16432    int F77_DUMMY_MAIN() { return 1; }
16433 #endif
16434 int
16435 main ()
16436 {
16437  char *utmpx = UTMPX_FILE; 
16438   ;
16439   return 0;
16440 }
16441 _ACEOF
16442 rm -f conftest.$ac_objext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16444   (eval $ac_compile) 2>&5
16445   ac_status=$?
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); } &&
16448          { ac_try='test -s conftest.$ac_objext'
16449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450   (eval $ac_try) 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; }; then
16454    echo "$as_me:$LINENO: result: yes" >&5
16455 echo "${ECHO_T}yes" >&6 
16456 else
16457   echo "$as_me: failed program was:" >&5
16458 cat conftest.$ac_ext >&5
16459  echo "$as_me:$LINENO: result: no" >&5
16460 echo "${ECHO_T}no" >&6
16461           system_utmpx_path=no 
16462
16463 fi
16464 rm -f conftest.$ac_objext conftest.$ac_ext
16465 if test -z "$conf_utmpx_location"; then
16466         if test x"$system_utmpx_path" = x"no" ; then
16467                 cat >>confdefs.h <<\_ACEOF
16468 @%:@define DISABLE_UTMPX 1
16469 _ACEOF
16470
16471         fi
16472 else
16473         cat >>confdefs.h <<_ACEOF
16474 @%:@define CONF_UTMPX_FILE "$conf_utmpx_location"
16475 _ACEOF
16476
16477 fi      
16478
16479 echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
16480 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16481 cat >conftest.$ac_ext <<_ACEOF
16482 #line $LINENO "configure"
16483 #include "confdefs.h"
16484
16485 #include <sys/types.h>
16486 #include <utmp.h>
16487 #ifdef HAVE_UTMPX_H
16488 #include <utmpx.h>
16489 #endif
16490 #ifdef HAVE_PATHS_H
16491 #  include <paths.h>
16492 #endif
16493         
16494 #ifdef F77_DUMMY_MAIN
16495 #  ifdef __cplusplus
16496      extern "C"
16497 #  endif
16498    int F77_DUMMY_MAIN() { return 1; }
16499 #endif
16500 int
16501 main ()
16502 {
16503  char *wtmpx = WTMPX_FILE; 
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 rm -f conftest.$ac_objext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16510   (eval $ac_compile) 2>&5
16511   ac_status=$?
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); } &&
16514          { ac_try='test -s conftest.$ac_objext'
16515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516   (eval $ac_try) 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; }; then
16520    echo "$as_me:$LINENO: result: yes" >&5
16521 echo "${ECHO_T}yes" >&6 
16522 else
16523   echo "$as_me: failed program was:" >&5
16524 cat conftest.$ac_ext >&5
16525  echo "$as_me:$LINENO: result: no" >&5
16526 echo "${ECHO_T}no" >&6
16527           system_wtmpx_path=no 
16528
16529 fi
16530 rm -f conftest.$ac_objext conftest.$ac_ext
16531 if test -z "$conf_wtmpx_location"; then
16532         if test x"$system_wtmpx_path" = x"no" ; then
16533                 cat >>confdefs.h <<\_ACEOF
16534 @%:@define DISABLE_WTMPX 1
16535 _ACEOF
16536
16537         fi
16538 else
16539         cat >>confdefs.h <<_ACEOF
16540 @%:@define CONF_WTMPX_FILE "$conf_wtmpx_location"
16541 _ACEOF
16542
16543 fi      
16544
16545
16546 if test ! -z "$blibpath" ; then
16547         LDFLAGS="$LDFLAGS -blibpath:$blibpath"
16548         { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5
16549 echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
16550 fi
16551
16552 if test "$PAM_MSG" = yes ; then
16553         LIBS=`echo $LIBS | sed 's/-lpam //'`
16554 fi
16555 if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16556         LIBS=`echo $LIBS | sed 's/-ldl //'`
16557 fi
16558
16559
16560 ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16561
16562 cat >confcache <<\_ACEOF
16563 # This file is a shell script that caches the results of configure
16564 # tests run on this system so they can be shared between configure
16565 # scripts and configure runs, see configure's option --config-cache.
16566 # It is not useful on other systems.  If it contains results you don't
16567 # want to keep, you may remove or edit it.
16568 #
16569 # config.status only pays attention to the cache file if you give it
16570 # the --recheck option to rerun configure.
16571 #
16572 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16573 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16574 # following values.
16575
16576 _ACEOF
16577
16578 # The following way of writing the cache mishandles newlines in values,
16579 # but we know of no workaround that is simple, portable, and efficient.
16580 # So, don't put newlines in cache variables' values.
16581 # Ultrix sh set writes to stderr and can't be redirected directly,
16582 # and sets the high bit in the cache file unless we assign to the vars.
16583 {
16584   (set) 2>&1 |
16585     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16586     *ac_space=\ *)
16587       # `set' does not quote correctly, so add quotes (double-quote
16588       # substitution turns \\\\ into \\, and sed turns \\ into \).
16589       sed -n \
16590         "s/'/'\\\\''/g;
16591           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16592       ;;
16593     *)
16594       # `set' quotes correctly as required by POSIX, so do not add quotes.
16595       sed -n \
16596         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16597       ;;
16598     esac;
16599 } |
16600   sed '
16601      t clear
16602      : clear
16603      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16604      t end
16605      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16606      : end' >>confcache
16607 if cmp -s $cache_file confcache; then :; else
16608   if test -w $cache_file; then
16609     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16610     cat confcache >$cache_file
16611   else
16612     echo "not updating unwritable cache $cache_file"
16613   fi
16614 fi
16615 rm -f confcache
16616
16617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16618 # Let make expand exec_prefix.
16619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16620
16621 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16622 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16623 # trailing colons and then remove the whole line if VPATH becomes empty
16624 # (actually we leave an empty line to preserve line numbers).
16625 if test "x$srcdir" = x.; then
16626   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16627 s/:*\$(srcdir):*/:/;
16628 s/:*\${srcdir}:*/:/;
16629 s/:*@srcdir@:*/:/;
16630 s/^\([^=]*=[    ]*\):*/\1/;
16631 s/:*$//;
16632 s/^[^=]*=[      ]*$//;
16633 }'
16634 fi
16635
16636 DEFS=-DHAVE_CONFIG_H
16637
16638
16639 : ${CONFIG_STATUS=./config.status}
16640 ac_clean_files_save=$ac_clean_files
16641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16642 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16643 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16644 cat >$CONFIG_STATUS <<_ACEOF
16645 #! $SHELL
16646 # Generated by $as_me.
16647 # Run this file to recreate the current configuration.
16648 # Compiler output produced by configure, useful for debugging
16649 # configure, is in config.log if it exists.
16650
16651 debug=false
16652 SHELL=\${CONFIG_SHELL-$SHELL}
16653 _ACEOF
16654
16655 cat >>$CONFIG_STATUS <<\_ACEOF
16656
16657 ## --------------------- ##
16658 ## M4sh Initialization.  ##
16659 ## --------------------- ##
16660
16661 # Be Bourne compatible
16662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16663   emulate sh
16664   NULLCMD=:
16665 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16666   set -o posix
16667 fi
16668
16669 # NLS nuisances.
16670 # Support unset when possible.
16671 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16672   as_unset=unset
16673 else
16674   as_unset=false
16675 fi
16676
16677 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16678     { $as_unset LANG || test "${LANG+set}" != set; } ||
16679       { LANG=C; export LANG; }
16680 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16681     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16682       { LC_ALL=C; export LC_ALL; }
16683 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16684     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16685       { LC_TIME=C; export LC_TIME; }
16686 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16687     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16688       { LC_CTYPE=C; export LC_CTYPE; }
16689 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16690     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16691       { LANGUAGE=C; export LANGUAGE; }
16692 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16693     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16694       { LC_COLLATE=C; export LC_COLLATE; }
16695 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16696     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16697       { LC_NUMERIC=C; export LC_NUMERIC; }
16698 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16699     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16700       { LC_MESSAGES=C; export LC_MESSAGES; }
16701
16702
16703 # Name of the executable.
16704 as_me=`(basename "$0") 2>/dev/null ||
16705 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16706          X"$0" : 'X\(//\)$' \| \
16707          X"$0" : 'X\(/\)$' \| \
16708          .     : '\(.\)' 2>/dev/null ||
16709 echo X/"$0" |
16710     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16711           /^X\/\(\/\/\)$/{ s//\1/; q; }
16712           /^X\/\(\/\).*/{ s//\1/; q; }
16713           s/.*/./; q'`
16714
16715 # PATH needs CR, and LINENO needs CR and PATH.
16716 # Avoid depending upon Character Ranges.
16717 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16718 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16719 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16720 as_cr_digits='0123456789'
16721 as_cr_alnum=$as_cr_Letters$as_cr_digits
16722
16723 # The user is always right.
16724 if test "${PATH_SEPARATOR+set}" != set; then
16725   echo "#! /bin/sh" >conftest.sh
16726   echo  "exit 0"   >>conftest.sh
16727   chmod +x conftest.sh
16728   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16729     PATH_SEPARATOR=';'
16730   else
16731     PATH_SEPARATOR=:
16732   fi
16733   rm -f conftest.sh
16734 fi
16735
16736
16737   as_lineno_1=$LINENO
16738   as_lineno_2=$LINENO
16739   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16740   test "x$as_lineno_1" != "x$as_lineno_2" &&
16741   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16742   # Find who we are.  Look in the path if we contain no path at all
16743   # relative or not.
16744   case $0 in
16745     *[\\/]* ) as_myself=$0 ;;
16746     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16747 for as_dir in $PATH
16748 do
16749   IFS=$as_save_IFS
16750   test -z "$as_dir" && as_dir=.
16751   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16752 done
16753
16754        ;;
16755   esac
16756   # We did not find ourselves, most probably we were run as `sh COMMAND'
16757   # in which case we are not to be found in the path.
16758   if test "x$as_myself" = x; then
16759     as_myself=$0
16760   fi
16761   if test ! -f "$as_myself"; then
16762     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16763 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16764    { (exit 1); exit 1; }; }
16765   fi
16766   case $CONFIG_SHELL in
16767   '')
16768     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16769 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16770 do
16771   IFS=$as_save_IFS
16772   test -z "$as_dir" && as_dir=.
16773   for as_base in sh bash ksh sh5; do
16774          case $as_dir in
16775          /*)
16776            if ("$as_dir/$as_base" -c '
16777   as_lineno_1=$LINENO
16778   as_lineno_2=$LINENO
16779   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16780   test "x$as_lineno_1" != "x$as_lineno_2" &&
16781   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16782              CONFIG_SHELL=$as_dir/$as_base
16783              export CONFIG_SHELL
16784              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16785            fi;;
16786          esac
16787        done
16788 done
16789 ;;
16790   esac
16791
16792   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16793   # uniformly replaced by the line number.  The first 'sed' inserts a
16794   # line-number line before each line; the second 'sed' does the real
16795   # work.  The second script uses 'N' to pair each line-number line
16796   # with the numbered line, and appends trailing '-' during
16797   # substitution so that $LINENO is not a special case at line end.
16798   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16799   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16800   sed '=' <$as_myself |
16801     sed '
16802       N
16803       s,$,-,
16804       : loop
16805       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16806       t loop
16807       s,-$,,
16808       s,^['$as_cr_digits']*\n,,
16809     ' >$as_me.lineno &&
16810   chmod +x $as_me.lineno ||
16811     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16812 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16813    { (exit 1); exit 1; }; }
16814
16815   # Don't try to exec as it changes $[0], causing all sort of problems
16816   # (the dirname of $[0] is not the place where we might find the
16817   # original and so on.  Autoconf is especially sensible to this).
16818   . ./$as_me.lineno
16819   # Exit status is that of the last command.
16820   exit
16821 }
16822
16823
16824 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16825   *c*,-n*) ECHO_N= ECHO_C='
16826 ' ECHO_T='      ' ;;
16827   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16828   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16829 esac
16830
16831 if expr a : '\(a\)' >/dev/null 2>&1; then
16832   as_expr=expr
16833 else
16834   as_expr=false
16835 fi
16836
16837 rm -f conf$$ conf$$.exe conf$$.file
16838 echo >conf$$.file
16839 if ln -s conf$$.file conf$$ 2>/dev/null; then
16840   # We could just check for DJGPP; but this test a) works b) is more generic
16841   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16842   if test -f conf$$.exe; then
16843     # Don't use ln at all; we don't have any links
16844     as_ln_s='cp -p'
16845   else
16846     as_ln_s='ln -s'
16847   fi
16848 elif ln conf$$.file conf$$ 2>/dev/null; then
16849   as_ln_s=ln
16850 else
16851   as_ln_s='cp -p'
16852 fi
16853 rm -f conf$$ conf$$.exe conf$$.file
16854
16855 as_executable_p="test -f"
16856
16857 # Sed expression to map a string onto a valid CPP name.
16858 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16859
16860 # Sed expression to map a string onto a valid variable name.
16861 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16862
16863
16864 # IFS
16865 # We need space, tab and new line, in precisely that order.
16866 as_nl='
16867 '
16868 IFS="   $as_nl"
16869
16870 # CDPATH.
16871 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16872
16873 exec 6>&1
16874
16875 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16876 # report actual input values of CONFIG_FILES etc. instead of their
16877 # values after options handling.  Logging --version etc. is OK.
16878 exec 5>>config.log
16879 {
16880   echo
16881   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16882 @%:@@%:@ Running $as_me. @%:@@%:@
16883 _ASBOX
16884 } >&5
16885 cat >&5 <<_CSEOF
16886
16887 This file was extended by $as_me, which was
16888 generated by GNU Autoconf 2.53.  Invocation command line was
16889
16890   CONFIG_FILES    = $CONFIG_FILES
16891   CONFIG_HEADERS  = $CONFIG_HEADERS
16892   CONFIG_LINKS    = $CONFIG_LINKS
16893   CONFIG_COMMANDS = $CONFIG_COMMANDS
16894   $ $0 $@
16895
16896 _CSEOF
16897 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16898 echo >&5
16899 _ACEOF
16900
16901 # Files that config.status was made for.
16902 if test -n "$ac_config_files"; then
16903   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16904 fi
16905
16906 if test -n "$ac_config_headers"; then
16907   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16908 fi
16909
16910 if test -n "$ac_config_links"; then
16911   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16912 fi
16913
16914 if test -n "$ac_config_commands"; then
16915   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16916 fi
16917
16918 cat >>$CONFIG_STATUS <<\_ACEOF
16919
16920 ac_cs_usage="\
16921 \`$as_me' instantiates files from templates according to the
16922 current configuration.
16923
16924 Usage: $0 [OPTIONS] [FILE]...
16925
16926   -h, --help       print this help, then exit
16927   -V, --version    print version number, then exit
16928   -d, --debug      don't remove temporary files
16929       --recheck    update $as_me by reconfiguring in the same conditions
16930   --file=FILE[:TEMPLATE]
16931                    instantiate the configuration file FILE
16932   --header=FILE[:TEMPLATE]
16933                    instantiate the configuration header FILE
16934
16935 Configuration files:
16936 $config_files
16937
16938 Configuration headers:
16939 $config_headers
16940
16941 Report bugs to <bug-autoconf@gnu.org>."
16942 _ACEOF
16943
16944 cat >>$CONFIG_STATUS <<_ACEOF
16945 ac_cs_version="\\
16946 config.status
16947 configured by $0, generated by GNU Autoconf 2.53,
16948   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16949
16950 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16951 Free Software Foundation, Inc.
16952 This config.status script is free software; the Free Software Foundation
16953 gives unlimited permission to copy, distribute and modify it."
16954 srcdir=$srcdir
16955 INSTALL="$INSTALL"
16956 _ACEOF
16957
16958 cat >>$CONFIG_STATUS <<\_ACEOF
16959 # If no file are specified by the user, then we need to provide default
16960 # value.  By we need to know if files were specified by the user.
16961 ac_need_defaults=:
16962 while test $# != 0
16963 do
16964   case $1 in
16965   --*=*)
16966     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16967     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16968     shift
16969     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16970     shift
16971     ;;
16972   -*);;
16973   *) # This is not an option, so the user has probably given explicit
16974      # arguments.
16975      ac_need_defaults=false;;
16976   esac
16977
16978   case $1 in
16979   # Handling of the options.
16980 _ACEOF
16981 cat >>$CONFIG_STATUS <<_ACEOF
16982   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16983     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16984     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16985 _ACEOF
16986 cat >>$CONFIG_STATUS <<\_ACEOF
16987   --version | --vers* | -V )
16988     echo "$ac_cs_version"; exit 0 ;;
16989   --he | --h)
16990     # Conflict between --help and --header
16991     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16992 Try \`$0 --help' for more information." >&5
16993 echo "$as_me: error: ambiguous option: $1
16994 Try \`$0 --help' for more information." >&2;}
16995    { (exit 1); exit 1; }; };;
16996   --help | --hel | -h )
16997     echo "$ac_cs_usage"; exit 0 ;;
16998   --debug | --d* | -d )
16999     debug=: ;;
17000   --file | --fil | --fi | --f )
17001     shift
17002     CONFIG_FILES="$CONFIG_FILES $1"
17003     ac_need_defaults=false;;
17004   --header | --heade | --head | --hea )
17005     shift
17006     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17007     ac_need_defaults=false;;
17008
17009   # This is an error.
17010   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17011 Try \`$0 --help' for more information." >&5
17012 echo "$as_me: error: unrecognized option: $1
17013 Try \`$0 --help' for more information." >&2;}
17014    { (exit 1); exit 1; }; } ;;
17015
17016   *) ac_config_targets="$ac_config_targets $1" ;;
17017
17018   esac
17019   shift
17020 done
17021
17022 _ACEOF
17023
17024
17025
17026
17027
17028 cat >>$CONFIG_STATUS <<\_ACEOF
17029 for ac_config_target in $ac_config_targets
17030 do
17031   case "$ac_config_target" in
17032   # Handling of arguments.
17033   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17034   "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17035   "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
17036   "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17037   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17038   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17039 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17040    { (exit 1); exit 1; }; };;
17041   esac
17042 done
17043
17044 # If the user did not use the arguments to specify the items to instantiate,
17045 # then the envvar interface is used.  Set only those that are not.
17046 # We use the long form for the default assignment because of an extremely
17047 # bizarre bug on SunOS 4.1.3.
17048 if $ac_need_defaults; then
17049   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17050   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17051 fi
17052
17053 # Create a temporary directory, and hook for its removal unless debugging.
17054 $debug ||
17055 {
17056   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17057   trap '{ (exit 1); exit 1; }' 1 2 13 15
17058 }
17059
17060 # Create a (secure) tmp directory for tmp files.
17061 : ${TMPDIR=/tmp}
17062 {
17063   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17064   test -n "$tmp" && test -d "$tmp"
17065 }  ||
17066 {
17067   tmp=$TMPDIR/cs$$-$RANDOM
17068   (umask 077 && mkdir $tmp)
17069 } ||
17070 {
17071    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17072    { (exit 1); exit 1; }
17073 }
17074
17075 _ACEOF
17076
17077 cat >>$CONFIG_STATUS <<_ACEOF
17078
17079 #
17080 # CONFIG_FILES section.
17081 #
17082
17083 # No need to generate the scripts if there are no CONFIG_FILES.
17084 # This happens for instance when ./config.status config.h
17085 if test -n "\$CONFIG_FILES"; then
17086   # Protect against being on the right side of a sed subst in config.status.
17087   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17088    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17089 s,@SHELL@,$SHELL,;t t
17090 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17091 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17092 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17093 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17094 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17095 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17096 s,@exec_prefix@,$exec_prefix,;t t
17097 s,@prefix@,$prefix,;t t
17098 s,@program_transform_name@,$program_transform_name,;t t
17099 s,@bindir@,$bindir,;t t
17100 s,@sbindir@,$sbindir,;t t
17101 s,@libexecdir@,$libexecdir,;t t
17102 s,@datadir@,$datadir,;t t
17103 s,@sysconfdir@,$sysconfdir,;t t
17104 s,@sharedstatedir@,$sharedstatedir,;t t
17105 s,@localstatedir@,$localstatedir,;t t
17106 s,@libdir@,$libdir,;t t
17107 s,@includedir@,$includedir,;t t
17108 s,@oldincludedir@,$oldincludedir,;t t
17109 s,@infodir@,$infodir,;t t
17110 s,@mandir@,$mandir,;t t
17111 s,@build_alias@,$build_alias,;t t
17112 s,@host_alias@,$host_alias,;t t
17113 s,@target_alias@,$target_alias,;t t
17114 s,@DEFS@,$DEFS,;t t
17115 s,@ECHO_C@,$ECHO_C,;t t
17116 s,@ECHO_N@,$ECHO_N,;t t
17117 s,@ECHO_T@,$ECHO_T,;t t
17118 s,@LIBS@,$LIBS,;t t
17119 s,@CC@,$CC,;t t
17120 s,@CFLAGS@,$CFLAGS,;t t
17121 s,@LDFLAGS@,$LDFLAGS,;t t
17122 s,@CPPFLAGS@,$CPPFLAGS,;t t
17123 s,@ac_ct_CC@,$ac_ct_CC,;t t
17124 s,@EXEEXT@,$EXEEXT,;t t
17125 s,@OBJEXT@,$OBJEXT,;t t
17126 s,@build@,$build,;t t
17127 s,@build_cpu@,$build_cpu,;t t
17128 s,@build_vendor@,$build_vendor,;t t
17129 s,@build_os@,$build_os,;t t
17130 s,@host@,$host,;t t
17131 s,@host_cpu@,$host_cpu,;t t
17132 s,@host_vendor@,$host_vendor,;t t
17133 s,@host_os@,$host_os,;t t
17134 s,@CPP@,$CPP,;t t
17135 s,@RANLIB@,$RANLIB,;t t
17136 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17137 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17138 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17139 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17140 s,@AR@,$AR,;t t
17141 s,@PERL@,$PERL,;t t
17142 s,@ENT@,$ENT,;t t
17143 s,@FILEPRIV@,$FILEPRIV,;t t
17144 s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17145 s,@SH@,$SH,;t t
17146 s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17147 s,@LD@,$LD,;t t
17148 s,@LIBWRAP@,$LIBWRAP,;t t
17149 s,@LIBPAM@,$LIBPAM,;t t
17150 s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
17151 s,@PROG_LS@,$PROG_LS,;t t
17152 s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17153 s,@PROG_ARP@,$PROG_ARP,;t t
17154 s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17155 s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17156 s,@PROG_PS@,$PROG_PS,;t t
17157 s,@PROG_SAR@,$PROG_SAR,;t t
17158 s,@PROG_W@,$PROG_W,;t t
17159 s,@PROG_WHO@,$PROG_WHO,;t t
17160 s,@PROG_LAST@,$PROG_LAST,;t t
17161 s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17162 s,@PROG_DF@,$PROG_DF,;t t
17163 s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17164 s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17165 s,@PROG_IPCS@,$PROG_IPCS,;t t
17166 s,@PROG_TAIL@,$PROG_TAIL,;t t
17167 s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17168 s,@NO_SFTP@,$NO_SFTP,;t t
17169 s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17170 s,@rsh_path@,$rsh_path,;t t
17171 s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17172 s,@xauth_path@,$xauth_path,;t t
17173 s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17174 s,@NROFF@,$NROFF,;t t
17175 s,@MANTYPE@,$MANTYPE,;t t
17176 s,@mansubdir@,$mansubdir,;t t
17177 s,@user_path@,$user_path,;t t
17178 s,@SSHMODE@,$SSHMODE,;t t
17179 s,@piddir@,$piddir,;t t
17180 CEOF
17181
17182 _ACEOF
17183
17184   cat >>$CONFIG_STATUS <<\_ACEOF
17185   # Split the substitutions into bite-sized pieces for seds with
17186   # small command number limits, like on Digital OSF/1 and HP-UX.
17187   ac_max_sed_lines=48
17188   ac_sed_frag=1 # Number of current file.
17189   ac_beg=1 # First line for current file.
17190   ac_end=$ac_max_sed_lines # Line after last line for current file.
17191   ac_more_lines=:
17192   ac_sed_cmds=
17193   while $ac_more_lines; do
17194     if test $ac_beg -gt 1; then
17195       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17196     else
17197       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17198     fi
17199     if test ! -s $tmp/subs.frag; then
17200       ac_more_lines=false
17201     else
17202       # The purpose of the label and of the branching condition is to
17203       # speed up the sed processing (if there are no `@' at all, there
17204       # is no need to browse any of the substitutions).
17205       # These are the two extra sed commands mentioned above.
17206       (echo ':t
17207   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17208       if test -z "$ac_sed_cmds"; then
17209         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17210       else
17211         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17212       fi
17213       ac_sed_frag=`expr $ac_sed_frag + 1`
17214       ac_beg=$ac_end
17215       ac_end=`expr $ac_end + $ac_max_sed_lines`
17216     fi
17217   done
17218   if test -z "$ac_sed_cmds"; then
17219     ac_sed_cmds=cat
17220   fi
17221 fi # test -n "$CONFIG_FILES"
17222
17223 _ACEOF
17224 cat >>$CONFIG_STATUS <<\_ACEOF
17225 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17226   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17227   case $ac_file in
17228   - | *:- | *:-:* ) # input from stdin
17229         cat >$tmp/stdin
17230         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17231         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17232   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17233         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17234   * )   ac_file_in=$ac_file.in ;;
17235   esac
17236
17237   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17238   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17240          X"$ac_file" : 'X\(//\)[^/]' \| \
17241          X"$ac_file" : 'X\(//\)$' \| \
17242          X"$ac_file" : 'X\(/\)' \| \
17243          .     : '\(.\)' 2>/dev/null ||
17244 echo X"$ac_file" |
17245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17246           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17247           /^X\(\/\/\)$/{ s//\1/; q; }
17248           /^X\(\/\).*/{ s//\1/; q; }
17249           s/.*/./; q'`
17250   { case "$ac_dir" in
17251   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17252   *)                      as_incr_dir=.;;
17253 esac
17254 as_dummy="$ac_dir"
17255 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17256   case $as_mkdir_dir in
17257     # Skip DOS drivespec
17258     ?:) as_incr_dir=$as_mkdir_dir ;;
17259     *)
17260       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17261       test -d "$as_incr_dir" ||
17262         mkdir "$as_incr_dir" ||
17263         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17264 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17265    { (exit 1); exit 1; }; }
17266     ;;
17267   esac
17268 done; }
17269
17270   ac_builddir=.
17271
17272 if test "$ac_dir" != .; then
17273   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17274   # A "../" for each directory in $ac_dir_suffix.
17275   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17276 else
17277   ac_dir_suffix= ac_top_builddir=
17278 fi
17279
17280 case $srcdir in
17281   .)  # No --srcdir option.  We are building in place.
17282     ac_srcdir=.
17283     if test -z "$ac_top_builddir"; then
17284        ac_top_srcdir=.
17285     else
17286        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17287     fi ;;
17288   [\\/]* | ?:[\\/]* )  # Absolute path.
17289     ac_srcdir=$srcdir$ac_dir_suffix;
17290     ac_top_srcdir=$srcdir ;;
17291   *) # Relative path.
17292     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17293     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17294 esac
17295 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17296 # absolute.
17297 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17298 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17299 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17300 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17301
17302
17303   case $INSTALL in
17304   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17305   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17306   esac
17307
17308   if test x"$ac_file" != x-; then
17309     { echo "$as_me:$LINENO: creating $ac_file" >&5
17310 echo "$as_me: creating $ac_file" >&6;}
17311     rm -f "$ac_file"
17312   fi
17313   # Let's still pretend it is `configure' which instantiates (i.e., don't
17314   # use $as_me), people would be surprised to read:
17315   #    /* config.h.  Generated by config.status.  */
17316   if test x"$ac_file" = x-; then
17317     configure_input=
17318   else
17319     configure_input="$ac_file.  "
17320   fi
17321   configure_input=$configure_input"Generated from `echo $ac_file_in |
17322                                      sed 's,.*/,,'` by configure."
17323
17324   # First look for the input files in the build tree, otherwise in the
17325   # src tree.
17326   ac_file_inputs=`IFS=:
17327     for f in $ac_file_in; do
17328       case $f in
17329       -) echo $tmp/stdin ;;
17330       [\\/$]*)
17331          # Absolute (can't be DOS-style, as IFS=:)
17332          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17333 echo "$as_me: error: cannot find input file: $f" >&2;}
17334    { (exit 1); exit 1; }; }
17335          echo $f;;
17336       *) # Relative
17337          if test -f "$f"; then
17338            # Build tree
17339            echo $f
17340          elif test -f "$srcdir/$f"; then
17341            # Source tree
17342            echo $srcdir/$f
17343          else
17344            # /dev/null tree
17345            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17346 echo "$as_me: error: cannot find input file: $f" >&2;}
17347    { (exit 1); exit 1; }; }
17348          fi;;
17349       esac
17350     done` || { (exit 1); exit 1; }
17351 _ACEOF
17352 cat >>$CONFIG_STATUS <<_ACEOF
17353   sed "$ac_vpsub
17354 $extrasub
17355 _ACEOF
17356 cat >>$CONFIG_STATUS <<\_ACEOF
17357 :t
17358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17359 s,@configure_input@,$configure_input,;t t
17360 s,@srcdir@,$ac_srcdir,;t t
17361 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17362 s,@top_srcdir@,$ac_top_srcdir,;t t
17363 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17364 s,@builddir@,$ac_builddir,;t t
17365 s,@abs_builddir@,$ac_abs_builddir,;t t
17366 s,@top_builddir@,$ac_top_builddir,;t t
17367 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17368 s,@INSTALL@,$ac_INSTALL,;t t
17369 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17370   rm -f $tmp/stdin
17371   if test x"$ac_file" != x-; then
17372     mv $tmp/out $ac_file
17373   else
17374     cat $tmp/out
17375     rm -f $tmp/out
17376   fi
17377
17378 done
17379 _ACEOF
17380 cat >>$CONFIG_STATUS <<\_ACEOF
17381
17382 #
17383 # CONFIG_HEADER section.
17384 #
17385
17386 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17387 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17388 #
17389 # ac_d sets the value in "#define NAME VALUE" lines.
17390 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17391 ac_dB='[        ].*$,\1#\2'
17392 ac_dC=' '
17393 ac_dD=',;t'
17394 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17395 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17396 ac_uB='$,\1#\2define\3'
17397 ac_uC=' '
17398 ac_uD=',;t'
17399
17400 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17401   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17402   case $ac_file in
17403   - | *:- | *:-:* ) # input from stdin
17404         cat >$tmp/stdin
17405         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17406         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17407   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17408         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17409   * )   ac_file_in=$ac_file.in ;;
17410   esac
17411
17412   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17413 echo "$as_me: creating $ac_file" >&6;}
17414
17415   # First look for the input files in the build tree, otherwise in the
17416   # src tree.
17417   ac_file_inputs=`IFS=:
17418     for f in $ac_file_in; do
17419       case $f in
17420       -) echo $tmp/stdin ;;
17421       [\\/$]*)
17422          # Absolute (can't be DOS-style, as IFS=:)
17423          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17424 echo "$as_me: error: cannot find input file: $f" >&2;}
17425    { (exit 1); exit 1; }; }
17426          echo $f;;
17427       *) # Relative
17428          if test -f "$f"; then
17429            # Build tree
17430            echo $f
17431          elif test -f "$srcdir/$f"; then
17432            # Source tree
17433            echo $srcdir/$f
17434          else
17435            # /dev/null tree
17436            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17437 echo "$as_me: error: cannot find input file: $f" >&2;}
17438    { (exit 1); exit 1; }; }
17439          fi;;
17440       esac
17441     done` || { (exit 1); exit 1; }
17442   # Remove the trailing spaces.
17443   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17444
17445 _ACEOF
17446
17447 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17448 # `conftest.undefs', that substitutes the proper values into
17449 # config.h.in to produce config.h.  The first handles `#define'
17450 # templates, and the second `#undef' templates.
17451 # And first: Protect against being on the right side of a sed subst in
17452 # config.status.  Protect against being in an unquoted here document
17453 # in config.status.
17454 rm -f conftest.defines conftest.undefs
17455 # Using a here document instead of a string reduces the quoting nightmare.
17456 # Putting comments in sed scripts is not portable.
17457 #
17458 # `end' is used to avoid that the second main sed command (meant for
17459 # 0-ary CPP macros) applies to n-ary macro definitions.
17460 # See the Autoconf documentation for `clear'.
17461 cat >confdef2sed.sed <<\_ACEOF
17462 s/[\\&,]/\\&/g
17463 s,[\\$`],\\&,g
17464 t clear
17465 : clear
17466 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17467 t end
17468 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17469 : end
17470 _ACEOF
17471 # If some macros were called several times there might be several times
17472 # the same #defines, which is useless.  Nevertheless, we may not want to
17473 # sort them, since we want the *last* AC-DEFINE to be honored.
17474 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17475 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17476 rm -f confdef2sed.sed
17477
17478 # This sed command replaces #undef with comments.  This is necessary, for
17479 # example, in the case of _POSIX_SOURCE, which is predefined and required
17480 # on some systems where configure will not decide to define it.
17481 cat >>conftest.undefs <<\_ACEOF
17482 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17483 _ACEOF
17484
17485 # Break up conftest.defines because some shells have a limit on the size
17486 # of here documents, and old seds have small limits too (100 cmds).
17487 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17488 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17489 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17490 echo '  :' >>$CONFIG_STATUS
17491 rm -f conftest.tail
17492 while grep . conftest.defines >/dev/null
17493 do
17494   # Write a limited-size here document to $tmp/defines.sed.
17495   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17496   # Speed up: don't consider the non `#define' lines.
17497   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17498   # Work around the forget-to-reset-the-flag bug.
17499   echo 't clr' >>$CONFIG_STATUS
17500   echo ': clr' >>$CONFIG_STATUS
17501   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17502   echo 'CEOF
17503   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17504   rm -f $tmp/in
17505   mv $tmp/out $tmp/in
17506 ' >>$CONFIG_STATUS
17507   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17508   rm -f conftest.defines
17509   mv conftest.tail conftest.defines
17510 done
17511 rm -f conftest.defines
17512 echo '  fi # egrep' >>$CONFIG_STATUS
17513 echo >>$CONFIG_STATUS
17514
17515 # Break up conftest.undefs because some shells have a limit on the size
17516 # of here documents, and old seds have small limits too (100 cmds).
17517 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17518 rm -f conftest.tail
17519 while grep . conftest.undefs >/dev/null
17520 do
17521   # Write a limited-size here document to $tmp/undefs.sed.
17522   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17523   # Speed up: don't consider the non `#undef'
17524   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17525   # Work around the forget-to-reset-the-flag bug.
17526   echo 't clr' >>$CONFIG_STATUS
17527   echo ': clr' >>$CONFIG_STATUS
17528   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17529   echo 'CEOF
17530   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17531   rm -f $tmp/in
17532   mv $tmp/out $tmp/in
17533 ' >>$CONFIG_STATUS
17534   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17535   rm -f conftest.undefs
17536   mv conftest.tail conftest.undefs
17537 done
17538 rm -f conftest.undefs
17539
17540 cat >>$CONFIG_STATUS <<\_ACEOF
17541   # Let's still pretend it is `configure' which instantiates (i.e., don't
17542   # use $as_me), people would be surprised to read:
17543   #    /* config.h.  Generated by config.status.  */
17544   if test x"$ac_file" = x-; then
17545     echo "/* Generated by configure.  */" >$tmp/config.h
17546   else
17547     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17548   fi
17549   cat $tmp/in >>$tmp/config.h
17550   rm -f $tmp/in
17551   if test x"$ac_file" != x-; then
17552     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17553       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17554 echo "$as_me: $ac_file is unchanged" >&6;}
17555     else
17556       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17558          X"$ac_file" : 'X\(//\)[^/]' \| \
17559          X"$ac_file" : 'X\(//\)$' \| \
17560          X"$ac_file" : 'X\(/\)' \| \
17561          .     : '\(.\)' 2>/dev/null ||
17562 echo X"$ac_file" |
17563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17564           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17565           /^X\(\/\/\)$/{ s//\1/; q; }
17566           /^X\(\/\).*/{ s//\1/; q; }
17567           s/.*/./; q'`
17568       { case "$ac_dir" in
17569   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17570   *)                      as_incr_dir=.;;
17571 esac
17572 as_dummy="$ac_dir"
17573 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17574   case $as_mkdir_dir in
17575     # Skip DOS drivespec
17576     ?:) as_incr_dir=$as_mkdir_dir ;;
17577     *)
17578       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17579       test -d "$as_incr_dir" ||
17580         mkdir "$as_incr_dir" ||
17581         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17582 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17583    { (exit 1); exit 1; }; }
17584     ;;
17585   esac
17586 done; }
17587
17588       rm -f $ac_file
17589       mv $tmp/config.h $ac_file
17590     fi
17591   else
17592     cat $tmp/config.h
17593     rm -f $tmp/config.h
17594   fi
17595 done
17596 _ACEOF
17597
17598 cat >>$CONFIG_STATUS <<\_ACEOF
17599
17600 { (exit 0); exit 0; }
17601 _ACEOF
17602 chmod +x $CONFIG_STATUS
17603 ac_clean_files=$ac_clean_files_save
17604
17605
17606 # configure is writing to config.log, and then calls config.status.
17607 # config.status does its own redirection, appending to config.log.
17608 # Unfortunately, on DOS this fails, as config.log is still kept open
17609 # by configure, so config.status won't be able to write to it; its
17610 # output is simply discarded.  So we exec the FD to /dev/null,
17611 # effectively closing config.log, so it can be properly (re)opened and
17612 # appended to by config.status.  When coming back to configure, we
17613 # need to make the FD available again.
17614 if test "$no_create" != yes; then
17615   ac_cs_success=:
17616   exec 5>/dev/null
17617   $SHELL $CONFIG_STATUS || ac_cs_success=false
17618   exec 5>>config.log
17619   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17620   # would make configure fail if this is the last instruction.
17621   $ac_cs_success || { (exit 1); exit 1; }
17622 fi
17623
17624
17625 # Print summary of options
17626
17627 # Someone please show me a better way :)
17628 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17629 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17630 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17631 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17632 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17633 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17634 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17635 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17636 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17637 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17638
17639 echo ""
17640 echo "OpenSSH has been configured with the following options:"
17641 echo "                     User binaries: $B"
17642 echo "                   System binaries: $C"
17643 echo "               Configuration files: $D"
17644 echo "                   Askpass program: $E"
17645 echo "                      Manual pages: $F"
17646 echo "                          PID file: $G"
17647 echo "  Privilege separation chroot path: $H"
17648 if test "$USES_LOGIN_CONF" = "yes" ; then
17649 echo "   At runtime, sshd will use the path defined in /etc/login.conf"
17650 else
17651 echo "            sshd default user PATH: $I"
17652 fi
17653 if test ! -z "$superuser_path" ; then
17654 echo "          sshd superuser user PATH: $J"
17655 fi
17656 echo "                    Manpage format: $MANTYPE"
17657 echo "                       PAM support: ${PAM_MSG}"
17658 echo "                KerberosIV support: $KRB4_MSG"
17659 echo "                 KerberosV support: $KRB5_MSG"
17660 echo "                 Smartcard support: $SCARD_MSG"
17661 echo "                       AFS support: $AFS_MSG"
17662 echo "                     S/KEY support: $SKEY_MSG"
17663 echo "              TCP Wrappers support: $TCPW_MSG"
17664 echo "              MD5 password support: $MD5_MSG"
17665 echo "       IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17666 echo "          Use IPv4 by default hack: $IPV4_HACK_MSG"
17667 echo "           Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17668 echo "                  BSD Auth support: $BSD_AUTH_MSG"
17669 echo "              Random number source: $RAND_MSG"
17670 if test ! -z "$USE_RAND_HELPER" ; then
17671 echo "     ssh-rand-helper collects from: $RAND_HELPER_MSG"
17672 fi
17673
17674 echo ""
17675
17676 echo "              Host: ${host}"
17677 echo "          Compiler: ${CC}"
17678 echo "    Compiler flags: ${CFLAGS}"
17679 echo "Preprocessor flags: ${CPPFLAGS}"
17680 echo "      Linker flags: ${LDFLAGS}"
17681 echo "         Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17682
17683 echo ""
17684
17685 if test "x$PAM_MSG" = "xyes" ; then
17686         echo "PAM is enabled. You may need to install a PAM control file "
17687         echo "for sshd, otherwise password authentication may fail. "
17688         echo "Example PAM control files can be found in the contrib/ " 
17689         echo "subdirectory"
17690         echo ""
17691 fi
17692
17693 if test ! -z "$NO_SFTP"; then
17694         echo "sftp-server will be disabled.  Your compiler does not "
17695         echo "support 64bit integers."
17696         echo ""
17697 fi
17698
17699 if test ! -z "$RAND_HELPER_CMDHASH" ; then
17700         echo "WARNING: you are using the builtin random number collection "
17701         echo "service. Please read WARNING.RNG and request that your OS "
17702         echo "vendor includes kernel-based random number collection in "
17703         echo "future versions of your OS."
17704         echo ""
17705 fi
17706
This page took 1.448807 seconds and 3 git commands to generate.