Deleted Added
sdiff udiff text old ( 107207 ) new ( 120945 )
full compact
1#! /bin/sh
2# From configure.in Revision: 1.325.2.2 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.53 for Heimdal 0.5.1.
5#
6# Report bugs to <heimdal-bugs@pdc.kth.se>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12
13# Find the correct PATH separator. Usually this is `:', but
14# DJGPP uses `;' like DOS.
15if test "X${PATH_SEPARATOR+set}" != Xset; then
16 UNAME=${UNAME-`uname 2>/dev/null`}
17 case X$UNAME in
18 *-DOS) lt_cv_sys_path_separator=';' ;;
19 *) lt_cv_sys_path_separator=':' ;;
20 esac
21 PATH_SEPARATOR=$lt_cv_sys_path_separator
22fi
23
24
25# Check that we are running under the correct shell.
26SHELL=${CONFIG_SHELL-/bin/sh}
27
28case X$ECHO in
29X*--fallback-echo)
30 # Remove one level of quotation (which was required for Make).
31 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32 ;;
33esac
34
35echo=${ECHO-echo}
36if test "X$1" = X--no-reexec; then
37 # Discard the --no-reexec flag, and continue.
38 shift
39elif test "X$1" = X--fallback-echo; then
40 # Avoid inline document here, it may be left over
41 :
42elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
43 # Yippee, $echo works!
44 :
45else
46 # Restart under the correct shell.
47 exec $SHELL "$0" --no-reexec ${1+"$@"}
48fi
49
50if test "X$1" = X--fallback-echo; then
51 # used as fallback echo
52 shift
53 cat <<EOF
54
55EOF
56 exit 0
57fi
58
59# The HP-UX ksh and POSIX shell print the target directory to stdout
60# if CDPATH is set.
61if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
62
63if test -z "$ECHO"; then
64if test "X${echo_test_string+set}" != Xset; then
65# find a string as large as possible, as long as the shell can cope with it
66 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
67 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
68 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
69 echo_test_string="`eval $cmd`" &&
70 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
71 then
72 break
73 fi
74 done
75fi
76
77if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
78 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
79 test "X$echo_testing_string" = "X$echo_test_string"; then
80 :
81else
82 # The Solaris, AIX, and Digital Unix default echo programs unquote
83 # backslashes. This makes it impossible to quote backslashes using
84 # echo "$something" | sed 's/\\/\\\\/g'
85 #
86 # So, first we look for a working echo in the user's PATH.
87
88 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
89 for dir in $PATH /usr/ucb; do
90 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
91 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
92 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
93 test "X$echo_testing_string" = "X$echo_test_string"; then
94 echo="$dir/echo"
95 break
96 fi
97 done
98 IFS="$save_ifs"
99
100 if test "X$echo" = Xecho; then
101 # We didn't find a better echo, so look for alternatives.
102 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
103 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
104 test "X$echo_testing_string" = "X$echo_test_string"; then
105 # This shell has a builtin print -r that does the trick.
106 echo='print -r'
107 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
108 test "X$CONFIG_SHELL" != X/bin/ksh; then
109 # If we have ksh, try running configure again with it.
110 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
111 export ORIGINAL_CONFIG_SHELL
112 CONFIG_SHELL=/bin/ksh
113 export CONFIG_SHELL
114 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
115 else
116 # Try using printf.
117 echo='printf %s\n'
118 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
119 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
120 test "X$echo_testing_string" = "X$echo_test_string"; then
121 # Cool, printf works
122 :
123 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
124 test "X$echo_testing_string" = 'X\t' &&
125 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
126 test "X$echo_testing_string" = "X$echo_test_string"; then
127 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
128 export CONFIG_SHELL
129 SHELL="$CONFIG_SHELL"
130 export SHELL
131 echo="$CONFIG_SHELL $0 --fallback-echo"
132 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
133 test "X$echo_testing_string" = 'X\t' &&
134 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
135 test "X$echo_testing_string" = "X$echo_test_string"; then
136 echo="$CONFIG_SHELL $0 --fallback-echo"
137 else
138 # maybe with a smaller string...
139 prev=:
140
141 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
142 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
143 then
144 break
145 fi
146 prev="$cmd"
147 done
148
149 if test "$prev" != 'sed 50q "$0"'; then
150 echo_test_string=`eval $prev`
151 export echo_test_string
152 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
153 else
154 # Oops. We lost completely, so just stick with echo.
155 echo=echo
156 fi
157 fi
158 fi
159 fi
160fi
161fi
162
163# Copy echo and quote the copy suitably for passing to libtool from
164# the Makefile, instead of quoting the original, which is used later.
165ECHO=$echo
166if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
167 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
168fi
169
170
171
172if expr a : '\(a\)' >/dev/null 2>&1; then
173 as_expr=expr
174else
175 as_expr=false
176fi
177
178
179## --------------------- ##
180## M4sh Initialization. ##
181## --------------------- ##
182
183# Be Bourne compatible
184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
185 emulate sh
186 NULLCMD=:
187elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
188 set -o posix
189fi
190
191# NLS nuisances.
192# Support unset when possible.
193if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
194 as_unset=unset
195else
196 as_unset=false
197fi
198
199(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
200 { $as_unset LANG || test "${LANG+set}" != set; } ||
201 { LANG=C; export LANG; }
202(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
203 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
204 { LC_ALL=C; export LC_ALL; }
205(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
206 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
207 { LC_TIME=C; export LC_TIME; }
208(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
209 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
210 { LC_CTYPE=C; export LC_CTYPE; }
211(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
212 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
213 { LANGUAGE=C; export LANGUAGE; }
214(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
215 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
216 { LC_COLLATE=C; export LC_COLLATE; }
217(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
218 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
219 { LC_NUMERIC=C; export LC_NUMERIC; }
220(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
221 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
222 { LC_MESSAGES=C; export LC_MESSAGES; }
223
224
225# Name of the executable.
226as_me=`(basename "$0") 2>/dev/null ||
227$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
228 X"$0" : 'X\(//\)$' \| \
229 X"$0" : 'X\(/\)$' \| \
230 . : '\(.\)' 2>/dev/null ||
231echo X/"$0" |
232 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
233 /^X\/\(\/\/\)$/{ s//\1/; q; }
234 /^X\/\(\/\).*/{ s//\1/; q; }
235 s/.*/./; q'`
236
237# PATH needs CR, and LINENO needs CR and PATH.
238# Avoid depending upon Character Ranges.
239as_cr_letters='abcdefghijklmnopqrstuvwxyz'
240as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
241as_cr_Letters=$as_cr_letters$as_cr_LETTERS
242as_cr_digits='0123456789'
243as_cr_alnum=$as_cr_Letters$as_cr_digits
244
245# The user is always right.
246if test "${PATH_SEPARATOR+set}" != set; then
247 echo "#! /bin/sh" >conftest.sh
248 echo "exit 0" >>conftest.sh
249 chmod +x conftest.sh
250 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
251 PATH_SEPARATOR=';'
252 else
253 PATH_SEPARATOR=:
254 fi
255 rm -f conftest.sh
256fi
257
258
259 as_lineno_1=$LINENO
260 as_lineno_2=$LINENO
261 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
262 test "x$as_lineno_1" != "x$as_lineno_2" &&
263 test "x$as_lineno_3" = "x$as_lineno_2" || {
264 # Find who we are. Look in the path if we contain no path at all
265 # relative or not.
266 case $0 in
267 *[\\/]* ) as_myself=$0 ;;
268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
269for as_dir in $PATH
270do
271 IFS=$as_save_IFS
272 test -z "$as_dir" && as_dir=.
273 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
274done
275
276 ;;
277 esac
278 # We did not find ourselves, most probably we were run as `sh COMMAND'
279 # in which case we are not to be found in the path.
280 if test "x$as_myself" = x; then
281 as_myself=$0
282 fi
283 if test ! -f "$as_myself"; then
284 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
285 { (exit 1); exit 1; }; }
286 fi
287 case $CONFIG_SHELL in
288 '')
289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
290for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
291do
292 IFS=$as_save_IFS
293 test -z "$as_dir" && as_dir=.
294 for as_base in sh bash ksh sh5; do
295 case $as_dir in
296 /*)
297 if ("$as_dir/$as_base" -c '
298 as_lineno_1=$LINENO
299 as_lineno_2=$LINENO
300 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
301 test "x$as_lineno_1" != "x$as_lineno_2" &&
302 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
303 CONFIG_SHELL=$as_dir/$as_base
304 export CONFIG_SHELL
305 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
306 fi;;
307 esac
308 done
309done
310;;
311 esac
312
313 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
314 # uniformly replaced by the line number. The first 'sed' inserts a
315 # line-number line before each line; the second 'sed' does the real
316 # work. The second script uses 'N' to pair each line-number line
317 # with the numbered line, and appends trailing '-' during
318 # substitution so that $LINENO is not a special case at line end.
319 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
320 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
321 sed '=' <$as_myself |
322 sed '
323 N
324 s,$,-,
325 : loop
326 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
327 t loop
328 s,-$,,
329 s,^['$as_cr_digits']*\n,,
330 ' >$as_me.lineno &&
331 chmod +x $as_me.lineno ||
332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
333 { (exit 1); exit 1; }; }
334
335 # Don't try to exec as it changes $[0], causing all sort of problems
336 # (the dirname of $[0] is not the place where we might find the
337 # original and so on. Autoconf is especially sensible to this).
338 . ./$as_me.lineno
339 # Exit status is that of the last command.
340 exit
341}
342
343
344case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
345 *c*,-n*) ECHO_N= ECHO_C='
346' ECHO_T=' ' ;;
347 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
348 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
349esac
350
351if expr a : '\(a\)' >/dev/null 2>&1; then
352 as_expr=expr
353else
354 as_expr=false
355fi
356
357rm -f conf$$ conf$$.exe conf$$.file
358echo >conf$$.file
359if ln -s conf$$.file conf$$ 2>/dev/null; then
360 # We could just check for DJGPP; but this test a) works b) is more generic
361 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
362 if test -f conf$$.exe; then
363 # Don't use ln at all; we don't have any links
364 as_ln_s='cp -p'
365 else
366 as_ln_s='ln -s'
367 fi
368elif ln conf$$.file conf$$ 2>/dev/null; then
369 as_ln_s=ln
370else
371 as_ln_s='cp -p'
372fi
373rm -f conf$$ conf$$.exe conf$$.file
374
375as_executable_p="test -f"
376
377# Sed expression to map a string onto a valid CPP name.
378as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
379
380# Sed expression to map a string onto a valid variable name.
381as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
382
383
384# IFS
385# We need space, tab and new line, in precisely that order.
386as_nl='
387'
388IFS=" $as_nl"
389
390# CDPATH.
391$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
392
393
394# Name of the host.
395# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
396# so uname gets run too.
397ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398
399exec 6>&1
400
401#
402# Initializations.
403#
404ac_default_prefix=/usr/local
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME='Heimdal'
418PACKAGE_TARNAME='heimdal'
419PACKAGE_VERSION='0.5.1'
420PACKAGE_STRING='Heimdal 0.5.1'
421PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se'
422
423ac_unique_file="kuser/kinit.c"
424ac_default_prefix=/usr/heimdal
425# Factoring default headers for most tests.
426ac_includes_default="\
427#include <stdio.h>
428#if HAVE_SYS_TYPES_H
429# include <sys/types.h>
430#endif
431#if HAVE_SYS_STAT_H
432# include <sys/stat.h>
433#endif
434#if STDC_HEADERS
435# include <stdlib.h>
436# include <stddef.h>
437#else
438# if HAVE_STDLIB_H
439# include <stdlib.h>
440# endif
441#endif
442#if HAVE_STRING_H
443# if !STDC_HEADERS && HAVE_MEMORY_H
444# include <memory.h>
445# endif
446# include <string.h>
447#endif
448#if HAVE_STRINGS_H
449# include <strings.h>
450#endif
451#if HAVE_INTTYPES_H
452# include <inttypes.h>
453#else
454# if HAVE_STDINT_H
455# include <stdint.h>
456# endif
457#endif
458#if HAVE_UNISTD_H
459# include <unistd.h>
460#endif"
461
462
463# Initialize some variables set by options.
464ac_init_help=
465ac_init_version=false
466# The variables have the same names as the options, with
467# dashes changed to underlines.
468cache_file=/dev/null
469exec_prefix=NONE
470no_create=
471no_recursion=
472prefix=NONE
473program_prefix=NONE
474program_suffix=NONE
475program_transform_name=s,x,x,
476silent=
477site=
478srcdir=
479verbose=
480x_includes=NONE
481x_libraries=NONE
482
483# Installation directory options.
484# These are left unexpanded so users can "make install exec_prefix=/foo"
485# and all the variables that are supposed to be based on exec_prefix
486# by default will actually change.
487# Use braces instead of parens because sh, perl, etc. also accept them.
488bindir='${exec_prefix}/bin'
489sbindir='${exec_prefix}/sbin'
490libexecdir='${exec_prefix}/libexec'
491datadir='${prefix}/share'
492sysconfdir='${prefix}/etc'
493sharedstatedir='${prefix}/com'
494localstatedir='${prefix}/var'
495libdir='${exec_prefix}/lib'
496includedir='${prefix}/include'
497oldincludedir='/usr/include'
498infodir='${prefix}/info'
499mandir='${prefix}/man'
500
501ac_prev=
502for ac_option
503do
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
507 ac_prev=
508 continue
509 fi
510
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
515 case $ac_option in
516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir=$ac_optarg ;;
521
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
533
534 --config-cache | -C)
535 cache_file=config.cache ;;
536
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538 ac_prev=datadir ;;
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540 | --da=*)
541 datadir=$ac_optarg ;;
542
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
551
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 case $ac_option in
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 *) ac_optarg=yes ;;
562 esac
563 eval "enable_$ac_feature='$ac_optarg'" ;;
564
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
573
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
576 with_gas=yes ;;
577
578 -help | --help | --hel | --he | -h)
579 ac_init_help=long ;;
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
584
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
589
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
596
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
598 ac_prev=infodir ;;
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
601
602 -libdir | --libdir | --libdi | --libd)
603 ac_prev=libdir ;;
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
605 libdir=$ac_optarg ;;
606
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
613
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
622
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624 ac_prev=mandir ;;
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626 mandir=$ac_optarg ;;
627
628 -nfp | --nfp | --nf)
629 # Obsolete; use --without-fp.
630 with_fp=no ;;
631
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
634 no_create=yes ;;
635
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638 no_recursion=yes ;;
639
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
648
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650 ac_prev=prefix ;;
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652 prefix=$ac_optarg ;;
653
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
660
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
667
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
684
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
687 silent=yes ;;
688
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690 ac_prev=sbindir ;;
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692 | --sbi=* | --sb=*)
693 sbindir=$ac_optarg ;;
694
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
698 | --sha | --sh)
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703 | --sha=* | --sh=*)
704 sharedstatedir=$ac_optarg ;;
705
706 -site | --site | --sit)
707 ac_prev=site ;;
708 -site=* | --site=* | --sit=*)
709 site=$ac_optarg ;;
710
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712 ac_prev=srcdir ;;
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714 srcdir=$ac_optarg ;;
715
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
722
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
727
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
729 verbose=yes ;;
730
731 -version | --version | --versio | --versi | --vers | -V)
732 ac_init_version=: ;;
733
734 -with-* | --with-*)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
741 case $ac_option in
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 *) ac_optarg=yes ;;
744 esac
745 eval "with_$ac_package='$ac_optarg'" ;;
746
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
755
756 --x)
757 # Obsolete; use --with-x.
758 with_x=yes ;;
759
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
766
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
773
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
777 ;;
778
779 *=*)
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
787 export $ac_envvar ;;
788
789 *)
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795 ;;
796
797 esac
798done
799
800if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
804fi
805
806# Be sure to have absolute paths.
807for ac_var in exec_prefix prefix
808do
809 eval ac_val=$`echo $ac_var`
810 case $ac_val in
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
814 esac
815done
816
817# Be sure to have absolute paths.
818for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
820do
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
826 esac
827done
828
829# There might be people who depend on the old broken behavior: `$host'
830# used to hold the argument of --host etc.
831# FIXME: To remove some day.
832build=$build_alias
833host=$host_alias
834target=$target_alias
835
836# FIXME: To remove some day.
837if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
843 cross_compiling=yes
844 fi
845fi
846
847ac_tool_prefix=
848test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850test "$silent" = yes && exec 6>/dev/null
851
852
853# Find the source files, if location was not specified.
854if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
863echo X"$0" |
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
868 s/.*/./; q'`
869 srcdir=$ac_confdir
870 if test ! -r $srcdir/$ac_unique_file; then
871 srcdir=..
872 fi
873else
874 ac_srcdir_defaulted=no
875fi
876if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
880 else
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
883 fi
884fi
885srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
886ac_env_build_alias_set=${build_alias+set}
887ac_env_build_alias_value=$build_alias
888ac_cv_env_build_alias_set=${build_alias+set}
889ac_cv_env_build_alias_value=$build_alias
890ac_env_host_alias_set=${host_alias+set}
891ac_env_host_alias_value=$host_alias
892ac_cv_env_host_alias_set=${host_alias+set}
893ac_cv_env_host_alias_value=$host_alias
894ac_env_target_alias_set=${target_alias+set}
895ac_env_target_alias_value=$target_alias
896ac_cv_env_target_alias_set=${target_alias+set}
897ac_cv_env_target_alias_value=$target_alias
898ac_env_CC_set=${CC+set}
899ac_env_CC_value=$CC
900ac_cv_env_CC_set=${CC+set}
901ac_cv_env_CC_value=$CC
902ac_env_CFLAGS_set=${CFLAGS+set}
903ac_env_CFLAGS_value=$CFLAGS
904ac_cv_env_CFLAGS_set=${CFLAGS+set}
905ac_cv_env_CFLAGS_value=$CFLAGS
906ac_env_LDFLAGS_set=${LDFLAGS+set}
907ac_env_LDFLAGS_value=$LDFLAGS
908ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
909ac_cv_env_LDFLAGS_value=$LDFLAGS
910ac_env_CPPFLAGS_set=${CPPFLAGS+set}
911ac_env_CPPFLAGS_value=$CPPFLAGS
912ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
913ac_cv_env_CPPFLAGS_value=$CPPFLAGS
914ac_env_CPP_set=${CPP+set}
915ac_env_CPP_value=$CPP
916ac_cv_env_CPP_set=${CPP+set}
917ac_cv_env_CPP_value=$CPP
918
919#
920# Report the --help message.
921#
922if test "$ac_init_help" = "long"; then
923 # Omit some internal or obsolete options to make the list less imposing.
924 # This message is too long to be a string in the A/UX 3.1 sh.
925 cat <<_ACEOF
926\`configure' configures Heimdal 0.5.1 to adapt to many kinds of systems.
927
928Usage: $0 [OPTION]... [VAR=VALUE]...
929
930To assign environment variables (e.g., CC, CFLAGS...), specify them as
931VAR=VALUE. See below for descriptions of some of the useful variables.
932
933Defaults for the options are specified in brackets.
934
935Configuration:
936 -h, --help display this help and exit
937 --help=short display options specific to this package
938 --help=recursive display the short help of all the included packages
939 -V, --version display version information and exit
940 -q, --quiet, --silent do not print \`checking...' messages
941 --cache-file=FILE cache test results in FILE [disabled]
942 -C, --config-cache alias for \`--cache-file=config.cache'
943 -n, --no-create do not create output files
944 --srcdir=DIR find the sources in DIR [configure dir or \`..']
945
946_ACEOF
947
948 cat <<_ACEOF
949Installation directories:
950 --prefix=PREFIX install architecture-independent files in PREFIX
951 [$ac_default_prefix]
952 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
953 [PREFIX]
954
955By default, \`make install' will install all the files in
956\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
957an installation prefix other than \`$ac_default_prefix' using \`--prefix',
958for instance \`--prefix=\$HOME'.
959
960For better control, use the options below.
961
962Fine tuning of the installation directories:
963 --bindir=DIR user executables [EPREFIX/bin]
964 --sbindir=DIR system admin executables [EPREFIX/sbin]
965 --libexecdir=DIR program executables [EPREFIX/libexec]
966 --datadir=DIR read-only architecture-independent data [PREFIX/share]
967 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
968 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
969 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
970 --libdir=DIR object code libraries [EPREFIX/lib]
971 --includedir=DIR C header files [PREFIX/include]
972 --oldincludedir=DIR C header files for non-gcc [/usr/include]
973 --infodir=DIR info documentation [PREFIX/info]
974 --mandir=DIR man documentation [PREFIX/man]
975_ACEOF
976
977 cat <<\_ACEOF
978
979Program names:
980 --program-prefix=PREFIX prepend PREFIX to installed program names
981 --program-suffix=SUFFIX append SUFFIX to installed program names
982 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
983
984X features:
985 --x-includes=DIR X include files are in DIR
986 --x-libraries=DIR X library files are in DIR
987
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991_ACEOF
992fi
993
994if test -n "$ac_init_help"; then
995 case $ac_init_help in
996 short | recursive ) echo "Configuration of Heimdal 0.5.1:";;
997 esac
998 cat <<\_ACEOF
999
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking Speeds up one-time builds
1004 --enable-dependency-tracking Do not reject slow dependency extractors
1005 --disable-largefile omit support for large files
1006 --enable-shared=PKGS build shared libraries default=no
1007 --enable-static=PKGS build static libraries default=yes
1008 --enable-fast-install=PKGS optimize for fast installation default=yes
1009 --disable-libtool-lock avoid locking (might break parallel builds)
1010 --enable-dce if you want support for DCE/DFS PAG's
1011 --disable-berkeley-db if you don't want berkeley db
1012 --disable-otp if you don't want OTP support
1013 --enable-osfc2 enable some OSF C2 support
1014 --disable-mmap disable use of mmap
1015 --enable-bigendian the target is big endian
1016 --enable-littleendian the target is little endian
1017 --disable-dynamic-afs do not use loaded AFS library with AIX
1018 --enable-netinfo enable netinfo for configuration lookup
1019
1020Optional Packages:
1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1023 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)
1024 --with-gnu-ld assume the C compiler uses GNU ld default=no
1025 --with-pic try to use only PIC/non-PIC objects default=use both
1026 --with-openldap=dir use openldap in dir
1027 --with-openldap-lib=dir use openldap libraries in dir
1028 --with-openldap-include=dir
1029 use openldap headers in dir
1030 --with-openldap-config=path
1031 config program for openldap
1032 --with-krb4=dir use krb4 in dir
1033 --with-krb4-lib=dir use krb4 libraries in dir
1034 --with-krb4-include=dir use krb4 headers in dir
1035 --with-krb4-config=path config program for krb4
1036 --with-openssl=dir use openssl in dir
1037 --with-openssl-lib=dir use openssl libraries in dir
1038 --with-openssl-include=dir
1039 use openssl headers in dir
1040 --without-ipv6 do not enable IPv6 support
1041 --with-readline=dir use readline in dir
1042 --with-readline-lib=dir use readline libraries in dir
1043 --with-readline-include=dir
1044 use readline headers in dir
1045 --with-readline-config=path
1046 config program for readline
1047 --with-hesiod=dir use hesiod in dir
1048 --with-hesiod-lib=dir use hesiod libraries in dir
1049 --with-hesiod-include=dir
1050 use hesiod headers in dir
1051 --with-hesiod-config=path
1052 config program for hesiod
1053 --with-x use the X Window System
1054
1055Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CPP C preprocessor
1063
1064Use these variables to override the choices made by `configure' or to help
1065it to find libraries and programs with nonstandard names/locations.
1066
1067Report bugs to <heimdal-bugs@pdc.kth.se>.
1068_ACEOF
1069fi
1070
1071if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1073 ac_popdir=`pwd`
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1076 ac_builddir=.
1077
1078if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082else
1083 ac_dir_suffix= ac_top_builddir=
1084fi
1085
1086case $srcdir in
1087 .) # No --srcdir option. We are building in place.
1088 ac_srcdir=.
1089 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=.
1091 else
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 fi ;;
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1097 *) # Relative path.
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100esac
1101# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1102# absolute.
1103ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1104ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1105ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1106ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1107
1108 cd $ac_dir
1109 # Check for guested configure; otherwise get Cygnus style configure.
1110 if test -f $ac_srcdir/configure.gnu; then
1111 echo
1112 $SHELL $ac_srcdir/configure.gnu --help=recursive
1113 elif test -f $ac_srcdir/configure; then
1114 echo
1115 $SHELL $ac_srcdir/configure --help=recursive
1116 elif test -f $ac_srcdir/configure.ac ||
1117 test -f $ac_srcdir/configure.in; then
1118 echo
1119 $ac_configure --help
1120 else
1121 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1122 fi
1123 cd $ac_popdir
1124 done
1125fi
1126
1127test -n "$ac_init_help" && exit 0
1128if $ac_init_version; then
1129 cat <<\_ACEOF
1130Heimdal configure 0.5.1
1131generated by GNU Autoconf 2.53
1132
1133Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1134Free Software Foundation, Inc.
1135This configure script is free software; the Free Software Foundation
1136gives unlimited permission to copy, distribute and modify it.
1137_ACEOF
1138 exit 0
1139fi
1140exec 5>config.log
1141cat >&5 <<_ACEOF
1142This file contains any messages produced by compilers while
1143running configure, to aid debugging if configure makes a mistake.
1144
1145It was created by Heimdal $as_me 0.5.1, which was
1146generated by GNU Autoconf 2.53. Invocation command line was
1147
1148 $ $0 $@
1149
1150_ACEOF
1151{
1152cat <<_ASUNAME
1153## --------- ##
1154## Platform. ##
1155## --------- ##
1156
1157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162
1163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165
1166/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1167/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1170/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1171/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1172/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173
1174_ASUNAME
1175
1176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177for as_dir in $PATH
1178do
1179 IFS=$as_save_IFS
1180 test -z "$as_dir" && as_dir=.
1181 echo "PATH: $as_dir"
1182done
1183
1184} >&5
1185
1186cat >&5 <<_ACEOF
1187
1188
1189## ----------- ##
1190## Core tests. ##
1191## ----------- ##
1192
1193_ACEOF
1194
1195
1196# Keep a trace of the command line.
1197# Strip out --no-create and --no-recursion so they do not pile up.
1198# Also quote any args containing shell meta-characters.
1199ac_configure_args=
1200ac_sep=
1201for ac_arg
1202do
1203 case $ac_arg in
1204 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205 | --no-cr | --no-c | -n ) continue ;;
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208 continue ;;
1209 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1211 esac
1212 case " $ac_configure_args " in
1213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1214 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1215 ac_sep=" " ;;
1216 esac
1217 # Get rid of the leading space.
1218done
1219
1220# When interrupted or exit'd, cleanup temporary files, and complete
1221# config.log. We remove comments because anyway the quotes in there
1222# would cause problems or look ugly.
1223# WARNING: Be sure not to use single quotes in there, as some shells,
1224# such as our DU 5.0 friend, will then `close' the trap.
1225trap 'exit_status=$?
1226 # Save into config.log some information that might help in debugging.
1227 {
1228 echo
1229 cat <<\_ASBOX
1230## ---------------- ##
1231## Cache variables. ##
1232## ---------------- ##
1233_ASBOX
1234 echo
1235 # The following way of writing the cache mishandles newlines in values,
1236{
1237 (set) 2>&1 |
1238 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1239 *ac_space=\ *)
1240 sed -n \
1241 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1243 ;;
1244 *)
1245 sed -n \
1246 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1247 ;;
1248 esac;
1249}
1250 echo
1251 if test -s confdefs.h; then
1252 cat <<\_ASBOX
1253## ----------- ##
1254## confdefs.h. ##
1255## ----------- ##
1256_ASBOX
1257 echo
1258 sed "/^$/d" confdefs.h
1259 echo
1260 fi
1261 test "$ac_signal" != 0 &&
1262 echo "$as_me: caught signal $ac_signal"
1263 echo "$as_me: exit $exit_status"
1264 } >&5
1265 rm -f core core.* *.core &&
1266 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1267 exit $exit_status
1268 ' 0
1269for ac_signal in 1 2 13 15; do
1270 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1271done
1272ac_signal=0
1273
1274# confdefs.h avoids OS command line length limits that DEFS can exceed.
1275rm -rf conftest* confdefs.h
1276# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1277echo >confdefs.h
1278
1279# Predefined preprocessor variables.
1280
1281cat >>confdefs.h <<_ACEOF
1282#define PACKAGE_NAME "$PACKAGE_NAME"
1283_ACEOF
1284
1285
1286cat >>confdefs.h <<_ACEOF
1287#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1288_ACEOF
1289
1290
1291cat >>confdefs.h <<_ACEOF
1292#define PACKAGE_VERSION "$PACKAGE_VERSION"
1293_ACEOF
1294
1295
1296cat >>confdefs.h <<_ACEOF
1297#define PACKAGE_STRING "$PACKAGE_STRING"
1298_ACEOF
1299
1300
1301cat >>confdefs.h <<_ACEOF
1302#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1303_ACEOF
1304
1305
1306# Let the site file select an alternate cache file if it wants to.
1307# Prefer explicitly selected file to automatically selected ones.
1308if test -z "$CONFIG_SITE"; then
1309 if test "x$prefix" != xNONE; then
1310 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1311 else
1312 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1313 fi
1314fi
1315for ac_site_file in $CONFIG_SITE; do
1316 if test -r "$ac_site_file"; then
1317 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1318echo "$as_me: loading site script $ac_site_file" >&6;}
1319 sed 's/^/| /' "$ac_site_file" >&5
1320 . "$ac_site_file"
1321 fi
1322done
1323
1324if test -r "$cache_file"; then
1325 # Some versions of bash will fail to source /dev/null (special
1326 # files actually), so we avoid doing that.
1327 if test -f "$cache_file"; then
1328 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1329echo "$as_me: loading cache $cache_file" >&6;}
1330 case $cache_file in
1331 [\\/]* | ?:[\\/]* ) . $cache_file;;
1332 *) . ./$cache_file;;
1333 esac
1334 fi
1335else
1336 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1337echo "$as_me: creating cache $cache_file" >&6;}
1338 >$cache_file
1339fi
1340
1341# Check that the precious variables saved in the cache have kept the same
1342# value.
1343ac_cache_corrupted=false
1344for ac_var in `(set) 2>&1 |
1345 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1346 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1347 eval ac_new_set=\$ac_env_${ac_var}_set
1348 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1349 eval ac_new_val="\$ac_env_${ac_var}_value"
1350 case $ac_old_set,$ac_new_set in
1351 set,)
1352 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1353echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1354 ac_cache_corrupted=: ;;
1355 ,set)
1356 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1357echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1358 ac_cache_corrupted=: ;;
1359 ,);;
1360 *)
1361 if test "x$ac_old_val" != "x$ac_new_val"; then
1362 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1363echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1364 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1365echo "$as_me: former value: $ac_old_val" >&2;}
1366 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1367echo "$as_me: current value: $ac_new_val" >&2;}
1368 ac_cache_corrupted=:
1369 fi;;
1370 esac
1371 # Pass precious variables to config.status.
1372 if test "$ac_new_set" = set; then
1373 case $ac_new_val in
1374 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1375 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1376 *) ac_arg=$ac_var=$ac_new_val ;;
1377 esac
1378 case " $ac_configure_args " in
1379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1380 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1381 esac
1382 fi
1383done
1384if $ac_cache_corrupted; then
1385 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1386echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1387 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1388echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1389 { (exit 1); exit 1; }; }
1390fi
1391
1392ac_ext=c
1393ac_cpp='$CPP $CPPFLAGS'
1394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424# Add the stamp file to the list of files AC keeps track of,
1425# along with our hook.
1426ac_config_headers="$ac_config_headers include/config.h"
1427
1428
1429
1430
1431ac_ext=c
1432ac_cpp='$CPP $CPPFLAGS'
1433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439echo "$as_me:$LINENO: checking for $ac_word" >&5
1440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443else
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1446else
1447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448for as_dir in $PATH
1449do
1450 IFS=$as_save_IFS
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 break 2
1457 fi
1458done
1459done
1460
1461fi
1462fi
1463CC=$ac_cv_prog_CC
1464if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466echo "${ECHO_T}$CC" >&6
1467else
1468 echo "$as_me:$LINENO: result: no" >&5
1469echo "${ECHO_T}no" >&6
1470fi
1471
1472fi
1473if test -z "$ac_cv_prog_CC"; then
1474 ac_ct_CC=$CC
1475 # Extract the first word of "gcc", so it can be a program name with args.
1476set dummy gcc; ac_word=$2
1477echo "$as_me:$LINENO: checking for $ac_word" >&5
1478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481else
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484else
1485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486for as_dir in $PATH
1487do
1488 IFS=$as_save_IFS
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 break 2
1495 fi
1496done
1497done
1498
1499fi
1500fi
1501ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504echo "${ECHO_T}$ac_ct_CC" >&6
1505else
1506 echo "$as_me:$LINENO: result: no" >&5
1507echo "${ECHO_T}no" >&6
1508fi
1509
1510 CC=$ac_ct_CC
1511else
1512 CC="$ac_cv_prog_CC"
1513fi
1514
1515if test -z "$CC"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518set dummy ${ac_tool_prefix}cc; ac_word=$2
1519echo "$as_me:$LINENO: checking for $ac_word" >&5
1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1526else
1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528for as_dir in $PATH
1529do
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC="${ac_tool_prefix}cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 break 2
1537 fi
1538done
1539done
1540
1541fi
1542fi
1543CC=$ac_cv_prog_CC
1544if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546echo "${ECHO_T}$CC" >&6
1547else
1548 echo "$as_me:$LINENO: result: no" >&5
1549echo "${ECHO_T}no" >&6
1550fi
1551
1552fi
1553if test -z "$ac_cv_prog_CC"; then
1554 ac_ct_CC=$CC
1555 # Extract the first word of "cc", so it can be a program name with args.
1556set dummy cc; ac_word=$2
1557echo "$as_me:$LINENO: checking for $ac_word" >&5
1558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561else
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564else
1565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566for as_dir in $PATH
1567do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 break 2
1575 fi
1576done
1577done
1578
1579fi
1580fi
1581ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584echo "${ECHO_T}$ac_ct_CC" >&6
1585else
1586 echo "$as_me:$LINENO: result: no" >&5
1587echo "${ECHO_T}no" >&6
1588fi
1589
1590 CC=$ac_ct_CC
1591else
1592 CC="$ac_cv_prog_CC"
1593fi
1594
1595fi
1596if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598set dummy cc; ac_word=$2
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1606else
1607 ac_prog_rejected=no
1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609for as_dir in $PATH
1610do
1611 IFS=$as_save_IFS
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616 ac_prog_rejected=yes
1617 continue
1618 fi
1619 ac_cv_prog_CC="cc"
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 break 2
1622 fi
1623done
1624done
1625
1626if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1629 shift
1630 if test $# != 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1634 shift
1635 set dummy "$as_dir/$ac_word" ${1+"$@"}
1636 shift
1637 ac_cv_prog_CC="$@"
1638 fi
1639fi
1640fi
1641fi
1642CC=$ac_cv_prog_CC
1643if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645echo "${ECHO_T}$CC" >&6
1646else
1647 echo "$as_me:$LINENO: result: no" >&5
1648echo "${ECHO_T}no" >&6
1649fi
1650
1651fi
1652if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1654 for ac_prog in cl
1655 do
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1676 fi
1677done
1678done
1679
1680fi
1681fi
1682CC=$ac_cv_prog_CC
1683if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
1686else
1687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
1689fi
1690
1691 test -n "$CC" && break
1692 done
1693fi
1694if test -z "$CC"; then
1695 ac_ct_CC=$CC
1696 for ac_prog in cl
1697do
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699set dummy $ac_prog; ac_word=$2
1700echo "$as_me:$LINENO: checking for $ac_word" >&5
1701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707else
1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1718 fi
1719done
1720done
1721
1722fi
1723fi
1724ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727echo "${ECHO_T}$ac_ct_CC" >&6
1728else
1729 echo "$as_me:$LINENO: result: no" >&5
1730echo "${ECHO_T}no" >&6
1731fi
1732
1733 test -n "$ac_ct_CC" && break
1734done
1735
1736 CC=$ac_ct_CC
1737fi
1738
1739fi
1740
1741
1742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1743echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1744 { (exit 1); exit 1; }; }
1745
1746# Provide some information about the compiler.
1747echo "$as_me:$LINENO:" \
1748 "checking for C compiler version" >&5
1749ac_compiler=`set X $ac_compile; echo $2`
1750{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751 (eval $ac_compiler --version </dev/null >&5) 2>&5
1752 ac_status=$?
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756 (eval $ac_compiler -v </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761 (eval $ac_compiler -V </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765
1766cat >conftest.$ac_ext <<_ACEOF
1767#line $LINENO "configure"
1768#include "confdefs.h"
1769
1770#ifdef F77_DUMMY_MAIN
1771# ifdef __cplusplus
1772 extern "C"
1773# endif
1774 int F77_DUMMY_MAIN() { return 1; }
1775#endif
1776int
1777main ()
1778{
1779
1780 ;
1781 return 0;
1782}
1783_ACEOF
1784ac_clean_files_save=$ac_clean_files
1785ac_clean_files="$ac_clean_files a.out a.exe"
1786# Try to create an executable without -o first, disregard a.out.
1787# It will help us diagnose broken compilers, and finding out an intuition
1788# of exeext.
1789echo "$as_me:$LINENO: checking for C compiler default output" >&5
1790echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799# resort.
1800
1801# Be careful to initialize this variable, since it used to be cached.
1802# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803ac_cv_exeext=
1804for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1805 ls a.out conftest 2>/dev/null;
1806 ls a.* conftest.* 2>/dev/null`; do
1807 case $ac_file in
1808 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1809 a.out ) # We found the default executable, but exeext='' is most
1810 # certainly right.
1811 break;;
1812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1814 export ac_cv_exeext
1815 break;;
1816 * ) break;;
1817 esac
1818done
1819else
1820 echo "$as_me: failed program was:" >&5
1821cat conftest.$ac_ext >&5
1822{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1823echo "$as_me: error: C compiler cannot create executables" >&2;}
1824 { (exit 77); exit 77; }; }
1825fi
1826
1827ac_exeext=$ac_cv_exeext
1828echo "$as_me:$LINENO: result: $ac_file" >&5
1829echo "${ECHO_T}$ac_file" >&6
1830
1831# Check the compiler produces executables we can run. If not, either
1832# the compiler is broken, or we cross compile.
1833echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1834echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1835# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1836# If not cross compiling, check that we can run a simple program.
1837if test "$cross_compiling" != yes; then
1838 if { ac_try='./$ac_file'
1839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1840 (eval $ac_try) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }; }; then
1844 cross_compiling=no
1845 else
1846 if test "$cross_compiling" = maybe; then
1847 cross_compiling=yes
1848 else
1849 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1850If you meant to cross compile, use \`--host'." >&5
1851echo "$as_me: error: cannot run C compiled programs.
1852If you meant to cross compile, use \`--host'." >&2;}
1853 { (exit 1); exit 1; }; }
1854 fi
1855 fi
1856fi
1857echo "$as_me:$LINENO: result: yes" >&5
1858echo "${ECHO_T}yes" >&6
1859
1860rm -f a.out a.exe conftest$ac_cv_exeext
1861ac_clean_files=$ac_clean_files_save
1862# Check the compiler produces executables we can run. If not, either
1863# the compiler is broken, or we cross compile.
1864echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1865echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1866echo "$as_me:$LINENO: result: $cross_compiling" >&5
1867echo "${ECHO_T}$cross_compiling" >&6
1868
1869echo "$as_me:$LINENO: checking for suffix of executables" >&5
1870echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1872 (eval $ac_link) 2>&5
1873 ac_status=$?
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1877# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1878# work properly (i.e., refer to `conftest.exe'), while it won't with
1879# `rm'.
1880for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1881 case $ac_file in
1882 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1884 export ac_cv_exeext
1885 break;;
1886 * ) break;;
1887 esac
1888done
1889else
1890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1891echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1892 { (exit 1); exit 1; }; }
1893fi
1894
1895rm -f conftest$ac_cv_exeext
1896echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1897echo "${ECHO_T}$ac_cv_exeext" >&6
1898
1899rm -f conftest.$ac_ext
1900EXEEXT=$ac_cv_exeext
1901ac_exeext=$EXEEXT
1902echo "$as_me:$LINENO: checking for suffix of object files" >&5
1903echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1904if test "${ac_cv_objext+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907 cat >conftest.$ac_ext <<_ACEOF
1908#line $LINENO "configure"
1909#include "confdefs.h"
1910
1911#ifdef F77_DUMMY_MAIN
1912# ifdef __cplusplus
1913 extern "C"
1914# endif
1915 int F77_DUMMY_MAIN() { return 1; }
1916#endif
1917int
1918main ()
1919{
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925rm -f conftest.o conftest.obj
1926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }; then
1931 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1932 case $ac_file in
1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1935 break;;
1936 esac
1937done
1938else
1939 echo "$as_me: failed program was:" >&5
1940cat conftest.$ac_ext >&5
1941{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1942echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1943 { (exit 1); exit 1; }; }
1944fi
1945
1946rm -f conftest.$ac_cv_objext conftest.$ac_ext
1947fi
1948echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1949echo "${ECHO_T}$ac_cv_objext" >&6
1950OBJEXT=$ac_cv_objext
1951ac_objext=$OBJEXT
1952echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1953echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1954if test "${ac_cv_c_compiler_gnu+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
1957 cat >conftest.$ac_ext <<_ACEOF
1958#line $LINENO "configure"
1959#include "confdefs.h"
1960
1961#ifdef F77_DUMMY_MAIN
1962# ifdef __cplusplus
1963 extern "C"
1964# endif
1965 int F77_DUMMY_MAIN() { return 1; }
1966#endif
1967int
1968main ()
1969{
1970#ifndef __GNUC__
1971 choke me
1972#endif
1973
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978rm -f conftest.$ac_objext
1979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); } &&
1984 { ac_try='test -s conftest.$ac_objext'
1985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986 (eval $ac_try) 2>&5
1987 ac_status=$?
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; }; then
1990 ac_compiler_gnu=yes
1991else
1992 echo "$as_me: failed program was:" >&5
1993cat conftest.$ac_ext >&5
1994ac_compiler_gnu=no
1995fi
1996rm -f conftest.$ac_objext conftest.$ac_ext
1997ac_cv_c_compiler_gnu=$ac_compiler_gnu
1998
1999fi
2000echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2001echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2002GCC=`test $ac_compiler_gnu = yes && echo yes`
2003ac_test_CFLAGS=${CFLAGS+set}
2004ac_save_CFLAGS=$CFLAGS
2005CFLAGS="-g"
2006echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2007echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2008if test "${ac_cv_prog_cc_g+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011 cat >conftest.$ac_ext <<_ACEOF
2012#line $LINENO "configure"
2013#include "confdefs.h"
2014
2015#ifdef F77_DUMMY_MAIN
2016# ifdef __cplusplus
2017 extern "C"
2018# endif
2019 int F77_DUMMY_MAIN() { return 1; }
2020#endif
2021int
2022main ()
2023{
2024
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029rm -f conftest.$ac_objext
2030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2041 ac_cv_prog_cc_g=yes
2042else
2043 echo "$as_me: failed program was:" >&5
2044cat conftest.$ac_ext >&5
2045ac_cv_prog_cc_g=no
2046fi
2047rm -f conftest.$ac_objext conftest.$ac_ext
2048fi
2049echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2050echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2051if test "$ac_test_CFLAGS" = set; then
2052 CFLAGS=$ac_save_CFLAGS
2053elif test $ac_cv_prog_cc_g = yes; then
2054 if test "$GCC" = yes; then
2055 CFLAGS="-g -O2"
2056 else
2057 CFLAGS="-g"
2058 fi
2059else
2060 if test "$GCC" = yes; then
2061 CFLAGS="-O2"
2062 else
2063 CFLAGS=
2064 fi
2065fi
2066# Some people use a C++ compiler to compile C. Since we use `exit',
2067# in C++ we need to declare it. In case someone uses the same compiler
2068# for both compiling C and C++ we need to have the C++ compiler decide
2069# the declaration of exit, since it's the most demanding environment.
2070cat >conftest.$ac_ext <<_ACEOF
2071#ifndef __cplusplus
2072 choke me
2073#endif
2074_ACEOF
2075rm -f conftest.$ac_objext
2076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); } &&
2081 { ac_try='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 (eval $ac_try) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
2087 for ac_declaration in \
2088 ''\
2089 '#include <stdlib.h>' \
2090 'extern "C" void std::exit (int) throw (); using std::exit;' \
2091 'extern "C" void std::exit (int); using std::exit;' \
2092 'extern "C" void exit (int) throw ();' \
2093 'extern "C" void exit (int);' \
2094 'void exit (int);'
2095do
2096 cat >conftest.$ac_ext <<_ACEOF
2097#line $LINENO "configure"
2098#include "confdefs.h"
2099#include <stdlib.h>
2100$ac_declaration
2101#ifdef F77_DUMMY_MAIN
2102# ifdef __cplusplus
2103 extern "C"
2104# endif
2105 int F77_DUMMY_MAIN() { return 1; }
2106#endif
2107int
2108main ()
2109{
2110exit (42);
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115rm -f conftest.$ac_objext
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2127 :
2128else
2129 echo "$as_me: failed program was:" >&5
2130cat conftest.$ac_ext >&5
2131continue
2132fi
2133rm -f conftest.$ac_objext conftest.$ac_ext
2134 cat >conftest.$ac_ext <<_ACEOF
2135#line $LINENO "configure"
2136#include "confdefs.h"
2137$ac_declaration
2138#ifdef F77_DUMMY_MAIN
2139# ifdef __cplusplus
2140 extern "C"
2141# endif
2142 int F77_DUMMY_MAIN() { return 1; }
2143#endif
2144int
2145main ()
2146{
2147exit (42);
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152rm -f conftest.$ac_objext
2153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 break
2165else
2166 echo "$as_me: failed program was:" >&5
2167cat conftest.$ac_ext >&5
2168fi
2169rm -f conftest.$ac_objext conftest.$ac_ext
2170done
2171rm -f conftest*
2172if test -n "$ac_declaration"; then
2173 echo '#ifdef __cplusplus' >>confdefs.h
2174 echo $ac_declaration >>confdefs.h
2175 echo '#endif' >>confdefs.h
2176fi
2177
2178else
2179 echo "$as_me: failed program was:" >&5
2180cat conftest.$ac_ext >&5
2181fi
2182rm -f conftest.$ac_objext conftest.$ac_ext
2183ac_ext=c
2184ac_cpp='$CPP $CPPFLAGS'
2185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188
2189ac_ext=c
2190ac_cpp='$CPP $CPPFLAGS'
2191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2195echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2196# On Suns, sometimes $CPP names a directory.
2197if test -n "$CPP" && test -d "$CPP"; then
2198 CPP=
2199fi
2200if test -z "$CPP"; then
2201 if test "${ac_cv_prog_CPP+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204 # Double quotes because CPP needs to be expanded
2205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2206 do
2207 ac_preproc_ok=false
2208for ac_c_preproc_warn_flag in '' yes
2209do
2210 # Use a header file that comes with gcc, so configuring glibc
2211 # with a fresh cross-compiler works.
2212 # On the NeXT, cc -E runs the code through the compiler's parser,
2213 # not just through cpp. "Syntax error" is here to catch this case.
2214 cat >conftest.$ac_ext <<_ACEOF
2215#line $LINENO "configure"
2216#include "confdefs.h"
2217#include <assert.h>
2218 Syntax error
2219_ACEOF
2220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2222 ac_status=$?
2223 egrep -v '^ *\+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } >/dev/null; then
2228 if test -s conftest.err; then
2229 ac_cpp_err=$ac_c_preproc_warn_flag
2230 else
2231 ac_cpp_err=
2232 fi
2233else
2234 ac_cpp_err=yes
2235fi
2236if test -z "$ac_cpp_err"; then
2237 :
2238else
2239 echo "$as_me: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2241 # Broken: fails on valid input.
2242continue
2243fi
2244rm -f conftest.err conftest.$ac_ext
2245
2246 # OK, works on sane cases. Now check whether non-existent headers
2247 # can be detected and how.
2248 cat >conftest.$ac_ext <<_ACEOF
2249#line $LINENO "configure"
2250#include "confdefs.h"
2251#include <ac_nonexistent.h>
2252_ACEOF
2253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2255 ac_status=$?
2256 egrep -v '^ *\+' conftest.er1 >conftest.err
2257 rm -f conftest.er1
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } >/dev/null; then
2261 if test -s conftest.err; then
2262 ac_cpp_err=$ac_c_preproc_warn_flag
2263 else
2264 ac_cpp_err=
2265 fi
2266else
2267 ac_cpp_err=yes
2268fi
2269if test -z "$ac_cpp_err"; then
2270 # Broken: success on invalid input.
2271continue
2272else
2273 echo "$as_me: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2275 # Passes both tests.
2276ac_preproc_ok=:
2277break
2278fi
2279rm -f conftest.err conftest.$ac_ext
2280
2281done
2282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2283rm -f conftest.err conftest.$ac_ext
2284if $ac_preproc_ok; then
2285 break
2286fi
2287
2288 done
2289 ac_cv_prog_CPP=$CPP
2290
2291fi
2292 CPP=$ac_cv_prog_CPP
2293else
2294 ac_cv_prog_CPP=$CPP
2295fi
2296echo "$as_me:$LINENO: result: $CPP" >&5
2297echo "${ECHO_T}$CPP" >&6
2298ac_preproc_ok=false
2299for ac_c_preproc_warn_flag in '' yes
2300do
2301 # Use a header file that comes with gcc, so configuring glibc
2302 # with a fresh cross-compiler works.
2303 # On the NeXT, cc -E runs the code through the compiler's parser,
2304 # not just through cpp. "Syntax error" is here to catch this case.
2305 cat >conftest.$ac_ext <<_ACEOF
2306#line $LINENO "configure"
2307#include "confdefs.h"
2308#include <assert.h>
2309 Syntax error
2310_ACEOF
2311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2313 ac_status=$?
2314 egrep -v '^ *\+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } >/dev/null; then
2319 if test -s conftest.err; then
2320 ac_cpp_err=$ac_c_preproc_warn_flag
2321 else
2322 ac_cpp_err=
2323 fi
2324else
2325 ac_cpp_err=yes
2326fi
2327if test -z "$ac_cpp_err"; then
2328 :
2329else
2330 echo "$as_me: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 # Broken: fails on valid input.
2333continue
2334fi
2335rm -f conftest.err conftest.$ac_ext
2336
2337 # OK, works on sane cases. Now check whether non-existent headers
2338 # can be detected and how.
2339 cat >conftest.$ac_ext <<_ACEOF
2340#line $LINENO "configure"
2341#include "confdefs.h"
2342#include <ac_nonexistent.h>
2343_ACEOF
2344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2346 ac_status=$?
2347 egrep -v '^ *\+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } >/dev/null; then
2352 if test -s conftest.err; then
2353 ac_cpp_err=$ac_c_preproc_warn_flag
2354 else
2355 ac_cpp_err=
2356 fi
2357else
2358 ac_cpp_err=yes
2359fi
2360if test -z "$ac_cpp_err"; then
2361 # Broken: success on invalid input.
2362continue
2363else
2364 echo "$as_me: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 # Passes both tests.
2367ac_preproc_ok=:
2368break
2369fi
2370rm -f conftest.err conftest.$ac_ext
2371
2372done
2373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2374rm -f conftest.err conftest.$ac_ext
2375if $ac_preproc_ok; then
2376 :
2377else
2378 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2379echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2380 { (exit 1); exit 1; }; }
2381fi
2382
2383ac_ext=c
2384ac_cpp='$CPP $CPPFLAGS'
2385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388
2389
2390echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2391echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2392if test "${ac_cv_prog_cc_stdc+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394else
2395 ac_cv_prog_cc_stdc=no
2396ac_save_CC=$CC
2397cat >conftest.$ac_ext <<_ACEOF
2398#line $LINENO "configure"
2399#include "confdefs.h"
2400#include <stdarg.h>
2401#include <stdio.h>
2402#include <sys/types.h>
2403#include <sys/stat.h>
2404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2405struct buf { int x; };
2406FILE * (*rcsopen) (struct buf *, struct stat *, int);
2407static char *e (p, i)
2408 char **p;
2409 int i;
2410{
2411 return p[i];
2412}
2413static char *f (char * (*g) (char **, int), char **p, ...)
2414{
2415 char *s;
2416 va_list v;
2417 va_start (v,p);
2418 s = g (p, va_arg (v,int));
2419 va_end (v);
2420 return s;
2421}
2422int test (int i, double x);
2423struct s1 {int (*f) (int a);};
2424struct s2 {int (*f) (double a);};
2425int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2426int argc;
2427char **argv;
2428#ifdef F77_DUMMY_MAIN
2429# ifdef __cplusplus
2430 extern "C"
2431# endif
2432 int F77_DUMMY_MAIN() { return 1; }
2433#endif
2434int
2435main ()
2436{
2437return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442# Don't try gcc -ansi; that turns off useful extensions and
2443# breaks some systems' header files.
2444# AIX -qlanglvl=ansi
2445# Ultrix and OSF/1 -std1
2446# HP-UX 10.20 and later -Ae
2447# HP-UX older versions -Aa -D_HPUX_SOURCE
2448# SVR4 -Xc -D__EXTENSIONS__
2449for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2450do
2451 CC="$ac_save_CC $ac_arg"
2452 rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_prog_cc_stdc=$ac_arg
2465break
2466else
2467 echo "$as_me: failed program was:" >&5
2468cat conftest.$ac_ext >&5
2469fi
2470rm -f conftest.$ac_objext
2471done
2472rm -f conftest.$ac_ext conftest.$ac_objext
2473CC=$ac_save_CC
2474
2475fi
2476
2477case "x$ac_cv_prog_cc_stdc" in
2478 x|xno)
2479 echo "$as_me:$LINENO: result: none needed" >&5
2480echo "${ECHO_T}none needed" >&6 ;;
2481 *)
2482 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2483echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2484 CC="$CC $ac_cv_prog_cc_stdc" ;;
2485esac
2486
2487
2488am__api_version="1.6"
2489ac_aux_dir=
2490for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2491 if test -f $ac_dir/install-sh; then
2492 ac_aux_dir=$ac_dir
2493 ac_install_sh="$ac_aux_dir/install-sh -c"
2494 break
2495 elif test -f $ac_dir/install.sh; then
2496 ac_aux_dir=$ac_dir
2497 ac_install_sh="$ac_aux_dir/install.sh -c"
2498 break
2499 elif test -f $ac_dir/shtool; then
2500 ac_aux_dir=$ac_dir
2501 ac_install_sh="$ac_aux_dir/shtool install -c"
2502 break
2503 fi
2504done
2505if test -z "$ac_aux_dir"; then
2506 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2507echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2508 { (exit 1); exit 1; }; }
2509fi
2510ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2511ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2512ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2513
2514# Find a good install program. We prefer a C program (faster),
2515# so one script is as good as another. But avoid the broken or
2516# incompatible versions:
2517# SysV /etc/install, /usr/sbin/install
2518# SunOS /usr/etc/install
2519# IRIX /sbin/install
2520# AIX /bin/install
2521# AmigaOS /C/install, which installs bootblocks on floppy discs
2522# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2523# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2524# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2525# ./install, which can be erroneously created by make from ./install.sh.
2526echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2527echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2528if test -z "$INSTALL"; then
2529if test "${ac_cv_path_install+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 # Account for people who put trailing slashes in PATH elements.
2538case $as_dir/ in
2539 ./ | .// | /cC/* | \
2540 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2541 /usr/ucb/* ) ;;
2542 *)
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2545 # by default.
2546 for ac_prog in ginstall scoinst install; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549 if test $ac_prog = install &&
2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 # AIX install. It has an incompatible calling convention.
2552 :
2553 elif test $ac_prog = install &&
2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # program-specific install script used by HP pwplus--don't use.
2556 :
2557 else
2558 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2559 break 3
2560 fi
2561 fi
2562 done
2563 done
2564 ;;
2565esac
2566done
2567
2568
2569fi
2570 if test "${ac_cv_path_install+set}" = set; then
2571 INSTALL=$ac_cv_path_install
2572 else
2573 # As a last resort, use the slow shell script. We don't cache a
2574 # path for INSTALL within a source directory, because that will
2575 # break other packages using the cache if that directory is
2576 # removed, or if the path is relative.
2577 INSTALL=$ac_install_sh
2578 fi
2579fi
2580echo "$as_me:$LINENO: result: $INSTALL" >&5
2581echo "${ECHO_T}$INSTALL" >&6
2582
2583# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2584# It thinks the first close brace ends the variable substitution.
2585test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2586
2587test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2588
2589test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2590
2591echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2592echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2593# Just in case
2594sleep 1
2595echo timestamp > conftest.file
2596# Do `set' in a subshell so we don't clobber the current shell's
2597# arguments. Must try -L first in case configure is actually a
2598# symlink; some systems play weird games with the mod time of symlinks
2599# (eg FreeBSD returns the mod time of the symlink's containing
2600# directory).
2601if (
2602 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2604 # -L didn't work.
2605 set X `ls -t $srcdir/configure conftest.file`
2606 fi
2607 rm -f conftest.file
2608 if test "$*" != "X $srcdir/configure conftest.file" \
2609 && test "$*" != "X conftest.file $srcdir/configure"; then
2610
2611 # If neither matched, then we have a broken ls. This can happen
2612 # if, for instance, CONFIG_SHELL is bash and it inherits a
2613 # broken ls alias from the environment. This has actually
2614 # happened. Such a system could not be considered "sane".
2615 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2616alias in your environment" >&5
2617echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2618alias in your environment" >&2;}
2619 { (exit 1); exit 1; }; }
2620 fi
2621
2622 test "$2" = conftest.file
2623 )
2624then
2625 # Ok.
2626 :
2627else
2628 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2629Check your system clock" >&5
2630echo "$as_me: error: newly created file is older than distributed files!
2631Check your system clock" >&2;}
2632 { (exit 1); exit 1; }; }
2633fi
2634echo "$as_me:$LINENO: result: yes" >&5
2635echo "${ECHO_T}yes" >&6
2636test "$program_prefix" != NONE &&
2637 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2638# Use a double $ so make ignores it.
2639test "$program_suffix" != NONE &&
2640 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2641# Double any \ or $. echo might interpret backslashes.
2642# By default was `s,x,x', remove it if useless.
2643cat <<\_ACEOF >conftest.sed
2644s/[\\$]/&&/g;s/;s,x,x,$//
2645_ACEOF
2646program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2647rm conftest.sed
2648
2649
2650# expand $ac_aux_dir to an absolute path
2651am_aux_dir=`cd $ac_aux_dir && pwd`
2652
2653test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2654# Use eval to expand $SHELL
2655if eval "$MISSING --run true"; then
2656 am_missing_run="$MISSING --run "
2657else
2658 am_missing_run=
2659 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2660echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2661fi
2662
2663for ac_prog in gawk mawk nawk awk
2664do
2665 # Extract the first word of "$ac_prog", so it can be a program name with args.
2666set dummy $ac_prog; ac_word=$2
2667echo "$as_me:$LINENO: checking for $ac_word" >&5
2668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2669if test "${ac_cv_prog_AWK+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671else
2672 if test -n "$AWK"; then
2673 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682 ac_cv_prog_AWK="$ac_prog"
2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686done
2687done
2688
2689fi
2690fi
2691AWK=$ac_cv_prog_AWK
2692if test -n "$AWK"; then
2693 echo "$as_me:$LINENO: result: $AWK" >&5
2694echo "${ECHO_T}$AWK" >&6
2695else
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
2698fi
2699
2700 test -n "$AWK" && break
2701done
2702
2703echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2704echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2705set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2706if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709 cat >conftest.make <<\_ACEOF
2710all:
2711 @echo 'ac_maketemp="${MAKE}"'
2712_ACEOF
2713# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2714eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2715if test -n "$ac_maketemp"; then
2716 eval ac_cv_prog_make_${ac_make}_set=yes
2717else
2718 eval ac_cv_prog_make_${ac_make}_set=no
2719fi
2720rm -f conftest.make
2721fi
2722if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2723 echo "$as_me:$LINENO: result: yes" >&5
2724echo "${ECHO_T}yes" >&6
2725 SET_MAKE=
2726else
2727 echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6
2729 SET_MAKE="MAKE=${MAKE-make}"
2730fi
2731
2732rm -f .deps 2>/dev/null
2733mkdir .deps 2>/dev/null
2734if test -d .deps; then
2735 DEPDIR=.deps
2736else
2737 # MS-DOS does not allow filenames that begin with a dot.
2738 DEPDIR=_deps
2739fi
2740rmdir .deps 2>/dev/null
2741
2742
2743ac_config_commands="$ac_config_commands depfiles"
2744
2745
2746am_make=${MAKE-make}
2747cat > confinc << 'END'
2748doit:
2749 @echo done
2750END
2751# If we don't find an include directive, just comment out the code.
2752echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2753echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2754am__include="#"
2755am__quote=
2756_am_result=none
2757# First try GNU make style include.
2758echo "include confinc" > confmf
2759# We grep out `Entering directory' and `Leaving directory'
2760# messages which can occur if `w' ends up in MAKEFLAGS.
2761# In particular we don't look at `^make:' because GNU make might
2762# be invoked under some other name (usually "gmake"), in which
2763# case it prints its new name instead of `make'.
2764if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2765 am__include=include
2766 am__quote=
2767 _am_result=GNU
2768fi
2769# Now try BSD make style include.
2770if test "$am__include" = "#"; then
2771 echo '.include "confinc"' > confmf
2772 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2773 am__include=.include
2774 am__quote="\""
2775 _am_result=BSD
2776 fi
2777fi
2778
2779
2780echo "$as_me:$LINENO: result: $_am_result" >&5
2781echo "${ECHO_T}$_am_result" >&6
2782rm -f confinc confmf
2783
2784# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2785if test "${enable_dependency_tracking+set}" = set; then
2786 enableval="$enable_dependency_tracking"
2787
2788fi;
2789if test "x$enable_dependency_tracking" != xno; then
2790 am_depcomp="$ac_aux_dir/depcomp"
2791 AMDEPBACKSLASH='\'
2792fi
2793
2794
2795if test "x$enable_dependency_tracking" != xno; then
2796 AMDEP_TRUE=
2797 AMDEP_FALSE='#'
2798else
2799 AMDEP_TRUE='#'
2800 AMDEP_FALSE=
2801fi
2802
2803
2804
2805 # test to see if srcdir already configured
2806if test "`cd $srcdir && pwd`" != "`pwd`" &&
2807 test -f $srcdir/config.status; then
2808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2810 { (exit 1); exit 1; }; }
2811fi
2812
2813# Define the identity of the package.
2814 PACKAGE=heimdal
2815 VERSION=0.5.1
2816
2817
2818cat >>confdefs.h <<_ACEOF
2819#define PACKAGE "$PACKAGE"
2820_ACEOF
2821
2822
2823cat >>confdefs.h <<_ACEOF
2824#define VERSION "$VERSION"
2825_ACEOF
2826
2827# Some tools Automake needs.
2828
2829ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2830
2831
2832AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2833
2834
2835AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2836
2837
2838AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2839
2840
2841MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2842
2843
2844AMTAR=${AMTAR-"${am_missing_run}tar"}
2845
2846install_sh=${install_sh-"$am_aux_dir/install-sh"}
2847
2848# Installed binaries are usually stripped using `strip' when the user
2849# run `make install-strip'. However `strip' might not be the right
2850# tool to use in cross-compilation environments, therefore Automake
2851# will honor the `STRIP' environment variable to overrule this program.
2852if test "$cross_compiling" != no; then
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2855set dummy ${ac_tool_prefix}strip; ac_word=$2
2856echo "$as_me:$LINENO: checking for $ac_word" >&5
2857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858if test "${ac_cv_prog_STRIP+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861 if test -n "$STRIP"; then
2862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875done
2876done
2877
2878fi
2879fi
2880STRIP=$ac_cv_prog_STRIP
2881if test -n "$STRIP"; then
2882 echo "$as_me:$LINENO: result: $STRIP" >&5
2883echo "${ECHO_T}$STRIP" >&6
2884else
2885 echo "$as_me:$LINENO: result: no" >&5
2886echo "${ECHO_T}no" >&6
2887fi
2888
2889fi
2890if test -z "$ac_cv_prog_STRIP"; then
2891 ac_ct_STRIP=$STRIP
2892 # Extract the first word of "strip", so it can be a program name with args.
2893set dummy strip; ac_word=$2
2894echo "$as_me:$LINENO: checking for $ac_word" >&5
2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898else
2899 if test -n "$ac_ct_STRIP"; then
2900 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
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_prog_ac_ct_STRIP="strip"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913done
2914done
2915
2916 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2917fi
2918fi
2919ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2920if test -n "$ac_ct_STRIP"; then
2921 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2922echo "${ECHO_T}$ac_ct_STRIP" >&6
2923else
2924 echo "$as_me:$LINENO: result: no" >&5
2925echo "${ECHO_T}no" >&6
2926fi
2927
2928 STRIP=$ac_ct_STRIP
2929else
2930 STRIP="$ac_cv_prog_STRIP"
2931fi
2932
2933fi
2934INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2935
2936# We need awk for the "check" target. The system "awk" is bad on
2937# some platforms.
2938
2939
2940depcc="$CC" am_compiler_list=
2941
2942echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2943echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2944if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946else
2947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2948 # We make a subdir and do the tests there. Otherwise we can end up
2949 # making bogus files that we don't know about and never remove. For
2950 # instance it was reported that on HP-UX the gcc test will end up
2951 # making a dummy file named `D' -- because `-MD' means `put the output
2952 # in D'.
2953 mkdir conftest.dir
2954 # Copy depcomp to subdir because otherwise we won't find it if we're
2955 # using a relative directory.
2956 cp "$am_depcomp" conftest.dir
2957 cd conftest.dir
2958
2959 am_cv_CC_dependencies_compiler_type=none
2960 if test "$am_compiler_list" = ""; then
2961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2962 fi
2963 for depmode in $am_compiler_list; do
2964 # We need to recreate these files for each test, as the compiler may
2965 # overwrite some of them when testing with obscure command lines.
2966 # This happens at least with the AIX C compiler.
2967 echo '#include "conftest.h"' > conftest.c
2968 echo 'int i;' > conftest.h
2969 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2970
2971 case $depmode in
2972 nosideeffect)
2973 # after this tag, mechanisms are not by side-effect, so they'll
2974 # only be used when explicitly requested
2975 if test "x$enable_dependency_tracking" = xyes; then
2976 continue
2977 else
2978 break
2979 fi
2980 ;;
2981 none) break ;;
2982 esac
2983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2984 # mode. It turns out that the SunPro C++ compiler does not properly
2985 # handle `-M -o', and we need to detect this.
2986 if depmode=$depmode \
2987 source=conftest.c object=conftest.o \
2988 depfile=conftest.Po tmpdepfile=conftest.TPo \
2989 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2990 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2992 am_cv_CC_dependencies_compiler_type=$depmode
2993 break
2994 fi
2995 done
2996
2997 cd ..
2998 rm -rf conftest.dir
2999else
3000 am_cv_CC_dependencies_compiler_type=none
3001fi
3002
3003fi
3004echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3005echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3006CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3007
3008
3009
3010
3011
3012
3013test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3014test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3015
3016# Make sure we can run config.sub.
3017$ac_config_sub sun4 >/dev/null 2>&1 ||
3018 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3019echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3020 { (exit 1); exit 1; }; }
3021
3022echo "$as_me:$LINENO: checking build system type" >&5
3023echo $ECHO_N "checking build system type... $ECHO_C" >&6
3024if test "${ac_cv_build+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027 ac_cv_build_alias=$build_alias
3028test -z "$ac_cv_build_alias" &&
3029 ac_cv_build_alias=`$ac_config_guess`
3030test -z "$ac_cv_build_alias" &&
3031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3032echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3033 { (exit 1); exit 1; }; }
3034ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3035 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3036echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3037 { (exit 1); exit 1; }; }
3038
3039fi
3040echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3041echo "${ECHO_T}$ac_cv_build" >&6
3042build=$ac_cv_build
3043build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3044build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3045build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3046
3047
3048echo "$as_me:$LINENO: checking host system type" >&5
3049echo $ECHO_N "checking host system type... $ECHO_C" >&6
3050if test "${ac_cv_host+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052else
3053 ac_cv_host_alias=$host_alias
3054test -z "$ac_cv_host_alias" &&
3055 ac_cv_host_alias=$ac_cv_build_alias
3056ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3057 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3058echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3059 { (exit 1); exit 1; }; }
3060
3061fi
3062echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3063echo "${ECHO_T}$ac_cv_host" >&6
3064host=$ac_cv_host
3065host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3066host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3067host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3068
3069
3070CANONICAL_HOST=$host
3071
3072
3073# Check whether --enable-largefile or --disable-largefile was given.
3074if test "${enable_largefile+set}" = set; then
3075 enableval="$enable_largefile"
3076
3077fi;
3078if test "$enable_largefile" != no; then
3079
3080 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3081echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3082if test "${ac_cv_sys_largefile_CC+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 ac_cv_sys_largefile_CC=no
3086 if test "$GCC" != yes; then
3087 ac_save_CC=$CC
3088 while :; do
3089 # IRIX 6.2 and later do not support large files by default,
3090 # so use the C compiler's -n32 option if that helps.
3091 cat >conftest.$ac_ext <<_ACEOF
3092#line $LINENO "configure"
3093#include "confdefs.h"
3094#include <sys/types.h>
3095 /* Check that off_t can represent 2**63 - 1 correctly.
3096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3097 since some C++ compilers masquerading as C compilers
3098 incorrectly reject 9223372036854775807. */
3099#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3101 && LARGE_OFF_T % 2147483647 == 1)
3102 ? 1 : -1];
3103#ifdef F77_DUMMY_MAIN
3104# ifdef __cplusplus
3105 extern "C"
3106# endif
3107 int F77_DUMMY_MAIN() { return 1; }
3108#endif
3109int
3110main ()
3111{
3112
3113 ;
3114 return 0;
3115}
3116_ACEOF
3117 rm -f conftest.$ac_objext
3118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119 (eval $ac_compile) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 break
3130else
3131 echo "$as_me: failed program was:" >&5
3132cat conftest.$ac_ext >&5
3133fi
3134rm -f conftest.$ac_objext
3135 CC="$CC -n32"
3136 rm -f conftest.$ac_objext
3137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_sys_largefile_CC=' -n32'; break
3149else
3150 echo "$as_me: failed program was:" >&5
3151cat conftest.$ac_ext >&5
3152fi
3153rm -f conftest.$ac_objext
3154 break
3155 done
3156 CC=$ac_save_CC
3157 rm -f conftest.$ac_ext
3158 fi
3159fi
3160echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3161echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3162 if test "$ac_cv_sys_largefile_CC" != no; then
3163 CC=$CC$ac_cv_sys_largefile_CC
3164 fi
3165
3166 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3167echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3168if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170else
3171 while :; do
3172 ac_cv_sys_file_offset_bits=no
3173 cat >conftest.$ac_ext <<_ACEOF
3174#line $LINENO "configure"
3175#include "confdefs.h"
3176#include <sys/types.h>
3177 /* Check that off_t can represent 2**63 - 1 correctly.
3178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3179 since some C++ compilers masquerading as C compilers
3180 incorrectly reject 9223372036854775807. */
3181#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3183 && LARGE_OFF_T % 2147483647 == 1)
3184 ? 1 : -1];
3185#ifdef F77_DUMMY_MAIN
3186# ifdef __cplusplus
3187 extern "C"
3188# endif
3189 int F77_DUMMY_MAIN() { return 1; }
3190#endif
3191int
3192main ()
3193{
3194
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext
3200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 break
3212else
3213 echo "$as_me: failed program was:" >&5
3214cat conftest.$ac_ext >&5
3215fi
3216rm -f conftest.$ac_objext conftest.$ac_ext
3217 cat >conftest.$ac_ext <<_ACEOF
3218#line $LINENO "configure"
3219#include "confdefs.h"
3220#define _FILE_OFFSET_BITS 64
3221#include <sys/types.h>
3222 /* Check that off_t can represent 2**63 - 1 correctly.
3223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3224 since some C++ compilers masquerading as C compilers
3225 incorrectly reject 9223372036854775807. */
3226#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3228 && LARGE_OFF_T % 2147483647 == 1)
3229 ? 1 : -1];
3230#ifdef F77_DUMMY_MAIN
3231# ifdef __cplusplus
3232 extern "C"
3233# endif
3234 int F77_DUMMY_MAIN() { return 1; }
3235#endif
3236int
3237main ()
3238{
3239
3240 ;
3241 return 0;
3242}
3243_ACEOF
3244rm -f conftest.$ac_objext
3245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_sys_file_offset_bits=64; break
3257else
3258 echo "$as_me: failed program was:" >&5
3259cat conftest.$ac_ext >&5
3260fi
3261rm -f conftest.$ac_objext conftest.$ac_ext
3262 break
3263done
3264fi
3265echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3266echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3267if test "$ac_cv_sys_file_offset_bits" != no; then
3268
3269cat >>confdefs.h <<_ACEOF
3270#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3271_ACEOF
3272
3273fi
3274rm -f conftest*
3275 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3276echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3277if test "${ac_cv_sys_large_files+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280 while :; do
3281 ac_cv_sys_large_files=no
3282 cat >conftest.$ac_ext <<_ACEOF
3283#line $LINENO "configure"
3284#include "confdefs.h"
3285#include <sys/types.h>
3286 /* Check that off_t can represent 2**63 - 1 correctly.
3287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3288 since some C++ compilers masquerading as C compilers
3289 incorrectly reject 9223372036854775807. */
3290#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3292 && LARGE_OFF_T % 2147483647 == 1)
3293 ? 1 : -1];
3294#ifdef F77_DUMMY_MAIN
3295# ifdef __cplusplus
3296 extern "C"
3297# endif
3298 int F77_DUMMY_MAIN() { return 1; }
3299#endif
3300int
3301main ()
3302{
3303
3304 ;
3305 return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 break
3321else
3322 echo "$as_me: failed program was:" >&5
3323cat conftest.$ac_ext >&5
3324fi
3325rm -f conftest.$ac_objext conftest.$ac_ext
3326 cat >conftest.$ac_ext <<_ACEOF
3327#line $LINENO "configure"
3328#include "confdefs.h"
3329#define _LARGE_FILES 1
3330#include <sys/types.h>
3331 /* Check that off_t can represent 2**63 - 1 correctly.
3332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3333 since some C++ compilers masquerading as C compilers
3334 incorrectly reject 9223372036854775807. */
3335#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3337 && LARGE_OFF_T % 2147483647 == 1)
3338 ? 1 : -1];
3339#ifdef F77_DUMMY_MAIN
3340# ifdef __cplusplus
3341 extern "C"
3342# endif
3343 int F77_DUMMY_MAIN() { return 1; }
3344#endif
3345int
3346main ()
3347{
3348
3349 ;
3350 return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355 (eval $ac_compile) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 ac_cv_sys_large_files=1; break
3366else
3367 echo "$as_me: failed program was:" >&5
3368cat conftest.$ac_ext >&5
3369fi
3370rm -f conftest.$ac_objext conftest.$ac_ext
3371 break
3372done
3373fi
3374echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3375echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3376if test "$ac_cv_sys_large_files" != no; then
3377
3378cat >>confdefs.h <<_ACEOF
3379#define _LARGE_FILES $ac_cv_sys_large_files
3380_ACEOF
3381
3382fi
3383rm -f conftest*
3384fi
3385
3386
3387
3388cat >>confdefs.h <<\_ACEOF
3389#define _GNU_SOURCE 1
3390_ACEOF
3391
3392
3393
3394
3395
3396for ac_prog in 'bison -y' byacc
3397do
3398 # Extract the first word of "$ac_prog", so it can be a program name with args.
3399set dummy $ac_prog; ac_word=$2
3400echo "$as_me:$LINENO: checking for $ac_word" >&5
3401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3402if test "${ac_cv_prog_YACC+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404else
3405 if test -n "$YACC"; then
3406 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3407else
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_YACC="$ac_prog"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419done
3420done
3421
3422fi
3423fi
3424YACC=$ac_cv_prog_YACC
3425if test -n "$YACC"; then
3426 echo "$as_me:$LINENO: result: $YACC" >&5
3427echo "${ECHO_T}$YACC" >&6
3428else
3429 echo "$as_me:$LINENO: result: no" >&5
3430echo "${ECHO_T}no" >&6
3431fi
3432
3433 test -n "$YACC" && break
3434done
3435test -n "$YACC" || YACC="yacc"
3436
3437for ac_prog in flex lex
3438do
3439 # Extract the first word of "$ac_prog", so it can be a program name with args.
3440set dummy $ac_prog; ac_word=$2
3441echo "$as_me:$LINENO: checking for $ac_word" >&5
3442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443if test "${ac_cv_prog_LEX+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446 if test -n "$LEX"; then
3447 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3448else
3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_LEX="$ac_prog"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460done
3461done
3462
3463fi
3464fi
3465LEX=$ac_cv_prog_LEX
3466if test -n "$LEX"; then
3467 echo "$as_me:$LINENO: result: $LEX" >&5
3468echo "${ECHO_T}$LEX" >&6
3469else
3470 echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6
3472fi
3473
3474 test -n "$LEX" && break
3475done
3476test -n "$LEX" || LEX=":"
3477
3478if test -z "$LEXLIB"
3479then
3480 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3481echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3482if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485 ac_check_lib_save_LIBS=$LIBS
3486LIBS="-lfl $LIBS"
3487cat >conftest.$ac_ext <<_ACEOF
3488#line $LINENO "configure"
3489#include "confdefs.h"
3490
3491/* Override any gcc2 internal prototype to avoid an error. */
3492#ifdef __cplusplus
3493extern "C"
3494#endif
3495/* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497char yywrap ();
3498#ifdef F77_DUMMY_MAIN
3499# ifdef __cplusplus
3500 extern "C"
3501# endif
3502 int F77_DUMMY_MAIN() { return 1; }
3503#endif
3504int
3505main ()
3506{
3507yywrap ();
3508 ;
3509 return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext conftest$ac_exeext
3513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3514 (eval $ac_link) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -s conftest$ac_exeext'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; }; then
3524 ac_cv_lib_fl_yywrap=yes
3525else
3526 echo "$as_me: failed program was:" >&5
3527cat conftest.$ac_ext >&5
3528ac_cv_lib_fl_yywrap=no
3529fi
3530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3531LIBS=$ac_check_lib_save_LIBS
3532fi
3533echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3534echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3535if test $ac_cv_lib_fl_yywrap = yes; then
3536 LEXLIB="-lfl"
3537else
3538 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3539echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3540if test "${ac_cv_lib_l_yywrap+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543 ac_check_lib_save_LIBS=$LIBS
3544LIBS="-ll $LIBS"
3545cat >conftest.$ac_ext <<_ACEOF
3546#line $LINENO "configure"
3547#include "confdefs.h"
3548
3549/* Override any gcc2 internal prototype to avoid an error. */
3550#ifdef __cplusplus
3551extern "C"
3552#endif
3553/* We use char because int might match the return type of a gcc2
3554 builtin and then its argument prototype would still apply. */
3555char yywrap ();
3556#ifdef F77_DUMMY_MAIN
3557# ifdef __cplusplus
3558 extern "C"
3559# endif
3560 int F77_DUMMY_MAIN() { return 1; }
3561#endif
3562int
3563main ()
3564{
3565yywrap ();
3566 ;
3567 return 0;
3568}
3569_ACEOF
3570rm -f conftest.$ac_objext conftest$ac_exeext
3571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3572 (eval $ac_link) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -s conftest$ac_exeext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_cv_lib_l_yywrap=yes
3583else
3584 echo "$as_me: failed program was:" >&5
3585cat conftest.$ac_ext >&5
3586ac_cv_lib_l_yywrap=no
3587fi
3588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3589LIBS=$ac_check_lib_save_LIBS
3590fi
3591echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3592echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3593if test $ac_cv_lib_l_yywrap = yes; then
3594 LEXLIB="-ll"
3595fi
3596
3597fi
3598
3599fi
3600
3601if test "x$LEX" != "x:"; then
3602 echo "$as_me:$LINENO: checking lex output file root" >&5
3603echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3604if test "${ac_cv_prog_lex_root+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607 # The minimal lex program is just a single line: %%. But some broken lexes
3608# (Solaris, I think it was) want two %% lines, so accommodate them.
3609cat >conftest.l <<_ACEOF
3610%%
3611%%
3612_ACEOF
3613{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3614 (eval $LEX conftest.l) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }
3618if test -f lex.yy.c; then
3619 ac_cv_prog_lex_root=lex.yy
3620elif test -f lexyy.c; then
3621 ac_cv_prog_lex_root=lexyy
3622else
3623 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3624echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3625 { (exit 1); exit 1; }; }
3626fi
3627fi
3628echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3629echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3630rm -f conftest.l
3631LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3632
3633echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3634echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3635if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637else
3638 # POSIX says lex can declare yytext either as a pointer or an array; the
3639# default is implementation-dependent. Figure out which it is, since
3640# not all implementations provide the %pointer and %array declarations.
3641ac_cv_prog_lex_yytext_pointer=no
3642echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3643ac_save_LIBS=$LIBS
3644LIBS="$LIBS $LEXLIB"
3645cat >conftest.$ac_ext <<_ACEOF
3646`cat $LEX_OUTPUT_ROOT.c`
3647_ACEOF
3648rm -f conftest.$ac_objext conftest$ac_exeext
3649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650 (eval $ac_link) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -s conftest$ac_exeext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_prog_lex_yytext_pointer=yes
3661else
3662 echo "$as_me: failed program was:" >&5
3663cat conftest.$ac_ext >&5
3664fi
3665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3666LIBS=$ac_save_LIBS
3667rm -f "${LEX_OUTPUT_ROOT}.c"
3668
3669fi
3670echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3671echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3672if test $ac_cv_prog_lex_yytext_pointer = yes; then
3673
3674cat >>confdefs.h <<\_ACEOF
3675#define YYTEXT_POINTER 1
3676_ACEOF
3677
3678fi
3679
3680fi
3681if test "$LEX" = :; then
3682 LEX=${am_missing_run}flex
3683fi
3684for ac_prog in gawk mawk nawk awk
3685do
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687set dummy $ac_prog; ac_word=$2
3688echo "$as_me:$LINENO: checking for $ac_word" >&5
3689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3690if test "${ac_cv_prog_AWK+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692else
3693 if test -n "$AWK"; then
3694 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3695else
3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH
3698do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703 ac_cv_prog_AWK="$ac_prog"
3704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3706 fi
3707done
3708done
3709
3710fi
3711fi
3712AWK=$ac_cv_prog_AWK
3713if test -n "$AWK"; then
3714 echo "$as_me:$LINENO: result: $AWK" >&5
3715echo "${ECHO_T}$AWK" >&6
3716else
3717 echo "$as_me:$LINENO: result: no" >&5
3718echo "${ECHO_T}no" >&6
3719fi
3720
3721 test -n "$AWK" && break
3722done
3723
3724echo "$as_me:$LINENO: checking for ln -s or something else" >&5
3725echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3726if test "${ac_cv_prog_LN_S+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
3729 rm -f conftestdata
3730if ln -s X conftestdata 2>/dev/null
3731then
3732 rm -f conftestdata
3733 ac_cv_prog_LN_S="ln -s"
3734else
3735 touch conftestdata1
3736 if ln conftestdata1 conftestdata2; then
3737 rm -f conftestdata*
3738 ac_cv_prog_LN_S=ln
3739 else
3740 ac_cv_prog_LN_S=cp
3741 fi
3742fi
3743fi
3744LN_S="$ac_cv_prog_LN_S"
3745echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
3746echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
3747
3748
3749
3750
3751# Check whether --with-mips_abi or --without-mips_abi was given.
3752if test "${with_mips_abi+set}" = set; then
3753 withval="$with_mips_abi"
3754
3755fi;
3756
3757case "$host_os" in
3758irix*)
3759with_mips_abi="${with_mips_abi:-yes}"
3760if test -n "$GCC"; then
3761
3762# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
3763# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
3764#
3765# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
3766# GCC and revert back to O32. The same goes if O32 is asked for - old
3767# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
3768#
3769# Don't you just love *all* the different SGI ABIs?
3770
3771case "${with_mips_abi}" in
3772 32|o32) abi='-mabi=32'; abilibdirext='' ;;
3773 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
3774 64) abi='-mabi=64'; abilibdirext='64' ;;
3775 no) abi=''; abilibdirext='';;
3776 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3777echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3778 { (exit 1); exit 1; }; } ;;
3779esac
3780if test -n "$abi" ; then
3781ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
3782echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
3783echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
3784if eval "test \"\${$ac_foo+set}\" = set"; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
3787
3788save_CFLAGS="$CFLAGS"
3789CFLAGS="$CFLAGS $abi"
3790cat >conftest.$ac_ext <<_ACEOF
3791#line $LINENO "configure"
3792#include "confdefs.h"
3793
3794#ifdef F77_DUMMY_MAIN
3795# ifdef __cplusplus
3796 extern "C"
3797# endif
3798 int F77_DUMMY_MAIN() { return 1; }
3799#endif
3800int
3801main ()
3802{
3803int x;
3804 ;
3805 return 0;
3806}
3807_ACEOF
3808rm -f conftest.$ac_objext
3809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 eval $ac_foo=yes
3821else
3822 echo "$as_me: failed program was:" >&5
3823cat conftest.$ac_ext >&5
3824eval $ac_foo=no
3825fi
3826rm -f conftest.$ac_objext conftest.$ac_ext
3827CFLAGS="$save_CFLAGS"
3828
3829fi
3830
3831ac_res=`eval echo \\\$$ac_foo`
3832echo "$as_me:$LINENO: result: $ac_res" >&5
3833echo "${ECHO_T}$ac_res" >&6
3834if test $ac_res = no; then
3835# Try to figure out why that failed...
3836case $abi in
3837 -mabi=32)
3838 save_CFLAGS="$CFLAGS"
3839 CFLAGS="$CFLAGS -mabi=n32"
3840 cat >conftest.$ac_ext <<_ACEOF
3841#line $LINENO "configure"
3842#include "confdefs.h"
3843
3844#ifdef F77_DUMMY_MAIN
3845# ifdef __cplusplus
3846 extern "C"
3847# endif
3848 int F77_DUMMY_MAIN() { return 1; }
3849#endif
3850int
3851main ()
3852{
3853int x;
3854 ;
3855 return 0;
3856}
3857_ACEOF
3858rm -f conftest.$ac_objext
3859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -s conftest.$ac_objext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 (eval $ac_try) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 ac_res=yes
3871else
3872 echo "$as_me: failed program was:" >&5
3873cat conftest.$ac_ext >&5
3874ac_res=no
3875fi
3876rm -f conftest.$ac_objext conftest.$ac_ext
3877 CLAGS="$save_CFLAGS"
3878 if test $ac_res = yes; then
3879 # New GCC
3880 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3881echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3882 { (exit 1); exit 1; }; }
3883 fi
3884 # Old GCC
3885 abi=''
3886 abilibdirext=''
3887 ;;
3888 -mabi=n32|-mabi=64)
3889 if test $with_mips_abi = yes; then
3890 # Old GCC, default to O32
3891 abi=''
3892 abilibdirext=''
3893 else
3894 # Some broken GCC
3895 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3896echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3897 { (exit 1); exit 1; }; }
3898 fi
3899 ;;
3900esac
3901fi #if test $ac_res = no; then
3902fi #if test -n "$abi" ; then
3903else
3904case "${with_mips_abi}" in
3905 32|o32) abi='-32'; abilibdirext='' ;;
3906 n32|yes) abi='-n32'; abilibdirext='32' ;;
3907 64) abi='-64'; abilibdirext='64' ;;
3908 no) abi=''; abilibdirext='';;
3909 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3910echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3911 { (exit 1); exit 1; }; } ;;
3912esac
3913fi #if test -n "$GCC"; then
3914;;
3915esac
3916
3917CC="$CC $abi"
3918libdir="$libdir$abilibdirext"
3919
3920
3921echo "$as_me:$LINENO: checking for __attribute__" >&5
3922echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
3923if test "${ac_cv___attribute__+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926
3927cat >conftest.$ac_ext <<_ACEOF
3928#line $LINENO "configure"
3929#include "confdefs.h"
3930
3931#include <stdlib.h>
3932
3933#ifdef F77_DUMMY_MAIN
3934# ifdef __cplusplus
3935 extern "C"
3936# endif
3937 int F77_DUMMY_MAIN() { return 1; }
3938#endif
3939int
3940main ()
3941{
3942
3943static void foo(void) __attribute__ ((noreturn));
3944
3945static void
3946foo(void)
3947{
3948 exit(1);
3949}
3950
3951 ;
3952 return 0;
3953}
3954_ACEOF
3955rm -f conftest.$ac_objext
3956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 ac_cv___attribute__=yes
3968else
3969 echo "$as_me: failed program was:" >&5
3970cat conftest.$ac_ext >&5
3971ac_cv___attribute__=no
3972fi
3973rm -f conftest.$ac_objext conftest.$ac_ext
3974fi
3975
3976if test "$ac_cv___attribute__" = "yes"; then
3977
3978cat >>confdefs.h <<\_ACEOF
3979#define HAVE___ATTRIBUTE__ 1
3980_ACEOF
3981
3982fi
3983echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3984echo "${ECHO_T}$ac_cv___attribute__" >&6
3985
3986
3987# Check whether --enable-shared or --disable-shared was given.
3988if test "${enable_shared+set}" = set; then
3989 enableval="$enable_shared"
3990 p=${PACKAGE-default}
3991case $enableval in
3992yes) enable_shared=yes ;;
3993no) enable_shared=no ;;
3994*)
3995 enable_shared=no
3996 # Look at the argument we got. We use all the common list separators.
3997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3998 for pkg in $enableval; do
3999 if test "X$pkg" = "X$p"; then
4000 enable_shared=yes
4001 fi
4002 done
4003 IFS="$ac_save_ifs"
4004 ;;
4005esac
4006else
4007 enable_shared=no
4008fi;
4009# Check whether --enable-static or --disable-static was given.
4010if test "${enable_static+set}" = set; then
4011 enableval="$enable_static"
4012 p=${PACKAGE-default}
4013case $enableval in
4014yes) enable_static=yes ;;
4015no) enable_static=no ;;
4016*)
4017 enable_static=no
4018 # Look at the argument we got. We use all the common list separators.
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4020 for pkg in $enableval; do
4021 if test "X$pkg" = "X$p"; then
4022 enable_static=yes
4023 fi
4024 done
4025 IFS="$ac_save_ifs"
4026 ;;
4027esac
4028else
4029 enable_static=yes
4030fi;
4031# Check whether --enable-fast-install or --disable-fast-install was given.
4032if test "${enable_fast_install+set}" = set; then
4033 enableval="$enable_fast_install"
4034 p=${PACKAGE-default}
4035case $enableval in
4036yes) enable_fast_install=yes ;;
4037no) enable_fast_install=no ;;
4038*)
4039 enable_fast_install=no
4040 # Look at the argument we got. We use all the common list separators.
4041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4042 for pkg in $enableval; do
4043 if test "X$pkg" = "X$p"; then
4044 enable_fast_install=yes
4045 fi
4046 done
4047 IFS="$ac_save_ifs"
4048 ;;
4049esac
4050else
4051 enable_fast_install=yes
4052fi;
4053# Find the correct PATH separator. Usually this is `:', but
4054# DJGPP uses `;' like DOS.
4055if test "X${PATH_SEPARATOR+set}" != Xset; then
4056 UNAME=${UNAME-`uname 2>/dev/null`}
4057 case X$UNAME in
4058 *-DOS) lt_cv_sys_path_separator=';' ;;
4059 *) lt_cv_sys_path_separator=':' ;;
4060 esac
4061 PATH_SEPARATOR=$lt_cv_sys_path_separator
4062fi
4063
4064
4065# Check whether --with-gnu-ld or --without-gnu-ld was given.
4066if test "${with_gnu_ld+set}" = set; then
4067 withval="$with_gnu_ld"
4068 test "$withval" = no || with_gnu_ld=yes
4069else
4070 with_gnu_ld=no
4071fi;
4072ac_prog=ld
4073if test "$GCC" = yes; then
4074 # Check if gcc -print-prog-name=ld gives a path.
4075 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4076echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4077 case $host in
4078 *-*-mingw*)
4079 # gcc leaves a trailing carriage return which upsets mingw
4080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4081 *)
4082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4083 esac
4084 case $ac_prog in
4085 # Accept absolute paths.
4086 [\\/]* | [A-Za-z]:[\\/]*)
4087 re_direlt='/[^/][^/]*/\.\./'
4088 # Canonicalize the path of ld
4089 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4090 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4091 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4092 done
4093 test -z "$LD" && LD="$ac_prog"
4094 ;;
4095 "")
4096 # If it fails, then pretend we aren't using GCC.
4097 ac_prog=ld
4098 ;;
4099 *)
4100 # If it is relative, then search for the first ld in PATH.
4101 with_gnu_ld=unknown
4102 ;;
4103 esac
4104elif test "$with_gnu_ld" = yes; then
4105 echo "$as_me:$LINENO: checking for GNU ld" >&5
4106echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4107else
4108 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4109echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4110fi
4111if test "${lt_cv_path_LD+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 if test -z "$LD"; then
4115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4116 for ac_dir in $PATH; do
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4119 lt_cv_path_LD="$ac_dir/$ac_prog"
4120 # Check to see if the program is GNU ld. I'd rather use --version,
4121 # but apparently some GNU ld's only accept -v.
4122 # Break only if it was the GNU/non-GNU ld that we prefer.
4123 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4124 test "$with_gnu_ld" != no && break
4125 else
4126 test "$with_gnu_ld" != yes && break
4127 fi
4128 fi
4129 done
4130 IFS="$ac_save_ifs"
4131else
4132 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4133fi
4134fi
4135
4136LD="$lt_cv_path_LD"
4137if test -n "$LD"; then
4138 echo "$as_me:$LINENO: result: $LD" >&5
4139echo "${ECHO_T}$LD" >&6
4140else
4141 echo "$as_me:$LINENO: result: no" >&5
4142echo "${ECHO_T}no" >&6
4143fi
4144test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4145echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4146 { (exit 1); exit 1; }; }
4147echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4148echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4149if test "${lt_cv_prog_gnu_ld+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4153if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4154 lt_cv_prog_gnu_ld=yes
4155else
4156 lt_cv_prog_gnu_ld=no
4157fi
4158fi
4159echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4160echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4161with_gnu_ld=$lt_cv_prog_gnu_ld
4162
4163
4164echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4165echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4166if test "${lt_cv_ld_reload_flag+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169 lt_cv_ld_reload_flag='-r'
4170fi
4171echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4172echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4173reload_flag=$lt_cv_ld_reload_flag
4174test -n "$reload_flag" && reload_flag=" $reload_flag"
4175
4176echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4177echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4178if test "${lt_cv_path_NM+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181 if test -n "$NM"; then
4182 # Let the user override the test.
4183 lt_cv_path_NM="$NM"
4184else
4185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4187 test -z "$ac_dir" && ac_dir=.
4188 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4189 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4190 # Check to see if the nm accepts a BSD-compat flag.
4191 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4192 # nm: unknown option "B" ignored
4193 # Tru64's nm complains that /dev/null is an invalid object file
4194 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4195 lt_cv_path_NM="$tmp_nm -B"
4196 break
4197 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4198 lt_cv_path_NM="$tmp_nm -p"
4199 break
4200 else
4201 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4202 continue # so that we can try to find one that supports BSD flags
4203 fi
4204 fi
4205 done
4206 IFS="$ac_save_ifs"
4207 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4208fi
4209fi
4210
4211NM="$lt_cv_path_NM"
4212echo "$as_me:$LINENO: result: $NM" >&5
4213echo "${ECHO_T}$NM" >&6
4214
4215echo "$as_me:$LINENO: checking whether ln -s works" >&5
4216echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4217LN_S=$as_ln_s
4218if test "$LN_S" = "ln -s"; then
4219 echo "$as_me:$LINENO: result: yes" >&5
4220echo "${ECHO_T}yes" >&6
4221else
4222 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4223echo "${ECHO_T}no, using $LN_S" >&6
4224fi
4225
4226echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4227echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4228if test "${lt_cv_deplibs_check_method+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230else
4231 lt_cv_file_magic_cmd='$MAGIC_CMD'
4232lt_cv_file_magic_test_file=
4233lt_cv_deplibs_check_method='unknown'
4234# Need to set the preceding variable on all platforms that support
4235# interlibrary dependencies.
4236# 'none' -- dependencies not supported.
4237# `unknown' -- same as none, but documents that we really don't know.
4238# 'pass_all' -- all dependencies passed with no checks.
4239# 'test_compile' -- check by making test program.
4240# 'file_magic [[regex]]' -- check by looking for files in library path
4241# which responds to the $file_magic_cmd with a given egrep regex.
4242# If you have `file' or equivalent on your system and you're not sure
4243# whether `pass_all' will *always* work, you probably want this one.
4244
4245case $host_os in
4246aix4* | aix5*)
4247 lt_cv_deplibs_check_method=pass_all
4248 ;;
4249
4250beos*)
4251 lt_cv_deplibs_check_method=pass_all
4252 ;;
4253
4254bsdi4*)
4255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4256 lt_cv_file_magic_cmd='/usr/bin/file -L'
4257 lt_cv_file_magic_test_file=/shlib/libc.so
4258 ;;
4259
4260cygwin* | mingw* | pw32*)
4261 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4262 lt_cv_file_magic_cmd='$OBJDUMP -f'
4263 ;;
4264
4265darwin* | rhapsody*)
4266 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4267 lt_cv_file_magic_cmd='/usr/bin/file -L'
4268 case "$host_os" in
4269 rhapsody* | darwin1.[012])
4270 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4271 ;;
4272 *) # Darwin 1.3 on
4273 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4274 ;;
4275 esac
4276 ;;
4277
4278freebsd*)
4279 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4280 case $host_cpu in
4281 i*86 )
4282 # Not sure whether the presence of OpenBSD here was a mistake.
4283 # Let's accept both of them until this is cleared up.
4284 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4285 lt_cv_file_magic_cmd=/usr/bin/file
4286 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4287 ;;
4288 esac
4289 else
4290 lt_cv_deplibs_check_method=pass_all
4291 fi
4292 ;;
4293
4294gnu*)
4295 lt_cv_deplibs_check_method=pass_all
4296 ;;
4297
4298hpux10.20*|hpux11*)
4299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4300 lt_cv_file_magic_cmd=/usr/bin/file
4301 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4302 ;;
4303
4304irix5* | irix6*)
4305 case $host_os in
4306 irix5*)
4307 # this will be overridden with pass_all, but let us keep it just in case
4308 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4309 ;;
4310 *)
4311 case $LD in
4312 *-32|*"-32 ") libmagic=32-bit;;
4313 *-n32|*"-n32 ") libmagic=N32;;
4314 *-64|*"-64 ") libmagic=64-bit;;
4315 *) libmagic=never-match;;
4316 esac
4317 # this will be overridden with pass_all, but let us keep it just in case
4318 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4319 ;;
4320 esac
4321 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4322 lt_cv_deplibs_check_method=pass_all
4323 ;;
4324
4325# This must be Linux ELF.
4326linux-gnu*)
4327 case $host_cpu in
4328 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4329 lt_cv_deplibs_check_method=pass_all ;;
4330 *)
4331 # glibc up to 2.1.1 does not perform some relocations on ARM
4332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4333 esac
4334 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4335 ;;
4336
4337netbsd*)
4338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4339 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4340 else
4341 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4342 fi
4343 ;;
4344
4345newos6*)
4346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4347 lt_cv_file_magic_cmd=/usr/bin/file
4348 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4349 ;;
4350
4351openbsd*)
4352 lt_cv_file_magic_cmd=/usr/bin/file
4353 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4356 else
4357 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4358 fi
4359 ;;
4360
4361osf3* | osf4* | osf5*)
4362 # this will be overridden with pass_all, but let us keep it just in case
4363 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4364 lt_cv_file_magic_test_file=/shlib/libc.so
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367
4368sco3.2v5*)
4369 lt_cv_deplibs_check_method=pass_all
4370 ;;
4371
4372solaris*)
4373 lt_cv_deplibs_check_method=pass_all
4374 lt_cv_file_magic_test_file=/lib/libc.so
4375 ;;
4376
4377sysv5uw[78]* | sysv4*uw2*)
4378 lt_cv_deplibs_check_method=pass_all
4379 ;;
4380
4381sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4382 case $host_vendor in
4383 motorola)
4384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4385 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4386 ;;
4387 ncr)
4388 lt_cv_deplibs_check_method=pass_all
4389 ;;
4390 sequent)
4391 lt_cv_file_magic_cmd='/bin/file'
4392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4393 ;;
4394 sni)
4395 lt_cv_file_magic_cmd='/bin/file'
4396 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4397 lt_cv_file_magic_test_file=/lib/libc.so
4398 ;;
4399 esac
4400 ;;
4401esac
4402
4403fi
4404echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4405echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4406file_magic_cmd=$lt_cv_file_magic_cmd
4407deplibs_check_method=$lt_cv_deplibs_check_method
4408
4409
4410
4411
4412
4413# Check for command to grab the raw symbol name followed by C symbol from nm.
4414echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4415echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4416if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419
4420# These are sane defaults that work on at least a few old systems.
4421# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4422
4423# Character class describing NM global symbol codes.
4424symcode='[BCDEGRST]'
4425
4426# Regexp to match symbols that can be accessed directly from C.
4427sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4428
4429# Transform the above into a raw symbol and a C symbol.
4430symxfrm='\1 \2\3 \3'
4431
4432# Transform an extracted symbol line into a proper C declaration
4433lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4434
4435# Transform an extracted symbol line into symbol name and symbol address
4436lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4437
4438# Define system-specific variables.
4439case $host_os in
4440aix*)
4441 symcode='[BCDT]'
4442 ;;
4443cygwin* | mingw* | pw32*)
4444 symcode='[ABCDGISTW]'
4445 ;;
4446hpux*) # Its linker distinguishes data from code symbols
4447 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4448 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4449 ;;
4450irix*)
4451 symcode='[BCDEGRST]'
4452 ;;
4453solaris* | sysv5*)
4454 symcode='[BDT]'
4455 ;;
4456sysv4)
4457 symcode='[DFNSTU]'
4458 ;;
4459esac
4460
4461# Handle CRLF in mingw tool chain
4462opt_cr=
4463case $host_os in
4464mingw*)
4465 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4466 ;;
4467esac
4468
4469# If we're using GNU nm, then use its standard symbol codes.
4470if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4471 symcode='[ABCDGISTW]'
4472fi
4473
4474# Try without a prefix undercore, then with it.
4475for ac_symprfx in "" "_"; do
4476
4477 # Write the raw and C identifiers.
4478lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4479
4480 # Check to see that the pipe works correctly.
4481 pipe_works=no
4482 rm -f conftest*
4483 cat > conftest.$ac_ext <<EOF
4484#ifdef __cplusplus
4485extern "C" {
4486#endif
4487char nm_test_var;
4488void nm_test_func(){}
4489#ifdef __cplusplus
4490}
4491#endif
4492int main(){nm_test_var='a';nm_test_func();return(0);}
4493EOF
4494
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; then
4500 # Now try to grab the symbols.
4501 nlist=conftest.nm
4502 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4503 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } && test -s "$nlist"; then
4507 # Try sorting and uniquifying the output.
4508 if sort "$nlist" | uniq > "$nlist"T; then
4509 mv -f "$nlist"T "$nlist"
4510 else
4511 rm -f "$nlist"T
4512 fi
4513
4514 # Make sure that we snagged all the symbols we need.
4515 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4516 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4517 cat <<EOF > conftest.$ac_ext
4518#ifdef __cplusplus
4519extern "C" {
4520#endif
4521
4522EOF
4523 # Now generate the symbol file.
4524 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4525
4526 cat <<EOF >> conftest.$ac_ext
4527#if defined (__STDC__) && __STDC__
4528# define lt_ptr void *
4529#else
4530# define lt_ptr char *
4531# define const
4532#endif
4533
4534/* The mapping between symbol names and symbols. */
4535const struct {
4536 const char *name;
4537 lt_ptr address;
4538}
4539lt_preloaded_symbols[] =
4540{
4541EOF
4542 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4543 cat <<\EOF >> conftest.$ac_ext
4544 {0, (lt_ptr) 0}
4545};
4546
4547#ifdef __cplusplus
4548}
4549#endif
4550EOF
4551 # Now try linking the two files.
4552 mv conftest.$ac_objext conftstm.$ac_objext
4553 save_LIBS="$LIBS"
4554 save_CFLAGS="$CFLAGS"
4555 LIBS="conftstm.$ac_objext"
4556 CFLAGS="$CFLAGS$no_builtin_flag"
4557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558 (eval $ac_link) 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } && test -s conftest; then
4562 pipe_works=yes
4563 fi
4564 LIBS="$save_LIBS"
4565 CFLAGS="$save_CFLAGS"
4566 else
4567 echo "cannot find nm_test_func in $nlist" >&5
4568 fi
4569 else
4570 echo "cannot find nm_test_var in $nlist" >&5
4571 fi
4572 else
4573 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4574 fi
4575 else
4576 echo "$progname: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 fi
4579 rm -f conftest* conftst*
4580
4581 # Do not use the global_symbol_pipe unless it works.
4582 if test "$pipe_works" = yes; then
4583 break
4584 else
4585 lt_cv_sys_global_symbol_pipe=
4586 fi
4587done
4588
4589fi
4590
4591global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4592if test -z "$lt_cv_sys_global_symbol_pipe"; then
4593 global_symbol_to_cdecl=
4594 global_symbol_to_c_name_address=
4595else
4596 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4597 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4598fi
4599if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4600then
4601 echo "$as_me:$LINENO: result: failed" >&5
4602echo "${ECHO_T}failed" >&6
4603else
4604 echo "$as_me:$LINENO: result: ok" >&5
4605echo "${ECHO_T}ok" >&6
4606fi
4607
4608
4609echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4610echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4611if test "${ac_cv_header_stdc+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
4614 cat >conftest.$ac_ext <<_ACEOF
4615#line $LINENO "configure"
4616#include "confdefs.h"
4617#include <stdlib.h>
4618#include <stdarg.h>
4619#include <string.h>
4620#include <float.h>
4621
4622_ACEOF
4623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4625 ac_status=$?
4626 egrep -v '^ *\+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } >/dev/null; then
4631 if test -s conftest.err; then
4632 ac_cpp_err=$ac_c_preproc_warn_flag
4633 else
4634 ac_cpp_err=
4635 fi
4636else
4637 ac_cpp_err=yes
4638fi
4639if test -z "$ac_cpp_err"; then
4640 ac_cv_header_stdc=yes
4641else
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 ac_cv_header_stdc=no
4645fi
4646rm -f conftest.err conftest.$ac_ext
4647
4648if test $ac_cv_header_stdc = yes; then
4649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4650 cat >conftest.$ac_ext <<_ACEOF
4651#line $LINENO "configure"
4652#include "confdefs.h"
4653#include <string.h>
4654
4655_ACEOF
4656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4657 egrep "memchr" >/dev/null 2>&1; then
4658 :
4659else
4660 ac_cv_header_stdc=no
4661fi
4662rm -f conftest*
4663
4664fi
4665
4666if test $ac_cv_header_stdc = yes; then
4667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4668 cat >conftest.$ac_ext <<_ACEOF
4669#line $LINENO "configure"
4670#include "confdefs.h"
4671#include <stdlib.h>
4672
4673_ACEOF
4674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675 egrep "free" >/dev/null 2>&1; then
4676 :
4677else
4678 ac_cv_header_stdc=no
4679fi
4680rm -f conftest*
4681
4682fi
4683
4684if test $ac_cv_header_stdc = yes; then
4685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4686 if test "$cross_compiling" = yes; then
4687 :
4688else
4689 cat >conftest.$ac_ext <<_ACEOF
4690#line $LINENO "configure"
4691#include "confdefs.h"
4692#include <ctype.h>
4693#if ((' ' & 0x0FF) == 0x020)
4694# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4695# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4696#else
4697# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4698 || ('j' <= (c) && (c) <= 'r') \
4699 || ('s' <= (c) && (c) <= 'z'))
4700# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4701#endif
4702
4703#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4704int
4705main ()
4706{
4707 int i;
4708 for (i = 0; i < 256; i++)
4709 if (XOR (islower (i), ISLOWER (i))
4710 || toupper (i) != TOUPPER (i))
4711 exit(2);
4712 exit (0);
4713}
4714_ACEOF
4715rm -f conftest$ac_exeext
4716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 :
4727else
4728 echo "$as_me: program exited with status $ac_status" >&5
4729echo "$as_me: failed program was:" >&5
4730cat conftest.$ac_ext >&5
4731( exit $ac_status )
4732ac_cv_header_stdc=no
4733fi
4734rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4735fi
4736fi
4737fi
4738echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4739echo "${ECHO_T}$ac_cv_header_stdc" >&6
4740if test $ac_cv_header_stdc = yes; then
4741
4742cat >>confdefs.h <<\_ACEOF
4743#define STDC_HEADERS 1
4744_ACEOF
4745
4746fi
4747
4748# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4759 inttypes.h stdint.h unistd.h
4760do
4761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4762echo "$as_me:$LINENO: checking for $ac_header" >&5
4763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4764if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 cat >conftest.$ac_ext <<_ACEOF
4768#line $LINENO "configure"
4769#include "confdefs.h"
4770$ac_includes_default
4771
4772#include <$ac_header>
4773_ACEOF
4774rm -f conftest.$ac_objext
4775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776 (eval $ac_compile) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 eval "$as_ac_Header=yes"
4787else
4788 echo "$as_me: failed program was:" >&5
4789cat conftest.$ac_ext >&5
4790eval "$as_ac_Header=no"
4791fi
4792rm -f conftest.$ac_objext conftest.$ac_ext
4793fi
4794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796if test `eval echo '${'$as_ac_Header'}'` = yes; then
4797 cat >>confdefs.h <<_ACEOF
4798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4799_ACEOF
4800
4801fi
4802
4803done
4804
4805
4806
4807for ac_header in dlfcn.h
4808do
4809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4810if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo "$as_me:$LINENO: checking for $ac_header" >&5
4812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4813if eval "test \"\${$as_ac_Header+set}\" = set"; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815fi
4816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4818else
4819 # Is the header compilable?
4820echo "$as_me:$LINENO: checking $ac_header usability" >&5
4821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4822cat >conftest.$ac_ext <<_ACEOF
4823#line $LINENO "configure"
4824#include "confdefs.h"
4825$ac_includes_default
4826#include <$ac_header>
4827_ACEOF
4828rm -f conftest.$ac_objext
4829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>&5
4831 ac_status=$?
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try='test -s conftest.$ac_objext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 ac_header_compiler=yes
4841else
4842 echo "$as_me: failed program was:" >&5
4843cat conftest.$ac_ext >&5
4844ac_header_compiler=no
4845fi
4846rm -f conftest.$ac_objext conftest.$ac_ext
4847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848echo "${ECHO_T}$ac_header_compiler" >&6
4849
4850# Is the header present?
4851echo "$as_me:$LINENO: checking $ac_header presence" >&5
4852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4853cat >conftest.$ac_ext <<_ACEOF
4854#line $LINENO "configure"
4855#include "confdefs.h"
4856#include <$ac_header>
4857_ACEOF
4858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4860 ac_status=$?
4861 egrep -v '^ *\+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev/null; then
4866 if test -s conftest.err; then
4867 ac_cpp_err=$ac_c_preproc_warn_flag
4868 else
4869 ac_cpp_err=
4870 fi
4871else
4872 ac_cpp_err=yes
4873fi
4874if test -z "$ac_cpp_err"; then
4875 ac_header_preproc=yes
4876else
4877 echo "$as_me: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4879 ac_header_preproc=no
4880fi
4881rm -f conftest.err conftest.$ac_ext
4882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4883echo "${ECHO_T}$ac_header_preproc" >&6
4884
4885# So? What about this header?
4886case $ac_header_compiler:$ac_header_preproc in
4887 yes:no )
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4892 no:yes )
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4896echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4899esac
4900echo "$as_me:$LINENO: checking for $ac_header" >&5
4901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 eval "$as_ac_Header=$ac_header_preproc"
4906fi
4907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
4910fi
4911if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912 cat >>confdefs.h <<_ACEOF
4913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914_ACEOF
4915
4916fi
4917
4918done
4919
4920
4921
4922
4923
4924# Only perform the check for file, if the check method requires it
4925case $deplibs_check_method in
4926file_magic*)
4927 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4928 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4929echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4930if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933 case $MAGIC_CMD in
4934 /*)
4935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4936 ;;
4937 ?:/*)
4938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4939 ;;
4940 *)
4941 ac_save_MAGIC_CMD="$MAGIC_CMD"
4942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4943 ac_dummy="/usr/bin:$PATH"
4944 for ac_dir in $ac_dummy; do
4945 test -z "$ac_dir" && ac_dir=.
4946 if test -f $ac_dir/${ac_tool_prefix}file; then
4947 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4948 if test -n "$file_magic_test_file"; then
4949 case $deplibs_check_method in
4950 "file_magic "*)
4951 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4954 egrep "$file_magic_regex" > /dev/null; then
4955 :
4956 else
4957 cat <<EOF 1>&2
4958
4959*** Warning: the command libtool uses to detect shared libraries,
4960*** $file_magic_cmd, produces output that libtool cannot recognize.
4961*** The result is that libtool may fail to recognize shared libraries
4962*** as such. This will affect the creation of libtool libraries that
4963*** depend on shared libraries, but programs linked with such libtool
4964*** libraries will work regardless of this problem. Nevertheless, you
4965*** may want to report the problem to your system manager and/or to
4966*** bug-libtool@gnu.org
4967
4968EOF
4969 fi ;;
4970 esac
4971 fi
4972 break
4973 fi
4974 done
4975 IFS="$ac_save_ifs"
4976 MAGIC_CMD="$ac_save_MAGIC_CMD"
4977 ;;
4978esac
4979fi
4980
4981MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4982if test -n "$MAGIC_CMD"; then
4983 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4984echo "${ECHO_T}$MAGIC_CMD" >&6
4985else
4986 echo "$as_me:$LINENO: result: no" >&5
4987echo "${ECHO_T}no" >&6
4988fi
4989
4990if test -z "$lt_cv_path_MAGIC_CMD"; then
4991 if test -n "$ac_tool_prefix"; then
4992 echo "$as_me:$LINENO: checking for file" >&5
4993echo $ECHO_N "checking for file... $ECHO_C" >&6
4994if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997 case $MAGIC_CMD in
4998 /*)
4999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5000 ;;
5001 ?:/*)
5002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5003 ;;
5004 *)
5005 ac_save_MAGIC_CMD="$MAGIC_CMD"
5006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5007 ac_dummy="/usr/bin:$PATH"
5008 for ac_dir in $ac_dummy; do
5009 test -z "$ac_dir" && ac_dir=.
5010 if test -f $ac_dir/file; then
5011 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5012 if test -n "$file_magic_test_file"; then
5013 case $deplibs_check_method in
5014 "file_magic "*)
5015 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5018 egrep "$file_magic_regex" > /dev/null; then
5019 :
5020 else
5021 cat <<EOF 1>&2
5022
5023*** Warning: the command libtool uses to detect shared libraries,
5024*** $file_magic_cmd, produces output that libtool cannot recognize.
5025*** The result is that libtool may fail to recognize shared libraries
5026*** as such. This will affect the creation of libtool libraries that
5027*** depend on shared libraries, but programs linked with such libtool
5028*** libraries will work regardless of this problem. Nevertheless, you
5029*** may want to report the problem to your system manager and/or to
5030*** bug-libtool@gnu.org
5031
5032EOF
5033 fi ;;
5034 esac
5035 fi
5036 break
5037 fi
5038 done
5039 IFS="$ac_save_ifs"
5040 MAGIC_CMD="$ac_save_MAGIC_CMD"
5041 ;;
5042esac
5043fi
5044
5045MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5046if test -n "$MAGIC_CMD"; then
5047 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5048echo "${ECHO_T}$MAGIC_CMD" >&6
5049else
5050 echo "$as_me:$LINENO: result: no" >&5
5051echo "${ECHO_T}no" >&6
5052fi
5053
5054 else
5055 MAGIC_CMD=:
5056 fi
5057fi
5058
5059 fi
5060 ;;
5061esac
5062
5063if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5065set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5066echo "$as_me:$LINENO: checking for $ac_word" >&5
5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068if test "${ac_cv_prog_RANLIB+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071 if test -n "$RANLIB"; then
5072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086done
5087
5088fi
5089fi
5090RANLIB=$ac_cv_prog_RANLIB
5091if test -n "$RANLIB"; then
5092 echo "$as_me:$LINENO: result: $RANLIB" >&5
5093echo "${ECHO_T}$RANLIB" >&6
5094else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097fi
5098
5099fi
5100if test -z "$ac_cv_prog_RANLIB"; then
5101 ac_ct_RANLIB=$RANLIB
5102 # Extract the first word of "ranlib", so it can be a program name with args.
5103set dummy ranlib; ac_word=$2
5104echo "$as_me:$LINENO: checking for $ac_word" >&5
5105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109 if test -n "$ac_ct_RANLIB"; then
5110 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5111else
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_ac_ct_RANLIB="ranlib"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123done
5124done
5125
5126 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5127fi
5128fi
5129ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5130if test -n "$ac_ct_RANLIB"; then
5131 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5132echo "${ECHO_T}$ac_ct_RANLIB" >&6
5133else
5134 echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136fi
5137
5138 RANLIB=$ac_ct_RANLIB
5139else
5140 RANLIB="$ac_cv_prog_RANLIB"
5141fi
5142
5143if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5145set dummy ${ac_tool_prefix}strip; ac_word=$2
5146echo "$as_me:$LINENO: checking for $ac_word" >&5
5147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148if test "${ac_cv_prog_STRIP+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150else
5151 if test -n "$STRIP"; then
5152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5153else
5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165done
5166done
5167
5168fi
5169fi
5170STRIP=$ac_cv_prog_STRIP
5171if test -n "$STRIP"; then
5172 echo "$as_me:$LINENO: result: $STRIP" >&5
5173echo "${ECHO_T}$STRIP" >&6
5174else
5175 echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177fi
5178
5179fi
5180if test -z "$ac_cv_prog_STRIP"; then
5181 ac_ct_STRIP=$STRIP
5182 # Extract the first word of "strip", so it can be a program name with args.
5183set dummy strip; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 if test -n "$ac_ct_STRIP"; then
5190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_ac_ct_STRIP="strip"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204done
5205
5206 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5207fi
5208fi
5209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5210if test -n "$ac_ct_STRIP"; then
5211 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5212echo "${ECHO_T}$ac_ct_STRIP" >&6
5213else
5214 echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218 STRIP=$ac_ct_STRIP
5219else
5220 STRIP="$ac_cv_prog_STRIP"
5221fi
5222
5223
5224enable_dlopen=no
5225enable_win32_dll=no
5226
5227# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5228if test "${enable_libtool_lock+set}" = set; then
5229 enableval="$enable_libtool_lock"
5230
5231fi;
5232test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5233
5234# Some flags need to be propagated to the compiler or linker for good
5235# libtool support.
5236case $host in
5237*-*-irix6*)
5238 # Find out which ABI we are using.
5239 echo '#line 5239 "configure"' > conftest.$ac_ext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; then
5245 case `/usr/bin/file conftest.$ac_objext` in
5246 *32-bit*)
5247 LD="${LD-ld} -32"
5248 ;;
5249 *N32*)
5250 LD="${LD-ld} -n32"
5251 ;;
5252 *64-bit*)
5253 LD="${LD-ld} -64"
5254 ;;
5255 esac
5256 fi
5257 rm -rf conftest*
5258 ;;
5259
5260*-*-sco3.2v5*)
5261 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5262 SAVE_CFLAGS="$CFLAGS"
5263 CFLAGS="$CFLAGS -belf"
5264 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5265echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5266if test "${lt_cv_cc_needs_belf+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269
5270
5271 ac_ext=c
5272ac_cpp='$CPP $CPPFLAGS'
5273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276
5277 cat >conftest.$ac_ext <<_ACEOF
5278#line $LINENO "configure"
5279#include "confdefs.h"
5280
5281#ifdef F77_DUMMY_MAIN
5282# ifdef __cplusplus
5283 extern "C"
5284# endif
5285 int F77_DUMMY_MAIN() { return 1; }
5286#endif
5287int
5288main ()
5289{
5290
5291 ;
5292 return 0;
5293}
5294_ACEOF
5295rm -f conftest.$ac_objext conftest$ac_exeext
5296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297 (eval $ac_link) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -s conftest$ac_exeext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 lt_cv_cc_needs_belf=yes
5308else
5309 echo "$as_me: failed program was:" >&5
5310cat conftest.$ac_ext >&5
5311lt_cv_cc_needs_belf=no
5312fi
5313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5314 ac_ext=c
5315ac_cpp='$CPP $CPPFLAGS'
5316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318ac_compiler_gnu=$ac_cv_c_compiler_gnu
5319
5320fi
5321echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5322echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5323 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5324 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5325 CFLAGS="$SAVE_CFLAGS"
5326 fi
5327 ;;
5328
5329
5330esac
5331
5332# Sed substitution that helps us do robust quoting. It backslashifies
5333# metacharacters that are still active within double-quoted strings.
5334Xsed='sed -e s/^X//'
5335sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5336
5337# Same as above, but do not quote variable references.
5338double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5339
5340# Sed substitution to delay expansion of an escaped shell variable in a
5341# double_quote_subst'ed string.
5342delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5343
5344# Constants:
5345rm="rm -f"
5346
5347# Global variables:
5348default_ofile=libtool
5349can_build_shared=yes
5350
5351# All known linkers require a `.a' archive for static linking (except M$VC,
5352# which needs '.lib').
5353libext=a
5354ltmain="$ac_aux_dir/ltmain.sh"
5355ofile="$default_ofile"
5356with_gnu_ld="$lt_cv_prog_gnu_ld"
5357need_locks="$enable_libtool_lock"
5358
5359old_CC="$CC"
5360old_CFLAGS="$CFLAGS"
5361
5362# Set sane defaults for various variables
5363test -z "$AR" && AR=ar
5364test -z "$AR_FLAGS" && AR_FLAGS=cru
5365test -z "$AS" && AS=as
5366test -z "$CC" && CC=cc
5367test -z "$DLLTOOL" && DLLTOOL=dlltool
5368test -z "$LD" && LD=ld
5369test -z "$LN_S" && LN_S="ln -s"
5370test -z "$MAGIC_CMD" && MAGIC_CMD=file
5371test -z "$NM" && NM=nm
5372test -z "$OBJDUMP" && OBJDUMP=objdump
5373test -z "$RANLIB" && RANLIB=:
5374test -z "$STRIP" && STRIP=:
5375test -z "$ac_objext" && ac_objext=o
5376
5377if test x"$host" != x"$build"; then
5378 ac_tool_prefix=${host_alias}-
5379else
5380 ac_tool_prefix=
5381fi
5382
5383# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5384case $host_os in
5385linux-gnu*) ;;
5386linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5387esac
5388
5389case $host_os in
5390aix3*)
5391 # AIX sometimes has problems with the GCC collect2 program. For some
5392 # reason, if we set the COLLECT_NAMES environment variable, the problems
5393 # vanish in a puff of smoke.
5394 if test "X${COLLECT_NAMES+set}" != Xset; then
5395 COLLECT_NAMES=
5396 export COLLECT_NAMES
5397 fi
5398 ;;
5399esac
5400
5401# Determine commands to create old-style static archives.
5402old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5403old_postinstall_cmds='chmod 644 $oldlib'
5404old_postuninstall_cmds=
5405
5406if test -n "$RANLIB"; then
5407 case $host_os in
5408 openbsd*)
5409 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5410 ;;
5411 *)
5412 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5413 ;;
5414 esac
5415 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5416fi
5417
5418# Allow CC to be a program name with arguments.
5419set dummy $CC
5420compiler="$2"
5421
5422echo "$as_me:$LINENO: checking for objdir" >&5
5423echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5424rm -f .libs 2>/dev/null
5425mkdir .libs 2>/dev/null
5426if test -d .libs; then
5427 objdir=.libs
5428else
5429 # MS-DOS does not allow filenames that begin with a dot.
5430 objdir=_libs
5431fi
5432rmdir .libs 2>/dev/null
5433echo "$as_me:$LINENO: result: $objdir" >&5
5434echo "${ECHO_T}$objdir" >&6
5435
5436
5437
5438# Check whether --with-pic or --without-pic was given.
5439if test "${with_pic+set}" = set; then
5440 withval="$with_pic"
5441 pic_mode="$withval"
5442else
5443 pic_mode=default
5444fi;
5445test -z "$pic_mode" && pic_mode=default
5446
5447# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5448# in isolation, and that seeing it set (from the cache) indicates that
5449# the associated values are set (in the cache) correctly too.
5450echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5451echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5452if test "${lt_cv_prog_cc_pic+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455 lt_cv_prog_cc_pic=
5456 lt_cv_prog_cc_shlib=
5457 lt_cv_prog_cc_wl=
5458 lt_cv_prog_cc_static=
5459 lt_cv_prog_cc_no_builtin=
5460 lt_cv_prog_cc_can_build_shared=$can_build_shared
5461
5462 if test "$GCC" = yes; then
5463 lt_cv_prog_cc_wl='-Wl,'
5464 lt_cv_prog_cc_static='-static'
5465
5466 case $host_os in
5467 aix*)
5468 # Below there is a dirty hack to force normal static linking with -ldl
5469 # The problem is because libdl dynamically linked with both libc and
5470 # libC (AIX C++ library), which obviously doesn't included in libraries
5471 # list by gcc. This cause undefined symbols with -static flags.
5472 # This hack allows C programs to be linked with "-static -ldl", but
5473 # not sure about C++ programs.
5474 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5475 ;;
5476 amigaos*)
5477 # FIXME: we need at least 68020 code to build shared libraries, but
5478 # adding the `-m68020' flag to GCC prevents building anything better,
5479 # like `-m68040'.
5480 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5481 ;;
5482 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5483 # PIC is the default for these OSes.
5484 ;;
5485 darwin* | rhapsody*)
5486 # PIC is the default on this platform
5487 # Common symbols not allowed in MH_DYLIB files
5488 lt_cv_prog_cc_pic='-fno-common'
5489 ;;
5490 cygwin* | mingw* | pw32* | os2*)
5491 # This hack is so that the source file can tell whether it is being
5492 # built for inclusion in a dll (and should export symbols for example).
5493 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5494 ;;
5495 sysv4*MP*)
5496 if test -d /usr/nec; then
5497 lt_cv_prog_cc_pic=-Kconform_pic
5498 fi
5499 ;;
5500 *)
5501 lt_cv_prog_cc_pic='-fPIC'
5502 ;;
5503 esac
5504 else
5505 # PORTME Check for PIC flags for the system compiler.
5506 case $host_os in
5507 aix3* | aix4* | aix5*)
5508 lt_cv_prog_cc_wl='-Wl,'
5509 # All AIX code is PIC.
5510 if test "$host_cpu" = ia64; then
5511 # AIX 5 now supports IA64 processor
5512 lt_cv_prog_cc_static='-Bstatic'
5513 else
5514 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5515 fi
5516 ;;
5517
5518 hpux9* | hpux10* | hpux11*)
5519 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5520 lt_cv_prog_cc_wl='-Wl,'
5521 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5522 lt_cv_prog_cc_pic='+Z'
5523 ;;
5524
5525 irix5* | irix6*)
5526 lt_cv_prog_cc_wl='-Wl,'
5527 lt_cv_prog_cc_static='-non_shared'
5528 # PIC (with -KPIC) is the default.
5529 ;;
5530
5531 cygwin* | mingw* | pw32* | os2*)
5532 # This hack is so that the source file can tell whether it is being
5533 # built for inclusion in a dll (and should export symbols for example).
5534 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5535 ;;
5536
5537 newsos6)
5538 lt_cv_prog_cc_pic='-KPIC'
5539 lt_cv_prog_cc_static='-Bstatic'
5540 ;;
5541
5542 osf3* | osf4* | osf5*)
5543 # All OSF/1 code is PIC.
5544 lt_cv_prog_cc_wl='-Wl,'
5545 lt_cv_prog_cc_static='-non_shared'
5546 ;;
5547
5548 sco3.2v5*)
5549 lt_cv_prog_cc_pic='-Kpic'
5550 lt_cv_prog_cc_static='-dn'
5551 lt_cv_prog_cc_shlib='-belf'
5552 ;;
5553
5554 solaris*)
5555 lt_cv_prog_cc_pic='-KPIC'
5556 lt_cv_prog_cc_static='-Bstatic'
5557 lt_cv_prog_cc_wl='-Wl,'
5558 ;;
5559
5560 sunos4*)
5561 lt_cv_prog_cc_pic='-PIC'
5562 lt_cv_prog_cc_static='-Bstatic'
5563 lt_cv_prog_cc_wl='-Qoption ld '
5564 ;;
5565
5566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5567 lt_cv_prog_cc_pic='-KPIC'
5568 lt_cv_prog_cc_static='-Bstatic'
5569 if test "x$host_vendor" = xsni; then
5570 lt_cv_prog_cc_wl='-LD'
5571 else
5572 lt_cv_prog_cc_wl='-Wl,'
5573 fi
5574 ;;
5575
5576 uts4*)
5577 lt_cv_prog_cc_pic='-pic'
5578 lt_cv_prog_cc_static='-Bstatic'
5579 ;;
5580
5581 sysv4*MP*)
5582 if test -d /usr/nec ;then
5583 lt_cv_prog_cc_pic='-Kconform_pic'
5584 lt_cv_prog_cc_static='-Bstatic'
5585 fi
5586 ;;
5587
5588 *)
5589 lt_cv_prog_cc_can_build_shared=no
5590 ;;
5591 esac
5592 fi
5593
5594fi
5595
5596if test -z "$lt_cv_prog_cc_pic"; then
5597 echo "$as_me:$LINENO: result: none" >&5
5598echo "${ECHO_T}none" >&6
5599else
5600 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5601echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5602
5603 # Check to make sure the pic_flag actually works.
5604 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5605echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5606 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609 save_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5611 cat >conftest.$ac_ext <<_ACEOF
5612#line $LINENO "configure"
5613#include "confdefs.h"
5614
5615#ifdef F77_DUMMY_MAIN
5616# ifdef __cplusplus
5617 extern "C"
5618# endif
5619 int F77_DUMMY_MAIN() { return 1; }
5620#endif
5621int
5622main ()
5623{
5624
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext
5630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -s conftest.$ac_objext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 case $host_os in
5642 hpux9* | hpux10* | hpux11*)
5643 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5644 # they create non-PIC objects. So, if there were any warnings, we
5645 # assume that PIC is not supported.
5646 if test -s conftest.err; then
5647 lt_cv_prog_cc_pic_works=no
5648 else
5649 lt_cv_prog_cc_pic_works=yes
5650 fi
5651 ;;
5652 *)
5653 lt_cv_prog_cc_pic_works=yes
5654 ;;
5655 esac
5656
5657else
5658 echo "$as_me: failed program was:" >&5
5659cat conftest.$ac_ext >&5
5660 lt_cv_prog_cc_pic_works=no
5661
5662fi
5663rm -f conftest.$ac_objext conftest.$ac_ext
5664 CFLAGS="$save_CFLAGS"
5665
5666fi
5667
5668
5669 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5670 lt_cv_prog_cc_pic=
5671 lt_cv_prog_cc_can_build_shared=no
5672 else
5673 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5674 fi
5675
5676 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5677echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5678fi
5679
5680# Check for any special shared library compilation flags.
5681if test -n "$lt_cv_prog_cc_shlib"; then
5682 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5683echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5684 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5685 else
5686 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5687echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5688 lt_cv_prog_cc_can_build_shared=no
5689 fi
5690fi
5691
5692echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5693echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5694if test "${lt_cv_prog_cc_static_works+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 lt_cv_prog_cc_static_works=no
5698 save_LDFLAGS="$LDFLAGS"
5699 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5700 cat >conftest.$ac_ext <<_ACEOF
5701#line $LINENO "configure"
5702#include "confdefs.h"
5703
5704#ifdef F77_DUMMY_MAIN
5705# ifdef __cplusplus
5706 extern "C"
5707# endif
5708 int F77_DUMMY_MAIN() { return 1; }
5709#endif
5710int
5711main ()
5712{
5713
5714 ;
5715 return 0;
5716}
5717_ACEOF
5718rm -f conftest.$ac_objext conftest$ac_exeext
5719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -s conftest$ac_exeext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 lt_cv_prog_cc_static_works=yes
5731else
5732 echo "$as_me: failed program was:" >&5
5733cat conftest.$ac_ext >&5
5734fi
5735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736 LDFLAGS="$save_LDFLAGS"
5737
5738fi
5739
5740
5741# Belt *and* braces to stop my trousers falling down:
5742test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5743echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5744echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5745
5746pic_flag="$lt_cv_prog_cc_pic"
5747special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5748wl="$lt_cv_prog_cc_wl"
5749link_static_flag="$lt_cv_prog_cc_static"
5750no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5751can_build_shared="$lt_cv_prog_cc_can_build_shared"
5752
5753
5754# Check to see if options -o and -c are simultaneously supported by compiler
5755echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5756echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5757if test "${lt_cv_compiler_c_o+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760
5761$rm -r conftest 2>/dev/null
5762mkdir conftest
5763cd conftest
5764echo "int some_variable = 0;" > conftest.$ac_ext
5765mkdir out
5766# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5767# that will create temporary files in the current directory regardless of
5768# the output directory. Thus, making CWD read-only will cause this test
5769# to fail, enabling locking or at least warning the user not to do parallel
5770# builds.
5771chmod -w .
5772save_CFLAGS="$CFLAGS"
5773CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5774compiler_c_o=no
5775if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5776 # The compiler can only warn and ignore the option if not recognized
5777 # So say no if there are warnings
5778 if test -s out/conftest.err; then
5779 lt_cv_compiler_c_o=no
5780 else
5781 lt_cv_compiler_c_o=yes
5782 fi
5783else
5784 # Append any errors to the config.log.
5785 cat out/conftest.err 1>&5
5786 lt_cv_compiler_c_o=no
5787fi
5788CFLAGS="$save_CFLAGS"
5789chmod u+w .
5790$rm conftest* out/*
5791rmdir out
5792cd ..
5793rmdir conftest
5794$rm -r conftest 2>/dev/null
5795
5796fi
5797
5798compiler_c_o=$lt_cv_compiler_c_o
5799echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5800echo "${ECHO_T}$compiler_c_o" >&6
5801
5802if test x"$compiler_c_o" = x"yes"; then
5803 # Check to see if we can write to a .lo
5804 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5805echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5806 if test "${lt_cv_compiler_o_lo+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809
5810 lt_cv_compiler_o_lo=no
5811 save_CFLAGS="$CFLAGS"
5812 CFLAGS="$CFLAGS -c -o conftest.lo"
5813 save_objext="$ac_objext"
5814 ac_objext=lo
5815 cat >conftest.$ac_ext <<_ACEOF
5816#line $LINENO "configure"
5817#include "confdefs.h"
5818
5819#ifdef F77_DUMMY_MAIN
5820# ifdef __cplusplus
5821 extern "C"
5822# endif
5823 int F77_DUMMY_MAIN() { return 1; }
5824#endif
5825int
5826main ()
5827{
5828int some_variable = 0;
5829 ;
5830 return 0;
5831}
5832_ACEOF
5833rm -f conftest.$ac_objext
5834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 # The compiler can only warn and ignore the option if not recognized
5846 # So say no if there are warnings
5847 if test -s conftest.err; then
5848 lt_cv_compiler_o_lo=no
5849 else
5850 lt_cv_compiler_o_lo=yes
5851 fi
5852
5853else
5854 echo "$as_me: failed program was:" >&5
5855cat conftest.$ac_ext >&5
5856fi
5857rm -f conftest.$ac_objext conftest.$ac_ext
5858 ac_objext="$save_objext"
5859 CFLAGS="$save_CFLAGS"
5860
5861fi
5862
5863 compiler_o_lo=$lt_cv_compiler_o_lo
5864 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5865echo "${ECHO_T}$compiler_o_lo" >&6
5866else
5867 compiler_o_lo=no
5868fi
5869
5870# Check to see if we can do hard links to lock some files if needed
5871hard_links="nottested"
5872if test "$compiler_c_o" = no && test "$need_locks" != no; then
5873 # do not overwrite the value of need_locks provided by the user
5874 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5875echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5876 hard_links=yes
5877 $rm conftest*
5878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5879 touch conftest.a
5880 ln conftest.a conftest.b 2>&5 || hard_links=no
5881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5882 echo "$as_me:$LINENO: result: $hard_links" >&5
5883echo "${ECHO_T}$hard_links" >&6
5884 if test "$hard_links" = no; then
5885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5886echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5887 need_locks=warn
5888 fi
5889else
5890 need_locks=no
5891fi
5892
5893if test "$GCC" = yes; then
5894 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5895 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5896echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5897 echo "int some_variable = 0;" > conftest.$ac_ext
5898 save_CFLAGS="$CFLAGS"
5899 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5900 compiler_rtti_exceptions=no
5901 cat >conftest.$ac_ext <<_ACEOF
5902#line $LINENO "configure"
5903#include "confdefs.h"
5904
5905#ifdef F77_DUMMY_MAIN
5906# ifdef __cplusplus
5907 extern "C"
5908# endif
5909 int F77_DUMMY_MAIN() { return 1; }
5910#endif
5911int
5912main ()
5913{
5914int some_variable = 0;
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
5920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -s conftest.$ac_objext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 # The compiler can only warn and ignore the option if not recognized
5932 # So say no if there are warnings
5933 if test -s conftest.err; then
5934 compiler_rtti_exceptions=no
5935 else
5936 compiler_rtti_exceptions=yes
5937 fi
5938
5939else
5940 echo "$as_me: failed program was:" >&5
5941cat conftest.$ac_ext >&5
5942fi
5943rm -f conftest.$ac_objext conftest.$ac_ext
5944 CFLAGS="$save_CFLAGS"
5945 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5946echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5947
5948 if test "$compiler_rtti_exceptions" = "yes"; then
5949 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5950 else
5951 no_builtin_flag=' -fno-builtin'
5952 fi
5953fi
5954
5955# See if the linker supports building shared libraries.
5956echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5957echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5958
5959allow_undefined_flag=
5960no_undefined_flag=
5961need_lib_prefix=unknown
5962need_version=unknown
5963# when you set need_version to no, make sure it does not cause -set_version
5964# flags to be left without arguments
5965archive_cmds=
5966archive_expsym_cmds=
5967old_archive_from_new_cmds=
5968old_archive_from_expsyms_cmds=
5969export_dynamic_flag_spec=
5970whole_archive_flag_spec=
5971thread_safe_flag_spec=
5972hardcode_into_libs=no
5973hardcode_libdir_flag_spec=
5974hardcode_libdir_separator=
5975hardcode_direct=no
5976hardcode_minus_L=no
5977hardcode_shlibpath_var=unsupported
5978runpath_var=
5979link_all_deplibs=unknown
5980always_export_symbols=no
5981export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5982# include_expsyms should be a list of space-separated symbols to be *always*
5983# included in the symbol list
5984include_expsyms=
5985# exclude_expsyms can be an egrep regular expression of symbols to exclude
5986# it will be wrapped by ` (' and `)$', so one must not match beginning or
5987# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5988# as well as any symbol that contains `d'.
5989exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5990# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5991# platforms (ab)use it in PIC code, but their linkers get confused if
5992# the symbol is explicitly referenced. Since portable code cannot
5993# rely on this symbol name, it's probably fine to never include it in
5994# preloaded symbol tables.
5995extract_expsyms_cmds=
5996
5997case $host_os in
5998cygwin* | mingw* | pw32*)
5999 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6000 # When not using gcc, we currently assume that we are using
6001 # Microsoft Visual C++.
6002 if test "$GCC" != yes; then
6003 with_gnu_ld=no
6004 fi
6005 ;;
6006openbsd*)
6007 with_gnu_ld=no
6008 ;;
6009esac
6010
6011ld_shlibs=yes
6012if test "$with_gnu_ld" = yes; then
6013 # If archive_cmds runs LD, not CC, wlarc should be empty
6014 wlarc='${wl}'
6015
6016 # See if GNU ld supports shared libraries.
6017 case $host_os in
6018 aix3* | aix4* | aix5*)
6019 # On AIX, the GNU linker is very broken
6020 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6021 ld_shlibs=no
6022 cat <<EOF 1>&2
6023
6024*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6025*** to be unable to reliably create shared libraries on AIX.
6026*** Therefore, libtool is disabling shared libraries support. If you
6027*** really care for shared libraries, you may want to modify your PATH
6028*** so that a non-GNU linker is found, and then restart.
6029
6030EOF
6031 ;;
6032
6033 amigaos*)
6034 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6035 hardcode_libdir_flag_spec='-L$libdir'
6036 hardcode_minus_L=yes
6037
6038 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6039 # that the semantics of dynamic libraries on AmigaOS, at least up
6040 # to version 4, is to share data among multiple programs linked
6041 # with the same dynamic library. Since this doesn't match the
6042 # behavior of shared libraries on other platforms, we can use
6043 # them.
6044 ld_shlibs=no
6045 ;;
6046
6047 beos*)
6048 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6049 allow_undefined_flag=unsupported
6050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6051 # support --undefined. This deserves some investigation. FIXME
6052 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6053 else
6054 ld_shlibs=no
6055 fi
6056 ;;
6057
6058 cygwin* | mingw* | pw32*)
6059 # hardcode_libdir_flag_spec is actually meaningless, as there is
6060 # no search path for DLLs.
6061 hardcode_libdir_flag_spec='-L$libdir'
6062 allow_undefined_flag=unsupported
6063 always_export_symbols=yes
6064
6065 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6066 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6067 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6068 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6069 else $CC -o impgen impgen.c ; fi)~
6070 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6071
6072 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6073
6074 # cygwin and mingw dlls have different entry points and sets of symbols
6075 # to exclude.
6076 # FIXME: what about values for MSVC?
6077 dll_entry=__cygwin_dll_entry@12
6078 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6079 case $host_os in
6080 mingw*)
6081 # mingw values
6082 dll_entry=_DllMainCRTStartup@12
6083 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6084 ;;
6085 esac
6086
6087 # mingw and cygwin differ, and it's simplest to just exclude the union
6088 # of the two symbol sets.
6089 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6090
6091 # recent cygwin and mingw systems supply a stub DllMain which the user
6092 # can override, but on older systems we have to supply one (in ltdll.c)
6093 if test "x$lt_cv_need_dllmain" = "xyes"; then
6094 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6095 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6096 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6097 else
6098 ltdll_obj=
6099 ltdll_cmds=
6100 fi
6101
6102 # Extract the symbol export list from an `--export-all' def file,
6103 # then regenerate the def file from the symbol export list, so that
6104 # the compiled dll only exports the symbol export list.
6105 # Be careful not to strip the DATA tag left be newer dlltools.
6106 export_symbols_cmds="$ltdll_cmds"'
6107 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6108 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6109
6110 # If the export-symbols file already is a .def file (1st line
6111 # is EXPORTS), use it as is.
6112 # If DATA tags from a recent dlltool are present, honour them!
6113 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6114 cp $export_symbols $output_objdir/$soname-def;
6115 else
6116 echo EXPORTS > $output_objdir/$soname-def;
6117 _lt_hint=1;
6118 cat $export_symbols | while read symbol; do
6119 set dummy \$symbol;
6120 case \$# in
6121 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6122 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6123 esac;
6124 _lt_hint=`expr 1 + \$_lt_hint`;
6125 done;
6126 fi~
6127 '"$ltdll_cmds"'
6128 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6129 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6130 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6131 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6132 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6133 ;;
6134
6135 netbsd*)
6136 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6137 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6138 wlarc=
6139 else
6140 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6141 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6142 fi
6143 ;;
6144
6145 solaris* | sysv5*)
6146 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6147 ld_shlibs=no
6148 cat <<EOF 1>&2
6149
6150*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6151*** create shared libraries on Solaris systems. Therefore, libtool
6152*** is disabling shared libraries support. We urge you to upgrade GNU
6153*** binutils to release 2.9.1 or newer. Another option is to modify
6154*** your PATH or compiler configuration so that the native linker is
6155*** used, and then restart.
6156
6157EOF
6158 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6161 else
6162 ld_shlibs=no
6163 fi
6164 ;;
6165
6166 sunos4*)
6167 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6168 wlarc=
6169 hardcode_direct=yes
6170 hardcode_shlibpath_var=no
6171 ;;
6172
6173 *)
6174 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6177 else
6178 ld_shlibs=no
6179 fi
6180 ;;
6181 esac
6182
6183 if test "$ld_shlibs" = yes; then
6184 runpath_var=LD_RUN_PATH
6185 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6186 export_dynamic_flag_spec='${wl}--export-dynamic'
6187 case $host_os in
6188 cygwin* | mingw* | pw32*)
6189 # dlltool doesn't understand --whole-archive et. al.
6190 whole_archive_flag_spec=
6191 ;;
6192 *)
6193 # ancient GNU ld didn't support --whole-archive et. al.
6194 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6195 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6196 else
6197 whole_archive_flag_spec=
6198 fi
6199 ;;
6200 esac
6201 fi
6202else
6203 # PORTME fill in a description of your system's linker (not GNU ld)
6204 case $host_os in
6205 aix3*)
6206 allow_undefined_flag=unsupported
6207 always_export_symbols=yes
6208 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6209 # Note: this linker hardcodes the directories in LIBPATH if there
6210 # are no directories specified by -L.
6211 hardcode_minus_L=yes
6212 if test "$GCC" = yes && test -z "$link_static_flag"; then
6213 # Neither direct hardcoding nor static linking is supported with a
6214 # broken collect2.
6215 hardcode_direct=unsupported
6216 fi
6217 ;;
6218
6219 aix4* | aix5*)
6220 if test "$host_cpu" = ia64; then
6221 # On IA64, the linker does run time linking by default, so we don't
6222 # have to do anything special.
6223 aix_use_runtimelinking=no
6224 exp_sym_flag='-Bexport'
6225 no_entry_flag=""
6226 else
6227 aix_use_runtimelinking=no
6228
6229 # Test if we are trying to use run time linking or normal
6230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6231 # need to do runtime linking.
6232 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6233 for ld_flag in $LDFLAGS; do
6234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6235 aix_use_runtimelinking=yes
6236 break
6237 fi
6238 done
6239 esac
6240
6241 exp_sym_flag='-bexport'
6242 no_entry_flag='-bnoentry'
6243 fi
6244
6245 # When large executables or shared objects are built, AIX ld can
6246 # have problems creating the table of contents. If linking a library
6247 # or program results in "error TOC overflow" add -mminimal-toc to
6248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6250
6251 hardcode_direct=yes
6252 archive_cmds=''
6253 hardcode_libdir_separator=':'
6254 if test "$GCC" = yes; then
6255 case $host_os in aix4.[012]|aix4.[012].*)
6256 collect2name=`${CC} -print-prog-name=collect2`
6257 if test -f "$collect2name" && \
6258 strings "$collect2name" | grep resolve_lib_name >/dev/null
6259 then
6260 # We have reworked collect2
6261 hardcode_direct=yes
6262 else
6263 # We have old collect2
6264 hardcode_direct=unsupported
6265 # It fails to find uninstalled libraries when the uninstalled
6266 # path is not listed in the libpath. Setting hardcode_minus_L
6267 # to unsupported forces relinking
6268 hardcode_minus_L=yes
6269 hardcode_libdir_flag_spec='-L$libdir'
6270 hardcode_libdir_separator=
6271 fi
6272 esac
6273
6274 shared_flag='-shared'
6275 else
6276 # not using gcc
6277 if test "$host_cpu" = ia64; then
6278 shared_flag='${wl}-G'
6279 else
6280 if test "$aix_use_runtimelinking" = yes; then
6281 shared_flag='${wl}-G'
6282 else
6283 shared_flag='${wl}-bM:SRE'
6284 fi
6285 fi
6286 fi
6287
6288 # It seems that -bexpall can do strange things, so it is better to
6289 # generate a list of symbols to export.
6290 always_export_symbols=yes
6291 if test "$aix_use_runtimelinking" = yes; then
6292 # Warning - without using the other runtime loading flags (-brtl),
6293 # -berok will link without error, but may produce a broken library.
6294 allow_undefined_flag='-berok'
6295 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6296 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6297 else
6298 if test "$host_cpu" = ia64; then
6299 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6300 allow_undefined_flag="-z nodefs"
6301 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6302 else
6303 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6304 # Warning - without using the other run time loading flags,
6305 # -berok will link without error, but may produce a broken library.
6306 allow_undefined_flag='${wl}-berok'
6307 # This is a bit strange, but is similar to how AIX traditionally builds
6308 # it's shared libraries.
6309 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6310 fi
6311 fi
6312 ;;
6313
6314 amigaos*)
6315 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6316 hardcode_libdir_flag_spec='-L$libdir'
6317 hardcode_minus_L=yes
6318 # see comment about different semantics on the GNU ld section
6319 ld_shlibs=no
6320 ;;
6321
6322 cygwin* | mingw* | pw32*)
6323 # When not using gcc, we currently assume that we are using
6324 # Microsoft Visual C++.
6325 # hardcode_libdir_flag_spec is actually meaningless, as there is
6326 # no search path for DLLs.
6327 hardcode_libdir_flag_spec=' '
6328 allow_undefined_flag=unsupported
6329 # Tell ltmain to make .lib files, not .a files.
6330 libext=lib
6331 # FIXME: Setting linknames here is a bad hack.
6332 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6333 # The linker will automatically build a .lib file if we build a DLL.
6334 old_archive_from_new_cmds='true'
6335 # FIXME: Should let the user specify the lib program.
6336 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6337 fix_srcfile_path='`cygpath -w "$srcfile"`'
6338 ;;
6339
6340 darwin* | rhapsody*)
6341 case "$host_os" in
6342 rhapsody* | darwin1.[012])
6343 allow_undefined_flag='-undefined suppress'
6344 ;;
6345 *) # Darwin 1.3 on
6346 allow_undefined_flag='-flat_namespace -undefined suppress'
6347 ;;
6348 esac
6349 # FIXME: Relying on posixy $() will cause problems for
6350 # cross-compilation, but unfortunately the echo tests do not
6351 # yet detect zsh echo's removal of \ escapes.
6352 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6353 # We need to add '_' to the symbols in $export_symbols first
6354 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6355 hardcode_direct=yes
6356 hardcode_shlibpath_var=no
6357 whole_archive_flag_spec='-all_load $convenience'
6358 ;;
6359
6360 freebsd1*)
6361 ld_shlibs=no
6362 ;;
6363
6364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6365 # support. Future versions do this automatically, but an explicit c++rt0.o
6366 # does not break anything, and helps significantly (at the cost of a little
6367 # extra space).
6368 freebsd2.2*)
6369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6370 hardcode_libdir_flag_spec='-R$libdir'
6371 hardcode_direct=yes
6372 hardcode_shlibpath_var=no
6373 ;;
6374
6375 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6376 freebsd2*)
6377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6378 hardcode_direct=yes
6379 hardcode_minus_L=yes
6380 hardcode_shlibpath_var=no
6381 ;;
6382
6383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6384 freebsd*)
6385 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6386 hardcode_libdir_flag_spec='-R$libdir'
6387 hardcode_direct=yes
6388 hardcode_shlibpath_var=no
6389 ;;
6390
6391 hpux9* | hpux10* | hpux11*)
6392 case $host_os in
6393 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6394 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6395 esac
6396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6397 hardcode_libdir_separator=:
6398 hardcode_direct=yes
6399 hardcode_minus_L=yes # Not in the search PATH, but as the default
6400 # location of the library.
6401 export_dynamic_flag_spec='${wl}-E'
6402 ;;
6403
6404 irix5* | irix6*)
6405 if test "$GCC" = yes; then
6406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6407 else
6408 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6409 fi
6410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6411 hardcode_libdir_separator=:
6412 link_all_deplibs=yes
6413 ;;
6414
6415 netbsd*)
6416 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6418 else
6419 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6420 fi
6421 hardcode_libdir_flag_spec='-R$libdir'
6422 hardcode_direct=yes
6423 hardcode_shlibpath_var=no
6424 ;;
6425
6426 newsos6)
6427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6428 hardcode_direct=yes
6429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6430 hardcode_libdir_separator=:
6431 hardcode_shlibpath_var=no
6432 ;;
6433
6434 openbsd*)
6435 hardcode_direct=yes
6436 hardcode_shlibpath_var=no
6437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6440 export_dynamic_flag_spec='${wl}-E'
6441 else
6442 case "$host_os" in
6443 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6445 hardcode_libdir_flag_spec='-R$libdir'
6446 ;;
6447 *)
6448 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6449 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6450 ;;
6451 esac
6452 fi
6453 ;;
6454
6455 os2*)
6456 hardcode_libdir_flag_spec='-L$libdir'
6457 hardcode_minus_L=yes
6458 allow_undefined_flag=unsupported
6459 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6460 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6461 ;;
6462
6463 osf3*)
6464 if test "$GCC" = yes; then
6465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6466 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6467 else
6468 allow_undefined_flag=' -expect_unresolved \*'
6469 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6470 fi
6471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6472 hardcode_libdir_separator=:
6473 ;;
6474
6475 osf4* | osf5*) # as osf3* with the addition of -msym flag
6476 if test "$GCC" = yes; then
6477 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6478 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6480 else
6481 allow_undefined_flag=' -expect_unresolved \*'
6482 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6483 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6484 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6485
6486 #Both c and cxx compiler support -rpath directly
6487 hardcode_libdir_flag_spec='-rpath $libdir'
6488 fi
6489 hardcode_libdir_separator=:
6490 ;;
6491
6492 sco3.2v5*)
6493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6494 hardcode_shlibpath_var=no
6495 runpath_var=LD_RUN_PATH
6496 hardcode_runpath_var=yes
6497 export_dynamic_flag_spec='${wl}-Bexport'
6498 ;;
6499
6500 solaris*)
6501 # gcc --version < 3.0 without binutils cannot create self contained
6502 # shared libraries reliably, requiring libgcc.a to resolve some of
6503 # the object symbols generated in some cases. Libraries that use
6504 # assert need libgcc.a to resolve __eprintf, for example. Linking
6505 # a copy of libgcc.a into every shared library to guarantee resolving
6506 # such symbols causes other problems: According to Tim Van Holder
6507 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6508 # (to the application) exception stack for one thing.
6509 no_undefined_flag=' -z defs'
6510 if test "$GCC" = yes; then
6511 case `$CC --version 2>/dev/null` in
6512 [12].*)
6513 cat <<EOF 1>&2
6514
6515*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6516*** create self contained shared libraries on Solaris systems, without
6517*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6518*** -no-undefined support, which will at least allow you to build shared
6519*** libraries. However, you may find that when you link such libraries
6520*** into an application without using GCC, you have to manually add
6521*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6522*** upgrade to a newer version of GCC. Another option is to rebuild your
6523*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6524
6525EOF
6526 no_undefined_flag=
6527 ;;
6528 esac
6529 fi
6530 # $CC -shared without GNU ld will not create a library from C++
6531 # object files and a static libstdc++, better avoid it by now
6532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6533 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6535 hardcode_libdir_flag_spec='-R$libdir'
6536 hardcode_shlibpath_var=no
6537 case $host_os in
6538 solaris2.[0-5] | solaris2.[0-5].*) ;;
6539 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6540 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6541 esac
6542 link_all_deplibs=yes
6543 ;;
6544
6545 sunos4*)
6546 if test "x$host_vendor" = xsequent; then
6547 # Use $CC to link under sequent, because it throws in some extra .o
6548 # files that make .init and .fini sections work.
6549 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6550 else
6551 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6552 fi
6553 hardcode_libdir_flag_spec='-L$libdir'
6554 hardcode_direct=yes
6555 hardcode_minus_L=yes
6556 hardcode_shlibpath_var=no
6557 ;;
6558
6559 sysv4)
6560 if test "x$host_vendor" = xsno; then
6561 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6562 hardcode_direct=yes # is this really true???
6563 else
6564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6566 fi
6567 runpath_var='LD_RUN_PATH'
6568 hardcode_shlibpath_var=no
6569 ;;
6570
6571 sysv4.3*)
6572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6573 hardcode_shlibpath_var=no
6574 export_dynamic_flag_spec='-Bexport'
6575 ;;
6576
6577 sysv5*)
6578 no_undefined_flag=' -z text'
6579 # $CC -shared without GNU ld will not create a library from C++
6580 # object files and a static libstdc++, better avoid it by now
6581 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6582 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6584 hardcode_libdir_flag_spec=
6585 hardcode_shlibpath_var=no
6586 runpath_var='LD_RUN_PATH'
6587 ;;
6588
6589 uts4*)
6590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6591 hardcode_libdir_flag_spec='-L$libdir'
6592 hardcode_shlibpath_var=no
6593 ;;
6594
6595 dgux*)
6596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6597 hardcode_libdir_flag_spec='-L$libdir'
6598 hardcode_shlibpath_var=no
6599 ;;
6600
6601 sysv4*MP*)
6602 if test -d /usr/nec; then
6603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6604 hardcode_shlibpath_var=no
6605 runpath_var=LD_RUN_PATH
6606 hardcode_runpath_var=yes
6607 ld_shlibs=yes
6608 fi
6609 ;;
6610
6611 sysv4.2uw2*)
6612 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6613 hardcode_direct=yes
6614 hardcode_minus_L=no
6615 hardcode_shlibpath_var=no
6616 hardcode_runpath_var=yes
6617 runpath_var=LD_RUN_PATH
6618 ;;
6619
6620 sysv5uw7* | unixware7*)
6621 no_undefined_flag='${wl}-z ${wl}text'
6622 if test "$GCC" = yes; then
6623 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6624 else
6625 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6626 fi
6627 runpath_var='LD_RUN_PATH'
6628 hardcode_shlibpath_var=no
6629 ;;
6630
6631 *)
6632 ld_shlibs=no
6633 ;;
6634 esac
6635fi
6636echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6637echo "${ECHO_T}$ld_shlibs" >&6
6638test "$ld_shlibs" = no && can_build_shared=no
6639
6640# Check hardcoding attributes.
6641echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6642echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6643hardcode_action=
6644if test -n "$hardcode_libdir_flag_spec" || \
6645 test -n "$runpath_var"; then
6646
6647 # We can hardcode non-existant directories.
6648 if test "$hardcode_direct" != no &&
6649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6650 # have to relink, otherwise we might link with an installed library
6651 # when we should be linking with a yet-to-be-installed one
6652 ## test "$hardcode_shlibpath_var" != no &&
6653 test "$hardcode_minus_L" != no; then
6654 # Linking always hardcodes the temporary library directory.
6655 hardcode_action=relink
6656 else
6657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6658 hardcode_action=immediate
6659 fi
6660else
6661 # We cannot hardcode anything, or else we can only hardcode existing
6662 # directories.
6663 hardcode_action=unsupported
6664fi
6665echo "$as_me:$LINENO: result: $hardcode_action" >&5
6666echo "${ECHO_T}$hardcode_action" >&6
6667
6668striplib=
6669old_striplib=
6670echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6671echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6672if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6673 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6674 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6675 echo "$as_me:$LINENO: result: yes" >&5
6676echo "${ECHO_T}yes" >&6
6677else
6678 echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
6680fi
6681
6682reload_cmds='$LD$reload_flag -o $output$reload_objs'
6683test -z "$deplibs_check_method" && deplibs_check_method=unknown
6684
6685# PORTME Fill in your ld.so characteristics
6686echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6687echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6688library_names_spec=
6689libname_spec='lib$name'
6690soname_spec=
6691postinstall_cmds=
6692postuninstall_cmds=
6693finish_cmds=
6694finish_eval=
6695shlibpath_var=
6696shlibpath_overrides_runpath=unknown
6697version_type=none
6698dynamic_linker="$host_os ld.so"
6699sys_lib_dlsearch_path_spec="/lib /usr/lib"
6700sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6701
6702case $host_os in
6703aix3*)
6704 version_type=linux
6705 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6706 shlibpath_var=LIBPATH
6707
6708 # AIX has no versioning support, so we append a major version to the name.
6709 soname_spec='${libname}${release}.so$major'
6710 ;;
6711
6712aix4* | aix5*)
6713 version_type=linux
6714 if test "$host_cpu" = ia64; then
6715 # AIX 5 supports IA64
6716 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6717 shlibpath_var=LD_LIBRARY_PATH
6718 else
6719 # With GCC up to 2.95.x, collect2 would create an import file
6720 # for dependence libraries. The import file would start with
6721 # the line `#! .'. This would cause the generated library to
6722 # depend on `.', always an invalid library. This was fixed in
6723 # development snapshots of GCC prior to 3.0.
6724 case $host_os in
6725 aix4 | aix4.[01] | aix4.[01].*)
6726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6727 echo ' yes '
6728 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6729 :
6730 else
6731 can_build_shared=no
6732 fi
6733 ;;
6734 esac
6735 # AIX (on Power*) has no versioning support, so currently we can
6736 # not hardcode correct soname into executable. Probably we can
6737 # add versioning support to collect2, so additional links can
6738 # be useful in future.
6739 if test "$aix_use_runtimelinking" = yes; then
6740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6741 # instead of lib<name>.a to let people know that these are not
6742 # typical AIX shared libraries.
6743 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6744 else
6745 # We preserve .a as extension for shared libraries through AIX4.2
6746 # and later when we are not doing run time linking.
6747 library_names_spec='${libname}${release}.a $libname.a'
6748 soname_spec='${libname}${release}.so$major'
6749 fi
6750 shlibpath_var=LIBPATH
6751 fi
6752 ;;
6753
6754amigaos*)
6755 library_names_spec='$libname.ixlibrary $libname.a'
6756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6757 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6758 ;;
6759
6760beos*)
6761 library_names_spec='${libname}.so'
6762 dynamic_linker="$host_os ld.so"
6763 shlibpath_var=LIBRARY_PATH
6764 ;;
6765
6766bsdi4*)
6767 version_type=linux
6768 need_version=no
6769 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6770 soname_spec='${libname}${release}.so$major'
6771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6772 shlibpath_var=LD_LIBRARY_PATH
6773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6775 export_dynamic_flag_spec=-rdynamic
6776 # the default ld.so.conf also contains /usr/contrib/lib and
6777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6778 # libtool to hard-code these into programs
6779 ;;
6780
6781cygwin* | mingw* | pw32*)
6782 version_type=windows
6783 need_version=no
6784 need_lib_prefix=no
6785 case $GCC,$host_os in
6786 yes,cygwin*)
6787 library_names_spec='$libname.dll.a'
6788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6789 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6790 dldir=$destdir/`dirname \$dlpath`~
6791 test -d \$dldir || mkdir -p \$dldir~
6792 $install_prog .libs/$dlname \$dldir/$dlname'
6793 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6794 dlpath=$dir/\$dldll~
6795 $rm \$dlpath'
6796 ;;
6797 yes,mingw*)
6798 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6800 ;;
6801 yes,pw32*)
6802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6803 ;;
6804 *)
6805 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6806 ;;
6807 esac
6808 dynamic_linker='Win32 ld.exe'
6809 # FIXME: first we should search . and the directory the executable is in
6810 shlibpath_var=PATH
6811 ;;
6812
6813darwin* | rhapsody*)
6814 dynamic_linker="$host_os dyld"
6815 version_type=darwin
6816 need_lib_prefix=no
6817 need_version=no
6818 # FIXME: Relying on posixy $() will cause problems for
6819 # cross-compilation, but unfortunately the echo tests do not
6820 # yet detect zsh echo's removal of \ escapes.
6821 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6822 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6823 shlibpath_overrides_runpath=yes
6824 shlibpath_var=DYLD_LIBRARY_PATH
6825 ;;
6826
6827freebsd1*)
6828 dynamic_linker=no
6829 ;;
6830
6831freebsd*)
6832 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6833 version_type=freebsd-$objformat
6834 case $version_type in
6835 freebsd-elf*)
6836 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6837 need_version=no
6838 need_lib_prefix=no
6839 ;;
6840 freebsd-*)
6841 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6842 need_version=yes
6843 ;;
6844 esac
6845 shlibpath_var=LD_LIBRARY_PATH
6846 case $host_os in
6847 freebsd2*)
6848 shlibpath_overrides_runpath=yes
6849 ;;
6850 *)
6851 shlibpath_overrides_runpath=no
6852 hardcode_into_libs=yes
6853 ;;
6854 esac
6855 ;;
6856
6857gnu*)
6858 version_type=linux
6859 need_lib_prefix=no
6860 need_version=no
6861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6862 soname_spec='${libname}${release}.so$major'
6863 shlibpath_var=LD_LIBRARY_PATH
6864 hardcode_into_libs=yes
6865 ;;
6866
6867hpux9* | hpux10* | hpux11*)
6868 # Give a soname corresponding to the major version so that dld.sl refuses to
6869 # link against other versions.
6870 dynamic_linker="$host_os dld.sl"
6871 version_type=sunos
6872 need_lib_prefix=no
6873 need_version=no
6874 shlibpath_var=SHLIB_PATH
6875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6876 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6877 soname_spec='${libname}${release}.sl$major'
6878 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6879 postinstall_cmds='chmod 555 $lib'
6880 ;;
6881
6882irix5* | irix6*)
6883 version_type=irix
6884 need_lib_prefix=no
6885 need_version=no
6886 soname_spec='${libname}${release}.so$major'
6887 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6888 case $host_os in
6889 irix5*)
6890 libsuff= shlibsuff=
6891 ;;
6892 *)
6893 case $LD in # libtool.m4 will add one of these switches to LD
6894 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6895 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6896 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6897 *) libsuff= shlibsuff= libmagic=never-match;;
6898 esac
6899 ;;
6900 esac
6901 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6902 shlibpath_overrides_runpath=no
6903 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6904 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6905 ;;
6906
6907# No shared lib support for Linux oldld, aout, or coff.
6908linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6909 dynamic_linker=no
6910 ;;
6911
6912# This must be Linux ELF.
6913linux-gnu*)
6914 version_type=linux
6915 need_lib_prefix=no
6916 need_version=no
6917 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6918 soname_spec='${libname}${release}.so$major'
6919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6920 shlibpath_var=LD_LIBRARY_PATH
6921 shlibpath_overrides_runpath=no
6922 # This implies no fast_install, which is unacceptable.
6923 # Some rework will be needed to allow for fast_install
6924 # before this can be enabled.
6925 hardcode_into_libs=yes
6926
6927 # We used to test for /lib/ld.so.1 and disable shared libraries on
6928 # powerpc, because MkLinux only supported shared libraries with the
6929 # GNU dynamic linker. Since this was broken with cross compilers,
6930 # most powerpc-linux boxes support dynamic linking these days and
6931 # people can always --disable-shared, the test was removed, and we
6932 # assume the GNU/Linux dynamic linker is in use.
6933 dynamic_linker='GNU/Linux ld.so'
6934 ;;
6935
6936netbsd*)
6937 version_type=sunos
6938 need_lib_prefix=no
6939 need_version=no
6940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6941 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6943 dynamic_linker='NetBSD (a.out) ld.so'
6944 else
6945 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6946 soname_spec='${libname}${release}.so$major'
6947 dynamic_linker='NetBSD ld.elf_so'
6948 fi
6949 shlibpath_var=LD_LIBRARY_PATH
6950 shlibpath_overrides_runpath=yes
6951 hardcode_into_libs=yes
6952 ;;
6953
6954newsos6)
6955 version_type=linux
6956 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6957 shlibpath_var=LD_LIBRARY_PATH
6958 shlibpath_overrides_runpath=yes
6959 ;;
6960
6961openbsd*)
6962 version_type=sunos
6963 need_lib_prefix=no
6964 need_version=no
6965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6966 case "$host_os" in
6967 openbsd2.[89] | openbsd2.[89].*)
6968 shlibpath_overrides_runpath=no
6969 ;;
6970 *)
6971 shlibpath_overrides_runpath=yes
6972 ;;
6973 esac
6974 else
6975 shlibpath_overrides_runpath=yes
6976 fi
6977 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6979 shlibpath_var=LD_LIBRARY_PATH
6980 ;;
6981
6982os2*)
6983 libname_spec='$name'
6984 need_lib_prefix=no
6985 library_names_spec='$libname.dll $libname.a'
6986 dynamic_linker='OS/2 ld.exe'
6987 shlibpath_var=LIBPATH
6988 ;;
6989
6990osf3* | osf4* | osf5*)
6991 version_type=osf
6992 need_version=no
6993 soname_spec='${libname}${release}.so'
6994 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6995 shlibpath_var=LD_LIBRARY_PATH
6996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6998 ;;
6999
7000sco3.2v5*)
7001 version_type=osf
7002 soname_spec='${libname}${release}.so$major'
7003 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7004 shlibpath_var=LD_LIBRARY_PATH
7005 ;;
7006
7007solaris*)
7008 version_type=linux
7009 need_lib_prefix=no
7010 need_version=no
7011 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7012 soname_spec='${libname}${release}.so$major'
7013 shlibpath_var=LD_LIBRARY_PATH
7014 shlibpath_overrides_runpath=yes
7015 hardcode_into_libs=yes
7016 # ldd complains unless libraries are executable
7017 postinstall_cmds='chmod +x $lib'
7018 ;;
7019
7020sunos4*)
7021 version_type=sunos
7022 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7024 shlibpath_var=LD_LIBRARY_PATH
7025 shlibpath_overrides_runpath=yes
7026 if test "$with_gnu_ld" = yes; then
7027 need_lib_prefix=no
7028 fi
7029 need_version=yes
7030 ;;
7031
7032sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7033 version_type=linux
7034 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7035 soname_spec='${libname}${release}.so$major'
7036 shlibpath_var=LD_LIBRARY_PATH
7037 case $host_vendor in
7038 sni)
7039 shlibpath_overrides_runpath=no
7040 ;;
7041 motorola)
7042 need_lib_prefix=no
7043 need_version=no
7044 shlibpath_overrides_runpath=no
7045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7046 ;;
7047 esac
7048 ;;
7049
7050uts4*)
7051 version_type=linux
7052 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7053 soname_spec='${libname}${release}.so$major'
7054 shlibpath_var=LD_LIBRARY_PATH
7055 ;;
7056
7057dgux*)
7058 version_type=linux
7059 need_lib_prefix=no
7060 need_version=no
7061 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7062 soname_spec='${libname}${release}.so$major'
7063 shlibpath_var=LD_LIBRARY_PATH
7064 ;;
7065
7066sysv4*MP*)
7067 if test -d /usr/nec ;then
7068 version_type=linux
7069 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7070 soname_spec='$libname.so.$major'
7071 shlibpath_var=LD_LIBRARY_PATH
7072 fi
7073 ;;
7074
7075*)
7076 dynamic_linker=no
7077 ;;
7078esac
7079echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7080echo "${ECHO_T}$dynamic_linker" >&6
7081test "$dynamic_linker" = no && can_build_shared=no
7082
7083# Report the final consequences.
7084echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7085echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7086echo "$as_me:$LINENO: result: $can_build_shared" >&5
7087echo "${ECHO_T}$can_build_shared" >&6
7088
7089echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7090echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7091test "$can_build_shared" = "no" && enable_shared=no
7092
7093# On AIX, shared libraries and static libraries use the same namespace, and
7094# are all built from PIC.
7095case "$host_os" in
7096aix3*)
7097 test "$enable_shared" = yes && enable_static=no
7098 if test -n "$RANLIB"; then
7099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7100 postinstall_cmds='$RANLIB $lib'
7101 fi
7102 ;;
7103
7104aix4*)
7105 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7106 test "$enable_shared" = yes && enable_static=no
7107 fi
7108 ;;
7109esac
7110echo "$as_me:$LINENO: result: $enable_shared" >&5
7111echo "${ECHO_T}$enable_shared" >&6
7112
7113echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7114echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7115# Make sure either enable_shared or enable_static is yes.
7116test "$enable_shared" = yes || enable_static=yes
7117echo "$as_me:$LINENO: result: $enable_static" >&5
7118echo "${ECHO_T}$enable_static" >&6
7119
7120if test "$hardcode_action" = relink; then
7121 # Fast installation is not supported
7122 enable_fast_install=no
7123elif test "$shlibpath_overrides_runpath" = yes ||
7124 test "$enable_shared" = no; then
7125 # Fast installation is not necessary
7126 enable_fast_install=needless
7127fi
7128
7129variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7130if test "$GCC" = yes; then
7131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7132fi
7133
7134if test "x$enable_dlopen" != xyes; then
7135 enable_dlopen=unknown
7136 enable_dlopen_self=unknown
7137 enable_dlopen_self_static=unknown
7138else
7139 lt_cv_dlopen=no
7140 lt_cv_dlopen_libs=
7141
7142 case $host_os in
7143 beos*)
7144 lt_cv_dlopen="load_add_on"
7145 lt_cv_dlopen_libs=
7146 lt_cv_dlopen_self=yes
7147 ;;
7148
7149 cygwin* | mingw* | pw32*)
7150 lt_cv_dlopen="LoadLibrary"
7151 lt_cv_dlopen_libs=
7152 ;;
7153
7154 *)
7155 echo "$as_me:$LINENO: checking for shl_load" >&5
7156echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7157if test "${ac_cv_func_shl_load+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160 cat >conftest.$ac_ext <<_ACEOF
7161#line $LINENO "configure"
7162#include "confdefs.h"
7163/* System header to define __stub macros and hopefully few prototypes,
7164 which can conflict with char shl_load (); below. */
7165#include <assert.h>
7166/* Override any gcc2 internal prototype to avoid an error. */
7167#ifdef __cplusplus
7168extern "C"
7169#endif
7170/* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7172char shl_load ();
7173char (*f) ();
7174
7175#ifdef F77_DUMMY_MAIN
7176# ifdef __cplusplus
7177 extern "C"
7178# endif
7179 int F77_DUMMY_MAIN() { return 1; }
7180#endif
7181int
7182main ()
7183{
7184/* The GNU C library defines this for functions which it implements
7185 to always fail with ENOSYS. Some functions are actually named
7186 something starting with __ and the normal name is an alias. */
7187#if defined (__stub_shl_load) || defined (__stub___shl_load)
7188choke me
7189#else
7190f = shl_load;
7191#endif
7192
7193 ;
7194 return 0;
7195}
7196_ACEOF
7197rm -f conftest.$ac_objext conftest$ac_exeext
7198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199 (eval $ac_link) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -s conftest$ac_exeext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_func_shl_load=yes
7210else
7211 echo "$as_me: failed program was:" >&5
7212cat conftest.$ac_ext >&5
7213ac_cv_func_shl_load=no
7214fi
7215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7216fi
7217echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7218echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7219if test $ac_cv_func_shl_load = yes; then
7220 lt_cv_dlopen="shl_load"
7221else
7222 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7223echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7224if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 ac_check_lib_save_LIBS=$LIBS
7228LIBS="-ldld $LIBS"
7229cat >conftest.$ac_ext <<_ACEOF
7230#line $LINENO "configure"
7231#include "confdefs.h"
7232
7233/* Override any gcc2 internal prototype to avoid an error. */
7234#ifdef __cplusplus
7235extern "C"
7236#endif
7237/* We use char because int might match the return type of a gcc2
7238 builtin and then its argument prototype would still apply. */
7239char shl_load ();
7240#ifdef F77_DUMMY_MAIN
7241# ifdef __cplusplus
7242 extern "C"
7243# endif
7244 int F77_DUMMY_MAIN() { return 1; }
7245#endif
7246int
7247main ()
7248{
7249shl_load ();
7250 ;
7251 return 0;
7252}
7253_ACEOF
7254rm -f conftest.$ac_objext conftest$ac_exeext
7255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7256 (eval $ac_link) 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -s conftest$ac_exeext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 (eval $ac_try) 2>&5
7263 ac_status=$?
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 ac_cv_lib_dld_shl_load=yes
7267else
7268 echo "$as_me: failed program was:" >&5
7269cat conftest.$ac_ext >&5
7270ac_cv_lib_dld_shl_load=no
7271fi
7272rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273LIBS=$ac_check_lib_save_LIBS
7274fi
7275echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7276echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7277if test $ac_cv_lib_dld_shl_load = yes; then
7278 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7279else
7280 echo "$as_me:$LINENO: checking for dlopen" >&5
7281echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7282if test "${ac_cv_func_dlopen+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284else
7285 cat >conftest.$ac_ext <<_ACEOF
7286#line $LINENO "configure"
7287#include "confdefs.h"
7288/* System header to define __stub macros and hopefully few prototypes,
7289 which can conflict with char dlopen (); below. */
7290#include <assert.h>
7291/* Override any gcc2 internal prototype to avoid an error. */
7292#ifdef __cplusplus
7293extern "C"
7294#endif
7295/* We use char because int might match the return type of a gcc2
7296 builtin and then its argument prototype would still apply. */
7297char dlopen ();
7298char (*f) ();
7299
7300#ifdef F77_DUMMY_MAIN
7301# ifdef __cplusplus
7302 extern "C"
7303# endif
7304 int F77_DUMMY_MAIN() { return 1; }
7305#endif
7306int
7307main ()
7308{
7309/* The GNU C library defines this for functions which it implements
7310 to always fail with ENOSYS. Some functions are actually named
7311 something starting with __ and the normal name is an alias. */
7312#if defined (__stub_dlopen) || defined (__stub___dlopen)
7313choke me
7314#else
7315f = dlopen;
7316#endif
7317
7318 ;
7319 return 0;
7320}
7321_ACEOF
7322rm -f conftest.$ac_objext conftest$ac_exeext
7323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7324 (eval $ac_link) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -s conftest$ac_exeext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_cv_func_dlopen=yes
7335else
7336 echo "$as_me: failed program was:" >&5
7337cat conftest.$ac_ext >&5
7338ac_cv_func_dlopen=no
7339fi
7340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7341fi
7342echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7343echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7344if test $ac_cv_func_dlopen = yes; then
7345 lt_cv_dlopen="dlopen"
7346else
7347 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7348echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7349if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352 ac_check_lib_save_LIBS=$LIBS
7353LIBS="-ldl $LIBS"
7354cat >conftest.$ac_ext <<_ACEOF
7355#line $LINENO "configure"
7356#include "confdefs.h"
7357
7358/* Override any gcc2 internal prototype to avoid an error. */
7359#ifdef __cplusplus
7360extern "C"
7361#endif
7362/* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */
7364char dlopen ();
7365#ifdef F77_DUMMY_MAIN
7366# ifdef __cplusplus
7367 extern "C"
7368# endif
7369 int F77_DUMMY_MAIN() { return 1; }
7370#endif
7371int
7372main ()
7373{
7374dlopen ();
7375 ;
7376 return 0;
7377}
7378_ACEOF
7379rm -f conftest.$ac_objext conftest$ac_exeext
7380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381 (eval $ac_link) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 ac_cv_lib_dl_dlopen=yes
7392else
7393 echo "$as_me: failed program was:" >&5
7394cat conftest.$ac_ext >&5
7395ac_cv_lib_dl_dlopen=no
7396fi
7397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7398LIBS=$ac_check_lib_save_LIBS
7399fi
7400echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7401echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7402if test $ac_cv_lib_dl_dlopen = yes; then
7403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7404else
7405 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7406echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7407if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409else
7410 ac_check_lib_save_LIBS=$LIBS
7411LIBS="-lsvld $LIBS"
7412cat >conftest.$ac_ext <<_ACEOF
7413#line $LINENO "configure"
7414#include "confdefs.h"
7415
7416/* Override any gcc2 internal prototype to avoid an error. */
7417#ifdef __cplusplus
7418extern "C"
7419#endif
7420/* We use char because int might match the return type of a gcc2
7421 builtin and then its argument prototype would still apply. */
7422char dlopen ();
7423#ifdef F77_DUMMY_MAIN
7424# ifdef __cplusplus
7425 extern "C"
7426# endif
7427 int F77_DUMMY_MAIN() { return 1; }
7428#endif
7429int
7430main ()
7431{
7432dlopen ();
7433 ;
7434 return 0;
7435}
7436_ACEOF
7437rm -f conftest.$ac_objext conftest$ac_exeext
7438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try='test -s conftest$ac_exeext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 ac_cv_lib_svld_dlopen=yes
7450else
7451 echo "$as_me: failed program was:" >&5
7452cat conftest.$ac_ext >&5
7453ac_cv_lib_svld_dlopen=no
7454fi
7455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7456LIBS=$ac_check_lib_save_LIBS
7457fi
7458echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7459echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7460if test $ac_cv_lib_svld_dlopen = yes; then
7461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7462else
7463 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7464echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7465if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468 ac_check_lib_save_LIBS=$LIBS
7469LIBS="-ldld $LIBS"
7470cat >conftest.$ac_ext <<_ACEOF
7471#line $LINENO "configure"
7472#include "confdefs.h"
7473
7474/* Override any gcc2 internal prototype to avoid an error. */
7475#ifdef __cplusplus
7476extern "C"
7477#endif
7478/* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7480char dld_link ();
7481#ifdef F77_DUMMY_MAIN
7482# ifdef __cplusplus
7483 extern "C"
7484# endif
7485 int F77_DUMMY_MAIN() { return 1; }
7486#endif
7487int
7488main ()
7489{
7490dld_link ();
7491 ;
7492 return 0;
7493}
7494_ACEOF
7495rm -f conftest.$ac_objext conftest$ac_exeext
7496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -s conftest$ac_exeext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_cv_lib_dld_dld_link=yes
7508else
7509 echo "$as_me: failed program was:" >&5
7510cat conftest.$ac_ext >&5
7511ac_cv_lib_dld_dld_link=no
7512fi
7513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7514LIBS=$ac_check_lib_save_LIBS
7515fi
7516echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7517echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7518if test $ac_cv_lib_dld_dld_link = yes; then
7519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7520fi
7521
7522
7523fi
7524
7525
7526fi
7527
7528
7529fi
7530
7531
7532fi
7533
7534
7535fi
7536
7537 ;;
7538 esac
7539
7540 if test "x$lt_cv_dlopen" != xno; then
7541 enable_dlopen=yes
7542 else
7543 enable_dlopen=no
7544 fi
7545
7546 case $lt_cv_dlopen in
7547 dlopen)
7548 save_CPPFLAGS="$CPPFLAGS"
7549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7550
7551 save_LDFLAGS="$LDFLAGS"
7552 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7553
7554 save_LIBS="$LIBS"
7555 LIBS="$lt_cv_dlopen_libs $LIBS"
7556
7557 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7558echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7559if test "${lt_cv_dlopen_self+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561else
7562 if test "$cross_compiling" = yes; then :
7563 lt_cv_dlopen_self=cross
7564else
7565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7566 lt_status=$lt_dlunknown
7567 cat > conftest.$ac_ext <<EOF
7568#line 7568 "configure"
7569#include "confdefs.h"
7570
7571#if HAVE_DLFCN_H
7572#include <dlfcn.h>
7573#endif
7574
7575#include <stdio.h>
7576
7577#ifdef RTLD_GLOBAL
7578# define LT_DLGLOBAL RTLD_GLOBAL
7579#else
7580# ifdef DL_GLOBAL
7581# define LT_DLGLOBAL DL_GLOBAL
7582# else
7583# define LT_DLGLOBAL 0
7584# endif
7585#endif
7586
7587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7588 find out it does not work in some platform. */
7589#ifndef LT_DLLAZY_OR_NOW
7590# ifdef RTLD_LAZY
7591# define LT_DLLAZY_OR_NOW RTLD_LAZY
7592# else
7593# ifdef DL_LAZY
7594# define LT_DLLAZY_OR_NOW DL_LAZY
7595# else
7596# ifdef RTLD_NOW
7597# define LT_DLLAZY_OR_NOW RTLD_NOW
7598# else
7599# ifdef DL_NOW
7600# define LT_DLLAZY_OR_NOW DL_NOW
7601# else
7602# define LT_DLLAZY_OR_NOW 0
7603# endif
7604# endif
7605# endif
7606# endif
7607#endif
7608
7609#ifdef __cplusplus
7610extern "C" void exit (int);
7611#endif
7612
7613void fnord() { int i=42;}
7614int main ()
7615{
7616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7617 int status = $lt_dlunknown;
7618
7619 if (self)
7620 {
7621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7623 /* dlclose (self); */
7624 }
7625
7626 exit (status);
7627}
7628EOF
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7634 (./conftest; exit; ) 2>/dev/null
7635 lt_status=$?
7636 case x$lt_status in
7637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7639 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7640 esac
7641 else :
7642 # compilation failed
7643 lt_cv_dlopen_self=no
7644 fi
7645fi
7646rm -fr conftest*
7647
7648
7649fi
7650echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7651echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7652
7653 if test "x$lt_cv_dlopen_self" = xyes; then
7654 LDFLAGS="$LDFLAGS $link_static_flag"
7655 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7656echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7657if test "${lt_cv_dlopen_self_static+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660 if test "$cross_compiling" = yes; then :
7661 lt_cv_dlopen_self_static=cross
7662else
7663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7664 lt_status=$lt_dlunknown
7665 cat > conftest.$ac_ext <<EOF
7666#line 7666 "configure"
7667#include "confdefs.h"
7668
7669#if HAVE_DLFCN_H
7670#include <dlfcn.h>
7671#endif
7672
7673#include <stdio.h>
7674
7675#ifdef RTLD_GLOBAL
7676# define LT_DLGLOBAL RTLD_GLOBAL
7677#else
7678# ifdef DL_GLOBAL
7679# define LT_DLGLOBAL DL_GLOBAL
7680# else
7681# define LT_DLGLOBAL 0
7682# endif
7683#endif
7684
7685/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7686 find out it does not work in some platform. */
7687#ifndef LT_DLLAZY_OR_NOW
7688# ifdef RTLD_LAZY
7689# define LT_DLLAZY_OR_NOW RTLD_LAZY
7690# else
7691# ifdef DL_LAZY
7692# define LT_DLLAZY_OR_NOW DL_LAZY
7693# else
7694# ifdef RTLD_NOW
7695# define LT_DLLAZY_OR_NOW RTLD_NOW
7696# else
7697# ifdef DL_NOW
7698# define LT_DLLAZY_OR_NOW DL_NOW
7699# else
7700# define LT_DLLAZY_OR_NOW 0
7701# endif
7702# endif
7703# endif
7704# endif
7705#endif
7706
7707#ifdef __cplusplus
7708extern "C" void exit (int);
7709#endif
7710
7711void fnord() { int i=42;}
7712int main ()
7713{
7714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7715 int status = $lt_dlunknown;
7716
7717 if (self)
7718 {
7719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7721 /* dlclose (self); */
7722 }
7723
7724 exit (status);
7725}
7726EOF
7727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7728 (eval $ac_link) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7732 (./conftest; exit; ) 2>/dev/null
7733 lt_status=$?
7734 case x$lt_status in
7735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7737 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7738 esac
7739 else :
7740 # compilation failed
7741 lt_cv_dlopen_self_static=no
7742 fi
7743fi
7744rm -fr conftest*
7745
7746
7747fi
7748echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7749echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7750 fi
7751
7752 CPPFLAGS="$save_CPPFLAGS"
7753 LDFLAGS="$save_LDFLAGS"
7754 LIBS="$save_LIBS"
7755 ;;
7756 esac
7757
7758 case $lt_cv_dlopen_self in
7759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7760 *) enable_dlopen_self=unknown ;;
7761 esac
7762
7763 case $lt_cv_dlopen_self_static in
7764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7765 *) enable_dlopen_self_static=unknown ;;
7766 esac
7767fi
7768
7769
7770if test "$enable_shared" = yes && test "$GCC" = yes; then
7771 case $archive_cmds in
7772 *'~'*)
7773 # FIXME: we may have to deal with multi-command sequences.
7774 ;;
7775 '$CC '*)
7776 # Test whether the compiler implicitly links with -lc since on some
7777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7778 # to ld, don't add -lc before -lgcc.
7779 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7780echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7781 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784 $rm conftest*
7785 echo 'static int dummy;' > conftest.$ac_ext
7786
7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788 (eval $ac_compile) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; then
7792 soname=conftest
7793 lib=conftest
7794 libobjs=conftest.$ac_objext
7795 deplibs=
7796 wl=$lt_cv_prog_cc_wl
7797 compiler_flags=-v
7798 linker_flags=-v
7799 verstring=
7800 output_objdir=.
7801 libname=conftest
7802 save_allow_undefined_flag=$allow_undefined_flag
7803 allow_undefined_flag=
7804 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7805 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }
7809 then
7810 lt_cv_archive_cmds_need_lc=no
7811 else
7812 lt_cv_archive_cmds_need_lc=yes
7813 fi
7814 allow_undefined_flag=$save_allow_undefined_flag
7815 else
7816 cat conftest.err 1>&5
7817 fi
7818fi
7819
7820 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7821echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7822 ;;
7823 esac
7824fi
7825need_lc=${lt_cv_archive_cmds_need_lc-yes}
7826
7827# The second clause should only fire when bootstrapping the
7828# libtool distribution, otherwise you forgot to ship ltmain.sh
7829# with your package, and you will get complaints that there are
7830# no rules to generate ltmain.sh.
7831if test -f "$ltmain"; then
7832 :
7833else
7834 # If there is no Makefile yet, we rely on a make rule to execute
7835 # `config.status --recheck' to rerun these tests and create the
7836 # libtool script then.
7837 test -f Makefile && make "$ltmain"
7838fi
7839
7840if test -f "$ltmain"; then
7841 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7842 $rm -f "${ofile}T"
7843
7844 echo creating $ofile
7845
7846 # Now quote all the things that may contain metacharacters while being
7847 # careful not to overquote the AC_SUBSTed values. We take copies of the
7848 # variables and quote the copies for generation of the libtool script.
7849 for var in echo old_CC old_CFLAGS \
7850 AR AR_FLAGS CC LD LN_S NM SHELL \
7851 reload_flag reload_cmds wl \
7852 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7853 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7854 library_names_spec soname_spec \
7855 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7856 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7857 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7858 old_striplib striplib file_magic_cmd export_symbols_cmds \
7859 deplibs_check_method allow_undefined_flag no_undefined_flag \
7860 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7861 global_symbol_to_c_name_address \
7862 hardcode_libdir_flag_spec hardcode_libdir_separator \
7863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7864 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7865
7866 case $var in
7867 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7868 old_postinstall_cmds | old_postuninstall_cmds | \
7869 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7870 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7871 postinstall_cmds | postuninstall_cmds | \
7872 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7873 # Double-quote double-evaled strings.
7874 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7875 ;;
7876 *)
7877 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7878 ;;
7879 esac
7880 done
7881
7882 cat <<__EOF__ > "${ofile}T"
7883#! $SHELL
7884
7885# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7886# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7887# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7888#
7889# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7890# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7891#
7892# This program is free software; you can redistribute it and/or modify
7893# it under the terms of the GNU General Public License as published by
7894# the Free Software Foundation; either version 2 of the License, or
7895# (at your option) any later version.
7896#
7897# This program is distributed in the hope that it will be useful, but
7898# WITHOUT ANY WARRANTY; without even the implied warranty of
7899# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7900# General Public License for more details.
7901#
7902# You should have received a copy of the GNU General Public License
7903# along with this program; if not, write to the Free Software
7904# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7905#
7906# As a special exception to the GNU General Public License, if you
7907# distribute this file as part of a program that contains a
7908# configuration script generated by Autoconf, you may include it under
7909# the same distribution terms that you use for the rest of that program.
7910
7911# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7912Xsed="sed -e s/^X//"
7913
7914# The HP-UX ksh and POSIX shell print the target directory to stdout
7915# if CDPATH is set.
7916if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7917
7918# ### BEGIN LIBTOOL CONFIG
7919
7920# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7921
7922# Shell to use when invoking shell scripts.
7923SHELL=$lt_SHELL
7924
7925# Whether or not to build shared libraries.
7926build_libtool_libs=$enable_shared
7927
7928# Whether or not to build static libraries.
7929build_old_libs=$enable_static
7930
7931# Whether or not to add -lc for building shared libraries.
7932build_libtool_need_lc=$need_lc
7933
7934# Whether or not to optimize for fast installation.
7935fast_install=$enable_fast_install
7936
7937# The host system.
7938host_alias=$host_alias
7939host=$host
7940
7941# An echo program that does not interpret backslashes.
7942echo=$lt_echo
7943
7944# The archiver.
7945AR=$lt_AR
7946AR_FLAGS=$lt_AR_FLAGS
7947
7948# The default C compiler.
7949CC=$lt_CC
7950
7951# Is the compiler the GNU C compiler?
7952with_gcc=$GCC
7953
7954# The linker used to build libraries.
7955LD=$lt_LD
7956
7957# Whether we need hard or soft links.
7958LN_S=$lt_LN_S
7959
7960# A BSD-compatible nm program.
7961NM=$lt_NM
7962
7963# A symbol stripping program
7964STRIP=$STRIP
7965
7966# Used to examine libraries when file_magic_cmd begins "file"
7967MAGIC_CMD=$MAGIC_CMD
7968
7969# Used on cygwin: DLL creation program.
7970DLLTOOL="$DLLTOOL"
7971
7972# Used on cygwin: object dumper.
7973OBJDUMP="$OBJDUMP"
7974
7975# Used on cygwin: assembler.
7976AS="$AS"
7977
7978# The name of the directory that contains temporary libtool files.
7979objdir=$objdir
7980
7981# How to create reloadable object files.
7982reload_flag=$lt_reload_flag
7983reload_cmds=$lt_reload_cmds
7984
7985# How to pass a linker flag through the compiler.
7986wl=$lt_wl
7987
7988# Object file suffix (normally "o").
7989objext="$ac_objext"
7990
7991# Old archive suffix (normally "a").
7992libext="$libext"
7993
7994# Executable file suffix (normally "").
7995exeext="$exeext"
7996
7997# Additional compiler flags for building library objects.
7998pic_flag=$lt_pic_flag
7999pic_mode=$pic_mode
8000
8001# Does compiler simultaneously support -c and -o options?
8002compiler_c_o=$lt_compiler_c_o
8003
8004# Can we write directly to a .lo ?
8005compiler_o_lo=$lt_compiler_o_lo
8006
8007# Must we lock files when doing compilation ?
8008need_locks=$lt_need_locks
8009
8010# Do we need the lib prefix for modules?
8011need_lib_prefix=$need_lib_prefix
8012
8013# Do we need a version for libraries?
8014need_version=$need_version
8015
8016# Whether dlopen is supported.
8017dlopen_support=$enable_dlopen
8018
8019# Whether dlopen of programs is supported.
8020dlopen_self=$enable_dlopen_self
8021
8022# Whether dlopen of statically linked programs is supported.
8023dlopen_self_static=$enable_dlopen_self_static
8024
8025# Compiler flag to prevent dynamic linking.
8026link_static_flag=$lt_link_static_flag
8027
8028# Compiler flag to turn off builtin functions.
8029no_builtin_flag=$lt_no_builtin_flag
8030
8031# Compiler flag to allow reflexive dlopens.
8032export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8033
8034# Compiler flag to generate shared objects directly from archives.
8035whole_archive_flag_spec=$lt_whole_archive_flag_spec
8036
8037# Compiler flag to generate thread-safe objects.
8038thread_safe_flag_spec=$lt_thread_safe_flag_spec
8039
8040# Library versioning type.
8041version_type=$version_type
8042
8043# Format of library name prefix.
8044libname_spec=$lt_libname_spec
8045
8046# List of archive names. First name is the real one, the rest are links.
8047# The last name is the one that the linker finds with -lNAME.
8048library_names_spec=$lt_library_names_spec
8049
8050# The coded name of the library, if different from the real name.
8051soname_spec=$lt_soname_spec
8052
8053# Commands used to build and install an old-style archive.
8054RANLIB=$lt_RANLIB
8055old_archive_cmds=$lt_old_archive_cmds
8056old_postinstall_cmds=$lt_old_postinstall_cmds
8057old_postuninstall_cmds=$lt_old_postuninstall_cmds
8058
8059# Create an old-style archive from a shared archive.
8060old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8061
8062# Create a temporary old-style archive to link instead of a shared archive.
8063old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8064
8065# Commands used to build and install a shared archive.
8066archive_cmds=$lt_archive_cmds
8067archive_expsym_cmds=$lt_archive_expsym_cmds
8068postinstall_cmds=$lt_postinstall_cmds
8069postuninstall_cmds=$lt_postuninstall_cmds
8070
8071# Commands to strip libraries.
8072old_striplib=$lt_old_striplib
8073striplib=$lt_striplib
8074
8075# Method to check whether dependent libraries are shared objects.
8076deplibs_check_method=$lt_deplibs_check_method
8077
8078# Command to use when deplibs_check_method == file_magic.
8079file_magic_cmd=$lt_file_magic_cmd
8080
8081# Flag that allows shared libraries with undefined symbols to be built.
8082allow_undefined_flag=$lt_allow_undefined_flag
8083
8084# Flag that forces no undefined symbols.
8085no_undefined_flag=$lt_no_undefined_flag
8086
8087# Commands used to finish a libtool library installation in a directory.
8088finish_cmds=$lt_finish_cmds
8089
8090# Same as above, but a single script fragment to be evaled but not shown.
8091finish_eval=$lt_finish_eval
8092
8093# Take the output of nm and produce a listing of raw symbols and C names.
8094global_symbol_pipe=$lt_global_symbol_pipe
8095
8096# Transform the output of nm in a proper C declaration
8097global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8098
8099# Transform the output of nm in a C name address pair
8100global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8101
8102# This is the shared library runtime path variable.
8103runpath_var=$runpath_var
8104
8105# This is the shared library path variable.
8106shlibpath_var=$shlibpath_var
8107
8108# Is shlibpath searched before the hard-coded library search path?
8109shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8110
8111# How to hardcode a shared library path into an executable.
8112hardcode_action=$hardcode_action
8113
8114# Whether we should hardcode library paths into libraries.
8115hardcode_into_libs=$hardcode_into_libs
8116
8117# Flag to hardcode \$libdir into a binary during linking.
8118# This must work even if \$libdir does not exist.
8119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8120
8121# Whether we need a single -rpath flag with a separated argument.
8122hardcode_libdir_separator=$lt_hardcode_libdir_separator
8123
8124# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8125# resulting binary.
8126hardcode_direct=$hardcode_direct
8127
8128# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8129# resulting binary.
8130hardcode_minus_L=$hardcode_minus_L
8131
8132# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8133# the resulting binary.
8134hardcode_shlibpath_var=$hardcode_shlibpath_var
8135
8136# Variables whose values should be saved in libtool wrapper scripts and
8137# restored at relink time.
8138variables_saved_for_relink="$variables_saved_for_relink"
8139
8140# Whether libtool must link a program against all its dependency libraries.
8141link_all_deplibs=$link_all_deplibs
8142
8143# Compile-time system search path for libraries
8144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8145
8146# Run-time system search path for libraries
8147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8148
8149# Fix the shell variable \$srcfile for the compiler.
8150fix_srcfile_path="$fix_srcfile_path"
8151
8152# Set to yes if exported symbols are required.
8153always_export_symbols=$always_export_symbols
8154
8155# The commands to list exported symbols.
8156export_symbols_cmds=$lt_export_symbols_cmds
8157
8158# The commands to extract the exported symbol list from a shared archive.
8159extract_expsyms_cmds=$lt_extract_expsyms_cmds
8160
8161# Symbols that should not be listed in the preloaded symbols.
8162exclude_expsyms=$lt_exclude_expsyms
8163
8164# Symbols that must always be exported.
8165include_expsyms=$lt_include_expsyms
8166
8167# ### END LIBTOOL CONFIG
8168
8169__EOF__
8170
8171 case $host_os in
8172 aix3*)
8173 cat <<\EOF >> "${ofile}T"
8174
8175# AIX sometimes has problems with the GCC collect2 program. For some
8176# reason, if we set the COLLECT_NAMES environment variable, the problems
8177# vanish in a puff of smoke.
8178if test "X${COLLECT_NAMES+set}" != Xset; then
8179 COLLECT_NAMES=
8180 export COLLECT_NAMES
8181fi
8182EOF
8183 ;;
8184 esac
8185
8186 case $host_os in
8187 cygwin* | mingw* | pw32* | os2*)
8188 cat <<'EOF' >> "${ofile}T"
8189 # This is a source program that is used to create dlls on Windows
8190 # Don't remove nor modify the starting and closing comments
8191# /* ltdll.c starts here */
8192# #define WIN32_LEAN_AND_MEAN
8193# #include <windows.h>
8194# #undef WIN32_LEAN_AND_MEAN
8195# #include <stdio.h>
8196#
8197# #ifndef __CYGWIN__
8198# # ifdef __CYGWIN32__
8199# # define __CYGWIN__ __CYGWIN32__
8200# # endif
8201# #endif
8202#
8203# #ifdef __cplusplus
8204# extern "C" {
8205# #endif
8206# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8207# #ifdef __cplusplus
8208# }
8209# #endif
8210#
8211# #ifdef __CYGWIN__
8212# #include <cygwin/cygwin_dll.h>
8213# DECLARE_CYGWIN_DLL( DllMain );
8214# #endif
8215# HINSTANCE __hDllInstance_base;
8216#
8217# BOOL APIENTRY
8218# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8219# {
8220# __hDllInstance_base = hInst;
8221# return TRUE;
8222# }
8223# /* ltdll.c ends here */
8224 # This is a source program that is used to create import libraries
8225 # on Windows for dlls which lack them. Don't remove nor modify the
8226 # starting and closing comments
8227# /* impgen.c starts here */
8228# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8229#
8230# This file is part of GNU libtool.
8231#
8232# This program is free software; you can redistribute it and/or modify
8233# it under the terms of the GNU General Public License as published by
8234# the Free Software Foundation; either version 2 of the License, or
8235# (at your option) any later version.
8236#
8237# This program is distributed in the hope that it will be useful,
8238# but WITHOUT ANY WARRANTY; without even the implied warranty of
8239# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8240# GNU General Public License for more details.
8241#
8242# You should have received a copy of the GNU General Public License
8243# along with this program; if not, write to the Free Software
8244# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8245# */
8246#
8247# #include <stdio.h> /* for printf() */
8248# #include <unistd.h> /* for open(), lseek(), read() */
8249# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8250# #include <string.h> /* for strdup() */
8251#
8252# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8253# #ifndef O_BINARY
8254# #define O_BINARY 0
8255# #endif
8256#
8257# static unsigned int
8258# pe_get16 (fd, offset)
8259# int fd;
8260# int offset;
8261# {
8262# unsigned char b[2];
8263# lseek (fd, offset, SEEK_SET);
8264# read (fd, b, 2);
8265# return b[0] + (b[1]<<8);
8266# }
8267#
8268# static unsigned int
8269# pe_get32 (fd, offset)
8270# int fd;
8271# int offset;
8272# {
8273# unsigned char b[4];
8274# lseek (fd, offset, SEEK_SET);
8275# read (fd, b, 4);
8276# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8277# }
8278#
8279# static unsigned int
8280# pe_as32 (ptr)
8281# void *ptr;
8282# {
8283# unsigned char *b = ptr;
8284# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8285# }
8286#
8287# int
8288# main (argc, argv)
8289# int argc;
8290# char *argv[];
8291# {
8292# int dll;
8293# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8294# unsigned long export_rva, export_size, nsections, secptr, expptr;
8295# unsigned long name_rvas, nexp;
8296# unsigned char *expdata, *erva;
8297# char *filename, *dll_name;
8298#
8299# filename = argv[1];
8300#
8301# dll = open(filename, O_RDONLY|O_BINARY);
8302# if (dll < 1)
8303# return 1;
8304#
8305# dll_name = filename;
8306#
8307# for (i=0; filename[i]; i++)
8308# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8309# dll_name = filename + i +1;
8310#
8311# pe_header_offset = pe_get32 (dll, 0x3c);
8312# opthdr_ofs = pe_header_offset + 4 + 20;
8313# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8314#
8315# if (num_entries < 1) /* no exports */
8316# return 1;
8317#
8318# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8319# export_size = pe_get32 (dll, opthdr_ofs + 100);
8320# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8321# secptr = (pe_header_offset + 4 + 20 +
8322# pe_get16 (dll, pe_header_offset + 4 + 16));
8323#
8324# expptr = 0;
8325# for (i = 0; i < nsections; i++)
8326# {
8327# char sname[8];
8328# unsigned long secptr1 = secptr + 40 * i;
8329# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8330# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8331# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8332# lseek(dll, secptr1, SEEK_SET);
8333# read(dll, sname, 8);
8334# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8335# {
8336# expptr = fptr + (export_rva - vaddr);
8337# if (export_rva + export_size > vaddr + vsize)
8338# export_size = vsize - (export_rva - vaddr);
8339# break;
8340# }
8341# }
8342#
8343# expdata = (unsigned char*)malloc(export_size);
8344# lseek (dll, expptr, SEEK_SET);
8345# read (dll, expdata, export_size);
8346# erva = expdata - export_rva;
8347#
8348# nexp = pe_as32 (expdata+24);
8349# name_rvas = pe_as32 (expdata+32);
8350#
8351# printf ("EXPORTS\n");
8352# for (i = 0; i<nexp; i++)
8353# {
8354# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8355# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8356# }
8357#
8358# return 0;
8359# }
8360# /* impgen.c ends here */
8361
8362EOF
8363 ;;
8364 esac
8365
8366 # We use sed instead of cat because bash on DJGPP gets confused if
8367 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8368 # text mode, it properly converts lines to CR/LF. This bash problem
8369 # is reportedly fixed, but why not run on old versions too?
8370 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8371
8372 mv -f "${ofile}T" "$ofile" || \
8373 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8374 chmod +x "$ofile"
8375fi
8376
8377
8378
8379
8380
8381# This can be used to rebuild libtool when needed
8382LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8383
8384# Always use our own libtool.
8385LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8386
8387# Prevent multiple expansion
8388
8389
8390
8391
8392WFLAGS_NOUNUSED=""
8393WFLAGS_NOIMPLICITINT=""
8394if test -z "$WFLAGS" -a "$GCC" = "yes"; then
8395 # -Wno-implicit-int for broken X11 headers
8396 # leave these out for now:
8397 # -Wcast-align doesn't work well on alpha osf/1
8398 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
8399 # -Wmissing-declarations -Wnested-externs
8400 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
8401 WFLAGS_NOUNUSED="-Wno-unused"
8402 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
8403fi
8404
8405
8406
8407
8408# Check whether --with-openldap or --without-openldap was given.
8409if test "${with_openldap+set}" = set; then
8410 withval="$with_openldap"
8411
8412fi;
8413
8414# Check whether --with-openldap-lib or --without-openldap-lib was given.
8415if test "${with_openldap_lib+set}" = set; then
8416 withval="$with_openldap_lib"
8417 if test "$withval" = "yes" -o "$withval" = "no"; then
8418 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
8419echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
8420 { (exit 1); exit 1; }; }
8421elif test "X$with_openldap" = "X"; then
8422 with_openldap=yes
8423fi
8424fi;
8425
8426# Check whether --with-openldap-include or --without-openldap-include was given.
8427if test "${with_openldap_include+set}" = set; then
8428 withval="$with_openldap_include"
8429 if test "$withval" = "yes" -o "$withval" = "no"; then
8430 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
8431echo "$as_me: error: No argument for --with-openldap-include" >&2;}
8432 { (exit 1); exit 1; }; }
8433elif test "X$with_openldap" = "X"; then
8434 with_openldap=yes
8435fi
8436fi;
8437
8438# Check whether --with-openldap-config or --without-openldap-config was given.
8439if test "${with_openldap_config+set}" = set; then
8440 withval="$with_openldap_config"
8441
8442fi;
8443
8444
8445
8446echo "$as_me:$LINENO: checking for openldap" >&5
8447echo $ECHO_N "checking for openldap... $ECHO_C" >&6
8448
8449case "$with_openldap" in
8450yes|"") d='' ;;
8451no) d= ;;
8452*) d="$with_openldap" ;;
8453esac
8454
8455header_dirs=
8456lib_dirs=
8457for i in $d; do
8458 if test "$with_openldap_include" = ""; then
8459 if test -d "$i/include/openldap"; then
8460 header_dirs="$header_dirs $i/include/openldap"
8461 fi
8462 if test -d "$i/include"; then
8463 header_dirs="$header_dirs $i/include"
8464 fi
8465 fi
8466 if test "$with_openldap_lib" = ""; then
8467 if test -d "$i/lib$abilibdirext"; then
8468 lib_dirs="$lib_dirs $i/lib$abilibdirext"
8469 fi
8470 fi
8471done
8472
8473if test "$with_openldap_include"; then
8474 header_dirs="$with_openldap_include $header_dirs"
8475fi
8476if test "$with_openldap_lib"; then
8477 lib_dirs="$with_openldap_lib $lib_dirs"
8478fi
8479
8480if test "$with_openldap_config" = ""; then
8481 with_openldap_config=''
8482fi
8483
8484openldap_cflags=
8485openldap_libs=
8486
8487case "$with_openldap_config" in
8488yes|no|"")
8489 ;;
8490*)
8491 openldap_cflags="`$with_openldap_config --cflags 2>&1`"
8492 openldap_libs="`$with_openldap_config --libs 2>&1`"
8493 ;;
8494esac
8495
8496found=no
8497if test "$with_openldap" != no; then
8498 save_CFLAGS="$CFLAGS"
8499 save_LIBS="$LIBS"
8500 if test "$openldap_cflags" -a "$openldap_libs"; then
8501 CFLAGS="$openldap_cflags $save_CFLAGS"
8502 LIBS="$openldap_libs $save_LIBS"
8503 cat >conftest.$ac_ext <<_ACEOF
8504#line $LINENO "configure"
8505#include "confdefs.h"
8506#include <lber.h>
8507#include <ldap.h>
8508#ifdef F77_DUMMY_MAIN
8509# ifdef __cplusplus
8510 extern "C"
8511# endif
8512 int F77_DUMMY_MAIN() { return 1; }
8513#endif
8514int
8515main ()
8516{
8517
8518 ;
8519 return 0;
8520}
8521_ACEOF
8522rm -f conftest.$ac_objext conftest$ac_exeext
8523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534
8535 INCLUDE_openldap="$openldap_cflags"
8536 LIB_openldap="$openldap_libs"
8537 echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
8538echo "${ECHO_T}from $with_openldap_config" >&6
8539 found=yes
8540else
8541 echo "$as_me: failed program was:" >&5
8542cat conftest.$ac_ext >&5
8543fi
8544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8545 fi
8546 if test "$found" = no; then
8547 ires= lres=
8548 for i in $header_dirs; do
8549 CFLAGS="-I$i $save_CFLAGS"
8550 cat >conftest.$ac_ext <<_ACEOF
8551#line $LINENO "configure"
8552#include "confdefs.h"
8553#include <lber.h>
8554#include <ldap.h>
8555#ifdef F77_DUMMY_MAIN
8556# ifdef __cplusplus
8557 extern "C"
8558# endif
8559 int F77_DUMMY_MAIN() { return 1; }
8560#endif
8561int
8562main ()
8563{
8564
8565 ;
8566 return 0;
8567}
8568_ACEOF
8569rm -f conftest.$ac_objext
8570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8571 (eval $ac_compile) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -s conftest.$ac_objext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ires=$i;break
8582else
8583 echo "$as_me: failed program was:" >&5
8584cat conftest.$ac_ext >&5
8585fi
8586rm -f conftest.$ac_objext conftest.$ac_ext
8587 done
8588 for i in $lib_dirs; do
8589 LIBS="-L$i -lldap -llber $save_LIBS"
8590 cat >conftest.$ac_ext <<_ACEOF
8591#line $LINENO "configure"
8592#include "confdefs.h"
8593#include <lber.h>
8594#include <ldap.h>
8595#ifdef F77_DUMMY_MAIN
8596# ifdef __cplusplus
8597 extern "C"
8598# endif
8599 int F77_DUMMY_MAIN() { return 1; }
8600#endif
8601int
8602main ()
8603{
8604
8605 ;
8606 return 0;
8607}
8608_ACEOF
8609rm -f conftest.$ac_objext conftest$ac_exeext
8610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8611 (eval $ac_link) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -s conftest$ac_exeext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 lres=$i;break
8622else
8623 echo "$as_me: failed program was:" >&5
8624cat conftest.$ac_ext >&5
8625fi
8626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8627 done
8628 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
8629 INCLUDE_openldap="-I$ires"
8630 LIB_openldap="-L$lres -lldap -llber "
8631 found=yes
8632 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
8633echo "${ECHO_T}headers $ires, libraries $lres" >&6
8634 fi
8635 fi
8636 CFLAGS="$save_CFLAGS"
8637 LIBS="$save_LIBS"
8638fi
8639
8640if test "$found" = yes; then
8641
8642cat >>confdefs.h <<_ACEOF
8643#define OPENLDAP 1
8644_ACEOF
8645
8646 with_openldap=yes
8647else
8648 with_openldap=no
8649 INCLUDE_openldap=
8650 LIB_openldap=
8651 echo "$as_me:$LINENO: result: no" >&5
8652echo "${ECHO_T}no" >&6
8653fi
8654
8655
8656
8657
8658
8659
8660
8661# Check whether --with-krb4 or --without-krb4 was given.
8662if test "${with_krb4+set}" = set; then
8663 withval="$with_krb4"
8664
8665fi;
8666
8667# Check whether --with-krb4-lib or --without-krb4-lib was given.
8668if test "${with_krb4_lib+set}" = set; then
8669 withval="$with_krb4_lib"
8670 if test "$withval" = "yes" -o "$withval" = "no"; then
8671 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
8672echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
8673 { (exit 1); exit 1; }; }
8674elif test "X$with_krb4" = "X"; then
8675 with_krb4=yes
8676fi
8677fi;
8678
8679# Check whether --with-krb4-include or --without-krb4-include was given.
8680if test "${with_krb4_include+set}" = set; then
8681 withval="$with_krb4_include"
8682 if test "$withval" = "yes" -o "$withval" = "no"; then
8683 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
8684echo "$as_me: error: No argument for --with-krb4-include" >&2;}
8685 { (exit 1); exit 1; }; }
8686elif test "X$with_krb4" = "X"; then
8687 with_krb4=yes
8688fi
8689fi;
8690
8691# Check whether --with-krb4-config or --without-krb4-config was given.
8692if test "${with_krb4_config+set}" = set; then
8693 withval="$with_krb4_config"
8694
8695fi;
8696
8697
8698
8699echo "$as_me:$LINENO: checking for krb4" >&5
8700echo $ECHO_N "checking for krb4... $ECHO_C" >&6
8701
8702case "$with_krb4" in
8703yes|"") d='/usr/athena' ;;
8704no) d= ;;
8705*) d="$with_krb4" ;;
8706esac
8707
8708header_dirs=
8709lib_dirs=
8710for i in $d; do
8711 if test "$with_krb4_include" = ""; then
8712 if test -d "$i/include/krb4"; then
8713 header_dirs="$header_dirs $i/include/krb4"
8714 fi
8715 if test -d "$i/include"; then
8716 header_dirs="$header_dirs $i/include"
8717 fi
8718 fi
8719 if test "$with_krb4_lib" = ""; then
8720 if test -d "$i/lib$abilibdirext"; then
8721 lib_dirs="$lib_dirs $i/lib$abilibdirext"
8722 fi
8723 fi
8724done
8725
8726if test "$with_krb4_include"; then
8727 header_dirs="$with_krb4_include $header_dirs"
8728fi
8729if test "$with_krb4_lib"; then
8730 lib_dirs="$with_krb4_lib $lib_dirs"
8731fi
8732
8733if test "$with_krb4_config" = ""; then
8734 with_krb4_config='krb4-config'
8735fi
8736
8737krb4_cflags=
8738krb4_libs=
8739
8740case "$with_krb4_config" in
8741yes|no|"")
8742 ;;
8743*)
8744 krb4_cflags="`$with_krb4_config --cflags 2>&1`"
8745 krb4_libs="`$with_krb4_config --libs 2>&1`"
8746 ;;
8747esac
8748
8749found=no
8750if test "$with_krb4" != no; then
8751 save_CFLAGS="$CFLAGS"
8752 save_LIBS="$LIBS"
8753 if test "$krb4_cflags" -a "$krb4_libs"; then
8754 CFLAGS="$krb4_cflags $save_CFLAGS"
8755 LIBS="$krb4_libs $save_LIBS"
8756 cat >conftest.$ac_ext <<_ACEOF
8757#line $LINENO "configure"
8758#include "confdefs.h"
8759#include <krb.h>
8760#ifdef F77_DUMMY_MAIN
8761# ifdef __cplusplus
8762 extern "C"
8763# endif
8764 int F77_DUMMY_MAIN() { return 1; }
8765#endif
8766int
8767main ()
8768{
8769
8770 ;
8771 return 0;
8772}
8773_ACEOF
8774rm -f conftest.$ac_objext conftest$ac_exeext
8775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } &&
8780 { ac_try='test -s conftest$ac_exeext'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
8786
8787 INCLUDE_krb4="$krb4_cflags"
8788 LIB_krb4="$krb4_libs"
8789 echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
8790echo "${ECHO_T}from $with_krb4_config" >&6
8791 found=yes
8792else
8793 echo "$as_me: failed program was:" >&5
8794cat conftest.$ac_ext >&5
8795fi
8796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8797 fi
8798 if test "$found" = no; then
8799 ires= lres=
8800 for i in $header_dirs; do
8801 CFLAGS="-I$i $save_CFLAGS"
8802 cat >conftest.$ac_ext <<_ACEOF
8803#line $LINENO "configure"
8804#include "confdefs.h"
8805#include <krb.h>
8806#ifdef F77_DUMMY_MAIN
8807# ifdef __cplusplus
8808 extern "C"
8809# endif
8810 int F77_DUMMY_MAIN() { return 1; }
8811#endif
8812int
8813main ()
8814{
8815
8816 ;
8817 return 0;
8818}
8819_ACEOF
8820rm -f conftest.$ac_objext
8821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8822 (eval $ac_compile) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -s conftest.$ac_objext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ires=$i;break
8833else
8834 echo "$as_me: failed program was:" >&5
8835cat conftest.$ac_ext >&5
8836fi
8837rm -f conftest.$ac_objext conftest.$ac_ext
8838 done
8839 for i in $lib_dirs; do
8840 LIBS="-L$i -lkrb -ldes $save_LIBS"
8841 cat >conftest.$ac_ext <<_ACEOF
8842#line $LINENO "configure"
8843#include "confdefs.h"
8844#include <krb.h>
8845#ifdef F77_DUMMY_MAIN
8846# ifdef __cplusplus
8847 extern "C"
8848# endif
8849 int F77_DUMMY_MAIN() { return 1; }
8850#endif
8851int
8852main ()
8853{
8854
8855 ;
8856 return 0;
8857}
8858_ACEOF
8859rm -f conftest.$ac_objext conftest$ac_exeext
8860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 lres=$i;break
8872else
8873 echo "$as_me: failed program was:" >&5
8874cat conftest.$ac_ext >&5
8875fi
8876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8877 done
8878 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
8879 INCLUDE_krb4="-I$ires"
8880 LIB_krb4="-L$lres -lkrb -ldes"
8881 found=yes
8882 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
8883echo "${ECHO_T}headers $ires, libraries $lres" >&6
8884 fi
8885 fi
8886 CFLAGS="$save_CFLAGS"
8887 LIBS="$save_LIBS"
8888fi
8889
8890if test "$found" = yes; then
8891
8892cat >>confdefs.h <<_ACEOF
8893#define KRB4 1
8894_ACEOF
8895
8896 with_krb4=yes
8897else
8898 with_krb4=no
8899 INCLUDE_krb4=
8900 LIB_krb4=
8901 echo "$as_me:$LINENO: result: no" >&5
8902echo "${ECHO_T}no" >&6
8903fi
8904
8905
8906
8907
8908
8909LIB_kdb=
8910if test "$with_krb4" != "no"; then
8911 save_CFLAGS="$CFLAGS"
8912 CFLAGS="$CFLAGS $INCLUDE_krb4"
8913 save_LIBS="$LIBS"
8914 LIBS="$LIB_krb4 $LIBS"
8915 EXTRA_LIB45=lib45.a
8916
8917 echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
8918echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
8919if test "${ac_cv_func_krb_put_int_four+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921else
8922 cat >conftest.$ac_ext <<_ACEOF
8923#line $LINENO "configure"
8924#include "confdefs.h"
8925#include <krb.h>
8926#ifdef F77_DUMMY_MAIN
8927# ifdef __cplusplus
8928 extern "C"
8929# endif
8930 int F77_DUMMY_MAIN() { return 1; }
8931#endif
8932int
8933main ()
8934{
8935
8936 char tmp[4];
8937 krb_put_int(17, tmp, 4, sizeof(tmp));
8938 ;
8939 return 0;
8940}
8941_ACEOF
8942rm -f conftest.$ac_objext
8943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8944 (eval $ac_compile) 2>&5
8945 ac_status=$?
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -s conftest.$ac_objext'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; }; then
8954 ac_cv_func_krb_put_int_four=yes
8955else
8956 echo "$as_me: failed program was:" >&5
8957cat conftest.$ac_ext >&5
8958ac_cv_func_krb_put_int_four=no
8959fi
8960rm -f conftest.$ac_objext conftest.$ac_ext
8961
8962fi
8963echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
8964echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
8965 if test "$ac_cv_func_krb_put_int_four" = yes; then
8966
8967cat >>confdefs.h <<\_ACEOF
8968#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
8969_ACEOF
8970
8971 fi
8972
8973
8974 echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
8975echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
8976if test "${ac_cv_func_krb_verify_secure+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979 cat >conftest.$ac_ext <<_ACEOF
8980#line $LINENO "configure"
8981#include "confdefs.h"
8982#include <krb.h>
8983#ifdef F77_DUMMY_MAIN
8984# ifdef __cplusplus
8985 extern "C"
8986# endif
8987 int F77_DUMMY_MAIN() { return 1; }
8988#endif
8989int
8990main ()
8991{
8992
8993 int x = KRB_VERIFY_SECURE
8994 ;
8995 return 0;
8996}
8997_ACEOF
8998rm -f conftest.$ac_objext
8999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000 (eval $ac_compile) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -s conftest.$ac_objext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_func_krb_verify_secure=yes
9011else
9012 echo "$as_me: failed program was:" >&5
9013cat conftest.$ac_ext >&5
9014ac_cv_func_krb_verify_secure=no
9015fi
9016rm -f conftest.$ac_objext conftest.$ac_ext
9017
9018fi
9019echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
9020echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
9021 if test "$ac_cv_func_krb_verify_secure" != yes; then
9022
9023cat >>confdefs.h <<\_ACEOF
9024#define KRB_VERIFY_SECURE 1
9025_ACEOF
9026
9027
9028cat >>confdefs.h <<\_ACEOF
9029#define KRB_VERIFY_SECURE_FAIL 2
9030_ACEOF
9031
9032 fi
9033 echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
9034echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
9035if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037else
9038 cat >conftest.$ac_ext <<_ACEOF
9039#line $LINENO "configure"
9040#include "confdefs.h"
9041#include <krb.h>
9042#ifdef F77_DUMMY_MAIN
9043# ifdef __cplusplus
9044 extern "C"
9045# endif
9046 int F77_DUMMY_MAIN() { return 1; }
9047#endif
9048int
9049main ()
9050{
9051
9052 int x = KRB_VERIFY_NOT_SECURE
9053 ;
9054 return 0;
9055}
9056_ACEOF
9057rm -f conftest.$ac_objext
9058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059 (eval $ac_compile) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -s conftest.$ac_objext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_func_krb_verify_not_secure=yes
9070else
9071 echo "$as_me: failed program was:" >&5
9072cat conftest.$ac_ext >&5
9073ac_cv_func_krb_verify_not_secure=no
9074fi
9075rm -f conftest.$ac_objext conftest.$ac_ext
9076
9077fi
9078echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
9079echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
9080 if test "$ac_cv_func_krb_verify_not_secure" != yes; then
9081
9082cat >>confdefs.h <<\_ACEOF
9083#define KRB_VERIFY_NOT_SECURE 0
9084_ACEOF
9085
9086 fi
9087
9088
9089
9090
9091echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
9092echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
9093if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095else
9096
9097if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
9098 ac_save_LIBS="$LIBS"
9099 for ac_lib in "" ; do
9100 case "$ac_lib" in
9101 "") ;;
9102 yes) ac_lib="" ;;
9103 no) continue ;;
9104 -l*) ;;
9105 *) ac_lib="-l$ac_lib" ;;
9106 esac
9107 LIBS=" $ac_lib $ac_save_LIBS"
9108 cat >conftest.$ac_ext <<_ACEOF
9109#line $LINENO "configure"
9110#include "confdefs.h"
9111
9112#ifdef F77_DUMMY_MAIN
9113# ifdef __cplusplus
9114 extern "C"
9115# endif
9116 int F77_DUMMY_MAIN() { return 1; }
9117#endif
9118int
9119main ()
9120{
9121krb_enable_debug()
9122 ;
9123 return 0;
9124}
9125_ACEOF
9126rm -f conftest.$ac_objext conftest$ac_exeext
9127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
9139else
9140 echo "$as_me: failed program was:" >&5
9141cat conftest.$ac_ext >&5
9142fi
9143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9144 done
9145 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
9146 LIBS="$ac_save_LIBS"
9147fi
9148
9149fi
9150
9151
9152eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
9153
9154if false; then
9155
9156for ac_func in krb_enable_debug
9157do
9158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9159echo "$as_me:$LINENO: checking for $ac_func" >&5
9160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9161if eval "test \"\${$as_ac_var+set}\" = set"; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163else
9164 cat >conftest.$ac_ext <<_ACEOF
9165#line $LINENO "configure"
9166#include "confdefs.h"
9167/* System header to define __stub macros and hopefully few prototypes,
9168 which can conflict with char $ac_func (); below. */
9169#include <assert.h>
9170/* Override any gcc2 internal prototype to avoid an error. */
9171#ifdef __cplusplus
9172extern "C"
9173#endif
9174/* We use char because int might match the return type of a gcc2
9175 builtin and then its argument prototype would still apply. */
9176char $ac_func ();
9177char (*f) ();
9178
9179#ifdef F77_DUMMY_MAIN
9180# ifdef __cplusplus
9181 extern "C"
9182# endif
9183 int F77_DUMMY_MAIN() { return 1; }
9184#endif
9185int
9186main ()
9187{
9188/* The GNU C library defines this for functions which it implements
9189 to always fail with ENOSYS. Some functions are actually named
9190 something starting with __ and the normal name is an alias. */
9191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9192choke me
9193#else
9194f = $ac_func;
9195#endif
9196
9197 ;
9198 return 0;
9199}
9200_ACEOF
9201rm -f conftest.$ac_objext conftest$ac_exeext
9202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203 (eval $ac_link) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -s conftest$ac_exeext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 (eval $ac_try) 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 eval "$as_ac_var=yes"
9214else
9215 echo "$as_me: failed program was:" >&5
9216cat conftest.$ac_ext >&5
9217eval "$as_ac_var=no"
9218fi
9219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9220fi
9221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9223if test `eval echo '${'$as_ac_var'}'` = yes; then
9224 cat >>confdefs.h <<_ACEOF
9225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9226_ACEOF
9227
9228fi
9229done
9230
9231fi
9232# krb_enable_debug
9233eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9234eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9235eval "LIB_krb_enable_debug=$ac_res"
9236
9237case "$ac_res" in
9238 yes)
9239 eval "ac_cv_func_krb_enable_debug=yes"
9240 eval "LIB_krb_enable_debug="
9241 cat >>confdefs.h <<_ACEOF
9242#define $ac_tr_func 1
9243_ACEOF
9244
9245 echo "$as_me:$LINENO: result: yes" >&5
9246echo "${ECHO_T}yes" >&6
9247 ;;
9248 no)
9249 eval "ac_cv_func_krb_enable_debug=no"
9250 eval "LIB_krb_enable_debug="
9251 echo "$as_me:$LINENO: result: no" >&5
9252echo "${ECHO_T}no" >&6
9253 ;;
9254 *)
9255 eval "ac_cv_func_krb_enable_debug=yes"
9256 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9257 cat >>confdefs.h <<_ACEOF
9258#define $ac_tr_func 1
9259_ACEOF
9260
9261 cat >>confdefs.h <<_ACEOF
9262#define $ac_tr_lib 1
9263_ACEOF
9264
9265 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9266echo "${ECHO_T}yes, in $ac_res" >&6
9267 ;;
9268esac
9269
9270
9271if test -n "$LIB_krb_enable_debug"; then
9272 LIBS="$LIB_krb_enable_debug $LIBS"
9273fi
9274
9275
9276
9277
9278
9279echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
9280echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
9281if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283else
9284
9285if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
9286 ac_save_LIBS="$LIBS"
9287 for ac_lib in "" ; do
9288 case "$ac_lib" in
9289 "") ;;
9290 yes) ac_lib="" ;;
9291 no) continue ;;
9292 -l*) ;;
9293 *) ac_lib="-l$ac_lib" ;;
9294 esac
9295 LIBS=" $ac_lib $ac_save_LIBS"
9296 cat >conftest.$ac_ext <<_ACEOF
9297#line $LINENO "configure"
9298#include "confdefs.h"
9299
9300#ifdef F77_DUMMY_MAIN
9301# ifdef __cplusplus
9302 extern "C"
9303# endif
9304 int F77_DUMMY_MAIN() { return 1; }
9305#endif
9306int
9307main ()
9308{
9309krb_disable_debug()
9310 ;
9311 return 0;
9312}
9313_ACEOF
9314rm -f conftest.$ac_objext conftest$ac_exeext
9315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316 (eval $ac_link) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
9327else
9328 echo "$as_me: failed program was:" >&5
9329cat conftest.$ac_ext >&5
9330fi
9331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9332 done
9333 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
9334 LIBS="$ac_save_LIBS"
9335fi
9336
9337fi
9338
9339
9340eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
9341
9342if false; then
9343
9344for ac_func in krb_disable_debug
9345do
9346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347echo "$as_me:$LINENO: checking for $ac_func" >&5
9348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9349if eval "test \"\${$as_ac_var+set}\" = set"; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352 cat >conftest.$ac_ext <<_ACEOF
9353#line $LINENO "configure"
9354#include "confdefs.h"
9355/* System header to define __stub macros and hopefully few prototypes,
9356 which can conflict with char $ac_func (); below. */
9357#include <assert.h>
9358/* Override any gcc2 internal prototype to avoid an error. */
9359#ifdef __cplusplus
9360extern "C"
9361#endif
9362/* We use char because int might match the return type of a gcc2
9363 builtin and then its argument prototype would still apply. */
9364char $ac_func ();
9365char (*f) ();
9366
9367#ifdef F77_DUMMY_MAIN
9368# ifdef __cplusplus
9369 extern "C"
9370# endif
9371 int F77_DUMMY_MAIN() { return 1; }
9372#endif
9373int
9374main ()
9375{
9376/* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9380choke me
9381#else
9382f = $ac_func;
9383#endif
9384
9385 ;
9386 return 0;
9387}
9388_ACEOF
9389rm -f conftest.$ac_objext conftest$ac_exeext
9390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -s conftest$ac_exeext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 eval "$as_ac_var=yes"
9402else
9403 echo "$as_me: failed program was:" >&5
9404cat conftest.$ac_ext >&5
9405eval "$as_ac_var=no"
9406fi
9407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9408fi
9409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9410echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9411if test `eval echo '${'$as_ac_var'}'` = yes; then
9412 cat >>confdefs.h <<_ACEOF
9413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9414_ACEOF
9415
9416fi
9417done
9418
9419fi
9420# krb_disable_debug
9421eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9422eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9423eval "LIB_krb_disable_debug=$ac_res"
9424
9425case "$ac_res" in
9426 yes)
9427 eval "ac_cv_func_krb_disable_debug=yes"
9428 eval "LIB_krb_disable_debug="
9429 cat >>confdefs.h <<_ACEOF
9430#define $ac_tr_func 1
9431_ACEOF
9432
9433 echo "$as_me:$LINENO: result: yes" >&5
9434echo "${ECHO_T}yes" >&6
9435 ;;
9436 no)
9437 eval "ac_cv_func_krb_disable_debug=no"
9438 eval "LIB_krb_disable_debug="
9439 echo "$as_me:$LINENO: result: no" >&5
9440echo "${ECHO_T}no" >&6
9441 ;;
9442 *)
9443 eval "ac_cv_func_krb_disable_debug=yes"
9444 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9445 cat >>confdefs.h <<_ACEOF
9446#define $ac_tr_func 1
9447_ACEOF
9448
9449 cat >>confdefs.h <<_ACEOF
9450#define $ac_tr_lib 1
9451_ACEOF
9452
9453 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9454echo "${ECHO_T}yes, in $ac_res" >&6
9455 ;;
9456esac
9457
9458
9459if test -n "$LIB_krb_disable_debug"; then
9460 LIBS="$LIB_krb_disable_debug $LIBS"
9461fi
9462
9463
9464
9465
9466
9467echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
9468echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
9469if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471else
9472
9473if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
9474 ac_save_LIBS="$LIBS"
9475 for ac_lib in "" ; do
9476 case "$ac_lib" in
9477 "") ;;
9478 yes) ac_lib="" ;;
9479 no) continue ;;
9480 -l*) ;;
9481 *) ac_lib="-l$ac_lib" ;;
9482 esac
9483 LIBS=" $ac_lib $ac_save_LIBS"
9484 cat >conftest.$ac_ext <<_ACEOF
9485#line $LINENO "configure"
9486#include "confdefs.h"
9487
9488#ifdef F77_DUMMY_MAIN
9489# ifdef __cplusplus
9490 extern "C"
9491# endif
9492 int F77_DUMMY_MAIN() { return 1; }
9493#endif
9494int
9495main ()
9496{
9497krb_get_our_ip_for_realm()
9498 ;
9499 return 0;
9500}
9501_ACEOF
9502rm -f conftest.$ac_objext conftest$ac_exeext
9503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
9515else
9516 echo "$as_me: failed program was:" >&5
9517cat conftest.$ac_ext >&5
9518fi
9519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9520 done
9521 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
9522 LIBS="$ac_save_LIBS"
9523fi
9524
9525fi
9526
9527
9528eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
9529
9530if false; then
9531
9532for ac_func in krb_get_our_ip_for_realm
9533do
9534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9535echo "$as_me:$LINENO: checking for $ac_func" >&5
9536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9537if eval "test \"\${$as_ac_var+set}\" = set"; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539else
9540 cat >conftest.$ac_ext <<_ACEOF
9541#line $LINENO "configure"
9542#include "confdefs.h"
9543/* System header to define __stub macros and hopefully few prototypes,
9544 which can conflict with char $ac_func (); below. */
9545#include <assert.h>
9546/* Override any gcc2 internal prototype to avoid an error. */
9547#ifdef __cplusplus
9548extern "C"
9549#endif
9550/* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9552char $ac_func ();
9553char (*f) ();
9554
9555#ifdef F77_DUMMY_MAIN
9556# ifdef __cplusplus
9557 extern "C"
9558# endif
9559 int F77_DUMMY_MAIN() { return 1; }
9560#endif
9561int
9562main ()
9563{
9564/* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9568choke me
9569#else
9570f = $ac_func;
9571#endif
9572
9573 ;
9574 return 0;
9575}
9576_ACEOF
9577rm -f conftest.$ac_objext conftest$ac_exeext
9578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579 (eval $ac_link) 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try='test -s conftest$ac_exeext'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 (eval $ac_try) 2>&5
9586 ac_status=$?
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; }; then
9589 eval "$as_ac_var=yes"
9590else
9591 echo "$as_me: failed program was:" >&5
9592cat conftest.$ac_ext >&5
9593eval "$as_ac_var=no"
9594fi
9595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9596fi
9597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9599if test `eval echo '${'$as_ac_var'}'` = yes; then
9600 cat >>confdefs.h <<_ACEOF
9601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9602_ACEOF
9603
9604fi
9605done
9606
9607fi
9608# krb_get_our_ip_for_realm
9609eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9610eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9611eval "LIB_krb_get_our_ip_for_realm=$ac_res"
9612
9613case "$ac_res" in
9614 yes)
9615 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
9616 eval "LIB_krb_get_our_ip_for_realm="
9617 cat >>confdefs.h <<_ACEOF
9618#define $ac_tr_func 1
9619_ACEOF
9620
9621 echo "$as_me:$LINENO: result: yes" >&5
9622echo "${ECHO_T}yes" >&6
9623 ;;
9624 no)
9625 eval "ac_cv_func_krb_get_our_ip_for_realm=no"
9626 eval "LIB_krb_get_our_ip_for_realm="
9627 echo "$as_me:$LINENO: result: no" >&5
9628echo "${ECHO_T}no" >&6
9629 ;;
9630 *)
9631 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
9632 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9633 cat >>confdefs.h <<_ACEOF
9634#define $ac_tr_func 1
9635_ACEOF
9636
9637 cat >>confdefs.h <<_ACEOF
9638#define $ac_tr_lib 1
9639_ACEOF
9640
9641 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9642echo "${ECHO_T}yes, in $ac_res" >&6
9643 ;;
9644esac
9645
9646
9647if test -n "$LIB_krb_get_our_ip_for_realm"; then
9648 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
9649fi
9650
9651
9652
9653
9654
9655echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
9656echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
9657if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659else
9660
9661if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
9662 ac_save_LIBS="$LIBS"
9663 for ac_lib in "" ; do
9664 case "$ac_lib" in
9665 "") ;;
9666 yes) ac_lib="" ;;
9667 no) continue ;;
9668 -l*) ;;
9669 *) ac_lib="-l$ac_lib" ;;
9670 esac
9671 LIBS=" $ac_lib $ac_save_LIBS"
9672 cat >conftest.$ac_ext <<_ACEOF
9673#line $LINENO "configure"
9674#include "confdefs.h"
9675
9676#ifdef F77_DUMMY_MAIN
9677# ifdef __cplusplus
9678 extern "C"
9679# endif
9680 int F77_DUMMY_MAIN() { return 1; }
9681#endif
9682int
9683main ()
9684{
9685krb_kdctimeofday()
9686 ;
9687 return 0;
9688}
9689_ACEOF
9690rm -f conftest.$ac_objext conftest$ac_exeext
9691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692 (eval $ac_link) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
9703else
9704 echo "$as_me: failed program was:" >&5
9705cat conftest.$ac_ext >&5
9706fi
9707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9708 done
9709 eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
9710 LIBS="$ac_save_LIBS"
9711fi
9712
9713fi
9714
9715
9716eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
9717
9718if false; then
9719
9720for ac_func in krb_kdctimeofday
9721do
9722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9723echo "$as_me:$LINENO: checking for $ac_func" >&5
9724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9725if eval "test \"\${$as_ac_var+set}\" = set"; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727else
9728 cat >conftest.$ac_ext <<_ACEOF
9729#line $LINENO "configure"
9730#include "confdefs.h"
9731/* System header to define __stub macros and hopefully few prototypes,
9732 which can conflict with char $ac_func (); below. */
9733#include <assert.h>
9734/* Override any gcc2 internal prototype to avoid an error. */
9735#ifdef __cplusplus
9736extern "C"
9737#endif
9738/* We use char because int might match the return type of a gcc2
9739 builtin and then its argument prototype would still apply. */
9740char $ac_func ();
9741char (*f) ();
9742
9743#ifdef F77_DUMMY_MAIN
9744# ifdef __cplusplus
9745 extern "C"
9746# endif
9747 int F77_DUMMY_MAIN() { return 1; }
9748#endif
9749int
9750main ()
9751{
9752/* The GNU C library defines this for functions which it implements
9753 to always fail with ENOSYS. Some functions are actually named
9754 something starting with __ and the normal name is an alias. */
9755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9756choke me
9757#else
9758f = $ac_func;
9759#endif
9760
9761 ;
9762 return 0;
9763}
9764_ACEOF
9765rm -f conftest.$ac_objext conftest$ac_exeext
9766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 eval "$as_ac_var=yes"
9778else
9779 echo "$as_me: failed program was:" >&5
9780cat conftest.$ac_ext >&5
9781eval "$as_ac_var=no"
9782fi
9783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9784fi
9785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9786echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9787if test `eval echo '${'$as_ac_var'}'` = yes; then
9788 cat >>confdefs.h <<_ACEOF
9789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9790_ACEOF
9791
9792fi
9793done
9794
9795fi
9796# krb_kdctimeofday
9797eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9798eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9799eval "LIB_krb_kdctimeofday=$ac_res"
9800
9801case "$ac_res" in
9802 yes)
9803 eval "ac_cv_func_krb_kdctimeofday=yes"
9804 eval "LIB_krb_kdctimeofday="
9805 cat >>confdefs.h <<_ACEOF
9806#define $ac_tr_func 1
9807_ACEOF
9808
9809 echo "$as_me:$LINENO: result: yes" >&5
9810echo "${ECHO_T}yes" >&6
9811 ;;
9812 no)
9813 eval "ac_cv_func_krb_kdctimeofday=no"
9814 eval "LIB_krb_kdctimeofday="
9815 echo "$as_me:$LINENO: result: no" >&5
9816echo "${ECHO_T}no" >&6
9817 ;;
9818 *)
9819 eval "ac_cv_func_krb_kdctimeofday=yes"
9820 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9821 cat >>confdefs.h <<_ACEOF
9822#define $ac_tr_func 1
9823_ACEOF
9824
9825 cat >>confdefs.h <<_ACEOF
9826#define $ac_tr_lib 1
9827_ACEOF
9828
9829 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9830echo "${ECHO_T}yes, in $ac_res" >&6
9831 ;;
9832esac
9833
9834
9835if test -n "$LIB_krb_kdctimeofday"; then
9836 LIBS="$LIB_krb_kdctimeofday $LIBS"
9837fi
9838
9839
9840
9841
9842
9843
9844
9845echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
9846echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
9847if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849else
9850
9851if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
9852 ac_save_LIBS="$LIBS"
9853 for ac_lib in "" ; do
9854 case "$ac_lib" in
9855 "") ;;
9856 yes) ac_lib="" ;;
9857 no) continue ;;
9858 -l*) ;;
9859 *) ac_lib="-l$ac_lib" ;;
9860 esac
9861 LIBS=" $ac_lib $ac_save_LIBS"
9862 cat >conftest.$ac_ext <<_ACEOF
9863#line $LINENO "configure"
9864#include "confdefs.h"
9865
9866#ifdef F77_DUMMY_MAIN
9867# ifdef __cplusplus
9868 extern "C"
9869# endif
9870 int F77_DUMMY_MAIN() { return 1; }
9871#endif
9872int
9873main ()
9874{
9875krb_get_kdc_time_diff()
9876 ;
9877 return 0;
9878}
9879_ACEOF
9880rm -f conftest.$ac_objext conftest$ac_exeext
9881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break
9893else
9894 echo "$as_me: failed program was:" >&5
9895cat conftest.$ac_ext >&5
9896fi
9897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9898 done
9899 eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
9900 LIBS="$ac_save_LIBS"
9901fi
9902
9903fi
9904
9905
9906eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
9907
9908if false; then
9909
9910for ac_func in krb_get_kdc_time_diff
9911do
9912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9913echo "$as_me:$LINENO: checking for $ac_func" >&5
9914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9915if eval "test \"\${$as_ac_var+set}\" = set"; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917else
9918 cat >conftest.$ac_ext <<_ACEOF
9919#line $LINENO "configure"
9920#include "confdefs.h"
9921/* System header to define __stub macros and hopefully few prototypes,
9922 which can conflict with char $ac_func (); below. */
9923#include <assert.h>
9924/* Override any gcc2 internal prototype to avoid an error. */
9925#ifdef __cplusplus
9926extern "C"
9927#endif
9928/* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9930char $ac_func ();
9931char (*f) ();
9932
9933#ifdef F77_DUMMY_MAIN
9934# ifdef __cplusplus
9935 extern "C"
9936# endif
9937 int F77_DUMMY_MAIN() { return 1; }
9938#endif
9939int
9940main ()
9941{
9942/* The GNU C library defines this for functions which it implements
9943 to always fail with ENOSYS. Some functions are actually named
9944 something starting with __ and the normal name is an alias. */
9945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9946choke me
9947#else
9948f = $ac_func;
9949#endif
9950
9951 ;
9952 return 0;
9953}
9954_ACEOF
9955rm -f conftest.$ac_objext conftest$ac_exeext
9956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
9968else
9969 echo "$as_me: failed program was:" >&5
9970cat conftest.$ac_ext >&5
9971eval "$as_ac_var=no"
9972fi
9973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9974fi
9975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9977if test `eval echo '${'$as_ac_var'}'` = yes; then
9978 cat >>confdefs.h <<_ACEOF
9979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9980_ACEOF
9981
9982fi
9983done
9984
9985fi
9986# krb_get_kdc_time_diff
9987eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9988eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9989eval "LIB_krb_get_kdc_time_diff=$ac_res"
9990
9991case "$ac_res" in
9992 yes)
9993 eval "ac_cv_func_krb_get_kdc_time_diff=yes"
9994 eval "LIB_krb_get_kdc_time_diff="
9995 cat >>confdefs.h <<_ACEOF
9996#define $ac_tr_func 1
9997_ACEOF
9998
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 ;;
10002 no)
10003 eval "ac_cv_func_krb_get_kdc_time_diff=no"
10004 eval "LIB_krb_get_kdc_time_diff="
10005 echo "$as_me:$LINENO: result: no" >&5
10006echo "${ECHO_T}no" >&6
10007 ;;
10008 *)
10009 eval "ac_cv_func_krb_get_kdc_time_diff=yes"
10010 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
10011 cat >>confdefs.h <<_ACEOF
10012#define $ac_tr_func 1
10013_ACEOF
10014
10015 cat >>confdefs.h <<_ACEOF
10016#define $ac_tr_lib 1
10017_ACEOF
10018
10019 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
10020echo "${ECHO_T}yes, in $ac_res" >&6
10021 ;;
10022esac
10023
10024
10025if test -n "$LIB_krb_get_kdc_time_diff"; then
10026 LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
10027fi
10028
10029
10030
10031 echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
10032echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
10033if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035else
10036 cat >conftest.$ac_ext <<_ACEOF
10037#line $LINENO "configure"
10038#include "confdefs.h"
10039#include <krb.h>
10040 #include <prot.h>
10041#ifdef F77_DUMMY_MAIN
10042# ifdef __cplusplus
10043 extern "C"
10044# endif
10045 int F77_DUMMY_MAIN() { return 1; }
10046#endif
10047int
10048main ()
10049{
10050
10051 char *x = KRB_SENDAUTH_VERS
10052 ;
10053 return 0;
10054}
10055_ACEOF
10056rm -f conftest.$ac_objext
10057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058 (eval $ac_compile) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_cv_func_krb_sendauth_vers=yes
10069else
10070 echo "$as_me: failed program was:" >&5
10071cat conftest.$ac_ext >&5
10072ac_cv_func_krb_sendauth_vers=no
10073fi
10074rm -f conftest.$ac_objext conftest.$ac_ext
10075
10076fi
10077echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
10078echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
10079 if test "$ac_cv_func_krb_sendauth_vers" != yes; then
10080
10081cat >>confdefs.h <<\_ACEOF
10082#define KRB_SENDAUTH_VERS "AUTHV0.1"
10083_ACEOF
10084
10085 fi
10086 echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
10087echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
10088if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090else
10091 cat >conftest.$ac_ext <<_ACEOF
10092#line $LINENO "configure"
10093#include "confdefs.h"
10094#include <krb.h>
10095 int krb_mk_req(KTEXT a, const char *s, const char *i,
10096 const char *r, int32_t checksum)
10097 { return 17; }
10098#ifdef F77_DUMMY_MAIN
10099# ifdef __cplusplus
10100 extern "C"
10101# endif
10102 int F77_DUMMY_MAIN() { return 1; }
10103#endif
10104int
10105main ()
10106{
10107
10108 ;
10109 return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext
10113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -s conftest.$ac_objext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_func_krb_mk_req_const=yes
10125else
10126 echo "$as_me: failed program was:" >&5
10127cat conftest.$ac_ext >&5
10128ac_cv_func_krb_mk_req_const=no
10129fi
10130rm -f conftest.$ac_objext conftest.$ac_ext
10131
10132fi
10133echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
10134echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
10135 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
10136
10137cat >>confdefs.h <<\_ACEOF
10138#define KRB_MK_REQ_CONST 1
10139_ACEOF
10140
10141 fi
10142
10143 LIBS="$save_LIBS"
10144 CFLAGS="$save_CFLAGS"
10145 LIB_kdb="-lkdb -lkrb"
10146fi
10147
10148
10149if test "$with_krb4" != "no"; then
10150 KRB4_TRUE=
10151 KRB4_FALSE='#'
10152else
10153 KRB4_TRUE='#'
10154 KRB4_FALSE=
10155fi
10156
10157
10158
10159if true; then
10160 KRB5_TRUE=
10161 KRB5_FALSE='#'
10162else
10163 KRB5_TRUE='#'
10164 KRB5_FALSE=
10165fi
10166
10167
10168
10169if true; then
10170 do_roken_rename_TRUE=
10171 do_roken_rename_FALSE='#'
10172else
10173 do_roken_rename_TRUE='#'
10174 do_roken_rename_FALSE=
10175fi
10176
10177
10178
10179cat >>confdefs.h <<\_ACEOF
10180#define KRB5 1
10181_ACEOF
10182
10183
10184crypto_lib=unknown
10185
10186
10187# Check whether --with-openssl or --without-openssl was given.
10188if test "${with_openssl+set}" = set; then
10189 withval="$with_openssl"
10190
10191fi;
10192
10193
10194# Check whether --with-openssl-lib or --without-openssl-lib was given.
10195if test "${with_openssl_lib+set}" = set; then
10196 withval="$with_openssl_lib"
10197 if test "$withval" = "yes" -o "$withval" = "no"; then
10198 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
10199echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
10200 { (exit 1); exit 1; }; }
10201elif test "X$with_openssl" = "X"; then
10202 with_openssl=yes
10203fi
10204fi;
10205
10206
10207# Check whether --with-openssl-include or --without-openssl-include was given.
10208if test "${with_openssl_include+set}" = set; then
10209 withval="$with_openssl_include"
10210 if test "$withval" = "yes" -o "$withval" = "no"; then
10211 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
10212echo "$as_me: error: No argument for --with-openssl-include" >&2;}
10213 { (exit 1); exit 1; }; }
10214elif test "X$with_openssl" = "X"; then
10215 with_openssl=yes
10216fi
10217fi;
10218
10219case "$with_openssl" in
10220yes) ;;
10221no) ;;
10222"") ;;
10223*) if test "$with_openssl_include" = ""; then
10224 with_openssl_include="$with_openssl/include"
10225 fi
10226 if test "$with_openssl_lib" = ""; then
10227 with_openssl_lib="$with_openssl/lib$abilibdirext"
10228 fi
10229 ;;
10230esac
10231
10232
10233DIR_des=
10234
10235echo "$as_me:$LINENO: checking for crypto library" >&5
10236echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
10237
10238openssl=no
10239old_hash=no
10240
10241if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
10242 save_CPPFLAGS="$CPPFLAGS"
10243 save_LIBS="$LIBS"
10244
10245 cdirs= clibs=
10246 for i in $LIB_krb4; do
10247 case "$i" in
10248 -L*) cdirs="$cdirs $i";;
10249 -l*) clibs="$clibs $i";;
10250 esac
10251 done
10252
10253 ires=
10254 for i in $INCLUDE_krb4; do
10255 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
10256 cat >conftest.$ac_ext <<_ACEOF
10257#line $LINENO "configure"
10258#include "confdefs.h"
10259
10260 #undef KRB5 /* makes md4.h et al unhappy */
10261 #ifdef HAVE_OPENSSL
10262 #include <openssl/md4.h>
10263 #include <openssl/md5.h>
10264 #include <openssl/sha.h>
10265 #include <openssl/des.h>
10266 #include <openssl/rc4.h>
10267 #else
10268 #include <md4.h>
10269 #include <md5.h>
10270 #include <sha.h>
10271 #include <des.h>
10272 #include <rc4.h>
10273 #endif
10274 #ifdef OLD_HASH_NAMES
10275 typedef struct md4 MD4_CTX;
10276 #define MD4_Init(C) md4_init((C))
10277 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10278 #define MD4_Final(D, C) md4_finito((C), (D))
10279 typedef struct md5 MD5_CTX;
10280 #define MD5_Init(C) md5_init((C))
10281 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10282 #define MD5_Final(D, C) md5_finito((C), (D))
10283 typedef struct sha SHA_CTX;
10284 #define SHA1_Init(C) sha_init((C))
10285 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10286 #define SHA1_Final(D, C) sha_finito((C), (D))
10287 #endif
10288
10289#ifdef F77_DUMMY_MAIN
10290# ifdef __cplusplus
10291 extern "C"
10292# endif
10293 int F77_DUMMY_MAIN() { return 1; }
10294#endif
10295int
10296main ()
10297{
10298
10299 void *schedule = 0;
10300 MD4_CTX md4;
10301 MD5_CTX md5;
10302 SHA_CTX sha1;
10303
10304 MD4_Init(&md4);
10305 MD5_Init(&md5);
10306 SHA1_Init(&sha1);
10307
10308 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10309 RC4(0, 0, 0, 0);
10310 ;
10311 return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext
10315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 openssl=yes ires="$i"; break
10327else
10328 echo "$as_me: failed program was:" >&5
10329cat conftest.$ac_ext >&5
10330fi
10331rm -f conftest.$ac_objext conftest.$ac_ext
10332 CFLAGS="$i $save_CFLAGS"
10333 cat >conftest.$ac_ext <<_ACEOF
10334#line $LINENO "configure"
10335#include "confdefs.h"
10336
10337 #undef KRB5 /* makes md4.h et al unhappy */
10338 #ifdef HAVE_OPENSSL
10339 #include <openssl/md4.h>
10340 #include <openssl/md5.h>
10341 #include <openssl/sha.h>
10342 #include <openssl/des.h>
10343 #include <openssl/rc4.h>
10344 #else
10345 #include <md4.h>
10346 #include <md5.h>
10347 #include <sha.h>
10348 #include <des.h>
10349 #include <rc4.h>
10350 #endif
10351 #ifdef OLD_HASH_NAMES
10352 typedef struct md4 MD4_CTX;
10353 #define MD4_Init(C) md4_init((C))
10354 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10355 #define MD4_Final(D, C) md4_finito((C), (D))
10356 typedef struct md5 MD5_CTX;
10357 #define MD5_Init(C) md5_init((C))
10358 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10359 #define MD5_Final(D, C) md5_finito((C), (D))
10360 typedef struct sha SHA_CTX;
10361 #define SHA1_Init(C) sha_init((C))
10362 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10363 #define SHA1_Final(D, C) sha_finito((C), (D))
10364 #endif
10365
10366#ifdef F77_DUMMY_MAIN
10367# ifdef __cplusplus
10368 extern "C"
10369# endif
10370 int F77_DUMMY_MAIN() { return 1; }
10371#endif
10372int
10373main ()
10374{
10375
10376 void *schedule = 0;
10377 MD4_CTX md4;
10378 MD5_CTX md5;
10379 SHA_CTX sha1;
10380
10381 MD4_Init(&md4);
10382 MD5_Init(&md5);
10383 SHA1_Init(&sha1);
10384
10385 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10386 RC4(0, 0, 0, 0);
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391rm -f conftest.$ac_objext
10392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393 (eval $ac_compile) 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -s conftest.$ac_objext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 openssl=no ires="$i"; break
10404else
10405 echo "$as_me: failed program was:" >&5
10406cat conftest.$ac_ext >&5
10407fi
10408rm -f conftest.$ac_objext conftest.$ac_ext
10409 CFLAGS="-DOLD_HASH_NAMES $i $save_CFLAGS"
10410 cat >conftest.$ac_ext <<_ACEOF
10411#line $LINENO "configure"
10412#include "confdefs.h"
10413
10414 #undef KRB5 /* makes md4.h et al unhappy */
10415 #ifdef HAVE_OPENSSL
10416 #include <openssl/md4.h>
10417 #include <openssl/md5.h>
10418 #include <openssl/sha.h>
10419 #include <openssl/des.h>
10420 #include <openssl/rc4.h>
10421 #else
10422 #include <md4.h>
10423 #include <md5.h>
10424 #include <sha.h>
10425 #include <des.h>
10426 #include <rc4.h>
10427 #endif
10428 #ifdef OLD_HASH_NAMES
10429 typedef struct md4 MD4_CTX;
10430 #define MD4_Init(C) md4_init((C))
10431 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10432 #define MD4_Final(D, C) md4_finito((C), (D))
10433 typedef struct md5 MD5_CTX;
10434 #define MD5_Init(C) md5_init((C))
10435 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10436 #define MD5_Final(D, C) md5_finito((C), (D))
10437 typedef struct sha SHA_CTX;
10438 #define SHA1_Init(C) sha_init((C))
10439 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10440 #define SHA1_Final(D, C) sha_finito((C), (D))
10441 #endif
10442
10443#ifdef F77_DUMMY_MAIN
10444# ifdef __cplusplus
10445 extern "C"
10446# endif
10447 int F77_DUMMY_MAIN() { return 1; }
10448#endif
10449int
10450main ()
10451{
10452
10453 void *schedule = 0;
10454 MD4_CTX md4;
10455 MD5_CTX md5;
10456 SHA_CTX sha1;
10457
10458 MD4_Init(&md4);
10459 MD5_Init(&md5);
10460 SHA1_Init(&sha1);
10461
10462 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10463 RC4(0, 0, 0, 0);
10464 ;
10465 return 0;
10466}
10467_ACEOF
10468rm -f conftest.$ac_objext
10469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10470 (eval $ac_compile) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -s conftest.$ac_objext'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; }; then
10480 openssl=no ires="$i" old_hash=yes; break
10481else
10482 echo "$as_me: failed program was:" >&5
10483cat conftest.$ac_ext >&5
10484fi
10485rm -f conftest.$ac_objext conftest.$ac_ext
10486 done
10487 lres=
10488 for i in $cdirs; do
10489 for j in $clibs; do
10490 LIBS="$i $j $save_LIBS"
10491 cat >conftest.$ac_ext <<_ACEOF
10492#line $LINENO "configure"
10493#include "confdefs.h"
10494
10495 #undef KRB5 /* makes md4.h et al unhappy */
10496 #ifdef HAVE_OPENSSL
10497 #include <openssl/md4.h>
10498 #include <openssl/md5.h>
10499 #include <openssl/sha.h>
10500 #include <openssl/des.h>
10501 #include <openssl/rc4.h>
10502 #else
10503 #include <md4.h>
10504 #include <md5.h>
10505 #include <sha.h>
10506 #include <des.h>
10507 #include <rc4.h>
10508 #endif
10509 #ifdef OLD_HASH_NAMES
10510 typedef struct md4 MD4_CTX;
10511 #define MD4_Init(C) md4_init((C))
10512 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10513 #define MD4_Final(D, C) md4_finito((C), (D))
10514 typedef struct md5 MD5_CTX;
10515 #define MD5_Init(C) md5_init((C))
10516 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10517 #define MD5_Final(D, C) md5_finito((C), (D))
10518 typedef struct sha SHA_CTX;
10519 #define SHA1_Init(C) sha_init((C))
10520 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10521 #define SHA1_Final(D, C) sha_finito((C), (D))
10522 #endif
10523
10524#ifdef F77_DUMMY_MAIN
10525# ifdef __cplusplus
10526 extern "C"
10527# endif
10528 int F77_DUMMY_MAIN() { return 1; }
10529#endif
10530int
10531main ()
10532{
10533
10534 void *schedule = 0;
10535 MD4_CTX md4;
10536 MD5_CTX md5;
10537 SHA_CTX sha1;
10538
10539 MD4_Init(&md4);
10540 MD5_Init(&md5);
10541 SHA1_Init(&sha1);
10542
10543 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10544 RC4(0, 0, 0, 0);
10545 ;
10546 return 0;
10547}
10548_ACEOF
10549rm -f conftest.$ac_objext conftest$ac_exeext
10550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10551 (eval $ac_link) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -s conftest$ac_exeext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 lres="$i $j"; break 2
10562else
10563 echo "$as_me: failed program was:" >&5
10564cat conftest.$ac_ext >&5
10565fi
10566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10567 done
10568 done
10569 CFLAGS="$save_CFLAGS"
10570 LIBS="$save_LIBS"
10571 if test "$ires" -a "$lres"; then
10572 INCLUDE_des="$ires"
10573 LIB_des="$lres"
10574 crypto_lib=krb4
10575 echo "$as_me:$LINENO: result: same as krb4" >&5
10576echo "${ECHO_T}same as krb4" >&6
10577 LIB_des_a='$(LIB_des)'
10578 LIB_des_so='$(LIB_des)'
10579 LIB_des_appl='$(LIB_des)'
10580 fi
10581fi
10582
10583if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
10584 save_CFLAGS="$CFLAGS"
10585 save_LIBS="$LIBS"
10586 INCLUDE_des=
10587 LIB_des=
10588 if test "$with_openssl_include" != ""; then
10589 INCLUDE_des="-I${with_openssl}/include"
10590 fi
10591 if test "$with_openssl_lib" != ""; then
10592 LIB_des="-L${with_openssl}/lib"
10593 fi
10594 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
10595 LIB_des="${LIB_des} -lcrypto"
10596 LIB_des_a="$LIB_des"
10597 LIB_des_so="$LIB_des"
10598 LIB_des_appl="$LIB_des"
10599 LIBS="${LIBS} ${LIB_des}"
10600 cat >conftest.$ac_ext <<_ACEOF
10601#line $LINENO "configure"
10602#include "confdefs.h"
10603
10604 #undef KRB5 /* makes md4.h et al unhappy */
10605 #ifdef HAVE_OPENSSL
10606 #include <openssl/md4.h>
10607 #include <openssl/md5.h>
10608 #include <openssl/sha.h>
10609 #include <openssl/des.h>
10610 #include <openssl/rc4.h>
10611 #else
10612 #include <md4.h>
10613 #include <md5.h>
10614 #include <sha.h>
10615 #include <des.h>
10616 #include <rc4.h>
10617 #endif
10618 #ifdef OLD_HASH_NAMES
10619 typedef struct md4 MD4_CTX;
10620 #define MD4_Init(C) md4_init((C))
10621 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10622 #define MD4_Final(D, C) md4_finito((C), (D))
10623 typedef struct md5 MD5_CTX;
10624 #define MD5_Init(C) md5_init((C))
10625 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10626 #define MD5_Final(D, C) md5_finito((C), (D))
10627 typedef struct sha SHA_CTX;
10628 #define SHA1_Init(C) sha_init((C))
10629 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10630 #define SHA1_Final(D, C) sha_finito((C), (D))
10631 #endif
10632
10633#ifdef F77_DUMMY_MAIN
10634# ifdef __cplusplus
10635 extern "C"
10636# endif
10637 int F77_DUMMY_MAIN() { return 1; }
10638#endif
10639int
10640main ()
10641{
10642
10643 void *schedule = 0;
10644 MD4_CTX md4;
10645 MD5_CTX md5;
10646 SHA_CTX sha1;
10647
10648 MD4_Init(&md4);
10649 MD5_Init(&md5);
10650 SHA1_Init(&sha1);
10651
10652 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10653 RC4(0, 0, 0, 0);
10654 ;
10655 return 0;
10656}
10657_ACEOF
10658rm -f conftest.$ac_objext conftest$ac_exeext
10659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10660 (eval $ac_link) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670
10671 crypto_lib=libcrypto openssl=yes
10672 echo "$as_me:$LINENO: result: libcrypto" >&5
10673echo "${ECHO_T}libcrypto" >&6
10674
10675else
10676 echo "$as_me: failed program was:" >&5
10677cat conftest.$ac_ext >&5
10678fi
10679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10680 CFLAGS="$save_CFLAGS"
10681 LIBS="$save_LIBS"
10682fi
10683
10684if test "$crypto_lib" = "unknown"; then
10685
10686 DIR_des='des'
10687 LIB_des='$(top_builddir)/lib/des/libdes.la'
10688 LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
10689 LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
10690 LIB_des_appl="-ldes"
10691
10692 echo "$as_me:$LINENO: result: included libdes" >&5
10693echo "${ECHO_T}included libdes" >&6
10694
10695fi
10696
10697if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
10698 { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
10699required by Kerberos 5; to continue, you need to install a newer
10700Kerberos 4 or configure --without-krb4" >&5
10701echo "$as_me: error: the crypto library used by krb4 lacks features
10702required by Kerberos 5; to continue, you need to install a newer
10703Kerberos 4 or configure --without-krb4" >&2;}
10704 { (exit 1); exit 1; }; }
10705fi
10706
10707if test "$openssl" = "yes"; then
10708
10709cat >>confdefs.h <<\_ACEOF
10710#define HAVE_OPENSSL 1
10711_ACEOF
10712
10713fi
10714if test "$old_hash" = yes; then
10715
10716cat >>confdefs.h <<\_ACEOF
10717#define HAVE_OLD_HASH_NAMES 1
10718_ACEOF
10719
10720fi
10721
10722
10723if test "$openssl" = yes; then
10724 HAVE_OPENSSL_TRUE=
10725 HAVE_OPENSSL_FALSE='#'
10726else
10727 HAVE_OPENSSL_TRUE='#'
10728 HAVE_OPENSSL_FALSE=
10729fi
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739# Check whether --enable-dce or --disable-dce was given.
10740if test "${enable_dce+set}" = set; then
10741 enableval="$enable_dce"
10742
10743fi;
10744if test "$enable_dce" = yes; then
10745
10746cat >>confdefs.h <<\_ACEOF
10747#define DCE 1
10748_ACEOF
10749
10750fi
10751
10752
10753if test "$enable_dce" = yes; then
10754 DCE_TRUE=
10755 DCE_FALSE='#'
10756else
10757 DCE_TRUE='#'
10758 DCE_FALSE=
10759fi
10760
10761
10762## XXX quite horrible:
10763if test -f /etc/ibmcxx.cfg; then
10764 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
10765 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
10766 dpagaix_ldflags=
10767else
10768 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
10769 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
10770 dpagaix_ldflags="-Wl,-bI:dfspag.exp"
10771fi
10772
10773
10774
10775
10776
10777# Check whether --enable-berkeley-db or --disable-berkeley-db was given.
10778if test "${enable_berkeley_db+set}" = set; then
10779 enableval="$enable_berkeley_db"
10780
10781
10782fi;
10783
10784have_ndbm=no
10785db_type=unknown
10786
10787if test "$enable_berkeley_db" != no; then
10788
10789
10790
10791
10792
10793for ac_header in \
10794 db4/db.h \
10795 db3/db.h \
10796 db.h \
10797 db_185.h \
10798
10799do
10800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10801if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo "$as_me:$LINENO: checking for $ac_header" >&5
10803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10804if eval "test \"\${$as_ac_Header+set}\" = set"; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806fi
10807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10809else
10810 # Is the header compilable?
10811echo "$as_me:$LINENO: checking $ac_header usability" >&5
10812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10813cat >conftest.$ac_ext <<_ACEOF
10814#line $LINENO "configure"
10815#include "confdefs.h"
10816$ac_includes_default
10817#include <$ac_header>
10818_ACEOF
10819rm -f conftest.$ac_objext
10820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10821 (eval $ac_compile) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_header_compiler=yes
10832else
10833 echo "$as_me: failed program was:" >&5
10834cat conftest.$ac_ext >&5
10835ac_header_compiler=no
10836fi
10837rm -f conftest.$ac_objext conftest.$ac_ext
10838echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10839echo "${ECHO_T}$ac_header_compiler" >&6
10840
10841# Is the header present?
10842echo "$as_me:$LINENO: checking $ac_header presence" >&5
10843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10844cat >conftest.$ac_ext <<_ACEOF
10845#line $LINENO "configure"
10846#include "confdefs.h"
10847#include <$ac_header>
10848_ACEOF
10849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10851 ac_status=$?
10852 egrep -v '^ *\+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } >/dev/null; then
10857 if test -s conftest.err; then
10858 ac_cpp_err=$ac_c_preproc_warn_flag
10859 else
10860 ac_cpp_err=
10861 fi
10862else
10863 ac_cpp_err=yes
10864fi
10865if test -z "$ac_cpp_err"; then
10866 ac_header_preproc=yes
10867else
10868 echo "$as_me: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10870 ac_header_preproc=no
10871fi
10872rm -f conftest.err conftest.$ac_ext
10873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10874echo "${ECHO_T}$ac_header_preproc" >&6
10875
10876# So? What about this header?
10877case $ac_header_compiler:$ac_header_preproc in
10878 yes:no )
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10883 no:yes )
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10890esac
10891echo "$as_me:$LINENO: checking for $ac_header" >&5
10892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10893if eval "test \"\${$as_ac_Header+set}\" = set"; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 eval "$as_ac_Header=$ac_header_preproc"
10897fi
10898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10900
10901fi
10902if test `eval echo '${'$as_ac_Header'}'` = yes; then
10903 cat >>confdefs.h <<_ACEOF
10904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10905_ACEOF
10906
10907fi
10908
10909done
10910
10911
10912
10913
10914
10915
10916echo "$as_me:$LINENO: checking for db_create" >&5
10917echo $ECHO_N "checking for db_create... $ECHO_C" >&6
10918if test "${ac_cv_funclib_db_create+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921
10922if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
10923 ac_save_LIBS="$LIBS"
10924 for ac_lib in "" db4 db3 db; do
10925 case "$ac_lib" in
10926 "") ;;
10927 yes) ac_lib="" ;;
10928 no) continue ;;
10929 -l*) ;;
10930 *) ac_lib="-l$ac_lib" ;;
10931 esac
10932 LIBS=" $ac_lib $ac_save_LIBS"
10933 cat >conftest.$ac_ext <<_ACEOF
10934#line $LINENO "configure"
10935#include "confdefs.h"
10936
10937 #include <stdio.h>
10938 #ifdef HAVE_DB4_DB_H
10939 #include <db4/db.h>
10940 #elif defined(HAVE_DB3_DB_H)
10941 #include <db3/db.h>
10942 #else
10943 #include <db.h>
10944 #endif
10945
10946#ifdef F77_DUMMY_MAIN
10947# ifdef __cplusplus
10948 extern "C"
10949# endif
10950 int F77_DUMMY_MAIN() { return 1; }
10951#endif
10952int
10953main ()
10954{
10955db_create(NULL, NULL, 0)
10956 ;
10957 return 0;
10958}
10959_ACEOF
10960rm -f conftest.$ac_objext conftest$ac_exeext
10961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962 (eval $ac_link) 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -s conftest$ac_exeext'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
10973else
10974 echo "$as_me: failed program was:" >&5
10975cat conftest.$ac_ext >&5
10976fi
10977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10978 done
10979 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
10980 LIBS="$ac_save_LIBS"
10981fi
10982
10983fi
10984
10985
10986eval "ac_res=\$ac_cv_funclib_db_create"
10987
10988if false; then
10989
10990for ac_func in db_create
10991do
10992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10993echo "$as_me:$LINENO: checking for $ac_func" >&5
10994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10995if eval "test \"\${$as_ac_var+set}\" = set"; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997else
10998 cat >conftest.$ac_ext <<_ACEOF
10999#line $LINENO "configure"
11000#include "confdefs.h"
11001/* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below. */
11003#include <assert.h>
11004/* Override any gcc2 internal prototype to avoid an error. */
11005#ifdef __cplusplus
11006extern "C"
11007#endif
11008/* We use char because int might match the return type of a gcc2
11009 builtin and then its argument prototype would still apply. */
11010char $ac_func ();
11011char (*f) ();
11012
11013#ifdef F77_DUMMY_MAIN
11014# ifdef __cplusplus
11015 extern "C"
11016# endif
11017 int F77_DUMMY_MAIN() { return 1; }
11018#endif
11019int
11020main ()
11021{
11022/* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11026choke me
11027#else
11028f = $ac_func;
11029#endif
11030
11031 ;
11032 return 0;
11033}
11034_ACEOF
11035rm -f conftest.$ac_objext conftest$ac_exeext
11036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -s conftest$ac_exeext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 eval "$as_ac_var=yes"
11048else
11049 echo "$as_me: failed program was:" >&5
11050cat conftest.$ac_ext >&5
11051eval "$as_ac_var=no"
11052fi
11053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11054fi
11055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11057if test `eval echo '${'$as_ac_var'}'` = yes; then
11058 cat >>confdefs.h <<_ACEOF
11059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11060_ACEOF
11061
11062fi
11063done
11064
11065fi
11066# db_create
11067eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11068eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11069eval "LIB_db_create=$ac_res"
11070
11071case "$ac_res" in
11072 yes)
11073 eval "ac_cv_func_db_create=yes"
11074 eval "LIB_db_create="
11075 cat >>confdefs.h <<_ACEOF
11076#define $ac_tr_func 1
11077_ACEOF
11078
11079 echo "$as_me:$LINENO: result: yes" >&5
11080echo "${ECHO_T}yes" >&6
11081 ;;
11082 no)
11083 eval "ac_cv_func_db_create=no"
11084 eval "LIB_db_create="
11085 echo "$as_me:$LINENO: result: no" >&5
11086echo "${ECHO_T}no" >&6
11087 ;;
11088 *)
11089 eval "ac_cv_func_db_create=yes"
11090 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11091 cat >>confdefs.h <<_ACEOF
11092#define $ac_tr_func 1
11093_ACEOF
11094
11095 cat >>confdefs.h <<_ACEOF
11096#define $ac_tr_lib 1
11097_ACEOF
11098
11099 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11100echo "${ECHO_T}yes, in $ac_res" >&6
11101 ;;
11102esac
11103
11104
11105
11106 if test "$ac_cv_func_db_create" = "yes"; then
11107 db_type=db3
11108 if test "$ac_cv_funclib_db_create" != "yes"; then
11109 DBLIB="$ac_cv_funclib_db_create"
11110 else
11111 DBLIB=""
11112 fi
11113
11114cat >>confdefs.h <<\_ACEOF
11115#define HAVE_DB3 1
11116_ACEOF
11117
11118 else
11119
11120
11121
11122
11123
11124echo "$as_me:$LINENO: checking for dbopen" >&5
11125echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
11126if test "${ac_cv_funclib_dbopen+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128else
11129
11130if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
11131 ac_save_LIBS="$LIBS"
11132 for ac_lib in "" db2 db; do
11133 case "$ac_lib" in
11134 "") ;;
11135 yes) ac_lib="" ;;
11136 no) continue ;;
11137 -l*) ;;
11138 *) ac_lib="-l$ac_lib" ;;
11139 esac
11140 LIBS=" $ac_lib $ac_save_LIBS"
11141 cat >conftest.$ac_ext <<_ACEOF
11142#line $LINENO "configure"
11143#include "confdefs.h"
11144
11145 #include <stdio.h>
11146 #if defined(HAVE_DB2_DB_H)
11147 #include <db2/db.h>
11148 #elif defined(HAVE_DB_185_H)
11149 #include <db_185.h>
11150 #elif defined(HAVE_DB_H)
11151 #include <db.h>
11152 #else
11153 #error no db.h
11154 #endif
11155
11156#ifdef F77_DUMMY_MAIN
11157# ifdef __cplusplus
11158 extern "C"
11159# endif
11160 int F77_DUMMY_MAIN() { return 1; }
11161#endif
11162int
11163main ()
11164{
11165dbopen(NULL, 0, 0, 0, NULL)
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170rm -f conftest.$ac_objext conftest$ac_exeext
11171if { (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); } &&
11176 { ac_try='test -s conftest$ac_exeext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
11183else
11184 echo "$as_me: failed program was:" >&5
11185cat conftest.$ac_ext >&5
11186fi
11187rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11188 done
11189 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
11190 LIBS="$ac_save_LIBS"
11191fi
11192
11193fi
11194
11195
11196eval "ac_res=\$ac_cv_funclib_dbopen"
11197
11198if false; then
11199
11200for ac_func in dbopen
11201do
11202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11203echo "$as_me:$LINENO: checking for $ac_func" >&5
11204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11205if eval "test \"\${$as_ac_var+set}\" = set"; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208 cat >conftest.$ac_ext <<_ACEOF
11209#line $LINENO "configure"
11210#include "confdefs.h"
11211/* System header to define __stub macros and hopefully few prototypes,
11212 which can conflict with char $ac_func (); below. */
11213#include <assert.h>
11214/* Override any gcc2 internal prototype to avoid an error. */
11215#ifdef __cplusplus
11216extern "C"
11217#endif
11218/* We use char because int might match the return type of a gcc2
11219 builtin and then its argument prototype would still apply. */
11220char $ac_func ();
11221char (*f) ();
11222
11223#ifdef F77_DUMMY_MAIN
11224# ifdef __cplusplus
11225 extern "C"
11226# endif
11227 int F77_DUMMY_MAIN() { return 1; }
11228#endif
11229int
11230main ()
11231{
11232/* The GNU C library defines this for functions which it implements
11233 to always fail with ENOSYS. Some functions are actually named
11234 something starting with __ and the normal name is an alias. */
11235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11236choke me
11237#else
11238f = $ac_func;
11239#endif
11240
11241 ;
11242 return 0;
11243}
11244_ACEOF
11245rm -f conftest.$ac_objext conftest$ac_exeext
11246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11247 (eval $ac_link) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -s conftest$ac_exeext'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }; then
11257 eval "$as_ac_var=yes"
11258else
11259 echo "$as_me: failed program was:" >&5
11260cat conftest.$ac_ext >&5
11261eval "$as_ac_var=no"
11262fi
11263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11264fi
11265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11267if test `eval echo '${'$as_ac_var'}'` = yes; then
11268 cat >>confdefs.h <<_ACEOF
11269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11270_ACEOF
11271
11272fi
11273done
11274
11275fi
11276# dbopen
11277eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11278eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11279eval "LIB_dbopen=$ac_res"
11280
11281case "$ac_res" in
11282 yes)
11283 eval "ac_cv_func_dbopen=yes"
11284 eval "LIB_dbopen="
11285 cat >>confdefs.h <<_ACEOF
11286#define $ac_tr_func 1
11287_ACEOF
11288
11289 echo "$as_me:$LINENO: result: yes" >&5
11290echo "${ECHO_T}yes" >&6
11291 ;;
11292 no)
11293 eval "ac_cv_func_dbopen=no"
11294 eval "LIB_dbopen="
11295 echo "$as_me:$LINENO: result: no" >&5
11296echo "${ECHO_T}no" >&6
11297 ;;
11298 *)
11299 eval "ac_cv_func_dbopen=yes"
11300 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11301 cat >>confdefs.h <<_ACEOF
11302#define $ac_tr_func 1
11303_ACEOF
11304
11305 cat >>confdefs.h <<_ACEOF
11306#define $ac_tr_lib 1
11307_ACEOF
11308
11309 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11310echo "${ECHO_T}yes, in $ac_res" >&6
11311 ;;
11312esac
11313
11314
11315
11316 if test "$ac_cv_func_dbopen" = "yes"; then
11317 db_type=db1
11318 if test "$ac_cv_funclib_dbopen" != "yes"; then
11319 DBLIB="$ac_cv_funclib_dbopen"
11320 else
11321 DBLIB=""
11322 fi
11323
11324cat >>confdefs.h <<\_ACEOF
11325#define HAVE_DB1 1
11326_ACEOF
11327
11328 fi
11329 fi
11330
11331
11332 if test "$ac_cv_func_dbm_firstkey" != yes; then
11333
11334
11335echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11336echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
11337if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340
11341if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
11342 ac_save_LIBS="$LIBS"
11343 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
11344 case "$ac_lib" in
11345 "") ;;
11346 yes) ac_lib="" ;;
11347 no) continue ;;
11348 -l*) ;;
11349 *) ac_lib="-l$ac_lib" ;;
11350 esac
11351 LIBS=" $ac_lib $ac_save_LIBS"
11352 cat >conftest.$ac_ext <<_ACEOF
11353#line $LINENO "configure"
11354#include "confdefs.h"
11355
11356 #include <stdio.h>
11357 #define DB_DBM_HSEARCH 1
11358 #include <db.h>
11359 DBM *dbm;
11360
11361#ifdef F77_DUMMY_MAIN
11362# ifdef __cplusplus
11363 extern "C"
11364# endif
11365 int F77_DUMMY_MAIN() { return 1; }
11366#endif
11367int
11368main ()
11369{
11370dbm_firstkey(NULL)
11371 ;
11372 return 0;
11373}
11374_ACEOF
11375rm -f conftest.$ac_objext conftest$ac_exeext
11376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11377 (eval $ac_link) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -s conftest$ac_exeext'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
11387 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
11388else
11389 echo "$as_me: failed program was:" >&5
11390cat conftest.$ac_ext >&5
11391fi
11392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11393 done
11394 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
11395 LIBS="$ac_save_LIBS"
11396fi
11397
11398fi
11399
11400
11401eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
11402
11403if false; then
11404
11405for ac_func in dbm_firstkey
11406do
11407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408echo "$as_me:$LINENO: checking for $ac_func" >&5
11409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11410if eval "test \"\${$as_ac_var+set}\" = set"; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412else
11413 cat >conftest.$ac_ext <<_ACEOF
11414#line $LINENO "configure"
11415#include "confdefs.h"
11416/* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char $ac_func (); below. */
11418#include <assert.h>
11419/* Override any gcc2 internal prototype to avoid an error. */
11420#ifdef __cplusplus
11421extern "C"
11422#endif
11423/* We use char because int might match the return type of a gcc2
11424 builtin and then its argument prototype would still apply. */
11425char $ac_func ();
11426char (*f) ();
11427
11428#ifdef F77_DUMMY_MAIN
11429# ifdef __cplusplus
11430 extern "C"
11431# endif
11432 int F77_DUMMY_MAIN() { return 1; }
11433#endif
11434int
11435main ()
11436{
11437/* The GNU C library defines this for functions which it implements
11438 to always fail with ENOSYS. Some functions are actually named
11439 something starting with __ and the normal name is an alias. */
11440#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11441choke me
11442#else
11443f = $ac_func;
11444#endif
11445
11446 ;
11447 return 0;
11448}
11449_ACEOF
11450rm -f conftest.$ac_objext conftest$ac_exeext
11451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11452 (eval $ac_link) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -s conftest$ac_exeext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 eval "$as_ac_var=yes"
11463else
11464 echo "$as_me: failed program was:" >&5
11465cat conftest.$ac_ext >&5
11466eval "$as_ac_var=no"
11467fi
11468rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11469fi
11470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11472if test `eval echo '${'$as_ac_var'}'` = yes; then
11473 cat >>confdefs.h <<_ACEOF
11474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11475_ACEOF
11476
11477fi
11478done
11479
11480fi
11481# dbm_firstkey
11482eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11483eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11484eval "LIB_dbm_firstkey=$ac_res"
11485
11486case "$ac_res" in
11487 yes)
11488 eval "ac_cv_func_dbm_firstkey=yes"
11489 eval "LIB_dbm_firstkey="
11490 cat >>confdefs.h <<_ACEOF
11491#define $ac_tr_func 1
11492_ACEOF
11493
11494 echo "$as_me:$LINENO: result: yes" >&5
11495echo "${ECHO_T}yes" >&6
11496 ;;
11497 no)
11498 eval "ac_cv_func_dbm_firstkey=no"
11499 eval "LIB_dbm_firstkey="
11500 echo "$as_me:$LINENO: result: no" >&5
11501echo "${ECHO_T}no" >&6
11502 ;;
11503 *)
11504 eval "ac_cv_func_dbm_firstkey=yes"
11505 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11506 cat >>confdefs.h <<_ACEOF
11507#define $ac_tr_func 1
11508_ACEOF
11509
11510 cat >>confdefs.h <<_ACEOF
11511#define $ac_tr_lib 1
11512_ACEOF
11513
11514 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11515echo "${ECHO_T}yes, in $ac_res" >&6
11516 ;;
11517esac
11518
11519
11520
11521 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
11522 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
11523 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
11524 else
11525 LIB_NDBM=""
11526 fi
11527
11528cat >>confdefs.h <<\_ACEOF
11529#define HAVE_DB_NDBM 1
11530_ACEOF
11531
11532
11533cat >>confdefs.h <<\_ACEOF
11534#define HAVE_NEW_DB 1
11535_ACEOF
11536
11537 else
11538 $as_unset ac_cv_func_dbm_firstkey
11539 $as_unset ac_cv_funclib_dbm_firstkey
11540 fi
11541 fi
11542
11543fi # berkeley db
11544
11545if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
11546
11547
11548
11549for ac_header in \
11550 dbm.h \
11551 ndbm.h \
11552
11553do
11554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11555if eval "test \"\${$as_ac_Header+set}\" = set"; then
11556 echo "$as_me:$LINENO: checking for $ac_header" >&5
11557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11558if eval "test \"\${$as_ac_Header+set}\" = set"; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560fi
11561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11563else
11564 # Is the header compilable?
11565echo "$as_me:$LINENO: checking $ac_header usability" >&5
11566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11567cat >conftest.$ac_ext <<_ACEOF
11568#line $LINENO "configure"
11569#include "confdefs.h"
11570$ac_includes_default
11571#include <$ac_header>
11572_ACEOF
11573rm -f conftest.$ac_objext
11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
11579 { ac_try='test -s conftest.$ac_objext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_header_compiler=yes
11586else
11587 echo "$as_me: failed program was:" >&5
11588cat conftest.$ac_ext >&5
11589ac_header_compiler=no
11590fi
11591rm -f conftest.$ac_objext conftest.$ac_ext
11592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11593echo "${ECHO_T}$ac_header_compiler" >&6
11594
11595# Is the header present?
11596echo "$as_me:$LINENO: checking $ac_header presence" >&5
11597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11598cat >conftest.$ac_ext <<_ACEOF
11599#line $LINENO "configure"
11600#include "confdefs.h"
11601#include <$ac_header>
11602_ACEOF
11603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11605 ac_status=$?
11606 egrep -v '^ *\+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } >/dev/null; then
11611 if test -s conftest.err; then
11612 ac_cpp_err=$ac_c_preproc_warn_flag
11613 else
11614 ac_cpp_err=
11615 fi
11616else
11617 ac_cpp_err=yes
11618fi
11619if test -z "$ac_cpp_err"; then
11620 ac_header_preproc=yes
11621else
11622 echo "$as_me: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11624 ac_header_preproc=no
11625fi
11626rm -f conftest.err conftest.$ac_ext
11627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628echo "${ECHO_T}$ac_header_preproc" >&6
11629
11630# So? What about this header?
11631case $ac_header_compiler:$ac_header_preproc in
11632 yes:no )
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11637 no:yes )
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11644esac
11645echo "$as_me:$LINENO: checking for $ac_header" >&5
11646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11647if eval "test \"\${$as_ac_Header+set}\" = set"; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650 eval "$as_ac_Header=$ac_header_preproc"
11651fi
11652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11654
11655fi
11656if test `eval echo '${'$as_ac_Header'}'` = yes; then
11657 cat >>confdefs.h <<_ACEOF
11658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11659_ACEOF
11660
11661fi
11662
11663done
11664
11665
11666
11667
11668
11669echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11670echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
11671if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673else
11674
11675if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
11676 ac_save_LIBS="$LIBS"
11677 for ac_lib in "" ndbm; do
11678 case "$ac_lib" in
11679 "") ;;
11680 yes) ac_lib="" ;;
11681 no) continue ;;
11682 -l*) ;;
11683 *) ac_lib="-l$ac_lib" ;;
11684 esac
11685 LIBS=" $ac_lib $ac_save_LIBS"
11686 cat >conftest.$ac_ext <<_ACEOF
11687#line $LINENO "configure"
11688#include "confdefs.h"
11689
11690 #include <stdio.h>
11691 #if defined(HAVE_NDBM_H)
11692 #include <ndbm.h>
11693 #elif defined(HAVE_DBM_H)
11694 #include <dbm.h>
11695 #endif
11696 DBM *dbm;
11697
11698#ifdef F77_DUMMY_MAIN
11699# ifdef __cplusplus
11700 extern "C"
11701# endif
11702 int F77_DUMMY_MAIN() { return 1; }
11703#endif
11704int
11705main ()
11706{
11707dbm_firstkey(NULL)
11708 ;
11709 return 0;
11710}
11711_ACEOF
11712rm -f conftest.$ac_objext conftest$ac_exeext
11713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11714 (eval $ac_link) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
11725else
11726 echo "$as_me: failed program was:" >&5
11727cat conftest.$ac_ext >&5
11728fi
11729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11730 done
11731 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
11732 LIBS="$ac_save_LIBS"
11733fi
11734
11735fi
11736
11737
11738eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
11739
11740if false; then
11741
11742for ac_func in dbm_firstkey
11743do
11744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11745echo "$as_me:$LINENO: checking for $ac_func" >&5
11746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11747if eval "test \"\${$as_ac_var+set}\" = set"; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749else
11750 cat >conftest.$ac_ext <<_ACEOF
11751#line $LINENO "configure"
11752#include "confdefs.h"
11753/* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below. */
11755#include <assert.h>
11756/* Override any gcc2 internal prototype to avoid an error. */
11757#ifdef __cplusplus
11758extern "C"
11759#endif
11760/* We use char because int might match the return type of a gcc2
11761 builtin and then its argument prototype would still apply. */
11762char $ac_func ();
11763char (*f) ();
11764
11765#ifdef F77_DUMMY_MAIN
11766# ifdef __cplusplus
11767 extern "C"
11768# endif
11769 int F77_DUMMY_MAIN() { return 1; }
11770#endif
11771int
11772main ()
11773{
11774/* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11778choke me
11779#else
11780f = $ac_func;
11781#endif
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext conftest$ac_exeext
11788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 eval "$as_ac_var=yes"
11800else
11801 echo "$as_me: failed program was:" >&5
11802cat conftest.$ac_ext >&5
11803eval "$as_ac_var=no"
11804fi
11805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11806fi
11807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11808echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11809if test `eval echo '${'$as_ac_var'}'` = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812_ACEOF
11813
11814fi
11815done
11816
11817fi
11818# dbm_firstkey
11819eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11820eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11821eval "LIB_dbm_firstkey=$ac_res"
11822
11823case "$ac_res" in
11824 yes)
11825 eval "ac_cv_func_dbm_firstkey=yes"
11826 eval "LIB_dbm_firstkey="
11827 cat >>confdefs.h <<_ACEOF
11828#define $ac_tr_func 1
11829_ACEOF
11830
11831 echo "$as_me:$LINENO: result: yes" >&5
11832echo "${ECHO_T}yes" >&6
11833 ;;
11834 no)
11835 eval "ac_cv_func_dbm_firstkey=no"
11836 eval "LIB_dbm_firstkey="
11837 echo "$as_me:$LINENO: result: no" >&5
11838echo "${ECHO_T}no" >&6
11839 ;;
11840 *)
11841 eval "ac_cv_func_dbm_firstkey=yes"
11842 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11843 cat >>confdefs.h <<_ACEOF
11844#define $ac_tr_func 1
11845_ACEOF
11846
11847 cat >>confdefs.h <<_ACEOF
11848#define $ac_tr_lib 1
11849_ACEOF
11850
11851 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11852echo "${ECHO_T}yes, in $ac_res" >&6
11853 ;;
11854esac
11855
11856
11857
11858 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
11859 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
11860 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
11861 else
11862 LIB_NDBM=""
11863 fi
11864
11865cat >>confdefs.h <<\_ACEOF
11866#define HAVE_NDBM 1
11867_ACEOF
11868 have_ndbm=yes
11869 if test "$db_type" = "unknown"; then
11870 db_type=ndbm
11871 DBLIB="$LIB_NDBM"
11872 fi
11873 else
11874
11875 $as_unset ac_cv_func_dbm_firstkey
11876 $as_unset ac_cv_funclib_dbm_firstkey
11877
11878
11879for ac_header in \
11880 gdbm/ndbm.h \
11881
11882do
11883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11884if eval "test \"\${$as_ac_Header+set}\" = set"; then
11885 echo "$as_me:$LINENO: checking for $ac_header" >&5
11886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11887if eval "test \"\${$as_ac_Header+set}\" = set"; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889fi
11890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11892else
11893 # Is the header compilable?
11894echo "$as_me:$LINENO: checking $ac_header usability" >&5
11895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11896cat >conftest.$ac_ext <<_ACEOF
11897#line $LINENO "configure"
11898#include "confdefs.h"
11899$ac_includes_default
11900#include <$ac_header>
11901_ACEOF
11902rm -f conftest.$ac_objext
11903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904 (eval $ac_compile) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -s conftest.$ac_objext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_header_compiler=yes
11915else
11916 echo "$as_me: failed program was:" >&5
11917cat conftest.$ac_ext >&5
11918ac_header_compiler=no
11919fi
11920rm -f conftest.$ac_objext conftest.$ac_ext
11921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11922echo "${ECHO_T}$ac_header_compiler" >&6
11923
11924# Is the header present?
11925echo "$as_me:$LINENO: checking $ac_header presence" >&5
11926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11927cat >conftest.$ac_ext <<_ACEOF
11928#line $LINENO "configure"
11929#include "confdefs.h"
11930#include <$ac_header>
11931_ACEOF
11932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11934 ac_status=$?
11935 egrep -v '^ *\+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } >/dev/null; then
11940 if test -s conftest.err; then
11941 ac_cpp_err=$ac_c_preproc_warn_flag
11942 else
11943 ac_cpp_err=
11944 fi
11945else
11946 ac_cpp_err=yes
11947fi
11948if test -z "$ac_cpp_err"; then
11949 ac_header_preproc=yes
11950else
11951 echo "$as_me: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11953 ac_header_preproc=no
11954fi
11955rm -f conftest.err conftest.$ac_ext
11956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11957echo "${ECHO_T}$ac_header_preproc" >&6
11958
11959# So? What about this header?
11960case $ac_header_compiler:$ac_header_preproc in
11961 yes:no )
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11966 no:yes )
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11973esac
11974echo "$as_me:$LINENO: checking for $ac_header" >&5
11975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11976if eval "test \"\${$as_ac_Header+set}\" = set"; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11978else
11979 eval "$as_ac_Header=$ac_header_preproc"
11980fi
11981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11983
11984fi
11985if test `eval echo '${'$as_ac_Header'}'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11988_ACEOF
11989
11990fi
11991
11992done
11993
11994
11995
11996
11997
11998echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11999echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
12000if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
12003
12004if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
12005 ac_save_LIBS="$LIBS"
12006 for ac_lib in "" gdbm; do
12007 case "$ac_lib" in
12008 "") ;;
12009 yes) ac_lib="" ;;
12010 no) continue ;;
12011 -l*) ;;
12012 *) ac_lib="-l$ac_lib" ;;
12013 esac
12014 LIBS=" $ac_lib $ac_save_LIBS"
12015 cat >conftest.$ac_ext <<_ACEOF
12016#line $LINENO "configure"
12017#include "confdefs.h"
12018
12019 #include <stdio.h>
12020 #include <gdbm/ndbm.h>
12021 DBM *dbm;
12022
12023#ifdef F77_DUMMY_MAIN
12024# ifdef __cplusplus
12025 extern "C"
12026# endif
12027 int F77_DUMMY_MAIN() { return 1; }
12028#endif
12029int
12030main ()
12031{
12032dbm_firstkey(NULL)
12033 ;
12034 return 0;
12035}
12036_ACEOF
12037rm -f conftest.$ac_objext conftest$ac_exeext
12038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -s conftest$ac_exeext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
12050else
12051 echo "$as_me: failed program was:" >&5
12052cat conftest.$ac_ext >&5
12053fi
12054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12055 done
12056 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
12057 LIBS="$ac_save_LIBS"
12058fi
12059
12060fi
12061
12062
12063eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
12064
12065if false; then
12066
12067for ac_func in dbm_firstkey
12068do
12069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070echo "$as_me:$LINENO: checking for $ac_func" >&5
12071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12072if eval "test \"\${$as_ac_var+set}\" = set"; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074else
12075 cat >conftest.$ac_ext <<_ACEOF
12076#line $LINENO "configure"
12077#include "confdefs.h"
12078/* System header to define __stub macros and hopefully few prototypes,
12079 which can conflict with char $ac_func (); below. */
12080#include <assert.h>
12081/* Override any gcc2 internal prototype to avoid an error. */
12082#ifdef __cplusplus
12083extern "C"
12084#endif
12085/* We use char because int might match the return type of a gcc2
12086 builtin and then its argument prototype would still apply. */
12087char $ac_func ();
12088char (*f) ();
12089
12090#ifdef F77_DUMMY_MAIN
12091# ifdef __cplusplus
12092 extern "C"
12093# endif
12094 int F77_DUMMY_MAIN() { return 1; }
12095#endif
12096int
12097main ()
12098{
12099/* The GNU C library defines this for functions which it implements
12100 to always fail with ENOSYS. Some functions are actually named
12101 something starting with __ and the normal name is an alias. */
12102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12103choke me
12104#else
12105f = $ac_func;
12106#endif
12107
12108 ;
12109 return 0;
12110}
12111_ACEOF
12112rm -f conftest.$ac_objext conftest$ac_exeext
12113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_var=yes"
12125else
12126 echo "$as_me: failed program was:" >&5
12127cat conftest.$ac_ext >&5
12128eval "$as_ac_var=no"
12129fi
12130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12131fi
12132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12134if test `eval echo '${'$as_ac_var'}'` = yes; then
12135 cat >>confdefs.h <<_ACEOF
12136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12137_ACEOF
12138
12139fi
12140done
12141
12142fi
12143# dbm_firstkey
12144eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12145eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12146eval "LIB_dbm_firstkey=$ac_res"
12147
12148case "$ac_res" in
12149 yes)
12150 eval "ac_cv_func_dbm_firstkey=yes"
12151 eval "LIB_dbm_firstkey="
12152 cat >>confdefs.h <<_ACEOF
12153#define $ac_tr_func 1
12154_ACEOF
12155
12156 echo "$as_me:$LINENO: result: yes" >&5
12157echo "${ECHO_T}yes" >&6
12158 ;;
12159 no)
12160 eval "ac_cv_func_dbm_firstkey=no"
12161 eval "LIB_dbm_firstkey="
12162 echo "$as_me:$LINENO: result: no" >&5
12163echo "${ECHO_T}no" >&6
12164 ;;
12165 *)
12166 eval "ac_cv_func_dbm_firstkey=yes"
12167 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12168 cat >>confdefs.h <<_ACEOF
12169#define $ac_tr_func 1
12170_ACEOF
12171
12172 cat >>confdefs.h <<_ACEOF
12173#define $ac_tr_lib 1
12174_ACEOF
12175
12176 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
12177echo "${ECHO_T}yes, in $ac_res" >&6
12178 ;;
12179esac
12180
12181
12182
12183 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
12184 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
12185 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
12186 else
12187 LIB_NDBM=""
12188 fi
12189
12190cat >>confdefs.h <<\_ACEOF
12191#define HAVE_NDBM 1
12192_ACEOF
12193 have_ndbm=yes
12194 if test "$db_type" = "unknown"; then
12195 db_type=ndbm
12196 DBLIB="$LIB_NDBM"
12197 fi
12198 fi
12199 fi
12200
12201fi # unknown
12202
12203if test "$have_ndbm" = "yes"; then
12204 echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
12205echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
12206 if test "$cross_compiling" = yes; then
12207 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12208echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12209 { (exit 1); exit 1; }; }
12210else
12211 cat >conftest.$ac_ext <<_ACEOF
12212#line $LINENO "configure"
12213#include "confdefs.h"
12214
12215#include <unistd.h>
12216#include <fcntl.h>
12217#if defined(HAVE_GDBM_NDBM_H)
12218#include <gdbm/ndbm.h>
12219#elif defined(HAVE_NDBM_H)
12220#include <ndbm.h>
12221#elif defined(HAVE_DBM_H)
12222#include <dbm.h>
12223#endif
12224int main()
12225{
12226 DBM *d;
12227
12228 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
12229 if (d == NULL)
12230 return 1;
12231 dbm_close(d);
12232 return 0;
12233}
12234_ACEOF
12235rm -f conftest$ac_exeext
12236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246
12247 if test -f conftest.db; then
12248 echo "$as_me:$LINENO: result: yes" >&5
12249echo "${ECHO_T}yes" >&6
12250
12251cat >>confdefs.h <<\_ACEOF
12252#define HAVE_NEW_DB 1
12253_ACEOF
12254
12255 else
12256 echo "$as_me:$LINENO: result: no" >&5
12257echo "${ECHO_T}no" >&6
12258 fi
12259else
12260 echo "$as_me: program exited with status $ac_status" >&5
12261echo "$as_me: failed program was:" >&5
12262cat conftest.$ac_ext >&5
12263( exit $ac_status )
12264echo "$as_me:$LINENO: result: no" >&5
12265echo "${ECHO_T}no" >&6
12266fi
12267rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12268fi
12269fi
12270
12271
12272
12273if test "$db_type" = db1; then
12274 HAVE_DB1_TRUE=
12275 HAVE_DB1_FALSE='#'
12276else
12277 HAVE_DB1_TRUE='#'
12278 HAVE_DB1_FALSE=
12279fi
12280
12281
12282if test "$db_type" = db3; then
12283 HAVE_DB3_TRUE=
12284 HAVE_DB3_FALSE='#'
12285else
12286 HAVE_DB3_TRUE='#'
12287 HAVE_DB3_FALSE=
12288fi
12289
12290
12291if test "$db_type" = ndbm; then
12292 HAVE_NDBM_TRUE=
12293 HAVE_NDBM_FALSE='#'
12294else
12295 HAVE_NDBM_TRUE='#'
12296 HAVE_NDBM_FALSE=
12297fi
12298
12299z=""
12300for i in $LDFLAGS; do
12301 case "$i" in
12302 -L*) z="$z $i";;
12303 esac
12304done
12305DBLIB="$z $DBLIB"
12306
12307
12308
12309
12310
12311echo "$as_me:$LINENO: checking for inline" >&5
12312echo $ECHO_N "checking for inline... $ECHO_C" >&6
12313if test "${ac_cv_c_inline+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315else
12316 ac_cv_c_inline=no
12317for ac_kw in inline __inline__ __inline; do
12318 cat >conftest.$ac_ext <<_ACEOF
12319#line $LINENO "configure"
12320#include "confdefs.h"
12321#ifndef __cplusplus
12322static $ac_kw int static_foo () {return 0; }
12323$ac_kw int foo () {return 0; }
12324#endif
12325
12326_ACEOF
12327rm -f conftest.$ac_objext
12328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329 (eval $ac_compile) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -s conftest.$ac_objext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_c_inline=$ac_kw; break
12340else
12341 echo "$as_me: failed program was:" >&5
12342cat conftest.$ac_ext >&5
12343fi
12344rm -f conftest.$ac_objext conftest.$ac_ext
12345done
12346
12347fi
12348echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12349echo "${ECHO_T}$ac_cv_c_inline" >&6
12350case $ac_cv_c_inline in
12351 inline | yes) ;;
12352 no)
12353cat >>confdefs.h <<\_ACEOF
12354#define inline
12355_ACEOF
12356 ;;
12357 *) cat >>confdefs.h <<_ACEOF
12358#define inline $ac_cv_c_inline
12359_ACEOF
12360 ;;
12361esac
12362
12363echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12364echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12365if test "${ac_cv_c_const+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367else
12368 cat >conftest.$ac_ext <<_ACEOF
12369#line $LINENO "configure"
12370#include "confdefs.h"
12371
12372#ifdef F77_DUMMY_MAIN
12373# ifdef __cplusplus
12374 extern "C"
12375# endif
12376 int F77_DUMMY_MAIN() { return 1; }
12377#endif
12378int
12379main ()
12380{
12381/* FIXME: Include the comments suggested by Paul. */
12382#ifndef __cplusplus
12383 /* Ultrix mips cc rejects this. */
12384 typedef int charset[2];
12385 const charset x;
12386 /* SunOS 4.1.1 cc rejects this. */
12387 char const *const *ccp;
12388 char **p;
12389 /* NEC SVR4.0.2 mips cc rejects this. */
12390 struct point {int x, y;};
12391 static struct point const zero = {0,0};
12392 /* AIX XL C 1.02.0.0 rejects this.
12393 It does not let you subtract one const X* pointer from another in
12394 an arm of an if-expression whose if-part is not a constant
12395 expression */
12396 const char *g = "string";
12397 ccp = &g + (g ? g-g : 0);
12398 /* HPUX 7.0 cc rejects these. */
12399 ++ccp;
12400 p = (char**) ccp;
12401 ccp = (char const *const *) p;
12402 { /* SCO 3.2v4 cc rejects this. */
12403 char *t;
12404 char const *s = 0 ? (char *) 0 : (char const *) 0;
12405
12406 *t++ = 0;
12407 }
12408 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12409 int x[] = {25, 17};
12410 const int *foo = &x[0];
12411 ++foo;
12412 }
12413 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12414 typedef const int *iptr;
12415 iptr p = 0;
12416 ++p;
12417 }
12418 { /* AIX XL C 1.02.0.0 rejects this saying
12419 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12420 struct s { int j; const int *ap[3]; };
12421 struct s *b; b->j = 5;
12422 }
12423 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12424 const int foo = 10;
12425 }
12426#endif
12427
12428 ;
12429 return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext
12433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12434 (eval $ac_compile) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -s conftest.$ac_objext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 ac_cv_c_const=yes
12445else
12446 echo "$as_me: failed program was:" >&5
12447cat conftest.$ac_ext >&5
12448ac_cv_c_const=no
12449fi
12450rm -f conftest.$ac_objext conftest.$ac_ext
12451fi
12452echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12453echo "${ECHO_T}$ac_cv_c_const" >&6
12454if test $ac_cv_c_const = no; then
12455
12456cat >>confdefs.h <<\_ACEOF
12457#define const
12458_ACEOF
12459
12460fi
12461
12462echo "$as_me:$LINENO: checking for size_t" >&5
12463echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12464if test "${ac_cv_type_size_t+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 cat >conftest.$ac_ext <<_ACEOF
12468#line $LINENO "configure"
12469#include "confdefs.h"
12470$ac_includes_default
12471#ifdef F77_DUMMY_MAIN
12472# ifdef __cplusplus
12473 extern "C"
12474# endif
12475 int F77_DUMMY_MAIN() { return 1; }
12476#endif
12477int
12478main ()
12479{
12480if ((size_t *) 0)
12481 return 0;
12482if (sizeof (size_t))
12483 return 0;
12484 ;
12485 return 0;
12486}
12487_ACEOF
12488rm -f conftest.$ac_objext
12489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -s conftest.$ac_objext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 ac_cv_type_size_t=yes
12501else
12502 echo "$as_me: failed program was:" >&5
12503cat conftest.$ac_ext >&5
12504ac_cv_type_size_t=no
12505fi
12506rm -f conftest.$ac_objext conftest.$ac_ext
12507fi
12508echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12509echo "${ECHO_T}$ac_cv_type_size_t" >&6
12510if test $ac_cv_type_size_t = yes; then
12511 :
12512else
12513
12514cat >>confdefs.h <<_ACEOF
12515#define size_t unsigned
12516_ACEOF
12517
12518fi
12519
12520echo "$as_me:$LINENO: checking for pid_t" >&5
12521echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12522if test "${ac_cv_type_pid_t+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12524else
12525 cat >conftest.$ac_ext <<_ACEOF
12526#line $LINENO "configure"
12527#include "confdefs.h"
12528$ac_includes_default
12529#ifdef F77_DUMMY_MAIN
12530# ifdef __cplusplus
12531 extern "C"
12532# endif
12533 int F77_DUMMY_MAIN() { return 1; }
12534#endif
12535int
12536main ()
12537{
12538if ((pid_t *) 0)
12539 return 0;
12540if (sizeof (pid_t))
12541 return 0;
12542 ;
12543 return 0;
12544}
12545_ACEOF
12546rm -f conftest.$ac_objext
12547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548 (eval $ac_compile) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_type_pid_t=yes
12559else
12560 echo "$as_me: failed program was:" >&5
12561cat conftest.$ac_ext >&5
12562ac_cv_type_pid_t=no
12563fi
12564rm -f conftest.$ac_objext conftest.$ac_ext
12565fi
12566echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12567echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12568if test $ac_cv_type_pid_t = yes; then
12569 :
12570else
12571
12572cat >>confdefs.h <<_ACEOF
12573#define pid_t int
12574_ACEOF
12575
12576fi
12577
12578echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12579echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12580if test "${ac_cv_type_uid_t+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12582else
12583 cat >conftest.$ac_ext <<_ACEOF
12584#line $LINENO "configure"
12585#include "confdefs.h"
12586#include <sys/types.h>
12587
12588_ACEOF
12589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12590 egrep "uid_t" >/dev/null 2>&1; then
12591 ac_cv_type_uid_t=yes
12592else
12593 ac_cv_type_uid_t=no
12594fi
12595rm -f conftest*
12596
12597fi
12598echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12599echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12600if test $ac_cv_type_uid_t = no; then
12601
12602cat >>confdefs.h <<\_ACEOF
12603#define uid_t int
12604_ACEOF
12605
12606
12607cat >>confdefs.h <<\_ACEOF
12608#define gid_t int
12609_ACEOF
12610
12611fi
12612
12613
12614echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12615echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12616if test "${ac_cv_type_signal+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12618else
12619 cat >conftest.$ac_ext <<_ACEOF
12620#line $LINENO "configure"
12621#include "confdefs.h"
12622#include <sys/types.h>
12623#include <signal.h>
12624#ifdef signal
12625# undef signal
12626#endif
12627#ifdef __cplusplus
12628extern "C" void (*signal (int, void (*)(int)))(int);
12629#else
12630void (*signal ()) ();
12631#endif
12632
12633#ifdef F77_DUMMY_MAIN
12634# ifdef __cplusplus
12635 extern "C"
12636# endif
12637 int F77_DUMMY_MAIN() { return 1; }
12638#endif
12639int
12640main ()
12641{
12642int i;
12643 ;
12644 return 0;
12645}
12646_ACEOF
12647rm -f conftest.$ac_objext
12648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } &&
12653 { ac_try='test -s conftest.$ac_objext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 ac_cv_type_signal=void
12660else
12661 echo "$as_me: failed program was:" >&5
12662cat conftest.$ac_ext >&5
12663ac_cv_type_signal=int
12664fi
12665rm -f conftest.$ac_objext conftest.$ac_ext
12666fi
12667echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12668echo "${ECHO_T}$ac_cv_type_signal" >&6
12669
12670cat >>confdefs.h <<_ACEOF
12671#define RETSIGTYPE $ac_cv_type_signal
12672_ACEOF
12673
12674
12675if test "$ac_cv_type_signal" = "void" ; then
12676
12677cat >>confdefs.h <<\_ACEOF
12678#define VOID_RETSIGTYPE 1
12679_ACEOF
12680
12681fi
12682
12683
12684
12685
12686echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12687echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12688if test "${ac_cv_header_time+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12690else
12691 cat >conftest.$ac_ext <<_ACEOF
12692#line $LINENO "configure"
12693#include "confdefs.h"
12694#include <sys/types.h>
12695#include <sys/time.h>
12696#include <time.h>
12697
12698#ifdef F77_DUMMY_MAIN
12699# ifdef __cplusplus
12700 extern "C"
12701# endif
12702 int F77_DUMMY_MAIN() { return 1; }
12703#endif
12704int
12705main ()
12706{
12707if ((struct tm *) 0)
12708return 0;
12709 ;
12710 return 0;
12711}
12712_ACEOF
12713rm -f conftest.$ac_objext
12714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_cv_header_time=yes
12726else
12727 echo "$as_me: failed program was:" >&5
12728cat conftest.$ac_ext >&5
12729ac_cv_header_time=no
12730fi
12731rm -f conftest.$ac_objext conftest.$ac_ext
12732fi
12733echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12734echo "${ECHO_T}$ac_cv_header_time" >&6
12735if test $ac_cv_header_time = yes; then
12736
12737cat >>confdefs.h <<\_ACEOF
12738#define TIME_WITH_SYS_TIME 1
12739_ACEOF
12740
12741fi
12742
12743
12744
12745for ac_header in standards.h
12746do
12747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12748if eval "test \"\${$as_ac_Header+set}\" = set"; then
12749 echo "$as_me:$LINENO: checking for $ac_header" >&5
12750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12751if eval "test \"\${$as_ac_Header+set}\" = set"; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753fi
12754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12756else
12757 # Is the header compilable?
12758echo "$as_me:$LINENO: checking $ac_header usability" >&5
12759echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12760cat >conftest.$ac_ext <<_ACEOF
12761#line $LINENO "configure"
12762#include "confdefs.h"
12763$ac_includes_default
12764#include <$ac_header>
12765_ACEOF
12766rm -f conftest.$ac_objext
12767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768 (eval $ac_compile) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -s conftest.$ac_objext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_header_compiler=yes
12779else
12780 echo "$as_me: failed program was:" >&5
12781cat conftest.$ac_ext >&5
12782ac_header_compiler=no
12783fi
12784rm -f conftest.$ac_objext conftest.$ac_ext
12785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786echo "${ECHO_T}$ac_header_compiler" >&6
12787
12788# Is the header present?
12789echo "$as_me:$LINENO: checking $ac_header presence" >&5
12790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12791cat >conftest.$ac_ext <<_ACEOF
12792#line $LINENO "configure"
12793#include "confdefs.h"
12794#include <$ac_header>
12795_ACEOF
12796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12798 ac_status=$?
12799 egrep -v '^ *\+' conftest.er1 >conftest.err
12800 rm -f conftest.er1
12801 cat conftest.err >&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } >/dev/null; then
12804 if test -s conftest.err; then
12805 ac_cpp_err=$ac_c_preproc_warn_flag
12806 else
12807 ac_cpp_err=
12808 fi
12809else
12810 ac_cpp_err=yes
12811fi
12812if test -z "$ac_cpp_err"; then
12813 ac_header_preproc=yes
12814else
12815 echo "$as_me: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12817 ac_header_preproc=no
12818fi
12819rm -f conftest.err conftest.$ac_ext
12820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12821echo "${ECHO_T}$ac_header_preproc" >&6
12822
12823# So? What about this header?
12824case $ac_header_compiler:$ac_header_preproc in
12825 yes:no )
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12830 no:yes )
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12837esac
12838echo "$as_me:$LINENO: checking for $ac_header" >&5
12839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12840if eval "test \"\${$as_ac_Header+set}\" = set"; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842else
12843 eval "$as_ac_Header=$ac_header_preproc"
12844fi
12845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12847
12848fi
12849if test `eval echo '${'$as_ac_Header'}'` = yes; then
12850 cat >>confdefs.h <<_ACEOF
12851#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12852_ACEOF
12853
12854fi
12855
12856done
12857
12858for i in netinet/ip.h netinet/tcp.h; do
12859
12860cv=`echo "$i" | sed 'y%./+-%__p_%'`
12861
12862echo "$as_me:$LINENO: checking for $i" >&5
12863echo $ECHO_N "checking for $i... $ECHO_C" >&6
12864if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866else
12867 cat >conftest.$ac_ext <<_ACEOF
12868#line $LINENO "configure"
12869#include "confdefs.h"
12870\
12871#ifdef HAVE_STANDARDS_H
12872#include <standards.h>
12873#endif
12874#include <$i>
12875
12876_ACEOF
12877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12879 ac_status=$?
12880 egrep -v '^ *\+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } >/dev/null; then
12885 if test -s conftest.err; then
12886 ac_cpp_err=$ac_c_preproc_warn_flag
12887 else
12888 ac_cpp_err=
12889 fi
12890else
12891 ac_cpp_err=yes
12892fi
12893if test -z "$ac_cpp_err"; then
12894 eval "ac_cv_header_$cv=yes"
12895else
12896 echo "$as_me: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 eval "ac_cv_header_$cv=no"
12899fi
12900rm -f conftest.err conftest.$ac_ext
12901fi
12902echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
12903echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
12904ac_res=`eval echo \\$ac_cv_header_$cv`
12905if test "$ac_res" = yes; then
12906 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12907 cat >>confdefs.h <<_ACEOF
12908#define $ac_tr_hdr 1
12909_ACEOF
12910
12911fi
12912done
12913if false;then
12914
12915
12916for ac_header in netinet/ip.h netinet/tcp.h
12917do
12918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12919if eval "test \"\${$as_ac_Header+set}\" = set"; then
12920 echo "$as_me:$LINENO: checking for $ac_header" >&5
12921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12922if eval "test \"\${$as_ac_Header+set}\" = set"; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924fi
12925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12927else
12928 # Is the header compilable?
12929echo "$as_me:$LINENO: checking $ac_header usability" >&5
12930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12931cat >conftest.$ac_ext <<_ACEOF
12932#line $LINENO "configure"
12933#include "confdefs.h"
12934$ac_includes_default
12935#include <$ac_header>
12936_ACEOF
12937rm -f conftest.$ac_objext
12938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -s conftest.$ac_objext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_header_compiler=yes
12950else
12951 echo "$as_me: failed program was:" >&5
12952cat conftest.$ac_ext >&5
12953ac_header_compiler=no
12954fi
12955rm -f conftest.$ac_objext conftest.$ac_ext
12956echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12957echo "${ECHO_T}$ac_header_compiler" >&6
12958
12959# Is the header present?
12960echo "$as_me:$LINENO: checking $ac_header presence" >&5
12961echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12962cat >conftest.$ac_ext <<_ACEOF
12963#line $LINENO "configure"
12964#include "confdefs.h"
12965#include <$ac_header>
12966_ACEOF
12967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12969 ac_status=$?
12970 egrep -v '^ *\+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } >/dev/null; then
12975 if test -s conftest.err; then
12976 ac_cpp_err=$ac_c_preproc_warn_flag
12977 else
12978 ac_cpp_err=
12979 fi
12980else
12981 ac_cpp_err=yes
12982fi
12983if test -z "$ac_cpp_err"; then
12984 ac_header_preproc=yes
12985else
12986 echo "$as_me: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12988 ac_header_preproc=no
12989fi
12990rm -f conftest.err conftest.$ac_ext
12991echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12992echo "${ECHO_T}$ac_header_preproc" >&6
12993
12994# So? What about this header?
12995case $ac_header_compiler:$ac_header_preproc in
12996 yes:no )
12997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12998echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13001 no:yes )
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13008esac
13009echo "$as_me:$LINENO: checking for $ac_header" >&5
13010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13011if eval "test \"\${$as_ac_Header+set}\" = set"; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013else
13014 eval "$as_ac_Header=$ac_header_preproc"
13015fi
13016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13018
13019fi
13020if test `eval echo '${'$as_ac_Header'}'` = yes; then
13021 cat >>confdefs.h <<_ACEOF
13022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13023_ACEOF
13024
13025fi
13026
13027done
13028
13029fi
13030
13031
13032
13033
13034for ac_func in getlogin setlogin
13035do
13036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13037echo "$as_me:$LINENO: checking for $ac_func" >&5
13038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13039if eval "test \"\${$as_ac_var+set}\" = set"; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041else
13042 cat >conftest.$ac_ext <<_ACEOF
13043#line $LINENO "configure"
13044#include "confdefs.h"
13045/* System header to define __stub macros and hopefully few prototypes,
13046 which can conflict with char $ac_func (); below. */
13047#include <assert.h>
13048/* Override any gcc2 internal prototype to avoid an error. */
13049#ifdef __cplusplus
13050extern "C"
13051#endif
13052/* We use char because int might match the return type of a gcc2
13053 builtin and then its argument prototype would still apply. */
13054char $ac_func ();
13055char (*f) ();
13056
13057#ifdef F77_DUMMY_MAIN
13058# ifdef __cplusplus
13059 extern "C"
13060# endif
13061 int F77_DUMMY_MAIN() { return 1; }
13062#endif
13063int
13064main ()
13065{
13066/* The GNU C library defines this for functions which it implements
13067 to always fail with ENOSYS. Some functions are actually named
13068 something starting with __ and the normal name is an alias. */
13069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13070choke me
13071#else
13072f = $ac_func;
13073#endif
13074
13075 ;
13076 return 0;
13077}
13078_ACEOF
13079rm -f conftest.$ac_objext conftest$ac_exeext
13080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13081 (eval $ac_link) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 eval "$as_ac_var=yes"
13092else
13093 echo "$as_me: failed program was:" >&5
13094cat conftest.$ac_ext >&5
13095eval "$as_ac_var=no"
13096fi
13097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13098fi
13099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13100echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13101if test `eval echo '${'$as_ac_var'}'` = yes; then
13102 cat >>confdefs.h <<_ACEOF
13103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13104_ACEOF
13105
13106fi
13107done
13108
13109if test "$ac_cv_func_getlogin" = yes; then
13110echo "$as_me:$LINENO: checking if getlogin is posix" >&5
13111echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
13112if test "${ac_cv_func_getlogin_posix+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114else
13115
13116if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
13117 ac_cv_func_getlogin_posix=no
13118else
13119 ac_cv_func_getlogin_posix=yes
13120fi
13121
13122fi
13123echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
13124echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
13125if test "$ac_cv_func_getlogin_posix" = yes; then
13126
13127cat >>confdefs.h <<\_ACEOF
13128#define POSIX_GETLOGIN 1
13129_ACEOF
13130
13131fi
13132fi
13133
13134
13135
13136for ac_header in stdlib.h unistd.h
13137do
13138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13139if eval "test \"\${$as_ac_Header+set}\" = set"; then
13140 echo "$as_me:$LINENO: checking for $ac_header" >&5
13141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13142if eval "test \"\${$as_ac_Header+set}\" = set"; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13144fi
13145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13147else
13148 # Is the header compilable?
13149echo "$as_me:$LINENO: checking $ac_header usability" >&5
13150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13151cat >conftest.$ac_ext <<_ACEOF
13152#line $LINENO "configure"
13153#include "confdefs.h"
13154$ac_includes_default
13155#include <$ac_header>
13156_ACEOF
13157rm -f conftest.$ac_objext
13158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13159 (eval $ac_compile) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -s conftest.$ac_objext'
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; }; then
13169 ac_header_compiler=yes
13170else
13171 echo "$as_me: failed program was:" >&5
13172cat conftest.$ac_ext >&5
13173ac_header_compiler=no
13174fi
13175rm -f conftest.$ac_objext conftest.$ac_ext
13176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13177echo "${ECHO_T}$ac_header_compiler" >&6
13178
13179# Is the header present?
13180echo "$as_me:$LINENO: checking $ac_header presence" >&5
13181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13182cat >conftest.$ac_ext <<_ACEOF
13183#line $LINENO "configure"
13184#include "confdefs.h"
13185#include <$ac_header>
13186_ACEOF
13187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13189 ac_status=$?
13190 egrep -v '^ *\+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } >/dev/null; then
13195 if test -s conftest.err; then
13196 ac_cpp_err=$ac_c_preproc_warn_flag
13197 else
13198 ac_cpp_err=
13199 fi
13200else
13201 ac_cpp_err=yes
13202fi
13203if test -z "$ac_cpp_err"; then
13204 ac_header_preproc=yes
13205else
13206 echo "$as_me: failed program was:" >&5
13207 cat conftest.$ac_ext >&5
13208 ac_header_preproc=no
13209fi
13210rm -f conftest.err conftest.$ac_ext
13211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13212echo "${ECHO_T}$ac_header_preproc" >&6
13213
13214# So? What about this header?
13215case $ac_header_compiler:$ac_header_preproc in
13216 yes:no )
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13218echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13221 no:yes )
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13228esac
13229echo "$as_me:$LINENO: checking for $ac_header" >&5
13230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13231if eval "test \"\${$as_ac_Header+set}\" = set"; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233else
13234 eval "$as_ac_Header=$ac_header_preproc"
13235fi
13236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13238
13239fi
13240if test `eval echo '${'$as_ac_Header'}'` = yes; then
13241 cat >>confdefs.h <<_ACEOF
13242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13243_ACEOF
13244
13245fi
13246
13247done
13248
13249
13250for ac_func in getpagesize
13251do
13252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13253echo "$as_me:$LINENO: checking for $ac_func" >&5
13254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13255if eval "test \"\${$as_ac_var+set}\" = set"; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13257else
13258 cat >conftest.$ac_ext <<_ACEOF
13259#line $LINENO "configure"
13260#include "confdefs.h"
13261/* System header to define __stub macros and hopefully few prototypes,
13262 which can conflict with char $ac_func (); below. */
13263#include <assert.h>
13264/* Override any gcc2 internal prototype to avoid an error. */
13265#ifdef __cplusplus
13266extern "C"
13267#endif
13268/* We use char because int might match the return type of a gcc2
13269 builtin and then its argument prototype would still apply. */
13270char $ac_func ();
13271char (*f) ();
13272
13273#ifdef F77_DUMMY_MAIN
13274# ifdef __cplusplus
13275 extern "C"
13276# endif
13277 int F77_DUMMY_MAIN() { return 1; }
13278#endif
13279int
13280main ()
13281{
13282/* The GNU C library defines this for functions which it implements
13283 to always fail with ENOSYS. Some functions are actually named
13284 something starting with __ and the normal name is an alias. */
13285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13286choke me
13287#else
13288f = $ac_func;
13289#endif
13290
13291 ;
13292 return 0;
13293}
13294_ACEOF
13295rm -f conftest.$ac_objext conftest$ac_exeext
13296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -s conftest$ac_exeext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 eval "$as_ac_var=yes"
13308else
13309 echo "$as_me: failed program was:" >&5
13310cat conftest.$ac_ext >&5
13311eval "$as_ac_var=no"
13312fi
13313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13314fi
13315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13317if test `eval echo '${'$as_ac_var'}'` = yes; then
13318 cat >>confdefs.h <<_ACEOF
13319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13320_ACEOF
13321
13322fi
13323done
13324
13325echo "$as_me:$LINENO: checking for working mmap" >&5
13326echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13327if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13329else
13330 if test "$cross_compiling" = yes; then
13331 ac_cv_func_mmap_fixed_mapped=no
13332else
13333 cat >conftest.$ac_ext <<_ACEOF
13334#line $LINENO "configure"
13335#include "confdefs.h"
13336$ac_includes_default
13337/* malloc might have been renamed as rpl_malloc. */
13338#undef malloc
13339
13340/* Thanks to Mike Haertel and Jim Avera for this test.
13341 Here is a matrix of mmap possibilities:
13342 mmap private not fixed
13343 mmap private fixed at somewhere currently unmapped
13344 mmap private fixed at somewhere already mapped
13345 mmap shared not fixed
13346 mmap shared fixed at somewhere currently unmapped
13347 mmap shared fixed at somewhere already mapped
13348 For private mappings, we should verify that changes cannot be read()
13349 back from the file, nor mmap's back from the file at a different
13350 address. (There have been systems where private was not correctly
13351 implemented like the infamous i386 svr4.0, and systems where the
13352 VM page cache was not coherent with the file system buffer cache
13353 like early versions of FreeBSD and possibly contemporary NetBSD.)
13354 For shared mappings, we should conversely verify that changes get
13355 propagated back to all the places they're supposed to be.
13356
13357 Grep wants private fixed already mapped.
13358 The main things grep needs to know about mmap are:
13359 * does it exist and is it safe to write into the mmap'd area
13360 * how to use it (BSD variants) */
13361
13362#include <fcntl.h>
13363#include <sys/mman.h>
13364
13365#if !STDC_HEADERS && !HAVE_STDLIB_H
13366char *malloc ();
13367#endif
13368
13369/* This mess was copied from the GNU getpagesize.h. */
13370#if !HAVE_GETPAGESIZE
13371/* Assume that all systems that can run configure have sys/param.h. */
13372# if !HAVE_SYS_PARAM_H
13373# define HAVE_SYS_PARAM_H 1
13374# endif
13375
13376# ifdef _SC_PAGESIZE
13377# define getpagesize() sysconf(_SC_PAGESIZE)
13378# else /* no _SC_PAGESIZE */
13379# if HAVE_SYS_PARAM_H
13380# include <sys/param.h>
13381# ifdef EXEC_PAGESIZE
13382# define getpagesize() EXEC_PAGESIZE
13383# else /* no EXEC_PAGESIZE */
13384# ifdef NBPG
13385# define getpagesize() NBPG * CLSIZE
13386# ifndef CLSIZE
13387# define CLSIZE 1
13388# endif /* no CLSIZE */
13389# else /* no NBPG */
13390# ifdef NBPC
13391# define getpagesize() NBPC
13392# else /* no NBPC */
13393# ifdef PAGESIZE
13394# define getpagesize() PAGESIZE
13395# endif /* PAGESIZE */
13396# endif /* no NBPC */
13397# endif /* no NBPG */
13398# endif /* no EXEC_PAGESIZE */
13399# else /* no HAVE_SYS_PARAM_H */
13400# define getpagesize() 8192 /* punt totally */
13401# endif /* no HAVE_SYS_PARAM_H */
13402# endif /* no _SC_PAGESIZE */
13403
13404#endif /* no HAVE_GETPAGESIZE */
13405
13406int
13407main ()
13408{
13409 char *data, *data2, *data3;
13410 int i, pagesize;
13411 int fd;
13412
13413 pagesize = getpagesize ();
13414
13415 /* First, make a file with some known garbage in it. */
13416 data = (char *) malloc (pagesize);
13417 if (!data)
13418 exit (1);
13419 for (i = 0; i < pagesize; ++i)
13420 *(data + i) = rand ();
13421 umask (0);
13422 fd = creat ("conftest.mmap", 0600);
13423 if (fd < 0)
13424 exit (1);
13425 if (write (fd, data, pagesize) != pagesize)
13426 exit (1);
13427 close (fd);
13428
13429 /* Next, try to mmap the file at a fixed address which already has
13430 something else allocated at it. If we can, also make sure that
13431 we see the same garbage. */
13432 fd = open ("conftest.mmap", O_RDWR);
13433 if (fd < 0)
13434 exit (1);
13435 data2 = (char *) malloc (2 * pagesize);
13436 if (!data2)
13437 exit (1);
13438 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13439 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13440 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13441 exit (1);
13442 for (i = 0; i < pagesize; ++i)
13443 if (*(data + i) != *(data2 + i))
13444 exit (1);
13445
13446 /* Finally, make sure that changes to the mapped area do not
13447 percolate back to the file as seen by read(). (This is a bug on
13448 some variants of i386 svr4.0.) */
13449 for (i = 0; i < pagesize; ++i)
13450 *(data2 + i) = *(data2 + i) + 1;
13451 data3 = (char *) malloc (pagesize);
13452 if (!data3)
13453 exit (1);
13454 if (read (fd, data3, pagesize) != pagesize)
13455 exit (1);
13456 for (i = 0; i < pagesize; ++i)
13457 if (*(data + i) != *(data3 + i))
13458 exit (1);
13459 close (fd);
13460 exit (0);
13461}
13462_ACEOF
13463rm -f conftest$ac_exeext
13464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_func_mmap_fixed_mapped=yes
13475else
13476 echo "$as_me: program exited with status $ac_status" >&5
13477echo "$as_me: failed program was:" >&5
13478cat conftest.$ac_ext >&5
13479( exit $ac_status )
13480ac_cv_func_mmap_fixed_mapped=no
13481fi
13482rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13483fi
13484fi
13485echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13486echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13487if test $ac_cv_func_mmap_fixed_mapped = yes; then
13488
13489cat >>confdefs.h <<\_ACEOF
13490#define HAVE_MMAP 1
13491_ACEOF
13492
13493fi
13494rm -f conftest.mmap
13495
13496
13497echo "$as_me:$LINENO: checking if realloc if broken" >&5
13498echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
13499if test "${ac_cv_func_realloc_broken+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501else
13502
13503ac_cv_func_realloc_broken=no
13504if test "$cross_compiling" = yes; then
13505 :
13506else
13507 cat >conftest.$ac_ext <<_ACEOF
13508#line $LINENO "configure"
13509#include "confdefs.h"
13510
13511#include <stddef.h>
13512#include <stdlib.h>
13513
13514int main()
13515{
13516 return realloc(NULL, 17) == NULL;
13517}
13518
13519_ACEOF
13520rm -f conftest$ac_exeext
13521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 (eval $ac_link) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 :
13532else
13533 echo "$as_me: program exited with status $ac_status" >&5
13534echo "$as_me: failed program was:" >&5
13535cat conftest.$ac_ext >&5
13536( exit $ac_status )
13537ac_cv_func_realloc_broken=yes
13538fi
13539rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13540fi
13541
13542fi
13543echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
13544echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
13545if test "$ac_cv_func_realloc_broken" = yes ; then
13546
13547cat >>confdefs.h <<\_ACEOF
13548#define BROKEN_REALLOC 1
13549_ACEOF
13550
13551fi
13552
13553
13554
13555
13556
13557
13558
13559DIR_roken=roken
13560LIB_roken='$(top_builddir)/lib/roken/libroken.la'
13561INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576WFLAGS_NOUNUSED=""
13577WFLAGS_NOIMPLICITINT=""
13578if test -z "$WFLAGS" -a "$GCC" = "yes"; then
13579 # -Wno-implicit-int for broken X11 headers
13580 # leave these out for now:
13581 # -Wcast-align doesn't work well on alpha osf/1
13582 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
13583 # -Wmissing-declarations -Wnested-externs
13584 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
13585 WFLAGS_NOUNUSED="-Wno-unused"
13586 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
13587fi
13588
13589
13590
13591
13592
13593
13594
13595
13596cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
13597echo "$as_me:$LINENO: checking for ssize_t" >&5
13598echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13599if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601else
13602 cat >conftest.$ac_ext <<_ACEOF
13603#line $LINENO "configure"
13604#include "confdefs.h"
13605#include <sys/types.h>
13606#if STDC_HEADERS
13607#include <stdlib.h>
13608#include <stddef.h>
13609#endif
13610#include <unistd.h>
13611#ifdef F77_DUMMY_MAIN
13612# ifdef __cplusplus
13613 extern "C"
13614# endif
13615 int F77_DUMMY_MAIN() { return 1; }
13616#endif
13617int
13618main ()
13619{
13620ssize_t foo;
13621 ;
13622 return 0;
13623}
13624_ACEOF
13625rm -f conftest.$ac_objext
13626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -s conftest.$ac_objext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 eval "ac_cv_type_$cv=yes"
13638else
13639 echo "$as_me: failed program was:" >&5
13640cat conftest.$ac_ext >&5
13641eval "ac_cv_type_$cv=no"
13642fi
13643rm -f conftest.$ac_objext conftest.$ac_ext
13644fi
13645ac_foo=`eval echo \\$ac_cv_type_$cv`
13646echo "$as_me:$LINENO: result: $ac_foo" >&5
13647echo "${ECHO_T}$ac_foo" >&6
13648if test "$ac_foo" = yes; then
13649 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
13650if false; then
13651 echo "$as_me:$LINENO: checking for ssize_t" >&5
13652echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13653if test "${ac_cv_type_ssize_t+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655else
13656 cat >conftest.$ac_ext <<_ACEOF
13657#line $LINENO "configure"
13658#include "confdefs.h"
13659$ac_includes_default
13660#ifdef F77_DUMMY_MAIN
13661# ifdef __cplusplus
13662 extern "C"
13663# endif
13664 int F77_DUMMY_MAIN() { return 1; }
13665#endif
13666int
13667main ()
13668{
13669if ((ssize_t *) 0)
13670 return 0;
13671if (sizeof (ssize_t))
13672 return 0;
13673 ;
13674 return 0;
13675}
13676_ACEOF
13677rm -f conftest.$ac_objext
13678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13679 (eval $ac_compile) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -s conftest.$ac_objext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_type_ssize_t=yes
13690else
13691 echo "$as_me: failed program was:" >&5
13692cat conftest.$ac_ext >&5
13693ac_cv_type_ssize_t=no
13694fi
13695rm -f conftest.$ac_objext conftest.$ac_ext
13696fi
13697echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13698echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13699if test $ac_cv_type_ssize_t = yes; then
13700
13701cat >>confdefs.h <<_ACEOF
13702#define HAVE_SSIZE_T 1
13703_ACEOF
13704
13705
13706fi
13707
13708fi
13709
13710cat >>confdefs.h <<_ACEOF
13711#define $ac_tr_hdr 1
13712_ACEOF
13713
13714fi
13715
13716
13717
13718
13719
13720cv=`echo "long long" | sed 'y%./+- %__p__%'`
13721echo "$as_me:$LINENO: checking for long long" >&5
13722echo $ECHO_N "checking for long long... $ECHO_C" >&6
13723if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725else
13726 cat >conftest.$ac_ext <<_ACEOF
13727#line $LINENO "configure"
13728#include "confdefs.h"
13729#include <sys/types.h>
13730#if STDC_HEADERS
13731#include <stdlib.h>
13732#include <stddef.h>
13733#endif
13734
13735#ifdef F77_DUMMY_MAIN
13736# ifdef __cplusplus
13737 extern "C"
13738# endif
13739 int F77_DUMMY_MAIN() { return 1; }
13740#endif
13741int
13742main ()
13743{
13744long long foo;
13745 ;
13746 return 0;
13747}
13748_ACEOF
13749rm -f conftest.$ac_objext
13750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -s conftest.$ac_objext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 eval "ac_cv_type_$cv=yes"
13762else
13763 echo "$as_me: failed program was:" >&5
13764cat conftest.$ac_ext >&5
13765eval "ac_cv_type_$cv=no"
13766fi
13767rm -f conftest.$ac_objext conftest.$ac_ext
13768fi
13769ac_foo=`eval echo \\$ac_cv_type_$cv`
13770echo "$as_me:$LINENO: result: $ac_foo" >&5
13771echo "${ECHO_T}$ac_foo" >&6
13772if test "$ac_foo" = yes; then
13773 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
13774if false; then
13775 echo "$as_me:$LINENO: checking for long long" >&5
13776echo $ECHO_N "checking for long long... $ECHO_C" >&6
13777if test "${ac_cv_type_long_long+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13779else
13780 cat >conftest.$ac_ext <<_ACEOF
13781#line $LINENO "configure"
13782#include "confdefs.h"
13783$ac_includes_default
13784#ifdef F77_DUMMY_MAIN
13785# ifdef __cplusplus
13786 extern "C"
13787# endif
13788 int F77_DUMMY_MAIN() { return 1; }
13789#endif
13790int
13791main ()
13792{
13793if ((long long *) 0)
13794 return 0;
13795if (sizeof (long long))
13796 return 0;
13797 ;
13798 return 0;
13799}
13800_ACEOF
13801rm -f conftest.$ac_objext
13802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -s conftest.$ac_objext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_cv_type_long_long=yes
13814else
13815 echo "$as_me: failed program was:" >&5
13816cat conftest.$ac_ext >&5
13817ac_cv_type_long_long=no
13818fi
13819rm -f conftest.$ac_objext conftest.$ac_ext
13820fi
13821echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13822echo "${ECHO_T}$ac_cv_type_long_long" >&6
13823if test $ac_cv_type_long_long = yes; then
13824
13825cat >>confdefs.h <<_ACEOF
13826#define HAVE_LONG_LONG 1
13827_ACEOF
13828
13829
13830fi
13831
13832fi
13833
13834cat >>confdefs.h <<_ACEOF
13835#define $ac_tr_hdr 1
13836_ACEOF
13837
13838fi
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891for ac_header in \
13892 arpa/inet.h \
13893 arpa/nameser.h \
13894 config.h \
13895 crypt.h \
13896 dirent.h \
13897 errno.h \
13898 err.h \
13899 fcntl.h \
13900 grp.h \
13901 ifaddrs.h \
13902 net/if.h \
13903 netdb.h \
13904 netinet/in.h \
13905 netinet/in6.h \
13906 netinet/in_systm.h \
13907 netinet6/in6.h \
13908 netinet6/in6_var.h \
13909 paths.h \
13910 pwd.h \
13911 resolv.h \
13912 rpcsvc/ypclnt.h \
13913 shadow.h \
13914 sys/bswap.h \
13915 sys/ioctl.h \
13916 sys/mman.h \
13917 sys/param.h \
13918 sys/proc.h \
13919 sys/resource.h \
13920 sys/socket.h \
13921 sys/sockio.h \
13922 sys/stat.h \
13923 sys/sysctl.h \
13924 sys/time.h \
13925 sys/tty.h \
13926 sys/types.h \
13927 sys/uio.h \
13928 sys/utsname.h \
13929 sys/wait.h \
13930 syslog.h \
13931 termios.h \
13932 unistd.h \
13933 userconf.h \
13934 usersec.h \
13935 util.h \
13936 vis.h \
13937
13938do
13939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13940if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941 echo "$as_me:$LINENO: checking for $ac_header" >&5
13942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13943if eval "test \"\${$as_ac_Header+set}\" = set"; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945fi
13946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13948else
13949 # Is the header compilable?
13950echo "$as_me:$LINENO: checking $ac_header usability" >&5
13951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13952cat >conftest.$ac_ext <<_ACEOF
13953#line $LINENO "configure"
13954#include "confdefs.h"
13955$ac_includes_default
13956#include <$ac_header>
13957_ACEOF
13958rm -f conftest.$ac_objext
13959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
13964 { ac_try='test -s conftest.$ac_objext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_header_compiler=yes
13971else
13972 echo "$as_me: failed program was:" >&5
13973cat conftest.$ac_ext >&5
13974ac_header_compiler=no
13975fi
13976rm -f conftest.$ac_objext conftest.$ac_ext
13977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13978echo "${ECHO_T}$ac_header_compiler" >&6
13979
13980# Is the header present?
13981echo "$as_me:$LINENO: checking $ac_header presence" >&5
13982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13983cat >conftest.$ac_ext <<_ACEOF
13984#line $LINENO "configure"
13985#include "confdefs.h"
13986#include <$ac_header>
13987_ACEOF
13988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13990 ac_status=$?
13991 egrep -v '^ *\+' conftest.er1 >conftest.err
13992 rm -f conftest.er1
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } >/dev/null; then
13996 if test -s conftest.err; then
13997 ac_cpp_err=$ac_c_preproc_warn_flag
13998 else
13999 ac_cpp_err=
14000 fi
14001else
14002 ac_cpp_err=yes
14003fi
14004if test -z "$ac_cpp_err"; then
14005 ac_header_preproc=yes
14006else
14007 echo "$as_me: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 ac_header_preproc=no
14010fi
14011rm -f conftest.err conftest.$ac_ext
14012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013echo "${ECHO_T}$ac_header_preproc" >&6
14014
14015# So? What about this header?
14016case $ac_header_compiler:$ac_header_preproc in
14017 yes:no )
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14021echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14022 no:yes )
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14029esac
14030echo "$as_me:$LINENO: checking for $ac_header" >&5
14031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14032if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034else
14035 eval "$as_ac_Header=$ac_header_preproc"
14036fi
14037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14039
14040fi
14041if test `eval echo '${'$as_ac_Header'}'` = yes; then
14042 cat >>confdefs.h <<_ACEOF
14043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14044_ACEOF
14045
14046fi
14047
14048done
14049
14050
14051
14052
14053
14054
14055if test "$ac_cv_header_err_h" = yes; then
14056 have_err_h_TRUE=
14057 have_err_h_FALSE='#'
14058else
14059 have_err_h_TRUE='#'
14060 have_err_h_FALSE=
14061fi
14062
14063
14064
14065if test "$ac_cv_header_fnmatch_h" = yes; then
14066 have_fnmatch_h_TRUE=
14067 have_fnmatch_h_FALSE='#'
14068else
14069 have_fnmatch_h_TRUE='#'
14070 have_fnmatch_h_FALSE=
14071fi
14072
14073
14074
14075if test "$ac_cv_header_ifaddrs_h" = yes; then
14076 have_ifaddrs_h_TRUE=
14077 have_ifaddrs_h_FALSE='#'
14078else
14079 have_ifaddrs_h_TRUE='#'
14080 have_ifaddrs_h_FALSE=
14081fi
14082
14083
14084
14085if test "$ac_cv_header_vis_h" = yes; then
14086 have_vis_h_TRUE=
14087 have_vis_h_FALSE='#'
14088else
14089 have_vis_h_TRUE='#'
14090 have_vis_h_FALSE=
14091fi
14092
14093
14094
14095
14096
14097
14098
14099echo "$as_me:$LINENO: checking for socket" >&5
14100echo $ECHO_N "checking for socket... $ECHO_C" >&6
14101if test "${ac_cv_funclib_socket+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103else
14104
14105if eval "test \"\$ac_cv_func_socket\" != yes" ; then
14106 ac_save_LIBS="$LIBS"
14107 for ac_lib in "" socket; do
14108 case "$ac_lib" in
14109 "") ;;
14110 yes) ac_lib="" ;;
14111 no) continue ;;
14112 -l*) ;;
14113 *) ac_lib="-l$ac_lib" ;;
14114 esac
14115 LIBS=" $ac_lib $ac_save_LIBS"
14116 cat >conftest.$ac_ext <<_ACEOF
14117#line $LINENO "configure"
14118#include "confdefs.h"
14119
14120#ifdef F77_DUMMY_MAIN
14121# ifdef __cplusplus
14122 extern "C"
14123# endif
14124 int F77_DUMMY_MAIN() { return 1; }
14125#endif
14126int
14127main ()
14128{
14129socket()
14130 ;
14131 return 0;
14132}
14133_ACEOF
14134rm -f conftest.$ac_objext conftest$ac_exeext
14135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14136 (eval $ac_link) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
14140 { ac_try='test -s conftest$ac_exeext'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
14147else
14148 echo "$as_me: failed program was:" >&5
14149cat conftest.$ac_ext >&5
14150fi
14151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14152 done
14153 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
14154 LIBS="$ac_save_LIBS"
14155fi
14156
14157fi
14158
14159
14160eval "ac_res=\$ac_cv_funclib_socket"
14161
14162if false; then
14163
14164for ac_func in socket
14165do
14166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14167echo "$as_me:$LINENO: checking for $ac_func" >&5
14168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14169if eval "test \"\${$as_ac_var+set}\" = set"; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171else
14172 cat >conftest.$ac_ext <<_ACEOF
14173#line $LINENO "configure"
14174#include "confdefs.h"
14175/* System header to define __stub macros and hopefully few prototypes,
14176 which can conflict with char $ac_func (); below. */
14177#include <assert.h>
14178/* Override any gcc2 internal prototype to avoid an error. */
14179#ifdef __cplusplus
14180extern "C"
14181#endif
14182/* We use char because int might match the return type of a gcc2
14183 builtin and then its argument prototype would still apply. */
14184char $ac_func ();
14185char (*f) ();
14186
14187#ifdef F77_DUMMY_MAIN
14188# ifdef __cplusplus
14189 extern "C"
14190# endif
14191 int F77_DUMMY_MAIN() { return 1; }
14192#endif
14193int
14194main ()
14195{
14196/* The GNU C library defines this for functions which it implements
14197 to always fail with ENOSYS. Some functions are actually named
14198 something starting with __ and the normal name is an alias. */
14199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14200choke me
14201#else
14202f = $ac_func;
14203#endif
14204
14205 ;
14206 return 0;
14207}
14208_ACEOF
14209rm -f conftest.$ac_objext conftest$ac_exeext
14210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14211 (eval $ac_link) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -s conftest$ac_exeext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 eval "$as_ac_var=yes"
14222else
14223 echo "$as_me: failed program was:" >&5
14224cat conftest.$ac_ext >&5
14225eval "$as_ac_var=no"
14226fi
14227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14228fi
14229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14231if test `eval echo '${'$as_ac_var'}'` = yes; then
14232 cat >>confdefs.h <<_ACEOF
14233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14234_ACEOF
14235
14236fi
14237done
14238
14239fi
14240# socket
14241eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14242eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14243eval "LIB_socket=$ac_res"
14244
14245case "$ac_res" in
14246 yes)
14247 eval "ac_cv_func_socket=yes"
14248 eval "LIB_socket="
14249 cat >>confdefs.h <<_ACEOF
14250#define $ac_tr_func 1
14251_ACEOF
14252
14253 echo "$as_me:$LINENO: result: yes" >&5
14254echo "${ECHO_T}yes" >&6
14255 ;;
14256 no)
14257 eval "ac_cv_func_socket=no"
14258 eval "LIB_socket="
14259 echo "$as_me:$LINENO: result: no" >&5
14260echo "${ECHO_T}no" >&6
14261 ;;
14262 *)
14263 eval "ac_cv_func_socket=yes"
14264 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14265 cat >>confdefs.h <<_ACEOF
14266#define $ac_tr_func 1
14267_ACEOF
14268
14269 cat >>confdefs.h <<_ACEOF
14270#define $ac_tr_lib 1
14271_ACEOF
14272
14273 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14274echo "${ECHO_T}yes, in $ac_res" >&6
14275 ;;
14276esac
14277
14278
14279if test -n "$LIB_socket"; then
14280 LIBS="$LIB_socket $LIBS"
14281fi
14282
14283
14284
14285
14286
14287echo "$as_me:$LINENO: checking for gethostbyname" >&5
14288echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
14289if test "${ac_cv_funclib_gethostbyname+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291else
14292
14293if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
14294 ac_save_LIBS="$LIBS"
14295 for ac_lib in "" nsl; do
14296 case "$ac_lib" in
14297 "") ;;
14298 yes) ac_lib="" ;;
14299 no) continue ;;
14300 -l*) ;;
14301 *) ac_lib="-l$ac_lib" ;;
14302 esac
14303 LIBS=" $ac_lib $ac_save_LIBS"
14304 cat >conftest.$ac_ext <<_ACEOF
14305#line $LINENO "configure"
14306#include "confdefs.h"
14307
14308#ifdef F77_DUMMY_MAIN
14309# ifdef __cplusplus
14310 extern "C"
14311# endif
14312 int F77_DUMMY_MAIN() { return 1; }
14313#endif
14314int
14315main ()
14316{
14317gethostbyname()
14318 ;
14319 return 0;
14320}
14321_ACEOF
14322rm -f conftest.$ac_objext conftest$ac_exeext
14323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14324 (eval $ac_link) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -s conftest$ac_exeext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
14335else
14336 echo "$as_me: failed program was:" >&5
14337cat conftest.$ac_ext >&5
14338fi
14339rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14340 done
14341 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
14342 LIBS="$ac_save_LIBS"
14343fi
14344
14345fi
14346
14347
14348eval "ac_res=\$ac_cv_funclib_gethostbyname"
14349
14350if false; then
14351
14352for ac_func in gethostbyname
14353do
14354as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355echo "$as_me:$LINENO: checking for $ac_func" >&5
14356echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14357if eval "test \"\${$as_ac_var+set}\" = set"; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359else
14360 cat >conftest.$ac_ext <<_ACEOF
14361#line $LINENO "configure"
14362#include "confdefs.h"
14363/* System header to define __stub macros and hopefully few prototypes,
14364 which can conflict with char $ac_func (); below. */
14365#include <assert.h>
14366/* Override any gcc2 internal prototype to avoid an error. */
14367#ifdef __cplusplus
14368extern "C"
14369#endif
14370/* We use char because int might match the return type of a gcc2
14371 builtin and then its argument prototype would still apply. */
14372char $ac_func ();
14373char (*f) ();
14374
14375#ifdef F77_DUMMY_MAIN
14376# ifdef __cplusplus
14377 extern "C"
14378# endif
14379 int F77_DUMMY_MAIN() { return 1; }
14380#endif
14381int
14382main ()
14383{
14384/* The GNU C library defines this for functions which it implements
14385 to always fail with ENOSYS. Some functions are actually named
14386 something starting with __ and the normal name is an alias. */
14387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14388choke me
14389#else
14390f = $ac_func;
14391#endif
14392
14393 ;
14394 return 0;
14395}
14396_ACEOF
14397rm -f conftest.$ac_objext conftest$ac_exeext
14398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14399 (eval $ac_link) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -s conftest$ac_exeext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 eval "$as_ac_var=yes"
14410else
14411 echo "$as_me: failed program was:" >&5
14412cat conftest.$ac_ext >&5
14413eval "$as_ac_var=no"
14414fi
14415rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14416fi
14417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14418echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14419if test `eval echo '${'$as_ac_var'}'` = yes; then
14420 cat >>confdefs.h <<_ACEOF
14421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14422_ACEOF
14423
14424fi
14425done
14426
14427fi
14428# gethostbyname
14429eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14430eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14431eval "LIB_gethostbyname=$ac_res"
14432
14433case "$ac_res" in
14434 yes)
14435 eval "ac_cv_func_gethostbyname=yes"
14436 eval "LIB_gethostbyname="
14437 cat >>confdefs.h <<_ACEOF
14438#define $ac_tr_func 1
14439_ACEOF
14440
14441 echo "$as_me:$LINENO: result: yes" >&5
14442echo "${ECHO_T}yes" >&6
14443 ;;
14444 no)
14445 eval "ac_cv_func_gethostbyname=no"
14446 eval "LIB_gethostbyname="
14447 echo "$as_me:$LINENO: result: no" >&5
14448echo "${ECHO_T}no" >&6
14449 ;;
14450 *)
14451 eval "ac_cv_func_gethostbyname=yes"
14452 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14453 cat >>confdefs.h <<_ACEOF
14454#define $ac_tr_func 1
14455_ACEOF
14456
14457 cat >>confdefs.h <<_ACEOF
14458#define $ac_tr_lib 1
14459_ACEOF
14460
14461 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14462echo "${ECHO_T}yes, in $ac_res" >&6
14463 ;;
14464esac
14465
14466
14467if test -n "$LIB_gethostbyname"; then
14468 LIBS="$LIB_gethostbyname $LIBS"
14469fi
14470
14471
14472
14473
14474
14475echo "$as_me:$LINENO: checking for syslog" >&5
14476echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14477if test "${ac_cv_funclib_syslog+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14479else
14480
14481if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
14482 ac_save_LIBS="$LIBS"
14483 for ac_lib in "" syslog; do
14484 case "$ac_lib" in
14485 "") ;;
14486 yes) ac_lib="" ;;
14487 no) continue ;;
14488 -l*) ;;
14489 *) ac_lib="-l$ac_lib" ;;
14490 esac
14491 LIBS=" $ac_lib $ac_save_LIBS"
14492 cat >conftest.$ac_ext <<_ACEOF
14493#line $LINENO "configure"
14494#include "confdefs.h"
14495
14496#ifdef F77_DUMMY_MAIN
14497# ifdef __cplusplus
14498 extern "C"
14499# endif
14500 int F77_DUMMY_MAIN() { return 1; }
14501#endif
14502int
14503main ()
14504{
14505syslog()
14506 ;
14507 return 0;
14508}
14509_ACEOF
14510rm -f conftest.$ac_objext conftest$ac_exeext
14511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -s conftest$ac_exeext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
14523else
14524 echo "$as_me: failed program was:" >&5
14525cat conftest.$ac_ext >&5
14526fi
14527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14528 done
14529 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
14530 LIBS="$ac_save_LIBS"
14531fi
14532
14533fi
14534
14535
14536eval "ac_res=\$ac_cv_funclib_syslog"
14537
14538if false; then
14539
14540for ac_func in syslog
14541do
14542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14543echo "$as_me:$LINENO: checking for $ac_func" >&5
14544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14545if eval "test \"\${$as_ac_var+set}\" = set"; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547else
14548 cat >conftest.$ac_ext <<_ACEOF
14549#line $LINENO "configure"
14550#include "confdefs.h"
14551/* System header to define __stub macros and hopefully few prototypes,
14552 which can conflict with char $ac_func (); below. */
14553#include <assert.h>
14554/* Override any gcc2 internal prototype to avoid an error. */
14555#ifdef __cplusplus
14556extern "C"
14557#endif
14558/* We use char because int might match the return type of a gcc2
14559 builtin and then its argument prototype would still apply. */
14560char $ac_func ();
14561char (*f) ();
14562
14563#ifdef F77_DUMMY_MAIN
14564# ifdef __cplusplus
14565 extern "C"
14566# endif
14567 int F77_DUMMY_MAIN() { return 1; }
14568#endif
14569int
14570main ()
14571{
14572/* The GNU C library defines this for functions which it implements
14573 to always fail with ENOSYS. Some functions are actually named
14574 something starting with __ and the normal name is an alias. */
14575#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14576choke me
14577#else
14578f = $ac_func;
14579#endif
14580
14581 ;
14582 return 0;
14583}
14584_ACEOF
14585rm -f conftest.$ac_objext conftest$ac_exeext
14586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14587 (eval $ac_link) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -s conftest$ac_exeext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 eval "$as_ac_var=yes"
14598else
14599 echo "$as_me: failed program was:" >&5
14600cat conftest.$ac_ext >&5
14601eval "$as_ac_var=no"
14602fi
14603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14604fi
14605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14607if test `eval echo '${'$as_ac_var'}'` = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14610_ACEOF
14611
14612fi
14613done
14614
14615fi
14616# syslog
14617eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14618eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14619eval "LIB_syslog=$ac_res"
14620
14621case "$ac_res" in
14622 yes)
14623 eval "ac_cv_func_syslog=yes"
14624 eval "LIB_syslog="
14625 cat >>confdefs.h <<_ACEOF
14626#define $ac_tr_func 1
14627_ACEOF
14628
14629 echo "$as_me:$LINENO: result: yes" >&5
14630echo "${ECHO_T}yes" >&6
14631 ;;
14632 no)
14633 eval "ac_cv_func_syslog=no"
14634 eval "LIB_syslog="
14635 echo "$as_me:$LINENO: result: no" >&5
14636echo "${ECHO_T}no" >&6
14637 ;;
14638 *)
14639 eval "ac_cv_func_syslog=yes"
14640 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14641 cat >>confdefs.h <<_ACEOF
14642#define $ac_tr_func 1
14643_ACEOF
14644
14645 cat >>confdefs.h <<_ACEOF
14646#define $ac_tr_lib 1
14647_ACEOF
14648
14649 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14650echo "${ECHO_T}yes, in $ac_res" >&6
14651 ;;
14652esac
14653
14654
14655if test -n "$LIB_syslog"; then
14656 LIBS="$LIB_syslog $LIBS"
14657fi
14658
14659
14660
14661
14662# Check whether --with-ipv6 or --without-ipv6 was given.
14663if test "${with_ipv6+set}" = set; then
14664 withval="$with_ipv6"
14665
14666if test "$withval" = "no"; then
14667 ac_cv_lib_ipv6=no
14668fi
14669fi;
14670save_CFLAGS="${CFLAGS}"
14671echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
14672echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
14673if test "${v6type+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14675else
14676 v6type=unknown
14677v6lib=none
14678
14679for i in v6d toshiba kame inria zeta linux; do
14680 case $i in
14681 v6d)
14682 cat >conftest.$ac_ext <<_ACEOF
14683#line $LINENO "configure"
14684#include "confdefs.h"
14685
14686#include </usr/local/v6/include/sys/types.h>
14687#ifdef __V6D__
14688yes
14689#endif
14690_ACEOF
14691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14692 egrep "yes" >/dev/null 2>&1; then
14693 v6type=$i; v6lib=v6;
14694 v6libdir=/usr/local/v6/lib;
14695 CFLAGS="-I/usr/local/v6/include $CFLAGS"
14696fi
14697rm -f conftest*
14698
14699 ;;
14700 toshiba)
14701 cat >conftest.$ac_ext <<_ACEOF
14702#line $LINENO "configure"
14703#include "confdefs.h"
14704
14705#include <sys/param.h>
14706#ifdef _TOSHIBA_INET6
14707yes
14708#endif
14709_ACEOF
14710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14711 egrep "yes" >/dev/null 2>&1; then
14712 v6type=$i; v6lib=inet6;
14713 v6libdir=/usr/local/v6/lib;
14714 CFLAGS="-DINET6 $CFLAGS"
14715fi
14716rm -f conftest*
14717
14718 ;;
14719 kame)
14720 cat >conftest.$ac_ext <<_ACEOF
14721#line $LINENO "configure"
14722#include "confdefs.h"
14723
14724#include <netinet/in.h>
14725#ifdef __KAME__
14726yes
14727#endif
14728_ACEOF
14729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14730 egrep "yes" >/dev/null 2>&1; then
14731 v6type=$i; v6lib=inet6;
14732 v6libdir=/usr/local/v6/lib;
14733 CFLAGS="-DINET6 $CFLAGS"
14734fi
14735rm -f conftest*
14736
14737 ;;
14738 inria)
14739 cat >conftest.$ac_ext <<_ACEOF
14740#line $LINENO "configure"
14741#include "confdefs.h"
14742
14743#include <netinet/in.h>
14744#ifdef IPV6_INRIA_VERSION
14745yes
14746#endif
14747_ACEOF
14748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14749 egrep "yes" >/dev/null 2>&1; then
14750 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
14751fi
14752rm -f conftest*
14753
14754 ;;
14755 zeta)
14756 cat >conftest.$ac_ext <<_ACEOF
14757#line $LINENO "configure"
14758#include "confdefs.h"
14759
14760#include <sys/param.h>
14761#ifdef _ZETA_MINAMI_INET6
14762yes
14763#endif
14764_ACEOF
14765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14766 egrep "yes" >/dev/null 2>&1; then
14767 v6type=$i; v6lib=inet6;
14768 v6libdir=/usr/local/v6/lib;
14769 CFLAGS="-DINET6 $CFLAGS"
14770fi
14771rm -f conftest*
14772
14773 ;;
14774 linux)
14775 if test -d /usr/inet6; then
14776 v6type=$i
14777 v6lib=inet6
14778 v6libdir=/usr/inet6
14779 CFLAGS="-DINET6 $CFLAGS"
14780 fi
14781 ;;
14782 esac
14783 if test "$v6type" != "unknown"; then
14784 break
14785 fi
14786done
14787
14788if test "$v6lib" != "none"; then
14789 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
14790 if test -d $dir -a -f $dir/lib$v6lib.a; then
14791 LIBS="-L$dir -l$v6lib $LIBS"
14792 break
14793 fi
14794 done
14795fi
14796
14797fi
14798echo "$as_me:$LINENO: result: $v6type" >&5
14799echo "${ECHO_T}$v6type" >&6
14800
14801echo "$as_me:$LINENO: checking for IPv6" >&5
14802echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
14803if test "${ac_cv_lib_ipv6+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14805else
14806
14807cat >conftest.$ac_ext <<_ACEOF
14808#line $LINENO "configure"
14809#include "confdefs.h"
14810
14811#ifdef HAVE_SYS_TYPES_H
14812#include <sys/types.h>
14813#endif
14814#ifdef HAVE_SYS_SOCKET_H
14815#include <sys/socket.h>
14816#endif
14817#ifdef HAVE_NETINET_IN_H
14818#include <netinet/in.h>
14819#endif
14820#ifdef HAVE_NETINET_IN6_H
14821#include <netinet/in6.h>
14822#endif
14823
14824#ifdef F77_DUMMY_MAIN
14825# ifdef __cplusplus
14826 extern "C"
14827# endif
14828 int F77_DUMMY_MAIN() { return 1; }
14829#endif
14830int
14831main ()
14832{
14833
14834 struct sockaddr_in6 sin6;
14835 int s;
14836
14837 s = socket(AF_INET6, SOCK_DGRAM, 0);
14838
14839 sin6.sin6_family = AF_INET6;
14840 sin6.sin6_port = htons(17);
14841 sin6.sin6_addr = in6addr_any;
14842 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
14843
14844 ;
14845 return 0;
14846}
14847_ACEOF
14848rm -f conftest.$ac_objext conftest$ac_exeext
14849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14850 (eval $ac_link) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -s conftest$ac_exeext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_cv_lib_ipv6=yes
14861else
14862 echo "$as_me: failed program was:" >&5
14863cat conftest.$ac_ext >&5
14864ac_cv_lib_ipv6=no
14865fi
14866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14867fi
14868echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
14869echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
14870if test "$ac_cv_lib_ipv6" = yes; then
14871
14872cat >>confdefs.h <<\_ACEOF
14873#define HAVE_IPV6 1
14874_ACEOF
14875
14876else
14877 CFLAGS="${save_CFLAGS}"
14878fi
14879
14880if test "$ac_cv_lib_ipv6" = yes; then
14881 echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
14882echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
14883if test "${ac_cv_var_in6addr_loopback+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14885else
14886
14887 cat >conftest.$ac_ext <<_ACEOF
14888#line $LINENO "configure"
14889#include "confdefs.h"
14890
14891#ifdef HAVE_SYS_TYPES_H
14892#include <sys/types.h>
14893#endif
14894#ifdef HAVE_SYS_SOCKET_H
14895#include <sys/socket.h>
14896#endif
14897#ifdef HAVE_NETINET_IN_H
14898#include <netinet/in.h>
14899#endif
14900#ifdef HAVE_NETINET_IN6_H
14901#include <netinet/in6.h>
14902#endif
14903#ifdef F77_DUMMY_MAIN
14904# ifdef __cplusplus
14905 extern "C"
14906# endif
14907 int F77_DUMMY_MAIN() { return 1; }
14908#endif
14909int
14910main ()
14911{
14912
14913struct sockaddr_in6 sin6;
14914sin6.sin6_addr = in6addr_loopback;
14915
14916 ;
14917 return 0;
14918}
14919_ACEOF
14920rm -f conftest.$ac_objext conftest$ac_exeext
14921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -s conftest$ac_exeext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_cv_var_in6addr_loopback=yes
14933else
14934 echo "$as_me: failed program was:" >&5
14935cat conftest.$ac_ext >&5
14936ac_cv_var_in6addr_loopback=no
14937fi
14938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14939fi
14940echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
14941echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
14942 if test "$ac_cv_var_in6addr_loopback" = yes; then
14943
14944cat >>confdefs.h <<\_ACEOF
14945#define HAVE_IN6ADDR_LOOPBACK 1
14946_ACEOF
14947
14948 fi
14949fi
14950
14951
14952
14953
14954
14955
14956echo "$as_me:$LINENO: checking for gethostbyname2" >&5
14957echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
14958if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14960else
14961
14962if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
14963 ac_save_LIBS="$LIBS"
14964 for ac_lib in "" inet6 ip6; do
14965 case "$ac_lib" in
14966 "") ;;
14967 yes) ac_lib="" ;;
14968 no) continue ;;
14969 -l*) ;;
14970 *) ac_lib="-l$ac_lib" ;;
14971 esac
14972 LIBS=" $ac_lib $ac_save_LIBS"
14973 cat >conftest.$ac_ext <<_ACEOF
14974#line $LINENO "configure"
14975#include "confdefs.h"
14976
14977#ifdef F77_DUMMY_MAIN
14978# ifdef __cplusplus
14979 extern "C"
14980# endif
14981 int F77_DUMMY_MAIN() { return 1; }
14982#endif
14983int
14984main ()
14985{
14986gethostbyname2()
14987 ;
14988 return 0;
14989}
14990_ACEOF
14991rm -f conftest.$ac_objext conftest$ac_exeext
14992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14993 (eval $ac_link) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -s conftest$ac_exeext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
15004else
15005 echo "$as_me: failed program was:" >&5
15006cat conftest.$ac_ext >&5
15007fi
15008rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15009 done
15010 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
15011 LIBS="$ac_save_LIBS"
15012fi
15013
15014fi
15015
15016
15017eval "ac_res=\$ac_cv_funclib_gethostbyname2"
15018
15019if false; then
15020
15021for ac_func in gethostbyname2
15022do
15023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15024echo "$as_me:$LINENO: checking for $ac_func" >&5
15025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15026if eval "test \"\${$as_ac_var+set}\" = set"; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028else
15029 cat >conftest.$ac_ext <<_ACEOF
15030#line $LINENO "configure"
15031#include "confdefs.h"
15032/* System header to define __stub macros and hopefully few prototypes,
15033 which can conflict with char $ac_func (); below. */
15034#include <assert.h>
15035/* Override any gcc2 internal prototype to avoid an error. */
15036#ifdef __cplusplus
15037extern "C"
15038#endif
15039/* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15041char $ac_func ();
15042char (*f) ();
15043
15044#ifdef F77_DUMMY_MAIN
15045# ifdef __cplusplus
15046 extern "C"
15047# endif
15048 int F77_DUMMY_MAIN() { return 1; }
15049#endif
15050int
15051main ()
15052{
15053/* The GNU C library defines this for functions which it implements
15054 to always fail with ENOSYS. Some functions are actually named
15055 something starting with __ and the normal name is an alias. */
15056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15057choke me
15058#else
15059f = $ac_func;
15060#endif
15061
15062 ;
15063 return 0;
15064}
15065_ACEOF
15066rm -f conftest.$ac_objext conftest$ac_exeext
15067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15068 (eval $ac_link) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -s conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 eval "$as_ac_var=yes"
15079else
15080 echo "$as_me: failed program was:" >&5
15081cat conftest.$ac_ext >&5
15082eval "$as_ac_var=no"
15083fi
15084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15085fi
15086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15087echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15088if test `eval echo '${'$as_ac_var'}'` = yes; then
15089 cat >>confdefs.h <<_ACEOF
15090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15091_ACEOF
15092
15093fi
15094done
15095
15096fi
15097# gethostbyname2
15098eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15099eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15100eval "LIB_gethostbyname2=$ac_res"
15101
15102case "$ac_res" in
15103 yes)
15104 eval "ac_cv_func_gethostbyname2=yes"
15105 eval "LIB_gethostbyname2="
15106 cat >>confdefs.h <<_ACEOF
15107#define $ac_tr_func 1
15108_ACEOF
15109
15110 echo "$as_me:$LINENO: result: yes" >&5
15111echo "${ECHO_T}yes" >&6
15112 ;;
15113 no)
15114 eval "ac_cv_func_gethostbyname2=no"
15115 eval "LIB_gethostbyname2="
15116 echo "$as_me:$LINENO: result: no" >&5
15117echo "${ECHO_T}no" >&6
15118 ;;
15119 *)
15120 eval "ac_cv_func_gethostbyname2=yes"
15121 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15122 cat >>confdefs.h <<_ACEOF
15123#define $ac_tr_func 1
15124_ACEOF
15125
15126 cat >>confdefs.h <<_ACEOF
15127#define $ac_tr_lib 1
15128_ACEOF
15129
15130 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15131echo "${ECHO_T}yes, in $ac_res" >&6
15132 ;;
15133esac
15134
15135
15136if test -n "$LIB_gethostbyname2"; then
15137 LIBS="$LIB_gethostbyname2 $LIBS"
15138fi
15139
15140
15141
15142
15143
15144
15145echo "$as_me:$LINENO: checking for res_search" >&5
15146echo $ECHO_N "checking for res_search... $ECHO_C" >&6
15147if test "${ac_cv_funclib_res_search+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149else
15150
15151if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
15152 ac_save_LIBS="$LIBS"
15153 for ac_lib in "" resolv; do
15154 case "$ac_lib" in
15155 "") ;;
15156 yes) ac_lib="" ;;
15157 no) continue ;;
15158 -l*) ;;
15159 *) ac_lib="-l$ac_lib" ;;
15160 esac
15161 LIBS=" $ac_lib $ac_save_LIBS"
15162 cat >conftest.$ac_ext <<_ACEOF
15163#line $LINENO "configure"
15164#include "confdefs.h"
15165
15166#include <stdio.h>
15167#ifdef HAVE_SYS_TYPES_H
15168#include <sys/types.h>
15169#endif
15170#ifdef HAVE_NETINET_IN_H
15171#include <netinet/in.h>
15172#endif
15173#ifdef HAVE_ARPA_NAMESER_H
15174#include <arpa/nameser.h>
15175#endif
15176#ifdef HAVE_RESOLV_H
15177#include <resolv.h>
15178#endif
15179
15180#ifdef F77_DUMMY_MAIN
15181# ifdef __cplusplus
15182 extern "C"
15183# endif
15184 int F77_DUMMY_MAIN() { return 1; }
15185#endif
15186int
15187main ()
15188{
15189res_search(0,0,0,0,0)
15190 ;
15191 return 0;
15192}
15193_ACEOF
15194rm -f conftest.$ac_objext conftest$ac_exeext
15195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15196 (eval $ac_link) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -s conftest$ac_exeext'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
15206 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
15207else
15208 echo "$as_me: failed program was:" >&5
15209cat conftest.$ac_ext >&5
15210fi
15211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15212 done
15213 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
15214 LIBS="$ac_save_LIBS"
15215fi
15216
15217fi
15218
15219
15220eval "ac_res=\$ac_cv_funclib_res_search"
15221
15222if false; then
15223
15224for ac_func in res_search
15225do
15226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15227echo "$as_me:$LINENO: checking for $ac_func" >&5
15228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15229if eval "test \"\${$as_ac_var+set}\" = set"; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231else
15232 cat >conftest.$ac_ext <<_ACEOF
15233#line $LINENO "configure"
15234#include "confdefs.h"
15235/* System header to define __stub macros and hopefully few prototypes,
15236 which can conflict with char $ac_func (); below. */
15237#include <assert.h>
15238/* Override any gcc2 internal prototype to avoid an error. */
15239#ifdef __cplusplus
15240extern "C"
15241#endif
15242/* We use char because int might match the return type of a gcc2
15243 builtin and then its argument prototype would still apply. */
15244char $ac_func ();
15245char (*f) ();
15246
15247#ifdef F77_DUMMY_MAIN
15248# ifdef __cplusplus
15249 extern "C"
15250# endif
15251 int F77_DUMMY_MAIN() { return 1; }
15252#endif
15253int
15254main ()
15255{
15256/* The GNU C library defines this for functions which it implements
15257 to always fail with ENOSYS. Some functions are actually named
15258 something starting with __ and the normal name is an alias. */
15259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15260choke me
15261#else
15262f = $ac_func;
15263#endif
15264
15265 ;
15266 return 0;
15267}
15268_ACEOF
15269rm -f conftest.$ac_objext conftest$ac_exeext
15270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15271 (eval $ac_link) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -s conftest$ac_exeext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 eval "$as_ac_var=yes"
15282else
15283 echo "$as_me: failed program was:" >&5
15284cat conftest.$ac_ext >&5
15285eval "$as_ac_var=no"
15286fi
15287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15288fi
15289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15291if test `eval echo '${'$as_ac_var'}'` = yes; then
15292 cat >>confdefs.h <<_ACEOF
15293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15294_ACEOF
15295
15296fi
15297done
15298
15299fi
15300# res_search
15301eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15302eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15303eval "LIB_res_search=$ac_res"
15304
15305case "$ac_res" in
15306 yes)
15307 eval "ac_cv_func_res_search=yes"
15308 eval "LIB_res_search="
15309 cat >>confdefs.h <<_ACEOF
15310#define $ac_tr_func 1
15311_ACEOF
15312
15313 echo "$as_me:$LINENO: result: yes" >&5
15314echo "${ECHO_T}yes" >&6
15315 ;;
15316 no)
15317 eval "ac_cv_func_res_search=no"
15318 eval "LIB_res_search="
15319 echo "$as_me:$LINENO: result: no" >&5
15320echo "${ECHO_T}no" >&6
15321 ;;
15322 *)
15323 eval "ac_cv_func_res_search=yes"
15324 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15325 cat >>confdefs.h <<_ACEOF
15326#define $ac_tr_func 1
15327_ACEOF
15328
15329 cat >>confdefs.h <<_ACEOF
15330#define $ac_tr_lib 1
15331_ACEOF
15332
15333 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15334echo "${ECHO_T}yes, in $ac_res" >&6
15335 ;;
15336esac
15337
15338
15339if test -n "$LIB_res_search"; then
15340 LIBS="$LIB_res_search $LIBS"
15341fi
15342
15343
15344
15345
15346
15347
15348echo "$as_me:$LINENO: checking for res_nsearch" >&5
15349echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
15350if test "${ac_cv_funclib_res_nsearch+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15352else
15353
15354if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
15355 ac_save_LIBS="$LIBS"
15356 for ac_lib in "" resolv; do
15357 case "$ac_lib" in
15358 "") ;;
15359 yes) ac_lib="" ;;
15360 no) continue ;;
15361 -l*) ;;
15362 *) ac_lib="-l$ac_lib" ;;
15363 esac
15364 LIBS=" $ac_lib $ac_save_LIBS"
15365 cat >conftest.$ac_ext <<_ACEOF
15366#line $LINENO "configure"
15367#include "confdefs.h"
15368
15369#include <stdio.h>
15370#ifdef HAVE_SYS_TYPES_H
15371#include <sys/types.h>
15372#endif
15373#ifdef HAVE_NETINET_IN_H
15374#include <netinet/in.h>
15375#endif
15376#ifdef HAVE_ARPA_NAMESER_H
15377#include <arpa/nameser.h>
15378#endif
15379#ifdef HAVE_RESOLV_H
15380#include <resolv.h>
15381#endif
15382
15383#ifdef F77_DUMMY_MAIN
15384# ifdef __cplusplus
15385 extern "C"
15386# endif
15387 int F77_DUMMY_MAIN() { return 1; }
15388#endif
15389int
15390main ()
15391{
15392res_nsearch(0,0,0,0,0)
15393 ;
15394 return 0;
15395}
15396_ACEOF
15397rm -f conftest.$ac_objext conftest$ac_exeext
15398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399 (eval $ac_link) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -s conftest$ac_exeext'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
15410else
15411 echo "$as_me: failed program was:" >&5
15412cat conftest.$ac_ext >&5
15413fi
15414rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15415 done
15416 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
15417 LIBS="$ac_save_LIBS"
15418fi
15419
15420fi
15421
15422
15423eval "ac_res=\$ac_cv_funclib_res_nsearch"
15424
15425if false; then
15426
15427for ac_func in res_nsearch
15428do
15429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15430echo "$as_me:$LINENO: checking for $ac_func" >&5
15431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15432if eval "test \"\${$as_ac_var+set}\" = set"; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15434else
15435 cat >conftest.$ac_ext <<_ACEOF
15436#line $LINENO "configure"
15437#include "confdefs.h"
15438/* System header to define __stub macros and hopefully few prototypes,
15439 which can conflict with char $ac_func (); below. */
15440#include <assert.h>
15441/* Override any gcc2 internal prototype to avoid an error. */
15442#ifdef __cplusplus
15443extern "C"
15444#endif
15445/* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15447char $ac_func ();
15448char (*f) ();
15449
15450#ifdef F77_DUMMY_MAIN
15451# ifdef __cplusplus
15452 extern "C"
15453# endif
15454 int F77_DUMMY_MAIN() { return 1; }
15455#endif
15456int
15457main ()
15458{
15459/* The GNU C library defines this for functions which it implements
15460 to always fail with ENOSYS. Some functions are actually named
15461 something starting with __ and the normal name is an alias. */
15462#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15463choke me
15464#else
15465f = $ac_func;
15466#endif
15467
15468 ;
15469 return 0;
15470}
15471_ACEOF
15472rm -f conftest.$ac_objext conftest$ac_exeext
15473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15474 (eval $ac_link) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -s conftest$ac_exeext'
15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480 (eval $ac_try) 2>&5
15481 ac_status=$?
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
15484 eval "$as_ac_var=yes"
15485else
15486 echo "$as_me: failed program was:" >&5
15487cat conftest.$ac_ext >&5
15488eval "$as_ac_var=no"
15489fi
15490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15491fi
15492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15493echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15494if test `eval echo '${'$as_ac_var'}'` = yes; then
15495 cat >>confdefs.h <<_ACEOF
15496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15497_ACEOF
15498
15499fi
15500done
15501
15502fi
15503# res_nsearch
15504eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15505eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15506eval "LIB_res_nsearch=$ac_res"
15507
15508case "$ac_res" in
15509 yes)
15510 eval "ac_cv_func_res_nsearch=yes"
15511 eval "LIB_res_nsearch="
15512 cat >>confdefs.h <<_ACEOF
15513#define $ac_tr_func 1
15514_ACEOF
15515
15516 echo "$as_me:$LINENO: result: yes" >&5
15517echo "${ECHO_T}yes" >&6
15518 ;;
15519 no)
15520 eval "ac_cv_func_res_nsearch=no"
15521 eval "LIB_res_nsearch="
15522 echo "$as_me:$LINENO: result: no" >&5
15523echo "${ECHO_T}no" >&6
15524 ;;
15525 *)
15526 eval "ac_cv_func_res_nsearch=yes"
15527 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15528 cat >>confdefs.h <<_ACEOF
15529#define $ac_tr_func 1
15530_ACEOF
15531
15532 cat >>confdefs.h <<_ACEOF
15533#define $ac_tr_lib 1
15534_ACEOF
15535
15536 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15537echo "${ECHO_T}yes, in $ac_res" >&6
15538 ;;
15539esac
15540
15541
15542if test -n "$LIB_res_nsearch"; then
15543 LIBS="$LIB_res_nsearch $LIBS"
15544fi
15545
15546
15547
15548
15549
15550
15551echo "$as_me:$LINENO: checking for dn_expand" >&5
15552echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
15553if test "${ac_cv_funclib_dn_expand+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555else
15556
15557if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
15558 ac_save_LIBS="$LIBS"
15559 for ac_lib in "" resolv; do
15560 case "$ac_lib" in
15561 "") ;;
15562 yes) ac_lib="" ;;
15563 no) continue ;;
15564 -l*) ;;
15565 *) ac_lib="-l$ac_lib" ;;
15566 esac
15567 LIBS=" $ac_lib $ac_save_LIBS"
15568 cat >conftest.$ac_ext <<_ACEOF
15569#line $LINENO "configure"
15570#include "confdefs.h"
15571
15572#include <stdio.h>
15573#ifdef HAVE_SYS_TYPES_H
15574#include <sys/types.h>
15575#endif
15576#ifdef HAVE_NETINET_IN_H
15577#include <netinet/in.h>
15578#endif
15579#ifdef HAVE_ARPA_NAMESER_H
15580#include <arpa/nameser.h>
15581#endif
15582#ifdef HAVE_RESOLV_H
15583#include <resolv.h>
15584#endif
15585
15586#ifdef F77_DUMMY_MAIN
15587# ifdef __cplusplus
15588 extern "C"
15589# endif
15590 int F77_DUMMY_MAIN() { return 1; }
15591#endif
15592int
15593main ()
15594{
15595dn_expand(0,0,0,0,0)
15596 ;
15597 return 0;
15598}
15599_ACEOF
15600rm -f conftest.$ac_objext conftest$ac_exeext
15601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -s conftest$ac_exeext'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
15613else
15614 echo "$as_me: failed program was:" >&5
15615cat conftest.$ac_ext >&5
15616fi
15617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15618 done
15619 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
15620 LIBS="$ac_save_LIBS"
15621fi
15622
15623fi
15624
15625
15626eval "ac_res=\$ac_cv_funclib_dn_expand"
15627
15628if false; then
15629
15630for ac_func in dn_expand
15631do
15632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633echo "$as_me:$LINENO: checking for $ac_func" >&5
15634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15635if eval "test \"\${$as_ac_var+set}\" = set"; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15637else
15638 cat >conftest.$ac_ext <<_ACEOF
15639#line $LINENO "configure"
15640#include "confdefs.h"
15641/* System header to define __stub macros and hopefully few prototypes,
15642 which can conflict with char $ac_func (); below. */
15643#include <assert.h>
15644/* Override any gcc2 internal prototype to avoid an error. */
15645#ifdef __cplusplus
15646extern "C"
15647#endif
15648/* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15650char $ac_func ();
15651char (*f) ();
15652
15653#ifdef F77_DUMMY_MAIN
15654# ifdef __cplusplus
15655 extern "C"
15656# endif
15657 int F77_DUMMY_MAIN() { return 1; }
15658#endif
15659int
15660main ()
15661{
15662/* The GNU C library defines this for functions which it implements
15663 to always fail with ENOSYS. Some functions are actually named
15664 something starting with __ and the normal name is an alias. */
15665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15666choke me
15667#else
15668f = $ac_func;
15669#endif
15670
15671 ;
15672 return 0;
15673}
15674_ACEOF
15675rm -f conftest.$ac_objext conftest$ac_exeext
15676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>&5
15678 ac_status=$?
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -s conftest$ac_exeext'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; }; then
15687 eval "$as_ac_var=yes"
15688else
15689 echo "$as_me: failed program was:" >&5
15690cat conftest.$ac_ext >&5
15691eval "$as_ac_var=no"
15692fi
15693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15694fi
15695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15696echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15697if test `eval echo '${'$as_ac_var'}'` = yes; then
15698 cat >>confdefs.h <<_ACEOF
15699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15700_ACEOF
15701
15702fi
15703done
15704
15705fi
15706# dn_expand
15707eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15708eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15709eval "LIB_dn_expand=$ac_res"
15710
15711case "$ac_res" in
15712 yes)
15713 eval "ac_cv_func_dn_expand=yes"
15714 eval "LIB_dn_expand="
15715 cat >>confdefs.h <<_ACEOF
15716#define $ac_tr_func 1
15717_ACEOF
15718
15719 echo "$as_me:$LINENO: result: yes" >&5
15720echo "${ECHO_T}yes" >&6
15721 ;;
15722 no)
15723 eval "ac_cv_func_dn_expand=no"
15724 eval "LIB_dn_expand="
15725 echo "$as_me:$LINENO: result: no" >&5
15726echo "${ECHO_T}no" >&6
15727 ;;
15728 *)
15729 eval "ac_cv_func_dn_expand=yes"
15730 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15731 cat >>confdefs.h <<_ACEOF
15732#define $ac_tr_func 1
15733_ACEOF
15734
15735 cat >>confdefs.h <<_ACEOF
15736#define $ac_tr_lib 1
15737_ACEOF
15738
15739 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15740echo "${ECHO_T}yes, in $ac_res" >&6
15741 ;;
15742esac
15743
15744
15745if test -n "$LIB_dn_expand"; then
15746 LIBS="$LIB_dn_expand $LIBS"
15747fi
15748
15749
15750
15751echo "$as_me:$LINENO: checking for _res" >&5
15752echo $ECHO_N "checking for _res... $ECHO_C" >&6
15753if test "${ac_cv_var__res+set}" = set; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15755else
15756
15757cat >conftest.$ac_ext <<_ACEOF
15758#line $LINENO "configure"
15759#include "confdefs.h"
15760extern int _res;
15761int foo() { return _res; }
15762#ifdef F77_DUMMY_MAIN
15763# ifdef __cplusplus
15764 extern "C"
15765# endif
15766 int F77_DUMMY_MAIN() { return 1; }
15767#endif
15768int
15769main ()
15770{
15771foo()
15772 ;
15773 return 0;
15774}
15775_ACEOF
15776rm -f conftest.$ac_objext conftest$ac_exeext
15777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15778 (eval $ac_link) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
15782 { ac_try='test -s conftest$ac_exeext'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_cv_var__res=yes
15789else
15790 echo "$as_me: failed program was:" >&5
15791cat conftest.$ac_ext >&5
15792ac_cv_var__res=no
15793fi
15794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15795
15796fi
15797
15798ac_foo=`eval echo \\$ac_cv_var__res`
15799echo "$as_me:$LINENO: result: $ac_foo" >&5
15800echo "${ECHO_T}$ac_foo" >&6
15801if test "$ac_foo" = yes; then
15802
15803cat >>confdefs.h <<_ACEOF
15804#define HAVE__RES 1
15805_ACEOF
15806
15807
15808echo "$as_me:$LINENO: checking if _res is properly declared" >&5
15809echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
15810if test "${ac_cv_var__res_declaration+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812else
15813
15814cat >conftest.$ac_ext <<_ACEOF
15815#line $LINENO "configure"
15816#include "confdefs.h"
15817#include <stdio.h>
15818#ifdef HAVE_SYS_TYPES_H
15819#include <sys/types.h>
15820#endif
15821#ifdef HAVE_NETINET_IN_H
15822#include <netinet/in.h>
15823#endif
15824#ifdef HAVE_ARPA_NAMESER_H
15825#include <arpa/nameser.h>
15826#endif
15827#ifdef HAVE_RESOLV_H
15828#include <resolv.h>
15829#endif
15830extern struct { int foo; } _res;
15831#ifdef F77_DUMMY_MAIN
15832# ifdef __cplusplus
15833 extern "C"
15834# endif
15835 int F77_DUMMY_MAIN() { return 1; }
15836#endif
15837int
15838main ()
15839{
15840_res.foo = 1;
15841 ;
15842 return 0;
15843}
15844_ACEOF
15845rm -f conftest.$ac_objext
15846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15847 (eval $ac_compile) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 eval "ac_cv_var__res_declaration=no"
15858else
15859 echo "$as_me: failed program was:" >&5
15860cat conftest.$ac_ext >&5
15861eval "ac_cv_var__res_declaration=yes"
15862fi
15863rm -f conftest.$ac_objext conftest.$ac_ext
15864
15865fi
15866
15867
15868
15869
15870echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
15871echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
15872if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
15873
15874cat >>confdefs.h <<\_ACEOF
15875#define HAVE__RES_DECLARATION 1
15876_ACEOF
15877
15878fi
15879
15880
15881fi
15882
15883
15884
15885
15886echo "$as_me:$LINENO: checking for working snprintf" >&5
15887echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
15888if test "${ac_cv_func_snprintf_working+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890else
15891 ac_cv_func_snprintf_working=yes
15892if test "$cross_compiling" = yes; then
15893 :
15894else
15895 cat >conftest.$ac_ext <<_ACEOF
15896#line $LINENO "configure"
15897#include "confdefs.h"
15898
15899#include <stdio.h>
15900#include <string.h>
15901int main()
15902{
15903 char foo[3];
15904 snprintf(foo, 2, "12");
15905 return strcmp(foo, "1");
15906}
15907_ACEOF
15908rm -f conftest$ac_exeext
15909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15910 (eval $ac_link) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 :
15920else
15921 echo "$as_me: program exited with status $ac_status" >&5
15922echo "$as_me: failed program was:" >&5
15923cat conftest.$ac_ext >&5
15924( exit $ac_status )
15925ac_cv_func_snprintf_working=no
15926fi
15927rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15928fi
15929fi
15930echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
15931echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
15932
15933if test "$ac_cv_func_snprintf_working" = yes; then
15934
15935cat >>confdefs.h <<_ACEOF
15936#define HAVE_SNPRINTF 1
15937_ACEOF
15938
15939fi
15940if test "$ac_cv_func_snprintf_working" = yes; then
15941
15942if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
15943echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
15944echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
15945if test "${ac_cv_func_snprintf_noproto+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15947else
15948 cat >conftest.$ac_ext <<_ACEOF
15949#line $LINENO "configure"
15950#include "confdefs.h"
15951#include <stdio.h>
15952#ifdef F77_DUMMY_MAIN
15953# ifdef __cplusplus
15954 extern "C"
15955# endif
15956 int F77_DUMMY_MAIN() { return 1; }
15957#endif
15958int
15959main ()
15960{
15961struct foo { int foo; } xx;
15962extern int snprintf (struct foo*);
15963snprintf(&xx);
15964
15965 ;
15966 return 0;
15967}
15968_ACEOF
15969rm -f conftest.$ac_objext
15970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971 (eval $ac_compile) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 eval "ac_cv_func_snprintf_noproto=yes"
15982else
15983 echo "$as_me: failed program was:" >&5
15984cat conftest.$ac_ext >&5
15985eval "ac_cv_func_snprintf_noproto=no"
15986fi
15987rm -f conftest.$ac_objext conftest.$ac_ext
15988fi
15989echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
15990echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
15991if test "$ac_cv_func_snprintf_noproto" = yes; then
15992
15993cat >>confdefs.h <<\_ACEOF
15994#define NEED_SNPRINTF_PROTO 1
15995_ACEOF
15996
15997fi
15998fi
15999
16000fi
16001
16002
16003echo "$as_me:$LINENO: checking for working vsnprintf" >&5
16004echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
16005if test "${ac_cv_func_vsnprintf_working+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007else
16008 ac_cv_func_vsnprintf_working=yes
16009if test "$cross_compiling" = yes; then
16010 :
16011else
16012 cat >conftest.$ac_ext <<_ACEOF
16013#line $LINENO "configure"
16014#include "confdefs.h"
16015
16016#include <stdio.h>
16017#include <string.h>
16018#include <stdarg.h>
16019
16020int foo(int num, ...)
16021{
16022 char bar[3];
16023 va_list arg;
16024 va_start(arg, num);
16025 vsnprintf(bar, 2, "%s", arg);
16026 va_end(arg);
16027 return strcmp(bar, "1");
16028}
16029
16030
16031int main()
16032{
16033 return foo(0, "12");
16034}
16035_ACEOF
16036rm -f conftest$ac_exeext
16037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038 (eval $ac_link) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 :
16048else
16049 echo "$as_me: program exited with status $ac_status" >&5
16050echo "$as_me: failed program was:" >&5
16051cat conftest.$ac_ext >&5
16052( exit $ac_status )
16053ac_cv_func_vsnprintf_working=no
16054fi
16055rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16056fi
16057fi
16058echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
16059echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
16060
16061if test "$ac_cv_func_vsnprintf_working" = yes; then
16062
16063cat >>confdefs.h <<_ACEOF
16064#define HAVE_VSNPRINTF 1
16065_ACEOF
16066
16067fi
16068if test "$ac_cv_func_vsnprintf_working" = yes; then
16069
16070if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
16071echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
16072echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
16073if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16075else
16076 cat >conftest.$ac_ext <<_ACEOF
16077#line $LINENO "configure"
16078#include "confdefs.h"
16079#include <stdio.h>
16080#ifdef F77_DUMMY_MAIN
16081# ifdef __cplusplus
16082 extern "C"
16083# endif
16084 int F77_DUMMY_MAIN() { return 1; }
16085#endif
16086int
16087main ()
16088{
16089struct foo { int foo; } xx;
16090extern int vsnprintf (struct foo*);
16091vsnprintf(&xx);
16092
16093 ;
16094 return 0;
16095}
16096_ACEOF
16097rm -f conftest.$ac_objext
16098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099 (eval $ac_compile) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 eval "ac_cv_func_vsnprintf_noproto=yes"
16110else
16111 echo "$as_me: failed program was:" >&5
16112cat conftest.$ac_ext >&5
16113eval "ac_cv_func_vsnprintf_noproto=no"
16114fi
16115rm -f conftest.$ac_objext conftest.$ac_ext
16116fi
16117echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
16118echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
16119if test "$ac_cv_func_vsnprintf_noproto" = yes; then
16120
16121cat >>confdefs.h <<\_ACEOF
16122#define NEED_VSNPRINTF_PROTO 1
16123_ACEOF
16124
16125fi
16126fi
16127
16128fi
16129
16130
16131
16132echo "$as_me:$LINENO: checking for working glob" >&5
16133echo $ECHO_N "checking for working glob... $ECHO_C" >&6
16134if test "${ac_cv_func_glob_working+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136else
16137 ac_cv_func_glob_working=yes
16138cat >conftest.$ac_ext <<_ACEOF
16139#line $LINENO "configure"
16140#include "confdefs.h"
16141
16142#include <stdio.h>
16143#include <glob.h>
16144#ifdef F77_DUMMY_MAIN
16145# ifdef __cplusplus
16146 extern "C"
16147# endif
16148 int F77_DUMMY_MAIN() { return 1; }
16149#endif
16150int
16151main ()
16152{
16153
16154glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
16155#ifdef GLOB_MAXPATH
16156GLOB_MAXPATH
16157#else
16158GLOB_LIMIT
16159#endif
16160,
16161NULL, NULL);
16162
16163 ;
16164 return 0;
16165}
16166_ACEOF
16167rm -f conftest.$ac_objext conftest$ac_exeext
16168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16169 (eval $ac_link) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -s conftest$ac_exeext'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16179 :
16180else
16181 echo "$as_me: failed program was:" >&5
16182cat conftest.$ac_ext >&5
16183ac_cv_func_glob_working=no
16184fi
16185rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16186fi
16187echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
16188echo "${ECHO_T}$ac_cv_func_glob_working" >&6
16189
16190if test "$ac_cv_func_glob_working" = yes; then
16191
16192cat >>confdefs.h <<\_ACEOF
16193#define HAVE_GLOB 1
16194_ACEOF
16195
16196fi
16197if test "$ac_cv_func_glob_working" = yes; then
16198
16199if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
16200echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
16201echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
16202if test "${ac_cv_func_glob_noproto+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16204else
16205 cat >conftest.$ac_ext <<_ACEOF
16206#line $LINENO "configure"
16207#include "confdefs.h"
16208#include <stdio.h>
16209#include <glob.h>
16210#ifdef F77_DUMMY_MAIN
16211# ifdef __cplusplus
16212 extern "C"
16213# endif
16214 int F77_DUMMY_MAIN() { return 1; }
16215#endif
16216int
16217main ()
16218{
16219struct foo { int foo; } xx;
16220extern int glob (struct foo*);
16221glob(&xx);
16222
16223 ;
16224 return 0;
16225}
16226_ACEOF
16227rm -f conftest.$ac_objext
16228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16229 (eval $ac_compile) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } &&
16233 { ac_try='test -s conftest.$ac_objext'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 eval "ac_cv_func_glob_noproto=yes"
16240else
16241 echo "$as_me: failed program was:" >&5
16242cat conftest.$ac_ext >&5
16243eval "ac_cv_func_glob_noproto=no"
16244fi
16245rm -f conftest.$ac_objext conftest.$ac_ext
16246fi
16247echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
16248echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
16249if test "$ac_cv_func_glob_noproto" = yes; then
16250
16251cat >>confdefs.h <<\_ACEOF
16252#define NEED_GLOB_PROTO 1
16253_ACEOF
16254
16255fi
16256fi
16257
16258fi
16259
16260if test "$ac_cv_func_glob_working" != yes; then
16261 LIBOBJS="$LIBOBJS glob.$ac_objext"
16262fi
16263
16264
16265if test "$ac_cv_func_glob_working" = yes; then
16266 have_glob_h_TRUE=
16267 have_glob_h_FALSE='#'
16268else
16269 have_glob_h_TRUE='#'
16270 have_glob_h_FALSE=
16271fi
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301for ac_func in \
16302 asnprintf \
16303 asprintf \
16304 atexit \
16305 cgetent \
16306 getconfattr \
16307 getprogname \
16308 getrlimit \
16309 getspnam \
16310 initstate \
16311 issetugid \
16312 on_exit \
16313 random \
16314 setprogname \
16315 setstate \
16316 strsvis \
16317 strunvis \
16318 strvis \
16319 strvisx \
16320 svis \
16321 sysconf \
16322 sysctl \
16323 uname \
16324 unvis \
16325 vasnprintf \
16326 vasprintf \
16327 vis \
16328
16329do
16330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331echo "$as_me:$LINENO: checking for $ac_func" >&5
16332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16333if eval "test \"\${$as_ac_var+set}\" = set"; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335else
16336 cat >conftest.$ac_ext <<_ACEOF
16337#line $LINENO "configure"
16338#include "confdefs.h"
16339/* System header to define __stub macros and hopefully few prototypes,
16340 which can conflict with char $ac_func (); below. */
16341#include <assert.h>
16342/* Override any gcc2 internal prototype to avoid an error. */
16343#ifdef __cplusplus
16344extern "C"
16345#endif
16346/* We use char because int might match the return type of a gcc2
16347 builtin and then its argument prototype would still apply. */
16348char $ac_func ();
16349char (*f) ();
16350
16351#ifdef F77_DUMMY_MAIN
16352# ifdef __cplusplus
16353 extern "C"
16354# endif
16355 int F77_DUMMY_MAIN() { return 1; }
16356#endif
16357int
16358main ()
16359{
16360/* The GNU C library defines this for functions which it implements
16361 to always fail with ENOSYS. Some functions are actually named
16362 something starting with __ and the normal name is an alias. */
16363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16364choke me
16365#else
16366f = $ac_func;
16367#endif
16368
16369 ;
16370 return 0;
16371}
16372_ACEOF
16373rm -f conftest.$ac_objext conftest$ac_exeext
16374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16375 (eval $ac_link) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } &&
16379 { ac_try='test -s conftest$ac_exeext'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 eval "$as_ac_var=yes"
16386else
16387 echo "$as_me: failed program was:" >&5
16388cat conftest.$ac_ext >&5
16389eval "$as_ac_var=no"
16390fi
16391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16392fi
16393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16394echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16395if test `eval echo '${'$as_ac_var'}'` = yes; then
16396 cat >>confdefs.h <<_ACEOF
16397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16398_ACEOF
16399
16400fi
16401done
16402
16403
16404if test "$ac_cv_func_cgetent" = no; then
16405 LIBOBJS="$LIBOBJS getcap.$ac_objext"
16406fi
16407
16408
16409
16410
16411
16412
16413
16414
16415echo "$as_me:$LINENO: checking for getsockopt" >&5
16416echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
16417if test "${ac_cv_funclib_getsockopt+set}" = set; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16419else
16420
16421if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
16422 ac_save_LIBS="$LIBS"
16423 for ac_lib in "" ; do
16424 case "$ac_lib" in
16425 "") ;;
16426 yes) ac_lib="" ;;
16427 no) continue ;;
16428 -l*) ;;
16429 *) ac_lib="-l$ac_lib" ;;
16430 esac
16431 LIBS=" $ac_lib $ac_save_LIBS"
16432 cat >conftest.$ac_ext <<_ACEOF
16433#line $LINENO "configure"
16434#include "confdefs.h"
16435#ifdef HAVE_SYS_TYPES_H
16436#include <sys/types.h>
16437#endif
16438#ifdef HAVE_SYS_SOCKET_H
16439#include <sys/socket.h>
16440#endif
16441#ifdef F77_DUMMY_MAIN
16442# ifdef __cplusplus
16443 extern "C"
16444# endif
16445 int F77_DUMMY_MAIN() { return 1; }
16446#endif
16447int
16448main ()
16449{
16450getsockopt(0,0,0,0,0)
16451 ;
16452 return 0;
16453}
16454_ACEOF
16455rm -f conftest.$ac_objext conftest$ac_exeext
16456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16457 (eval $ac_link) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -s conftest$ac_exeext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
16468else
16469 echo "$as_me: failed program was:" >&5
16470cat conftest.$ac_ext >&5
16471fi
16472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16473 done
16474 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
16475 LIBS="$ac_save_LIBS"
16476fi
16477
16478fi
16479
16480
16481eval "ac_res=\$ac_cv_funclib_getsockopt"
16482
16483if false; then
16484
16485for ac_func in getsockopt
16486do
16487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16488echo "$as_me:$LINENO: checking for $ac_func" >&5
16489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16490if eval "test \"\${$as_ac_var+set}\" = set"; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16492else
16493 cat >conftest.$ac_ext <<_ACEOF
16494#line $LINENO "configure"
16495#include "confdefs.h"
16496/* System header to define __stub macros and hopefully few prototypes,
16497 which can conflict with char $ac_func (); below. */
16498#include <assert.h>
16499/* Override any gcc2 internal prototype to avoid an error. */
16500#ifdef __cplusplus
16501extern "C"
16502#endif
16503/* We use char because int might match the return type of a gcc2
16504 builtin and then its argument prototype would still apply. */
16505char $ac_func ();
16506char (*f) ();
16507
16508#ifdef F77_DUMMY_MAIN
16509# ifdef __cplusplus
16510 extern "C"
16511# endif
16512 int F77_DUMMY_MAIN() { return 1; }
16513#endif
16514int
16515main ()
16516{
16517/* The GNU C library defines this for functions which it implements
16518 to always fail with ENOSYS. Some functions are actually named
16519 something starting with __ and the normal name is an alias. */
16520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16521choke me
16522#else
16523f = $ac_func;
16524#endif
16525
16526 ;
16527 return 0;
16528}
16529_ACEOF
16530rm -f conftest.$ac_objext conftest$ac_exeext
16531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 eval "$as_ac_var=yes"
16543else
16544 echo "$as_me: failed program was:" >&5
16545cat conftest.$ac_ext >&5
16546eval "$as_ac_var=no"
16547fi
16548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16549fi
16550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16552if test `eval echo '${'$as_ac_var'}'` = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16555_ACEOF
16556
16557fi
16558done
16559
16560fi
16561# getsockopt
16562eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16563eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16564eval "LIB_getsockopt=$ac_res"
16565
16566case "$ac_res" in
16567 yes)
16568 eval "ac_cv_func_getsockopt=yes"
16569 eval "LIB_getsockopt="
16570 cat >>confdefs.h <<_ACEOF
16571#define $ac_tr_func 1
16572_ACEOF
16573
16574 echo "$as_me:$LINENO: result: yes" >&5
16575echo "${ECHO_T}yes" >&6
16576 ;;
16577 no)
16578 eval "ac_cv_func_getsockopt=no"
16579 eval "LIB_getsockopt="
16580 echo "$as_me:$LINENO: result: no" >&5
16581echo "${ECHO_T}no" >&6
16582 ;;
16583 *)
16584 eval "ac_cv_func_getsockopt=yes"
16585 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16586 cat >>confdefs.h <<_ACEOF
16587#define $ac_tr_func 1
16588_ACEOF
16589
16590 cat >>confdefs.h <<_ACEOF
16591#define $ac_tr_lib 1
16592_ACEOF
16593
16594 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16595echo "${ECHO_T}yes, in $ac_res" >&6
16596 ;;
16597esac
16598
16599
16600
16601
16602
16603echo "$as_me:$LINENO: checking for setsockopt" >&5
16604echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
16605if test "${ac_cv_funclib_setsockopt+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607else
16608
16609if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
16610 ac_save_LIBS="$LIBS"
16611 for ac_lib in "" ; do
16612 case "$ac_lib" in
16613 "") ;;
16614 yes) ac_lib="" ;;
16615 no) continue ;;
16616 -l*) ;;
16617 *) ac_lib="-l$ac_lib" ;;
16618 esac
16619 LIBS=" $ac_lib $ac_save_LIBS"
16620 cat >conftest.$ac_ext <<_ACEOF
16621#line $LINENO "configure"
16622#include "confdefs.h"
16623#ifdef HAVE_SYS_TYPES_H
16624#include <sys/types.h>
16625#endif
16626#ifdef HAVE_SYS_SOCKET_H
16627#include <sys/socket.h>
16628#endif
16629#ifdef F77_DUMMY_MAIN
16630# ifdef __cplusplus
16631 extern "C"
16632# endif
16633 int F77_DUMMY_MAIN() { return 1; }
16634#endif
16635int
16636main ()
16637{
16638setsockopt(0,0,0,0,0)
16639 ;
16640 return 0;
16641}
16642_ACEOF
16643rm -f conftest.$ac_objext conftest$ac_exeext
16644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16645 (eval $ac_link) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -s conftest$ac_exeext'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
16656else
16657 echo "$as_me: failed program was:" >&5
16658cat conftest.$ac_ext >&5
16659fi
16660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16661 done
16662 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
16663 LIBS="$ac_save_LIBS"
16664fi
16665
16666fi
16667
16668
16669eval "ac_res=\$ac_cv_funclib_setsockopt"
16670
16671if false; then
16672
16673for ac_func in setsockopt
16674do
16675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16676echo "$as_me:$LINENO: checking for $ac_func" >&5
16677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16678if eval "test \"\${$as_ac_var+set}\" = set"; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
16681 cat >conftest.$ac_ext <<_ACEOF
16682#line $LINENO "configure"
16683#include "confdefs.h"
16684/* System header to define __stub macros and hopefully few prototypes,
16685 which can conflict with char $ac_func (); below. */
16686#include <assert.h>
16687/* Override any gcc2 internal prototype to avoid an error. */
16688#ifdef __cplusplus
16689extern "C"
16690#endif
16691/* We use char because int might match the return type of a gcc2
16692 builtin and then its argument prototype would still apply. */
16693char $ac_func ();
16694char (*f) ();
16695
16696#ifdef F77_DUMMY_MAIN
16697# ifdef __cplusplus
16698 extern "C"
16699# endif
16700 int F77_DUMMY_MAIN() { return 1; }
16701#endif
16702int
16703main ()
16704{
16705/* The GNU C library defines this for functions which it implements
16706 to always fail with ENOSYS. Some functions are actually named
16707 something starting with __ and the normal name is an alias. */
16708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16709choke me
16710#else
16711f = $ac_func;
16712#endif
16713
16714 ;
16715 return 0;
16716}
16717_ACEOF
16718rm -f conftest.$ac_objext conftest$ac_exeext
16719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16720 (eval $ac_link) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -s conftest$ac_exeext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 eval "$as_ac_var=yes"
16731else
16732 echo "$as_me: failed program was:" >&5
16733cat conftest.$ac_ext >&5
16734eval "$as_ac_var=no"
16735fi
16736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16737fi
16738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16739echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16740if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743_ACEOF
16744
16745fi
16746done
16747
16748fi
16749# setsockopt
16750eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16751eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16752eval "LIB_setsockopt=$ac_res"
16753
16754case "$ac_res" in
16755 yes)
16756 eval "ac_cv_func_setsockopt=yes"
16757 eval "LIB_setsockopt="
16758 cat >>confdefs.h <<_ACEOF
16759#define $ac_tr_func 1
16760_ACEOF
16761
16762 echo "$as_me:$LINENO: result: yes" >&5
16763echo "${ECHO_T}yes" >&6
16764 ;;
16765 no)
16766 eval "ac_cv_func_setsockopt=no"
16767 eval "LIB_setsockopt="
16768 echo "$as_me:$LINENO: result: no" >&5
16769echo "${ECHO_T}no" >&6
16770 ;;
16771 *)
16772 eval "ac_cv_func_setsockopt=yes"
16773 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16774 cat >>confdefs.h <<_ACEOF
16775#define $ac_tr_func 1
16776_ACEOF
16777
16778 cat >>confdefs.h <<_ACEOF
16779#define $ac_tr_lib 1
16780_ACEOF
16781
16782 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16783echo "${ECHO_T}yes, in $ac_res" >&6
16784 ;;
16785esac
16786
16787
16788
16789
16790
16791
16792
16793echo "$as_me:$LINENO: checking for hstrerror" >&5
16794echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
16795if test "${ac_cv_funclib_hstrerror+set}" = set; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16797else
16798
16799if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
16800 ac_save_LIBS="$LIBS"
16801 for ac_lib in "" resolv; do
16802 case "$ac_lib" in
16803 "") ;;
16804 yes) ac_lib="" ;;
16805 no) continue ;;
16806 -l*) ;;
16807 *) ac_lib="-l$ac_lib" ;;
16808 esac
16809 LIBS=" $ac_lib $ac_save_LIBS"
16810 cat >conftest.$ac_ext <<_ACEOF
16811#line $LINENO "configure"
16812#include "confdefs.h"
16813#ifdef HAVE_NETDB_H
16814#include <netdb.h>
16815#endif
16816#ifdef F77_DUMMY_MAIN
16817# ifdef __cplusplus
16818 extern "C"
16819# endif
16820 int F77_DUMMY_MAIN() { return 1; }
16821#endif
16822int
16823main ()
16824{
16825hstrerror(17)
16826 ;
16827 return 0;
16828}
16829_ACEOF
16830rm -f conftest.$ac_objext conftest$ac_exeext
16831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16832 (eval $ac_link) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -s conftest$ac_exeext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
16843else
16844 echo "$as_me: failed program was:" >&5
16845cat conftest.$ac_ext >&5
16846fi
16847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16848 done
16849 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
16850 LIBS="$ac_save_LIBS"
16851fi
16852
16853fi
16854
16855
16856eval "ac_res=\$ac_cv_funclib_hstrerror"
16857
16858if false; then
16859
16860for ac_func in hstrerror
16861do
16862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16863echo "$as_me:$LINENO: checking for $ac_func" >&5
16864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16865if eval "test \"\${$as_ac_var+set}\" = set"; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16867else
16868 cat >conftest.$ac_ext <<_ACEOF
16869#line $LINENO "configure"
16870#include "confdefs.h"
16871/* System header to define __stub macros and hopefully few prototypes,
16872 which can conflict with char $ac_func (); below. */
16873#include <assert.h>
16874/* Override any gcc2 internal prototype to avoid an error. */
16875#ifdef __cplusplus
16876extern "C"
16877#endif
16878/* We use char because int might match the return type of a gcc2
16879 builtin and then its argument prototype would still apply. */
16880char $ac_func ();
16881char (*f) ();
16882
16883#ifdef F77_DUMMY_MAIN
16884# ifdef __cplusplus
16885 extern "C"
16886# endif
16887 int F77_DUMMY_MAIN() { return 1; }
16888#endif
16889int
16890main ()
16891{
16892/* The GNU C library defines this for functions which it implements
16893 to always fail with ENOSYS. Some functions are actually named
16894 something starting with __ and the normal name is an alias. */
16895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16896choke me
16897#else
16898f = $ac_func;
16899#endif
16900
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext conftest$ac_exeext
16906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907 (eval $ac_link) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 eval "$as_ac_var=yes"
16918else
16919 echo "$as_me: failed program was:" >&5
16920cat conftest.$ac_ext >&5
16921eval "$as_ac_var=no"
16922fi
16923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16924fi
16925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16927if test `eval echo '${'$as_ac_var'}'` = yes; then
16928 cat >>confdefs.h <<_ACEOF
16929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16930_ACEOF
16931
16932fi
16933done
16934
16935fi
16936# hstrerror
16937eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16938eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16939eval "LIB_hstrerror=$ac_res"
16940
16941case "$ac_res" in
16942 yes)
16943 eval "ac_cv_func_hstrerror=yes"
16944 eval "LIB_hstrerror="
16945 cat >>confdefs.h <<_ACEOF
16946#define $ac_tr_func 1
16947_ACEOF
16948
16949 echo "$as_me:$LINENO: result: yes" >&5
16950echo "${ECHO_T}yes" >&6
16951 ;;
16952 no)
16953 eval "ac_cv_func_hstrerror=no"
16954 eval "LIB_hstrerror="
16955 echo "$as_me:$LINENO: result: no" >&5
16956echo "${ECHO_T}no" >&6
16957 ;;
16958 *)
16959 eval "ac_cv_func_hstrerror=yes"
16960 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16961 cat >>confdefs.h <<_ACEOF
16962#define $ac_tr_func 1
16963_ACEOF
16964
16965 cat >>confdefs.h <<_ACEOF
16966#define $ac_tr_lib 1
16967_ACEOF
16968
16969 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16970echo "${ECHO_T}yes, in $ac_res" >&6
16971 ;;
16972esac
16973
16974
16975if test -n "$LIB_hstrerror"; then
16976 LIBS="$LIB_hstrerror $LIBS"
16977fi
16978
16979if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
16980 LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
16981fi
16982
16983
16984if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
16985echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
16986echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
16987if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16989else
16990 cat >conftest.$ac_ext <<_ACEOF
16991#line $LINENO "configure"
16992#include "confdefs.h"
16993
16994#ifdef HAVE_NETDB_H
16995#include <netdb.h>
16996#endif
16997#ifdef F77_DUMMY_MAIN
16998# ifdef __cplusplus
16999 extern "C"
17000# endif
17001 int F77_DUMMY_MAIN() { return 1; }
17002#endif
17003int
17004main ()
17005{
17006struct foo { int foo; } xx;
17007extern int hstrerror (struct foo*);
17008hstrerror(&xx);
17009
17010 ;
17011 return 0;
17012}
17013_ACEOF
17014rm -f conftest.$ac_objext
17015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 eval "ac_cv_func_hstrerror_noproto=yes"
17027else
17028 echo "$as_me: failed program was:" >&5
17029cat conftest.$ac_ext >&5
17030eval "ac_cv_func_hstrerror_noproto=no"
17031fi
17032rm -f conftest.$ac_objext conftest.$ac_ext
17033fi
17034echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
17035echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
17036if test "$ac_cv_func_hstrerror_noproto" = yes; then
17037
17038cat >>confdefs.h <<\_ACEOF
17039#define NEED_HSTRERROR_PROTO 1
17040_ACEOF
17041
17042fi
17043fi
17044
17045
17046
17047if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
17048echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
17049echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
17050if test "${ac_cv_func_asprintf_noproto+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17052else
17053 cat >conftest.$ac_ext <<_ACEOF
17054#line $LINENO "configure"
17055#include "confdefs.h"
17056
17057 #include <stdio.h>
17058 #include <string.h>
17059#ifdef F77_DUMMY_MAIN
17060# ifdef __cplusplus
17061 extern "C"
17062# endif
17063 int F77_DUMMY_MAIN() { return 1; }
17064#endif
17065int
17066main ()
17067{
17068struct foo { int foo; } xx;
17069extern int asprintf (struct foo*);
17070asprintf(&xx);
17071
17072 ;
17073 return 0;
17074}
17075_ACEOF
17076rm -f conftest.$ac_objext
17077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17078 (eval $ac_compile) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 eval "ac_cv_func_asprintf_noproto=yes"
17089else
17090 echo "$as_me: failed program was:" >&5
17091cat conftest.$ac_ext >&5
17092eval "ac_cv_func_asprintf_noproto=no"
17093fi
17094rm -f conftest.$ac_objext conftest.$ac_ext
17095fi
17096echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
17097echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
17098if test "$ac_cv_func_asprintf_noproto" = yes; then
17099
17100cat >>confdefs.h <<\_ACEOF
17101#define NEED_ASPRINTF_PROTO 1
17102_ACEOF
17103
17104fi
17105fi
17106
17107if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
17108echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
17109echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
17110if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112else
17113 cat >conftest.$ac_ext <<_ACEOF
17114#line $LINENO "configure"
17115#include "confdefs.h"
17116
17117 #include <stdio.h>
17118 #include <string.h>
17119#ifdef F77_DUMMY_MAIN
17120# ifdef __cplusplus
17121 extern "C"
17122# endif
17123 int F77_DUMMY_MAIN() { return 1; }
17124#endif
17125int
17126main ()
17127{
17128struct foo { int foo; } xx;
17129extern int vasprintf (struct foo*);
17130vasprintf(&xx);
17131
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext
17137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17138 (eval $ac_compile) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
17142 { ac_try='test -s conftest.$ac_objext'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 eval "ac_cv_func_vasprintf_noproto=yes"
17149else
17150 echo "$as_me: failed program was:" >&5
17151cat conftest.$ac_ext >&5
17152eval "ac_cv_func_vasprintf_noproto=no"
17153fi
17154rm -f conftest.$ac_objext conftest.$ac_ext
17155fi
17156echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
17157echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
17158if test "$ac_cv_func_vasprintf_noproto" = yes; then
17159
17160cat >>confdefs.h <<\_ACEOF
17161#define NEED_VASPRINTF_PROTO 1
17162_ACEOF
17163
17164fi
17165fi
17166
17167if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
17168echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
17169echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
17170if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172else
17173 cat >conftest.$ac_ext <<_ACEOF
17174#line $LINENO "configure"
17175#include "confdefs.h"
17176
17177 #include <stdio.h>
17178 #include <string.h>
17179#ifdef F77_DUMMY_MAIN
17180# ifdef __cplusplus
17181 extern "C"
17182# endif
17183 int F77_DUMMY_MAIN() { return 1; }
17184#endif
17185int
17186main ()
17187{
17188struct foo { int foo; } xx;
17189extern int asnprintf (struct foo*);
17190asnprintf(&xx);
17191
17192 ;
17193 return 0;
17194}
17195_ACEOF
17196rm -f conftest.$ac_objext
17197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198 (eval $ac_compile) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -s conftest.$ac_objext'
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 eval "ac_cv_func_asnprintf_noproto=yes"
17209else
17210 echo "$as_me: failed program was:" >&5
17211cat conftest.$ac_ext >&5
17212eval "ac_cv_func_asnprintf_noproto=no"
17213fi
17214rm -f conftest.$ac_objext conftest.$ac_ext
17215fi
17216echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
17217echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
17218if test "$ac_cv_func_asnprintf_noproto" = yes; then
17219
17220cat >>confdefs.h <<\_ACEOF
17221#define NEED_ASNPRINTF_PROTO 1
17222_ACEOF
17223
17224fi
17225fi
17226
17227if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
17228echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
17229echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
17230if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17232else
17233 cat >conftest.$ac_ext <<_ACEOF
17234#line $LINENO "configure"
17235#include "confdefs.h"
17236
17237 #include <stdio.h>
17238 #include <string.h>
17239#ifdef F77_DUMMY_MAIN
17240# ifdef __cplusplus
17241 extern "C"
17242# endif
17243 int F77_DUMMY_MAIN() { return 1; }
17244#endif
17245int
17246main ()
17247{
17248struct foo { int foo; } xx;
17249extern int vasnprintf (struct foo*);
17250vasnprintf(&xx);
17251
17252 ;
17253 return 0;
17254}
17255_ACEOF
17256rm -f conftest.$ac_objext
17257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258 (eval $ac_compile) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -s conftest.$ac_objext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 eval "ac_cv_func_vasnprintf_noproto=yes"
17269else
17270 echo "$as_me: failed program was:" >&5
17271cat conftest.$ac_ext >&5
17272eval "ac_cv_func_vasnprintf_noproto=no"
17273fi
17274rm -f conftest.$ac_objext conftest.$ac_ext
17275fi
17276echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
17277echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
17278if test "$ac_cv_func_vasnprintf_noproto" = yes; then
17279
17280cat >>confdefs.h <<\_ACEOF
17281#define NEED_VASNPRINTF_PROTO 1
17282_ACEOF
17283
17284fi
17285fi
17286
17287
17288
17289
17290
17291echo "$as_me:$LINENO: checking for bswap16" >&5
17292echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
17293if test "${ac_cv_funclib_bswap16+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295else
17296
17297if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
17298 ac_save_LIBS="$LIBS"
17299 for ac_lib in "" ; do
17300 case "$ac_lib" in
17301 "") ;;
17302 yes) ac_lib="" ;;
17303 no) continue ;;
17304 -l*) ;;
17305 *) ac_lib="-l$ac_lib" ;;
17306 esac
17307 LIBS=" $ac_lib $ac_save_LIBS"
17308 cat >conftest.$ac_ext <<_ACEOF
17309#line $LINENO "configure"
17310#include "confdefs.h"
17311#ifdef HAVE_SYS_BSWAP_H
17312#include <sys/bswap.h>
17313#endif
17314#ifdef F77_DUMMY_MAIN
17315# ifdef __cplusplus
17316 extern "C"
17317# endif
17318 int F77_DUMMY_MAIN() { return 1; }
17319#endif
17320int
17321main ()
17322{
17323bswap16(0)
17324 ;
17325 return 0;
17326}
17327_ACEOF
17328rm -f conftest.$ac_objext conftest$ac_exeext
17329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330 (eval $ac_link) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -s conftest$ac_exeext'
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
17340 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
17341else
17342 echo "$as_me: failed program was:" >&5
17343cat conftest.$ac_ext >&5
17344fi
17345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17346 done
17347 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
17348 LIBS="$ac_save_LIBS"
17349fi
17350
17351fi
17352
17353
17354eval "ac_res=\$ac_cv_funclib_bswap16"
17355
17356if false; then
17357
17358for ac_func in bswap16
17359do
17360as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361echo "$as_me:$LINENO: checking for $ac_func" >&5
17362echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17363if eval "test \"\${$as_ac_var+set}\" = set"; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17365else
17366 cat >conftest.$ac_ext <<_ACEOF
17367#line $LINENO "configure"
17368#include "confdefs.h"
17369/* System header to define __stub macros and hopefully few prototypes,
17370 which can conflict with char $ac_func (); below. */
17371#include <assert.h>
17372/* Override any gcc2 internal prototype to avoid an error. */
17373#ifdef __cplusplus
17374extern "C"
17375#endif
17376/* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17378char $ac_func ();
17379char (*f) ();
17380
17381#ifdef F77_DUMMY_MAIN
17382# ifdef __cplusplus
17383 extern "C"
17384# endif
17385 int F77_DUMMY_MAIN() { return 1; }
17386#endif
17387int
17388main ()
17389{
17390/* The GNU C library defines this for functions which it implements
17391 to always fail with ENOSYS. Some functions are actually named
17392 something starting with __ and the normal name is an alias. */
17393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17394choke me
17395#else
17396f = $ac_func;
17397#endif
17398
17399 ;
17400 return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext conftest$ac_exeext
17404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405 (eval $ac_link) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -s conftest$ac_exeext'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 eval "$as_ac_var=yes"
17416else
17417 echo "$as_me: failed program was:" >&5
17418cat conftest.$ac_ext >&5
17419eval "$as_ac_var=no"
17420fi
17421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17422fi
17423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17425if test `eval echo '${'$as_ac_var'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17428_ACEOF
17429
17430fi
17431done
17432
17433fi
17434# bswap16
17435eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17436eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17437eval "LIB_bswap16=$ac_res"
17438
17439case "$ac_res" in
17440 yes)
17441 eval "ac_cv_func_bswap16=yes"
17442 eval "LIB_bswap16="
17443 cat >>confdefs.h <<_ACEOF
17444#define $ac_tr_func 1
17445_ACEOF
17446
17447 echo "$as_me:$LINENO: result: yes" >&5
17448echo "${ECHO_T}yes" >&6
17449 ;;
17450 no)
17451 eval "ac_cv_func_bswap16=no"
17452 eval "LIB_bswap16="
17453 echo "$as_me:$LINENO: result: no" >&5
17454echo "${ECHO_T}no" >&6
17455 ;;
17456 *)
17457 eval "ac_cv_func_bswap16=yes"
17458 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17459 cat >>confdefs.h <<_ACEOF
17460#define $ac_tr_func 1
17461_ACEOF
17462
17463 cat >>confdefs.h <<_ACEOF
17464#define $ac_tr_lib 1
17465_ACEOF
17466
17467 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17468echo "${ECHO_T}yes, in $ac_res" >&6
17469 ;;
17470esac
17471
17472
17473
17474
17475
17476
17477echo "$as_me:$LINENO: checking for bswap32" >&5
17478echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
17479if test "${ac_cv_funclib_bswap32+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17481else
17482
17483if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
17484 ac_save_LIBS="$LIBS"
17485 for ac_lib in "" ; do
17486 case "$ac_lib" in
17487 "") ;;
17488 yes) ac_lib="" ;;
17489 no) continue ;;
17490 -l*) ;;
17491 *) ac_lib="-l$ac_lib" ;;
17492 esac
17493 LIBS=" $ac_lib $ac_save_LIBS"
17494 cat >conftest.$ac_ext <<_ACEOF
17495#line $LINENO "configure"
17496#include "confdefs.h"
17497#ifdef HAVE_SYS_BSWAP_H
17498#include <sys/bswap.h>
17499#endif
17500#ifdef F77_DUMMY_MAIN
17501# ifdef __cplusplus
17502 extern "C"
17503# endif
17504 int F77_DUMMY_MAIN() { return 1; }
17505#endif
17506int
17507main ()
17508{
17509bswap32(0)
17510 ;
17511 return 0;
17512}
17513_ACEOF
17514rm -f conftest.$ac_objext conftest$ac_exeext
17515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516 (eval $ac_link) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17526 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
17527else
17528 echo "$as_me: failed program was:" >&5
17529cat conftest.$ac_ext >&5
17530fi
17531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17532 done
17533 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
17534 LIBS="$ac_save_LIBS"
17535fi
17536
17537fi
17538
17539
17540eval "ac_res=\$ac_cv_funclib_bswap32"
17541
17542if false; then
17543
17544for ac_func in bswap32
17545do
17546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17547echo "$as_me:$LINENO: checking for $ac_func" >&5
17548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17549if eval "test \"\${$as_ac_var+set}\" = set"; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17551else
17552 cat >conftest.$ac_ext <<_ACEOF
17553#line $LINENO "configure"
17554#include "confdefs.h"
17555/* System header to define __stub macros and hopefully few prototypes,
17556 which can conflict with char $ac_func (); below. */
17557#include <assert.h>
17558/* Override any gcc2 internal prototype to avoid an error. */
17559#ifdef __cplusplus
17560extern "C"
17561#endif
17562/* We use char because int might match the return type of a gcc2
17563 builtin and then its argument prototype would still apply. */
17564char $ac_func ();
17565char (*f) ();
17566
17567#ifdef F77_DUMMY_MAIN
17568# ifdef __cplusplus
17569 extern "C"
17570# endif
17571 int F77_DUMMY_MAIN() { return 1; }
17572#endif
17573int
17574main ()
17575{
17576/* The GNU C library defines this for functions which it implements
17577 to always fail with ENOSYS. Some functions are actually named
17578 something starting with __ and the normal name is an alias. */
17579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17580choke me
17581#else
17582f = $ac_func;
17583#endif
17584
17585 ;
17586 return 0;
17587}
17588_ACEOF
17589rm -f conftest.$ac_objext conftest$ac_exeext
17590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591 (eval $ac_link) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 eval "$as_ac_var=yes"
17602else
17603 echo "$as_me: failed program was:" >&5
17604cat conftest.$ac_ext >&5
17605eval "$as_ac_var=no"
17606fi
17607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17608fi
17609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17611if test `eval echo '${'$as_ac_var'}'` = yes; then
17612 cat >>confdefs.h <<_ACEOF
17613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17614_ACEOF
17615
17616fi
17617done
17618
17619fi
17620# bswap32
17621eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17622eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17623eval "LIB_bswap32=$ac_res"
17624
17625case "$ac_res" in
17626 yes)
17627 eval "ac_cv_func_bswap32=yes"
17628 eval "LIB_bswap32="
17629 cat >>confdefs.h <<_ACEOF
17630#define $ac_tr_func 1
17631_ACEOF
17632
17633 echo "$as_me:$LINENO: result: yes" >&5
17634echo "${ECHO_T}yes" >&6
17635 ;;
17636 no)
17637 eval "ac_cv_func_bswap32=no"
17638 eval "LIB_bswap32="
17639 echo "$as_me:$LINENO: result: no" >&5
17640echo "${ECHO_T}no" >&6
17641 ;;
17642 *)
17643 eval "ac_cv_func_bswap32=yes"
17644 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17645 cat >>confdefs.h <<_ACEOF
17646#define $ac_tr_func 1
17647_ACEOF
17648
17649 cat >>confdefs.h <<_ACEOF
17650#define $ac_tr_lib 1
17651_ACEOF
17652
17653 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17654echo "${ECHO_T}yes, in $ac_res" >&6
17655 ;;
17656esac
17657
17658
17659
17660
17661
17662
17663echo "$as_me:$LINENO: checking for pidfile" >&5
17664echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
17665if test "${ac_cv_funclib_pidfile+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17667else
17668
17669if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
17670 ac_save_LIBS="$LIBS"
17671 for ac_lib in "" util; do
17672 case "$ac_lib" in
17673 "") ;;
17674 yes) ac_lib="" ;;
17675 no) continue ;;
17676 -l*) ;;
17677 *) ac_lib="-l$ac_lib" ;;
17678 esac
17679 LIBS=" $ac_lib $ac_save_LIBS"
17680 cat >conftest.$ac_ext <<_ACEOF
17681#line $LINENO "configure"
17682#include "confdefs.h"
17683#ifdef HAVE_UTIL_H
17684#include <util.h>
17685#endif
17686#ifdef F77_DUMMY_MAIN
17687# ifdef __cplusplus
17688 extern "C"
17689# endif
17690 int F77_DUMMY_MAIN() { return 1; }
17691#endif
17692int
17693main ()
17694{
17695pidfile(0)
17696 ;
17697 return 0;
17698}
17699_ACEOF
17700rm -f conftest.$ac_objext conftest$ac_exeext
17701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702 (eval $ac_link) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } &&
17706 { ac_try='test -s conftest$ac_exeext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
17713else
17714 echo "$as_me: failed program was:" >&5
17715cat conftest.$ac_ext >&5
17716fi
17717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17718 done
17719 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
17720 LIBS="$ac_save_LIBS"
17721fi
17722
17723fi
17724
17725
17726eval "ac_res=\$ac_cv_funclib_pidfile"
17727
17728if false; then
17729
17730for ac_func in pidfile
17731do
17732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17733echo "$as_me:$LINENO: checking for $ac_func" >&5
17734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17735if eval "test \"\${$as_ac_var+set}\" = set"; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737else
17738 cat >conftest.$ac_ext <<_ACEOF
17739#line $LINENO "configure"
17740#include "confdefs.h"
17741/* System header to define __stub macros and hopefully few prototypes,
17742 which can conflict with char $ac_func (); below. */
17743#include <assert.h>
17744/* Override any gcc2 internal prototype to avoid an error. */
17745#ifdef __cplusplus
17746extern "C"
17747#endif
17748/* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17750char $ac_func ();
17751char (*f) ();
17752
17753#ifdef F77_DUMMY_MAIN
17754# ifdef __cplusplus
17755 extern "C"
17756# endif
17757 int F77_DUMMY_MAIN() { return 1; }
17758#endif
17759int
17760main ()
17761{
17762/* The GNU C library defines this for functions which it implements
17763 to always fail with ENOSYS. Some functions are actually named
17764 something starting with __ and the normal name is an alias. */
17765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17766choke me
17767#else
17768f = $ac_func;
17769#endif
17770
17771 ;
17772 return 0;
17773}
17774_ACEOF
17775rm -f conftest.$ac_objext conftest$ac_exeext
17776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777 (eval $ac_link) 2>&5
17778 ac_status=$?
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -s conftest$ac_exeext'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 eval "$as_ac_var=yes"
17788else
17789 echo "$as_me: failed program was:" >&5
17790cat conftest.$ac_ext >&5
17791eval "$as_ac_var=no"
17792fi
17793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17794fi
17795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17796echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17797if test `eval echo '${'$as_ac_var'}'` = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17800_ACEOF
17801
17802fi
17803done
17804
17805fi
17806# pidfile
17807eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17808eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17809eval "LIB_pidfile=$ac_res"
17810
17811case "$ac_res" in
17812 yes)
17813 eval "ac_cv_func_pidfile=yes"
17814 eval "LIB_pidfile="
17815 cat >>confdefs.h <<_ACEOF
17816#define $ac_tr_func 1
17817_ACEOF
17818
17819 echo "$as_me:$LINENO: result: yes" >&5
17820echo "${ECHO_T}yes" >&6
17821 ;;
17822 no)
17823 eval "ac_cv_func_pidfile=no"
17824 eval "LIB_pidfile="
17825 echo "$as_me:$LINENO: result: no" >&5
17826echo "${ECHO_T}no" >&6
17827 ;;
17828 *)
17829 eval "ac_cv_func_pidfile=yes"
17830 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17831 cat >>confdefs.h <<_ACEOF
17832#define $ac_tr_func 1
17833_ACEOF
17834
17835 cat >>confdefs.h <<_ACEOF
17836#define $ac_tr_lib 1
17837_ACEOF
17838
17839 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17840echo "${ECHO_T}yes, in $ac_res" >&6
17841 ;;
17842esac
17843
17844
17845
17846
17847
17848
17849
17850echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17851echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17852if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17854else
17855
17856if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
17857 ac_save_LIBS="$LIBS"
17858 for ac_lib in "" ; do
17859 case "$ac_lib" in
17860 "") ;;
17861 yes) ac_lib="" ;;
17862 no) continue ;;
17863 -l*) ;;
17864 *) ac_lib="-l$ac_lib" ;;
17865 esac
17866 LIBS=" $ac_lib $ac_save_LIBS"
17867 cat >conftest.$ac_ext <<_ACEOF
17868#line $LINENO "configure"
17869#include "confdefs.h"
17870#ifdef HAVE_NETDB_H
17871#include <netdb.h>
17872#endif
17873#ifdef F77_DUMMY_MAIN
17874# ifdef __cplusplus
17875 extern "C"
17876# endif
17877 int F77_DUMMY_MAIN() { return 1; }
17878#endif
17879int
17880main ()
17881{
17882getaddrinfo(0,0,0,0)
17883 ;
17884 return 0;
17885}
17886_ACEOF
17887rm -f conftest.$ac_objext conftest$ac_exeext
17888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -s conftest$ac_exeext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
17900else
17901 echo "$as_me: failed program was:" >&5
17902cat conftest.$ac_ext >&5
17903fi
17904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17905 done
17906 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
17907 LIBS="$ac_save_LIBS"
17908fi
17909
17910fi
17911
17912
17913eval "ac_res=\$ac_cv_funclib_getaddrinfo"
17914
17915if false; then
17916
17917for ac_func in getaddrinfo
17918do
17919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17920echo "$as_me:$LINENO: checking for $ac_func" >&5
17921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17922if eval "test \"\${$as_ac_var+set}\" = set"; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17924else
17925 cat >conftest.$ac_ext <<_ACEOF
17926#line $LINENO "configure"
17927#include "confdefs.h"
17928/* System header to define __stub macros and hopefully few prototypes,
17929 which can conflict with char $ac_func (); below. */
17930#include <assert.h>
17931/* Override any gcc2 internal prototype to avoid an error. */
17932#ifdef __cplusplus
17933extern "C"
17934#endif
17935/* We use char because int might match the return type of a gcc2
17936 builtin and then its argument prototype would still apply. */
17937char $ac_func ();
17938char (*f) ();
17939
17940#ifdef F77_DUMMY_MAIN
17941# ifdef __cplusplus
17942 extern "C"
17943# endif
17944 int F77_DUMMY_MAIN() { return 1; }
17945#endif
17946int
17947main ()
17948{
17949/* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17953choke me
17954#else
17955f = $ac_func;
17956#endif
17957
17958 ;
17959 return 0;
17960}
17961_ACEOF
17962rm -f conftest.$ac_objext conftest$ac_exeext
17963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964 (eval $ac_link) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
17968 { ac_try='test -s conftest$ac_exeext'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17974 eval "$as_ac_var=yes"
17975else
17976 echo "$as_me: failed program was:" >&5
17977cat conftest.$ac_ext >&5
17978eval "$as_ac_var=no"
17979fi
17980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17981fi
17982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17984if test `eval echo '${'$as_ac_var'}'` = yes; then
17985 cat >>confdefs.h <<_ACEOF
17986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17987_ACEOF
17988
17989fi
17990done
17991
17992fi
17993# getaddrinfo
17994eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17995eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17996eval "LIB_getaddrinfo=$ac_res"
17997
17998case "$ac_res" in
17999 yes)
18000 eval "ac_cv_func_getaddrinfo=yes"
18001 eval "LIB_getaddrinfo="
18002 cat >>confdefs.h <<_ACEOF
18003#define $ac_tr_func 1
18004_ACEOF
18005
18006 echo "$as_me:$LINENO: result: yes" >&5
18007echo "${ECHO_T}yes" >&6
18008 ;;
18009 no)
18010 eval "ac_cv_func_getaddrinfo=no"
18011 eval "LIB_getaddrinfo="
18012 echo "$as_me:$LINENO: result: no" >&5
18013echo "${ECHO_T}no" >&6
18014 ;;
18015 *)
18016 eval "ac_cv_func_getaddrinfo=yes"
18017 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18018 cat >>confdefs.h <<_ACEOF
18019#define $ac_tr_func 1
18020_ACEOF
18021
18022 cat >>confdefs.h <<_ACEOF
18023#define $ac_tr_lib 1
18024_ACEOF
18025
18026 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18027echo "${ECHO_T}yes, in $ac_res" >&6
18028 ;;
18029esac
18030
18031
18032if test -n "$LIB_getaddrinfo"; then
18033 LIBS="$LIB_getaddrinfo $LIBS"
18034fi
18035
18036if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
18037 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
18038fi
18039
18040
18041
18042
18043
18044
18045echo "$as_me:$LINENO: checking for getnameinfo" >&5
18046echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
18047if test "${ac_cv_funclib_getnameinfo+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18049else
18050
18051if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
18052 ac_save_LIBS="$LIBS"
18053 for ac_lib in "" ; do
18054 case "$ac_lib" in
18055 "") ;;
18056 yes) ac_lib="" ;;
18057 no) continue ;;
18058 -l*) ;;
18059 *) ac_lib="-l$ac_lib" ;;
18060 esac
18061 LIBS=" $ac_lib $ac_save_LIBS"
18062 cat >conftest.$ac_ext <<_ACEOF
18063#line $LINENO "configure"
18064#include "confdefs.h"
18065#ifdef HAVE_NETDB_H
18066#include <netdb.h>
18067#endif
18068#ifdef F77_DUMMY_MAIN
18069# ifdef __cplusplus
18070 extern "C"
18071# endif
18072 int F77_DUMMY_MAIN() { return 1; }
18073#endif
18074int
18075main ()
18076{
18077getnameinfo(0,0,0,0,0,0,0)
18078 ;
18079 return 0;
18080}
18081_ACEOF
18082rm -f conftest.$ac_objext conftest$ac_exeext
18083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084 (eval $ac_link) 2>&5
18085 ac_status=$?
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -s conftest$ac_exeext'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
18095else
18096 echo "$as_me: failed program was:" >&5
18097cat conftest.$ac_ext >&5
18098fi
18099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18100 done
18101 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
18102 LIBS="$ac_save_LIBS"
18103fi
18104
18105fi
18106
18107
18108eval "ac_res=\$ac_cv_funclib_getnameinfo"
18109
18110if false; then
18111
18112for ac_func in getnameinfo
18113do
18114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18115echo "$as_me:$LINENO: checking for $ac_func" >&5
18116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18117if eval "test \"\${$as_ac_var+set}\" = set"; then
18118 echo $ECHO_N "(cached) $ECHO_C" >&6
18119else
18120 cat >conftest.$ac_ext <<_ACEOF
18121#line $LINENO "configure"
18122#include "confdefs.h"
18123/* System header to define __stub macros and hopefully few prototypes,
18124 which can conflict with char $ac_func (); below. */
18125#include <assert.h>
18126/* Override any gcc2 internal prototype to avoid an error. */
18127#ifdef __cplusplus
18128extern "C"
18129#endif
18130/* We use char because int might match the return type of a gcc2
18131 builtin and then its argument prototype would still apply. */
18132char $ac_func ();
18133char (*f) ();
18134
18135#ifdef F77_DUMMY_MAIN
18136# ifdef __cplusplus
18137 extern "C"
18138# endif
18139 int F77_DUMMY_MAIN() { return 1; }
18140#endif
18141int
18142main ()
18143{
18144/* The GNU C library defines this for functions which it implements
18145 to always fail with ENOSYS. Some functions are actually named
18146 something starting with __ and the normal name is an alias. */
18147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18148choke me
18149#else
18150f = $ac_func;
18151#endif
18152
18153 ;
18154 return 0;
18155}
18156_ACEOF
18157rm -f conftest.$ac_objext conftest$ac_exeext
18158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18159 (eval $ac_link) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 eval "$as_ac_var=yes"
18170else
18171 echo "$as_me: failed program was:" >&5
18172cat conftest.$ac_ext >&5
18173eval "$as_ac_var=no"
18174fi
18175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18176fi
18177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18179if test `eval echo '${'$as_ac_var'}'` = yes; then
18180 cat >>confdefs.h <<_ACEOF
18181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18182_ACEOF
18183
18184fi
18185done
18186
18187fi
18188# getnameinfo
18189eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18190eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18191eval "LIB_getnameinfo=$ac_res"
18192
18193case "$ac_res" in
18194 yes)
18195 eval "ac_cv_func_getnameinfo=yes"
18196 eval "LIB_getnameinfo="
18197 cat >>confdefs.h <<_ACEOF
18198#define $ac_tr_func 1
18199_ACEOF
18200
18201 echo "$as_me:$LINENO: result: yes" >&5
18202echo "${ECHO_T}yes" >&6
18203 ;;
18204 no)
18205 eval "ac_cv_func_getnameinfo=no"
18206 eval "LIB_getnameinfo="
18207 echo "$as_me:$LINENO: result: no" >&5
18208echo "${ECHO_T}no" >&6
18209 ;;
18210 *)
18211 eval "ac_cv_func_getnameinfo=yes"
18212 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18213 cat >>confdefs.h <<_ACEOF
18214#define $ac_tr_func 1
18215_ACEOF
18216
18217 cat >>confdefs.h <<_ACEOF
18218#define $ac_tr_lib 1
18219_ACEOF
18220
18221 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18222echo "${ECHO_T}yes, in $ac_res" >&6
18223 ;;
18224esac
18225
18226
18227if test -n "$LIB_getnameinfo"; then
18228 LIBS="$LIB_getnameinfo $LIBS"
18229fi
18230
18231if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
18232 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
18233fi
18234
18235
18236
18237
18238
18239
18240echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
18241echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
18242if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18244else
18245
18246if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
18247 ac_save_LIBS="$LIBS"
18248 for ac_lib in "" ; do
18249 case "$ac_lib" in
18250 "") ;;
18251 yes) ac_lib="" ;;
18252 no) continue ;;
18253 -l*) ;;
18254 *) ac_lib="-l$ac_lib" ;;
18255 esac
18256 LIBS=" $ac_lib $ac_save_LIBS"
18257 cat >conftest.$ac_ext <<_ACEOF
18258#line $LINENO "configure"
18259#include "confdefs.h"
18260#ifdef HAVE_NETDB_H
18261#include <netdb.h>
18262#endif
18263#ifdef F77_DUMMY_MAIN
18264# ifdef __cplusplus
18265 extern "C"
18266# endif
18267 int F77_DUMMY_MAIN() { return 1; }
18268#endif
18269int
18270main ()
18271{
18272freeaddrinfo(0)
18273 ;
18274 return 0;
18275}
18276_ACEOF
18277rm -f conftest.$ac_objext conftest$ac_exeext
18278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18279 (eval $ac_link) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
18290else
18291 echo "$as_me: failed program was:" >&5
18292cat conftest.$ac_ext >&5
18293fi
18294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18295 done
18296 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
18297 LIBS="$ac_save_LIBS"
18298fi
18299
18300fi
18301
18302
18303eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
18304
18305if false; then
18306
18307for ac_func in freeaddrinfo
18308do
18309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18310echo "$as_me:$LINENO: checking for $ac_func" >&5
18311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18312if eval "test \"\${$as_ac_var+set}\" = set"; then
18313 echo $ECHO_N "(cached) $ECHO_C" >&6
18314else
18315 cat >conftest.$ac_ext <<_ACEOF
18316#line $LINENO "configure"
18317#include "confdefs.h"
18318/* System header to define __stub macros and hopefully few prototypes,
18319 which can conflict with char $ac_func (); below. */
18320#include <assert.h>
18321/* Override any gcc2 internal prototype to avoid an error. */
18322#ifdef __cplusplus
18323extern "C"
18324#endif
18325/* We use char because int might match the return type of a gcc2
18326 builtin and then its argument prototype would still apply. */
18327char $ac_func ();
18328char (*f) ();
18329
18330#ifdef F77_DUMMY_MAIN
18331# ifdef __cplusplus
18332 extern "C"
18333# endif
18334 int F77_DUMMY_MAIN() { return 1; }
18335#endif
18336int
18337main ()
18338{
18339/* The GNU C library defines this for functions which it implements
18340 to always fail with ENOSYS. Some functions are actually named
18341 something starting with __ and the normal name is an alias. */
18342#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18343choke me
18344#else
18345f = $ac_func;
18346#endif
18347
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext conftest$ac_exeext
18353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
18358 { ac_try='test -s conftest$ac_exeext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 eval "$as_ac_var=yes"
18365else
18366 echo "$as_me: failed program was:" >&5
18367cat conftest.$ac_ext >&5
18368eval "$as_ac_var=no"
18369fi
18370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18371fi
18372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18374if test `eval echo '${'$as_ac_var'}'` = yes; then
18375 cat >>confdefs.h <<_ACEOF
18376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18377_ACEOF
18378
18379fi
18380done
18381
18382fi
18383# freeaddrinfo
18384eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18385eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18386eval "LIB_freeaddrinfo=$ac_res"
18387
18388case "$ac_res" in
18389 yes)
18390 eval "ac_cv_func_freeaddrinfo=yes"
18391 eval "LIB_freeaddrinfo="
18392 cat >>confdefs.h <<_ACEOF
18393#define $ac_tr_func 1
18394_ACEOF
18395
18396 echo "$as_me:$LINENO: result: yes" >&5
18397echo "${ECHO_T}yes" >&6
18398 ;;
18399 no)
18400 eval "ac_cv_func_freeaddrinfo=no"
18401 eval "LIB_freeaddrinfo="
18402 echo "$as_me:$LINENO: result: no" >&5
18403echo "${ECHO_T}no" >&6
18404 ;;
18405 *)
18406 eval "ac_cv_func_freeaddrinfo=yes"
18407 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18408 cat >>confdefs.h <<_ACEOF
18409#define $ac_tr_func 1
18410_ACEOF
18411
18412 cat >>confdefs.h <<_ACEOF
18413#define $ac_tr_lib 1
18414_ACEOF
18415
18416 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18417echo "${ECHO_T}yes, in $ac_res" >&6
18418 ;;
18419esac
18420
18421
18422if test -n "$LIB_freeaddrinfo"; then
18423 LIBS="$LIB_freeaddrinfo $LIBS"
18424fi
18425
18426if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
18427 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
18428fi
18429
18430
18431
18432
18433
18434
18435echo "$as_me:$LINENO: checking for gai_strerror" >&5
18436echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
18437if test "${ac_cv_funclib_gai_strerror+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18439else
18440
18441if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
18442 ac_save_LIBS="$LIBS"
18443 for ac_lib in "" ; do
18444 case "$ac_lib" in
18445 "") ;;
18446 yes) ac_lib="" ;;
18447 no) continue ;;
18448 -l*) ;;
18449 *) ac_lib="-l$ac_lib" ;;
18450 esac
18451 LIBS=" $ac_lib $ac_save_LIBS"
18452 cat >conftest.$ac_ext <<_ACEOF
18453#line $LINENO "configure"
18454#include "confdefs.h"
18455#ifdef HAVE_NETDB_H
18456#include <netdb.h>
18457#endif
18458#ifdef F77_DUMMY_MAIN
18459# ifdef __cplusplus
18460 extern "C"
18461# endif
18462 int F77_DUMMY_MAIN() { return 1; }
18463#endif
18464int
18465main ()
18466{
18467gai_strerror(0)
18468 ;
18469 return 0;
18470}
18471_ACEOF
18472rm -f conftest.$ac_objext conftest$ac_exeext
18473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18474 (eval $ac_link) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } &&
18478 { ac_try='test -s conftest$ac_exeext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
18485else
18486 echo "$as_me: failed program was:" >&5
18487cat conftest.$ac_ext >&5
18488fi
18489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18490 done
18491 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
18492 LIBS="$ac_save_LIBS"
18493fi
18494
18495fi
18496
18497
18498eval "ac_res=\$ac_cv_funclib_gai_strerror"
18499
18500if false; then
18501
18502for ac_func in gai_strerror
18503do
18504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18505echo "$as_me:$LINENO: checking for $ac_func" >&5
18506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18507if eval "test \"\${$as_ac_var+set}\" = set"; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18509else
18510 cat >conftest.$ac_ext <<_ACEOF
18511#line $LINENO "configure"
18512#include "confdefs.h"
18513/* System header to define __stub macros and hopefully few prototypes,
18514 which can conflict with char $ac_func (); below. */
18515#include <assert.h>
18516/* Override any gcc2 internal prototype to avoid an error. */
18517#ifdef __cplusplus
18518extern "C"
18519#endif
18520/* We use char because int might match the return type of a gcc2
18521 builtin and then its argument prototype would still apply. */
18522char $ac_func ();
18523char (*f) ();
18524
18525#ifdef F77_DUMMY_MAIN
18526# ifdef __cplusplus
18527 extern "C"
18528# endif
18529 int F77_DUMMY_MAIN() { return 1; }
18530#endif
18531int
18532main ()
18533{
18534/* The GNU C library defines this for functions which it implements
18535 to always fail with ENOSYS. Some functions are actually named
18536 something starting with __ and the normal name is an alias. */
18537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18538choke me
18539#else
18540f = $ac_func;
18541#endif
18542
18543 ;
18544 return 0;
18545}
18546_ACEOF
18547rm -f conftest.$ac_objext conftest$ac_exeext
18548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18549 (eval $ac_link) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try='test -s conftest$ac_exeext'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 eval "$as_ac_var=yes"
18560else
18561 echo "$as_me: failed program was:" >&5
18562cat conftest.$ac_ext >&5
18563eval "$as_ac_var=no"
18564fi
18565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18566fi
18567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18569if test `eval echo '${'$as_ac_var'}'` = yes; then
18570 cat >>confdefs.h <<_ACEOF
18571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18572_ACEOF
18573
18574fi
18575done
18576
18577fi
18578# gai_strerror
18579eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18580eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18581eval "LIB_gai_strerror=$ac_res"
18582
18583case "$ac_res" in
18584 yes)
18585 eval "ac_cv_func_gai_strerror=yes"
18586 eval "LIB_gai_strerror="
18587 cat >>confdefs.h <<_ACEOF
18588#define $ac_tr_func 1
18589_ACEOF
18590
18591 echo "$as_me:$LINENO: result: yes" >&5
18592echo "${ECHO_T}yes" >&6
18593 ;;
18594 no)
18595 eval "ac_cv_func_gai_strerror=no"
18596 eval "LIB_gai_strerror="
18597 echo "$as_me:$LINENO: result: no" >&5
18598echo "${ECHO_T}no" >&6
18599 ;;
18600 *)
18601 eval "ac_cv_func_gai_strerror=yes"
18602 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18603 cat >>confdefs.h <<_ACEOF
18604#define $ac_tr_func 1
18605_ACEOF
18606
18607 cat >>confdefs.h <<_ACEOF
18608#define $ac_tr_lib 1
18609_ACEOF
18610
18611 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18612echo "${ECHO_T}yes, in $ac_res" >&6
18613 ;;
18614esac
18615
18616
18617if test -n "$LIB_gai_strerror"; then
18618 LIBS="$LIB_gai_strerror $LIBS"
18619fi
18620
18621if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
18622 LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
18623fi
18624
18625
18626echo "$as_me:$LINENO: checking for chown" >&5
18627echo $ECHO_N "checking for chown... $ECHO_C" >&6
18628if test "${ac_cv_func_chown+set}" = set; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18630else
18631 cat >conftest.$ac_ext <<_ACEOF
18632#line $LINENO "configure"
18633#include "confdefs.h"
18634/* System header to define __stub macros and hopefully few prototypes,
18635 which can conflict with char chown (); below. */
18636#include <assert.h>
18637/* Override any gcc2 internal prototype to avoid an error. */
18638#ifdef __cplusplus
18639extern "C"
18640#endif
18641/* We use char because int might match the return type of a gcc2
18642 builtin and then its argument prototype would still apply. */
18643char chown ();
18644char (*f) ();
18645
18646#ifdef F77_DUMMY_MAIN
18647# ifdef __cplusplus
18648 extern "C"
18649# endif
18650 int F77_DUMMY_MAIN() { return 1; }
18651#endif
18652int
18653main ()
18654{
18655/* The GNU C library defines this for functions which it implements
18656 to always fail with ENOSYS. Some functions are actually named
18657 something starting with __ and the normal name is an alias. */
18658#if defined (__stub_chown) || defined (__stub___chown)
18659choke me
18660#else
18661f = chown;
18662#endif
18663
18664 ;
18665 return 0;
18666}
18667_ACEOF
18668rm -f conftest.$ac_objext conftest$ac_exeext
18669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18670 (eval $ac_link) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); } &&
18674 { ac_try='test -s conftest$ac_exeext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_cv_func_chown=yes
18681else
18682 echo "$as_me: failed program was:" >&5
18683cat conftest.$ac_ext >&5
18684ac_cv_func_chown=no
18685fi
18686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18687fi
18688echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
18689echo "${ECHO_T}$ac_cv_func_chown" >&6
18690if test $ac_cv_func_chown = yes; then
18691
18692cat >>confdefs.h <<_ACEOF
18693#define HAVE_CHOWN 1
18694_ACEOF
18695
18696else
18697 LIBOBJS="$LIBOBJS chown.$ac_objext"
18698fi
18699echo "$as_me:$LINENO: checking for copyhostent" >&5
18700echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
18701if test "${ac_cv_func_copyhostent+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703else
18704 cat >conftest.$ac_ext <<_ACEOF
18705#line $LINENO "configure"
18706#include "confdefs.h"
18707/* System header to define __stub macros and hopefully few prototypes,
18708 which can conflict with char copyhostent (); below. */
18709#include <assert.h>
18710/* Override any gcc2 internal prototype to avoid an error. */
18711#ifdef __cplusplus
18712extern "C"
18713#endif
18714/* We use char because int might match the return type of a gcc2
18715 builtin and then its argument prototype would still apply. */
18716char copyhostent ();
18717char (*f) ();
18718
18719#ifdef F77_DUMMY_MAIN
18720# ifdef __cplusplus
18721 extern "C"
18722# endif
18723 int F77_DUMMY_MAIN() { return 1; }
18724#endif
18725int
18726main ()
18727{
18728/* The GNU C library defines this for functions which it implements
18729 to always fail with ENOSYS. Some functions are actually named
18730 something starting with __ and the normal name is an alias. */
18731#if defined (__stub_copyhostent) || defined (__stub___copyhostent)
18732choke me
18733#else
18734f = copyhostent;
18735#endif
18736
18737 ;
18738 return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext conftest$ac_exeext
18742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743 (eval $ac_link) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -s conftest$ac_exeext'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_cv_func_copyhostent=yes
18754else
18755 echo "$as_me: failed program was:" >&5
18756cat conftest.$ac_ext >&5
18757ac_cv_func_copyhostent=no
18758fi
18759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18760fi
18761echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
18762echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
18763if test $ac_cv_func_copyhostent = yes; then
18764
18765cat >>confdefs.h <<_ACEOF
18766#define HAVE_COPYHOSTENT 1
18767_ACEOF
18768
18769else
18770 LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
18771fi
18772echo "$as_me:$LINENO: checking for daemon" >&5
18773echo $ECHO_N "checking for daemon... $ECHO_C" >&6
18774if test "${ac_cv_func_daemon+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18776else
18777 cat >conftest.$ac_ext <<_ACEOF
18778#line $LINENO "configure"
18779#include "confdefs.h"
18780/* System header to define __stub macros and hopefully few prototypes,
18781 which can conflict with char daemon (); below. */
18782#include <assert.h>
18783/* Override any gcc2 internal prototype to avoid an error. */
18784#ifdef __cplusplus
18785extern "C"
18786#endif
18787/* We use char because int might match the return type of a gcc2
18788 builtin and then its argument prototype would still apply. */
18789char daemon ();
18790char (*f) ();
18791
18792#ifdef F77_DUMMY_MAIN
18793# ifdef __cplusplus
18794 extern "C"
18795# endif
18796 int F77_DUMMY_MAIN() { return 1; }
18797#endif
18798int
18799main ()
18800{
18801/* The GNU C library defines this for functions which it implements
18802 to always fail with ENOSYS. Some functions are actually named
18803 something starting with __ and the normal name is an alias. */
18804#if defined (__stub_daemon) || defined (__stub___daemon)
18805choke me
18806#else
18807f = daemon;
18808#endif
18809
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814rm -f conftest.$ac_objext conftest$ac_exeext
18815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18816 (eval $ac_link) 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -s conftest$ac_exeext'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 ac_cv_func_daemon=yes
18827else
18828 echo "$as_me: failed program was:" >&5
18829cat conftest.$ac_ext >&5
18830ac_cv_func_daemon=no
18831fi
18832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18833fi
18834echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
18835echo "${ECHO_T}$ac_cv_func_daemon" >&6
18836if test $ac_cv_func_daemon = yes; then
18837
18838cat >>confdefs.h <<_ACEOF
18839#define HAVE_DAEMON 1
18840_ACEOF
18841
18842else
18843 LIBOBJS="$LIBOBJS daemon.$ac_objext"
18844fi
18845echo "$as_me:$LINENO: checking for ecalloc" >&5
18846echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
18847if test "${ac_cv_func_ecalloc+set}" = set; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18849else
18850 cat >conftest.$ac_ext <<_ACEOF
18851#line $LINENO "configure"
18852#include "confdefs.h"
18853/* System header to define __stub macros and hopefully few prototypes,
18854 which can conflict with char ecalloc (); below. */
18855#include <assert.h>
18856/* Override any gcc2 internal prototype to avoid an error. */
18857#ifdef __cplusplus
18858extern "C"
18859#endif
18860/* We use char because int might match the return type of a gcc2
18861 builtin and then its argument prototype would still apply. */
18862char ecalloc ();
18863char (*f) ();
18864
18865#ifdef F77_DUMMY_MAIN
18866# ifdef __cplusplus
18867 extern "C"
18868# endif
18869 int F77_DUMMY_MAIN() { return 1; }
18870#endif
18871int
18872main ()
18873{
18874/* The GNU C library defines this for functions which it implements
18875 to always fail with ENOSYS. Some functions are actually named
18876 something starting with __ and the normal name is an alias. */
18877#if defined (__stub_ecalloc) || defined (__stub___ecalloc)
18878choke me
18879#else
18880f = ecalloc;
18881#endif
18882
18883 ;
18884 return 0;
18885}
18886_ACEOF
18887rm -f conftest.$ac_objext conftest$ac_exeext
18888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18889 (eval $ac_link) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -s conftest$ac_exeext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_func_ecalloc=yes
18900else
18901 echo "$as_me: failed program was:" >&5
18902cat conftest.$ac_ext >&5
18903ac_cv_func_ecalloc=no
18904fi
18905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18906fi
18907echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
18908echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
18909if test $ac_cv_func_ecalloc = yes; then
18910
18911cat >>confdefs.h <<_ACEOF
18912#define HAVE_ECALLOC 1
18913_ACEOF
18914
18915else
18916 LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
18917fi
18918echo "$as_me:$LINENO: checking for emalloc" >&5
18919echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
18920if test "${ac_cv_func_emalloc+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18922else
18923 cat >conftest.$ac_ext <<_ACEOF
18924#line $LINENO "configure"
18925#include "confdefs.h"
18926/* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char emalloc (); below. */
18928#include <assert.h>
18929/* Override any gcc2 internal prototype to avoid an error. */
18930#ifdef __cplusplus
18931extern "C"
18932#endif
18933/* We use char because int might match the return type of a gcc2
18934 builtin and then its argument prototype would still apply. */
18935char emalloc ();
18936char (*f) ();
18937
18938#ifdef F77_DUMMY_MAIN
18939# ifdef __cplusplus
18940 extern "C"
18941# endif
18942 int F77_DUMMY_MAIN() { return 1; }
18943#endif
18944int
18945main ()
18946{
18947/* The GNU C library defines this for functions which it implements
18948 to always fail with ENOSYS. Some functions are actually named
18949 something starting with __ and the normal name is an alias. */
18950#if defined (__stub_emalloc) || defined (__stub___emalloc)
18951choke me
18952#else
18953f = emalloc;
18954#endif
18955
18956 ;
18957 return 0;
18958}
18959_ACEOF
18960rm -f conftest.$ac_objext conftest$ac_exeext
18961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18962 (eval $ac_link) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -s conftest$ac_exeext'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_func_emalloc=yes
18973else
18974 echo "$as_me: failed program was:" >&5
18975cat conftest.$ac_ext >&5
18976ac_cv_func_emalloc=no
18977fi
18978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18979fi
18980echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
18981echo "${ECHO_T}$ac_cv_func_emalloc" >&6
18982if test $ac_cv_func_emalloc = yes; then
18983
18984cat >>confdefs.h <<_ACEOF
18985#define HAVE_EMALLOC 1
18986_ACEOF
18987
18988else
18989 LIBOBJS="$LIBOBJS emalloc.$ac_objext"
18990fi
18991echo "$as_me:$LINENO: checking for erealloc" >&5
18992echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
18993if test "${ac_cv_func_erealloc+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18995else
18996 cat >conftest.$ac_ext <<_ACEOF
18997#line $LINENO "configure"
18998#include "confdefs.h"
18999/* System header to define __stub macros and hopefully few prototypes,
19000 which can conflict with char erealloc (); below. */
19001#include <assert.h>
19002/* Override any gcc2 internal prototype to avoid an error. */
19003#ifdef __cplusplus
19004extern "C"
19005#endif
19006/* We use char because int might match the return type of a gcc2
19007 builtin and then its argument prototype would still apply. */
19008char erealloc ();
19009char (*f) ();
19010
19011#ifdef F77_DUMMY_MAIN
19012# ifdef __cplusplus
19013 extern "C"
19014# endif
19015 int F77_DUMMY_MAIN() { return 1; }
19016#endif
19017int
19018main ()
19019{
19020/* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023#if defined (__stub_erealloc) || defined (__stub___erealloc)
19024choke me
19025#else
19026f = erealloc;
19027#endif
19028
19029 ;
19030 return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext conftest$ac_exeext
19034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19035 (eval $ac_link) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -s conftest$ac_exeext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 ac_cv_func_erealloc=yes
19046else
19047 echo "$as_me: failed program was:" >&5
19048cat conftest.$ac_ext >&5
19049ac_cv_func_erealloc=no
19050fi
19051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19052fi
19053echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
19054echo "${ECHO_T}$ac_cv_func_erealloc" >&6
19055if test $ac_cv_func_erealloc = yes; then
19056
19057cat >>confdefs.h <<_ACEOF
19058#define HAVE_EREALLOC 1
19059_ACEOF
19060
19061else
19062 LIBOBJS="$LIBOBJS erealloc.$ac_objext"
19063fi
19064echo "$as_me:$LINENO: checking for estrdup" >&5
19065echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
19066if test "${ac_cv_func_estrdup+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068else
19069 cat >conftest.$ac_ext <<_ACEOF
19070#line $LINENO "configure"
19071#include "confdefs.h"
19072/* System header to define __stub macros and hopefully few prototypes,
19073 which can conflict with char estrdup (); below. */
19074#include <assert.h>
19075/* Override any gcc2 internal prototype to avoid an error. */
19076#ifdef __cplusplus
19077extern "C"
19078#endif
19079/* We use char because int might match the return type of a gcc2
19080 builtin and then its argument prototype would still apply. */
19081char estrdup ();
19082char (*f) ();
19083
19084#ifdef F77_DUMMY_MAIN
19085# ifdef __cplusplus
19086 extern "C"
19087# endif
19088 int F77_DUMMY_MAIN() { return 1; }
19089#endif
19090int
19091main ()
19092{
19093/* The GNU C library defines this for functions which it implements
19094 to always fail with ENOSYS. Some functions are actually named
19095 something starting with __ and the normal name is an alias. */
19096#if defined (__stub_estrdup) || defined (__stub___estrdup)
19097choke me
19098#else
19099f = estrdup;
19100#endif
19101
19102 ;
19103 return 0;
19104}
19105_ACEOF
19106rm -f conftest.$ac_objext conftest$ac_exeext
19107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19108 (eval $ac_link) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -s conftest$ac_exeext'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; }; then
19118 ac_cv_func_estrdup=yes
19119else
19120 echo "$as_me: failed program was:" >&5
19121cat conftest.$ac_ext >&5
19122ac_cv_func_estrdup=no
19123fi
19124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19125fi
19126echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
19127echo "${ECHO_T}$ac_cv_func_estrdup" >&6
19128if test $ac_cv_func_estrdup = yes; then
19129
19130cat >>confdefs.h <<_ACEOF
19131#define HAVE_ESTRDUP 1
19132_ACEOF
19133
19134else
19135 LIBOBJS="$LIBOBJS estrdup.$ac_objext"
19136fi
19137echo "$as_me:$LINENO: checking for err" >&5
19138echo $ECHO_N "checking for err... $ECHO_C" >&6
19139if test "${ac_cv_func_err+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19141else
19142 cat >conftest.$ac_ext <<_ACEOF
19143#line $LINENO "configure"
19144#include "confdefs.h"
19145/* System header to define __stub macros and hopefully few prototypes,
19146 which can conflict with char err (); below. */
19147#include <assert.h>
19148/* Override any gcc2 internal prototype to avoid an error. */
19149#ifdef __cplusplus
19150extern "C"
19151#endif
19152/* We use char because int might match the return type of a gcc2
19153 builtin and then its argument prototype would still apply. */
19154char err ();
19155char (*f) ();
19156
19157#ifdef F77_DUMMY_MAIN
19158# ifdef __cplusplus
19159 extern "C"
19160# endif
19161 int F77_DUMMY_MAIN() { return 1; }
19162#endif
19163int
19164main ()
19165{
19166/* The GNU C library defines this for functions which it implements
19167 to always fail with ENOSYS. Some functions are actually named
19168 something starting with __ and the normal name is an alias. */
19169#if defined (__stub_err) || defined (__stub___err)
19170choke me
19171#else
19172f = err;
19173#endif
19174
19175 ;
19176 return 0;
19177}
19178_ACEOF
19179rm -f conftest.$ac_objext conftest$ac_exeext
19180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -s conftest$ac_exeext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 ac_cv_func_err=yes
19192else
19193 echo "$as_me: failed program was:" >&5
19194cat conftest.$ac_ext >&5
19195ac_cv_func_err=no
19196fi
19197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19198fi
19199echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
19200echo "${ECHO_T}$ac_cv_func_err" >&6
19201if test $ac_cv_func_err = yes; then
19202
19203cat >>confdefs.h <<_ACEOF
19204#define HAVE_ERR 1
19205_ACEOF
19206
19207else
19208 LIBOBJS="$LIBOBJS err.$ac_objext"
19209fi
19210echo "$as_me:$LINENO: checking for errx" >&5
19211echo $ECHO_N "checking for errx... $ECHO_C" >&6
19212if test "${ac_cv_func_errx+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19214else
19215 cat >conftest.$ac_ext <<_ACEOF
19216#line $LINENO "configure"
19217#include "confdefs.h"
19218/* System header to define __stub macros and hopefully few prototypes,
19219 which can conflict with char errx (); below. */
19220#include <assert.h>
19221/* Override any gcc2 internal prototype to avoid an error. */
19222#ifdef __cplusplus
19223extern "C"
19224#endif
19225/* We use char because int might match the return type of a gcc2
19226 builtin and then its argument prototype would still apply. */
19227char errx ();
19228char (*f) ();
19229
19230#ifdef F77_DUMMY_MAIN
19231# ifdef __cplusplus
19232 extern "C"
19233# endif
19234 int F77_DUMMY_MAIN() { return 1; }
19235#endif
19236int
19237main ()
19238{
19239/* The GNU C library defines this for functions which it implements
19240 to always fail with ENOSYS. Some functions are actually named
19241 something starting with __ and the normal name is an alias. */
19242#if defined (__stub_errx) || defined (__stub___errx)
19243choke me
19244#else
19245f = errx;
19246#endif
19247
19248 ;
19249 return 0;
19250}
19251_ACEOF
19252rm -f conftest.$ac_objext conftest$ac_exeext
19253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19254 (eval $ac_link) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
19258 { ac_try='test -s conftest$ac_exeext'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 ac_cv_func_errx=yes
19265else
19266 echo "$as_me: failed program was:" >&5
19267cat conftest.$ac_ext >&5
19268ac_cv_func_errx=no
19269fi
19270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19271fi
19272echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
19273echo "${ECHO_T}$ac_cv_func_errx" >&6
19274if test $ac_cv_func_errx = yes; then
19275
19276cat >>confdefs.h <<_ACEOF
19277#define HAVE_ERRX 1
19278_ACEOF
19279
19280else
19281 LIBOBJS="$LIBOBJS errx.$ac_objext"
19282fi
19283echo "$as_me:$LINENO: checking for fchown" >&5
19284echo $ECHO_N "checking for fchown... $ECHO_C" >&6
19285if test "${ac_cv_func_fchown+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287else
19288 cat >conftest.$ac_ext <<_ACEOF
19289#line $LINENO "configure"
19290#include "confdefs.h"
19291/* System header to define __stub macros and hopefully few prototypes,
19292 which can conflict with char fchown (); below. */
19293#include <assert.h>
19294/* Override any gcc2 internal prototype to avoid an error. */
19295#ifdef __cplusplus
19296extern "C"
19297#endif
19298/* We use char because int might match the return type of a gcc2
19299 builtin and then its argument prototype would still apply. */
19300char fchown ();
19301char (*f) ();
19302
19303#ifdef F77_DUMMY_MAIN
19304# ifdef __cplusplus
19305 extern "C"
19306# endif
19307 int F77_DUMMY_MAIN() { return 1; }
19308#endif
19309int
19310main ()
19311{
19312/* The GNU C library defines this for functions which it implements
19313 to always fail with ENOSYS. Some functions are actually named
19314 something starting with __ and the normal name is an alias. */
19315#if defined (__stub_fchown) || defined (__stub___fchown)
19316choke me
19317#else
19318f = fchown;
19319#endif
19320
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext conftest$ac_exeext
19326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -s conftest$ac_exeext'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19337 ac_cv_func_fchown=yes
19338else
19339 echo "$as_me: failed program was:" >&5
19340cat conftest.$ac_ext >&5
19341ac_cv_func_fchown=no
19342fi
19343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19344fi
19345echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
19346echo "${ECHO_T}$ac_cv_func_fchown" >&6
19347if test $ac_cv_func_fchown = yes; then
19348
19349cat >>confdefs.h <<_ACEOF
19350#define HAVE_FCHOWN 1
19351_ACEOF
19352
19353else
19354 LIBOBJS="$LIBOBJS fchown.$ac_objext"
19355fi
19356echo "$as_me:$LINENO: checking for flock" >&5
19357echo $ECHO_N "checking for flock... $ECHO_C" >&6
19358if test "${ac_cv_func_flock+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19360else
19361 cat >conftest.$ac_ext <<_ACEOF
19362#line $LINENO "configure"
19363#include "confdefs.h"
19364/* System header to define __stub macros and hopefully few prototypes,
19365 which can conflict with char flock (); below. */
19366#include <assert.h>
19367/* Override any gcc2 internal prototype to avoid an error. */
19368#ifdef __cplusplus
19369extern "C"
19370#endif
19371/* We use char because int might match the return type of a gcc2
19372 builtin and then its argument prototype would still apply. */
19373char flock ();
19374char (*f) ();
19375
19376#ifdef F77_DUMMY_MAIN
19377# ifdef __cplusplus
19378 extern "C"
19379# endif
19380 int F77_DUMMY_MAIN() { return 1; }
19381#endif
19382int
19383main ()
19384{
19385/* The GNU C library defines this for functions which it implements
19386 to always fail with ENOSYS. Some functions are actually named
19387 something starting with __ and the normal name is an alias. */
19388#if defined (__stub_flock) || defined (__stub___flock)
19389choke me
19390#else
19391f = flock;
19392#endif
19393
19394 ;
19395 return 0;
19396}
19397_ACEOF
19398rm -f conftest.$ac_objext conftest$ac_exeext
19399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19400 (eval $ac_link) 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -s conftest$ac_exeext'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19410 ac_cv_func_flock=yes
19411else
19412 echo "$as_me: failed program was:" >&5
19413cat conftest.$ac_ext >&5
19414ac_cv_func_flock=no
19415fi
19416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19417fi
19418echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
19419echo "${ECHO_T}$ac_cv_func_flock" >&6
19420if test $ac_cv_func_flock = yes; then
19421
19422cat >>confdefs.h <<_ACEOF
19423#define HAVE_FLOCK 1
19424_ACEOF
19425
19426else
19427 LIBOBJS="$LIBOBJS flock.$ac_objext"
19428fi
19429echo "$as_me:$LINENO: checking for fnmatch" >&5
19430echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
19431if test "${ac_cv_func_fnmatch+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433else
19434 cat >conftest.$ac_ext <<_ACEOF
19435#line $LINENO "configure"
19436#include "confdefs.h"
19437/* System header to define __stub macros and hopefully few prototypes,
19438 which can conflict with char fnmatch (); below. */
19439#include <assert.h>
19440/* Override any gcc2 internal prototype to avoid an error. */
19441#ifdef __cplusplus
19442extern "C"
19443#endif
19444/* We use char because int might match the return type of a gcc2
19445 builtin and then its argument prototype would still apply. */
19446char fnmatch ();
19447char (*f) ();
19448
19449#ifdef F77_DUMMY_MAIN
19450# ifdef __cplusplus
19451 extern "C"
19452# endif
19453 int F77_DUMMY_MAIN() { return 1; }
19454#endif
19455int
19456main ()
19457{
19458/* The GNU C library defines this for functions which it implements
19459 to always fail with ENOSYS. Some functions are actually named
19460 something starting with __ and the normal name is an alias. */
19461#if defined (__stub_fnmatch) || defined (__stub___fnmatch)
19462choke me
19463#else
19464f = fnmatch;
19465#endif
19466
19467 ;
19468 return 0;
19469}
19470_ACEOF
19471rm -f conftest.$ac_objext conftest$ac_exeext
19472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473 (eval $ac_link) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } &&
19477 { ac_try='test -s conftest$ac_exeext'
19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479 (eval $ac_try) 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; }; then
19483 ac_cv_func_fnmatch=yes
19484else
19485 echo "$as_me: failed program was:" >&5
19486cat conftest.$ac_ext >&5
19487ac_cv_func_fnmatch=no
19488fi
19489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19490fi
19491echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
19492echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
19493if test $ac_cv_func_fnmatch = yes; then
19494
19495cat >>confdefs.h <<_ACEOF
19496#define HAVE_FNMATCH 1
19497_ACEOF
19498
19499else
19500 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
19501fi
19502echo "$as_me:$LINENO: checking for freehostent" >&5
19503echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
19504if test "${ac_cv_func_freehostent+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19506else
19507 cat >conftest.$ac_ext <<_ACEOF
19508#line $LINENO "configure"
19509#include "confdefs.h"
19510/* System header to define __stub macros and hopefully few prototypes,
19511 which can conflict with char freehostent (); below. */
19512#include <assert.h>
19513/* Override any gcc2 internal prototype to avoid an error. */
19514#ifdef __cplusplus
19515extern "C"
19516#endif
19517/* We use char because int might match the return type of a gcc2
19518 builtin and then its argument prototype would still apply. */
19519char freehostent ();
19520char (*f) ();
19521
19522#ifdef F77_DUMMY_MAIN
19523# ifdef __cplusplus
19524 extern "C"
19525# endif
19526 int F77_DUMMY_MAIN() { return 1; }
19527#endif
19528int
19529main ()
19530{
19531/* The GNU C library defines this for functions which it implements
19532 to always fail with ENOSYS. Some functions are actually named
19533 something starting with __ and the normal name is an alias. */
19534#if defined (__stub_freehostent) || defined (__stub___freehostent)
19535choke me
19536#else
19537f = freehostent;
19538#endif
19539
19540 ;
19541 return 0;
19542}
19543_ACEOF
19544rm -f conftest.$ac_objext conftest$ac_exeext
19545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19546 (eval $ac_link) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try='test -s conftest$ac_exeext'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19556 ac_cv_func_freehostent=yes
19557else
19558 echo "$as_me: failed program was:" >&5
19559cat conftest.$ac_ext >&5
19560ac_cv_func_freehostent=no
19561fi
19562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19563fi
19564echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
19565echo "${ECHO_T}$ac_cv_func_freehostent" >&6
19566if test $ac_cv_func_freehostent = yes; then
19567
19568cat >>confdefs.h <<_ACEOF
19569#define HAVE_FREEHOSTENT 1
19570_ACEOF
19571
19572else
19573 LIBOBJS="$LIBOBJS freehostent.$ac_objext"
19574fi
19575echo "$as_me:$LINENO: checking for getcwd" >&5
19576echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
19577if test "${ac_cv_func_getcwd+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579else
19580 cat >conftest.$ac_ext <<_ACEOF
19581#line $LINENO "configure"
19582#include "confdefs.h"
19583/* System header to define __stub macros and hopefully few prototypes,
19584 which can conflict with char getcwd (); below. */
19585#include <assert.h>
19586/* Override any gcc2 internal prototype to avoid an error. */
19587#ifdef __cplusplus
19588extern "C"
19589#endif
19590/* We use char because int might match the return type of a gcc2
19591 builtin and then its argument prototype would still apply. */
19592char getcwd ();
19593char (*f) ();
19594
19595#ifdef F77_DUMMY_MAIN
19596# ifdef __cplusplus
19597 extern "C"
19598# endif
19599 int F77_DUMMY_MAIN() { return 1; }
19600#endif
19601int
19602main ()
19603{
19604/* The GNU C library defines this for functions which it implements
19605 to always fail with ENOSYS. Some functions are actually named
19606 something starting with __ and the normal name is an alias. */
19607#if defined (__stub_getcwd) || defined (__stub___getcwd)
19608choke me
19609#else
19610f = getcwd;
19611#endif
19612
19613 ;
19614 return 0;
19615}
19616_ACEOF
19617rm -f conftest.$ac_objext conftest$ac_exeext
19618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619 (eval $ac_link) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -s conftest$ac_exeext'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; }; then
19629 ac_cv_func_getcwd=yes
19630else
19631 echo "$as_me: failed program was:" >&5
19632cat conftest.$ac_ext >&5
19633ac_cv_func_getcwd=no
19634fi
19635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19636fi
19637echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
19638echo "${ECHO_T}$ac_cv_func_getcwd" >&6
19639if test $ac_cv_func_getcwd = yes; then
19640
19641cat >>confdefs.h <<_ACEOF
19642#define HAVE_GETCWD 1
19643_ACEOF
19644
19645else
19646 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
19647fi
19648echo "$as_me:$LINENO: checking for getdtablesize" >&5
19649echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
19650if test "${ac_cv_func_getdtablesize+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19652else
19653 cat >conftest.$ac_ext <<_ACEOF
19654#line $LINENO "configure"
19655#include "confdefs.h"
19656/* System header to define __stub macros and hopefully few prototypes,
19657 which can conflict with char getdtablesize (); below. */
19658#include <assert.h>
19659/* Override any gcc2 internal prototype to avoid an error. */
19660#ifdef __cplusplus
19661extern "C"
19662#endif
19663/* We use char because int might match the return type of a gcc2
19664 builtin and then its argument prototype would still apply. */
19665char getdtablesize ();
19666char (*f) ();
19667
19668#ifdef F77_DUMMY_MAIN
19669# ifdef __cplusplus
19670 extern "C"
19671# endif
19672 int F77_DUMMY_MAIN() { return 1; }
19673#endif
19674int
19675main ()
19676{
19677/* The GNU C library defines this for functions which it implements
19678 to always fail with ENOSYS. Some functions are actually named
19679 something starting with __ and the normal name is an alias. */
19680#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
19681choke me
19682#else
19683f = getdtablesize;
19684#endif
19685
19686 ;
19687 return 0;
19688}
19689_ACEOF
19690rm -f conftest.$ac_objext conftest$ac_exeext
19691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692 (eval $ac_link) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -s conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_cv_func_getdtablesize=yes
19703else
19704 echo "$as_me: failed program was:" >&5
19705cat conftest.$ac_ext >&5
19706ac_cv_func_getdtablesize=no
19707fi
19708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19709fi
19710echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
19711echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
19712if test $ac_cv_func_getdtablesize = yes; then
19713
19714cat >>confdefs.h <<_ACEOF
19715#define HAVE_GETDTABLESIZE 1
19716_ACEOF
19717
19718else
19719 LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
19720fi
19721echo "$as_me:$LINENO: checking for getegid" >&5
19722echo $ECHO_N "checking for getegid... $ECHO_C" >&6
19723if test "${ac_cv_func_getegid+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19725else
19726 cat >conftest.$ac_ext <<_ACEOF
19727#line $LINENO "configure"
19728#include "confdefs.h"
19729/* System header to define __stub macros and hopefully few prototypes,
19730 which can conflict with char getegid (); below. */
19731#include <assert.h>
19732/* Override any gcc2 internal prototype to avoid an error. */
19733#ifdef __cplusplus
19734extern "C"
19735#endif
19736/* We use char because int might match the return type of a gcc2
19737 builtin and then its argument prototype would still apply. */
19738char getegid ();
19739char (*f) ();
19740
19741#ifdef F77_DUMMY_MAIN
19742# ifdef __cplusplus
19743 extern "C"
19744# endif
19745 int F77_DUMMY_MAIN() { return 1; }
19746#endif
19747int
19748main ()
19749{
19750/* The GNU C library defines this for functions which it implements
19751 to always fail with ENOSYS. Some functions are actually named
19752 something starting with __ and the normal name is an alias. */
19753#if defined (__stub_getegid) || defined (__stub___getegid)
19754choke me
19755#else
19756f = getegid;
19757#endif
19758
19759 ;
19760 return 0;
19761}
19762_ACEOF
19763rm -f conftest.$ac_objext conftest$ac_exeext
19764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
19769 { ac_try='test -s conftest$ac_exeext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_func_getegid=yes
19776else
19777 echo "$as_me: failed program was:" >&5
19778cat conftest.$ac_ext >&5
19779ac_cv_func_getegid=no
19780fi
19781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19782fi
19783echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
19784echo "${ECHO_T}$ac_cv_func_getegid" >&6
19785if test $ac_cv_func_getegid = yes; then
19786
19787cat >>confdefs.h <<_ACEOF
19788#define HAVE_GETEGID 1
19789_ACEOF
19790
19791else
19792 LIBOBJS="$LIBOBJS getegid.$ac_objext"
19793fi
19794echo "$as_me:$LINENO: checking for geteuid" >&5
19795echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
19796if test "${ac_cv_func_geteuid+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19798else
19799 cat >conftest.$ac_ext <<_ACEOF
19800#line $LINENO "configure"
19801#include "confdefs.h"
19802/* System header to define __stub macros and hopefully few prototypes,
19803 which can conflict with char geteuid (); below. */
19804#include <assert.h>
19805/* Override any gcc2 internal prototype to avoid an error. */
19806#ifdef __cplusplus
19807extern "C"
19808#endif
19809/* We use char because int might match the return type of a gcc2
19810 builtin and then its argument prototype would still apply. */
19811char geteuid ();
19812char (*f) ();
19813
19814#ifdef F77_DUMMY_MAIN
19815# ifdef __cplusplus
19816 extern "C"
19817# endif
19818 int F77_DUMMY_MAIN() { return 1; }
19819#endif
19820int
19821main ()
19822{
19823/* The GNU C library defines this for functions which it implements
19824 to always fail with ENOSYS. Some functions are actually named
19825 something starting with __ and the normal name is an alias. */
19826#if defined (__stub_geteuid) || defined (__stub___geteuid)
19827choke me
19828#else
19829f = geteuid;
19830#endif
19831
19832 ;
19833 return 0;
19834}
19835_ACEOF
19836rm -f conftest.$ac_objext conftest$ac_exeext
19837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19838 (eval $ac_link) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -s conftest$ac_exeext'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 ac_cv_func_geteuid=yes
19849else
19850 echo "$as_me: failed program was:" >&5
19851cat conftest.$ac_ext >&5
19852ac_cv_func_geteuid=no
19853fi
19854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19855fi
19856echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
19857echo "${ECHO_T}$ac_cv_func_geteuid" >&6
19858if test $ac_cv_func_geteuid = yes; then
19859
19860cat >>confdefs.h <<_ACEOF
19861#define HAVE_GETEUID 1
19862_ACEOF
19863
19864else
19865 LIBOBJS="$LIBOBJS geteuid.$ac_objext"
19866fi
19867echo "$as_me:$LINENO: checking for getgid" >&5
19868echo $ECHO_N "checking for getgid... $ECHO_C" >&6
19869if test "${ac_cv_func_getgid+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871else
19872 cat >conftest.$ac_ext <<_ACEOF
19873#line $LINENO "configure"
19874#include "confdefs.h"
19875/* System header to define __stub macros and hopefully few prototypes,
19876 which can conflict with char getgid (); below. */
19877#include <assert.h>
19878/* Override any gcc2 internal prototype to avoid an error. */
19879#ifdef __cplusplus
19880extern "C"
19881#endif
19882/* We use char because int might match the return type of a gcc2
19883 builtin and then its argument prototype would still apply. */
19884char getgid ();
19885char (*f) ();
19886
19887#ifdef F77_DUMMY_MAIN
19888# ifdef __cplusplus
19889 extern "C"
19890# endif
19891 int F77_DUMMY_MAIN() { return 1; }
19892#endif
19893int
19894main ()
19895{
19896/* The GNU C library defines this for functions which it implements
19897 to always fail with ENOSYS. Some functions are actually named
19898 something starting with __ and the normal name is an alias. */
19899#if defined (__stub_getgid) || defined (__stub___getgid)
19900choke me
19901#else
19902f = getgid;
19903#endif
19904
19905 ;
19906 return 0;
19907}
19908_ACEOF
19909rm -f conftest.$ac_objext conftest$ac_exeext
19910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19911 (eval $ac_link) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -s conftest$ac_exeext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 ac_cv_func_getgid=yes
19922else
19923 echo "$as_me: failed program was:" >&5
19924cat conftest.$ac_ext >&5
19925ac_cv_func_getgid=no
19926fi
19927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19928fi
19929echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
19930echo "${ECHO_T}$ac_cv_func_getgid" >&6
19931if test $ac_cv_func_getgid = yes; then
19932
19933cat >>confdefs.h <<_ACEOF
19934#define HAVE_GETGID 1
19935_ACEOF
19936
19937else
19938 LIBOBJS="$LIBOBJS getgid.$ac_objext"
19939fi
19940echo "$as_me:$LINENO: checking for gethostname" >&5
19941echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
19942if test "${ac_cv_func_gethostname+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944else
19945 cat >conftest.$ac_ext <<_ACEOF
19946#line $LINENO "configure"
19947#include "confdefs.h"
19948/* System header to define __stub macros and hopefully few prototypes,
19949 which can conflict with char gethostname (); below. */
19950#include <assert.h>
19951/* Override any gcc2 internal prototype to avoid an error. */
19952#ifdef __cplusplus
19953extern "C"
19954#endif
19955/* We use char because int might match the return type of a gcc2
19956 builtin and then its argument prototype would still apply. */
19957char gethostname ();
19958char (*f) ();
19959
19960#ifdef F77_DUMMY_MAIN
19961# ifdef __cplusplus
19962 extern "C"
19963# endif
19964 int F77_DUMMY_MAIN() { return 1; }
19965#endif
19966int
19967main ()
19968{
19969/* The GNU C library defines this for functions which it implements
19970 to always fail with ENOSYS. Some functions are actually named
19971 something starting with __ and the normal name is an alias. */
19972#if defined (__stub_gethostname) || defined (__stub___gethostname)
19973choke me
19974#else
19975f = gethostname;
19976#endif
19977
19978 ;
19979 return 0;
19980}
19981_ACEOF
19982rm -f conftest.$ac_objext conftest$ac_exeext
19983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984 (eval $ac_link) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } &&
19988 { ac_try='test -s conftest$ac_exeext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_cv_func_gethostname=yes
19995else
19996 echo "$as_me: failed program was:" >&5
19997cat conftest.$ac_ext >&5
19998ac_cv_func_gethostname=no
19999fi
20000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20001fi
20002echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
20003echo "${ECHO_T}$ac_cv_func_gethostname" >&6
20004if test $ac_cv_func_gethostname = yes; then
20005
20006cat >>confdefs.h <<_ACEOF
20007#define HAVE_GETHOSTNAME 1
20008_ACEOF
20009
20010else
20011 LIBOBJS="$LIBOBJS gethostname.$ac_objext"
20012fi
20013echo "$as_me:$LINENO: checking for getifaddrs" >&5
20014echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
20015if test "${ac_cv_func_getifaddrs+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017else
20018 cat >conftest.$ac_ext <<_ACEOF
20019#line $LINENO "configure"
20020#include "confdefs.h"
20021/* System header to define __stub macros and hopefully few prototypes,
20022 which can conflict with char getifaddrs (); below. */
20023#include <assert.h>
20024/* Override any gcc2 internal prototype to avoid an error. */
20025#ifdef __cplusplus
20026extern "C"
20027#endif
20028/* We use char because int might match the return type of a gcc2
20029 builtin and then its argument prototype would still apply. */
20030char getifaddrs ();
20031char (*f) ();
20032
20033#ifdef F77_DUMMY_MAIN
20034# ifdef __cplusplus
20035 extern "C"
20036# endif
20037 int F77_DUMMY_MAIN() { return 1; }
20038#endif
20039int
20040main ()
20041{
20042/* The GNU C library defines this for functions which it implements
20043 to always fail with ENOSYS. Some functions are actually named
20044 something starting with __ and the normal name is an alias. */
20045#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
20046choke me
20047#else
20048f = getifaddrs;
20049#endif
20050
20051 ;
20052 return 0;
20053}
20054_ACEOF
20055rm -f conftest.$ac_objext conftest$ac_exeext
20056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20057 (eval $ac_link) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } &&
20061 { ac_try='test -s conftest$ac_exeext'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 ac_cv_func_getifaddrs=yes
20068else
20069 echo "$as_me: failed program was:" >&5
20070cat conftest.$ac_ext >&5
20071ac_cv_func_getifaddrs=no
20072fi
20073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20074fi
20075echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
20076echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
20077if test $ac_cv_func_getifaddrs = yes; then
20078
20079cat >>confdefs.h <<_ACEOF
20080#define HAVE_GETIFADDRS 1
20081_ACEOF
20082
20083else
20084 LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
20085fi
20086echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
20087echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
20088if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090else
20091 cat >conftest.$ac_ext <<_ACEOF
20092#line $LINENO "configure"
20093#include "confdefs.h"
20094/* System header to define __stub macros and hopefully few prototypes,
20095 which can conflict with char getipnodebyaddr (); below. */
20096#include <assert.h>
20097/* Override any gcc2 internal prototype to avoid an error. */
20098#ifdef __cplusplus
20099extern "C"
20100#endif
20101/* We use char because int might match the return type of a gcc2
20102 builtin and then its argument prototype would still apply. */
20103char getipnodebyaddr ();
20104char (*f) ();
20105
20106#ifdef F77_DUMMY_MAIN
20107# ifdef __cplusplus
20108 extern "C"
20109# endif
20110 int F77_DUMMY_MAIN() { return 1; }
20111#endif
20112int
20113main ()
20114{
20115/* The GNU C library defines this for functions which it implements
20116 to always fail with ENOSYS. Some functions are actually named
20117 something starting with __ and the normal name is an alias. */
20118#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
20119choke me
20120#else
20121f = getipnodebyaddr;
20122#endif
20123
20124 ;
20125 return 0;
20126}
20127_ACEOF
20128rm -f conftest.$ac_objext conftest$ac_exeext
20129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20130 (eval $ac_link) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -s conftest$ac_exeext'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20140 ac_cv_func_getipnodebyaddr=yes
20141else
20142 echo "$as_me: failed program was:" >&5
20143cat conftest.$ac_ext >&5
20144ac_cv_func_getipnodebyaddr=no
20145fi
20146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20147fi
20148echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
20149echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
20150if test $ac_cv_func_getipnodebyaddr = yes; then
20151
20152cat >>confdefs.h <<_ACEOF
20153#define HAVE_GETIPNODEBYADDR 1
20154_ACEOF
20155
20156else
20157 LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
20158fi
20159echo "$as_me:$LINENO: checking for getipnodebyname" >&5
20160echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
20161if test "${ac_cv_func_getipnodebyname+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20163else
20164 cat >conftest.$ac_ext <<_ACEOF
20165#line $LINENO "configure"
20166#include "confdefs.h"
20167/* System header to define __stub macros and hopefully few prototypes,
20168 which can conflict with char getipnodebyname (); below. */
20169#include <assert.h>
20170/* Override any gcc2 internal prototype to avoid an error. */
20171#ifdef __cplusplus
20172extern "C"
20173#endif
20174/* We use char because int might match the return type of a gcc2
20175 builtin and then its argument prototype would still apply. */
20176char getipnodebyname ();
20177char (*f) ();
20178
20179#ifdef F77_DUMMY_MAIN
20180# ifdef __cplusplus
20181 extern "C"
20182# endif
20183 int F77_DUMMY_MAIN() { return 1; }
20184#endif
20185int
20186main ()
20187{
20188/* The GNU C library defines this for functions which it implements
20189 to always fail with ENOSYS. Some functions are actually named
20190 something starting with __ and the normal name is an alias. */
20191#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
20192choke me
20193#else
20194f = getipnodebyname;
20195#endif
20196
20197 ;
20198 return 0;
20199}
20200_ACEOF
20201rm -f conftest.$ac_objext conftest$ac_exeext
20202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -s conftest$ac_exeext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_func_getipnodebyname=yes
20214else
20215 echo "$as_me: failed program was:" >&5
20216cat conftest.$ac_ext >&5
20217ac_cv_func_getipnodebyname=no
20218fi
20219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20220fi
20221echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
20222echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
20223if test $ac_cv_func_getipnodebyname = yes; then
20224
20225cat >>confdefs.h <<_ACEOF
20226#define HAVE_GETIPNODEBYNAME 1
20227_ACEOF
20228
20229else
20230 LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
20231fi
20232echo "$as_me:$LINENO: checking for getopt" >&5
20233echo $ECHO_N "checking for getopt... $ECHO_C" >&6
20234if test "${ac_cv_func_getopt+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20236else
20237 cat >conftest.$ac_ext <<_ACEOF
20238#line $LINENO "configure"
20239#include "confdefs.h"
20240/* System header to define __stub macros and hopefully few prototypes,
20241 which can conflict with char getopt (); below. */
20242#include <assert.h>
20243/* Override any gcc2 internal prototype to avoid an error. */
20244#ifdef __cplusplus
20245extern "C"
20246#endif
20247/* We use char because int might match the return type of a gcc2
20248 builtin and then its argument prototype would still apply. */
20249char getopt ();
20250char (*f) ();
20251
20252#ifdef F77_DUMMY_MAIN
20253# ifdef __cplusplus
20254 extern "C"
20255# endif
20256 int F77_DUMMY_MAIN() { return 1; }
20257#endif
20258int
20259main ()
20260{
20261/* The GNU C library defines this for functions which it implements
20262 to always fail with ENOSYS. Some functions are actually named
20263 something starting with __ and the normal name is an alias. */
20264#if defined (__stub_getopt) || defined (__stub___getopt)
20265choke me
20266#else
20267f = getopt;
20268#endif
20269
20270 ;
20271 return 0;
20272}
20273_ACEOF
20274rm -f conftest.$ac_objext conftest$ac_exeext
20275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20276 (eval $ac_link) 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -s conftest$ac_exeext'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_cv_func_getopt=yes
20287else
20288 echo "$as_me: failed program was:" >&5
20289cat conftest.$ac_ext >&5
20290ac_cv_func_getopt=no
20291fi
20292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20293fi
20294echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
20295echo "${ECHO_T}$ac_cv_func_getopt" >&6
20296if test $ac_cv_func_getopt = yes; then
20297
20298cat >>confdefs.h <<_ACEOF
20299#define HAVE_GETOPT 1
20300_ACEOF
20301
20302else
20303 LIBOBJS="$LIBOBJS getopt.$ac_objext"
20304fi
20305echo "$as_me:$LINENO: checking for gettimeofday" >&5
20306echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
20307if test "${ac_cv_func_gettimeofday+set}" = set; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20309else
20310 cat >conftest.$ac_ext <<_ACEOF
20311#line $LINENO "configure"
20312#include "confdefs.h"
20313/* System header to define __stub macros and hopefully few prototypes,
20314 which can conflict with char gettimeofday (); below. */
20315#include <assert.h>
20316/* Override any gcc2 internal prototype to avoid an error. */
20317#ifdef __cplusplus
20318extern "C"
20319#endif
20320/* We use char because int might match the return type of a gcc2
20321 builtin and then its argument prototype would still apply. */
20322char gettimeofday ();
20323char (*f) ();
20324
20325#ifdef F77_DUMMY_MAIN
20326# ifdef __cplusplus
20327 extern "C"
20328# endif
20329 int F77_DUMMY_MAIN() { return 1; }
20330#endif
20331int
20332main ()
20333{
20334/* The GNU C library defines this for functions which it implements
20335 to always fail with ENOSYS. Some functions are actually named
20336 something starting with __ and the normal name is an alias. */
20337#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
20338choke me
20339#else
20340f = gettimeofday;
20341#endif
20342
20343 ;
20344 return 0;
20345}
20346_ACEOF
20347rm -f conftest.$ac_objext conftest$ac_exeext
20348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -s conftest$ac_exeext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_cv_func_gettimeofday=yes
20360else
20361 echo "$as_me: failed program was:" >&5
20362cat conftest.$ac_ext >&5
20363ac_cv_func_gettimeofday=no
20364fi
20365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20366fi
20367echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
20368echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
20369if test $ac_cv_func_gettimeofday = yes; then
20370
20371cat >>confdefs.h <<_ACEOF
20372#define HAVE_GETTIMEOFDAY 1
20373_ACEOF
20374
20375else
20376 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
20377fi
20378echo "$as_me:$LINENO: checking for getuid" >&5
20379echo $ECHO_N "checking for getuid... $ECHO_C" >&6
20380if test "${ac_cv_func_getuid+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382else
20383 cat >conftest.$ac_ext <<_ACEOF
20384#line $LINENO "configure"
20385#include "confdefs.h"
20386/* System header to define __stub macros and hopefully few prototypes,
20387 which can conflict with char getuid (); below. */
20388#include <assert.h>
20389/* Override any gcc2 internal prototype to avoid an error. */
20390#ifdef __cplusplus
20391extern "C"
20392#endif
20393/* We use char because int might match the return type of a gcc2
20394 builtin and then its argument prototype would still apply. */
20395char getuid ();
20396char (*f) ();
20397
20398#ifdef F77_DUMMY_MAIN
20399# ifdef __cplusplus
20400 extern "C"
20401# endif
20402 int F77_DUMMY_MAIN() { return 1; }
20403#endif
20404int
20405main ()
20406{
20407/* The GNU C library defines this for functions which it implements
20408 to always fail with ENOSYS. Some functions are actually named
20409 something starting with __ and the normal name is an alias. */
20410#if defined (__stub_getuid) || defined (__stub___getuid)
20411choke me
20412#else
20413f = getuid;
20414#endif
20415
20416 ;
20417 return 0;
20418}
20419_ACEOF
20420rm -f conftest.$ac_objext conftest$ac_exeext
20421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20422 (eval $ac_link) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
20426 { ac_try='test -s conftest$ac_exeext'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 ac_cv_func_getuid=yes
20433else
20434 echo "$as_me: failed program was:" >&5
20435cat conftest.$ac_ext >&5
20436ac_cv_func_getuid=no
20437fi
20438rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20439fi
20440echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
20441echo "${ECHO_T}$ac_cv_func_getuid" >&6
20442if test $ac_cv_func_getuid = yes; then
20443
20444cat >>confdefs.h <<_ACEOF
20445#define HAVE_GETUID 1
20446_ACEOF
20447
20448else
20449 LIBOBJS="$LIBOBJS getuid.$ac_objext"
20450fi
20451echo "$as_me:$LINENO: checking for getusershell" >&5
20452echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
20453if test "${ac_cv_func_getusershell+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20455else
20456 cat >conftest.$ac_ext <<_ACEOF
20457#line $LINENO "configure"
20458#include "confdefs.h"
20459/* System header to define __stub macros and hopefully few prototypes,
20460 which can conflict with char getusershell (); below. */
20461#include <assert.h>
20462/* Override any gcc2 internal prototype to avoid an error. */
20463#ifdef __cplusplus
20464extern "C"
20465#endif
20466/* We use char because int might match the return type of a gcc2
20467 builtin and then its argument prototype would still apply. */
20468char getusershell ();
20469char (*f) ();
20470
20471#ifdef F77_DUMMY_MAIN
20472# ifdef __cplusplus
20473 extern "C"
20474# endif
20475 int F77_DUMMY_MAIN() { return 1; }
20476#endif
20477int
20478main ()
20479{
20480/* The GNU C library defines this for functions which it implements
20481 to always fail with ENOSYS. Some functions are actually named
20482 something starting with __ and the normal name is an alias. */
20483#if defined (__stub_getusershell) || defined (__stub___getusershell)
20484choke me
20485#else
20486f = getusershell;
20487#endif
20488
20489 ;
20490 return 0;
20491}
20492_ACEOF
20493rm -f conftest.$ac_objext conftest$ac_exeext
20494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20495 (eval $ac_link) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; }; then
20505 ac_cv_func_getusershell=yes
20506else
20507 echo "$as_me: failed program was:" >&5
20508cat conftest.$ac_ext >&5
20509ac_cv_func_getusershell=no
20510fi
20511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20512fi
20513echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
20514echo "${ECHO_T}$ac_cv_func_getusershell" >&6
20515if test $ac_cv_func_getusershell = yes; then
20516
20517cat >>confdefs.h <<_ACEOF
20518#define HAVE_GETUSERSHELL 1
20519_ACEOF
20520
20521else
20522 LIBOBJS="$LIBOBJS getusershell.$ac_objext"
20523fi
20524echo "$as_me:$LINENO: checking for initgroups" >&5
20525echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
20526if test "${ac_cv_func_initgroups+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20528else
20529 cat >conftest.$ac_ext <<_ACEOF
20530#line $LINENO "configure"
20531#include "confdefs.h"
20532/* System header to define __stub macros and hopefully few prototypes,
20533 which can conflict with char initgroups (); below. */
20534#include <assert.h>
20535/* Override any gcc2 internal prototype to avoid an error. */
20536#ifdef __cplusplus
20537extern "C"
20538#endif
20539/* We use char because int might match the return type of a gcc2
20540 builtin and then its argument prototype would still apply. */
20541char initgroups ();
20542char (*f) ();
20543
20544#ifdef F77_DUMMY_MAIN
20545# ifdef __cplusplus
20546 extern "C"
20547# endif
20548 int F77_DUMMY_MAIN() { return 1; }
20549#endif
20550int
20551main ()
20552{
20553/* The GNU C library defines this for functions which it implements
20554 to always fail with ENOSYS. Some functions are actually named
20555 something starting with __ and the normal name is an alias. */
20556#if defined (__stub_initgroups) || defined (__stub___initgroups)
20557choke me
20558#else
20559f = initgroups;
20560#endif
20561
20562 ;
20563 return 0;
20564}
20565_ACEOF
20566rm -f conftest.$ac_objext conftest$ac_exeext
20567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20568 (eval $ac_link) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
20572 { ac_try='test -s conftest$ac_exeext'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
20578 ac_cv_func_initgroups=yes
20579else
20580 echo "$as_me: failed program was:" >&5
20581cat conftest.$ac_ext >&5
20582ac_cv_func_initgroups=no
20583fi
20584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20585fi
20586echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
20587echo "${ECHO_T}$ac_cv_func_initgroups" >&6
20588if test $ac_cv_func_initgroups = yes; then
20589
20590cat >>confdefs.h <<_ACEOF
20591#define HAVE_INITGROUPS 1
20592_ACEOF
20593
20594else
20595 LIBOBJS="$LIBOBJS initgroups.$ac_objext"
20596fi
20597echo "$as_me:$LINENO: checking for innetgr" >&5
20598echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
20599if test "${ac_cv_func_innetgr+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601else
20602 cat >conftest.$ac_ext <<_ACEOF
20603#line $LINENO "configure"
20604#include "confdefs.h"
20605/* System header to define __stub macros and hopefully few prototypes,
20606 which can conflict with char innetgr (); below. */
20607#include <assert.h>
20608/* Override any gcc2 internal prototype to avoid an error. */
20609#ifdef __cplusplus
20610extern "C"
20611#endif
20612/* We use char because int might match the return type of a gcc2
20613 builtin and then its argument prototype would still apply. */
20614char innetgr ();
20615char (*f) ();
20616
20617#ifdef F77_DUMMY_MAIN
20618# ifdef __cplusplus
20619 extern "C"
20620# endif
20621 int F77_DUMMY_MAIN() { return 1; }
20622#endif
20623int
20624main ()
20625{
20626/* The GNU C library defines this for functions which it implements
20627 to always fail with ENOSYS. Some functions are actually named
20628 something starting with __ and the normal name is an alias. */
20629#if defined (__stub_innetgr) || defined (__stub___innetgr)
20630choke me
20631#else
20632f = innetgr;
20633#endif
20634
20635 ;
20636 return 0;
20637}
20638_ACEOF
20639rm -f conftest.$ac_objext conftest$ac_exeext
20640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641 (eval $ac_link) 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -s conftest$ac_exeext'
20646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647 (eval $ac_try) 2>&5
20648 ac_status=$?
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); }; }; then
20651 ac_cv_func_innetgr=yes
20652else
20653 echo "$as_me: failed program was:" >&5
20654cat conftest.$ac_ext >&5
20655ac_cv_func_innetgr=no
20656fi
20657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20658fi
20659echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
20660echo "${ECHO_T}$ac_cv_func_innetgr" >&6
20661if test $ac_cv_func_innetgr = yes; then
20662
20663cat >>confdefs.h <<_ACEOF
20664#define HAVE_INNETGR 1
20665_ACEOF
20666
20667else
20668 LIBOBJS="$LIBOBJS innetgr.$ac_objext"
20669fi
20670echo "$as_me:$LINENO: checking for iruserok" >&5
20671echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
20672if test "${ac_cv_func_iruserok+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20674else
20675 cat >conftest.$ac_ext <<_ACEOF
20676#line $LINENO "configure"
20677#include "confdefs.h"
20678/* System header to define __stub macros and hopefully few prototypes,
20679 which can conflict with char iruserok (); below. */
20680#include <assert.h>
20681/* Override any gcc2 internal prototype to avoid an error. */
20682#ifdef __cplusplus
20683extern "C"
20684#endif
20685/* We use char because int might match the return type of a gcc2
20686 builtin and then its argument prototype would still apply. */
20687char iruserok ();
20688char (*f) ();
20689
20690#ifdef F77_DUMMY_MAIN
20691# ifdef __cplusplus
20692 extern "C"
20693# endif
20694 int F77_DUMMY_MAIN() { return 1; }
20695#endif
20696int
20697main ()
20698{
20699/* The GNU C library defines this for functions which it implements
20700 to always fail with ENOSYS. Some functions are actually named
20701 something starting with __ and the normal name is an alias. */
20702#if defined (__stub_iruserok) || defined (__stub___iruserok)
20703choke me
20704#else
20705f = iruserok;
20706#endif
20707
20708 ;
20709 return 0;
20710}
20711_ACEOF
20712rm -f conftest.$ac_objext conftest$ac_exeext
20713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20714 (eval $ac_link) 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } &&
20718 { ac_try='test -s conftest$ac_exeext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_func_iruserok=yes
20725else
20726 echo "$as_me: failed program was:" >&5
20727cat conftest.$ac_ext >&5
20728ac_cv_func_iruserok=no
20729fi
20730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20731fi
20732echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
20733echo "${ECHO_T}$ac_cv_func_iruserok" >&6
20734if test $ac_cv_func_iruserok = yes; then
20735
20736cat >>confdefs.h <<_ACEOF
20737#define HAVE_IRUSEROK 1
20738_ACEOF
20739
20740else
20741 LIBOBJS="$LIBOBJS iruserok.$ac_objext"
20742fi
20743echo "$as_me:$LINENO: checking for localtime_r" >&5
20744echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
20745if test "${ac_cv_func_localtime_r+set}" = set; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20747else
20748 cat >conftest.$ac_ext <<_ACEOF
20749#line $LINENO "configure"
20750#include "confdefs.h"
20751/* System header to define __stub macros and hopefully few prototypes,
20752 which can conflict with char localtime_r (); below. */
20753#include <assert.h>
20754/* Override any gcc2 internal prototype to avoid an error. */
20755#ifdef __cplusplus
20756extern "C"
20757#endif
20758/* We use char because int might match the return type of a gcc2
20759 builtin and then its argument prototype would still apply. */
20760char localtime_r ();
20761char (*f) ();
20762
20763#ifdef F77_DUMMY_MAIN
20764# ifdef __cplusplus
20765 extern "C"
20766# endif
20767 int F77_DUMMY_MAIN() { return 1; }
20768#endif
20769int
20770main ()
20771{
20772/* The GNU C library defines this for functions which it implements
20773 to always fail with ENOSYS. Some functions are actually named
20774 something starting with __ and the normal name is an alias. */
20775#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
20776choke me
20777#else
20778f = localtime_r;
20779#endif
20780
20781 ;
20782 return 0;
20783}
20784_ACEOF
20785rm -f conftest.$ac_objext conftest$ac_exeext
20786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20787 (eval $ac_link) 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } &&
20791 { ac_try='test -s conftest$ac_exeext'
20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793 (eval $ac_try) 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
20797 ac_cv_func_localtime_r=yes
20798else
20799 echo "$as_me: failed program was:" >&5
20800cat conftest.$ac_ext >&5
20801ac_cv_func_localtime_r=no
20802fi
20803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20804fi
20805echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
20806echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
20807if test $ac_cv_func_localtime_r = yes; then
20808
20809cat >>confdefs.h <<_ACEOF
20810#define HAVE_LOCALTIME_R 1
20811_ACEOF
20812
20813else
20814 LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
20815fi
20816echo "$as_me:$LINENO: checking for lstat" >&5
20817echo $ECHO_N "checking for lstat... $ECHO_C" >&6
20818if test "${ac_cv_func_lstat+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20820else
20821 cat >conftest.$ac_ext <<_ACEOF
20822#line $LINENO "configure"
20823#include "confdefs.h"
20824/* System header to define __stub macros and hopefully few prototypes,
20825 which can conflict with char lstat (); below. */
20826#include <assert.h>
20827/* Override any gcc2 internal prototype to avoid an error. */
20828#ifdef __cplusplus
20829extern "C"
20830#endif
20831/* We use char because int might match the return type of a gcc2
20832 builtin and then its argument prototype would still apply. */
20833char lstat ();
20834char (*f) ();
20835
20836#ifdef F77_DUMMY_MAIN
20837# ifdef __cplusplus
20838 extern "C"
20839# endif
20840 int F77_DUMMY_MAIN() { return 1; }
20841#endif
20842int
20843main ()
20844{
20845/* The GNU C library defines this for functions which it implements
20846 to always fail with ENOSYS. Some functions are actually named
20847 something starting with __ and the normal name is an alias. */
20848#if defined (__stub_lstat) || defined (__stub___lstat)
20849choke me
20850#else
20851f = lstat;
20852#endif
20853
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858rm -f conftest.$ac_objext conftest$ac_exeext
20859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20860 (eval $ac_link) 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
20864 { ac_try='test -s conftest$ac_exeext'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 ac_cv_func_lstat=yes
20871else
20872 echo "$as_me: failed program was:" >&5
20873cat conftest.$ac_ext >&5
20874ac_cv_func_lstat=no
20875fi
20876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20877fi
20878echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
20879echo "${ECHO_T}$ac_cv_func_lstat" >&6
20880if test $ac_cv_func_lstat = yes; then
20881
20882cat >>confdefs.h <<_ACEOF
20883#define HAVE_LSTAT 1
20884_ACEOF
20885
20886else
20887 LIBOBJS="$LIBOBJS lstat.$ac_objext"
20888fi
20889echo "$as_me:$LINENO: checking for memmove" >&5
20890echo $ECHO_N "checking for memmove... $ECHO_C" >&6
20891if test "${ac_cv_func_memmove+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20893else
20894 cat >conftest.$ac_ext <<_ACEOF
20895#line $LINENO "configure"
20896#include "confdefs.h"
20897/* System header to define __stub macros and hopefully few prototypes,
20898 which can conflict with char memmove (); below. */
20899#include <assert.h>
20900/* Override any gcc2 internal prototype to avoid an error. */
20901#ifdef __cplusplus
20902extern "C"
20903#endif
20904/* We use char because int might match the return type of a gcc2
20905 builtin and then its argument prototype would still apply. */
20906char memmove ();
20907char (*f) ();
20908
20909#ifdef F77_DUMMY_MAIN
20910# ifdef __cplusplus
20911 extern "C"
20912# endif
20913 int F77_DUMMY_MAIN() { return 1; }
20914#endif
20915int
20916main ()
20917{
20918/* The GNU C library defines this for functions which it implements
20919 to always fail with ENOSYS. Some functions are actually named
20920 something starting with __ and the normal name is an alias. */
20921#if defined (__stub_memmove) || defined (__stub___memmove)
20922choke me
20923#else
20924f = memmove;
20925#endif
20926
20927 ;
20928 return 0;
20929}
20930_ACEOF
20931rm -f conftest.$ac_objext conftest$ac_exeext
20932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20933 (eval $ac_link) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -s conftest$ac_exeext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_func_memmove=yes
20944else
20945 echo "$as_me: failed program was:" >&5
20946cat conftest.$ac_ext >&5
20947ac_cv_func_memmove=no
20948fi
20949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20950fi
20951echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
20952echo "${ECHO_T}$ac_cv_func_memmove" >&6
20953if test $ac_cv_func_memmove = yes; then
20954
20955cat >>confdefs.h <<_ACEOF
20956#define HAVE_MEMMOVE 1
20957_ACEOF
20958
20959else
20960 LIBOBJS="$LIBOBJS memmove.$ac_objext"
20961fi
20962echo "$as_me:$LINENO: checking for mkstemp" >&5
20963echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
20964if test "${ac_cv_func_mkstemp+set}" = set; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20966else
20967 cat >conftest.$ac_ext <<_ACEOF
20968#line $LINENO "configure"
20969#include "confdefs.h"
20970/* System header to define __stub macros and hopefully few prototypes,
20971 which can conflict with char mkstemp (); below. */
20972#include <assert.h>
20973/* Override any gcc2 internal prototype to avoid an error. */
20974#ifdef __cplusplus
20975extern "C"
20976#endif
20977/* We use char because int might match the return type of a gcc2
20978 builtin and then its argument prototype would still apply. */
20979char mkstemp ();
20980char (*f) ();
20981
20982#ifdef F77_DUMMY_MAIN
20983# ifdef __cplusplus
20984 extern "C"
20985# endif
20986 int F77_DUMMY_MAIN() { return 1; }
20987#endif
20988int
20989main ()
20990{
20991/* The GNU C library defines this for functions which it implements
20992 to always fail with ENOSYS. Some functions are actually named
20993 something starting with __ and the normal name is an alias. */
20994#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
20995choke me
20996#else
20997f = mkstemp;
20998#endif
20999
21000 ;
21001 return 0;
21002}
21003_ACEOF
21004rm -f conftest.$ac_objext conftest$ac_exeext
21005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21006 (eval $ac_link) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
21010 { ac_try='test -s conftest$ac_exeext'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21016 ac_cv_func_mkstemp=yes
21017else
21018 echo "$as_me: failed program was:" >&5
21019cat conftest.$ac_ext >&5
21020ac_cv_func_mkstemp=no
21021fi
21022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21023fi
21024echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
21025echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21026if test $ac_cv_func_mkstemp = yes; then
21027
21028cat >>confdefs.h <<_ACEOF
21029#define HAVE_MKSTEMP 1
21030_ACEOF
21031
21032else
21033 LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
21034fi
21035echo "$as_me:$LINENO: checking for putenv" >&5
21036echo $ECHO_N "checking for putenv... $ECHO_C" >&6
21037if test "${ac_cv_func_putenv+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039else
21040 cat >conftest.$ac_ext <<_ACEOF
21041#line $LINENO "configure"
21042#include "confdefs.h"
21043/* System header to define __stub macros and hopefully few prototypes,
21044 which can conflict with char putenv (); below. */
21045#include <assert.h>
21046/* Override any gcc2 internal prototype to avoid an error. */
21047#ifdef __cplusplus
21048extern "C"
21049#endif
21050/* We use char because int might match the return type of a gcc2
21051 builtin and then its argument prototype would still apply. */
21052char putenv ();
21053char (*f) ();
21054
21055#ifdef F77_DUMMY_MAIN
21056# ifdef __cplusplus
21057 extern "C"
21058# endif
21059 int F77_DUMMY_MAIN() { return 1; }
21060#endif
21061int
21062main ()
21063{
21064/* The GNU C library defines this for functions which it implements
21065 to always fail with ENOSYS. Some functions are actually named
21066 something starting with __ and the normal name is an alias. */
21067#if defined (__stub_putenv) || defined (__stub___putenv)
21068choke me
21069#else
21070f = putenv;
21071#endif
21072
21073 ;
21074 return 0;
21075}
21076_ACEOF
21077rm -f conftest.$ac_objext conftest$ac_exeext
21078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21079 (eval $ac_link) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
21083 { ac_try='test -s conftest$ac_exeext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ac_cv_func_putenv=yes
21090else
21091 echo "$as_me: failed program was:" >&5
21092cat conftest.$ac_ext >&5
21093ac_cv_func_putenv=no
21094fi
21095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21096fi
21097echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
21098echo "${ECHO_T}$ac_cv_func_putenv" >&6
21099if test $ac_cv_func_putenv = yes; then
21100
21101cat >>confdefs.h <<_ACEOF
21102#define HAVE_PUTENV 1
21103_ACEOF
21104
21105else
21106 LIBOBJS="$LIBOBJS putenv.$ac_objext"
21107fi
21108echo "$as_me:$LINENO: checking for rcmd" >&5
21109echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
21110if test "${ac_cv_func_rcmd+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21112else
21113 cat >conftest.$ac_ext <<_ACEOF
21114#line $LINENO "configure"
21115#include "confdefs.h"
21116/* System header to define __stub macros and hopefully few prototypes,
21117 which can conflict with char rcmd (); below. */
21118#include <assert.h>
21119/* Override any gcc2 internal prototype to avoid an error. */
21120#ifdef __cplusplus
21121extern "C"
21122#endif
21123/* We use char because int might match the return type of a gcc2
21124 builtin and then its argument prototype would still apply. */
21125char rcmd ();
21126char (*f) ();
21127
21128#ifdef F77_DUMMY_MAIN
21129# ifdef __cplusplus
21130 extern "C"
21131# endif
21132 int F77_DUMMY_MAIN() { return 1; }
21133#endif
21134int
21135main ()
21136{
21137/* The GNU C library defines this for functions which it implements
21138 to always fail with ENOSYS. Some functions are actually named
21139 something starting with __ and the normal name is an alias. */
21140#if defined (__stub_rcmd) || defined (__stub___rcmd)
21141choke me
21142#else
21143f = rcmd;
21144#endif
21145
21146 ;
21147 return 0;
21148}
21149_ACEOF
21150rm -f conftest.$ac_objext conftest$ac_exeext
21151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152 (eval $ac_link) 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); } &&
21156 { ac_try='test -s conftest$ac_exeext'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; }; then
21162 ac_cv_func_rcmd=yes
21163else
21164 echo "$as_me: failed program was:" >&5
21165cat conftest.$ac_ext >&5
21166ac_cv_func_rcmd=no
21167fi
21168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21169fi
21170echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
21171echo "${ECHO_T}$ac_cv_func_rcmd" >&6
21172if test $ac_cv_func_rcmd = yes; then
21173
21174cat >>confdefs.h <<_ACEOF
21175#define HAVE_RCMD 1
21176_ACEOF
21177
21178else
21179 LIBOBJS="$LIBOBJS rcmd.$ac_objext"
21180fi
21181echo "$as_me:$LINENO: checking for readv" >&5
21182echo $ECHO_N "checking for readv... $ECHO_C" >&6
21183if test "${ac_cv_func_readv+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21185else
21186 cat >conftest.$ac_ext <<_ACEOF
21187#line $LINENO "configure"
21188#include "confdefs.h"
21189/* System header to define __stub macros and hopefully few prototypes,
21190 which can conflict with char readv (); below. */
21191#include <assert.h>
21192/* Override any gcc2 internal prototype to avoid an error. */
21193#ifdef __cplusplus
21194extern "C"
21195#endif
21196/* We use char because int might match the return type of a gcc2
21197 builtin and then its argument prototype would still apply. */
21198char readv ();
21199char (*f) ();
21200
21201#ifdef F77_DUMMY_MAIN
21202# ifdef __cplusplus
21203 extern "C"
21204# endif
21205 int F77_DUMMY_MAIN() { return 1; }
21206#endif
21207int
21208main ()
21209{
21210/* The GNU C library defines this for functions which it implements
21211 to always fail with ENOSYS. Some functions are actually named
21212 something starting with __ and the normal name is an alias. */
21213#if defined (__stub_readv) || defined (__stub___readv)
21214choke me
21215#else
21216f = readv;
21217#endif
21218
21219 ;
21220 return 0;
21221}
21222_ACEOF
21223rm -f conftest.$ac_objext conftest$ac_exeext
21224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21225 (eval $ac_link) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } &&
21229 { ac_try='test -s conftest$ac_exeext'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 ac_cv_func_readv=yes
21236else
21237 echo "$as_me: failed program was:" >&5
21238cat conftest.$ac_ext >&5
21239ac_cv_func_readv=no
21240fi
21241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21242fi
21243echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
21244echo "${ECHO_T}$ac_cv_func_readv" >&6
21245if test $ac_cv_func_readv = yes; then
21246
21247cat >>confdefs.h <<_ACEOF
21248#define HAVE_READV 1
21249_ACEOF
21250
21251else
21252 LIBOBJS="$LIBOBJS readv.$ac_objext"
21253fi
21254echo "$as_me:$LINENO: checking for recvmsg" >&5
21255echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
21256if test "${ac_cv_func_recvmsg+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21258else
21259 cat >conftest.$ac_ext <<_ACEOF
21260#line $LINENO "configure"
21261#include "confdefs.h"
21262/* System header to define __stub macros and hopefully few prototypes,
21263 which can conflict with char recvmsg (); below. */
21264#include <assert.h>
21265/* Override any gcc2 internal prototype to avoid an error. */
21266#ifdef __cplusplus
21267extern "C"
21268#endif
21269/* We use char because int might match the return type of a gcc2
21270 builtin and then its argument prototype would still apply. */
21271char recvmsg ();
21272char (*f) ();
21273
21274#ifdef F77_DUMMY_MAIN
21275# ifdef __cplusplus
21276 extern "C"
21277# endif
21278 int F77_DUMMY_MAIN() { return 1; }
21279#endif
21280int
21281main ()
21282{
21283/* The GNU C library defines this for functions which it implements
21284 to always fail with ENOSYS. Some functions are actually named
21285 something starting with __ and the normal name is an alias. */
21286#if defined (__stub_recvmsg) || defined (__stub___recvmsg)
21287choke me
21288#else
21289f = recvmsg;
21290#endif
21291
21292 ;
21293 return 0;
21294}
21295_ACEOF
21296rm -f conftest.$ac_objext conftest$ac_exeext
21297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21298 (eval $ac_link) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } &&
21302 { ac_try='test -s conftest$ac_exeext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 ac_cv_func_recvmsg=yes
21309else
21310 echo "$as_me: failed program was:" >&5
21311cat conftest.$ac_ext >&5
21312ac_cv_func_recvmsg=no
21313fi
21314rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21315fi
21316echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
21317echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
21318if test $ac_cv_func_recvmsg = yes; then
21319
21320cat >>confdefs.h <<_ACEOF
21321#define HAVE_RECVMSG 1
21322_ACEOF
21323
21324else
21325 LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
21326fi
21327echo "$as_me:$LINENO: checking for sendmsg" >&5
21328echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
21329if test "${ac_cv_func_sendmsg+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21331else
21332 cat >conftest.$ac_ext <<_ACEOF
21333#line $LINENO "configure"
21334#include "confdefs.h"
21335/* System header to define __stub macros and hopefully few prototypes,
21336 which can conflict with char sendmsg (); below. */
21337#include <assert.h>
21338/* Override any gcc2 internal prototype to avoid an error. */
21339#ifdef __cplusplus
21340extern "C"
21341#endif
21342/* We use char because int might match the return type of a gcc2
21343 builtin and then its argument prototype would still apply. */
21344char sendmsg ();
21345char (*f) ();
21346
21347#ifdef F77_DUMMY_MAIN
21348# ifdef __cplusplus
21349 extern "C"
21350# endif
21351 int F77_DUMMY_MAIN() { return 1; }
21352#endif
21353int
21354main ()
21355{
21356/* The GNU C library defines this for functions which it implements
21357 to always fail with ENOSYS. Some functions are actually named
21358 something starting with __ and the normal name is an alias. */
21359#if defined (__stub_sendmsg) || defined (__stub___sendmsg)
21360choke me
21361#else
21362f = sendmsg;
21363#endif
21364
21365 ;
21366 return 0;
21367}
21368_ACEOF
21369rm -f conftest.$ac_objext conftest$ac_exeext
21370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371 (eval $ac_link) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
21375 { ac_try='test -s conftest$ac_exeext'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 ac_cv_func_sendmsg=yes
21382else
21383 echo "$as_me: failed program was:" >&5
21384cat conftest.$ac_ext >&5
21385ac_cv_func_sendmsg=no
21386fi
21387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21388fi
21389echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
21390echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
21391if test $ac_cv_func_sendmsg = yes; then
21392
21393cat >>confdefs.h <<_ACEOF
21394#define HAVE_SENDMSG 1
21395_ACEOF
21396
21397else
21398 LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
21399fi
21400echo "$as_me:$LINENO: checking for setegid" >&5
21401echo $ECHO_N "checking for setegid... $ECHO_C" >&6
21402if test "${ac_cv_func_setegid+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21404else
21405 cat >conftest.$ac_ext <<_ACEOF
21406#line $LINENO "configure"
21407#include "confdefs.h"
21408/* System header to define __stub macros and hopefully few prototypes,
21409 which can conflict with char setegid (); below. */
21410#include <assert.h>
21411/* Override any gcc2 internal prototype to avoid an error. */
21412#ifdef __cplusplus
21413extern "C"
21414#endif
21415/* We use char because int might match the return type of a gcc2
21416 builtin and then its argument prototype would still apply. */
21417char setegid ();
21418char (*f) ();
21419
21420#ifdef F77_DUMMY_MAIN
21421# ifdef __cplusplus
21422 extern "C"
21423# endif
21424 int F77_DUMMY_MAIN() { return 1; }
21425#endif
21426int
21427main ()
21428{
21429/* The GNU C library defines this for functions which it implements
21430 to always fail with ENOSYS. Some functions are actually named
21431 something starting with __ and the normal name is an alias. */
21432#if defined (__stub_setegid) || defined (__stub___setegid)
21433choke me
21434#else
21435f = setegid;
21436#endif
21437
21438 ;
21439 return 0;
21440}
21441_ACEOF
21442rm -f conftest.$ac_objext conftest$ac_exeext
21443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444 (eval $ac_link) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -s conftest$ac_exeext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_func_setegid=yes
21455else
21456 echo "$as_me: failed program was:" >&5
21457cat conftest.$ac_ext >&5
21458ac_cv_func_setegid=no
21459fi
21460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21461fi
21462echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
21463echo "${ECHO_T}$ac_cv_func_setegid" >&6
21464if test $ac_cv_func_setegid = yes; then
21465
21466cat >>confdefs.h <<_ACEOF
21467#define HAVE_SETEGID 1
21468_ACEOF
21469
21470else
21471 LIBOBJS="$LIBOBJS setegid.$ac_objext"
21472fi
21473echo "$as_me:$LINENO: checking for setenv" >&5
21474echo $ECHO_N "checking for setenv... $ECHO_C" >&6
21475if test "${ac_cv_func_setenv+set}" = set; then
21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21477else
21478 cat >conftest.$ac_ext <<_ACEOF
21479#line $LINENO "configure"
21480#include "confdefs.h"
21481/* System header to define __stub macros and hopefully few prototypes,
21482 which can conflict with char setenv (); below. */
21483#include <assert.h>
21484/* Override any gcc2 internal prototype to avoid an error. */
21485#ifdef __cplusplus
21486extern "C"
21487#endif
21488/* We use char because int might match the return type of a gcc2
21489 builtin and then its argument prototype would still apply. */
21490char setenv ();
21491char (*f) ();
21492
21493#ifdef F77_DUMMY_MAIN
21494# ifdef __cplusplus
21495 extern "C"
21496# endif
21497 int F77_DUMMY_MAIN() { return 1; }
21498#endif
21499int
21500main ()
21501{
21502/* The GNU C library defines this for functions which it implements
21503 to always fail with ENOSYS. Some functions are actually named
21504 something starting with __ and the normal name is an alias. */
21505#if defined (__stub_setenv) || defined (__stub___setenv)
21506choke me
21507#else
21508f = setenv;
21509#endif
21510
21511 ;
21512 return 0;
21513}
21514_ACEOF
21515rm -f conftest.$ac_objext conftest$ac_exeext
21516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21517 (eval $ac_link) 2>&5
21518 ac_status=$?
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
21521 { ac_try='test -s conftest$ac_exeext'
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21524 ac_status=$?
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; }; then
21527 ac_cv_func_setenv=yes
21528else
21529 echo "$as_me: failed program was:" >&5
21530cat conftest.$ac_ext >&5
21531ac_cv_func_setenv=no
21532fi
21533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21534fi
21535echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
21536echo "${ECHO_T}$ac_cv_func_setenv" >&6
21537if test $ac_cv_func_setenv = yes; then
21538
21539cat >>confdefs.h <<_ACEOF
21540#define HAVE_SETENV 1
21541_ACEOF
21542
21543else
21544 LIBOBJS="$LIBOBJS setenv.$ac_objext"
21545fi
21546echo "$as_me:$LINENO: checking for seteuid" >&5
21547echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
21548if test "${ac_cv_func_seteuid+set}" = set; then
21549 echo $ECHO_N "(cached) $ECHO_C" >&6
21550else
21551 cat >conftest.$ac_ext <<_ACEOF
21552#line $LINENO "configure"
21553#include "confdefs.h"
21554/* System header to define __stub macros and hopefully few prototypes,
21555 which can conflict with char seteuid (); below. */
21556#include <assert.h>
21557/* Override any gcc2 internal prototype to avoid an error. */
21558#ifdef __cplusplus
21559extern "C"
21560#endif
21561/* We use char because int might match the return type of a gcc2
21562 builtin and then its argument prototype would still apply. */
21563char seteuid ();
21564char (*f) ();
21565
21566#ifdef F77_DUMMY_MAIN
21567# ifdef __cplusplus
21568 extern "C"
21569# endif
21570 int F77_DUMMY_MAIN() { return 1; }
21571#endif
21572int
21573main ()
21574{
21575/* The GNU C library defines this for functions which it implements
21576 to always fail with ENOSYS. Some functions are actually named
21577 something starting with __ and the normal name is an alias. */
21578#if defined (__stub_seteuid) || defined (__stub___seteuid)
21579choke me
21580#else
21581f = seteuid;
21582#endif
21583
21584 ;
21585 return 0;
21586}
21587_ACEOF
21588rm -f conftest.$ac_objext conftest$ac_exeext
21589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21590 (eval $ac_link) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } &&
21594 { ac_try='test -s conftest$ac_exeext'
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; }; then
21600 ac_cv_func_seteuid=yes
21601else
21602 echo "$as_me: failed program was:" >&5
21603cat conftest.$ac_ext >&5
21604ac_cv_func_seteuid=no
21605fi
21606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21607fi
21608echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
21609echo "${ECHO_T}$ac_cv_func_seteuid" >&6
21610if test $ac_cv_func_seteuid = yes; then
21611
21612cat >>confdefs.h <<_ACEOF
21613#define HAVE_SETEUID 1
21614_ACEOF
21615
21616else
21617 LIBOBJS="$LIBOBJS seteuid.$ac_objext"
21618fi
21619echo "$as_me:$LINENO: checking for strcasecmp" >&5
21620echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
21621if test "${ac_cv_func_strcasecmp+set}" = set; then
21622 echo $ECHO_N "(cached) $ECHO_C" >&6
21623else
21624 cat >conftest.$ac_ext <<_ACEOF
21625#line $LINENO "configure"
21626#include "confdefs.h"
21627/* System header to define __stub macros and hopefully few prototypes,
21628 which can conflict with char strcasecmp (); below. */
21629#include <assert.h>
21630/* Override any gcc2 internal prototype to avoid an error. */
21631#ifdef __cplusplus
21632extern "C"
21633#endif
21634/* We use char because int might match the return type of a gcc2
21635 builtin and then its argument prototype would still apply. */
21636char strcasecmp ();
21637char (*f) ();
21638
21639#ifdef F77_DUMMY_MAIN
21640# ifdef __cplusplus
21641 extern "C"
21642# endif
21643 int F77_DUMMY_MAIN() { return 1; }
21644#endif
21645int
21646main ()
21647{
21648/* The GNU C library defines this for functions which it implements
21649 to always fail with ENOSYS. Some functions are actually named
21650 something starting with __ and the normal name is an alias. */
21651#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
21652choke me
21653#else
21654f = strcasecmp;
21655#endif
21656
21657 ;
21658 return 0;
21659}
21660_ACEOF
21661rm -f conftest.$ac_objext conftest$ac_exeext
21662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663 (eval $ac_link) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -s conftest$ac_exeext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 ac_cv_func_strcasecmp=yes
21674else
21675 echo "$as_me: failed program was:" >&5
21676cat conftest.$ac_ext >&5
21677ac_cv_func_strcasecmp=no
21678fi
21679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21680fi
21681echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
21682echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
21683if test $ac_cv_func_strcasecmp = yes; then
21684
21685cat >>confdefs.h <<_ACEOF
21686#define HAVE_STRCASECMP 1
21687_ACEOF
21688
21689else
21690 LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
21691fi
21692echo "$as_me:$LINENO: checking for strdup" >&5
21693echo $ECHO_N "checking for strdup... $ECHO_C" >&6
21694if test "${ac_cv_func_strdup+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21696else
21697 cat >conftest.$ac_ext <<_ACEOF
21698#line $LINENO "configure"
21699#include "confdefs.h"
21700/* System header to define __stub macros and hopefully few prototypes,
21701 which can conflict with char strdup (); below. */
21702#include <assert.h>
21703/* Override any gcc2 internal prototype to avoid an error. */
21704#ifdef __cplusplus
21705extern "C"
21706#endif
21707/* We use char because int might match the return type of a gcc2
21708 builtin and then its argument prototype would still apply. */
21709char strdup ();
21710char (*f) ();
21711
21712#ifdef F77_DUMMY_MAIN
21713# ifdef __cplusplus
21714 extern "C"
21715# endif
21716 int F77_DUMMY_MAIN() { return 1; }
21717#endif
21718int
21719main ()
21720{
21721/* The GNU C library defines this for functions which it implements
21722 to always fail with ENOSYS. Some functions are actually named
21723 something starting with __ and the normal name is an alias. */
21724#if defined (__stub_strdup) || defined (__stub___strdup)
21725choke me
21726#else
21727f = strdup;
21728#endif
21729
21730 ;
21731 return 0;
21732}
21733_ACEOF
21734rm -f conftest.$ac_objext conftest$ac_exeext
21735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736 (eval $ac_link) 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -s conftest$ac_exeext'
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 ac_cv_func_strdup=yes
21747else
21748 echo "$as_me: failed program was:" >&5
21749cat conftest.$ac_ext >&5
21750ac_cv_func_strdup=no
21751fi
21752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21753fi
21754echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
21755echo "${ECHO_T}$ac_cv_func_strdup" >&6
21756if test $ac_cv_func_strdup = yes; then
21757
21758cat >>confdefs.h <<_ACEOF
21759#define HAVE_STRDUP 1
21760_ACEOF
21761
21762else
21763 LIBOBJS="$LIBOBJS strdup.$ac_objext"
21764fi
21765echo "$as_me:$LINENO: checking for strerror" >&5
21766echo $ECHO_N "checking for strerror... $ECHO_C" >&6
21767if test "${ac_cv_func_strerror+set}" = set; then
21768 echo $ECHO_N "(cached) $ECHO_C" >&6
21769else
21770 cat >conftest.$ac_ext <<_ACEOF
21771#line $LINENO "configure"
21772#include "confdefs.h"
21773/* System header to define __stub macros and hopefully few prototypes,
21774 which can conflict with char strerror (); below. */
21775#include <assert.h>
21776/* Override any gcc2 internal prototype to avoid an error. */
21777#ifdef __cplusplus
21778extern "C"
21779#endif
21780/* We use char because int might match the return type of a gcc2
21781 builtin and then its argument prototype would still apply. */
21782char strerror ();
21783char (*f) ();
21784
21785#ifdef F77_DUMMY_MAIN
21786# ifdef __cplusplus
21787 extern "C"
21788# endif
21789 int F77_DUMMY_MAIN() { return 1; }
21790#endif
21791int
21792main ()
21793{
21794/* The GNU C library defines this for functions which it implements
21795 to always fail with ENOSYS. Some functions are actually named
21796 something starting with __ and the normal name is an alias. */
21797#if defined (__stub_strerror) || defined (__stub___strerror)
21798choke me
21799#else
21800f = strerror;
21801#endif
21802
21803 ;
21804 return 0;
21805}
21806_ACEOF
21807rm -f conftest.$ac_objext conftest$ac_exeext
21808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21809 (eval $ac_link) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
21813 { ac_try='test -s conftest$ac_exeext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21819 ac_cv_func_strerror=yes
21820else
21821 echo "$as_me: failed program was:" >&5
21822cat conftest.$ac_ext >&5
21823ac_cv_func_strerror=no
21824fi
21825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21826fi
21827echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
21828echo "${ECHO_T}$ac_cv_func_strerror" >&6
21829if test $ac_cv_func_strerror = yes; then
21830
21831cat >>confdefs.h <<_ACEOF
21832#define HAVE_STRERROR 1
21833_ACEOF
21834
21835else
21836 LIBOBJS="$LIBOBJS strerror.$ac_objext"
21837fi
21838echo "$as_me:$LINENO: checking for strftime" >&5
21839echo $ECHO_N "checking for strftime... $ECHO_C" >&6
21840if test "${ac_cv_func_strftime+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842else
21843 cat >conftest.$ac_ext <<_ACEOF
21844#line $LINENO "configure"
21845#include "confdefs.h"
21846/* System header to define __stub macros and hopefully few prototypes,
21847 which can conflict with char strftime (); below. */
21848#include <assert.h>
21849/* Override any gcc2 internal prototype to avoid an error. */
21850#ifdef __cplusplus
21851extern "C"
21852#endif
21853/* We use char because int might match the return type of a gcc2
21854 builtin and then its argument prototype would still apply. */
21855char strftime ();
21856char (*f) ();
21857
21858#ifdef F77_DUMMY_MAIN
21859# ifdef __cplusplus
21860 extern "C"
21861# endif
21862 int F77_DUMMY_MAIN() { return 1; }
21863#endif
21864int
21865main ()
21866{
21867/* The GNU C library defines this for functions which it implements
21868 to always fail with ENOSYS. Some functions are actually named
21869 something starting with __ and the normal name is an alias. */
21870#if defined (__stub_strftime) || defined (__stub___strftime)
21871choke me
21872#else
21873f = strftime;
21874#endif
21875
21876 ;
21877 return 0;
21878}
21879_ACEOF
21880rm -f conftest.$ac_objext conftest$ac_exeext
21881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21882 (eval $ac_link) 2>&5
21883 ac_status=$?
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try='test -s conftest$ac_exeext'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21889 ac_status=$?
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 ac_cv_func_strftime=yes
21893else
21894 echo "$as_me: failed program was:" >&5
21895cat conftest.$ac_ext >&5
21896ac_cv_func_strftime=no
21897fi
21898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21899fi
21900echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
21901echo "${ECHO_T}$ac_cv_func_strftime" >&6
21902if test $ac_cv_func_strftime = yes; then
21903
21904cat >>confdefs.h <<_ACEOF
21905#define HAVE_STRFTIME 1
21906_ACEOF
21907
21908else
21909 LIBOBJS="$LIBOBJS strftime.$ac_objext"
21910fi
21911echo "$as_me:$LINENO: checking for strlcat" >&5
21912echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
21913if test "${ac_cv_func_strlcat+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21915else
21916 cat >conftest.$ac_ext <<_ACEOF
21917#line $LINENO "configure"
21918#include "confdefs.h"
21919/* System header to define __stub macros and hopefully few prototypes,
21920 which can conflict with char strlcat (); below. */
21921#include <assert.h>
21922/* Override any gcc2 internal prototype to avoid an error. */
21923#ifdef __cplusplus
21924extern "C"
21925#endif
21926/* We use char because int might match the return type of a gcc2
21927 builtin and then its argument prototype would still apply. */
21928char strlcat ();
21929char (*f) ();
21930
21931#ifdef F77_DUMMY_MAIN
21932# ifdef __cplusplus
21933 extern "C"
21934# endif
21935 int F77_DUMMY_MAIN() { return 1; }
21936#endif
21937int
21938main ()
21939{
21940/* The GNU C library defines this for functions which it implements
21941 to always fail with ENOSYS. Some functions are actually named
21942 something starting with __ and the normal name is an alias. */
21943#if defined (__stub_strlcat) || defined (__stub___strlcat)
21944choke me
21945#else
21946f = strlcat;
21947#endif
21948
21949 ;
21950 return 0;
21951}
21952_ACEOF
21953rm -f conftest.$ac_objext conftest$ac_exeext
21954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955 (eval $ac_link) 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } &&
21959 { ac_try='test -s conftest$ac_exeext'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21962 ac_status=$?
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; }; then
21965 ac_cv_func_strlcat=yes
21966else
21967 echo "$as_me: failed program was:" >&5
21968cat conftest.$ac_ext >&5
21969ac_cv_func_strlcat=no
21970fi
21971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21972fi
21973echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
21974echo "${ECHO_T}$ac_cv_func_strlcat" >&6
21975if test $ac_cv_func_strlcat = yes; then
21976
21977cat >>confdefs.h <<_ACEOF
21978#define HAVE_STRLCAT 1
21979_ACEOF
21980
21981else
21982 LIBOBJS="$LIBOBJS strlcat.$ac_objext"
21983fi
21984echo "$as_me:$LINENO: checking for strlcpy" >&5
21985echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
21986if test "${ac_cv_func_strlcpy+set}" = set; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21988else
21989 cat >conftest.$ac_ext <<_ACEOF
21990#line $LINENO "configure"
21991#include "confdefs.h"
21992/* System header to define __stub macros and hopefully few prototypes,
21993 which can conflict with char strlcpy (); below. */
21994#include <assert.h>
21995/* Override any gcc2 internal prototype to avoid an error. */
21996#ifdef __cplusplus
21997extern "C"
21998#endif
21999/* We use char because int might match the return type of a gcc2
22000 builtin and then its argument prototype would still apply. */
22001char strlcpy ();
22002char (*f) ();
22003
22004#ifdef F77_DUMMY_MAIN
22005# ifdef __cplusplus
22006 extern "C"
22007# endif
22008 int F77_DUMMY_MAIN() { return 1; }
22009#endif
22010int
22011main ()
22012{
22013/* The GNU C library defines this for functions which it implements
22014 to always fail with ENOSYS. Some functions are actually named
22015 something starting with __ and the normal name is an alias. */
22016#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
22017choke me
22018#else
22019f = strlcpy;
22020#endif
22021
22022 ;
22023 return 0;
22024}
22025_ACEOF
22026rm -f conftest.$ac_objext conftest$ac_exeext
22027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22028 (eval $ac_link) 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } &&
22032 { ac_try='test -s conftest$ac_exeext'
22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22035 ac_status=$?
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
22038 ac_cv_func_strlcpy=yes
22039else
22040 echo "$as_me: failed program was:" >&5
22041cat conftest.$ac_ext >&5
22042ac_cv_func_strlcpy=no
22043fi
22044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22045fi
22046echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
22047echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
22048if test $ac_cv_func_strlcpy = yes; then
22049
22050cat >>confdefs.h <<_ACEOF
22051#define HAVE_STRLCPY 1
22052_ACEOF
22053
22054else
22055 LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
22056fi
22057echo "$as_me:$LINENO: checking for strlwr" >&5
22058echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
22059if test "${ac_cv_func_strlwr+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061else
22062 cat >conftest.$ac_ext <<_ACEOF
22063#line $LINENO "configure"
22064#include "confdefs.h"
22065/* System header to define __stub macros and hopefully few prototypes,
22066 which can conflict with char strlwr (); below. */
22067#include <assert.h>
22068/* Override any gcc2 internal prototype to avoid an error. */
22069#ifdef __cplusplus
22070extern "C"
22071#endif
22072/* We use char because int might match the return type of a gcc2
22073 builtin and then its argument prototype would still apply. */
22074char strlwr ();
22075char (*f) ();
22076
22077#ifdef F77_DUMMY_MAIN
22078# ifdef __cplusplus
22079 extern "C"
22080# endif
22081 int F77_DUMMY_MAIN() { return 1; }
22082#endif
22083int
22084main ()
22085{
22086/* The GNU C library defines this for functions which it implements
22087 to always fail with ENOSYS. Some functions are actually named
22088 something starting with __ and the normal name is an alias. */
22089#if defined (__stub_strlwr) || defined (__stub___strlwr)
22090choke me
22091#else
22092f = strlwr;
22093#endif
22094
22095 ;
22096 return 0;
22097}
22098_ACEOF
22099rm -f conftest.$ac_objext conftest$ac_exeext
22100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22101 (eval $ac_link) 2>&5
22102 ac_status=$?
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -s conftest$ac_exeext'
22106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107 (eval $ac_try) 2>&5
22108 ac_status=$?
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); }; }; then
22111 ac_cv_func_strlwr=yes
22112else
22113 echo "$as_me: failed program was:" >&5
22114cat conftest.$ac_ext >&5
22115ac_cv_func_strlwr=no
22116fi
22117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22118fi
22119echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
22120echo "${ECHO_T}$ac_cv_func_strlwr" >&6
22121if test $ac_cv_func_strlwr = yes; then
22122
22123cat >>confdefs.h <<_ACEOF
22124#define HAVE_STRLWR 1
22125_ACEOF
22126
22127else
22128 LIBOBJS="$LIBOBJS strlwr.$ac_objext"
22129fi
22130echo "$as_me:$LINENO: checking for strncasecmp" >&5
22131echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
22132if test "${ac_cv_func_strncasecmp+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134else
22135 cat >conftest.$ac_ext <<_ACEOF
22136#line $LINENO "configure"
22137#include "confdefs.h"
22138/* System header to define __stub macros and hopefully few prototypes,
22139 which can conflict with char strncasecmp (); below. */
22140#include <assert.h>
22141/* Override any gcc2 internal prototype to avoid an error. */
22142#ifdef __cplusplus
22143extern "C"
22144#endif
22145/* We use char because int might match the return type of a gcc2
22146 builtin and then its argument prototype would still apply. */
22147char strncasecmp ();
22148char (*f) ();
22149
22150#ifdef F77_DUMMY_MAIN
22151# ifdef __cplusplus
22152 extern "C"
22153# endif
22154 int F77_DUMMY_MAIN() { return 1; }
22155#endif
22156int
22157main ()
22158{
22159/* The GNU C library defines this for functions which it implements
22160 to always fail with ENOSYS. Some functions are actually named
22161 something starting with __ and the normal name is an alias. */
22162#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
22163choke me
22164#else
22165f = strncasecmp;
22166#endif
22167
22168 ;
22169 return 0;
22170}
22171_ACEOF
22172rm -f conftest.$ac_objext conftest$ac_exeext
22173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22174 (eval $ac_link) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } &&
22178 { ac_try='test -s conftest$ac_exeext'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22181 ac_status=$?
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; }; then
22184 ac_cv_func_strncasecmp=yes
22185else
22186 echo "$as_me: failed program was:" >&5
22187cat conftest.$ac_ext >&5
22188ac_cv_func_strncasecmp=no
22189fi
22190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22191fi
22192echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
22193echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
22194if test $ac_cv_func_strncasecmp = yes; then
22195
22196cat >>confdefs.h <<_ACEOF
22197#define HAVE_STRNCASECMP 1
22198_ACEOF
22199
22200else
22201 LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
22202fi
22203echo "$as_me:$LINENO: checking for strndup" >&5
22204echo $ECHO_N "checking for strndup... $ECHO_C" >&6
22205if test "${ac_cv_func_strndup+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22207else
22208 cat >conftest.$ac_ext <<_ACEOF
22209#line $LINENO "configure"
22210#include "confdefs.h"
22211/* System header to define __stub macros and hopefully few prototypes,
22212 which can conflict with char strndup (); below. */
22213#include <assert.h>
22214/* Override any gcc2 internal prototype to avoid an error. */
22215#ifdef __cplusplus
22216extern "C"
22217#endif
22218/* We use char because int might match the return type of a gcc2
22219 builtin and then its argument prototype would still apply. */
22220char strndup ();
22221char (*f) ();
22222
22223#ifdef F77_DUMMY_MAIN
22224# ifdef __cplusplus
22225 extern "C"
22226# endif
22227 int F77_DUMMY_MAIN() { return 1; }
22228#endif
22229int
22230main ()
22231{
22232/* The GNU C library defines this for functions which it implements
22233 to always fail with ENOSYS. Some functions are actually named
22234 something starting with __ and the normal name is an alias. */
22235#if defined (__stub_strndup) || defined (__stub___strndup)
22236choke me
22237#else
22238f = strndup;
22239#endif
22240
22241 ;
22242 return 0;
22243}
22244_ACEOF
22245rm -f conftest.$ac_objext conftest$ac_exeext
22246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22247 (eval $ac_link) 2>&5
22248 ac_status=$?
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } &&
22251 { ac_try='test -s conftest$ac_exeext'
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; }; then
22257 ac_cv_func_strndup=yes
22258else
22259 echo "$as_me: failed program was:" >&5
22260cat conftest.$ac_ext >&5
22261ac_cv_func_strndup=no
22262fi
22263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22264fi
22265echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
22266echo "${ECHO_T}$ac_cv_func_strndup" >&6
22267if test $ac_cv_func_strndup = yes; then
22268
22269cat >>confdefs.h <<_ACEOF
22270#define HAVE_STRNDUP 1
22271_ACEOF
22272
22273else
22274 LIBOBJS="$LIBOBJS strndup.$ac_objext"
22275fi
22276echo "$as_me:$LINENO: checking for strnlen" >&5
22277echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
22278if test "${ac_cv_func_strnlen+set}" = set; then
22279 echo $ECHO_N "(cached) $ECHO_C" >&6
22280else
22281 cat >conftest.$ac_ext <<_ACEOF
22282#line $LINENO "configure"
22283#include "confdefs.h"
22284/* System header to define __stub macros and hopefully few prototypes,
22285 which can conflict with char strnlen (); below. */
22286#include <assert.h>
22287/* Override any gcc2 internal prototype to avoid an error. */
22288#ifdef __cplusplus
22289extern "C"
22290#endif
22291/* We use char because int might match the return type of a gcc2
22292 builtin and then its argument prototype would still apply. */
22293char strnlen ();
22294char (*f) ();
22295
22296#ifdef F77_DUMMY_MAIN
22297# ifdef __cplusplus
22298 extern "C"
22299# endif
22300 int F77_DUMMY_MAIN() { return 1; }
22301#endif
22302int
22303main ()
22304{
22305/* The GNU C library defines this for functions which it implements
22306 to always fail with ENOSYS. Some functions are actually named
22307 something starting with __ and the normal name is an alias. */
22308#if defined (__stub_strnlen) || defined (__stub___strnlen)
22309choke me
22310#else
22311f = strnlen;
22312#endif
22313
22314 ;
22315 return 0;
22316}
22317_ACEOF
22318rm -f conftest.$ac_objext conftest$ac_exeext
22319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320 (eval $ac_link) 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } &&
22324 { ac_try='test -s conftest$ac_exeext'
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22327 ac_status=$?
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; }; then
22330 ac_cv_func_strnlen=yes
22331else
22332 echo "$as_me: failed program was:" >&5
22333cat conftest.$ac_ext >&5
22334ac_cv_func_strnlen=no
22335fi
22336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22337fi
22338echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
22339echo "${ECHO_T}$ac_cv_func_strnlen" >&6
22340if test $ac_cv_func_strnlen = yes; then
22341
22342cat >>confdefs.h <<_ACEOF
22343#define HAVE_STRNLEN 1
22344_ACEOF
22345
22346else
22347 LIBOBJS="$LIBOBJS strnlen.$ac_objext"
22348fi
22349echo "$as_me:$LINENO: checking for strptime" >&5
22350echo $ECHO_N "checking for strptime... $ECHO_C" >&6
22351if test "${ac_cv_func_strptime+set}" = set; then
22352 echo $ECHO_N "(cached) $ECHO_C" >&6
22353else
22354 cat >conftest.$ac_ext <<_ACEOF
22355#line $LINENO "configure"
22356#include "confdefs.h"
22357/* System header to define __stub macros and hopefully few prototypes,
22358 which can conflict with char strptime (); below. */
22359#include <assert.h>
22360/* Override any gcc2 internal prototype to avoid an error. */
22361#ifdef __cplusplus
22362extern "C"
22363#endif
22364/* We use char because int might match the return type of a gcc2
22365 builtin and then its argument prototype would still apply. */
22366char strptime ();
22367char (*f) ();
22368
22369#ifdef F77_DUMMY_MAIN
22370# ifdef __cplusplus
22371 extern "C"
22372# endif
22373 int F77_DUMMY_MAIN() { return 1; }
22374#endif
22375int
22376main ()
22377{
22378/* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381#if defined (__stub_strptime) || defined (__stub___strptime)
22382choke me
22383#else
22384f = strptime;
22385#endif
22386
22387 ;
22388 return 0;
22389}
22390_ACEOF
22391rm -f conftest.$ac_objext conftest$ac_exeext
22392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22393 (eval $ac_link) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } &&
22397 { ac_try='test -s conftest$ac_exeext'
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 ac_cv_func_strptime=yes
22404else
22405 echo "$as_me: failed program was:" >&5
22406cat conftest.$ac_ext >&5
22407ac_cv_func_strptime=no
22408fi
22409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22410fi
22411echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
22412echo "${ECHO_T}$ac_cv_func_strptime" >&6
22413if test $ac_cv_func_strptime = yes; then
22414
22415cat >>confdefs.h <<_ACEOF
22416#define HAVE_STRPTIME 1
22417_ACEOF
22418
22419else
22420 LIBOBJS="$LIBOBJS strptime.$ac_objext"
22421fi
22422echo "$as_me:$LINENO: checking for strsep" >&5
22423echo $ECHO_N "checking for strsep... $ECHO_C" >&6
22424if test "${ac_cv_func_strsep+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22426else
22427 cat >conftest.$ac_ext <<_ACEOF
22428#line $LINENO "configure"
22429#include "confdefs.h"
22430/* System header to define __stub macros and hopefully few prototypes,
22431 which can conflict with char strsep (); below. */
22432#include <assert.h>
22433/* Override any gcc2 internal prototype to avoid an error. */
22434#ifdef __cplusplus
22435extern "C"
22436#endif
22437/* We use char because int might match the return type of a gcc2
22438 builtin and then its argument prototype would still apply. */
22439char strsep ();
22440char (*f) ();
22441
22442#ifdef F77_DUMMY_MAIN
22443# ifdef __cplusplus
22444 extern "C"
22445# endif
22446 int F77_DUMMY_MAIN() { return 1; }
22447#endif
22448int
22449main ()
22450{
22451/* The GNU C library defines this for functions which it implements
22452 to always fail with ENOSYS. Some functions are actually named
22453 something starting with __ and the normal name is an alias. */
22454#if defined (__stub_strsep) || defined (__stub___strsep)
22455choke me
22456#else
22457f = strsep;
22458#endif
22459
22460 ;
22461 return 0;
22462}
22463_ACEOF
22464rm -f conftest.$ac_objext conftest$ac_exeext
22465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22466 (eval $ac_link) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -s conftest$ac_exeext'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_func_strsep=yes
22477else
22478 echo "$as_me: failed program was:" >&5
22479cat conftest.$ac_ext >&5
22480ac_cv_func_strsep=no
22481fi
22482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22483fi
22484echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
22485echo "${ECHO_T}$ac_cv_func_strsep" >&6
22486if test $ac_cv_func_strsep = yes; then
22487
22488cat >>confdefs.h <<_ACEOF
22489#define HAVE_STRSEP 1
22490_ACEOF
22491
22492else
22493 LIBOBJS="$LIBOBJS strsep.$ac_objext"
22494fi
22495echo "$as_me:$LINENO: checking for strsep_copy" >&5
22496echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
22497if test "${ac_cv_func_strsep_copy+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22499else
22500 cat >conftest.$ac_ext <<_ACEOF
22501#line $LINENO "configure"
22502#include "confdefs.h"
22503/* System header to define __stub macros and hopefully few prototypes,
22504 which can conflict with char strsep_copy (); below. */
22505#include <assert.h>
22506/* Override any gcc2 internal prototype to avoid an error. */
22507#ifdef __cplusplus
22508extern "C"
22509#endif
22510/* We use char because int might match the return type of a gcc2
22511 builtin and then its argument prototype would still apply. */
22512char strsep_copy ();
22513char (*f) ();
22514
22515#ifdef F77_DUMMY_MAIN
22516# ifdef __cplusplus
22517 extern "C"
22518# endif
22519 int F77_DUMMY_MAIN() { return 1; }
22520#endif
22521int
22522main ()
22523{
22524/* The GNU C library defines this for functions which it implements
22525 to always fail with ENOSYS. Some functions are actually named
22526 something starting with __ and the normal name is an alias. */
22527#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
22528choke me
22529#else
22530f = strsep_copy;
22531#endif
22532
22533 ;
22534 return 0;
22535}
22536_ACEOF
22537rm -f conftest.$ac_objext conftest$ac_exeext
22538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22539 (eval $ac_link) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); } &&
22543 { ac_try='test -s conftest$ac_exeext'
22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545 (eval $ac_try) 2>&5
22546 ac_status=$?
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; }; then
22549 ac_cv_func_strsep_copy=yes
22550else
22551 echo "$as_me: failed program was:" >&5
22552cat conftest.$ac_ext >&5
22553ac_cv_func_strsep_copy=no
22554fi
22555rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22556fi
22557echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
22558echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
22559if test $ac_cv_func_strsep_copy = yes; then
22560
22561cat >>confdefs.h <<_ACEOF
22562#define HAVE_STRSEP_COPY 1
22563_ACEOF
22564
22565else
22566 LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
22567fi
22568echo "$as_me:$LINENO: checking for strtok_r" >&5
22569echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
22570if test "${ac_cv_func_strtok_r+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22572else
22573 cat >conftest.$ac_ext <<_ACEOF
22574#line $LINENO "configure"
22575#include "confdefs.h"
22576/* System header to define __stub macros and hopefully few prototypes,
22577 which can conflict with char strtok_r (); below. */
22578#include <assert.h>
22579/* Override any gcc2 internal prototype to avoid an error. */
22580#ifdef __cplusplus
22581extern "C"
22582#endif
22583/* We use char because int might match the return type of a gcc2
22584 builtin and then its argument prototype would still apply. */
22585char strtok_r ();
22586char (*f) ();
22587
22588#ifdef F77_DUMMY_MAIN
22589# ifdef __cplusplus
22590 extern "C"
22591# endif
22592 int F77_DUMMY_MAIN() { return 1; }
22593#endif
22594int
22595main ()
22596{
22597/* The GNU C library defines this for functions which it implements
22598 to always fail with ENOSYS. Some functions are actually named
22599 something starting with __ and the normal name is an alias. */
22600#if defined (__stub_strtok_r) || defined (__stub___strtok_r)
22601choke me
22602#else
22603f = strtok_r;
22604#endif
22605
22606 ;
22607 return 0;
22608}
22609_ACEOF
22610rm -f conftest.$ac_objext conftest$ac_exeext
22611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612 (eval $ac_link) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } &&
22616 { ac_try='test -s conftest$ac_exeext'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 ac_cv_func_strtok_r=yes
22623else
22624 echo "$as_me: failed program was:" >&5
22625cat conftest.$ac_ext >&5
22626ac_cv_func_strtok_r=no
22627fi
22628rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22629fi
22630echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
22631echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
22632if test $ac_cv_func_strtok_r = yes; then
22633
22634cat >>confdefs.h <<_ACEOF
22635#define HAVE_STRTOK_R 1
22636_ACEOF
22637
22638else
22639 LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
22640fi
22641echo "$as_me:$LINENO: checking for strupr" >&5
22642echo $ECHO_N "checking for strupr... $ECHO_C" >&6
22643if test "${ac_cv_func_strupr+set}" = set; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
22645else
22646 cat >conftest.$ac_ext <<_ACEOF
22647#line $LINENO "configure"
22648#include "confdefs.h"
22649/* System header to define __stub macros and hopefully few prototypes,
22650 which can conflict with char strupr (); below. */
22651#include <assert.h>
22652/* Override any gcc2 internal prototype to avoid an error. */
22653#ifdef __cplusplus
22654extern "C"
22655#endif
22656/* We use char because int might match the return type of a gcc2
22657 builtin and then its argument prototype would still apply. */
22658char strupr ();
22659char (*f) ();
22660
22661#ifdef F77_DUMMY_MAIN
22662# ifdef __cplusplus
22663 extern "C"
22664# endif
22665 int F77_DUMMY_MAIN() { return 1; }
22666#endif
22667int
22668main ()
22669{
22670/* The GNU C library defines this for functions which it implements
22671 to always fail with ENOSYS. Some functions are actually named
22672 something starting with __ and the normal name is an alias. */
22673#if defined (__stub_strupr) || defined (__stub___strupr)
22674choke me
22675#else
22676f = strupr;
22677#endif
22678
22679 ;
22680 return 0;
22681}
22682_ACEOF
22683rm -f conftest.$ac_objext conftest$ac_exeext
22684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22685 (eval $ac_link) 2>&5
22686 ac_status=$?
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } &&
22689 { ac_try='test -s conftest$ac_exeext'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22692 ac_status=$?
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 ac_cv_func_strupr=yes
22696else
22697 echo "$as_me: failed program was:" >&5
22698cat conftest.$ac_ext >&5
22699ac_cv_func_strupr=no
22700fi
22701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22702fi
22703echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
22704echo "${ECHO_T}$ac_cv_func_strupr" >&6
22705if test $ac_cv_func_strupr = yes; then
22706
22707cat >>confdefs.h <<_ACEOF
22708#define HAVE_STRUPR 1
22709_ACEOF
22710
22711else
22712 LIBOBJS="$LIBOBJS strupr.$ac_objext"
22713fi
22714echo "$as_me:$LINENO: checking for swab" >&5
22715echo $ECHO_N "checking for swab... $ECHO_C" >&6
22716if test "${ac_cv_func_swab+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22718else
22719 cat >conftest.$ac_ext <<_ACEOF
22720#line $LINENO "configure"
22721#include "confdefs.h"
22722/* System header to define __stub macros and hopefully few prototypes,
22723 which can conflict with char swab (); below. */
22724#include <assert.h>
22725/* Override any gcc2 internal prototype to avoid an error. */
22726#ifdef __cplusplus
22727extern "C"
22728#endif
22729/* We use char because int might match the return type of a gcc2
22730 builtin and then its argument prototype would still apply. */
22731char swab ();
22732char (*f) ();
22733
22734#ifdef F77_DUMMY_MAIN
22735# ifdef __cplusplus
22736 extern "C"
22737# endif
22738 int F77_DUMMY_MAIN() { return 1; }
22739#endif
22740int
22741main ()
22742{
22743/* The GNU C library defines this for functions which it implements
22744 to always fail with ENOSYS. Some functions are actually named
22745 something starting with __ and the normal name is an alias. */
22746#if defined (__stub_swab) || defined (__stub___swab)
22747choke me
22748#else
22749f = swab;
22750#endif
22751
22752 ;
22753 return 0;
22754}
22755_ACEOF
22756rm -f conftest.$ac_objext conftest$ac_exeext
22757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22758 (eval $ac_link) 2>&5
22759 ac_status=$?
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } &&
22762 { ac_try='test -s conftest$ac_exeext'
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764 (eval $ac_try) 2>&5
22765 ac_status=$?
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
22768 ac_cv_func_swab=yes
22769else
22770 echo "$as_me: failed program was:" >&5
22771cat conftest.$ac_ext >&5
22772ac_cv_func_swab=no
22773fi
22774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22775fi
22776echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
22777echo "${ECHO_T}$ac_cv_func_swab" >&6
22778if test $ac_cv_func_swab = yes; then
22779
22780cat >>confdefs.h <<_ACEOF
22781#define HAVE_SWAB 1
22782_ACEOF
22783
22784else
22785 LIBOBJS="$LIBOBJS swab.$ac_objext"
22786fi
22787echo "$as_me:$LINENO: checking for unsetenv" >&5
22788echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
22789if test "${ac_cv_func_unsetenv+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22791else
22792 cat >conftest.$ac_ext <<_ACEOF
22793#line $LINENO "configure"
22794#include "confdefs.h"
22795/* System header to define __stub macros and hopefully few prototypes,
22796 which can conflict with char unsetenv (); below. */
22797#include <assert.h>
22798/* Override any gcc2 internal prototype to avoid an error. */
22799#ifdef __cplusplus
22800extern "C"
22801#endif
22802/* We use char because int might match the return type of a gcc2
22803 builtin and then its argument prototype would still apply. */
22804char unsetenv ();
22805char (*f) ();
22806
22807#ifdef F77_DUMMY_MAIN
22808# ifdef __cplusplus
22809 extern "C"
22810# endif
22811 int F77_DUMMY_MAIN() { return 1; }
22812#endif
22813int
22814main ()
22815{
22816/* The GNU C library defines this for functions which it implements
22817 to always fail with ENOSYS. Some functions are actually named
22818 something starting with __ and the normal name is an alias. */
22819#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
22820choke me
22821#else
22822f = unsetenv;
22823#endif
22824
22825 ;
22826 return 0;
22827}
22828_ACEOF
22829rm -f conftest.$ac_objext conftest$ac_exeext
22830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22831 (eval $ac_link) 2>&5
22832 ac_status=$?
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } &&
22835 { ac_try='test -s conftest$ac_exeext'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 ac_cv_func_unsetenv=yes
22842else
22843 echo "$as_me: failed program was:" >&5
22844cat conftest.$ac_ext >&5
22845ac_cv_func_unsetenv=no
22846fi
22847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22848fi
22849echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
22850echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
22851if test $ac_cv_func_unsetenv = yes; then
22852
22853cat >>confdefs.h <<_ACEOF
22854#define HAVE_UNSETENV 1
22855_ACEOF
22856
22857else
22858 LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
22859fi
22860echo "$as_me:$LINENO: checking for verr" >&5
22861echo $ECHO_N "checking for verr... $ECHO_C" >&6
22862if test "${ac_cv_func_verr+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22864else
22865 cat >conftest.$ac_ext <<_ACEOF
22866#line $LINENO "configure"
22867#include "confdefs.h"
22868/* System header to define __stub macros and hopefully few prototypes,
22869 which can conflict with char verr (); below. */
22870#include <assert.h>
22871/* Override any gcc2 internal prototype to avoid an error. */
22872#ifdef __cplusplus
22873extern "C"
22874#endif
22875/* We use char because int might match the return type of a gcc2
22876 builtin and then its argument prototype would still apply. */
22877char verr ();
22878char (*f) ();
22879
22880#ifdef F77_DUMMY_MAIN
22881# ifdef __cplusplus
22882 extern "C"
22883# endif
22884 int F77_DUMMY_MAIN() { return 1; }
22885#endif
22886int
22887main ()
22888{
22889/* The GNU C library defines this for functions which it implements
22890 to always fail with ENOSYS. Some functions are actually named
22891 something starting with __ and the normal name is an alias. */
22892#if defined (__stub_verr) || defined (__stub___verr)
22893choke me
22894#else
22895f = verr;
22896#endif
22897
22898 ;
22899 return 0;
22900}
22901_ACEOF
22902rm -f conftest.$ac_objext conftest$ac_exeext
22903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22904 (eval $ac_link) 2>&5
22905 ac_status=$?
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } &&
22908 { ac_try='test -s conftest$ac_exeext'
22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910 (eval $ac_try) 2>&5
22911 ac_status=$?
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; }; then
22914 ac_cv_func_verr=yes
22915else
22916 echo "$as_me: failed program was:" >&5
22917cat conftest.$ac_ext >&5
22918ac_cv_func_verr=no
22919fi
22920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22921fi
22922echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
22923echo "${ECHO_T}$ac_cv_func_verr" >&6
22924if test $ac_cv_func_verr = yes; then
22925
22926cat >>confdefs.h <<_ACEOF
22927#define HAVE_VERR 1
22928_ACEOF
22929
22930else
22931 LIBOBJS="$LIBOBJS verr.$ac_objext"
22932fi
22933echo "$as_me:$LINENO: checking for verrx" >&5
22934echo $ECHO_N "checking for verrx... $ECHO_C" >&6
22935if test "${ac_cv_func_verrx+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22937else
22938 cat >conftest.$ac_ext <<_ACEOF
22939#line $LINENO "configure"
22940#include "confdefs.h"
22941/* System header to define __stub macros and hopefully few prototypes,
22942 which can conflict with char verrx (); below. */
22943#include <assert.h>
22944/* Override any gcc2 internal prototype to avoid an error. */
22945#ifdef __cplusplus
22946extern "C"
22947#endif
22948/* We use char because int might match the return type of a gcc2
22949 builtin and then its argument prototype would still apply. */
22950char verrx ();
22951char (*f) ();
22952
22953#ifdef F77_DUMMY_MAIN
22954# ifdef __cplusplus
22955 extern "C"
22956# endif
22957 int F77_DUMMY_MAIN() { return 1; }
22958#endif
22959int
22960main ()
22961{
22962/* The GNU C library defines this for functions which it implements
22963 to always fail with ENOSYS. Some functions are actually named
22964 something starting with __ and the normal name is an alias. */
22965#if defined (__stub_verrx) || defined (__stub___verrx)
22966choke me
22967#else
22968f = verrx;
22969#endif
22970
22971 ;
22972 return 0;
22973}
22974_ACEOF
22975rm -f conftest.$ac_objext conftest$ac_exeext
22976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22977 (eval $ac_link) 2>&5
22978 ac_status=$?
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } &&
22981 { ac_try='test -s conftest$ac_exeext'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22984 ac_status=$?
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; }; then
22987 ac_cv_func_verrx=yes
22988else
22989 echo "$as_me: failed program was:" >&5
22990cat conftest.$ac_ext >&5
22991ac_cv_func_verrx=no
22992fi
22993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22994fi
22995echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
22996echo "${ECHO_T}$ac_cv_func_verrx" >&6
22997if test $ac_cv_func_verrx = yes; then
22998
22999cat >>confdefs.h <<_ACEOF
23000#define HAVE_VERRX 1
23001_ACEOF
23002
23003else
23004 LIBOBJS="$LIBOBJS verrx.$ac_objext"
23005fi
23006echo "$as_me:$LINENO: checking for vsyslog" >&5
23007echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
23008if test "${ac_cv_func_vsyslog+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23010else
23011 cat >conftest.$ac_ext <<_ACEOF
23012#line $LINENO "configure"
23013#include "confdefs.h"
23014/* System header to define __stub macros and hopefully few prototypes,
23015 which can conflict with char vsyslog (); below. */
23016#include <assert.h>
23017/* Override any gcc2 internal prototype to avoid an error. */
23018#ifdef __cplusplus
23019extern "C"
23020#endif
23021/* We use char because int might match the return type of a gcc2
23022 builtin and then its argument prototype would still apply. */
23023char vsyslog ();
23024char (*f) ();
23025
23026#ifdef F77_DUMMY_MAIN
23027# ifdef __cplusplus
23028 extern "C"
23029# endif
23030 int F77_DUMMY_MAIN() { return 1; }
23031#endif
23032int
23033main ()
23034{
23035/* The GNU C library defines this for functions which it implements
23036 to always fail with ENOSYS. Some functions are actually named
23037 something starting with __ and the normal name is an alias. */
23038#if defined (__stub_vsyslog) || defined (__stub___vsyslog)
23039choke me
23040#else
23041f = vsyslog;
23042#endif
23043
23044 ;
23045 return 0;
23046}
23047_ACEOF
23048rm -f conftest.$ac_objext conftest$ac_exeext
23049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23050 (eval $ac_link) 2>&5
23051 ac_status=$?
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } &&
23054 { ac_try='test -s conftest$ac_exeext'
23055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23057 ac_status=$?
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; }; then
23060 ac_cv_func_vsyslog=yes
23061else
23062 echo "$as_me: failed program was:" >&5
23063cat conftest.$ac_ext >&5
23064ac_cv_func_vsyslog=no
23065fi
23066rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23067fi
23068echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
23069echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
23070if test $ac_cv_func_vsyslog = yes; then
23071
23072cat >>confdefs.h <<_ACEOF
23073#define HAVE_VSYSLOG 1
23074_ACEOF
23075
23076else
23077 LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
23078fi
23079echo "$as_me:$LINENO: checking for vwarn" >&5
23080echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
23081if test "${ac_cv_func_vwarn+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083else
23084 cat >conftest.$ac_ext <<_ACEOF
23085#line $LINENO "configure"
23086#include "confdefs.h"
23087/* System header to define __stub macros and hopefully few prototypes,
23088 which can conflict with char vwarn (); below. */
23089#include <assert.h>
23090/* Override any gcc2 internal prototype to avoid an error. */
23091#ifdef __cplusplus
23092extern "C"
23093#endif
23094/* We use char because int might match the return type of a gcc2
23095 builtin and then its argument prototype would still apply. */
23096char vwarn ();
23097char (*f) ();
23098
23099#ifdef F77_DUMMY_MAIN
23100# ifdef __cplusplus
23101 extern "C"
23102# endif
23103 int F77_DUMMY_MAIN() { return 1; }
23104#endif
23105int
23106main ()
23107{
23108/* The GNU C library defines this for functions which it implements
23109 to always fail with ENOSYS. Some functions are actually named
23110 something starting with __ and the normal name is an alias. */
23111#if defined (__stub_vwarn) || defined (__stub___vwarn)
23112choke me
23113#else
23114f = vwarn;
23115#endif
23116
23117 ;
23118 return 0;
23119}
23120_ACEOF
23121rm -f conftest.$ac_objext conftest$ac_exeext
23122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123 (eval $ac_link) 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); } &&
23127 { ac_try='test -s conftest$ac_exeext'
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133 ac_cv_func_vwarn=yes
23134else
23135 echo "$as_me: failed program was:" >&5
23136cat conftest.$ac_ext >&5
23137ac_cv_func_vwarn=no
23138fi
23139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23140fi
23141echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
23142echo "${ECHO_T}$ac_cv_func_vwarn" >&6
23143if test $ac_cv_func_vwarn = yes; then
23144
23145cat >>confdefs.h <<_ACEOF
23146#define HAVE_VWARN 1
23147_ACEOF
23148
23149else
23150 LIBOBJS="$LIBOBJS vwarn.$ac_objext"
23151fi
23152echo "$as_me:$LINENO: checking for vwarnx" >&5
23153echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
23154if test "${ac_cv_func_vwarnx+set}" = set; then
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
23156else
23157 cat >conftest.$ac_ext <<_ACEOF
23158#line $LINENO "configure"
23159#include "confdefs.h"
23160/* System header to define __stub macros and hopefully few prototypes,
23161 which can conflict with char vwarnx (); below. */
23162#include <assert.h>
23163/* Override any gcc2 internal prototype to avoid an error. */
23164#ifdef __cplusplus
23165extern "C"
23166#endif
23167/* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23169char vwarnx ();
23170char (*f) ();
23171
23172#ifdef F77_DUMMY_MAIN
23173# ifdef __cplusplus
23174 extern "C"
23175# endif
23176 int F77_DUMMY_MAIN() { return 1; }
23177#endif
23178int
23179main ()
23180{
23181/* The GNU C library defines this for functions which it implements
23182 to always fail with ENOSYS. Some functions are actually named
23183 something starting with __ and the normal name is an alias. */
23184#if defined (__stub_vwarnx) || defined (__stub___vwarnx)
23185choke me
23186#else
23187f = vwarnx;
23188#endif
23189
23190 ;
23191 return 0;
23192}
23193_ACEOF
23194rm -f conftest.$ac_objext conftest$ac_exeext
23195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23196 (eval $ac_link) 2>&5
23197 ac_status=$?
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } &&
23200 { ac_try='test -s conftest$ac_exeext'
23201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202 (eval $ac_try) 2>&5
23203 ac_status=$?
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; }; then
23206 ac_cv_func_vwarnx=yes
23207else
23208 echo "$as_me: failed program was:" >&5
23209cat conftest.$ac_ext >&5
23210ac_cv_func_vwarnx=no
23211fi
23212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23213fi
23214echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
23215echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
23216if test $ac_cv_func_vwarnx = yes; then
23217
23218cat >>confdefs.h <<_ACEOF
23219#define HAVE_VWARNX 1
23220_ACEOF
23221
23222else
23223 LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
23224fi
23225echo "$as_me:$LINENO: checking for warn" >&5
23226echo $ECHO_N "checking for warn... $ECHO_C" >&6
23227if test "${ac_cv_func_warn+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23229else
23230 cat >conftest.$ac_ext <<_ACEOF
23231#line $LINENO "configure"
23232#include "confdefs.h"
23233/* System header to define __stub macros and hopefully few prototypes,
23234 which can conflict with char warn (); below. */
23235#include <assert.h>
23236/* Override any gcc2 internal prototype to avoid an error. */
23237#ifdef __cplusplus
23238extern "C"
23239#endif
23240/* We use char because int might match the return type of a gcc2
23241 builtin and then its argument prototype would still apply. */
23242char warn ();
23243char (*f) ();
23244
23245#ifdef F77_DUMMY_MAIN
23246# ifdef __cplusplus
23247 extern "C"
23248# endif
23249 int F77_DUMMY_MAIN() { return 1; }
23250#endif
23251int
23252main ()
23253{
23254/* The GNU C library defines this for functions which it implements
23255 to always fail with ENOSYS. Some functions are actually named
23256 something starting with __ and the normal name is an alias. */
23257#if defined (__stub_warn) || defined (__stub___warn)
23258choke me
23259#else
23260f = warn;
23261#endif
23262
23263 ;
23264 return 0;
23265}
23266_ACEOF
23267rm -f conftest.$ac_objext conftest$ac_exeext
23268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23269 (eval $ac_link) 2>&5
23270 ac_status=$?
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -s conftest$ac_exeext'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; }; then
23279 ac_cv_func_warn=yes
23280else
23281 echo "$as_me: failed program was:" >&5
23282cat conftest.$ac_ext >&5
23283ac_cv_func_warn=no
23284fi
23285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23286fi
23287echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
23288echo "${ECHO_T}$ac_cv_func_warn" >&6
23289if test $ac_cv_func_warn = yes; then
23290
23291cat >>confdefs.h <<_ACEOF
23292#define HAVE_WARN 1
23293_ACEOF
23294
23295else
23296 LIBOBJS="$LIBOBJS warn.$ac_objext"
23297fi
23298echo "$as_me:$LINENO: checking for warnx" >&5
23299echo $ECHO_N "checking for warnx... $ECHO_C" >&6
23300if test "${ac_cv_func_warnx+set}" = set; then
23301 echo $ECHO_N "(cached) $ECHO_C" >&6
23302else
23303 cat >conftest.$ac_ext <<_ACEOF
23304#line $LINENO "configure"
23305#include "confdefs.h"
23306/* System header to define __stub macros and hopefully few prototypes,
23307 which can conflict with char warnx (); below. */
23308#include <assert.h>
23309/* Override any gcc2 internal prototype to avoid an error. */
23310#ifdef __cplusplus
23311extern "C"
23312#endif
23313/* We use char because int might match the return type of a gcc2
23314 builtin and then its argument prototype would still apply. */
23315char warnx ();
23316char (*f) ();
23317
23318#ifdef F77_DUMMY_MAIN
23319# ifdef __cplusplus
23320 extern "C"
23321# endif
23322 int F77_DUMMY_MAIN() { return 1; }
23323#endif
23324int
23325main ()
23326{
23327/* The GNU C library defines this for functions which it implements
23328 to always fail with ENOSYS. Some functions are actually named
23329 something starting with __ and the normal name is an alias. */
23330#if defined (__stub_warnx) || defined (__stub___warnx)
23331choke me
23332#else
23333f = warnx;
23334#endif
23335
23336 ;
23337 return 0;
23338}
23339_ACEOF
23340rm -f conftest.$ac_objext conftest$ac_exeext
23341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23342 (eval $ac_link) 2>&5
23343 ac_status=$?
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } &&
23346 { ac_try='test -s conftest$ac_exeext'
23347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348 (eval $ac_try) 2>&5
23349 ac_status=$?
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); }; }; then
23352 ac_cv_func_warnx=yes
23353else
23354 echo "$as_me: failed program was:" >&5
23355cat conftest.$ac_ext >&5
23356ac_cv_func_warnx=no
23357fi
23358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23359fi
23360echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
23361echo "${ECHO_T}$ac_cv_func_warnx" >&6
23362if test $ac_cv_func_warnx = yes; then
23363
23364cat >>confdefs.h <<_ACEOF
23365#define HAVE_WARNX 1
23366_ACEOF
23367
23368else
23369 LIBOBJS="$LIBOBJS warnx.$ac_objext"
23370fi
23371echo "$as_me:$LINENO: checking for writev" >&5
23372echo $ECHO_N "checking for writev... $ECHO_C" >&6
23373if test "${ac_cv_func_writev+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23375else
23376 cat >conftest.$ac_ext <<_ACEOF
23377#line $LINENO "configure"
23378#include "confdefs.h"
23379/* System header to define __stub macros and hopefully few prototypes,
23380 which can conflict with char writev (); below. */
23381#include <assert.h>
23382/* Override any gcc2 internal prototype to avoid an error. */
23383#ifdef __cplusplus
23384extern "C"
23385#endif
23386/* We use char because int might match the return type of a gcc2
23387 builtin and then its argument prototype would still apply. */
23388char writev ();
23389char (*f) ();
23390
23391#ifdef F77_DUMMY_MAIN
23392# ifdef __cplusplus
23393 extern "C"
23394# endif
23395 int F77_DUMMY_MAIN() { return 1; }
23396#endif
23397int
23398main ()
23399{
23400/* The GNU C library defines this for functions which it implements
23401 to always fail with ENOSYS. Some functions are actually named
23402 something starting with __ and the normal name is an alias. */
23403#if defined (__stub_writev) || defined (__stub___writev)
23404choke me
23405#else
23406f = writev;
23407#endif
23408
23409 ;
23410 return 0;
23411}
23412_ACEOF
23413rm -f conftest.$ac_objext conftest$ac_exeext
23414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23415 (eval $ac_link) 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } &&
23419 { ac_try='test -s conftest$ac_exeext'
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 ac_cv_func_writev=yes
23426else
23427 echo "$as_me: failed program was:" >&5
23428cat conftest.$ac_ext >&5
23429ac_cv_func_writev=no
23430fi
23431rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23432fi
23433echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
23434echo "${ECHO_T}$ac_cv_func_writev" >&6
23435if test $ac_cv_func_writev = yes; then
23436
23437cat >>confdefs.h <<_ACEOF
23438#define HAVE_WRITEV 1
23439_ACEOF
23440
23441else
23442 LIBOBJS="$LIBOBJS writev.$ac_objext"
23443fi
23444
23445
23446
23447if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
23448echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
23449echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
23450if test "${ac_cv_func_strndup_noproto+set}" = set; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23452else
23453 cat >conftest.$ac_ext <<_ACEOF
23454#line $LINENO "configure"
23455#include "confdefs.h"
23456#include <string.h>
23457#ifdef F77_DUMMY_MAIN
23458# ifdef __cplusplus
23459 extern "C"
23460# endif
23461 int F77_DUMMY_MAIN() { return 1; }
23462#endif
23463int
23464main ()
23465{
23466struct foo { int foo; } xx;
23467extern int strndup (struct foo*);
23468strndup(&xx);
23469
23470 ;
23471 return 0;
23472}
23473_ACEOF
23474rm -f conftest.$ac_objext
23475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23476 (eval $ac_compile) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } &&
23480 { ac_try='test -s conftest.$ac_objext'
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23483 ac_status=$?
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; }; then
23486 eval "ac_cv_func_strndup_noproto=yes"
23487else
23488 echo "$as_me: failed program was:" >&5
23489cat conftest.$ac_ext >&5
23490eval "ac_cv_func_strndup_noproto=no"
23491fi
23492rm -f conftest.$ac_objext conftest.$ac_ext
23493fi
23494echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
23495echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
23496if test "$ac_cv_func_strndup_noproto" = yes; then
23497
23498cat >>confdefs.h <<\_ACEOF
23499#define NEED_STRNDUP_PROTO 1
23500_ACEOF
23501
23502fi
23503fi
23504
23505if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
23506echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
23507echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
23508if test "${ac_cv_func_strsep_noproto+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23510else
23511 cat >conftest.$ac_ext <<_ACEOF
23512#line $LINENO "configure"
23513#include "confdefs.h"
23514#include <string.h>
23515#ifdef F77_DUMMY_MAIN
23516# ifdef __cplusplus
23517 extern "C"
23518# endif
23519 int F77_DUMMY_MAIN() { return 1; }
23520#endif
23521int
23522main ()
23523{
23524struct foo { int foo; } xx;
23525extern int strsep (struct foo*);
23526strsep(&xx);
23527
23528 ;
23529 return 0;
23530}
23531_ACEOF
23532rm -f conftest.$ac_objext
23533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23534 (eval $ac_compile) 2>&5
23535 ac_status=$?
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } &&
23538 { ac_try='test -s conftest.$ac_objext'
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; }; then
23544 eval "ac_cv_func_strsep_noproto=yes"
23545else
23546 echo "$as_me: failed program was:" >&5
23547cat conftest.$ac_ext >&5
23548eval "ac_cv_func_strsep_noproto=no"
23549fi
23550rm -f conftest.$ac_objext conftest.$ac_ext
23551fi
23552echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
23553echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
23554if test "$ac_cv_func_strsep_noproto" = yes; then
23555
23556cat >>confdefs.h <<\_ACEOF
23557#define NEED_STRSEP_PROTO 1
23558_ACEOF
23559
23560fi
23561fi
23562
23563if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
23564echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
23565echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
23566if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
23567 echo $ECHO_N "(cached) $ECHO_C" >&6
23568else
23569 cat >conftest.$ac_ext <<_ACEOF
23570#line $LINENO "configure"
23571#include "confdefs.h"
23572#include <string.h>
23573#ifdef F77_DUMMY_MAIN
23574# ifdef __cplusplus
23575 extern "C"
23576# endif
23577 int F77_DUMMY_MAIN() { return 1; }
23578#endif
23579int
23580main ()
23581{
23582struct foo { int foo; } xx;
23583extern int strtok_r (struct foo*);
23584strtok_r(&xx);
23585
23586 ;
23587 return 0;
23588}
23589_ACEOF
23590rm -f conftest.$ac_objext
23591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23592 (eval $ac_compile) 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } &&
23596 { ac_try='test -s conftest.$ac_objext'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23599 ac_status=$?
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; }; then
23602 eval "ac_cv_func_strtok_r_noproto=yes"
23603else
23604 echo "$as_me: failed program was:" >&5
23605cat conftest.$ac_ext >&5
23606eval "ac_cv_func_strtok_r_noproto=no"
23607fi
23608rm -f conftest.$ac_objext conftest.$ac_ext
23609fi
23610echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
23611echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
23612if test "$ac_cv_func_strtok_r_noproto" = yes; then
23613
23614cat >>confdefs.h <<\_ACEOF
23615#define NEED_STRTOK_R_PROTO 1
23616_ACEOF
23617
23618fi
23619fi
23620
23621
23622
23623if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
23624echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
23625echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
23626if test "${ac_cv_func_strsvis_noproto+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23628else
23629 cat >conftest.$ac_ext <<_ACEOF
23630#line $LINENO "configure"
23631#include "confdefs.h"
23632#ifdef HAVE_VIS_H
23633#include <vis.h>
23634#endif
23635#ifdef F77_DUMMY_MAIN
23636# ifdef __cplusplus
23637 extern "C"
23638# endif
23639 int F77_DUMMY_MAIN() { return 1; }
23640#endif
23641int
23642main ()
23643{
23644struct foo { int foo; } xx;
23645extern int strsvis (struct foo*);
23646strsvis(&xx);
23647
23648 ;
23649 return 0;
23650}
23651_ACEOF
23652rm -f conftest.$ac_objext
23653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23654 (eval $ac_compile) 2>&5
23655 ac_status=$?
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); } &&
23658 { ac_try='test -s conftest.$ac_objext'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23664 eval "ac_cv_func_strsvis_noproto=yes"
23665else
23666 echo "$as_me: failed program was:" >&5
23667cat conftest.$ac_ext >&5
23668eval "ac_cv_func_strsvis_noproto=no"
23669fi
23670rm -f conftest.$ac_objext conftest.$ac_ext
23671fi
23672echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
23673echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
23674if test "$ac_cv_func_strsvis_noproto" = yes; then
23675
23676cat >>confdefs.h <<\_ACEOF
23677#define NEED_STRSVIS_PROTO 1
23678_ACEOF
23679
23680fi
23681fi
23682
23683if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
23684echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
23685echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
23686if test "${ac_cv_func_strunvis_noproto+set}" = set; then
23687 echo $ECHO_N "(cached) $ECHO_C" >&6
23688else
23689 cat >conftest.$ac_ext <<_ACEOF
23690#line $LINENO "configure"
23691#include "confdefs.h"
23692#ifdef HAVE_VIS_H
23693#include <vis.h>
23694#endif
23695#ifdef F77_DUMMY_MAIN
23696# ifdef __cplusplus
23697 extern "C"
23698# endif
23699 int F77_DUMMY_MAIN() { return 1; }
23700#endif
23701int
23702main ()
23703{
23704struct foo { int foo; } xx;
23705extern int strunvis (struct foo*);
23706strunvis(&xx);
23707
23708 ;
23709 return 0;
23710}
23711_ACEOF
23712rm -f conftest.$ac_objext
23713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23714 (eval $ac_compile) 2>&5
23715 ac_status=$?
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } &&
23718 { ac_try='test -s conftest.$ac_objext'
23719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720 (eval $ac_try) 2>&5
23721 ac_status=$?
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); }; }; then
23724 eval "ac_cv_func_strunvis_noproto=yes"
23725else
23726 echo "$as_me: failed program was:" >&5
23727cat conftest.$ac_ext >&5
23728eval "ac_cv_func_strunvis_noproto=no"
23729fi
23730rm -f conftest.$ac_objext conftest.$ac_ext
23731fi
23732echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
23733echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
23734if test "$ac_cv_func_strunvis_noproto" = yes; then
23735
23736cat >>confdefs.h <<\_ACEOF
23737#define NEED_STRUNVIS_PROTO 1
23738_ACEOF
23739
23740fi
23741fi
23742
23743if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
23744echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
23745echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
23746if test "${ac_cv_func_strvis_noproto+set}" = set; then
23747 echo $ECHO_N "(cached) $ECHO_C" >&6
23748else
23749 cat >conftest.$ac_ext <<_ACEOF
23750#line $LINENO "configure"
23751#include "confdefs.h"
23752#ifdef HAVE_VIS_H
23753#include <vis.h>
23754#endif
23755#ifdef F77_DUMMY_MAIN
23756# ifdef __cplusplus
23757 extern "C"
23758# endif
23759 int F77_DUMMY_MAIN() { return 1; }
23760#endif
23761int
23762main ()
23763{
23764struct foo { int foo; } xx;
23765extern int strvis (struct foo*);
23766strvis(&xx);
23767
23768 ;
23769 return 0;
23770}
23771_ACEOF
23772rm -f conftest.$ac_objext
23773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23774 (eval $ac_compile) 2>&5
23775 ac_status=$?
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } &&
23778 { ac_try='test -s conftest.$ac_objext'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23781 ac_status=$?
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; }; then
23784 eval "ac_cv_func_strvis_noproto=yes"
23785else
23786 echo "$as_me: failed program was:" >&5
23787cat conftest.$ac_ext >&5
23788eval "ac_cv_func_strvis_noproto=no"
23789fi
23790rm -f conftest.$ac_objext conftest.$ac_ext
23791fi
23792echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
23793echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
23794if test "$ac_cv_func_strvis_noproto" = yes; then
23795
23796cat >>confdefs.h <<\_ACEOF
23797#define NEED_STRVIS_PROTO 1
23798_ACEOF
23799
23800fi
23801fi
23802
23803if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
23804echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
23805echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
23806if test "${ac_cv_func_strvisx_noproto+set}" = set; then
23807 echo $ECHO_N "(cached) $ECHO_C" >&6
23808else
23809 cat >conftest.$ac_ext <<_ACEOF
23810#line $LINENO "configure"
23811#include "confdefs.h"
23812#ifdef HAVE_VIS_H
23813#include <vis.h>
23814#endif
23815#ifdef F77_DUMMY_MAIN
23816# ifdef __cplusplus
23817 extern "C"
23818# endif
23819 int F77_DUMMY_MAIN() { return 1; }
23820#endif
23821int
23822main ()
23823{
23824struct foo { int foo; } xx;
23825extern int strvisx (struct foo*);
23826strvisx(&xx);
23827
23828 ;
23829 return 0;
23830}
23831_ACEOF
23832rm -f conftest.$ac_objext
23833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23834 (eval $ac_compile) 2>&5
23835 ac_status=$?
23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); } &&
23838 { ac_try='test -s conftest.$ac_objext'
23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840 (eval $ac_try) 2>&5
23841 ac_status=$?
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); }; }; then
23844 eval "ac_cv_func_strvisx_noproto=yes"
23845else
23846 echo "$as_me: failed program was:" >&5
23847cat conftest.$ac_ext >&5
23848eval "ac_cv_func_strvisx_noproto=no"
23849fi
23850rm -f conftest.$ac_objext conftest.$ac_ext
23851fi
23852echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
23853echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
23854if test "$ac_cv_func_strvisx_noproto" = yes; then
23855
23856cat >>confdefs.h <<\_ACEOF
23857#define NEED_STRVISX_PROTO 1
23858_ACEOF
23859
23860fi
23861fi
23862
23863if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
23864echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
23865echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
23866if test "${ac_cv_func_svis_noproto+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23868else
23869 cat >conftest.$ac_ext <<_ACEOF
23870#line $LINENO "configure"
23871#include "confdefs.h"
23872#ifdef HAVE_VIS_H
23873#include <vis.h>
23874#endif
23875#ifdef F77_DUMMY_MAIN
23876# ifdef __cplusplus
23877 extern "C"
23878# endif
23879 int F77_DUMMY_MAIN() { return 1; }
23880#endif
23881int
23882main ()
23883{
23884struct foo { int foo; } xx;
23885extern int svis (struct foo*);
23886svis(&xx);
23887
23888 ;
23889 return 0;
23890}
23891_ACEOF
23892rm -f conftest.$ac_objext
23893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23894 (eval $ac_compile) 2>&5
23895 ac_status=$?
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } &&
23898 { ac_try='test -s conftest.$ac_objext'
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; }; then
23904 eval "ac_cv_func_svis_noproto=yes"
23905else
23906 echo "$as_me: failed program was:" >&5
23907cat conftest.$ac_ext >&5
23908eval "ac_cv_func_svis_noproto=no"
23909fi
23910rm -f conftest.$ac_objext conftest.$ac_ext
23911fi
23912echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
23913echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
23914if test "$ac_cv_func_svis_noproto" = yes; then
23915
23916cat >>confdefs.h <<\_ACEOF
23917#define NEED_SVIS_PROTO 1
23918_ACEOF
23919
23920fi
23921fi
23922
23923if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
23924echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
23925echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
23926if test "${ac_cv_func_unvis_noproto+set}" = set; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23928else
23929 cat >conftest.$ac_ext <<_ACEOF
23930#line $LINENO "configure"
23931#include "confdefs.h"
23932#ifdef HAVE_VIS_H
23933#include <vis.h>
23934#endif
23935#ifdef F77_DUMMY_MAIN
23936# ifdef __cplusplus
23937 extern "C"
23938# endif
23939 int F77_DUMMY_MAIN() { return 1; }
23940#endif
23941int
23942main ()
23943{
23944struct foo { int foo; } xx;
23945extern int unvis (struct foo*);
23946unvis(&xx);
23947
23948 ;
23949 return 0;
23950}
23951_ACEOF
23952rm -f conftest.$ac_objext
23953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23954 (eval $ac_compile) 2>&5
23955 ac_status=$?
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); } &&
23958 { ac_try='test -s conftest.$ac_objext'
23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); }; }; then
23964 eval "ac_cv_func_unvis_noproto=yes"
23965else
23966 echo "$as_me: failed program was:" >&5
23967cat conftest.$ac_ext >&5
23968eval "ac_cv_func_unvis_noproto=no"
23969fi
23970rm -f conftest.$ac_objext conftest.$ac_ext
23971fi
23972echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
23973echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
23974if test "$ac_cv_func_unvis_noproto" = yes; then
23975
23976cat >>confdefs.h <<\_ACEOF
23977#define NEED_UNVIS_PROTO 1
23978_ACEOF
23979
23980fi
23981fi
23982
23983if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
23984echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
23985echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
23986if test "${ac_cv_func_vis_noproto+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23988else
23989 cat >conftest.$ac_ext <<_ACEOF
23990#line $LINENO "configure"
23991#include "confdefs.h"
23992#ifdef HAVE_VIS_H
23993#include <vis.h>
23994#endif
23995#ifdef F77_DUMMY_MAIN
23996# ifdef __cplusplus
23997 extern "C"
23998# endif
23999 int F77_DUMMY_MAIN() { return 1; }
24000#endif
24001int
24002main ()
24003{
24004struct foo { int foo; } xx;
24005extern int vis (struct foo*);
24006vis(&xx);
24007
24008 ;
24009 return 0;
24010}
24011_ACEOF
24012rm -f conftest.$ac_objext
24013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24014 (eval $ac_compile) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } &&
24018 { ac_try='test -s conftest.$ac_objext'
24019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020 (eval $ac_try) 2>&5
24021 ac_status=$?
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); }; }; then
24024 eval "ac_cv_func_vis_noproto=yes"
24025else
24026 echo "$as_me: failed program was:" >&5
24027cat conftest.$ac_ext >&5
24028eval "ac_cv_func_vis_noproto=no"
24029fi
24030rm -f conftest.$ac_objext conftest.$ac_ext
24031fi
24032echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
24033echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
24034if test "$ac_cv_func_vis_noproto" = yes; then
24035
24036cat >>confdefs.h <<\_ACEOF
24037#define NEED_VIS_PROTO 1
24038_ACEOF
24039
24040fi
24041fi
24042
24043
24044echo "$as_me:$LINENO: checking for inet_aton" >&5
24045echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
24046if test "${ac_cv_func_inet_aton+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24048else
24049 cat >conftest.$ac_ext <<_ACEOF
24050#line $LINENO "configure"
24051#include "confdefs.h"
24052#ifdef HAVE_SYS_TYPES_H
24053#include <sys/types.h>
24054#endif
24055#ifdef HAVE_SYS_SOCKET_H
24056#include <sys/socket.h>
24057#endif
24058#ifdef HAVE_NETINET_IN_H
24059#include <netinet/in.h>
24060#endif
24061#ifdef HAVE_ARPA_INET_H
24062#include <arpa/inet.h>
24063#endif
24064#ifdef F77_DUMMY_MAIN
24065# ifdef __cplusplus
24066 extern "C"
24067# endif
24068 int F77_DUMMY_MAIN() { return 1; }
24069#endif
24070int
24071main ()
24072{
24073
24074/* The GNU C library defines this for functions which it implements
24075 to always fail with ENOSYS. Some functions are actually named
24076 something starting with __ and the normal name is an alias. */
24077#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
24078choke me
24079#else
24080inet_aton(0,0)
24081#endif
24082
24083 ;
24084 return 0;
24085}
24086_ACEOF
24087rm -f conftest.$ac_objext conftest$ac_exeext
24088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24089 (eval $ac_link) 2>&5
24090 ac_status=$?
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } &&
24093 { ac_try='test -s conftest$ac_exeext'
24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095 (eval $ac_try) 2>&5
24096 ac_status=$?
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; }; then
24099 eval "ac_cv_func_inet_aton=yes"
24100else
24101 echo "$as_me: failed program was:" >&5
24102cat conftest.$ac_ext >&5
24103eval "ac_cv_func_inet_aton=no"
24104fi
24105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24106fi
24107
24108if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
24109
24110cat >>confdefs.h <<_ACEOF
24111#define HAVE_INET_ATON 1
24112_ACEOF
24113
24114 echo "$as_me:$LINENO: result: yes" >&5
24115echo "${ECHO_T}yes" >&6
24116else
24117 echo "$as_me:$LINENO: result: no" >&5
24118echo "${ECHO_T}no" >&6
24119 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
24120fi
24121
24122echo "$as_me:$LINENO: checking for inet_ntop" >&5
24123echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
24124if test "${ac_cv_func_inet_ntop+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24126else
24127 cat >conftest.$ac_ext <<_ACEOF
24128#line $LINENO "configure"
24129#include "confdefs.h"
24130#ifdef HAVE_SYS_TYPES_H
24131#include <sys/types.h>
24132#endif
24133#ifdef HAVE_SYS_SOCKET_H
24134#include <sys/socket.h>
24135#endif
24136#ifdef HAVE_NETINET_IN_H
24137#include <netinet/in.h>
24138#endif
24139#ifdef HAVE_ARPA_INET_H
24140#include <arpa/inet.h>
24141#endif
24142#ifdef F77_DUMMY_MAIN
24143# ifdef __cplusplus
24144 extern "C"
24145# endif
24146 int F77_DUMMY_MAIN() { return 1; }
24147#endif
24148int
24149main ()
24150{
24151
24152/* The GNU C library defines this for functions which it implements
24153 to always fail with ENOSYS. Some functions are actually named
24154 something starting with __ and the normal name is an alias. */
24155#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
24156choke me
24157#else
24158inet_ntop(0, 0, 0, 0)
24159#endif
24160
24161 ;
24162 return 0;
24163}
24164_ACEOF
24165rm -f conftest.$ac_objext conftest$ac_exeext
24166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24167 (eval $ac_link) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } &&
24171 { ac_try='test -s conftest$ac_exeext'
24172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173 (eval $ac_try) 2>&5
24174 ac_status=$?
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); }; }; then
24177 eval "ac_cv_func_inet_ntop=yes"
24178else
24179 echo "$as_me: failed program was:" >&5
24180cat conftest.$ac_ext >&5
24181eval "ac_cv_func_inet_ntop=no"
24182fi
24183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24184fi
24185
24186if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
24187
24188cat >>confdefs.h <<_ACEOF
24189#define HAVE_INET_NTOP 1
24190_ACEOF
24191
24192 echo "$as_me:$LINENO: result: yes" >&5
24193echo "${ECHO_T}yes" >&6
24194else
24195 echo "$as_me:$LINENO: result: no" >&5
24196echo "${ECHO_T}no" >&6
24197 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
24198fi
24199
24200echo "$as_me:$LINENO: checking for inet_pton" >&5
24201echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
24202if test "${ac_cv_func_inet_pton+set}" = set; then
24203 echo $ECHO_N "(cached) $ECHO_C" >&6
24204else
24205 cat >conftest.$ac_ext <<_ACEOF
24206#line $LINENO "configure"
24207#include "confdefs.h"
24208#ifdef HAVE_SYS_TYPES_H
24209#include <sys/types.h>
24210#endif
24211#ifdef HAVE_SYS_SOCKET_H
24212#include <sys/socket.h>
24213#endif
24214#ifdef HAVE_NETINET_IN_H
24215#include <netinet/in.h>
24216#endif
24217#ifdef HAVE_ARPA_INET_H
24218#include <arpa/inet.h>
24219#endif
24220#ifdef F77_DUMMY_MAIN
24221# ifdef __cplusplus
24222 extern "C"
24223# endif
24224 int F77_DUMMY_MAIN() { return 1; }
24225#endif
24226int
24227main ()
24228{
24229
24230/* The GNU C library defines this for functions which it implements
24231 to always fail with ENOSYS. Some functions are actually named
24232 something starting with __ and the normal name is an alias. */
24233#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
24234choke me
24235#else
24236inet_pton(0,0,0)
24237#endif
24238
24239 ;
24240 return 0;
24241}
24242_ACEOF
24243rm -f conftest.$ac_objext conftest$ac_exeext
24244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24245 (eval $ac_link) 2>&5
24246 ac_status=$?
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } &&
24249 { ac_try='test -s conftest$ac_exeext'
24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251 (eval $ac_try) 2>&5
24252 ac_status=$?
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); }; }; then
24255 eval "ac_cv_func_inet_pton=yes"
24256else
24257 echo "$as_me: failed program was:" >&5
24258cat conftest.$ac_ext >&5
24259eval "ac_cv_func_inet_pton=no"
24260fi
24261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24262fi
24263
24264if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
24265
24266cat >>confdefs.h <<_ACEOF
24267#define HAVE_INET_PTON 1
24268_ACEOF
24269
24270 echo "$as_me:$LINENO: result: yes" >&5
24271echo "${ECHO_T}yes" >&6
24272else
24273 echo "$as_me:$LINENO: result: no" >&5
24274echo "${ECHO_T}no" >&6
24275 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
24276fi
24277
24278
24279
24280echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
24281echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
24282if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
24283 echo $ECHO_N "(cached) $ECHO_C" >&6
24284else
24285
24286cat >conftest.$ac_ext <<_ACEOF
24287#line $LINENO "configure"
24288#include "confdefs.h"
24289#include <sys/types.h>
24290#include <sys/socket.h>
24291#ifdef F77_DUMMY_MAIN
24292# ifdef __cplusplus
24293 extern "C"
24294# endif
24295 int F77_DUMMY_MAIN() { return 1; }
24296#endif
24297int
24298main ()
24299{
24300struct sockaddr x; x.sa_len;
24301 ;
24302 return 0;
24303}
24304_ACEOF
24305rm -f conftest.$ac_objext
24306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24307 (eval $ac_compile) 2>&5
24308 ac_status=$?
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } &&
24311 { ac_try='test -s conftest.$ac_objext'
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; }; then
24317 ac_cv_type_struct_sockaddr_sa_len=yes
24318else
24319 echo "$as_me: failed program was:" >&5
24320cat conftest.$ac_ext >&5
24321ac_cv_type_struct_sockaddr_sa_len=no
24322fi
24323rm -f conftest.$ac_objext conftest.$ac_ext
24324fi
24325echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
24326echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
24327if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
24328
24329
24330cat >>confdefs.h <<\_ACEOF
24331#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
24332_ACEOF
24333
24334
24335fi
24336
24337
24338
24339if test "$ac_cv_func_getnameinfo" = "yes"; then
24340
24341echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
24342echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
24343if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
24344 echo $ECHO_N "(cached) $ECHO_C" >&6
24345else
24346 if test "$cross_compiling" = yes; then
24347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
24348echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24349 { (exit 1); exit 1; }; }
24350else
24351 cat >conftest.$ac_ext <<_ACEOF
24352#line $LINENO "configure"
24353#include "confdefs.h"
24354#include <stdio.h>
24355#include <sys/types.h>
24356#include <sys/socket.h>
24357#include <netinet/in.h>
24358#include <netdb.h>
24359
24360int
24361main(int argc, char **argv)
24362{
24363 struct sockaddr_in sin;
24364 char host[256];
24365 memset(&sin, 0, sizeof(sin));
24366#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
24367 sin.sin_len = sizeof(sin);
24368#endif
24369 sin.sin_family = AF_INET;
24370 sin.sin_addr.s_addr = 0xffffffff;
24371 sin.sin_port = 0;
24372 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
24373 NULL, 0, 0);
24374}
24375
24376_ACEOF
24377rm -f conftest$ac_exeext
24378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24379 (eval $ac_link) 2>&5
24380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; }; then
24388 ac_cv_func_getnameinfo_broken=no
24389else
24390 echo "$as_me: program exited with status $ac_status" >&5
24391echo "$as_me: failed program was:" >&5
24392cat conftest.$ac_ext >&5
24393( exit $ac_status )
24394ac_cv_func_getnameinfo_broken=yes
24395fi
24396rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24397fi
24398fi
24399echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
24400echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
24401 if test "$ac_cv_func_getnameinfo_broken" = yes; then
24402 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
24403 fi
24404fi
24405
24406if test "$ac_cv_func_getaddrinfo" = "yes"; then
24407
24408echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
24409echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
24410if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24412else
24413 if test "$cross_compiling" = yes; then
24414 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
24415echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24416 { (exit 1); exit 1; }; }
24417else
24418 cat >conftest.$ac_ext <<_ACEOF
24419#line $LINENO "configure"
24420#include "confdefs.h"
24421#include <stdio.h>
24422#include <sys/types.h>
24423#include <sys/socket.h>
24424#include <netdb.h>
24425
24426int
24427main(int argc, char **argv)
24428{
24429 struct addrinfo hints, *ai;
24430 memset(&hints, 0, sizeof(hints));
24431 hints.ai_flags = AI_PASSIVE;
24432 hints.ai_socktype = SOCK_STREAM;
24433 hints.ai_family = PF_UNSPEC;
24434 if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
24435 return 1;
24436 return 0;
24437}
24438
24439_ACEOF
24440rm -f conftest$ac_exeext
24441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24442 (eval $ac_link) 2>&5
24443 ac_status=$?
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24447 (eval $ac_try) 2>&5
24448 ac_status=$?
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); }; }; then
24451 ac_cv_func_getaddrinfo_numserv=yes
24452else
24453 echo "$as_me: program exited with status $ac_status" >&5
24454echo "$as_me: failed program was:" >&5
24455cat conftest.$ac_ext >&5
24456( exit $ac_status )
24457ac_cv_func_getaddrinfo_numserv=no
24458fi
24459rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24460fi
24461fi
24462echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
24463echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
24464 if test "$ac_cv_func_getaddrinfo_numserv" = no; then
24465 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
24466 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
24467 fi
24468fi
24469
24470
24471if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
24472echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
24473echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
24474if test "${ac_cv_func_setenv_noproto+set}" = set; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24476else
24477 cat >conftest.$ac_ext <<_ACEOF
24478#line $LINENO "configure"
24479#include "confdefs.h"
24480#include <stdlib.h>
24481#ifdef F77_DUMMY_MAIN
24482# ifdef __cplusplus
24483 extern "C"
24484# endif
24485 int F77_DUMMY_MAIN() { return 1; }
24486#endif
24487int
24488main ()
24489{
24490struct foo { int foo; } xx;
24491extern int setenv (struct foo*);
24492setenv(&xx);
24493
24494 ;
24495 return 0;
24496}
24497_ACEOF
24498rm -f conftest.$ac_objext
24499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24500 (eval $ac_compile) 2>&5
24501 ac_status=$?
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } &&
24504 { ac_try='test -s conftest.$ac_objext'
24505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); }; }; then
24510 eval "ac_cv_func_setenv_noproto=yes"
24511else
24512 echo "$as_me: failed program was:" >&5
24513cat conftest.$ac_ext >&5
24514eval "ac_cv_func_setenv_noproto=no"
24515fi
24516rm -f conftest.$ac_objext conftest.$ac_ext
24517fi
24518echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
24519echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
24520if test "$ac_cv_func_setenv_noproto" = yes; then
24521
24522cat >>confdefs.h <<\_ACEOF
24523#define NEED_SETENV_PROTO 1
24524_ACEOF
24525
24526fi
24527fi
24528
24529
24530if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
24531echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
24532echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
24533if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
24535else
24536 cat >conftest.$ac_ext <<_ACEOF
24537#line $LINENO "configure"
24538#include "confdefs.h"
24539#include <stdlib.h>
24540#ifdef F77_DUMMY_MAIN
24541# ifdef __cplusplus
24542 extern "C"
24543# endif
24544 int F77_DUMMY_MAIN() { return 1; }
24545#endif
24546int
24547main ()
24548{
24549struct foo { int foo; } xx;
24550extern int unsetenv (struct foo*);
24551unsetenv(&xx);
24552
24553 ;
24554 return 0;
24555}
24556_ACEOF
24557rm -f conftest.$ac_objext
24558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24559 (eval $ac_compile) 2>&5
24560 ac_status=$?
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } &&
24563 { ac_try='test -s conftest.$ac_objext'
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24566 ac_status=$?
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24569 eval "ac_cv_func_unsetenv_noproto=yes"
24570else
24571 echo "$as_me: failed program was:" >&5
24572cat conftest.$ac_ext >&5
24573eval "ac_cv_func_unsetenv_noproto=no"
24574fi
24575rm -f conftest.$ac_objext conftest.$ac_ext
24576fi
24577echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
24578echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
24579if test "$ac_cv_func_unsetenv_noproto" = yes; then
24580
24581cat >>confdefs.h <<\_ACEOF
24582#define NEED_UNSETENV_PROTO 1
24583_ACEOF
24584
24585fi
24586fi
24587
24588
24589if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
24590echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
24591echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
24592if test "${ac_cv_func_gethostname_noproto+set}" = set; then
24593 echo $ECHO_N "(cached) $ECHO_C" >&6
24594else
24595 cat >conftest.$ac_ext <<_ACEOF
24596#line $LINENO "configure"
24597#include "confdefs.h"
24598#include <unistd.h>
24599#ifdef F77_DUMMY_MAIN
24600# ifdef __cplusplus
24601 extern "C"
24602# endif
24603 int F77_DUMMY_MAIN() { return 1; }
24604#endif
24605int
24606main ()
24607{
24608struct foo { int foo; } xx;
24609extern int gethostname (struct foo*);
24610gethostname(&xx);
24611
24612 ;
24613 return 0;
24614}
24615_ACEOF
24616rm -f conftest.$ac_objext
24617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24618 (eval $ac_compile) 2>&5
24619 ac_status=$?
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); } &&
24622 { ac_try='test -s conftest.$ac_objext'
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24625 ac_status=$?
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; }; then
24628 eval "ac_cv_func_gethostname_noproto=yes"
24629else
24630 echo "$as_me: failed program was:" >&5
24631cat conftest.$ac_ext >&5
24632eval "ac_cv_func_gethostname_noproto=no"
24633fi
24634rm -f conftest.$ac_objext conftest.$ac_ext
24635fi
24636echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
24637echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
24638if test "$ac_cv_func_gethostname_noproto" = yes; then
24639
24640cat >>confdefs.h <<\_ACEOF
24641#define NEED_GETHOSTNAME_PROTO 1
24642_ACEOF
24643
24644fi
24645fi
24646
24647
24648if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
24649echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
24650echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
24651if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
24652 echo $ECHO_N "(cached) $ECHO_C" >&6
24653else
24654 cat >conftest.$ac_ext <<_ACEOF
24655#line $LINENO "configure"
24656#include "confdefs.h"
24657#include <unistd.h>
24658#ifdef F77_DUMMY_MAIN
24659# ifdef __cplusplus
24660 extern "C"
24661# endif
24662 int F77_DUMMY_MAIN() { return 1; }
24663#endif
24664int
24665main ()
24666{
24667struct foo { int foo; } xx;
24668extern int mkstemp (struct foo*);
24669mkstemp(&xx);
24670
24671 ;
24672 return 0;
24673}
24674_ACEOF
24675rm -f conftest.$ac_objext
24676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24677 (eval $ac_compile) 2>&5
24678 ac_status=$?
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } &&
24681 { ac_try='test -s conftest.$ac_objext'
24682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683 (eval $ac_try) 2>&5
24684 ac_status=$?
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); }; }; then
24687 eval "ac_cv_func_mkstemp_noproto=yes"
24688else
24689 echo "$as_me: failed program was:" >&5
24690cat conftest.$ac_ext >&5
24691eval "ac_cv_func_mkstemp_noproto=no"
24692fi
24693rm -f conftest.$ac_objext conftest.$ac_ext
24694fi
24695echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
24696echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
24697if test "$ac_cv_func_mkstemp_noproto" = yes; then
24698
24699cat >>confdefs.h <<\_ACEOF
24700#define NEED_MKSTEMP_PROTO 1
24701_ACEOF
24702
24703fi
24704fi
24705
24706
24707if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
24708echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
24709echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
24710if test "${ac_cv_func_getusershell_noproto+set}" = set; then
24711 echo $ECHO_N "(cached) $ECHO_C" >&6
24712else
24713 cat >conftest.$ac_ext <<_ACEOF
24714#line $LINENO "configure"
24715#include "confdefs.h"
24716#include <unistd.h>
24717#ifdef F77_DUMMY_MAIN
24718# ifdef __cplusplus
24719 extern "C"
24720# endif
24721 int F77_DUMMY_MAIN() { return 1; }
24722#endif
24723int
24724main ()
24725{
24726struct foo { int foo; } xx;
24727extern int getusershell (struct foo*);
24728getusershell(&xx);
24729
24730 ;
24731 return 0;
24732}
24733_ACEOF
24734rm -f conftest.$ac_objext
24735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24736 (eval $ac_compile) 2>&5
24737 ac_status=$?
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } &&
24740 { ac_try='test -s conftest.$ac_objext'
24741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742 (eval $ac_try) 2>&5
24743 ac_status=$?
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; }; then
24746 eval "ac_cv_func_getusershell_noproto=yes"
24747else
24748 echo "$as_me: failed program was:" >&5
24749cat conftest.$ac_ext >&5
24750eval "ac_cv_func_getusershell_noproto=no"
24751fi
24752rm -f conftest.$ac_objext conftest.$ac_ext
24753fi
24754echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
24755echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
24756if test "$ac_cv_func_getusershell_noproto" = yes; then
24757
24758cat >>confdefs.h <<\_ACEOF
24759#define NEED_GETUSERSHELL_PROTO 1
24760_ACEOF
24761
24762fi
24763fi
24764
24765
24766
24767if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
24768echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
24769echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
24770if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24772else
24773 cat >conftest.$ac_ext <<_ACEOF
24774#line $LINENO "configure"
24775#include "confdefs.h"
24776
24777#ifdef HAVE_SYS_TYPES_H
24778#include <sys/types.h>
24779#endif
24780#ifdef HAVE_SYS_SOCKET_H
24781#include <sys/socket.h>
24782#endif
24783#ifdef HAVE_NETINET_IN_H
24784#include <netinet/in.h>
24785#endif
24786#ifdef HAVE_ARPA_INET_H
24787#include <arpa/inet.h>
24788#endif
24789#ifdef F77_DUMMY_MAIN
24790# ifdef __cplusplus
24791 extern "C"
24792# endif
24793 int F77_DUMMY_MAIN() { return 1; }
24794#endif
24795int
24796main ()
24797{
24798struct foo { int foo; } xx;
24799extern int inet_aton (struct foo*);
24800inet_aton(&xx);
24801
24802 ;
24803 return 0;
24804}
24805_ACEOF
24806rm -f conftest.$ac_objext
24807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24808 (eval $ac_compile) 2>&5
24809 ac_status=$?
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } &&
24812 { ac_try='test -s conftest.$ac_objext'
24813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814 (eval $ac_try) 2>&5
24815 ac_status=$?
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); }; }; then
24818 eval "ac_cv_func_inet_aton_noproto=yes"
24819else
24820 echo "$as_me: failed program was:" >&5
24821cat conftest.$ac_ext >&5
24822eval "ac_cv_func_inet_aton_noproto=no"
24823fi
24824rm -f conftest.$ac_objext conftest.$ac_ext
24825fi
24826echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
24827echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
24828if test "$ac_cv_func_inet_aton_noproto" = yes; then
24829
24830cat >>confdefs.h <<\_ACEOF
24831#define NEED_INET_ATON_PROTO 1
24832_ACEOF
24833
24834fi
24835fi
24836
24837
24838
24839
24840
24841echo "$as_me:$LINENO: checking for crypt" >&5
24842echo $ECHO_N "checking for crypt... $ECHO_C" >&6
24843if test "${ac_cv_funclib_crypt+set}" = set; then
24844 echo $ECHO_N "(cached) $ECHO_C" >&6
24845else
24846
24847if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
24848 ac_save_LIBS="$LIBS"
24849 for ac_lib in "" crypt; do
24850 case "$ac_lib" in
24851 "") ;;
24852 yes) ac_lib="" ;;
24853 no) continue ;;
24854 -l*) ;;
24855 *) ac_lib="-l$ac_lib" ;;
24856 esac
24857 LIBS=" $ac_lib $ac_save_LIBS"
24858 cat >conftest.$ac_ext <<_ACEOF
24859#line $LINENO "configure"
24860#include "confdefs.h"
24861
24862#ifdef F77_DUMMY_MAIN
24863# ifdef __cplusplus
24864 extern "C"
24865# endif
24866 int F77_DUMMY_MAIN() { return 1; }
24867#endif
24868int
24869main ()
24870{
24871crypt()
24872 ;
24873 return 0;
24874}
24875_ACEOF
24876rm -f conftest.$ac_objext conftest$ac_exeext
24877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24878 (eval $ac_link) 2>&5
24879 ac_status=$?
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } &&
24882 { ac_try='test -s conftest$ac_exeext'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24885 ac_status=$?
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; }; then
24888 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
24889else
24890 echo "$as_me: failed program was:" >&5
24891cat conftest.$ac_ext >&5
24892fi
24893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24894 done
24895 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
24896 LIBS="$ac_save_LIBS"
24897fi
24898
24899fi
24900
24901
24902eval "ac_res=\$ac_cv_funclib_crypt"
24903
24904if false; then
24905
24906for ac_func in crypt
24907do
24908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24909echo "$as_me:$LINENO: checking for $ac_func" >&5
24910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24911if eval "test \"\${$as_ac_var+set}\" = set"; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24913else
24914 cat >conftest.$ac_ext <<_ACEOF
24915#line $LINENO "configure"
24916#include "confdefs.h"
24917/* System header to define __stub macros and hopefully few prototypes,
24918 which can conflict with char $ac_func (); below. */
24919#include <assert.h>
24920/* Override any gcc2 internal prototype to avoid an error. */
24921#ifdef __cplusplus
24922extern "C"
24923#endif
24924/* We use char because int might match the return type of a gcc2
24925 builtin and then its argument prototype would still apply. */
24926char $ac_func ();
24927char (*f) ();
24928
24929#ifdef F77_DUMMY_MAIN
24930# ifdef __cplusplus
24931 extern "C"
24932# endif
24933 int F77_DUMMY_MAIN() { return 1; }
24934#endif
24935int
24936main ()
24937{
24938/* The GNU C library defines this for functions which it implements
24939 to always fail with ENOSYS. Some functions are actually named
24940 something starting with __ and the normal name is an alias. */
24941#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24942choke me
24943#else
24944f = $ac_func;
24945#endif
24946
24947 ;
24948 return 0;
24949}
24950_ACEOF
24951rm -f conftest.$ac_objext conftest$ac_exeext
24952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24953 (eval $ac_link) 2>&5
24954 ac_status=$?
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } &&
24957 { ac_try='test -s conftest$ac_exeext'
24958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959 (eval $ac_try) 2>&5
24960 ac_status=$?
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); }; }; then
24963 eval "$as_ac_var=yes"
24964else
24965 echo "$as_me: failed program was:" >&5
24966cat conftest.$ac_ext >&5
24967eval "$as_ac_var=no"
24968fi
24969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24970fi
24971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24973if test `eval echo '${'$as_ac_var'}'` = yes; then
24974 cat >>confdefs.h <<_ACEOF
24975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24976_ACEOF
24977
24978fi
24979done
24980
24981fi
24982# crypt
24983eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24984eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24985eval "LIB_crypt=$ac_res"
24986
24987case "$ac_res" in
24988 yes)
24989 eval "ac_cv_func_crypt=yes"
24990 eval "LIB_crypt="
24991 cat >>confdefs.h <<_ACEOF
24992#define $ac_tr_func 1
24993_ACEOF
24994
24995 echo "$as_me:$LINENO: result: yes" >&5
24996echo "${ECHO_T}yes" >&6
24997 ;;
24998 no)
24999 eval "ac_cv_func_crypt=no"
25000 eval "LIB_crypt="
25001 echo "$as_me:$LINENO: result: no" >&5
25002echo "${ECHO_T}no" >&6
25003 ;;
25004 *)
25005 eval "ac_cv_func_crypt=yes"
25006 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25007 cat >>confdefs.h <<_ACEOF
25008#define $ac_tr_func 1
25009_ACEOF
25010
25011 cat >>confdefs.h <<_ACEOF
25012#define $ac_tr_lib 1
25013_ACEOF
25014
25015 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25016echo "${ECHO_T}yes, in $ac_res" >&6
25017 ;;
25018esac
25019
25020
25021
25022
25023
25024
25025echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
25026echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
25027if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25029else
25030 cat >conftest.$ac_ext <<_ACEOF
25031#line $LINENO "configure"
25032#include "confdefs.h"
25033
25034#ifdef HAVE_SYS_TYPES_H
25035#include <sys/types.h>
25036#endif
25037#ifdef HAVE_SYS_SOCKET_H
25038#include <sys/socket.h>
25039#endif
25040#ifdef HAVE_NETINET_IN_H
25041#include <netinet/in.h>
25042#endif
25043#ifdef HAVE_ARPA_INET_H
25044#include <arpa/inet.h>
25045#endif
25046#ifdef HAVE_NETDB_H
25047#include <netdb.h>
25048#endif
25049
25050#ifdef F77_DUMMY_MAIN
25051# ifdef __cplusplus
25052 extern "C"
25053# endif
25054 int F77_DUMMY_MAIN() { return 1; }
25055#endif
25056int
25057main ()
25058{
25059struct hostent *gethostbyname(const char *);
25060 ;
25061 return 0;
25062}
25063_ACEOF
25064rm -f conftest.$ac_objext
25065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25066 (eval $ac_compile) 2>&5
25067 ac_status=$?
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } &&
25070 { ac_try='test -s conftest.$ac_objext'
25071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072 (eval $ac_try) 2>&5
25073 ac_status=$?
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); }; }; then
25076 eval "ac_cv_func_gethostbyname_proto_compat=yes"
25077else
25078 echo "$as_me: failed program was:" >&5
25079cat conftest.$ac_ext >&5
25080eval "ac_cv_func_gethostbyname_proto_compat=no"
25081fi
25082rm -f conftest.$ac_objext conftest.$ac_ext
25083fi
25084echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
25085echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
25086
25087if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
25088
25089cat >>confdefs.h <<\_ACEOF
25090#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
25091_ACEOF
25092
25093fi
25094
25095
25096
25097
25098echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
25099echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
25100if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25102else
25103 cat >conftest.$ac_ext <<_ACEOF
25104#line $LINENO "configure"
25105#include "confdefs.h"
25106
25107#ifdef HAVE_SYS_TYPES_H
25108#include <sys/types.h>
25109#endif
25110#ifdef HAVE_SYS_SOCKET_H
25111#include <sys/socket.h>
25112#endif
25113#ifdef HAVE_NETINET_IN_H
25114#include <netinet/in.h>
25115#endif
25116#ifdef HAVE_ARPA_INET_H
25117#include <arpa/inet.h>
25118#endif
25119#ifdef HAVE_NETDB_H
25120#include <netdb.h>
25121#endif
25122
25123#ifdef F77_DUMMY_MAIN
25124# ifdef __cplusplus
25125 extern "C"
25126# endif
25127 int F77_DUMMY_MAIN() { return 1; }
25128#endif
25129int
25130main ()
25131{
25132struct hostent *gethostbyaddr(const void *, size_t, int);
25133 ;
25134 return 0;
25135}
25136_ACEOF
25137rm -f conftest.$ac_objext
25138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25139 (eval $ac_compile) 2>&5
25140 ac_status=$?
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } &&
25143 { ac_try='test -s conftest.$ac_objext'
25144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145 (eval $ac_try) 2>&5
25146 ac_status=$?
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); }; }; then
25149 eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
25150else
25151 echo "$as_me: failed program was:" >&5
25152cat conftest.$ac_ext >&5
25153eval "ac_cv_func_gethostbyaddr_proto_compat=no"
25154fi
25155rm -f conftest.$ac_objext conftest.$ac_ext
25156fi
25157echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
25158echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
25159
25160if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
25161
25162cat >>confdefs.h <<\_ACEOF
25163#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
25164_ACEOF
25165
25166fi
25167
25168
25169
25170
25171echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
25172echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
25173if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
25174 echo $ECHO_N "(cached) $ECHO_C" >&6
25175else
25176 cat >conftest.$ac_ext <<_ACEOF
25177#line $LINENO "configure"
25178#include "confdefs.h"
25179
25180#ifdef HAVE_SYS_TYPES_H
25181#include <sys/types.h>
25182#endif
25183#ifdef HAVE_SYS_SOCKET_H
25184#include <sys/socket.h>
25185#endif
25186#ifdef HAVE_NETINET_IN_H
25187#include <netinet/in.h>
25188#endif
25189#ifdef HAVE_ARPA_INET_H
25190#include <arpa/inet.h>
25191#endif
25192#ifdef HAVE_NETDB_H
25193#include <netdb.h>
25194#endif
25195
25196#ifdef F77_DUMMY_MAIN
25197# ifdef __cplusplus
25198 extern "C"
25199# endif
25200 int F77_DUMMY_MAIN() { return 1; }
25201#endif
25202int
25203main ()
25204{
25205struct servent *getservbyname(const char *, const char *);
25206 ;
25207 return 0;
25208}
25209_ACEOF
25210rm -f conftest.$ac_objext
25211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25212 (eval $ac_compile) 2>&5
25213 ac_status=$?
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } &&
25216 { ac_try='test -s conftest.$ac_objext'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25219 ac_status=$?
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; }; then
25222 eval "ac_cv_func_getservbyname_proto_compat=yes"
25223else
25224 echo "$as_me: failed program was:" >&5
25225cat conftest.$ac_ext >&5
25226eval "ac_cv_func_getservbyname_proto_compat=no"
25227fi
25228rm -f conftest.$ac_objext conftest.$ac_ext
25229fi
25230echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
25231echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
25232
25233if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
25234
25235cat >>confdefs.h <<\_ACEOF
25236#define GETSERVBYNAME_PROTO_COMPATIBLE 1
25237_ACEOF
25238
25239fi
25240
25241
25242
25243
25244echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
25245echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
25246if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
25247 echo $ECHO_N "(cached) $ECHO_C" >&6
25248else
25249 cat >conftest.$ac_ext <<_ACEOF
25250#line $LINENO "configure"
25251#include "confdefs.h"
25252
25253#ifdef HAVE_SYS_TYPES_H
25254#include <sys/types.h>
25255#endif
25256#ifdef HAVE_SYS_SOCKET_H
25257#include <sys/socket.h>
25258#endif
25259
25260#ifdef F77_DUMMY_MAIN
25261# ifdef __cplusplus
25262 extern "C"
25263# endif
25264 int F77_DUMMY_MAIN() { return 1; }
25265#endif
25266int
25267main ()
25268{
25269int getsockname(int, struct sockaddr*, socklen_t*);
25270 ;
25271 return 0;
25272}
25273_ACEOF
25274rm -f conftest.$ac_objext
25275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25276 (eval $ac_compile) 2>&5
25277 ac_status=$?
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); } &&
25280 { ac_try='test -s conftest.$ac_objext'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }; then
25286 eval "ac_cv_func_getsockname_proto_compat=yes"
25287else
25288 echo "$as_me: failed program was:" >&5
25289cat conftest.$ac_ext >&5
25290eval "ac_cv_func_getsockname_proto_compat=no"
25291fi
25292rm -f conftest.$ac_objext conftest.$ac_ext
25293fi
25294echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
25295echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
25296
25297if test "$ac_cv_func_getsockname_proto_compat" = yes; then
25298
25299cat >>confdefs.h <<\_ACEOF
25300#define GETSOCKNAME_PROTO_COMPATIBLE 1
25301_ACEOF
25302
25303fi
25304
25305
25306
25307
25308echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
25309echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
25310if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
25311 echo $ECHO_N "(cached) $ECHO_C" >&6
25312else
25313 cat >conftest.$ac_ext <<_ACEOF
25314#line $LINENO "configure"
25315#include "confdefs.h"
25316
25317#ifdef HAVE_SYSLOG_H
25318#include <syslog.h>
25319#endif
25320
25321#ifdef F77_DUMMY_MAIN
25322# ifdef __cplusplus
25323 extern "C"
25324# endif
25325 int F77_DUMMY_MAIN() { return 1; }
25326#endif
25327int
25328main ()
25329{
25330void openlog(const char *, int, int);
25331 ;
25332 return 0;
25333}
25334_ACEOF
25335rm -f conftest.$ac_objext
25336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25337 (eval $ac_compile) 2>&5
25338 ac_status=$?
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); } &&
25341 { ac_try='test -s conftest.$ac_objext'
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 eval "ac_cv_func_openlog_proto_compat=yes"
25348else
25349 echo "$as_me: failed program was:" >&5
25350cat conftest.$ac_ext >&5
25351eval "ac_cv_func_openlog_proto_compat=no"
25352fi
25353rm -f conftest.$ac_objext conftest.$ac_ext
25354fi
25355echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
25356echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
25357
25358if test "$ac_cv_func_openlog_proto_compat" = yes; then
25359
25360cat >>confdefs.h <<\_ACEOF
25361#define OPENLOG_PROTO_COMPATIBLE 1
25362_ACEOF
25363
25364fi
25365
25366
25367
25368
25369if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
25370echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
25371echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
25372if test "${ac_cv_func_crypt_noproto+set}" = set; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25374else
25375 cat >conftest.$ac_ext <<_ACEOF
25376#line $LINENO "configure"
25377#include "confdefs.h"
25378
25379#ifdef HAVE_CRYPT_H
25380#include <crypt.h>
25381#endif
25382#ifdef HAVE_UNISTD_H
25383#include <unistd.h>
25384#endif
25385
25386#ifdef F77_DUMMY_MAIN
25387# ifdef __cplusplus
25388 extern "C"
25389# endif
25390 int F77_DUMMY_MAIN() { return 1; }
25391#endif
25392int
25393main ()
25394{
25395struct foo { int foo; } xx;
25396extern int crypt (struct foo*);
25397crypt(&xx);
25398
25399 ;
25400 return 0;
25401}
25402_ACEOF
25403rm -f conftest.$ac_objext
25404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25405 (eval $ac_compile) 2>&5
25406 ac_status=$?
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); } &&
25409 { ac_try='test -s conftest.$ac_objext'
25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
25415 eval "ac_cv_func_crypt_noproto=yes"
25416else
25417 echo "$as_me: failed program was:" >&5
25418cat conftest.$ac_ext >&5
25419eval "ac_cv_func_crypt_noproto=no"
25420fi
25421rm -f conftest.$ac_objext conftest.$ac_ext
25422fi
25423echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
25424echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
25425if test "$ac_cv_func_crypt_noproto" = yes; then
25426
25427cat >>confdefs.h <<\_ACEOF
25428#define NEED_CRYPT_PROTO 1
25429_ACEOF
25430
25431fi
25432fi
25433
25434
25435
25436
25437echo "$as_me:$LINENO: checking for h_errno" >&5
25438echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
25439if test "${ac_cv_var_h_errno+set}" = set; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25441else
25442
25443cat >conftest.$ac_ext <<_ACEOF
25444#line $LINENO "configure"
25445#include "confdefs.h"
25446extern int h_errno;
25447int foo() { return h_errno; }
25448#ifdef F77_DUMMY_MAIN
25449# ifdef __cplusplus
25450 extern "C"
25451# endif
25452 int F77_DUMMY_MAIN() { return 1; }
25453#endif
25454int
25455main ()
25456{
25457foo()
25458 ;
25459 return 0;
25460}
25461_ACEOF
25462rm -f conftest.$ac_objext conftest$ac_exeext
25463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25464 (eval $ac_link) 2>&5
25465 ac_status=$?
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } &&
25468 { ac_try='test -s conftest$ac_exeext'
25469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470 (eval $ac_try) 2>&5
25471 ac_status=$?
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); }; }; then
25474 ac_cv_var_h_errno=yes
25475else
25476 echo "$as_me: failed program was:" >&5
25477cat conftest.$ac_ext >&5
25478ac_cv_var_h_errno=no
25479fi
25480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25481
25482fi
25483
25484ac_foo=`eval echo \\$ac_cv_var_h_errno`
25485echo "$as_me:$LINENO: result: $ac_foo" >&5
25486echo "${ECHO_T}$ac_foo" >&6
25487if test "$ac_foo" = yes; then
25488
25489cat >>confdefs.h <<_ACEOF
25490#define HAVE_H_ERRNO 1
25491_ACEOF
25492
25493
25494echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
25495echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
25496if test "${ac_cv_var_h_errno_declaration+set}" = set; then
25497 echo $ECHO_N "(cached) $ECHO_C" >&6
25498else
25499
25500cat >conftest.$ac_ext <<_ACEOF
25501#line $LINENO "configure"
25502#include "confdefs.h"
25503#ifdef HAVE_SYS_TYPES_H
25504#include <sys/types.h>
25505#endif
25506#ifdef HAVE_NETDB_H
25507#include <netdb.h>
25508#endif
25509extern struct { int foo; } h_errno;
25510#ifdef F77_DUMMY_MAIN
25511# ifdef __cplusplus
25512 extern "C"
25513# endif
25514 int F77_DUMMY_MAIN() { return 1; }
25515#endif
25516int
25517main ()
25518{
25519h_errno.foo = 1;
25520 ;
25521 return 0;
25522}
25523_ACEOF
25524rm -f conftest.$ac_objext
25525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25526 (eval $ac_compile) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } &&
25530 { ac_try='test -s conftest.$ac_objext'
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25533 ac_status=$?
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; }; then
25536 eval "ac_cv_var_h_errno_declaration=no"
25537else
25538 echo "$as_me: failed program was:" >&5
25539cat conftest.$ac_ext >&5
25540eval "ac_cv_var_h_errno_declaration=yes"
25541fi
25542rm -f conftest.$ac_objext conftest.$ac_ext
25543
25544fi
25545
25546
25547
25548
25549echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
25550echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
25551if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
25552
25553cat >>confdefs.h <<\_ACEOF
25554#define HAVE_H_ERRNO_DECLARATION 1
25555_ACEOF
25556
25557fi
25558
25559
25560fi
25561
25562
25563
25564echo "$as_me:$LINENO: checking for h_errlist" >&5
25565echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
25566if test "${ac_cv_var_h_errlist+set}" = set; then
25567 echo $ECHO_N "(cached) $ECHO_C" >&6
25568else
25569
25570cat >conftest.$ac_ext <<_ACEOF
25571#line $LINENO "configure"
25572#include "confdefs.h"
25573extern int h_errlist;
25574int foo() { return h_errlist; }
25575#ifdef F77_DUMMY_MAIN
25576# ifdef __cplusplus
25577 extern "C"
25578# endif
25579 int F77_DUMMY_MAIN() { return 1; }
25580#endif
25581int
25582main ()
25583{
25584foo()
25585 ;
25586 return 0;
25587}
25588_ACEOF
25589rm -f conftest.$ac_objext conftest$ac_exeext
25590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25591 (eval $ac_link) 2>&5
25592 ac_status=$?
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); } &&
25595 { ac_try='test -s conftest$ac_exeext'
25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597 (eval $ac_try) 2>&5
25598 ac_status=$?
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; }; then
25601 ac_cv_var_h_errlist=yes
25602else
25603 echo "$as_me: failed program was:" >&5
25604cat conftest.$ac_ext >&5
25605ac_cv_var_h_errlist=no
25606fi
25607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25608
25609fi
25610
25611ac_foo=`eval echo \\$ac_cv_var_h_errlist`
25612echo "$as_me:$LINENO: result: $ac_foo" >&5
25613echo "${ECHO_T}$ac_foo" >&6
25614if test "$ac_foo" = yes; then
25615
25616cat >>confdefs.h <<_ACEOF
25617#define HAVE_H_ERRLIST 1
25618_ACEOF
25619
25620
25621echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
25622echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
25623if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25625else
25626
25627cat >conftest.$ac_ext <<_ACEOF
25628#line $LINENO "configure"
25629#include "confdefs.h"
25630#ifdef HAVE_NETDB_H
25631#include <netdb.h>
25632#endif
25633extern struct { int foo; } h_errlist;
25634#ifdef F77_DUMMY_MAIN
25635# ifdef __cplusplus
25636 extern "C"
25637# endif
25638 int F77_DUMMY_MAIN() { return 1; }
25639#endif
25640int
25641main ()
25642{
25643h_errlist.foo = 1;
25644 ;
25645 return 0;
25646}
25647_ACEOF
25648rm -f conftest.$ac_objext
25649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25650 (eval $ac_compile) 2>&5
25651 ac_status=$?
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); } &&
25654 { ac_try='test -s conftest.$ac_objext'
25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656 (eval $ac_try) 2>&5
25657 ac_status=$?
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }; then
25660 eval "ac_cv_var_h_errlist_declaration=no"
25661else
25662 echo "$as_me: failed program was:" >&5
25663cat conftest.$ac_ext >&5
25664eval "ac_cv_var_h_errlist_declaration=yes"
25665fi
25666rm -f conftest.$ac_objext conftest.$ac_ext
25667
25668fi
25669
25670
25671
25672
25673echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
25674echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
25675if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
25676
25677cat >>confdefs.h <<\_ACEOF
25678#define HAVE_H_ERRLIST_DECLARATION 1
25679_ACEOF
25680
25681fi
25682
25683
25684fi
25685
25686
25687
25688echo "$as_me:$LINENO: checking for h_nerr" >&5
25689echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
25690if test "${ac_cv_var_h_nerr+set}" = set; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25692else
25693
25694cat >conftest.$ac_ext <<_ACEOF
25695#line $LINENO "configure"
25696#include "confdefs.h"
25697extern int h_nerr;
25698int foo() { return h_nerr; }
25699#ifdef F77_DUMMY_MAIN
25700# ifdef __cplusplus
25701 extern "C"
25702# endif
25703 int F77_DUMMY_MAIN() { return 1; }
25704#endif
25705int
25706main ()
25707{
25708foo()
25709 ;
25710 return 0;
25711}
25712_ACEOF
25713rm -f conftest.$ac_objext conftest$ac_exeext
25714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25715 (eval $ac_link) 2>&5
25716 ac_status=$?
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
25719 { ac_try='test -s conftest$ac_exeext'
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25722 ac_status=$?
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; }; then
25725 ac_cv_var_h_nerr=yes
25726else
25727 echo "$as_me: failed program was:" >&5
25728cat conftest.$ac_ext >&5
25729ac_cv_var_h_nerr=no
25730fi
25731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25732
25733fi
25734
25735ac_foo=`eval echo \\$ac_cv_var_h_nerr`
25736echo "$as_me:$LINENO: result: $ac_foo" >&5
25737echo "${ECHO_T}$ac_foo" >&6
25738if test "$ac_foo" = yes; then
25739
25740cat >>confdefs.h <<_ACEOF
25741#define HAVE_H_NERR 1
25742_ACEOF
25743
25744
25745echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
25746echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
25747if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25749else
25750
25751cat >conftest.$ac_ext <<_ACEOF
25752#line $LINENO "configure"
25753#include "confdefs.h"
25754#ifdef HAVE_NETDB_H
25755#include <netdb.h>
25756#endif
25757extern struct { int foo; } h_nerr;
25758#ifdef F77_DUMMY_MAIN
25759# ifdef __cplusplus
25760 extern "C"
25761# endif
25762 int F77_DUMMY_MAIN() { return 1; }
25763#endif
25764int
25765main ()
25766{
25767h_nerr.foo = 1;
25768 ;
25769 return 0;
25770}
25771_ACEOF
25772rm -f conftest.$ac_objext
25773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25774 (eval $ac_compile) 2>&5
25775 ac_status=$?
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } &&
25778 { ac_try='test -s conftest.$ac_objext'
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; }; then
25784 eval "ac_cv_var_h_nerr_declaration=no"
25785else
25786 echo "$as_me: failed program was:" >&5
25787cat conftest.$ac_ext >&5
25788eval "ac_cv_var_h_nerr_declaration=yes"
25789fi
25790rm -f conftest.$ac_objext conftest.$ac_ext
25791
25792fi
25793
25794
25795
25796
25797echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
25798echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
25799if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
25800
25801cat >>confdefs.h <<\_ACEOF
25802#define HAVE_H_NERR_DECLARATION 1
25803_ACEOF
25804
25805fi
25806
25807
25808fi
25809
25810
25811
25812echo "$as_me:$LINENO: checking for __progname" >&5
25813echo $ECHO_N "checking for __progname... $ECHO_C" >&6
25814if test "${ac_cv_var___progname+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
25816else
25817
25818cat >conftest.$ac_ext <<_ACEOF
25819#line $LINENO "configure"
25820#include "confdefs.h"
25821extern int __progname;
25822int foo() { return __progname; }
25823#ifdef F77_DUMMY_MAIN
25824# ifdef __cplusplus
25825 extern "C"
25826# endif
25827 int F77_DUMMY_MAIN() { return 1; }
25828#endif
25829int
25830main ()
25831{
25832foo()
25833 ;
25834 return 0;
25835}
25836_ACEOF
25837rm -f conftest.$ac_objext conftest$ac_exeext
25838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25839 (eval $ac_link) 2>&5
25840 ac_status=$?
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } &&
25843 { ac_try='test -s conftest$ac_exeext'
25844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845 (eval $ac_try) 2>&5
25846 ac_status=$?
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; }; then
25849 ac_cv_var___progname=yes
25850else
25851 echo "$as_me: failed program was:" >&5
25852cat conftest.$ac_ext >&5
25853ac_cv_var___progname=no
25854fi
25855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25856
25857fi
25858
25859ac_foo=`eval echo \\$ac_cv_var___progname`
25860echo "$as_me:$LINENO: result: $ac_foo" >&5
25861echo "${ECHO_T}$ac_foo" >&6
25862if test "$ac_foo" = yes; then
25863
25864cat >>confdefs.h <<_ACEOF
25865#define HAVE___PROGNAME 1
25866_ACEOF
25867
25868
25869echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
25870echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
25871if test "${ac_cv_var___progname_declaration+set}" = set; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
25873else
25874
25875cat >conftest.$ac_ext <<_ACEOF
25876#line $LINENO "configure"
25877#include "confdefs.h"
25878#ifdef HAVE_ERR_H
25879#include <err.h>
25880#endif
25881extern struct { int foo; } __progname;
25882#ifdef F77_DUMMY_MAIN
25883# ifdef __cplusplus
25884 extern "C"
25885# endif
25886 int F77_DUMMY_MAIN() { return 1; }
25887#endif
25888int
25889main ()
25890{
25891__progname.foo = 1;
25892 ;
25893 return 0;
25894}
25895_ACEOF
25896rm -f conftest.$ac_objext
25897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25898 (eval $ac_compile) 2>&5
25899 ac_status=$?
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); } &&
25902 { ac_try='test -s conftest.$ac_objext'
25903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904 (eval $ac_try) 2>&5
25905 ac_status=$?
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); }; }; then
25908 eval "ac_cv_var___progname_declaration=no"
25909else
25910 echo "$as_me: failed program was:" >&5
25911cat conftest.$ac_ext >&5
25912eval "ac_cv_var___progname_declaration=yes"
25913fi
25914rm -f conftest.$ac_objext conftest.$ac_ext
25915
25916fi
25917
25918
25919
25920
25921echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
25922echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
25923if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
25924
25925cat >>confdefs.h <<\_ACEOF
25926#define HAVE___PROGNAME_DECLARATION 1
25927_ACEOF
25928
25929fi
25930
25931
25932fi
25933
25934
25935
25936echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
25937echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
25938if test "${ac_cv_var_optarg_declaration+set}" = set; then
25939 echo $ECHO_N "(cached) $ECHO_C" >&6
25940else
25941
25942cat >conftest.$ac_ext <<_ACEOF
25943#line $LINENO "configure"
25944#include "confdefs.h"
25945#include <stdlib.h>
25946#ifdef HAVE_UNISTD_H
25947#include <unistd.h>
25948#endif
25949extern struct { int foo; } optarg;
25950#ifdef F77_DUMMY_MAIN
25951# ifdef __cplusplus
25952 extern "C"
25953# endif
25954 int F77_DUMMY_MAIN() { return 1; }
25955#endif
25956int
25957main ()
25958{
25959optarg.foo = 1;
25960 ;
25961 return 0;
25962}
25963_ACEOF
25964rm -f conftest.$ac_objext
25965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25966 (eval $ac_compile) 2>&5
25967 ac_status=$?
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); } &&
25970 { ac_try='test -s conftest.$ac_objext'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25973 ac_status=$?
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; }; then
25976 eval "ac_cv_var_optarg_declaration=no"
25977else
25978 echo "$as_me: failed program was:" >&5
25979cat conftest.$ac_ext >&5
25980eval "ac_cv_var_optarg_declaration=yes"
25981fi
25982rm -f conftest.$ac_objext conftest.$ac_ext
25983
25984fi
25985
25986
25987
25988
25989echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
25990echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
25991if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
25992
25993cat >>confdefs.h <<\_ACEOF
25994#define HAVE_OPTARG_DECLARATION 1
25995_ACEOF
25996
25997fi
25998
25999
26000
26001echo "$as_me:$LINENO: checking if optind is properly declared" >&5
26002echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
26003if test "${ac_cv_var_optind_declaration+set}" = set; then
26004 echo $ECHO_N "(cached) $ECHO_C" >&6
26005else
26006
26007cat >conftest.$ac_ext <<_ACEOF
26008#line $LINENO "configure"
26009#include "confdefs.h"
26010#include <stdlib.h>
26011#ifdef HAVE_UNISTD_H
26012#include <unistd.h>
26013#endif
26014extern struct { int foo; } optind;
26015#ifdef F77_DUMMY_MAIN
26016# ifdef __cplusplus
26017 extern "C"
26018# endif
26019 int F77_DUMMY_MAIN() { return 1; }
26020#endif
26021int
26022main ()
26023{
26024optind.foo = 1;
26025 ;
26026 return 0;
26027}
26028_ACEOF
26029rm -f conftest.$ac_objext
26030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26031 (eval $ac_compile) 2>&5
26032 ac_status=$?
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } &&
26035 { ac_try='test -s conftest.$ac_objext'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; }; then
26041 eval "ac_cv_var_optind_declaration=no"
26042else
26043 echo "$as_me: failed program was:" >&5
26044cat conftest.$ac_ext >&5
26045eval "ac_cv_var_optind_declaration=yes"
26046fi
26047rm -f conftest.$ac_objext conftest.$ac_ext
26048
26049fi
26050
26051
26052
26053
26054echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
26055echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
26056if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
26057
26058cat >>confdefs.h <<\_ACEOF
26059#define HAVE_OPTIND_DECLARATION 1
26060_ACEOF
26061
26062fi
26063
26064
26065
26066echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
26067echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
26068if test "${ac_cv_var_opterr_declaration+set}" = set; then
26069 echo $ECHO_N "(cached) $ECHO_C" >&6
26070else
26071
26072cat >conftest.$ac_ext <<_ACEOF
26073#line $LINENO "configure"
26074#include "confdefs.h"
26075#include <stdlib.h>
26076#ifdef HAVE_UNISTD_H
26077#include <unistd.h>
26078#endif
26079extern struct { int foo; } opterr;
26080#ifdef F77_DUMMY_MAIN
26081# ifdef __cplusplus
26082 extern "C"
26083# endif
26084 int F77_DUMMY_MAIN() { return 1; }
26085#endif
26086int
26087main ()
26088{
26089opterr.foo = 1;
26090 ;
26091 return 0;
26092}
26093_ACEOF
26094rm -f conftest.$ac_objext
26095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26096 (eval $ac_compile) 2>&5
26097 ac_status=$?
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } &&
26100 { ac_try='test -s conftest.$ac_objext'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; }; then
26106 eval "ac_cv_var_opterr_declaration=no"
26107else
26108 echo "$as_me: failed program was:" >&5
26109cat conftest.$ac_ext >&5
26110eval "ac_cv_var_opterr_declaration=yes"
26111fi
26112rm -f conftest.$ac_objext conftest.$ac_ext
26113
26114fi
26115
26116
26117
26118
26119echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
26120echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
26121if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
26122
26123cat >>confdefs.h <<\_ACEOF
26124#define HAVE_OPTERR_DECLARATION 1
26125_ACEOF
26126
26127fi
26128
26129
26130
26131echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
26132echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
26133if test "${ac_cv_var_optopt_declaration+set}" = set; then
26134 echo $ECHO_N "(cached) $ECHO_C" >&6
26135else
26136
26137cat >conftest.$ac_ext <<_ACEOF
26138#line $LINENO "configure"
26139#include "confdefs.h"
26140#include <stdlib.h>
26141#ifdef HAVE_UNISTD_H
26142#include <unistd.h>
26143#endif
26144extern struct { int foo; } optopt;
26145#ifdef F77_DUMMY_MAIN
26146# ifdef __cplusplus
26147 extern "C"
26148# endif
26149 int F77_DUMMY_MAIN() { return 1; }
26150#endif
26151int
26152main ()
26153{
26154optopt.foo = 1;
26155 ;
26156 return 0;
26157}
26158_ACEOF
26159rm -f conftest.$ac_objext
26160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26161 (eval $ac_compile) 2>&5
26162 ac_status=$?
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); } &&
26165 { ac_try='test -s conftest.$ac_objext'
26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167 (eval $ac_try) 2>&5
26168 ac_status=$?
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); }; }; then
26171 eval "ac_cv_var_optopt_declaration=no"
26172else
26173 echo "$as_me: failed program was:" >&5
26174cat conftest.$ac_ext >&5
26175eval "ac_cv_var_optopt_declaration=yes"
26176fi
26177rm -f conftest.$ac_objext conftest.$ac_ext
26178
26179fi
26180
26181
26182
26183
26184echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
26185echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
26186if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
26187
26188cat >>confdefs.h <<\_ACEOF
26189#define HAVE_OPTOPT_DECLARATION 1
26190_ACEOF
26191
26192fi
26193
26194
26195
26196
26197echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26198echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
26199if test "${ac_cv_var_environ_declaration+set}" = set; then
26200 echo $ECHO_N "(cached) $ECHO_C" >&6
26201else
26202
26203cat >conftest.$ac_ext <<_ACEOF
26204#line $LINENO "configure"
26205#include "confdefs.h"
26206#include <stdlib.h>
26207extern struct { int foo; } environ;
26208#ifdef F77_DUMMY_MAIN
26209# ifdef __cplusplus
26210 extern "C"
26211# endif
26212 int F77_DUMMY_MAIN() { return 1; }
26213#endif
26214int
26215main ()
26216{
26217environ.foo = 1;
26218 ;
26219 return 0;
26220}
26221_ACEOF
26222rm -f conftest.$ac_objext
26223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26224 (eval $ac_compile) 2>&5
26225 ac_status=$?
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); } &&
26228 { ac_try='test -s conftest.$ac_objext'
26229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230 (eval $ac_try) 2>&5
26231 ac_status=$?
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); }; }; then
26234 eval "ac_cv_var_environ_declaration=no"
26235else
26236 echo "$as_me: failed program was:" >&5
26237cat conftest.$ac_ext >&5
26238eval "ac_cv_var_environ_declaration=yes"
26239fi
26240rm -f conftest.$ac_objext conftest.$ac_ext
26241
26242fi
26243
26244
26245
26246
26247echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
26248echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
26249if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
26250
26251cat >>confdefs.h <<\_ACEOF
26252#define HAVE_ENVIRON_DECLARATION 1
26253_ACEOF
26254
26255fi
26256
26257
26258
26259
26260
26261
26262echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
26263echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
26264if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
26265 echo $ECHO_N "(cached) $ECHO_C" >&6
26266else
26267
26268cat >conftest.$ac_ext <<_ACEOF
26269#line $LINENO "configure"
26270#include "confdefs.h"
26271#include <time.h>
26272#ifdef F77_DUMMY_MAIN
26273# ifdef __cplusplus
26274 extern "C"
26275# endif
26276 int F77_DUMMY_MAIN() { return 1; }
26277#endif
26278int
26279main ()
26280{
26281struct tm x; x.tm_gmtoff;
26282 ;
26283 return 0;
26284}
26285_ACEOF
26286rm -f conftest.$ac_objext
26287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26288 (eval $ac_compile) 2>&5
26289 ac_status=$?
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); } &&
26292 { ac_try='test -s conftest.$ac_objext'
26293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294 (eval $ac_try) 2>&5
26295 ac_status=$?
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); }; }; then
26298 ac_cv_type_struct_tm_tm_gmtoff=yes
26299else
26300 echo "$as_me: failed program was:" >&5
26301cat conftest.$ac_ext >&5
26302ac_cv_type_struct_tm_tm_gmtoff=no
26303fi
26304rm -f conftest.$ac_objext conftest.$ac_ext
26305fi
26306echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
26307echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
26308if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
26309
26310
26311cat >>confdefs.h <<\_ACEOF
26312#define HAVE_STRUCT_TM_TM_GMTOFF 1
26313_ACEOF
26314
26315
26316fi
26317
26318
26319
26320
26321echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
26322echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
26323if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
26324 echo $ECHO_N "(cached) $ECHO_C" >&6
26325else
26326
26327cat >conftest.$ac_ext <<_ACEOF
26328#line $LINENO "configure"
26329#include "confdefs.h"
26330#include <time.h>
26331#ifdef F77_DUMMY_MAIN
26332# ifdef __cplusplus
26333 extern "C"
26334# endif
26335 int F77_DUMMY_MAIN() { return 1; }
26336#endif
26337int
26338main ()
26339{
26340struct tm x; x.tm_zone;
26341 ;
26342 return 0;
26343}
26344_ACEOF
26345rm -f conftest.$ac_objext
26346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26347 (eval $ac_compile) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); } &&
26351 { ac_try='test -s conftest.$ac_objext'
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; }; then
26357 ac_cv_type_struct_tm_tm_zone=yes
26358else
26359 echo "$as_me: failed program was:" >&5
26360cat conftest.$ac_ext >&5
26361ac_cv_type_struct_tm_tm_zone=no
26362fi
26363rm -f conftest.$ac_objext conftest.$ac_ext
26364fi
26365echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
26366echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
26367if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
26368
26369
26370cat >>confdefs.h <<\_ACEOF
26371#define HAVE_STRUCT_TM_TM_ZONE 1
26372_ACEOF
26373
26374
26375fi
26376
26377
26378
26379
26380
26381echo "$as_me:$LINENO: checking for timezone" >&5
26382echo $ECHO_N "checking for timezone... $ECHO_C" >&6
26383if test "${ac_cv_var_timezone+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26385else
26386
26387cat >conftest.$ac_ext <<_ACEOF
26388#line $LINENO "configure"
26389#include "confdefs.h"
26390extern int timezone;
26391int foo() { return timezone; }
26392#ifdef F77_DUMMY_MAIN
26393# ifdef __cplusplus
26394 extern "C"
26395# endif
26396 int F77_DUMMY_MAIN() { return 1; }
26397#endif
26398int
26399main ()
26400{
26401foo()
26402 ;
26403 return 0;
26404}
26405_ACEOF
26406rm -f conftest.$ac_objext conftest$ac_exeext
26407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26408 (eval $ac_link) 2>&5
26409 ac_status=$?
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } &&
26412 { ac_try='test -s conftest$ac_exeext'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }; then
26418 ac_cv_var_timezone=yes
26419else
26420 echo "$as_me: failed program was:" >&5
26421cat conftest.$ac_ext >&5
26422ac_cv_var_timezone=no
26423fi
26424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26425
26426fi
26427
26428ac_foo=`eval echo \\$ac_cv_var_timezone`
26429echo "$as_me:$LINENO: result: $ac_foo" >&5
26430echo "${ECHO_T}$ac_foo" >&6
26431if test "$ac_foo" = yes; then
26432
26433cat >>confdefs.h <<_ACEOF
26434#define HAVE_TIMEZONE 1
26435_ACEOF
26436
26437
26438echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
26439echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
26440if test "${ac_cv_var_timezone_declaration+set}" = set; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26442else
26443
26444cat >conftest.$ac_ext <<_ACEOF
26445#line $LINENO "configure"
26446#include "confdefs.h"
26447#include <time.h>
26448extern struct { int foo; } timezone;
26449#ifdef F77_DUMMY_MAIN
26450# ifdef __cplusplus
26451 extern "C"
26452# endif
26453 int F77_DUMMY_MAIN() { return 1; }
26454#endif
26455int
26456main ()
26457{
26458timezone.foo = 1;
26459 ;
26460 return 0;
26461}
26462_ACEOF
26463rm -f conftest.$ac_objext
26464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26465 (eval $ac_compile) 2>&5
26466 ac_status=$?
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } &&
26469 { ac_try='test -s conftest.$ac_objext'
26470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26471 (eval $ac_try) 2>&5
26472 ac_status=$?
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); }; }; then
26475 eval "ac_cv_var_timezone_declaration=no"
26476else
26477 echo "$as_me: failed program was:" >&5
26478cat conftest.$ac_ext >&5
26479eval "ac_cv_var_timezone_declaration=yes"
26480fi
26481rm -f conftest.$ac_objext conftest.$ac_ext
26482
26483fi
26484
26485
26486
26487
26488echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
26489echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
26490if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
26491
26492cat >>confdefs.h <<\_ACEOF
26493#define HAVE_TIMEZONE_DECLARATION 1
26494_ACEOF
26495
26496fi
26497
26498
26499fi
26500
26501
26502echo "$as_me:$LINENO: checking for altzone" >&5
26503echo $ECHO_N "checking for altzone... $ECHO_C" >&6
26504if test "${ac_cv_var_altzone+set}" = set; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26506else
26507
26508cat >conftest.$ac_ext <<_ACEOF
26509#line $LINENO "configure"
26510#include "confdefs.h"
26511extern int altzone;
26512int foo() { return altzone; }
26513#ifdef F77_DUMMY_MAIN
26514# ifdef __cplusplus
26515 extern "C"
26516# endif
26517 int F77_DUMMY_MAIN() { return 1; }
26518#endif
26519int
26520main ()
26521{
26522foo()
26523 ;
26524 return 0;
26525}
26526_ACEOF
26527rm -f conftest.$ac_objext conftest$ac_exeext
26528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26529 (eval $ac_link) 2>&5
26530 ac_status=$?
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); } &&
26533 { ac_try='test -s conftest$ac_exeext'
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; }; then
26539 ac_cv_var_altzone=yes
26540else
26541 echo "$as_me: failed program was:" >&5
26542cat conftest.$ac_ext >&5
26543ac_cv_var_altzone=no
26544fi
26545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26546
26547fi
26548
26549ac_foo=`eval echo \\$ac_cv_var_altzone`
26550echo "$as_me:$LINENO: result: $ac_foo" >&5
26551echo "${ECHO_T}$ac_foo" >&6
26552if test "$ac_foo" = yes; then
26553
26554cat >>confdefs.h <<_ACEOF
26555#define HAVE_ALTZONE 1
26556_ACEOF
26557
26558
26559echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
26560echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
26561if test "${ac_cv_var_altzone_declaration+set}" = set; then
26562 echo $ECHO_N "(cached) $ECHO_C" >&6
26563else
26564
26565cat >conftest.$ac_ext <<_ACEOF
26566#line $LINENO "configure"
26567#include "confdefs.h"
26568#include <time.h>
26569extern struct { int foo; } altzone;
26570#ifdef F77_DUMMY_MAIN
26571# ifdef __cplusplus
26572 extern "C"
26573# endif
26574 int F77_DUMMY_MAIN() { return 1; }
26575#endif
26576int
26577main ()
26578{
26579altzone.foo = 1;
26580 ;
26581 return 0;
26582}
26583_ACEOF
26584rm -f conftest.$ac_objext
26585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26586 (eval $ac_compile) 2>&5
26587 ac_status=$?
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } &&
26590 { ac_try='test -s conftest.$ac_objext'
26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26593 ac_status=$?
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; }; then
26596 eval "ac_cv_var_altzone_declaration=no"
26597else
26598 echo "$as_me: failed program was:" >&5
26599cat conftest.$ac_ext >&5
26600eval "ac_cv_var_altzone_declaration=yes"
26601fi
26602rm -f conftest.$ac_objext conftest.$ac_ext
26603
26604fi
26605
26606
26607
26608
26609echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
26610echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
26611if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
26612
26613cat >>confdefs.h <<\_ACEOF
26614#define HAVE_ALTZONE_DECLARATION 1
26615_ACEOF
26616
26617fi
26618
26619
26620fi
26621
26622
26623
26624
26625cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
26626echo "$as_me:$LINENO: checking for sa_family_t" >&5
26627echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
26628if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26629 echo $ECHO_N "(cached) $ECHO_C" >&6
26630else
26631 cat >conftest.$ac_ext <<_ACEOF
26632#line $LINENO "configure"
26633#include "confdefs.h"
26634#include <sys/types.h>
26635#if STDC_HEADERS
26636#include <stdlib.h>
26637#include <stddef.h>
26638#endif
26639#include <sys/socket.h>
26640#ifdef F77_DUMMY_MAIN
26641# ifdef __cplusplus
26642 extern "C"
26643# endif
26644 int F77_DUMMY_MAIN() { return 1; }
26645#endif
26646int
26647main ()
26648{
26649sa_family_t foo;
26650 ;
26651 return 0;
26652}
26653_ACEOF
26654rm -f conftest.$ac_objext
26655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26656 (eval $ac_compile) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); } &&
26660 { ac_try='test -s conftest.$ac_objext'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 eval "ac_cv_type_$cv=yes"
26667else
26668 echo "$as_me: failed program was:" >&5
26669cat conftest.$ac_ext >&5
26670eval "ac_cv_type_$cv=no"
26671fi
26672rm -f conftest.$ac_objext conftest.$ac_ext
26673fi
26674ac_foo=`eval echo \\$ac_cv_type_$cv`
26675echo "$as_me:$LINENO: result: $ac_foo" >&5
26676echo "${ECHO_T}$ac_foo" >&6
26677if test "$ac_foo" = yes; then
26678 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26679if false; then
26680 echo "$as_me:$LINENO: checking for sa_family_t" >&5
26681echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
26682if test "${ac_cv_type_sa_family_t+set}" = set; then
26683 echo $ECHO_N "(cached) $ECHO_C" >&6
26684else
26685 cat >conftest.$ac_ext <<_ACEOF
26686#line $LINENO "configure"
26687#include "confdefs.h"
26688$ac_includes_default
26689#ifdef F77_DUMMY_MAIN
26690# ifdef __cplusplus
26691 extern "C"
26692# endif
26693 int F77_DUMMY_MAIN() { return 1; }
26694#endif
26695int
26696main ()
26697{
26698if ((sa_family_t *) 0)
26699 return 0;
26700if (sizeof (sa_family_t))
26701 return 0;
26702 ;
26703 return 0;
26704}
26705_ACEOF
26706rm -f conftest.$ac_objext
26707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26708 (eval $ac_compile) 2>&5
26709 ac_status=$?
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); } &&
26712 { ac_try='test -s conftest.$ac_objext'
26713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26714 (eval $ac_try) 2>&5
26715 ac_status=$?
26716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717 (exit $ac_status); }; }; then
26718 ac_cv_type_sa_family_t=yes
26719else
26720 echo "$as_me: failed program was:" >&5
26721cat conftest.$ac_ext >&5
26722ac_cv_type_sa_family_t=no
26723fi
26724rm -f conftest.$ac_objext conftest.$ac_ext
26725fi
26726echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
26727echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
26728if test $ac_cv_type_sa_family_t = yes; then
26729
26730cat >>confdefs.h <<_ACEOF
26731#define HAVE_SA_FAMILY_T 1
26732_ACEOF
26733
26734
26735fi
26736
26737fi
26738
26739cat >>confdefs.h <<_ACEOF
26740#define $ac_tr_hdr 1
26741_ACEOF
26742
26743fi
26744
26745
26746
26747cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
26748echo "$as_me:$LINENO: checking for socklen_t" >&5
26749echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
26750if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26751 echo $ECHO_N "(cached) $ECHO_C" >&6
26752else
26753 cat >conftest.$ac_ext <<_ACEOF
26754#line $LINENO "configure"
26755#include "confdefs.h"
26756#include <sys/types.h>
26757#if STDC_HEADERS
26758#include <stdlib.h>
26759#include <stddef.h>
26760#endif
26761#include <sys/socket.h>
26762#ifdef F77_DUMMY_MAIN
26763# ifdef __cplusplus
26764 extern "C"
26765# endif
26766 int F77_DUMMY_MAIN() { return 1; }
26767#endif
26768int
26769main ()
26770{
26771socklen_t foo;
26772 ;
26773 return 0;
26774}
26775_ACEOF
26776rm -f conftest.$ac_objext
26777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26778 (eval $ac_compile) 2>&5
26779 ac_status=$?
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } &&
26782 { ac_try='test -s conftest.$ac_objext'
26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784 (eval $ac_try) 2>&5
26785 ac_status=$?
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; }; then
26788 eval "ac_cv_type_$cv=yes"
26789else
26790 echo "$as_me: failed program was:" >&5
26791cat conftest.$ac_ext >&5
26792eval "ac_cv_type_$cv=no"
26793fi
26794rm -f conftest.$ac_objext conftest.$ac_ext
26795fi
26796ac_foo=`eval echo \\$ac_cv_type_$cv`
26797echo "$as_me:$LINENO: result: $ac_foo" >&5
26798echo "${ECHO_T}$ac_foo" >&6
26799if test "$ac_foo" = yes; then
26800 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26801if false; then
26802 echo "$as_me:$LINENO: checking for socklen_t" >&5
26803echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
26804if test "${ac_cv_type_socklen_t+set}" = set; then
26805 echo $ECHO_N "(cached) $ECHO_C" >&6
26806else
26807 cat >conftest.$ac_ext <<_ACEOF
26808#line $LINENO "configure"
26809#include "confdefs.h"
26810$ac_includes_default
26811#ifdef F77_DUMMY_MAIN
26812# ifdef __cplusplus
26813 extern "C"
26814# endif
26815 int F77_DUMMY_MAIN() { return 1; }
26816#endif
26817int
26818main ()
26819{
26820if ((socklen_t *) 0)
26821 return 0;
26822if (sizeof (socklen_t))
26823 return 0;
26824 ;
26825 return 0;
26826}
26827_ACEOF
26828rm -f conftest.$ac_objext
26829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26830 (eval $ac_compile) 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } &&
26834 { ac_try='test -s conftest.$ac_objext'
26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26837 ac_status=$?
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; }; then
26840 ac_cv_type_socklen_t=yes
26841else
26842 echo "$as_me: failed program was:" >&5
26843cat conftest.$ac_ext >&5
26844ac_cv_type_socklen_t=no
26845fi
26846rm -f conftest.$ac_objext conftest.$ac_ext
26847fi
26848echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26849echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
26850if test $ac_cv_type_socklen_t = yes; then
26851
26852cat >>confdefs.h <<_ACEOF
26853#define HAVE_SOCKLEN_T 1
26854_ACEOF
26855
26856
26857fi
26858
26859fi
26860
26861cat >>confdefs.h <<_ACEOF
26862#define $ac_tr_hdr 1
26863_ACEOF
26864
26865fi
26866
26867
26868
26869cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
26870echo "$as_me:$LINENO: checking for struct sockaddr" >&5
26871echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
26872if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26873 echo $ECHO_N "(cached) $ECHO_C" >&6
26874else
26875 cat >conftest.$ac_ext <<_ACEOF
26876#line $LINENO "configure"
26877#include "confdefs.h"
26878#include <sys/types.h>
26879#if STDC_HEADERS
26880#include <stdlib.h>
26881#include <stddef.h>
26882#endif
26883#include <sys/socket.h>
26884#ifdef F77_DUMMY_MAIN
26885# ifdef __cplusplus
26886 extern "C"
26887# endif
26888 int F77_DUMMY_MAIN() { return 1; }
26889#endif
26890int
26891main ()
26892{
26893struct sockaddr foo;
26894 ;
26895 return 0;
26896}
26897_ACEOF
26898rm -f conftest.$ac_objext
26899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26900 (eval $ac_compile) 2>&5
26901 ac_status=$?
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); } &&
26904 { ac_try='test -s conftest.$ac_objext'
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
26907 ac_status=$?
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; }; then
26910 eval "ac_cv_type_$cv=yes"
26911else
26912 echo "$as_me: failed program was:" >&5
26913cat conftest.$ac_ext >&5
26914eval "ac_cv_type_$cv=no"
26915fi
26916rm -f conftest.$ac_objext conftest.$ac_ext
26917fi
26918ac_foo=`eval echo \\$ac_cv_type_$cv`
26919echo "$as_me:$LINENO: result: $ac_foo" >&5
26920echo "${ECHO_T}$ac_foo" >&6
26921if test "$ac_foo" = yes; then
26922 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26923if false; then
26924 echo "$as_me:$LINENO: checking for struct sockaddr" >&5
26925echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
26926if test "${ac_cv_type_struct_sockaddr+set}" = set; then
26927 echo $ECHO_N "(cached) $ECHO_C" >&6
26928else
26929 cat >conftest.$ac_ext <<_ACEOF
26930#line $LINENO "configure"
26931#include "confdefs.h"
26932$ac_includes_default
26933#ifdef F77_DUMMY_MAIN
26934# ifdef __cplusplus
26935 extern "C"
26936# endif
26937 int F77_DUMMY_MAIN() { return 1; }
26938#endif
26939int
26940main ()
26941{
26942if ((struct sockaddr *) 0)
26943 return 0;
26944if (sizeof (struct sockaddr))
26945 return 0;
26946 ;
26947 return 0;
26948}
26949_ACEOF
26950rm -f conftest.$ac_objext
26951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26952 (eval $ac_compile) 2>&5
26953 ac_status=$?
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } &&
26956 { ac_try='test -s conftest.$ac_objext'
26957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26958 (eval $ac_try) 2>&5
26959 ac_status=$?
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); }; }; then
26962 ac_cv_type_struct_sockaddr=yes
26963else
26964 echo "$as_me: failed program was:" >&5
26965cat conftest.$ac_ext >&5
26966ac_cv_type_struct_sockaddr=no
26967fi
26968rm -f conftest.$ac_objext conftest.$ac_ext
26969fi
26970echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
26971echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
26972if test $ac_cv_type_struct_sockaddr = yes; then
26973
26974cat >>confdefs.h <<_ACEOF
26975#define HAVE_STRUCT_SOCKADDR 1
26976_ACEOF
26977
26978
26979fi
26980
26981fi
26982
26983cat >>confdefs.h <<_ACEOF
26984#define $ac_tr_hdr 1
26985_ACEOF
26986
26987fi
26988
26989
26990
26991cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
26992echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
26993echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
26994if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26995 echo $ECHO_N "(cached) $ECHO_C" >&6
26996else
26997 cat >conftest.$ac_ext <<_ACEOF
26998#line $LINENO "configure"
26999#include "confdefs.h"
27000#include <sys/types.h>
27001#if STDC_HEADERS
27002#include <stdlib.h>
27003#include <stddef.h>
27004#endif
27005#include <sys/socket.h>
27006#ifdef F77_DUMMY_MAIN
27007# ifdef __cplusplus
27008 extern "C"
27009# endif
27010 int F77_DUMMY_MAIN() { return 1; }
27011#endif
27012int
27013main ()
27014{
27015struct sockaddr_storage foo;
27016 ;
27017 return 0;
27018}
27019_ACEOF
27020rm -f conftest.$ac_objext
27021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27022 (eval $ac_compile) 2>&5
27023 ac_status=$?
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } &&
27026 { ac_try='test -s conftest.$ac_objext'
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; }; then
27032 eval "ac_cv_type_$cv=yes"
27033else
27034 echo "$as_me: failed program was:" >&5
27035cat conftest.$ac_ext >&5
27036eval "ac_cv_type_$cv=no"
27037fi
27038rm -f conftest.$ac_objext conftest.$ac_ext
27039fi
27040ac_foo=`eval echo \\$ac_cv_type_$cv`
27041echo "$as_me:$LINENO: result: $ac_foo" >&5
27042echo "${ECHO_T}$ac_foo" >&6
27043if test "$ac_foo" = yes; then
27044 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27045if false; then
27046 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
27047echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
27048if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
27049 echo $ECHO_N "(cached) $ECHO_C" >&6
27050else
27051 cat >conftest.$ac_ext <<_ACEOF
27052#line $LINENO "configure"
27053#include "confdefs.h"
27054$ac_includes_default
27055#ifdef F77_DUMMY_MAIN
27056# ifdef __cplusplus
27057 extern "C"
27058# endif
27059 int F77_DUMMY_MAIN() { return 1; }
27060#endif
27061int
27062main ()
27063{
27064if ((struct sockaddr_storage *) 0)
27065 return 0;
27066if (sizeof (struct sockaddr_storage))
27067 return 0;
27068 ;
27069 return 0;
27070}
27071_ACEOF
27072rm -f conftest.$ac_objext
27073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27074 (eval $ac_compile) 2>&5
27075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } &&
27078 { ac_try='test -s conftest.$ac_objext'
27079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27080 (eval $ac_try) 2>&5
27081 ac_status=$?
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); }; }; then
27084 ac_cv_type_struct_sockaddr_storage=yes
27085else
27086 echo "$as_me: failed program was:" >&5
27087cat conftest.$ac_ext >&5
27088ac_cv_type_struct_sockaddr_storage=no
27089fi
27090rm -f conftest.$ac_objext conftest.$ac_ext
27091fi
27092echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
27093echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
27094if test $ac_cv_type_struct_sockaddr_storage = yes; then
27095
27096cat >>confdefs.h <<_ACEOF
27097#define HAVE_STRUCT_SOCKADDR_STORAGE 1
27098_ACEOF
27099
27100
27101fi
27102
27103fi
27104
27105cat >>confdefs.h <<_ACEOF
27106#define $ac_tr_hdr 1
27107_ACEOF
27108
27109fi
27110
27111
27112
27113cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
27114echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27115echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
27116if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27118else
27119 cat >conftest.$ac_ext <<_ACEOF
27120#line $LINENO "configure"
27121#include "confdefs.h"
27122#include <sys/types.h>
27123#if STDC_HEADERS
27124#include <stdlib.h>
27125#include <stddef.h>
27126#endif
27127#include <netdb.h>
27128#ifdef F77_DUMMY_MAIN
27129# ifdef __cplusplus
27130 extern "C"
27131# endif
27132 int F77_DUMMY_MAIN() { return 1; }
27133#endif
27134int
27135main ()
27136{
27137struct addrinfo foo;
27138 ;
27139 return 0;
27140}
27141_ACEOF
27142rm -f conftest.$ac_objext
27143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27144 (eval $ac_compile) 2>&5
27145 ac_status=$?
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); } &&
27148 { ac_try='test -s conftest.$ac_objext'
27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150 (eval $ac_try) 2>&5
27151 ac_status=$?
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); }; }; then
27154 eval "ac_cv_type_$cv=yes"
27155else
27156 echo "$as_me: failed program was:" >&5
27157cat conftest.$ac_ext >&5
27158eval "ac_cv_type_$cv=no"
27159fi
27160rm -f conftest.$ac_objext conftest.$ac_ext
27161fi
27162ac_foo=`eval echo \\$ac_cv_type_$cv`
27163echo "$as_me:$LINENO: result: $ac_foo" >&5
27164echo "${ECHO_T}$ac_foo" >&6
27165if test "$ac_foo" = yes; then
27166 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27167if false; then
27168 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27169echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
27170if test "${ac_cv_type_struct_addrinfo+set}" = set; then
27171 echo $ECHO_N "(cached) $ECHO_C" >&6
27172else
27173 cat >conftest.$ac_ext <<_ACEOF
27174#line $LINENO "configure"
27175#include "confdefs.h"
27176$ac_includes_default
27177#ifdef F77_DUMMY_MAIN
27178# ifdef __cplusplus
27179 extern "C"
27180# endif
27181 int F77_DUMMY_MAIN() { return 1; }
27182#endif
27183int
27184main ()
27185{
27186if ((struct addrinfo *) 0)
27187 return 0;
27188if (sizeof (struct addrinfo))
27189 return 0;
27190 ;
27191 return 0;
27192}
27193_ACEOF
27194rm -f conftest.$ac_objext
27195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27196 (eval $ac_compile) 2>&5
27197 ac_status=$?
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); } &&
27200 { ac_try='test -s conftest.$ac_objext'
27201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27202 (eval $ac_try) 2>&5
27203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; }; then
27206 ac_cv_type_struct_addrinfo=yes
27207else
27208 echo "$as_me: failed program was:" >&5
27209cat conftest.$ac_ext >&5
27210ac_cv_type_struct_addrinfo=no
27211fi
27212rm -f conftest.$ac_objext conftest.$ac_ext
27213fi
27214echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
27215echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
27216if test $ac_cv_type_struct_addrinfo = yes; then
27217
27218cat >>confdefs.h <<_ACEOF
27219#define HAVE_STRUCT_ADDRINFO 1
27220_ACEOF
27221
27222
27223fi
27224
27225fi
27226
27227cat >>confdefs.h <<_ACEOF
27228#define $ac_tr_hdr 1
27229_ACEOF
27230
27231fi
27232
27233
27234
27235cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
27236echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
27237echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
27238if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27239 echo $ECHO_N "(cached) $ECHO_C" >&6
27240else
27241 cat >conftest.$ac_ext <<_ACEOF
27242#line $LINENO "configure"
27243#include "confdefs.h"
27244#include <sys/types.h>
27245#if STDC_HEADERS
27246#include <stdlib.h>
27247#include <stddef.h>
27248#endif
27249#include <ifaddrs.h>
27250#ifdef F77_DUMMY_MAIN
27251# ifdef __cplusplus
27252 extern "C"
27253# endif
27254 int F77_DUMMY_MAIN() { return 1; }
27255#endif
27256int
27257main ()
27258{
27259struct ifaddrs foo;
27260 ;
27261 return 0;
27262}
27263_ACEOF
27264rm -f conftest.$ac_objext
27265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27266 (eval $ac_compile) 2>&5
27267 ac_status=$?
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } &&
27270 { ac_try='test -s conftest.$ac_objext'
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27273 ac_status=$?
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; }; then
27276 eval "ac_cv_type_$cv=yes"
27277else
27278 echo "$as_me: failed program was:" >&5
27279cat conftest.$ac_ext >&5
27280eval "ac_cv_type_$cv=no"
27281fi
27282rm -f conftest.$ac_objext conftest.$ac_ext
27283fi
27284ac_foo=`eval echo \\$ac_cv_type_$cv`
27285echo "$as_me:$LINENO: result: $ac_foo" >&5
27286echo "${ECHO_T}$ac_foo" >&6
27287if test "$ac_foo" = yes; then
27288 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27289if false; then
27290 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
27291echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
27292if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
27293 echo $ECHO_N "(cached) $ECHO_C" >&6
27294else
27295 cat >conftest.$ac_ext <<_ACEOF
27296#line $LINENO "configure"
27297#include "confdefs.h"
27298$ac_includes_default
27299#ifdef F77_DUMMY_MAIN
27300# ifdef __cplusplus
27301 extern "C"
27302# endif
27303 int F77_DUMMY_MAIN() { return 1; }
27304#endif
27305int
27306main ()
27307{
27308if ((struct ifaddrs *) 0)
27309 return 0;
27310if (sizeof (struct ifaddrs))
27311 return 0;
27312 ;
27313 return 0;
27314}
27315_ACEOF
27316rm -f conftest.$ac_objext
27317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318 (eval $ac_compile) 2>&5
27319 ac_status=$?
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } &&
27322 { ac_try='test -s conftest.$ac_objext'
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27325 ac_status=$?
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; }; then
27328 ac_cv_type_struct_ifaddrs=yes
27329else
27330 echo "$as_me: failed program was:" >&5
27331cat conftest.$ac_ext >&5
27332ac_cv_type_struct_ifaddrs=no
27333fi
27334rm -f conftest.$ac_objext conftest.$ac_ext
27335fi
27336echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
27337echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
27338if test $ac_cv_type_struct_ifaddrs = yes; then
27339
27340cat >>confdefs.h <<_ACEOF
27341#define HAVE_STRUCT_IFADDRS 1
27342_ACEOF
27343
27344
27345fi
27346
27347fi
27348
27349cat >>confdefs.h <<_ACEOF
27350#define $ac_tr_hdr 1
27351_ACEOF
27352
27353fi
27354
27355
27356
27357cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
27358echo "$as_me:$LINENO: checking for struct iovec" >&5
27359echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
27360if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27362else
27363 cat >conftest.$ac_ext <<_ACEOF
27364#line $LINENO "configure"
27365#include "confdefs.h"
27366#include <sys/types.h>
27367#if STDC_HEADERS
27368#include <stdlib.h>
27369#include <stddef.h>
27370#endif
27371
27372#include <sys/types.h>
27373#include <sys/uio.h>
27374
27375#ifdef F77_DUMMY_MAIN
27376# ifdef __cplusplus
27377 extern "C"
27378# endif
27379 int F77_DUMMY_MAIN() { return 1; }
27380#endif
27381int
27382main ()
27383{
27384struct iovec foo;
27385 ;
27386 return 0;
27387}
27388_ACEOF
27389rm -f conftest.$ac_objext
27390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27391 (eval $ac_compile) 2>&5
27392 ac_status=$?
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); } &&
27395 { ac_try='test -s conftest.$ac_objext'
27396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397 (eval $ac_try) 2>&5
27398 ac_status=$?
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
27401 eval "ac_cv_type_$cv=yes"
27402else
27403 echo "$as_me: failed program was:" >&5
27404cat conftest.$ac_ext >&5
27405eval "ac_cv_type_$cv=no"
27406fi
27407rm -f conftest.$ac_objext conftest.$ac_ext
27408fi
27409ac_foo=`eval echo \\$ac_cv_type_$cv`
27410echo "$as_me:$LINENO: result: $ac_foo" >&5
27411echo "${ECHO_T}$ac_foo" >&6
27412if test "$ac_foo" = yes; then
27413 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27414if false; then
27415 echo "$as_me:$LINENO: checking for struct iovec" >&5
27416echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
27417if test "${ac_cv_type_struct_iovec+set}" = set; then
27418 echo $ECHO_N "(cached) $ECHO_C" >&6
27419else
27420 cat >conftest.$ac_ext <<_ACEOF
27421#line $LINENO "configure"
27422#include "confdefs.h"
27423$ac_includes_default
27424#ifdef F77_DUMMY_MAIN
27425# ifdef __cplusplus
27426 extern "C"
27427# endif
27428 int F77_DUMMY_MAIN() { return 1; }
27429#endif
27430int
27431main ()
27432{
27433if ((struct iovec *) 0)
27434 return 0;
27435if (sizeof (struct iovec))
27436 return 0;
27437 ;
27438 return 0;
27439}
27440_ACEOF
27441rm -f conftest.$ac_objext
27442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27443 (eval $ac_compile) 2>&5
27444 ac_status=$?
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } &&
27447 { ac_try='test -s conftest.$ac_objext'
27448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449 (eval $ac_try) 2>&5
27450 ac_status=$?
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
27453 ac_cv_type_struct_iovec=yes
27454else
27455 echo "$as_me: failed program was:" >&5
27456cat conftest.$ac_ext >&5
27457ac_cv_type_struct_iovec=no
27458fi
27459rm -f conftest.$ac_objext conftest.$ac_ext
27460fi
27461echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
27462echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
27463if test $ac_cv_type_struct_iovec = yes; then
27464
27465cat >>confdefs.h <<_ACEOF
27466#define HAVE_STRUCT_IOVEC 1
27467_ACEOF
27468
27469
27470fi
27471
27472fi
27473
27474cat >>confdefs.h <<_ACEOF
27475#define $ac_tr_hdr 1
27476_ACEOF
27477
27478fi
27479
27480
27481
27482cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
27483echo "$as_me:$LINENO: checking for struct msghdr" >&5
27484echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
27485if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27486 echo $ECHO_N "(cached) $ECHO_C" >&6
27487else
27488 cat >conftest.$ac_ext <<_ACEOF
27489#line $LINENO "configure"
27490#include "confdefs.h"
27491#include <sys/types.h>
27492#if STDC_HEADERS
27493#include <stdlib.h>
27494#include <stddef.h>
27495#endif
27496
27497#include <sys/types.h>
27498#include <sys/socket.h>
27499
27500#ifdef F77_DUMMY_MAIN
27501# ifdef __cplusplus
27502 extern "C"
27503# endif
27504 int F77_DUMMY_MAIN() { return 1; }
27505#endif
27506int
27507main ()
27508{
27509struct msghdr foo;
27510 ;
27511 return 0;
27512}
27513_ACEOF
27514rm -f conftest.$ac_objext
27515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27516 (eval $ac_compile) 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); } &&
27520 { ac_try='test -s conftest.$ac_objext'
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27523 ac_status=$?
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; }; then
27526 eval "ac_cv_type_$cv=yes"
27527else
27528 echo "$as_me: failed program was:" >&5
27529cat conftest.$ac_ext >&5
27530eval "ac_cv_type_$cv=no"
27531fi
27532rm -f conftest.$ac_objext conftest.$ac_ext
27533fi
27534ac_foo=`eval echo \\$ac_cv_type_$cv`
27535echo "$as_me:$LINENO: result: $ac_foo" >&5
27536echo "${ECHO_T}$ac_foo" >&6
27537if test "$ac_foo" = yes; then
27538 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27539if false; then
27540 echo "$as_me:$LINENO: checking for struct msghdr" >&5
27541echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
27542if test "${ac_cv_type_struct_msghdr+set}" = set; then
27543 echo $ECHO_N "(cached) $ECHO_C" >&6
27544else
27545 cat >conftest.$ac_ext <<_ACEOF
27546#line $LINENO "configure"
27547#include "confdefs.h"
27548$ac_includes_default
27549#ifdef F77_DUMMY_MAIN
27550# ifdef __cplusplus
27551 extern "C"
27552# endif
27553 int F77_DUMMY_MAIN() { return 1; }
27554#endif
27555int
27556main ()
27557{
27558if ((struct msghdr *) 0)
27559 return 0;
27560if (sizeof (struct msghdr))
27561 return 0;
27562 ;
27563 return 0;
27564}
27565_ACEOF
27566rm -f conftest.$ac_objext
27567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27568 (eval $ac_compile) 2>&5
27569 ac_status=$?
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); } &&
27572 { ac_try='test -s conftest.$ac_objext'
27573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574 (eval $ac_try) 2>&5
27575 ac_status=$?
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); }; }; then
27578 ac_cv_type_struct_msghdr=yes
27579else
27580 echo "$as_me: failed program was:" >&5
27581cat conftest.$ac_ext >&5
27582ac_cv_type_struct_msghdr=no
27583fi
27584rm -f conftest.$ac_objext conftest.$ac_ext
27585fi
27586echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
27587echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
27588if test $ac_cv_type_struct_msghdr = yes; then
27589
27590cat >>confdefs.h <<_ACEOF
27591#define HAVE_STRUCT_MSGHDR 1
27592_ACEOF
27593
27594
27595fi
27596
27597fi
27598
27599cat >>confdefs.h <<_ACEOF
27600#define $ac_tr_hdr 1
27601_ACEOF
27602
27603fi
27604
27605
27606
27607
27608echo "$as_me:$LINENO: checking for struct winsize" >&5
27609echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
27610if test "${ac_cv_struct_winsize+set}" = set; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27612else
27613
27614ac_cv_struct_winsize=no
27615for i in sys/termios.h sys/ioctl.h; do
27616cat >conftest.$ac_ext <<_ACEOF
27617#line $LINENO "configure"
27618#include "confdefs.h"
27619#include <$i>
27620
27621_ACEOF
27622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27623 egrep "struct[ ]*winsize" >/dev/null 2>&1; then
27624 ac_cv_struct_winsize=yes; break
27625fi
27626rm -f conftest*
27627done
27628
27629fi
27630
27631if test "$ac_cv_struct_winsize" = "yes"; then
27632
27633cat >>confdefs.h <<\_ACEOF
27634#define HAVE_STRUCT_WINSIZE 1
27635_ACEOF
27636
27637fi
27638echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
27639echo "${ECHO_T}$ac_cv_struct_winsize" >&6
27640cat >conftest.$ac_ext <<_ACEOF
27641#line $LINENO "configure"
27642#include "confdefs.h"
27643#include <termios.h>
27644
27645_ACEOF
27646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27647 egrep "ws_xpixel" >/dev/null 2>&1; then
27648
27649cat >>confdefs.h <<\_ACEOF
27650#define HAVE_WS_XPIXEL 1
27651_ACEOF
27652
27653fi
27654rm -f conftest*
27655
27656cat >conftest.$ac_ext <<_ACEOF
27657#line $LINENO "configure"
27658#include "confdefs.h"
27659#include <termios.h>
27660
27661_ACEOF
27662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27663 egrep "ws_ypixel" >/dev/null 2>&1; then
27664
27665cat >>confdefs.h <<\_ACEOF
27666#define HAVE_WS_YPIXEL 1
27667_ACEOF
27668
27669fi
27670rm -f conftest*
27671
27672
27673
27674
27675
27676echo "$as_me:$LINENO: checking for struct spwd" >&5
27677echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
27678if test "${ac_cv_struct_spwd+set}" = set; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
27680else
27681
27682cat >conftest.$ac_ext <<_ACEOF
27683#line $LINENO "configure"
27684#include "confdefs.h"
27685#include <pwd.h>
27686#ifdef HAVE_SHADOW_H
27687#include <shadow.h>
27688#endif
27689#ifdef F77_DUMMY_MAIN
27690# ifdef __cplusplus
27691 extern "C"
27692# endif
27693 int F77_DUMMY_MAIN() { return 1; }
27694#endif
27695int
27696main ()
27697{
27698struct spwd foo;
27699 ;
27700 return 0;
27701}
27702_ACEOF
27703rm -f conftest.$ac_objext
27704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27705 (eval $ac_compile) 2>&5
27706 ac_status=$?
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } &&
27709 { ac_try='test -s conftest.$ac_objext'
27710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711 (eval $ac_try) 2>&5
27712 ac_status=$?
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); }; }; then
27715 ac_cv_struct_spwd=yes
27716else
27717 echo "$as_me: failed program was:" >&5
27718cat conftest.$ac_ext >&5
27719ac_cv_struct_spwd=no
27720fi
27721rm -f conftest.$ac_objext conftest.$ac_ext
27722
27723fi
27724
27725echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
27726echo "${ECHO_T}$ac_cv_struct_spwd" >&6
27727
27728if test "$ac_cv_struct_spwd" = "yes"; then
27729
27730cat >>confdefs.h <<\_ACEOF
27731#define HAVE_STRUCT_SPWD 1
27732_ACEOF
27733
27734fi
27735
27736
27737
27738LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
27739
27740
27741LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
27742
27743
27744# Check whether --enable-otp or --disable-otp was given.
27745if test "${enable_otp+set}" = set; then
27746 enableval="$enable_otp"
27747
27748fi;
27749if test "$enable_otp" = yes -a "$db_type" = unknown; then
27750 { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
27751echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
27752 { (exit 1); exit 1; }; }
27753fi
27754if test "$enable_otp" != no; then
27755 if test "$db_type" != unknown; then
27756 enable_otp=yes
27757 else
27758 enable_otp=no
27759 fi
27760fi
27761if test "$enable_otp" = yes; then
27762
27763cat >>confdefs.h <<\_ACEOF
27764#define OTP 1
27765_ACEOF
27766
27767 LIB_otp='$(top_builddir)/lib/otp/libotp.la'
27768
27769fi
27770echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
27771echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
27772echo "$as_me:$LINENO: result: $enable_otp" >&5
27773echo "${ECHO_T}$enable_otp" >&6
27774
27775
27776if test "$enable_otp" = yes; then
27777 OTP_TRUE=
27778 OTP_FALSE='#'
27779else
27780 OTP_TRUE='#'
27781 OTP_FALSE=
27782fi
27783
27784
27785
27786# Check whether --enable-osfc2 or --disable-osfc2 was given.
27787if test "${enable_osfc2+set}" = set; then
27788 enableval="$enable_osfc2"
27789
27790fi;
27791LIB_security=
27792if test "$enable_osfc2" = yes; then
27793
27794cat >>confdefs.h <<\_ACEOF
27795#define HAVE_OSFC2 1
27796_ACEOF
27797
27798 LIB_security=-lsecurity
27799fi
27800
27801
27802
27803# Check whether --enable-mmap or --disable-mmap was given.
27804if test "${enable_mmap+set}" = set; then
27805 enableval="$enable_mmap"
27806
27807fi;
27808if test "$enable_mmap" = "no"; then
27809
27810cat >>confdefs.h <<\_ACEOF
27811#define NO_MMAP 1
27812_ACEOF
27813
27814fi
27815
27816# Extract the first word of "nroff", so it can be a program name with args.
27817set dummy nroff; ac_word=$2
27818echo "$as_me:$LINENO: checking for $ac_word" >&5
27819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27820if test "${ac_cv_path_NROFF+set}" = set; then
27821 echo $ECHO_N "(cached) $ECHO_C" >&6
27822else
27823 case $NROFF in
27824 [\\/]* | ?:[\\/]*)
27825 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27826 ;;
27827 *)
27828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27829for as_dir in $PATH
27830do
27831 IFS=$as_save_IFS
27832 test -z "$as_dir" && as_dir=.
27833 for ac_exec_ext in '' $ac_executable_extensions; do
27834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27835 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27837 break 2
27838 fi
27839done
27840done
27841
27842 ;;
27843esac
27844fi
27845NROFF=$ac_cv_path_NROFF
27846
27847if test -n "$NROFF"; then
27848 echo "$as_me:$LINENO: result: $NROFF" >&5
27849echo "${ECHO_T}$NROFF" >&6
27850else
27851 echo "$as_me:$LINENO: result: no" >&5
27852echo "${ECHO_T}no" >&6
27853fi
27854
27855# Extract the first word of "groff", so it can be a program name with args.
27856set dummy groff; ac_word=$2
27857echo "$as_me:$LINENO: checking for $ac_word" >&5
27858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27859if test "${ac_cv_path_GROFF+set}" = set; then
27860 echo $ECHO_N "(cached) $ECHO_C" >&6
27861else
27862 case $GROFF in
27863 [\\/]* | ?:[\\/]*)
27864 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
27865 ;;
27866 *)
27867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27868for as_dir in $PATH
27869do
27870 IFS=$as_save_IFS
27871 test -z "$as_dir" && as_dir=.
27872 for ac_exec_ext in '' $ac_executable_extensions; do
27873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27874 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
27875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27876 break 2
27877 fi
27878done
27879done
27880
27881 ;;
27882esac
27883fi
27884GROFF=$ac_cv_path_GROFF
27885
27886if test -n "$GROFF"; then
27887 echo "$as_me:$LINENO: result: $GROFF" >&5
27888echo "${ECHO_T}$GROFF" >&6
27889else
27890 echo "$as_me:$LINENO: result: no" >&5
27891echo "${ECHO_T}no" >&6
27892fi
27893
27894echo "$as_me:$LINENO: checking how to format man pages" >&5
27895echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
27896if test "${ac_cv_sys_man_format+set}" = set; then
27897 echo $ECHO_N "(cached) $ECHO_C" >&6
27898else
27899 cat > conftest.1 << END
27900.Dd January 1, 1970
27901.Dt CONFTEST 1
27902.Sh NAME
27903.Nm conftest
27904.Nd
27905foobar
27906END
27907
27908if test "$NROFF" ; then
27909 for i in "-mdoc" "-mandoc"; do
27910 if "$NROFF" $i conftest.1 2> /dev/null | \
27911 grep Jan > /dev/null 2>&1 ; then
27912 ac_cv_sys_man_format="$NROFF $i"
27913 break
27914 fi
27915 done
27916fi
27917if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
27918 for i in "-mdoc" "-mandoc"; do
27919 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
27920 grep Jan > /dev/null 2>&1 ; then
27921 ac_cv_sys_man_format="$GROFF -Tascii $i"
27922 break
27923 fi
27924 done
27925fi
27926if test "$ac_cv_sys_man_format"; then
27927 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
27928fi
27929
27930fi
27931echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
27932echo "${ECHO_T}$ac_cv_sys_man_format" >&6
27933if test "$ac_cv_sys_man_format"; then
27934 CATMAN="$ac_cv_sys_man_format"
27935
27936fi
27937
27938
27939if test "$CATMAN"; then
27940 CATMAN_TRUE=
27941 CATMAN_FALSE='#'
27942else
27943 CATMAN_TRUE='#'
27944 CATMAN_FALSE=
27945fi
27946
27947echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
27948echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
27949if test "${ac_cv_sys_catman_ext+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27951else
27952 if grep _suffix /etc/man.conf > /dev/null 2>&1; then
27953 ac_cv_sys_catman_ext=0
27954else
27955 ac_cv_sys_catman_ext=number
27956fi
27957
27958fi
27959echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
27960echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
27961if test "$ac_cv_sys_catman_ext" = number; then
27962 CATMANEXT='$$section'
27963else
27964 CATMANEXT=0
27965fi
27966
27967
27968
27969
27970
27971# Check whether --with-readline or --without-readline was given.
27972if test "${with_readline+set}" = set; then
27973 withval="$with_readline"
27974
27975fi;
27976
27977# Check whether --with-readline-lib or --without-readline-lib was given.
27978if test "${with_readline_lib+set}" = set; then
27979 withval="$with_readline_lib"
27980 if test "$withval" = "yes" -o "$withval" = "no"; then
27981 { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
27982echo "$as_me: error: No argument for --with-readline-lib" >&2;}
27983 { (exit 1); exit 1; }; }
27984elif test "X$with_readline" = "X"; then
27985 with_readline=yes
27986fi
27987fi;
27988
27989# Check whether --with-readline-include or --without-readline-include was given.
27990if test "${with_readline_include+set}" = set; then
27991 withval="$with_readline_include"
27992 if test "$withval" = "yes" -o "$withval" = "no"; then
27993 { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
27994echo "$as_me: error: No argument for --with-readline-include" >&2;}
27995 { (exit 1); exit 1; }; }
27996elif test "X$with_readline" = "X"; then
27997 with_readline=yes
27998fi
27999fi;
28000
28001# Check whether --with-readline-config or --without-readline-config was given.
28002if test "${with_readline_config+set}" = set; then
28003 withval="$with_readline_config"
28004
28005fi;
28006
28007
28008
28009echo "$as_me:$LINENO: checking for readline" >&5
28010echo $ECHO_N "checking for readline... $ECHO_C" >&6
28011
28012case "$with_readline" in
28013yes|"") d='' ;;
28014no) d= ;;
28015*) d="$with_readline" ;;
28016esac
28017
28018header_dirs=
28019lib_dirs=
28020for i in $d; do
28021 if test "$with_readline_include" = ""; then
28022 if test -d "$i/include/readline"; then
28023 header_dirs="$header_dirs $i/include/readline"
28024 fi
28025 if test -d "$i/include"; then
28026 header_dirs="$header_dirs $i/include"
28027 fi
28028 fi
28029 if test "$with_readline_lib" = ""; then
28030 if test -d "$i/lib$abilibdirext"; then
28031 lib_dirs="$lib_dirs $i/lib$abilibdirext"
28032 fi
28033 fi
28034done
28035
28036if test "$with_readline_include"; then
28037 header_dirs="$with_readline_include $header_dirs"
28038fi
28039if test "$with_readline_lib"; then
28040 lib_dirs="$with_readline_lib $lib_dirs"
28041fi
28042
28043if test "$with_readline_config" = ""; then
28044 with_readline_config=''
28045fi
28046
28047readline_cflags=
28048readline_libs=
28049
28050case "$with_readline_config" in
28051yes|no|"")
28052 ;;
28053*)
28054 readline_cflags="`$with_readline_config --cflags 2>&1`"
28055 readline_libs="`$with_readline_config --libs 2>&1`"
28056 ;;
28057esac
28058
28059found=no
28060if test "$with_readline" != no; then
28061 save_CFLAGS="$CFLAGS"
28062 save_LIBS="$LIBS"
28063 if test "$readline_cflags" -a "$readline_libs"; then
28064 CFLAGS="$readline_cflags $save_CFLAGS"
28065 LIBS="$readline_libs $save_LIBS"
28066 cat >conftest.$ac_ext <<_ACEOF
28067#line $LINENO "configure"
28068#include "confdefs.h"
28069#include <stdio.h>
28070 #include <readline.h>
28071#ifdef F77_DUMMY_MAIN
28072# ifdef __cplusplus
28073 extern "C"
28074# endif
28075 int F77_DUMMY_MAIN() { return 1; }
28076#endif
28077int
28078main ()
28079{
28080
28081 ;
28082 return 0;
28083}
28084_ACEOF
28085rm -f conftest.$ac_objext conftest$ac_exeext
28086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28087 (eval $ac_link) 2>&5
28088 ac_status=$?
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } &&
28091 { ac_try='test -s conftest$ac_exeext'
28092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28093 (eval $ac_try) 2>&5
28094 ac_status=$?
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); }; }; then
28097
28098 INCLUDE_readline="$readline_cflags"
28099 LIB_readline="$readline_libs"
28100 echo "$as_me:$LINENO: result: from $with_readline_config" >&5
28101echo "${ECHO_T}from $with_readline_config" >&6
28102 found=yes
28103else
28104 echo "$as_me: failed program was:" >&5
28105cat conftest.$ac_ext >&5
28106fi
28107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28108 fi
28109 if test "$found" = no; then
28110 ires= lres=
28111 for i in $header_dirs; do
28112 CFLAGS="-I$i $save_CFLAGS"
28113 cat >conftest.$ac_ext <<_ACEOF
28114#line $LINENO "configure"
28115#include "confdefs.h"
28116#include <stdio.h>
28117 #include <readline.h>
28118#ifdef F77_DUMMY_MAIN
28119# ifdef __cplusplus
28120 extern "C"
28121# endif
28122 int F77_DUMMY_MAIN() { return 1; }
28123#endif
28124int
28125main ()
28126{
28127
28128 ;
28129 return 0;
28130}
28131_ACEOF
28132rm -f conftest.$ac_objext
28133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28134 (eval $ac_compile) 2>&5
28135 ac_status=$?
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } &&
28138 { ac_try='test -s conftest.$ac_objext'
28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140 (eval $ac_try) 2>&5
28141 ac_status=$?
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; }; then
28144 ires=$i;break
28145else
28146 echo "$as_me: failed program was:" >&5
28147cat conftest.$ac_ext >&5
28148fi
28149rm -f conftest.$ac_objext conftest.$ac_ext
28150 done
28151 for i in $lib_dirs; do
28152 LIBS="-L$i -lreadline $save_LIBS"
28153 cat >conftest.$ac_ext <<_ACEOF
28154#line $LINENO "configure"
28155#include "confdefs.h"
28156#include <stdio.h>
28157 #include <readline.h>
28158#ifdef F77_DUMMY_MAIN
28159# ifdef __cplusplus
28160 extern "C"
28161# endif
28162 int F77_DUMMY_MAIN() { return 1; }
28163#endif
28164int
28165main ()
28166{
28167
28168 ;
28169 return 0;
28170}
28171_ACEOF
28172rm -f conftest.$ac_objext conftest$ac_exeext
28173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28174 (eval $ac_link) 2>&5
28175 ac_status=$?
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); } &&
28178 { ac_try='test -s conftest$ac_exeext'
28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180 (eval $ac_try) 2>&5
28181 ac_status=$?
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
28184 lres=$i;break
28185else
28186 echo "$as_me: failed program was:" >&5
28187cat conftest.$ac_ext >&5
28188fi
28189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28190 done
28191 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
28192 INCLUDE_readline="-I$ires"
28193 LIB_readline="-L$lres -lreadline "
28194 found=yes
28195 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
28196echo "${ECHO_T}headers $ires, libraries $lres" >&6
28197 fi
28198 fi
28199 CFLAGS="$save_CFLAGS"
28200 LIBS="$save_LIBS"
28201fi
28202
28203if test "$found" = yes; then
28204
28205cat >>confdefs.h <<_ACEOF
28206#define READLINE 1
28207_ACEOF
28208
28209 with_readline=yes
28210else
28211 with_readline=no
28212 INCLUDE_readline=
28213 LIB_readline=
28214 echo "$as_me:$LINENO: result: no" >&5
28215echo "${ECHO_T}no" >&6
28216fi
28217
28218
28219
28220
28221
28222
28223
28224# Check whether --with-hesiod or --without-hesiod was given.
28225if test "${with_hesiod+set}" = set; then
28226 withval="$with_hesiod"
28227
28228fi;
28229
28230# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
28231if test "${with_hesiod_lib+set}" = set; then
28232 withval="$with_hesiod_lib"
28233 if test "$withval" = "yes" -o "$withval" = "no"; then
28234 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
28235echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
28236 { (exit 1); exit 1; }; }
28237elif test "X$with_hesiod" = "X"; then
28238 with_hesiod=yes
28239fi
28240fi;
28241
28242# Check whether --with-hesiod-include or --without-hesiod-include was given.
28243if test "${with_hesiod_include+set}" = set; then
28244 withval="$with_hesiod_include"
28245 if test "$withval" = "yes" -o "$withval" = "no"; then
28246 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
28247echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
28248 { (exit 1); exit 1; }; }
28249elif test "X$with_hesiod" = "X"; then
28250 with_hesiod=yes
28251fi
28252fi;
28253
28254# Check whether --with-hesiod-config or --without-hesiod-config was given.
28255if test "${with_hesiod_config+set}" = set; then
28256 withval="$with_hesiod_config"
28257
28258fi;
28259
28260
28261
28262echo "$as_me:$LINENO: checking for hesiod" >&5
28263echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
28264
28265case "$with_hesiod" in
28266yes|"") d='' ;;
28267no) d= ;;
28268*) d="$with_hesiod" ;;
28269esac
28270
28271header_dirs=
28272lib_dirs=
28273for i in $d; do
28274 if test "$with_hesiod_include" = ""; then
28275 if test -d "$i/include/hesiod"; then
28276 header_dirs="$header_dirs $i/include/hesiod"
28277 fi
28278 if test -d "$i/include"; then
28279 header_dirs="$header_dirs $i/include"
28280 fi
28281 fi
28282 if test "$with_hesiod_lib" = ""; then
28283 if test -d "$i/lib$abilibdirext"; then
28284 lib_dirs="$lib_dirs $i/lib$abilibdirext"
28285 fi
28286 fi
28287done
28288
28289if test "$with_hesiod_include"; then
28290 header_dirs="$with_hesiod_include $header_dirs"
28291fi
28292if test "$with_hesiod_lib"; then
28293 lib_dirs="$with_hesiod_lib $lib_dirs"
28294fi
28295
28296if test "$with_hesiod_config" = ""; then
28297 with_hesiod_config=''
28298fi
28299
28300hesiod_cflags=
28301hesiod_libs=
28302
28303case "$with_hesiod_config" in
28304yes|no|"")
28305 ;;
28306*)
28307 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
28308 hesiod_libs="`$with_hesiod_config --libs 2>&1`"
28309 ;;
28310esac
28311
28312found=no
28313if test "$with_hesiod" != no; then
28314 save_CFLAGS="$CFLAGS"
28315 save_LIBS="$LIBS"
28316 if test "$hesiod_cflags" -a "$hesiod_libs"; then
28317 CFLAGS="$hesiod_cflags $save_CFLAGS"
28318 LIBS="$hesiod_libs $save_LIBS"
28319 cat >conftest.$ac_ext <<_ACEOF
28320#line $LINENO "configure"
28321#include "confdefs.h"
28322#include <hesiod.h>
28323#ifdef F77_DUMMY_MAIN
28324# ifdef __cplusplus
28325 extern "C"
28326# endif
28327 int F77_DUMMY_MAIN() { return 1; }
28328#endif
28329int
28330main ()
28331{
28332
28333 ;
28334 return 0;
28335}
28336_ACEOF
28337rm -f conftest.$ac_objext conftest$ac_exeext
28338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28339 (eval $ac_link) 2>&5
28340 ac_status=$?
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } &&
28343 { ac_try='test -s conftest$ac_exeext'
28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345 (eval $ac_try) 2>&5
28346 ac_status=$?
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; }; then
28349
28350 INCLUDE_hesiod="$hesiod_cflags"
28351 LIB_hesiod="$hesiod_libs"
28352 echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
28353echo "${ECHO_T}from $with_hesiod_config" >&6
28354 found=yes
28355else
28356 echo "$as_me: failed program was:" >&5
28357cat conftest.$ac_ext >&5
28358fi
28359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28360 fi
28361 if test "$found" = no; then
28362 ires= lres=
28363 for i in $header_dirs; do
28364 CFLAGS="-I$i $save_CFLAGS"
28365 cat >conftest.$ac_ext <<_ACEOF
28366#line $LINENO "configure"
28367#include "confdefs.h"
28368#include <hesiod.h>
28369#ifdef F77_DUMMY_MAIN
28370# ifdef __cplusplus
28371 extern "C"
28372# endif
28373 int F77_DUMMY_MAIN() { return 1; }
28374#endif
28375int
28376main ()
28377{
28378
28379 ;
28380 return 0;
28381}
28382_ACEOF
28383rm -f conftest.$ac_objext
28384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28385 (eval $ac_compile) 2>&5
28386 ac_status=$?
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); } &&
28389 { ac_try='test -s conftest.$ac_objext'
28390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391 (eval $ac_try) 2>&5
28392 ac_status=$?
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); }; }; then
28395 ires=$i;break
28396else
28397 echo "$as_me: failed program was:" >&5
28398cat conftest.$ac_ext >&5
28399fi
28400rm -f conftest.$ac_objext conftest.$ac_ext
28401 done
28402 for i in $lib_dirs; do
28403 LIBS="-L$i -lhesiod $save_LIBS"
28404 cat >conftest.$ac_ext <<_ACEOF
28405#line $LINENO "configure"
28406#include "confdefs.h"
28407#include <hesiod.h>
28408#ifdef F77_DUMMY_MAIN
28409# ifdef __cplusplus
28410 extern "C"
28411# endif
28412 int F77_DUMMY_MAIN() { return 1; }
28413#endif
28414int
28415main ()
28416{
28417
28418 ;
28419 return 0;
28420}
28421_ACEOF
28422rm -f conftest.$ac_objext conftest$ac_exeext
28423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28424 (eval $ac_link) 2>&5
28425 ac_status=$?
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); } &&
28428 { ac_try='test -s conftest$ac_exeext'
28429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430 (eval $ac_try) 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 lres=$i;break
28435else
28436 echo "$as_me: failed program was:" >&5
28437cat conftest.$ac_ext >&5
28438fi
28439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28440 done
28441 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
28442 INCLUDE_hesiod="-I$ires"
28443 LIB_hesiod="-L$lres -lhesiod "
28444 found=yes
28445 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
28446echo "${ECHO_T}headers $ires, libraries $lres" >&6
28447 fi
28448 fi
28449 CFLAGS="$save_CFLAGS"
28450 LIBS="$save_LIBS"
28451fi
28452
28453if test "$found" = yes; then
28454
28455cat >>confdefs.h <<_ACEOF
28456#define HESIOD 1
28457_ACEOF
28458
28459 with_hesiod=yes
28460else
28461 with_hesiod=no
28462 INCLUDE_hesiod=
28463 LIB_hesiod=
28464 echo "$as_me:$LINENO: result: no" >&5
28465echo "${ECHO_T}no" >&6
28466fi
28467
28468
28469
28470
28471
28472
28473# Check whether --enable-bigendian or --disable-bigendian was given.
28474if test "${enable_bigendian+set}" = set; then
28475 enableval="$enable_bigendian"
28476 krb_cv_c_bigendian=yes
28477fi;
28478# Check whether --enable-littleendian or --disable-littleendian was given.
28479if test "${enable_littleendian+set}" = set; then
28480 enableval="$enable_littleendian"
28481 krb_cv_c_bigendian=no
28482fi;
28483echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
28484echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
28485if test "${krb_cv_c_bigendian_compile+set}" = set; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28487else
28488 cat >conftest.$ac_ext <<_ACEOF
28489#line $LINENO "configure"
28490#include "confdefs.h"
28491
28492#include <sys/types.h>
28493#include <sys/param.h>
28494#ifdef F77_DUMMY_MAIN
28495# ifdef __cplusplus
28496 extern "C"
28497# endif
28498 int F77_DUMMY_MAIN() { return 1; }
28499#endif
28500int
28501main ()
28502{
28503
28504#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
28505 bogus endian macros
28506#endif
28507 ;
28508 return 0;
28509}
28510_ACEOF
28511rm -f conftest.$ac_objext
28512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28513 (eval $ac_compile) 2>&5
28514 ac_status=$?
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); } &&
28517 { ac_try='test -s conftest.$ac_objext'
28518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28519 (eval $ac_try) 2>&5
28520 ac_status=$?
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); }; }; then
28523 krb_cv_c_bigendian_compile=yes
28524else
28525 echo "$as_me: failed program was:" >&5
28526cat conftest.$ac_ext >&5
28527krb_cv_c_bigendian_compile=no
28528fi
28529rm -f conftest.$ac_objext conftest.$ac_ext
28530fi
28531echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
28532echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
28533echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28534echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
28535if test "${krb_cv_c_bigendian+set}" = set; then
28536 echo $ECHO_N "(cached) $ECHO_C" >&6
28537else
28538
28539 if test "$krb_cv_c_bigendian_compile" = "yes"; then
28540 cat >conftest.$ac_ext <<_ACEOF
28541#line $LINENO "configure"
28542#include "confdefs.h"
28543
28544#include <sys/types.h>
28545#include <sys/param.h>
28546#ifdef F77_DUMMY_MAIN
28547# ifdef __cplusplus
28548 extern "C"
28549# endif
28550 int F77_DUMMY_MAIN() { return 1; }
28551#endif
28552int
28553main ()
28554{
28555
28556#if BYTE_ORDER != BIG_ENDIAN
28557 not big endian
28558#endif
28559 ;
28560 return 0;
28561}
28562_ACEOF
28563rm -f conftest.$ac_objext
28564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28565 (eval $ac_compile) 2>&5
28566 ac_status=$?
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); } &&
28569 { ac_try='test -s conftest.$ac_objext'
28570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28571 (eval $ac_try) 2>&5
28572 ac_status=$?
28573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574 (exit $ac_status); }; }; then
28575 krb_cv_c_bigendian=yes
28576else
28577 echo "$as_me: failed program was:" >&5
28578cat conftest.$ac_ext >&5
28579krb_cv_c_bigendian=no
28580fi
28581rm -f conftest.$ac_objext conftest.$ac_ext
28582 else
28583 if test "$cross_compiling" = yes; then
28584 { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
28585echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
28586 { (exit 1); exit 1; }; }
28587else
28588 cat >conftest.$ac_ext <<_ACEOF
28589#line $LINENO "configure"
28590#include "confdefs.h"
28591main () {
28592 /* Are we little or big endian? From Harbison&Steele. */
28593 union
28594 {
28595 long l;
28596 char c[sizeof (long)];
28597 } u;
28598 u.l = 1;
28599 exit (u.c[sizeof (long) - 1] == 1);
28600 }
28601_ACEOF
28602rm -f conftest$ac_exeext
28603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28604 (eval $ac_link) 2>&5
28605 ac_status=$?
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28610 ac_status=$?
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; }; then
28613 krb_cv_c_bigendian=no
28614else
28615 echo "$as_me: program exited with status $ac_status" >&5
28616echo "$as_me: failed program was:" >&5
28617cat conftest.$ac_ext >&5
28618( exit $ac_status )
28619krb_cv_c_bigendian=yes
28620fi
28621rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28622fi
28623 fi
28624
28625fi
28626echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
28627echo "${ECHO_T}$krb_cv_c_bigendian" >&6
28628if test "$krb_cv_c_bigendian" = "yes"; then
28629
28630cat >>confdefs.h <<\_ACEOF
28631#define WORDS_BIGENDIAN 1
28632_ACEOF
28633fi
28634if test "$krb_cv_c_bigendian_compile" = "yes"; then
28635
28636cat >>confdefs.h <<\_ACEOF
28637#define ENDIANESS_IN_SYS_PARAM_H 1
28638_ACEOF
28639fi
28640
28641
28642
28643echo "$as_me:$LINENO: checking for inline" >&5
28644echo $ECHO_N "checking for inline... $ECHO_C" >&6
28645if test "${ac_cv_c_inline+set}" = set; then
28646 echo $ECHO_N "(cached) $ECHO_C" >&6
28647else
28648 ac_cv_c_inline=no
28649for ac_kw in inline __inline__ __inline; do
28650 cat >conftest.$ac_ext <<_ACEOF
28651#line $LINENO "configure"
28652#include "confdefs.h"
28653#ifndef __cplusplus
28654static $ac_kw int static_foo () {return 0; }
28655$ac_kw int foo () {return 0; }
28656#endif
28657
28658_ACEOF
28659rm -f conftest.$ac_objext
28660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28661 (eval $ac_compile) 2>&5
28662 ac_status=$?
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); } &&
28665 { ac_try='test -s conftest.$ac_objext'
28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28668 ac_status=$?
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_cv_c_inline=$ac_kw; break
28672else
28673 echo "$as_me: failed program was:" >&5
28674cat conftest.$ac_ext >&5
28675fi
28676rm -f conftest.$ac_objext conftest.$ac_ext
28677done
28678
28679fi
28680echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
28681echo "${ECHO_T}$ac_cv_c_inline" >&6
28682case $ac_cv_c_inline in
28683 inline | yes) ;;
28684 no)
28685cat >>confdefs.h <<\_ACEOF
28686#define inline
28687_ACEOF
28688 ;;
28689 *) cat >>confdefs.h <<_ACEOF
28690#define inline $ac_cv_c_inline
28691_ACEOF
28692 ;;
28693esac
28694
28695
28696
28697
28698
28699
28700echo "$as_me:$LINENO: checking for dlopen" >&5
28701echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
28702if test "${ac_cv_funclib_dlopen+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28704else
28705
28706if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
28707 ac_save_LIBS="$LIBS"
28708 for ac_lib in "" dl; do
28709 case "$ac_lib" in
28710 "") ;;
28711 yes) ac_lib="" ;;
28712 no) continue ;;
28713 -l*) ;;
28714 *) ac_lib="-l$ac_lib" ;;
28715 esac
28716 LIBS=" $ac_lib $ac_save_LIBS"
28717 cat >conftest.$ac_ext <<_ACEOF
28718#line $LINENO "configure"
28719#include "confdefs.h"
28720
28721#ifdef F77_DUMMY_MAIN
28722# ifdef __cplusplus
28723 extern "C"
28724# endif
28725 int F77_DUMMY_MAIN() { return 1; }
28726#endif
28727int
28728main ()
28729{
28730dlopen()
28731 ;
28732 return 0;
28733}
28734_ACEOF
28735rm -f conftest.$ac_objext conftest$ac_exeext
28736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737 (eval $ac_link) 2>&5
28738 ac_status=$?
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } &&
28741 { ac_try='test -s conftest$ac_exeext'
28742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743 (eval $ac_try) 2>&5
28744 ac_status=$?
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); }; }; then
28747 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
28748else
28749 echo "$as_me: failed program was:" >&5
28750cat conftest.$ac_ext >&5
28751fi
28752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28753 done
28754 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
28755 LIBS="$ac_save_LIBS"
28756fi
28757
28758fi
28759
28760
28761eval "ac_res=\$ac_cv_funclib_dlopen"
28762
28763if false; then
28764
28765for ac_func in dlopen
28766do
28767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28768echo "$as_me:$LINENO: checking for $ac_func" >&5
28769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28770if eval "test \"\${$as_ac_var+set}\" = set"; then
28771 echo $ECHO_N "(cached) $ECHO_C" >&6
28772else
28773 cat >conftest.$ac_ext <<_ACEOF
28774#line $LINENO "configure"
28775#include "confdefs.h"
28776/* System header to define __stub macros and hopefully few prototypes,
28777 which can conflict with char $ac_func (); below. */
28778#include <assert.h>
28779/* Override any gcc2 internal prototype to avoid an error. */
28780#ifdef __cplusplus
28781extern "C"
28782#endif
28783/* We use char because int might match the return type of a gcc2
28784 builtin and then its argument prototype would still apply. */
28785char $ac_func ();
28786char (*f) ();
28787
28788#ifdef F77_DUMMY_MAIN
28789# ifdef __cplusplus
28790 extern "C"
28791# endif
28792 int F77_DUMMY_MAIN() { return 1; }
28793#endif
28794int
28795main ()
28796{
28797/* The GNU C library defines this for functions which it implements
28798 to always fail with ENOSYS. Some functions are actually named
28799 something starting with __ and the normal name is an alias. */
28800#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28801choke me
28802#else
28803f = $ac_func;
28804#endif
28805
28806 ;
28807 return 0;
28808}
28809_ACEOF
28810rm -f conftest.$ac_objext conftest$ac_exeext
28811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28812 (eval $ac_link) 2>&5
28813 ac_status=$?
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } &&
28816 { ac_try='test -s conftest$ac_exeext'
28817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818 (eval $ac_try) 2>&5
28819 ac_status=$?
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; }; then
28822 eval "$as_ac_var=yes"
28823else
28824 echo "$as_me: failed program was:" >&5
28825cat conftest.$ac_ext >&5
28826eval "$as_ac_var=no"
28827fi
28828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28829fi
28830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28832if test `eval echo '${'$as_ac_var'}'` = yes; then
28833 cat >>confdefs.h <<_ACEOF
28834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28835_ACEOF
28836
28837fi
28838done
28839
28840fi
28841# dlopen
28842eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28843eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28844eval "LIB_dlopen=$ac_res"
28845
28846case "$ac_res" in
28847 yes)
28848 eval "ac_cv_func_dlopen=yes"
28849 eval "LIB_dlopen="
28850 cat >>confdefs.h <<_ACEOF
28851#define $ac_tr_func 1
28852_ACEOF
28853
28854 echo "$as_me:$LINENO: result: yes" >&5
28855echo "${ECHO_T}yes" >&6
28856 ;;
28857 no)
28858 eval "ac_cv_func_dlopen=no"
28859 eval "LIB_dlopen="
28860 echo "$as_me:$LINENO: result: no" >&5
28861echo "${ECHO_T}no" >&6
28862 ;;
28863 *)
28864 eval "ac_cv_func_dlopen=yes"
28865 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28866 cat >>confdefs.h <<_ACEOF
28867#define $ac_tr_func 1
28868_ACEOF
28869
28870 cat >>confdefs.h <<_ACEOF
28871#define $ac_tr_lib 1
28872_ACEOF
28873
28874 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28875echo "${ECHO_T}yes, in $ac_res" >&6
28876 ;;
28877esac
28878
28879
28880
28881
28882if test "$ac_cv_funclib_dlopen" != no; then
28883 HAVE_DLOPEN_TRUE=
28884 HAVE_DLOPEN_FALSE='#'
28885else
28886 HAVE_DLOPEN_TRUE='#'
28887 HAVE_DLOPEN_FALSE=
28888fi
28889
28890
28891
28892
28893aix=no
28894case "$host" in
28895*-*-aix3*)
28896 aix=3
28897 ;;
28898*-*-aix4*|*-*-aix5*)
28899 aix=4
28900 ;;
28901esac
28902
28903
28904
28905if test "$aix" != no; then
28906 AIX_TRUE=
28907 AIX_FALSE='#'
28908else
28909 AIX_TRUE='#'
28910 AIX_FALSE=
28911fi
28912
28913
28914if test "$aix" = 4; then
28915 AIX4_TRUE=
28916 AIX4_FALSE='#'
28917else
28918 AIX4_TRUE='#'
28919 AIX4_FALSE=
28920fi
28921
28922
28923
28924# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
28925if test "${enable_dynamic_afs+set}" = set; then
28926 enableval="$enable_dynamic_afs"
28927
28928fi;
28929
28930if test "$aix" != no; then
28931 if test "$enable_dynamic_afs" != no; then
28932
28933 if test "$ac_cv_func_dlopen" = no; then
28934
28935
28936
28937echo "$as_me:$LINENO: checking for loadquery" >&5
28938echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
28939if test "${ac_cv_funclib_loadquery+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28941else
28942
28943if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
28944 ac_save_LIBS="$LIBS"
28945 for ac_lib in "" ld; do
28946 case "$ac_lib" in
28947 "") ;;
28948 yes) ac_lib="" ;;
28949 no) continue ;;
28950 -l*) ;;
28951 *) ac_lib="-l$ac_lib" ;;
28952 esac
28953 LIBS=" $ac_lib $ac_save_LIBS"
28954 cat >conftest.$ac_ext <<_ACEOF
28955#line $LINENO "configure"
28956#include "confdefs.h"
28957
28958#ifdef F77_DUMMY_MAIN
28959# ifdef __cplusplus
28960 extern "C"
28961# endif
28962 int F77_DUMMY_MAIN() { return 1; }
28963#endif
28964int
28965main ()
28966{
28967loadquery()
28968 ;
28969 return 0;
28970}
28971_ACEOF
28972rm -f conftest.$ac_objext conftest$ac_exeext
28973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28974 (eval $ac_link) 2>&5
28975 ac_status=$?
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); } &&
28978 { ac_try='test -s conftest$ac_exeext'
28979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28980 (eval $ac_try) 2>&5
28981 ac_status=$?
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); }; }; then
28984 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
28985else
28986 echo "$as_me: failed program was:" >&5
28987cat conftest.$ac_ext >&5
28988fi
28989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28990 done
28991 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
28992 LIBS="$ac_save_LIBS"
28993fi
28994
28995fi
28996
28997
28998eval "ac_res=\$ac_cv_funclib_loadquery"
28999
29000if false; then
29001
29002for ac_func in loadquery
29003do
29004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29005echo "$as_me:$LINENO: checking for $ac_func" >&5
29006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29007if eval "test \"\${$as_ac_var+set}\" = set"; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
29009else
29010 cat >conftest.$ac_ext <<_ACEOF
29011#line $LINENO "configure"
29012#include "confdefs.h"
29013/* System header to define __stub macros and hopefully few prototypes,
29014 which can conflict with char $ac_func (); below. */
29015#include <assert.h>
29016/* Override any gcc2 internal prototype to avoid an error. */
29017#ifdef __cplusplus
29018extern "C"
29019#endif
29020/* We use char because int might match the return type of a gcc2
29021 builtin and then its argument prototype would still apply. */
29022char $ac_func ();
29023char (*f) ();
29024
29025#ifdef F77_DUMMY_MAIN
29026# ifdef __cplusplus
29027 extern "C"
29028# endif
29029 int F77_DUMMY_MAIN() { return 1; }
29030#endif
29031int
29032main ()
29033{
29034/* The GNU C library defines this for functions which it implements
29035 to always fail with ENOSYS. Some functions are actually named
29036 something starting with __ and the normal name is an alias. */
29037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29038choke me
29039#else
29040f = $ac_func;
29041#endif
29042
29043 ;
29044 return 0;
29045}
29046_ACEOF
29047rm -f conftest.$ac_objext conftest$ac_exeext
29048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29049 (eval $ac_link) 2>&5
29050 ac_status=$?
29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); } &&
29053 { ac_try='test -s conftest$ac_exeext'
29054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055 (eval $ac_try) 2>&5
29056 ac_status=$?
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; }; then
29059 eval "$as_ac_var=yes"
29060else
29061 echo "$as_me: failed program was:" >&5
29062cat conftest.$ac_ext >&5
29063eval "$as_ac_var=no"
29064fi
29065rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29066fi
29067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29069if test `eval echo '${'$as_ac_var'}'` = yes; then
29070 cat >>confdefs.h <<_ACEOF
29071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29072_ACEOF
29073
29074fi
29075done
29076
29077fi
29078# loadquery
29079eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29080eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29081eval "LIB_loadquery=$ac_res"
29082
29083case "$ac_res" in
29084 yes)
29085 eval "ac_cv_func_loadquery=yes"
29086 eval "LIB_loadquery="
29087 cat >>confdefs.h <<_ACEOF
29088#define $ac_tr_func 1
29089_ACEOF
29090
29091 echo "$as_me:$LINENO: result: yes" >&5
29092echo "${ECHO_T}yes" >&6
29093 ;;
29094 no)
29095 eval "ac_cv_func_loadquery=no"
29096 eval "LIB_loadquery="
29097 echo "$as_me:$LINENO: result: no" >&5
29098echo "${ECHO_T}no" >&6
29099 ;;
29100 *)
29101 eval "ac_cv_func_loadquery=yes"
29102 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29103 cat >>confdefs.h <<_ACEOF
29104#define $ac_tr_func 1
29105_ACEOF
29106
29107 cat >>confdefs.h <<_ACEOF
29108#define $ac_tr_lib 1
29109_ACEOF
29110
29111 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29112echo "${ECHO_T}yes, in $ac_res" >&6
29113 ;;
29114esac
29115
29116
29117 fi
29118 if test "$ac_cv_func_dlopen" != no; then
29119 AIX_EXTRA_KAFS='$(LIB_dlopen)'
29120 elif test "$ac_cv_func_loadquery" != no; then
29121 AIX_EXTRA_KAFS='$(LIB_loadquery)'
29122 else
29123 { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
29124echo "$as_me: not using dynloaded AFS library" >&6;}
29125 AIX_EXTRA_KAFS=
29126 enable_dynamic_afs=no
29127 fi
29128 else
29129 AIX_EXTRA_KAFS=
29130 fi
29131fi
29132
29133
29134
29135if test "$enable_dynamic_afs" != no; then
29136 AIX_DYNAMIC_AFS_TRUE=
29137 AIX_DYNAMIC_AFS_FALSE='#'
29138else
29139 AIX_DYNAMIC_AFS_TRUE='#'
29140 AIX_DYNAMIC_AFS_FALSE=
29141fi
29142
29143
29144
29145
29146
29147
29148irix=no
29149case "$host" in
29150*-*-irix4*)
29151
29152cat >>confdefs.h <<\_ACEOF
29153#define IRIX4 1
29154_ACEOF
29155
29156 irix=yes
29157 ;;
29158*-*-irix*)
29159 irix=yes
29160 ;;
29161esac
29162
29163
29164if test "$irix" != no; then
29165 IRIX_TRUE=
29166 IRIX_FALSE='#'
29167else
29168 IRIX_TRUE='#'
29169 IRIX_FALSE=
29170fi
29171
29172
29173
29174
29175
29176sunos=no
29177case "$host" in
29178*-*-sunos4*)
29179 sunos=40
29180 ;;
29181*-*-solaris2.7)
29182 sunos=57
29183 ;;
29184*-*-solaris2.[89])
29185 sunos=58
29186 ;;
29187*-*-solaris2*)
29188 sunos=50
29189 ;;
29190esac
29191if test "$sunos" != no; then
29192
29193cat >>confdefs.h <<_ACEOF
29194#define SunOS $sunos
29195_ACEOF
29196
29197fi
29198
29199
29200echo "$as_me:$LINENO: checking for X" >&5
29201echo $ECHO_N "checking for X... $ECHO_C" >&6
29202
29203
29204# Check whether --with-x or --without-x was given.
29205if test "${with_x+set}" = set; then
29206 withval="$with_x"
29207
29208fi;
29209# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29210if test "x$with_x" = xno; then
29211 # The user explicitly disabled X.
29212 have_x=disabled
29213else
29214 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29215 # Both variables are already set.
29216 have_x=yes
29217 else
29218 if test "${ac_cv_have_x+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29220else
29221 # One or both of the vars are not set, and there is no cached value.
29222ac_x_includes=no ac_x_libraries=no
29223rm -fr conftest.dir
29224if mkdir conftest.dir; then
29225 cd conftest.dir
29226 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29227 cat >Imakefile <<'_ACEOF'
29228acfindx:
29229 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29230_ACEOF
29231 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29233 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29234 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29235 for ac_extension in a so sl; do
29236 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29237 test -f $ac_im_libdir/libX11.$ac_extension; then
29238 ac_im_usrlibdir=$ac_im_libdir; break
29239 fi
29240 done
29241 # Screen out bogus values from the imake configuration. They are
29242 # bogus both because they are the default anyway, and because
29243 # using them would break gcc on systems where it needs fixed includes.
29244 case $ac_im_incroot in
29245 /usr/include) ;;
29246 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29247 esac
29248 case $ac_im_usrlibdir in
29249 /usr/lib | /lib) ;;
29250 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29251 esac
29252 fi
29253 cd ..
29254 rm -fr conftest.dir
29255fi
29256
29257# Standard set of common directories for X headers.
29258# Check X11 before X11Rn because it is often a symlink to the current release.
29259ac_x_header_dirs='
29260/usr/X11/include
29261/usr/X11R6/include
29262/usr/X11R5/include
29263/usr/X11R4/include
29264
29265/usr/include/X11
29266/usr/include/X11R6
29267/usr/include/X11R5
29268/usr/include/X11R4
29269
29270/usr/local/X11/include
29271/usr/local/X11R6/include
29272/usr/local/X11R5/include
29273/usr/local/X11R4/include
29274
29275/usr/local/include/X11
29276/usr/local/include/X11R6
29277/usr/local/include/X11R5
29278/usr/local/include/X11R4
29279
29280/usr/X386/include
29281/usr/x386/include
29282/usr/XFree86/include/X11
29283
29284/usr/include
29285/usr/local/include
29286/usr/unsupported/include
29287/usr/athena/include
29288/usr/local/x11r5/include
29289/usr/lpp/Xamples/include
29290
29291/usr/openwin/include
29292/usr/openwin/share/include'
29293
29294if test "$ac_x_includes" = no; then
29295 # Guess where to find include files, by looking for Intrinsic.h.
29296 # First, try using that file with no special directory specified.
29297 cat >conftest.$ac_ext <<_ACEOF
29298#line $LINENO "configure"
29299#include "confdefs.h"
29300#include <X11/Intrinsic.h>
29301_ACEOF
29302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29304 ac_status=$?
29305 egrep -v '^ *\+' conftest.er1 >conftest.err
29306 rm -f conftest.er1
29307 cat conftest.err >&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); } >/dev/null; then
29310 if test -s conftest.err; then
29311 ac_cpp_err=$ac_c_preproc_warn_flag
29312 else
29313 ac_cpp_err=
29314 fi
29315else
29316 ac_cpp_err=yes
29317fi
29318if test -z "$ac_cpp_err"; then
29319 # We can compile using X headers with no special include directory.
29320ac_x_includes=
29321else
29322 echo "$as_me: failed program was:" >&5
29323 cat conftest.$ac_ext >&5
29324 for ac_dir in $ac_x_header_dirs; do
29325 if test -r "$ac_dir/X11/Intrinsic.h"; then
29326 ac_x_includes=$ac_dir
29327 break
29328 fi
29329done
29330fi
29331rm -f conftest.err conftest.$ac_ext
29332fi # $ac_x_includes = no
29333
29334if test "$ac_x_libraries" = no; then
29335 # Check for the libraries.
29336 # See if we find them without any special options.
29337 # Don't add to $LIBS permanently.
29338 ac_save_LIBS=$LIBS
29339 LIBS="-lXt $LIBS"
29340 cat >conftest.$ac_ext <<_ACEOF
29341#line $LINENO "configure"
29342#include "confdefs.h"
29343#include <X11/Intrinsic.h>
29344#ifdef F77_DUMMY_MAIN
29345# ifdef __cplusplus
29346 extern "C"
29347# endif
29348 int F77_DUMMY_MAIN() { return 1; }
29349#endif
29350int
29351main ()
29352{
29353XtMalloc (0)
29354 ;
29355 return 0;
29356}
29357_ACEOF
29358rm -f conftest.$ac_objext conftest$ac_exeext
29359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29360 (eval $ac_link) 2>&5
29361 ac_status=$?
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } &&
29364 { ac_try='test -s conftest$ac_exeext'
29365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29366 (eval $ac_try) 2>&5
29367 ac_status=$?
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); }; }; then
29370 LIBS=$ac_save_LIBS
29371# We can link X programs with no special library path.
29372ac_x_libraries=
29373else
29374 echo "$as_me: failed program was:" >&5
29375cat conftest.$ac_ext >&5
29376LIBS=$ac_save_LIBS
29377for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29378do
29379 # Don't even attempt the hair of trying to link an X program!
29380 for ac_extension in a so sl; do
29381 if test -r $ac_dir/libXt.$ac_extension; then
29382 ac_x_libraries=$ac_dir
29383 break 2
29384 fi
29385 done
29386done
29387fi
29388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29389fi # $ac_x_libraries = no
29390
29391if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29392 # Didn't find X anywhere. Cache the known absence of X.
29393 ac_cv_have_x="have_x=no"
29394else
29395 # Record where we found X for the cache.
29396 ac_cv_have_x="have_x=yes \
29397 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29398fi
29399fi
29400
29401 fi
29402 eval "$ac_cv_have_x"
29403fi # $with_x != no
29404
29405if test "$have_x" != yes; then
29406 echo "$as_me:$LINENO: result: $have_x" >&5
29407echo "${ECHO_T}$have_x" >&6
29408 no_x=yes
29409else
29410 # If each of the values was on the command line, it overrides each guess.
29411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29413 # Update the cache value to reflect the command line values.
29414 ac_cv_have_x="have_x=yes \
29415 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29416 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29417echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
29418fi
29419
29420
29421if test "$no_x" = yes; then
29422 # Not all programs may use this symbol, but it does not hurt to define it.
29423
29424cat >>confdefs.h <<\_ACEOF
29425#define X_DISPLAY_MISSING 1
29426_ACEOF
29427
29428 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29429else
29430 if test -n "$x_includes"; then
29431 X_CFLAGS="$X_CFLAGS -I$x_includes"
29432 fi
29433
29434 # It would also be nice to do this for all -L options, not just this one.
29435 if test -n "$x_libraries"; then
29436 X_LIBS="$X_LIBS -L$x_libraries"
29437 # For Solaris; some versions of Sun CC require a space after -R and
29438 # others require no space. Words are not sufficient . . . .
29439 case `(uname -sr) 2>/dev/null` in
29440 "SunOS 5"*)
29441 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29442echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29443 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29444 cat >conftest.$ac_ext <<_ACEOF
29445#line $LINENO "configure"
29446#include "confdefs.h"
29447
29448#ifdef F77_DUMMY_MAIN
29449# ifdef __cplusplus
29450 extern "C"
29451# endif
29452 int F77_DUMMY_MAIN() { return 1; }
29453#endif
29454int
29455main ()
29456{
29457
29458 ;
29459 return 0;
29460}
29461_ACEOF
29462rm -f conftest.$ac_objext conftest$ac_exeext
29463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29464 (eval $ac_link) 2>&5
29465 ac_status=$?
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); } &&
29468 { ac_try='test -s conftest$ac_exeext'
29469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29471 ac_status=$?
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; }; then
29474 ac_R_nospace=yes
29475else
29476 echo "$as_me: failed program was:" >&5
29477cat conftest.$ac_ext >&5
29478ac_R_nospace=no
29479fi
29480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29481 if test $ac_R_nospace = yes; then
29482 echo "$as_me:$LINENO: result: no" >&5
29483echo "${ECHO_T}no" >&6
29484 X_LIBS="$X_LIBS -R$x_libraries"
29485 else
29486 LIBS="$ac_xsave_LIBS -R $x_libraries"
29487 cat >conftest.$ac_ext <<_ACEOF
29488#line $LINENO "configure"
29489#include "confdefs.h"
29490
29491#ifdef F77_DUMMY_MAIN
29492# ifdef __cplusplus
29493 extern "C"
29494# endif
29495 int F77_DUMMY_MAIN() { return 1; }
29496#endif
29497int
29498main ()
29499{
29500
29501 ;
29502 return 0;
29503}
29504_ACEOF
29505rm -f conftest.$ac_objext conftest$ac_exeext
29506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29507 (eval $ac_link) 2>&5
29508 ac_status=$?
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); } &&
29511 { ac_try='test -s conftest$ac_exeext'
29512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513 (eval $ac_try) 2>&5
29514 ac_status=$?
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; }; then
29517 ac_R_space=yes
29518else
29519 echo "$as_me: failed program was:" >&5
29520cat conftest.$ac_ext >&5
29521ac_R_space=no
29522fi
29523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29524 if test $ac_R_space = yes; then
29525 echo "$as_me:$LINENO: result: yes" >&5
29526echo "${ECHO_T}yes" >&6
29527 X_LIBS="$X_LIBS -R $x_libraries"
29528 else
29529 echo "$as_me:$LINENO: result: neither works" >&5
29530echo "${ECHO_T}neither works" >&6
29531 fi
29532 fi
29533 LIBS=$ac_xsave_LIBS
29534 esac
29535 fi
29536
29537 # Check for system-dependent libraries X programs must link with.
29538 # Do this before checking for the system-independent R6 libraries
29539 # (-lICE), since we may need -lsocket or whatever for X linking.
29540
29541 if test "$ISC" = yes; then
29542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29543 else
29544 # Martyn Johnson says this is needed for Ultrix, if the X
29545 # libraries were built with DECnet support. And Karl Berry says
29546 # the Alpha needs dnet_stub (dnet does not exist).
29547 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29548 cat >conftest.$ac_ext <<_ACEOF
29549#line $LINENO "configure"
29550#include "confdefs.h"
29551
29552/* Override any gcc2 internal prototype to avoid an error. */
29553#ifdef __cplusplus
29554extern "C"
29555#endif
29556/* We use char because int might match the return type of a gcc2
29557 builtin and then its argument prototype would still apply. */
29558char XOpenDisplay ();
29559#ifdef F77_DUMMY_MAIN
29560# ifdef __cplusplus
29561 extern "C"
29562# endif
29563 int F77_DUMMY_MAIN() { return 1; }
29564#endif
29565int
29566main ()
29567{
29568XOpenDisplay ();
29569 ;
29570 return 0;
29571}
29572_ACEOF
29573rm -f conftest.$ac_objext conftest$ac_exeext
29574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29575 (eval $ac_link) 2>&5
29576 ac_status=$?
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); } &&
29579 { ac_try='test -s conftest$ac_exeext'
29580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581 (eval $ac_try) 2>&5
29582 ac_status=$?
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; }; then
29585 :
29586else
29587 echo "$as_me: failed program was:" >&5
29588cat conftest.$ac_ext >&5
29589echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29590echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29591if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29592 echo $ECHO_N "(cached) $ECHO_C" >&6
29593else
29594 ac_check_lib_save_LIBS=$LIBS
29595LIBS="-ldnet $LIBS"
29596cat >conftest.$ac_ext <<_ACEOF
29597#line $LINENO "configure"
29598#include "confdefs.h"
29599
29600/* Override any gcc2 internal prototype to avoid an error. */
29601#ifdef __cplusplus
29602extern "C"
29603#endif
29604/* We use char because int might match the return type of a gcc2
29605 builtin and then its argument prototype would still apply. */
29606char dnet_ntoa ();
29607#ifdef F77_DUMMY_MAIN
29608# ifdef __cplusplus
29609 extern "C"
29610# endif
29611 int F77_DUMMY_MAIN() { return 1; }
29612#endif
29613int
29614main ()
29615{
29616dnet_ntoa ();
29617 ;
29618 return 0;
29619}
29620_ACEOF
29621rm -f conftest.$ac_objext conftest$ac_exeext
29622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29623 (eval $ac_link) 2>&5
29624 ac_status=$?
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } &&
29627 { ac_try='test -s conftest$ac_exeext'
29628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629 (eval $ac_try) 2>&5
29630 ac_status=$?
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); }; }; then
29633 ac_cv_lib_dnet_dnet_ntoa=yes
29634else
29635 echo "$as_me: failed program was:" >&5
29636cat conftest.$ac_ext >&5
29637ac_cv_lib_dnet_dnet_ntoa=no
29638fi
29639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29640LIBS=$ac_check_lib_save_LIBS
29641fi
29642echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29643echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29644if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29645 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29646fi
29647
29648 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29649 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29650echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29651if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29652 echo $ECHO_N "(cached) $ECHO_C" >&6
29653else
29654 ac_check_lib_save_LIBS=$LIBS
29655LIBS="-ldnet_stub $LIBS"
29656cat >conftest.$ac_ext <<_ACEOF
29657#line $LINENO "configure"
29658#include "confdefs.h"
29659
29660/* Override any gcc2 internal prototype to avoid an error. */
29661#ifdef __cplusplus
29662extern "C"
29663#endif
29664/* We use char because int might match the return type of a gcc2
29665 builtin and then its argument prototype would still apply. */
29666char dnet_ntoa ();
29667#ifdef F77_DUMMY_MAIN
29668# ifdef __cplusplus
29669 extern "C"
29670# endif
29671 int F77_DUMMY_MAIN() { return 1; }
29672#endif
29673int
29674main ()
29675{
29676dnet_ntoa ();
29677 ;
29678 return 0;
29679}
29680_ACEOF
29681rm -f conftest.$ac_objext conftest$ac_exeext
29682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29683 (eval $ac_link) 2>&5
29684 ac_status=$?
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } &&
29687 { ac_try='test -s conftest$ac_exeext'
29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689 (eval $ac_try) 2>&5
29690 ac_status=$?
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; }; then
29693 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29694else
29695 echo "$as_me: failed program was:" >&5
29696cat conftest.$ac_ext >&5
29697ac_cv_lib_dnet_stub_dnet_ntoa=no
29698fi
29699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29700LIBS=$ac_check_lib_save_LIBS
29701fi
29702echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29703echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29704if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29705 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29706fi
29707
29708 fi
29709fi
29710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29711 LIBS="$ac_xsave_LIBS"
29712
29713 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29714 # to get the SysV transport functions.
29715 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29716 # needs -lnsl.
29717 # The nsl library prevents programs from opening the X display
29718 # on Irix 5.2, according to T.E. Dickey.
29719 # The functions gethostbyname, getservbyname, and inet_addr are
29720 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29721 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29722echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29723if test "${ac_cv_func_gethostbyname+set}" = set; then
29724 echo $ECHO_N "(cached) $ECHO_C" >&6
29725else
29726 cat >conftest.$ac_ext <<_ACEOF
29727#line $LINENO "configure"
29728#include "confdefs.h"
29729/* System header to define __stub macros and hopefully few prototypes,
29730 which can conflict with char gethostbyname (); below. */
29731#include <assert.h>
29732/* Override any gcc2 internal prototype to avoid an error. */
29733#ifdef __cplusplus
29734extern "C"
29735#endif
29736/* We use char because int might match the return type of a gcc2
29737 builtin and then its argument prototype would still apply. */
29738char gethostbyname ();
29739char (*f) ();
29740
29741#ifdef F77_DUMMY_MAIN
29742# ifdef __cplusplus
29743 extern "C"
29744# endif
29745 int F77_DUMMY_MAIN() { return 1; }
29746#endif
29747int
29748main ()
29749{
29750/* The GNU C library defines this for functions which it implements
29751 to always fail with ENOSYS. Some functions are actually named
29752 something starting with __ and the normal name is an alias. */
29753#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29754choke me
29755#else
29756f = gethostbyname;
29757#endif
29758
29759 ;
29760 return 0;
29761}
29762_ACEOF
29763rm -f conftest.$ac_objext conftest$ac_exeext
29764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29765 (eval $ac_link) 2>&5
29766 ac_status=$?
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); } &&
29769 { ac_try='test -s conftest$ac_exeext'
29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29772 ac_status=$?
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; }; then
29775 ac_cv_func_gethostbyname=yes
29776else
29777 echo "$as_me: failed program was:" >&5
29778cat conftest.$ac_ext >&5
29779ac_cv_func_gethostbyname=no
29780fi
29781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29782fi
29783echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29784echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29785
29786 if test $ac_cv_func_gethostbyname = no; then
29787 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29788echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29789if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29791else
29792 ac_check_lib_save_LIBS=$LIBS
29793LIBS="-lnsl $LIBS"
29794cat >conftest.$ac_ext <<_ACEOF
29795#line $LINENO "configure"
29796#include "confdefs.h"
29797
29798/* Override any gcc2 internal prototype to avoid an error. */
29799#ifdef __cplusplus
29800extern "C"
29801#endif
29802/* We use char because int might match the return type of a gcc2
29803 builtin and then its argument prototype would still apply. */
29804char gethostbyname ();
29805#ifdef F77_DUMMY_MAIN
29806# ifdef __cplusplus
29807 extern "C"
29808# endif
29809 int F77_DUMMY_MAIN() { return 1; }
29810#endif
29811int
29812main ()
29813{
29814gethostbyname ();
29815 ;
29816 return 0;
29817}
29818_ACEOF
29819rm -f conftest.$ac_objext conftest$ac_exeext
29820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29821 (eval $ac_link) 2>&5
29822 ac_status=$?
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
29825 { ac_try='test -s conftest$ac_exeext'
29826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827 (eval $ac_try) 2>&5
29828 ac_status=$?
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; }; then
29831 ac_cv_lib_nsl_gethostbyname=yes
29832else
29833 echo "$as_me: failed program was:" >&5
29834cat conftest.$ac_ext >&5
29835ac_cv_lib_nsl_gethostbyname=no
29836fi
29837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29838LIBS=$ac_check_lib_save_LIBS
29839fi
29840echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29841echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29842if test $ac_cv_lib_nsl_gethostbyname = yes; then
29843 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29844fi
29845
29846 if test $ac_cv_lib_nsl_gethostbyname = no; then
29847 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29848echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29849if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29850 echo $ECHO_N "(cached) $ECHO_C" >&6
29851else
29852 ac_check_lib_save_LIBS=$LIBS
29853LIBS="-lbsd $LIBS"
29854cat >conftest.$ac_ext <<_ACEOF
29855#line $LINENO "configure"
29856#include "confdefs.h"
29857
29858/* Override any gcc2 internal prototype to avoid an error. */
29859#ifdef __cplusplus
29860extern "C"
29861#endif
29862/* We use char because int might match the return type of a gcc2
29863 builtin and then its argument prototype would still apply. */
29864char gethostbyname ();
29865#ifdef F77_DUMMY_MAIN
29866# ifdef __cplusplus
29867 extern "C"
29868# endif
29869 int F77_DUMMY_MAIN() { return 1; }
29870#endif
29871int
29872main ()
29873{
29874gethostbyname ();
29875 ;
29876 return 0;
29877}
29878_ACEOF
29879rm -f conftest.$ac_objext conftest$ac_exeext
29880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29881 (eval $ac_link) 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } &&
29885 { ac_try='test -s conftest$ac_exeext'
29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
29888 ac_status=$?
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; }; then
29891 ac_cv_lib_bsd_gethostbyname=yes
29892else
29893 echo "$as_me: failed program was:" >&5
29894cat conftest.$ac_ext >&5
29895ac_cv_lib_bsd_gethostbyname=no
29896fi
29897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29898LIBS=$ac_check_lib_save_LIBS
29899fi
29900echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29901echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29902if test $ac_cv_lib_bsd_gethostbyname = yes; then
29903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29904fi
29905
29906 fi
29907 fi
29908
29909 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29910 # socket/setsockopt and other routines are undefined under SCO ODT
29911 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29912 # on later versions), says Simon Leinen: it contains gethostby*
29913 # variants that don't use the nameserver (or something). -lsocket
29914 # must be given before -lnsl if both are needed. We assume that
29915 # if connect needs -lnsl, so does gethostbyname.
29916 echo "$as_me:$LINENO: checking for connect" >&5
29917echo $ECHO_N "checking for connect... $ECHO_C" >&6
29918if test "${ac_cv_func_connect+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29920else
29921 cat >conftest.$ac_ext <<_ACEOF
29922#line $LINENO "configure"
29923#include "confdefs.h"
29924/* System header to define __stub macros and hopefully few prototypes,
29925 which can conflict with char connect (); below. */
29926#include <assert.h>
29927/* Override any gcc2 internal prototype to avoid an error. */
29928#ifdef __cplusplus
29929extern "C"
29930#endif
29931/* We use char because int might match the return type of a gcc2
29932 builtin and then its argument prototype would still apply. */
29933char connect ();
29934char (*f) ();
29935
29936#ifdef F77_DUMMY_MAIN
29937# ifdef __cplusplus
29938 extern "C"
29939# endif
29940 int F77_DUMMY_MAIN() { return 1; }
29941#endif
29942int
29943main ()
29944{
29945/* The GNU C library defines this for functions which it implements
29946 to always fail with ENOSYS. Some functions are actually named
29947 something starting with __ and the normal name is an alias. */
29948#if defined (__stub_connect) || defined (__stub___connect)
29949choke me
29950#else
29951f = connect;
29952#endif
29953
29954 ;
29955 return 0;
29956}
29957_ACEOF
29958rm -f conftest.$ac_objext conftest$ac_exeext
29959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29960 (eval $ac_link) 2>&5
29961 ac_status=$?
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); } &&
29964 { ac_try='test -s conftest$ac_exeext'
29965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966 (eval $ac_try) 2>&5
29967 ac_status=$?
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); }; }; then
29970 ac_cv_func_connect=yes
29971else
29972 echo "$as_me: failed program was:" >&5
29973cat conftest.$ac_ext >&5
29974ac_cv_func_connect=no
29975fi
29976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29977fi
29978echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29979echo "${ECHO_T}$ac_cv_func_connect" >&6
29980
29981 if test $ac_cv_func_connect = no; then
29982 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29983echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29984if test "${ac_cv_lib_socket_connect+set}" = set; then
29985 echo $ECHO_N "(cached) $ECHO_C" >&6
29986else
29987 ac_check_lib_save_LIBS=$LIBS
29988LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29989cat >conftest.$ac_ext <<_ACEOF
29990#line $LINENO "configure"
29991#include "confdefs.h"
29992
29993/* Override any gcc2 internal prototype to avoid an error. */
29994#ifdef __cplusplus
29995extern "C"
29996#endif
29997/* We use char because int might match the return type of a gcc2
29998 builtin and then its argument prototype would still apply. */
29999char connect ();
30000#ifdef F77_DUMMY_MAIN
30001# ifdef __cplusplus
30002 extern "C"
30003# endif
30004 int F77_DUMMY_MAIN() { return 1; }
30005#endif
30006int
30007main ()
30008{
30009connect ();
30010 ;
30011 return 0;
30012}
30013_ACEOF
30014rm -f conftest.$ac_objext conftest$ac_exeext
30015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30016 (eval $ac_link) 2>&5
30017 ac_status=$?
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } &&
30020 { ac_try='test -s conftest$ac_exeext'
30021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30022 (eval $ac_try) 2>&5
30023 ac_status=$?
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); }; }; then
30026 ac_cv_lib_socket_connect=yes
30027else
30028 echo "$as_me: failed program was:" >&5
30029cat conftest.$ac_ext >&5
30030ac_cv_lib_socket_connect=no
30031fi
30032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30033LIBS=$ac_check_lib_save_LIBS
30034fi
30035echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30036echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30037if test $ac_cv_lib_socket_connect = yes; then
30038 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30039fi
30040
30041 fi
30042
30043 # Guillermo Gomez says -lposix is necessary on A/UX.
30044 echo "$as_me:$LINENO: checking for remove" >&5
30045echo $ECHO_N "checking for remove... $ECHO_C" >&6
30046if test "${ac_cv_func_remove+set}" = set; then
30047 echo $ECHO_N "(cached) $ECHO_C" >&6
30048else
30049 cat >conftest.$ac_ext <<_ACEOF
30050#line $LINENO "configure"
30051#include "confdefs.h"
30052/* System header to define __stub macros and hopefully few prototypes,
30053 which can conflict with char remove (); below. */
30054#include <assert.h>
30055/* Override any gcc2 internal prototype to avoid an error. */
30056#ifdef __cplusplus
30057extern "C"
30058#endif
30059/* We use char because int might match the return type of a gcc2
30060 builtin and then its argument prototype would still apply. */
30061char remove ();
30062char (*f) ();
30063
30064#ifdef F77_DUMMY_MAIN
30065# ifdef __cplusplus
30066 extern "C"
30067# endif
30068 int F77_DUMMY_MAIN() { return 1; }
30069#endif
30070int
30071main ()
30072{
30073/* The GNU C library defines this for functions which it implements
30074 to always fail with ENOSYS. Some functions are actually named
30075 something starting with __ and the normal name is an alias. */
30076#if defined (__stub_remove) || defined (__stub___remove)
30077choke me
30078#else
30079f = remove;
30080#endif
30081
30082 ;
30083 return 0;
30084}
30085_ACEOF
30086rm -f conftest.$ac_objext conftest$ac_exeext
30087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30088 (eval $ac_link) 2>&5
30089 ac_status=$?
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); } &&
30092 { ac_try='test -s conftest$ac_exeext'
30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094 (eval $ac_try) 2>&5
30095 ac_status=$?
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
30098 ac_cv_func_remove=yes
30099else
30100 echo "$as_me: failed program was:" >&5
30101cat conftest.$ac_ext >&5
30102ac_cv_func_remove=no
30103fi
30104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30105fi
30106echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30107echo "${ECHO_T}$ac_cv_func_remove" >&6
30108
30109 if test $ac_cv_func_remove = no; then
30110 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30111echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30112if test "${ac_cv_lib_posix_remove+set}" = set; then
30113 echo $ECHO_N "(cached) $ECHO_C" >&6
30114else
30115 ac_check_lib_save_LIBS=$LIBS
30116LIBS="-lposix $LIBS"
30117cat >conftest.$ac_ext <<_ACEOF
30118#line $LINENO "configure"
30119#include "confdefs.h"
30120
30121/* Override any gcc2 internal prototype to avoid an error. */
30122#ifdef __cplusplus
30123extern "C"
30124#endif
30125/* We use char because int might match the return type of a gcc2
30126 builtin and then its argument prototype would still apply. */
30127char remove ();
30128#ifdef F77_DUMMY_MAIN
30129# ifdef __cplusplus
30130 extern "C"
30131# endif
30132 int F77_DUMMY_MAIN() { return 1; }
30133#endif
30134int
30135main ()
30136{
30137remove ();
30138 ;
30139 return 0;
30140}
30141_ACEOF
30142rm -f conftest.$ac_objext conftest$ac_exeext
30143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30144 (eval $ac_link) 2>&5
30145 ac_status=$?
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); } &&
30148 { ac_try='test -s conftest$ac_exeext'
30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30151 ac_status=$?
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; }; then
30154 ac_cv_lib_posix_remove=yes
30155else
30156 echo "$as_me: failed program was:" >&5
30157cat conftest.$ac_ext >&5
30158ac_cv_lib_posix_remove=no
30159fi
30160rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30161LIBS=$ac_check_lib_save_LIBS
30162fi
30163echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30164echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30165if test $ac_cv_lib_posix_remove = yes; then
30166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30167fi
30168
30169 fi
30170
30171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30172 echo "$as_me:$LINENO: checking for shmat" >&5
30173echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30174if test "${ac_cv_func_shmat+set}" = set; then
30175 echo $ECHO_N "(cached) $ECHO_C" >&6
30176else
30177 cat >conftest.$ac_ext <<_ACEOF
30178#line $LINENO "configure"
30179#include "confdefs.h"
30180/* System header to define __stub macros and hopefully few prototypes,
30181 which can conflict with char shmat (); below. */
30182#include <assert.h>
30183/* Override any gcc2 internal prototype to avoid an error. */
30184#ifdef __cplusplus
30185extern "C"
30186#endif
30187/* We use char because int might match the return type of a gcc2
30188 builtin and then its argument prototype would still apply. */
30189char shmat ();
30190char (*f) ();
30191
30192#ifdef F77_DUMMY_MAIN
30193# ifdef __cplusplus
30194 extern "C"
30195# endif
30196 int F77_DUMMY_MAIN() { return 1; }
30197#endif
30198int
30199main ()
30200{
30201/* The GNU C library defines this for functions which it implements
30202 to always fail with ENOSYS. Some functions are actually named
30203 something starting with __ and the normal name is an alias. */
30204#if defined (__stub_shmat) || defined (__stub___shmat)
30205choke me
30206#else
30207f = shmat;
30208#endif
30209
30210 ;
30211 return 0;
30212}
30213_ACEOF
30214rm -f conftest.$ac_objext conftest$ac_exeext
30215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30216 (eval $ac_link) 2>&5
30217 ac_status=$?
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } &&
30220 { ac_try='test -s conftest$ac_exeext'
30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222 (eval $ac_try) 2>&5
30223 ac_status=$?
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; }; then
30226 ac_cv_func_shmat=yes
30227else
30228 echo "$as_me: failed program was:" >&5
30229cat conftest.$ac_ext >&5
30230ac_cv_func_shmat=no
30231fi
30232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30233fi
30234echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30235echo "${ECHO_T}$ac_cv_func_shmat" >&6
30236
30237 if test $ac_cv_func_shmat = no; then
30238 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30239echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30240if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30242else
30243 ac_check_lib_save_LIBS=$LIBS
30244LIBS="-lipc $LIBS"
30245cat >conftest.$ac_ext <<_ACEOF
30246#line $LINENO "configure"
30247#include "confdefs.h"
30248
30249/* Override any gcc2 internal prototype to avoid an error. */
30250#ifdef __cplusplus
30251extern "C"
30252#endif
30253/* We use char because int might match the return type of a gcc2
30254 builtin and then its argument prototype would still apply. */
30255char shmat ();
30256#ifdef F77_DUMMY_MAIN
30257# ifdef __cplusplus
30258 extern "C"
30259# endif
30260 int F77_DUMMY_MAIN() { return 1; }
30261#endif
30262int
30263main ()
30264{
30265shmat ();
30266 ;
30267 return 0;
30268}
30269_ACEOF
30270rm -f conftest.$ac_objext conftest$ac_exeext
30271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30272 (eval $ac_link) 2>&5
30273 ac_status=$?
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
30276 { ac_try='test -s conftest$ac_exeext'
30277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278 (eval $ac_try) 2>&5
30279 ac_status=$?
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; }; then
30282 ac_cv_lib_ipc_shmat=yes
30283else
30284 echo "$as_me: failed program was:" >&5
30285cat conftest.$ac_ext >&5
30286ac_cv_lib_ipc_shmat=no
30287fi
30288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30289LIBS=$ac_check_lib_save_LIBS
30290fi
30291echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30292echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30293if test $ac_cv_lib_ipc_shmat = yes; then
30294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30295fi
30296
30297 fi
30298 fi
30299
30300 # Check for libraries that X11R6 Xt/Xaw programs need.
30301 ac_save_LDFLAGS=$LDFLAGS
30302 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30303 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30304 # check for ICE first), but we must link in the order -lSM -lICE or
30305 # we get undefined symbols. So assume we have SM if we have ICE.
30306 # These have to be linked with before -lX11, unlike the other
30307 # libraries we check for below, so use a different variable.
30308 # John Interrante, Karl Berry
30309 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30310echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30311if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30313else
30314 ac_check_lib_save_LIBS=$LIBS
30315LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30316cat >conftest.$ac_ext <<_ACEOF
30317#line $LINENO "configure"
30318#include "confdefs.h"
30319
30320/* Override any gcc2 internal prototype to avoid an error. */
30321#ifdef __cplusplus
30322extern "C"
30323#endif
30324/* We use char because int might match the return type of a gcc2
30325 builtin and then its argument prototype would still apply. */
30326char IceConnectionNumber ();
30327#ifdef F77_DUMMY_MAIN
30328# ifdef __cplusplus
30329 extern "C"
30330# endif
30331 int F77_DUMMY_MAIN() { return 1; }
30332#endif
30333int
30334main ()
30335{
30336IceConnectionNumber ();
30337 ;
30338 return 0;
30339}
30340_ACEOF
30341rm -f conftest.$ac_objext conftest$ac_exeext
30342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30343 (eval $ac_link) 2>&5
30344 ac_status=$?
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); } &&
30347 { ac_try='test -s conftest$ac_exeext'
30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349 (eval $ac_try) 2>&5
30350 ac_status=$?
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; }; then
30353 ac_cv_lib_ICE_IceConnectionNumber=yes
30354else
30355 echo "$as_me: failed program was:" >&5
30356cat conftest.$ac_ext >&5
30357ac_cv_lib_ICE_IceConnectionNumber=no
30358fi
30359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30360LIBS=$ac_check_lib_save_LIBS
30361fi
30362echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30363echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30364if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30365 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30366fi
30367
30368 LDFLAGS=$ac_save_LDFLAGS
30369
30370fi
30371
30372
30373# try to figure out if we need any additional ld flags, like -R
30374# and yes, the autoconf X test is utterly broken
30375if test "$no_x" != yes; then
30376 echo "$as_me:$LINENO: checking for special X linker flags" >&5
30377echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
30378if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
30379 echo $ECHO_N "(cached) $ECHO_C" >&6
30380else
30381
30382 ac_save_libs="$LIBS"
30383 ac_save_cflags="$CFLAGS"
30384 CFLAGS="$CFLAGS $X_CFLAGS"
30385 krb_cv_sys_x_libs_rpath=""
30386 krb_cv_sys_x_libs=""
30387 for rflag in "" "-R" "-R " "-rpath "; do
30388 if test "$rflag" = ""; then
30389 foo="$X_LIBS"
30390 else
30391 foo=""
30392 for flag in $X_LIBS; do
30393 case $flag in
30394 -L*)
30395 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
30396 ;;
30397 *)
30398 foo="$foo $flag"
30399 ;;
30400 esac
30401 done
30402 fi
30403 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
30404 if test "$cross_compiling" = yes; then
30405 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
30406echo "$as_me: error: cannot run test program while cross compiling" >&2;}
30407 { (exit 1); exit 1; }; }
30408else
30409 cat >conftest.$ac_ext <<_ACEOF
30410#line $LINENO "configure"
30411#include "confdefs.h"
30412
30413 #include <X11/Xlib.h>
30414 foo()
30415 {
30416 XOpenDisplay(NULL);
30417 }
30418 main()
30419 {
30420 return 0;
30421 }
30422
30423_ACEOF
30424rm -f conftest$ac_exeext
30425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426 (eval $ac_link) 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30432 ac_status=$?
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
30435 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
30436else
30437 echo "$as_me: program exited with status $ac_status" >&5
30438echo "$as_me: failed program was:" >&5
30439cat conftest.$ac_ext >&5
30440( exit $ac_status )
30441:
30442fi
30443rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30444fi
30445 done
30446 LIBS="$ac_save_libs"
30447 CFLAGS="$ac_save_cflags"
30448
30449fi
30450echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
30451echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
30452 X_LIBS="$krb_cv_sys_x_libs"
30453fi
30454
30455
30456
30457
30458if test "$no_x" != yes; then
30459 HAVE_X_TRUE=
30460 HAVE_X_FALSE='#'
30461else
30462 HAVE_X_TRUE='#'
30463 HAVE_X_FALSE=
30464fi
30465
30466
30467
30468save_CFLAGS="$CFLAGS"
30469CFLAGS="$X_CFLAGS $CFLAGS"
30470save_LIBS="$LIBS"
30471LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
30472save_LDFLAGS="$LDFLAGS"
30473LDFLAGS="$LDFLAGS $X_LIBS"
30474
30475
30476
30477
30478
30479echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
30480echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
30481if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
30482 echo $ECHO_N "(cached) $ECHO_C" >&6
30483else
30484
30485if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
30486 ac_save_LIBS="$LIBS"
30487 for ac_lib in "" X11 Xau; do
30488 case "$ac_lib" in
30489 "") ;;
30490 yes) ac_lib="" ;;
30491 no) continue ;;
30492 -l*) ;;
30493 *) ac_lib="-l$ac_lib" ;;
30494 esac
30495 LIBS=" $ac_lib $ac_save_LIBS"
30496 cat >conftest.$ac_ext <<_ACEOF
30497#line $LINENO "configure"
30498#include "confdefs.h"
30499
30500#ifdef F77_DUMMY_MAIN
30501# ifdef __cplusplus
30502 extern "C"
30503# endif
30504 int F77_DUMMY_MAIN() { return 1; }
30505#endif
30506int
30507main ()
30508{
30509XauWriteAuth()
30510 ;
30511 return 0;
30512}
30513_ACEOF
30514rm -f conftest.$ac_objext conftest$ac_exeext
30515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30516 (eval $ac_link) 2>&5
30517 ac_status=$?
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } &&
30520 { ac_try='test -s conftest$ac_exeext'
30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30523 ac_status=$?
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; }; then
30526 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
30527else
30528 echo "$as_me: failed program was:" >&5
30529cat conftest.$ac_ext >&5
30530fi
30531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30532 done
30533 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
30534 LIBS="$ac_save_LIBS"
30535fi
30536
30537fi
30538
30539
30540eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
30541
30542if false; then
30543
30544for ac_func in XauWriteAuth
30545do
30546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30547echo "$as_me:$LINENO: checking for $ac_func" >&5
30548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30549if eval "test \"\${$as_ac_var+set}\" = set"; then
30550 echo $ECHO_N "(cached) $ECHO_C" >&6
30551else
30552 cat >conftest.$ac_ext <<_ACEOF
30553#line $LINENO "configure"
30554#include "confdefs.h"
30555/* System header to define __stub macros and hopefully few prototypes,
30556 which can conflict with char $ac_func (); below. */
30557#include <assert.h>
30558/* Override any gcc2 internal prototype to avoid an error. */
30559#ifdef __cplusplus
30560extern "C"
30561#endif
30562/* We use char because int might match the return type of a gcc2
30563 builtin and then its argument prototype would still apply. */
30564char $ac_func ();
30565char (*f) ();
30566
30567#ifdef F77_DUMMY_MAIN
30568# ifdef __cplusplus
30569 extern "C"
30570# endif
30571 int F77_DUMMY_MAIN() { return 1; }
30572#endif
30573int
30574main ()
30575{
30576/* The GNU C library defines this for functions which it implements
30577 to always fail with ENOSYS. Some functions are actually named
30578 something starting with __ and the normal name is an alias. */
30579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30580choke me
30581#else
30582f = $ac_func;
30583#endif
30584
30585 ;
30586 return 0;
30587}
30588_ACEOF
30589rm -f conftest.$ac_objext conftest$ac_exeext
30590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30591 (eval $ac_link) 2>&5
30592 ac_status=$?
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); } &&
30595 { ac_try='test -s conftest$ac_exeext'
30596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30597 (eval $ac_try) 2>&5
30598 ac_status=$?
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; }; then
30601 eval "$as_ac_var=yes"
30602else
30603 echo "$as_me: failed program was:" >&5
30604cat conftest.$ac_ext >&5
30605eval "$as_ac_var=no"
30606fi
30607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30608fi
30609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30611if test `eval echo '${'$as_ac_var'}'` = yes; then
30612 cat >>confdefs.h <<_ACEOF
30613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30614_ACEOF
30615
30616fi
30617done
30618
30619fi
30620# XauWriteAuth
30621eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30622eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30623eval "LIB_XauWriteAuth=$ac_res"
30624
30625case "$ac_res" in
30626 yes)
30627 eval "ac_cv_func_XauWriteAuth=yes"
30628 eval "LIB_XauWriteAuth="
30629 cat >>confdefs.h <<_ACEOF
30630#define $ac_tr_func 1
30631_ACEOF
30632
30633 echo "$as_me:$LINENO: result: yes" >&5
30634echo "${ECHO_T}yes" >&6
30635 ;;
30636 no)
30637 eval "ac_cv_func_XauWriteAuth=no"
30638 eval "LIB_XauWriteAuth="
30639 echo "$as_me:$LINENO: result: no" >&5
30640echo "${ECHO_T}no" >&6
30641 ;;
30642 *)
30643 eval "ac_cv_func_XauWriteAuth=yes"
30644 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30645 cat >>confdefs.h <<_ACEOF
30646#define $ac_tr_func 1
30647_ACEOF
30648
30649 cat >>confdefs.h <<_ACEOF
30650#define $ac_tr_lib 1
30651_ACEOF
30652
30653 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30654echo "${ECHO_T}yes, in $ac_res" >&6
30655 ;;
30656esac
30657
30658
30659ac_xxx="$LIBS"
30660LIBS="$LIB_XauWriteAuth $LIBS"
30661
30662
30663
30664echo "$as_me:$LINENO: checking for XauReadAuth" >&5
30665echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
30666if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
30667 echo $ECHO_N "(cached) $ECHO_C" >&6
30668else
30669
30670if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
30671 ac_save_LIBS="$LIBS"
30672 for ac_lib in "" X11 Xau; do
30673 case "$ac_lib" in
30674 "") ;;
30675 yes) ac_lib="" ;;
30676 no) continue ;;
30677 -l*) ;;
30678 *) ac_lib="-l$ac_lib" ;;
30679 esac
30680 LIBS=" $ac_lib $ac_save_LIBS"
30681 cat >conftest.$ac_ext <<_ACEOF
30682#line $LINENO "configure"
30683#include "confdefs.h"
30684
30685#ifdef F77_DUMMY_MAIN
30686# ifdef __cplusplus
30687 extern "C"
30688# endif
30689 int F77_DUMMY_MAIN() { return 1; }
30690#endif
30691int
30692main ()
30693{
30694XauReadAuth()
30695 ;
30696 return 0;
30697}
30698_ACEOF
30699rm -f conftest.$ac_objext conftest$ac_exeext
30700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30701 (eval $ac_link) 2>&5
30702 ac_status=$?
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); } &&
30705 { ac_try='test -s conftest$ac_exeext'
30706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30707 (eval $ac_try) 2>&5
30708 ac_status=$?
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); }; }; then
30711 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
30712else
30713 echo "$as_me: failed program was:" >&5
30714cat conftest.$ac_ext >&5
30715fi
30716rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30717 done
30718 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
30719 LIBS="$ac_save_LIBS"
30720fi
30721
30722fi
30723
30724
30725eval "ac_res=\$ac_cv_funclib_XauReadAuth"
30726
30727if false; then
30728
30729for ac_func in XauReadAuth
30730do
30731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30732echo "$as_me:$LINENO: checking for $ac_func" >&5
30733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30734if eval "test \"\${$as_ac_var+set}\" = set"; then
30735 echo $ECHO_N "(cached) $ECHO_C" >&6
30736else
30737 cat >conftest.$ac_ext <<_ACEOF
30738#line $LINENO "configure"
30739#include "confdefs.h"
30740/* System header to define __stub macros and hopefully few prototypes,
30741 which can conflict with char $ac_func (); below. */
30742#include <assert.h>
30743/* Override any gcc2 internal prototype to avoid an error. */
30744#ifdef __cplusplus
30745extern "C"
30746#endif
30747/* We use char because int might match the return type of a gcc2
30748 builtin and then its argument prototype would still apply. */
30749char $ac_func ();
30750char (*f) ();
30751
30752#ifdef F77_DUMMY_MAIN
30753# ifdef __cplusplus
30754 extern "C"
30755# endif
30756 int F77_DUMMY_MAIN() { return 1; }
30757#endif
30758int
30759main ()
30760{
30761/* The GNU C library defines this for functions which it implements
30762 to always fail with ENOSYS. Some functions are actually named
30763 something starting with __ and the normal name is an alias. */
30764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30765choke me
30766#else
30767f = $ac_func;
30768#endif
30769
30770 ;
30771 return 0;
30772}
30773_ACEOF
30774rm -f conftest.$ac_objext conftest$ac_exeext
30775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30776 (eval $ac_link) 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); } &&
30780 { ac_try='test -s conftest$ac_exeext'
30781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30782 (eval $ac_try) 2>&5
30783 ac_status=$?
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); }; }; then
30786 eval "$as_ac_var=yes"
30787else
30788 echo "$as_me: failed program was:" >&5
30789cat conftest.$ac_ext >&5
30790eval "$as_ac_var=no"
30791fi
30792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30793fi
30794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30796if test `eval echo '${'$as_ac_var'}'` = yes; then
30797 cat >>confdefs.h <<_ACEOF
30798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30799_ACEOF
30800
30801fi
30802done
30803
30804fi
30805# XauReadAuth
30806eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30807eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30808eval "LIB_XauReadAuth=$ac_res"
30809
30810case "$ac_res" in
30811 yes)
30812 eval "ac_cv_func_XauReadAuth=yes"
30813 eval "LIB_XauReadAuth="
30814 cat >>confdefs.h <<_ACEOF
30815#define $ac_tr_func 1
30816_ACEOF
30817
30818 echo "$as_me:$LINENO: result: yes" >&5
30819echo "${ECHO_T}yes" >&6
30820 ;;
30821 no)
30822 eval "ac_cv_func_XauReadAuth=no"
30823 eval "LIB_XauReadAuth="
30824 echo "$as_me:$LINENO: result: no" >&5
30825echo "${ECHO_T}no" >&6
30826 ;;
30827 *)
30828 eval "ac_cv_func_XauReadAuth=yes"
30829 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30830 cat >>confdefs.h <<_ACEOF
30831#define $ac_tr_func 1
30832_ACEOF
30833
30834 cat >>confdefs.h <<_ACEOF
30835#define $ac_tr_lib 1
30836_ACEOF
30837
30838 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30839echo "${ECHO_T}yes, in $ac_res" >&6
30840 ;;
30841esac
30842
30843
30844LIBS="$LIB_XauReadAauth $LIBS"
30845
30846
30847
30848echo "$as_me:$LINENO: checking for XauFileName" >&5
30849echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
30850if test "${ac_cv_funclib_XauFileName+set}" = set; then
30851 echo $ECHO_N "(cached) $ECHO_C" >&6
30852else
30853
30854if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
30855 ac_save_LIBS="$LIBS"
30856 for ac_lib in "" X11 Xau; do
30857 case "$ac_lib" in
30858 "") ;;
30859 yes) ac_lib="" ;;
30860 no) continue ;;
30861 -l*) ;;
30862 *) ac_lib="-l$ac_lib" ;;
30863 esac
30864 LIBS=" $ac_lib $ac_save_LIBS"
30865 cat >conftest.$ac_ext <<_ACEOF
30866#line $LINENO "configure"
30867#include "confdefs.h"
30868
30869#ifdef F77_DUMMY_MAIN
30870# ifdef __cplusplus
30871 extern "C"
30872# endif
30873 int F77_DUMMY_MAIN() { return 1; }
30874#endif
30875int
30876main ()
30877{
30878XauFileName()
30879 ;
30880 return 0;
30881}
30882_ACEOF
30883rm -f conftest.$ac_objext conftest$ac_exeext
30884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30885 (eval $ac_link) 2>&5
30886 ac_status=$?
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); } &&
30889 { ac_try='test -s conftest$ac_exeext'
30890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30891 (eval $ac_try) 2>&5
30892 ac_status=$?
30893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894 (exit $ac_status); }; }; then
30895 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
30896else
30897 echo "$as_me: failed program was:" >&5
30898cat conftest.$ac_ext >&5
30899fi
30900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30901 done
30902 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
30903 LIBS="$ac_save_LIBS"
30904fi
30905
30906fi
30907
30908
30909eval "ac_res=\$ac_cv_funclib_XauFileName"
30910
30911if false; then
30912
30913for ac_func in XauFileName
30914do
30915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30916echo "$as_me:$LINENO: checking for $ac_func" >&5
30917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30918if eval "test \"\${$as_ac_var+set}\" = set"; then
30919 echo $ECHO_N "(cached) $ECHO_C" >&6
30920else
30921 cat >conftest.$ac_ext <<_ACEOF
30922#line $LINENO "configure"
30923#include "confdefs.h"
30924/* System header to define __stub macros and hopefully few prototypes,
30925 which can conflict with char $ac_func (); below. */
30926#include <assert.h>
30927/* Override any gcc2 internal prototype to avoid an error. */
30928#ifdef __cplusplus
30929extern "C"
30930#endif
30931/* We use char because int might match the return type of a gcc2
30932 builtin and then its argument prototype would still apply. */
30933char $ac_func ();
30934char (*f) ();
30935
30936#ifdef F77_DUMMY_MAIN
30937# ifdef __cplusplus
30938 extern "C"
30939# endif
30940 int F77_DUMMY_MAIN() { return 1; }
30941#endif
30942int
30943main ()
30944{
30945/* The GNU C library defines this for functions which it implements
30946 to always fail with ENOSYS. Some functions are actually named
30947 something starting with __ and the normal name is an alias. */
30948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30949choke me
30950#else
30951f = $ac_func;
30952#endif
30953
30954 ;
30955 return 0;
30956}
30957_ACEOF
30958rm -f conftest.$ac_objext conftest$ac_exeext
30959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30960 (eval $ac_link) 2>&5
30961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } &&
30964 { ac_try='test -s conftest$ac_exeext'
30965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30966 (eval $ac_try) 2>&5
30967 ac_status=$?
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; }; then
30970 eval "$as_ac_var=yes"
30971else
30972 echo "$as_me: failed program was:" >&5
30973cat conftest.$ac_ext >&5
30974eval "$as_ac_var=no"
30975fi
30976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30977fi
30978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30980if test `eval echo '${'$as_ac_var'}'` = yes; then
30981 cat >>confdefs.h <<_ACEOF
30982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30983_ACEOF
30984
30985fi
30986done
30987
30988fi
30989# XauFileName
30990eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30991eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30992eval "LIB_XauFileName=$ac_res"
30993
30994case "$ac_res" in
30995 yes)
30996 eval "ac_cv_func_XauFileName=yes"
30997 eval "LIB_XauFileName="
30998 cat >>confdefs.h <<_ACEOF
30999#define $ac_tr_func 1
31000_ACEOF
31001
31002 echo "$as_me:$LINENO: result: yes" >&5
31003echo "${ECHO_T}yes" >&6
31004 ;;
31005 no)
31006 eval "ac_cv_func_XauFileName=no"
31007 eval "LIB_XauFileName="
31008 echo "$as_me:$LINENO: result: no" >&5
31009echo "${ECHO_T}no" >&6
31010 ;;
31011 *)
31012 eval "ac_cv_func_XauFileName=yes"
31013 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31014 cat >>confdefs.h <<_ACEOF
31015#define $ac_tr_func 1
31016_ACEOF
31017
31018 cat >>confdefs.h <<_ACEOF
31019#define $ac_tr_lib 1
31020_ACEOF
31021
31022 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31023echo "${ECHO_T}yes, in $ac_res" >&6
31024 ;;
31025esac
31026
31027
31028LIBS="$ac_xxx"
31029
31030case "$ac_cv_funclib_XauWriteAuth" in
31031yes) ;;
31032no) ;;
31033*) if test "$ac_cv_funclib_XauReadAuth" = yes; then
31034 if test "$ac_cv_funclib_XauFileName" = yes; then
31035 LIB_XauReadAuth="$LIB_XauWriteAuth"
31036 else
31037 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
31038 fi
31039 else
31040 if test "$ac_cv_funclib_XauFileName" = yes; then
31041 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
31042 else
31043 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
31044 fi
31045 fi
31046 ;;
31047esac
31048
31049if test "$AUTOMAKE" != ""; then
31050
31051
31052if test "$ac_cv_func_XauWriteAuth" != "yes"; then
31053 NEED_WRITEAUTH_TRUE=
31054 NEED_WRITEAUTH_FALSE='#'
31055else
31056 NEED_WRITEAUTH_TRUE='#'
31057 NEED_WRITEAUTH_FALSE=
31058fi
31059
31060else
31061
31062
31063 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
31064 NEED_WRITEAUTH_TRUE=
31065 NEED_WRITEAUTH_FALSE='#'
31066 else
31067 NEED_WRITEAUTH_TRUE='#'
31068 NEED_WRITEAUTH_FALSE=
31069 fi
31070fi
31071CFLAGS=$save_CFLAGS
31072LIBS=$save_LIBS
31073LDFLAGS=$save_LDFLAGS
31074
31075
31076
31077echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31078echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
31079if test "${ac_cv_c_const+set}" = set; then
31080 echo $ECHO_N "(cached) $ECHO_C" >&6
31081else
31082 cat >conftest.$ac_ext <<_ACEOF
31083#line $LINENO "configure"
31084#include "confdefs.h"
31085
31086#ifdef F77_DUMMY_MAIN
31087# ifdef __cplusplus
31088 extern "C"
31089# endif
31090 int F77_DUMMY_MAIN() { return 1; }
31091#endif
31092int
31093main ()
31094{
31095/* FIXME: Include the comments suggested by Paul. */
31096#ifndef __cplusplus
31097 /* Ultrix mips cc rejects this. */
31098 typedef int charset[2];
31099 const charset x;
31100 /* SunOS 4.1.1 cc rejects this. */
31101 char const *const *ccp;
31102 char **p;
31103 /* NEC SVR4.0.2 mips cc rejects this. */
31104 struct point {int x, y;};
31105 static struct point const zero = {0,0};
31106 /* AIX XL C 1.02.0.0 rejects this.
31107 It does not let you subtract one const X* pointer from another in
31108 an arm of an if-expression whose if-part is not a constant
31109 expression */
31110 const char *g = "string";
31111 ccp = &g + (g ? g-g : 0);
31112 /* HPUX 7.0 cc rejects these. */
31113 ++ccp;
31114 p = (char**) ccp;
31115 ccp = (char const *const *) p;
31116 { /* SCO 3.2v4 cc rejects this. */
31117 char *t;
31118 char const *s = 0 ? (char *) 0 : (char const *) 0;
31119
31120 *t++ = 0;
31121 }
31122 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
31123 int x[] = {25, 17};
31124 const int *foo = &x[0];
31125 ++foo;
31126 }
31127 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31128 typedef const int *iptr;
31129 iptr p = 0;
31130 ++p;
31131 }
31132 { /* AIX XL C 1.02.0.0 rejects this saying
31133 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31134 struct s { int j; const int *ap[3]; };
31135 struct s *b; b->j = 5;
31136 }
31137 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31138 const int foo = 10;
31139 }
31140#endif
31141
31142 ;
31143 return 0;
31144}
31145_ACEOF
31146rm -f conftest.$ac_objext
31147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31148 (eval $ac_compile) 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); } &&
31152 { ac_try='test -s conftest.$ac_objext'
31153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154 (eval $ac_try) 2>&5
31155 ac_status=$?
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
31158 ac_cv_c_const=yes
31159else
31160 echo "$as_me: failed program was:" >&5
31161cat conftest.$ac_ext >&5
31162ac_cv_c_const=no
31163fi
31164rm -f conftest.$ac_objext conftest.$ac_ext
31165fi
31166echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31167echo "${ECHO_T}$ac_cv_c_const" >&6
31168if test $ac_cv_c_const = no; then
31169
31170cat >>confdefs.h <<\_ACEOF
31171#define const
31172_ACEOF
31173
31174fi
31175
31176echo "$as_me:$LINENO: checking for off_t" >&5
31177echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31178if test "${ac_cv_type_off_t+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31180else
31181 cat >conftest.$ac_ext <<_ACEOF
31182#line $LINENO "configure"
31183#include "confdefs.h"
31184$ac_includes_default
31185#ifdef F77_DUMMY_MAIN
31186# ifdef __cplusplus
31187 extern "C"
31188# endif
31189 int F77_DUMMY_MAIN() { return 1; }
31190#endif
31191int
31192main ()
31193{
31194if ((off_t *) 0)
31195 return 0;
31196if (sizeof (off_t))
31197 return 0;
31198 ;
31199 return 0;
31200}
31201_ACEOF
31202rm -f conftest.$ac_objext
31203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31204 (eval $ac_compile) 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } &&
31208 { ac_try='test -s conftest.$ac_objext'
31209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210 (eval $ac_try) 2>&5
31211 ac_status=$?
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; }; then
31214 ac_cv_type_off_t=yes
31215else
31216 echo "$as_me: failed program was:" >&5
31217cat conftest.$ac_ext >&5
31218ac_cv_type_off_t=no
31219fi
31220rm -f conftest.$ac_objext conftest.$ac_ext
31221fi
31222echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31223echo "${ECHO_T}$ac_cv_type_off_t" >&6
31224if test $ac_cv_type_off_t = yes; then
31225 :
31226else
31227
31228cat >>confdefs.h <<_ACEOF
31229#define off_t long
31230_ACEOF
31231
31232fi
31233
31234echo "$as_me:$LINENO: checking for mode_t" >&5
31235echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31236if test "${ac_cv_type_mode_t+set}" = set; then
31237 echo $ECHO_N "(cached) $ECHO_C" >&6
31238else
31239 cat >conftest.$ac_ext <<_ACEOF
31240#line $LINENO "configure"
31241#include "confdefs.h"
31242#include <sys/types.h>
31243#if STDC_HEADERS
31244#include <stdlib.h>
31245#include <stddef.h>
31246#endif
31247
31248_ACEOF
31249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31250 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31251 ac_cv_type_mode_t=yes
31252else
31253 ac_cv_type_mode_t=no
31254fi
31255rm -f conftest*
31256
31257fi
31258echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31259echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31260if test $ac_cv_type_mode_t = no; then
31261
31262cat >>confdefs.h <<\_ACEOF
31263#define mode_t unsigned short
31264_ACEOF
31265
31266fi
31267
31268echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
31269echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
31270if test "${ac_cv_type_sig_atomic_t+set}" = set; then
31271 echo $ECHO_N "(cached) $ECHO_C" >&6
31272else
31273 cat >conftest.$ac_ext <<_ACEOF
31274#line $LINENO "configure"
31275#include "confdefs.h"
31276#include <sys/types.h>
31277#if STDC_HEADERS
31278#include <stdlib.h>
31279#include <stddef.h>
31280#endif
31281#include <signal.h>
31282_ACEOF
31283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31284 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31285 ac_cv_type_sig_atomic_t=yes
31286else
31287 ac_cv_type_sig_atomic_t=no
31288fi
31289rm -f conftest*
31290
31291fi
31292echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
31293echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
31294if test $ac_cv_type_sig_atomic_t = no; then
31295
31296cat >>confdefs.h <<\_ACEOF
31297#define sig_atomic_t int
31298_ACEOF
31299
31300fi
31301
31302
31303
31304cv=`echo "long long" | sed 'y%./+- %__p__%'`
31305echo "$as_me:$LINENO: checking for long long" >&5
31306echo $ECHO_N "checking for long long... $ECHO_C" >&6
31307if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
31308 echo $ECHO_N "(cached) $ECHO_C" >&6
31309else
31310 cat >conftest.$ac_ext <<_ACEOF
31311#line $LINENO "configure"
31312#include "confdefs.h"
31313#include <sys/types.h>
31314#if STDC_HEADERS
31315#include <stdlib.h>
31316#include <stddef.h>
31317#endif
31318
31319#ifdef F77_DUMMY_MAIN
31320# ifdef __cplusplus
31321 extern "C"
31322# endif
31323 int F77_DUMMY_MAIN() { return 1; }
31324#endif
31325int
31326main ()
31327{
31328long long foo;
31329 ;
31330 return 0;
31331}
31332_ACEOF
31333rm -f conftest.$ac_objext
31334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31335 (eval $ac_compile) 2>&5
31336 ac_status=$?
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); } &&
31339 { ac_try='test -s conftest.$ac_objext'
31340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341 (eval $ac_try) 2>&5
31342 ac_status=$?
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); }; }; then
31345 eval "ac_cv_type_$cv=yes"
31346else
31347 echo "$as_me: failed program was:" >&5
31348cat conftest.$ac_ext >&5
31349eval "ac_cv_type_$cv=no"
31350fi
31351rm -f conftest.$ac_objext conftest.$ac_ext
31352fi
31353ac_foo=`eval echo \\$ac_cv_type_$cv`
31354echo "$as_me:$LINENO: result: $ac_foo" >&5
31355echo "${ECHO_T}$ac_foo" >&6
31356if test "$ac_foo" = yes; then
31357 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
31358if false; then
31359 echo "$as_me:$LINENO: checking for long long" >&5
31360echo $ECHO_N "checking for long long... $ECHO_C" >&6
31361if test "${ac_cv_type_long_long+set}" = set; then
31362 echo $ECHO_N "(cached) $ECHO_C" >&6
31363else
31364 cat >conftest.$ac_ext <<_ACEOF
31365#line $LINENO "configure"
31366#include "confdefs.h"
31367$ac_includes_default
31368#ifdef F77_DUMMY_MAIN
31369# ifdef __cplusplus
31370 extern "C"
31371# endif
31372 int F77_DUMMY_MAIN() { return 1; }
31373#endif
31374int
31375main ()
31376{
31377if ((long long *) 0)
31378 return 0;
31379if (sizeof (long long))
31380 return 0;
31381 ;
31382 return 0;
31383}
31384_ACEOF
31385rm -f conftest.$ac_objext
31386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31387 (eval $ac_compile) 2>&5
31388 ac_status=$?
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); } &&
31391 { ac_try='test -s conftest.$ac_objext'
31392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31393 (eval $ac_try) 2>&5
31394 ac_status=$?
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); }; }; then
31397 ac_cv_type_long_long=yes
31398else
31399 echo "$as_me: failed program was:" >&5
31400cat conftest.$ac_ext >&5
31401ac_cv_type_long_long=no
31402fi
31403rm -f conftest.$ac_objext conftest.$ac_ext
31404fi
31405echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31406echo "${ECHO_T}$ac_cv_type_long_long" >&6
31407if test $ac_cv_type_long_long = yes; then
31408
31409cat >>confdefs.h <<_ACEOF
31410#define HAVE_LONG_LONG 1
31411_ACEOF
31412
31413
31414fi
31415
31416fi
31417
31418cat >>confdefs.h <<_ACEOF
31419#define $ac_tr_hdr 1
31420_ACEOF
31421
31422fi
31423
31424echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31425echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
31426if test "${ac_cv_header_time+set}" = set; then
31427 echo $ECHO_N "(cached) $ECHO_C" >&6
31428else
31429 cat >conftest.$ac_ext <<_ACEOF
31430#line $LINENO "configure"
31431#include "confdefs.h"
31432#include <sys/types.h>
31433#include <sys/time.h>
31434#include <time.h>
31435
31436#ifdef F77_DUMMY_MAIN
31437# ifdef __cplusplus
31438 extern "C"
31439# endif
31440 int F77_DUMMY_MAIN() { return 1; }
31441#endif
31442int
31443main ()
31444{
31445if ((struct tm *) 0)
31446return 0;
31447 ;
31448 return 0;
31449}
31450_ACEOF
31451rm -f conftest.$ac_objext
31452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31453 (eval $ac_compile) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); } &&
31457 { ac_try='test -s conftest.$ac_objext'
31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459 (eval $ac_try) 2>&5
31460 ac_status=$?
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; }; then
31463 ac_cv_header_time=yes
31464else
31465 echo "$as_me: failed program was:" >&5
31466cat conftest.$ac_ext >&5
31467ac_cv_header_time=no
31468fi
31469rm -f conftest.$ac_objext conftest.$ac_ext
31470fi
31471echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31472echo "${ECHO_T}$ac_cv_header_time" >&6
31473if test $ac_cv_header_time = yes; then
31474
31475cat >>confdefs.h <<\_ACEOF
31476#define TIME_WITH_SYS_TIME 1
31477_ACEOF
31478
31479fi
31480
31481echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31482echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31483if test "${ac_cv_struct_tm+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31485else
31486 cat >conftest.$ac_ext <<_ACEOF
31487#line $LINENO "configure"
31488#include "confdefs.h"
31489#include <sys/types.h>
31490#include <time.h>
31491
31492#ifdef F77_DUMMY_MAIN
31493# ifdef __cplusplus
31494 extern "C"
31495# endif
31496 int F77_DUMMY_MAIN() { return 1; }
31497#endif
31498int
31499main ()
31500{
31501struct tm *tp; tp->tm_sec;
31502 ;
31503 return 0;
31504}
31505_ACEOF
31506rm -f conftest.$ac_objext
31507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31508 (eval $ac_compile) 2>&5
31509 ac_status=$?
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); } &&
31512 { ac_try='test -s conftest.$ac_objext'
31513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31514 (eval $ac_try) 2>&5
31515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
31518 ac_cv_struct_tm=time.h
31519else
31520 echo "$as_me: failed program was:" >&5
31521cat conftest.$ac_ext >&5
31522ac_cv_struct_tm=sys/time.h
31523fi
31524rm -f conftest.$ac_objext conftest.$ac_ext
31525fi
31526echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31527echo "${ECHO_T}$ac_cv_struct_tm" >&6
31528if test $ac_cv_struct_tm = sys/time.h; then
31529
31530cat >>confdefs.h <<\_ACEOF
31531#define TM_IN_SYS_TIME 1
31532_ACEOF
31533
31534fi
31535
31536
31537echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31538echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31539if test "${ac_cv_header_stdc+set}" = set; then
31540 echo $ECHO_N "(cached) $ECHO_C" >&6
31541else
31542 cat >conftest.$ac_ext <<_ACEOF
31543#line $LINENO "configure"
31544#include "confdefs.h"
31545#include <stdlib.h>
31546#include <stdarg.h>
31547#include <string.h>
31548#include <float.h>
31549
31550_ACEOF
31551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31553 ac_status=$?
31554 egrep -v '^ *\+' conftest.er1 >conftest.err
31555 rm -f conftest.er1
31556 cat conftest.err >&5
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); } >/dev/null; then
31559 if test -s conftest.err; then
31560 ac_cpp_err=$ac_c_preproc_warn_flag
31561 else
31562 ac_cpp_err=
31563 fi
31564else
31565 ac_cpp_err=yes
31566fi
31567if test -z "$ac_cpp_err"; then
31568 ac_cv_header_stdc=yes
31569else
31570 echo "$as_me: failed program was:" >&5
31571 cat conftest.$ac_ext >&5
31572 ac_cv_header_stdc=no
31573fi
31574rm -f conftest.err conftest.$ac_ext
31575
31576if test $ac_cv_header_stdc = yes; then
31577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31578 cat >conftest.$ac_ext <<_ACEOF
31579#line $LINENO "configure"
31580#include "confdefs.h"
31581#include <string.h>
31582
31583_ACEOF
31584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31585 egrep "memchr" >/dev/null 2>&1; then
31586 :
31587else
31588 ac_cv_header_stdc=no
31589fi
31590rm -f conftest*
31591
31592fi
31593
31594if test $ac_cv_header_stdc = yes; then
31595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31596 cat >conftest.$ac_ext <<_ACEOF
31597#line $LINENO "configure"
31598#include "confdefs.h"
31599#include <stdlib.h>
31600
31601_ACEOF
31602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31603 egrep "free" >/dev/null 2>&1; then
31604 :
31605else
31606 ac_cv_header_stdc=no
31607fi
31608rm -f conftest*
31609
31610fi
31611
31612if test $ac_cv_header_stdc = yes; then
31613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31614 if test "$cross_compiling" = yes; then
31615 :
31616else
31617 cat >conftest.$ac_ext <<_ACEOF
31618#line $LINENO "configure"
31619#include "confdefs.h"
31620#include <ctype.h>
31621#if ((' ' & 0x0FF) == 0x020)
31622# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31623# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31624#else
31625# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
31626 || ('j' <= (c) && (c) <= 'r') \
31627 || ('s' <= (c) && (c) <= 'z'))
31628# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31629#endif
31630
31631#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31632int
31633main ()
31634{
31635 int i;
31636 for (i = 0; i < 256; i++)
31637 if (XOR (islower (i), ISLOWER (i))
31638 || toupper (i) != TOUPPER (i))
31639 exit(2);
31640 exit (0);
31641}
31642_ACEOF
31643rm -f conftest$ac_exeext
31644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31645 (eval $ac_link) 2>&5
31646 ac_status=$?
31647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31650 (eval $ac_try) 2>&5
31651 ac_status=$?
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); }; }; then
31654 :
31655else
31656 echo "$as_me: program exited with status $ac_status" >&5
31657echo "$as_me: failed program was:" >&5
31658cat conftest.$ac_ext >&5
31659( exit $ac_status )
31660ac_cv_header_stdc=no
31661fi
31662rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31663fi
31664fi
31665fi
31666echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31667echo "${ECHO_T}$ac_cv_header_stdc" >&6
31668if test $ac_cv_header_stdc = yes; then
31669
31670cat >>confdefs.h <<\_ACEOF
31671#define STDC_HEADERS 1
31672_ACEOF
31673
31674fi
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727for ac_header in \
31728 arpa/ftp.h \
31729 arpa/telnet.h \
31730 bind/bitypes.h \
31731 bsdsetjmp.h \
31732 curses.h \
31733 dlfcn.h \
31734 fnmatch.h \
31735 inttypes.h \
31736 io.h \
31737 libutil.h \
31738 limits.h \
31739 maillock.h \
31740 netgroup.h \
31741 netinet/in6_machtypes.h \
31742 netinfo/ni.h \
31743 pthread.h \
31744 pty.h \
31745 sac.h \
31746 security/pam_modules.h \
31747 sgtty.h \
31748 siad.h \
31749 signal.h \
31750 stropts.h \
31751 sys/bitypes.h \
31752 sys/category.h \
31753 sys/file.h \
31754 sys/filio.h \
31755 sys/ioccom.h \
31756 sys/mman.h \
31757 sys/pty.h \
31758 sys/ptyio.h \
31759 sys/ptyvar.h \
31760 sys/select.h \
31761 sys/str_tty.h \
31762 sys/stream.h \
31763 sys/stropts.h \
31764 sys/strtty.h \
31765 sys/syscall.h \
31766 sys/termio.h \
31767 sys/timeb.h \
31768 sys/times.h \
31769 sys/un.h \
31770 term.h \
31771 termcap.h \
31772 termio.h \
31773 time.h \
31774 tmpdir.h \
31775 udb.h \
31776 utmp.h \
31777 utmpx.h \
31778
31779do
31780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31781if eval "test \"\${$as_ac_Header+set}\" = set"; then
31782 echo "$as_me:$LINENO: checking for $ac_header" >&5
31783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31784if eval "test \"\${$as_ac_Header+set}\" = set"; then
31785 echo $ECHO_N "(cached) $ECHO_C" >&6
31786fi
31787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31789else
31790 # Is the header compilable?
31791echo "$as_me:$LINENO: checking $ac_header usability" >&5
31792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31793cat >conftest.$ac_ext <<_ACEOF
31794#line $LINENO "configure"
31795#include "confdefs.h"
31796$ac_includes_default
31797#include <$ac_header>
31798_ACEOF
31799rm -f conftest.$ac_objext
31800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31801 (eval $ac_compile) 2>&5
31802 ac_status=$?
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); } &&
31805 { ac_try='test -s conftest.$ac_objext'
31806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31807 (eval $ac_try) 2>&5
31808 ac_status=$?
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); }; }; then
31811 ac_header_compiler=yes
31812else
31813 echo "$as_me: failed program was:" >&5
31814cat conftest.$ac_ext >&5
31815ac_header_compiler=no
31816fi
31817rm -f conftest.$ac_objext conftest.$ac_ext
31818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31819echo "${ECHO_T}$ac_header_compiler" >&6
31820
31821# Is the header present?
31822echo "$as_me:$LINENO: checking $ac_header presence" >&5
31823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31824cat >conftest.$ac_ext <<_ACEOF
31825#line $LINENO "configure"
31826#include "confdefs.h"
31827#include <$ac_header>
31828_ACEOF
31829if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31831 ac_status=$?
31832 egrep -v '^ *\+' conftest.er1 >conftest.err
31833 rm -f conftest.er1
31834 cat conftest.err >&5
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); } >/dev/null; then
31837 if test -s conftest.err; then
31838 ac_cpp_err=$ac_c_preproc_warn_flag
31839 else
31840 ac_cpp_err=
31841 fi
31842else
31843 ac_cpp_err=yes
31844fi
31845if test -z "$ac_cpp_err"; then
31846 ac_header_preproc=yes
31847else
31848 echo "$as_me: failed program was:" >&5
31849 cat conftest.$ac_ext >&5
31850 ac_header_preproc=no
31851fi
31852rm -f conftest.err conftest.$ac_ext
31853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31854echo "${ECHO_T}$ac_header_preproc" >&6
31855
31856# So? What about this header?
31857case $ac_header_compiler:$ac_header_preproc in
31858 yes:no )
31859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31863 no:yes )
31864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31870esac
31871echo "$as_me:$LINENO: checking for $ac_header" >&5
31872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31873if eval "test \"\${$as_ac_Header+set}\" = set"; then
31874 echo $ECHO_N "(cached) $ECHO_C" >&6
31875else
31876 eval "$as_ac_Header=$ac_header_preproc"
31877fi
31878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31880
31881fi
31882if test `eval echo '${'$as_ac_Header'}'` = yes; then
31883 cat >>confdefs.h <<_ACEOF
31884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31885_ACEOF
31886
31887fi
31888
31889done
31890
31891
31892# Check whether --enable-netinfo or --disable-netinfo was given.
31893if test "${enable_netinfo+set}" = set; then
31894 enableval="$enable_netinfo"
31895
31896fi;
31897
31898if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
31899
31900cat >>confdefs.h <<\_ACEOF
31901#define HAVE_NETINFO 1
31902_ACEOF
31903
31904fi
31905
31906
31907
31908
31909
31910echo "$as_me:$LINENO: checking for logwtmp" >&5
31911echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
31912if test "${ac_cv_funclib_logwtmp+set}" = set; then
31913 echo $ECHO_N "(cached) $ECHO_C" >&6
31914else
31915
31916if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
31917 ac_save_LIBS="$LIBS"
31918 for ac_lib in "" util; do
31919 case "$ac_lib" in
31920 "") ;;
31921 yes) ac_lib="" ;;
31922 no) continue ;;
31923 -l*) ;;
31924 *) ac_lib="-l$ac_lib" ;;
31925 esac
31926 LIBS=" $ac_lib $ac_save_LIBS"
31927 cat >conftest.$ac_ext <<_ACEOF
31928#line $LINENO "configure"
31929#include "confdefs.h"
31930
31931#ifdef F77_DUMMY_MAIN
31932# ifdef __cplusplus
31933 extern "C"
31934# endif
31935 int F77_DUMMY_MAIN() { return 1; }
31936#endif
31937int
31938main ()
31939{
31940logwtmp()
31941 ;
31942 return 0;
31943}
31944_ACEOF
31945rm -f conftest.$ac_objext conftest$ac_exeext
31946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31947 (eval $ac_link) 2>&5
31948 ac_status=$?
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
31951 { ac_try='test -s conftest$ac_exeext'
31952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31953 (eval $ac_try) 2>&5
31954 ac_status=$?
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; }; then
31957 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
31958else
31959 echo "$as_me: failed program was:" >&5
31960cat conftest.$ac_ext >&5
31961fi
31962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31963 done
31964 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
31965 LIBS="$ac_save_LIBS"
31966fi
31967
31968fi
31969
31970
31971eval "ac_res=\$ac_cv_funclib_logwtmp"
31972
31973if false; then
31974
31975for ac_func in logwtmp
31976do
31977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31978echo "$as_me:$LINENO: checking for $ac_func" >&5
31979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31980if eval "test \"\${$as_ac_var+set}\" = set"; then
31981 echo $ECHO_N "(cached) $ECHO_C" >&6
31982else
31983 cat >conftest.$ac_ext <<_ACEOF
31984#line $LINENO "configure"
31985#include "confdefs.h"
31986/* System header to define __stub macros and hopefully few prototypes,
31987 which can conflict with char $ac_func (); below. */
31988#include <assert.h>
31989/* Override any gcc2 internal prototype to avoid an error. */
31990#ifdef __cplusplus
31991extern "C"
31992#endif
31993/* We use char because int might match the return type of a gcc2
31994 builtin and then its argument prototype would still apply. */
31995char $ac_func ();
31996char (*f) ();
31997
31998#ifdef F77_DUMMY_MAIN
31999# ifdef __cplusplus
32000 extern "C"
32001# endif
32002 int F77_DUMMY_MAIN() { return 1; }
32003#endif
32004int
32005main ()
32006{
32007/* The GNU C library defines this for functions which it implements
32008 to always fail with ENOSYS. Some functions are actually named
32009 something starting with __ and the normal name is an alias. */
32010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32011choke me
32012#else
32013f = $ac_func;
32014#endif
32015
32016 ;
32017 return 0;
32018}
32019_ACEOF
32020rm -f conftest.$ac_objext conftest$ac_exeext
32021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32022 (eval $ac_link) 2>&5
32023 ac_status=$?
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } &&
32026 { ac_try='test -s conftest$ac_exeext'
32027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32028 (eval $ac_try) 2>&5
32029 ac_status=$?
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); }; }; then
32032 eval "$as_ac_var=yes"
32033else
32034 echo "$as_me: failed program was:" >&5
32035cat conftest.$ac_ext >&5
32036eval "$as_ac_var=no"
32037fi
32038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32039fi
32040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32042if test `eval echo '${'$as_ac_var'}'` = yes; then
32043 cat >>confdefs.h <<_ACEOF
32044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32045_ACEOF
32046
32047fi
32048done
32049
32050fi
32051# logwtmp
32052eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32053eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32054eval "LIB_logwtmp=$ac_res"
32055
32056case "$ac_res" in
32057 yes)
32058 eval "ac_cv_func_logwtmp=yes"
32059 eval "LIB_logwtmp="
32060 cat >>confdefs.h <<_ACEOF
32061#define $ac_tr_func 1
32062_ACEOF
32063
32064 echo "$as_me:$LINENO: result: yes" >&5
32065echo "${ECHO_T}yes" >&6
32066 ;;
32067 no)
32068 eval "ac_cv_func_logwtmp=no"
32069 eval "LIB_logwtmp="
32070 echo "$as_me:$LINENO: result: no" >&5
32071echo "${ECHO_T}no" >&6
32072 ;;
32073 *)
32074 eval "ac_cv_func_logwtmp=yes"
32075 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32076 cat >>confdefs.h <<_ACEOF
32077#define $ac_tr_func 1
32078_ACEOF
32079
32080 cat >>confdefs.h <<_ACEOF
32081#define $ac_tr_lib 1
32082_ACEOF
32083
32084 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32085echo "${ECHO_T}yes, in $ac_res" >&6
32086 ;;
32087esac
32088
32089
32090
32091
32092
32093echo "$as_me:$LINENO: checking for logout" >&5
32094echo $ECHO_N "checking for logout... $ECHO_C" >&6
32095if test "${ac_cv_funclib_logout+set}" = set; then
32096 echo $ECHO_N "(cached) $ECHO_C" >&6
32097else
32098
32099if eval "test \"\$ac_cv_func_logout\" != yes" ; then
32100 ac_save_LIBS="$LIBS"
32101 for ac_lib in "" util; do
32102 case "$ac_lib" in
32103 "") ;;
32104 yes) ac_lib="" ;;
32105 no) continue ;;
32106 -l*) ;;
32107 *) ac_lib="-l$ac_lib" ;;
32108 esac
32109 LIBS=" $ac_lib $ac_save_LIBS"
32110 cat >conftest.$ac_ext <<_ACEOF
32111#line $LINENO "configure"
32112#include "confdefs.h"
32113
32114#ifdef F77_DUMMY_MAIN
32115# ifdef __cplusplus
32116 extern "C"
32117# endif
32118 int F77_DUMMY_MAIN() { return 1; }
32119#endif
32120int
32121main ()
32122{
32123logout()
32124 ;
32125 return 0;
32126}
32127_ACEOF
32128rm -f conftest.$ac_objext conftest$ac_exeext
32129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32130 (eval $ac_link) 2>&5
32131 ac_status=$?
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); } &&
32134 { ac_try='test -s conftest$ac_exeext'
32135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32136 (eval $ac_try) 2>&5
32137 ac_status=$?
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
32140 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
32141else
32142 echo "$as_me: failed program was:" >&5
32143cat conftest.$ac_ext >&5
32144fi
32145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32146 done
32147 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
32148 LIBS="$ac_save_LIBS"
32149fi
32150
32151fi
32152
32153
32154eval "ac_res=\$ac_cv_funclib_logout"
32155
32156if false; then
32157
32158for ac_func in logout
32159do
32160as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32161echo "$as_me:$LINENO: checking for $ac_func" >&5
32162echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32163if eval "test \"\${$as_ac_var+set}\" = set"; then
32164 echo $ECHO_N "(cached) $ECHO_C" >&6
32165else
32166 cat >conftest.$ac_ext <<_ACEOF
32167#line $LINENO "configure"
32168#include "confdefs.h"
32169/* System header to define __stub macros and hopefully few prototypes,
32170 which can conflict with char $ac_func (); below. */
32171#include <assert.h>
32172/* Override any gcc2 internal prototype to avoid an error. */
32173#ifdef __cplusplus
32174extern "C"
32175#endif
32176/* We use char because int might match the return type of a gcc2
32177 builtin and then its argument prototype would still apply. */
32178char $ac_func ();
32179char (*f) ();
32180
32181#ifdef F77_DUMMY_MAIN
32182# ifdef __cplusplus
32183 extern "C"
32184# endif
32185 int F77_DUMMY_MAIN() { return 1; }
32186#endif
32187int
32188main ()
32189{
32190/* The GNU C library defines this for functions which it implements
32191 to always fail with ENOSYS. Some functions are actually named
32192 something starting with __ and the normal name is an alias. */
32193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32194choke me
32195#else
32196f = $ac_func;
32197#endif
32198
32199 ;
32200 return 0;
32201}
32202_ACEOF
32203rm -f conftest.$ac_objext conftest$ac_exeext
32204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32205 (eval $ac_link) 2>&5
32206 ac_status=$?
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); } &&
32209 { ac_try='test -s conftest$ac_exeext'
32210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32211 (eval $ac_try) 2>&5
32212 ac_status=$?
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); }; }; then
32215 eval "$as_ac_var=yes"
32216else
32217 echo "$as_me: failed program was:" >&5
32218cat conftest.$ac_ext >&5
32219eval "$as_ac_var=no"
32220fi
32221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32222fi
32223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32225if test `eval echo '${'$as_ac_var'}'` = yes; then
32226 cat >>confdefs.h <<_ACEOF
32227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32228_ACEOF
32229
32230fi
32231done
32232
32233fi
32234# logout
32235eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32236eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32237eval "LIB_logout=$ac_res"
32238
32239case "$ac_res" in
32240 yes)
32241 eval "ac_cv_func_logout=yes"
32242 eval "LIB_logout="
32243 cat >>confdefs.h <<_ACEOF
32244#define $ac_tr_func 1
32245_ACEOF
32246
32247 echo "$as_me:$LINENO: result: yes" >&5
32248echo "${ECHO_T}yes" >&6
32249 ;;
32250 no)
32251 eval "ac_cv_func_logout=no"
32252 eval "LIB_logout="
32253 echo "$as_me:$LINENO: result: no" >&5
32254echo "${ECHO_T}no" >&6
32255 ;;
32256 *)
32257 eval "ac_cv_func_logout=yes"
32258 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32259 cat >>confdefs.h <<_ACEOF
32260#define $ac_tr_func 1
32261_ACEOF
32262
32263 cat >>confdefs.h <<_ACEOF
32264#define $ac_tr_lib 1
32265_ACEOF
32266
32267 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32268echo "${ECHO_T}yes, in $ac_res" >&6
32269 ;;
32270esac
32271
32272
32273
32274
32275
32276echo "$as_me:$LINENO: checking for openpty" >&5
32277echo $ECHO_N "checking for openpty... $ECHO_C" >&6
32278if test "${ac_cv_funclib_openpty+set}" = set; then
32279 echo $ECHO_N "(cached) $ECHO_C" >&6
32280else
32281
32282if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
32283 ac_save_LIBS="$LIBS"
32284 for ac_lib in "" util; do
32285 case "$ac_lib" in
32286 "") ;;
32287 yes) ac_lib="" ;;
32288 no) continue ;;
32289 -l*) ;;
32290 *) ac_lib="-l$ac_lib" ;;
32291 esac
32292 LIBS=" $ac_lib $ac_save_LIBS"
32293 cat >conftest.$ac_ext <<_ACEOF
32294#line $LINENO "configure"
32295#include "confdefs.h"
32296
32297#ifdef F77_DUMMY_MAIN
32298# ifdef __cplusplus
32299 extern "C"
32300# endif
32301 int F77_DUMMY_MAIN() { return 1; }
32302#endif
32303int
32304main ()
32305{
32306openpty()
32307 ;
32308 return 0;
32309}
32310_ACEOF
32311rm -f conftest.$ac_objext conftest$ac_exeext
32312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32313 (eval $ac_link) 2>&5
32314 ac_status=$?
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } &&
32317 { ac_try='test -s conftest$ac_exeext'
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32320 ac_status=$?
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
32323 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
32324else
32325 echo "$as_me: failed program was:" >&5
32326cat conftest.$ac_ext >&5
32327fi
32328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32329 done
32330 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
32331 LIBS="$ac_save_LIBS"
32332fi
32333
32334fi
32335
32336
32337eval "ac_res=\$ac_cv_funclib_openpty"
32338
32339if false; then
32340
32341for ac_func in openpty
32342do
32343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32344echo "$as_me:$LINENO: checking for $ac_func" >&5
32345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32346if eval "test \"\${$as_ac_var+set}\" = set"; then
32347 echo $ECHO_N "(cached) $ECHO_C" >&6
32348else
32349 cat >conftest.$ac_ext <<_ACEOF
32350#line $LINENO "configure"
32351#include "confdefs.h"
32352/* System header to define __stub macros and hopefully few prototypes,
32353 which can conflict with char $ac_func (); below. */
32354#include <assert.h>
32355/* Override any gcc2 internal prototype to avoid an error. */
32356#ifdef __cplusplus
32357extern "C"
32358#endif
32359/* We use char because int might match the return type of a gcc2
32360 builtin and then its argument prototype would still apply. */
32361char $ac_func ();
32362char (*f) ();
32363
32364#ifdef F77_DUMMY_MAIN
32365# ifdef __cplusplus
32366 extern "C"
32367# endif
32368 int F77_DUMMY_MAIN() { return 1; }
32369#endif
32370int
32371main ()
32372{
32373/* The GNU C library defines this for functions which it implements
32374 to always fail with ENOSYS. Some functions are actually named
32375 something starting with __ and the normal name is an alias. */
32376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32377choke me
32378#else
32379f = $ac_func;
32380#endif
32381
32382 ;
32383 return 0;
32384}
32385_ACEOF
32386rm -f conftest.$ac_objext conftest$ac_exeext
32387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32388 (eval $ac_link) 2>&5
32389 ac_status=$?
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } &&
32392 { ac_try='test -s conftest$ac_exeext'
32393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32394 (eval $ac_try) 2>&5
32395 ac_status=$?
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; }; then
32398 eval "$as_ac_var=yes"
32399else
32400 echo "$as_me: failed program was:" >&5
32401cat conftest.$ac_ext >&5
32402eval "$as_ac_var=no"
32403fi
32404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32405fi
32406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32408if test `eval echo '${'$as_ac_var'}'` = yes; then
32409 cat >>confdefs.h <<_ACEOF
32410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32411_ACEOF
32412
32413fi
32414done
32415
32416fi
32417# openpty
32418eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32419eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32420eval "LIB_openpty=$ac_res"
32421
32422case "$ac_res" in
32423 yes)
32424 eval "ac_cv_func_openpty=yes"
32425 eval "LIB_openpty="
32426 cat >>confdefs.h <<_ACEOF
32427#define $ac_tr_func 1
32428_ACEOF
32429
32430 echo "$as_me:$LINENO: result: yes" >&5
32431echo "${ECHO_T}yes" >&6
32432 ;;
32433 no)
32434 eval "ac_cv_func_openpty=no"
32435 eval "LIB_openpty="
32436 echo "$as_me:$LINENO: result: no" >&5
32437echo "${ECHO_T}no" >&6
32438 ;;
32439 *)
32440 eval "ac_cv_func_openpty=yes"
32441 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32442 cat >>confdefs.h <<_ACEOF
32443#define $ac_tr_func 1
32444_ACEOF
32445
32446 cat >>confdefs.h <<_ACEOF
32447#define $ac_tr_lib 1
32448_ACEOF
32449
32450 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32451echo "${ECHO_T}yes, in $ac_res" >&6
32452 ;;
32453esac
32454
32455
32456
32457
32458
32459echo "$as_me:$LINENO: checking for tgetent" >&5
32460echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
32461if test "${ac_cv_funclib_tgetent+set}" = set; then
32462 echo $ECHO_N "(cached) $ECHO_C" >&6
32463else
32464
32465if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
32466 ac_save_LIBS="$LIBS"
32467 for ac_lib in "" termcap ncurses curses; do
32468 case "$ac_lib" in
32469 "") ;;
32470 yes) ac_lib="" ;;
32471 no) continue ;;
32472 -l*) ;;
32473 *) ac_lib="-l$ac_lib" ;;
32474 esac
32475 LIBS=" $ac_lib $ac_save_LIBS"
32476 cat >conftest.$ac_ext <<_ACEOF
32477#line $LINENO "configure"
32478#include "confdefs.h"
32479
32480#ifdef F77_DUMMY_MAIN
32481# ifdef __cplusplus
32482 extern "C"
32483# endif
32484 int F77_DUMMY_MAIN() { return 1; }
32485#endif
32486int
32487main ()
32488{
32489tgetent()
32490 ;
32491 return 0;
32492}
32493_ACEOF
32494rm -f conftest.$ac_objext conftest$ac_exeext
32495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32496 (eval $ac_link) 2>&5
32497 ac_status=$?
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); } &&
32500 { ac_try='test -s conftest$ac_exeext'
32501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32502 (eval $ac_try) 2>&5
32503 ac_status=$?
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); }; }; then
32506 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
32507else
32508 echo "$as_me: failed program was:" >&5
32509cat conftest.$ac_ext >&5
32510fi
32511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32512 done
32513 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
32514 LIBS="$ac_save_LIBS"
32515fi
32516
32517fi
32518
32519
32520eval "ac_res=\$ac_cv_funclib_tgetent"
32521
32522if false; then
32523
32524for ac_func in tgetent
32525do
32526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32527echo "$as_me:$LINENO: checking for $ac_func" >&5
32528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32529if eval "test \"\${$as_ac_var+set}\" = set"; then
32530 echo $ECHO_N "(cached) $ECHO_C" >&6
32531else
32532 cat >conftest.$ac_ext <<_ACEOF
32533#line $LINENO "configure"
32534#include "confdefs.h"
32535/* System header to define __stub macros and hopefully few prototypes,
32536 which can conflict with char $ac_func (); below. */
32537#include <assert.h>
32538/* Override any gcc2 internal prototype to avoid an error. */
32539#ifdef __cplusplus
32540extern "C"
32541#endif
32542/* We use char because int might match the return type of a gcc2
32543 builtin and then its argument prototype would still apply. */
32544char $ac_func ();
32545char (*f) ();
32546
32547#ifdef F77_DUMMY_MAIN
32548# ifdef __cplusplus
32549 extern "C"
32550# endif
32551 int F77_DUMMY_MAIN() { return 1; }
32552#endif
32553int
32554main ()
32555{
32556/* The GNU C library defines this for functions which it implements
32557 to always fail with ENOSYS. Some functions are actually named
32558 something starting with __ and the normal name is an alias. */
32559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32560choke me
32561#else
32562f = $ac_func;
32563#endif
32564
32565 ;
32566 return 0;
32567}
32568_ACEOF
32569rm -f conftest.$ac_objext conftest$ac_exeext
32570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32571 (eval $ac_link) 2>&5
32572 ac_status=$?
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); } &&
32575 { ac_try='test -s conftest$ac_exeext'
32576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32577 (eval $ac_try) 2>&5
32578 ac_status=$?
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580 (exit $ac_status); }; }; then
32581 eval "$as_ac_var=yes"
32582else
32583 echo "$as_me: failed program was:" >&5
32584cat conftest.$ac_ext >&5
32585eval "$as_ac_var=no"
32586fi
32587rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32588fi
32589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32590echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32591if test `eval echo '${'$as_ac_var'}'` = yes; then
32592 cat >>confdefs.h <<_ACEOF
32593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32594_ACEOF
32595
32596fi
32597done
32598
32599fi
32600# tgetent
32601eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32602eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32603eval "LIB_tgetent=$ac_res"
32604
32605case "$ac_res" in
32606 yes)
32607 eval "ac_cv_func_tgetent=yes"
32608 eval "LIB_tgetent="
32609 cat >>confdefs.h <<_ACEOF
32610#define $ac_tr_func 1
32611_ACEOF
32612
32613 echo "$as_me:$LINENO: result: yes" >&5
32614echo "${ECHO_T}yes" >&6
32615 ;;
32616 no)
32617 eval "ac_cv_func_tgetent=no"
32618 eval "LIB_tgetent="
32619 echo "$as_me:$LINENO: result: no" >&5
32620echo "${ECHO_T}no" >&6
32621 ;;
32622 *)
32623 eval "ac_cv_func_tgetent=yes"
32624 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32625 cat >>confdefs.h <<_ACEOF
32626#define $ac_tr_func 1
32627_ACEOF
32628
32629 cat >>confdefs.h <<_ACEOF
32630#define $ac_tr_lib 1
32631_ACEOF
32632
32633 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32634echo "${ECHO_T}yes, in $ac_res" >&6
32635 ;;
32636esac
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669for ac_func in \
32670 _getpty \
32671 _scrsize \
32672 fcntl \
32673 grantpt \
32674 mktime \
32675 ptsname \
32676 rand \
32677 revoke \
32678 select \
32679 setitimer \
32680 setpcred \
32681 setpgid \
32682 setproctitle \
32683 setregid \
32684 setresgid \
32685 setresuid \
32686 setreuid \
32687 setsid \
32688 setutent \
32689 sigaction \
32690 strstr \
32691 timegm \
32692 ttyname \
32693 ttyslot \
32694 umask \
32695 unlockpt \
32696 vhangup \
32697 yp_get_default_domain \
32698
32699do
32700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32701echo "$as_me:$LINENO: checking for $ac_func" >&5
32702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32703if eval "test \"\${$as_ac_var+set}\" = set"; then
32704 echo $ECHO_N "(cached) $ECHO_C" >&6
32705else
32706 cat >conftest.$ac_ext <<_ACEOF
32707#line $LINENO "configure"
32708#include "confdefs.h"
32709/* System header to define __stub macros and hopefully few prototypes,
32710 which can conflict with char $ac_func (); below. */
32711#include <assert.h>
32712/* Override any gcc2 internal prototype to avoid an error. */
32713#ifdef __cplusplus
32714extern "C"
32715#endif
32716/* We use char because int might match the return type of a gcc2
32717 builtin and then its argument prototype would still apply. */
32718char $ac_func ();
32719char (*f) ();
32720
32721#ifdef F77_DUMMY_MAIN
32722# ifdef __cplusplus
32723 extern "C"
32724# endif
32725 int F77_DUMMY_MAIN() { return 1; }
32726#endif
32727int
32728main ()
32729{
32730/* The GNU C library defines this for functions which it implements
32731 to always fail with ENOSYS. Some functions are actually named
32732 something starting with __ and the normal name is an alias. */
32733#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32734choke me
32735#else
32736f = $ac_func;
32737#endif
32738
32739 ;
32740 return 0;
32741}
32742_ACEOF
32743rm -f conftest.$ac_objext conftest$ac_exeext
32744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32745 (eval $ac_link) 2>&5
32746 ac_status=$?
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); } &&
32749 { ac_try='test -s conftest$ac_exeext'
32750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751 (eval $ac_try) 2>&5
32752 ac_status=$?
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; }; then
32755 eval "$as_ac_var=yes"
32756else
32757 echo "$as_me: failed program was:" >&5
32758cat conftest.$ac_ext >&5
32759eval "$as_ac_var=no"
32760fi
32761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32762fi
32763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32765if test `eval echo '${'$as_ac_var'}'` = yes; then
32766 cat >>confdefs.h <<_ACEOF
32767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32768_ACEOF
32769
32770fi
32771done
32772
32773
32774
32775
32776for ac_header in stdlib.h unistd.h
32777do
32778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32779if eval "test \"\${$as_ac_Header+set}\" = set"; then
32780 echo "$as_me:$LINENO: checking for $ac_header" >&5
32781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32782if eval "test \"\${$as_ac_Header+set}\" = set"; then
32783 echo $ECHO_N "(cached) $ECHO_C" >&6
32784fi
32785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32787else
32788 # Is the header compilable?
32789echo "$as_me:$LINENO: checking $ac_header usability" >&5
32790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32791cat >conftest.$ac_ext <<_ACEOF
32792#line $LINENO "configure"
32793#include "confdefs.h"
32794$ac_includes_default
32795#include <$ac_header>
32796_ACEOF
32797rm -f conftest.$ac_objext
32798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32799 (eval $ac_compile) 2>&5
32800 ac_status=$?
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); } &&
32803 { ac_try='test -s conftest.$ac_objext'
32804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32805 (eval $ac_try) 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 ac_header_compiler=yes
32810else
32811 echo "$as_me: failed program was:" >&5
32812cat conftest.$ac_ext >&5
32813ac_header_compiler=no
32814fi
32815rm -f conftest.$ac_objext conftest.$ac_ext
32816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32817echo "${ECHO_T}$ac_header_compiler" >&6
32818
32819# Is the header present?
32820echo "$as_me:$LINENO: checking $ac_header presence" >&5
32821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32822cat >conftest.$ac_ext <<_ACEOF
32823#line $LINENO "configure"
32824#include "confdefs.h"
32825#include <$ac_header>
32826_ACEOF
32827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32829 ac_status=$?
32830 egrep -v '^ *\+' conftest.er1 >conftest.err
32831 rm -f conftest.er1
32832 cat conftest.err >&5
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); } >/dev/null; then
32835 if test -s conftest.err; then
32836 ac_cpp_err=$ac_c_preproc_warn_flag
32837 else
32838 ac_cpp_err=
32839 fi
32840else
32841 ac_cpp_err=yes
32842fi
32843if test -z "$ac_cpp_err"; then
32844 ac_header_preproc=yes
32845else
32846 echo "$as_me: failed program was:" >&5
32847 cat conftest.$ac_ext >&5
32848 ac_header_preproc=no
32849fi
32850rm -f conftest.err conftest.$ac_ext
32851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32852echo "${ECHO_T}$ac_header_preproc" >&6
32853
32854# So? What about this header?
32855case $ac_header_compiler:$ac_header_preproc in
32856 yes:no )
32857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32861 no:yes )
32862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32868esac
32869echo "$as_me:$LINENO: checking for $ac_header" >&5
32870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32871if eval "test \"\${$as_ac_Header+set}\" = set"; then
32872 echo $ECHO_N "(cached) $ECHO_C" >&6
32873else
32874 eval "$as_ac_Header=$ac_header_preproc"
32875fi
32876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32878
32879fi
32880if test `eval echo '${'$as_ac_Header'}'` = yes; then
32881 cat >>confdefs.h <<_ACEOF
32882#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32883_ACEOF
32884
32885fi
32886
32887done
32888
32889
32890for ac_func in getpagesize
32891do
32892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32893echo "$as_me:$LINENO: checking for $ac_func" >&5
32894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32895if eval "test \"\${$as_ac_var+set}\" = set"; then
32896 echo $ECHO_N "(cached) $ECHO_C" >&6
32897else
32898 cat >conftest.$ac_ext <<_ACEOF
32899#line $LINENO "configure"
32900#include "confdefs.h"
32901/* System header to define __stub macros and hopefully few prototypes,
32902 which can conflict with char $ac_func (); below. */
32903#include <assert.h>
32904/* Override any gcc2 internal prototype to avoid an error. */
32905#ifdef __cplusplus
32906extern "C"
32907#endif
32908/* We use char because int might match the return type of a gcc2
32909 builtin and then its argument prototype would still apply. */
32910char $ac_func ();
32911char (*f) ();
32912
32913#ifdef F77_DUMMY_MAIN
32914# ifdef __cplusplus
32915 extern "C"
32916# endif
32917 int F77_DUMMY_MAIN() { return 1; }
32918#endif
32919int
32920main ()
32921{
32922/* The GNU C library defines this for functions which it implements
32923 to always fail with ENOSYS. Some functions are actually named
32924 something starting with __ and the normal name is an alias. */
32925#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32926choke me
32927#else
32928f = $ac_func;
32929#endif
32930
32931 ;
32932 return 0;
32933}
32934_ACEOF
32935rm -f conftest.$ac_objext conftest$ac_exeext
32936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32937 (eval $ac_link) 2>&5
32938 ac_status=$?
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); } &&
32941 { ac_try='test -s conftest$ac_exeext'
32942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943 (eval $ac_try) 2>&5
32944 ac_status=$?
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; }; then
32947 eval "$as_ac_var=yes"
32948else
32949 echo "$as_me: failed program was:" >&5
32950cat conftest.$ac_ext >&5
32951eval "$as_ac_var=no"
32952fi
32953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32954fi
32955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32956echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32957if test `eval echo '${'$as_ac_var'}'` = yes; then
32958 cat >>confdefs.h <<_ACEOF
32959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32960_ACEOF
32961
32962fi
32963done
32964
32965echo "$as_me:$LINENO: checking for working mmap" >&5
32966echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
32967if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32968 echo $ECHO_N "(cached) $ECHO_C" >&6
32969else
32970 if test "$cross_compiling" = yes; then
32971 ac_cv_func_mmap_fixed_mapped=no
32972else
32973 cat >conftest.$ac_ext <<_ACEOF
32974#line $LINENO "configure"
32975#include "confdefs.h"
32976$ac_includes_default
32977/* malloc might have been renamed as rpl_malloc. */
32978#undef malloc
32979
32980/* Thanks to Mike Haertel and Jim Avera for this test.
32981 Here is a matrix of mmap possibilities:
32982 mmap private not fixed
32983 mmap private fixed at somewhere currently unmapped
32984 mmap private fixed at somewhere already mapped
32985 mmap shared not fixed
32986 mmap shared fixed at somewhere currently unmapped
32987 mmap shared fixed at somewhere already mapped
32988 For private mappings, we should verify that changes cannot be read()
32989 back from the file, nor mmap's back from the file at a different
32990 address. (There have been systems where private was not correctly
32991 implemented like the infamous i386 svr4.0, and systems where the
32992 VM page cache was not coherent with the file system buffer cache
32993 like early versions of FreeBSD and possibly contemporary NetBSD.)
32994 For shared mappings, we should conversely verify that changes get
32995 propagated back to all the places they're supposed to be.
32996
32997 Grep wants private fixed already mapped.
32998 The main things grep needs to know about mmap are:
32999 * does it exist and is it safe to write into the mmap'd area
33000 * how to use it (BSD variants) */
33001
33002#include <fcntl.h>
33003#include <sys/mman.h>
33004
33005#if !STDC_HEADERS && !HAVE_STDLIB_H
33006char *malloc ();
33007#endif
33008
33009/* This mess was copied from the GNU getpagesize.h. */
33010#if !HAVE_GETPAGESIZE
33011/* Assume that all systems that can run configure have sys/param.h. */
33012# if !HAVE_SYS_PARAM_H
33013# define HAVE_SYS_PARAM_H 1
33014# endif
33015
33016# ifdef _SC_PAGESIZE
33017# define getpagesize() sysconf(_SC_PAGESIZE)
33018# else /* no _SC_PAGESIZE */
33019# if HAVE_SYS_PARAM_H
33020# include <sys/param.h>
33021# ifdef EXEC_PAGESIZE
33022# define getpagesize() EXEC_PAGESIZE
33023# else /* no EXEC_PAGESIZE */
33024# ifdef NBPG
33025# define getpagesize() NBPG * CLSIZE
33026# ifndef CLSIZE
33027# define CLSIZE 1
33028# endif /* no CLSIZE */
33029# else /* no NBPG */
33030# ifdef NBPC
33031# define getpagesize() NBPC
33032# else /* no NBPC */
33033# ifdef PAGESIZE
33034# define getpagesize() PAGESIZE
33035# endif /* PAGESIZE */
33036# endif /* no NBPC */
33037# endif /* no NBPG */
33038# endif /* no EXEC_PAGESIZE */
33039# else /* no HAVE_SYS_PARAM_H */
33040# define getpagesize() 8192 /* punt totally */
33041# endif /* no HAVE_SYS_PARAM_H */
33042# endif /* no _SC_PAGESIZE */
33043
33044#endif /* no HAVE_GETPAGESIZE */
33045
33046int
33047main ()
33048{
33049 char *data, *data2, *data3;
33050 int i, pagesize;
33051 int fd;
33052
33053 pagesize = getpagesize ();
33054
33055 /* First, make a file with some known garbage in it. */
33056 data = (char *) malloc (pagesize);
33057 if (!data)
33058 exit (1);
33059 for (i = 0; i < pagesize; ++i)
33060 *(data + i) = rand ();
33061 umask (0);
33062 fd = creat ("conftest.mmap", 0600);
33063 if (fd < 0)
33064 exit (1);
33065 if (write (fd, data, pagesize) != pagesize)
33066 exit (1);
33067 close (fd);
33068
33069 /* Next, try to mmap the file at a fixed address which already has
33070 something else allocated at it. If we can, also make sure that
33071 we see the same garbage. */
33072 fd = open ("conftest.mmap", O_RDWR);
33073 if (fd < 0)
33074 exit (1);
33075 data2 = (char *) malloc (2 * pagesize);
33076 if (!data2)
33077 exit (1);
33078 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
33079 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33080 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33081 exit (1);
33082 for (i = 0; i < pagesize; ++i)
33083 if (*(data + i) != *(data2 + i))
33084 exit (1);
33085
33086 /* Finally, make sure that changes to the mapped area do not
33087 percolate back to the file as seen by read(). (This is a bug on
33088 some variants of i386 svr4.0.) */
33089 for (i = 0; i < pagesize; ++i)
33090 *(data2 + i) = *(data2 + i) + 1;
33091 data3 = (char *) malloc (pagesize);
33092 if (!data3)
33093 exit (1);
33094 if (read (fd, data3, pagesize) != pagesize)
33095 exit (1);
33096 for (i = 0; i < pagesize; ++i)
33097 if (*(data + i) != *(data3 + i))
33098 exit (1);
33099 close (fd);
33100 exit (0);
33101}
33102_ACEOF
33103rm -f conftest$ac_exeext
33104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33105 (eval $ac_link) 2>&5
33106 ac_status=$?
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33110 (eval $ac_try) 2>&5
33111 ac_status=$?
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); }; }; then
33114 ac_cv_func_mmap_fixed_mapped=yes
33115else
33116 echo "$as_me: program exited with status $ac_status" >&5
33117echo "$as_me: failed program was:" >&5
33118cat conftest.$ac_ext >&5
33119( exit $ac_status )
33120ac_cv_func_mmap_fixed_mapped=no
33121fi
33122rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33123fi
33124fi
33125echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33126echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
33127if test $ac_cv_func_mmap_fixed_mapped = yes; then
33128
33129cat >>confdefs.h <<\_ACEOF
33130#define HAVE_MMAP 1
33131_ACEOF
33132
33133fi
33134rm -f conftest.mmap
33135
33136
33137
33138
33139
33140
33141for ac_header in capability.h sys/capability.h
33142do
33143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33144if eval "test \"\${$as_ac_Header+set}\" = set"; then
33145 echo "$as_me:$LINENO: checking for $ac_header" >&5
33146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33147if eval "test \"\${$as_ac_Header+set}\" = set"; then
33148 echo $ECHO_N "(cached) $ECHO_C" >&6
33149fi
33150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33152else
33153 # Is the header compilable?
33154echo "$as_me:$LINENO: checking $ac_header usability" >&5
33155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33156cat >conftest.$ac_ext <<_ACEOF
33157#line $LINENO "configure"
33158#include "confdefs.h"
33159$ac_includes_default
33160#include <$ac_header>
33161_ACEOF
33162rm -f conftest.$ac_objext
33163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33164 (eval $ac_compile) 2>&5
33165 ac_status=$?
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); } &&
33168 { ac_try='test -s conftest.$ac_objext'
33169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33170 (eval $ac_try) 2>&5
33171 ac_status=$?
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; }; then
33174 ac_header_compiler=yes
33175else
33176 echo "$as_me: failed program was:" >&5
33177cat conftest.$ac_ext >&5
33178ac_header_compiler=no
33179fi
33180rm -f conftest.$ac_objext conftest.$ac_ext
33181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33182echo "${ECHO_T}$ac_header_compiler" >&6
33183
33184# Is the header present?
33185echo "$as_me:$LINENO: checking $ac_header presence" >&5
33186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33187cat >conftest.$ac_ext <<_ACEOF
33188#line $LINENO "configure"
33189#include "confdefs.h"
33190#include <$ac_header>
33191_ACEOF
33192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33194 ac_status=$?
33195 egrep -v '^ *\+' conftest.er1 >conftest.err
33196 rm -f conftest.er1
33197 cat conftest.err >&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } >/dev/null; then
33200 if test -s conftest.err; then
33201 ac_cpp_err=$ac_c_preproc_warn_flag
33202 else
33203 ac_cpp_err=
33204 fi
33205else
33206 ac_cpp_err=yes
33207fi
33208if test -z "$ac_cpp_err"; then
33209 ac_header_preproc=yes
33210else
33211 echo "$as_me: failed program was:" >&5
33212 cat conftest.$ac_ext >&5
33213 ac_header_preproc=no
33214fi
33215rm -f conftest.err conftest.$ac_ext
33216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33217echo "${ECHO_T}$ac_header_preproc" >&6
33218
33219# So? What about this header?
33220case $ac_header_compiler:$ac_header_preproc in
33221 yes:no )
33222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33226 no:yes )
33227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33230echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33233esac
33234echo "$as_me:$LINENO: checking for $ac_header" >&5
33235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33236if eval "test \"\${$as_ac_Header+set}\" = set"; then
33237 echo $ECHO_N "(cached) $ECHO_C" >&6
33238else
33239 eval "$as_ac_Header=$ac_header_preproc"
33240fi
33241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33243
33244fi
33245if test `eval echo '${'$as_ac_Header'}'` = yes; then
33246 cat >>confdefs.h <<_ACEOF
33247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33248_ACEOF
33249
33250fi
33251
33252done
33253
33254
33255
33256
33257for ac_func in sgi_getcapabilitybyname cap_set_proc
33258do
33259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33260echo "$as_me:$LINENO: checking for $ac_func" >&5
33261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33262if eval "test \"\${$as_ac_var+set}\" = set"; then
33263 echo $ECHO_N "(cached) $ECHO_C" >&6
33264else
33265 cat >conftest.$ac_ext <<_ACEOF
33266#line $LINENO "configure"
33267#include "confdefs.h"
33268/* System header to define __stub macros and hopefully few prototypes,
33269 which can conflict with char $ac_func (); below. */
33270#include <assert.h>
33271/* Override any gcc2 internal prototype to avoid an error. */
33272#ifdef __cplusplus
33273extern "C"
33274#endif
33275/* We use char because int might match the return type of a gcc2
33276 builtin and then its argument prototype would still apply. */
33277char $ac_func ();
33278char (*f) ();
33279
33280#ifdef F77_DUMMY_MAIN
33281# ifdef __cplusplus
33282 extern "C"
33283# endif
33284 int F77_DUMMY_MAIN() { return 1; }
33285#endif
33286int
33287main ()
33288{
33289/* The GNU C library defines this for functions which it implements
33290 to always fail with ENOSYS. Some functions are actually named
33291 something starting with __ and the normal name is an alias. */
33292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33293choke me
33294#else
33295f = $ac_func;
33296#endif
33297
33298 ;
33299 return 0;
33300}
33301_ACEOF
33302rm -f conftest.$ac_objext conftest$ac_exeext
33303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33304 (eval $ac_link) 2>&5
33305 ac_status=$?
33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307 (exit $ac_status); } &&
33308 { ac_try='test -s conftest$ac_exeext'
33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310 (eval $ac_try) 2>&5
33311 ac_status=$?
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; }; then
33314 eval "$as_ac_var=yes"
33315else
33316 echo "$as_me: failed program was:" >&5
33317cat conftest.$ac_ext >&5
33318eval "$as_ac_var=no"
33319fi
33320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33321fi
33322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33324if test `eval echo '${'$as_ac_var'}'` = yes; then
33325 cat >>confdefs.h <<_ACEOF
33326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33327_ACEOF
33328
33329fi
33330done
33331
33332
33333
33334
33335
33336
33337
33338echo "$as_me:$LINENO: checking for getpwnam_r" >&5
33339echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
33340if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
33341 echo $ECHO_N "(cached) $ECHO_C" >&6
33342else
33343
33344if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
33345 ac_save_LIBS="$LIBS"
33346 for ac_lib in "" c_r; do
33347 case "$ac_lib" in
33348 "") ;;
33349 yes) ac_lib="" ;;
33350 no) continue ;;
33351 -l*) ;;
33352 *) ac_lib="-l$ac_lib" ;;
33353 esac
33354 LIBS=" $ac_lib $ac_save_LIBS"
33355 cat >conftest.$ac_ext <<_ACEOF
33356#line $LINENO "configure"
33357#include "confdefs.h"
33358
33359#ifdef F77_DUMMY_MAIN
33360# ifdef __cplusplus
33361 extern "C"
33362# endif
33363 int F77_DUMMY_MAIN() { return 1; }
33364#endif
33365int
33366main ()
33367{
33368getpwnam_r()
33369 ;
33370 return 0;
33371}
33372_ACEOF
33373rm -f conftest.$ac_objext conftest$ac_exeext
33374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33375 (eval $ac_link) 2>&5
33376 ac_status=$?
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); } &&
33379 { ac_try='test -s conftest$ac_exeext'
33380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33381 (eval $ac_try) 2>&5
33382 ac_status=$?
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); }; }; then
33385 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
33386else
33387 echo "$as_me: failed program was:" >&5
33388cat conftest.$ac_ext >&5
33389fi
33390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33391 done
33392 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
33393 LIBS="$ac_save_LIBS"
33394fi
33395
33396fi
33397
33398
33399eval "ac_res=\$ac_cv_funclib_getpwnam_r"
33400
33401if false; then
33402
33403for ac_func in getpwnam_r
33404do
33405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33406echo "$as_me:$LINENO: checking for $ac_func" >&5
33407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33408if eval "test \"\${$as_ac_var+set}\" = set"; then
33409 echo $ECHO_N "(cached) $ECHO_C" >&6
33410else
33411 cat >conftest.$ac_ext <<_ACEOF
33412#line $LINENO "configure"
33413#include "confdefs.h"
33414/* System header to define __stub macros and hopefully few prototypes,
33415 which can conflict with char $ac_func (); below. */
33416#include <assert.h>
33417/* Override any gcc2 internal prototype to avoid an error. */
33418#ifdef __cplusplus
33419extern "C"
33420#endif
33421/* We use char because int might match the return type of a gcc2
33422 builtin and then its argument prototype would still apply. */
33423char $ac_func ();
33424char (*f) ();
33425
33426#ifdef F77_DUMMY_MAIN
33427# ifdef __cplusplus
33428 extern "C"
33429# endif
33430 int F77_DUMMY_MAIN() { return 1; }
33431#endif
33432int
33433main ()
33434{
33435/* The GNU C library defines this for functions which it implements
33436 to always fail with ENOSYS. Some functions are actually named
33437 something starting with __ and the normal name is an alias. */
33438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33439choke me
33440#else
33441f = $ac_func;
33442#endif
33443
33444 ;
33445 return 0;
33446}
33447_ACEOF
33448rm -f conftest.$ac_objext conftest$ac_exeext
33449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33450 (eval $ac_link) 2>&5
33451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); } &&
33454 { ac_try='test -s conftest$ac_exeext'
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33457 ac_status=$?
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; }; then
33460 eval "$as_ac_var=yes"
33461else
33462 echo "$as_me: failed program was:" >&5
33463cat conftest.$ac_ext >&5
33464eval "$as_ac_var=no"
33465fi
33466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33467fi
33468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33470if test `eval echo '${'$as_ac_var'}'` = yes; then
33471 cat >>confdefs.h <<_ACEOF
33472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33473_ACEOF
33474
33475fi
33476done
33477
33478fi
33479# getpwnam_r
33480eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33481eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33482eval "LIB_getpwnam_r=$ac_res"
33483
33484case "$ac_res" in
33485 yes)
33486 eval "ac_cv_func_getpwnam_r=yes"
33487 eval "LIB_getpwnam_r="
33488 cat >>confdefs.h <<_ACEOF
33489#define $ac_tr_func 1
33490_ACEOF
33491
33492 echo "$as_me:$LINENO: result: yes" >&5
33493echo "${ECHO_T}yes" >&6
33494 ;;
33495 no)
33496 eval "ac_cv_func_getpwnam_r=no"
33497 eval "LIB_getpwnam_r="
33498 echo "$as_me:$LINENO: result: no" >&5
33499echo "${ECHO_T}no" >&6
33500 ;;
33501 *)
33502 eval "ac_cv_func_getpwnam_r=yes"
33503 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
33504 cat >>confdefs.h <<_ACEOF
33505#define $ac_tr_func 1
33506_ACEOF
33507
33508 cat >>confdefs.h <<_ACEOF
33509#define $ac_tr_lib 1
33510_ACEOF
33511
33512 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
33513echo "${ECHO_T}yes, in $ac_res" >&6
33514 ;;
33515esac
33516
33517
33518if test "$ac_cv_func_getpwnam_r" = yes; then
33519 echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
33520echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
33521if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
33522 echo $ECHO_N "(cached) $ECHO_C" >&6
33523else
33524 ac_libs="$LIBS"
33525 LIBS="$LIBS $LIB_getpwnam_r"
33526 if test "$cross_compiling" = yes; then
33527 :
33528else
33529 cat >conftest.$ac_ext <<_ACEOF
33530#line $LINENO "configure"
33531#include "confdefs.h"
33532
33533#include <pwd.h>
33534int main()
33535{
33536 struct passwd pw, *pwd;
33537 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
33538}
33539
33540_ACEOF
33541rm -f conftest$ac_exeext
33542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33543 (eval $ac_link) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548 (eval $ac_try) 2>&5
33549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; }; then
33552 ac_cv_func_getpwnam_r_posix=yes
33553else
33554 echo "$as_me: program exited with status $ac_status" >&5
33555echo "$as_me: failed program was:" >&5
33556cat conftest.$ac_ext >&5
33557( exit $ac_status )
33558ac_cv_func_getpwnam_r_posix=no
33559fi
33560rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33561fi
33562LIBS="$ac_libs"
33563fi
33564echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
33565echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
33566if test "$ac_cv_func_getpwnam_r_posix" = yes; then
33567
33568cat >>confdefs.h <<\_ACEOF
33569#define POSIX_GETPWNAM_R 1
33570_ACEOF
33571
33572fi
33573fi
33574
33575
33576
33577
33578for ac_func in getudbnam setlim
33579do
33580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33581echo "$as_me:$LINENO: checking for $ac_func" >&5
33582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33583if eval "test \"\${$as_ac_var+set}\" = set"; then
33584 echo $ECHO_N "(cached) $ECHO_C" >&6
33585else
33586 cat >conftest.$ac_ext <<_ACEOF
33587#line $LINENO "configure"
33588#include "confdefs.h"
33589/* System header to define __stub macros and hopefully few prototypes,
33590 which can conflict with char $ac_func (); below. */
33591#include <assert.h>
33592/* Override any gcc2 internal prototype to avoid an error. */
33593#ifdef __cplusplus
33594extern "C"
33595#endif
33596/* We use char because int might match the return type of a gcc2
33597 builtin and then its argument prototype would still apply. */
33598char $ac_func ();
33599char (*f) ();
33600
33601#ifdef F77_DUMMY_MAIN
33602# ifdef __cplusplus
33603 extern "C"
33604# endif
33605 int F77_DUMMY_MAIN() { return 1; }
33606#endif
33607int
33608main ()
33609{
33610/* The GNU C library defines this for functions which it implements
33611 to always fail with ENOSYS. Some functions are actually named
33612 something starting with __ and the normal name is an alias. */
33613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33614choke me
33615#else
33616f = $ac_func;
33617#endif
33618
33619 ;
33620 return 0;
33621}
33622_ACEOF
33623rm -f conftest.$ac_objext conftest$ac_exeext
33624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33625 (eval $ac_link) 2>&5
33626 ac_status=$?
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); } &&
33629 { ac_try='test -s conftest$ac_exeext'
33630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33631 (eval $ac_try) 2>&5
33632 ac_status=$?
33633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634 (exit $ac_status); }; }; then
33635 eval "$as_ac_var=yes"
33636else
33637 echo "$as_me: failed program was:" >&5
33638cat conftest.$ac_ext >&5
33639eval "$as_ac_var=no"
33640fi
33641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33642fi
33643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33645if test `eval echo '${'$as_ac_var'}'` = yes; then
33646 cat >>confdefs.h <<_ACEOF
33647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33648_ACEOF
33649
33650fi
33651done
33652
33653
33654
33655
33656
33657
33658echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
33659echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
33660if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
33661 echo $ECHO_N "(cached) $ECHO_C" >&6
33662else
33663
33664cat >conftest.$ac_ext <<_ACEOF
33665#line $LINENO "configure"
33666#include "confdefs.h"
33667#include <utmp.h>
33668#ifdef F77_DUMMY_MAIN
33669# ifdef __cplusplus
33670 extern "C"
33671# endif
33672 int F77_DUMMY_MAIN() { return 1; }
33673#endif
33674int
33675main ()
33676{
33677struct utmp x; x.ut_addr;
33678 ;
33679 return 0;
33680}
33681_ACEOF
33682rm -f conftest.$ac_objext
33683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33684 (eval $ac_compile) 2>&5
33685 ac_status=$?
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } &&
33688 { ac_try='test -s conftest.$ac_objext'
33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690 (eval $ac_try) 2>&5
33691 ac_status=$?
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); }; }; then
33694 ac_cv_type_struct_utmp_ut_addr=yes
33695else
33696 echo "$as_me: failed program was:" >&5
33697cat conftest.$ac_ext >&5
33698ac_cv_type_struct_utmp_ut_addr=no
33699fi
33700rm -f conftest.$ac_objext conftest.$ac_ext
33701fi
33702echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
33703echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
33704if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
33705
33706
33707cat >>confdefs.h <<\_ACEOF
33708#define HAVE_STRUCT_UTMP_UT_ADDR 1
33709_ACEOF
33710
33711
33712fi
33713
33714
33715
33716
33717echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
33718echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
33719if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
33721else
33722
33723cat >conftest.$ac_ext <<_ACEOF
33724#line $LINENO "configure"
33725#include "confdefs.h"
33726#include <utmp.h>
33727#ifdef F77_DUMMY_MAIN
33728# ifdef __cplusplus
33729 extern "C"
33730# endif
33731 int F77_DUMMY_MAIN() { return 1; }
33732#endif
33733int
33734main ()
33735{
33736struct utmp x; x.ut_host;
33737 ;
33738 return 0;
33739}
33740_ACEOF
33741rm -f conftest.$ac_objext
33742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33743 (eval $ac_compile) 2>&5
33744 ac_status=$?
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } &&
33747 { ac_try='test -s conftest.$ac_objext'
33748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749 (eval $ac_try) 2>&5
33750 ac_status=$?
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; }; then
33753 ac_cv_type_struct_utmp_ut_host=yes
33754else
33755 echo "$as_me: failed program was:" >&5
33756cat conftest.$ac_ext >&5
33757ac_cv_type_struct_utmp_ut_host=no
33758fi
33759rm -f conftest.$ac_objext conftest.$ac_ext
33760fi
33761echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
33762echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
33763if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
33764
33765
33766cat >>confdefs.h <<\_ACEOF
33767#define HAVE_STRUCT_UTMP_UT_HOST 1
33768_ACEOF
33769
33770
33771fi
33772
33773
33774
33775
33776echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
33777echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
33778if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
33779 echo $ECHO_N "(cached) $ECHO_C" >&6
33780else
33781
33782cat >conftest.$ac_ext <<_ACEOF
33783#line $LINENO "configure"
33784#include "confdefs.h"
33785#include <utmp.h>
33786#ifdef F77_DUMMY_MAIN
33787# ifdef __cplusplus
33788 extern "C"
33789# endif
33790 int F77_DUMMY_MAIN() { return 1; }
33791#endif
33792int
33793main ()
33794{
33795struct utmp x; x.ut_id;
33796 ;
33797 return 0;
33798}
33799_ACEOF
33800rm -f conftest.$ac_objext
33801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33802 (eval $ac_compile) 2>&5
33803 ac_status=$?
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } &&
33806 { ac_try='test -s conftest.$ac_objext'
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 ac_cv_type_struct_utmp_ut_id=yes
33813else
33814 echo "$as_me: failed program was:" >&5
33815cat conftest.$ac_ext >&5
33816ac_cv_type_struct_utmp_ut_id=no
33817fi
33818rm -f conftest.$ac_objext conftest.$ac_ext
33819fi
33820echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
33821echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
33822if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
33823
33824
33825cat >>confdefs.h <<\_ACEOF
33826#define HAVE_STRUCT_UTMP_UT_ID 1
33827_ACEOF
33828
33829
33830fi
33831
33832
33833
33834
33835echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
33836echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
33837if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33839else
33840
33841cat >conftest.$ac_ext <<_ACEOF
33842#line $LINENO "configure"
33843#include "confdefs.h"
33844#include <utmp.h>
33845#ifdef F77_DUMMY_MAIN
33846# ifdef __cplusplus
33847 extern "C"
33848# endif
33849 int F77_DUMMY_MAIN() { return 1; }
33850#endif
33851int
33852main ()
33853{
33854struct utmp x; x.ut_pid;
33855 ;
33856 return 0;
33857}
33858_ACEOF
33859rm -f conftest.$ac_objext
33860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33861 (eval $ac_compile) 2>&5
33862 ac_status=$?
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); } &&
33865 { ac_try='test -s conftest.$ac_objext'
33866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33867 (eval $ac_try) 2>&5
33868 ac_status=$?
33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870 (exit $ac_status); }; }; then
33871 ac_cv_type_struct_utmp_ut_pid=yes
33872else
33873 echo "$as_me: failed program was:" >&5
33874cat conftest.$ac_ext >&5
33875ac_cv_type_struct_utmp_ut_pid=no
33876fi
33877rm -f conftest.$ac_objext conftest.$ac_ext
33878fi
33879echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
33880echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
33881if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
33882
33883
33884cat >>confdefs.h <<\_ACEOF
33885#define HAVE_STRUCT_UTMP_UT_PID 1
33886_ACEOF
33887
33888
33889fi
33890
33891
33892
33893
33894echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
33895echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
33896if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
33897 echo $ECHO_N "(cached) $ECHO_C" >&6
33898else
33899
33900cat >conftest.$ac_ext <<_ACEOF
33901#line $LINENO "configure"
33902#include "confdefs.h"
33903#include <utmp.h>
33904#ifdef F77_DUMMY_MAIN
33905# ifdef __cplusplus
33906 extern "C"
33907# endif
33908 int F77_DUMMY_MAIN() { return 1; }
33909#endif
33910int
33911main ()
33912{
33913struct utmp x; x.ut_type;
33914 ;
33915 return 0;
33916}
33917_ACEOF
33918rm -f conftest.$ac_objext
33919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33920 (eval $ac_compile) 2>&5
33921 ac_status=$?
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); } &&
33924 { ac_try='test -s conftest.$ac_objext'
33925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33926 (eval $ac_try) 2>&5
33927 ac_status=$?
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); }; }; then
33930 ac_cv_type_struct_utmp_ut_type=yes
33931else
33932 echo "$as_me: failed program was:" >&5
33933cat conftest.$ac_ext >&5
33934ac_cv_type_struct_utmp_ut_type=no
33935fi
33936rm -f conftest.$ac_objext conftest.$ac_ext
33937fi
33938echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
33939echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
33940if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
33941
33942
33943cat >>confdefs.h <<\_ACEOF
33944#define HAVE_STRUCT_UTMP_UT_TYPE 1
33945_ACEOF
33946
33947
33948fi
33949
33950
33951
33952
33953echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
33954echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
33955if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
33956 echo $ECHO_N "(cached) $ECHO_C" >&6
33957else
33958
33959cat >conftest.$ac_ext <<_ACEOF
33960#line $LINENO "configure"
33961#include "confdefs.h"
33962#include <utmp.h>
33963#ifdef F77_DUMMY_MAIN
33964# ifdef __cplusplus
33965 extern "C"
33966# endif
33967 int F77_DUMMY_MAIN() { return 1; }
33968#endif
33969int
33970main ()
33971{
33972struct utmp x; x.ut_user;
33973 ;
33974 return 0;
33975}
33976_ACEOF
33977rm -f conftest.$ac_objext
33978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33979 (eval $ac_compile) 2>&5
33980 ac_status=$?
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); } &&
33983 { ac_try='test -s conftest.$ac_objext'
33984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33985 (eval $ac_try) 2>&5
33986 ac_status=$?
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); }; }; then
33989 ac_cv_type_struct_utmp_ut_user=yes
33990else
33991 echo "$as_me: failed program was:" >&5
33992cat conftest.$ac_ext >&5
33993ac_cv_type_struct_utmp_ut_user=no
33994fi
33995rm -f conftest.$ac_objext conftest.$ac_ext
33996fi
33997echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
33998echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
33999if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
34000
34001
34002cat >>confdefs.h <<\_ACEOF
34003#define HAVE_STRUCT_UTMP_UT_USER 1
34004_ACEOF
34005
34006
34007fi
34008
34009
34010
34011
34012echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
34013echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
34014if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
34015 echo $ECHO_N "(cached) $ECHO_C" >&6
34016else
34017
34018cat >conftest.$ac_ext <<_ACEOF
34019#line $LINENO "configure"
34020#include "confdefs.h"
34021#include <utmpx.h>
34022#ifdef F77_DUMMY_MAIN
34023# ifdef __cplusplus
34024 extern "C"
34025# endif
34026 int F77_DUMMY_MAIN() { return 1; }
34027#endif
34028int
34029main ()
34030{
34031struct utmpx x; x.ut_exit;
34032 ;
34033 return 0;
34034}
34035_ACEOF
34036rm -f conftest.$ac_objext
34037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34038 (eval $ac_compile) 2>&5
34039 ac_status=$?
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 (exit $ac_status); } &&
34042 { ac_try='test -s conftest.$ac_objext'
34043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34044 (eval $ac_try) 2>&5
34045 ac_status=$?
34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); }; }; then
34048 ac_cv_type_struct_utmpx_ut_exit=yes
34049else
34050 echo "$as_me: failed program was:" >&5
34051cat conftest.$ac_ext >&5
34052ac_cv_type_struct_utmpx_ut_exit=no
34053fi
34054rm -f conftest.$ac_objext conftest.$ac_ext
34055fi
34056echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
34057echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
34058if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
34059
34060
34061cat >>confdefs.h <<\_ACEOF
34062#define HAVE_STRUCT_UTMPX_UT_EXIT 1
34063_ACEOF
34064
34065
34066fi
34067
34068
34069
34070
34071echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
34072echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
34073if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
34074 echo $ECHO_N "(cached) $ECHO_C" >&6
34075else
34076
34077cat >conftest.$ac_ext <<_ACEOF
34078#line $LINENO "configure"
34079#include "confdefs.h"
34080#include <utmpx.h>
34081#ifdef F77_DUMMY_MAIN
34082# ifdef __cplusplus
34083 extern "C"
34084# endif
34085 int F77_DUMMY_MAIN() { return 1; }
34086#endif
34087int
34088main ()
34089{
34090struct utmpx x; x.ut_syslen;
34091 ;
34092 return 0;
34093}
34094_ACEOF
34095rm -f conftest.$ac_objext
34096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34097 (eval $ac_compile) 2>&5
34098 ac_status=$?
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); } &&
34101 { ac_try='test -s conftest.$ac_objext'
34102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103 (eval $ac_try) 2>&5
34104 ac_status=$?
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; }; then
34107 ac_cv_type_struct_utmpx_ut_syslen=yes
34108else
34109 echo "$as_me: failed program was:" >&5
34110cat conftest.$ac_ext >&5
34111ac_cv_type_struct_utmpx_ut_syslen=no
34112fi
34113rm -f conftest.$ac_objext conftest.$ac_ext
34114fi
34115echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
34116echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
34117if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
34118
34119
34120cat >>confdefs.h <<\_ACEOF
34121#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
34122_ACEOF
34123
34124
34125fi
34126
34127
34128
34129echo "$as_me:$LINENO: checking for int8_t" >&5
34130echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
34131if test "${ac_cv_type_int8_t+set}" = set; then
34132 echo $ECHO_N "(cached) $ECHO_C" >&6
34133else
34134 cat >conftest.$ac_ext <<_ACEOF
34135#line $LINENO "configure"
34136#include "confdefs.h"
34137
34138#ifdef HAVE_INTTYPES_H
34139#include <inttypes.h>
34140#endif
34141#ifdef HAVE_SYS_TYPES_H
34142#include <sys/types.h>
34143#endif
34144#ifdef HAVE_SYS_BITYPES_H
34145#include <sys/bitypes.h>
34146#endif
34147#ifdef HAVE_BIND_BITYPES_H
34148#include <bind/bitypes.h>
34149#endif
34150#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34151#include <netinet/in6_machtypes.h>
34152#endif
34153
34154
34155#ifdef F77_DUMMY_MAIN
34156# ifdef __cplusplus
34157 extern "C"
34158# endif
34159 int F77_DUMMY_MAIN() { return 1; }
34160#endif
34161int
34162main ()
34163{
34164if ((int8_t *) 0)
34165 return 0;
34166if (sizeof (int8_t))
34167 return 0;
34168 ;
34169 return 0;
34170}
34171_ACEOF
34172rm -f conftest.$ac_objext
34173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34174 (eval $ac_compile) 2>&5
34175 ac_status=$?
34176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177 (exit $ac_status); } &&
34178 { ac_try='test -s conftest.$ac_objext'
34179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34180 (eval $ac_try) 2>&5
34181 ac_status=$?
34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183 (exit $ac_status); }; }; then
34184 ac_cv_type_int8_t=yes
34185else
34186 echo "$as_me: failed program was:" >&5
34187cat conftest.$ac_ext >&5
34188ac_cv_type_int8_t=no
34189fi
34190rm -f conftest.$ac_objext conftest.$ac_ext
34191fi
34192echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
34193echo "${ECHO_T}$ac_cv_type_int8_t" >&6
34194if test $ac_cv_type_int8_t = yes; then
34195
34196cat >>confdefs.h <<_ACEOF
34197#define HAVE_INT8_T 1
34198_ACEOF
34199
34200
34201fi
34202echo "$as_me:$LINENO: checking for int16_t" >&5
34203echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
34204if test "${ac_cv_type_int16_t+set}" = set; then
34205 echo $ECHO_N "(cached) $ECHO_C" >&6
34206else
34207 cat >conftest.$ac_ext <<_ACEOF
34208#line $LINENO "configure"
34209#include "confdefs.h"
34210
34211#ifdef HAVE_INTTYPES_H
34212#include <inttypes.h>
34213#endif
34214#ifdef HAVE_SYS_TYPES_H
34215#include <sys/types.h>
34216#endif
34217#ifdef HAVE_SYS_BITYPES_H
34218#include <sys/bitypes.h>
34219#endif
34220#ifdef HAVE_BIND_BITYPES_H
34221#include <bind/bitypes.h>
34222#endif
34223#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34224#include <netinet/in6_machtypes.h>
34225#endif
34226
34227
34228#ifdef F77_DUMMY_MAIN
34229# ifdef __cplusplus
34230 extern "C"
34231# endif
34232 int F77_DUMMY_MAIN() { return 1; }
34233#endif
34234int
34235main ()
34236{
34237if ((int16_t *) 0)
34238 return 0;
34239if (sizeof (int16_t))
34240 return 0;
34241 ;
34242 return 0;
34243}
34244_ACEOF
34245rm -f conftest.$ac_objext
34246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34247 (eval $ac_compile) 2>&5
34248 ac_status=$?
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); } &&
34251 { ac_try='test -s conftest.$ac_objext'
34252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253 (eval $ac_try) 2>&5
34254 ac_status=$?
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); }; }; then
34257 ac_cv_type_int16_t=yes
34258else
34259 echo "$as_me: failed program was:" >&5
34260cat conftest.$ac_ext >&5
34261ac_cv_type_int16_t=no
34262fi
34263rm -f conftest.$ac_objext conftest.$ac_ext
34264fi
34265echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
34266echo "${ECHO_T}$ac_cv_type_int16_t" >&6
34267if test $ac_cv_type_int16_t = yes; then
34268
34269cat >>confdefs.h <<_ACEOF
34270#define HAVE_INT16_T 1
34271_ACEOF
34272
34273
34274fi
34275echo "$as_me:$LINENO: checking for int32_t" >&5
34276echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
34277if test "${ac_cv_type_int32_t+set}" = set; then
34278 echo $ECHO_N "(cached) $ECHO_C" >&6
34279else
34280 cat >conftest.$ac_ext <<_ACEOF
34281#line $LINENO "configure"
34282#include "confdefs.h"
34283
34284#ifdef HAVE_INTTYPES_H
34285#include <inttypes.h>
34286#endif
34287#ifdef HAVE_SYS_TYPES_H
34288#include <sys/types.h>
34289#endif
34290#ifdef HAVE_SYS_BITYPES_H
34291#include <sys/bitypes.h>
34292#endif
34293#ifdef HAVE_BIND_BITYPES_H
34294#include <bind/bitypes.h>
34295#endif
34296#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34297#include <netinet/in6_machtypes.h>
34298#endif
34299
34300
34301#ifdef F77_DUMMY_MAIN
34302# ifdef __cplusplus
34303 extern "C"
34304# endif
34305 int F77_DUMMY_MAIN() { return 1; }
34306#endif
34307int
34308main ()
34309{
34310if ((int32_t *) 0)
34311 return 0;
34312if (sizeof (int32_t))
34313 return 0;
34314 ;
34315 return 0;
34316}
34317_ACEOF
34318rm -f conftest.$ac_objext
34319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34320 (eval $ac_compile) 2>&5
34321 ac_status=$?
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323 (exit $ac_status); } &&
34324 { ac_try='test -s conftest.$ac_objext'
34325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34326 (eval $ac_try) 2>&5
34327 ac_status=$?
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); }; }; then
34330 ac_cv_type_int32_t=yes
34331else
34332 echo "$as_me: failed program was:" >&5
34333cat conftest.$ac_ext >&5
34334ac_cv_type_int32_t=no
34335fi
34336rm -f conftest.$ac_objext conftest.$ac_ext
34337fi
34338echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
34339echo "${ECHO_T}$ac_cv_type_int32_t" >&6
34340if test $ac_cv_type_int32_t = yes; then
34341
34342cat >>confdefs.h <<_ACEOF
34343#define HAVE_INT32_T 1
34344_ACEOF
34345
34346
34347fi
34348echo "$as_me:$LINENO: checking for int64_t" >&5
34349echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
34350if test "${ac_cv_type_int64_t+set}" = set; then
34351 echo $ECHO_N "(cached) $ECHO_C" >&6
34352else
34353 cat >conftest.$ac_ext <<_ACEOF
34354#line $LINENO "configure"
34355#include "confdefs.h"
34356
34357#ifdef HAVE_INTTYPES_H
34358#include <inttypes.h>
34359#endif
34360#ifdef HAVE_SYS_TYPES_H
34361#include <sys/types.h>
34362#endif
34363#ifdef HAVE_SYS_BITYPES_H
34364#include <sys/bitypes.h>
34365#endif
34366#ifdef HAVE_BIND_BITYPES_H
34367#include <bind/bitypes.h>
34368#endif
34369#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34370#include <netinet/in6_machtypes.h>
34371#endif
34372
34373
34374#ifdef F77_DUMMY_MAIN
34375# ifdef __cplusplus
34376 extern "C"
34377# endif
34378 int F77_DUMMY_MAIN() { return 1; }
34379#endif
34380int
34381main ()
34382{
34383if ((int64_t *) 0)
34384 return 0;
34385if (sizeof (int64_t))
34386 return 0;
34387 ;
34388 return 0;
34389}
34390_ACEOF
34391rm -f conftest.$ac_objext
34392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34393 (eval $ac_compile) 2>&5
34394 ac_status=$?
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); } &&
34397 { ac_try='test -s conftest.$ac_objext'
34398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399 (eval $ac_try) 2>&5
34400 ac_status=$?
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); }; }; then
34403 ac_cv_type_int64_t=yes
34404else
34405 echo "$as_me: failed program was:" >&5
34406cat conftest.$ac_ext >&5
34407ac_cv_type_int64_t=no
34408fi
34409rm -f conftest.$ac_objext conftest.$ac_ext
34410fi
34411echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
34412echo "${ECHO_T}$ac_cv_type_int64_t" >&6
34413if test $ac_cv_type_int64_t = yes; then
34414
34415cat >>confdefs.h <<_ACEOF
34416#define HAVE_INT64_T 1
34417_ACEOF
34418
34419
34420fi
34421echo "$as_me:$LINENO: checking for u_int8_t" >&5
34422echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
34423if test "${ac_cv_type_u_int8_t+set}" = set; then
34424 echo $ECHO_N "(cached) $ECHO_C" >&6
34425else
34426 cat >conftest.$ac_ext <<_ACEOF
34427#line $LINENO "configure"
34428#include "confdefs.h"
34429
34430#ifdef HAVE_INTTYPES_H
34431#include <inttypes.h>
34432#endif
34433#ifdef HAVE_SYS_TYPES_H
34434#include <sys/types.h>
34435#endif
34436#ifdef HAVE_SYS_BITYPES_H
34437#include <sys/bitypes.h>
34438#endif
34439#ifdef HAVE_BIND_BITYPES_H
34440#include <bind/bitypes.h>
34441#endif
34442#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34443#include <netinet/in6_machtypes.h>
34444#endif
34445
34446
34447#ifdef F77_DUMMY_MAIN
34448# ifdef __cplusplus
34449 extern "C"
34450# endif
34451 int F77_DUMMY_MAIN() { return 1; }
34452#endif
34453int
34454main ()
34455{
34456if ((u_int8_t *) 0)
34457 return 0;
34458if (sizeof (u_int8_t))
34459 return 0;
34460 ;
34461 return 0;
34462}
34463_ACEOF
34464rm -f conftest.$ac_objext
34465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34466 (eval $ac_compile) 2>&5
34467 ac_status=$?
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); } &&
34470 { ac_try='test -s conftest.$ac_objext'
34471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472 (eval $ac_try) 2>&5
34473 ac_status=$?
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; }; then
34476 ac_cv_type_u_int8_t=yes
34477else
34478 echo "$as_me: failed program was:" >&5
34479cat conftest.$ac_ext >&5
34480ac_cv_type_u_int8_t=no
34481fi
34482rm -f conftest.$ac_objext conftest.$ac_ext
34483fi
34484echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
34485echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
34486if test $ac_cv_type_u_int8_t = yes; then
34487
34488cat >>confdefs.h <<_ACEOF
34489#define HAVE_U_INT8_T 1
34490_ACEOF
34491
34492
34493fi
34494echo "$as_me:$LINENO: checking for u_int16_t" >&5
34495echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
34496if test "${ac_cv_type_u_int16_t+set}" = set; then
34497 echo $ECHO_N "(cached) $ECHO_C" >&6
34498else
34499 cat >conftest.$ac_ext <<_ACEOF
34500#line $LINENO "configure"
34501#include "confdefs.h"
34502
34503#ifdef HAVE_INTTYPES_H
34504#include <inttypes.h>
34505#endif
34506#ifdef HAVE_SYS_TYPES_H
34507#include <sys/types.h>
34508#endif
34509#ifdef HAVE_SYS_BITYPES_H
34510#include <sys/bitypes.h>
34511#endif
34512#ifdef HAVE_BIND_BITYPES_H
34513#include <bind/bitypes.h>
34514#endif
34515#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34516#include <netinet/in6_machtypes.h>
34517#endif
34518
34519
34520#ifdef F77_DUMMY_MAIN
34521# ifdef __cplusplus
34522 extern "C"
34523# endif
34524 int F77_DUMMY_MAIN() { return 1; }
34525#endif
34526int
34527main ()
34528{
34529if ((u_int16_t *) 0)
34530 return 0;
34531if (sizeof (u_int16_t))
34532 return 0;
34533 ;
34534 return 0;
34535}
34536_ACEOF
34537rm -f conftest.$ac_objext
34538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34539 (eval $ac_compile) 2>&5
34540 ac_status=$?
34541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542 (exit $ac_status); } &&
34543 { ac_try='test -s conftest.$ac_objext'
34544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34545 (eval $ac_try) 2>&5
34546 ac_status=$?
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); }; }; then
34549 ac_cv_type_u_int16_t=yes
34550else
34551 echo "$as_me: failed program was:" >&5
34552cat conftest.$ac_ext >&5
34553ac_cv_type_u_int16_t=no
34554fi
34555rm -f conftest.$ac_objext conftest.$ac_ext
34556fi
34557echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
34558echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
34559if test $ac_cv_type_u_int16_t = yes; then
34560
34561cat >>confdefs.h <<_ACEOF
34562#define HAVE_U_INT16_T 1
34563_ACEOF
34564
34565
34566fi
34567echo "$as_me:$LINENO: checking for u_int32_t" >&5
34568echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
34569if test "${ac_cv_type_u_int32_t+set}" = set; then
34570 echo $ECHO_N "(cached) $ECHO_C" >&6
34571else
34572 cat >conftest.$ac_ext <<_ACEOF
34573#line $LINENO "configure"
34574#include "confdefs.h"
34575
34576#ifdef HAVE_INTTYPES_H
34577#include <inttypes.h>
34578#endif
34579#ifdef HAVE_SYS_TYPES_H
34580#include <sys/types.h>
34581#endif
34582#ifdef HAVE_SYS_BITYPES_H
34583#include <sys/bitypes.h>
34584#endif
34585#ifdef HAVE_BIND_BITYPES_H
34586#include <bind/bitypes.h>
34587#endif
34588#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34589#include <netinet/in6_machtypes.h>
34590#endif
34591
34592
34593#ifdef F77_DUMMY_MAIN
34594# ifdef __cplusplus
34595 extern "C"
34596# endif
34597 int F77_DUMMY_MAIN() { return 1; }
34598#endif
34599int
34600main ()
34601{
34602if ((u_int32_t *) 0)
34603 return 0;
34604if (sizeof (u_int32_t))
34605 return 0;
34606 ;
34607 return 0;
34608}
34609_ACEOF
34610rm -f conftest.$ac_objext
34611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34612 (eval $ac_compile) 2>&5
34613 ac_status=$?
34614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615 (exit $ac_status); } &&
34616 { ac_try='test -s conftest.$ac_objext'
34617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34618 (eval $ac_try) 2>&5
34619 ac_status=$?
34620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621 (exit $ac_status); }; }; then
34622 ac_cv_type_u_int32_t=yes
34623else
34624 echo "$as_me: failed program was:" >&5
34625cat conftest.$ac_ext >&5
34626ac_cv_type_u_int32_t=no
34627fi
34628rm -f conftest.$ac_objext conftest.$ac_ext
34629fi
34630echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
34631echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
34632if test $ac_cv_type_u_int32_t = yes; then
34633
34634cat >>confdefs.h <<_ACEOF
34635#define HAVE_U_INT32_T 1
34636_ACEOF
34637
34638
34639fi
34640echo "$as_me:$LINENO: checking for u_int64_t" >&5
34641echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
34642if test "${ac_cv_type_u_int64_t+set}" = set; then
34643 echo $ECHO_N "(cached) $ECHO_C" >&6
34644else
34645 cat >conftest.$ac_ext <<_ACEOF
34646#line $LINENO "configure"
34647#include "confdefs.h"
34648
34649#ifdef HAVE_INTTYPES_H
34650#include <inttypes.h>
34651#endif
34652#ifdef HAVE_SYS_TYPES_H
34653#include <sys/types.h>
34654#endif
34655#ifdef HAVE_SYS_BITYPES_H
34656#include <sys/bitypes.h>
34657#endif
34658#ifdef HAVE_BIND_BITYPES_H
34659#include <bind/bitypes.h>
34660#endif
34661#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34662#include <netinet/in6_machtypes.h>
34663#endif
34664
34665
34666#ifdef F77_DUMMY_MAIN
34667# ifdef __cplusplus
34668 extern "C"
34669# endif
34670 int F77_DUMMY_MAIN() { return 1; }
34671#endif
34672int
34673main ()
34674{
34675if ((u_int64_t *) 0)
34676 return 0;
34677if (sizeof (u_int64_t))
34678 return 0;
34679 ;
34680 return 0;
34681}
34682_ACEOF
34683rm -f conftest.$ac_objext
34684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34685 (eval $ac_compile) 2>&5
34686 ac_status=$?
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); } &&
34689 { ac_try='test -s conftest.$ac_objext'
34690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34691 (eval $ac_try) 2>&5
34692 ac_status=$?
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); }; }; then
34695 ac_cv_type_u_int64_t=yes
34696else
34697 echo "$as_me: failed program was:" >&5
34698cat conftest.$ac_ext >&5
34699ac_cv_type_u_int64_t=no
34700fi
34701rm -f conftest.$ac_objext conftest.$ac_ext
34702fi
34703echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
34704echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
34705if test $ac_cv_type_u_int64_t = yes; then
34706
34707cat >>confdefs.h <<_ACEOF
34708#define HAVE_U_INT64_T 1
34709_ACEOF
34710
34711
34712fi
34713echo "$as_me:$LINENO: checking for uint8_t" >&5
34714echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
34715if test "${ac_cv_type_uint8_t+set}" = set; then
34716 echo $ECHO_N "(cached) $ECHO_C" >&6
34717else
34718 cat >conftest.$ac_ext <<_ACEOF
34719#line $LINENO "configure"
34720#include "confdefs.h"
34721
34722#ifdef HAVE_INTTYPES_H
34723#include <inttypes.h>
34724#endif
34725#ifdef HAVE_SYS_TYPES_H
34726#include <sys/types.h>
34727#endif
34728#ifdef HAVE_SYS_BITYPES_H
34729#include <sys/bitypes.h>
34730#endif
34731#ifdef HAVE_BIND_BITYPES_H
34732#include <bind/bitypes.h>
34733#endif
34734#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34735#include <netinet/in6_machtypes.h>
34736#endif
34737
34738
34739#ifdef F77_DUMMY_MAIN
34740# ifdef __cplusplus
34741 extern "C"
34742# endif
34743 int F77_DUMMY_MAIN() { return 1; }
34744#endif
34745int
34746main ()
34747{
34748if ((uint8_t *) 0)
34749 return 0;
34750if (sizeof (uint8_t))
34751 return 0;
34752 ;
34753 return 0;
34754}
34755_ACEOF
34756rm -f conftest.$ac_objext
34757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34758 (eval $ac_compile) 2>&5
34759 ac_status=$?
34760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761 (exit $ac_status); } &&
34762 { ac_try='test -s conftest.$ac_objext'
34763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34764 (eval $ac_try) 2>&5
34765 ac_status=$?
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); }; }; then
34768 ac_cv_type_uint8_t=yes
34769else
34770 echo "$as_me: failed program was:" >&5
34771cat conftest.$ac_ext >&5
34772ac_cv_type_uint8_t=no
34773fi
34774rm -f conftest.$ac_objext conftest.$ac_ext
34775fi
34776echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
34777echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
34778if test $ac_cv_type_uint8_t = yes; then
34779
34780cat >>confdefs.h <<_ACEOF
34781#define HAVE_UINT8_T 1
34782_ACEOF
34783
34784
34785fi
34786echo "$as_me:$LINENO: checking for uint16_t" >&5
34787echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
34788if test "${ac_cv_type_uint16_t+set}" = set; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34790else
34791 cat >conftest.$ac_ext <<_ACEOF
34792#line $LINENO "configure"
34793#include "confdefs.h"
34794
34795#ifdef HAVE_INTTYPES_H
34796#include <inttypes.h>
34797#endif
34798#ifdef HAVE_SYS_TYPES_H
34799#include <sys/types.h>
34800#endif
34801#ifdef HAVE_SYS_BITYPES_H
34802#include <sys/bitypes.h>
34803#endif
34804#ifdef HAVE_BIND_BITYPES_H
34805#include <bind/bitypes.h>
34806#endif
34807#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34808#include <netinet/in6_machtypes.h>
34809#endif
34810
34811
34812#ifdef F77_DUMMY_MAIN
34813# ifdef __cplusplus
34814 extern "C"
34815# endif
34816 int F77_DUMMY_MAIN() { return 1; }
34817#endif
34818int
34819main ()
34820{
34821if ((uint16_t *) 0)
34822 return 0;
34823if (sizeof (uint16_t))
34824 return 0;
34825 ;
34826 return 0;
34827}
34828_ACEOF
34829rm -f conftest.$ac_objext
34830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34831 (eval $ac_compile) 2>&5
34832 ac_status=$?
34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834 (exit $ac_status); } &&
34835 { ac_try='test -s conftest.$ac_objext'
34836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34837 (eval $ac_try) 2>&5
34838 ac_status=$?
34839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840 (exit $ac_status); }; }; then
34841 ac_cv_type_uint16_t=yes
34842else
34843 echo "$as_me: failed program was:" >&5
34844cat conftest.$ac_ext >&5
34845ac_cv_type_uint16_t=no
34846fi
34847rm -f conftest.$ac_objext conftest.$ac_ext
34848fi
34849echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
34850echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
34851if test $ac_cv_type_uint16_t = yes; then
34852
34853cat >>confdefs.h <<_ACEOF
34854#define HAVE_UINT16_T 1
34855_ACEOF
34856
34857
34858fi
34859echo "$as_me:$LINENO: checking for uint32_t" >&5
34860echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
34861if test "${ac_cv_type_uint32_t+set}" = set; then
34862 echo $ECHO_N "(cached) $ECHO_C" >&6
34863else
34864 cat >conftest.$ac_ext <<_ACEOF
34865#line $LINENO "configure"
34866#include "confdefs.h"
34867
34868#ifdef HAVE_INTTYPES_H
34869#include <inttypes.h>
34870#endif
34871#ifdef HAVE_SYS_TYPES_H
34872#include <sys/types.h>
34873#endif
34874#ifdef HAVE_SYS_BITYPES_H
34875#include <sys/bitypes.h>
34876#endif
34877#ifdef HAVE_BIND_BITYPES_H
34878#include <bind/bitypes.h>
34879#endif
34880#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34881#include <netinet/in6_machtypes.h>
34882#endif
34883
34884
34885#ifdef F77_DUMMY_MAIN
34886# ifdef __cplusplus
34887 extern "C"
34888# endif
34889 int F77_DUMMY_MAIN() { return 1; }
34890#endif
34891int
34892main ()
34893{
34894if ((uint32_t *) 0)
34895 return 0;
34896if (sizeof (uint32_t))
34897 return 0;
34898 ;
34899 return 0;
34900}
34901_ACEOF
34902rm -f conftest.$ac_objext
34903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34904 (eval $ac_compile) 2>&5
34905 ac_status=$?
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); } &&
34908 { ac_try='test -s conftest.$ac_objext'
34909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34910 (eval $ac_try) 2>&5
34911 ac_status=$?
34912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913 (exit $ac_status); }; }; then
34914 ac_cv_type_uint32_t=yes
34915else
34916 echo "$as_me: failed program was:" >&5
34917cat conftest.$ac_ext >&5
34918ac_cv_type_uint32_t=no
34919fi
34920rm -f conftest.$ac_objext conftest.$ac_ext
34921fi
34922echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
34923echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
34924if test $ac_cv_type_uint32_t = yes; then
34925
34926cat >>confdefs.h <<_ACEOF
34927#define HAVE_UINT32_T 1
34928_ACEOF
34929
34930
34931fi
34932echo "$as_me:$LINENO: checking for uint64_t" >&5
34933echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
34934if test "${ac_cv_type_uint64_t+set}" = set; then
34935 echo $ECHO_N "(cached) $ECHO_C" >&6
34936else
34937 cat >conftest.$ac_ext <<_ACEOF
34938#line $LINENO "configure"
34939#include "confdefs.h"
34940
34941#ifdef HAVE_INTTYPES_H
34942#include <inttypes.h>
34943#endif
34944#ifdef HAVE_SYS_TYPES_H
34945#include <sys/types.h>
34946#endif
34947#ifdef HAVE_SYS_BITYPES_H
34948#include <sys/bitypes.h>
34949#endif
34950#ifdef HAVE_BIND_BITYPES_H
34951#include <bind/bitypes.h>
34952#endif
34953#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34954#include <netinet/in6_machtypes.h>
34955#endif
34956
34957
34958#ifdef F77_DUMMY_MAIN
34959# ifdef __cplusplus
34960 extern "C"
34961# endif
34962 int F77_DUMMY_MAIN() { return 1; }
34963#endif
34964int
34965main ()
34966{
34967if ((uint64_t *) 0)
34968 return 0;
34969if (sizeof (uint64_t))
34970 return 0;
34971 ;
34972 return 0;
34973}
34974_ACEOF
34975rm -f conftest.$ac_objext
34976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34977 (eval $ac_compile) 2>&5
34978 ac_status=$?
34979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980 (exit $ac_status); } &&
34981 { ac_try='test -s conftest.$ac_objext'
34982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34983 (eval $ac_try) 2>&5
34984 ac_status=$?
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); }; }; then
34987 ac_cv_type_uint64_t=yes
34988else
34989 echo "$as_me: failed program was:" >&5
34990cat conftest.$ac_ext >&5
34991ac_cv_type_uint64_t=no
34992fi
34993rm -f conftest.$ac_objext conftest.$ac_ext
34994fi
34995echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
34996echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
34997if test $ac_cv_type_uint64_t = yes; then
34998
34999cat >>confdefs.h <<_ACEOF
35000#define HAVE_UINT64_T 1
35001_ACEOF
35002
35003
35004fi
35005
35006
35007
35008
35009
35010
35011echo "$as_me:$LINENO: checking for el_init" >&5
35012echo $ECHO_N "checking for el_init... $ECHO_C" >&6
35013if test "${ac_cv_funclib_el_init+set}" = set; then
35014 echo $ECHO_N "(cached) $ECHO_C" >&6
35015else
35016
35017if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
35018 ac_save_LIBS="$LIBS"
35019 for ac_lib in "" edit; do
35020 case "$ac_lib" in
35021 "") ;;
35022 yes) ac_lib="" ;;
35023 no) continue ;;
35024 -l*) ;;
35025 *) ac_lib="-l$ac_lib" ;;
35026 esac
35027 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
35028 cat >conftest.$ac_ext <<_ACEOF
35029#line $LINENO "configure"
35030#include "confdefs.h"
35031
35032#ifdef F77_DUMMY_MAIN
35033# ifdef __cplusplus
35034 extern "C"
35035# endif
35036 int F77_DUMMY_MAIN() { return 1; }
35037#endif
35038int
35039main ()
35040{
35041el_init()
35042 ;
35043 return 0;
35044}
35045_ACEOF
35046rm -f conftest.$ac_objext conftest$ac_exeext
35047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35048 (eval $ac_link) 2>&5
35049 ac_status=$?
35050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); } &&
35052 { ac_try='test -s conftest$ac_exeext'
35053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35054 (eval $ac_try) 2>&5
35055 ac_status=$?
35056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35057 (exit $ac_status); }; }; then
35058 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
35059else
35060 echo "$as_me: failed program was:" >&5
35061cat conftest.$ac_ext >&5
35062fi
35063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35064 done
35065 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
35066 LIBS="$ac_save_LIBS"
35067fi
35068
35069fi
35070
35071
35072eval "ac_res=\$ac_cv_funclib_el_init"
35073
35074if false; then
35075
35076for ac_func in el_init
35077do
35078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35079echo "$as_me:$LINENO: checking for $ac_func" >&5
35080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35081if eval "test \"\${$as_ac_var+set}\" = set"; then
35082 echo $ECHO_N "(cached) $ECHO_C" >&6
35083else
35084 cat >conftest.$ac_ext <<_ACEOF
35085#line $LINENO "configure"
35086#include "confdefs.h"
35087/* System header to define __stub macros and hopefully few prototypes,
35088 which can conflict with char $ac_func (); below. */
35089#include <assert.h>
35090/* Override any gcc2 internal prototype to avoid an error. */
35091#ifdef __cplusplus
35092extern "C"
35093#endif
35094/* We use char because int might match the return type of a gcc2
35095 builtin and then its argument prototype would still apply. */
35096char $ac_func ();
35097char (*f) ();
35098
35099#ifdef F77_DUMMY_MAIN
35100# ifdef __cplusplus
35101 extern "C"
35102# endif
35103 int F77_DUMMY_MAIN() { return 1; }
35104#endif
35105int
35106main ()
35107{
35108/* The GNU C library defines this for functions which it implements
35109 to always fail with ENOSYS. Some functions are actually named
35110 something starting with __ and the normal name is an alias. */
35111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35112choke me
35113#else
35114f = $ac_func;
35115#endif
35116
35117 ;
35118 return 0;
35119}
35120_ACEOF
35121rm -f conftest.$ac_objext conftest$ac_exeext
35122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35123 (eval $ac_link) 2>&5
35124 ac_status=$?
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } &&
35127 { ac_try='test -s conftest$ac_exeext'
35128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129 (eval $ac_try) 2>&5
35130 ac_status=$?
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); }; }; then
35133 eval "$as_ac_var=yes"
35134else
35135 echo "$as_me: failed program was:" >&5
35136cat conftest.$ac_ext >&5
35137eval "$as_ac_var=no"
35138fi
35139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35140fi
35141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35142echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35143if test `eval echo '${'$as_ac_var'}'` = yes; then
35144 cat >>confdefs.h <<_ACEOF
35145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35146_ACEOF
35147
35148fi
35149done
35150
35151fi
35152# el_init
35153eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
35154eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
35155eval "LIB_el_init=$ac_res"
35156
35157case "$ac_res" in
35158 yes)
35159 eval "ac_cv_func_el_init=yes"
35160 eval "LIB_el_init="
35161 cat >>confdefs.h <<_ACEOF
35162#define $ac_tr_func 1
35163_ACEOF
35164
35165 echo "$as_me:$LINENO: result: yes" >&5
35166echo "${ECHO_T}yes" >&6
35167 ;;
35168 no)
35169 eval "ac_cv_func_el_init=no"
35170 eval "LIB_el_init="
35171 echo "$as_me:$LINENO: result: no" >&5
35172echo "${ECHO_T}no" >&6
35173 ;;
35174 *)
35175 eval "ac_cv_func_el_init=yes"
35176 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
35177 cat >>confdefs.h <<_ACEOF
35178#define $ac_tr_func 1
35179_ACEOF
35180
35181 cat >>confdefs.h <<_ACEOF
35182#define $ac_tr_lib 1
35183_ACEOF
35184
35185 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
35186echo "${ECHO_T}yes, in $ac_res" >&6
35187 ;;
35188esac
35189
35190
35191if test "$ac_cv_func_el_init" = yes ; then
35192 echo "$as_me:$LINENO: checking for four argument el_init" >&5
35193echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
35194if test "${ac_cv_func_el_init_four+set}" = set; then
35195 echo $ECHO_N "(cached) $ECHO_C" >&6
35196else
35197
35198 cat >conftest.$ac_ext <<_ACEOF
35199#line $LINENO "configure"
35200#include "confdefs.h"
35201#include <stdio.h>
35202 #include <histedit.h>
35203#ifdef F77_DUMMY_MAIN
35204# ifdef __cplusplus
35205 extern "C"
35206# endif
35207 int F77_DUMMY_MAIN() { return 1; }
35208#endif
35209int
35210main ()
35211{
35212el_init("", NULL, NULL, NULL);
35213 ;
35214 return 0;
35215}
35216_ACEOF
35217rm -f conftest.$ac_objext
35218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35219 (eval $ac_compile) 2>&5
35220 ac_status=$?
35221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222 (exit $ac_status); } &&
35223 { ac_try='test -s conftest.$ac_objext'
35224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35225 (eval $ac_try) 2>&5
35226 ac_status=$?
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); }; }; then
35229 ac_cv_func_el_init_four=yes
35230else
35231 echo "$as_me: failed program was:" >&5
35232cat conftest.$ac_ext >&5
35233ac_cv_func_el_init_four=no
35234fi
35235rm -f conftest.$ac_objext conftest.$ac_ext
35236fi
35237echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
35238echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
35239 if test "$ac_cv_func_el_init_four" = yes; then
35240
35241cat >>confdefs.h <<\_ACEOF
35242#define HAVE_FOUR_VALUED_EL_INIT 1
35243_ACEOF
35244
35245 fi
35246fi
35247
35248
35249ac_foo=no
35250if test "$with_readline" = yes; then
35251 :
35252elif test "$ac_cv_func_readline" = yes; then
35253 :
35254elif test "$ac_cv_func_el_init" = yes; then
35255 ac_foo=yes
35256 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
35257else
35258 LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
35259fi
35260
35261
35262if test "$ac_foo" = yes; then
35263 el_compat_TRUE=
35264 el_compat_FALSE='#'
35265else
35266 el_compat_TRUE='#'
35267 el_compat_FALSE=
35268fi
35269
35270
35271cat >>confdefs.h <<\_ACEOF
35272#define HAVE_READLINE 1
35273_ACEOF
35274
35275
35276
35277
35278
35279cat >>confdefs.h <<\_ACEOF
35280#define AUTHENTICATION 1
35281_ACEOF
35282
35283cat >>confdefs.h <<\_ACEOF
35284#define ENCRYPTION 1
35285_ACEOF
35286
35287cat >>confdefs.h <<\_ACEOF
35288#define DES_ENCRYPTION 1
35289_ACEOF
35290
35291cat >>confdefs.h <<\_ACEOF
35292#define DIAGNOSTICS 1
35293_ACEOF
35294
35295cat >>confdefs.h <<\_ACEOF
35296#define OLD_ENVIRON 1
35297_ACEOF
35298if false; then
35299
35300cat >>confdefs.h <<\_ACEOF
35301#define ENV_HACK 1
35302_ACEOF
35303
35304fi
35305
35306# Simple test for streamspty, based on the existance of getmsg(), alas
35307# this breaks on SunOS4 which have streams but BSD-like ptys
35308#
35309# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
35310
35311case "$host" in
35312*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
35313 ;;
35314*)
35315 echo "$as_me:$LINENO: checking for getmsg" >&5
35316echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
35317if test "${ac_cv_func_getmsg+set}" = set; then
35318 echo $ECHO_N "(cached) $ECHO_C" >&6
35319else
35320 cat >conftest.$ac_ext <<_ACEOF
35321#line $LINENO "configure"
35322#include "confdefs.h"
35323/* System header to define __stub macros and hopefully few prototypes,
35324 which can conflict with char getmsg (); below. */
35325#include <assert.h>
35326/* Override any gcc2 internal prototype to avoid an error. */
35327#ifdef __cplusplus
35328extern "C"
35329#endif
35330/* We use char because int might match the return type of a gcc2
35331 builtin and then its argument prototype would still apply. */
35332char getmsg ();
35333char (*f) ();
35334
35335#ifdef F77_DUMMY_MAIN
35336# ifdef __cplusplus
35337 extern "C"
35338# endif
35339 int F77_DUMMY_MAIN() { return 1; }
35340#endif
35341int
35342main ()
35343{
35344/* The GNU C library defines this for functions which it implements
35345 to always fail with ENOSYS. Some functions are actually named
35346 something starting with __ and the normal name is an alias. */
35347#if defined (__stub_getmsg) || defined (__stub___getmsg)
35348choke me
35349#else
35350f = getmsg;
35351#endif
35352
35353 ;
35354 return 0;
35355}
35356_ACEOF
35357rm -f conftest.$ac_objext conftest$ac_exeext
35358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35359 (eval $ac_link) 2>&5
35360 ac_status=$?
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); } &&
35363 { ac_try='test -s conftest$ac_exeext'
35364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35365 (eval $ac_try) 2>&5
35366 ac_status=$?
35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368 (exit $ac_status); }; }; then
35369 ac_cv_func_getmsg=yes
35370else
35371 echo "$as_me: failed program was:" >&5
35372cat conftest.$ac_ext >&5
35373ac_cv_func_getmsg=no
35374fi
35375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35376fi
35377echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
35378echo "${ECHO_T}$ac_cv_func_getmsg" >&6
35379
35380 if test "$ac_cv_func_getmsg" = "yes"; then
35381 echo "$as_me:$LINENO: checking if getmsg works" >&5
35382echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
35383if test "${ac_cv_func_getmsg_works+set}" = set; then
35384 echo $ECHO_N "(cached) $ECHO_C" >&6
35385else
35386 if test "$cross_compiling" = yes; then
35387 ac_cv_func_getmsg_works=no
35388else
35389 cat >conftest.$ac_ext <<_ACEOF
35390#line $LINENO "configure"
35391#include "confdefs.h"
35392
35393 #include <stdio.h>
35394 #include <errno.h>
35395
35396 int main()
35397 {
35398 int ret;
35399 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
35400 if(ret < 0 && errno == ENOSYS)
35401 return 1;
35402 return 0;
35403 }
35404
35405_ACEOF
35406rm -f conftest$ac_exeext
35407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35408 (eval $ac_link) 2>&5
35409 ac_status=$?
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35413 (eval $ac_try) 2>&5
35414 ac_status=$?
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); }; }; then
35417 ac_cv_func_getmsg_works=yes
35418else
35419 echo "$as_me: program exited with status $ac_status" >&5
35420echo "$as_me: failed program was:" >&5
35421cat conftest.$ac_ext >&5
35422( exit $ac_status )
35423ac_cv_func_getmsg_works=no
35424fi
35425rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35426fi
35427fi
35428echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
35429echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
35430 if test "$ac_cv_func_getmsg_works" = "yes"; then
35431
35432cat >>confdefs.h <<\_ACEOF
35433#define HAVE_GETMSG 1
35434_ACEOF
35435
35436
35437cat >>confdefs.h <<\_ACEOF
35438#define STREAMSPTY 1
35439_ACEOF
35440
35441 fi
35442 fi
35443 ;;
35444esac
35445
35446
35447
35448
35449
35450
35451
35452# Extract the first word of "compile_et", so it can be a program name with args.
35453set dummy compile_et; ac_word=$2
35454echo "$as_me:$LINENO: checking for $ac_word" >&5
35455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35456if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
35457 echo $ECHO_N "(cached) $ECHO_C" >&6
35458else
35459 if test -n "$COMPILE_ET"; then
35460 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
35461else
35462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35463for as_dir in $PATH
35464do
35465 IFS=$as_save_IFS
35466 test -z "$as_dir" && as_dir=.
35467 for ac_exec_ext in '' $ac_executable_extensions; do
35468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35469 ac_cv_prog_COMPILE_ET="compile_et"
35470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35471 break 2
35472 fi
35473done
35474done
35475
35476fi
35477fi
35478COMPILE_ET=$ac_cv_prog_COMPILE_ET
35479if test -n "$COMPILE_ET"; then
35480 echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
35481echo "${ECHO_T}$COMPILE_ET" >&6
35482else
35483 echo "$as_me:$LINENO: result: no" >&5
35484echo "${ECHO_T}no" >&6
35485fi
35486
35487
35488krb_cv_compile_et="no"
35489if test "${COMPILE_ET}" = "compile_et"; then
35490
35491echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
35492echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
35493cat > conftest_et.et <<'EOF'
35494error_table conf
35495prefix CONFTEST
35496index 1
35497error_code CODE1, "CODE1"
35498index 128
35499error_code CODE2, "CODE2"
35500end
35501EOF
35502if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
35503 save_CPPFLAGS="${save_CPPFLAGS}"
35504 if test -d "/usr/include/et"; then
35505 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
35506 fi
35507 if test "$cross_compiling" = yes; then
35508 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
35509echo "$as_me: error: cannot run test program while cross compiling" >&2;}
35510 { (exit 1); exit 1; }; }
35511else
35512 cat >conftest.$ac_ext <<_ACEOF
35513#line $LINENO "configure"
35514#include "confdefs.h"
35515
35516#include <com_err.h>
35517#include <string.h>
35518#include "conftest_et.h"
35519int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
35520
35521_ACEOF
35522rm -f conftest$ac_exeext
35523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35524 (eval $ac_link) 2>&5
35525 ac_status=$?
35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529 (eval $ac_try) 2>&5
35530 ac_status=$?
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; }; then
35533 krb_cv_compile_et="yes"
35534else
35535 echo "$as_me: program exited with status $ac_status" >&5
35536echo "$as_me: failed program was:" >&5
35537cat conftest.$ac_ext >&5
35538( exit $ac_status )
35539CPPFLAGS="${save_CPPFLAGS}"
35540fi
35541rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35542fi
35543fi
35544echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
35545echo "${ECHO_T}${krb_cv_compile_et}" >&6
35546rm -fr conftest*
35547fi
35548
35549if test "${krb_cv_compile_et}" = "yes"; then
35550 krb_cv_save_LIBS="${LIBS}"
35551 LIBS="${LIBS} -lcom_err"
35552 echo "$as_me:$LINENO: checking for com_err" >&5
35553echo $ECHO_N "checking for com_err... $ECHO_C" >&6
35554 cat >conftest.$ac_ext <<_ACEOF
35555#line $LINENO "configure"
35556#include "confdefs.h"
35557#include <com_err.h>
35558#ifdef F77_DUMMY_MAIN
35559# ifdef __cplusplus
35560 extern "C"
35561# endif
35562 int F77_DUMMY_MAIN() { return 1; }
35563#endif
35564int
35565main ()
35566{
35567
35568 const char *p;
35569 p = error_message(0);
35570
35571 ;
35572 return 0;
35573}
35574_ACEOF
35575rm -f conftest.$ac_objext conftest$ac_exeext
35576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35577 (eval $ac_link) 2>&5
35578 ac_status=$?
35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); } &&
35581 { ac_try='test -s conftest$ac_exeext'
35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583 (eval $ac_try) 2>&5
35584 ac_status=$?
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); }; }; then
35587 krb_cv_com_err="yes"
35588else
35589 echo "$as_me: failed program was:" >&5
35590cat conftest.$ac_ext >&5
35591krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
35592fi
35593rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35594 echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
35595echo "${ECHO_T}${krb_cv_com_err}" >&6
35596 LIBS="${krb_cv_save_LIBS}"
35597else
35598 krb_cv_com_err="no"
35599fi
35600
35601if test "${krb_cv_com_err}" = "yes"; then
35602 DIR_com_err=""
35603 LIB_com_err="-lcom_err"
35604 LIB_com_err_a=""
35605 LIB_com_err_so=""
35606 { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
35607echo "$as_me: Using the already-installed com_err" >&6;}
35608else
35609 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
35610 DIR_com_err="com_err"
35611 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
35612 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
35613 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
35614 { echo "$as_me:$LINENO: Using our own com_err" >&5
35615echo "$as_me: Using our own com_err" >&6;}
35616fi
35617
35618
35619
35620
35621
35622
35623
35624
35625echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
35626echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
35627
35628z='sia afskauthlib'
35629LIB_AUTH_SUBDIRS=
35630for i in $z; do
35631case $i in
35632sia)
35633if test "$ac_cv_header_siad_h" = yes; then
35634 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
35635fi
35636;;
35637pam)
35638case "${host}" in
35639*-*-freebsd*) ac_cv_want_pam_krb4=no ;;
35640*) ac_cv_want_pam_krb4=yes ;;
35641esac
35642
35643if test "$ac_cv_want_pam_krb4" = yes -a \
35644 "$ac_cv_header_security_pam_modules_h" = yes -a \
35645 "$enable_shared" = yes; then
35646 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
35647fi
35648;;
35649afskauthlib)
35650case "${host}" in
35651*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
35652esac
35653;;
35654esac
35655done
35656if test "$LIB_AUTH_SUBDIRS"; then
35657 echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
35658echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
35659else
35660 echo "$as_me:$LINENO: result: none" >&5
35661echo "${ECHO_T}none" >&6
35662fi
35663
35664
35665
35666
35667# This is done by AC_OUTPUT but we need the result here.
35668test "x$prefix" = xNONE && prefix=$ac_default_prefix
35669test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35670
35671
35672 x="${bindir}"
35673 eval y="$x"
35674 while test "x$y" != "x$x"; do
35675 x="$y"
35676 eval y="$x"
35677 done
35678
35679cat >>confdefs.h <<_ACEOF
35680#define BINDIR "$x"
35681_ACEOF
35682
35683 x="${libdir}"
35684 eval y="$x"
35685 while test "x$y" != "x$x"; do
35686 x="$y"
35687 eval y="$x"
35688 done
35689
35690cat >>confdefs.h <<_ACEOF
35691#define LIBDIR "$x"
35692_ACEOF
35693
35694 x="${libexecdir}"
35695 eval y="$x"
35696 while test "x$y" != "x$x"; do
35697 x="$y"
35698 eval y="$x"
35699 done
35700
35701cat >>confdefs.h <<_ACEOF
35702#define LIBEXECDIR "$x"
35703_ACEOF
35704
35705 x="${localstatedir}"
35706 eval y="$x"
35707 while test "x$y" != "x$x"; do
35708 x="$y"
35709 eval y="$x"
35710 done
35711
35712cat >>confdefs.h <<_ACEOF
35713#define LOCALSTATEDIR "$x"
35714_ACEOF
35715
35716 x="${sbindir}"
35717 eval y="$x"
35718 while test "x$y" != "x$x"; do
35719 x="$y"
35720 eval y="$x"
35721 done
35722
35723cat >>confdefs.h <<_ACEOF
35724#define SBINDIR "$x"
35725_ACEOF
35726
35727 x="${sysconfdir}"
35728 eval y="$x"
35729 while test "x$y" != "x$x"; do
35730 x="$y"
35731 eval y="$x"
35732 done
35733
35734cat >>confdefs.h <<_ACEOF
35735#define SYSCONFDIR "$x"
35736_ACEOF
35737
35738
35739
35740LTLIBOBJS=`echo "$LIBOBJS" |
35741 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
35742
35743
35744
35745
35746
35747ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile"
35748
35749
35750cat >confcache <<\_ACEOF
35751# This file is a shell script that caches the results of configure
35752# tests run on this system so they can be shared between configure
35753# scripts and configure runs, see configure's option --config-cache.
35754# It is not useful on other systems. If it contains results you don't
35755# want to keep, you may remove or edit it.
35756#
35757# config.status only pays attention to the cache file if you give it
35758# the --recheck option to rerun configure.
35759#
35760# `ac_cv_env_foo' variables (set or unset) will be overriden when
35761# loading this file, other *unset* `ac_cv_foo' will be assigned the
35762# following values.
35763
35764_ACEOF
35765
35766# The following way of writing the cache mishandles newlines in values,
35767# but we know of no workaround that is simple, portable, and efficient.
35768# So, don't put newlines in cache variables' values.
35769# Ultrix sh set writes to stderr and can't be redirected directly,
35770# and sets the high bit in the cache file unless we assign to the vars.
35771{
35772 (set) 2>&1 |
35773 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35774 *ac_space=\ *)
35775 # `set' does not quote correctly, so add quotes (double-quote
35776 # substitution turns \\\\ into \\, and sed turns \\ into \).
35777 sed -n \
35778 "s/'/'\\\\''/g;
35779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35780 ;;
35781 *)
35782 # `set' quotes correctly as required by POSIX, so do not add quotes.
35783 sed -n \
35784 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35785 ;;
35786 esac;
35787} |
35788 sed '
35789 t clear
35790 : clear
35791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35792 t end
35793 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35794 : end' >>confcache
35795if cmp -s $cache_file confcache; then :; else
35796 if test -w $cache_file; then
35797 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35798 cat confcache >$cache_file
35799 else
35800 echo "not updating unwritable cache $cache_file"
35801 fi
35802fi
35803rm -f confcache
35804
35805test "x$prefix" = xNONE && prefix=$ac_default_prefix
35806# Let make expand exec_prefix.
35807test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35808
35809# VPATH may cause trouble with some makes, so we remove $(srcdir),
35810# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35811# trailing colons and then remove the whole line if VPATH becomes empty
35812# (actually we leave an empty line to preserve line numbers).
35813if test "x$srcdir" = x.; then
35814 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35815s/:*\$(srcdir):*/:/;
35816s/:*\${srcdir}:*/:/;
35817s/:*@srcdir@:*/:/;
35818s/^\([^=]*=[ ]*\):*/\1/;
35819s/:*$//;
35820s/^[^=]*=[ ]*$//;
35821}'
35822fi
35823
35824DEFS=-DHAVE_CONFIG_H
35825
35826if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35827 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
35828Usually this means the macro was only invoked conditionally." >&5
35829echo "$as_me: error: conditional \"AMDEP\" was never defined.
35830Usually this means the macro was only invoked conditionally." >&2;}
35831 { (exit 1); exit 1; }; }
35832fi
35833if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
35834 { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
35835Usually this means the macro was only invoked conditionally." >&5
35836echo "$as_me: error: conditional \"KRB4\" was never defined.
35837Usually this means the macro was only invoked conditionally." >&2;}
35838 { (exit 1); exit 1; }; }
35839fi
35840if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
35841 { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
35842Usually this means the macro was only invoked conditionally." >&5
35843echo "$as_me: error: conditional \"KRB5\" was never defined.
35844Usually this means the macro was only invoked conditionally." >&2;}
35845 { (exit 1); exit 1; }; }
35846fi
35847if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
35848 { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
35849Usually this means the macro was only invoked conditionally." >&5
35850echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
35851Usually this means the macro was only invoked conditionally." >&2;}
35852 { (exit 1); exit 1; }; }
35853fi
35854if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
35855 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
35856Usually this means the macro was only invoked conditionally." >&5
35857echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
35858Usually this means the macro was only invoked conditionally." >&2;}
35859 { (exit 1); exit 1; }; }
35860fi
35861if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
35862 { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
35863Usually this means the macro was only invoked conditionally." >&5
35864echo "$as_me: error: conditional \"DCE\" was never defined.
35865Usually this means the macro was only invoked conditionally." >&2;}
35866 { (exit 1); exit 1; }; }
35867fi
35868if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
35869 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
35870Usually this means the macro was only invoked conditionally." >&5
35871echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
35872Usually this means the macro was only invoked conditionally." >&2;}
35873 { (exit 1); exit 1; }; }
35874fi
35875if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
35876 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
35877Usually this means the macro was only invoked conditionally." >&5
35878echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
35879Usually this means the macro was only invoked conditionally." >&2;}
35880 { (exit 1); exit 1; }; }
35881fi
35882if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
35883 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
35884Usually this means the macro was only invoked conditionally." >&5
35885echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
35886Usually this means the macro was only invoked conditionally." >&2;}
35887 { (exit 1); exit 1; }; }
35888fi
35889if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
35890 { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
35891Usually this means the macro was only invoked conditionally." >&5
35892echo "$as_me: error: conditional \"have_err_h\" was never defined.
35893Usually this means the macro was only invoked conditionally." >&2;}
35894 { (exit 1); exit 1; }; }
35895fi
35896if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
35897 { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
35898Usually this means the macro was only invoked conditionally." >&5
35899echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
35900Usually this means the macro was only invoked conditionally." >&2;}
35901 { (exit 1); exit 1; }; }
35902fi
35903if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
35904 { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
35905Usually this means the macro was only invoked conditionally." >&5
35906echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
35907Usually this means the macro was only invoked conditionally." >&2;}
35908 { (exit 1); exit 1; }; }
35909fi
35910if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
35911 { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
35912Usually this means the macro was only invoked conditionally." >&5
35913echo "$as_me: error: conditional \"have_vis_h\" was never defined.
35914Usually this means the macro was only invoked conditionally." >&2;}
35915 { (exit 1); exit 1; }; }
35916fi
35917if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
35918 { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
35919Usually this means the macro was only invoked conditionally." >&5
35920echo "$as_me: error: conditional \"have_glob_h\" was never defined.
35921Usually this means the macro was only invoked conditionally." >&2;}
35922 { (exit 1); exit 1; }; }
35923fi
35924if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
35925 { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
35926Usually this means the macro was only invoked conditionally." >&5
35927echo "$as_me: error: conditional \"OTP\" was never defined.
35928Usually this means the macro was only invoked conditionally." >&2;}
35929 { (exit 1); exit 1; }; }
35930fi
35931if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
35932 { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
35933Usually this means the macro was only invoked conditionally." >&5
35934echo "$as_me: error: conditional \"CATMAN\" was never defined.
35935Usually this means the macro was only invoked conditionally." >&2;}
35936 { (exit 1); exit 1; }; }
35937fi
35938if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
35939 { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
35940Usually this means the macro was only invoked conditionally." >&5
35941echo "$as_me: error: conditional \"AIX\" was never defined.
35942Usually this means the macro was only invoked conditionally." >&2;}
35943 { (exit 1); exit 1; }; }
35944fi
35945if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
35946 { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
35947Usually this means the macro was only invoked conditionally." >&5
35948echo "$as_me: error: conditional \"AIX4\" was never defined.
35949Usually this means the macro was only invoked conditionally." >&2;}
35950 { (exit 1); exit 1; }; }
35951fi
35952if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
35953 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
35954Usually this means the macro was only invoked conditionally." >&5
35955echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
35956Usually this means the macro was only invoked conditionally." >&2;}
35957 { (exit 1); exit 1; }; }
35958fi
35959if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
35960 { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
35961Usually this means the macro was only invoked conditionally." >&5
35962echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
35963Usually this means the macro was only invoked conditionally." >&2;}
35964 { (exit 1); exit 1; }; }
35965fi
35966if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
35967 { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
35968Usually this means the macro was only invoked conditionally." >&5
35969echo "$as_me: error: conditional \"IRIX\" was never defined.
35970Usually this means the macro was only invoked conditionally." >&2;}
35971 { (exit 1); exit 1; }; }
35972fi
35973if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
35974 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
35975Usually this means the macro was only invoked conditionally." >&5
35976echo "$as_me: error: conditional \"HAVE_X\" was never defined.
35977Usually this means the macro was only invoked conditionally." >&2;}
35978 { (exit 1); exit 1; }; }
35979fi
35980if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
35981 { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
35982Usually this means the macro was only invoked conditionally." >&5
35983echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
35984Usually this means the macro was only invoked conditionally." >&2;}
35985 { (exit 1); exit 1; }; }
35986fi
35987if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
35988 { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
35989Usually this means the macro was only invoked conditionally." >&5
35990echo "$as_me: error: conditional \"el_compat\" was never defined.
35991Usually this means the macro was only invoked conditionally." >&2;}
35992 { (exit 1); exit 1; }; }
35993fi
35994
35995: ${CONFIG_STATUS=./config.status}
35996ac_clean_files_save=$ac_clean_files
35997ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35998{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35999echo "$as_me: creating $CONFIG_STATUS" >&6;}
36000cat >$CONFIG_STATUS <<_ACEOF
36001#! $SHELL
36002# Generated by $as_me.
36003# Run this file to recreate the current configuration.
36004# Compiler output produced by configure, useful for debugging
36005# configure, is in config.log if it exists.
36006
36007debug=false
36008SHELL=\${CONFIG_SHELL-$SHELL}
36009_ACEOF
36010
36011cat >>$CONFIG_STATUS <<\_ACEOF
36012
36013## --------------------- ##
36014## M4sh Initialization. ##
36015## --------------------- ##
36016
36017# Be Bourne compatible
36018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36019 emulate sh
36020 NULLCMD=:
36021elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36022 set -o posix
36023fi
36024
36025# NLS nuisances.
36026# Support unset when possible.
36027if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36028 as_unset=unset
36029else
36030 as_unset=false
36031fi
36032
36033(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
36034 { $as_unset LANG || test "${LANG+set}" != set; } ||
36035 { LANG=C; export LANG; }
36036(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
36037 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
36038 { LC_ALL=C; export LC_ALL; }
36039(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
36040 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
36041 { LC_TIME=C; export LC_TIME; }
36042(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
36043 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
36044 { LC_CTYPE=C; export LC_CTYPE; }
36045(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
36046 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
36047 { LANGUAGE=C; export LANGUAGE; }
36048(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
36049 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
36050 { LC_COLLATE=C; export LC_COLLATE; }
36051(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
36052 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
36053 { LC_NUMERIC=C; export LC_NUMERIC; }
36054(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
36055 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
36056 { LC_MESSAGES=C; export LC_MESSAGES; }
36057
36058
36059# Name of the executable.
36060as_me=`(basename "$0") 2>/dev/null ||
36061$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36062 X"$0" : 'X\(//\)$' \| \
36063 X"$0" : 'X\(/\)$' \| \
36064 . : '\(.\)' 2>/dev/null ||
36065echo X/"$0" |
36066 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36067 /^X\/\(\/\/\)$/{ s//\1/; q; }
36068 /^X\/\(\/\).*/{ s//\1/; q; }
36069 s/.*/./; q'`
36070
36071# PATH needs CR, and LINENO needs CR and PATH.
36072# Avoid depending upon Character Ranges.
36073as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36074as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36075as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36076as_cr_digits='0123456789'
36077as_cr_alnum=$as_cr_Letters$as_cr_digits
36078
36079# The user is always right.
36080if test "${PATH_SEPARATOR+set}" != set; then
36081 echo "#! /bin/sh" >conftest.sh
36082 echo "exit 0" >>conftest.sh
36083 chmod +x conftest.sh
36084 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
36085 PATH_SEPARATOR=';'
36086 else
36087 PATH_SEPARATOR=:
36088 fi
36089 rm -f conftest.sh
36090fi
36091
36092
36093 as_lineno_1=$LINENO
36094 as_lineno_2=$LINENO
36095 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36096 test "x$as_lineno_1" != "x$as_lineno_2" &&
36097 test "x$as_lineno_3" = "x$as_lineno_2" || {
36098 # Find who we are. Look in the path if we contain no path at all
36099 # relative or not.
36100 case $0 in
36101 *[\\/]* ) as_myself=$0 ;;
36102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36103for as_dir in $PATH
36104do
36105 IFS=$as_save_IFS
36106 test -z "$as_dir" && as_dir=.
36107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36108done
36109
36110 ;;
36111 esac
36112 # We did not find ourselves, most probably we were run as `sh COMMAND'
36113 # in which case we are not to be found in the path.
36114 if test "x$as_myself" = x; then
36115 as_myself=$0
36116 fi
36117 if test ! -f "$as_myself"; then
36118 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36119echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36120 { (exit 1); exit 1; }; }
36121 fi
36122 case $CONFIG_SHELL in
36123 '')
36124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36125for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36126do
36127 IFS=$as_save_IFS
36128 test -z "$as_dir" && as_dir=.
36129 for as_base in sh bash ksh sh5; do
36130 case $as_dir in
36131 /*)
36132 if ("$as_dir/$as_base" -c '
36133 as_lineno_1=$LINENO
36134 as_lineno_2=$LINENO
36135 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36136 test "x$as_lineno_1" != "x$as_lineno_2" &&
36137 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36138 CONFIG_SHELL=$as_dir/$as_base
36139 export CONFIG_SHELL
36140 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36141 fi;;
36142 esac
36143 done
36144done
36145;;
36146 esac
36147
36148 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36149 # uniformly replaced by the line number. The first 'sed' inserts a
36150 # line-number line before each line; the second 'sed' does the real
36151 # work. The second script uses 'N' to pair each line-number line
36152 # with the numbered line, and appends trailing '-' during
36153 # substitution so that $LINENO is not a special case at line end.
36154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36155 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36156 sed '=' <$as_myself |
36157 sed '
36158 N
36159 s,$,-,
36160 : loop
36161 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36162 t loop
36163 s,-$,,
36164 s,^['$as_cr_digits']*\n,,
36165 ' >$as_me.lineno &&
36166 chmod +x $as_me.lineno ||
36167 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36168echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36169 { (exit 1); exit 1; }; }
36170
36171 # Don't try to exec as it changes $[0], causing all sort of problems
36172 # (the dirname of $[0] is not the place where we might find the
36173 # original and so on. Autoconf is especially sensible to this).
36174 . ./$as_me.lineno
36175 # Exit status is that of the last command.
36176 exit
36177}
36178
36179
36180case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36181 *c*,-n*) ECHO_N= ECHO_C='
36182' ECHO_T=' ' ;;
36183 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36184 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36185esac
36186
36187if expr a : '\(a\)' >/dev/null 2>&1; then
36188 as_expr=expr
36189else
36190 as_expr=false
36191fi
36192
36193rm -f conf$$ conf$$.exe conf$$.file
36194echo >conf$$.file
36195if ln -s conf$$.file conf$$ 2>/dev/null; then
36196 # We could just check for DJGPP; but this test a) works b) is more generic
36197 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36198 if test -f conf$$.exe; then
36199 # Don't use ln at all; we don't have any links
36200 as_ln_s='cp -p'
36201 else
36202 as_ln_s='ln -s'
36203 fi
36204elif ln conf$$.file conf$$ 2>/dev/null; then
36205 as_ln_s=ln
36206else
36207 as_ln_s='cp -p'
36208fi
36209rm -f conf$$ conf$$.exe conf$$.file
36210
36211as_executable_p="test -f"
36212
36213# Sed expression to map a string onto a valid CPP name.
36214as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36215
36216# Sed expression to map a string onto a valid variable name.
36217as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36218
36219
36220# IFS
36221# We need space, tab and new line, in precisely that order.
36222as_nl='
36223'
36224IFS=" $as_nl"
36225
36226# CDPATH.
36227$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
36228
36229exec 6>&1
36230
36231# Open the log real soon, to keep \$[0] and so on meaningful, and to
36232# report actual input values of CONFIG_FILES etc. instead of their
36233# values after options handling. Logging --version etc. is OK.
36234exec 5>>config.log
36235{
36236 echo
36237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36238## Running $as_me. ##
36239_ASBOX
36240} >&5
36241cat >&5 <<_CSEOF
36242
36243This file was extended by Heimdal $as_me 0.5.1, which was
36244generated by GNU Autoconf 2.53. Invocation command line was
36245
36246 CONFIG_FILES = $CONFIG_FILES
36247 CONFIG_HEADERS = $CONFIG_HEADERS
36248 CONFIG_LINKS = $CONFIG_LINKS
36249 CONFIG_COMMANDS = $CONFIG_COMMANDS
36250 $ $0 $@
36251
36252_CSEOF
36253echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36254echo >&5
36255_ACEOF
36256
36257# Files that config.status was made for.
36258if test -n "$ac_config_files"; then
36259 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36260fi
36261
36262if test -n "$ac_config_headers"; then
36263 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36264fi
36265
36266if test -n "$ac_config_links"; then
36267 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36268fi
36269
36270if test -n "$ac_config_commands"; then
36271 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36272fi
36273
36274cat >>$CONFIG_STATUS <<\_ACEOF
36275
36276ac_cs_usage="\
36277\`$as_me' instantiates files from templates according to the
36278current configuration.
36279
36280Usage: $0 [OPTIONS] [FILE]...
36281
36282 -h, --help print this help, then exit
36283 -V, --version print version number, then exit
36284 -d, --debug don't remove temporary files
36285 --recheck update $as_me by reconfiguring in the same conditions
36286 --file=FILE[:TEMPLATE]
36287 instantiate the configuration file FILE
36288 --header=FILE[:TEMPLATE]
36289 instantiate the configuration header FILE
36290
36291Configuration files:
36292$config_files
36293
36294Configuration headers:
36295$config_headers
36296
36297Configuration commands:
36298$config_commands
36299
36300Report bugs to <bug-autoconf@gnu.org>."
36301_ACEOF
36302
36303cat >>$CONFIG_STATUS <<_ACEOF
36304ac_cs_version="\\
36305Heimdal config.status 0.5.1
36306configured by $0, generated by GNU Autoconf 2.53,
36307 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36308
36309Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36310Free Software Foundation, Inc.
36311This config.status script is free software; the Free Software Foundation
36312gives unlimited permission to copy, distribute and modify it."
36313srcdir=$srcdir
36314INSTALL="$INSTALL"
36315_ACEOF
36316
36317cat >>$CONFIG_STATUS <<\_ACEOF
36318# If no file are specified by the user, then we need to provide default
36319# value. By we need to know if files were specified by the user.
36320ac_need_defaults=:
36321while test $# != 0
36322do
36323 case $1 in
36324 --*=*)
36325 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36326 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36327 shift
36328 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
36329 shift
36330 ;;
36331 -*);;
36332 *) # This is not an option, so the user has probably given explicit
36333 # arguments.
36334 ac_need_defaults=false;;
36335 esac
36336
36337 case $1 in
36338 # Handling of the options.
36339_ACEOF
36340cat >>$CONFIG_STATUS <<_ACEOF
36341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36342 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
36343 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
36344_ACEOF
36345cat >>$CONFIG_STATUS <<\_ACEOF
36346 --version | --vers* | -V )
36347 echo "$ac_cs_version"; exit 0 ;;
36348 --he | --h)
36349 # Conflict between --help and --header
36350 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36351Try \`$0 --help' for more information." >&5
36352echo "$as_me: error: ambiguous option: $1
36353Try \`$0 --help' for more information." >&2;}
36354 { (exit 1); exit 1; }; };;
36355 --help | --hel | -h )
36356 echo "$ac_cs_usage"; exit 0 ;;
36357 --debug | --d* | -d )
36358 debug=: ;;
36359 --file | --fil | --fi | --f )
36360 shift
36361 CONFIG_FILES="$CONFIG_FILES $1"
36362 ac_need_defaults=false;;
36363 --header | --heade | --head | --hea )
36364 shift
36365 CONFIG_HEADERS="$CONFIG_HEADERS $1"
36366 ac_need_defaults=false;;
36367
36368 # This is an error.
36369 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36370Try \`$0 --help' for more information." >&5
36371echo "$as_me: error: unrecognized option: $1
36372Try \`$0 --help' for more information." >&2;}
36373 { (exit 1); exit 1; }; } ;;
36374
36375 *) ac_config_targets="$ac_config_targets $1" ;;
36376
36377 esac
36378 shift
36379done
36380
36381_ACEOF
36382
36383cat >>$CONFIG_STATUS <<_ACEOF
36384#
36385# INIT-COMMANDS section.
36386#
36387
36388AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36389
36390_ACEOF
36391
36392
36393
36394cat >>$CONFIG_STATUS <<\_ACEOF
36395for ac_config_target in $ac_config_targets
36396do
36397 case "$ac_config_target" in
36398 # Handling of arguments.
36399 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36400 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
36401 "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
36402 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
36403 "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
36404 "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
36405 "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
36406 "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
36407 "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
36408 "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
36409 "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
36410 "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
36411 "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
36412 "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
36413 "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
36414 "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
36415 "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
36416 "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
36417 "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
36418 "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
36419 "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
36420 "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
36421 "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
36422 "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
36423 "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
36424 "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
36425 "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
36426 "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
36427 "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
36428 "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
36429 "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
36430 "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
36431 "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
36432 "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
36433 "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
36434 "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
36435 "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
36436 "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
36437 "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
36438 "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
36439 "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
36440 "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
36441 "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
36442 "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
36443 "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
36444 "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
36445 "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
36446 "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
36447 "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
36448 "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
36449 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36450 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
36451 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36452 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
36453 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36454echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36455 { (exit 1); exit 1; }; };;
36456 esac
36457done
36458
36459# If the user did not use the arguments to specify the items to instantiate,
36460# then the envvar interface is used. Set only those that are not.
36461# We use the long form for the default assignment because of an extremely
36462# bizarre bug on SunOS 4.1.3.
36463if $ac_need_defaults; then
36464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36467fi
36468
36469# Create a temporary directory, and hook for its removal unless debugging.
36470$debug ||
36471{
36472 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36473 trap '{ (exit 1); exit 1; }' 1 2 13 15
36474}
36475
36476# Create a (secure) tmp directory for tmp files.
36477: ${TMPDIR=/tmp}
36478{
36479 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
36480 test -n "$tmp" && test -d "$tmp"
36481} ||
36482{
36483 tmp=$TMPDIR/cs$$-$RANDOM
36484 (umask 077 && mkdir $tmp)
36485} ||
36486{
36487 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
36488 { (exit 1); exit 1; }
36489}
36490
36491_ACEOF
36492
36493cat >>$CONFIG_STATUS <<_ACEOF
36494
36495#
36496# CONFIG_FILES section.
36497#
36498
36499# No need to generate the scripts if there are no CONFIG_FILES.
36500# This happens for instance when ./config.status config.h
36501if test -n "\$CONFIG_FILES"; then
36502 # Protect against being on the right side of a sed subst in config.status.
36503 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36504 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36505s,@SHELL@,$SHELL,;t t
36506s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36507s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36508s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36509s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36510s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36511s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36512s,@exec_prefix@,$exec_prefix,;t t
36513s,@prefix@,$prefix,;t t
36514s,@program_transform_name@,$program_transform_name,;t t
36515s,@bindir@,$bindir,;t t
36516s,@sbindir@,$sbindir,;t t
36517s,@libexecdir@,$libexecdir,;t t
36518s,@datadir@,$datadir,;t t
36519s,@sysconfdir@,$sysconfdir,;t t
36520s,@sharedstatedir@,$sharedstatedir,;t t
36521s,@localstatedir@,$localstatedir,;t t
36522s,@libdir@,$libdir,;t t
36523s,@includedir@,$includedir,;t t
36524s,@oldincludedir@,$oldincludedir,;t t
36525s,@infodir@,$infodir,;t t
36526s,@mandir@,$mandir,;t t
36527s,@build_alias@,$build_alias,;t t
36528s,@host_alias@,$host_alias,;t t
36529s,@target_alias@,$target_alias,;t t
36530s,@DEFS@,$DEFS,;t t
36531s,@ECHO_C@,$ECHO_C,;t t
36532s,@ECHO_N@,$ECHO_N,;t t
36533s,@ECHO_T@,$ECHO_T,;t t
36534s,@LIBS@,$LIBS,;t t
36535s,@CC@,$CC,;t t
36536s,@CFLAGS@,$CFLAGS,;t t
36537s,@LDFLAGS@,$LDFLAGS,;t t
36538s,@CPPFLAGS@,$CPPFLAGS,;t t
36539s,@ac_ct_CC@,$ac_ct_CC,;t t
36540s,@EXEEXT@,$EXEEXT,;t t
36541s,@OBJEXT@,$OBJEXT,;t t
36542s,@CPP@,$CPP,;t t
36543s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36544s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36545s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36546s,@PACKAGE@,$PACKAGE,;t t
36547s,@VERSION@,$VERSION,;t t
36548s,@ACLOCAL@,$ACLOCAL,;t t
36549s,@AUTOCONF@,$AUTOCONF,;t t
36550s,@AUTOMAKE@,$AUTOMAKE,;t t
36551s,@AUTOHEADER@,$AUTOHEADER,;t t
36552s,@MAKEINFO@,$MAKEINFO,;t t
36553s,@AMTAR@,$AMTAR,;t t
36554s,@install_sh@,$install_sh,;t t
36555s,@STRIP@,$STRIP,;t t
36556s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36557s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
36558s,@AWK@,$AWK,;t t
36559s,@SET_MAKE@,$SET_MAKE,;t t
36560s,@DEPDIR@,$DEPDIR,;t t
36561s,@am__include@,$am__include,;t t
36562s,@am__quote@,$am__quote,;t t
36563s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
36564s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
36565s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
36566s,@CCDEPMODE@,$CCDEPMODE,;t t
36567s,@build@,$build,;t t
36568s,@build_cpu@,$build_cpu,;t t
36569s,@build_vendor@,$build_vendor,;t t
36570s,@build_os@,$build_os,;t t
36571s,@host@,$host,;t t
36572s,@host_cpu@,$host_cpu,;t t
36573s,@host_vendor@,$host_vendor,;t t
36574s,@host_os@,$host_os,;t t
36575s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
36576s,@YACC@,$YACC,;t t
36577s,@LEX@,$LEX,;t t
36578s,@LEXLIB@,$LEXLIB,;t t
36579s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36580s,@LN_S@,$LN_S,;t t
36581s,@ECHO@,$ECHO,;t t
36582s,@RANLIB@,$RANLIB,;t t
36583s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36584s,@LIBTOOL@,$LIBTOOL,;t t
36585s,@WFLAGS@,$WFLAGS,;t t
36586s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
36587s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
36588s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
36589s,@LIB_openldap@,$LIB_openldap,;t t
36590s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
36591s,@LIB_krb4@,$LIB_krb4,;t t
36592s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
36593s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
36594s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
36595s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
36596s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
36597s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
36598s,@KRB4_TRUE@,$KRB4_TRUE,;t t
36599s,@KRB4_FALSE@,$KRB4_FALSE,;t t
36600s,@KRB5_TRUE@,$KRB5_TRUE,;t t
36601s,@KRB5_FALSE@,$KRB5_FALSE,;t t
36602s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
36603s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
36604s,@LIB_kdb@,$LIB_kdb,;t t
36605s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
36606s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
36607s,@DIR_des@,$DIR_des,;t t
36608s,@INCLUDE_des@,$INCLUDE_des,;t t
36609s,@LIB_des@,$LIB_des,;t t
36610s,@LIB_des_a@,$LIB_des_a,;t t
36611s,@LIB_des_so@,$LIB_des_so,;t t
36612s,@LIB_des_appl@,$LIB_des_appl,;t t
36613s,@DCE_TRUE@,$DCE_TRUE,;t t
36614s,@DCE_FALSE@,$DCE_FALSE,;t t
36615s,@dpagaix_cflags@,$dpagaix_cflags,;t t
36616s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
36617s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
36618s,@LIB_db_create@,$LIB_db_create,;t t
36619s,@LIB_dbopen@,$LIB_dbopen,;t t
36620s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
36621s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
36622s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
36623s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
36624s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
36625s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
36626s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
36627s,@DBLIB@,$DBLIB,;t t
36628s,@LIB_NDBM@,$LIB_NDBM,;t t
36629s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
36630s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
36631s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
36632s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
36633s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
36634s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
36635s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
36636s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
36637s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
36638s,@LIB_socket@,$LIB_socket,;t t
36639s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
36640s,@LIB_syslog@,$LIB_syslog,;t t
36641s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
36642s,@LIB_res_search@,$LIB_res_search,;t t
36643s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t
36644s,@LIB_dn_expand@,$LIB_dn_expand,;t t
36645s,@LIBOBJS@,$LIBOBJS,;t t
36646s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
36647s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
36648s,@LIB_getsockopt@,$LIB_getsockopt,;t t
36649s,@LIB_setsockopt@,$LIB_setsockopt,;t t
36650s,@LIB_hstrerror@,$LIB_hstrerror,;t t
36651s,@LIB_bswap16@,$LIB_bswap16,;t t
36652s,@LIB_bswap32@,$LIB_bswap32,;t t
36653s,@LIB_pidfile@,$LIB_pidfile,;t t
36654s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
36655s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
36656s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
36657s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
36658s,@LIB_crypt@,$LIB_crypt,;t t
36659s,@DIR_roken@,$DIR_roken,;t t
36660s,@LIB_roken@,$LIB_roken,;t t
36661s,@INCLUDES_roken@,$INCLUDES_roken,;t t
36662s,@LIB_otp@,$LIB_otp,;t t
36663s,@OTP_TRUE@,$OTP_TRUE,;t t
36664s,@OTP_FALSE@,$OTP_FALSE,;t t
36665s,@LIB_security@,$LIB_security,;t t
36666s,@NROFF@,$NROFF,;t t
36667s,@GROFF@,$GROFF,;t t
36668s,@CATMAN@,$CATMAN,;t t
36669s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
36670s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
36671s,@CATMANEXT@,$CATMANEXT,;t t
36672s,@INCLUDE_readline@,$INCLUDE_readline,;t t
36673s,@LIB_readline@,$LIB_readline,;t t
36674s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
36675s,@LIB_hesiod@,$LIB_hesiod,;t t
36676s,@AIX_TRUE@,$AIX_TRUE,;t t
36677s,@AIX_FALSE@,$AIX_FALSE,;t t
36678s,@AIX4_TRUE@,$AIX4_TRUE,;t t
36679s,@AIX4_FALSE@,$AIX4_FALSE,;t t
36680s,@LIB_dlopen@,$LIB_dlopen,;t t
36681s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
36682s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
36683s,@LIB_loadquery@,$LIB_loadquery,;t t
36684s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
36685s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
36686s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
36687s,@IRIX_TRUE@,$IRIX_TRUE,;t t
36688s,@IRIX_FALSE@,$IRIX_FALSE,;t t
36689s,@X_CFLAGS@,$X_CFLAGS,;t t
36690s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36691s,@X_LIBS@,$X_LIBS,;t t
36692s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36693s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
36694s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
36695s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
36696s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
36697s,@LIB_XauFileName@,$LIB_XauFileName,;t t
36698s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
36699s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
36700s,@LIB_logwtmp@,$LIB_logwtmp,;t t
36701s,@LIB_logout@,$LIB_logout,;t t
36702s,@LIB_openpty@,$LIB_openpty,;t t
36703s,@LIB_tgetent@,$LIB_tgetent,;t t
36704s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
36705s,@LIB_el_init@,$LIB_el_init,;t t
36706s,@el_compat_TRUE@,$el_compat_TRUE,;t t
36707s,@el_compat_FALSE@,$el_compat_FALSE,;t t
36708s,@COMPILE_ET@,$COMPILE_ET,;t t
36709s,@DIR_com_err@,$DIR_com_err,;t t
36710s,@LIB_com_err@,$LIB_com_err,;t t
36711s,@LIB_com_err_a@,$LIB_com_err_a,;t t
36712s,@LIB_com_err_so@,$LIB_com_err_so,;t t
36713s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
36714s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36715CEOF
36716
36717_ACEOF
36718
36719 cat >>$CONFIG_STATUS <<\_ACEOF
36720 # Split the substitutions into bite-sized pieces for seds with
36721 # small command number limits, like on Digital OSF/1 and HP-UX.
36722 ac_max_sed_lines=48
36723 ac_sed_frag=1 # Number of current file.
36724 ac_beg=1 # First line for current file.
36725 ac_end=$ac_max_sed_lines # Line after last line for current file.
36726 ac_more_lines=:
36727 ac_sed_cmds=
36728 while $ac_more_lines; do
36729 if test $ac_beg -gt 1; then
36730 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36731 else
36732 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36733 fi
36734 if test ! -s $tmp/subs.frag; then
36735 ac_more_lines=false
36736 else
36737 # The purpose of the label and of the branching condition is to
36738 # speed up the sed processing (if there are no `@' at all, there
36739 # is no need to browse any of the substitutions).
36740 # These are the two extra sed commands mentioned above.
36741 (echo ':t
36742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36743 if test -z "$ac_sed_cmds"; then
36744 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36745 else
36746 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36747 fi
36748 ac_sed_frag=`expr $ac_sed_frag + 1`
36749 ac_beg=$ac_end
36750 ac_end=`expr $ac_end + $ac_max_sed_lines`
36751 fi
36752 done
36753 if test -z "$ac_sed_cmds"; then
36754 ac_sed_cmds=cat
36755 fi
36756fi # test -n "$CONFIG_FILES"
36757
36758_ACEOF
36759cat >>$CONFIG_STATUS <<\_ACEOF
36760for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36762 case $ac_file in
36763 - | *:- | *:-:* ) # input from stdin
36764 cat >$tmp/stdin
36765 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36767 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36769 * ) ac_file_in=$ac_file.in ;;
36770 esac
36771
36772 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36773 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36775 X"$ac_file" : 'X\(//\)[^/]' \| \
36776 X"$ac_file" : 'X\(//\)$' \| \
36777 X"$ac_file" : 'X\(/\)' \| \
36778 . : '\(.\)' 2>/dev/null ||
36779echo X"$ac_file" |
36780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36782 /^X\(\/\/\)$/{ s//\1/; q; }
36783 /^X\(\/\).*/{ s//\1/; q; }
36784 s/.*/./; q'`
36785 { case "$ac_dir" in
36786 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
36787 *) as_incr_dir=.;;
36788esac
36789as_dummy="$ac_dir"
36790for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
36791 case $as_mkdir_dir in
36792 # Skip DOS drivespec
36793 ?:) as_incr_dir=$as_mkdir_dir ;;
36794 *)
36795 as_incr_dir=$as_incr_dir/$as_mkdir_dir
36796 test -d "$as_incr_dir" ||
36797 mkdir "$as_incr_dir" ||
36798 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
36799echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
36800 { (exit 1); exit 1; }; }
36801 ;;
36802 esac
36803done; }
36804
36805 ac_builddir=.
36806
36807if test "$ac_dir" != .; then
36808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36809 # A "../" for each directory in $ac_dir_suffix.
36810 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36811else
36812 ac_dir_suffix= ac_top_builddir=
36813fi
36814
36815case $srcdir in
36816 .) # No --srcdir option. We are building in place.
36817 ac_srcdir=.
36818 if test -z "$ac_top_builddir"; then
36819 ac_top_srcdir=.
36820 else
36821 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36822 fi ;;
36823 [\\/]* | ?:[\\/]* ) # Absolute path.
36824 ac_srcdir=$srcdir$ac_dir_suffix;
36825 ac_top_srcdir=$srcdir ;;
36826 *) # Relative path.
36827 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36828 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36829esac
36830# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36831# absolute.
36832ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36833ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
36834ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36835ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36836
36837
36838 case $INSTALL in
36839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36840 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
36841 esac
36842
36843 if test x"$ac_file" != x-; then
36844 { echo "$as_me:$LINENO: creating $ac_file" >&5
36845echo "$as_me: creating $ac_file" >&6;}
36846 rm -f "$ac_file"
36847 fi
36848 # Let's still pretend it is `configure' which instantiates (i.e., don't
36849 # use $as_me), people would be surprised to read:
36850 # /* config.h. Generated by config.status. */
36851 if test x"$ac_file" = x-; then
36852 configure_input=
36853 else
36854 configure_input="$ac_file. "
36855 fi
36856 configure_input=$configure_input"Generated from `echo $ac_file_in |
36857 sed 's,.*/,,'` by configure."
36858
36859 # First look for the input files in the build tree, otherwise in the
36860 # src tree.
36861 ac_file_inputs=`IFS=:
36862 for f in $ac_file_in; do
36863 case $f in
36864 -) echo $tmp/stdin ;;
36865 [\\/$]*)
36866 # Absolute (can't be DOS-style, as IFS=:)
36867 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36868echo "$as_me: error: cannot find input file: $f" >&2;}
36869 { (exit 1); exit 1; }; }
36870 echo $f;;
36871 *) # Relative
36872 if test -f "$f"; then
36873 # Build tree
36874 echo $f
36875 elif test -f "$srcdir/$f"; then
36876 # Source tree
36877 echo $srcdir/$f
36878 else
36879 # /dev/null tree
36880 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36881echo "$as_me: error: cannot find input file: $f" >&2;}
36882 { (exit 1); exit 1; }; }
36883 fi;;
36884 esac
36885 done` || { (exit 1); exit 1; }
36886_ACEOF
36887cat >>$CONFIG_STATUS <<_ACEOF
36888 sed "$ac_vpsub
36889$extrasub
36890_ACEOF
36891cat >>$CONFIG_STATUS <<\_ACEOF
36892:t
36893/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36894s,@configure_input@,$configure_input,;t t
36895s,@srcdir@,$ac_srcdir,;t t
36896s,@abs_srcdir@,$ac_abs_srcdir,;t t
36897s,@top_srcdir@,$ac_top_srcdir,;t t
36898s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36899s,@builddir@,$ac_builddir,;t t
36900s,@abs_builddir@,$ac_abs_builddir,;t t
36901s,@top_builddir@,$ac_top_builddir,;t t
36902s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36903s,@INSTALL@,$ac_INSTALL,;t t
36904" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36905 rm -f $tmp/stdin
36906 if test x"$ac_file" != x-; then
36907 mv $tmp/out $ac_file
36908 else
36909 cat $tmp/out
36910 rm -f $tmp/out
36911 fi
36912
36913done
36914_ACEOF
36915cat >>$CONFIG_STATUS <<\_ACEOF
36916
36917#
36918# CONFIG_HEADER section.
36919#
36920
36921# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36922# NAME is the cpp macro being defined and VALUE is the value it is being given.
36923#
36924# ac_d sets the value in "#define NAME VALUE" lines.
36925ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36926ac_dB='[ ].*$,\1#\2'
36927ac_dC=' '
36928ac_dD=',;t'
36929# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36930ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36931ac_uB='$,\1#\2define\3'
36932ac_uC=' '
36933ac_uD=',;t'
36934
36935for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36937 case $ac_file in
36938 - | *:- | *:-:* ) # input from stdin
36939 cat >$tmp/stdin
36940 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36941 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36942 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36944 * ) ac_file_in=$ac_file.in ;;
36945 esac
36946
36947 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36948echo "$as_me: creating $ac_file" >&6;}
36949
36950 # First look for the input files in the build tree, otherwise in the
36951 # src tree.
36952 ac_file_inputs=`IFS=:
36953 for f in $ac_file_in; do
36954 case $f in
36955 -) echo $tmp/stdin ;;
36956 [\\/$]*)
36957 # Absolute (can't be DOS-style, as IFS=:)
36958 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36959echo "$as_me: error: cannot find input file: $f" >&2;}
36960 { (exit 1); exit 1; }; }
36961 echo $f;;
36962 *) # Relative
36963 if test -f "$f"; then
36964 # Build tree
36965 echo $f
36966 elif test -f "$srcdir/$f"; then
36967 # Source tree
36968 echo $srcdir/$f
36969 else
36970 # /dev/null tree
36971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36972echo "$as_me: error: cannot find input file: $f" >&2;}
36973 { (exit 1); exit 1; }; }
36974 fi;;
36975 esac
36976 done` || { (exit 1); exit 1; }
36977 # Remove the trailing spaces.
36978 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36979
36980_ACEOF
36981
36982# Transform confdefs.h into two sed scripts, `conftest.defines' and
36983# `conftest.undefs', that substitutes the proper values into
36984# config.h.in to produce config.h. The first handles `#define'
36985# templates, and the second `#undef' templates.
36986# And first: Protect against being on the right side of a sed subst in
36987# config.status. Protect against being in an unquoted here document
36988# in config.status.
36989rm -f conftest.defines conftest.undefs
36990# Using a here document instead of a string reduces the quoting nightmare.
36991# Putting comments in sed scripts is not portable.
36992#
36993# `end' is used to avoid that the second main sed command (meant for
36994# 0-ary CPP macros) applies to n-ary macro definitions.
36995# See the Autoconf documentation for `clear'.
36996cat >confdef2sed.sed <<\_ACEOF
36997s/[\\&,]/\\&/g
36998s,[\\$`],\\&,g
36999t clear
37000: clear
37001s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
37002t end
37003s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
37004: end
37005_ACEOF
37006# If some macros were called several times there might be several times
37007# the same #defines, which is useless. Nevertheless, we may not want to
37008# sort them, since we want the *last* AC-DEFINE to be honored.
37009uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37010sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37011rm -f confdef2sed.sed
37012
37013# This sed command replaces #undef with comments. This is necessary, for
37014# example, in the case of _POSIX_SOURCE, which is predefined and required
37015# on some systems where configure will not decide to define it.
37016cat >>conftest.undefs <<\_ACEOF
37017s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
37018_ACEOF
37019
37020# Break up conftest.defines because some shells have a limit on the size
37021# of here documents, and old seds have small limits too (100 cmds).
37022echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
37023echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
37024echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37025echo ' :' >>$CONFIG_STATUS
37026rm -f conftest.tail
37027while grep . conftest.defines >/dev/null
37028do
37029 # Write a limited-size here document to $tmp/defines.sed.
37030 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37031 # Speed up: don't consider the non `#define' lines.
37032 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
37033 # Work around the forget-to-reset-the-flag bug.
37034 echo 't clr' >>$CONFIG_STATUS
37035 echo ': clr' >>$CONFIG_STATUS
37036 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37037 echo 'CEOF
37038 sed -f $tmp/defines.sed $tmp/in >$tmp/out
37039 rm -f $tmp/in
37040 mv $tmp/out $tmp/in
37041' >>$CONFIG_STATUS
37042 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37043 rm -f conftest.defines
37044 mv conftest.tail conftest.defines
37045done
37046rm -f conftest.defines
37047echo ' fi # egrep' >>$CONFIG_STATUS
37048echo >>$CONFIG_STATUS
37049
37050# Break up conftest.undefs because some shells have a limit on the size
37051# of here documents, and old seds have small limits too (100 cmds).
37052echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
37053rm -f conftest.tail
37054while grep . conftest.undefs >/dev/null
37055do
37056 # Write a limited-size here document to $tmp/undefs.sed.
37057 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37058 # Speed up: don't consider the non `#undef'
37059 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
37060 # Work around the forget-to-reset-the-flag bug.
37061 echo 't clr' >>$CONFIG_STATUS
37062 echo ': clr' >>$CONFIG_STATUS
37063 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
37064 echo 'CEOF
37065 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37066 rm -f $tmp/in
37067 mv $tmp/out $tmp/in
37068' >>$CONFIG_STATUS
37069 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37070 rm -f conftest.undefs
37071 mv conftest.tail conftest.undefs
37072done
37073rm -f conftest.undefs
37074
37075cat >>$CONFIG_STATUS <<\_ACEOF
37076 # Let's still pretend it is `configure' which instantiates (i.e., don't
37077 # use $as_me), people would be surprised to read:
37078 # /* config.h. Generated by config.status. */
37079 if test x"$ac_file" = x-; then
37080 echo "/* Generated by configure. */" >$tmp/config.h
37081 else
37082 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
37083 fi
37084 cat $tmp/in >>$tmp/config.h
37085 rm -f $tmp/in
37086 if test x"$ac_file" != x-; then
37087 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
37088 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37089echo "$as_me: $ac_file is unchanged" >&6;}
37090 else
37091 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37092$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37093 X"$ac_file" : 'X\(//\)[^/]' \| \
37094 X"$ac_file" : 'X\(//\)$' \| \
37095 X"$ac_file" : 'X\(/\)' \| \
37096 . : '\(.\)' 2>/dev/null ||
37097echo X"$ac_file" |
37098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37100 /^X\(\/\/\)$/{ s//\1/; q; }
37101 /^X\(\/\).*/{ s//\1/; q; }
37102 s/.*/./; q'`
37103 { case "$ac_dir" in
37104 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
37105 *) as_incr_dir=.;;
37106esac
37107as_dummy="$ac_dir"
37108for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
37109 case $as_mkdir_dir in
37110 # Skip DOS drivespec
37111 ?:) as_incr_dir=$as_mkdir_dir ;;
37112 *)
37113 as_incr_dir=$as_incr_dir/$as_mkdir_dir
37114 test -d "$as_incr_dir" ||
37115 mkdir "$as_incr_dir" ||
37116 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
37117echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
37118 { (exit 1); exit 1; }; }
37119 ;;
37120 esac
37121done; }
37122
37123 rm -f $ac_file
37124 mv $tmp/config.h $ac_file
37125 fi
37126 else
37127 cat $tmp/config.h
37128 rm -f $tmp/config.h
37129 fi
37130 # Run the commands associated with the file.
37131 case $ac_file in
37132 include/config.h ) # update the timestamp
37133echo 'timestamp for include/config.h' >"include/stamp-h1"
37134 ;;
37135 esac
37136done
37137_ACEOF
37138cat >>$CONFIG_STATUS <<\_ACEOF
37139
37140#
37141# CONFIG_COMMANDS section.
37142#
37143for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37144 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37145 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37146 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37147$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37148 X"$ac_dest" : 'X\(//\)[^/]' \| \
37149 X"$ac_dest" : 'X\(//\)$' \| \
37150 X"$ac_dest" : 'X\(/\)' \| \
37151 . : '\(.\)' 2>/dev/null ||
37152echo X"$ac_dest" |
37153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37155 /^X\(\/\/\)$/{ s//\1/; q; }
37156 /^X\(\/\).*/{ s//\1/; q; }
37157 s/.*/./; q'`
37158 ac_builddir=.
37159
37160if test "$ac_dir" != .; then
37161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37162 # A "../" for each directory in $ac_dir_suffix.
37163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37164else
37165 ac_dir_suffix= ac_top_builddir=
37166fi
37167
37168case $srcdir in
37169 .) # No --srcdir option. We are building in place.
37170 ac_srcdir=.
37171 if test -z "$ac_top_builddir"; then
37172 ac_top_srcdir=.
37173 else
37174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37175 fi ;;
37176 [\\/]* | ?:[\\/]* ) # Absolute path.
37177 ac_srcdir=$srcdir$ac_dir_suffix;
37178 ac_top_srcdir=$srcdir ;;
37179 *) # Relative path.
37180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37181 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37182esac
37183# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37184# absolute.
37185ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37186ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
37187ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37188ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37189
37190
37191 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37192echo "$as_me: executing $ac_dest commands" >&6;}
37193 case $ac_dest in
37194 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37195 # Strip MF so we end up with the name of the file.
37196 mf=`echo "$mf" | sed -e 's/:.*$//'`
37197 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
37198 dirpart=`(dirname "$mf") 2>/dev/null ||
37199$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37200 X"$mf" : 'X\(//\)[^/]' \| \
37201 X"$mf" : 'X\(//\)$' \| \
37202 X"$mf" : 'X\(/\)' \| \
37203 . : '\(.\)' 2>/dev/null ||
37204echo X"$mf" |
37205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37207 /^X\(\/\/\)$/{ s//\1/; q; }
37208 /^X\(\/\).*/{ s//\1/; q; }
37209 s/.*/./; q'`
37210 else
37211 continue
37212 fi
37213 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
37214 # Extract the definition of DEP_FILES from the Makefile without
37215 # running `make'.
37216 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
37217 test -z "$DEPDIR" && continue
37218 # When using ansi2knr, U may be empty or an underscore; expand it
37219 U=`sed -n -e '/^U = / s///p' < "$mf"`
37220 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
37221 # We invoke sed twice because it is the simplest approach to
37222 # changing $(DEPDIR) to its actual value in the expansion.
37223 for file in `sed -n -e '
37224 /^DEP_FILES = .*\\\\$/ {
37225 s/^DEP_FILES = //
37226 :loop
37227 s/\\\\$//
37228 p
37229 n
37230 /\\\\$/ b loop
37231 p
37232 }
37233 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
37234 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37235 # Make sure the directory exists.
37236 test -f "$dirpart/$file" && continue
37237 fdir=`(dirname "$file") 2>/dev/null ||
37238$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37239 X"$file" : 'X\(//\)[^/]' \| \
37240 X"$file" : 'X\(//\)$' \| \
37241 X"$file" : 'X\(/\)' \| \
37242 . : '\(.\)' 2>/dev/null ||
37243echo X"$file" |
37244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37246 /^X\(\/\/\)$/{ s//\1/; q; }
37247 /^X\(\/\).*/{ s//\1/; q; }
37248 s/.*/./; q'`
37249 { case $dirpart/$fdir in
37250 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
37251 *) as_incr_dir=.;;
37252esac
37253as_dummy=$dirpart/$fdir
37254for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
37255 case $as_mkdir_dir in
37256 # Skip DOS drivespec
37257 ?:) as_incr_dir=$as_mkdir_dir ;;
37258 *)
37259 as_incr_dir=$as_incr_dir/$as_mkdir_dir
37260 test -d "$as_incr_dir" ||
37261 mkdir "$as_incr_dir" ||
37262 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
37263echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
37264 { (exit 1); exit 1; }; }
37265 ;;
37266 esac
37267done; }
37268
37269 # echo "creating $dirpart/$file"
37270 echo '# dummy' > "$dirpart/$file"
37271 done
37272done
37273 ;;
37274 esac
37275done
37276_ACEOF
37277
37278cat >>$CONFIG_STATUS <<\_ACEOF
37279
37280{ (exit 0); exit 0; }
37281_ACEOF
37282chmod +x $CONFIG_STATUS
37283ac_clean_files=$ac_clean_files_save
37284
37285
37286# configure is writing to config.log, and then calls config.status.
37287# config.status does its own redirection, appending to config.log.
37288# Unfortunately, on DOS this fails, as config.log is still kept open
37289# by configure, so config.status won't be able to write to it; its
37290# output is simply discarded. So we exec the FD to /dev/null,
37291# effectively closing config.log, so it can be properly (re)opened and
37292# appended to by config.status. When coming back to configure, we
37293# need to make the FD available again.
37294if test "$no_create" != yes; then
37295 ac_cs_success=:
37296 exec 5>/dev/null
37297 $SHELL $CONFIG_STATUS || ac_cs_success=false
37298 exec 5>>config.log
37299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37300 # would make configure fail if this is the last instruction.
37301 $ac_cs_success || { (exit 1); exit 1; }
37302fi
37303
37304
37305
37306cat > include/newversion.h.in <<EOF
37307const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
37308const char *heimdal_version = "Heimdal 0.5.1";
37309EOF
37310
37311if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
37312 echo "include/version.h is unchanged"
37313 rm -f include/newversion.h.in
37314else
37315 echo "creating include/version.h"
37316 User=${USER-${LOGNAME}}
37317 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
37318 Date=`date`
37319 mv -f include/newversion.h.in include/version.h.in
37320 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
37321fi