Deleted Added
sdiff udiff text old ( 107207 ) new ( 120945 )
full compact
1#! /bin/sh
2# From configure.in Revision: 1.331.2.2 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.53 for Heimdal 0.6.
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.6'
420PACKAGE_STRING='Heimdal 0.6'
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.6 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.6:";;
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 --enable-maintainer-mode enable make rules and dependencies not useful
1006 (and sometimes confusing) to the casual installer
1007 --disable-largefile omit support for large files
1008 --enable-shared=PKGS build shared libraries default=no
1009 --enable-static=PKGS build static libraries default=yes
1010 --enable-fast-install=PKGS optimize for fast installation default=yes
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-dce if you want support for DCE/DFS PAG's
1013 --disable-berkeley-db if you don't want berkeley db
1014 --disable-otp if you don't want OTP support
1015 --enable-osfc2 enable some OSF C2 support
1016 --disable-mmap disable use of mmap
1017 --enable-bigendian the target is big endian
1018 --enable-littleendian the target is little endian
1019 --disable-dynamic-afs do not use loaded AFS library with AIX
1020 --enable-netinfo enable netinfo for configuration lookup
1021
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)
1026 --with-gnu-ld assume the C compiler uses GNU ld default=no
1027 --with-pic try to use only PIC/non-PIC objects default=use both
1028 --with-openldap=dir use openldap in dir
1029 --with-openldap-lib=dir use openldap libraries in dir
1030 --with-openldap-include=dir
1031 use openldap headers in dir
1032 --with-openldap-config=path
1033 config program for openldap
1034 --with-krb4=dir use krb4 in dir
1035 --with-krb4-lib=dir use krb4 libraries in dir
1036 --with-krb4-include=dir use krb4 headers in dir
1037 --with-krb4-config=path config program for krb4
1038 --with-openssl=dir use openssl in dir
1039 --with-openssl-lib=dir use openssl libraries in dir
1040 --with-openssl-include=dir
1041 use openssl headers in dir
1042 --without-ipv6 do not enable IPv6 support
1043 --with-readline=dir use readline in dir
1044 --with-readline-lib=dir use readline libraries in dir
1045 --with-readline-include=dir
1046 use readline headers in dir
1047 --with-readline-config=path
1048 config program for readline
1049 --with-hesiod=dir use hesiod in dir
1050 --with-hesiod-lib=dir use hesiod libraries in dir
1051 --with-hesiod-include=dir
1052 use hesiod headers in dir
1053 --with-hesiod-config=path
1054 config program for hesiod
1055 --with-x use the X Window System
1056
1057Some influential environment variables:
1058 CC C compiler command
1059 CFLAGS C compiler flags
1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061 nonstandard directory <lib dir>
1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063 headers in a nonstandard directory <include dir>
1064 CPP C preprocessor
1065
1066Use these variables to override the choices made by `configure' or to help
1067it to find libraries and programs with nonstandard names/locations.
1068
1069Report bugs to <heimdal-bugs@pdc.kth.se>.
1070_ACEOF
1071fi
1072
1073if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1078 ac_builddir=.
1079
1080if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084else
1085 ac_dir_suffix= ac_top_builddir=
1086fi
1087
1088case $srcdir in
1089 .) # No --srcdir option. We are building in place.
1090 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=.
1093 else
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1099 *) # Relative path.
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102esac
1103# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1104# absolute.
1105ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1106ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1107ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1108ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1109
1110 cd $ac_dir
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1113 echo
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1116 echo
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1120 echo
1121 $ac_configure --help
1122 else
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 fi
1125 cd $ac_popdir
1126 done
1127fi
1128
1129test -n "$ac_init_help" && exit 0
1130if $ac_init_version; then
1131 cat <<\_ACEOF
1132Heimdal configure 0.6
1133generated by GNU Autoconf 2.53
1134
1135Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1136Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
1146
1147It was created by Heimdal $as_me 0.6, which was
1148generated by GNU Autoconf 2.53. Invocation command line was
1149
1150 $ $0 $@
1151
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
1185
1186} >&5
1187
1188cat >&5 <<_ACEOF
1189
1190
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
1194
1195_ACEOF
1196
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Also quote any args containing shell meta-characters.
1201ac_configure_args=
1202ac_sep=
1203for ac_arg
1204do
1205 case $ac_arg in
1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207 | --no-cr | --no-c | -n ) continue ;;
1208 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210 continue ;;
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case " $ac_configure_args " in
1215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1216 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1217 ac_sep=" " ;;
1218 esac
1219 # Get rid of the leading space.
1220done
1221
1222# When interrupted or exit'd, cleanup temporary files, and complete
1223# config.log. We remove comments because anyway the quotes in there
1224# would cause problems or look ugly.
1225# WARNING: Be sure not to use single quotes in there, as some shells,
1226# such as our DU 5.0 friend, will then `close' the trap.
1227trap 'exit_status=$?
1228 # Save into config.log some information that might help in debugging.
1229 {
1230 echo
1231 cat <<\_ASBOX
1232## ---------------- ##
1233## Cache variables. ##
1234## ---------------- ##
1235_ASBOX
1236 echo
1237 # The following way of writing the cache mishandles newlines in values,
1238{
1239 (set) 2>&1 |
1240 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1241 *ac_space=\ *)
1242 sed -n \
1243 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1245 ;;
1246 *)
1247 sed -n \
1248 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1249 ;;
1250 esac;
1251}
1252 echo
1253 if test -s confdefs.h; then
1254 cat <<\_ASBOX
1255## ----------- ##
1256## confdefs.h. ##
1257## ----------- ##
1258_ASBOX
1259 echo
1260 sed "/^$/d" confdefs.h
1261 echo
1262 fi
1263 test "$ac_signal" != 0 &&
1264 echo "$as_me: caught signal $ac_signal"
1265 echo "$as_me: exit $exit_status"
1266 } >&5
1267 rm -f core core.* *.core &&
1268 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1269 exit $exit_status
1270 ' 0
1271for ac_signal in 1 2 13 15; do
1272 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1273done
1274ac_signal=0
1275
1276# confdefs.h avoids OS command line length limits that DEFS can exceed.
1277rm -rf conftest* confdefs.h
1278# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1279echo >confdefs.h
1280
1281# Predefined preprocessor variables.
1282
1283cat >>confdefs.h <<_ACEOF
1284#define PACKAGE_NAME "$PACKAGE_NAME"
1285_ACEOF
1286
1287
1288cat >>confdefs.h <<_ACEOF
1289#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1290_ACEOF
1291
1292
1293cat >>confdefs.h <<_ACEOF
1294#define PACKAGE_VERSION "$PACKAGE_VERSION"
1295_ACEOF
1296
1297
1298cat >>confdefs.h <<_ACEOF
1299#define PACKAGE_STRING "$PACKAGE_STRING"
1300_ACEOF
1301
1302
1303cat >>confdefs.h <<_ACEOF
1304#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1305_ACEOF
1306
1307
1308# Let the site file select an alternate cache file if it wants to.
1309# Prefer explicitly selected file to automatically selected ones.
1310if test -z "$CONFIG_SITE"; then
1311 if test "x$prefix" != xNONE; then
1312 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1313 else
1314 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1315 fi
1316fi
1317for ac_site_file in $CONFIG_SITE; do
1318 if test -r "$ac_site_file"; then
1319 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1320echo "$as_me: loading site script $ac_site_file" >&6;}
1321 sed 's/^/| /' "$ac_site_file" >&5
1322 . "$ac_site_file"
1323 fi
1324done
1325
1326if test -r "$cache_file"; then
1327 # Some versions of bash will fail to source /dev/null (special
1328 # files actually), so we avoid doing that.
1329 if test -f "$cache_file"; then
1330 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1331echo "$as_me: loading cache $cache_file" >&6;}
1332 case $cache_file in
1333 [\\/]* | ?:[\\/]* ) . $cache_file;;
1334 *) . ./$cache_file;;
1335 esac
1336 fi
1337else
1338 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1339echo "$as_me: creating cache $cache_file" >&6;}
1340 >$cache_file
1341fi
1342
1343# Check that the precious variables saved in the cache have kept the same
1344# value.
1345ac_cache_corrupted=false
1346for ac_var in `(set) 2>&1 |
1347 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1348 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1349 eval ac_new_set=\$ac_env_${ac_var}_set
1350 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1351 eval ac_new_val="\$ac_env_${ac_var}_value"
1352 case $ac_old_set,$ac_new_set in
1353 set,)
1354 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1355echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1356 ac_cache_corrupted=: ;;
1357 ,set)
1358 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1359echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1360 ac_cache_corrupted=: ;;
1361 ,);;
1362 *)
1363 if test "x$ac_old_val" != "x$ac_new_val"; then
1364 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1365echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1366 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1367echo "$as_me: former value: $ac_old_val" >&2;}
1368 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1369echo "$as_me: current value: $ac_new_val" >&2;}
1370 ac_cache_corrupted=:
1371 fi;;
1372 esac
1373 # Pass precious variables to config.status.
1374 if test "$ac_new_set" = set; then
1375 case $ac_new_val in
1376 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1377 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1378 *) ac_arg=$ac_var=$ac_new_val ;;
1379 esac
1380 case " $ac_configure_args " in
1381 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1382 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1383 esac
1384 fi
1385done
1386if $ac_cache_corrupted; then
1387 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1388echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1389 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1390echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1391 { (exit 1); exit 1; }; }
1392fi
1393
1394ac_ext=c
1395ac_cpp='$CPP $CPPFLAGS'
1396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1425
1426# Add the stamp file to the list of files AC keeps track of,
1427# along with our hook.
1428ac_config_headers="$ac_config_headers include/config.h"
1429
1430
1431
1432
1433ac_ext=c
1434ac_cpp='$CPP $CPPFLAGS'
1435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441echo "$as_me:$LINENO: checking for $ac_word" >&5
1442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445else
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1448else
1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450for as_dir in $PATH
1451do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460done
1461done
1462
1463fi
1464fi
1465CC=$ac_cv_prog_CC
1466if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468echo "${ECHO_T}$CC" >&6
1469else
1470 echo "$as_me:$LINENO: result: no" >&5
1471echo "${ECHO_T}no" >&6
1472fi
1473
1474fi
1475if test -z "$ac_cv_prog_CC"; then
1476 ac_ct_CC=$CC
1477 # Extract the first word of "gcc", so it can be a program name with args.
1478set dummy gcc; ac_word=$2
1479echo "$as_me:$LINENO: checking for $ac_word" >&5
1480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483else
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486else
1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488for as_dir in $PATH
1489do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498done
1499done
1500
1501fi
1502fi
1503ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506echo "${ECHO_T}$ac_ct_CC" >&6
1507else
1508 echo "$as_me:$LINENO: result: no" >&5
1509echo "${ECHO_T}no" >&6
1510fi
1511
1512 CC=$ac_ct_CC
1513else
1514 CC="$ac_cv_prog_CC"
1515fi
1516
1517if test -z "$CC"; then
1518 if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520set dummy ${ac_tool_prefix}cc; ac_word=$2
1521echo "$as_me:$LINENO: checking for $ac_word" >&5
1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528else
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540done
1541done
1542
1543fi
1544fi
1545CC=$ac_cv_prog_CC
1546if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548echo "${ECHO_T}$CC" >&6
1549else
1550 echo "$as_me:$LINENO: result: no" >&5
1551echo "${ECHO_T}no" >&6
1552fi
1553
1554fi
1555if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "cc", so it can be a program name with args.
1558set dummy cc; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578done
1579done
1580
1581fi
1582fi
1583ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586echo "${ECHO_T}$ac_ct_CC" >&6
1587else
1588 echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592 CC=$ac_ct_CC
1593else
1594 CC="$ac_cv_prog_CC"
1595fi
1596
1597fi
1598if test -z "$CC"; then
1599 # Extract the first word of "cc", so it can be a program name with args.
1600set dummy cc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608else
1609 ac_prog_rejected=no
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1619 continue
1620 fi
1621 ac_cv_prog_CC="cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625done
1626done
1627
1628if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1631 shift
1632 if test $# != 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1636 shift
1637 set dummy "$as_dir/$ac_word" ${1+"$@"}
1638 shift
1639 ac_cv_prog_CC="$@"
1640 fi
1641fi
1642fi
1643fi
1644CC=$ac_cv_prog_CC
1645if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647echo "${ECHO_T}$CC" >&6
1648else
1649 echo "$as_me:$LINENO: result: no" >&5
1650echo "${ECHO_T}no" >&6
1651fi
1652
1653fi
1654if test -z "$CC"; then
1655 if test -n "$ac_tool_prefix"; then
1656 for ac_prog in cl
1657 do
1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1660echo "$as_me:$LINENO: checking for $ac_word" >&5
1661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667else
1668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669for as_dir in $PATH
1670do
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1678 fi
1679done
1680done
1681
1682fi
1683fi
1684CC=$ac_cv_prog_CC
1685if test -n "$CC"; then
1686 echo "$as_me:$LINENO: result: $CC" >&5
1687echo "${ECHO_T}$CC" >&6
1688else
1689 echo "$as_me:$LINENO: result: no" >&5
1690echo "${ECHO_T}no" >&6
1691fi
1692
1693 test -n "$CC" && break
1694 done
1695fi
1696if test -z "$CC"; then
1697 ac_ct_CC=$CC
1698 for ac_prog in cl
1699do
1700 # Extract the first word of "$ac_prog", so it can be a program name with args.
1701set dummy $ac_prog; ac_word=$2
1702echo "$as_me:$LINENO: checking for $ac_word" >&5
1703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709else
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="$ac_prog"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1720 fi
1721done
1722done
1723
1724fi
1725fi
1726ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729echo "${ECHO_T}$ac_ct_CC" >&6
1730else
1731 echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733fi
1734
1735 test -n "$ac_ct_CC" && break
1736done
1737
1738 CC=$ac_ct_CC
1739fi
1740
1741fi
1742
1743
1744test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1745echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1746 { (exit 1); exit 1; }; }
1747
1748# Provide some information about the compiler.
1749echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751ac_compiler=`set X $ac_compile; echo $2`
1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1767
1768cat >conftest.$ac_ext <<_ACEOF
1769#line $LINENO "configure"
1770#include "confdefs.h"
1771
1772#ifdef F77_DUMMY_MAIN
1773# ifdef __cplusplus
1774 extern "C"
1775# endif
1776 int F77_DUMMY_MAIN() { return 1; }
1777#endif
1778int
1779main ()
1780{
1781
1782 ;
1783 return 0;
1784}
1785_ACEOF
1786ac_clean_files_save=$ac_clean_files
1787ac_clean_files="$ac_clean_files a.out a.exe"
1788# Try to create an executable without -o first, disregard a.out.
1789# It will help us diagnose broken compilers, and finding out an intuition
1790# of exeext.
1791echo "$as_me:$LINENO: checking for C compiler default output" >&5
1792echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1793ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801# resort.
1802
1803# Be careful to initialize this variable, since it used to be cached.
1804# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805ac_cv_exeext=
1806for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1807 ls a.out conftest 2>/dev/null;
1808 ls a.* conftest.* 2>/dev/null`; do
1809 case $ac_file in
1810 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1811 a.out ) # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1816 export ac_cv_exeext
1817 break;;
1818 * ) break;;
1819 esac
1820done
1821else
1822 echo "$as_me: failed program was:" >&5
1823cat conftest.$ac_ext >&5
1824{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1825echo "$as_me: error: C compiler cannot create executables" >&2;}
1826 { (exit 77); exit 77; }; }
1827fi
1828
1829ac_exeext=$ac_cv_exeext
1830echo "$as_me:$LINENO: result: $ac_file" >&5
1831echo "${ECHO_T}$ac_file" >&6
1832
1833# Check the compiler produces executables we can run. If not, either
1834# the compiler is broken, or we cross compile.
1835echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1836echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1837# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1838# If not cross compiling, check that we can run a simple program.
1839if test "$cross_compiling" != yes; then
1840 if { ac_try='./$ac_file'
1841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842 (eval $ac_try) 2>&5
1843 ac_status=$?
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; }; then
1846 cross_compiling=no
1847 else
1848 if test "$cross_compiling" = maybe; then
1849 cross_compiling=yes
1850 else
1851 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1852If you meant to cross compile, use \`--host'." >&5
1853echo "$as_me: error: cannot run C compiled programs.
1854If you meant to cross compile, use \`--host'." >&2;}
1855 { (exit 1); exit 1; }; }
1856 fi
1857 fi
1858fi
1859echo "$as_me:$LINENO: result: yes" >&5
1860echo "${ECHO_T}yes" >&6
1861
1862rm -f a.out a.exe conftest$ac_cv_exeext
1863ac_clean_files=$ac_clean_files_save
1864# Check the compiler produces executables we can run. If not, either
1865# the compiler is broken, or we cross compile.
1866echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1867echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1868echo "$as_me:$LINENO: result: $cross_compiling" >&5
1869echo "${ECHO_T}$cross_compiling" >&6
1870
1871echo "$as_me:$LINENO: checking for suffix of executables" >&5
1872echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1874 (eval $ac_link) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1879# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1880# work properly (i.e., refer to `conftest.exe'), while it won't with
1881# `rm'.
1882for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1883 case $ac_file in
1884 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1885 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886 export ac_cv_exeext
1887 break;;
1888 * ) break;;
1889 esac
1890done
1891else
1892 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1893echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1894 { (exit 1); exit 1; }; }
1895fi
1896
1897rm -f conftest$ac_cv_exeext
1898echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1899echo "${ECHO_T}$ac_cv_exeext" >&6
1900
1901rm -f conftest.$ac_ext
1902EXEEXT=$ac_cv_exeext
1903ac_exeext=$EXEEXT
1904echo "$as_me:$LINENO: checking for suffix of object files" >&5
1905echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1906if test "${ac_cv_objext+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908else
1909 cat >conftest.$ac_ext <<_ACEOF
1910#line $LINENO "configure"
1911#include "confdefs.h"
1912
1913#ifdef F77_DUMMY_MAIN
1914# ifdef __cplusplus
1915 extern "C"
1916# endif
1917 int F77_DUMMY_MAIN() { return 1; }
1918#endif
1919int
1920main ()
1921{
1922
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927rm -f conftest.o conftest.obj
1928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; then
1933 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1934 case $ac_file in
1935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1936 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1937 break;;
1938 esac
1939done
1940else
1941 echo "$as_me: failed program was:" >&5
1942cat conftest.$ac_ext >&5
1943{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1944echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1945 { (exit 1); exit 1; }; }
1946fi
1947
1948rm -f conftest.$ac_cv_objext conftest.$ac_ext
1949fi
1950echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1951echo "${ECHO_T}$ac_cv_objext" >&6
1952OBJEXT=$ac_cv_objext
1953ac_objext=$OBJEXT
1954echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1955echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1956if test "${ac_cv_c_compiler_gnu+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 cat >conftest.$ac_ext <<_ACEOF
1960#line $LINENO "configure"
1961#include "confdefs.h"
1962
1963#ifdef F77_DUMMY_MAIN
1964# ifdef __cplusplus
1965 extern "C"
1966# endif
1967 int F77_DUMMY_MAIN() { return 1; }
1968#endif
1969int
1970main ()
1971{
1972#ifndef __GNUC__
1973 choke me
1974#endif
1975
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980rm -f conftest.$ac_objext
1981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1983 ac_status=$?
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -s conftest.$ac_objext'
1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 (eval $ac_try) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; }; then
1992 ac_compiler_gnu=yes
1993else
1994 echo "$as_me: failed program was:" >&5
1995cat conftest.$ac_ext >&5
1996ac_compiler_gnu=no
1997fi
1998rm -f conftest.$ac_objext conftest.$ac_ext
1999ac_cv_c_compiler_gnu=$ac_compiler_gnu
2000
2001fi
2002echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2003echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2004GCC=`test $ac_compiler_gnu = yes && echo yes`
2005ac_test_CFLAGS=${CFLAGS+set}
2006ac_save_CFLAGS=$CFLAGS
2007CFLAGS="-g"
2008echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2009echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2010if test "${ac_cv_prog_cc_g+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013 cat >conftest.$ac_ext <<_ACEOF
2014#line $LINENO "configure"
2015#include "confdefs.h"
2016
2017#ifdef F77_DUMMY_MAIN
2018# ifdef __cplusplus
2019 extern "C"
2020# endif
2021 int F77_DUMMY_MAIN() { return 1; }
2022#endif
2023int
2024main ()
2025{
2026
2027 ;
2028 return 0;
2029}
2030_ACEOF
2031rm -f conftest.$ac_objext
2032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); } &&
2037 { ac_try='test -s conftest.$ac_objext'
2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 (eval $ac_try) 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; }; then
2043 ac_cv_prog_cc_g=yes
2044else
2045 echo "$as_me: failed program was:" >&5
2046cat conftest.$ac_ext >&5
2047ac_cv_prog_cc_g=no
2048fi
2049rm -f conftest.$ac_objext conftest.$ac_ext
2050fi
2051echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2052echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2053if test "$ac_test_CFLAGS" = set; then
2054 CFLAGS=$ac_save_CFLAGS
2055elif test $ac_cv_prog_cc_g = yes; then
2056 if test "$GCC" = yes; then
2057 CFLAGS="-g -O2"
2058 else
2059 CFLAGS="-g"
2060 fi
2061else
2062 if test "$GCC" = yes; then
2063 CFLAGS="-O2"
2064 else
2065 CFLAGS=
2066 fi
2067fi
2068# Some people use a C++ compiler to compile C. Since we use `exit',
2069# in C++ we need to declare it. In case someone uses the same compiler
2070# for both compiling C and C++ we need to have the C++ compiler decide
2071# the declaration of exit, since it's the most demanding environment.
2072cat >conftest.$ac_ext <<_ACEOF
2073#ifndef __cplusplus
2074 choke me
2075#endif
2076_ACEOF
2077rm -f conftest.$ac_objext
2078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); } &&
2083 { ac_try='test -s conftest.$ac_objext'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 (eval $ac_try) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2089 for ac_declaration in \
2090 ''\
2091 '#include <stdlib.h>' \
2092 'extern "C" void std::exit (int) throw (); using std::exit;' \
2093 'extern "C" void std::exit (int); using std::exit;' \
2094 'extern "C" void exit (int) throw ();' \
2095 'extern "C" void exit (int);' \
2096 'void exit (int);'
2097do
2098 cat >conftest.$ac_ext <<_ACEOF
2099#line $LINENO "configure"
2100#include "confdefs.h"
2101#include <stdlib.h>
2102$ac_declaration
2103#ifdef F77_DUMMY_MAIN
2104# ifdef __cplusplus
2105 extern "C"
2106# endif
2107 int F77_DUMMY_MAIN() { return 1; }
2108#endif
2109int
2110main ()
2111{
2112exit (42);
2113 ;
2114 return 0;
2115}
2116_ACEOF
2117rm -f conftest.$ac_objext
2118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119 (eval $ac_compile) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 :
2130else
2131 echo "$as_me: failed program was:" >&5
2132cat conftest.$ac_ext >&5
2133continue
2134fi
2135rm -f conftest.$ac_objext conftest.$ac_ext
2136 cat >conftest.$ac_ext <<_ACEOF
2137#line $LINENO "configure"
2138#include "confdefs.h"
2139$ac_declaration
2140#ifdef F77_DUMMY_MAIN
2141# ifdef __cplusplus
2142 extern "C"
2143# endif
2144 int F77_DUMMY_MAIN() { return 1; }
2145#endif
2146int
2147main ()
2148{
2149exit (42);
2150 ;
2151 return 0;
2152}
2153_ACEOF
2154rm -f conftest.$ac_objext
2155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156 (eval $ac_compile) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -s conftest.$ac_objext'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2166 break
2167else
2168 echo "$as_me: failed program was:" >&5
2169cat conftest.$ac_ext >&5
2170fi
2171rm -f conftest.$ac_objext conftest.$ac_ext
2172done
2173rm -f conftest*
2174if test -n "$ac_declaration"; then
2175 echo '#ifdef __cplusplus' >>confdefs.h
2176 echo $ac_declaration >>confdefs.h
2177 echo '#endif' >>confdefs.h
2178fi
2179
2180else
2181 echo "$as_me: failed program was:" >&5
2182cat conftest.$ac_ext >&5
2183fi
2184rm -f conftest.$ac_objext conftest.$ac_ext
2185ac_ext=c
2186ac_cpp='$CPP $CPPFLAGS'
2187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190
2191ac_ext=c
2192ac_cpp='$CPP $CPPFLAGS'
2193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2197echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2198# On Suns, sometimes $CPP names a directory.
2199if test -n "$CPP" && test -d "$CPP"; then
2200 CPP=
2201fi
2202if test -z "$CPP"; then
2203 if test "${ac_cv_prog_CPP+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206 # Double quotes because CPP needs to be expanded
2207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2208 do
2209 ac_preproc_ok=false
2210for ac_c_preproc_warn_flag in '' yes
2211do
2212 # Use a header file that comes with gcc, so configuring glibc
2213 # with a fresh cross-compiler works.
2214 # On the NeXT, cc -E runs the code through the compiler's parser,
2215 # not just through cpp. "Syntax error" is here to catch this case.
2216 cat >conftest.$ac_ext <<_ACEOF
2217#line $LINENO "configure"
2218#include "confdefs.h"
2219#include <assert.h>
2220 Syntax error
2221_ACEOF
2222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2224 ac_status=$?
2225 egrep -v '^ *\+' conftest.er1 >conftest.err
2226 rm -f conftest.er1
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } >/dev/null; then
2230 if test -s conftest.err; then
2231 ac_cpp_err=$ac_c_preproc_warn_flag
2232 else
2233 ac_cpp_err=
2234 fi
2235else
2236 ac_cpp_err=yes
2237fi
2238if test -z "$ac_cpp_err"; then
2239 :
2240else
2241 echo "$as_me: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2243 # Broken: fails on valid input.
2244continue
2245fi
2246rm -f conftest.err conftest.$ac_ext
2247
2248 # OK, works on sane cases. Now check whether non-existent headers
2249 # can be detected and how.
2250 cat >conftest.$ac_ext <<_ACEOF
2251#line $LINENO "configure"
2252#include "confdefs.h"
2253#include <ac_nonexistent.h>
2254_ACEOF
2255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2257 ac_status=$?
2258 egrep -v '^ *\+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } >/dev/null; then
2263 if test -s conftest.err; then
2264 ac_cpp_err=$ac_c_preproc_warn_flag
2265 else
2266 ac_cpp_err=
2267 fi
2268else
2269 ac_cpp_err=yes
2270fi
2271if test -z "$ac_cpp_err"; then
2272 # Broken: success on invalid input.
2273continue
2274else
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Passes both tests.
2278ac_preproc_ok=:
2279break
2280fi
2281rm -f conftest.err conftest.$ac_ext
2282
2283done
2284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2285rm -f conftest.err conftest.$ac_ext
2286if $ac_preproc_ok; then
2287 break
2288fi
2289
2290 done
2291 ac_cv_prog_CPP=$CPP
2292
2293fi
2294 CPP=$ac_cv_prog_CPP
2295else
2296 ac_cv_prog_CPP=$CPP
2297fi
2298echo "$as_me:$LINENO: result: $CPP" >&5
2299echo "${ECHO_T}$CPP" >&6
2300ac_preproc_ok=false
2301for ac_c_preproc_warn_flag in '' yes
2302do
2303 # Use a header file that comes with gcc, so configuring glibc
2304 # with a fresh cross-compiler works.
2305 # On the NeXT, cc -E runs the code through the compiler's parser,
2306 # not just through cpp. "Syntax error" is here to catch this case.
2307 cat >conftest.$ac_ext <<_ACEOF
2308#line $LINENO "configure"
2309#include "confdefs.h"
2310#include <assert.h>
2311 Syntax error
2312_ACEOF
2313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2315 ac_status=$?
2316 egrep -v '^ *\+' conftest.er1 >conftest.err
2317 rm -f conftest.er1
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } >/dev/null; then
2321 if test -s conftest.err; then
2322 ac_cpp_err=$ac_c_preproc_warn_flag
2323 else
2324 ac_cpp_err=
2325 fi
2326else
2327 ac_cpp_err=yes
2328fi
2329if test -z "$ac_cpp_err"; then
2330 :
2331else
2332 echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 # Broken: fails on valid input.
2335continue
2336fi
2337rm -f conftest.err conftest.$ac_ext
2338
2339 # OK, works on sane cases. Now check whether non-existent headers
2340 # can be detected and how.
2341 cat >conftest.$ac_ext <<_ACEOF
2342#line $LINENO "configure"
2343#include "confdefs.h"
2344#include <ac_nonexistent.h>
2345_ACEOF
2346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2348 ac_status=$?
2349 egrep -v '^ *\+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } >/dev/null; then
2354 if test -s conftest.err; then
2355 ac_cpp_err=$ac_c_preproc_warn_flag
2356 else
2357 ac_cpp_err=
2358 fi
2359else
2360 ac_cpp_err=yes
2361fi
2362if test -z "$ac_cpp_err"; then
2363 # Broken: success on invalid input.
2364continue
2365else
2366 echo "$as_me: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2368 # Passes both tests.
2369ac_preproc_ok=:
2370break
2371fi
2372rm -f conftest.err conftest.$ac_ext
2373
2374done
2375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2376rm -f conftest.err conftest.$ac_ext
2377if $ac_preproc_ok; then
2378 :
2379else
2380 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2381echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2382 { (exit 1); exit 1; }; }
2383fi
2384
2385ac_ext=c
2386ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390
2391
2392echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2393echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2394if test "${ac_cv_prog_cc_stdc+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397 ac_cv_prog_cc_stdc=no
2398ac_save_CC=$CC
2399cat >conftest.$ac_ext <<_ACEOF
2400#line $LINENO "configure"
2401#include "confdefs.h"
2402#include <stdarg.h>
2403#include <stdio.h>
2404#include <sys/types.h>
2405#include <sys/stat.h>
2406/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2407struct buf { int x; };
2408FILE * (*rcsopen) (struct buf *, struct stat *, int);
2409static char *e (p, i)
2410 char **p;
2411 int i;
2412{
2413 return p[i];
2414}
2415static char *f (char * (*g) (char **, int), char **p, ...)
2416{
2417 char *s;
2418 va_list v;
2419 va_start (v,p);
2420 s = g (p, va_arg (v,int));
2421 va_end (v);
2422 return s;
2423}
2424int test (int i, double x);
2425struct s1 {int (*f) (int a);};
2426struct s2 {int (*f) (double a);};
2427int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2428int argc;
2429char **argv;
2430#ifdef F77_DUMMY_MAIN
2431# ifdef __cplusplus
2432 extern "C"
2433# endif
2434 int F77_DUMMY_MAIN() { return 1; }
2435#endif
2436int
2437main ()
2438{
2439return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2440 ;
2441 return 0;
2442}
2443_ACEOF
2444# Don't try gcc -ansi; that turns off useful extensions and
2445# breaks some systems' header files.
2446# AIX -qlanglvl=ansi
2447# Ultrix and OSF/1 -std1
2448# HP-UX 10.20 and later -Ae
2449# HP-UX older versions -Aa -D_HPUX_SOURCE
2450# SVR4 -Xc -D__EXTENSIONS__
2451for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2452do
2453 CC="$ac_save_CC $ac_arg"
2454 rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 ac_cv_prog_cc_stdc=$ac_arg
2467break
2468else
2469 echo "$as_me: failed program was:" >&5
2470cat conftest.$ac_ext >&5
2471fi
2472rm -f conftest.$ac_objext
2473done
2474rm -f conftest.$ac_ext conftest.$ac_objext
2475CC=$ac_save_CC
2476
2477fi
2478
2479case "x$ac_cv_prog_cc_stdc" in
2480 x|xno)
2481 echo "$as_me:$LINENO: result: none needed" >&5
2482echo "${ECHO_T}none needed" >&6 ;;
2483 *)
2484 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2485echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2486 CC="$CC $ac_cv_prog_cc_stdc" ;;
2487esac
2488
2489
2490am__api_version="1.6"
2491ac_aux_dir=
2492for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2493 if test -f $ac_dir/install-sh; then
2494 ac_aux_dir=$ac_dir
2495 ac_install_sh="$ac_aux_dir/install-sh -c"
2496 break
2497 elif test -f $ac_dir/install.sh; then
2498 ac_aux_dir=$ac_dir
2499 ac_install_sh="$ac_aux_dir/install.sh -c"
2500 break
2501 elif test -f $ac_dir/shtool; then
2502 ac_aux_dir=$ac_dir
2503 ac_install_sh="$ac_aux_dir/shtool install -c"
2504 break
2505 fi
2506done
2507if test -z "$ac_aux_dir"; then
2508 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2509echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2510 { (exit 1); exit 1; }; }
2511fi
2512ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2513ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2514ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2515
2516# Find a good install program. We prefer a C program (faster),
2517# so one script is as good as another. But avoid the broken or
2518# incompatible versions:
2519# SysV /etc/install, /usr/sbin/install
2520# SunOS /usr/etc/install
2521# IRIX /sbin/install
2522# AIX /bin/install
2523# AmigaOS /C/install, which installs bootblocks on floppy discs
2524# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2525# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2526# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2527# ./install, which can be erroneously created by make from ./install.sh.
2528echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2529echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2530if test -z "$INSTALL"; then
2531if test "${ac_cv_path_install+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 # Account for people who put trailing slashes in PATH elements.
2540case $as_dir/ in
2541 ./ | .// | /cC/* | \
2542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2543 /usr/ucb/* ) ;;
2544 *)
2545 # OSF1 and SCO ODT 3.0 have their own names for install.
2546 # Don't use installbsd from OSF since it installs stuff as root
2547 # by default.
2548 for ac_prog in ginstall scoinst install; do
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2551 if test $ac_prog = install &&
2552 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553 # AIX install. It has an incompatible calling convention.
2554 :
2555 elif test $ac_prog = install &&
2556 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # program-specific install script used by HP pwplus--don't use.
2558 :
2559 else
2560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2561 break 3
2562 fi
2563 fi
2564 done
2565 done
2566 ;;
2567esac
2568done
2569
2570
2571fi
2572 if test "${ac_cv_path_install+set}" = set; then
2573 INSTALL=$ac_cv_path_install
2574 else
2575 # As a last resort, use the slow shell script. We don't cache a
2576 # path for INSTALL within a source directory, because that will
2577 # break other packages using the cache if that directory is
2578 # removed, or if the path is relative.
2579 INSTALL=$ac_install_sh
2580 fi
2581fi
2582echo "$as_me:$LINENO: result: $INSTALL" >&5
2583echo "${ECHO_T}$INSTALL" >&6
2584
2585# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586# It thinks the first close brace ends the variable substitution.
2587test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2588
2589test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2590
2591test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592
2593echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2594echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2595# Just in case
2596sleep 1
2597echo timestamp > conftest.file
2598# Do `set' in a subshell so we don't clobber the current shell's
2599# arguments. Must try -L first in case configure is actually a
2600# symlink; some systems play weird games with the mod time of symlinks
2601# (eg FreeBSD returns the mod time of the symlink's containing
2602# directory).
2603if (
2604 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2605 if test "$*" = "X"; then
2606 # -L didn't work.
2607 set X `ls -t $srcdir/configure conftest.file`
2608 fi
2609 rm -f conftest.file
2610 if test "$*" != "X $srcdir/configure conftest.file" \
2611 && test "$*" != "X conftest.file $srcdir/configure"; then
2612
2613 # If neither matched, then we have a broken ls. This can happen
2614 # if, for instance, CONFIG_SHELL is bash and it inherits a
2615 # broken ls alias from the environment. This has actually
2616 # happened. Such a system could not be considered "sane".
2617 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2618alias in your environment" >&5
2619echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2620alias in your environment" >&2;}
2621 { (exit 1); exit 1; }; }
2622 fi
2623
2624 test "$2" = conftest.file
2625 )
2626then
2627 # Ok.
2628 :
2629else
2630 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2631Check your system clock" >&5
2632echo "$as_me: error: newly created file is older than distributed files!
2633Check your system clock" >&2;}
2634 { (exit 1); exit 1; }; }
2635fi
2636echo "$as_me:$LINENO: result: yes" >&5
2637echo "${ECHO_T}yes" >&6
2638test "$program_prefix" != NONE &&
2639 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2640# Use a double $ so make ignores it.
2641test "$program_suffix" != NONE &&
2642 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2643# Double any \ or $. echo might interpret backslashes.
2644# By default was `s,x,x', remove it if useless.
2645cat <<\_ACEOF >conftest.sed
2646s/[\\$]/&&/g;s/;s,x,x,$//
2647_ACEOF
2648program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2649rm conftest.sed
2650
2651
2652# expand $ac_aux_dir to an absolute path
2653am_aux_dir=`cd $ac_aux_dir && pwd`
2654
2655test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2656# Use eval to expand $SHELL
2657if eval "$MISSING --run true"; then
2658 am_missing_run="$MISSING --run "
2659else
2660 am_missing_run=
2661 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2662echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2663fi
2664
2665for ac_prog in gawk mawk nawk awk
2666do
2667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2668set dummy $ac_prog; ac_word=$2
2669echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671if test "${ac_cv_prog_AWK+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674 if test -n "$AWK"; then
2675 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_AWK="$ac_prog"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
2690
2691fi
2692fi
2693AWK=$ac_cv_prog_AWK
2694if test -n "$AWK"; then
2695 echo "$as_me:$LINENO: result: $AWK" >&5
2696echo "${ECHO_T}$AWK" >&6
2697else
2698 echo "$as_me:$LINENO: result: no" >&5
2699echo "${ECHO_T}no" >&6
2700fi
2701
2702 test -n "$AWK" && break
2703done
2704
2705echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2706echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2707set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2708if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710else
2711 cat >conftest.make <<\_ACEOF
2712all:
2713 @echo 'ac_maketemp="${MAKE}"'
2714_ACEOF
2715# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2716eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2717if test -n "$ac_maketemp"; then
2718 eval ac_cv_prog_make_${ac_make}_set=yes
2719else
2720 eval ac_cv_prog_make_${ac_make}_set=no
2721fi
2722rm -f conftest.make
2723fi
2724if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2725 echo "$as_me:$LINENO: result: yes" >&5
2726echo "${ECHO_T}yes" >&6
2727 SET_MAKE=
2728else
2729 echo "$as_me:$LINENO: result: no" >&5
2730echo "${ECHO_T}no" >&6
2731 SET_MAKE="MAKE=${MAKE-make}"
2732fi
2733
2734rm -f .deps 2>/dev/null
2735mkdir .deps 2>/dev/null
2736if test -d .deps; then
2737 DEPDIR=.deps
2738else
2739 # MS-DOS does not allow filenames that begin with a dot.
2740 DEPDIR=_deps
2741fi
2742rmdir .deps 2>/dev/null
2743
2744
2745ac_config_commands="$ac_config_commands depfiles"
2746
2747
2748am_make=${MAKE-make}
2749cat > confinc << 'END'
2750doit:
2751 @echo done
2752END
2753# If we don't find an include directive, just comment out the code.
2754echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2755echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2756am__include="#"
2757am__quote=
2758_am_result=none
2759# First try GNU make style include.
2760echo "include confinc" > confmf
2761# We grep out `Entering directory' and `Leaving directory'
2762# messages which can occur if `w' ends up in MAKEFLAGS.
2763# In particular we don't look at `^make:' because GNU make might
2764# be invoked under some other name (usually "gmake"), in which
2765# case it prints its new name instead of `make'.
2766if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2767 am__include=include
2768 am__quote=
2769 _am_result=GNU
2770fi
2771# Now try BSD make style include.
2772if test "$am__include" = "#"; then
2773 echo '.include "confinc"' > confmf
2774 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2775 am__include=.include
2776 am__quote="\""
2777 _am_result=BSD
2778 fi
2779fi
2780
2781
2782echo "$as_me:$LINENO: result: $_am_result" >&5
2783echo "${ECHO_T}$_am_result" >&6
2784rm -f confinc confmf
2785
2786# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2787if test "${enable_dependency_tracking+set}" = set; then
2788 enableval="$enable_dependency_tracking"
2789
2790fi;
2791if test "x$enable_dependency_tracking" != xno; then
2792 am_depcomp="$ac_aux_dir/depcomp"
2793 AMDEPBACKSLASH='\'
2794fi
2795
2796
2797if test "x$enable_dependency_tracking" != xno; then
2798 AMDEP_TRUE=
2799 AMDEP_FALSE='#'
2800else
2801 AMDEP_TRUE='#'
2802 AMDEP_FALSE=
2803fi
2804
2805
2806
2807 # test to see if srcdir already configured
2808if test "`cd $srcdir && pwd`" != "`pwd`" &&
2809 test -f $srcdir/config.status; then
2810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2811echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2812 { (exit 1); exit 1; }; }
2813fi
2814
2815# Define the identity of the package.
2816 PACKAGE=heimdal
2817 VERSION=0.6
2818
2819
2820cat >>confdefs.h <<_ACEOF
2821#define PACKAGE "$PACKAGE"
2822_ACEOF
2823
2824
2825cat >>confdefs.h <<_ACEOF
2826#define VERSION "$VERSION"
2827_ACEOF
2828
2829# Some tools Automake needs.
2830
2831ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2832
2833
2834AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2835
2836
2837AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2838
2839
2840AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2841
2842
2843MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2844
2845
2846AMTAR=${AMTAR-"${am_missing_run}tar"}
2847
2848install_sh=${install_sh-"$am_aux_dir/install-sh"}
2849
2850# Installed binaries are usually stripped using `strip' when the user
2851# run `make install-strip'. However `strip' might not be the right
2852# tool to use in cross-compilation environments, therefore Automake
2853# will honor the `STRIP' environment variable to overrule this program.
2854if test "$cross_compiling" != no; then
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2857set dummy ${ac_tool_prefix}strip; ac_word=$2
2858echo "$as_me:$LINENO: checking for $ac_word" >&5
2859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2860if test "${ac_cv_prog_STRIP+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862else
2863 if test -n "$STRIP"; then
2864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2865else
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877done
2878done
2879
2880fi
2881fi
2882STRIP=$ac_cv_prog_STRIP
2883if test -n "$STRIP"; then
2884 echo "$as_me:$LINENO: result: $STRIP" >&5
2885echo "${ECHO_T}$STRIP" >&6
2886else
2887 echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
2889fi
2890
2891fi
2892if test -z "$ac_cv_prog_STRIP"; then
2893 ac_ct_STRIP=$STRIP
2894 # Extract the first word of "strip", so it can be a program name with args.
2895set dummy strip; ac_word=$2
2896echo "$as_me:$LINENO: checking for $ac_word" >&5
2897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2898if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2900else
2901 if test -n "$ac_ct_STRIP"; then
2902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_ac_ct_STRIP="strip"
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915done
2916done
2917
2918 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2919fi
2920fi
2921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2922if test -n "$ac_ct_STRIP"; then
2923 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2924echo "${ECHO_T}$ac_ct_STRIP" >&6
2925else
2926 echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
2928fi
2929
2930 STRIP=$ac_ct_STRIP
2931else
2932 STRIP="$ac_cv_prog_STRIP"
2933fi
2934
2935fi
2936INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2937
2938# We need awk for the "check" target. The system "awk" is bad on
2939# some platforms.
2940
2941
2942depcc="$CC" am_compiler_list=
2943
2944echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2945echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2946if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948else
2949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2950 # We make a subdir and do the tests there. Otherwise we can end up
2951 # making bogus files that we don't know about and never remove. For
2952 # instance it was reported that on HP-UX the gcc test will end up
2953 # making a dummy file named `D' -- because `-MD' means `put the output
2954 # in D'.
2955 mkdir conftest.dir
2956 # Copy depcomp to subdir because otherwise we won't find it if we're
2957 # using a relative directory.
2958 cp "$am_depcomp" conftest.dir
2959 cd conftest.dir
2960
2961 am_cv_CC_dependencies_compiler_type=none
2962 if test "$am_compiler_list" = ""; then
2963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2964 fi
2965 for depmode in $am_compiler_list; do
2966 # We need to recreate these files for each test, as the compiler may
2967 # overwrite some of them when testing with obscure command lines.
2968 # This happens at least with the AIX C compiler.
2969 echo '#include "conftest.h"' > conftest.c
2970 echo 'int i;' > conftest.h
2971 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2972
2973 case $depmode in
2974 nosideeffect)
2975 # after this tag, mechanisms are not by side-effect, so they'll
2976 # only be used when explicitly requested
2977 if test "x$enable_dependency_tracking" = xyes; then
2978 continue
2979 else
2980 break
2981 fi
2982 ;;
2983 none) break ;;
2984 esac
2985 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2986 # mode. It turns out that the SunPro C++ compiler does not properly
2987 # handle `-M -o', and we need to detect this.
2988 if depmode=$depmode \
2989 source=conftest.c object=conftest.o \
2990 depfile=conftest.Po tmpdepfile=conftest.TPo \
2991 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2992 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2994 am_cv_CC_dependencies_compiler_type=$depmode
2995 break
2996 fi
2997 done
2998
2999 cd ..
3000 rm -rf conftest.dir
3001else
3002 am_cv_CC_dependencies_compiler_type=none
3003fi
3004
3005fi
3006echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3007echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3008CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3009
3010
3011
3012echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3013echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3014 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3015if test "${enable_maintainer_mode+set}" = set; then
3016 enableval="$enable_maintainer_mode"
3017 USE_MAINTAINER_MODE=$enableval
3018else
3019 USE_MAINTAINER_MODE=no
3020fi;
3021 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3022echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3023
3024
3025if test $USE_MAINTAINER_MODE = yes; then
3026 MAINTAINER_MODE_TRUE=
3027 MAINTAINER_MODE_FALSE='#'
3028else
3029 MAINTAINER_MODE_TRUE='#'
3030 MAINTAINER_MODE_FALSE=
3031fi
3032
3033 MAINT=$MAINTAINER_MODE_TRUE
3034
3035
3036
3037
3038
3039test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3040test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3041
3042# Make sure we can run config.sub.
3043$ac_config_sub sun4 >/dev/null 2>&1 ||
3044 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3045echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3046 { (exit 1); exit 1; }; }
3047
3048echo "$as_me:$LINENO: checking build system type" >&5
3049echo $ECHO_N "checking build system type... $ECHO_C" >&6
3050if test "${ac_cv_build+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052else
3053 ac_cv_build_alias=$build_alias
3054test -z "$ac_cv_build_alias" &&
3055 ac_cv_build_alias=`$ac_config_guess`
3056test -z "$ac_cv_build_alias" &&
3057 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3058echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3059 { (exit 1); exit 1; }; }
3060ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3061 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3062echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3063 { (exit 1); exit 1; }; }
3064
3065fi
3066echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3067echo "${ECHO_T}$ac_cv_build" >&6
3068build=$ac_cv_build
3069build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3070build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3071build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3072
3073
3074echo "$as_me:$LINENO: checking host system type" >&5
3075echo $ECHO_N "checking host system type... $ECHO_C" >&6
3076if test "${ac_cv_host+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 ac_cv_host_alias=$host_alias
3080test -z "$ac_cv_host_alias" &&
3081 ac_cv_host_alias=$ac_cv_build_alias
3082ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3083 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3084echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3085 { (exit 1); exit 1; }; }
3086
3087fi
3088echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3089echo "${ECHO_T}$ac_cv_host" >&6
3090host=$ac_cv_host
3091host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3092host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3093host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3094
3095
3096CANONICAL_HOST=$host
3097
3098
3099# Check whether --enable-largefile or --disable-largefile was given.
3100if test "${enable_largefile+set}" = set; then
3101 enableval="$enable_largefile"
3102
3103fi;
3104if test "$enable_largefile" != no; then
3105
3106 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3107echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3108if test "${ac_cv_sys_largefile_CC+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110else
3111 ac_cv_sys_largefile_CC=no
3112 if test "$GCC" != yes; then
3113 ac_save_CC=$CC
3114 while :; do
3115 # IRIX 6.2 and later do not support large files by default,
3116 # so use the C compiler's -n32 option if that helps.
3117 cat >conftest.$ac_ext <<_ACEOF
3118#line $LINENO "configure"
3119#include "confdefs.h"
3120#include <sys/types.h>
3121 /* Check that off_t can represent 2**63 - 1 correctly.
3122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3123 since some C++ compilers masquerading as C compilers
3124 incorrectly reject 9223372036854775807. */
3125#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3127 && LARGE_OFF_T % 2147483647 == 1)
3128 ? 1 : -1];
3129#ifdef F77_DUMMY_MAIN
3130# ifdef __cplusplus
3131 extern "C"
3132# endif
3133 int F77_DUMMY_MAIN() { return 1; }
3134#endif
3135int
3136main ()
3137{
3138
3139 ;
3140 return 0;
3141}
3142_ACEOF
3143 rm -f conftest.$ac_objext
3144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 break
3156else
3157 echo "$as_me: failed program was:" >&5
3158cat conftest.$ac_ext >&5
3159fi
3160rm -f conftest.$ac_objext
3161 CC="$CC -n32"
3162 rm -f conftest.$ac_objext
3163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 (eval $ac_try) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3174 ac_cv_sys_largefile_CC=' -n32'; break
3175else
3176 echo "$as_me: failed program was:" >&5
3177cat conftest.$ac_ext >&5
3178fi
3179rm -f conftest.$ac_objext
3180 break
3181 done
3182 CC=$ac_save_CC
3183 rm -f conftest.$ac_ext
3184 fi
3185fi
3186echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3187echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3188 if test "$ac_cv_sys_largefile_CC" != no; then
3189 CC=$CC$ac_cv_sys_largefile_CC
3190 fi
3191
3192 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3193echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3194if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197 while :; do
3198 ac_cv_sys_file_offset_bits=no
3199 cat >conftest.$ac_ext <<_ACEOF
3200#line $LINENO "configure"
3201#include "confdefs.h"
3202#include <sys/types.h>
3203 /* Check that off_t can represent 2**63 - 1 correctly.
3204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3205 since some C++ compilers masquerading as C compilers
3206 incorrectly reject 9223372036854775807. */
3207#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3209 && LARGE_OFF_T % 2147483647 == 1)
3210 ? 1 : -1];
3211#ifdef F77_DUMMY_MAIN
3212# ifdef __cplusplus
3213 extern "C"
3214# endif
3215 int F77_DUMMY_MAIN() { return 1; }
3216#endif
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227 (eval $ac_compile) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 break
3238else
3239 echo "$as_me: failed program was:" >&5
3240cat conftest.$ac_ext >&5
3241fi
3242rm -f conftest.$ac_objext conftest.$ac_ext
3243 cat >conftest.$ac_ext <<_ACEOF
3244#line $LINENO "configure"
3245#include "confdefs.h"
3246#define _FILE_OFFSET_BITS 64
3247#include <sys/types.h>
3248 /* Check that off_t can represent 2**63 - 1 correctly.
3249 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3250 since some C++ compilers masquerading as C compilers
3251 incorrectly reject 9223372036854775807. */
3252#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3253 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3254 && LARGE_OFF_T % 2147483647 == 1)
3255 ? 1 : -1];
3256#ifdef F77_DUMMY_MAIN
3257# ifdef __cplusplus
3258 extern "C"
3259# endif
3260 int F77_DUMMY_MAIN() { return 1; }
3261#endif
3262int
3263main ()
3264{
3265
3266 ;
3267 return 0;
3268}
3269_ACEOF
3270rm -f conftest.$ac_objext
3271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 ac_cv_sys_file_offset_bits=64; break
3283else
3284 echo "$as_me: failed program was:" >&5
3285cat conftest.$ac_ext >&5
3286fi
3287rm -f conftest.$ac_objext conftest.$ac_ext
3288 break
3289done
3290fi
3291echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3292echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3293if test "$ac_cv_sys_file_offset_bits" != no; then
3294
3295cat >>confdefs.h <<_ACEOF
3296#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3297_ACEOF
3298
3299fi
3300rm -f conftest*
3301 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3302echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3303if test "${ac_cv_sys_large_files+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305else
3306 while :; do
3307 ac_cv_sys_large_files=no
3308 cat >conftest.$ac_ext <<_ACEOF
3309#line $LINENO "configure"
3310#include "confdefs.h"
3311#include <sys/types.h>
3312 /* Check that off_t can represent 2**63 - 1 correctly.
3313 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3314 since some C++ compilers masquerading as C compilers
3315 incorrectly reject 9223372036854775807. */
3316#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3317 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3318 && LARGE_OFF_T % 2147483647 == 1)
3319 ? 1 : -1];
3320#ifdef F77_DUMMY_MAIN
3321# ifdef __cplusplus
3322 extern "C"
3323# endif
3324 int F77_DUMMY_MAIN() { return 1; }
3325#endif
3326int
3327main ()
3328{
3329
3330 ;
3331 return 0;
3332}
3333_ACEOF
3334rm -f conftest.$ac_objext
3335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 break
3347else
3348 echo "$as_me: failed program was:" >&5
3349cat conftest.$ac_ext >&5
3350fi
3351rm -f conftest.$ac_objext conftest.$ac_ext
3352 cat >conftest.$ac_ext <<_ACEOF
3353#line $LINENO "configure"
3354#include "confdefs.h"
3355#define _LARGE_FILES 1
3356#include <sys/types.h>
3357 /* Check that off_t can represent 2**63 - 1 correctly.
3358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3359 since some C++ compilers masquerading as C compilers
3360 incorrectly reject 9223372036854775807. */
3361#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3363 && LARGE_OFF_T % 2147483647 == 1)
3364 ? 1 : -1];
3365#ifdef F77_DUMMY_MAIN
3366# ifdef __cplusplus
3367 extern "C"
3368# endif
3369 int F77_DUMMY_MAIN() { return 1; }
3370#endif
3371int
3372main ()
3373{
3374
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_sys_large_files=1; break
3392else
3393 echo "$as_me: failed program was:" >&5
3394cat conftest.$ac_ext >&5
3395fi
3396rm -f conftest.$ac_objext conftest.$ac_ext
3397 break
3398done
3399fi
3400echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3401echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3402if test "$ac_cv_sys_large_files" != no; then
3403
3404cat >>confdefs.h <<_ACEOF
3405#define _LARGE_FILES $ac_cv_sys_large_files
3406_ACEOF
3407
3408fi
3409rm -f conftest*
3410fi
3411
3412if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
3413 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
3414fi
3415
3416
3417cat >>confdefs.h <<\_ACEOF
3418#define _GNU_SOURCE 1
3419_ACEOF
3420
3421
3422
3423
3424
3425for ac_prog in 'bison -y' byacc
3426do
3427 # Extract the first word of "$ac_prog", so it can be a program name with args.
3428set dummy $ac_prog; ac_word=$2
3429echo "$as_me:$LINENO: checking for $ac_word" >&5
3430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3431if test "${ac_cv_prog_YACC+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 if test -n "$YACC"; then
3435 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3436else
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_YACC="$ac_prog"
3445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448done
3449done
3450
3451fi
3452fi
3453YACC=$ac_cv_prog_YACC
3454if test -n "$YACC"; then
3455 echo "$as_me:$LINENO: result: $YACC" >&5
3456echo "${ECHO_T}$YACC" >&6
3457else
3458 echo "$as_me:$LINENO: result: no" >&5
3459echo "${ECHO_T}no" >&6
3460fi
3461
3462 test -n "$YACC" && break
3463done
3464test -n "$YACC" || YACC="yacc"
3465
3466for ac_prog in flex lex
3467do
3468 # Extract the first word of "$ac_prog", so it can be a program name with args.
3469set dummy $ac_prog; ac_word=$2
3470echo "$as_me:$LINENO: checking for $ac_word" >&5
3471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472if test "${ac_cv_prog_LEX+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474else
3475 if test -n "$LEX"; then
3476 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3477else
3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479for as_dir in $PATH
3480do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_LEX="$ac_prog"
3486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489done
3490done
3491
3492fi
3493fi
3494LEX=$ac_cv_prog_LEX
3495if test -n "$LEX"; then
3496 echo "$as_me:$LINENO: result: $LEX" >&5
3497echo "${ECHO_T}$LEX" >&6
3498else
3499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
3501fi
3502
3503 test -n "$LEX" && break
3504done
3505test -n "$LEX" || LEX=":"
3506
3507if test -z "$LEXLIB"
3508then
3509 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3510echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3511if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514 ac_check_lib_save_LIBS=$LIBS
3515LIBS="-lfl $LIBS"
3516cat >conftest.$ac_ext <<_ACEOF
3517#line $LINENO "configure"
3518#include "confdefs.h"
3519
3520/* Override any gcc2 internal prototype to avoid an error. */
3521#ifdef __cplusplus
3522extern "C"
3523#endif
3524/* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
3526char yywrap ();
3527#ifdef F77_DUMMY_MAIN
3528# ifdef __cplusplus
3529 extern "C"
3530# endif
3531 int F77_DUMMY_MAIN() { return 1; }
3532#endif
3533int
3534main ()
3535{
3536yywrap ();
3537 ;
3538 return 0;
3539}
3540_ACEOF
3541rm -f conftest.$ac_objext conftest$ac_exeext
3542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543 (eval $ac_link) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
3547 { ac_try='test -s conftest$ac_exeext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_cv_lib_fl_yywrap=yes
3554else
3555 echo "$as_me: failed program was:" >&5
3556cat conftest.$ac_ext >&5
3557ac_cv_lib_fl_yywrap=no
3558fi
3559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3560LIBS=$ac_check_lib_save_LIBS
3561fi
3562echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3563echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3564if test $ac_cv_lib_fl_yywrap = yes; then
3565 LEXLIB="-lfl"
3566else
3567 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3568echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3569if test "${ac_cv_lib_l_yywrap+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571else
3572 ac_check_lib_save_LIBS=$LIBS
3573LIBS="-ll $LIBS"
3574cat >conftest.$ac_ext <<_ACEOF
3575#line $LINENO "configure"
3576#include "confdefs.h"
3577
3578/* Override any gcc2 internal prototype to avoid an error. */
3579#ifdef __cplusplus
3580extern "C"
3581#endif
3582/* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3584char yywrap ();
3585#ifdef F77_DUMMY_MAIN
3586# ifdef __cplusplus
3587 extern "C"
3588# endif
3589 int F77_DUMMY_MAIN() { return 1; }
3590#endif
3591int
3592main ()
3593{
3594yywrap ();
3595 ;
3596 return 0;
3597}
3598_ACEOF
3599rm -f conftest.$ac_objext conftest$ac_exeext
3600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601 (eval $ac_link) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -s conftest$ac_exeext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_lib_l_yywrap=yes
3612else
3613 echo "$as_me: failed program was:" >&5
3614cat conftest.$ac_ext >&5
3615ac_cv_lib_l_yywrap=no
3616fi
3617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3618LIBS=$ac_check_lib_save_LIBS
3619fi
3620echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3621echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3622if test $ac_cv_lib_l_yywrap = yes; then
3623 LEXLIB="-ll"
3624fi
3625
3626fi
3627
3628fi
3629
3630if test "x$LEX" != "x:"; then
3631 echo "$as_me:$LINENO: checking lex output file root" >&5
3632echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3633if test "${ac_cv_prog_lex_root+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635else
3636 # The minimal lex program is just a single line: %%. But some broken lexes
3637# (Solaris, I think it was) want two %% lines, so accommodate them.
3638cat >conftest.l <<_ACEOF
3639%%
3640%%
3641_ACEOF
3642{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3643 (eval $LEX conftest.l) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }
3647if test -f lex.yy.c; then
3648 ac_cv_prog_lex_root=lex.yy
3649elif test -f lexyy.c; then
3650 ac_cv_prog_lex_root=lexyy
3651else
3652 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3653echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3654 { (exit 1); exit 1; }; }
3655fi
3656fi
3657echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3658echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3659rm -f conftest.l
3660LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3661
3662echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3663echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3664if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667 # POSIX says lex can declare yytext either as a pointer or an array; the
3668# default is implementation-dependent. Figure out which it is, since
3669# not all implementations provide the %pointer and %array declarations.
3670ac_cv_prog_lex_yytext_pointer=no
3671echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3672ac_save_LIBS=$LIBS
3673LIBS="$LIBS $LEXLIB"
3674cat >conftest.$ac_ext <<_ACEOF
3675`cat $LEX_OUTPUT_ROOT.c`
3676_ACEOF
3677rm -f conftest.$ac_objext conftest$ac_exeext
3678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3679 (eval $ac_link) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -s conftest$ac_exeext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_cv_prog_lex_yytext_pointer=yes
3690else
3691 echo "$as_me: failed program was:" >&5
3692cat conftest.$ac_ext >&5
3693fi
3694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3695LIBS=$ac_save_LIBS
3696rm -f "${LEX_OUTPUT_ROOT}.c"
3697
3698fi
3699echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3700echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3701if test $ac_cv_prog_lex_yytext_pointer = yes; then
3702
3703cat >>confdefs.h <<\_ACEOF
3704#define YYTEXT_POINTER 1
3705_ACEOF
3706
3707fi
3708
3709fi
3710if test "$LEX" = :; then
3711 LEX=${am_missing_run}flex
3712fi
3713for ac_prog in gawk mawk nawk awk
3714do
3715 # Extract the first word of "$ac_prog", so it can be a program name with args.
3716set dummy $ac_prog; ac_word=$2
3717echo "$as_me:$LINENO: checking for $ac_word" >&5
3718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719if test "${ac_cv_prog_AWK+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 if test -n "$AWK"; then
3723 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3724else
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_AWK="$ac_prog"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736done
3737done
3738
3739fi
3740fi
3741AWK=$ac_cv_prog_AWK
3742if test -n "$AWK"; then
3743 echo "$as_me:$LINENO: result: $AWK" >&5
3744echo "${ECHO_T}$AWK" >&6
3745else
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
3748fi
3749
3750 test -n "$AWK" && break
3751done
3752
3753echo "$as_me:$LINENO: checking for ln -s or something else" >&5
3754echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3755if test "${ac_cv_prog_LN_S+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758 rm -f conftestdata
3759if ln -s X conftestdata 2>/dev/null
3760then
3761 rm -f conftestdata
3762 ac_cv_prog_LN_S="ln -s"
3763else
3764 touch conftestdata1
3765 if ln conftestdata1 conftestdata2; then
3766 rm -f conftestdata*
3767 ac_cv_prog_LN_S=ln
3768 else
3769 ac_cv_prog_LN_S=cp
3770 fi
3771fi
3772fi
3773LN_S="$ac_cv_prog_LN_S"
3774echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
3775echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
3776
3777
3778
3779
3780# Check whether --with-mips_abi or --without-mips_abi was given.
3781if test "${with_mips_abi+set}" = set; then
3782 withval="$with_mips_abi"
3783
3784fi;
3785
3786case "$host_os" in
3787irix*)
3788with_mips_abi="${with_mips_abi:-yes}"
3789if test -n "$GCC"; then
3790
3791# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
3792# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
3793#
3794# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
3795# GCC and revert back to O32. The same goes if O32 is asked for - old
3796# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
3797#
3798# Don't you just love *all* the different SGI ABIs?
3799
3800case "${with_mips_abi}" in
3801 32|o32) abi='-mabi=32'; abilibdirext='' ;;
3802 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
3803 64) abi='-mabi=64'; abilibdirext='64' ;;
3804 no) abi=''; abilibdirext='';;
3805 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3806echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3807 { (exit 1); exit 1; }; } ;;
3808esac
3809if test -n "$abi" ; then
3810ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
3811echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
3812echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
3813if eval "test \"\${$ac_foo+set}\" = set"; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816
3817save_CFLAGS="$CFLAGS"
3818CFLAGS="$CFLAGS $abi"
3819cat >conftest.$ac_ext <<_ACEOF
3820#line $LINENO "configure"
3821#include "confdefs.h"
3822
3823#ifdef F77_DUMMY_MAIN
3824# ifdef __cplusplus
3825 extern "C"
3826# endif
3827 int F77_DUMMY_MAIN() { return 1; }
3828#endif
3829int
3830main ()
3831{
3832int x;
3833 ;
3834 return 0;
3835}
3836_ACEOF
3837rm -f conftest.$ac_objext
3838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 eval $ac_foo=yes
3850else
3851 echo "$as_me: failed program was:" >&5
3852cat conftest.$ac_ext >&5
3853eval $ac_foo=no
3854fi
3855rm -f conftest.$ac_objext conftest.$ac_ext
3856CFLAGS="$save_CFLAGS"
3857
3858fi
3859
3860ac_res=`eval echo \\\$$ac_foo`
3861echo "$as_me:$LINENO: result: $ac_res" >&5
3862echo "${ECHO_T}$ac_res" >&6
3863if test $ac_res = no; then
3864# Try to figure out why that failed...
3865case $abi in
3866 -mabi=32)
3867 save_CFLAGS="$CFLAGS"
3868 CFLAGS="$CFLAGS -mabi=n32"
3869 cat >conftest.$ac_ext <<_ACEOF
3870#line $LINENO "configure"
3871#include "confdefs.h"
3872
3873#ifdef F77_DUMMY_MAIN
3874# ifdef __cplusplus
3875 extern "C"
3876# endif
3877 int F77_DUMMY_MAIN() { return 1; }
3878#endif
3879int
3880main ()
3881{
3882int x;
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_res=yes
3900else
3901 echo "$as_me: failed program was:" >&5
3902cat conftest.$ac_ext >&5
3903ac_res=no
3904fi
3905rm -f conftest.$ac_objext conftest.$ac_ext
3906 CLAGS="$save_CFLAGS"
3907 if test $ac_res = yes; then
3908 # New GCC
3909 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3910echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3911 { (exit 1); exit 1; }; }
3912 fi
3913 # Old GCC
3914 abi=''
3915 abilibdirext=''
3916 ;;
3917 -mabi=n32|-mabi=64)
3918 if test $with_mips_abi = yes; then
3919 # Old GCC, default to O32
3920 abi=''
3921 abilibdirext=''
3922 else
3923 # Some broken GCC
3924 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3925echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3926 { (exit 1); exit 1; }; }
3927 fi
3928 ;;
3929esac
3930fi #if test $ac_res = no; then
3931fi #if test -n "$abi" ; then
3932else
3933case "${with_mips_abi}" in
3934 32|o32) abi='-32'; abilibdirext='' ;;
3935 n32|yes) abi='-n32'; abilibdirext='32' ;;
3936 64) abi='-64'; abilibdirext='64' ;;
3937 no) abi=''; abilibdirext='';;
3938 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3939echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3940 { (exit 1); exit 1; }; } ;;
3941esac
3942fi #if test -n "$GCC"; then
3943;;
3944esac
3945
3946CC="$CC $abi"
3947libdir="$libdir$abilibdirext"
3948
3949
3950echo "$as_me:$LINENO: checking for __attribute__" >&5
3951echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
3952if test "${ac_cv___attribute__+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955
3956cat >conftest.$ac_ext <<_ACEOF
3957#line $LINENO "configure"
3958#include "confdefs.h"
3959
3960#include <stdlib.h>
3961
3962#ifdef F77_DUMMY_MAIN
3963# ifdef __cplusplus
3964 extern "C"
3965# endif
3966 int F77_DUMMY_MAIN() { return 1; }
3967#endif
3968int
3969main ()
3970{
3971
3972static void foo(void) __attribute__ ((noreturn));
3973
3974static void
3975foo(void)
3976{
3977 exit(1);
3978}
3979
3980 ;
3981 return 0;
3982}
3983_ACEOF
3984rm -f conftest.$ac_objext
3985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv___attribute__=yes
3997else
3998 echo "$as_me: failed program was:" >&5
3999cat conftest.$ac_ext >&5
4000ac_cv___attribute__=no
4001fi
4002rm -f conftest.$ac_objext conftest.$ac_ext
4003fi
4004
4005if test "$ac_cv___attribute__" = "yes"; then
4006
4007cat >>confdefs.h <<\_ACEOF
4008#define HAVE___ATTRIBUTE__ 1
4009_ACEOF
4010
4011fi
4012echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4013echo "${ECHO_T}$ac_cv___attribute__" >&6
4014
4015
4016# Check whether --enable-shared or --disable-shared was given.
4017if test "${enable_shared+set}" = set; then
4018 enableval="$enable_shared"
4019 p=${PACKAGE-default}
4020case $enableval in
4021yes) enable_shared=yes ;;
4022no) enable_shared=no ;;
4023*)
4024 enable_shared=no
4025 # Look at the argument we got. We use all the common list separators.
4026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4027 for pkg in $enableval; do
4028 if test "X$pkg" = "X$p"; then
4029 enable_shared=yes
4030 fi
4031 done
4032 IFS="$ac_save_ifs"
4033 ;;
4034esac
4035else
4036 enable_shared=no
4037fi;
4038# Check whether --enable-static or --disable-static was given.
4039if test "${enable_static+set}" = set; then
4040 enableval="$enable_static"
4041 p=${PACKAGE-default}
4042case $enableval in
4043yes) enable_static=yes ;;
4044no) enable_static=no ;;
4045*)
4046 enable_static=no
4047 # Look at the argument we got. We use all the common list separators.
4048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4049 for pkg in $enableval; do
4050 if test "X$pkg" = "X$p"; then
4051 enable_static=yes
4052 fi
4053 done
4054 IFS="$ac_save_ifs"
4055 ;;
4056esac
4057else
4058 enable_static=yes
4059fi;
4060# Check whether --enable-fast-install or --disable-fast-install was given.
4061if test "${enable_fast_install+set}" = set; then
4062 enableval="$enable_fast_install"
4063 p=${PACKAGE-default}
4064case $enableval in
4065yes) enable_fast_install=yes ;;
4066no) enable_fast_install=no ;;
4067*)
4068 enable_fast_install=no
4069 # Look at the argument we got. We use all the common list separators.
4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4071 for pkg in $enableval; do
4072 if test "X$pkg" = "X$p"; then
4073 enable_fast_install=yes
4074 fi
4075 done
4076 IFS="$ac_save_ifs"
4077 ;;
4078esac
4079else
4080 enable_fast_install=yes
4081fi;
4082# Find the correct PATH separator. Usually this is `:', but
4083# DJGPP uses `;' like DOS.
4084if test "X${PATH_SEPARATOR+set}" != Xset; then
4085 UNAME=${UNAME-`uname 2>/dev/null`}
4086 case X$UNAME in
4087 *-DOS) lt_cv_sys_path_separator=';' ;;
4088 *) lt_cv_sys_path_separator=':' ;;
4089 esac
4090 PATH_SEPARATOR=$lt_cv_sys_path_separator
4091fi
4092
4093
4094# Check whether --with-gnu-ld or --without-gnu-ld was given.
4095if test "${with_gnu_ld+set}" = set; then
4096 withval="$with_gnu_ld"
4097 test "$withval" = no || with_gnu_ld=yes
4098else
4099 with_gnu_ld=no
4100fi;
4101ac_prog=ld
4102if test "$GCC" = yes; then
4103 # Check if gcc -print-prog-name=ld gives a path.
4104 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4105echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4106 case $host in
4107 *-*-mingw*)
4108 # gcc leaves a trailing carriage return which upsets mingw
4109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4110 *)
4111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4112 esac
4113 case $ac_prog in
4114 # Accept absolute paths.
4115 [\\/]* | [A-Za-z]:[\\/]*)
4116 re_direlt='/[^/][^/]*/\.\./'
4117 # Canonicalize the path of ld
4118 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4119 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4120 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4121 done
4122 test -z "$LD" && LD="$ac_prog"
4123 ;;
4124 "")
4125 # If it fails, then pretend we aren't using GCC.
4126 ac_prog=ld
4127 ;;
4128 *)
4129 # If it is relative, then search for the first ld in PATH.
4130 with_gnu_ld=unknown
4131 ;;
4132 esac
4133elif test "$with_gnu_ld" = yes; then
4134 echo "$as_me:$LINENO: checking for GNU ld" >&5
4135echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4136else
4137 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4138echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4139fi
4140if test "${lt_cv_path_LD+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142else
4143 if test -z "$LD"; then
4144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4145 for ac_dir in $PATH; do
4146 test -z "$ac_dir" && ac_dir=.
4147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4148 lt_cv_path_LD="$ac_dir/$ac_prog"
4149 # Check to see if the program is GNU ld. I'd rather use --version,
4150 # but apparently some GNU ld's only accept -v.
4151 # Break only if it was the GNU/non-GNU ld that we prefer.
4152 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4153 test "$with_gnu_ld" != no && break
4154 else
4155 test "$with_gnu_ld" != yes && break
4156 fi
4157 fi
4158 done
4159 IFS="$ac_save_ifs"
4160else
4161 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4162fi
4163fi
4164
4165LD="$lt_cv_path_LD"
4166if test -n "$LD"; then
4167 echo "$as_me:$LINENO: result: $LD" >&5
4168echo "${ECHO_T}$LD" >&6
4169else
4170 echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6
4172fi
4173test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4174echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4175 { (exit 1); exit 1; }; }
4176echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4177echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4178if test "${lt_cv_prog_gnu_ld+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4182if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4183 lt_cv_prog_gnu_ld=yes
4184else
4185 lt_cv_prog_gnu_ld=no
4186fi
4187fi
4188echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4189echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4190with_gnu_ld=$lt_cv_prog_gnu_ld
4191
4192
4193echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4194echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4195if test "${lt_cv_ld_reload_flag+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197else
4198 lt_cv_ld_reload_flag='-r'
4199fi
4200echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4201echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4202reload_flag=$lt_cv_ld_reload_flag
4203test -n "$reload_flag" && reload_flag=" $reload_flag"
4204
4205echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4206echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4207if test "${lt_cv_path_NM+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
4210 if test -n "$NM"; then
4211 # Let the user override the test.
4212 lt_cv_path_NM="$NM"
4213else
4214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4215 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4216 test -z "$ac_dir" && ac_dir=.
4217 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4218 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4219 # Check to see if the nm accepts a BSD-compat flag.
4220 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4221 # nm: unknown option "B" ignored
4222 # Tru64's nm complains that /dev/null is an invalid object file
4223 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4224 lt_cv_path_NM="$tmp_nm -B"
4225 break
4226 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4227 lt_cv_path_NM="$tmp_nm -p"
4228 break
4229 else
4230 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4231 continue # so that we can try to find one that supports BSD flags
4232 fi
4233 fi
4234 done
4235 IFS="$ac_save_ifs"
4236 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4237fi
4238fi
4239
4240NM="$lt_cv_path_NM"
4241echo "$as_me:$LINENO: result: $NM" >&5
4242echo "${ECHO_T}$NM" >&6
4243
4244echo "$as_me:$LINENO: checking whether ln -s works" >&5
4245echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4246LN_S=$as_ln_s
4247if test "$LN_S" = "ln -s"; then
4248 echo "$as_me:$LINENO: result: yes" >&5
4249echo "${ECHO_T}yes" >&6
4250else
4251 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4252echo "${ECHO_T}no, using $LN_S" >&6
4253fi
4254
4255echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4256echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4257if test "${lt_cv_deplibs_check_method+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 lt_cv_file_magic_cmd='$MAGIC_CMD'
4261lt_cv_file_magic_test_file=
4262lt_cv_deplibs_check_method='unknown'
4263# Need to set the preceding variable on all platforms that support
4264# interlibrary dependencies.
4265# 'none' -- dependencies not supported.
4266# `unknown' -- same as none, but documents that we really don't know.
4267# 'pass_all' -- all dependencies passed with no checks.
4268# 'test_compile' -- check by making test program.
4269# 'file_magic [[regex]]' -- check by looking for files in library path
4270# which responds to the $file_magic_cmd with a given egrep regex.
4271# If you have `file' or equivalent on your system and you're not sure
4272# whether `pass_all' will *always* work, you probably want this one.
4273
4274case $host_os in
4275aix4* | aix5*)
4276 lt_cv_deplibs_check_method=pass_all
4277 ;;
4278
4279beos*)
4280 lt_cv_deplibs_check_method=pass_all
4281 ;;
4282
4283bsdi4*)
4284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4285 lt_cv_file_magic_cmd='/usr/bin/file -L'
4286 lt_cv_file_magic_test_file=/shlib/libc.so
4287 ;;
4288
4289cygwin* | mingw* | pw32*)
4290 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4291 lt_cv_file_magic_cmd='$OBJDUMP -f'
4292 ;;
4293
4294darwin* | rhapsody*)
4295 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4296 lt_cv_file_magic_cmd='/usr/bin/file -L'
4297 case "$host_os" in
4298 rhapsody* | darwin1.[012])
4299 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4300 ;;
4301 *) # Darwin 1.3 on
4302 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4303 ;;
4304 esac
4305 ;;
4306
4307freebsd*)
4308 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4309 case $host_cpu in
4310 i*86 )
4311 # Not sure whether the presence of OpenBSD here was a mistake.
4312 # Let's accept both of them until this is cleared up.
4313 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4314 lt_cv_file_magic_cmd=/usr/bin/file
4315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4316 ;;
4317 esac
4318 else
4319 lt_cv_deplibs_check_method=pass_all
4320 fi
4321 ;;
4322
4323gnu*)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326
4327hpux10.20*|hpux11*)
4328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4329 lt_cv_file_magic_cmd=/usr/bin/file
4330 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4331 ;;
4332
4333irix5* | irix6*)
4334 case $host_os in
4335 irix5*)
4336 # this will be overridden with pass_all, but let us keep it just in case
4337 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4338 ;;
4339 *)
4340 case $LD in
4341 *-32|*"-32 ") libmagic=32-bit;;
4342 *-n32|*"-n32 ") libmagic=N32;;
4343 *-64|*"-64 ") libmagic=64-bit;;
4344 *) libmagic=never-match;;
4345 esac
4346 # this will be overridden with pass_all, but let us keep it just in case
4347 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4348 ;;
4349 esac
4350 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353
4354# This must be Linux ELF.
4355linux-gnu*)
4356 case $host_cpu in
4357 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4358 lt_cv_deplibs_check_method=pass_all ;;
4359 *)
4360 # glibc up to 2.1.1 does not perform some relocations on ARM
4361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4362 esac
4363 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4364 ;;
4365
4366netbsd*)
4367 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4368 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4369 else
4370 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4371 fi
4372 ;;
4373
4374newos6*)
4375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4376 lt_cv_file_magic_cmd=/usr/bin/file
4377 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4378 ;;
4379
4380openbsd*)
4381 lt_cv_file_magic_cmd=/usr/bin/file
4382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4385 else
4386 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4387 fi
4388 ;;
4389
4390osf3* | osf4* | osf5*)
4391 # this will be overridden with pass_all, but let us keep it just in case
4392 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4393 lt_cv_file_magic_test_file=/shlib/libc.so
4394 lt_cv_deplibs_check_method=pass_all
4395 ;;
4396
4397sco3.2v5*)
4398 lt_cv_deplibs_check_method=pass_all
4399 ;;
4400
4401solaris*)
4402 lt_cv_deplibs_check_method=pass_all
4403 lt_cv_file_magic_test_file=/lib/libc.so
4404 ;;
4405
4406sysv5uw[78]* | sysv4*uw2*)
4407 lt_cv_deplibs_check_method=pass_all
4408 ;;
4409
4410sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4411 case $host_vendor in
4412 motorola)
4413 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]'
4414 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4415 ;;
4416 ncr)
4417 lt_cv_deplibs_check_method=pass_all
4418 ;;
4419 sequent)
4420 lt_cv_file_magic_cmd='/bin/file'
4421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4422 ;;
4423 sni)
4424 lt_cv_file_magic_cmd='/bin/file'
4425 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4426 lt_cv_file_magic_test_file=/lib/libc.so
4427 ;;
4428 esac
4429 ;;
4430esac
4431
4432fi
4433echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4434echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4435file_magic_cmd=$lt_cv_file_magic_cmd
4436deplibs_check_method=$lt_cv_deplibs_check_method
4437
4438
4439
4440
4441
4442# Check for command to grab the raw symbol name followed by C symbol from nm.
4443echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4444echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4445if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448
4449# These are sane defaults that work on at least a few old systems.
4450# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4451
4452# Character class describing NM global symbol codes.
4453symcode='[BCDEGRST]'
4454
4455# Regexp to match symbols that can be accessed directly from C.
4456sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4457
4458# Transform the above into a raw symbol and a C symbol.
4459symxfrm='\1 \2\3 \3'
4460
4461# Transform an extracted symbol line into a proper C declaration
4462lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4463
4464# Transform an extracted symbol line into symbol name and symbol address
4465lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4466
4467# Define system-specific variables.
4468case $host_os in
4469aix*)
4470 symcode='[BCDT]'
4471 ;;
4472cygwin* | mingw* | pw32*)
4473 symcode='[ABCDGISTW]'
4474 ;;
4475hpux*) # Its linker distinguishes data from code symbols
4476 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4477 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'"
4478 ;;
4479irix*)
4480 symcode='[BCDEGRST]'
4481 ;;
4482solaris* | sysv5*)
4483 symcode='[BDT]'
4484 ;;
4485sysv4)
4486 symcode='[DFNSTU]'
4487 ;;
4488esac
4489
4490# Handle CRLF in mingw tool chain
4491opt_cr=
4492case $host_os in
4493mingw*)
4494 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4495 ;;
4496esac
4497
4498# If we're using GNU nm, then use its standard symbol codes.
4499if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4500 symcode='[ABCDGISTW]'
4501fi
4502
4503# Try without a prefix undercore, then with it.
4504for ac_symprfx in "" "_"; do
4505
4506 # Write the raw and C identifiers.
4507lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4508
4509 # Check to see that the pipe works correctly.
4510 pipe_works=no
4511 rm -f conftest*
4512 cat > conftest.$ac_ext <<EOF
4513#ifdef __cplusplus
4514extern "C" {
4515#endif
4516char nm_test_var;
4517void nm_test_func(){}
4518#ifdef __cplusplus
4519}
4520#endif
4521int main(){nm_test_var='a';nm_test_func();return(0);}
4522EOF
4523
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525 (eval $ac_compile) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 # Now try to grab the symbols.
4530 nlist=conftest.nm
4531 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4532 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } && test -s "$nlist"; then
4536 # Try sorting and uniquifying the output.
4537 if sort "$nlist" | uniq > "$nlist"T; then
4538 mv -f "$nlist"T "$nlist"
4539 else
4540 rm -f "$nlist"T
4541 fi
4542
4543 # Make sure that we snagged all the symbols we need.
4544 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4545 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4546 cat <<EOF > conftest.$ac_ext
4547#ifdef __cplusplus
4548extern "C" {
4549#endif
4550
4551EOF
4552 # Now generate the symbol file.
4553 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4554
4555 cat <<EOF >> conftest.$ac_ext
4556#if defined (__STDC__) && __STDC__
4557# define lt_ptr void *
4558#else
4559# define lt_ptr char *
4560# define const
4561#endif
4562
4563/* The mapping between symbol names and symbols. */
4564const struct {
4565 const char *name;
4566 lt_ptr address;
4567}
4568lt_preloaded_symbols[] =
4569{
4570EOF
4571 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4572 cat <<\EOF >> conftest.$ac_ext
4573 {0, (lt_ptr) 0}
4574};
4575
4576#ifdef __cplusplus
4577}
4578#endif
4579EOF
4580 # Now try linking the two files.
4581 mv conftest.$ac_objext conftstm.$ac_objext
4582 save_LIBS="$LIBS"
4583 save_CFLAGS="$CFLAGS"
4584 LIBS="conftstm.$ac_objext"
4585 CFLAGS="$CFLAGS$no_builtin_flag"
4586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587 (eval $ac_link) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } && test -s conftest; then
4591 pipe_works=yes
4592 fi
4593 LIBS="$save_LIBS"
4594 CFLAGS="$save_CFLAGS"
4595 else
4596 echo "cannot find nm_test_func in $nlist" >&5
4597 fi
4598 else
4599 echo "cannot find nm_test_var in $nlist" >&5
4600 fi
4601 else
4602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4603 fi
4604 else
4605 echo "$progname: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 fi
4608 rm -f conftest* conftst*
4609
4610 # Do not use the global_symbol_pipe unless it works.
4611 if test "$pipe_works" = yes; then
4612 break
4613 else
4614 lt_cv_sys_global_symbol_pipe=
4615 fi
4616done
4617
4618fi
4619
4620global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4621if test -z "$lt_cv_sys_global_symbol_pipe"; then
4622 global_symbol_to_cdecl=
4623 global_symbol_to_c_name_address=
4624else
4625 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4626 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4627fi
4628if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4629then
4630 echo "$as_me:$LINENO: result: failed" >&5
4631echo "${ECHO_T}failed" >&6
4632else
4633 echo "$as_me:$LINENO: result: ok" >&5
4634echo "${ECHO_T}ok" >&6
4635fi
4636
4637
4638echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4639echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4640if test "${ac_cv_header_stdc+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643 cat >conftest.$ac_ext <<_ACEOF
4644#line $LINENO "configure"
4645#include "confdefs.h"
4646#include <stdlib.h>
4647#include <stdarg.h>
4648#include <string.h>
4649#include <float.h>
4650
4651_ACEOF
4652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4654 ac_status=$?
4655 egrep -v '^ *\+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } >/dev/null; then
4660 if test -s conftest.err; then
4661 ac_cpp_err=$ac_c_preproc_warn_flag
4662 else
4663 ac_cpp_err=
4664 fi
4665else
4666 ac_cpp_err=yes
4667fi
4668if test -z "$ac_cpp_err"; then
4669 ac_cv_header_stdc=yes
4670else
4671 echo "$as_me: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4673 ac_cv_header_stdc=no
4674fi
4675rm -f conftest.err conftest.$ac_ext
4676
4677if test $ac_cv_header_stdc = yes; then
4678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4679 cat >conftest.$ac_ext <<_ACEOF
4680#line $LINENO "configure"
4681#include "confdefs.h"
4682#include <string.h>
4683
4684_ACEOF
4685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4686 egrep "memchr" >/dev/null 2>&1; then
4687 :
4688else
4689 ac_cv_header_stdc=no
4690fi
4691rm -f conftest*
4692
4693fi
4694
4695if test $ac_cv_header_stdc = yes; then
4696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4697 cat >conftest.$ac_ext <<_ACEOF
4698#line $LINENO "configure"
4699#include "confdefs.h"
4700#include <stdlib.h>
4701
4702_ACEOF
4703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4704 egrep "free" >/dev/null 2>&1; then
4705 :
4706else
4707 ac_cv_header_stdc=no
4708fi
4709rm -f conftest*
4710
4711fi
4712
4713if test $ac_cv_header_stdc = yes; then
4714 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4715 if test "$cross_compiling" = yes; then
4716 :
4717else
4718 cat >conftest.$ac_ext <<_ACEOF
4719#line $LINENO "configure"
4720#include "confdefs.h"
4721#include <ctype.h>
4722#if ((' ' & 0x0FF) == 0x020)
4723# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4724# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4725#else
4726# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4727 || ('j' <= (c) && (c) <= 'r') \
4728 || ('s' <= (c) && (c) <= 'z'))
4729# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4730#endif
4731
4732#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4733int
4734main ()
4735{
4736 int i;
4737 for (i = 0; i < 256; i++)
4738 if (XOR (islower (i), ISLOWER (i))
4739 || toupper (i) != TOUPPER (i))
4740 exit(2);
4741 exit (0);
4742}
4743_ACEOF
4744rm -f conftest$ac_exeext
4745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4746 (eval $ac_link) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 :
4756else
4757 echo "$as_me: program exited with status $ac_status" >&5
4758echo "$as_me: failed program was:" >&5
4759cat conftest.$ac_ext >&5
4760( exit $ac_status )
4761ac_cv_header_stdc=no
4762fi
4763rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4764fi
4765fi
4766fi
4767echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4768echo "${ECHO_T}$ac_cv_header_stdc" >&6
4769if test $ac_cv_header_stdc = yes; then
4770
4771cat >>confdefs.h <<\_ACEOF
4772#define STDC_HEADERS 1
4773_ACEOF
4774
4775fi
4776
4777# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4788 inttypes.h stdint.h unistd.h
4789do
4790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791echo "$as_me:$LINENO: checking for $ac_header" >&5
4792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796 cat >conftest.$ac_ext <<_ACEOF
4797#line $LINENO "configure"
4798#include "confdefs.h"
4799$ac_includes_default
4800
4801#include <$ac_header>
4802_ACEOF
4803rm -f conftest.$ac_objext
4804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 eval "$as_ac_Header=yes"
4816else
4817 echo "$as_me: failed program was:" >&5
4818cat conftest.$ac_ext >&5
4819eval "$as_ac_Header=no"
4820fi
4821rm -f conftest.$ac_objext conftest.$ac_ext
4822fi
4823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4825if test `eval echo '${'$as_ac_Header'}'` = yes; then
4826 cat >>confdefs.h <<_ACEOF
4827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4828_ACEOF
4829
4830fi
4831
4832done
4833
4834
4835
4836for ac_header in dlfcn.h
4837do
4838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4839if eval "test \"\${$as_ac_Header+set}\" = set"; then
4840 echo "$as_me:$LINENO: checking for $ac_header" >&5
4841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4842if eval "test \"\${$as_ac_Header+set}\" = set"; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844fi
4845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4847else
4848 # Is the header compilable?
4849echo "$as_me:$LINENO: checking $ac_header usability" >&5
4850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4851cat >conftest.$ac_ext <<_ACEOF
4852#line $LINENO "configure"
4853#include "confdefs.h"
4854$ac_includes_default
4855#include <$ac_header>
4856_ACEOF
4857rm -f conftest.$ac_objext
4858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_header_compiler=yes
4870else
4871 echo "$as_me: failed program was:" >&5
4872cat conftest.$ac_ext >&5
4873ac_header_compiler=no
4874fi
4875rm -f conftest.$ac_objext conftest.$ac_ext
4876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877echo "${ECHO_T}$ac_header_compiler" >&6
4878
4879# Is the header present?
4880echo "$as_me:$LINENO: checking $ac_header presence" >&5
4881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4882cat >conftest.$ac_ext <<_ACEOF
4883#line $LINENO "configure"
4884#include "confdefs.h"
4885#include <$ac_header>
4886_ACEOF
4887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4889 ac_status=$?
4890 egrep -v '^ *\+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null; then
4895 if test -s conftest.err; then
4896 ac_cpp_err=$ac_c_preproc_warn_flag
4897 else
4898 ac_cpp_err=
4899 fi
4900else
4901 ac_cpp_err=yes
4902fi
4903if test -z "$ac_cpp_err"; then
4904 ac_header_preproc=yes
4905else
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 ac_header_preproc=no
4909fi
4910rm -f conftest.err conftest.$ac_ext
4911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912echo "${ECHO_T}$ac_header_preproc" >&6
4913
4914# So? What about this header?
4915case $ac_header_compiler:$ac_header_preproc in
4916 yes:no )
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4921 no:yes )
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4925echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4928esac
4929echo "$as_me:$LINENO: checking for $ac_header" >&5
4930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4931if eval "test \"\${$as_ac_Header+set}\" = set"; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934 eval "$as_ac_Header=$ac_header_preproc"
4935fi
4936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4938
4939fi
4940if test `eval echo '${'$as_ac_Header'}'` = yes; then
4941 cat >>confdefs.h <<_ACEOF
4942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943_ACEOF
4944
4945fi
4946
4947done
4948
4949
4950
4951
4952
4953# Only perform the check for file, if the check method requires it
4954case $deplibs_check_method in
4955file_magic*)
4956 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4957 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4958echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4959if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962 case $MAGIC_CMD in
4963 /*)
4964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4965 ;;
4966 ?:/*)
4967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4968 ;;
4969 *)
4970 ac_save_MAGIC_CMD="$MAGIC_CMD"
4971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4972 ac_dummy="/usr/bin:$PATH"
4973 for ac_dir in $ac_dummy; do
4974 test -z "$ac_dir" && ac_dir=.
4975 if test -f $ac_dir/${ac_tool_prefix}file; then
4976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4977 if test -n "$file_magic_test_file"; then
4978 case $deplibs_check_method in
4979 "file_magic "*)
4980 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4983 egrep "$file_magic_regex" > /dev/null; then
4984 :
4985 else
4986 cat <<EOF 1>&2
4987
4988*** Warning: the command libtool uses to detect shared libraries,
4989*** $file_magic_cmd, produces output that libtool cannot recognize.
4990*** The result is that libtool may fail to recognize shared libraries
4991*** as such. This will affect the creation of libtool libraries that
4992*** depend on shared libraries, but programs linked with such libtool
4993*** libraries will work regardless of this problem. Nevertheless, you
4994*** may want to report the problem to your system manager and/or to
4995*** bug-libtool@gnu.org
4996
4997EOF
4998 fi ;;
4999 esac
5000 fi
5001 break
5002 fi
5003 done
5004 IFS="$ac_save_ifs"
5005 MAGIC_CMD="$ac_save_MAGIC_CMD"
5006 ;;
5007esac
5008fi
5009
5010MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5011if test -n "$MAGIC_CMD"; then
5012 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5013echo "${ECHO_T}$MAGIC_CMD" >&6
5014else
5015 echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6
5017fi
5018
5019if test -z "$lt_cv_path_MAGIC_CMD"; then
5020 if test -n "$ac_tool_prefix"; then
5021 echo "$as_me:$LINENO: checking for file" >&5
5022echo $ECHO_N "checking for file... $ECHO_C" >&6
5023if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 case $MAGIC_CMD in
5027 /*)
5028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5029 ;;
5030 ?:/*)
5031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5032 ;;
5033 *)
5034 ac_save_MAGIC_CMD="$MAGIC_CMD"
5035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5036 ac_dummy="/usr/bin:$PATH"
5037 for ac_dir in $ac_dummy; do
5038 test -z "$ac_dir" && ac_dir=.
5039 if test -f $ac_dir/file; then
5040 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5041 if test -n "$file_magic_test_file"; then
5042 case $deplibs_check_method in
5043 "file_magic "*)
5044 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5046 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5047 egrep "$file_magic_regex" > /dev/null; then
5048 :
5049 else
5050 cat <<EOF 1>&2
5051
5052*** Warning: the command libtool uses to detect shared libraries,
5053*** $file_magic_cmd, produces output that libtool cannot recognize.
5054*** The result is that libtool may fail to recognize shared libraries
5055*** as such. This will affect the creation of libtool libraries that
5056*** depend on shared libraries, but programs linked with such libtool
5057*** libraries will work regardless of this problem. Nevertheless, you
5058*** may want to report the problem to your system manager and/or to
5059*** bug-libtool@gnu.org
5060
5061EOF
5062 fi ;;
5063 esac
5064 fi
5065 break
5066 fi
5067 done
5068 IFS="$ac_save_ifs"
5069 MAGIC_CMD="$ac_save_MAGIC_CMD"
5070 ;;
5071esac
5072fi
5073
5074MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5075if test -n "$MAGIC_CMD"; then
5076 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5077echo "${ECHO_T}$MAGIC_CMD" >&6
5078else
5079 echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6
5081fi
5082
5083 else
5084 MAGIC_CMD=:
5085 fi
5086fi
5087
5088 fi
5089 ;;
5090esac
5091
5092if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5094set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5095echo "$as_me:$LINENO: checking for $ac_word" >&5
5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097if test "${ac_cv_prog_RANLIB+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 if test -n "$RANLIB"; then
5101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114done
5115done
5116
5117fi
5118fi
5119RANLIB=$ac_cv_prog_RANLIB
5120if test -n "$RANLIB"; then
5121 echo "$as_me:$LINENO: result: $RANLIB" >&5
5122echo "${ECHO_T}$RANLIB" >&6
5123else
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126fi
5127
5128fi
5129if test -z "$ac_cv_prog_RANLIB"; then
5130 ac_ct_RANLIB=$RANLIB
5131 # Extract the first word of "ranlib", so it can be a program name with args.
5132set dummy ranlib; ac_word=$2
5133echo "$as_me:$LINENO: checking for $ac_word" >&5
5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 if test -n "$ac_ct_RANLIB"; then
5139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_ac_ct_RANLIB="ranlib"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152done
5153done
5154
5155 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5156fi
5157fi
5158ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5159if test -n "$ac_ct_RANLIB"; then
5160 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5161echo "${ECHO_T}$ac_ct_RANLIB" >&6
5162else
5163 echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165fi
5166
5167 RANLIB=$ac_ct_RANLIB
5168else
5169 RANLIB="$ac_cv_prog_RANLIB"
5170fi
5171
5172if test -n "$ac_tool_prefix"; then
5173 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5174set dummy ${ac_tool_prefix}strip; ac_word=$2
5175echo "$as_me:$LINENO: checking for $ac_word" >&5
5176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5177if test "${ac_cv_prog_STRIP+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180 if test -n "$STRIP"; then
5181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194done
5195done
5196
5197fi
5198fi
5199STRIP=$ac_cv_prog_STRIP
5200if test -n "$STRIP"; then
5201 echo "$as_me:$LINENO: result: $STRIP" >&5
5202echo "${ECHO_T}$STRIP" >&6
5203else
5204 echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
5206fi
5207
5208fi
5209if test -z "$ac_cv_prog_STRIP"; then
5210 ac_ct_STRIP=$STRIP
5211 # Extract the first word of "strip", so it can be a program name with args.
5212set dummy strip; ac_word=$2
5213echo "$as_me:$LINENO: checking for $ac_word" >&5
5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 if test -n "$ac_ct_STRIP"; then
5219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_STRIP="strip"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233done
5234
5235 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5236fi
5237fi
5238ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5239if test -n "$ac_ct_STRIP"; then
5240 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5241echo "${ECHO_T}$ac_ct_STRIP" >&6
5242else
5243 echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6
5245fi
5246
5247 STRIP=$ac_ct_STRIP
5248else
5249 STRIP="$ac_cv_prog_STRIP"
5250fi
5251
5252
5253enable_dlopen=no
5254enable_win32_dll=no
5255
5256# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5257if test "${enable_libtool_lock+set}" = set; then
5258 enableval="$enable_libtool_lock"
5259
5260fi;
5261test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5262
5263# Some flags need to be propagated to the compiler or linker for good
5264# libtool support.
5265case $host in
5266*-*-irix6*)
5267 # Find out which ABI we are using.
5268 echo '#line 5268 "configure"' > conftest.$ac_ext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; then
5274 case `/usr/bin/file conftest.$ac_objext` in
5275 *32-bit*)
5276 LD="${LD-ld} -32"
5277 ;;
5278 *N32*)
5279 LD="${LD-ld} -n32"
5280 ;;
5281 *64-bit*)
5282 LD="${LD-ld} -64"
5283 ;;
5284 esac
5285 fi
5286 rm -rf conftest*
5287 ;;
5288
5289*-*-sco3.2v5*)
5290 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5291 SAVE_CFLAGS="$CFLAGS"
5292 CFLAGS="$CFLAGS -belf"
5293 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5294echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5295if test "${lt_cv_cc_needs_belf+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298
5299
5300 ac_ext=c
5301ac_cpp='$CPP $CPPFLAGS'
5302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306 cat >conftest.$ac_ext <<_ACEOF
5307#line $LINENO "configure"
5308#include "confdefs.h"
5309
5310#ifdef F77_DUMMY_MAIN
5311# ifdef __cplusplus
5312 extern "C"
5313# endif
5314 int F77_DUMMY_MAIN() { return 1; }
5315#endif
5316int
5317main ()
5318{
5319
5320 ;
5321 return 0;
5322}
5323_ACEOF
5324rm -f conftest.$ac_objext conftest$ac_exeext
5325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326 (eval $ac_link) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } &&
5330 { ac_try='test -s conftest$ac_exeext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5336 lt_cv_cc_needs_belf=yes
5337else
5338 echo "$as_me: failed program was:" >&5
5339cat conftest.$ac_ext >&5
5340lt_cv_cc_needs_belf=no
5341fi
5342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5343 ac_ext=c
5344ac_cpp='$CPP $CPPFLAGS'
5345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
5349fi
5350echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5351echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5352 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5353 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5354 CFLAGS="$SAVE_CFLAGS"
5355 fi
5356 ;;
5357
5358
5359esac
5360
5361# Sed substitution that helps us do robust quoting. It backslashifies
5362# metacharacters that are still active within double-quoted strings.
5363Xsed='sed -e s/^X//'
5364sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5365
5366# Same as above, but do not quote variable references.
5367double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5368
5369# Sed substitution to delay expansion of an escaped shell variable in a
5370# double_quote_subst'ed string.
5371delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5372
5373# Constants:
5374rm="rm -f"
5375
5376# Global variables:
5377default_ofile=libtool
5378can_build_shared=yes
5379
5380# All known linkers require a `.a' archive for static linking (except M$VC,
5381# which needs '.lib').
5382libext=a
5383ltmain="$ac_aux_dir/ltmain.sh"
5384ofile="$default_ofile"
5385with_gnu_ld="$lt_cv_prog_gnu_ld"
5386need_locks="$enable_libtool_lock"
5387
5388old_CC="$CC"
5389old_CFLAGS="$CFLAGS"
5390
5391# Set sane defaults for various variables
5392test -z "$AR" && AR=ar
5393test -z "$AR_FLAGS" && AR_FLAGS=cru
5394test -z "$AS" && AS=as
5395test -z "$CC" && CC=cc
5396test -z "$DLLTOOL" && DLLTOOL=dlltool
5397test -z "$LD" && LD=ld
5398test -z "$LN_S" && LN_S="ln -s"
5399test -z "$MAGIC_CMD" && MAGIC_CMD=file
5400test -z "$NM" && NM=nm
5401test -z "$OBJDUMP" && OBJDUMP=objdump
5402test -z "$RANLIB" && RANLIB=:
5403test -z "$STRIP" && STRIP=:
5404test -z "$ac_objext" && ac_objext=o
5405
5406if test x"$host" != x"$build"; then
5407 ac_tool_prefix=${host_alias}-
5408else
5409 ac_tool_prefix=
5410fi
5411
5412# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5413case $host_os in
5414linux-gnu*) ;;
5415linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5416esac
5417
5418case $host_os in
5419aix3*)
5420 # AIX sometimes has problems with the GCC collect2 program. For some
5421 # reason, if we set the COLLECT_NAMES environment variable, the problems
5422 # vanish in a puff of smoke.
5423 if test "X${COLLECT_NAMES+set}" != Xset; then
5424 COLLECT_NAMES=
5425 export COLLECT_NAMES
5426 fi
5427 ;;
5428esac
5429
5430# Determine commands to create old-style static archives.
5431old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5432old_postinstall_cmds='chmod 644 $oldlib'
5433old_postuninstall_cmds=
5434
5435if test -n "$RANLIB"; then
5436 case $host_os in
5437 openbsd*)
5438 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5439 ;;
5440 *)
5441 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5442 ;;
5443 esac
5444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5445fi
5446
5447# Allow CC to be a program name with arguments.
5448set dummy $CC
5449compiler="$2"
5450
5451echo "$as_me:$LINENO: checking for objdir" >&5
5452echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5453rm -f .libs 2>/dev/null
5454mkdir .libs 2>/dev/null
5455if test -d .libs; then
5456 objdir=.libs
5457else
5458 # MS-DOS does not allow filenames that begin with a dot.
5459 objdir=_libs
5460fi
5461rmdir .libs 2>/dev/null
5462echo "$as_me:$LINENO: result: $objdir" >&5
5463echo "${ECHO_T}$objdir" >&6
5464
5465
5466
5467# Check whether --with-pic or --without-pic was given.
5468if test "${with_pic+set}" = set; then
5469 withval="$with_pic"
5470 pic_mode="$withval"
5471else
5472 pic_mode=default
5473fi;
5474test -z "$pic_mode" && pic_mode=default
5475
5476# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5477# in isolation, and that seeing it set (from the cache) indicates that
5478# the associated values are set (in the cache) correctly too.
5479echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5480echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5481if test "${lt_cv_prog_cc_pic+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 lt_cv_prog_cc_pic=
5485 lt_cv_prog_cc_shlib=
5486 lt_cv_prog_cc_wl=
5487 lt_cv_prog_cc_static=
5488 lt_cv_prog_cc_no_builtin=
5489 lt_cv_prog_cc_can_build_shared=$can_build_shared
5490
5491 if test "$GCC" = yes; then
5492 lt_cv_prog_cc_wl='-Wl,'
5493 lt_cv_prog_cc_static='-static'
5494
5495 case $host_os in
5496 aix*)
5497 # Below there is a dirty hack to force normal static linking with -ldl
5498 # The problem is because libdl dynamically linked with both libc and
5499 # libC (AIX C++ library), which obviously doesn't included in libraries
5500 # list by gcc. This cause undefined symbols with -static flags.
5501 # This hack allows C programs to be linked with "-static -ldl", but
5502 # not sure about C++ programs.
5503 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5504 ;;
5505 amigaos*)
5506 # FIXME: we need at least 68020 code to build shared libraries, but
5507 # adding the `-m68020' flag to GCC prevents building anything better,
5508 # like `-m68040'.
5509 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5510 ;;
5511 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5512 # PIC is the default for these OSes.
5513 ;;
5514 darwin* | rhapsody*)
5515 # PIC is the default on this platform
5516 # Common symbols not allowed in MH_DYLIB files
5517 lt_cv_prog_cc_pic='-fno-common'
5518 ;;
5519 cygwin* | mingw* | pw32* | os2*)
5520 # This hack is so that the source file can tell whether it is being
5521 # built for inclusion in a dll (and should export symbols for example).
5522 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5523 ;;
5524 sysv4*MP*)
5525 if test -d /usr/nec; then
5526 lt_cv_prog_cc_pic=-Kconform_pic
5527 fi
5528 ;;
5529 *)
5530 lt_cv_prog_cc_pic='-fPIC'
5531 ;;
5532 esac
5533 else
5534 # PORTME Check for PIC flags for the system compiler.
5535 case $host_os in
5536 aix3* | aix4* | aix5*)
5537 lt_cv_prog_cc_wl='-Wl,'
5538 # All AIX code is PIC.
5539 if test "$host_cpu" = ia64; then
5540 # AIX 5 now supports IA64 processor
5541 lt_cv_prog_cc_static='-Bstatic'
5542 else
5543 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5544 fi
5545 ;;
5546
5547 hpux9* | hpux10* | hpux11*)
5548 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5549 lt_cv_prog_cc_wl='-Wl,'
5550 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5551 lt_cv_prog_cc_pic='+Z'
5552 ;;
5553
5554 irix5* | irix6*)
5555 lt_cv_prog_cc_wl='-Wl,'
5556 lt_cv_prog_cc_static='-non_shared'
5557 # PIC (with -KPIC) is the default.
5558 ;;
5559
5560 cygwin* | mingw* | pw32* | os2*)
5561 # This hack is so that the source file can tell whether it is being
5562 # built for inclusion in a dll (and should export symbols for example).
5563 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5564 ;;
5565
5566 newsos6)
5567 lt_cv_prog_cc_pic='-KPIC'
5568 lt_cv_prog_cc_static='-Bstatic'
5569 ;;
5570
5571 osf3* | osf4* | osf5*)
5572 # All OSF/1 code is PIC.
5573 lt_cv_prog_cc_wl='-Wl,'
5574 lt_cv_prog_cc_static='-non_shared'
5575 ;;
5576
5577 sco3.2v5*)
5578 lt_cv_prog_cc_pic='-Kpic'
5579 lt_cv_prog_cc_static='-dn'
5580 lt_cv_prog_cc_shlib='-belf'
5581 ;;
5582
5583 solaris*)
5584 lt_cv_prog_cc_pic='-KPIC'
5585 lt_cv_prog_cc_static='-Bstatic'
5586 lt_cv_prog_cc_wl='-Wl,'
5587 ;;
5588
5589 sunos4*)
5590 lt_cv_prog_cc_pic='-PIC'
5591 lt_cv_prog_cc_static='-Bstatic'
5592 lt_cv_prog_cc_wl='-Qoption ld '
5593 ;;
5594
5595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5596 lt_cv_prog_cc_pic='-KPIC'
5597 lt_cv_prog_cc_static='-Bstatic'
5598 if test "x$host_vendor" = xsni; then
5599 lt_cv_prog_cc_wl='-LD'
5600 else
5601 lt_cv_prog_cc_wl='-Wl,'
5602 fi
5603 ;;
5604
5605 uts4*)
5606 lt_cv_prog_cc_pic='-pic'
5607 lt_cv_prog_cc_static='-Bstatic'
5608 ;;
5609
5610 sysv4*MP*)
5611 if test -d /usr/nec ;then
5612 lt_cv_prog_cc_pic='-Kconform_pic'
5613 lt_cv_prog_cc_static='-Bstatic'
5614 fi
5615 ;;
5616
5617 *)
5618 lt_cv_prog_cc_can_build_shared=no
5619 ;;
5620 esac
5621 fi
5622
5623fi
5624
5625if test -z "$lt_cv_prog_cc_pic"; then
5626 echo "$as_me:$LINENO: result: none" >&5
5627echo "${ECHO_T}none" >&6
5628else
5629 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5630echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5631
5632 # Check to make sure the pic_flag actually works.
5633 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5634echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5635 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638 save_CFLAGS="$CFLAGS"
5639 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5640 cat >conftest.$ac_ext <<_ACEOF
5641#line $LINENO "configure"
5642#include "confdefs.h"
5643
5644#ifdef F77_DUMMY_MAIN
5645# ifdef __cplusplus
5646 extern "C"
5647# endif
5648 int F77_DUMMY_MAIN() { return 1; }
5649#endif
5650int
5651main ()
5652{
5653
5654 ;
5655 return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext
5659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -s conftest.$ac_objext'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 case $host_os in
5671 hpux9* | hpux10* | hpux11*)
5672 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5673 # they create non-PIC objects. So, if there were any warnings, we
5674 # assume that PIC is not supported.
5675 if test -s conftest.err; then
5676 lt_cv_prog_cc_pic_works=no
5677 else
5678 lt_cv_prog_cc_pic_works=yes
5679 fi
5680 ;;
5681 *)
5682 lt_cv_prog_cc_pic_works=yes
5683 ;;
5684 esac
5685
5686else
5687 echo "$as_me: failed program was:" >&5
5688cat conftest.$ac_ext >&5
5689 lt_cv_prog_cc_pic_works=no
5690
5691fi
5692rm -f conftest.$ac_objext conftest.$ac_ext
5693 CFLAGS="$save_CFLAGS"
5694
5695fi
5696
5697
5698 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5699 lt_cv_prog_cc_pic=
5700 lt_cv_prog_cc_can_build_shared=no
5701 else
5702 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5703 fi
5704
5705 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5706echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5707fi
5708
5709# Check for any special shared library compilation flags.
5710if test -n "$lt_cv_prog_cc_shlib"; then
5711 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5712echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5713 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5714 else
5715 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5716echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5717 lt_cv_prog_cc_can_build_shared=no
5718 fi
5719fi
5720
5721echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5722echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5723if test "${lt_cv_prog_cc_static_works+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726 lt_cv_prog_cc_static_works=no
5727 save_LDFLAGS="$LDFLAGS"
5728 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5729 cat >conftest.$ac_ext <<_ACEOF
5730#line $LINENO "configure"
5731#include "confdefs.h"
5732
5733#ifdef F77_DUMMY_MAIN
5734# ifdef __cplusplus
5735 extern "C"
5736# endif
5737 int F77_DUMMY_MAIN() { return 1; }
5738#endif
5739int
5740main ()
5741{
5742
5743 ;
5744 return 0;
5745}
5746_ACEOF
5747rm -f conftest.$ac_objext conftest$ac_exeext
5748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5749 (eval $ac_link) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -s conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 lt_cv_prog_cc_static_works=yes
5760else
5761 echo "$as_me: failed program was:" >&5
5762cat conftest.$ac_ext >&5
5763fi
5764rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5765 LDFLAGS="$save_LDFLAGS"
5766
5767fi
5768
5769
5770# Belt *and* braces to stop my trousers falling down:
5771test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5772echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5773echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5774
5775pic_flag="$lt_cv_prog_cc_pic"
5776special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5777wl="$lt_cv_prog_cc_wl"
5778link_static_flag="$lt_cv_prog_cc_static"
5779no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5780can_build_shared="$lt_cv_prog_cc_can_build_shared"
5781
5782
5783# Check to see if options -o and -c are simultaneously supported by compiler
5784echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5785echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5786if test "${lt_cv_compiler_c_o+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789
5790$rm -r conftest 2>/dev/null
5791mkdir conftest
5792cd conftest
5793echo "int some_variable = 0;" > conftest.$ac_ext
5794mkdir out
5795# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5796# that will create temporary files in the current directory regardless of
5797# the output directory. Thus, making CWD read-only will cause this test
5798# to fail, enabling locking or at least warning the user not to do parallel
5799# builds.
5800chmod -w .
5801save_CFLAGS="$CFLAGS"
5802CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5803compiler_c_o=no
5804if { (eval echo configure:5804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5805 # The compiler can only warn and ignore the option if not recognized
5806 # So say no if there are warnings
5807 if test -s out/conftest.err; then
5808 lt_cv_compiler_c_o=no
5809 else
5810 lt_cv_compiler_c_o=yes
5811 fi
5812else
5813 # Append any errors to the config.log.
5814 cat out/conftest.err 1>&5
5815 lt_cv_compiler_c_o=no
5816fi
5817CFLAGS="$save_CFLAGS"
5818chmod u+w .
5819$rm conftest* out/*
5820rmdir out
5821cd ..
5822rmdir conftest
5823$rm -r conftest 2>/dev/null
5824
5825fi
5826
5827compiler_c_o=$lt_cv_compiler_c_o
5828echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5829echo "${ECHO_T}$compiler_c_o" >&6
5830
5831if test x"$compiler_c_o" = x"yes"; then
5832 # Check to see if we can write to a .lo
5833 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5834echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5835 if test "${lt_cv_compiler_o_lo+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838
5839 lt_cv_compiler_o_lo=no
5840 save_CFLAGS="$CFLAGS"
5841 CFLAGS="$CFLAGS -c -o conftest.lo"
5842 save_objext="$ac_objext"
5843 ac_objext=lo
5844 cat >conftest.$ac_ext <<_ACEOF
5845#line $LINENO "configure"
5846#include "confdefs.h"
5847
5848#ifdef F77_DUMMY_MAIN
5849# ifdef __cplusplus
5850 extern "C"
5851# endif
5852 int F77_DUMMY_MAIN() { return 1; }
5853#endif
5854int
5855main ()
5856{
5857int some_variable = 0;
5858 ;
5859 return 0;
5860}
5861_ACEOF
5862rm -f conftest.$ac_objext
5863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 # The compiler can only warn and ignore the option if not recognized
5875 # So say no if there are warnings
5876 if test -s conftest.err; then
5877 lt_cv_compiler_o_lo=no
5878 else
5879 lt_cv_compiler_o_lo=yes
5880 fi
5881
5882else
5883 echo "$as_me: failed program was:" >&5
5884cat conftest.$ac_ext >&5
5885fi
5886rm -f conftest.$ac_objext conftest.$ac_ext
5887 ac_objext="$save_objext"
5888 CFLAGS="$save_CFLAGS"
5889
5890fi
5891
5892 compiler_o_lo=$lt_cv_compiler_o_lo
5893 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5894echo "${ECHO_T}$compiler_o_lo" >&6
5895else
5896 compiler_o_lo=no
5897fi
5898
5899# Check to see if we can do hard links to lock some files if needed
5900hard_links="nottested"
5901if test "$compiler_c_o" = no && test "$need_locks" != no; then
5902 # do not overwrite the value of need_locks provided by the user
5903 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5904echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5905 hard_links=yes
5906 $rm conftest*
5907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5908 touch conftest.a
5909 ln conftest.a conftest.b 2>&5 || hard_links=no
5910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5911 echo "$as_me:$LINENO: result: $hard_links" >&5
5912echo "${ECHO_T}$hard_links" >&6
5913 if test "$hard_links" = no; then
5914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5915echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5916 need_locks=warn
5917 fi
5918else
5919 need_locks=no
5920fi
5921
5922if test "$GCC" = yes; then
5923 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5924 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5925echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5926 echo "int some_variable = 0;" > conftest.$ac_ext
5927 save_CFLAGS="$CFLAGS"
5928 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5929 compiler_rtti_exceptions=no
5930 cat >conftest.$ac_ext <<_ACEOF
5931#line $LINENO "configure"
5932#include "confdefs.h"
5933
5934#ifdef F77_DUMMY_MAIN
5935# ifdef __cplusplus
5936 extern "C"
5937# endif
5938 int F77_DUMMY_MAIN() { return 1; }
5939#endif
5940int
5941main ()
5942{
5943int some_variable = 0;
5944 ;
5945 return 0;
5946}
5947_ACEOF
5948rm -f conftest.$ac_objext
5949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950 (eval $ac_compile) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -s conftest.$ac_objext'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 # The compiler can only warn and ignore the option if not recognized
5961 # So say no if there are warnings
5962 if test -s conftest.err; then
5963 compiler_rtti_exceptions=no
5964 else
5965 compiler_rtti_exceptions=yes
5966 fi
5967
5968else
5969 echo "$as_me: failed program was:" >&5
5970cat conftest.$ac_ext >&5
5971fi
5972rm -f conftest.$ac_objext conftest.$ac_ext
5973 CFLAGS="$save_CFLAGS"
5974 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5975echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5976
5977 if test "$compiler_rtti_exceptions" = "yes"; then
5978 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5979 else
5980 no_builtin_flag=' -fno-builtin'
5981 fi
5982fi
5983
5984# See if the linker supports building shared libraries.
5985echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5986echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5987
5988allow_undefined_flag=
5989no_undefined_flag=
5990need_lib_prefix=unknown
5991need_version=unknown
5992# when you set need_version to no, make sure it does not cause -set_version
5993# flags to be left without arguments
5994archive_cmds=
5995archive_expsym_cmds=
5996old_archive_from_new_cmds=
5997old_archive_from_expsyms_cmds=
5998export_dynamic_flag_spec=
5999whole_archive_flag_spec=
6000thread_safe_flag_spec=
6001hardcode_into_libs=no
6002hardcode_libdir_flag_spec=
6003hardcode_libdir_separator=
6004hardcode_direct=no
6005hardcode_minus_L=no
6006hardcode_shlibpath_var=unsupported
6007runpath_var=
6008link_all_deplibs=unknown
6009always_export_symbols=no
6010export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6011# include_expsyms should be a list of space-separated symbols to be *always*
6012# included in the symbol list
6013include_expsyms=
6014# exclude_expsyms can be an egrep regular expression of symbols to exclude
6015# it will be wrapped by ` (' and `)$', so one must not match beginning or
6016# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6017# as well as any symbol that contains `d'.
6018exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6019# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6020# platforms (ab)use it in PIC code, but their linkers get confused if
6021# the symbol is explicitly referenced. Since portable code cannot
6022# rely on this symbol name, it's probably fine to never include it in
6023# preloaded symbol tables.
6024extract_expsyms_cmds=
6025
6026case $host_os in
6027cygwin* | mingw* | pw32*)
6028 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6029 # When not using gcc, we currently assume that we are using
6030 # Microsoft Visual C++.
6031 if test "$GCC" != yes; then
6032 with_gnu_ld=no
6033 fi
6034 ;;
6035openbsd*)
6036 with_gnu_ld=no
6037 ;;
6038esac
6039
6040ld_shlibs=yes
6041if test "$with_gnu_ld" = yes; then
6042 # If archive_cmds runs LD, not CC, wlarc should be empty
6043 wlarc='${wl}'
6044
6045 # See if GNU ld supports shared libraries.
6046 case $host_os in
6047 aix3* | aix4* | aix5*)
6048 # On AIX, the GNU linker is very broken
6049 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6050 ld_shlibs=no
6051 cat <<EOF 1>&2
6052
6053*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6054*** to be unable to reliably create shared libraries on AIX.
6055*** Therefore, libtool is disabling shared libraries support. If you
6056*** really care for shared libraries, you may want to modify your PATH
6057*** so that a non-GNU linker is found, and then restart.
6058
6059EOF
6060 ;;
6061
6062 amigaos*)
6063 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)'
6064 hardcode_libdir_flag_spec='-L$libdir'
6065 hardcode_minus_L=yes
6066
6067 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6068 # that the semantics of dynamic libraries on AmigaOS, at least up
6069 # to version 4, is to share data among multiple programs linked
6070 # with the same dynamic library. Since this doesn't match the
6071 # behavior of shared libraries on other platforms, we can use
6072 # them.
6073 ld_shlibs=no
6074 ;;
6075
6076 beos*)
6077 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6078 allow_undefined_flag=unsupported
6079 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6080 # support --undefined. This deserves some investigation. FIXME
6081 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6082 else
6083 ld_shlibs=no
6084 fi
6085 ;;
6086
6087 cygwin* | mingw* | pw32*)
6088 # hardcode_libdir_flag_spec is actually meaningless, as there is
6089 # no search path for DLLs.
6090 hardcode_libdir_flag_spec='-L$libdir'
6091 allow_undefined_flag=unsupported
6092 always_export_symbols=yes
6093
6094 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6095 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6096 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6097 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6098 else $CC -o impgen impgen.c ; fi)~
6099 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6100
6101 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6102
6103 # cygwin and mingw dlls have different entry points and sets of symbols
6104 # to exclude.
6105 # FIXME: what about values for MSVC?
6106 dll_entry=__cygwin_dll_entry@12
6107 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6108 case $host_os in
6109 mingw*)
6110 # mingw values
6111 dll_entry=_DllMainCRTStartup@12
6112 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6113 ;;
6114 esac
6115
6116 # mingw and cygwin differ, and it's simplest to just exclude the union
6117 # of the two symbol sets.
6118 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6119
6120 # recent cygwin and mingw systems supply a stub DllMain which the user
6121 # can override, but on older systems we have to supply one (in ltdll.c)
6122 if test "x$lt_cv_need_dllmain" = "xyes"; then
6123 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6124 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~
6125 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6126 else
6127 ltdll_obj=
6128 ltdll_cmds=
6129 fi
6130
6131 # Extract the symbol export list from an `--export-all' def file,
6132 # then regenerate the def file from the symbol export list, so that
6133 # the compiled dll only exports the symbol export list.
6134 # Be careful not to strip the DATA tag left be newer dlltools.
6135 export_symbols_cmds="$ltdll_cmds"'
6136 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6137 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6138
6139 # If the export-symbols file already is a .def file (1st line
6140 # is EXPORTS), use it as is.
6141 # If DATA tags from a recent dlltool are present, honour them!
6142 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6143 cp $export_symbols $output_objdir/$soname-def;
6144 else
6145 echo EXPORTS > $output_objdir/$soname-def;
6146 _lt_hint=1;
6147 cat $export_symbols | while read symbol; do
6148 set dummy \$symbol;
6149 case \$# in
6150 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6151 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6152 esac;
6153 _lt_hint=`expr 1 + \$_lt_hint`;
6154 done;
6155 fi~
6156 '"$ltdll_cmds"'
6157 $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~
6158 $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~
6159 $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~
6160 $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~
6161 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6162 ;;
6163
6164 netbsd*)
6165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6166 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6167 wlarc=
6168 else
6169 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6170 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6171 fi
6172 ;;
6173
6174 solaris* | sysv5*)
6175 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6176 ld_shlibs=no
6177 cat <<EOF 1>&2
6178
6179*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6180*** create shared libraries on Solaris systems. Therefore, libtool
6181*** is disabling shared libraries support. We urge you to upgrade GNU
6182*** binutils to release 2.9.1 or newer. Another option is to modify
6183*** your PATH or compiler configuration so that the native linker is
6184*** used, and then restart.
6185
6186EOF
6187 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6190 else
6191 ld_shlibs=no
6192 fi
6193 ;;
6194
6195 sunos4*)
6196 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6197 wlarc=
6198 hardcode_direct=yes
6199 hardcode_shlibpath_var=no
6200 ;;
6201
6202 *)
6203 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6206 else
6207 ld_shlibs=no
6208 fi
6209 ;;
6210 esac
6211
6212 if test "$ld_shlibs" = yes; then
6213 runpath_var=LD_RUN_PATH
6214 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6215 export_dynamic_flag_spec='${wl}--export-dynamic'
6216 case $host_os in
6217 cygwin* | mingw* | pw32*)
6218 # dlltool doesn't understand --whole-archive et. al.
6219 whole_archive_flag_spec=
6220 ;;
6221 *)
6222 # ancient GNU ld didn't support --whole-archive et. al.
6223 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6224 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6225 else
6226 whole_archive_flag_spec=
6227 fi
6228 ;;
6229 esac
6230 fi
6231else
6232 # PORTME fill in a description of your system's linker (not GNU ld)
6233 case $host_os in
6234 aix3*)
6235 allow_undefined_flag=unsupported
6236 always_export_symbols=yes
6237 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'
6238 # Note: this linker hardcodes the directories in LIBPATH if there
6239 # are no directories specified by -L.
6240 hardcode_minus_L=yes
6241 if test "$GCC" = yes && test -z "$link_static_flag"; then
6242 # Neither direct hardcoding nor static linking is supported with a
6243 # broken collect2.
6244 hardcode_direct=unsupported
6245 fi
6246 ;;
6247
6248 aix4* | aix5*)
6249 if test "$host_cpu" = ia64; then
6250 # On IA64, the linker does run time linking by default, so we don't
6251 # have to do anything special.
6252 aix_use_runtimelinking=no
6253 exp_sym_flag='-Bexport'
6254 no_entry_flag=""
6255 else
6256 aix_use_runtimelinking=no
6257
6258 # Test if we are trying to use run time linking or normal
6259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6260 # need to do runtime linking.
6261 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6262 for ld_flag in $LDFLAGS; do
6263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6264 aix_use_runtimelinking=yes
6265 break
6266 fi
6267 done
6268 esac
6269
6270 exp_sym_flag='-bexport'
6271 no_entry_flag='-bnoentry'
6272 fi
6273
6274 # When large executables or shared objects are built, AIX ld can
6275 # have problems creating the table of contents. If linking a library
6276 # or program results in "error TOC overflow" add -mminimal-toc to
6277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6279
6280 hardcode_direct=yes
6281 archive_cmds=''
6282 hardcode_libdir_separator=':'
6283 if test "$GCC" = yes; then
6284 case $host_os in aix4.[012]|aix4.[012].*)
6285 collect2name=`${CC} -print-prog-name=collect2`
6286 if test -f "$collect2name" && \
6287 strings "$collect2name" | grep resolve_lib_name >/dev/null
6288 then
6289 # We have reworked collect2
6290 hardcode_direct=yes
6291 else
6292 # We have old collect2
6293 hardcode_direct=unsupported
6294 # It fails to find uninstalled libraries when the uninstalled
6295 # path is not listed in the libpath. Setting hardcode_minus_L
6296 # to unsupported forces relinking
6297 hardcode_minus_L=yes
6298 hardcode_libdir_flag_spec='-L$libdir'
6299 hardcode_libdir_separator=
6300 fi
6301 esac
6302
6303 shared_flag='-shared'
6304 else
6305 # not using gcc
6306 if test "$host_cpu" = ia64; then
6307 shared_flag='${wl}-G'
6308 else
6309 if test "$aix_use_runtimelinking" = yes; then
6310 shared_flag='${wl}-G'
6311 else
6312 shared_flag='${wl}-bM:SRE'
6313 fi
6314 fi
6315 fi
6316
6317 # It seems that -bexpall can do strange things, so it is better to
6318 # generate a list of symbols to export.
6319 always_export_symbols=yes
6320 if test "$aix_use_runtimelinking" = yes; then
6321 # Warning - without using the other runtime loading flags (-brtl),
6322 # -berok will link without error, but may produce a broken library.
6323 allow_undefined_flag='-berok'
6324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6325 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"
6326 else
6327 if test "$host_cpu" = ia64; then
6328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6329 allow_undefined_flag="-z nodefs"
6330 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"
6331 else
6332 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6333 # Warning - without using the other run time loading flags,
6334 # -berok will link without error, but may produce a broken library.
6335 allow_undefined_flag='${wl}-berok'
6336 # This is a bit strange, but is similar to how AIX traditionally builds
6337 # it's shared libraries.
6338 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'
6339 fi
6340 fi
6341 ;;
6342
6343 amigaos*)
6344 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)'
6345 hardcode_libdir_flag_spec='-L$libdir'
6346 hardcode_minus_L=yes
6347 # see comment about different semantics on the GNU ld section
6348 ld_shlibs=no
6349 ;;
6350
6351 cygwin* | mingw* | pw32*)
6352 # When not using gcc, we currently assume that we are using
6353 # Microsoft Visual C++.
6354 # hardcode_libdir_flag_spec is actually meaningless, as there is
6355 # no search path for DLLs.
6356 hardcode_libdir_flag_spec=' '
6357 allow_undefined_flag=unsupported
6358 # Tell ltmain to make .lib files, not .a files.
6359 libext=lib
6360 # FIXME: Setting linknames here is a bad hack.
6361 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6362 # The linker will automatically build a .lib file if we build a DLL.
6363 old_archive_from_new_cmds='true'
6364 # FIXME: Should let the user specify the lib program.
6365 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6366 fix_srcfile_path='`cygpath -w "$srcfile"`'
6367 ;;
6368
6369 darwin* | rhapsody*)
6370 case "$host_os" in
6371 rhapsody* | darwin1.[012])
6372 allow_undefined_flag='-undefined suppress'
6373 ;;
6374 *) # Darwin 1.3 on
6375 allow_undefined_flag='-flat_namespace -undefined suppress'
6376 ;;
6377 esac
6378 # FIXME: Relying on posixy $() will cause problems for
6379 # cross-compilation, but unfortunately the echo tests do not
6380 # yet detect zsh echo's removal of \ escapes.
6381 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'
6382 # We need to add '_' to the symbols in $export_symbols first
6383 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6384 hardcode_direct=yes
6385 hardcode_shlibpath_var=no
6386 whole_archive_flag_spec='-all_load $convenience'
6387 ;;
6388
6389 freebsd1*)
6390 ld_shlibs=no
6391 ;;
6392
6393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6394 # support. Future versions do this automatically, but an explicit c++rt0.o
6395 # does not break anything, and helps significantly (at the cost of a little
6396 # extra space).
6397 freebsd2.2*)
6398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6399 hardcode_libdir_flag_spec='-R$libdir'
6400 hardcode_direct=yes
6401 hardcode_shlibpath_var=no
6402 ;;
6403
6404 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6405 freebsd2*)
6406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6407 hardcode_direct=yes
6408 hardcode_minus_L=yes
6409 hardcode_shlibpath_var=no
6410 ;;
6411
6412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6413 freebsd*)
6414 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6415 hardcode_libdir_flag_spec='-R$libdir'
6416 hardcode_direct=yes
6417 hardcode_shlibpath_var=no
6418 ;;
6419
6420 hpux9* | hpux10* | hpux11*)
6421 case $host_os in
6422 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' ;;
6423 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6424 esac
6425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6426 hardcode_libdir_separator=:
6427 hardcode_direct=yes
6428 hardcode_minus_L=yes # Not in the search PATH, but as the default
6429 # location of the library.
6430 export_dynamic_flag_spec='${wl}-E'
6431 ;;
6432
6433 irix5* | irix6*)
6434 if test "$GCC" = yes; then
6435 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'
6436 else
6437 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'
6438 fi
6439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6440 hardcode_libdir_separator=:
6441 link_all_deplibs=yes
6442 ;;
6443
6444 netbsd*)
6445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6447 else
6448 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6449 fi
6450 hardcode_libdir_flag_spec='-R$libdir'
6451 hardcode_direct=yes
6452 hardcode_shlibpath_var=no
6453 ;;
6454
6455 newsos6)
6456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6457 hardcode_direct=yes
6458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6459 hardcode_libdir_separator=:
6460 hardcode_shlibpath_var=no
6461 ;;
6462
6463 openbsd*)
6464 hardcode_direct=yes
6465 hardcode_shlibpath_var=no
6466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6469 export_dynamic_flag_spec='${wl}-E'
6470 else
6471 case "$host_os" in
6472 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6474 hardcode_libdir_flag_spec='-R$libdir'
6475 ;;
6476 *)
6477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6479 ;;
6480 esac
6481 fi
6482 ;;
6483
6484 os2*)
6485 hardcode_libdir_flag_spec='-L$libdir'
6486 hardcode_minus_L=yes
6487 allow_undefined_flag=unsupported
6488 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'
6489 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6490 ;;
6491
6492 osf3*)
6493 if test "$GCC" = yes; then
6494 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6495 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'
6496 else
6497 allow_undefined_flag=' -expect_unresolved \*'
6498 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'
6499 fi
6500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6501 hardcode_libdir_separator=:
6502 ;;
6503
6504 osf4* | osf5*) # as osf3* with the addition of -msym flag
6505 if test "$GCC" = yes; then
6506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6507 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'
6508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6509 else
6510 allow_undefined_flag=' -expect_unresolved \*'
6511 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'
6512 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6513 $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'
6514
6515 #Both c and cxx compiler support -rpath directly
6516 hardcode_libdir_flag_spec='-rpath $libdir'
6517 fi
6518 hardcode_libdir_separator=:
6519 ;;
6520
6521 sco3.2v5*)
6522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6523 hardcode_shlibpath_var=no
6524 runpath_var=LD_RUN_PATH
6525 hardcode_runpath_var=yes
6526 export_dynamic_flag_spec='${wl}-Bexport'
6527 ;;
6528
6529 solaris*)
6530 # gcc --version < 3.0 without binutils cannot create self contained
6531 # shared libraries reliably, requiring libgcc.a to resolve some of
6532 # the object symbols generated in some cases. Libraries that use
6533 # assert need libgcc.a to resolve __eprintf, for example. Linking
6534 # a copy of libgcc.a into every shared library to guarantee resolving
6535 # such symbols causes other problems: According to Tim Van Holder
6536 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6537 # (to the application) exception stack for one thing.
6538 no_undefined_flag=' -z defs'
6539 if test "$GCC" = yes; then
6540 case `$CC --version 2>/dev/null` in
6541 [12].*)
6542 cat <<EOF 1>&2
6543
6544*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6545*** create self contained shared libraries on Solaris systems, without
6546*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6547*** -no-undefined support, which will at least allow you to build shared
6548*** libraries. However, you may find that when you link such libraries
6549*** into an application without using GCC, you have to manually add
6550*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6551*** upgrade to a newer version of GCC. Another option is to rebuild your
6552*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6553
6554EOF
6555 no_undefined_flag=
6556 ;;
6557 esac
6558 fi
6559 # $CC -shared without GNU ld will not create a library from C++
6560 # object files and a static libstdc++, better avoid it by now
6561 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6562 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6564 hardcode_libdir_flag_spec='-R$libdir'
6565 hardcode_shlibpath_var=no
6566 case $host_os in
6567 solaris2.[0-5] | solaris2.[0-5].*) ;;
6568 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6569 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6570 esac
6571 link_all_deplibs=yes
6572 ;;
6573
6574 sunos4*)
6575 if test "x$host_vendor" = xsequent; then
6576 # Use $CC to link under sequent, because it throws in some extra .o
6577 # files that make .init and .fini sections work.
6578 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6579 else
6580 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6581 fi
6582 hardcode_libdir_flag_spec='-L$libdir'
6583 hardcode_direct=yes
6584 hardcode_minus_L=yes
6585 hardcode_shlibpath_var=no
6586 ;;
6587
6588 sysv4)
6589 if test "x$host_vendor" = xsno; then
6590 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6591 hardcode_direct=yes # is this really true???
6592 else
6593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6594 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6595 fi
6596 runpath_var='LD_RUN_PATH'
6597 hardcode_shlibpath_var=no
6598 ;;
6599
6600 sysv4.3*)
6601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6602 hardcode_shlibpath_var=no
6603 export_dynamic_flag_spec='-Bexport'
6604 ;;
6605
6606 sysv5*)
6607 no_undefined_flag=' -z text'
6608 # $CC -shared without GNU ld will not create a library from C++
6609 # object files and a static libstdc++, better avoid it by now
6610 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6611 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6613 hardcode_libdir_flag_spec=
6614 hardcode_shlibpath_var=no
6615 runpath_var='LD_RUN_PATH'
6616 ;;
6617
6618 uts4*)
6619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6620 hardcode_libdir_flag_spec='-L$libdir'
6621 hardcode_shlibpath_var=no
6622 ;;
6623
6624 dgux*)
6625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6626 hardcode_libdir_flag_spec='-L$libdir'
6627 hardcode_shlibpath_var=no
6628 ;;
6629
6630 sysv4*MP*)
6631 if test -d /usr/nec; then
6632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6633 hardcode_shlibpath_var=no
6634 runpath_var=LD_RUN_PATH
6635 hardcode_runpath_var=yes
6636 ld_shlibs=yes
6637 fi
6638 ;;
6639
6640 sysv4.2uw2*)
6641 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6642 hardcode_direct=yes
6643 hardcode_minus_L=no
6644 hardcode_shlibpath_var=no
6645 hardcode_runpath_var=yes
6646 runpath_var=LD_RUN_PATH
6647 ;;
6648
6649 sysv5uw7* | unixware7*)
6650 no_undefined_flag='${wl}-z ${wl}text'
6651 if test "$GCC" = yes; then
6652 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6653 else
6654 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6655 fi
6656 runpath_var='LD_RUN_PATH'
6657 hardcode_shlibpath_var=no
6658 ;;
6659
6660 *)
6661 ld_shlibs=no
6662 ;;
6663 esac
6664fi
6665echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6666echo "${ECHO_T}$ld_shlibs" >&6
6667test "$ld_shlibs" = no && can_build_shared=no
6668
6669# Check hardcoding attributes.
6670echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6671echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6672hardcode_action=
6673if test -n "$hardcode_libdir_flag_spec" || \
6674 test -n "$runpath_var"; then
6675
6676 # We can hardcode non-existant directories.
6677 if test "$hardcode_direct" != no &&
6678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6679 # have to relink, otherwise we might link with an installed library
6680 # when we should be linking with a yet-to-be-installed one
6681 ## test "$hardcode_shlibpath_var" != no &&
6682 test "$hardcode_minus_L" != no; then
6683 # Linking always hardcodes the temporary library directory.
6684 hardcode_action=relink
6685 else
6686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6687 hardcode_action=immediate
6688 fi
6689else
6690 # We cannot hardcode anything, or else we can only hardcode existing
6691 # directories.
6692 hardcode_action=unsupported
6693fi
6694echo "$as_me:$LINENO: result: $hardcode_action" >&5
6695echo "${ECHO_T}$hardcode_action" >&6
6696
6697striplib=
6698old_striplib=
6699echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6700echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6701if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6702 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6703 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709fi
6710
6711reload_cmds='$LD$reload_flag -o $output$reload_objs'
6712test -z "$deplibs_check_method" && deplibs_check_method=unknown
6713
6714# PORTME Fill in your ld.so characteristics
6715echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6716echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6717library_names_spec=
6718libname_spec='lib$name'
6719soname_spec=
6720postinstall_cmds=
6721postuninstall_cmds=
6722finish_cmds=
6723finish_eval=
6724shlibpath_var=
6725shlibpath_overrides_runpath=unknown
6726version_type=none
6727dynamic_linker="$host_os ld.so"
6728sys_lib_dlsearch_path_spec="/lib /usr/lib"
6729sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6730
6731case $host_os in
6732aix3*)
6733 version_type=linux
6734 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6735 shlibpath_var=LIBPATH
6736
6737 # AIX has no versioning support, so we append a major version to the name.
6738 soname_spec='${libname}${release}.so$major'
6739 ;;
6740
6741aix4* | aix5*)
6742 version_type=linux
6743 if test "$host_cpu" = ia64; then
6744 # AIX 5 supports IA64
6745 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6746 shlibpath_var=LD_LIBRARY_PATH
6747 else
6748 # With GCC up to 2.95.x, collect2 would create an import file
6749 # for dependence libraries. The import file would start with
6750 # the line `#! .'. This would cause the generated library to
6751 # depend on `.', always an invalid library. This was fixed in
6752 # development snapshots of GCC prior to 3.0.
6753 case $host_os in
6754 aix4 | aix4.[01] | aix4.[01].*)
6755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6756 echo ' yes '
6757 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6758 :
6759 else
6760 can_build_shared=no
6761 fi
6762 ;;
6763 esac
6764 # AIX (on Power*) has no versioning support, so currently we can
6765 # not hardcode correct soname into executable. Probably we can
6766 # add versioning support to collect2, so additional links can
6767 # be useful in future.
6768 if test "$aix_use_runtimelinking" = yes; then
6769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6770 # instead of lib<name>.a to let people know that these are not
6771 # typical AIX shared libraries.
6772 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6773 else
6774 # We preserve .a as extension for shared libraries through AIX4.2
6775 # and later when we are not doing run time linking.
6776 library_names_spec='${libname}${release}.a $libname.a'
6777 soname_spec='${libname}${release}.so$major'
6778 fi
6779 shlibpath_var=LIBPATH
6780 fi
6781 ;;
6782
6783amigaos*)
6784 library_names_spec='$libname.ixlibrary $libname.a'
6785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6786 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'
6787 ;;
6788
6789beos*)
6790 library_names_spec='${libname}.so'
6791 dynamic_linker="$host_os ld.so"
6792 shlibpath_var=LIBRARY_PATH
6793 ;;
6794
6795bsdi4*)
6796 version_type=linux
6797 need_version=no
6798 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6799 soname_spec='${libname}${release}.so$major'
6800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6801 shlibpath_var=LD_LIBRARY_PATH
6802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6804 export_dynamic_flag_spec=-rdynamic
6805 # the default ld.so.conf also contains /usr/contrib/lib and
6806 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6807 # libtool to hard-code these into programs
6808 ;;
6809
6810cygwin* | mingw* | pw32*)
6811 version_type=windows
6812 need_version=no
6813 need_lib_prefix=no
6814 case $GCC,$host_os in
6815 yes,cygwin*)
6816 library_names_spec='$libname.dll.a'
6817 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6818 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6819 dldir=$destdir/`dirname \$dlpath`~
6820 test -d \$dldir || mkdir -p \$dldir~
6821 $install_prog .libs/$dlname \$dldir/$dlname'
6822 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6823 dlpath=$dir/\$dldll~
6824 $rm \$dlpath'
6825 ;;
6826 yes,mingw*)
6827 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6829 ;;
6830 yes,pw32*)
6831 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6832 ;;
6833 *)
6834 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6835 ;;
6836 esac
6837 dynamic_linker='Win32 ld.exe'
6838 # FIXME: first we should search . and the directory the executable is in
6839 shlibpath_var=PATH
6840 ;;
6841
6842darwin* | rhapsody*)
6843 dynamic_linker="$host_os dyld"
6844 version_type=darwin
6845 need_lib_prefix=no
6846 need_version=no
6847 # FIXME: Relying on posixy $() will cause problems for
6848 # cross-compilation, but unfortunately the echo tests do not
6849 # yet detect zsh echo's removal of \ escapes.
6850 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)'
6851 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6852 shlibpath_overrides_runpath=yes
6853 shlibpath_var=DYLD_LIBRARY_PATH
6854 ;;
6855
6856freebsd1*)
6857 dynamic_linker=no
6858 ;;
6859
6860freebsd*)
6861 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6862 version_type=freebsd-$objformat
6863 case $version_type in
6864 freebsd-elf*)
6865 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6866 need_version=no
6867 need_lib_prefix=no
6868 ;;
6869 freebsd-*)
6870 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6871 need_version=yes
6872 ;;
6873 esac
6874 shlibpath_var=LD_LIBRARY_PATH
6875 case $host_os in
6876 freebsd2*)
6877 shlibpath_overrides_runpath=yes
6878 ;;
6879 *)
6880 shlibpath_overrides_runpath=no
6881 hardcode_into_libs=yes
6882 ;;
6883 esac
6884 ;;
6885
6886gnu*)
6887 version_type=linux
6888 need_lib_prefix=no
6889 need_version=no
6890 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6891 soname_spec='${libname}${release}.so$major'
6892 shlibpath_var=LD_LIBRARY_PATH
6893 hardcode_into_libs=yes
6894 ;;
6895
6896hpux9* | hpux10* | hpux11*)
6897 # Give a soname corresponding to the major version so that dld.sl refuses to
6898 # link against other versions.
6899 dynamic_linker="$host_os dld.sl"
6900 version_type=sunos
6901 need_lib_prefix=no
6902 need_version=no
6903 shlibpath_var=SHLIB_PATH
6904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6905 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6906 soname_spec='${libname}${release}.sl$major'
6907 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6908 postinstall_cmds='chmod 555 $lib'
6909 ;;
6910
6911irix5* | irix6*)
6912 version_type=irix
6913 need_lib_prefix=no
6914 need_version=no
6915 soname_spec='${libname}${release}.so$major'
6916 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6917 case $host_os in
6918 irix5*)
6919 libsuff= shlibsuff=
6920 ;;
6921 *)
6922 case $LD in # libtool.m4 will add one of these switches to LD
6923 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6924 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6925 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6926 *) libsuff= shlibsuff= libmagic=never-match;;
6927 esac
6928 ;;
6929 esac
6930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6931 shlibpath_overrides_runpath=no
6932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6934 ;;
6935
6936# No shared lib support for Linux oldld, aout, or coff.
6937linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6938 dynamic_linker=no
6939 ;;
6940
6941# This must be Linux ELF.
6942linux-gnu*)
6943 version_type=linux
6944 need_lib_prefix=no
6945 need_version=no
6946 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6947 soname_spec='${libname}${release}.so$major'
6948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6949 shlibpath_var=LD_LIBRARY_PATH
6950 shlibpath_overrides_runpath=no
6951 # This implies no fast_install, which is unacceptable.
6952 # Some rework will be needed to allow for fast_install
6953 # before this can be enabled.
6954 hardcode_into_libs=yes
6955
6956 # We used to test for /lib/ld.so.1 and disable shared libraries on
6957 # powerpc, because MkLinux only supported shared libraries with the
6958 # GNU dynamic linker. Since this was broken with cross compilers,
6959 # most powerpc-linux boxes support dynamic linking these days and
6960 # people can always --disable-shared, the test was removed, and we
6961 # assume the GNU/Linux dynamic linker is in use.
6962 dynamic_linker='GNU/Linux ld.so'
6963 ;;
6964
6965netbsd*)
6966 version_type=sunos
6967 need_lib_prefix=no
6968 need_version=no
6969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6970 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6972 dynamic_linker='NetBSD (a.out) ld.so'
6973 else
6974 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6975 soname_spec='${libname}${release}.so$major'
6976 dynamic_linker='NetBSD ld.elf_so'
6977 fi
6978 shlibpath_var=LD_LIBRARY_PATH
6979 shlibpath_overrides_runpath=yes
6980 hardcode_into_libs=yes
6981 ;;
6982
6983newsos6)
6984 version_type=linux
6985 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6986 shlibpath_var=LD_LIBRARY_PATH
6987 shlibpath_overrides_runpath=yes
6988 ;;
6989
6990openbsd*)
6991 version_type=sunos
6992 need_lib_prefix=no
6993 need_version=no
6994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6995 case "$host_os" in
6996 openbsd2.[89] | openbsd2.[89].*)
6997 shlibpath_overrides_runpath=no
6998 ;;
6999 *)
7000 shlibpath_overrides_runpath=yes
7001 ;;
7002 esac
7003 else
7004 shlibpath_overrides_runpath=yes
7005 fi
7006 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7008 shlibpath_var=LD_LIBRARY_PATH
7009 ;;
7010
7011os2*)
7012 libname_spec='$name'
7013 need_lib_prefix=no
7014 library_names_spec='$libname.dll $libname.a'
7015 dynamic_linker='OS/2 ld.exe'
7016 shlibpath_var=LIBPATH
7017 ;;
7018
7019osf3* | osf4* | osf5*)
7020 version_type=osf
7021 need_version=no
7022 soname_spec='${libname}${release}.so'
7023 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7024 shlibpath_var=LD_LIBRARY_PATH
7025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7027 ;;
7028
7029sco3.2v5*)
7030 version_type=osf
7031 soname_spec='${libname}${release}.so$major'
7032 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7033 shlibpath_var=LD_LIBRARY_PATH
7034 ;;
7035
7036solaris*)
7037 version_type=linux
7038 need_lib_prefix=no
7039 need_version=no
7040 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7041 soname_spec='${libname}${release}.so$major'
7042 shlibpath_var=LD_LIBRARY_PATH
7043 shlibpath_overrides_runpath=yes
7044 hardcode_into_libs=yes
7045 # ldd complains unless libraries are executable
7046 postinstall_cmds='chmod +x $lib'
7047 ;;
7048
7049sunos4*)
7050 version_type=sunos
7051 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7053 shlibpath_var=LD_LIBRARY_PATH
7054 shlibpath_overrides_runpath=yes
7055 if test "$with_gnu_ld" = yes; then
7056 need_lib_prefix=no
7057 fi
7058 need_version=yes
7059 ;;
7060
7061sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7062 version_type=linux
7063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7064 soname_spec='${libname}${release}.so$major'
7065 shlibpath_var=LD_LIBRARY_PATH
7066 case $host_vendor in
7067 sni)
7068 shlibpath_overrides_runpath=no
7069 ;;
7070 motorola)
7071 need_lib_prefix=no
7072 need_version=no
7073 shlibpath_overrides_runpath=no
7074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7075 ;;
7076 esac
7077 ;;
7078
7079uts4*)
7080 version_type=linux
7081 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7082 soname_spec='${libname}${release}.so$major'
7083 shlibpath_var=LD_LIBRARY_PATH
7084 ;;
7085
7086dgux*)
7087 version_type=linux
7088 need_lib_prefix=no
7089 need_version=no
7090 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7091 soname_spec='${libname}${release}.so$major'
7092 shlibpath_var=LD_LIBRARY_PATH
7093 ;;
7094
7095sysv4*MP*)
7096 if test -d /usr/nec ;then
7097 version_type=linux
7098 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7099 soname_spec='$libname.so.$major'
7100 shlibpath_var=LD_LIBRARY_PATH
7101 fi
7102 ;;
7103
7104*)
7105 dynamic_linker=no
7106 ;;
7107esac
7108echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7109echo "${ECHO_T}$dynamic_linker" >&6
7110test "$dynamic_linker" = no && can_build_shared=no
7111
7112# Report the final consequences.
7113echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7114echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7115echo "$as_me:$LINENO: result: $can_build_shared" >&5
7116echo "${ECHO_T}$can_build_shared" >&6
7117
7118echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7119echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7120test "$can_build_shared" = "no" && enable_shared=no
7121
7122# On AIX, shared libraries and static libraries use the same namespace, and
7123# are all built from PIC.
7124case "$host_os" in
7125aix3*)
7126 test "$enable_shared" = yes && enable_static=no
7127 if test -n "$RANLIB"; then
7128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7129 postinstall_cmds='$RANLIB $lib'
7130 fi
7131 ;;
7132
7133aix4*)
7134 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7135 test "$enable_shared" = yes && enable_static=no
7136 fi
7137 ;;
7138esac
7139echo "$as_me:$LINENO: result: $enable_shared" >&5
7140echo "${ECHO_T}$enable_shared" >&6
7141
7142echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7143echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7144# Make sure either enable_shared or enable_static is yes.
7145test "$enable_shared" = yes || enable_static=yes
7146echo "$as_me:$LINENO: result: $enable_static" >&5
7147echo "${ECHO_T}$enable_static" >&6
7148
7149if test "$hardcode_action" = relink; then
7150 # Fast installation is not supported
7151 enable_fast_install=no
7152elif test "$shlibpath_overrides_runpath" = yes ||
7153 test "$enable_shared" = no; then
7154 # Fast installation is not necessary
7155 enable_fast_install=needless
7156fi
7157
7158variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7159if test "$GCC" = yes; then
7160 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7161fi
7162
7163if test "x$enable_dlopen" != xyes; then
7164 enable_dlopen=unknown
7165 enable_dlopen_self=unknown
7166 enable_dlopen_self_static=unknown
7167else
7168 lt_cv_dlopen=no
7169 lt_cv_dlopen_libs=
7170
7171 case $host_os in
7172 beos*)
7173 lt_cv_dlopen="load_add_on"
7174 lt_cv_dlopen_libs=
7175 lt_cv_dlopen_self=yes
7176 ;;
7177
7178 cygwin* | mingw* | pw32*)
7179 lt_cv_dlopen="LoadLibrary"
7180 lt_cv_dlopen_libs=
7181 ;;
7182
7183 *)
7184 echo "$as_me:$LINENO: checking for shl_load" >&5
7185echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7186if test "${ac_cv_func_shl_load+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189 cat >conftest.$ac_ext <<_ACEOF
7190#line $LINENO "configure"
7191#include "confdefs.h"
7192/* System header to define __stub macros and hopefully few prototypes,
7193 which can conflict with char shl_load (); below. */
7194#include <assert.h>
7195/* Override any gcc2 internal prototype to avoid an error. */
7196#ifdef __cplusplus
7197extern "C"
7198#endif
7199/* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201char shl_load ();
7202char (*f) ();
7203
7204#ifdef F77_DUMMY_MAIN
7205# ifdef __cplusplus
7206 extern "C"
7207# endif
7208 int F77_DUMMY_MAIN() { return 1; }
7209#endif
7210int
7211main ()
7212{
7213/* The GNU C library defines this for functions which it implements
7214 to always fail with ENOSYS. Some functions are actually named
7215 something starting with __ and the normal name is an alias. */
7216#if defined (__stub_shl_load) || defined (__stub___shl_load)
7217choke me
7218#else
7219f = shl_load;
7220#endif
7221
7222 ;
7223 return 0;
7224}
7225_ACEOF
7226rm -f conftest.$ac_objext conftest$ac_exeext
7227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try='test -s conftest$ac_exeext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 ac_cv_func_shl_load=yes
7239else
7240 echo "$as_me: failed program was:" >&5
7241cat conftest.$ac_ext >&5
7242ac_cv_func_shl_load=no
7243fi
7244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7245fi
7246echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7247echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7248if test $ac_cv_func_shl_load = yes; then
7249 lt_cv_dlopen="shl_load"
7250else
7251 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7252echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7253if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256 ac_check_lib_save_LIBS=$LIBS
7257LIBS="-ldld $LIBS"
7258cat >conftest.$ac_ext <<_ACEOF
7259#line $LINENO "configure"
7260#include "confdefs.h"
7261
7262/* Override any gcc2 internal prototype to avoid an error. */
7263#ifdef __cplusplus
7264extern "C"
7265#endif
7266/* We use char because int might match the return type of a gcc2
7267 builtin and then its argument prototype would still apply. */
7268char shl_load ();
7269#ifdef F77_DUMMY_MAIN
7270# ifdef __cplusplus
7271 extern "C"
7272# endif
7273 int F77_DUMMY_MAIN() { return 1; }
7274#endif
7275int
7276main ()
7277{
7278shl_load ();
7279 ;
7280 return 0;
7281}
7282_ACEOF
7283rm -f conftest.$ac_objext conftest$ac_exeext
7284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -s conftest$ac_exeext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_lib_dld_shl_load=yes
7296else
7297 echo "$as_me: failed program was:" >&5
7298cat conftest.$ac_ext >&5
7299ac_cv_lib_dld_shl_load=no
7300fi
7301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7302LIBS=$ac_check_lib_save_LIBS
7303fi
7304echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7305echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7306if test $ac_cv_lib_dld_shl_load = yes; then
7307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7308else
7309 echo "$as_me:$LINENO: checking for dlopen" >&5
7310echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7311if test "${ac_cv_func_dlopen+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314 cat >conftest.$ac_ext <<_ACEOF
7315#line $LINENO "configure"
7316#include "confdefs.h"
7317/* System header to define __stub macros and hopefully few prototypes,
7318 which can conflict with char dlopen (); below. */
7319#include <assert.h>
7320/* Override any gcc2 internal prototype to avoid an error. */
7321#ifdef __cplusplus
7322extern "C"
7323#endif
7324/* We use char because int might match the return type of a gcc2
7325 builtin and then its argument prototype would still apply. */
7326char dlopen ();
7327char (*f) ();
7328
7329#ifdef F77_DUMMY_MAIN
7330# ifdef __cplusplus
7331 extern "C"
7332# endif
7333 int F77_DUMMY_MAIN() { return 1; }
7334#endif
7335int
7336main ()
7337{
7338/* The GNU C library defines this for functions which it implements
7339 to always fail with ENOSYS. Some functions are actually named
7340 something starting with __ and the normal name is an alias. */
7341#if defined (__stub_dlopen) || defined (__stub___dlopen)
7342choke me
7343#else
7344f = dlopen;
7345#endif
7346
7347 ;
7348 return 0;
7349}
7350_ACEOF
7351rm -f conftest.$ac_objext conftest$ac_exeext
7352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_func_dlopen=yes
7364else
7365 echo "$as_me: failed program was:" >&5
7366cat conftest.$ac_ext >&5
7367ac_cv_func_dlopen=no
7368fi
7369rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7370fi
7371echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7372echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7373if test $ac_cv_func_dlopen = yes; then
7374 lt_cv_dlopen="dlopen"
7375else
7376 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7377echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7378if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381 ac_check_lib_save_LIBS=$LIBS
7382LIBS="-ldl $LIBS"
7383cat >conftest.$ac_ext <<_ACEOF
7384#line $LINENO "configure"
7385#include "confdefs.h"
7386
7387/* Override any gcc2 internal prototype to avoid an error. */
7388#ifdef __cplusplus
7389extern "C"
7390#endif
7391/* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7393char dlopen ();
7394#ifdef F77_DUMMY_MAIN
7395# ifdef __cplusplus
7396 extern "C"
7397# endif
7398 int F77_DUMMY_MAIN() { return 1; }
7399#endif
7400int
7401main ()
7402{
7403dlopen ();
7404 ;
7405 return 0;
7406}
7407_ACEOF
7408rm -f conftest.$ac_objext conftest$ac_exeext
7409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410 (eval $ac_link) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -s conftest$ac_exeext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_cv_lib_dl_dlopen=yes
7421else
7422 echo "$as_me: failed program was:" >&5
7423cat conftest.$ac_ext >&5
7424ac_cv_lib_dl_dlopen=no
7425fi
7426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7427LIBS=$ac_check_lib_save_LIBS
7428fi
7429echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7430echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7431if test $ac_cv_lib_dl_dlopen = yes; then
7432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7433else
7434 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7435echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7436if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439 ac_check_lib_save_LIBS=$LIBS
7440LIBS="-lsvld $LIBS"
7441cat >conftest.$ac_ext <<_ACEOF
7442#line $LINENO "configure"
7443#include "confdefs.h"
7444
7445/* Override any gcc2 internal prototype to avoid an error. */
7446#ifdef __cplusplus
7447extern "C"
7448#endif
7449/* We use char because int might match the return type of a gcc2
7450 builtin and then its argument prototype would still apply. */
7451char dlopen ();
7452#ifdef F77_DUMMY_MAIN
7453# ifdef __cplusplus
7454 extern "C"
7455# endif
7456 int F77_DUMMY_MAIN() { return 1; }
7457#endif
7458int
7459main ()
7460{
7461dlopen ();
7462 ;
7463 return 0;
7464}
7465_ACEOF
7466rm -f conftest.$ac_objext conftest$ac_exeext
7467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468 (eval $ac_link) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -s conftest$ac_exeext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 (eval $ac_try) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 ac_cv_lib_svld_dlopen=yes
7479else
7480 echo "$as_me: failed program was:" >&5
7481cat conftest.$ac_ext >&5
7482ac_cv_lib_svld_dlopen=no
7483fi
7484rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7485LIBS=$ac_check_lib_save_LIBS
7486fi
7487echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7488echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7489if test $ac_cv_lib_svld_dlopen = yes; then
7490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7491else
7492 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7493echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7494if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7496else
7497 ac_check_lib_save_LIBS=$LIBS
7498LIBS="-ldld $LIBS"
7499cat >conftest.$ac_ext <<_ACEOF
7500#line $LINENO "configure"
7501#include "confdefs.h"
7502
7503/* Override any gcc2 internal prototype to avoid an error. */
7504#ifdef __cplusplus
7505extern "C"
7506#endif
7507/* We use char because int might match the return type of a gcc2
7508 builtin and then its argument prototype would still apply. */
7509char dld_link ();
7510#ifdef F77_DUMMY_MAIN
7511# ifdef __cplusplus
7512 extern "C"
7513# endif
7514 int F77_DUMMY_MAIN() { return 1; }
7515#endif
7516int
7517main ()
7518{
7519dld_link ();
7520 ;
7521 return 0;
7522}
7523_ACEOF
7524rm -f conftest.$ac_objext conftest$ac_exeext
7525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7526 (eval $ac_link) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -s conftest$ac_exeext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532 (eval $ac_try) 2>&5
7533 ac_status=$?
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_lib_dld_dld_link=yes
7537else
7538 echo "$as_me: failed program was:" >&5
7539cat conftest.$ac_ext >&5
7540ac_cv_lib_dld_dld_link=no
7541fi
7542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7543LIBS=$ac_check_lib_save_LIBS
7544fi
7545echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7546echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7547if test $ac_cv_lib_dld_dld_link = yes; then
7548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7549fi
7550
7551
7552fi
7553
7554
7555fi
7556
7557
7558fi
7559
7560
7561fi
7562
7563
7564fi
7565
7566 ;;
7567 esac
7568
7569 if test "x$lt_cv_dlopen" != xno; then
7570 enable_dlopen=yes
7571 else
7572 enable_dlopen=no
7573 fi
7574
7575 case $lt_cv_dlopen in
7576 dlopen)
7577 save_CPPFLAGS="$CPPFLAGS"
7578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7579
7580 save_LDFLAGS="$LDFLAGS"
7581 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7582
7583 save_LIBS="$LIBS"
7584 LIBS="$lt_cv_dlopen_libs $LIBS"
7585
7586 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7587echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7588if test "${lt_cv_dlopen_self+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591 if test "$cross_compiling" = yes; then :
7592 lt_cv_dlopen_self=cross
7593else
7594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7595 lt_status=$lt_dlunknown
7596 cat > conftest.$ac_ext <<EOF
7597#line 7597 "configure"
7598#include "confdefs.h"
7599
7600#if HAVE_DLFCN_H
7601#include <dlfcn.h>
7602#endif
7603
7604#include <stdio.h>
7605
7606#ifdef RTLD_GLOBAL
7607# define LT_DLGLOBAL RTLD_GLOBAL
7608#else
7609# ifdef DL_GLOBAL
7610# define LT_DLGLOBAL DL_GLOBAL
7611# else
7612# define LT_DLGLOBAL 0
7613# endif
7614#endif
7615
7616/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7617 find out it does not work in some platform. */
7618#ifndef LT_DLLAZY_OR_NOW
7619# ifdef RTLD_LAZY
7620# define LT_DLLAZY_OR_NOW RTLD_LAZY
7621# else
7622# ifdef DL_LAZY
7623# define LT_DLLAZY_OR_NOW DL_LAZY
7624# else
7625# ifdef RTLD_NOW
7626# define LT_DLLAZY_OR_NOW RTLD_NOW
7627# else
7628# ifdef DL_NOW
7629# define LT_DLLAZY_OR_NOW DL_NOW
7630# else
7631# define LT_DLLAZY_OR_NOW 0
7632# endif
7633# endif
7634# endif
7635# endif
7636#endif
7637
7638#ifdef __cplusplus
7639extern "C" void exit (int);
7640#endif
7641
7642void fnord() { int i=42;}
7643int main ()
7644{
7645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7646 int status = $lt_dlunknown;
7647
7648 if (self)
7649 {
7650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7652 /* dlclose (self); */
7653 }
7654
7655 exit (status);
7656}
7657EOF
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7663 (./conftest; exit; ) 2>/dev/null
7664 lt_status=$?
7665 case x$lt_status in
7666 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7667 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7668 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7669 esac
7670 else :
7671 # compilation failed
7672 lt_cv_dlopen_self=no
7673 fi
7674fi
7675rm -fr conftest*
7676
7677
7678fi
7679echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7680echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7681
7682 if test "x$lt_cv_dlopen_self" = xyes; then
7683 LDFLAGS="$LDFLAGS $link_static_flag"
7684 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7685echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7686if test "${lt_cv_dlopen_self_static+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689 if test "$cross_compiling" = yes; then :
7690 lt_cv_dlopen_self_static=cross
7691else
7692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7693 lt_status=$lt_dlunknown
7694 cat > conftest.$ac_ext <<EOF
7695#line 7695 "configure"
7696#include "confdefs.h"
7697
7698#if HAVE_DLFCN_H
7699#include <dlfcn.h>
7700#endif
7701
7702#include <stdio.h>
7703
7704#ifdef RTLD_GLOBAL
7705# define LT_DLGLOBAL RTLD_GLOBAL
7706#else
7707# ifdef DL_GLOBAL
7708# define LT_DLGLOBAL DL_GLOBAL
7709# else
7710# define LT_DLGLOBAL 0
7711# endif
7712#endif
7713
7714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7715 find out it does not work in some platform. */
7716#ifndef LT_DLLAZY_OR_NOW
7717# ifdef RTLD_LAZY
7718# define LT_DLLAZY_OR_NOW RTLD_LAZY
7719# else
7720# ifdef DL_LAZY
7721# define LT_DLLAZY_OR_NOW DL_LAZY
7722# else
7723# ifdef RTLD_NOW
7724# define LT_DLLAZY_OR_NOW RTLD_NOW
7725# else
7726# ifdef DL_NOW
7727# define LT_DLLAZY_OR_NOW DL_NOW
7728# else
7729# define LT_DLLAZY_OR_NOW 0
7730# endif
7731# endif
7732# endif
7733# endif
7734#endif
7735
7736#ifdef __cplusplus
7737extern "C" void exit (int);
7738#endif
7739
7740void fnord() { int i=42;}
7741int main ()
7742{
7743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7744 int status = $lt_dlunknown;
7745
7746 if (self)
7747 {
7748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7750 /* dlclose (self); */
7751 }
7752
7753 exit (status);
7754}
7755EOF
7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7761 (./conftest; exit; ) 2>/dev/null
7762 lt_status=$?
7763 case x$lt_status in
7764 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7765 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7766 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7767 esac
7768 else :
7769 # compilation failed
7770 lt_cv_dlopen_self_static=no
7771 fi
7772fi
7773rm -fr conftest*
7774
7775
7776fi
7777echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7778echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7779 fi
7780
7781 CPPFLAGS="$save_CPPFLAGS"
7782 LDFLAGS="$save_LDFLAGS"
7783 LIBS="$save_LIBS"
7784 ;;
7785 esac
7786
7787 case $lt_cv_dlopen_self in
7788 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7789 *) enable_dlopen_self=unknown ;;
7790 esac
7791
7792 case $lt_cv_dlopen_self_static in
7793 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7794 *) enable_dlopen_self_static=unknown ;;
7795 esac
7796fi
7797
7798
7799if test "$enable_shared" = yes && test "$GCC" = yes; then
7800 case $archive_cmds in
7801 *'~'*)
7802 # FIXME: we may have to deal with multi-command sequences.
7803 ;;
7804 '$CC '*)
7805 # Test whether the compiler implicitly links with -lc since on some
7806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7807 # to ld, don't add -lc before -lgcc.
7808 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7809echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7810 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813 $rm conftest*
7814 echo 'static int dummy;' > conftest.$ac_ext
7815
7816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7817 (eval $ac_compile) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; then
7821 soname=conftest
7822 lib=conftest
7823 libobjs=conftest.$ac_objext
7824 deplibs=
7825 wl=$lt_cv_prog_cc_wl
7826 compiler_flags=-v
7827 linker_flags=-v
7828 verstring=
7829 output_objdir=.
7830 libname=conftest
7831 save_allow_undefined_flag=$allow_undefined_flag
7832 allow_undefined_flag=
7833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7834 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }
7838 then
7839 lt_cv_archive_cmds_need_lc=no
7840 else
7841 lt_cv_archive_cmds_need_lc=yes
7842 fi
7843 allow_undefined_flag=$save_allow_undefined_flag
7844 else
7845 cat conftest.err 1>&5
7846 fi
7847fi
7848
7849 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7850echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7851 ;;
7852 esac
7853fi
7854need_lc=${lt_cv_archive_cmds_need_lc-yes}
7855
7856# The second clause should only fire when bootstrapping the
7857# libtool distribution, otherwise you forgot to ship ltmain.sh
7858# with your package, and you will get complaints that there are
7859# no rules to generate ltmain.sh.
7860if test -f "$ltmain"; then
7861 :
7862else
7863 # If there is no Makefile yet, we rely on a make rule to execute
7864 # `config.status --recheck' to rerun these tests and create the
7865 # libtool script then.
7866 test -f Makefile && make "$ltmain"
7867fi
7868
7869if test -f "$ltmain"; then
7870 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7871 $rm -f "${ofile}T"
7872
7873 echo creating $ofile
7874
7875 # Now quote all the things that may contain metacharacters while being
7876 # careful not to overquote the AC_SUBSTed values. We take copies of the
7877 # variables and quote the copies for generation of the libtool script.
7878 for var in echo old_CC old_CFLAGS \
7879 AR AR_FLAGS CC LD LN_S NM SHELL \
7880 reload_flag reload_cmds wl \
7881 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7882 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7883 library_names_spec soname_spec \
7884 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7885 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7886 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7887 old_striplib striplib file_magic_cmd export_symbols_cmds \
7888 deplibs_check_method allow_undefined_flag no_undefined_flag \
7889 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7890 global_symbol_to_c_name_address \
7891 hardcode_libdir_flag_spec hardcode_libdir_separator \
7892 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7893 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7894
7895 case $var in
7896 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7897 old_postinstall_cmds | old_postuninstall_cmds | \
7898 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7899 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7900 postinstall_cmds | postuninstall_cmds | \
7901 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7902 # Double-quote double-evaled strings.
7903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7904 ;;
7905 *)
7906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7907 ;;
7908 esac
7909 done
7910
7911 cat <<__EOF__ > "${ofile}T"
7912#! $SHELL
7913
7914# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7915# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7916# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7917#
7918# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7919# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7920#
7921# This program is free software; you can redistribute it and/or modify
7922# it under the terms of the GNU General Public License as published by
7923# the Free Software Foundation; either version 2 of the License, or
7924# (at your option) any later version.
7925#
7926# This program is distributed in the hope that it will be useful, but
7927# WITHOUT ANY WARRANTY; without even the implied warranty of
7928# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7929# General Public License for more details.
7930#
7931# You should have received a copy of the GNU General Public License
7932# along with this program; if not, write to the Free Software
7933# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7934#
7935# As a special exception to the GNU General Public License, if you
7936# distribute this file as part of a program that contains a
7937# configuration script generated by Autoconf, you may include it under
7938# the same distribution terms that you use for the rest of that program.
7939
7940# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7941Xsed="sed -e s/^X//"
7942
7943# The HP-UX ksh and POSIX shell print the target directory to stdout
7944# if CDPATH is set.
7945if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7946
7947# ### BEGIN LIBTOOL CONFIG
7948
7949# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7950
7951# Shell to use when invoking shell scripts.
7952SHELL=$lt_SHELL
7953
7954# Whether or not to build shared libraries.
7955build_libtool_libs=$enable_shared
7956
7957# Whether or not to build static libraries.
7958build_old_libs=$enable_static
7959
7960# Whether or not to add -lc for building shared libraries.
7961build_libtool_need_lc=$need_lc
7962
7963# Whether or not to optimize for fast installation.
7964fast_install=$enable_fast_install
7965
7966# The host system.
7967host_alias=$host_alias
7968host=$host
7969
7970# An echo program that does not interpret backslashes.
7971echo=$lt_echo
7972
7973# The archiver.
7974AR=$lt_AR
7975AR_FLAGS=$lt_AR_FLAGS
7976
7977# The default C compiler.
7978CC=$lt_CC
7979
7980# Is the compiler the GNU C compiler?
7981with_gcc=$GCC
7982
7983# The linker used to build libraries.
7984LD=$lt_LD
7985
7986# Whether we need hard or soft links.
7987LN_S=$lt_LN_S
7988
7989# A BSD-compatible nm program.
7990NM=$lt_NM
7991
7992# A symbol stripping program
7993STRIP=$STRIP
7994
7995# Used to examine libraries when file_magic_cmd begins "file"
7996MAGIC_CMD=$MAGIC_CMD
7997
7998# Used on cygwin: DLL creation program.
7999DLLTOOL="$DLLTOOL"
8000
8001# Used on cygwin: object dumper.
8002OBJDUMP="$OBJDUMP"
8003
8004# Used on cygwin: assembler.
8005AS="$AS"
8006
8007# The name of the directory that contains temporary libtool files.
8008objdir=$objdir
8009
8010# How to create reloadable object files.
8011reload_flag=$lt_reload_flag
8012reload_cmds=$lt_reload_cmds
8013
8014# How to pass a linker flag through the compiler.
8015wl=$lt_wl
8016
8017# Object file suffix (normally "o").
8018objext="$ac_objext"
8019
8020# Old archive suffix (normally "a").
8021libext="$libext"
8022
8023# Executable file suffix (normally "").
8024exeext="$exeext"
8025
8026# Additional compiler flags for building library objects.
8027pic_flag=$lt_pic_flag
8028pic_mode=$pic_mode
8029
8030# Does compiler simultaneously support -c and -o options?
8031compiler_c_o=$lt_compiler_c_o
8032
8033# Can we write directly to a .lo ?
8034compiler_o_lo=$lt_compiler_o_lo
8035
8036# Must we lock files when doing compilation ?
8037need_locks=$lt_need_locks
8038
8039# Do we need the lib prefix for modules?
8040need_lib_prefix=$need_lib_prefix
8041
8042# Do we need a version for libraries?
8043need_version=$need_version
8044
8045# Whether dlopen is supported.
8046dlopen_support=$enable_dlopen
8047
8048# Whether dlopen of programs is supported.
8049dlopen_self=$enable_dlopen_self
8050
8051# Whether dlopen of statically linked programs is supported.
8052dlopen_self_static=$enable_dlopen_self_static
8053
8054# Compiler flag to prevent dynamic linking.
8055link_static_flag=$lt_link_static_flag
8056
8057# Compiler flag to turn off builtin functions.
8058no_builtin_flag=$lt_no_builtin_flag
8059
8060# Compiler flag to allow reflexive dlopens.
8061export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8062
8063# Compiler flag to generate shared objects directly from archives.
8064whole_archive_flag_spec=$lt_whole_archive_flag_spec
8065
8066# Compiler flag to generate thread-safe objects.
8067thread_safe_flag_spec=$lt_thread_safe_flag_spec
8068
8069# Library versioning type.
8070version_type=$version_type
8071
8072# Format of library name prefix.
8073libname_spec=$lt_libname_spec
8074
8075# List of archive names. First name is the real one, the rest are links.
8076# The last name is the one that the linker finds with -lNAME.
8077library_names_spec=$lt_library_names_spec
8078
8079# The coded name of the library, if different from the real name.
8080soname_spec=$lt_soname_spec
8081
8082# Commands used to build and install an old-style archive.
8083RANLIB=$lt_RANLIB
8084old_archive_cmds=$lt_old_archive_cmds
8085old_postinstall_cmds=$lt_old_postinstall_cmds
8086old_postuninstall_cmds=$lt_old_postuninstall_cmds
8087
8088# Create an old-style archive from a shared archive.
8089old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8090
8091# Create a temporary old-style archive to link instead of a shared archive.
8092old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8093
8094# Commands used to build and install a shared archive.
8095archive_cmds=$lt_archive_cmds
8096archive_expsym_cmds=$lt_archive_expsym_cmds
8097postinstall_cmds=$lt_postinstall_cmds
8098postuninstall_cmds=$lt_postuninstall_cmds
8099
8100# Commands to strip libraries.
8101old_striplib=$lt_old_striplib
8102striplib=$lt_striplib
8103
8104# Method to check whether dependent libraries are shared objects.
8105deplibs_check_method=$lt_deplibs_check_method
8106
8107# Command to use when deplibs_check_method == file_magic.
8108file_magic_cmd=$lt_file_magic_cmd
8109
8110# Flag that allows shared libraries with undefined symbols to be built.
8111allow_undefined_flag=$lt_allow_undefined_flag
8112
8113# Flag that forces no undefined symbols.
8114no_undefined_flag=$lt_no_undefined_flag
8115
8116# Commands used to finish a libtool library installation in a directory.
8117finish_cmds=$lt_finish_cmds
8118
8119# Same as above, but a single script fragment to be evaled but not shown.
8120finish_eval=$lt_finish_eval
8121
8122# Take the output of nm and produce a listing of raw symbols and C names.
8123global_symbol_pipe=$lt_global_symbol_pipe
8124
8125# Transform the output of nm in a proper C declaration
8126global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8127
8128# Transform the output of nm in a C name address pair
8129global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8130
8131# This is the shared library runtime path variable.
8132runpath_var=$runpath_var
8133
8134# This is the shared library path variable.
8135shlibpath_var=$shlibpath_var
8136
8137# Is shlibpath searched before the hard-coded library search path?
8138shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8139
8140# How to hardcode a shared library path into an executable.
8141hardcode_action=$hardcode_action
8142
8143# Whether we should hardcode library paths into libraries.
8144hardcode_into_libs=$hardcode_into_libs
8145
8146# Flag to hardcode \$libdir into a binary during linking.
8147# This must work even if \$libdir does not exist.
8148hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8149
8150# Whether we need a single -rpath flag with a separated argument.
8151hardcode_libdir_separator=$lt_hardcode_libdir_separator
8152
8153# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8154# resulting binary.
8155hardcode_direct=$hardcode_direct
8156
8157# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8158# resulting binary.
8159hardcode_minus_L=$hardcode_minus_L
8160
8161# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8162# the resulting binary.
8163hardcode_shlibpath_var=$hardcode_shlibpath_var
8164
8165# Variables whose values should be saved in libtool wrapper scripts and
8166# restored at relink time.
8167variables_saved_for_relink="$variables_saved_for_relink"
8168
8169# Whether libtool must link a program against all its dependency libraries.
8170link_all_deplibs=$link_all_deplibs
8171
8172# Compile-time system search path for libraries
8173sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8174
8175# Run-time system search path for libraries
8176sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8177
8178# Fix the shell variable \$srcfile for the compiler.
8179fix_srcfile_path="$fix_srcfile_path"
8180
8181# Set to yes if exported symbols are required.
8182always_export_symbols=$always_export_symbols
8183
8184# The commands to list exported symbols.
8185export_symbols_cmds=$lt_export_symbols_cmds
8186
8187# The commands to extract the exported symbol list from a shared archive.
8188extract_expsyms_cmds=$lt_extract_expsyms_cmds
8189
8190# Symbols that should not be listed in the preloaded symbols.
8191exclude_expsyms=$lt_exclude_expsyms
8192
8193# Symbols that must always be exported.
8194include_expsyms=$lt_include_expsyms
8195
8196# ### END LIBTOOL CONFIG
8197
8198__EOF__
8199
8200 case $host_os in
8201 aix3*)
8202 cat <<\EOF >> "${ofile}T"
8203
8204# AIX sometimes has problems with the GCC collect2 program. For some
8205# reason, if we set the COLLECT_NAMES environment variable, the problems
8206# vanish in a puff of smoke.
8207if test "X${COLLECT_NAMES+set}" != Xset; then
8208 COLLECT_NAMES=
8209 export COLLECT_NAMES
8210fi
8211EOF
8212 ;;
8213 esac
8214
8215 case $host_os in
8216 cygwin* | mingw* | pw32* | os2*)
8217 cat <<'EOF' >> "${ofile}T"
8218 # This is a source program that is used to create dlls on Windows
8219 # Don't remove nor modify the starting and closing comments
8220# /* ltdll.c starts here */
8221# #define WIN32_LEAN_AND_MEAN
8222# #include <windows.h>
8223# #undef WIN32_LEAN_AND_MEAN
8224# #include <stdio.h>
8225#
8226# #ifndef __CYGWIN__
8227# # ifdef __CYGWIN32__
8228# # define __CYGWIN__ __CYGWIN32__
8229# # endif
8230# #endif
8231#
8232# #ifdef __cplusplus
8233# extern "C" {
8234# #endif
8235# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8236# #ifdef __cplusplus
8237# }
8238# #endif
8239#
8240# #ifdef __CYGWIN__
8241# #include <cygwin/cygwin_dll.h>
8242# DECLARE_CYGWIN_DLL( DllMain );
8243# #endif
8244# HINSTANCE __hDllInstance_base;
8245#
8246# BOOL APIENTRY
8247# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8248# {
8249# __hDllInstance_base = hInst;
8250# return TRUE;
8251# }
8252# /* ltdll.c ends here */
8253 # This is a source program that is used to create import libraries
8254 # on Windows for dlls which lack them. Don't remove nor modify the
8255 # starting and closing comments
8256# /* impgen.c starts here */
8257# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8258#
8259# This file is part of GNU libtool.
8260#
8261# This program is free software; you can redistribute it and/or modify
8262# it under the terms of the GNU General Public License as published by
8263# the Free Software Foundation; either version 2 of the License, or
8264# (at your option) any later version.
8265#
8266# This program is distributed in the hope that it will be useful,
8267# but WITHOUT ANY WARRANTY; without even the implied warranty of
8268# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8269# GNU General Public License for more details.
8270#
8271# You should have received a copy of the GNU General Public License
8272# along with this program; if not, write to the Free Software
8273# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8274# */
8275#
8276# #include <stdio.h> /* for printf() */
8277# #include <unistd.h> /* for open(), lseek(), read() */
8278# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8279# #include <string.h> /* for strdup() */
8280#
8281# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8282# #ifndef O_BINARY
8283# #define O_BINARY 0
8284# #endif
8285#
8286# static unsigned int
8287# pe_get16 (fd, offset)
8288# int fd;
8289# int offset;
8290# {
8291# unsigned char b[2];
8292# lseek (fd, offset, SEEK_SET);
8293# read (fd, b, 2);
8294# return b[0] + (b[1]<<8);
8295# }
8296#
8297# static unsigned int
8298# pe_get32 (fd, offset)
8299# int fd;
8300# int offset;
8301# {
8302# unsigned char b[4];
8303# lseek (fd, offset, SEEK_SET);
8304# read (fd, b, 4);
8305# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8306# }
8307#
8308# static unsigned int
8309# pe_as32 (ptr)
8310# void *ptr;
8311# {
8312# unsigned char *b = ptr;
8313# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8314# }
8315#
8316# int
8317# main (argc, argv)
8318# int argc;
8319# char *argv[];
8320# {
8321# int dll;
8322# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8323# unsigned long export_rva, export_size, nsections, secptr, expptr;
8324# unsigned long name_rvas, nexp;
8325# unsigned char *expdata, *erva;
8326# char *filename, *dll_name;
8327#
8328# filename = argv[1];
8329#
8330# dll = open(filename, O_RDONLY|O_BINARY);
8331# if (dll < 1)
8332# return 1;
8333#
8334# dll_name = filename;
8335#
8336# for (i=0; filename[i]; i++)
8337# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8338# dll_name = filename + i +1;
8339#
8340# pe_header_offset = pe_get32 (dll, 0x3c);
8341# opthdr_ofs = pe_header_offset + 4 + 20;
8342# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8343#
8344# if (num_entries < 1) /* no exports */
8345# return 1;
8346#
8347# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8348# export_size = pe_get32 (dll, opthdr_ofs + 100);
8349# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8350# secptr = (pe_header_offset + 4 + 20 +
8351# pe_get16 (dll, pe_header_offset + 4 + 16));
8352#
8353# expptr = 0;
8354# for (i = 0; i < nsections; i++)
8355# {
8356# char sname[8];
8357# unsigned long secptr1 = secptr + 40 * i;
8358# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8359# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8360# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8361# lseek(dll, secptr1, SEEK_SET);
8362# read(dll, sname, 8);
8363# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8364# {
8365# expptr = fptr + (export_rva - vaddr);
8366# if (export_rva + export_size > vaddr + vsize)
8367# export_size = vsize - (export_rva - vaddr);
8368# break;
8369# }
8370# }
8371#
8372# expdata = (unsigned char*)malloc(export_size);
8373# lseek (dll, expptr, SEEK_SET);
8374# read (dll, expdata, export_size);
8375# erva = expdata - export_rva;
8376#
8377# nexp = pe_as32 (expdata+24);
8378# name_rvas = pe_as32 (expdata+32);
8379#
8380# printf ("EXPORTS\n");
8381# for (i = 0; i<nexp; i++)
8382# {
8383# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8384# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8385# }
8386#
8387# return 0;
8388# }
8389# /* impgen.c ends here */
8390
8391EOF
8392 ;;
8393 esac
8394
8395 # We use sed instead of cat because bash on DJGPP gets confused if
8396 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8397 # text mode, it properly converts lines to CR/LF. This bash problem
8398 # is reportedly fixed, but why not run on old versions too?
8399 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8400
8401 mv -f "${ofile}T" "$ofile" || \
8402 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8403 chmod +x "$ofile"
8404fi
8405
8406
8407
8408
8409
8410# This can be used to rebuild libtool when needed
8411LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8412
8413# Always use our own libtool.
8414LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8415
8416# Prevent multiple expansion
8417
8418
8419
8420
8421WFLAGS_NOUNUSED=""
8422WFLAGS_NOIMPLICITINT=""
8423if test -z "$WFLAGS" -a "$GCC" = "yes"; then
8424 # -Wno-implicit-int for broken X11 headers
8425 # leave these out for now:
8426 # -Wcast-align doesn't work well on alpha osf/1
8427 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
8428 # -Wmissing-declarations -Wnested-externs
8429 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
8430 WFLAGS_NOUNUSED="-Wno-unused"
8431 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
8432fi
8433
8434
8435
8436
8437# Check whether --with-openldap or --without-openldap was given.
8438if test "${with_openldap+set}" = set; then
8439 withval="$with_openldap"
8440
8441fi;
8442
8443# Check whether --with-openldap-lib or --without-openldap-lib was given.
8444if test "${with_openldap_lib+set}" = set; then
8445 withval="$with_openldap_lib"
8446 if test "$withval" = "yes" -o "$withval" = "no"; then
8447 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
8448echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
8449 { (exit 1); exit 1; }; }
8450elif test "X$with_openldap" = "X"; then
8451 with_openldap=yes
8452fi
8453fi;
8454
8455# Check whether --with-openldap-include or --without-openldap-include was given.
8456if test "${with_openldap_include+set}" = set; then
8457 withval="$with_openldap_include"
8458 if test "$withval" = "yes" -o "$withval" = "no"; then
8459 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
8460echo "$as_me: error: No argument for --with-openldap-include" >&2;}
8461 { (exit 1); exit 1; }; }
8462elif test "X$with_openldap" = "X"; then
8463 with_openldap=yes
8464fi
8465fi;
8466
8467# Check whether --with-openldap-config or --without-openldap-config was given.
8468if test "${with_openldap_config+set}" = set; then
8469 withval="$with_openldap_config"
8470
8471fi;
8472
8473
8474
8475echo "$as_me:$LINENO: checking for openldap" >&5
8476echo $ECHO_N "checking for openldap... $ECHO_C" >&6
8477
8478case "$with_openldap" in
8479yes|"") d='' ;;
8480no) d= ;;
8481*) d="$with_openldap" ;;
8482esac
8483
8484header_dirs=
8485lib_dirs=
8486for i in $d; do
8487 if test "$with_openldap_include" = ""; then
8488 if test -d "$i/include/openldap"; then
8489 header_dirs="$header_dirs $i/include/openldap"
8490 fi
8491 if test -d "$i/include"; then
8492 header_dirs="$header_dirs $i/include"
8493 fi
8494 fi
8495 if test "$with_openldap_lib" = ""; then
8496 if test -d "$i/lib$abilibdirext"; then
8497 lib_dirs="$lib_dirs $i/lib$abilibdirext"
8498 fi
8499 fi
8500done
8501
8502if test "$with_openldap_include"; then
8503 header_dirs="$with_openldap_include $header_dirs"
8504fi
8505if test "$with_openldap_lib"; then
8506 lib_dirs="$with_openldap_lib $lib_dirs"
8507fi
8508
8509if test "$with_openldap_config" = ""; then
8510 with_openldap_config=''
8511fi
8512
8513openldap_cflags=
8514openldap_libs=
8515
8516case "$with_openldap_config" in
8517yes|no|"")
8518 ;;
8519*)
8520 openldap_cflags="`$with_openldap_config --cflags 2>&1`"
8521 openldap_libs="`$with_openldap_config --libs 2>&1`"
8522 ;;
8523esac
8524
8525found=no
8526if test "$with_openldap" != no; then
8527 save_CFLAGS="$CFLAGS"
8528 save_LIBS="$LIBS"
8529 if test "$openldap_cflags" -a "$openldap_libs"; then
8530 CFLAGS="$openldap_cflags $save_CFLAGS"
8531 LIBS="$openldap_libs $save_LIBS"
8532 cat >conftest.$ac_ext <<_ACEOF
8533#line $LINENO "configure"
8534#include "confdefs.h"
8535#include <lber.h>
8536#include <ldap.h>
8537#ifdef F77_DUMMY_MAIN
8538# ifdef __cplusplus
8539 extern "C"
8540# endif
8541 int F77_DUMMY_MAIN() { return 1; }
8542#endif
8543int
8544main ()
8545{
8546
8547 ;
8548 return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext conftest$ac_exeext
8552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -s conftest$ac_exeext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563
8564 INCLUDE_openldap="$openldap_cflags"
8565 LIB_openldap="$openldap_libs"
8566 echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
8567echo "${ECHO_T}from $with_openldap_config" >&6
8568 found=yes
8569else
8570 echo "$as_me: failed program was:" >&5
8571cat conftest.$ac_ext >&5
8572fi
8573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8574 fi
8575 if test "$found" = no; then
8576 ires= lres=
8577 for i in $header_dirs; do
8578 CFLAGS="-I$i $save_CFLAGS"
8579 cat >conftest.$ac_ext <<_ACEOF
8580#line $LINENO "configure"
8581#include "confdefs.h"
8582#include <lber.h>
8583#include <ldap.h>
8584#ifdef F77_DUMMY_MAIN
8585# ifdef __cplusplus
8586 extern "C"
8587# endif
8588 int F77_DUMMY_MAIN() { return 1; }
8589#endif
8590int
8591main ()
8592{
8593
8594 ;
8595 return 0;
8596}
8597_ACEOF
8598rm -f conftest.$ac_objext
8599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -s conftest.$ac_objext'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ires=$i;break
8611else
8612 echo "$as_me: failed program was:" >&5
8613cat conftest.$ac_ext >&5
8614fi
8615rm -f conftest.$ac_objext conftest.$ac_ext
8616 done
8617 for i in $lib_dirs; do
8618 LIBS="-L$i -lldap -llber $save_LIBS"
8619 cat >conftest.$ac_ext <<_ACEOF
8620#line $LINENO "configure"
8621#include "confdefs.h"
8622#include <lber.h>
8623#include <ldap.h>
8624#ifdef F77_DUMMY_MAIN
8625# ifdef __cplusplus
8626 extern "C"
8627# endif
8628 int F77_DUMMY_MAIN() { return 1; }
8629#endif
8630int
8631main ()
8632{
8633
8634 ;
8635 return 0;
8636}
8637_ACEOF
8638rm -f conftest.$ac_objext conftest$ac_exeext
8639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -s conftest$ac_exeext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 lres=$i;break
8651else
8652 echo "$as_me: failed program was:" >&5
8653cat conftest.$ac_ext >&5
8654fi
8655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8656 done
8657 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
8658 INCLUDE_openldap="-I$ires"
8659 LIB_openldap="-L$lres -lldap -llber "
8660 found=yes
8661 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
8662echo "${ECHO_T}headers $ires, libraries $lres" >&6
8663 fi
8664 fi
8665 CFLAGS="$save_CFLAGS"
8666 LIBS="$save_LIBS"
8667fi
8668
8669if test "$found" = yes; then
8670
8671cat >>confdefs.h <<_ACEOF
8672#define OPENLDAP 1
8673_ACEOF
8674
8675 with_openldap=yes
8676else
8677 with_openldap=no
8678 INCLUDE_openldap=
8679 LIB_openldap=
8680 echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6
8682fi
8683
8684
8685
8686
8687
8688
8689
8690# Check whether --with-krb4 or --without-krb4 was given.
8691if test "${with_krb4+set}" = set; then
8692 withval="$with_krb4"
8693
8694fi;
8695
8696# Check whether --with-krb4-lib or --without-krb4-lib was given.
8697if test "${with_krb4_lib+set}" = set; then
8698 withval="$with_krb4_lib"
8699 if test "$withval" = "yes" -o "$withval" = "no"; then
8700 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
8701echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
8702 { (exit 1); exit 1; }; }
8703elif test "X$with_krb4" = "X"; then
8704 with_krb4=yes
8705fi
8706fi;
8707
8708# Check whether --with-krb4-include or --without-krb4-include was given.
8709if test "${with_krb4_include+set}" = set; then
8710 withval="$with_krb4_include"
8711 if test "$withval" = "yes" -o "$withval" = "no"; then
8712 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
8713echo "$as_me: error: No argument for --with-krb4-include" >&2;}
8714 { (exit 1); exit 1; }; }
8715elif test "X$with_krb4" = "X"; then
8716 with_krb4=yes
8717fi
8718fi;
8719
8720# Check whether --with-krb4-config or --without-krb4-config was given.
8721if test "${with_krb4_config+set}" = set; then
8722 withval="$with_krb4_config"
8723
8724fi;
8725
8726
8727
8728echo "$as_me:$LINENO: checking for krb4" >&5
8729echo $ECHO_N "checking for krb4... $ECHO_C" >&6
8730
8731case "$with_krb4" in
8732yes|"") d='/usr/athena' ;;
8733no) d= ;;
8734*) d="$with_krb4" ;;
8735esac
8736
8737header_dirs=
8738lib_dirs=
8739for i in $d; do
8740 if test "$with_krb4_include" = ""; then
8741 if test -d "$i/include/krb4"; then
8742 header_dirs="$header_dirs $i/include/krb4"
8743 fi
8744 if test -d "$i/include"; then
8745 header_dirs="$header_dirs $i/include"
8746 fi
8747 fi
8748 if test "$with_krb4_lib" = ""; then
8749 if test -d "$i/lib$abilibdirext"; then
8750 lib_dirs="$lib_dirs $i/lib$abilibdirext"
8751 fi
8752 fi
8753done
8754
8755if test "$with_krb4_include"; then
8756 header_dirs="$with_krb4_include $header_dirs"
8757fi
8758if test "$with_krb4_lib"; then
8759 lib_dirs="$with_krb4_lib $lib_dirs"
8760fi
8761
8762if test "$with_krb4_config" = ""; then
8763 with_krb4_config='krb4-config'
8764fi
8765
8766krb4_cflags=
8767krb4_libs=
8768
8769case "$with_krb4_config" in
8770yes|no|"")
8771 ;;
8772*)
8773 krb4_cflags="`$with_krb4_config --cflags 2>&1`"
8774 krb4_libs="`$with_krb4_config --libs 2>&1`"
8775 ;;
8776esac
8777
8778found=no
8779if test "$with_krb4" != no; then
8780 save_CFLAGS="$CFLAGS"
8781 save_LIBS="$LIBS"
8782 if test "$krb4_cflags" -a "$krb4_libs"; then
8783 CFLAGS="$krb4_cflags $save_CFLAGS"
8784 LIBS="$krb4_libs $save_LIBS"
8785 cat >conftest.$ac_ext <<_ACEOF
8786#line $LINENO "configure"
8787#include "confdefs.h"
8788#include <krb.h>
8789#ifdef F77_DUMMY_MAIN
8790# ifdef __cplusplus
8791 extern "C"
8792# endif
8793 int F77_DUMMY_MAIN() { return 1; }
8794#endif
8795int
8796main ()
8797{
8798
8799 ;
8800 return 0;
8801}
8802_ACEOF
8803rm -f conftest.$ac_objext conftest$ac_exeext
8804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815
8816 INCLUDE_krb4="$krb4_cflags"
8817 LIB_krb4="$krb4_libs"
8818 echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
8819echo "${ECHO_T}from $with_krb4_config" >&6
8820 found=yes
8821else
8822 echo "$as_me: failed program was:" >&5
8823cat conftest.$ac_ext >&5
8824fi
8825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8826 fi
8827 if test "$found" = no; then
8828 ires= lres=
8829 for i in $header_dirs; do
8830 CFLAGS="-I$i $save_CFLAGS"
8831 cat >conftest.$ac_ext <<_ACEOF
8832#line $LINENO "configure"
8833#include "confdefs.h"
8834#include <krb.h>
8835#ifdef F77_DUMMY_MAIN
8836# ifdef __cplusplus
8837 extern "C"
8838# endif
8839 int F77_DUMMY_MAIN() { return 1; }
8840#endif
8841int
8842main ()
8843{
8844
8845 ;
8846 return 0;
8847}
8848_ACEOF
8849rm -f conftest.$ac_objext
8850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8851 (eval $ac_compile) 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -s conftest.$ac_objext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ires=$i;break
8862else
8863 echo "$as_me: failed program was:" >&5
8864cat conftest.$ac_ext >&5
8865fi
8866rm -f conftest.$ac_objext conftest.$ac_ext
8867 done
8868 for i in $lib_dirs; do
8869 LIBS="-L$i -lkrb -ldes $save_LIBS"
8870 cat >conftest.$ac_ext <<_ACEOF
8871#line $LINENO "configure"
8872#include "confdefs.h"
8873#include <krb.h>
8874#ifdef F77_DUMMY_MAIN
8875# ifdef __cplusplus
8876 extern "C"
8877# endif
8878 int F77_DUMMY_MAIN() { return 1; }
8879#endif
8880int
8881main ()
8882{
8883
8884 ;
8885 return 0;
8886}
8887_ACEOF
8888rm -f conftest.$ac_objext conftest$ac_exeext
8889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8890 (eval $ac_link) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } &&
8894 { ac_try='test -s conftest$ac_exeext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 lres=$i;break
8901else
8902 echo "$as_me: failed program was:" >&5
8903cat conftest.$ac_ext >&5
8904fi
8905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8906 done
8907 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
8908 INCLUDE_krb4="-I$ires"
8909 LIB_krb4="-L$lres -lkrb -ldes"
8910 found=yes
8911 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
8912echo "${ECHO_T}headers $ires, libraries $lres" >&6
8913 fi
8914 fi
8915 CFLAGS="$save_CFLAGS"
8916 LIBS="$save_LIBS"
8917fi
8918
8919if test "$found" = yes; then
8920
8921cat >>confdefs.h <<_ACEOF
8922#define KRB4 1
8923_ACEOF
8924
8925 with_krb4=yes
8926else
8927 with_krb4=no
8928 INCLUDE_krb4=
8929 LIB_krb4=
8930 echo "$as_me:$LINENO: result: no" >&5
8931echo "${ECHO_T}no" >&6
8932fi
8933
8934
8935
8936
8937
8938LIB_kdb=
8939if test "$with_krb4" != "no"; then
8940 save_CFLAGS="$CFLAGS"
8941 CFLAGS="$CFLAGS $INCLUDE_krb4"
8942 save_LIBS="$LIBS"
8943 LIBS="$LIB_krb4 $LIBS"
8944 EXTRA_LIB45=lib45.a
8945
8946 echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
8947echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
8948if test "${ac_cv_func_krb_put_int_four+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950else
8951 cat >conftest.$ac_ext <<_ACEOF
8952#line $LINENO "configure"
8953#include "confdefs.h"
8954#include <krb.h>
8955#ifdef F77_DUMMY_MAIN
8956# ifdef __cplusplus
8957 extern "C"
8958# endif
8959 int F77_DUMMY_MAIN() { return 1; }
8960#endif
8961int
8962main ()
8963{
8964
8965 char tmp[4];
8966 krb_put_int(17, tmp, 4, sizeof(tmp));
8967 ;
8968 return 0;
8969}
8970_ACEOF
8971rm -f conftest.$ac_objext
8972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973 (eval $ac_compile) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try='test -s conftest.$ac_objext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 ac_cv_func_krb_put_int_four=yes
8984else
8985 echo "$as_me: failed program was:" >&5
8986cat conftest.$ac_ext >&5
8987ac_cv_func_krb_put_int_four=no
8988fi
8989rm -f conftest.$ac_objext conftest.$ac_ext
8990
8991fi
8992echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
8993echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
8994 if test "$ac_cv_func_krb_put_int_four" = yes; then
8995
8996cat >>confdefs.h <<\_ACEOF
8997#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
8998_ACEOF
8999
9000 fi
9001
9002
9003 echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
9004echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
9005if test "${ac_cv_func_krb_verify_secure+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008 cat >conftest.$ac_ext <<_ACEOF
9009#line $LINENO "configure"
9010#include "confdefs.h"
9011#include <krb.h>
9012#ifdef F77_DUMMY_MAIN
9013# ifdef __cplusplus
9014 extern "C"
9015# endif
9016 int F77_DUMMY_MAIN() { return 1; }
9017#endif
9018int
9019main ()
9020{
9021
9022 int x = KRB_VERIFY_SECURE
9023 ;
9024 return 0;
9025}
9026_ACEOF
9027rm -f conftest.$ac_objext
9028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9029 (eval $ac_compile) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_func_krb_verify_secure=yes
9040else
9041 echo "$as_me: failed program was:" >&5
9042cat conftest.$ac_ext >&5
9043ac_cv_func_krb_verify_secure=no
9044fi
9045rm -f conftest.$ac_objext conftest.$ac_ext
9046
9047fi
9048echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
9049echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
9050 if test "$ac_cv_func_krb_verify_secure" != yes; then
9051
9052cat >>confdefs.h <<\_ACEOF
9053#define KRB_VERIFY_SECURE 1
9054_ACEOF
9055
9056
9057cat >>confdefs.h <<\_ACEOF
9058#define KRB_VERIFY_SECURE_FAIL 2
9059_ACEOF
9060
9061 fi
9062 echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
9063echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
9064if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9066else
9067 cat >conftest.$ac_ext <<_ACEOF
9068#line $LINENO "configure"
9069#include "confdefs.h"
9070#include <krb.h>
9071#ifdef F77_DUMMY_MAIN
9072# ifdef __cplusplus
9073 extern "C"
9074# endif
9075 int F77_DUMMY_MAIN() { return 1; }
9076#endif
9077int
9078main ()
9079{
9080
9081 int x = KRB_VERIFY_NOT_SECURE
9082 ;
9083 return 0;
9084}
9085_ACEOF
9086rm -f conftest.$ac_objext
9087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088 (eval $ac_compile) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -s conftest.$ac_objext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 ac_cv_func_krb_verify_not_secure=yes
9099else
9100 echo "$as_me: failed program was:" >&5
9101cat conftest.$ac_ext >&5
9102ac_cv_func_krb_verify_not_secure=no
9103fi
9104rm -f conftest.$ac_objext conftest.$ac_ext
9105
9106fi
9107echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
9108echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
9109 if test "$ac_cv_func_krb_verify_not_secure" != yes; then
9110
9111cat >>confdefs.h <<\_ACEOF
9112#define KRB_VERIFY_NOT_SECURE 0
9113_ACEOF
9114
9115 fi
9116
9117
9118
9119
9120echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
9121echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
9122if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125
9126if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
9127 ac_save_LIBS="$LIBS"
9128 for ac_lib in "" ; do
9129 case "$ac_lib" in
9130 "") ;;
9131 yes) ac_lib="" ;;
9132 no) continue ;;
9133 -l*) ;;
9134 *) ac_lib="-l$ac_lib" ;;
9135 esac
9136 LIBS=" $ac_lib $ac_save_LIBS"
9137 cat >conftest.$ac_ext <<_ACEOF
9138#line $LINENO "configure"
9139#include "confdefs.h"
9140
9141#ifdef F77_DUMMY_MAIN
9142# ifdef __cplusplus
9143 extern "C"
9144# endif
9145 int F77_DUMMY_MAIN() { return 1; }
9146#endif
9147int
9148main ()
9149{
9150krb_enable_debug()
9151 ;
9152 return 0;
9153}
9154_ACEOF
9155rm -f conftest.$ac_objext conftest$ac_exeext
9156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -s conftest$ac_exeext'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 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
9168else
9169 echo "$as_me: failed program was:" >&5
9170cat conftest.$ac_ext >&5
9171fi
9172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9173 done
9174 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
9175 LIBS="$ac_save_LIBS"
9176fi
9177
9178fi
9179
9180
9181eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
9182
9183if false; then
9184
9185for ac_func in krb_enable_debug
9186do
9187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9188echo "$as_me:$LINENO: checking for $ac_func" >&5
9189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9190if eval "test \"\${$as_ac_var+set}\" = set"; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192else
9193 cat >conftest.$ac_ext <<_ACEOF
9194#line $LINENO "configure"
9195#include "confdefs.h"
9196/* System header to define __stub macros and hopefully few prototypes,
9197 which can conflict with char $ac_func (); below. */
9198#include <assert.h>
9199/* Override any gcc2 internal prototype to avoid an error. */
9200#ifdef __cplusplus
9201extern "C"
9202#endif
9203/* We use char because int might match the return type of a gcc2
9204 builtin and then its argument prototype would still apply. */
9205char $ac_func ();
9206char (*f) ();
9207
9208#ifdef F77_DUMMY_MAIN
9209# ifdef __cplusplus
9210 extern "C"
9211# endif
9212 int F77_DUMMY_MAIN() { return 1; }
9213#endif
9214int
9215main ()
9216{
9217/* The GNU C library defines this for functions which it implements
9218 to always fail with ENOSYS. Some functions are actually named
9219 something starting with __ and the normal name is an alias. */
9220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9221choke me
9222#else
9223f = $ac_func;
9224#endif
9225
9226 ;
9227 return 0;
9228}
9229_ACEOF
9230rm -f conftest.$ac_objext conftest$ac_exeext
9231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9232 (eval $ac_link) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -s conftest$ac_exeext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 eval "$as_ac_var=yes"
9243else
9244 echo "$as_me: failed program was:" >&5
9245cat conftest.$ac_ext >&5
9246eval "$as_ac_var=no"
9247fi
9248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9249fi
9250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9251echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9252if test `eval echo '${'$as_ac_var'}'` = yes; then
9253 cat >>confdefs.h <<_ACEOF
9254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9255_ACEOF
9256
9257fi
9258done
9259
9260fi
9261# krb_enable_debug
9262eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9263eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9264eval "LIB_krb_enable_debug=$ac_res"
9265
9266case "$ac_res" in
9267 yes)
9268 eval "ac_cv_func_krb_enable_debug=yes"
9269 eval "LIB_krb_enable_debug="
9270 cat >>confdefs.h <<_ACEOF
9271#define $ac_tr_func 1
9272_ACEOF
9273
9274 echo "$as_me:$LINENO: result: yes" >&5
9275echo "${ECHO_T}yes" >&6
9276 ;;
9277 no)
9278 eval "ac_cv_func_krb_enable_debug=no"
9279 eval "LIB_krb_enable_debug="
9280 echo "$as_me:$LINENO: result: no" >&5
9281echo "${ECHO_T}no" >&6
9282 ;;
9283 *)
9284 eval "ac_cv_func_krb_enable_debug=yes"
9285 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9286 cat >>confdefs.h <<_ACEOF
9287#define $ac_tr_func 1
9288_ACEOF
9289
9290 cat >>confdefs.h <<_ACEOF
9291#define $ac_tr_lib 1
9292_ACEOF
9293
9294 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9295echo "${ECHO_T}yes, in $ac_res" >&6
9296 ;;
9297esac
9298
9299
9300if test -n "$LIB_krb_enable_debug"; then
9301 LIBS="$LIB_krb_enable_debug $LIBS"
9302fi
9303
9304
9305
9306
9307
9308echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
9309echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
9310if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9312else
9313
9314if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
9315 ac_save_LIBS="$LIBS"
9316 for ac_lib in "" ; do
9317 case "$ac_lib" in
9318 "") ;;
9319 yes) ac_lib="" ;;
9320 no) continue ;;
9321 -l*) ;;
9322 *) ac_lib="-l$ac_lib" ;;
9323 esac
9324 LIBS=" $ac_lib $ac_save_LIBS"
9325 cat >conftest.$ac_ext <<_ACEOF
9326#line $LINENO "configure"
9327#include "confdefs.h"
9328
9329#ifdef F77_DUMMY_MAIN
9330# ifdef __cplusplus
9331 extern "C"
9332# endif
9333 int F77_DUMMY_MAIN() { return 1; }
9334#endif
9335int
9336main ()
9337{
9338krb_disable_debug()
9339 ;
9340 return 0;
9341}
9342_ACEOF
9343rm -f conftest.$ac_objext conftest$ac_exeext
9344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345 (eval $ac_link) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest$ac_exeext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 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
9356else
9357 echo "$as_me: failed program was:" >&5
9358cat conftest.$ac_ext >&5
9359fi
9360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9361 done
9362 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
9363 LIBS="$ac_save_LIBS"
9364fi
9365
9366fi
9367
9368
9369eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
9370
9371if false; then
9372
9373for ac_func in krb_disable_debug
9374do
9375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9376echo "$as_me:$LINENO: checking for $ac_func" >&5
9377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9378if eval "test \"\${$as_ac_var+set}\" = set"; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380else
9381 cat >conftest.$ac_ext <<_ACEOF
9382#line $LINENO "configure"
9383#include "confdefs.h"
9384/* System header to define __stub macros and hopefully few prototypes,
9385 which can conflict with char $ac_func (); below. */
9386#include <assert.h>
9387/* Override any gcc2 internal prototype to avoid an error. */
9388#ifdef __cplusplus
9389extern "C"
9390#endif
9391/* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9393char $ac_func ();
9394char (*f) ();
9395
9396#ifdef F77_DUMMY_MAIN
9397# ifdef __cplusplus
9398 extern "C"
9399# endif
9400 int F77_DUMMY_MAIN() { return 1; }
9401#endif
9402int
9403main ()
9404{
9405/* The GNU C library defines this for functions which it implements
9406 to always fail with ENOSYS. Some functions are actually named
9407 something starting with __ and the normal name is an alias. */
9408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9409choke me
9410#else
9411f = $ac_func;
9412#endif
9413
9414 ;
9415 return 0;
9416}
9417_ACEOF
9418rm -f conftest.$ac_objext conftest$ac_exeext
9419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9420 (eval $ac_link) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } &&
9424 { ac_try='test -s conftest$ac_exeext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 (eval $ac_try) 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9430 eval "$as_ac_var=yes"
9431else
9432 echo "$as_me: failed program was:" >&5
9433cat conftest.$ac_ext >&5
9434eval "$as_ac_var=no"
9435fi
9436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9437fi
9438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9439echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9440if test `eval echo '${'$as_ac_var'}'` = yes; then
9441 cat >>confdefs.h <<_ACEOF
9442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9443_ACEOF
9444
9445fi
9446done
9447
9448fi
9449# krb_disable_debug
9450eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9451eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9452eval "LIB_krb_disable_debug=$ac_res"
9453
9454case "$ac_res" in
9455 yes)
9456 eval "ac_cv_func_krb_disable_debug=yes"
9457 eval "LIB_krb_disable_debug="
9458 cat >>confdefs.h <<_ACEOF
9459#define $ac_tr_func 1
9460_ACEOF
9461
9462 echo "$as_me:$LINENO: result: yes" >&5
9463echo "${ECHO_T}yes" >&6
9464 ;;
9465 no)
9466 eval "ac_cv_func_krb_disable_debug=no"
9467 eval "LIB_krb_disable_debug="
9468 echo "$as_me:$LINENO: result: no" >&5
9469echo "${ECHO_T}no" >&6
9470 ;;
9471 *)
9472 eval "ac_cv_func_krb_disable_debug=yes"
9473 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9474 cat >>confdefs.h <<_ACEOF
9475#define $ac_tr_func 1
9476_ACEOF
9477
9478 cat >>confdefs.h <<_ACEOF
9479#define $ac_tr_lib 1
9480_ACEOF
9481
9482 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9483echo "${ECHO_T}yes, in $ac_res" >&6
9484 ;;
9485esac
9486
9487
9488if test -n "$LIB_krb_disable_debug"; then
9489 LIBS="$LIB_krb_disable_debug $LIBS"
9490fi
9491
9492
9493
9494
9495
9496echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
9497echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
9498if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500else
9501
9502if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
9503 ac_save_LIBS="$LIBS"
9504 for ac_lib in "" ; do
9505 case "$ac_lib" in
9506 "") ;;
9507 yes) ac_lib="" ;;
9508 no) continue ;;
9509 -l*) ;;
9510 *) ac_lib="-l$ac_lib" ;;
9511 esac
9512 LIBS=" $ac_lib $ac_save_LIBS"
9513 cat >conftest.$ac_ext <<_ACEOF
9514#line $LINENO "configure"
9515#include "confdefs.h"
9516
9517#ifdef F77_DUMMY_MAIN
9518# ifdef __cplusplus
9519 extern "C"
9520# endif
9521 int F77_DUMMY_MAIN() { return 1; }
9522#endif
9523int
9524main ()
9525{
9526krb_get_our_ip_for_realm()
9527 ;
9528 return 0;
9529}
9530_ACEOF
9531rm -f conftest.$ac_objext conftest$ac_exeext
9532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533 (eval $ac_link) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } &&
9537 { ac_try='test -s conftest$ac_exeext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 (eval $ac_try) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 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
9544else
9545 echo "$as_me: failed program was:" >&5
9546cat conftest.$ac_ext >&5
9547fi
9548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9549 done
9550 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
9551 LIBS="$ac_save_LIBS"
9552fi
9553
9554fi
9555
9556
9557eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
9558
9559if false; then
9560
9561for ac_func in krb_get_our_ip_for_realm
9562do
9563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9564echo "$as_me:$LINENO: checking for $ac_func" >&5
9565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9566if eval "test \"\${$as_ac_var+set}\" = set"; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568else
9569 cat >conftest.$ac_ext <<_ACEOF
9570#line $LINENO "configure"
9571#include "confdefs.h"
9572/* System header to define __stub macros and hopefully few prototypes,
9573 which can conflict with char $ac_func (); below. */
9574#include <assert.h>
9575/* Override any gcc2 internal prototype to avoid an error. */
9576#ifdef __cplusplus
9577extern "C"
9578#endif
9579/* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9581char $ac_func ();
9582char (*f) ();
9583
9584#ifdef F77_DUMMY_MAIN
9585# ifdef __cplusplus
9586 extern "C"
9587# endif
9588 int F77_DUMMY_MAIN() { return 1; }
9589#endif
9590int
9591main ()
9592{
9593/* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9597choke me
9598#else
9599f = $ac_func;
9600#endif
9601
9602 ;
9603 return 0;
9604}
9605_ACEOF
9606rm -f conftest.$ac_objext conftest$ac_exeext
9607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 eval "$as_ac_var=yes"
9619else
9620 echo "$as_me: failed program was:" >&5
9621cat conftest.$ac_ext >&5
9622eval "$as_ac_var=no"
9623fi
9624rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9625fi
9626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9628if test `eval echo '${'$as_ac_var'}'` = yes; then
9629 cat >>confdefs.h <<_ACEOF
9630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631_ACEOF
9632
9633fi
9634done
9635
9636fi
9637# krb_get_our_ip_for_realm
9638eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9639eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9640eval "LIB_krb_get_our_ip_for_realm=$ac_res"
9641
9642case "$ac_res" in
9643 yes)
9644 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
9645 eval "LIB_krb_get_our_ip_for_realm="
9646 cat >>confdefs.h <<_ACEOF
9647#define $ac_tr_func 1
9648_ACEOF
9649
9650 echo "$as_me:$LINENO: result: yes" >&5
9651echo "${ECHO_T}yes" >&6
9652 ;;
9653 no)
9654 eval "ac_cv_func_krb_get_our_ip_for_realm=no"
9655 eval "LIB_krb_get_our_ip_for_realm="
9656 echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
9658 ;;
9659 *)
9660 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
9661 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9662 cat >>confdefs.h <<_ACEOF
9663#define $ac_tr_func 1
9664_ACEOF
9665
9666 cat >>confdefs.h <<_ACEOF
9667#define $ac_tr_lib 1
9668_ACEOF
9669
9670 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9671echo "${ECHO_T}yes, in $ac_res" >&6
9672 ;;
9673esac
9674
9675
9676if test -n "$LIB_krb_get_our_ip_for_realm"; then
9677 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
9678fi
9679
9680
9681
9682
9683
9684echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
9685echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
9686if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689
9690if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
9691 ac_save_LIBS="$LIBS"
9692 for ac_lib in "" ; do
9693 case "$ac_lib" in
9694 "") ;;
9695 yes) ac_lib="" ;;
9696 no) continue ;;
9697 -l*) ;;
9698 *) ac_lib="-l$ac_lib" ;;
9699 esac
9700 LIBS=" $ac_lib $ac_save_LIBS"
9701 cat >conftest.$ac_ext <<_ACEOF
9702#line $LINENO "configure"
9703#include "confdefs.h"
9704
9705#ifdef F77_DUMMY_MAIN
9706# ifdef __cplusplus
9707 extern "C"
9708# endif
9709 int F77_DUMMY_MAIN() { return 1; }
9710#endif
9711int
9712main ()
9713{
9714krb_kdctimeofday()
9715 ;
9716 return 0;
9717}
9718_ACEOF
9719rm -f conftest.$ac_objext conftest$ac_exeext
9720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721 (eval $ac_link) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
9732else
9733 echo "$as_me: failed program was:" >&5
9734cat conftest.$ac_ext >&5
9735fi
9736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9737 done
9738 eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
9739 LIBS="$ac_save_LIBS"
9740fi
9741
9742fi
9743
9744
9745eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
9746
9747if false; then
9748
9749for ac_func in krb_kdctimeofday
9750do
9751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9752echo "$as_me:$LINENO: checking for $ac_func" >&5
9753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9754if eval "test \"\${$as_ac_var+set}\" = set"; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756else
9757 cat >conftest.$ac_ext <<_ACEOF
9758#line $LINENO "configure"
9759#include "confdefs.h"
9760/* System header to define __stub macros and hopefully few prototypes,
9761 which can conflict with char $ac_func (); below. */
9762#include <assert.h>
9763/* Override any gcc2 internal prototype to avoid an error. */
9764#ifdef __cplusplus
9765extern "C"
9766#endif
9767/* We use char because int might match the return type of a gcc2
9768 builtin and then its argument prototype would still apply. */
9769char $ac_func ();
9770char (*f) ();
9771
9772#ifdef F77_DUMMY_MAIN
9773# ifdef __cplusplus
9774 extern "C"
9775# endif
9776 int F77_DUMMY_MAIN() { return 1; }
9777#endif
9778int
9779main ()
9780{
9781/* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9785choke me
9786#else
9787f = $ac_func;
9788#endif
9789
9790 ;
9791 return 0;
9792}
9793_ACEOF
9794rm -f conftest.$ac_objext conftest$ac_exeext
9795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796 (eval $ac_link) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 eval "$as_ac_var=yes"
9807else
9808 echo "$as_me: failed program was:" >&5
9809cat conftest.$ac_ext >&5
9810eval "$as_ac_var=no"
9811fi
9812rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9813fi
9814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9815echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9816if test `eval echo '${'$as_ac_var'}'` = yes; then
9817 cat >>confdefs.h <<_ACEOF
9818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9819_ACEOF
9820
9821fi
9822done
9823
9824fi
9825# krb_kdctimeofday
9826eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9827eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9828eval "LIB_krb_kdctimeofday=$ac_res"
9829
9830case "$ac_res" in
9831 yes)
9832 eval "ac_cv_func_krb_kdctimeofday=yes"
9833 eval "LIB_krb_kdctimeofday="
9834 cat >>confdefs.h <<_ACEOF
9835#define $ac_tr_func 1
9836_ACEOF
9837
9838 echo "$as_me:$LINENO: result: yes" >&5
9839echo "${ECHO_T}yes" >&6
9840 ;;
9841 no)
9842 eval "ac_cv_func_krb_kdctimeofday=no"
9843 eval "LIB_krb_kdctimeofday="
9844 echo "$as_me:$LINENO: result: no" >&5
9845echo "${ECHO_T}no" >&6
9846 ;;
9847 *)
9848 eval "ac_cv_func_krb_kdctimeofday=yes"
9849 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9850 cat >>confdefs.h <<_ACEOF
9851#define $ac_tr_func 1
9852_ACEOF
9853
9854 cat >>confdefs.h <<_ACEOF
9855#define $ac_tr_lib 1
9856_ACEOF
9857
9858 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9859echo "${ECHO_T}yes, in $ac_res" >&6
9860 ;;
9861esac
9862
9863
9864if test -n "$LIB_krb_kdctimeofday"; then
9865 LIBS="$LIB_krb_kdctimeofday $LIBS"
9866fi
9867
9868
9869
9870
9871
9872
9873
9874echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
9875echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
9876if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878else
9879
9880if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
9881 ac_save_LIBS="$LIBS"
9882 for ac_lib in "" ; do
9883 case "$ac_lib" in
9884 "") ;;
9885 yes) ac_lib="" ;;
9886 no) continue ;;
9887 -l*) ;;
9888 *) ac_lib="-l$ac_lib" ;;
9889 esac
9890 LIBS=" $ac_lib $ac_save_LIBS"
9891 cat >conftest.$ac_ext <<_ACEOF
9892#line $LINENO "configure"
9893#include "confdefs.h"
9894
9895#ifdef F77_DUMMY_MAIN
9896# ifdef __cplusplus
9897 extern "C"
9898# endif
9899 int F77_DUMMY_MAIN() { return 1; }
9900#endif
9901int
9902main ()
9903{
9904krb_get_kdc_time_diff()
9905 ;
9906 return 0;
9907}
9908_ACEOF
9909rm -f conftest.$ac_objext conftest$ac_exeext
9910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911 (eval $ac_link) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -s conftest$ac_exeext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 (eval $ac_try) 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 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
9922else
9923 echo "$as_me: failed program was:" >&5
9924cat conftest.$ac_ext >&5
9925fi
9926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9927 done
9928 eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
9929 LIBS="$ac_save_LIBS"
9930fi
9931
9932fi
9933
9934
9935eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
9936
9937if false; then
9938
9939for ac_func in krb_get_kdc_time_diff
9940do
9941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9942echo "$as_me:$LINENO: checking for $ac_func" >&5
9943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9944if eval "test \"\${$as_ac_var+set}\" = set"; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946else
9947 cat >conftest.$ac_ext <<_ACEOF
9948#line $LINENO "configure"
9949#include "confdefs.h"
9950/* System header to define __stub macros and hopefully few prototypes,
9951 which can conflict with char $ac_func (); below. */
9952#include <assert.h>
9953/* Override any gcc2 internal prototype to avoid an error. */
9954#ifdef __cplusplus
9955extern "C"
9956#endif
9957/* We use char because int might match the return type of a gcc2
9958 builtin and then its argument prototype would still apply. */
9959char $ac_func ();
9960char (*f) ();
9961
9962#ifdef F77_DUMMY_MAIN
9963# ifdef __cplusplus
9964 extern "C"
9965# endif
9966 int F77_DUMMY_MAIN() { return 1; }
9967#endif
9968int
9969main ()
9970{
9971/* The GNU C library defines this for functions which it implements
9972 to always fail with ENOSYS. Some functions are actually named
9973 something starting with __ and the normal name is an alias. */
9974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9975choke me
9976#else
9977f = $ac_func;
9978#endif
9979
9980 ;
9981 return 0;
9982}
9983_ACEOF
9984rm -f conftest.$ac_objext conftest$ac_exeext
9985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 eval "$as_ac_var=yes"
9997else
9998 echo "$as_me: failed program was:" >&5
9999cat conftest.$ac_ext >&5
10000eval "$as_ac_var=no"
10001fi
10002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10003fi
10004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10005echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10006if test `eval echo '${'$as_ac_var'}'` = yes; then
10007 cat >>confdefs.h <<_ACEOF
10008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10009_ACEOF
10010
10011fi
10012done
10013
10014fi
10015# krb_get_kdc_time_diff
10016eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
10017eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
10018eval "LIB_krb_get_kdc_time_diff=$ac_res"
10019
10020case "$ac_res" in
10021 yes)
10022 eval "ac_cv_func_krb_get_kdc_time_diff=yes"
10023 eval "LIB_krb_get_kdc_time_diff="
10024 cat >>confdefs.h <<_ACEOF
10025#define $ac_tr_func 1
10026_ACEOF
10027
10028 echo "$as_me:$LINENO: result: yes" >&5
10029echo "${ECHO_T}yes" >&6
10030 ;;
10031 no)
10032 eval "ac_cv_func_krb_get_kdc_time_diff=no"
10033 eval "LIB_krb_get_kdc_time_diff="
10034 echo "$as_me:$LINENO: result: no" >&5
10035echo "${ECHO_T}no" >&6
10036 ;;
10037 *)
10038 eval "ac_cv_func_krb_get_kdc_time_diff=yes"
10039 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
10040 cat >>confdefs.h <<_ACEOF
10041#define $ac_tr_func 1
10042_ACEOF
10043
10044 cat >>confdefs.h <<_ACEOF
10045#define $ac_tr_lib 1
10046_ACEOF
10047
10048 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
10049echo "${ECHO_T}yes, in $ac_res" >&6
10050 ;;
10051esac
10052
10053
10054if test -n "$LIB_krb_get_kdc_time_diff"; then
10055 LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
10056fi
10057
10058
10059
10060 echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
10061echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
10062if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10064else
10065 cat >conftest.$ac_ext <<_ACEOF
10066#line $LINENO "configure"
10067#include "confdefs.h"
10068#include <krb.h>
10069 #include <prot.h>
10070#ifdef F77_DUMMY_MAIN
10071# ifdef __cplusplus
10072 extern "C"
10073# endif
10074 int F77_DUMMY_MAIN() { return 1; }
10075#endif
10076int
10077main ()
10078{
10079
10080 char *x = KRB_SENDAUTH_VERS
10081 ;
10082 return 0;
10083}
10084_ACEOF
10085rm -f conftest.$ac_objext
10086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10087 (eval $ac_compile) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try='test -s conftest.$ac_objext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_cv_func_krb_sendauth_vers=yes
10098else
10099 echo "$as_me: failed program was:" >&5
10100cat conftest.$ac_ext >&5
10101ac_cv_func_krb_sendauth_vers=no
10102fi
10103rm -f conftest.$ac_objext conftest.$ac_ext
10104
10105fi
10106echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
10107echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
10108 if test "$ac_cv_func_krb_sendauth_vers" != yes; then
10109
10110cat >>confdefs.h <<\_ACEOF
10111#define KRB_SENDAUTH_VERS "AUTHV0.1"
10112_ACEOF
10113
10114 fi
10115 echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
10116echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
10117if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119else
10120 cat >conftest.$ac_ext <<_ACEOF
10121#line $LINENO "configure"
10122#include "confdefs.h"
10123#include <krb.h>
10124 int krb_mk_req(KTEXT a, const char *s, const char *i,
10125 const char *r, int32_t checksum)
10126 { return 17; }
10127#ifdef F77_DUMMY_MAIN
10128# ifdef __cplusplus
10129 extern "C"
10130# endif
10131 int F77_DUMMY_MAIN() { return 1; }
10132#endif
10133int
10134main ()
10135{
10136
10137 ;
10138 return 0;
10139}
10140_ACEOF
10141rm -f conftest.$ac_objext
10142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143 (eval $ac_compile) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -s conftest.$ac_objext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_func_krb_mk_req_const=yes
10154else
10155 echo "$as_me: failed program was:" >&5
10156cat conftest.$ac_ext >&5
10157ac_cv_func_krb_mk_req_const=no
10158fi
10159rm -f conftest.$ac_objext conftest.$ac_ext
10160
10161fi
10162echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
10163echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
10164 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
10165
10166cat >>confdefs.h <<\_ACEOF
10167#define KRB_MK_REQ_CONST 1
10168_ACEOF
10169
10170 fi
10171
10172 LIBS="$save_LIBS"
10173 CFLAGS="$save_CFLAGS"
10174 LIB_kdb="-lkdb -lkrb"
10175fi
10176
10177
10178if test "$with_krb4" != "no"; then
10179 KRB4_TRUE=
10180 KRB4_FALSE='#'
10181else
10182 KRB4_TRUE='#'
10183 KRB4_FALSE=
10184fi
10185
10186
10187
10188if true; then
10189 KRB5_TRUE=
10190 KRB5_FALSE='#'
10191else
10192 KRB5_TRUE='#'
10193 KRB5_FALSE=
10194fi
10195
10196
10197
10198if true; then
10199 do_roken_rename_TRUE=
10200 do_roken_rename_FALSE='#'
10201else
10202 do_roken_rename_TRUE='#'
10203 do_roken_rename_FALSE=
10204fi
10205
10206
10207
10208cat >>confdefs.h <<\_ACEOF
10209#define KRB5 1
10210_ACEOF
10211
10212
10213crypto_lib=unknown
10214
10215
10216# Check whether --with-openssl or --without-openssl was given.
10217if test "${with_openssl+set}" = set; then
10218 withval="$with_openssl"
10219
10220fi;
10221
10222
10223# Check whether --with-openssl-lib or --without-openssl-lib was given.
10224if test "${with_openssl_lib+set}" = set; then
10225 withval="$with_openssl_lib"
10226 if test "$withval" = "yes" -o "$withval" = "no"; then
10227 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
10228echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
10229 { (exit 1); exit 1; }; }
10230elif test "X$with_openssl" = "X"; then
10231 with_openssl=yes
10232fi
10233fi;
10234
10235
10236# Check whether --with-openssl-include or --without-openssl-include was given.
10237if test "${with_openssl_include+set}" = set; then
10238 withval="$with_openssl_include"
10239 if test "$withval" = "yes" -o "$withval" = "no"; then
10240 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
10241echo "$as_me: error: No argument for --with-openssl-include" >&2;}
10242 { (exit 1); exit 1; }; }
10243elif test "X$with_openssl" = "X"; then
10244 with_openssl=yes
10245fi
10246fi;
10247
10248case "$with_openssl" in
10249yes) ;;
10250no) ;;
10251"") ;;
10252*) if test "$with_openssl_include" = ""; then
10253 with_openssl_include="$with_openssl/include"
10254 fi
10255 if test "$with_openssl_lib" = ""; then
10256 with_openssl_lib="$with_openssl/lib$abilibdirext"
10257 fi
10258 ;;
10259esac
10260
10261
10262DIR_des=
10263
10264echo "$as_me:$LINENO: checking for crypto library" >&5
10265echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
10266
10267openssl=no
10268old_hash=no
10269
10270if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
10271 save_CPPFLAGS="$CPPFLAGS"
10272 save_LIBS="$LIBS"
10273
10274 cdirs= clibs=
10275 for i in $LIB_krb4; do
10276 case "$i" in
10277 -L*) cdirs="$cdirs $i";;
10278 -l*) clibs="$clibs $i";;
10279 esac
10280 done
10281
10282 ires=
10283 for i in $INCLUDE_krb4; do
10284 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
10285 for j in $cdirs; do
10286 for k in $clibs; do
10287 LIBS="$j $k $save_LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10289#line $LINENO "configure"
10290#include "confdefs.h"
10291
10292 #undef KRB5 /* makes md4.h et al unhappy */
10293 #ifdef HAVE_OPENSSL
10294 #include <openssl/md4.h>
10295 #include <openssl/md5.h>
10296 #include <openssl/sha.h>
10297 #define OPENSSL_DES_LIBDES_COMPATIBILITY
10298 #include <openssl/des.h>
10299 #include <openssl/rc4.h>
10300 #include <openssl/rand.h>
10301 #else
10302 #include <md4.h>
10303 #include <md5.h>
10304 #include <sha.h>
10305 #include <des.h>
10306 #include <rc4.h>
10307 #endif
10308 #ifdef OLD_HASH_NAMES
10309 typedef struct md4 MD4_CTX;
10310 #define MD4_Init(C) md4_init((C))
10311 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10312 #define MD4_Final(D, C) md4_finito((C), (D))
10313 typedef struct md5 MD5_CTX;
10314 #define MD5_Init(C) md5_init((C))
10315 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10316 #define MD5_Final(D, C) md5_finito((C), (D))
10317 typedef struct sha SHA_CTX;
10318 #define SHA1_Init(C) sha_init((C))
10319 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10320 #define SHA1_Final(D, C) sha_finito((C), (D))
10321 #endif
10322
10323#ifdef F77_DUMMY_MAIN
10324# ifdef __cplusplus
10325 extern "C"
10326# endif
10327 int F77_DUMMY_MAIN() { return 1; }
10328#endif
10329int
10330main ()
10331{
10332
10333 void *schedule = 0;
10334 MD4_CTX md4;
10335 MD5_CTX md5;
10336 SHA_CTX sha1;
10337
10338 MD4_Init(&md4);
10339 MD5_Init(&md5);
10340 SHA1_Init(&sha1);
10341 #ifdef HAVE_OPENSSL
10342 RAND_status();
10343 #endif
10344
10345 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10346 RC4(0, 0, 0, 0);
10347 ;
10348 return 0;
10349}
10350_ACEOF
10351rm -f conftest.$ac_objext conftest$ac_exeext
10352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10353 (eval $ac_link) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -s conftest$ac_exeext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 openssl=yes ires="$i" lres="$j $k"; break 3
10364else
10365 echo "$as_me: failed program was:" >&5
10366cat conftest.$ac_ext >&5
10367fi
10368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10369 done
10370 done
10371 CFLAGS="$i $save_CFLAGS"
10372 for j in $cdirs; do
10373 for k in $clibs; do
10374 LIBS="$j $k $save_LIBS"
10375 cat >conftest.$ac_ext <<_ACEOF
10376#line $LINENO "configure"
10377#include "confdefs.h"
10378
10379 #undef KRB5 /* makes md4.h et al unhappy */
10380 #ifdef HAVE_OPENSSL
10381 #include <openssl/md4.h>
10382 #include <openssl/md5.h>
10383 #include <openssl/sha.h>
10384 #define OPENSSL_DES_LIBDES_COMPATIBILITY
10385 #include <openssl/des.h>
10386 #include <openssl/rc4.h>
10387 #include <openssl/rand.h>
10388 #else
10389 #include <md4.h>
10390 #include <md5.h>
10391 #include <sha.h>
10392 #include <des.h>
10393 #include <rc4.h>
10394 #endif
10395 #ifdef OLD_HASH_NAMES
10396 typedef struct md4 MD4_CTX;
10397 #define MD4_Init(C) md4_init((C))
10398 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10399 #define MD4_Final(D, C) md4_finito((C), (D))
10400 typedef struct md5 MD5_CTX;
10401 #define MD5_Init(C) md5_init((C))
10402 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10403 #define MD5_Final(D, C) md5_finito((C), (D))
10404 typedef struct sha SHA_CTX;
10405 #define SHA1_Init(C) sha_init((C))
10406 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10407 #define SHA1_Final(D, C) sha_finito((C), (D))
10408 #endif
10409
10410#ifdef F77_DUMMY_MAIN
10411# ifdef __cplusplus
10412 extern "C"
10413# endif
10414 int F77_DUMMY_MAIN() { return 1; }
10415#endif
10416int
10417main ()
10418{
10419
10420 void *schedule = 0;
10421 MD4_CTX md4;
10422 MD5_CTX md5;
10423 SHA_CTX sha1;
10424
10425 MD4_Init(&md4);
10426 MD5_Init(&md5);
10427 SHA1_Init(&sha1);
10428 #ifdef HAVE_OPENSSL
10429 RAND_status();
10430 #endif
10431
10432 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10433 RC4(0, 0, 0, 0);
10434 ;
10435 return 0;
10436}
10437_ACEOF
10438rm -f conftest.$ac_objext conftest$ac_exeext
10439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440 (eval $ac_link) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -s conftest$ac_exeext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 openssl=no ires="$i" lres="$j $k"; break 3
10451else
10452 echo "$as_me: failed program was:" >&5
10453cat conftest.$ac_ext >&5
10454fi
10455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10456 done
10457 done
10458 CFLAGS="-DHAVE_OLD_HASH_NAMES $i $save_CFLAGS"
10459 for j in $cdirs; do
10460 for k in $clibs; do
10461 LIBS="$j $k $save_LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10463#line $LINENO "configure"
10464#include "confdefs.h"
10465
10466 #undef KRB5 /* makes md4.h et al unhappy */
10467 #ifdef HAVE_OPENSSL
10468 #include <openssl/md4.h>
10469 #include <openssl/md5.h>
10470 #include <openssl/sha.h>
10471 #define OPENSSL_DES_LIBDES_COMPATIBILITY
10472 #include <openssl/des.h>
10473 #include <openssl/rc4.h>
10474 #include <openssl/rand.h>
10475 #else
10476 #include <md4.h>
10477 #include <md5.h>
10478 #include <sha.h>
10479 #include <des.h>
10480 #include <rc4.h>
10481 #endif
10482 #ifdef OLD_HASH_NAMES
10483 typedef struct md4 MD4_CTX;
10484 #define MD4_Init(C) md4_init((C))
10485 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10486 #define MD4_Final(D, C) md4_finito((C), (D))
10487 typedef struct md5 MD5_CTX;
10488 #define MD5_Init(C) md5_init((C))
10489 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10490 #define MD5_Final(D, C) md5_finito((C), (D))
10491 typedef struct sha SHA_CTX;
10492 #define SHA1_Init(C) sha_init((C))
10493 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10494 #define SHA1_Final(D, C) sha_finito((C), (D))
10495 #endif
10496
10497#ifdef F77_DUMMY_MAIN
10498# ifdef __cplusplus
10499 extern "C"
10500# endif
10501 int F77_DUMMY_MAIN() { return 1; }
10502#endif
10503int
10504main ()
10505{
10506
10507 void *schedule = 0;
10508 MD4_CTX md4;
10509 MD5_CTX md5;
10510 SHA_CTX sha1;
10511
10512 MD4_Init(&md4);
10513 MD5_Init(&md5);
10514 SHA1_Init(&sha1);
10515 #ifdef HAVE_OPENSSL
10516 RAND_status();
10517 #endif
10518
10519 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10520 RC4(0, 0, 0, 0);
10521 ;
10522 return 0;
10523}
10524_ACEOF
10525rm -f conftest.$ac_objext conftest$ac_exeext
10526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -s conftest$ac_exeext'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 openssl=no ires="$i" lres="$j $k"; break 3
10538else
10539 echo "$as_me: failed program was:" >&5
10540cat conftest.$ac_ext >&5
10541fi
10542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10543 done
10544 done
10545 done
10546
10547 CFLAGS="$save_CFLAGS"
10548 LIBS="$save_LIBS"
10549 if test "$ires" -a "$lres"; then
10550 INCLUDE_des="$ires"
10551 LIB_des="$lres"
10552 crypto_lib=krb4
10553 echo "$as_me:$LINENO: result: same as krb4" >&5
10554echo "${ECHO_T}same as krb4" >&6
10555 LIB_des_a='$(LIB_des)'
10556 LIB_des_so='$(LIB_des)'
10557 LIB_des_appl='$(LIB_des)'
10558 fi
10559fi
10560
10561if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
10562 save_CFLAGS="$CFLAGS"
10563 save_LIBS="$LIBS"
10564 INCLUDE_des=
10565 LIB_des=
10566 if test "$with_openssl_include" != ""; then
10567 INCLUDE_des="-I${with_openssl_include}"
10568 fi
10569 if test "$with_openssl_lib" != ""; then
10570 LIB_des="-L${with_openssl_lib}"
10571 fi
10572 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
10573 saved_LIB_des="$LIB_des"
10574 for lres in "" "-lnsl -lsocket"; do
10575 LIB_des="${saved_LIB_des} -lcrypto $lres"
10576 LIB_des_a="$LIB_des"
10577 LIB_des_so="$LIB_des"
10578 LIB_des_appl="$LIB_des"
10579 LIBS="${LIBS} ${LIB_des}"
10580 cat >conftest.$ac_ext <<_ACEOF
10581#line $LINENO "configure"
10582#include "confdefs.h"
10583
10584 #undef KRB5 /* makes md4.h et al unhappy */
10585 #ifdef HAVE_OPENSSL
10586 #include <openssl/md4.h>
10587 #include <openssl/md5.h>
10588 #include <openssl/sha.h>
10589 #define OPENSSL_DES_LIBDES_COMPATIBILITY
10590 #include <openssl/des.h>
10591 #include <openssl/rc4.h>
10592 #include <openssl/rand.h>
10593 #else
10594 #include <md4.h>
10595 #include <md5.h>
10596 #include <sha.h>
10597 #include <des.h>
10598 #include <rc4.h>
10599 #endif
10600 #ifdef OLD_HASH_NAMES
10601 typedef struct md4 MD4_CTX;
10602 #define MD4_Init(C) md4_init((C))
10603 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10604 #define MD4_Final(D, C) md4_finito((C), (D))
10605 typedef struct md5 MD5_CTX;
10606 #define MD5_Init(C) md5_init((C))
10607 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10608 #define MD5_Final(D, C) md5_finito((C), (D))
10609 typedef struct sha SHA_CTX;
10610 #define SHA1_Init(C) sha_init((C))
10611 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10612 #define SHA1_Final(D, C) sha_finito((C), (D))
10613 #endif
10614
10615#ifdef F77_DUMMY_MAIN
10616# ifdef __cplusplus
10617 extern "C"
10618# endif
10619 int F77_DUMMY_MAIN() { return 1; }
10620#endif
10621int
10622main ()
10623{
10624
10625 void *schedule = 0;
10626 MD4_CTX md4;
10627 MD5_CTX md5;
10628 SHA_CTX sha1;
10629
10630 MD4_Init(&md4);
10631 MD5_Init(&md5);
10632 SHA1_Init(&sha1);
10633 #ifdef HAVE_OPENSSL
10634 RAND_status();
10635 #endif
10636
10637 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10638 RC4(0, 0, 0, 0);
10639 ;
10640 return 0;
10641}
10642_ACEOF
10643rm -f conftest.$ac_objext conftest$ac_exeext
10644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655
10656 crypto_lib=libcrypto openssl=yes
10657 echo "$as_me:$LINENO: result: libcrypto" >&5
10658echo "${ECHO_T}libcrypto" >&6
10659
10660else
10661 echo "$as_me: failed program was:" >&5
10662cat conftest.$ac_ext >&5
10663fi
10664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10665 if test "$crypto_lib" = libcrypto ; then
10666 break;
10667 fi
10668 done
10669 CFLAGS="$save_CFLAGS"
10670 LIBS="$save_LIBS"
10671fi
10672
10673if test "$crypto_lib" = "unknown"; then
10674
10675 DIR_des='des'
10676 LIB_des='$(top_builddir)/lib/des/libdes.la'
10677 LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
10678 LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
10679 LIB_des_appl="-ldes"
10680
10681 echo "$as_me:$LINENO: result: included libdes" >&5
10682echo "${ECHO_T}included libdes" >&6
10683
10684fi
10685
10686if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
10687 { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
10688required by Kerberos 5; to continue, you need to install a newer
10689Kerberos 4 or configure --without-krb4" >&5
10690echo "$as_me: error: the crypto library used by krb4 lacks features
10691required by Kerberos 5; to continue, you need to install a newer
10692Kerberos 4 or configure --without-krb4" >&2;}
10693 { (exit 1); exit 1; }; }
10694fi
10695
10696if test "$openssl" = "yes"; then
10697
10698cat >>confdefs.h <<\_ACEOF
10699#define HAVE_OPENSSL 1
10700_ACEOF
10701
10702fi
10703if test "$old_hash" = yes; then
10704
10705cat >>confdefs.h <<\_ACEOF
10706#define HAVE_OLD_HASH_NAMES 1
10707_ACEOF
10708
10709fi
10710
10711
10712if test "$openssl" = yes; then
10713 HAVE_OPENSSL_TRUE=
10714 HAVE_OPENSSL_FALSE='#'
10715else
10716 HAVE_OPENSSL_TRUE='#'
10717 HAVE_OPENSSL_FALSE=
10718fi
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728# Check whether --enable-dce or --disable-dce was given.
10729if test "${enable_dce+set}" = set; then
10730 enableval="$enable_dce"
10731
10732fi;
10733if test "$enable_dce" = yes; then
10734
10735cat >>confdefs.h <<\_ACEOF
10736#define DCE 1
10737_ACEOF
10738
10739fi
10740
10741
10742if test "$enable_dce" = yes; then
10743 DCE_TRUE=
10744 DCE_FALSE='#'
10745else
10746 DCE_TRUE='#'
10747 DCE_FALSE=
10748fi
10749
10750
10751## XXX quite horrible:
10752if test -f /etc/ibmcxx.cfg; then
10753 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
10754 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
10755 dpagaix_ldflags=
10756else
10757 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
10758 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
10759 dpagaix_ldflags="-Wl,-bI:dfspag.exp"
10760fi
10761
10762
10763
10764
10765
10766# Check whether --enable-berkeley-db or --disable-berkeley-db was given.
10767if test "${enable_berkeley_db+set}" = set; then
10768 enableval="$enable_berkeley_db"
10769
10770
10771fi;
10772
10773have_ndbm=no
10774db_type=unknown
10775
10776if test "$enable_berkeley_db" != no; then
10777
10778
10779
10780
10781
10782for ac_header in \
10783 db4/db.h \
10784 db3/db.h \
10785 db.h \
10786 db_185.h \
10787
10788do
10789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10790if eval "test \"\${$as_ac_Header+set}\" = set"; then
10791 echo "$as_me:$LINENO: checking for $ac_header" >&5
10792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10793if eval "test \"\${$as_ac_Header+set}\" = set"; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795fi
10796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10798else
10799 # Is the header compilable?
10800echo "$as_me:$LINENO: checking $ac_header usability" >&5
10801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10802cat >conftest.$ac_ext <<_ACEOF
10803#line $LINENO "configure"
10804#include "confdefs.h"
10805$ac_includes_default
10806#include <$ac_header>
10807_ACEOF
10808rm -f conftest.$ac_objext
10809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -s conftest.$ac_objext'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 ac_header_compiler=yes
10821else
10822 echo "$as_me: failed program was:" >&5
10823cat conftest.$ac_ext >&5
10824ac_header_compiler=no
10825fi
10826rm -f conftest.$ac_objext conftest.$ac_ext
10827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10828echo "${ECHO_T}$ac_header_compiler" >&6
10829
10830# Is the header present?
10831echo "$as_me:$LINENO: checking $ac_header presence" >&5
10832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10833cat >conftest.$ac_ext <<_ACEOF
10834#line $LINENO "configure"
10835#include "confdefs.h"
10836#include <$ac_header>
10837_ACEOF
10838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10840 ac_status=$?
10841 egrep -v '^ *\+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } >/dev/null; then
10846 if test -s conftest.err; then
10847 ac_cpp_err=$ac_c_preproc_warn_flag
10848 else
10849 ac_cpp_err=
10850 fi
10851else
10852 ac_cpp_err=yes
10853fi
10854if test -z "$ac_cpp_err"; then
10855 ac_header_preproc=yes
10856else
10857 echo "$as_me: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10859 ac_header_preproc=no
10860fi
10861rm -f conftest.err conftest.$ac_ext
10862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10863echo "${ECHO_T}$ac_header_preproc" >&6
10864
10865# So? What about this header?
10866case $ac_header_compiler:$ac_header_preproc in
10867 yes:no )
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10872 no:yes )
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10876echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10879esac
10880echo "$as_me:$LINENO: checking for $ac_header" >&5
10881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10882if eval "test \"\${$as_ac_Header+set}\" = set"; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 eval "$as_ac_Header=$ac_header_preproc"
10886fi
10887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10889
10890fi
10891if test `eval echo '${'$as_ac_Header'}'` = yes; then
10892 cat >>confdefs.h <<_ACEOF
10893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10894_ACEOF
10895
10896fi
10897
10898done
10899
10900
10901
10902
10903
10904
10905echo "$as_me:$LINENO: checking for db_create" >&5
10906echo $ECHO_N "checking for db_create... $ECHO_C" >&6
10907if test "${ac_cv_funclib_db_create+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909else
10910
10911if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
10912 ac_save_LIBS="$LIBS"
10913 for ac_lib in "" db4 db3 db; do
10914 case "$ac_lib" in
10915 "") ;;
10916 yes) ac_lib="" ;;
10917 no) continue ;;
10918 -l*) ;;
10919 *) ac_lib="-l$ac_lib" ;;
10920 esac
10921 LIBS=" $ac_lib $ac_save_LIBS"
10922 cat >conftest.$ac_ext <<_ACEOF
10923#line $LINENO "configure"
10924#include "confdefs.h"
10925
10926 #include <stdio.h>
10927 #ifdef HAVE_DB4_DB_H
10928 #include <db4/db.h>
10929 #elif defined(HAVE_DB3_DB_H)
10930 #include <db3/db.h>
10931 #else
10932 #include <db.h>
10933 #endif
10934
10935#ifdef F77_DUMMY_MAIN
10936# ifdef __cplusplus
10937 extern "C"
10938# endif
10939 int F77_DUMMY_MAIN() { return 1; }
10940#endif
10941int
10942main ()
10943{
10944db_create(NULL, NULL, 0)
10945 ;
10946 return 0;
10947}
10948_ACEOF
10949rm -f conftest.$ac_objext conftest$ac_exeext
10950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10951 (eval $ac_link) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try='test -s conftest$ac_exeext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
10962else
10963 echo "$as_me: failed program was:" >&5
10964cat conftest.$ac_ext >&5
10965fi
10966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10967 done
10968 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
10969 LIBS="$ac_save_LIBS"
10970fi
10971
10972fi
10973
10974
10975eval "ac_res=\$ac_cv_funclib_db_create"
10976
10977if false; then
10978
10979for ac_func in db_create
10980do
10981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10982echo "$as_me:$LINENO: checking for $ac_func" >&5
10983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10984if eval "test \"\${$as_ac_var+set}\" = set"; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986else
10987 cat >conftest.$ac_ext <<_ACEOF
10988#line $LINENO "configure"
10989#include "confdefs.h"
10990/* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char $ac_func (); below. */
10992#include <assert.h>
10993/* Override any gcc2 internal prototype to avoid an error. */
10994#ifdef __cplusplus
10995extern "C"
10996#endif
10997/* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999char $ac_func ();
11000char (*f) ();
11001
11002#ifdef F77_DUMMY_MAIN
11003# ifdef __cplusplus
11004 extern "C"
11005# endif
11006 int F77_DUMMY_MAIN() { return 1; }
11007#endif
11008int
11009main ()
11010{
11011/* The GNU C library defines this for functions which it implements
11012 to always fail with ENOSYS. Some functions are actually named
11013 something starting with __ and the normal name is an alias. */
11014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11015choke me
11016#else
11017f = $ac_func;
11018#endif
11019
11020 ;
11021 return 0;
11022}
11023_ACEOF
11024rm -f conftest.$ac_objext conftest$ac_exeext
11025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -s conftest$ac_exeext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 eval "$as_ac_var=yes"
11037else
11038 echo "$as_me: failed program was:" >&5
11039cat conftest.$ac_ext >&5
11040eval "$as_ac_var=no"
11041fi
11042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11043fi
11044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11046if test `eval echo '${'$as_ac_var'}'` = yes; then
11047 cat >>confdefs.h <<_ACEOF
11048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11049_ACEOF
11050
11051fi
11052done
11053
11054fi
11055# db_create
11056eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11057eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11058eval "LIB_db_create=$ac_res"
11059
11060case "$ac_res" in
11061 yes)
11062 eval "ac_cv_func_db_create=yes"
11063 eval "LIB_db_create="
11064 cat >>confdefs.h <<_ACEOF
11065#define $ac_tr_func 1
11066_ACEOF
11067
11068 echo "$as_me:$LINENO: result: yes" >&5
11069echo "${ECHO_T}yes" >&6
11070 ;;
11071 no)
11072 eval "ac_cv_func_db_create=no"
11073 eval "LIB_db_create="
11074 echo "$as_me:$LINENO: result: no" >&5
11075echo "${ECHO_T}no" >&6
11076 ;;
11077 *)
11078 eval "ac_cv_func_db_create=yes"
11079 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11080 cat >>confdefs.h <<_ACEOF
11081#define $ac_tr_func 1
11082_ACEOF
11083
11084 cat >>confdefs.h <<_ACEOF
11085#define $ac_tr_lib 1
11086_ACEOF
11087
11088 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11089echo "${ECHO_T}yes, in $ac_res" >&6
11090 ;;
11091esac
11092
11093
11094
11095 if test "$ac_cv_func_db_create" = "yes"; then
11096 db_type=db3
11097 if test "$ac_cv_funclib_db_create" != "yes"; then
11098 DBLIB="$ac_cv_funclib_db_create"
11099 else
11100 DBLIB=""
11101 fi
11102
11103cat >>confdefs.h <<\_ACEOF
11104#define HAVE_DB3 1
11105_ACEOF
11106
11107 else
11108
11109
11110
11111
11112
11113echo "$as_me:$LINENO: checking for dbopen" >&5
11114echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
11115if test "${ac_cv_funclib_dbopen+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11117else
11118
11119if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
11120 ac_save_LIBS="$LIBS"
11121 for ac_lib in "" db2 db; do
11122 case "$ac_lib" in
11123 "") ;;
11124 yes) ac_lib="" ;;
11125 no) continue ;;
11126 -l*) ;;
11127 *) ac_lib="-l$ac_lib" ;;
11128 esac
11129 LIBS=" $ac_lib $ac_save_LIBS"
11130 cat >conftest.$ac_ext <<_ACEOF
11131#line $LINENO "configure"
11132#include "confdefs.h"
11133
11134 #include <stdio.h>
11135 #if defined(HAVE_DB2_DB_H)
11136 #include <db2/db.h>
11137 #elif defined(HAVE_DB_185_H)
11138 #include <db_185.h>
11139 #elif defined(HAVE_DB_H)
11140 #include <db.h>
11141 #else
11142 #error no db.h
11143 #endif
11144
11145#ifdef F77_DUMMY_MAIN
11146# ifdef __cplusplus
11147 extern "C"
11148# endif
11149 int F77_DUMMY_MAIN() { return 1; }
11150#endif
11151int
11152main ()
11153{
11154dbopen(NULL, 0, 0, 0, NULL)
11155 ;
11156 return 0;
11157}
11158_ACEOF
11159rm -f conftest.$ac_objext conftest$ac_exeext
11160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161 (eval $ac_link) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
11172else
11173 echo "$as_me: failed program was:" >&5
11174cat conftest.$ac_ext >&5
11175fi
11176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11177 done
11178 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
11179 LIBS="$ac_save_LIBS"
11180fi
11181
11182fi
11183
11184
11185eval "ac_res=\$ac_cv_funclib_dbopen"
11186
11187if false; then
11188
11189for ac_func in dbopen
11190do
11191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192echo "$as_me:$LINENO: checking for $ac_func" >&5
11193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11194if eval "test \"\${$as_ac_var+set}\" = set"; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196else
11197 cat >conftest.$ac_ext <<_ACEOF
11198#line $LINENO "configure"
11199#include "confdefs.h"
11200/* System header to define __stub macros and hopefully few prototypes,
11201 which can conflict with char $ac_func (); below. */
11202#include <assert.h>
11203/* Override any gcc2 internal prototype to avoid an error. */
11204#ifdef __cplusplus
11205extern "C"
11206#endif
11207/* We use char because int might match the return type of a gcc2
11208 builtin and then its argument prototype would still apply. */
11209char $ac_func ();
11210char (*f) ();
11211
11212#ifdef F77_DUMMY_MAIN
11213# ifdef __cplusplus
11214 extern "C"
11215# endif
11216 int F77_DUMMY_MAIN() { return 1; }
11217#endif
11218int
11219main ()
11220{
11221/* The GNU C library defines this for functions which it implements
11222 to always fail with ENOSYS. Some functions are actually named
11223 something starting with __ and the normal name is an alias. */
11224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11225choke me
11226#else
11227f = $ac_func;
11228#endif
11229
11230 ;
11231 return 0;
11232}
11233_ACEOF
11234rm -f conftest.$ac_objext conftest$ac_exeext
11235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 eval "$as_ac_var=yes"
11247else
11248 echo "$as_me: failed program was:" >&5
11249cat conftest.$ac_ext >&5
11250eval "$as_ac_var=no"
11251fi
11252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11253fi
11254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11256if test `eval echo '${'$as_ac_var'}'` = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11259_ACEOF
11260
11261fi
11262done
11263
11264fi
11265# dbopen
11266eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11267eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11268eval "LIB_dbopen=$ac_res"
11269
11270case "$ac_res" in
11271 yes)
11272 eval "ac_cv_func_dbopen=yes"
11273 eval "LIB_dbopen="
11274 cat >>confdefs.h <<_ACEOF
11275#define $ac_tr_func 1
11276_ACEOF
11277
11278 echo "$as_me:$LINENO: result: yes" >&5
11279echo "${ECHO_T}yes" >&6
11280 ;;
11281 no)
11282 eval "ac_cv_func_dbopen=no"
11283 eval "LIB_dbopen="
11284 echo "$as_me:$LINENO: result: no" >&5
11285echo "${ECHO_T}no" >&6
11286 ;;
11287 *)
11288 eval "ac_cv_func_dbopen=yes"
11289 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11290 cat >>confdefs.h <<_ACEOF
11291#define $ac_tr_func 1
11292_ACEOF
11293
11294 cat >>confdefs.h <<_ACEOF
11295#define $ac_tr_lib 1
11296_ACEOF
11297
11298 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11299echo "${ECHO_T}yes, in $ac_res" >&6
11300 ;;
11301esac
11302
11303
11304
11305 if test "$ac_cv_func_dbopen" = "yes"; then
11306 db_type=db1
11307 if test "$ac_cv_funclib_dbopen" != "yes"; then
11308 DBLIB="$ac_cv_funclib_dbopen"
11309 else
11310 DBLIB=""
11311 fi
11312
11313cat >>confdefs.h <<\_ACEOF
11314#define HAVE_DB1 1
11315_ACEOF
11316
11317 fi
11318 fi
11319
11320
11321 if test "$ac_cv_func_dbm_firstkey" != yes; then
11322
11323
11324echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11325echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
11326if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328else
11329
11330if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
11331 ac_save_LIBS="$LIBS"
11332 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
11333 case "$ac_lib" in
11334 "") ;;
11335 yes) ac_lib="" ;;
11336 no) continue ;;
11337 -l*) ;;
11338 *) ac_lib="-l$ac_lib" ;;
11339 esac
11340 LIBS=" $ac_lib $ac_save_LIBS"
11341 cat >conftest.$ac_ext <<_ACEOF
11342#line $LINENO "configure"
11343#include "confdefs.h"
11344
11345 #include <stdio.h>
11346 #define DB_DBM_HSEARCH 1
11347 #include <db.h>
11348 DBM *dbm;
11349
11350#ifdef F77_DUMMY_MAIN
11351# ifdef __cplusplus
11352 extern "C"
11353# endif
11354 int F77_DUMMY_MAIN() { return 1; }
11355#endif
11356int
11357main ()
11358{
11359dbm_firstkey(NULL)
11360 ;
11361 return 0;
11362}
11363_ACEOF
11364rm -f conftest.$ac_objext conftest$ac_exeext
11365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366 (eval $ac_link) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -s conftest$ac_exeext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
11377else
11378 echo "$as_me: failed program was:" >&5
11379cat conftest.$ac_ext >&5
11380fi
11381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11382 done
11383 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
11384 LIBS="$ac_save_LIBS"
11385fi
11386
11387fi
11388
11389
11390eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
11391
11392if false; then
11393
11394for ac_func in dbm_firstkey
11395do
11396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11397echo "$as_me:$LINENO: checking for $ac_func" >&5
11398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11399if eval "test \"\${$as_ac_var+set}\" = set"; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 cat >conftest.$ac_ext <<_ACEOF
11403#line $LINENO "configure"
11404#include "confdefs.h"
11405/* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char $ac_func (); below. */
11407#include <assert.h>
11408/* Override any gcc2 internal prototype to avoid an error. */
11409#ifdef __cplusplus
11410extern "C"
11411#endif
11412/* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11414char $ac_func ();
11415char (*f) ();
11416
11417#ifdef F77_DUMMY_MAIN
11418# ifdef __cplusplus
11419 extern "C"
11420# endif
11421 int F77_DUMMY_MAIN() { return 1; }
11422#endif
11423int
11424main ()
11425{
11426/* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11430choke me
11431#else
11432f = $ac_func;
11433#endif
11434
11435 ;
11436 return 0;
11437}
11438_ACEOF
11439rm -f conftest.$ac_objext conftest$ac_exeext
11440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -s conftest$ac_exeext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 eval "$as_ac_var=yes"
11452else
11453 echo "$as_me: failed program was:" >&5
11454cat conftest.$ac_ext >&5
11455eval "$as_ac_var=no"
11456fi
11457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11458fi
11459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11461if test `eval echo '${'$as_ac_var'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11464_ACEOF
11465
11466fi
11467done
11468
11469fi
11470# dbm_firstkey
11471eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11472eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11473eval "LIB_dbm_firstkey=$ac_res"
11474
11475case "$ac_res" in
11476 yes)
11477 eval "ac_cv_func_dbm_firstkey=yes"
11478 eval "LIB_dbm_firstkey="
11479 cat >>confdefs.h <<_ACEOF
11480#define $ac_tr_func 1
11481_ACEOF
11482
11483 echo "$as_me:$LINENO: result: yes" >&5
11484echo "${ECHO_T}yes" >&6
11485 ;;
11486 no)
11487 eval "ac_cv_func_dbm_firstkey=no"
11488 eval "LIB_dbm_firstkey="
11489 echo "$as_me:$LINENO: result: no" >&5
11490echo "${ECHO_T}no" >&6
11491 ;;
11492 *)
11493 eval "ac_cv_func_dbm_firstkey=yes"
11494 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11495 cat >>confdefs.h <<_ACEOF
11496#define $ac_tr_func 1
11497_ACEOF
11498
11499 cat >>confdefs.h <<_ACEOF
11500#define $ac_tr_lib 1
11501_ACEOF
11502
11503 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11504echo "${ECHO_T}yes, in $ac_res" >&6
11505 ;;
11506esac
11507
11508
11509
11510 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
11511 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
11512 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
11513 else
11514 LIB_NDBM=""
11515 fi
11516
11517cat >>confdefs.h <<\_ACEOF
11518#define HAVE_DB_NDBM 1
11519_ACEOF
11520
11521
11522cat >>confdefs.h <<\_ACEOF
11523#define HAVE_NEW_DB 1
11524_ACEOF
11525
11526 else
11527 $as_unset ac_cv_func_dbm_firstkey
11528 $as_unset ac_cv_funclib_dbm_firstkey
11529 fi
11530 fi
11531
11532fi # berkeley db
11533
11534if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
11535
11536
11537
11538for ac_header in \
11539 dbm.h \
11540 ndbm.h \
11541
11542do
11543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11544if eval "test \"\${$as_ac_Header+set}\" = set"; then
11545 echo "$as_me:$LINENO: checking for $ac_header" >&5
11546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11547if eval "test \"\${$as_ac_Header+set}\" = set"; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549fi
11550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11552else
11553 # Is the header compilable?
11554echo "$as_me:$LINENO: checking $ac_header usability" >&5
11555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11556cat >conftest.$ac_ext <<_ACEOF
11557#line $LINENO "configure"
11558#include "confdefs.h"
11559$ac_includes_default
11560#include <$ac_header>
11561_ACEOF
11562rm -f conftest.$ac_objext
11563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -s conftest.$ac_objext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_header_compiler=yes
11575else
11576 echo "$as_me: failed program was:" >&5
11577cat conftest.$ac_ext >&5
11578ac_header_compiler=no
11579fi
11580rm -f conftest.$ac_objext conftest.$ac_ext
11581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11582echo "${ECHO_T}$ac_header_compiler" >&6
11583
11584# Is the header present?
11585echo "$as_me:$LINENO: checking $ac_header presence" >&5
11586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11587cat >conftest.$ac_ext <<_ACEOF
11588#line $LINENO "configure"
11589#include "confdefs.h"
11590#include <$ac_header>
11591_ACEOF
11592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11594 ac_status=$?
11595 egrep -v '^ *\+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } >/dev/null; then
11600 if test -s conftest.err; then
11601 ac_cpp_err=$ac_c_preproc_warn_flag
11602 else
11603 ac_cpp_err=
11604 fi
11605else
11606 ac_cpp_err=yes
11607fi
11608if test -z "$ac_cpp_err"; then
11609 ac_header_preproc=yes
11610else
11611 echo "$as_me: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11613 ac_header_preproc=no
11614fi
11615rm -f conftest.err conftest.$ac_ext
11616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11617echo "${ECHO_T}$ac_header_preproc" >&6
11618
11619# So? What about this header?
11620case $ac_header_compiler:$ac_header_preproc in
11621 yes:no )
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11626 no:yes )
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11633esac
11634echo "$as_me:$LINENO: checking for $ac_header" >&5
11635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11636if eval "test \"\${$as_ac_Header+set}\" = set"; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638else
11639 eval "$as_ac_Header=$ac_header_preproc"
11640fi
11641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11643
11644fi
11645if test `eval echo '${'$as_ac_Header'}'` = yes; then
11646 cat >>confdefs.h <<_ACEOF
11647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11648_ACEOF
11649
11650fi
11651
11652done
11653
11654
11655
11656
11657
11658echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11659echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
11660if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662else
11663
11664if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
11665 ac_save_LIBS="$LIBS"
11666 for ac_lib in "" ndbm; do
11667 case "$ac_lib" in
11668 "") ;;
11669 yes) ac_lib="" ;;
11670 no) continue ;;
11671 -l*) ;;
11672 *) ac_lib="-l$ac_lib" ;;
11673 esac
11674 LIBS=" $ac_lib $ac_save_LIBS"
11675 cat >conftest.$ac_ext <<_ACEOF
11676#line $LINENO "configure"
11677#include "confdefs.h"
11678
11679 #include <stdio.h>
11680 #if defined(HAVE_NDBM_H)
11681 #include <ndbm.h>
11682 #elif defined(HAVE_DBM_H)
11683 #include <dbm.h>
11684 #endif
11685 DBM *dbm;
11686
11687#ifdef F77_DUMMY_MAIN
11688# ifdef __cplusplus
11689 extern "C"
11690# endif
11691 int F77_DUMMY_MAIN() { return 1; }
11692#endif
11693int
11694main ()
11695{
11696dbm_firstkey(NULL)
11697 ;
11698 return 0;
11699}
11700_ACEOF
11701rm -f conftest.$ac_objext conftest$ac_exeext
11702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -s conftest$ac_exeext'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
11714else
11715 echo "$as_me: failed program was:" >&5
11716cat conftest.$ac_ext >&5
11717fi
11718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11719 done
11720 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
11721 LIBS="$ac_save_LIBS"
11722fi
11723
11724fi
11725
11726
11727eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
11728
11729if false; then
11730
11731for ac_func in dbm_firstkey
11732do
11733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11734echo "$as_me:$LINENO: checking for $ac_func" >&5
11735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11736if eval "test \"\${$as_ac_var+set}\" = set"; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738else
11739 cat >conftest.$ac_ext <<_ACEOF
11740#line $LINENO "configure"
11741#include "confdefs.h"
11742/* System header to define __stub macros and hopefully few prototypes,
11743 which can conflict with char $ac_func (); below. */
11744#include <assert.h>
11745/* Override any gcc2 internal prototype to avoid an error. */
11746#ifdef __cplusplus
11747extern "C"
11748#endif
11749/* We use char because int might match the return type of a gcc2
11750 builtin and then its argument prototype would still apply. */
11751char $ac_func ();
11752char (*f) ();
11753
11754#ifdef F77_DUMMY_MAIN
11755# ifdef __cplusplus
11756 extern "C"
11757# endif
11758 int F77_DUMMY_MAIN() { return 1; }
11759#endif
11760int
11761main ()
11762{
11763/* The GNU C library defines this for functions which it implements
11764 to always fail with ENOSYS. Some functions are actually named
11765 something starting with __ and the normal name is an alias. */
11766#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11767choke me
11768#else
11769f = $ac_func;
11770#endif
11771
11772 ;
11773 return 0;
11774}
11775_ACEOF
11776rm -f conftest.$ac_objext conftest$ac_exeext
11777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11778 (eval $ac_link) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -s conftest$ac_exeext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 eval "$as_ac_var=yes"
11789else
11790 echo "$as_me: failed program was:" >&5
11791cat conftest.$ac_ext >&5
11792eval "$as_ac_var=no"
11793fi
11794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11795fi
11796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11798if test `eval echo '${'$as_ac_var'}'` = yes; then
11799 cat >>confdefs.h <<_ACEOF
11800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11801_ACEOF
11802
11803fi
11804done
11805
11806fi
11807# dbm_firstkey
11808eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11809eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11810eval "LIB_dbm_firstkey=$ac_res"
11811
11812case "$ac_res" in
11813 yes)
11814 eval "ac_cv_func_dbm_firstkey=yes"
11815 eval "LIB_dbm_firstkey="
11816 cat >>confdefs.h <<_ACEOF
11817#define $ac_tr_func 1
11818_ACEOF
11819
11820 echo "$as_me:$LINENO: result: yes" >&5
11821echo "${ECHO_T}yes" >&6
11822 ;;
11823 no)
11824 eval "ac_cv_func_dbm_firstkey=no"
11825 eval "LIB_dbm_firstkey="
11826 echo "$as_me:$LINENO: result: no" >&5
11827echo "${ECHO_T}no" >&6
11828 ;;
11829 *)
11830 eval "ac_cv_func_dbm_firstkey=yes"
11831 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11832 cat >>confdefs.h <<_ACEOF
11833#define $ac_tr_func 1
11834_ACEOF
11835
11836 cat >>confdefs.h <<_ACEOF
11837#define $ac_tr_lib 1
11838_ACEOF
11839
11840 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11841echo "${ECHO_T}yes, in $ac_res" >&6
11842 ;;
11843esac
11844
11845
11846
11847 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
11848 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
11849 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
11850 else
11851 LIB_NDBM=""
11852 fi
11853
11854cat >>confdefs.h <<\_ACEOF
11855#define HAVE_NDBM 1
11856_ACEOF
11857 have_ndbm=yes
11858 if test "$db_type" = "unknown"; then
11859 db_type=ndbm
11860 DBLIB="$LIB_NDBM"
11861 fi
11862 else
11863
11864 $as_unset ac_cv_func_dbm_firstkey
11865 $as_unset ac_cv_funclib_dbm_firstkey
11866
11867
11868for ac_header in \
11869 gdbm/ndbm.h \
11870
11871do
11872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11873if eval "test \"\${$as_ac_Header+set}\" = set"; then
11874 echo "$as_me:$LINENO: checking for $ac_header" >&5
11875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11876if eval "test \"\${$as_ac_Header+set}\" = set"; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11878fi
11879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11881else
11882 # Is the header compilable?
11883echo "$as_me:$LINENO: checking $ac_header usability" >&5
11884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11885cat >conftest.$ac_ext <<_ACEOF
11886#line $LINENO "configure"
11887#include "confdefs.h"
11888$ac_includes_default
11889#include <$ac_header>
11890_ACEOF
11891rm -f conftest.$ac_objext
11892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893 (eval $ac_compile) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -s conftest.$ac_objext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 ac_header_compiler=yes
11904else
11905 echo "$as_me: failed program was:" >&5
11906cat conftest.$ac_ext >&5
11907ac_header_compiler=no
11908fi
11909rm -f conftest.$ac_objext conftest.$ac_ext
11910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11911echo "${ECHO_T}$ac_header_compiler" >&6
11912
11913# Is the header present?
11914echo "$as_me:$LINENO: checking $ac_header presence" >&5
11915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11916cat >conftest.$ac_ext <<_ACEOF
11917#line $LINENO "configure"
11918#include "confdefs.h"
11919#include <$ac_header>
11920_ACEOF
11921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11923 ac_status=$?
11924 egrep -v '^ *\+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } >/dev/null; then
11929 if test -s conftest.err; then
11930 ac_cpp_err=$ac_c_preproc_warn_flag
11931 else
11932 ac_cpp_err=
11933 fi
11934else
11935 ac_cpp_err=yes
11936fi
11937if test -z "$ac_cpp_err"; then
11938 ac_header_preproc=yes
11939else
11940 echo "$as_me: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11942 ac_header_preproc=no
11943fi
11944rm -f conftest.err conftest.$ac_ext
11945echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11946echo "${ECHO_T}$ac_header_preproc" >&6
11947
11948# So? What about this header?
11949case $ac_header_compiler:$ac_header_preproc in
11950 yes:no )
11951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11955 no:yes )
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11962esac
11963echo "$as_me:$LINENO: checking for $ac_header" >&5
11964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11965if eval "test \"\${$as_ac_Header+set}\" = set"; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968 eval "$as_ac_Header=$ac_header_preproc"
11969fi
11970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11972
11973fi
11974if test `eval echo '${'$as_ac_Header'}'` = yes; then
11975 cat >>confdefs.h <<_ACEOF
11976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977_ACEOF
11978
11979fi
11980
11981done
11982
11983
11984
11985
11986
11987echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11988echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
11989if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991else
11992
11993if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
11994 ac_save_LIBS="$LIBS"
11995 for ac_lib in "" gdbm; do
11996 case "$ac_lib" in
11997 "") ;;
11998 yes) ac_lib="" ;;
11999 no) continue ;;
12000 -l*) ;;
12001 *) ac_lib="-l$ac_lib" ;;
12002 esac
12003 LIBS=" $ac_lib $ac_save_LIBS"
12004 cat >conftest.$ac_ext <<_ACEOF
12005#line $LINENO "configure"
12006#include "confdefs.h"
12007
12008 #include <stdio.h>
12009 #include <gdbm/ndbm.h>
12010 DBM *dbm;
12011
12012#ifdef F77_DUMMY_MAIN
12013# ifdef __cplusplus
12014 extern "C"
12015# endif
12016 int F77_DUMMY_MAIN() { return 1; }
12017#endif
12018int
12019main ()
12020{
12021dbm_firstkey(NULL)
12022 ;
12023 return 0;
12024}
12025_ACEOF
12026rm -f conftest.$ac_objext conftest$ac_exeext
12027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
12039else
12040 echo "$as_me: failed program was:" >&5
12041cat conftest.$ac_ext >&5
12042fi
12043rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12044 done
12045 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
12046 LIBS="$ac_save_LIBS"
12047fi
12048
12049fi
12050
12051
12052eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
12053
12054if false; then
12055
12056for ac_func in dbm_firstkey
12057do
12058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12059echo "$as_me:$LINENO: checking for $ac_func" >&5
12060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12061if eval "test \"\${$as_ac_var+set}\" = set"; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063else
12064 cat >conftest.$ac_ext <<_ACEOF
12065#line $LINENO "configure"
12066#include "confdefs.h"
12067/* System header to define __stub macros and hopefully few prototypes,
12068 which can conflict with char $ac_func (); below. */
12069#include <assert.h>
12070/* Override any gcc2 internal prototype to avoid an error. */
12071#ifdef __cplusplus
12072extern "C"
12073#endif
12074/* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12076char $ac_func ();
12077char (*f) ();
12078
12079#ifdef F77_DUMMY_MAIN
12080# ifdef __cplusplus
12081 extern "C"
12082# endif
12083 int F77_DUMMY_MAIN() { return 1; }
12084#endif
12085int
12086main ()
12087{
12088/* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12092choke me
12093#else
12094f = $ac_func;
12095#endif
12096
12097 ;
12098 return 0;
12099}
12100_ACEOF
12101rm -f conftest.$ac_objext conftest$ac_exeext
12102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -s conftest$ac_exeext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 eval "$as_ac_var=yes"
12114else
12115 echo "$as_me: failed program was:" >&5
12116cat conftest.$ac_ext >&5
12117eval "$as_ac_var=no"
12118fi
12119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12120fi
12121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12123if test `eval echo '${'$as_ac_var'}'` = yes; then
12124 cat >>confdefs.h <<_ACEOF
12125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12126_ACEOF
12127
12128fi
12129done
12130
12131fi
12132# dbm_firstkey
12133eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12134eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12135eval "LIB_dbm_firstkey=$ac_res"
12136
12137case "$ac_res" in
12138 yes)
12139 eval "ac_cv_func_dbm_firstkey=yes"
12140 eval "LIB_dbm_firstkey="
12141 cat >>confdefs.h <<_ACEOF
12142#define $ac_tr_func 1
12143_ACEOF
12144
12145 echo "$as_me:$LINENO: result: yes" >&5
12146echo "${ECHO_T}yes" >&6
12147 ;;
12148 no)
12149 eval "ac_cv_func_dbm_firstkey=no"
12150 eval "LIB_dbm_firstkey="
12151 echo "$as_me:$LINENO: result: no" >&5
12152echo "${ECHO_T}no" >&6
12153 ;;
12154 *)
12155 eval "ac_cv_func_dbm_firstkey=yes"
12156 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12157 cat >>confdefs.h <<_ACEOF
12158#define $ac_tr_func 1
12159_ACEOF
12160
12161 cat >>confdefs.h <<_ACEOF
12162#define $ac_tr_lib 1
12163_ACEOF
12164
12165 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
12166echo "${ECHO_T}yes, in $ac_res" >&6
12167 ;;
12168esac
12169
12170
12171
12172 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
12173 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
12174 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
12175 else
12176 LIB_NDBM=""
12177 fi
12178
12179cat >>confdefs.h <<\_ACEOF
12180#define HAVE_NDBM 1
12181_ACEOF
12182 have_ndbm=yes
12183 if test "$db_type" = "unknown"; then
12184 db_type=ndbm
12185 DBLIB="$LIB_NDBM"
12186 fi
12187 fi
12188 fi
12189
12190fi # unknown
12191
12192if test "$have_ndbm" = "yes"; then
12193 echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
12194echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
12195 if test "$cross_compiling" = yes; then
12196 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12197echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12198 { (exit 1); exit 1; }; }
12199else
12200 cat >conftest.$ac_ext <<_ACEOF
12201#line $LINENO "configure"
12202#include "confdefs.h"
12203
12204#include <unistd.h>
12205#include <fcntl.h>
12206#if defined(HAVE_GDBM_NDBM_H)
12207#include <gdbm/ndbm.h>
12208#elif defined(HAVE_NDBM_H)
12209#include <ndbm.h>
12210#elif defined(HAVE_DBM_H)
12211#include <dbm.h>
12212#endif
12213int main()
12214{
12215 DBM *d;
12216
12217 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
12218 if (d == NULL)
12219 return 1;
12220 dbm_close(d);
12221 return 0;
12222}
12223_ACEOF
12224rm -f conftest$ac_exeext
12225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235
12236 if test -f conftest.db; then
12237 echo "$as_me:$LINENO: result: yes" >&5
12238echo "${ECHO_T}yes" >&6
12239
12240cat >>confdefs.h <<\_ACEOF
12241#define HAVE_NEW_DB 1
12242_ACEOF
12243
12244 else
12245 echo "$as_me:$LINENO: result: no" >&5
12246echo "${ECHO_T}no" >&6
12247 fi
12248else
12249 echo "$as_me: program exited with status $ac_status" >&5
12250echo "$as_me: failed program was:" >&5
12251cat conftest.$ac_ext >&5
12252( exit $ac_status )
12253echo "$as_me:$LINENO: result: no" >&5
12254echo "${ECHO_T}no" >&6
12255fi
12256rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12257fi
12258fi
12259
12260
12261
12262if test "$db_type" = db1; then
12263 HAVE_DB1_TRUE=
12264 HAVE_DB1_FALSE='#'
12265else
12266 HAVE_DB1_TRUE='#'
12267 HAVE_DB1_FALSE=
12268fi
12269
12270
12271if test "$db_type" = db3; then
12272 HAVE_DB3_TRUE=
12273 HAVE_DB3_FALSE='#'
12274else
12275 HAVE_DB3_TRUE='#'
12276 HAVE_DB3_FALSE=
12277fi
12278
12279
12280if test "$db_type" = ndbm; then
12281 HAVE_NDBM_TRUE=
12282 HAVE_NDBM_FALSE='#'
12283else
12284 HAVE_NDBM_TRUE='#'
12285 HAVE_NDBM_FALSE=
12286fi
12287
12288z=""
12289for i in $LDFLAGS; do
12290 case "$i" in
12291 -L*) z="$z $i";;
12292 esac
12293done
12294DBLIB="$z $DBLIB"
12295
12296
12297
12298
12299
12300echo "$as_me:$LINENO: checking for inline" >&5
12301echo $ECHO_N "checking for inline... $ECHO_C" >&6
12302if test "${ac_cv_c_inline+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304else
12305 ac_cv_c_inline=no
12306for ac_kw in inline __inline__ __inline; do
12307 cat >conftest.$ac_ext <<_ACEOF
12308#line $LINENO "configure"
12309#include "confdefs.h"
12310#ifndef __cplusplus
12311static $ac_kw int static_foo () {return 0; }
12312$ac_kw int foo () {return 0; }
12313#endif
12314
12315_ACEOF
12316rm -f conftest.$ac_objext
12317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12318 (eval $ac_compile) 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -s conftest.$ac_objext'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
12328 ac_cv_c_inline=$ac_kw; break
12329else
12330 echo "$as_me: failed program was:" >&5
12331cat conftest.$ac_ext >&5
12332fi
12333rm -f conftest.$ac_objext conftest.$ac_ext
12334done
12335
12336fi
12337echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12338echo "${ECHO_T}$ac_cv_c_inline" >&6
12339case $ac_cv_c_inline in
12340 inline | yes) ;;
12341 no)
12342cat >>confdefs.h <<\_ACEOF
12343#define inline
12344_ACEOF
12345 ;;
12346 *) cat >>confdefs.h <<_ACEOF
12347#define inline $ac_cv_c_inline
12348_ACEOF
12349 ;;
12350esac
12351
12352echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12353echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12354if test "${ac_cv_c_const+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356else
12357 cat >conftest.$ac_ext <<_ACEOF
12358#line $LINENO "configure"
12359#include "confdefs.h"
12360
12361#ifdef F77_DUMMY_MAIN
12362# ifdef __cplusplus
12363 extern "C"
12364# endif
12365 int F77_DUMMY_MAIN() { return 1; }
12366#endif
12367int
12368main ()
12369{
12370/* FIXME: Include the comments suggested by Paul. */
12371#ifndef __cplusplus
12372 /* Ultrix mips cc rejects this. */
12373 typedef int charset[2];
12374 const charset x;
12375 /* SunOS 4.1.1 cc rejects this. */
12376 char const *const *ccp;
12377 char **p;
12378 /* NEC SVR4.0.2 mips cc rejects this. */
12379 struct point {int x, y;};
12380 static struct point const zero = {0,0};
12381 /* AIX XL C 1.02.0.0 rejects this.
12382 It does not let you subtract one const X* pointer from another in
12383 an arm of an if-expression whose if-part is not a constant
12384 expression */
12385 const char *g = "string";
12386 ccp = &g + (g ? g-g : 0);
12387 /* HPUX 7.0 cc rejects these. */
12388 ++ccp;
12389 p = (char**) ccp;
12390 ccp = (char const *const *) p;
12391 { /* SCO 3.2v4 cc rejects this. */
12392 char *t;
12393 char const *s = 0 ? (char *) 0 : (char const *) 0;
12394
12395 *t++ = 0;
12396 }
12397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12398 int x[] = {25, 17};
12399 const int *foo = &x[0];
12400 ++foo;
12401 }
12402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12403 typedef const int *iptr;
12404 iptr p = 0;
12405 ++p;
12406 }
12407 { /* AIX XL C 1.02.0.0 rejects this saying
12408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12409 struct s { int j; const int *ap[3]; };
12410 struct s *b; b->j = 5;
12411 }
12412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12413 const int foo = 10;
12414 }
12415#endif
12416
12417 ;
12418 return 0;
12419}
12420_ACEOF
12421rm -f conftest.$ac_objext
12422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 ac_cv_c_const=yes
12434else
12435 echo "$as_me: failed program was:" >&5
12436cat conftest.$ac_ext >&5
12437ac_cv_c_const=no
12438fi
12439rm -f conftest.$ac_objext conftest.$ac_ext
12440fi
12441echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12442echo "${ECHO_T}$ac_cv_c_const" >&6
12443if test $ac_cv_c_const = no; then
12444
12445cat >>confdefs.h <<\_ACEOF
12446#define const
12447_ACEOF
12448
12449fi
12450
12451echo "$as_me:$LINENO: checking for size_t" >&5
12452echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12453if test "${ac_cv_type_size_t+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455else
12456 cat >conftest.$ac_ext <<_ACEOF
12457#line $LINENO "configure"
12458#include "confdefs.h"
12459$ac_includes_default
12460#ifdef F77_DUMMY_MAIN
12461# ifdef __cplusplus
12462 extern "C"
12463# endif
12464 int F77_DUMMY_MAIN() { return 1; }
12465#endif
12466int
12467main ()
12468{
12469if ((size_t *) 0)
12470 return 0;
12471if (sizeof (size_t))
12472 return 0;
12473 ;
12474 return 0;
12475}
12476_ACEOF
12477rm -f conftest.$ac_objext
12478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -s conftest.$ac_objext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_type_size_t=yes
12490else
12491 echo "$as_me: failed program was:" >&5
12492cat conftest.$ac_ext >&5
12493ac_cv_type_size_t=no
12494fi
12495rm -f conftest.$ac_objext conftest.$ac_ext
12496fi
12497echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12498echo "${ECHO_T}$ac_cv_type_size_t" >&6
12499if test $ac_cv_type_size_t = yes; then
12500 :
12501else
12502
12503cat >>confdefs.h <<_ACEOF
12504#define size_t unsigned
12505_ACEOF
12506
12507fi
12508
12509echo "$as_me:$LINENO: checking for pid_t" >&5
12510echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12511if test "${ac_cv_type_pid_t+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513else
12514 cat >conftest.$ac_ext <<_ACEOF
12515#line $LINENO "configure"
12516#include "confdefs.h"
12517$ac_includes_default
12518#ifdef F77_DUMMY_MAIN
12519# ifdef __cplusplus
12520 extern "C"
12521# endif
12522 int F77_DUMMY_MAIN() { return 1; }
12523#endif
12524int
12525main ()
12526{
12527if ((pid_t *) 0)
12528 return 0;
12529if (sizeof (pid_t))
12530 return 0;
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_cv_type_pid_t=yes
12548else
12549 echo "$as_me: failed program was:" >&5
12550cat conftest.$ac_ext >&5
12551ac_cv_type_pid_t=no
12552fi
12553rm -f conftest.$ac_objext conftest.$ac_ext
12554fi
12555echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12556echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12557if test $ac_cv_type_pid_t = yes; then
12558 :
12559else
12560
12561cat >>confdefs.h <<_ACEOF
12562#define pid_t int
12563_ACEOF
12564
12565fi
12566
12567echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12568echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12569if test "${ac_cv_type_uid_t+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571else
12572 cat >conftest.$ac_ext <<_ACEOF
12573#line $LINENO "configure"
12574#include "confdefs.h"
12575#include <sys/types.h>
12576
12577_ACEOF
12578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12579 egrep "uid_t" >/dev/null 2>&1; then
12580 ac_cv_type_uid_t=yes
12581else
12582 ac_cv_type_uid_t=no
12583fi
12584rm -f conftest*
12585
12586fi
12587echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12588echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12589if test $ac_cv_type_uid_t = no; then
12590
12591cat >>confdefs.h <<\_ACEOF
12592#define uid_t int
12593_ACEOF
12594
12595
12596cat >>confdefs.h <<\_ACEOF
12597#define gid_t int
12598_ACEOF
12599
12600fi
12601
12602
12603echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12604echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12605if test "${ac_cv_type_signal+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607else
12608 cat >conftest.$ac_ext <<_ACEOF
12609#line $LINENO "configure"
12610#include "confdefs.h"
12611#include <sys/types.h>
12612#include <signal.h>
12613#ifdef signal
12614# undef signal
12615#endif
12616#ifdef __cplusplus
12617extern "C" void (*signal (int, void (*)(int)))(int);
12618#else
12619void (*signal ()) ();
12620#endif
12621
12622#ifdef F77_DUMMY_MAIN
12623# ifdef __cplusplus
12624 extern "C"
12625# endif
12626 int F77_DUMMY_MAIN() { return 1; }
12627#endif
12628int
12629main ()
12630{
12631int i;
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636rm -f conftest.$ac_objext
12637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638 (eval $ac_compile) 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -s conftest.$ac_objext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 ac_cv_type_signal=void
12649else
12650 echo "$as_me: failed program was:" >&5
12651cat conftest.$ac_ext >&5
12652ac_cv_type_signal=int
12653fi
12654rm -f conftest.$ac_objext conftest.$ac_ext
12655fi
12656echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12657echo "${ECHO_T}$ac_cv_type_signal" >&6
12658
12659cat >>confdefs.h <<_ACEOF
12660#define RETSIGTYPE $ac_cv_type_signal
12661_ACEOF
12662
12663
12664if test "$ac_cv_type_signal" = "void" ; then
12665
12666cat >>confdefs.h <<\_ACEOF
12667#define VOID_RETSIGTYPE 1
12668_ACEOF
12669
12670fi
12671
12672
12673
12674
12675echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12676echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12677if test "${ac_cv_header_time+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12679else
12680 cat >conftest.$ac_ext <<_ACEOF
12681#line $LINENO "configure"
12682#include "confdefs.h"
12683#include <sys/types.h>
12684#include <sys/time.h>
12685#include <time.h>
12686
12687#ifdef F77_DUMMY_MAIN
12688# ifdef __cplusplus
12689 extern "C"
12690# endif
12691 int F77_DUMMY_MAIN() { return 1; }
12692#endif
12693int
12694main ()
12695{
12696if ((struct tm *) 0)
12697return 0;
12698 ;
12699 return 0;
12700}
12701_ACEOF
12702rm -f conftest.$ac_objext
12703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704 (eval $ac_compile) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -s conftest.$ac_objext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_header_time=yes
12715else
12716 echo "$as_me: failed program was:" >&5
12717cat conftest.$ac_ext >&5
12718ac_cv_header_time=no
12719fi
12720rm -f conftest.$ac_objext conftest.$ac_ext
12721fi
12722echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12723echo "${ECHO_T}$ac_cv_header_time" >&6
12724if test $ac_cv_header_time = yes; then
12725
12726cat >>confdefs.h <<\_ACEOF
12727#define TIME_WITH_SYS_TIME 1
12728_ACEOF
12729
12730fi
12731
12732
12733
12734for ac_header in standards.h
12735do
12736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12737if eval "test \"\${$as_ac_Header+set}\" = set"; then
12738 echo "$as_me:$LINENO: checking for $ac_header" >&5
12739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12740if eval "test \"\${$as_ac_Header+set}\" = set"; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12742fi
12743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12745else
12746 # Is the header compilable?
12747echo "$as_me:$LINENO: checking $ac_header usability" >&5
12748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12749cat >conftest.$ac_ext <<_ACEOF
12750#line $LINENO "configure"
12751#include "confdefs.h"
12752$ac_includes_default
12753#include <$ac_header>
12754_ACEOF
12755rm -f conftest.$ac_objext
12756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_header_compiler=yes
12768else
12769 echo "$as_me: failed program was:" >&5
12770cat conftest.$ac_ext >&5
12771ac_header_compiler=no
12772fi
12773rm -f conftest.$ac_objext conftest.$ac_ext
12774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12775echo "${ECHO_T}$ac_header_compiler" >&6
12776
12777# Is the header present?
12778echo "$as_me:$LINENO: checking $ac_header presence" >&5
12779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12780cat >conftest.$ac_ext <<_ACEOF
12781#line $LINENO "configure"
12782#include "confdefs.h"
12783#include <$ac_header>
12784_ACEOF
12785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12787 ac_status=$?
12788 egrep -v '^ *\+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } >/dev/null; then
12793 if test -s conftest.err; then
12794 ac_cpp_err=$ac_c_preproc_warn_flag
12795 else
12796 ac_cpp_err=
12797 fi
12798else
12799 ac_cpp_err=yes
12800fi
12801if test -z "$ac_cpp_err"; then
12802 ac_header_preproc=yes
12803else
12804 echo "$as_me: failed program was:" >&5
12805 cat conftest.$ac_ext >&5
12806 ac_header_preproc=no
12807fi
12808rm -f conftest.err conftest.$ac_ext
12809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12810echo "${ECHO_T}$ac_header_preproc" >&6
12811
12812# So? What about this header?
12813case $ac_header_compiler:$ac_header_preproc in
12814 yes:no )
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12819 no:yes )
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12826esac
12827echo "$as_me:$LINENO: checking for $ac_header" >&5
12828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12829if eval "test \"\${$as_ac_Header+set}\" = set"; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12831else
12832 eval "$as_ac_Header=$ac_header_preproc"
12833fi
12834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12836
12837fi
12838if test `eval echo '${'$as_ac_Header'}'` = yes; then
12839 cat >>confdefs.h <<_ACEOF
12840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12841_ACEOF
12842
12843fi
12844
12845done
12846
12847for i in netinet/ip.h netinet/tcp.h; do
12848
12849cv=`echo "$i" | sed 'y%./+-%__p_%'`
12850
12851echo "$as_me:$LINENO: checking for $i" >&5
12852echo $ECHO_N "checking for $i... $ECHO_C" >&6
12853if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855else
12856 cat >conftest.$ac_ext <<_ACEOF
12857#line $LINENO "configure"
12858#include "confdefs.h"
12859\
12860#ifdef HAVE_STANDARDS_H
12861#include <standards.h>
12862#endif
12863#include <$i>
12864
12865_ACEOF
12866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12868 ac_status=$?
12869 egrep -v '^ *\+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } >/dev/null; then
12874 if test -s conftest.err; then
12875 ac_cpp_err=$ac_c_preproc_warn_flag
12876 else
12877 ac_cpp_err=
12878 fi
12879else
12880 ac_cpp_err=yes
12881fi
12882if test -z "$ac_cpp_err"; then
12883 eval "ac_cv_header_$cv=yes"
12884else
12885 echo "$as_me: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12887 eval "ac_cv_header_$cv=no"
12888fi
12889rm -f conftest.err conftest.$ac_ext
12890fi
12891echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
12892echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
12893ac_res=`eval echo \\$ac_cv_header_$cv`
12894if test "$ac_res" = yes; then
12895 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12896 cat >>confdefs.h <<_ACEOF
12897#define $ac_tr_hdr 1
12898_ACEOF
12899
12900fi
12901done
12902if false;then
12903
12904
12905for ac_header in netinet/ip.h netinet/tcp.h
12906do
12907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12908if eval "test \"\${$as_ac_Header+set}\" = set"; then
12909 echo "$as_me:$LINENO: checking for $ac_header" >&5
12910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12911if eval "test \"\${$as_ac_Header+set}\" = set"; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913fi
12914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12916else
12917 # Is the header compilable?
12918echo "$as_me:$LINENO: checking $ac_header usability" >&5
12919echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12920cat >conftest.$ac_ext <<_ACEOF
12921#line $LINENO "configure"
12922#include "confdefs.h"
12923$ac_includes_default
12924#include <$ac_header>
12925_ACEOF
12926rm -f conftest.$ac_objext
12927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928 (eval $ac_compile) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -s conftest.$ac_objext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 ac_header_compiler=yes
12939else
12940 echo "$as_me: failed program was:" >&5
12941cat conftest.$ac_ext >&5
12942ac_header_compiler=no
12943fi
12944rm -f conftest.$ac_objext conftest.$ac_ext
12945echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12946echo "${ECHO_T}$ac_header_compiler" >&6
12947
12948# Is the header present?
12949echo "$as_me:$LINENO: checking $ac_header presence" >&5
12950echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12951cat >conftest.$ac_ext <<_ACEOF
12952#line $LINENO "configure"
12953#include "confdefs.h"
12954#include <$ac_header>
12955_ACEOF
12956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12958 ac_status=$?
12959 egrep -v '^ *\+' conftest.er1 >conftest.err
12960 rm -f conftest.er1
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } >/dev/null; then
12964 if test -s conftest.err; then
12965 ac_cpp_err=$ac_c_preproc_warn_flag
12966 else
12967 ac_cpp_err=
12968 fi
12969else
12970 ac_cpp_err=yes
12971fi
12972if test -z "$ac_cpp_err"; then
12973 ac_header_preproc=yes
12974else
12975 echo "$as_me: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12977 ac_header_preproc=no
12978fi
12979rm -f conftest.err conftest.$ac_ext
12980echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12981echo "${ECHO_T}$ac_header_preproc" >&6
12982
12983# So? What about this header?
12984case $ac_header_compiler:$ac_header_preproc in
12985 yes:no )
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12990 no:yes )
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12997esac
12998echo "$as_me:$LINENO: checking for $ac_header" >&5
12999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13000if eval "test \"\${$as_ac_Header+set}\" = set"; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003 eval "$as_ac_Header=$ac_header_preproc"
13004fi
13005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13007
13008fi
13009if test `eval echo '${'$as_ac_Header'}'` = yes; then
13010 cat >>confdefs.h <<_ACEOF
13011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13012_ACEOF
13013
13014fi
13015
13016done
13017
13018fi
13019
13020
13021
13022
13023for ac_func in getlogin setlogin
13024do
13025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13026echo "$as_me:$LINENO: checking for $ac_func" >&5
13027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13028if eval "test \"\${$as_ac_var+set}\" = set"; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030else
13031 cat >conftest.$ac_ext <<_ACEOF
13032#line $LINENO "configure"
13033#include "confdefs.h"
13034/* System header to define __stub macros and hopefully few prototypes,
13035 which can conflict with char $ac_func (); below. */
13036#include <assert.h>
13037/* Override any gcc2 internal prototype to avoid an error. */
13038#ifdef __cplusplus
13039extern "C"
13040#endif
13041/* We use char because int might match the return type of a gcc2
13042 builtin and then its argument prototype would still apply. */
13043char $ac_func ();
13044char (*f) ();
13045
13046#ifdef F77_DUMMY_MAIN
13047# ifdef __cplusplus
13048 extern "C"
13049# endif
13050 int F77_DUMMY_MAIN() { return 1; }
13051#endif
13052int
13053main ()
13054{
13055/* The GNU C library defines this for functions which it implements
13056 to always fail with ENOSYS. Some functions are actually named
13057 something starting with __ and the normal name is an alias. */
13058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13059choke me
13060#else
13061f = $ac_func;
13062#endif
13063
13064 ;
13065 return 0;
13066}
13067_ACEOF
13068rm -f conftest.$ac_objext conftest$ac_exeext
13069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13070 (eval $ac_link) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -s conftest$ac_exeext'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 eval "$as_ac_var=yes"
13081else
13082 echo "$as_me: failed program was:" >&5
13083cat conftest.$ac_ext >&5
13084eval "$as_ac_var=no"
13085fi
13086rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13087fi
13088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13090if test `eval echo '${'$as_ac_var'}'` = yes; then
13091 cat >>confdefs.h <<_ACEOF
13092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13093_ACEOF
13094
13095fi
13096done
13097
13098if test "$ac_cv_func_getlogin" = yes; then
13099echo "$as_me:$LINENO: checking if getlogin is posix" >&5
13100echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
13101if test "${ac_cv_func_getlogin_posix+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103else
13104
13105if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
13106 ac_cv_func_getlogin_posix=no
13107else
13108 ac_cv_func_getlogin_posix=yes
13109fi
13110
13111fi
13112echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
13113echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
13114if test "$ac_cv_func_getlogin_posix" = yes; then
13115
13116cat >>confdefs.h <<\_ACEOF
13117#define POSIX_GETLOGIN 1
13118_ACEOF
13119
13120fi
13121fi
13122
13123
13124
13125for ac_header in stdlib.h unistd.h
13126do
13127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13128if eval "test \"\${$as_ac_Header+set}\" = set"; then
13129 echo "$as_me:$LINENO: checking for $ac_header" >&5
13130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13131if eval "test \"\${$as_ac_Header+set}\" = set"; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133fi
13134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13136else
13137 # Is the header compilable?
13138echo "$as_me:$LINENO: checking $ac_header usability" >&5
13139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13140cat >conftest.$ac_ext <<_ACEOF
13141#line $LINENO "configure"
13142#include "confdefs.h"
13143$ac_includes_default
13144#include <$ac_header>
13145_ACEOF
13146rm -f conftest.$ac_objext
13147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13148 (eval $ac_compile) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -s conftest.$ac_objext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 ac_header_compiler=yes
13159else
13160 echo "$as_me: failed program was:" >&5
13161cat conftest.$ac_ext >&5
13162ac_header_compiler=no
13163fi
13164rm -f conftest.$ac_objext conftest.$ac_ext
13165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13166echo "${ECHO_T}$ac_header_compiler" >&6
13167
13168# Is the header present?
13169echo "$as_me:$LINENO: checking $ac_header presence" >&5
13170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13171cat >conftest.$ac_ext <<_ACEOF
13172#line $LINENO "configure"
13173#include "confdefs.h"
13174#include <$ac_header>
13175_ACEOF
13176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13178 ac_status=$?
13179 egrep -v '^ *\+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } >/dev/null; then
13184 if test -s conftest.err; then
13185 ac_cpp_err=$ac_c_preproc_warn_flag
13186 else
13187 ac_cpp_err=
13188 fi
13189else
13190 ac_cpp_err=yes
13191fi
13192if test -z "$ac_cpp_err"; then
13193 ac_header_preproc=yes
13194else
13195 echo "$as_me: failed program was:" >&5
13196 cat conftest.$ac_ext >&5
13197 ac_header_preproc=no
13198fi
13199rm -f conftest.err conftest.$ac_ext
13200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13201echo "${ECHO_T}$ac_header_preproc" >&6
13202
13203# So? What about this header?
13204case $ac_header_compiler:$ac_header_preproc in
13205 yes:no )
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13210 no:yes )
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13217esac
13218echo "$as_me:$LINENO: checking for $ac_header" >&5
13219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13220if eval "test \"\${$as_ac_Header+set}\" = set"; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222else
13223 eval "$as_ac_Header=$ac_header_preproc"
13224fi
13225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13227
13228fi
13229if test `eval echo '${'$as_ac_Header'}'` = yes; then
13230 cat >>confdefs.h <<_ACEOF
13231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13232_ACEOF
13233
13234fi
13235
13236done
13237
13238
13239for ac_func in getpagesize
13240do
13241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13242echo "$as_me:$LINENO: checking for $ac_func" >&5
13243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13244if eval "test \"\${$as_ac_var+set}\" = set"; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246else
13247 cat >conftest.$ac_ext <<_ACEOF
13248#line $LINENO "configure"
13249#include "confdefs.h"
13250/* System header to define __stub macros and hopefully few prototypes,
13251 which can conflict with char $ac_func (); below. */
13252#include <assert.h>
13253/* Override any gcc2 internal prototype to avoid an error. */
13254#ifdef __cplusplus
13255extern "C"
13256#endif
13257/* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13259char $ac_func ();
13260char (*f) ();
13261
13262#ifdef F77_DUMMY_MAIN
13263# ifdef __cplusplus
13264 extern "C"
13265# endif
13266 int F77_DUMMY_MAIN() { return 1; }
13267#endif
13268int
13269main ()
13270{
13271/* The GNU C library defines this for functions which it implements
13272 to always fail with ENOSYS. Some functions are actually named
13273 something starting with __ and the normal name is an alias. */
13274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13275choke me
13276#else
13277f = $ac_func;
13278#endif
13279
13280 ;
13281 return 0;
13282}
13283_ACEOF
13284rm -f conftest.$ac_objext conftest$ac_exeext
13285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13286 (eval $ac_link) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -s conftest$ac_exeext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 eval "$as_ac_var=yes"
13297else
13298 echo "$as_me: failed program was:" >&5
13299cat conftest.$ac_ext >&5
13300eval "$as_ac_var=no"
13301fi
13302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13303fi
13304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13306if test `eval echo '${'$as_ac_var'}'` = yes; then
13307 cat >>confdefs.h <<_ACEOF
13308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13309_ACEOF
13310
13311fi
13312done
13313
13314echo "$as_me:$LINENO: checking for working mmap" >&5
13315echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13316if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318else
13319 if test "$cross_compiling" = yes; then
13320 ac_cv_func_mmap_fixed_mapped=no
13321else
13322 cat >conftest.$ac_ext <<_ACEOF
13323#line $LINENO "configure"
13324#include "confdefs.h"
13325$ac_includes_default
13326/* malloc might have been renamed as rpl_malloc. */
13327#undef malloc
13328
13329/* Thanks to Mike Haertel and Jim Avera for this test.
13330 Here is a matrix of mmap possibilities:
13331 mmap private not fixed
13332 mmap private fixed at somewhere currently unmapped
13333 mmap private fixed at somewhere already mapped
13334 mmap shared not fixed
13335 mmap shared fixed at somewhere currently unmapped
13336 mmap shared fixed at somewhere already mapped
13337 For private mappings, we should verify that changes cannot be read()
13338 back from the file, nor mmap's back from the file at a different
13339 address. (There have been systems where private was not correctly
13340 implemented like the infamous i386 svr4.0, and systems where the
13341 VM page cache was not coherent with the file system buffer cache
13342 like early versions of FreeBSD and possibly contemporary NetBSD.)
13343 For shared mappings, we should conversely verify that changes get
13344 propagated back to all the places they're supposed to be.
13345
13346 Grep wants private fixed already mapped.
13347 The main things grep needs to know about mmap are:
13348 * does it exist and is it safe to write into the mmap'd area
13349 * how to use it (BSD variants) */
13350
13351#include <fcntl.h>
13352#include <sys/mman.h>
13353
13354#if !STDC_HEADERS && !HAVE_STDLIB_H
13355char *malloc ();
13356#endif
13357
13358/* This mess was copied from the GNU getpagesize.h. */
13359#if !HAVE_GETPAGESIZE
13360/* Assume that all systems that can run configure have sys/param.h. */
13361# if !HAVE_SYS_PARAM_H
13362# define HAVE_SYS_PARAM_H 1
13363# endif
13364
13365# ifdef _SC_PAGESIZE
13366# define getpagesize() sysconf(_SC_PAGESIZE)
13367# else /* no _SC_PAGESIZE */
13368# if HAVE_SYS_PARAM_H
13369# include <sys/param.h>
13370# ifdef EXEC_PAGESIZE
13371# define getpagesize() EXEC_PAGESIZE
13372# else /* no EXEC_PAGESIZE */
13373# ifdef NBPG
13374# define getpagesize() NBPG * CLSIZE
13375# ifndef CLSIZE
13376# define CLSIZE 1
13377# endif /* no CLSIZE */
13378# else /* no NBPG */
13379# ifdef NBPC
13380# define getpagesize() NBPC
13381# else /* no NBPC */
13382# ifdef PAGESIZE
13383# define getpagesize() PAGESIZE
13384# endif /* PAGESIZE */
13385# endif /* no NBPC */
13386# endif /* no NBPG */
13387# endif /* no EXEC_PAGESIZE */
13388# else /* no HAVE_SYS_PARAM_H */
13389# define getpagesize() 8192 /* punt totally */
13390# endif /* no HAVE_SYS_PARAM_H */
13391# endif /* no _SC_PAGESIZE */
13392
13393#endif /* no HAVE_GETPAGESIZE */
13394
13395int
13396main ()
13397{
13398 char *data, *data2, *data3;
13399 int i, pagesize;
13400 int fd;
13401
13402 pagesize = getpagesize ();
13403
13404 /* First, make a file with some known garbage in it. */
13405 data = (char *) malloc (pagesize);
13406 if (!data)
13407 exit (1);
13408 for (i = 0; i < pagesize; ++i)
13409 *(data + i) = rand ();
13410 umask (0);
13411 fd = creat ("conftest.mmap", 0600);
13412 if (fd < 0)
13413 exit (1);
13414 if (write (fd, data, pagesize) != pagesize)
13415 exit (1);
13416 close (fd);
13417
13418 /* Next, try to mmap the file at a fixed address which already has
13419 something else allocated at it. If we can, also make sure that
13420 we see the same garbage. */
13421 fd = open ("conftest.mmap", O_RDWR);
13422 if (fd < 0)
13423 exit (1);
13424 data2 = (char *) malloc (2 * pagesize);
13425 if (!data2)
13426 exit (1);
13427 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13428 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13429 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13430 exit (1);
13431 for (i = 0; i < pagesize; ++i)
13432 if (*(data + i) != *(data2 + i))
13433 exit (1);
13434
13435 /* Finally, make sure that changes to the mapped area do not
13436 percolate back to the file as seen by read(). (This is a bug on
13437 some variants of i386 svr4.0.) */
13438 for (i = 0; i < pagesize; ++i)
13439 *(data2 + i) = *(data2 + i) + 1;
13440 data3 = (char *) malloc (pagesize);
13441 if (!data3)
13442 exit (1);
13443 if (read (fd, data3, pagesize) != pagesize)
13444 exit (1);
13445 for (i = 0; i < pagesize; ++i)
13446 if (*(data + i) != *(data3 + i))
13447 exit (1);
13448 close (fd);
13449 exit (0);
13450}
13451_ACEOF
13452rm -f conftest$ac_exeext
13453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454 (eval $ac_link) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_cv_func_mmap_fixed_mapped=yes
13464else
13465 echo "$as_me: program exited with status $ac_status" >&5
13466echo "$as_me: failed program was:" >&5
13467cat conftest.$ac_ext >&5
13468( exit $ac_status )
13469ac_cv_func_mmap_fixed_mapped=no
13470fi
13471rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13472fi
13473fi
13474echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13475echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13476if test $ac_cv_func_mmap_fixed_mapped = yes; then
13477
13478cat >>confdefs.h <<\_ACEOF
13479#define HAVE_MMAP 1
13480_ACEOF
13481
13482fi
13483rm -f conftest.mmap
13484
13485
13486echo "$as_me:$LINENO: checking if realloc if broken" >&5
13487echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
13488if test "${ac_cv_func_realloc_broken+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490else
13491
13492ac_cv_func_realloc_broken=no
13493if test "$cross_compiling" = yes; then
13494 :
13495else
13496 cat >conftest.$ac_ext <<_ACEOF
13497#line $LINENO "configure"
13498#include "confdefs.h"
13499
13500#include <stddef.h>
13501#include <stdlib.h>
13502
13503int main()
13504{
13505 return realloc(NULL, 17) == NULL;
13506}
13507
13508_ACEOF
13509rm -f conftest$ac_exeext
13510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511 (eval $ac_link) 2>&5
13512 ac_status=$?
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 :
13521else
13522 echo "$as_me: program exited with status $ac_status" >&5
13523echo "$as_me: failed program was:" >&5
13524cat conftest.$ac_ext >&5
13525( exit $ac_status )
13526ac_cv_func_realloc_broken=yes
13527fi
13528rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13529fi
13530
13531fi
13532echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
13533echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
13534if test "$ac_cv_func_realloc_broken" = yes ; then
13535
13536cat >>confdefs.h <<\_ACEOF
13537#define BROKEN_REALLOC 1
13538_ACEOF
13539
13540fi
13541
13542
13543
13544
13545
13546
13547
13548DIR_roken=roken
13549LIB_roken='$(top_builddir)/lib/roken/libroken.la'
13550INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565WFLAGS_NOUNUSED=""
13566WFLAGS_NOIMPLICITINT=""
13567if test -z "$WFLAGS" -a "$GCC" = "yes"; then
13568 # -Wno-implicit-int for broken X11 headers
13569 # leave these out for now:
13570 # -Wcast-align doesn't work well on alpha osf/1
13571 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
13572 # -Wmissing-declarations -Wnested-externs
13573 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
13574 WFLAGS_NOUNUSED="-Wno-unused"
13575 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
13576fi
13577
13578
13579
13580
13581
13582
13583
13584
13585cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
13586echo "$as_me:$LINENO: checking for ssize_t" >&5
13587echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13588if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590else
13591 cat >conftest.$ac_ext <<_ACEOF
13592#line $LINENO "configure"
13593#include "confdefs.h"
13594#include <sys/types.h>
13595#if STDC_HEADERS
13596#include <stdlib.h>
13597#include <stddef.h>
13598#endif
13599#include <unistd.h>
13600#ifdef F77_DUMMY_MAIN
13601# ifdef __cplusplus
13602 extern "C"
13603# endif
13604 int F77_DUMMY_MAIN() { return 1; }
13605#endif
13606int
13607main ()
13608{
13609ssize_t foo;
13610 ;
13611 return 0;
13612}
13613_ACEOF
13614rm -f conftest.$ac_objext
13615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13616 (eval $ac_compile) 2>&5
13617 ac_status=$?
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -s conftest.$ac_objext'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 eval "ac_cv_type_$cv=yes"
13627else
13628 echo "$as_me: failed program was:" >&5
13629cat conftest.$ac_ext >&5
13630eval "ac_cv_type_$cv=no"
13631fi
13632rm -f conftest.$ac_objext conftest.$ac_ext
13633fi
13634ac_foo=`eval echo \\$ac_cv_type_$cv`
13635echo "$as_me:$LINENO: result: $ac_foo" >&5
13636echo "${ECHO_T}$ac_foo" >&6
13637if test "$ac_foo" = yes; then
13638 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
13639if false; then
13640 echo "$as_me:$LINENO: checking for ssize_t" >&5
13641echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13642if test "${ac_cv_type_ssize_t+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644else
13645 cat >conftest.$ac_ext <<_ACEOF
13646#line $LINENO "configure"
13647#include "confdefs.h"
13648$ac_includes_default
13649#ifdef F77_DUMMY_MAIN
13650# ifdef __cplusplus
13651 extern "C"
13652# endif
13653 int F77_DUMMY_MAIN() { return 1; }
13654#endif
13655int
13656main ()
13657{
13658if ((ssize_t *) 0)
13659 return 0;
13660if (sizeof (ssize_t))
13661 return 0;
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666rm -f conftest.$ac_objext
13667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -s conftest.$ac_objext'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 ac_cv_type_ssize_t=yes
13679else
13680 echo "$as_me: failed program was:" >&5
13681cat conftest.$ac_ext >&5
13682ac_cv_type_ssize_t=no
13683fi
13684rm -f conftest.$ac_objext conftest.$ac_ext
13685fi
13686echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13687echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13688if test $ac_cv_type_ssize_t = yes; then
13689
13690cat >>confdefs.h <<_ACEOF
13691#define HAVE_SSIZE_T 1
13692_ACEOF
13693
13694
13695fi
13696
13697fi
13698
13699cat >>confdefs.h <<_ACEOF
13700#define $ac_tr_hdr 1
13701_ACEOF
13702
13703fi
13704
13705
13706
13707
13708
13709cv=`echo "long long" | sed 'y%./+- %__p__%'`
13710echo "$as_me:$LINENO: checking for long long" >&5
13711echo $ECHO_N "checking for long long... $ECHO_C" >&6
13712if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13714else
13715 cat >conftest.$ac_ext <<_ACEOF
13716#line $LINENO "configure"
13717#include "confdefs.h"
13718#include <sys/types.h>
13719#if STDC_HEADERS
13720#include <stdlib.h>
13721#include <stddef.h>
13722#endif
13723
13724#ifdef F77_DUMMY_MAIN
13725# ifdef __cplusplus
13726 extern "C"
13727# endif
13728 int F77_DUMMY_MAIN() { return 1; }
13729#endif
13730int
13731main ()
13732{
13733long long foo;
13734 ;
13735 return 0;
13736}
13737_ACEOF
13738rm -f conftest.$ac_objext
13739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -s conftest.$ac_objext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 eval "ac_cv_type_$cv=yes"
13751else
13752 echo "$as_me: failed program was:" >&5
13753cat conftest.$ac_ext >&5
13754eval "ac_cv_type_$cv=no"
13755fi
13756rm -f conftest.$ac_objext conftest.$ac_ext
13757fi
13758ac_foo=`eval echo \\$ac_cv_type_$cv`
13759echo "$as_me:$LINENO: result: $ac_foo" >&5
13760echo "${ECHO_T}$ac_foo" >&6
13761if test "$ac_foo" = yes; then
13762 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
13763if false; then
13764 echo "$as_me:$LINENO: checking for long long" >&5
13765echo $ECHO_N "checking for long long... $ECHO_C" >&6
13766if test "${ac_cv_type_long_long+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768else
13769 cat >conftest.$ac_ext <<_ACEOF
13770#line $LINENO "configure"
13771#include "confdefs.h"
13772$ac_includes_default
13773#ifdef F77_DUMMY_MAIN
13774# ifdef __cplusplus
13775 extern "C"
13776# endif
13777 int F77_DUMMY_MAIN() { return 1; }
13778#endif
13779int
13780main ()
13781{
13782if ((long long *) 0)
13783 return 0;
13784if (sizeof (long long))
13785 return 0;
13786 ;
13787 return 0;
13788}
13789_ACEOF
13790rm -f conftest.$ac_objext
13791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13792 (eval $ac_compile) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 ac_cv_type_long_long=yes
13803else
13804 echo "$as_me: failed program was:" >&5
13805cat conftest.$ac_ext >&5
13806ac_cv_type_long_long=no
13807fi
13808rm -f conftest.$ac_objext conftest.$ac_ext
13809fi
13810echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13811echo "${ECHO_T}$ac_cv_type_long_long" >&6
13812if test $ac_cv_type_long_long = yes; then
13813
13814cat >>confdefs.h <<_ACEOF
13815#define HAVE_LONG_LONG 1
13816_ACEOF
13817
13818
13819fi
13820
13821fi
13822
13823cat >>confdefs.h <<_ACEOF
13824#define $ac_tr_hdr 1
13825_ACEOF
13826
13827fi
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
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
13880for ac_header in \
13881 arpa/inet.h \
13882 arpa/nameser.h \
13883 config.h \
13884 crypt.h \
13885 dirent.h \
13886 errno.h \
13887 err.h \
13888 fcntl.h \
13889 grp.h \
13890 ifaddrs.h \
13891 net/if.h \
13892 netdb.h \
13893 netinet/in.h \
13894 netinet/in6.h \
13895 netinet/in_systm.h \
13896 netinet6/in6.h \
13897 netinet6/in6_var.h \
13898 paths.h \
13899 pwd.h \
13900 resolv.h \
13901 rpcsvc/ypclnt.h \
13902 shadow.h \
13903 sys/bswap.h \
13904 sys/ioctl.h \
13905 sys/mman.h \
13906 sys/param.h \
13907 sys/proc.h \
13908 sys/resource.h \
13909 sys/socket.h \
13910 sys/sockio.h \
13911 sys/stat.h \
13912 sys/sysctl.h \
13913 sys/time.h \
13914 sys/tty.h \
13915 sys/types.h \
13916 sys/uio.h \
13917 sys/utsname.h \
13918 sys/wait.h \
13919 syslog.h \
13920 termios.h \
13921 unistd.h \
13922 userconf.h \
13923 usersec.h \
13924 util.h \
13925 vis.h \
13926
13927do
13928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13929if eval "test \"\${$as_ac_Header+set}\" = set"; then
13930 echo "$as_me:$LINENO: checking for $ac_header" >&5
13931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13932if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934fi
13935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13937else
13938 # Is the header compilable?
13939echo "$as_me:$LINENO: checking $ac_header usability" >&5
13940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13941cat >conftest.$ac_ext <<_ACEOF
13942#line $LINENO "configure"
13943#include "confdefs.h"
13944$ac_includes_default
13945#include <$ac_header>
13946_ACEOF
13947rm -f conftest.$ac_objext
13948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949 (eval $ac_compile) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_header_compiler=yes
13960else
13961 echo "$as_me: failed program was:" >&5
13962cat conftest.$ac_ext >&5
13963ac_header_compiler=no
13964fi
13965rm -f conftest.$ac_objext conftest.$ac_ext
13966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13967echo "${ECHO_T}$ac_header_compiler" >&6
13968
13969# Is the header present?
13970echo "$as_me:$LINENO: checking $ac_header presence" >&5
13971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13972cat >conftest.$ac_ext <<_ACEOF
13973#line $LINENO "configure"
13974#include "confdefs.h"
13975#include <$ac_header>
13976_ACEOF
13977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13979 ac_status=$?
13980 egrep -v '^ *\+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } >/dev/null; then
13985 if test -s conftest.err; then
13986 ac_cpp_err=$ac_c_preproc_warn_flag
13987 else
13988 ac_cpp_err=
13989 fi
13990else
13991 ac_cpp_err=yes
13992fi
13993if test -z "$ac_cpp_err"; then
13994 ac_header_preproc=yes
13995else
13996 echo "$as_me: failed program was:" >&5
13997 cat conftest.$ac_ext >&5
13998 ac_header_preproc=no
13999fi
14000rm -f conftest.err conftest.$ac_ext
14001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14002echo "${ECHO_T}$ac_header_preproc" >&6
14003
14004# So? What about this header?
14005case $ac_header_compiler:$ac_header_preproc in
14006 yes:no )
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14008echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14011 no:yes )
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14015echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14018esac
14019echo "$as_me:$LINENO: checking for $ac_header" >&5
14020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14021if eval "test \"\${$as_ac_Header+set}\" = set"; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14023else
14024 eval "$as_ac_Header=$ac_header_preproc"
14025fi
14026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14028
14029fi
14030if test `eval echo '${'$as_ac_Header'}'` = yes; then
14031 cat >>confdefs.h <<_ACEOF
14032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14033_ACEOF
14034
14035fi
14036
14037done
14038
14039
14040
14041
14042
14043
14044if test "$ac_cv_header_err_h" = yes; then
14045 have_err_h_TRUE=
14046 have_err_h_FALSE='#'
14047else
14048 have_err_h_TRUE='#'
14049 have_err_h_FALSE=
14050fi
14051
14052
14053
14054if test "$ac_cv_header_fnmatch_h" = yes; then
14055 have_fnmatch_h_TRUE=
14056 have_fnmatch_h_FALSE='#'
14057else
14058 have_fnmatch_h_TRUE='#'
14059 have_fnmatch_h_FALSE=
14060fi
14061
14062
14063
14064if test "$ac_cv_header_ifaddrs_h" = yes; then
14065 have_ifaddrs_h_TRUE=
14066 have_ifaddrs_h_FALSE='#'
14067else
14068 have_ifaddrs_h_TRUE='#'
14069 have_ifaddrs_h_FALSE=
14070fi
14071
14072
14073
14074if test "$ac_cv_header_vis_h" = yes; then
14075 have_vis_h_TRUE=
14076 have_vis_h_FALSE='#'
14077else
14078 have_vis_h_TRUE='#'
14079 have_vis_h_FALSE=
14080fi
14081
14082
14083
14084
14085
14086
14087
14088echo "$as_me:$LINENO: checking for socket" >&5
14089echo $ECHO_N "checking for socket... $ECHO_C" >&6
14090if test "${ac_cv_funclib_socket+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092else
14093
14094if eval "test \"\$ac_cv_func_socket\" != yes" ; then
14095 ac_save_LIBS="$LIBS"
14096 for ac_lib in "" socket; do
14097 case "$ac_lib" in
14098 "") ;;
14099 yes) ac_lib="" ;;
14100 no) continue ;;
14101 -l*) ;;
14102 *) ac_lib="-l$ac_lib" ;;
14103 esac
14104 LIBS=" $ac_lib $ac_save_LIBS"
14105 cat >conftest.$ac_ext <<_ACEOF
14106#line $LINENO "configure"
14107#include "confdefs.h"
14108
14109#ifdef F77_DUMMY_MAIN
14110# ifdef __cplusplus
14111 extern "C"
14112# endif
14113 int F77_DUMMY_MAIN() { return 1; }
14114#endif
14115int
14116main ()
14117{
14118socket()
14119 ;
14120 return 0;
14121}
14122_ACEOF
14123rm -f conftest.$ac_objext conftest$ac_exeext
14124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14125 (eval $ac_link) 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -s conftest$ac_exeext'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }; then
14135 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
14136else
14137 echo "$as_me: failed program was:" >&5
14138cat conftest.$ac_ext >&5
14139fi
14140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14141 done
14142 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
14143 LIBS="$ac_save_LIBS"
14144fi
14145
14146fi
14147
14148
14149eval "ac_res=\$ac_cv_funclib_socket"
14150
14151if false; then
14152
14153for ac_func in socket
14154do
14155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14156echo "$as_me:$LINENO: checking for $ac_func" >&5
14157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14158if eval "test \"\${$as_ac_var+set}\" = set"; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160else
14161 cat >conftest.$ac_ext <<_ACEOF
14162#line $LINENO "configure"
14163#include "confdefs.h"
14164/* System header to define __stub macros and hopefully few prototypes,
14165 which can conflict with char $ac_func (); below. */
14166#include <assert.h>
14167/* Override any gcc2 internal prototype to avoid an error. */
14168#ifdef __cplusplus
14169extern "C"
14170#endif
14171/* We use char because int might match the return type of a gcc2
14172 builtin and then its argument prototype would still apply. */
14173char $ac_func ();
14174char (*f) ();
14175
14176#ifdef F77_DUMMY_MAIN
14177# ifdef __cplusplus
14178 extern "C"
14179# endif
14180 int F77_DUMMY_MAIN() { return 1; }
14181#endif
14182int
14183main ()
14184{
14185/* The GNU C library defines this for functions which it implements
14186 to always fail with ENOSYS. Some functions are actually named
14187 something starting with __ and the normal name is an alias. */
14188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14189choke me
14190#else
14191f = $ac_func;
14192#endif
14193
14194 ;
14195 return 0;
14196}
14197_ACEOF
14198rm -f conftest.$ac_objext conftest$ac_exeext
14199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14200 (eval $ac_link) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -s conftest$ac_exeext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 eval "$as_ac_var=yes"
14211else
14212 echo "$as_me: failed program was:" >&5
14213cat conftest.$ac_ext >&5
14214eval "$as_ac_var=no"
14215fi
14216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14217fi
14218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14220if test `eval echo '${'$as_ac_var'}'` = yes; then
14221 cat >>confdefs.h <<_ACEOF
14222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14223_ACEOF
14224
14225fi
14226done
14227
14228fi
14229# socket
14230eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14231eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14232eval "LIB_socket=$ac_res"
14233
14234case "$ac_res" in
14235 yes)
14236 eval "ac_cv_func_socket=yes"
14237 eval "LIB_socket="
14238 cat >>confdefs.h <<_ACEOF
14239#define $ac_tr_func 1
14240_ACEOF
14241
14242 echo "$as_me:$LINENO: result: yes" >&5
14243echo "${ECHO_T}yes" >&6
14244 ;;
14245 no)
14246 eval "ac_cv_func_socket=no"
14247 eval "LIB_socket="
14248 echo "$as_me:$LINENO: result: no" >&5
14249echo "${ECHO_T}no" >&6
14250 ;;
14251 *)
14252 eval "ac_cv_func_socket=yes"
14253 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14254 cat >>confdefs.h <<_ACEOF
14255#define $ac_tr_func 1
14256_ACEOF
14257
14258 cat >>confdefs.h <<_ACEOF
14259#define $ac_tr_lib 1
14260_ACEOF
14261
14262 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14263echo "${ECHO_T}yes, in $ac_res" >&6
14264 ;;
14265esac
14266
14267
14268if test -n "$LIB_socket"; then
14269 LIBS="$LIB_socket $LIBS"
14270fi
14271
14272
14273
14274
14275
14276echo "$as_me:$LINENO: checking for gethostbyname" >&5
14277echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
14278if test "${ac_cv_funclib_gethostbyname+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14280else
14281
14282if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
14283 ac_save_LIBS="$LIBS"
14284 for ac_lib in "" nsl; do
14285 case "$ac_lib" in
14286 "") ;;
14287 yes) ac_lib="" ;;
14288 no) continue ;;
14289 -l*) ;;
14290 *) ac_lib="-l$ac_lib" ;;
14291 esac
14292 LIBS=" $ac_lib $ac_save_LIBS"
14293 cat >conftest.$ac_ext <<_ACEOF
14294#line $LINENO "configure"
14295#include "confdefs.h"
14296
14297#ifdef F77_DUMMY_MAIN
14298# ifdef __cplusplus
14299 extern "C"
14300# endif
14301 int F77_DUMMY_MAIN() { return 1; }
14302#endif
14303int
14304main ()
14305{
14306gethostbyname()
14307 ;
14308 return 0;
14309}
14310_ACEOF
14311rm -f conftest.$ac_objext conftest$ac_exeext
14312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try='test -s conftest$ac_exeext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
14324else
14325 echo "$as_me: failed program was:" >&5
14326cat conftest.$ac_ext >&5
14327fi
14328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14329 done
14330 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
14331 LIBS="$ac_save_LIBS"
14332fi
14333
14334fi
14335
14336
14337eval "ac_res=\$ac_cv_funclib_gethostbyname"
14338
14339if false; then
14340
14341for ac_func in gethostbyname
14342do
14343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14344echo "$as_me:$LINENO: checking for $ac_func" >&5
14345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14346if eval "test \"\${$as_ac_var+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348else
14349 cat >conftest.$ac_ext <<_ACEOF
14350#line $LINENO "configure"
14351#include "confdefs.h"
14352/* System header to define __stub macros and hopefully few prototypes,
14353 which can conflict with char $ac_func (); below. */
14354#include <assert.h>
14355/* Override any gcc2 internal prototype to avoid an error. */
14356#ifdef __cplusplus
14357extern "C"
14358#endif
14359/* We use char because int might match the return type of a gcc2
14360 builtin and then its argument prototype would still apply. */
14361char $ac_func ();
14362char (*f) ();
14363
14364#ifdef F77_DUMMY_MAIN
14365# ifdef __cplusplus
14366 extern "C"
14367# endif
14368 int F77_DUMMY_MAIN() { return 1; }
14369#endif
14370int
14371main ()
14372{
14373/* The GNU C library defines this for functions which it implements
14374 to always fail with ENOSYS. Some functions are actually named
14375 something starting with __ and the normal name is an alias. */
14376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14377choke me
14378#else
14379f = $ac_func;
14380#endif
14381
14382 ;
14383 return 0;
14384}
14385_ACEOF
14386rm -f conftest.$ac_objext conftest$ac_exeext
14387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388 (eval $ac_link) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 eval "$as_ac_var=yes"
14399else
14400 echo "$as_me: failed program was:" >&5
14401cat conftest.$ac_ext >&5
14402eval "$as_ac_var=no"
14403fi
14404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14405fi
14406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14408if test `eval echo '${'$as_ac_var'}'` = yes; then
14409 cat >>confdefs.h <<_ACEOF
14410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14411_ACEOF
14412
14413fi
14414done
14415
14416fi
14417# gethostbyname
14418eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14419eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14420eval "LIB_gethostbyname=$ac_res"
14421
14422case "$ac_res" in
14423 yes)
14424 eval "ac_cv_func_gethostbyname=yes"
14425 eval "LIB_gethostbyname="
14426 cat >>confdefs.h <<_ACEOF
14427#define $ac_tr_func 1
14428_ACEOF
14429
14430 echo "$as_me:$LINENO: result: yes" >&5
14431echo "${ECHO_T}yes" >&6
14432 ;;
14433 no)
14434 eval "ac_cv_func_gethostbyname=no"
14435 eval "LIB_gethostbyname="
14436 echo "$as_me:$LINENO: result: no" >&5
14437echo "${ECHO_T}no" >&6
14438 ;;
14439 *)
14440 eval "ac_cv_func_gethostbyname=yes"
14441 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14442 cat >>confdefs.h <<_ACEOF
14443#define $ac_tr_func 1
14444_ACEOF
14445
14446 cat >>confdefs.h <<_ACEOF
14447#define $ac_tr_lib 1
14448_ACEOF
14449
14450 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14451echo "${ECHO_T}yes, in $ac_res" >&6
14452 ;;
14453esac
14454
14455
14456if test -n "$LIB_gethostbyname"; then
14457 LIBS="$LIB_gethostbyname $LIBS"
14458fi
14459
14460
14461
14462
14463
14464echo "$as_me:$LINENO: checking for syslog" >&5
14465echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14466if test "${ac_cv_funclib_syslog+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468else
14469
14470if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
14471 ac_save_LIBS="$LIBS"
14472 for ac_lib in "" syslog; do
14473 case "$ac_lib" in
14474 "") ;;
14475 yes) ac_lib="" ;;
14476 no) continue ;;
14477 -l*) ;;
14478 *) ac_lib="-l$ac_lib" ;;
14479 esac
14480 LIBS=" $ac_lib $ac_save_LIBS"
14481 cat >conftest.$ac_ext <<_ACEOF
14482#line $LINENO "configure"
14483#include "confdefs.h"
14484
14485#ifdef F77_DUMMY_MAIN
14486# ifdef __cplusplus
14487 extern "C"
14488# endif
14489 int F77_DUMMY_MAIN() { return 1; }
14490#endif
14491int
14492main ()
14493{
14494syslog()
14495 ;
14496 return 0;
14497}
14498_ACEOF
14499rm -f conftest.$ac_objext conftest$ac_exeext
14500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501 (eval $ac_link) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -s conftest$ac_exeext'
14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507 (eval $ac_try) 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
14512else
14513 echo "$as_me: failed program was:" >&5
14514cat conftest.$ac_ext >&5
14515fi
14516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14517 done
14518 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
14519 LIBS="$ac_save_LIBS"
14520fi
14521
14522fi
14523
14524
14525eval "ac_res=\$ac_cv_funclib_syslog"
14526
14527if false; then
14528
14529for ac_func in syslog
14530do
14531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14532echo "$as_me:$LINENO: checking for $ac_func" >&5
14533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14534if eval "test \"\${$as_ac_var+set}\" = set"; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536else
14537 cat >conftest.$ac_ext <<_ACEOF
14538#line $LINENO "configure"
14539#include "confdefs.h"
14540/* System header to define __stub macros and hopefully few prototypes,
14541 which can conflict with char $ac_func (); below. */
14542#include <assert.h>
14543/* Override any gcc2 internal prototype to avoid an error. */
14544#ifdef __cplusplus
14545extern "C"
14546#endif
14547/* We use char because int might match the return type of a gcc2
14548 builtin and then its argument prototype would still apply. */
14549char $ac_func ();
14550char (*f) ();
14551
14552#ifdef F77_DUMMY_MAIN
14553# ifdef __cplusplus
14554 extern "C"
14555# endif
14556 int F77_DUMMY_MAIN() { return 1; }
14557#endif
14558int
14559main ()
14560{
14561/* The GNU C library defines this for functions which it implements
14562 to always fail with ENOSYS. Some functions are actually named
14563 something starting with __ and the normal name is an alias. */
14564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14565choke me
14566#else
14567f = $ac_func;
14568#endif
14569
14570 ;
14571 return 0;
14572}
14573_ACEOF
14574rm -f conftest.$ac_objext conftest$ac_exeext
14575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14576 (eval $ac_link) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try='test -s conftest$ac_exeext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 eval "$as_ac_var=yes"
14587else
14588 echo "$as_me: failed program was:" >&5
14589cat conftest.$ac_ext >&5
14590eval "$as_ac_var=no"
14591fi
14592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14593fi
14594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14596if test `eval echo '${'$as_ac_var'}'` = yes; then
14597 cat >>confdefs.h <<_ACEOF
14598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14599_ACEOF
14600
14601fi
14602done
14603
14604fi
14605# syslog
14606eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14607eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14608eval "LIB_syslog=$ac_res"
14609
14610case "$ac_res" in
14611 yes)
14612 eval "ac_cv_func_syslog=yes"
14613 eval "LIB_syslog="
14614 cat >>confdefs.h <<_ACEOF
14615#define $ac_tr_func 1
14616_ACEOF
14617
14618 echo "$as_me:$LINENO: result: yes" >&5
14619echo "${ECHO_T}yes" >&6
14620 ;;
14621 no)
14622 eval "ac_cv_func_syslog=no"
14623 eval "LIB_syslog="
14624 echo "$as_me:$LINENO: result: no" >&5
14625echo "${ECHO_T}no" >&6
14626 ;;
14627 *)
14628 eval "ac_cv_func_syslog=yes"
14629 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14630 cat >>confdefs.h <<_ACEOF
14631#define $ac_tr_func 1
14632_ACEOF
14633
14634 cat >>confdefs.h <<_ACEOF
14635#define $ac_tr_lib 1
14636_ACEOF
14637
14638 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14639echo "${ECHO_T}yes, in $ac_res" >&6
14640 ;;
14641esac
14642
14643
14644if test -n "$LIB_syslog"; then
14645 LIBS="$LIB_syslog $LIBS"
14646fi
14647
14648
14649
14650
14651# Check whether --with-ipv6 or --without-ipv6 was given.
14652if test "${with_ipv6+set}" = set; then
14653 withval="$with_ipv6"
14654
14655if test "$withval" = "no"; then
14656 ac_cv_lib_ipv6=no
14657fi
14658fi;
14659save_CFLAGS="${CFLAGS}"
14660echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
14661echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
14662if test "${v6type+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664else
14665 v6type=unknown
14666v6lib=none
14667
14668for i in v6d toshiba kame inria zeta linux; do
14669 case $i in
14670 v6d)
14671 cat >conftest.$ac_ext <<_ACEOF
14672#line $LINENO "configure"
14673#include "confdefs.h"
14674
14675#include </usr/local/v6/include/sys/types.h>
14676#ifdef __V6D__
14677yes
14678#endif
14679_ACEOF
14680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14681 egrep "yes" >/dev/null 2>&1; then
14682 v6type=$i; v6lib=v6;
14683 v6libdir=/usr/local/v6/lib;
14684 CFLAGS="-I/usr/local/v6/include $CFLAGS"
14685fi
14686rm -f conftest*
14687
14688 ;;
14689 toshiba)
14690 cat >conftest.$ac_ext <<_ACEOF
14691#line $LINENO "configure"
14692#include "confdefs.h"
14693
14694#include <sys/param.h>
14695#ifdef _TOSHIBA_INET6
14696yes
14697#endif
14698_ACEOF
14699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14700 egrep "yes" >/dev/null 2>&1; then
14701 v6type=$i; v6lib=inet6;
14702 v6libdir=/usr/local/v6/lib;
14703 CFLAGS="-DINET6 $CFLAGS"
14704fi
14705rm -f conftest*
14706
14707 ;;
14708 kame)
14709 cat >conftest.$ac_ext <<_ACEOF
14710#line $LINENO "configure"
14711#include "confdefs.h"
14712
14713#include <netinet/in.h>
14714#ifdef __KAME__
14715yes
14716#endif
14717_ACEOF
14718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14719 egrep "yes" >/dev/null 2>&1; then
14720 v6type=$i; v6lib=inet6;
14721 v6libdir=/usr/local/v6/lib;
14722 CFLAGS="-DINET6 $CFLAGS"
14723fi
14724rm -f conftest*
14725
14726 ;;
14727 inria)
14728 cat >conftest.$ac_ext <<_ACEOF
14729#line $LINENO "configure"
14730#include "confdefs.h"
14731
14732#include <netinet/in.h>
14733#ifdef IPV6_INRIA_VERSION
14734yes
14735#endif
14736_ACEOF
14737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14738 egrep "yes" >/dev/null 2>&1; then
14739 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
14740fi
14741rm -f conftest*
14742
14743 ;;
14744 zeta)
14745 cat >conftest.$ac_ext <<_ACEOF
14746#line $LINENO "configure"
14747#include "confdefs.h"
14748
14749#include <sys/param.h>
14750#ifdef _ZETA_MINAMI_INET6
14751yes
14752#endif
14753_ACEOF
14754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14755 egrep "yes" >/dev/null 2>&1; then
14756 v6type=$i; v6lib=inet6;
14757 v6libdir=/usr/local/v6/lib;
14758 CFLAGS="-DINET6 $CFLAGS"
14759fi
14760rm -f conftest*
14761
14762 ;;
14763 linux)
14764 if test -d /usr/inet6; then
14765 v6type=$i
14766 v6lib=inet6
14767 v6libdir=/usr/inet6
14768 CFLAGS="-DINET6 $CFLAGS"
14769 fi
14770 ;;
14771 esac
14772 if test "$v6type" != "unknown"; then
14773 break
14774 fi
14775done
14776
14777if test "$v6lib" != "none"; then
14778 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
14779 if test -d $dir -a -f $dir/lib$v6lib.a; then
14780 LIBS="-L$dir -l$v6lib $LIBS"
14781 break
14782 fi
14783 done
14784fi
14785
14786fi
14787echo "$as_me:$LINENO: result: $v6type" >&5
14788echo "${ECHO_T}$v6type" >&6
14789
14790echo "$as_me:$LINENO: checking for IPv6" >&5
14791echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
14792if test "${ac_cv_lib_ipv6+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794else
14795
14796cat >conftest.$ac_ext <<_ACEOF
14797#line $LINENO "configure"
14798#include "confdefs.h"
14799
14800#ifdef HAVE_SYS_TYPES_H
14801#include <sys/types.h>
14802#endif
14803#ifdef HAVE_SYS_SOCKET_H
14804#include <sys/socket.h>
14805#endif
14806#ifdef HAVE_NETINET_IN_H
14807#include <netinet/in.h>
14808#endif
14809#ifdef HAVE_NETINET_IN6_H
14810#include <netinet/in6.h>
14811#endif
14812
14813#ifdef F77_DUMMY_MAIN
14814# ifdef __cplusplus
14815 extern "C"
14816# endif
14817 int F77_DUMMY_MAIN() { return 1; }
14818#endif
14819int
14820main ()
14821{
14822
14823 struct sockaddr_in6 sin6;
14824 int s;
14825
14826 s = socket(AF_INET6, SOCK_DGRAM, 0);
14827
14828 sin6.sin6_family = AF_INET6;
14829 sin6.sin6_port = htons(17);
14830 sin6.sin6_addr = in6addr_any;
14831 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
14832
14833 ;
14834 return 0;
14835}
14836_ACEOF
14837rm -f conftest.$ac_objext conftest$ac_exeext
14838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14839 (eval $ac_link) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -s conftest$ac_exeext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14846 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_cv_lib_ipv6=yes
14850else
14851 echo "$as_me: failed program was:" >&5
14852cat conftest.$ac_ext >&5
14853ac_cv_lib_ipv6=no
14854fi
14855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14856fi
14857echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
14858echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
14859if test "$ac_cv_lib_ipv6" = yes; then
14860
14861cat >>confdefs.h <<\_ACEOF
14862#define HAVE_IPV6 1
14863_ACEOF
14864
14865else
14866 CFLAGS="${save_CFLAGS}"
14867fi
14868
14869if test "$ac_cv_lib_ipv6" = yes; then
14870 echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
14871echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
14872if test "${ac_cv_var_in6addr_loopback+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874else
14875
14876 cat >conftest.$ac_ext <<_ACEOF
14877#line $LINENO "configure"
14878#include "confdefs.h"
14879
14880#ifdef HAVE_SYS_TYPES_H
14881#include <sys/types.h>
14882#endif
14883#ifdef HAVE_SYS_SOCKET_H
14884#include <sys/socket.h>
14885#endif
14886#ifdef HAVE_NETINET_IN_H
14887#include <netinet/in.h>
14888#endif
14889#ifdef HAVE_NETINET_IN6_H
14890#include <netinet/in6.h>
14891#endif
14892#ifdef F77_DUMMY_MAIN
14893# ifdef __cplusplus
14894 extern "C"
14895# endif
14896 int F77_DUMMY_MAIN() { return 1; }
14897#endif
14898int
14899main ()
14900{
14901
14902struct sockaddr_in6 sin6;
14903sin6.sin6_addr = in6addr_loopback;
14904
14905 ;
14906 return 0;
14907}
14908_ACEOF
14909rm -f conftest.$ac_objext conftest$ac_exeext
14910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911 (eval $ac_link) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -s conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_cv_var_in6addr_loopback=yes
14922else
14923 echo "$as_me: failed program was:" >&5
14924cat conftest.$ac_ext >&5
14925ac_cv_var_in6addr_loopback=no
14926fi
14927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14928fi
14929echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
14930echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
14931 if test "$ac_cv_var_in6addr_loopback" = yes; then
14932
14933cat >>confdefs.h <<\_ACEOF
14934#define HAVE_IN6ADDR_LOOPBACK 1
14935_ACEOF
14936
14937 fi
14938fi
14939
14940
14941
14942
14943
14944
14945echo "$as_me:$LINENO: checking for gethostbyname2" >&5
14946echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
14947if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14949else
14950
14951if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
14952 ac_save_LIBS="$LIBS"
14953 for ac_lib in "" inet6 ip6; do
14954 case "$ac_lib" in
14955 "") ;;
14956 yes) ac_lib="" ;;
14957 no) continue ;;
14958 -l*) ;;
14959 *) ac_lib="-l$ac_lib" ;;
14960 esac
14961 LIBS=" $ac_lib $ac_save_LIBS"
14962 cat >conftest.$ac_ext <<_ACEOF
14963#line $LINENO "configure"
14964#include "confdefs.h"
14965
14966#ifdef F77_DUMMY_MAIN
14967# ifdef __cplusplus
14968 extern "C"
14969# endif
14970 int F77_DUMMY_MAIN() { return 1; }
14971#endif
14972int
14973main ()
14974{
14975gethostbyname2()
14976 ;
14977 return 0;
14978}
14979_ACEOF
14980rm -f conftest.$ac_objext conftest$ac_exeext
14981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14982 (eval $ac_link) 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -s conftest$ac_exeext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
14993else
14994 echo "$as_me: failed program was:" >&5
14995cat conftest.$ac_ext >&5
14996fi
14997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14998 done
14999 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
15000 LIBS="$ac_save_LIBS"
15001fi
15002
15003fi
15004
15005
15006eval "ac_res=\$ac_cv_funclib_gethostbyname2"
15007
15008if false; then
15009
15010for ac_func in gethostbyname2
15011do
15012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15013echo "$as_me:$LINENO: checking for $ac_func" >&5
15014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15015if eval "test \"\${$as_ac_var+set}\" = set"; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017else
15018 cat >conftest.$ac_ext <<_ACEOF
15019#line $LINENO "configure"
15020#include "confdefs.h"
15021/* System header to define __stub macros and hopefully few prototypes,
15022 which can conflict with char $ac_func (); below. */
15023#include <assert.h>
15024/* Override any gcc2 internal prototype to avoid an error. */
15025#ifdef __cplusplus
15026extern "C"
15027#endif
15028/* We use char because int might match the return type of a gcc2
15029 builtin and then its argument prototype would still apply. */
15030char $ac_func ();
15031char (*f) ();
15032
15033#ifdef F77_DUMMY_MAIN
15034# ifdef __cplusplus
15035 extern "C"
15036# endif
15037 int F77_DUMMY_MAIN() { return 1; }
15038#endif
15039int
15040main ()
15041{
15042/* The GNU C library defines this for functions which it implements
15043 to always fail with ENOSYS. Some functions are actually named
15044 something starting with __ and the normal name is an alias. */
15045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15046choke me
15047#else
15048f = $ac_func;
15049#endif
15050
15051 ;
15052 return 0;
15053}
15054_ACEOF
15055rm -f conftest.$ac_objext conftest$ac_exeext
15056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057 (eval $ac_link) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -s conftest$ac_exeext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 eval "$as_ac_var=yes"
15068else
15069 echo "$as_me: failed program was:" >&5
15070cat conftest.$ac_ext >&5
15071eval "$as_ac_var=no"
15072fi
15073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15074fi
15075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15077if test `eval echo '${'$as_ac_var'}'` = yes; then
15078 cat >>confdefs.h <<_ACEOF
15079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15080_ACEOF
15081
15082fi
15083done
15084
15085fi
15086# gethostbyname2
15087eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15088eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15089eval "LIB_gethostbyname2=$ac_res"
15090
15091case "$ac_res" in
15092 yes)
15093 eval "ac_cv_func_gethostbyname2=yes"
15094 eval "LIB_gethostbyname2="
15095 cat >>confdefs.h <<_ACEOF
15096#define $ac_tr_func 1
15097_ACEOF
15098
15099 echo "$as_me:$LINENO: result: yes" >&5
15100echo "${ECHO_T}yes" >&6
15101 ;;
15102 no)
15103 eval "ac_cv_func_gethostbyname2=no"
15104 eval "LIB_gethostbyname2="
15105 echo "$as_me:$LINENO: result: no" >&5
15106echo "${ECHO_T}no" >&6
15107 ;;
15108 *)
15109 eval "ac_cv_func_gethostbyname2=yes"
15110 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15111 cat >>confdefs.h <<_ACEOF
15112#define $ac_tr_func 1
15113_ACEOF
15114
15115 cat >>confdefs.h <<_ACEOF
15116#define $ac_tr_lib 1
15117_ACEOF
15118
15119 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15120echo "${ECHO_T}yes, in $ac_res" >&6
15121 ;;
15122esac
15123
15124
15125if test -n "$LIB_gethostbyname2"; then
15126 LIBS="$LIB_gethostbyname2 $LIBS"
15127fi
15128
15129
15130
15131
15132
15133
15134echo "$as_me:$LINENO: checking for res_search" >&5
15135echo $ECHO_N "checking for res_search... $ECHO_C" >&6
15136if test "${ac_cv_funclib_res_search+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138else
15139
15140if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
15141 ac_save_LIBS="$LIBS"
15142 for ac_lib in "" resolv; do
15143 case "$ac_lib" in
15144 "") ;;
15145 yes) ac_lib="" ;;
15146 no) continue ;;
15147 -l*) ;;
15148 *) ac_lib="-l$ac_lib" ;;
15149 esac
15150 LIBS=" $ac_lib $ac_save_LIBS"
15151 cat >conftest.$ac_ext <<_ACEOF
15152#line $LINENO "configure"
15153#include "confdefs.h"
15154
15155#include <stdio.h>
15156#ifdef HAVE_SYS_TYPES_H
15157#include <sys/types.h>
15158#endif
15159#ifdef HAVE_NETINET_IN_H
15160#include <netinet/in.h>
15161#endif
15162#ifdef HAVE_ARPA_NAMESER_H
15163#include <arpa/nameser.h>
15164#endif
15165#ifdef HAVE_RESOLV_H
15166#include <resolv.h>
15167#endif
15168
15169#ifdef F77_DUMMY_MAIN
15170# ifdef __cplusplus
15171 extern "C"
15172# endif
15173 int F77_DUMMY_MAIN() { return 1; }
15174#endif
15175int
15176main ()
15177{
15178res_search(0,0,0,0,0)
15179 ;
15180 return 0;
15181}
15182_ACEOF
15183rm -f conftest.$ac_objext conftest$ac_exeext
15184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15185 (eval $ac_link) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
15189 { ac_try='test -s conftest$ac_exeext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
15196else
15197 echo "$as_me: failed program was:" >&5
15198cat conftest.$ac_ext >&5
15199fi
15200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15201 done
15202 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
15203 LIBS="$ac_save_LIBS"
15204fi
15205
15206fi
15207
15208
15209eval "ac_res=\$ac_cv_funclib_res_search"
15210
15211if false; then
15212
15213for ac_func in res_search
15214do
15215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15216echo "$as_me:$LINENO: checking for $ac_func" >&5
15217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15218if eval "test \"\${$as_ac_var+set}\" = set"; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220else
15221 cat >conftest.$ac_ext <<_ACEOF
15222#line $LINENO "configure"
15223#include "confdefs.h"
15224/* System header to define __stub macros and hopefully few prototypes,
15225 which can conflict with char $ac_func (); below. */
15226#include <assert.h>
15227/* Override any gcc2 internal prototype to avoid an error. */
15228#ifdef __cplusplus
15229extern "C"
15230#endif
15231/* We use char because int might match the return type of a gcc2
15232 builtin and then its argument prototype would still apply. */
15233char $ac_func ();
15234char (*f) ();
15235
15236#ifdef F77_DUMMY_MAIN
15237# ifdef __cplusplus
15238 extern "C"
15239# endif
15240 int F77_DUMMY_MAIN() { return 1; }
15241#endif
15242int
15243main ()
15244{
15245/* The GNU C library defines this for functions which it implements
15246 to always fail with ENOSYS. Some functions are actually named
15247 something starting with __ and the normal name is an alias. */
15248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15249choke me
15250#else
15251f = $ac_func;
15252#endif
15253
15254 ;
15255 return 0;
15256}
15257_ACEOF
15258rm -f conftest.$ac_objext conftest$ac_exeext
15259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15260 (eval $ac_link) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
15264 { ac_try='test -s conftest$ac_exeext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 eval "$as_ac_var=yes"
15271else
15272 echo "$as_me: failed program was:" >&5
15273cat conftest.$ac_ext >&5
15274eval "$as_ac_var=no"
15275fi
15276rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15277fi
15278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15279echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15280if test `eval echo '${'$as_ac_var'}'` = yes; then
15281 cat >>confdefs.h <<_ACEOF
15282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15283_ACEOF
15284
15285fi
15286done
15287
15288fi
15289# res_search
15290eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15291eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15292eval "LIB_res_search=$ac_res"
15293
15294case "$ac_res" in
15295 yes)
15296 eval "ac_cv_func_res_search=yes"
15297 eval "LIB_res_search="
15298 cat >>confdefs.h <<_ACEOF
15299#define $ac_tr_func 1
15300_ACEOF
15301
15302 echo "$as_me:$LINENO: result: yes" >&5
15303echo "${ECHO_T}yes" >&6
15304 ;;
15305 no)
15306 eval "ac_cv_func_res_search=no"
15307 eval "LIB_res_search="
15308 echo "$as_me:$LINENO: result: no" >&5
15309echo "${ECHO_T}no" >&6
15310 ;;
15311 *)
15312 eval "ac_cv_func_res_search=yes"
15313 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15314 cat >>confdefs.h <<_ACEOF
15315#define $ac_tr_func 1
15316_ACEOF
15317
15318 cat >>confdefs.h <<_ACEOF
15319#define $ac_tr_lib 1
15320_ACEOF
15321
15322 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15323echo "${ECHO_T}yes, in $ac_res" >&6
15324 ;;
15325esac
15326
15327
15328if test -n "$LIB_res_search"; then
15329 LIBS="$LIB_res_search $LIBS"
15330fi
15331
15332
15333
15334
15335
15336
15337echo "$as_me:$LINENO: checking for res_nsearch" >&5
15338echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
15339if test "${ac_cv_funclib_res_nsearch+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341else
15342
15343if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
15344 ac_save_LIBS="$LIBS"
15345 for ac_lib in "" resolv; do
15346 case "$ac_lib" in
15347 "") ;;
15348 yes) ac_lib="" ;;
15349 no) continue ;;
15350 -l*) ;;
15351 *) ac_lib="-l$ac_lib" ;;
15352 esac
15353 LIBS=" $ac_lib $ac_save_LIBS"
15354 cat >conftest.$ac_ext <<_ACEOF
15355#line $LINENO "configure"
15356#include "confdefs.h"
15357
15358#include <stdio.h>
15359#ifdef HAVE_SYS_TYPES_H
15360#include <sys/types.h>
15361#endif
15362#ifdef HAVE_NETINET_IN_H
15363#include <netinet/in.h>
15364#endif
15365#ifdef HAVE_ARPA_NAMESER_H
15366#include <arpa/nameser.h>
15367#endif
15368#ifdef HAVE_RESOLV_H
15369#include <resolv.h>
15370#endif
15371
15372#ifdef F77_DUMMY_MAIN
15373# ifdef __cplusplus
15374 extern "C"
15375# endif
15376 int F77_DUMMY_MAIN() { return 1; }
15377#endif
15378int
15379main ()
15380{
15381res_nsearch(0,0,0,0,0,0)
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext conftest$ac_exeext
15387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388 (eval $ac_link) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
15399else
15400 echo "$as_me: failed program was:" >&5
15401cat conftest.$ac_ext >&5
15402fi
15403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15404 done
15405 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
15406 LIBS="$ac_save_LIBS"
15407fi
15408
15409fi
15410
15411
15412eval "ac_res=\$ac_cv_funclib_res_nsearch"
15413
15414if false; then
15415
15416for ac_func in res_nsearch
15417do
15418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15419echo "$as_me:$LINENO: checking for $ac_func" >&5
15420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15421if eval "test \"\${$as_ac_var+set}\" = set"; then
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15423else
15424 cat >conftest.$ac_ext <<_ACEOF
15425#line $LINENO "configure"
15426#include "confdefs.h"
15427/* System header to define __stub macros and hopefully few prototypes,
15428 which can conflict with char $ac_func (); below. */
15429#include <assert.h>
15430/* Override any gcc2 internal prototype to avoid an error. */
15431#ifdef __cplusplus
15432extern "C"
15433#endif
15434/* We use char because int might match the return type of a gcc2
15435 builtin and then its argument prototype would still apply. */
15436char $ac_func ();
15437char (*f) ();
15438
15439#ifdef F77_DUMMY_MAIN
15440# ifdef __cplusplus
15441 extern "C"
15442# endif
15443 int F77_DUMMY_MAIN() { return 1; }
15444#endif
15445int
15446main ()
15447{
15448/* The GNU C library defines this for functions which it implements
15449 to always fail with ENOSYS. Some functions are actually named
15450 something starting with __ and the normal name is an alias. */
15451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15452choke me
15453#else
15454f = $ac_func;
15455#endif
15456
15457 ;
15458 return 0;
15459}
15460_ACEOF
15461rm -f conftest.$ac_objext conftest$ac_exeext
15462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15463 (eval $ac_link) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } &&
15467 { ac_try='test -s conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 eval "$as_ac_var=yes"
15474else
15475 echo "$as_me: failed program was:" >&5
15476cat conftest.$ac_ext >&5
15477eval "$as_ac_var=no"
15478fi
15479rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15480fi
15481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15482echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15483if test `eval echo '${'$as_ac_var'}'` = yes; then
15484 cat >>confdefs.h <<_ACEOF
15485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15486_ACEOF
15487
15488fi
15489done
15490
15491fi
15492# res_nsearch
15493eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15494eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15495eval "LIB_res_nsearch=$ac_res"
15496
15497case "$ac_res" in
15498 yes)
15499 eval "ac_cv_func_res_nsearch=yes"
15500 eval "LIB_res_nsearch="
15501 cat >>confdefs.h <<_ACEOF
15502#define $ac_tr_func 1
15503_ACEOF
15504
15505 echo "$as_me:$LINENO: result: yes" >&5
15506echo "${ECHO_T}yes" >&6
15507 ;;
15508 no)
15509 eval "ac_cv_func_res_nsearch=no"
15510 eval "LIB_res_nsearch="
15511 echo "$as_me:$LINENO: result: no" >&5
15512echo "${ECHO_T}no" >&6
15513 ;;
15514 *)
15515 eval "ac_cv_func_res_nsearch=yes"
15516 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15517 cat >>confdefs.h <<_ACEOF
15518#define $ac_tr_func 1
15519_ACEOF
15520
15521 cat >>confdefs.h <<_ACEOF
15522#define $ac_tr_lib 1
15523_ACEOF
15524
15525 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15526echo "${ECHO_T}yes, in $ac_res" >&6
15527 ;;
15528esac
15529
15530
15531if test -n "$LIB_res_nsearch"; then
15532 LIBS="$LIB_res_nsearch $LIBS"
15533fi
15534
15535
15536
15537
15538
15539
15540echo "$as_me:$LINENO: checking for dn_expand" >&5
15541echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
15542if test "${ac_cv_funclib_dn_expand+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544else
15545
15546if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
15547 ac_save_LIBS="$LIBS"
15548 for ac_lib in "" resolv; do
15549 case "$ac_lib" in
15550 "") ;;
15551 yes) ac_lib="" ;;
15552 no) continue ;;
15553 -l*) ;;
15554 *) ac_lib="-l$ac_lib" ;;
15555 esac
15556 LIBS=" $ac_lib $ac_save_LIBS"
15557 cat >conftest.$ac_ext <<_ACEOF
15558#line $LINENO "configure"
15559#include "confdefs.h"
15560
15561#include <stdio.h>
15562#ifdef HAVE_SYS_TYPES_H
15563#include <sys/types.h>
15564#endif
15565#ifdef HAVE_NETINET_IN_H
15566#include <netinet/in.h>
15567#endif
15568#ifdef HAVE_ARPA_NAMESER_H
15569#include <arpa/nameser.h>
15570#endif
15571#ifdef HAVE_RESOLV_H
15572#include <resolv.h>
15573#endif
15574
15575#ifdef F77_DUMMY_MAIN
15576# ifdef __cplusplus
15577 extern "C"
15578# endif
15579 int F77_DUMMY_MAIN() { return 1; }
15580#endif
15581int
15582main ()
15583{
15584dn_expand(0,0,0,0,0)
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589rm -f conftest.$ac_objext conftest$ac_exeext
15590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591 (eval $ac_link) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -s conftest$ac_exeext'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
15602else
15603 echo "$as_me: failed program was:" >&5
15604cat conftest.$ac_ext >&5
15605fi
15606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15607 done
15608 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
15609 LIBS="$ac_save_LIBS"
15610fi
15611
15612fi
15613
15614
15615eval "ac_res=\$ac_cv_funclib_dn_expand"
15616
15617if false; then
15618
15619for ac_func in dn_expand
15620do
15621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15622echo "$as_me:$LINENO: checking for $ac_func" >&5
15623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15624if eval "test \"\${$as_ac_var+set}\" = set"; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626else
15627 cat >conftest.$ac_ext <<_ACEOF
15628#line $LINENO "configure"
15629#include "confdefs.h"
15630/* System header to define __stub macros and hopefully few prototypes,
15631 which can conflict with char $ac_func (); below. */
15632#include <assert.h>
15633/* Override any gcc2 internal prototype to avoid an error. */
15634#ifdef __cplusplus
15635extern "C"
15636#endif
15637/* We use char because int might match the return type of a gcc2
15638 builtin and then its argument prototype would still apply. */
15639char $ac_func ();
15640char (*f) ();
15641
15642#ifdef F77_DUMMY_MAIN
15643# ifdef __cplusplus
15644 extern "C"
15645# endif
15646 int F77_DUMMY_MAIN() { return 1; }
15647#endif
15648int
15649main ()
15650{
15651/* The GNU C library defines this for functions which it implements
15652 to always fail with ENOSYS. Some functions are actually named
15653 something starting with __ and the normal name is an alias. */
15654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15655choke me
15656#else
15657f = $ac_func;
15658#endif
15659
15660 ;
15661 return 0;
15662}
15663_ACEOF
15664rm -f conftest.$ac_objext conftest$ac_exeext
15665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666 (eval $ac_link) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -s conftest$ac_exeext'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 eval "$as_ac_var=yes"
15677else
15678 echo "$as_me: failed program was:" >&5
15679cat conftest.$ac_ext >&5
15680eval "$as_ac_var=no"
15681fi
15682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15683fi
15684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15686if test `eval echo '${'$as_ac_var'}'` = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15689_ACEOF
15690
15691fi
15692done
15693
15694fi
15695# dn_expand
15696eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15697eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15698eval "LIB_dn_expand=$ac_res"
15699
15700case "$ac_res" in
15701 yes)
15702 eval "ac_cv_func_dn_expand=yes"
15703 eval "LIB_dn_expand="
15704 cat >>confdefs.h <<_ACEOF
15705#define $ac_tr_func 1
15706_ACEOF
15707
15708 echo "$as_me:$LINENO: result: yes" >&5
15709echo "${ECHO_T}yes" >&6
15710 ;;
15711 no)
15712 eval "ac_cv_func_dn_expand=no"
15713 eval "LIB_dn_expand="
15714 echo "$as_me:$LINENO: result: no" >&5
15715echo "${ECHO_T}no" >&6
15716 ;;
15717 *)
15718 eval "ac_cv_func_dn_expand=yes"
15719 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15720 cat >>confdefs.h <<_ACEOF
15721#define $ac_tr_func 1
15722_ACEOF
15723
15724 cat >>confdefs.h <<_ACEOF
15725#define $ac_tr_lib 1
15726_ACEOF
15727
15728 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15729echo "${ECHO_T}yes, in $ac_res" >&6
15730 ;;
15731esac
15732
15733
15734if test -n "$LIB_dn_expand"; then
15735 LIBS="$LIB_dn_expand $LIBS"
15736fi
15737
15738
15739
15740echo "$as_me:$LINENO: checking for _res" >&5
15741echo $ECHO_N "checking for _res... $ECHO_C" >&6
15742if test "${ac_cv_var__res+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744else
15745
15746
15747 cat >conftest.$ac_ext <<_ACEOF
15748#line $LINENO "configure"
15749#include "confdefs.h"
15750#include <stdio.h>
15751#ifdef HAVE_SYS_TYPES_H
15752#include <sys/types.h>
15753#endif
15754#ifdef HAVE_NETINET_IN_H
15755#include <netinet/in.h>
15756#endif
15757#ifdef HAVE_ARPA_NAMESER_H
15758#include <arpa/nameser.h>
15759#endif
15760#ifdef HAVE_RESOLV_H
15761#include <resolv.h>
15762#endif
15763 void * foo() { return &_res; }
15764#ifdef F77_DUMMY_MAIN
15765# ifdef __cplusplus
15766 extern "C"
15767# endif
15768 int F77_DUMMY_MAIN() { return 1; }
15769#endif
15770int
15771main ()
15772{
15773foo()
15774 ;
15775 return 0;
15776}
15777_ACEOF
15778rm -f conftest.$ac_objext conftest$ac_exeext
15779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15780 (eval $ac_link) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
15784 { ac_try='test -s conftest$ac_exeext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_cv_var__res=yes
15791else
15792 echo "$as_me: failed program was:" >&5
15793cat conftest.$ac_ext >&5
15794ac_cv_var__res=no
15795fi
15796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15797if test "$ac_cv_var__res" != yes ; then
15798cat >conftest.$ac_ext <<_ACEOF
15799#line $LINENO "configure"
15800#include "confdefs.h"
15801extern int _res;
15802int foo() { return _res; }
15803#ifdef F77_DUMMY_MAIN
15804# ifdef __cplusplus
15805 extern "C"
15806# endif
15807 int F77_DUMMY_MAIN() { return 1; }
15808#endif
15809int
15810main ()
15811{
15812foo()
15813 ;
15814 return 0;
15815}
15816_ACEOF
15817rm -f conftest.$ac_objext conftest$ac_exeext
15818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15819 (eval $ac_link) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -s conftest$ac_exeext'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_cv_var__res=yes
15830else
15831 echo "$as_me: failed program was:" >&5
15832cat conftest.$ac_ext >&5
15833ac_cv_var__res=no
15834fi
15835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15836fi
15837
15838fi
15839
15840ac_foo=`eval echo \\$ac_cv_var__res`
15841echo "$as_me:$LINENO: result: $ac_foo" >&5
15842echo "${ECHO_T}$ac_foo" >&6
15843if test "$ac_foo" = yes; then
15844
15845cat >>confdefs.h <<_ACEOF
15846#define HAVE__RES 1
15847_ACEOF
15848
15849
15850echo "$as_me:$LINENO: checking if _res is properly declared" >&5
15851echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
15852if test "${ac_cv_var__res_declaration+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15854else
15855
15856cat >conftest.$ac_ext <<_ACEOF
15857#line $LINENO "configure"
15858#include "confdefs.h"
15859#include <stdio.h>
15860#ifdef HAVE_SYS_TYPES_H
15861#include <sys/types.h>
15862#endif
15863#ifdef HAVE_NETINET_IN_H
15864#include <netinet/in.h>
15865#endif
15866#ifdef HAVE_ARPA_NAMESER_H
15867#include <arpa/nameser.h>
15868#endif
15869#ifdef HAVE_RESOLV_H
15870#include <resolv.h>
15871#endif
15872extern struct { int foo; } _res;
15873#ifdef F77_DUMMY_MAIN
15874# ifdef __cplusplus
15875 extern "C"
15876# endif
15877 int F77_DUMMY_MAIN() { return 1; }
15878#endif
15879int
15880main ()
15881{
15882_res.foo = 1;
15883 ;
15884 return 0;
15885}
15886_ACEOF
15887rm -f conftest.$ac_objext
15888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 eval "ac_cv_var__res_declaration=no"
15900else
15901 echo "$as_me: failed program was:" >&5
15902cat conftest.$ac_ext >&5
15903eval "ac_cv_var__res_declaration=yes"
15904fi
15905rm -f conftest.$ac_objext conftest.$ac_ext
15906
15907fi
15908
15909
15910
15911
15912echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
15913echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
15914if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
15915
15916cat >>confdefs.h <<\_ACEOF
15917#define HAVE__RES_DECLARATION 1
15918_ACEOF
15919
15920fi
15921
15922
15923fi
15924
15925
15926
15927
15928echo "$as_me:$LINENO: checking for working snprintf" >&5
15929echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
15930if test "${ac_cv_func_snprintf_working+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15932else
15933 ac_cv_func_snprintf_working=yes
15934if test "$cross_compiling" = yes; then
15935 :
15936else
15937 cat >conftest.$ac_ext <<_ACEOF
15938#line $LINENO "configure"
15939#include "confdefs.h"
15940
15941#include <stdio.h>
15942#include <string.h>
15943int main()
15944{
15945 char foo[3];
15946 snprintf(foo, 2, "12");
15947 return strcmp(foo, "1");
15948}
15949_ACEOF
15950rm -f conftest$ac_exeext
15951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15952 (eval $ac_link) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 :
15962else
15963 echo "$as_me: program exited with status $ac_status" >&5
15964echo "$as_me: failed program was:" >&5
15965cat conftest.$ac_ext >&5
15966( exit $ac_status )
15967ac_cv_func_snprintf_working=no
15968fi
15969rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15970fi
15971fi
15972echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
15973echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
15974
15975if test "$ac_cv_func_snprintf_working" = yes; then
15976
15977cat >>confdefs.h <<_ACEOF
15978#define HAVE_SNPRINTF 1
15979_ACEOF
15980
15981fi
15982if test "$ac_cv_func_snprintf_working" = yes; then
15983
15984if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
15985echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
15986echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
15987if test "${ac_cv_func_snprintf_noproto+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989else
15990 cat >conftest.$ac_ext <<_ACEOF
15991#line $LINENO "configure"
15992#include "confdefs.h"
15993#include <stdio.h>
15994#ifdef F77_DUMMY_MAIN
15995# ifdef __cplusplus
15996 extern "C"
15997# endif
15998 int F77_DUMMY_MAIN() { return 1; }
15999#endif
16000int
16001main ()
16002{
16003struct foo { int foo; } xx;
16004extern int snprintf (struct foo*);
16005snprintf(&xx);
16006
16007 ;
16008 return 0;
16009}
16010_ACEOF
16011rm -f conftest.$ac_objext
16012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013 (eval $ac_compile) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -s conftest.$ac_objext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 eval "ac_cv_func_snprintf_noproto=yes"
16024else
16025 echo "$as_me: failed program was:" >&5
16026cat conftest.$ac_ext >&5
16027eval "ac_cv_func_snprintf_noproto=no"
16028fi
16029rm -f conftest.$ac_objext conftest.$ac_ext
16030fi
16031echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
16032echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
16033if test "$ac_cv_func_snprintf_noproto" = yes; then
16034
16035cat >>confdefs.h <<\_ACEOF
16036#define NEED_SNPRINTF_PROTO 1
16037_ACEOF
16038
16039fi
16040fi
16041
16042fi
16043
16044
16045echo "$as_me:$LINENO: checking for working vsnprintf" >&5
16046echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
16047if test "${ac_cv_func_vsnprintf_working+set}" = set; then
16048 echo $ECHO_N "(cached) $ECHO_C" >&6
16049else
16050 ac_cv_func_vsnprintf_working=yes
16051if test "$cross_compiling" = yes; then
16052 :
16053else
16054 cat >conftest.$ac_ext <<_ACEOF
16055#line $LINENO "configure"
16056#include "confdefs.h"
16057
16058#include <stdio.h>
16059#include <string.h>
16060#include <stdarg.h>
16061
16062int foo(int num, ...)
16063{
16064 char bar[3];
16065 va_list arg;
16066 va_start(arg, num);
16067 vsnprintf(bar, 2, "%s", arg);
16068 va_end(arg);
16069 return strcmp(bar, "1");
16070}
16071
16072
16073int main()
16074{
16075 return foo(0, "12");
16076}
16077_ACEOF
16078rm -f conftest$ac_exeext
16079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16080 (eval $ac_link) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 :
16090else
16091 echo "$as_me: program exited with status $ac_status" >&5
16092echo "$as_me: failed program was:" >&5
16093cat conftest.$ac_ext >&5
16094( exit $ac_status )
16095ac_cv_func_vsnprintf_working=no
16096fi
16097rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16098fi
16099fi
16100echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
16101echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
16102
16103if test "$ac_cv_func_vsnprintf_working" = yes; then
16104
16105cat >>confdefs.h <<_ACEOF
16106#define HAVE_VSNPRINTF 1
16107_ACEOF
16108
16109fi
16110if test "$ac_cv_func_vsnprintf_working" = yes; then
16111
16112if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
16113echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
16114echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
16115if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117else
16118 cat >conftest.$ac_ext <<_ACEOF
16119#line $LINENO "configure"
16120#include "confdefs.h"
16121#include <stdio.h>
16122#ifdef F77_DUMMY_MAIN
16123# ifdef __cplusplus
16124 extern "C"
16125# endif
16126 int F77_DUMMY_MAIN() { return 1; }
16127#endif
16128int
16129main ()
16130{
16131struct foo { int foo; } xx;
16132extern int vsnprintf (struct foo*);
16133vsnprintf(&xx);
16134
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139rm -f conftest.$ac_objext
16140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16141 (eval $ac_compile) 2>&5
16142 ac_status=$?
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -s conftest.$ac_objext'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 eval "ac_cv_func_vsnprintf_noproto=yes"
16152else
16153 echo "$as_me: failed program was:" >&5
16154cat conftest.$ac_ext >&5
16155eval "ac_cv_func_vsnprintf_noproto=no"
16156fi
16157rm -f conftest.$ac_objext conftest.$ac_ext
16158fi
16159echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
16160echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
16161if test "$ac_cv_func_vsnprintf_noproto" = yes; then
16162
16163cat >>confdefs.h <<\_ACEOF
16164#define NEED_VSNPRINTF_PROTO 1
16165_ACEOF
16166
16167fi
16168fi
16169
16170fi
16171
16172
16173
16174echo "$as_me:$LINENO: checking for working glob" >&5
16175echo $ECHO_N "checking for working glob... $ECHO_C" >&6
16176if test "${ac_cv_func_glob_working+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
16179 ac_cv_func_glob_working=yes
16180cat >conftest.$ac_ext <<_ACEOF
16181#line $LINENO "configure"
16182#include "confdefs.h"
16183
16184#include <stdio.h>
16185#include <glob.h>
16186#ifdef F77_DUMMY_MAIN
16187# ifdef __cplusplus
16188 extern "C"
16189# endif
16190 int F77_DUMMY_MAIN() { return 1; }
16191#endif
16192int
16193main ()
16194{
16195
16196glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
16197#ifdef GLOB_MAXPATH
16198GLOB_MAXPATH
16199#else
16200GLOB_LIMIT
16201#endif
16202,
16203NULL, NULL);
16204
16205 ;
16206 return 0;
16207}
16208_ACEOF
16209rm -f conftest.$ac_objext conftest$ac_exeext
16210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16211 (eval $ac_link) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -s conftest$ac_exeext'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 :
16222else
16223 echo "$as_me: failed program was:" >&5
16224cat conftest.$ac_ext >&5
16225ac_cv_func_glob_working=no
16226fi
16227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16228fi
16229echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
16230echo "${ECHO_T}$ac_cv_func_glob_working" >&6
16231
16232if test "$ac_cv_func_glob_working" = yes; then
16233
16234cat >>confdefs.h <<\_ACEOF
16235#define HAVE_GLOB 1
16236_ACEOF
16237
16238fi
16239if test "$ac_cv_func_glob_working" = yes; then
16240
16241if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
16242echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
16243echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
16244if test "${ac_cv_func_glob_noproto+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246else
16247 cat >conftest.$ac_ext <<_ACEOF
16248#line $LINENO "configure"
16249#include "confdefs.h"
16250#include <stdio.h>
16251#include <glob.h>
16252#ifdef F77_DUMMY_MAIN
16253# ifdef __cplusplus
16254 extern "C"
16255# endif
16256 int F77_DUMMY_MAIN() { return 1; }
16257#endif
16258int
16259main ()
16260{
16261struct foo { int foo; } xx;
16262extern int glob (struct foo*);
16263glob(&xx);
16264
16265 ;
16266 return 0;
16267}
16268_ACEOF
16269rm -f conftest.$ac_objext
16270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16271 (eval $ac_compile) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 eval "ac_cv_func_glob_noproto=yes"
16282else
16283 echo "$as_me: failed program was:" >&5
16284cat conftest.$ac_ext >&5
16285eval "ac_cv_func_glob_noproto=no"
16286fi
16287rm -f conftest.$ac_objext conftest.$ac_ext
16288fi
16289echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
16290echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
16291if test "$ac_cv_func_glob_noproto" = yes; then
16292
16293cat >>confdefs.h <<\_ACEOF
16294#define NEED_GLOB_PROTO 1
16295_ACEOF
16296
16297fi
16298fi
16299
16300fi
16301
16302if test "$ac_cv_func_glob_working" != yes; then
16303 LIBOBJS="$LIBOBJS glob.$ac_objext"
16304fi
16305
16306
16307if test "$ac_cv_func_glob_working" = yes; then
16308 have_glob_h_TRUE=
16309 have_glob_h_FALSE='#'
16310else
16311 have_glob_h_TRUE='#'
16312 have_glob_h_FALSE=
16313fi
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343for ac_func in \
16344 asnprintf \
16345 asprintf \
16346 atexit \
16347 cgetent \
16348 getconfattr \
16349 getprogname \
16350 getrlimit \
16351 getspnam \
16352 initstate \
16353 issetugid \
16354 on_exit \
16355 random \
16356 setprogname \
16357 setstate \
16358 strsvis \
16359 strunvis \
16360 strvis \
16361 strvisx \
16362 svis \
16363 sysconf \
16364 sysctl \
16365 uname \
16366 unvis \
16367 vasnprintf \
16368 vasprintf \
16369 vis \
16370
16371do
16372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16373echo "$as_me:$LINENO: checking for $ac_func" >&5
16374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16375if eval "test \"\${$as_ac_var+set}\" = set"; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377else
16378 cat >conftest.$ac_ext <<_ACEOF
16379#line $LINENO "configure"
16380#include "confdefs.h"
16381/* System header to define __stub macros and hopefully few prototypes,
16382 which can conflict with char $ac_func (); below. */
16383#include <assert.h>
16384/* Override any gcc2 internal prototype to avoid an error. */
16385#ifdef __cplusplus
16386extern "C"
16387#endif
16388/* We use char because int might match the return type of a gcc2
16389 builtin and then its argument prototype would still apply. */
16390char $ac_func ();
16391char (*f) ();
16392
16393#ifdef F77_DUMMY_MAIN
16394# ifdef __cplusplus
16395 extern "C"
16396# endif
16397 int F77_DUMMY_MAIN() { return 1; }
16398#endif
16399int
16400main ()
16401{
16402/* The GNU C library defines this for functions which it implements
16403 to always fail with ENOSYS. Some functions are actually named
16404 something starting with __ and the normal name is an alias. */
16405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16406choke me
16407#else
16408f = $ac_func;
16409#endif
16410
16411 ;
16412 return 0;
16413}
16414_ACEOF
16415rm -f conftest.$ac_objext conftest$ac_exeext
16416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16417 (eval $ac_link) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -s conftest$ac_exeext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 eval "$as_ac_var=yes"
16428else
16429 echo "$as_me: failed program was:" >&5
16430cat conftest.$ac_ext >&5
16431eval "$as_ac_var=no"
16432fi
16433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16434fi
16435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16437if test `eval echo '${'$as_ac_var'}'` = yes; then
16438 cat >>confdefs.h <<_ACEOF
16439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16440_ACEOF
16441
16442fi
16443done
16444
16445
16446if test "$ac_cv_func_cgetent" = no; then
16447 LIBOBJS="$LIBOBJS getcap.$ac_objext"
16448fi
16449
16450
16451
16452
16453
16454
16455
16456
16457echo "$as_me:$LINENO: checking for getsockopt" >&5
16458echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
16459if test "${ac_cv_funclib_getsockopt+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16461else
16462
16463if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
16464 ac_save_LIBS="$LIBS"
16465 for ac_lib in "" ; do
16466 case "$ac_lib" in
16467 "") ;;
16468 yes) ac_lib="" ;;
16469 no) continue ;;
16470 -l*) ;;
16471 *) ac_lib="-l$ac_lib" ;;
16472 esac
16473 LIBS=" $ac_lib $ac_save_LIBS"
16474 cat >conftest.$ac_ext <<_ACEOF
16475#line $LINENO "configure"
16476#include "confdefs.h"
16477#ifdef HAVE_SYS_TYPES_H
16478#include <sys/types.h>
16479#endif
16480#ifdef HAVE_SYS_SOCKET_H
16481#include <sys/socket.h>
16482#endif
16483#ifdef F77_DUMMY_MAIN
16484# ifdef __cplusplus
16485 extern "C"
16486# endif
16487 int F77_DUMMY_MAIN() { return 1; }
16488#endif
16489int
16490main ()
16491{
16492getsockopt(0,0,0,0,0)
16493 ;
16494 return 0;
16495}
16496_ACEOF
16497rm -f conftest.$ac_objext conftest$ac_exeext
16498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499 (eval $ac_link) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); } &&
16503 { ac_try='test -s conftest$ac_exeext'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16509 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
16510else
16511 echo "$as_me: failed program was:" >&5
16512cat conftest.$ac_ext >&5
16513fi
16514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16515 done
16516 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
16517 LIBS="$ac_save_LIBS"
16518fi
16519
16520fi
16521
16522
16523eval "ac_res=\$ac_cv_funclib_getsockopt"
16524
16525if false; then
16526
16527for ac_func in getsockopt
16528do
16529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16530echo "$as_me:$LINENO: checking for $ac_func" >&5
16531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16532if eval "test \"\${$as_ac_var+set}\" = set"; then
16533 echo $ECHO_N "(cached) $ECHO_C" >&6
16534else
16535 cat >conftest.$ac_ext <<_ACEOF
16536#line $LINENO "configure"
16537#include "confdefs.h"
16538/* System header to define __stub macros and hopefully few prototypes,
16539 which can conflict with char $ac_func (); below. */
16540#include <assert.h>
16541/* Override any gcc2 internal prototype to avoid an error. */
16542#ifdef __cplusplus
16543extern "C"
16544#endif
16545/* We use char because int might match the return type of a gcc2
16546 builtin and then its argument prototype would still apply. */
16547char $ac_func ();
16548char (*f) ();
16549
16550#ifdef F77_DUMMY_MAIN
16551# ifdef __cplusplus
16552 extern "C"
16553# endif
16554 int F77_DUMMY_MAIN() { return 1; }
16555#endif
16556int
16557main ()
16558{
16559/* The GNU C library defines this for functions which it implements
16560 to always fail with ENOSYS. Some functions are actually named
16561 something starting with __ and the normal name is an alias. */
16562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16563choke me
16564#else
16565f = $ac_func;
16566#endif
16567
16568 ;
16569 return 0;
16570}
16571_ACEOF
16572rm -f conftest.$ac_objext conftest$ac_exeext
16573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574 (eval $ac_link) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try='test -s conftest$ac_exeext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 eval "$as_ac_var=yes"
16585else
16586 echo "$as_me: failed program was:" >&5
16587cat conftest.$ac_ext >&5
16588eval "$as_ac_var=no"
16589fi
16590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16591fi
16592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16594if test `eval echo '${'$as_ac_var'}'` = yes; then
16595 cat >>confdefs.h <<_ACEOF
16596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16597_ACEOF
16598
16599fi
16600done
16601
16602fi
16603# getsockopt
16604eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16605eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16606eval "LIB_getsockopt=$ac_res"
16607
16608case "$ac_res" in
16609 yes)
16610 eval "ac_cv_func_getsockopt=yes"
16611 eval "LIB_getsockopt="
16612 cat >>confdefs.h <<_ACEOF
16613#define $ac_tr_func 1
16614_ACEOF
16615
16616 echo "$as_me:$LINENO: result: yes" >&5
16617echo "${ECHO_T}yes" >&6
16618 ;;
16619 no)
16620 eval "ac_cv_func_getsockopt=no"
16621 eval "LIB_getsockopt="
16622 echo "$as_me:$LINENO: result: no" >&5
16623echo "${ECHO_T}no" >&6
16624 ;;
16625 *)
16626 eval "ac_cv_func_getsockopt=yes"
16627 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16628 cat >>confdefs.h <<_ACEOF
16629#define $ac_tr_func 1
16630_ACEOF
16631
16632 cat >>confdefs.h <<_ACEOF
16633#define $ac_tr_lib 1
16634_ACEOF
16635
16636 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16637echo "${ECHO_T}yes, in $ac_res" >&6
16638 ;;
16639esac
16640
16641
16642
16643
16644
16645echo "$as_me:$LINENO: checking for setsockopt" >&5
16646echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
16647if test "${ac_cv_funclib_setsockopt+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649else
16650
16651if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
16652 ac_save_LIBS="$LIBS"
16653 for ac_lib in "" ; do
16654 case "$ac_lib" in
16655 "") ;;
16656 yes) ac_lib="" ;;
16657 no) continue ;;
16658 -l*) ;;
16659 *) ac_lib="-l$ac_lib" ;;
16660 esac
16661 LIBS=" $ac_lib $ac_save_LIBS"
16662 cat >conftest.$ac_ext <<_ACEOF
16663#line $LINENO "configure"
16664#include "confdefs.h"
16665#ifdef HAVE_SYS_TYPES_H
16666#include <sys/types.h>
16667#endif
16668#ifdef HAVE_SYS_SOCKET_H
16669#include <sys/socket.h>
16670#endif
16671#ifdef F77_DUMMY_MAIN
16672# ifdef __cplusplus
16673 extern "C"
16674# endif
16675 int F77_DUMMY_MAIN() { return 1; }
16676#endif
16677int
16678main ()
16679{
16680setsockopt(0,0,0,0,0)
16681 ;
16682 return 0;
16683}
16684_ACEOF
16685rm -f conftest.$ac_objext conftest$ac_exeext
16686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687 (eval $ac_link) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -s conftest$ac_exeext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
16698else
16699 echo "$as_me: failed program was:" >&5
16700cat conftest.$ac_ext >&5
16701fi
16702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16703 done
16704 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
16705 LIBS="$ac_save_LIBS"
16706fi
16707
16708fi
16709
16710
16711eval "ac_res=\$ac_cv_funclib_setsockopt"
16712
16713if false; then
16714
16715for ac_func in setsockopt
16716do
16717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16718echo "$as_me:$LINENO: checking for $ac_func" >&5
16719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16720if eval "test \"\${$as_ac_var+set}\" = set"; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16722else
16723 cat >conftest.$ac_ext <<_ACEOF
16724#line $LINENO "configure"
16725#include "confdefs.h"
16726/* System header to define __stub macros and hopefully few prototypes,
16727 which can conflict with char $ac_func (); below. */
16728#include <assert.h>
16729/* Override any gcc2 internal prototype to avoid an error. */
16730#ifdef __cplusplus
16731extern "C"
16732#endif
16733/* We use char because int might match the return type of a gcc2
16734 builtin and then its argument prototype would still apply. */
16735char $ac_func ();
16736char (*f) ();
16737
16738#ifdef F77_DUMMY_MAIN
16739# ifdef __cplusplus
16740 extern "C"
16741# endif
16742 int F77_DUMMY_MAIN() { return 1; }
16743#endif
16744int
16745main ()
16746{
16747/* The GNU C library defines this for functions which it implements
16748 to always fail with ENOSYS. Some functions are actually named
16749 something starting with __ and the normal name is an alias. */
16750#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16751choke me
16752#else
16753f = $ac_func;
16754#endif
16755
16756 ;
16757 return 0;
16758}
16759_ACEOF
16760rm -f conftest.$ac_objext conftest$ac_exeext
16761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16762 (eval $ac_link) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
16766 { ac_try='test -s conftest$ac_exeext'
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16772 eval "$as_ac_var=yes"
16773else
16774 echo "$as_me: failed program was:" >&5
16775cat conftest.$ac_ext >&5
16776eval "$as_ac_var=no"
16777fi
16778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16779fi
16780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16782if test `eval echo '${'$as_ac_var'}'` = yes; then
16783 cat >>confdefs.h <<_ACEOF
16784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16785_ACEOF
16786
16787fi
16788done
16789
16790fi
16791# setsockopt
16792eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16793eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16794eval "LIB_setsockopt=$ac_res"
16795
16796case "$ac_res" in
16797 yes)
16798 eval "ac_cv_func_setsockopt=yes"
16799 eval "LIB_setsockopt="
16800 cat >>confdefs.h <<_ACEOF
16801#define $ac_tr_func 1
16802_ACEOF
16803
16804 echo "$as_me:$LINENO: result: yes" >&5
16805echo "${ECHO_T}yes" >&6
16806 ;;
16807 no)
16808 eval "ac_cv_func_setsockopt=no"
16809 eval "LIB_setsockopt="
16810 echo "$as_me:$LINENO: result: no" >&5
16811echo "${ECHO_T}no" >&6
16812 ;;
16813 *)
16814 eval "ac_cv_func_setsockopt=yes"
16815 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16816 cat >>confdefs.h <<_ACEOF
16817#define $ac_tr_func 1
16818_ACEOF
16819
16820 cat >>confdefs.h <<_ACEOF
16821#define $ac_tr_lib 1
16822_ACEOF
16823
16824 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16825echo "${ECHO_T}yes, in $ac_res" >&6
16826 ;;
16827esac
16828
16829
16830
16831
16832
16833
16834
16835echo "$as_me:$LINENO: checking for hstrerror" >&5
16836echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
16837if test "${ac_cv_funclib_hstrerror+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840
16841if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
16842 ac_save_LIBS="$LIBS"
16843 for ac_lib in "" resolv; do
16844 case "$ac_lib" in
16845 "") ;;
16846 yes) ac_lib="" ;;
16847 no) continue ;;
16848 -l*) ;;
16849 *) ac_lib="-l$ac_lib" ;;
16850 esac
16851 LIBS=" $ac_lib $ac_save_LIBS"
16852 cat >conftest.$ac_ext <<_ACEOF
16853#line $LINENO "configure"
16854#include "confdefs.h"
16855#ifdef HAVE_NETDB_H
16856#include <netdb.h>
16857#endif
16858#ifdef F77_DUMMY_MAIN
16859# ifdef __cplusplus
16860 extern "C"
16861# endif
16862 int F77_DUMMY_MAIN() { return 1; }
16863#endif
16864int
16865main ()
16866{
16867hstrerror(17)
16868 ;
16869 return 0;
16870}
16871_ACEOF
16872rm -f conftest.$ac_objext conftest$ac_exeext
16873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16874 (eval $ac_link) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } &&
16878 { ac_try='test -s conftest$ac_exeext'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
16885else
16886 echo "$as_me: failed program was:" >&5
16887cat conftest.$ac_ext >&5
16888fi
16889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16890 done
16891 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
16892 LIBS="$ac_save_LIBS"
16893fi
16894
16895fi
16896
16897
16898eval "ac_res=\$ac_cv_funclib_hstrerror"
16899
16900if false; then
16901
16902for ac_func in hstrerror
16903do
16904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16905echo "$as_me:$LINENO: checking for $ac_func" >&5
16906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16907if eval "test \"\${$as_ac_var+set}\" = set"; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909else
16910 cat >conftest.$ac_ext <<_ACEOF
16911#line $LINENO "configure"
16912#include "confdefs.h"
16913/* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below. */
16915#include <assert.h>
16916/* Override any gcc2 internal prototype to avoid an error. */
16917#ifdef __cplusplus
16918extern "C"
16919#endif
16920/* We use char because int might match the return type of a gcc2
16921 builtin and then its argument prototype would still apply. */
16922char $ac_func ();
16923char (*f) ();
16924
16925#ifdef F77_DUMMY_MAIN
16926# ifdef __cplusplus
16927 extern "C"
16928# endif
16929 int F77_DUMMY_MAIN() { return 1; }
16930#endif
16931int
16932main ()
16933{
16934/* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16938choke me
16939#else
16940f = $ac_func;
16941#endif
16942
16943 ;
16944 return 0;
16945}
16946_ACEOF
16947rm -f conftest.$ac_objext conftest$ac_exeext
16948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16949 (eval $ac_link) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 eval "$as_ac_var=yes"
16960else
16961 echo "$as_me: failed program was:" >&5
16962cat conftest.$ac_ext >&5
16963eval "$as_ac_var=no"
16964fi
16965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16966fi
16967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16969if test `eval echo '${'$as_ac_var'}'` = yes; then
16970 cat >>confdefs.h <<_ACEOF
16971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16972_ACEOF
16973
16974fi
16975done
16976
16977fi
16978# hstrerror
16979eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16980eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16981eval "LIB_hstrerror=$ac_res"
16982
16983case "$ac_res" in
16984 yes)
16985 eval "ac_cv_func_hstrerror=yes"
16986 eval "LIB_hstrerror="
16987 cat >>confdefs.h <<_ACEOF
16988#define $ac_tr_func 1
16989_ACEOF
16990
16991 echo "$as_me:$LINENO: result: yes" >&5
16992echo "${ECHO_T}yes" >&6
16993 ;;
16994 no)
16995 eval "ac_cv_func_hstrerror=no"
16996 eval "LIB_hstrerror="
16997 echo "$as_me:$LINENO: result: no" >&5
16998echo "${ECHO_T}no" >&6
16999 ;;
17000 *)
17001 eval "ac_cv_func_hstrerror=yes"
17002 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17003 cat >>confdefs.h <<_ACEOF
17004#define $ac_tr_func 1
17005_ACEOF
17006
17007 cat >>confdefs.h <<_ACEOF
17008#define $ac_tr_lib 1
17009_ACEOF
17010
17011 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17012echo "${ECHO_T}yes, in $ac_res" >&6
17013 ;;
17014esac
17015
17016
17017if test -n "$LIB_hstrerror"; then
17018 LIBS="$LIB_hstrerror $LIBS"
17019fi
17020
17021if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
17022 LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
17023fi
17024
17025
17026if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
17027echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
17028echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
17029if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031else
17032 cat >conftest.$ac_ext <<_ACEOF
17033#line $LINENO "configure"
17034#include "confdefs.h"
17035
17036#ifdef HAVE_NETDB_H
17037#include <netdb.h>
17038#endif
17039#ifdef F77_DUMMY_MAIN
17040# ifdef __cplusplus
17041 extern "C"
17042# endif
17043 int F77_DUMMY_MAIN() { return 1; }
17044#endif
17045int
17046main ()
17047{
17048struct foo { int foo; } xx;
17049extern int hstrerror (struct foo*);
17050hstrerror(&xx);
17051
17052 ;
17053 return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext
17057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17058 (eval $ac_compile) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
17062 { ac_try='test -s conftest.$ac_objext'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 eval "ac_cv_func_hstrerror_noproto=yes"
17069else
17070 echo "$as_me: failed program was:" >&5
17071cat conftest.$ac_ext >&5
17072eval "ac_cv_func_hstrerror_noproto=no"
17073fi
17074rm -f conftest.$ac_objext conftest.$ac_ext
17075fi
17076echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
17077echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
17078if test "$ac_cv_func_hstrerror_noproto" = yes; then
17079
17080cat >>confdefs.h <<\_ACEOF
17081#define NEED_HSTRERROR_PROTO 1
17082_ACEOF
17083
17084fi
17085fi
17086
17087
17088
17089if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
17090echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
17091echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
17092if test "${ac_cv_func_asprintf_noproto+set}" = set; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094else
17095 cat >conftest.$ac_ext <<_ACEOF
17096#line $LINENO "configure"
17097#include "confdefs.h"
17098
17099 #include <stdio.h>
17100 #include <string.h>
17101#ifdef F77_DUMMY_MAIN
17102# ifdef __cplusplus
17103 extern "C"
17104# endif
17105 int F77_DUMMY_MAIN() { return 1; }
17106#endif
17107int
17108main ()
17109{
17110struct foo { int foo; } xx;
17111extern int asprintf (struct foo*);
17112asprintf(&xx);
17113
17114 ;
17115 return 0;
17116}
17117_ACEOF
17118rm -f conftest.$ac_objext
17119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } &&
17124 { ac_try='test -s conftest.$ac_objext'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 eval "ac_cv_func_asprintf_noproto=yes"
17131else
17132 echo "$as_me: failed program was:" >&5
17133cat conftest.$ac_ext >&5
17134eval "ac_cv_func_asprintf_noproto=no"
17135fi
17136rm -f conftest.$ac_objext conftest.$ac_ext
17137fi
17138echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
17139echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
17140if test "$ac_cv_func_asprintf_noproto" = yes; then
17141
17142cat >>confdefs.h <<\_ACEOF
17143#define NEED_ASPRINTF_PROTO 1
17144_ACEOF
17145
17146fi
17147fi
17148
17149if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
17150echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
17151echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
17152if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17154else
17155 cat >conftest.$ac_ext <<_ACEOF
17156#line $LINENO "configure"
17157#include "confdefs.h"
17158
17159 #include <stdio.h>
17160 #include <string.h>
17161#ifdef F77_DUMMY_MAIN
17162# ifdef __cplusplus
17163 extern "C"
17164# endif
17165 int F77_DUMMY_MAIN() { return 1; }
17166#endif
17167int
17168main ()
17169{
17170struct foo { int foo; } xx;
17171extern int vasprintf (struct foo*);
17172vasprintf(&xx);
17173
17174 ;
17175 return 0;
17176}
17177_ACEOF
17178rm -f conftest.$ac_objext
17179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17180 (eval $ac_compile) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -s conftest.$ac_objext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 eval "ac_cv_func_vasprintf_noproto=yes"
17191else
17192 echo "$as_me: failed program was:" >&5
17193cat conftest.$ac_ext >&5
17194eval "ac_cv_func_vasprintf_noproto=no"
17195fi
17196rm -f conftest.$ac_objext conftest.$ac_ext
17197fi
17198echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
17199echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
17200if test "$ac_cv_func_vasprintf_noproto" = yes; then
17201
17202cat >>confdefs.h <<\_ACEOF
17203#define NEED_VASPRINTF_PROTO 1
17204_ACEOF
17205
17206fi
17207fi
17208
17209if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
17210echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
17211echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
17212if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17214else
17215 cat >conftest.$ac_ext <<_ACEOF
17216#line $LINENO "configure"
17217#include "confdefs.h"
17218
17219 #include <stdio.h>
17220 #include <string.h>
17221#ifdef F77_DUMMY_MAIN
17222# ifdef __cplusplus
17223 extern "C"
17224# endif
17225 int F77_DUMMY_MAIN() { return 1; }
17226#endif
17227int
17228main ()
17229{
17230struct foo { int foo; } xx;
17231extern int asnprintf (struct foo*);
17232asnprintf(&xx);
17233
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext
17239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17240 (eval $ac_compile) 2>&5
17241 ac_status=$?
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try='test -s conftest.$ac_objext'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17250 eval "ac_cv_func_asnprintf_noproto=yes"
17251else
17252 echo "$as_me: failed program was:" >&5
17253cat conftest.$ac_ext >&5
17254eval "ac_cv_func_asnprintf_noproto=no"
17255fi
17256rm -f conftest.$ac_objext conftest.$ac_ext
17257fi
17258echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
17259echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
17260if test "$ac_cv_func_asnprintf_noproto" = yes; then
17261
17262cat >>confdefs.h <<\_ACEOF
17263#define NEED_ASNPRINTF_PROTO 1
17264_ACEOF
17265
17266fi
17267fi
17268
17269if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
17270echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
17271echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
17272if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274else
17275 cat >conftest.$ac_ext <<_ACEOF
17276#line $LINENO "configure"
17277#include "confdefs.h"
17278
17279 #include <stdio.h>
17280 #include <string.h>
17281#ifdef F77_DUMMY_MAIN
17282# ifdef __cplusplus
17283 extern "C"
17284# endif
17285 int F77_DUMMY_MAIN() { return 1; }
17286#endif
17287int
17288main ()
17289{
17290struct foo { int foo; } xx;
17291extern int vasnprintf (struct foo*);
17292vasnprintf(&xx);
17293
17294 ;
17295 return 0;
17296}
17297_ACEOF
17298rm -f conftest.$ac_objext
17299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17300 (eval $ac_compile) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -s conftest.$ac_objext'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 eval "ac_cv_func_vasnprintf_noproto=yes"
17311else
17312 echo "$as_me: failed program was:" >&5
17313cat conftest.$ac_ext >&5
17314eval "ac_cv_func_vasnprintf_noproto=no"
17315fi
17316rm -f conftest.$ac_objext conftest.$ac_ext
17317fi
17318echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
17319echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
17320if test "$ac_cv_func_vasnprintf_noproto" = yes; then
17321
17322cat >>confdefs.h <<\_ACEOF
17323#define NEED_VASNPRINTF_PROTO 1
17324_ACEOF
17325
17326fi
17327fi
17328
17329
17330
17331
17332
17333echo "$as_me:$LINENO: checking for bswap16" >&5
17334echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
17335if test "${ac_cv_funclib_bswap16+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337else
17338
17339if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
17340 ac_save_LIBS="$LIBS"
17341 for ac_lib in "" ; do
17342 case "$ac_lib" in
17343 "") ;;
17344 yes) ac_lib="" ;;
17345 no) continue ;;
17346 -l*) ;;
17347 *) ac_lib="-l$ac_lib" ;;
17348 esac
17349 LIBS=" $ac_lib $ac_save_LIBS"
17350 cat >conftest.$ac_ext <<_ACEOF
17351#line $LINENO "configure"
17352#include "confdefs.h"
17353#ifdef HAVE_SYS_BSWAP_H
17354#include <sys/bswap.h>
17355#endif
17356#ifdef F77_DUMMY_MAIN
17357# ifdef __cplusplus
17358 extern "C"
17359# endif
17360 int F77_DUMMY_MAIN() { return 1; }
17361#endif
17362int
17363main ()
17364{
17365bswap16(0)
17366 ;
17367 return 0;
17368}
17369_ACEOF
17370rm -f conftest.$ac_objext conftest$ac_exeext
17371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17372 (eval $ac_link) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -s conftest$ac_exeext'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; }; then
17382 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
17383else
17384 echo "$as_me: failed program was:" >&5
17385cat conftest.$ac_ext >&5
17386fi
17387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17388 done
17389 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
17390 LIBS="$ac_save_LIBS"
17391fi
17392
17393fi
17394
17395
17396eval "ac_res=\$ac_cv_funclib_bswap16"
17397
17398if false; then
17399
17400for ac_func in bswap16
17401do
17402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17403echo "$as_me:$LINENO: checking for $ac_func" >&5
17404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17405if eval "test \"\${$as_ac_var+set}\" = set"; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407else
17408 cat >conftest.$ac_ext <<_ACEOF
17409#line $LINENO "configure"
17410#include "confdefs.h"
17411/* System header to define __stub macros and hopefully few prototypes,
17412 which can conflict with char $ac_func (); below. */
17413#include <assert.h>
17414/* Override any gcc2 internal prototype to avoid an error. */
17415#ifdef __cplusplus
17416extern "C"
17417#endif
17418/* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17420char $ac_func ();
17421char (*f) ();
17422
17423#ifdef F77_DUMMY_MAIN
17424# ifdef __cplusplus
17425 extern "C"
17426# endif
17427 int F77_DUMMY_MAIN() { return 1; }
17428#endif
17429int
17430main ()
17431{
17432/* The GNU C library defines this for functions which it implements
17433 to always fail with ENOSYS. Some functions are actually named
17434 something starting with __ and the normal name is an alias. */
17435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17436choke me
17437#else
17438f = $ac_func;
17439#endif
17440
17441 ;
17442 return 0;
17443}
17444_ACEOF
17445rm -f conftest.$ac_objext conftest$ac_exeext
17446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17447 (eval $ac_link) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
17451 { ac_try='test -s conftest$ac_exeext'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 eval "$as_ac_var=yes"
17458else
17459 echo "$as_me: failed program was:" >&5
17460cat conftest.$ac_ext >&5
17461eval "$as_ac_var=no"
17462fi
17463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17464fi
17465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17466echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17467if test `eval echo '${'$as_ac_var'}'` = yes; then
17468 cat >>confdefs.h <<_ACEOF
17469#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17470_ACEOF
17471
17472fi
17473done
17474
17475fi
17476# bswap16
17477eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17478eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17479eval "LIB_bswap16=$ac_res"
17480
17481case "$ac_res" in
17482 yes)
17483 eval "ac_cv_func_bswap16=yes"
17484 eval "LIB_bswap16="
17485 cat >>confdefs.h <<_ACEOF
17486#define $ac_tr_func 1
17487_ACEOF
17488
17489 echo "$as_me:$LINENO: result: yes" >&5
17490echo "${ECHO_T}yes" >&6
17491 ;;
17492 no)
17493 eval "ac_cv_func_bswap16=no"
17494 eval "LIB_bswap16="
17495 echo "$as_me:$LINENO: result: no" >&5
17496echo "${ECHO_T}no" >&6
17497 ;;
17498 *)
17499 eval "ac_cv_func_bswap16=yes"
17500 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17501 cat >>confdefs.h <<_ACEOF
17502#define $ac_tr_func 1
17503_ACEOF
17504
17505 cat >>confdefs.h <<_ACEOF
17506#define $ac_tr_lib 1
17507_ACEOF
17508
17509 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17510echo "${ECHO_T}yes, in $ac_res" >&6
17511 ;;
17512esac
17513
17514
17515
17516
17517
17518
17519echo "$as_me:$LINENO: checking for bswap32" >&5
17520echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
17521if test "${ac_cv_funclib_bswap32+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17523else
17524
17525if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
17526 ac_save_LIBS="$LIBS"
17527 for ac_lib in "" ; do
17528 case "$ac_lib" in
17529 "") ;;
17530 yes) ac_lib="" ;;
17531 no) continue ;;
17532 -l*) ;;
17533 *) ac_lib="-l$ac_lib" ;;
17534 esac
17535 LIBS=" $ac_lib $ac_save_LIBS"
17536 cat >conftest.$ac_ext <<_ACEOF
17537#line $LINENO "configure"
17538#include "confdefs.h"
17539#ifdef HAVE_SYS_BSWAP_H
17540#include <sys/bswap.h>
17541#endif
17542#ifdef F77_DUMMY_MAIN
17543# ifdef __cplusplus
17544 extern "C"
17545# endif
17546 int F77_DUMMY_MAIN() { return 1; }
17547#endif
17548int
17549main ()
17550{
17551bswap32(0)
17552 ;
17553 return 0;
17554}
17555_ACEOF
17556rm -f conftest.$ac_objext conftest$ac_exeext
17557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17558 (eval $ac_link) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
17569else
17570 echo "$as_me: failed program was:" >&5
17571cat conftest.$ac_ext >&5
17572fi
17573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17574 done
17575 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
17576 LIBS="$ac_save_LIBS"
17577fi
17578
17579fi
17580
17581
17582eval "ac_res=\$ac_cv_funclib_bswap32"
17583
17584if false; then
17585
17586for ac_func in bswap32
17587do
17588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17589echo "$as_me:$LINENO: checking for $ac_func" >&5
17590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17591if eval "test \"\${$as_ac_var+set}\" = set"; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17593else
17594 cat >conftest.$ac_ext <<_ACEOF
17595#line $LINENO "configure"
17596#include "confdefs.h"
17597/* System header to define __stub macros and hopefully few prototypes,
17598 which can conflict with char $ac_func (); below. */
17599#include <assert.h>
17600/* Override any gcc2 internal prototype to avoid an error. */
17601#ifdef __cplusplus
17602extern "C"
17603#endif
17604/* We use char because int might match the return type of a gcc2
17605 builtin and then its argument prototype would still apply. */
17606char $ac_func ();
17607char (*f) ();
17608
17609#ifdef F77_DUMMY_MAIN
17610# ifdef __cplusplus
17611 extern "C"
17612# endif
17613 int F77_DUMMY_MAIN() { return 1; }
17614#endif
17615int
17616main ()
17617{
17618/* The GNU C library defines this for functions which it implements
17619 to always fail with ENOSYS. Some functions are actually named
17620 something starting with __ and the normal name is an alias. */
17621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17622choke me
17623#else
17624f = $ac_func;
17625#endif
17626
17627 ;
17628 return 0;
17629}
17630_ACEOF
17631rm -f conftest.$ac_objext conftest$ac_exeext
17632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17633 (eval $ac_link) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
17637 { ac_try='test -s conftest$ac_exeext'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; }; then
17643 eval "$as_ac_var=yes"
17644else
17645 echo "$as_me: failed program was:" >&5
17646cat conftest.$ac_ext >&5
17647eval "$as_ac_var=no"
17648fi
17649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17650fi
17651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17653if test `eval echo '${'$as_ac_var'}'` = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17656_ACEOF
17657
17658fi
17659done
17660
17661fi
17662# bswap32
17663eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17664eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17665eval "LIB_bswap32=$ac_res"
17666
17667case "$ac_res" in
17668 yes)
17669 eval "ac_cv_func_bswap32=yes"
17670 eval "LIB_bswap32="
17671 cat >>confdefs.h <<_ACEOF
17672#define $ac_tr_func 1
17673_ACEOF
17674
17675 echo "$as_me:$LINENO: result: yes" >&5
17676echo "${ECHO_T}yes" >&6
17677 ;;
17678 no)
17679 eval "ac_cv_func_bswap32=no"
17680 eval "LIB_bswap32="
17681 echo "$as_me:$LINENO: result: no" >&5
17682echo "${ECHO_T}no" >&6
17683 ;;
17684 *)
17685 eval "ac_cv_func_bswap32=yes"
17686 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17687 cat >>confdefs.h <<_ACEOF
17688#define $ac_tr_func 1
17689_ACEOF
17690
17691 cat >>confdefs.h <<_ACEOF
17692#define $ac_tr_lib 1
17693_ACEOF
17694
17695 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17696echo "${ECHO_T}yes, in $ac_res" >&6
17697 ;;
17698esac
17699
17700
17701
17702
17703
17704
17705echo "$as_me:$LINENO: checking for pidfile" >&5
17706echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
17707if test "${ac_cv_funclib_pidfile+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17709else
17710
17711if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
17712 ac_save_LIBS="$LIBS"
17713 for ac_lib in "" util; do
17714 case "$ac_lib" in
17715 "") ;;
17716 yes) ac_lib="" ;;
17717 no) continue ;;
17718 -l*) ;;
17719 *) ac_lib="-l$ac_lib" ;;
17720 esac
17721 LIBS=" $ac_lib $ac_save_LIBS"
17722 cat >conftest.$ac_ext <<_ACEOF
17723#line $LINENO "configure"
17724#include "confdefs.h"
17725#ifdef HAVE_UTIL_H
17726#include <util.h>
17727#endif
17728#ifdef F77_DUMMY_MAIN
17729# ifdef __cplusplus
17730 extern "C"
17731# endif
17732 int F77_DUMMY_MAIN() { return 1; }
17733#endif
17734int
17735main ()
17736{
17737pidfile(0)
17738 ;
17739 return 0;
17740}
17741_ACEOF
17742rm -f conftest.$ac_objext conftest$ac_exeext
17743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
17755else
17756 echo "$as_me: failed program was:" >&5
17757cat conftest.$ac_ext >&5
17758fi
17759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17760 done
17761 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
17762 LIBS="$ac_save_LIBS"
17763fi
17764
17765fi
17766
17767
17768eval "ac_res=\$ac_cv_funclib_pidfile"
17769
17770if false; then
17771
17772for ac_func in pidfile
17773do
17774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17775echo "$as_me:$LINENO: checking for $ac_func" >&5
17776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17777if eval "test \"\${$as_ac_var+set}\" = set"; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17779else
17780 cat >conftest.$ac_ext <<_ACEOF
17781#line $LINENO "configure"
17782#include "confdefs.h"
17783/* System header to define __stub macros and hopefully few prototypes,
17784 which can conflict with char $ac_func (); below. */
17785#include <assert.h>
17786/* Override any gcc2 internal prototype to avoid an error. */
17787#ifdef __cplusplus
17788extern "C"
17789#endif
17790/* We use char because int might match the return type of a gcc2
17791 builtin and then its argument prototype would still apply. */
17792char $ac_func ();
17793char (*f) ();
17794
17795#ifdef F77_DUMMY_MAIN
17796# ifdef __cplusplus
17797 extern "C"
17798# endif
17799 int F77_DUMMY_MAIN() { return 1; }
17800#endif
17801int
17802main ()
17803{
17804/* The GNU C library defines this for functions which it implements
17805 to always fail with ENOSYS. Some functions are actually named
17806 something starting with __ and the normal name is an alias. */
17807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17808choke me
17809#else
17810f = $ac_func;
17811#endif
17812
17813 ;
17814 return 0;
17815}
17816_ACEOF
17817rm -f conftest.$ac_objext conftest$ac_exeext
17818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819 (eval $ac_link) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -s conftest$ac_exeext'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; }; then
17829 eval "$as_ac_var=yes"
17830else
17831 echo "$as_me: failed program was:" >&5
17832cat conftest.$ac_ext >&5
17833eval "$as_ac_var=no"
17834fi
17835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17836fi
17837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17838echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17839if test `eval echo '${'$as_ac_var'}'` = yes; then
17840 cat >>confdefs.h <<_ACEOF
17841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17842_ACEOF
17843
17844fi
17845done
17846
17847fi
17848# pidfile
17849eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17850eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17851eval "LIB_pidfile=$ac_res"
17852
17853case "$ac_res" in
17854 yes)
17855 eval "ac_cv_func_pidfile=yes"
17856 eval "LIB_pidfile="
17857 cat >>confdefs.h <<_ACEOF
17858#define $ac_tr_func 1
17859_ACEOF
17860
17861 echo "$as_me:$LINENO: result: yes" >&5
17862echo "${ECHO_T}yes" >&6
17863 ;;
17864 no)
17865 eval "ac_cv_func_pidfile=no"
17866 eval "LIB_pidfile="
17867 echo "$as_me:$LINENO: result: no" >&5
17868echo "${ECHO_T}no" >&6
17869 ;;
17870 *)
17871 eval "ac_cv_func_pidfile=yes"
17872 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17873 cat >>confdefs.h <<_ACEOF
17874#define $ac_tr_func 1
17875_ACEOF
17876
17877 cat >>confdefs.h <<_ACEOF
17878#define $ac_tr_lib 1
17879_ACEOF
17880
17881 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17882echo "${ECHO_T}yes, in $ac_res" >&6
17883 ;;
17884esac
17885
17886
17887
17888
17889
17890
17891
17892echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17893echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17894if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17896else
17897
17898if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
17899 ac_save_LIBS="$LIBS"
17900 for ac_lib in "" ; do
17901 case "$ac_lib" in
17902 "") ;;
17903 yes) ac_lib="" ;;
17904 no) continue ;;
17905 -l*) ;;
17906 *) ac_lib="-l$ac_lib" ;;
17907 esac
17908 LIBS=" $ac_lib $ac_save_LIBS"
17909 cat >conftest.$ac_ext <<_ACEOF
17910#line $LINENO "configure"
17911#include "confdefs.h"
17912#ifdef HAVE_NETDB_H
17913#include <netdb.h>
17914#endif
17915#ifdef F77_DUMMY_MAIN
17916# ifdef __cplusplus
17917 extern "C"
17918# endif
17919 int F77_DUMMY_MAIN() { return 1; }
17920#endif
17921int
17922main ()
17923{
17924getaddrinfo(0,0,0,0)
17925 ;
17926 return 0;
17927}
17928_ACEOF
17929rm -f conftest.$ac_objext conftest$ac_exeext
17930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 (eval $ac_link) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -s conftest$ac_exeext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
17942else
17943 echo "$as_me: failed program was:" >&5
17944cat conftest.$ac_ext >&5
17945fi
17946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17947 done
17948 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
17949 LIBS="$ac_save_LIBS"
17950fi
17951
17952fi
17953
17954
17955eval "ac_res=\$ac_cv_funclib_getaddrinfo"
17956
17957if false; then
17958
17959for ac_func in getaddrinfo
17960do
17961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17962echo "$as_me:$LINENO: checking for $ac_func" >&5
17963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17964if eval "test \"\${$as_ac_var+set}\" = set"; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966else
17967 cat >conftest.$ac_ext <<_ACEOF
17968#line $LINENO "configure"
17969#include "confdefs.h"
17970/* System header to define __stub macros and hopefully few prototypes,
17971 which can conflict with char $ac_func (); below. */
17972#include <assert.h>
17973/* Override any gcc2 internal prototype to avoid an error. */
17974#ifdef __cplusplus
17975extern "C"
17976#endif
17977/* We use char because int might match the return type of a gcc2
17978 builtin and then its argument prototype would still apply. */
17979char $ac_func ();
17980char (*f) ();
17981
17982#ifdef F77_DUMMY_MAIN
17983# ifdef __cplusplus
17984 extern "C"
17985# endif
17986 int F77_DUMMY_MAIN() { return 1; }
17987#endif
17988int
17989main ()
17990{
17991/* The GNU C library defines this for functions which it implements
17992 to always fail with ENOSYS. Some functions are actually named
17993 something starting with __ and the normal name is an alias. */
17994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17995choke me
17996#else
17997f = $ac_func;
17998#endif
17999
18000 ;
18001 return 0;
18002}
18003_ACEOF
18004rm -f conftest.$ac_objext conftest$ac_exeext
18005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006 (eval $ac_link) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 eval "$as_ac_var=yes"
18017else
18018 echo "$as_me: failed program was:" >&5
18019cat conftest.$ac_ext >&5
18020eval "$as_ac_var=no"
18021fi
18022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18023fi
18024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18026if test `eval echo '${'$as_ac_var'}'` = yes; then
18027 cat >>confdefs.h <<_ACEOF
18028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18029_ACEOF
18030
18031fi
18032done
18033
18034fi
18035# getaddrinfo
18036eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18037eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18038eval "LIB_getaddrinfo=$ac_res"
18039
18040case "$ac_res" in
18041 yes)
18042 eval "ac_cv_func_getaddrinfo=yes"
18043 eval "LIB_getaddrinfo="
18044 cat >>confdefs.h <<_ACEOF
18045#define $ac_tr_func 1
18046_ACEOF
18047
18048 echo "$as_me:$LINENO: result: yes" >&5
18049echo "${ECHO_T}yes" >&6
18050 ;;
18051 no)
18052 eval "ac_cv_func_getaddrinfo=no"
18053 eval "LIB_getaddrinfo="
18054 echo "$as_me:$LINENO: result: no" >&5
18055echo "${ECHO_T}no" >&6
18056 ;;
18057 *)
18058 eval "ac_cv_func_getaddrinfo=yes"
18059 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18060 cat >>confdefs.h <<_ACEOF
18061#define $ac_tr_func 1
18062_ACEOF
18063
18064 cat >>confdefs.h <<_ACEOF
18065#define $ac_tr_lib 1
18066_ACEOF
18067
18068 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18069echo "${ECHO_T}yes, in $ac_res" >&6
18070 ;;
18071esac
18072
18073
18074if test -n "$LIB_getaddrinfo"; then
18075 LIBS="$LIB_getaddrinfo $LIBS"
18076fi
18077
18078if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
18079 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
18080fi
18081
18082
18083
18084
18085
18086
18087echo "$as_me:$LINENO: checking for getnameinfo" >&5
18088echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
18089if test "${ac_cv_funclib_getnameinfo+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091else
18092
18093if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
18094 ac_save_LIBS="$LIBS"
18095 for ac_lib in "" ; do
18096 case "$ac_lib" in
18097 "") ;;
18098 yes) ac_lib="" ;;
18099 no) continue ;;
18100 -l*) ;;
18101 *) ac_lib="-l$ac_lib" ;;
18102 esac
18103 LIBS=" $ac_lib $ac_save_LIBS"
18104 cat >conftest.$ac_ext <<_ACEOF
18105#line $LINENO "configure"
18106#include "confdefs.h"
18107#ifdef HAVE_NETDB_H
18108#include <netdb.h>
18109#endif
18110#ifdef F77_DUMMY_MAIN
18111# ifdef __cplusplus
18112 extern "C"
18113# endif
18114 int F77_DUMMY_MAIN() { return 1; }
18115#endif
18116int
18117main ()
18118{
18119getnameinfo(0,0,0,0,0,0,0)
18120 ;
18121 return 0;
18122}
18123_ACEOF
18124rm -f conftest.$ac_objext conftest$ac_exeext
18125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18126 (eval $ac_link) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -s conftest$ac_exeext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
18137else
18138 echo "$as_me: failed program was:" >&5
18139cat conftest.$ac_ext >&5
18140fi
18141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18142 done
18143 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
18144 LIBS="$ac_save_LIBS"
18145fi
18146
18147fi
18148
18149
18150eval "ac_res=\$ac_cv_funclib_getnameinfo"
18151
18152if false; then
18153
18154for ac_func in getnameinfo
18155do
18156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18157echo "$as_me:$LINENO: checking for $ac_func" >&5
18158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18159if eval "test \"\${$as_ac_var+set}\" = set"; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18161else
18162 cat >conftest.$ac_ext <<_ACEOF
18163#line $LINENO "configure"
18164#include "confdefs.h"
18165/* System header to define __stub macros and hopefully few prototypes,
18166 which can conflict with char $ac_func (); below. */
18167#include <assert.h>
18168/* Override any gcc2 internal prototype to avoid an error. */
18169#ifdef __cplusplus
18170extern "C"
18171#endif
18172/* We use char because int might match the return type of a gcc2
18173 builtin and then its argument prototype would still apply. */
18174char $ac_func ();
18175char (*f) ();
18176
18177#ifdef F77_DUMMY_MAIN
18178# ifdef __cplusplus
18179 extern "C"
18180# endif
18181 int F77_DUMMY_MAIN() { return 1; }
18182#endif
18183int
18184main ()
18185{
18186/* The GNU C library defines this for functions which it implements
18187 to always fail with ENOSYS. Some functions are actually named
18188 something starting with __ and the normal name is an alias. */
18189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18190choke me
18191#else
18192f = $ac_func;
18193#endif
18194
18195 ;
18196 return 0;
18197}
18198_ACEOF
18199rm -f conftest.$ac_objext conftest$ac_exeext
18200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18201 (eval $ac_link) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } &&
18205 { ac_try='test -s conftest$ac_exeext'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 eval "$as_ac_var=yes"
18212else
18213 echo "$as_me: failed program was:" >&5
18214cat conftest.$ac_ext >&5
18215eval "$as_ac_var=no"
18216fi
18217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18218fi
18219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18221if test `eval echo '${'$as_ac_var'}'` = yes; then
18222 cat >>confdefs.h <<_ACEOF
18223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18224_ACEOF
18225
18226fi
18227done
18228
18229fi
18230# getnameinfo
18231eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18232eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18233eval "LIB_getnameinfo=$ac_res"
18234
18235case "$ac_res" in
18236 yes)
18237 eval "ac_cv_func_getnameinfo=yes"
18238 eval "LIB_getnameinfo="
18239 cat >>confdefs.h <<_ACEOF
18240#define $ac_tr_func 1
18241_ACEOF
18242
18243 echo "$as_me:$LINENO: result: yes" >&5
18244echo "${ECHO_T}yes" >&6
18245 ;;
18246 no)
18247 eval "ac_cv_func_getnameinfo=no"
18248 eval "LIB_getnameinfo="
18249 echo "$as_me:$LINENO: result: no" >&5
18250echo "${ECHO_T}no" >&6
18251 ;;
18252 *)
18253 eval "ac_cv_func_getnameinfo=yes"
18254 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18255 cat >>confdefs.h <<_ACEOF
18256#define $ac_tr_func 1
18257_ACEOF
18258
18259 cat >>confdefs.h <<_ACEOF
18260#define $ac_tr_lib 1
18261_ACEOF
18262
18263 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18264echo "${ECHO_T}yes, in $ac_res" >&6
18265 ;;
18266esac
18267
18268
18269if test -n "$LIB_getnameinfo"; then
18270 LIBS="$LIB_getnameinfo $LIBS"
18271fi
18272
18273if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
18274 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
18275fi
18276
18277
18278
18279
18280
18281
18282echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
18283echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
18284if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286else
18287
18288if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
18289 ac_save_LIBS="$LIBS"
18290 for ac_lib in "" ; do
18291 case "$ac_lib" in
18292 "") ;;
18293 yes) ac_lib="" ;;
18294 no) continue ;;
18295 -l*) ;;
18296 *) ac_lib="-l$ac_lib" ;;
18297 esac
18298 LIBS=" $ac_lib $ac_save_LIBS"
18299 cat >conftest.$ac_ext <<_ACEOF
18300#line $LINENO "configure"
18301#include "confdefs.h"
18302#ifdef HAVE_NETDB_H
18303#include <netdb.h>
18304#endif
18305#ifdef F77_DUMMY_MAIN
18306# ifdef __cplusplus
18307 extern "C"
18308# endif
18309 int F77_DUMMY_MAIN() { return 1; }
18310#endif
18311int
18312main ()
18313{
18314freeaddrinfo(0)
18315 ;
18316 return 0;
18317}
18318_ACEOF
18319rm -f conftest.$ac_objext conftest$ac_exeext
18320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18321 (eval $ac_link) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -s conftest$ac_exeext'
18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; }; then
18331 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
18332else
18333 echo "$as_me: failed program was:" >&5
18334cat conftest.$ac_ext >&5
18335fi
18336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18337 done
18338 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
18339 LIBS="$ac_save_LIBS"
18340fi
18341
18342fi
18343
18344
18345eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
18346
18347if false; then
18348
18349for ac_func in freeaddrinfo
18350do
18351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18352echo "$as_me:$LINENO: checking for $ac_func" >&5
18353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18354if eval "test \"\${$as_ac_var+set}\" = set"; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18356else
18357 cat >conftest.$ac_ext <<_ACEOF
18358#line $LINENO "configure"
18359#include "confdefs.h"
18360/* System header to define __stub macros and hopefully few prototypes,
18361 which can conflict with char $ac_func (); below. */
18362#include <assert.h>
18363/* Override any gcc2 internal prototype to avoid an error. */
18364#ifdef __cplusplus
18365extern "C"
18366#endif
18367/* We use char because int might match the return type of a gcc2
18368 builtin and then its argument prototype would still apply. */
18369char $ac_func ();
18370char (*f) ();
18371
18372#ifdef F77_DUMMY_MAIN
18373# ifdef __cplusplus
18374 extern "C"
18375# endif
18376 int F77_DUMMY_MAIN() { return 1; }
18377#endif
18378int
18379main ()
18380{
18381/* The GNU C library defines this for functions which it implements
18382 to always fail with ENOSYS. Some functions are actually named
18383 something starting with __ and the normal name is an alias. */
18384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18385choke me
18386#else
18387f = $ac_func;
18388#endif
18389
18390 ;
18391 return 0;
18392}
18393_ACEOF
18394rm -f conftest.$ac_objext conftest$ac_exeext
18395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18396 (eval $ac_link) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try='test -s conftest$ac_exeext'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 eval "$as_ac_var=yes"
18407else
18408 echo "$as_me: failed program was:" >&5
18409cat conftest.$ac_ext >&5
18410eval "$as_ac_var=no"
18411fi
18412rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18413fi
18414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18415echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18416if test `eval echo '${'$as_ac_var'}'` = yes; then
18417 cat >>confdefs.h <<_ACEOF
18418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18419_ACEOF
18420
18421fi
18422done
18423
18424fi
18425# freeaddrinfo
18426eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18427eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18428eval "LIB_freeaddrinfo=$ac_res"
18429
18430case "$ac_res" in
18431 yes)
18432 eval "ac_cv_func_freeaddrinfo=yes"
18433 eval "LIB_freeaddrinfo="
18434 cat >>confdefs.h <<_ACEOF
18435#define $ac_tr_func 1
18436_ACEOF
18437
18438 echo "$as_me:$LINENO: result: yes" >&5
18439echo "${ECHO_T}yes" >&6
18440 ;;
18441 no)
18442 eval "ac_cv_func_freeaddrinfo=no"
18443 eval "LIB_freeaddrinfo="
18444 echo "$as_me:$LINENO: result: no" >&5
18445echo "${ECHO_T}no" >&6
18446 ;;
18447 *)
18448 eval "ac_cv_func_freeaddrinfo=yes"
18449 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18450 cat >>confdefs.h <<_ACEOF
18451#define $ac_tr_func 1
18452_ACEOF
18453
18454 cat >>confdefs.h <<_ACEOF
18455#define $ac_tr_lib 1
18456_ACEOF
18457
18458 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18459echo "${ECHO_T}yes, in $ac_res" >&6
18460 ;;
18461esac
18462
18463
18464if test -n "$LIB_freeaddrinfo"; then
18465 LIBS="$LIB_freeaddrinfo $LIBS"
18466fi
18467
18468if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
18469 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
18470fi
18471
18472
18473
18474
18475
18476
18477echo "$as_me:$LINENO: checking for gai_strerror" >&5
18478echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
18479if test "${ac_cv_funclib_gai_strerror+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481else
18482
18483if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
18484 ac_save_LIBS="$LIBS"
18485 for ac_lib in "" ; do
18486 case "$ac_lib" in
18487 "") ;;
18488 yes) ac_lib="" ;;
18489 no) continue ;;
18490 -l*) ;;
18491 *) ac_lib="-l$ac_lib" ;;
18492 esac
18493 LIBS=" $ac_lib $ac_save_LIBS"
18494 cat >conftest.$ac_ext <<_ACEOF
18495#line $LINENO "configure"
18496#include "confdefs.h"
18497#ifdef HAVE_NETDB_H
18498#include <netdb.h>
18499#endif
18500#ifdef F77_DUMMY_MAIN
18501# ifdef __cplusplus
18502 extern "C"
18503# endif
18504 int F77_DUMMY_MAIN() { return 1; }
18505#endif
18506int
18507main ()
18508{
18509gai_strerror(0)
18510 ;
18511 return 0;
18512}
18513_ACEOF
18514rm -f conftest.$ac_objext conftest$ac_exeext
18515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18516 (eval $ac_link) 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -s conftest$ac_exeext'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
18526 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
18527else
18528 echo "$as_me: failed program was:" >&5
18529cat conftest.$ac_ext >&5
18530fi
18531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18532 done
18533 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
18534 LIBS="$ac_save_LIBS"
18535fi
18536
18537fi
18538
18539
18540eval "ac_res=\$ac_cv_funclib_gai_strerror"
18541
18542if false; then
18543
18544for ac_func in gai_strerror
18545do
18546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18547echo "$as_me:$LINENO: checking for $ac_func" >&5
18548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18549if eval "test \"\${$as_ac_var+set}\" = set"; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551else
18552 cat >conftest.$ac_ext <<_ACEOF
18553#line $LINENO "configure"
18554#include "confdefs.h"
18555/* System header to define __stub macros and hopefully few prototypes,
18556 which can conflict with char $ac_func (); below. */
18557#include <assert.h>
18558/* Override any gcc2 internal prototype to avoid an error. */
18559#ifdef __cplusplus
18560extern "C"
18561#endif
18562/* We use char because int might match the return type of a gcc2
18563 builtin and then its argument prototype would still apply. */
18564char $ac_func ();
18565char (*f) ();
18566
18567#ifdef F77_DUMMY_MAIN
18568# ifdef __cplusplus
18569 extern "C"
18570# endif
18571 int F77_DUMMY_MAIN() { return 1; }
18572#endif
18573int
18574main ()
18575{
18576/* The GNU C library defines this for functions which it implements
18577 to always fail with ENOSYS. Some functions are actually named
18578 something starting with __ and the normal name is an alias. */
18579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18580choke me
18581#else
18582f = $ac_func;
18583#endif
18584
18585 ;
18586 return 0;
18587}
18588_ACEOF
18589rm -f conftest.$ac_objext conftest$ac_exeext
18590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18591 (eval $ac_link) 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -s conftest$ac_exeext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 eval "$as_ac_var=yes"
18602else
18603 echo "$as_me: failed program was:" >&5
18604cat conftest.$ac_ext >&5
18605eval "$as_ac_var=no"
18606fi
18607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18608fi
18609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18611if test `eval echo '${'$as_ac_var'}'` = yes; then
18612 cat >>confdefs.h <<_ACEOF
18613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18614_ACEOF
18615
18616fi
18617done
18618
18619fi
18620# gai_strerror
18621eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18622eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18623eval "LIB_gai_strerror=$ac_res"
18624
18625case "$ac_res" in
18626 yes)
18627 eval "ac_cv_func_gai_strerror=yes"
18628 eval "LIB_gai_strerror="
18629 cat >>confdefs.h <<_ACEOF
18630#define $ac_tr_func 1
18631_ACEOF
18632
18633 echo "$as_me:$LINENO: result: yes" >&5
18634echo "${ECHO_T}yes" >&6
18635 ;;
18636 no)
18637 eval "ac_cv_func_gai_strerror=no"
18638 eval "LIB_gai_strerror="
18639 echo "$as_me:$LINENO: result: no" >&5
18640echo "${ECHO_T}no" >&6
18641 ;;
18642 *)
18643 eval "ac_cv_func_gai_strerror=yes"
18644 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18645 cat >>confdefs.h <<_ACEOF
18646#define $ac_tr_func 1
18647_ACEOF
18648
18649 cat >>confdefs.h <<_ACEOF
18650#define $ac_tr_lib 1
18651_ACEOF
18652
18653 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18654echo "${ECHO_T}yes, in $ac_res" >&6
18655 ;;
18656esac
18657
18658
18659if test -n "$LIB_gai_strerror"; then
18660 LIBS="$LIB_gai_strerror $LIBS"
18661fi
18662
18663if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
18664 LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
18665fi
18666
18667
18668echo "$as_me:$LINENO: checking for chown" >&5
18669echo $ECHO_N "checking for chown... $ECHO_C" >&6
18670if test "${ac_cv_func_chown+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673 cat >conftest.$ac_ext <<_ACEOF
18674#line $LINENO "configure"
18675#include "confdefs.h"
18676/* System header to define __stub macros and hopefully few prototypes,
18677 which can conflict with char chown (); below. */
18678#include <assert.h>
18679/* Override any gcc2 internal prototype to avoid an error. */
18680#ifdef __cplusplus
18681extern "C"
18682#endif
18683/* We use char because int might match the return type of a gcc2
18684 builtin and then its argument prototype would still apply. */
18685char chown ();
18686char (*f) ();
18687
18688#ifdef F77_DUMMY_MAIN
18689# ifdef __cplusplus
18690 extern "C"
18691# endif
18692 int F77_DUMMY_MAIN() { return 1; }
18693#endif
18694int
18695main ()
18696{
18697/* The GNU C library defines this for functions which it implements
18698 to always fail with ENOSYS. Some functions are actually named
18699 something starting with __ and the normal name is an alias. */
18700#if defined (__stub_chown) || defined (__stub___chown)
18701choke me
18702#else
18703f = chown;
18704#endif
18705
18706 ;
18707 return 0;
18708}
18709_ACEOF
18710rm -f conftest.$ac_objext conftest$ac_exeext
18711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18712 (eval $ac_link) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -s conftest$ac_exeext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 ac_cv_func_chown=yes
18723else
18724 echo "$as_me: failed program was:" >&5
18725cat conftest.$ac_ext >&5
18726ac_cv_func_chown=no
18727fi
18728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18729fi
18730echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
18731echo "${ECHO_T}$ac_cv_func_chown" >&6
18732if test $ac_cv_func_chown = yes; then
18733
18734cat >>confdefs.h <<_ACEOF
18735#define HAVE_CHOWN 1
18736_ACEOF
18737
18738else
18739 LIBOBJS="$LIBOBJS chown.$ac_objext"
18740fi
18741echo "$as_me:$LINENO: checking for copyhostent" >&5
18742echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
18743if test "${ac_cv_func_copyhostent+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745else
18746 cat >conftest.$ac_ext <<_ACEOF
18747#line $LINENO "configure"
18748#include "confdefs.h"
18749/* System header to define __stub macros and hopefully few prototypes,
18750 which can conflict with char copyhostent (); below. */
18751#include <assert.h>
18752/* Override any gcc2 internal prototype to avoid an error. */
18753#ifdef __cplusplus
18754extern "C"
18755#endif
18756/* We use char because int might match the return type of a gcc2
18757 builtin and then its argument prototype would still apply. */
18758char copyhostent ();
18759char (*f) ();
18760
18761#ifdef F77_DUMMY_MAIN
18762# ifdef __cplusplus
18763 extern "C"
18764# endif
18765 int F77_DUMMY_MAIN() { return 1; }
18766#endif
18767int
18768main ()
18769{
18770/* The GNU C library defines this for functions which it implements
18771 to always fail with ENOSYS. Some functions are actually named
18772 something starting with __ and the normal name is an alias. */
18773#if defined (__stub_copyhostent) || defined (__stub___copyhostent)
18774choke me
18775#else
18776f = copyhostent;
18777#endif
18778
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext conftest$ac_exeext
18784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18785 (eval $ac_link) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
18789 { ac_try='test -s conftest$ac_exeext'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795 ac_cv_func_copyhostent=yes
18796else
18797 echo "$as_me: failed program was:" >&5
18798cat conftest.$ac_ext >&5
18799ac_cv_func_copyhostent=no
18800fi
18801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18802fi
18803echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
18804echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
18805if test $ac_cv_func_copyhostent = yes; then
18806
18807cat >>confdefs.h <<_ACEOF
18808#define HAVE_COPYHOSTENT 1
18809_ACEOF
18810
18811else
18812 LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
18813fi
18814echo "$as_me:$LINENO: checking for daemon" >&5
18815echo $ECHO_N "checking for daemon... $ECHO_C" >&6
18816if test "${ac_cv_func_daemon+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18818else
18819 cat >conftest.$ac_ext <<_ACEOF
18820#line $LINENO "configure"
18821#include "confdefs.h"
18822/* System header to define __stub macros and hopefully few prototypes,
18823 which can conflict with char daemon (); below. */
18824#include <assert.h>
18825/* Override any gcc2 internal prototype to avoid an error. */
18826#ifdef __cplusplus
18827extern "C"
18828#endif
18829/* We use char because int might match the return type of a gcc2
18830 builtin and then its argument prototype would still apply. */
18831char daemon ();
18832char (*f) ();
18833
18834#ifdef F77_DUMMY_MAIN
18835# ifdef __cplusplus
18836 extern "C"
18837# endif
18838 int F77_DUMMY_MAIN() { return 1; }
18839#endif
18840int
18841main ()
18842{
18843/* The GNU C library defines this for functions which it implements
18844 to always fail with ENOSYS. Some functions are actually named
18845 something starting with __ and the normal name is an alias. */
18846#if defined (__stub_daemon) || defined (__stub___daemon)
18847choke me
18848#else
18849f = daemon;
18850#endif
18851
18852 ;
18853 return 0;
18854}
18855_ACEOF
18856rm -f conftest.$ac_objext conftest$ac_exeext
18857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18858 (eval $ac_link) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try='test -s conftest$ac_exeext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 ac_cv_func_daemon=yes
18869else
18870 echo "$as_me: failed program was:" >&5
18871cat conftest.$ac_ext >&5
18872ac_cv_func_daemon=no
18873fi
18874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18875fi
18876echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
18877echo "${ECHO_T}$ac_cv_func_daemon" >&6
18878if test $ac_cv_func_daemon = yes; then
18879
18880cat >>confdefs.h <<_ACEOF
18881#define HAVE_DAEMON 1
18882_ACEOF
18883
18884else
18885 LIBOBJS="$LIBOBJS daemon.$ac_objext"
18886fi
18887echo "$as_me:$LINENO: checking for ecalloc" >&5
18888echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
18889if test "${ac_cv_func_ecalloc+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891else
18892 cat >conftest.$ac_ext <<_ACEOF
18893#line $LINENO "configure"
18894#include "confdefs.h"
18895/* System header to define __stub macros and hopefully few prototypes,
18896 which can conflict with char ecalloc (); below. */
18897#include <assert.h>
18898/* Override any gcc2 internal prototype to avoid an error. */
18899#ifdef __cplusplus
18900extern "C"
18901#endif
18902/* We use char because int might match the return type of a gcc2
18903 builtin and then its argument prototype would still apply. */
18904char ecalloc ();
18905char (*f) ();
18906
18907#ifdef F77_DUMMY_MAIN
18908# ifdef __cplusplus
18909 extern "C"
18910# endif
18911 int F77_DUMMY_MAIN() { return 1; }
18912#endif
18913int
18914main ()
18915{
18916/* The GNU C library defines this for functions which it implements
18917 to always fail with ENOSYS. Some functions are actually named
18918 something starting with __ and the normal name is an alias. */
18919#if defined (__stub_ecalloc) || defined (__stub___ecalloc)
18920choke me
18921#else
18922f = ecalloc;
18923#endif
18924
18925 ;
18926 return 0;
18927}
18928_ACEOF
18929rm -f conftest.$ac_objext conftest$ac_exeext
18930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18931 (eval $ac_link) 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
18935 { ac_try='test -s conftest$ac_exeext'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
18941 ac_cv_func_ecalloc=yes
18942else
18943 echo "$as_me: failed program was:" >&5
18944cat conftest.$ac_ext >&5
18945ac_cv_func_ecalloc=no
18946fi
18947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18948fi
18949echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
18950echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
18951if test $ac_cv_func_ecalloc = yes; then
18952
18953cat >>confdefs.h <<_ACEOF
18954#define HAVE_ECALLOC 1
18955_ACEOF
18956
18957else
18958 LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
18959fi
18960echo "$as_me:$LINENO: checking for emalloc" >&5
18961echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
18962if test "${ac_cv_func_emalloc+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964else
18965 cat >conftest.$ac_ext <<_ACEOF
18966#line $LINENO "configure"
18967#include "confdefs.h"
18968/* System header to define __stub macros and hopefully few prototypes,
18969 which can conflict with char emalloc (); below. */
18970#include <assert.h>
18971/* Override any gcc2 internal prototype to avoid an error. */
18972#ifdef __cplusplus
18973extern "C"
18974#endif
18975/* We use char because int might match the return type of a gcc2
18976 builtin and then its argument prototype would still apply. */
18977char emalloc ();
18978char (*f) ();
18979
18980#ifdef F77_DUMMY_MAIN
18981# ifdef __cplusplus
18982 extern "C"
18983# endif
18984 int F77_DUMMY_MAIN() { return 1; }
18985#endif
18986int
18987main ()
18988{
18989/* The GNU C library defines this for functions which it implements
18990 to always fail with ENOSYS. Some functions are actually named
18991 something starting with __ and the normal name is an alias. */
18992#if defined (__stub_emalloc) || defined (__stub___emalloc)
18993choke me
18994#else
18995f = emalloc;
18996#endif
18997
18998 ;
18999 return 0;
19000}
19001_ACEOF
19002rm -f conftest.$ac_objext conftest$ac_exeext
19003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19004 (eval $ac_link) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -s conftest$ac_exeext'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 ac_cv_func_emalloc=yes
19015else
19016 echo "$as_me: failed program was:" >&5
19017cat conftest.$ac_ext >&5
19018ac_cv_func_emalloc=no
19019fi
19020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19021fi
19022echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
19023echo "${ECHO_T}$ac_cv_func_emalloc" >&6
19024if test $ac_cv_func_emalloc = yes; then
19025
19026cat >>confdefs.h <<_ACEOF
19027#define HAVE_EMALLOC 1
19028_ACEOF
19029
19030else
19031 LIBOBJS="$LIBOBJS emalloc.$ac_objext"
19032fi
19033echo "$as_me:$LINENO: checking for erealloc" >&5
19034echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
19035if test "${ac_cv_func_erealloc+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037else
19038 cat >conftest.$ac_ext <<_ACEOF
19039#line $LINENO "configure"
19040#include "confdefs.h"
19041/* System header to define __stub macros and hopefully few prototypes,
19042 which can conflict with char erealloc (); below. */
19043#include <assert.h>
19044/* Override any gcc2 internal prototype to avoid an error. */
19045#ifdef __cplusplus
19046extern "C"
19047#endif
19048/* We use char because int might match the return type of a gcc2
19049 builtin and then its argument prototype would still apply. */
19050char erealloc ();
19051char (*f) ();
19052
19053#ifdef F77_DUMMY_MAIN
19054# ifdef __cplusplus
19055 extern "C"
19056# endif
19057 int F77_DUMMY_MAIN() { return 1; }
19058#endif
19059int
19060main ()
19061{
19062/* The GNU C library defines this for functions which it implements
19063 to always fail with ENOSYS. Some functions are actually named
19064 something starting with __ and the normal name is an alias. */
19065#if defined (__stub_erealloc) || defined (__stub___erealloc)
19066choke me
19067#else
19068f = erealloc;
19069#endif
19070
19071 ;
19072 return 0;
19073}
19074_ACEOF
19075rm -f conftest.$ac_objext conftest$ac_exeext
19076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077 (eval $ac_link) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
19081 { ac_try='test -s conftest$ac_exeext'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_cv_func_erealloc=yes
19088else
19089 echo "$as_me: failed program was:" >&5
19090cat conftest.$ac_ext >&5
19091ac_cv_func_erealloc=no
19092fi
19093rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19094fi
19095echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
19096echo "${ECHO_T}$ac_cv_func_erealloc" >&6
19097if test $ac_cv_func_erealloc = yes; then
19098
19099cat >>confdefs.h <<_ACEOF
19100#define HAVE_EREALLOC 1
19101_ACEOF
19102
19103else
19104 LIBOBJS="$LIBOBJS erealloc.$ac_objext"
19105fi
19106echo "$as_me:$LINENO: checking for estrdup" >&5
19107echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
19108if test "${ac_cv_func_estrdup+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110else
19111 cat >conftest.$ac_ext <<_ACEOF
19112#line $LINENO "configure"
19113#include "confdefs.h"
19114/* System header to define __stub macros and hopefully few prototypes,
19115 which can conflict with char estrdup (); below. */
19116#include <assert.h>
19117/* Override any gcc2 internal prototype to avoid an error. */
19118#ifdef __cplusplus
19119extern "C"
19120#endif
19121/* We use char because int might match the return type of a gcc2
19122 builtin and then its argument prototype would still apply. */
19123char estrdup ();
19124char (*f) ();
19125
19126#ifdef F77_DUMMY_MAIN
19127# ifdef __cplusplus
19128 extern "C"
19129# endif
19130 int F77_DUMMY_MAIN() { return 1; }
19131#endif
19132int
19133main ()
19134{
19135/* The GNU C library defines this for functions which it implements
19136 to always fail with ENOSYS. Some functions are actually named
19137 something starting with __ and the normal name is an alias. */
19138#if defined (__stub_estrdup) || defined (__stub___estrdup)
19139choke me
19140#else
19141f = estrdup;
19142#endif
19143
19144 ;
19145 return 0;
19146}
19147_ACEOF
19148rm -f conftest.$ac_objext conftest$ac_exeext
19149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19150 (eval $ac_link) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -s conftest$ac_exeext'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_func_estrdup=yes
19161else
19162 echo "$as_me: failed program was:" >&5
19163cat conftest.$ac_ext >&5
19164ac_cv_func_estrdup=no
19165fi
19166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19167fi
19168echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
19169echo "${ECHO_T}$ac_cv_func_estrdup" >&6
19170if test $ac_cv_func_estrdup = yes; then
19171
19172cat >>confdefs.h <<_ACEOF
19173#define HAVE_ESTRDUP 1
19174_ACEOF
19175
19176else
19177 LIBOBJS="$LIBOBJS estrdup.$ac_objext"
19178fi
19179echo "$as_me:$LINENO: checking for err" >&5
19180echo $ECHO_N "checking for err... $ECHO_C" >&6
19181if test "${ac_cv_func_err+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183else
19184 cat >conftest.$ac_ext <<_ACEOF
19185#line $LINENO "configure"
19186#include "confdefs.h"
19187/* System header to define __stub macros and hopefully few prototypes,
19188 which can conflict with char err (); below. */
19189#include <assert.h>
19190/* Override any gcc2 internal prototype to avoid an error. */
19191#ifdef __cplusplus
19192extern "C"
19193#endif
19194/* We use char because int might match the return type of a gcc2
19195 builtin and then its argument prototype would still apply. */
19196char err ();
19197char (*f) ();
19198
19199#ifdef F77_DUMMY_MAIN
19200# ifdef __cplusplus
19201 extern "C"
19202# endif
19203 int F77_DUMMY_MAIN() { return 1; }
19204#endif
19205int
19206main ()
19207{
19208/* The GNU C library defines this for functions which it implements
19209 to always fail with ENOSYS. Some functions are actually named
19210 something starting with __ and the normal name is an alias. */
19211#if defined (__stub_err) || defined (__stub___err)
19212choke me
19213#else
19214f = err;
19215#endif
19216
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext conftest$ac_exeext
19222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223 (eval $ac_link) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try='test -s conftest$ac_exeext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_cv_func_err=yes
19234else
19235 echo "$as_me: failed program was:" >&5
19236cat conftest.$ac_ext >&5
19237ac_cv_func_err=no
19238fi
19239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19240fi
19241echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
19242echo "${ECHO_T}$ac_cv_func_err" >&6
19243if test $ac_cv_func_err = yes; then
19244
19245cat >>confdefs.h <<_ACEOF
19246#define HAVE_ERR 1
19247_ACEOF
19248
19249else
19250 LIBOBJS="$LIBOBJS err.$ac_objext"
19251fi
19252echo "$as_me:$LINENO: checking for errx" >&5
19253echo $ECHO_N "checking for errx... $ECHO_C" >&6
19254if test "${ac_cv_func_errx+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256else
19257 cat >conftest.$ac_ext <<_ACEOF
19258#line $LINENO "configure"
19259#include "confdefs.h"
19260/* System header to define __stub macros and hopefully few prototypes,
19261 which can conflict with char errx (); below. */
19262#include <assert.h>
19263/* Override any gcc2 internal prototype to avoid an error. */
19264#ifdef __cplusplus
19265extern "C"
19266#endif
19267/* We use char because int might match the return type of a gcc2
19268 builtin and then its argument prototype would still apply. */
19269char errx ();
19270char (*f) ();
19271
19272#ifdef F77_DUMMY_MAIN
19273# ifdef __cplusplus
19274 extern "C"
19275# endif
19276 int F77_DUMMY_MAIN() { return 1; }
19277#endif
19278int
19279main ()
19280{
19281/* The GNU C library defines this for functions which it implements
19282 to always fail with ENOSYS. Some functions are actually named
19283 something starting with __ and the normal name is an alias. */
19284#if defined (__stub_errx) || defined (__stub___errx)
19285choke me
19286#else
19287f = errx;
19288#endif
19289
19290 ;
19291 return 0;
19292}
19293_ACEOF
19294rm -f conftest.$ac_objext conftest$ac_exeext
19295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19296 (eval $ac_link) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -s conftest$ac_exeext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_func_errx=yes
19307else
19308 echo "$as_me: failed program was:" >&5
19309cat conftest.$ac_ext >&5
19310ac_cv_func_errx=no
19311fi
19312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19313fi
19314echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
19315echo "${ECHO_T}$ac_cv_func_errx" >&6
19316if test $ac_cv_func_errx = yes; then
19317
19318cat >>confdefs.h <<_ACEOF
19319#define HAVE_ERRX 1
19320_ACEOF
19321
19322else
19323 LIBOBJS="$LIBOBJS errx.$ac_objext"
19324fi
19325echo "$as_me:$LINENO: checking for fchown" >&5
19326echo $ECHO_N "checking for fchown... $ECHO_C" >&6
19327if test "${ac_cv_func_fchown+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329else
19330 cat >conftest.$ac_ext <<_ACEOF
19331#line $LINENO "configure"
19332#include "confdefs.h"
19333/* System header to define __stub macros and hopefully few prototypes,
19334 which can conflict with char fchown (); below. */
19335#include <assert.h>
19336/* Override any gcc2 internal prototype to avoid an error. */
19337#ifdef __cplusplus
19338extern "C"
19339#endif
19340/* We use char because int might match the return type of a gcc2
19341 builtin and then its argument prototype would still apply. */
19342char fchown ();
19343char (*f) ();
19344
19345#ifdef F77_DUMMY_MAIN
19346# ifdef __cplusplus
19347 extern "C"
19348# endif
19349 int F77_DUMMY_MAIN() { return 1; }
19350#endif
19351int
19352main ()
19353{
19354/* The GNU C library defines this for functions which it implements
19355 to always fail with ENOSYS. Some functions are actually named
19356 something starting with __ and the normal name is an alias. */
19357#if defined (__stub_fchown) || defined (__stub___fchown)
19358choke me
19359#else
19360f = fchown;
19361#endif
19362
19363 ;
19364 return 0;
19365}
19366_ACEOF
19367rm -f conftest.$ac_objext conftest$ac_exeext
19368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369 (eval $ac_link) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -s conftest$ac_exeext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_func_fchown=yes
19380else
19381 echo "$as_me: failed program was:" >&5
19382cat conftest.$ac_ext >&5
19383ac_cv_func_fchown=no
19384fi
19385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19386fi
19387echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
19388echo "${ECHO_T}$ac_cv_func_fchown" >&6
19389if test $ac_cv_func_fchown = yes; then
19390
19391cat >>confdefs.h <<_ACEOF
19392#define HAVE_FCHOWN 1
19393_ACEOF
19394
19395else
19396 LIBOBJS="$LIBOBJS fchown.$ac_objext"
19397fi
19398echo "$as_me:$LINENO: checking for flock" >&5
19399echo $ECHO_N "checking for flock... $ECHO_C" >&6
19400if test "${ac_cv_func_flock+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19402else
19403 cat >conftest.$ac_ext <<_ACEOF
19404#line $LINENO "configure"
19405#include "confdefs.h"
19406/* System header to define __stub macros and hopefully few prototypes,
19407 which can conflict with char flock (); below. */
19408#include <assert.h>
19409/* Override any gcc2 internal prototype to avoid an error. */
19410#ifdef __cplusplus
19411extern "C"
19412#endif
19413/* We use char because int might match the return type of a gcc2
19414 builtin and then its argument prototype would still apply. */
19415char flock ();
19416char (*f) ();
19417
19418#ifdef F77_DUMMY_MAIN
19419# ifdef __cplusplus
19420 extern "C"
19421# endif
19422 int F77_DUMMY_MAIN() { return 1; }
19423#endif
19424int
19425main ()
19426{
19427/* The GNU C library defines this for functions which it implements
19428 to always fail with ENOSYS. Some functions are actually named
19429 something starting with __ and the normal name is an alias. */
19430#if defined (__stub_flock) || defined (__stub___flock)
19431choke me
19432#else
19433f = flock;
19434#endif
19435
19436 ;
19437 return 0;
19438}
19439_ACEOF
19440rm -f conftest.$ac_objext conftest$ac_exeext
19441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19442 (eval $ac_link) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
19446 { ac_try='test -s conftest$ac_exeext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_cv_func_flock=yes
19453else
19454 echo "$as_me: failed program was:" >&5
19455cat conftest.$ac_ext >&5
19456ac_cv_func_flock=no
19457fi
19458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19459fi
19460echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
19461echo "${ECHO_T}$ac_cv_func_flock" >&6
19462if test $ac_cv_func_flock = yes; then
19463
19464cat >>confdefs.h <<_ACEOF
19465#define HAVE_FLOCK 1
19466_ACEOF
19467
19468else
19469 LIBOBJS="$LIBOBJS flock.$ac_objext"
19470fi
19471echo "$as_me:$LINENO: checking for fnmatch" >&5
19472echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
19473if test "${ac_cv_func_fnmatch+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475else
19476 cat >conftest.$ac_ext <<_ACEOF
19477#line $LINENO "configure"
19478#include "confdefs.h"
19479/* System header to define __stub macros and hopefully few prototypes,
19480 which can conflict with char fnmatch (); below. */
19481#include <assert.h>
19482/* Override any gcc2 internal prototype to avoid an error. */
19483#ifdef __cplusplus
19484extern "C"
19485#endif
19486/* We use char because int might match the return type of a gcc2
19487 builtin and then its argument prototype would still apply. */
19488char fnmatch ();
19489char (*f) ();
19490
19491#ifdef F77_DUMMY_MAIN
19492# ifdef __cplusplus
19493 extern "C"
19494# endif
19495 int F77_DUMMY_MAIN() { return 1; }
19496#endif
19497int
19498main ()
19499{
19500/* The GNU C library defines this for functions which it implements
19501 to always fail with ENOSYS. Some functions are actually named
19502 something starting with __ and the normal name is an alias. */
19503#if defined (__stub_fnmatch) || defined (__stub___fnmatch)
19504choke me
19505#else
19506f = fnmatch;
19507#endif
19508
19509 ;
19510 return 0;
19511}
19512_ACEOF
19513rm -f conftest.$ac_objext conftest$ac_exeext
19514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515 (eval $ac_link) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -s conftest$ac_exeext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_func_fnmatch=yes
19526else
19527 echo "$as_me: failed program was:" >&5
19528cat conftest.$ac_ext >&5
19529ac_cv_func_fnmatch=no
19530fi
19531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19532fi
19533echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
19534echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
19535if test $ac_cv_func_fnmatch = yes; then
19536
19537cat >>confdefs.h <<_ACEOF
19538#define HAVE_FNMATCH 1
19539_ACEOF
19540
19541else
19542 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
19543fi
19544echo "$as_me:$LINENO: checking for freehostent" >&5
19545echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
19546if test "${ac_cv_func_freehostent+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548else
19549 cat >conftest.$ac_ext <<_ACEOF
19550#line $LINENO "configure"
19551#include "confdefs.h"
19552/* System header to define __stub macros and hopefully few prototypes,
19553 which can conflict with char freehostent (); below. */
19554#include <assert.h>
19555/* Override any gcc2 internal prototype to avoid an error. */
19556#ifdef __cplusplus
19557extern "C"
19558#endif
19559/* We use char because int might match the return type of a gcc2
19560 builtin and then its argument prototype would still apply. */
19561char freehostent ();
19562char (*f) ();
19563
19564#ifdef F77_DUMMY_MAIN
19565# ifdef __cplusplus
19566 extern "C"
19567# endif
19568 int F77_DUMMY_MAIN() { return 1; }
19569#endif
19570int
19571main ()
19572{
19573/* The GNU C library defines this for functions which it implements
19574 to always fail with ENOSYS. Some functions are actually named
19575 something starting with __ and the normal name is an alias. */
19576#if defined (__stub_freehostent) || defined (__stub___freehostent)
19577choke me
19578#else
19579f = freehostent;
19580#endif
19581
19582 ;
19583 return 0;
19584}
19585_ACEOF
19586rm -f conftest.$ac_objext conftest$ac_exeext
19587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19588 (eval $ac_link) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -s conftest$ac_exeext'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19598 ac_cv_func_freehostent=yes
19599else
19600 echo "$as_me: failed program was:" >&5
19601cat conftest.$ac_ext >&5
19602ac_cv_func_freehostent=no
19603fi
19604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19605fi
19606echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
19607echo "${ECHO_T}$ac_cv_func_freehostent" >&6
19608if test $ac_cv_func_freehostent = yes; then
19609
19610cat >>confdefs.h <<_ACEOF
19611#define HAVE_FREEHOSTENT 1
19612_ACEOF
19613
19614else
19615 LIBOBJS="$LIBOBJS freehostent.$ac_objext"
19616fi
19617echo "$as_me:$LINENO: checking for getcwd" >&5
19618echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
19619if test "${ac_cv_func_getcwd+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621else
19622 cat >conftest.$ac_ext <<_ACEOF
19623#line $LINENO "configure"
19624#include "confdefs.h"
19625/* System header to define __stub macros and hopefully few prototypes,
19626 which can conflict with char getcwd (); below. */
19627#include <assert.h>
19628/* Override any gcc2 internal prototype to avoid an error. */
19629#ifdef __cplusplus
19630extern "C"
19631#endif
19632/* We use char because int might match the return type of a gcc2
19633 builtin and then its argument prototype would still apply. */
19634char getcwd ();
19635char (*f) ();
19636
19637#ifdef F77_DUMMY_MAIN
19638# ifdef __cplusplus
19639 extern "C"
19640# endif
19641 int F77_DUMMY_MAIN() { return 1; }
19642#endif
19643int
19644main ()
19645{
19646/* The GNU C library defines this for functions which it implements
19647 to always fail with ENOSYS. Some functions are actually named
19648 something starting with __ and the normal name is an alias. */
19649#if defined (__stub_getcwd) || defined (__stub___getcwd)
19650choke me
19651#else
19652f = getcwd;
19653#endif
19654
19655 ;
19656 return 0;
19657}
19658_ACEOF
19659rm -f conftest.$ac_objext conftest$ac_exeext
19660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661 (eval $ac_link) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
19665 { ac_try='test -s conftest$ac_exeext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 ac_cv_func_getcwd=yes
19672else
19673 echo "$as_me: failed program was:" >&5
19674cat conftest.$ac_ext >&5
19675ac_cv_func_getcwd=no
19676fi
19677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19678fi
19679echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
19680echo "${ECHO_T}$ac_cv_func_getcwd" >&6
19681if test $ac_cv_func_getcwd = yes; then
19682
19683cat >>confdefs.h <<_ACEOF
19684#define HAVE_GETCWD 1
19685_ACEOF
19686
19687else
19688 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
19689fi
19690echo "$as_me:$LINENO: checking for getdtablesize" >&5
19691echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
19692if test "${ac_cv_func_getdtablesize+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19694else
19695 cat >conftest.$ac_ext <<_ACEOF
19696#line $LINENO "configure"
19697#include "confdefs.h"
19698/* System header to define __stub macros and hopefully few prototypes,
19699 which can conflict with char getdtablesize (); below. */
19700#include <assert.h>
19701/* Override any gcc2 internal prototype to avoid an error. */
19702#ifdef __cplusplus
19703extern "C"
19704#endif
19705/* We use char because int might match the return type of a gcc2
19706 builtin and then its argument prototype would still apply. */
19707char getdtablesize ();
19708char (*f) ();
19709
19710#ifdef F77_DUMMY_MAIN
19711# ifdef __cplusplus
19712 extern "C"
19713# endif
19714 int F77_DUMMY_MAIN() { return 1; }
19715#endif
19716int
19717main ()
19718{
19719/* The GNU C library defines this for functions which it implements
19720 to always fail with ENOSYS. Some functions are actually named
19721 something starting with __ and the normal name is an alias. */
19722#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
19723choke me
19724#else
19725f = getdtablesize;
19726#endif
19727
19728 ;
19729 return 0;
19730}
19731_ACEOF
19732rm -f conftest.$ac_objext conftest$ac_exeext
19733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19734 (eval $ac_link) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -s conftest$ac_exeext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_cv_func_getdtablesize=yes
19745else
19746 echo "$as_me: failed program was:" >&5
19747cat conftest.$ac_ext >&5
19748ac_cv_func_getdtablesize=no
19749fi
19750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19751fi
19752echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
19753echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
19754if test $ac_cv_func_getdtablesize = yes; then
19755
19756cat >>confdefs.h <<_ACEOF
19757#define HAVE_GETDTABLESIZE 1
19758_ACEOF
19759
19760else
19761 LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
19762fi
19763echo "$as_me:$LINENO: checking for getegid" >&5
19764echo $ECHO_N "checking for getegid... $ECHO_C" >&6
19765if test "${ac_cv_func_getegid+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767else
19768 cat >conftest.$ac_ext <<_ACEOF
19769#line $LINENO "configure"
19770#include "confdefs.h"
19771/* System header to define __stub macros and hopefully few prototypes,
19772 which can conflict with char getegid (); below. */
19773#include <assert.h>
19774/* Override any gcc2 internal prototype to avoid an error. */
19775#ifdef __cplusplus
19776extern "C"
19777#endif
19778/* We use char because int might match the return type of a gcc2
19779 builtin and then its argument prototype would still apply. */
19780char getegid ();
19781char (*f) ();
19782
19783#ifdef F77_DUMMY_MAIN
19784# ifdef __cplusplus
19785 extern "C"
19786# endif
19787 int F77_DUMMY_MAIN() { return 1; }
19788#endif
19789int
19790main ()
19791{
19792/* The GNU C library defines this for functions which it implements
19793 to always fail with ENOSYS. Some functions are actually named
19794 something starting with __ and the normal name is an alias. */
19795#if defined (__stub_getegid) || defined (__stub___getegid)
19796choke me
19797#else
19798f = getegid;
19799#endif
19800
19801 ;
19802 return 0;
19803}
19804_ACEOF
19805rm -f conftest.$ac_objext conftest$ac_exeext
19806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19807 (eval $ac_link) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -s conftest$ac_exeext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 ac_cv_func_getegid=yes
19818else
19819 echo "$as_me: failed program was:" >&5
19820cat conftest.$ac_ext >&5
19821ac_cv_func_getegid=no
19822fi
19823rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19824fi
19825echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
19826echo "${ECHO_T}$ac_cv_func_getegid" >&6
19827if test $ac_cv_func_getegid = yes; then
19828
19829cat >>confdefs.h <<_ACEOF
19830#define HAVE_GETEGID 1
19831_ACEOF
19832
19833else
19834 LIBOBJS="$LIBOBJS getegid.$ac_objext"
19835fi
19836echo "$as_me:$LINENO: checking for geteuid" >&5
19837echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
19838if test "${ac_cv_func_geteuid+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840else
19841 cat >conftest.$ac_ext <<_ACEOF
19842#line $LINENO "configure"
19843#include "confdefs.h"
19844/* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char geteuid (); below. */
19846#include <assert.h>
19847/* Override any gcc2 internal prototype to avoid an error. */
19848#ifdef __cplusplus
19849extern "C"
19850#endif
19851/* We use char because int might match the return type of a gcc2
19852 builtin and then its argument prototype would still apply. */
19853char geteuid ();
19854char (*f) ();
19855
19856#ifdef F77_DUMMY_MAIN
19857# ifdef __cplusplus
19858 extern "C"
19859# endif
19860 int F77_DUMMY_MAIN() { return 1; }
19861#endif
19862int
19863main ()
19864{
19865/* The GNU C library defines this for functions which it implements
19866 to always fail with ENOSYS. Some functions are actually named
19867 something starting with __ and the normal name is an alias. */
19868#if defined (__stub_geteuid) || defined (__stub___geteuid)
19869choke me
19870#else
19871f = geteuid;
19872#endif
19873
19874 ;
19875 return 0;
19876}
19877_ACEOF
19878rm -f conftest.$ac_objext conftest$ac_exeext
19879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19880 (eval $ac_link) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -s conftest$ac_exeext'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 ac_cv_func_geteuid=yes
19891else
19892 echo "$as_me: failed program was:" >&5
19893cat conftest.$ac_ext >&5
19894ac_cv_func_geteuid=no
19895fi
19896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19897fi
19898echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
19899echo "${ECHO_T}$ac_cv_func_geteuid" >&6
19900if test $ac_cv_func_geteuid = yes; then
19901
19902cat >>confdefs.h <<_ACEOF
19903#define HAVE_GETEUID 1
19904_ACEOF
19905
19906else
19907 LIBOBJS="$LIBOBJS geteuid.$ac_objext"
19908fi
19909echo "$as_me:$LINENO: checking for getgid" >&5
19910echo $ECHO_N "checking for getgid... $ECHO_C" >&6
19911if test "${ac_cv_func_getgid+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913else
19914 cat >conftest.$ac_ext <<_ACEOF
19915#line $LINENO "configure"
19916#include "confdefs.h"
19917/* System header to define __stub macros and hopefully few prototypes,
19918 which can conflict with char getgid (); below. */
19919#include <assert.h>
19920/* Override any gcc2 internal prototype to avoid an error. */
19921#ifdef __cplusplus
19922extern "C"
19923#endif
19924/* We use char because int might match the return type of a gcc2
19925 builtin and then its argument prototype would still apply. */
19926char getgid ();
19927char (*f) ();
19928
19929#ifdef F77_DUMMY_MAIN
19930# ifdef __cplusplus
19931 extern "C"
19932# endif
19933 int F77_DUMMY_MAIN() { return 1; }
19934#endif
19935int
19936main ()
19937{
19938/* The GNU C library defines this for functions which it implements
19939 to always fail with ENOSYS. Some functions are actually named
19940 something starting with __ and the normal name is an alias. */
19941#if defined (__stub_getgid) || defined (__stub___getgid)
19942choke me
19943#else
19944f = getgid;
19945#endif
19946
19947 ;
19948 return 0;
19949}
19950_ACEOF
19951rm -f conftest.$ac_objext conftest$ac_exeext
19952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19953 (eval $ac_link) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
19957 { ac_try='test -s conftest$ac_exeext'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_cv_func_getgid=yes
19964else
19965 echo "$as_me: failed program was:" >&5
19966cat conftest.$ac_ext >&5
19967ac_cv_func_getgid=no
19968fi
19969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19970fi
19971echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
19972echo "${ECHO_T}$ac_cv_func_getgid" >&6
19973if test $ac_cv_func_getgid = yes; then
19974
19975cat >>confdefs.h <<_ACEOF
19976#define HAVE_GETGID 1
19977_ACEOF
19978
19979else
19980 LIBOBJS="$LIBOBJS getgid.$ac_objext"
19981fi
19982echo "$as_me:$LINENO: checking for gethostname" >&5
19983echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
19984if test "${ac_cv_func_gethostname+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19986else
19987 cat >conftest.$ac_ext <<_ACEOF
19988#line $LINENO "configure"
19989#include "confdefs.h"
19990/* System header to define __stub macros and hopefully few prototypes,
19991 which can conflict with char gethostname (); below. */
19992#include <assert.h>
19993/* Override any gcc2 internal prototype to avoid an error. */
19994#ifdef __cplusplus
19995extern "C"
19996#endif
19997/* We use char because int might match the return type of a gcc2
19998 builtin and then its argument prototype would still apply. */
19999char gethostname ();
20000char (*f) ();
20001
20002#ifdef F77_DUMMY_MAIN
20003# ifdef __cplusplus
20004 extern "C"
20005# endif
20006 int F77_DUMMY_MAIN() { return 1; }
20007#endif
20008int
20009main ()
20010{
20011/* The GNU C library defines this for functions which it implements
20012 to always fail with ENOSYS. Some functions are actually named
20013 something starting with __ and the normal name is an alias. */
20014#if defined (__stub_gethostname) || defined (__stub___gethostname)
20015choke me
20016#else
20017f = gethostname;
20018#endif
20019
20020 ;
20021 return 0;
20022}
20023_ACEOF
20024rm -f conftest.$ac_objext conftest$ac_exeext
20025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20026 (eval $ac_link) 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
20030 { ac_try='test -s conftest$ac_exeext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20036 ac_cv_func_gethostname=yes
20037else
20038 echo "$as_me: failed program was:" >&5
20039cat conftest.$ac_ext >&5
20040ac_cv_func_gethostname=no
20041fi
20042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20043fi
20044echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
20045echo "${ECHO_T}$ac_cv_func_gethostname" >&6
20046if test $ac_cv_func_gethostname = yes; then
20047
20048cat >>confdefs.h <<_ACEOF
20049#define HAVE_GETHOSTNAME 1
20050_ACEOF
20051
20052else
20053 LIBOBJS="$LIBOBJS gethostname.$ac_objext"
20054fi
20055echo "$as_me:$LINENO: checking for getifaddrs" >&5
20056echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
20057if test "${ac_cv_func_getifaddrs+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059else
20060 cat >conftest.$ac_ext <<_ACEOF
20061#line $LINENO "configure"
20062#include "confdefs.h"
20063/* System header to define __stub macros and hopefully few prototypes,
20064 which can conflict with char getifaddrs (); below. */
20065#include <assert.h>
20066/* Override any gcc2 internal prototype to avoid an error. */
20067#ifdef __cplusplus
20068extern "C"
20069#endif
20070/* We use char because int might match the return type of a gcc2
20071 builtin and then its argument prototype would still apply. */
20072char getifaddrs ();
20073char (*f) ();
20074
20075#ifdef F77_DUMMY_MAIN
20076# ifdef __cplusplus
20077 extern "C"
20078# endif
20079 int F77_DUMMY_MAIN() { return 1; }
20080#endif
20081int
20082main ()
20083{
20084/* The GNU C library defines this for functions which it implements
20085 to always fail with ENOSYS. Some functions are actually named
20086 something starting with __ and the normal name is an alias. */
20087#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
20088choke me
20089#else
20090f = getifaddrs;
20091#endif
20092
20093 ;
20094 return 0;
20095}
20096_ACEOF
20097rm -f conftest.$ac_objext conftest$ac_exeext
20098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20099 (eval $ac_link) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try='test -s conftest$ac_exeext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 ac_cv_func_getifaddrs=yes
20110else
20111 echo "$as_me: failed program was:" >&5
20112cat conftest.$ac_ext >&5
20113ac_cv_func_getifaddrs=no
20114fi
20115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20116fi
20117echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
20118echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
20119if test $ac_cv_func_getifaddrs = yes; then
20120
20121cat >>confdefs.h <<_ACEOF
20122#define HAVE_GETIFADDRS 1
20123_ACEOF
20124
20125else
20126 LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
20127fi
20128echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
20129echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
20130if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20132else
20133 cat >conftest.$ac_ext <<_ACEOF
20134#line $LINENO "configure"
20135#include "confdefs.h"
20136/* System header to define __stub macros and hopefully few prototypes,
20137 which can conflict with char getipnodebyaddr (); below. */
20138#include <assert.h>
20139/* Override any gcc2 internal prototype to avoid an error. */
20140#ifdef __cplusplus
20141extern "C"
20142#endif
20143/* We use char because int might match the return type of a gcc2
20144 builtin and then its argument prototype would still apply. */
20145char getipnodebyaddr ();
20146char (*f) ();
20147
20148#ifdef F77_DUMMY_MAIN
20149# ifdef __cplusplus
20150 extern "C"
20151# endif
20152 int F77_DUMMY_MAIN() { return 1; }
20153#endif
20154int
20155main ()
20156{
20157/* The GNU C library defines this for functions which it implements
20158 to always fail with ENOSYS. Some functions are actually named
20159 something starting with __ and the normal name is an alias. */
20160#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
20161choke me
20162#else
20163f = getipnodebyaddr;
20164#endif
20165
20166 ;
20167 return 0;
20168}
20169_ACEOF
20170rm -f conftest.$ac_objext conftest$ac_exeext
20171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20172 (eval $ac_link) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try='test -s conftest$ac_exeext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 ac_cv_func_getipnodebyaddr=yes
20183else
20184 echo "$as_me: failed program was:" >&5
20185cat conftest.$ac_ext >&5
20186ac_cv_func_getipnodebyaddr=no
20187fi
20188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20189fi
20190echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
20191echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
20192if test $ac_cv_func_getipnodebyaddr = yes; then
20193
20194cat >>confdefs.h <<_ACEOF
20195#define HAVE_GETIPNODEBYADDR 1
20196_ACEOF
20197
20198else
20199 LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
20200fi
20201echo "$as_me:$LINENO: checking for getipnodebyname" >&5
20202echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
20203if test "${ac_cv_func_getipnodebyname+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20205else
20206 cat >conftest.$ac_ext <<_ACEOF
20207#line $LINENO "configure"
20208#include "confdefs.h"
20209/* System header to define __stub macros and hopefully few prototypes,
20210 which can conflict with char getipnodebyname (); below. */
20211#include <assert.h>
20212/* Override any gcc2 internal prototype to avoid an error. */
20213#ifdef __cplusplus
20214extern "C"
20215#endif
20216/* We use char because int might match the return type of a gcc2
20217 builtin and then its argument prototype would still apply. */
20218char getipnodebyname ();
20219char (*f) ();
20220
20221#ifdef F77_DUMMY_MAIN
20222# ifdef __cplusplus
20223 extern "C"
20224# endif
20225 int F77_DUMMY_MAIN() { return 1; }
20226#endif
20227int
20228main ()
20229{
20230/* The GNU C library defines this for functions which it implements
20231 to always fail with ENOSYS. Some functions are actually named
20232 something starting with __ and the normal name is an alias. */
20233#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
20234choke me
20235#else
20236f = getipnodebyname;
20237#endif
20238
20239 ;
20240 return 0;
20241}
20242_ACEOF
20243rm -f conftest.$ac_objext conftest$ac_exeext
20244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20245 (eval $ac_link) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try='test -s conftest$ac_exeext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 ac_cv_func_getipnodebyname=yes
20256else
20257 echo "$as_me: failed program was:" >&5
20258cat conftest.$ac_ext >&5
20259ac_cv_func_getipnodebyname=no
20260fi
20261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20262fi
20263echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
20264echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
20265if test $ac_cv_func_getipnodebyname = yes; then
20266
20267cat >>confdefs.h <<_ACEOF
20268#define HAVE_GETIPNODEBYNAME 1
20269_ACEOF
20270
20271else
20272 LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
20273fi
20274echo "$as_me:$LINENO: checking for getopt" >&5
20275echo $ECHO_N "checking for getopt... $ECHO_C" >&6
20276if test "${ac_cv_func_getopt+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278else
20279 cat >conftest.$ac_ext <<_ACEOF
20280#line $LINENO "configure"
20281#include "confdefs.h"
20282/* System header to define __stub macros and hopefully few prototypes,
20283 which can conflict with char getopt (); below. */
20284#include <assert.h>
20285/* Override any gcc2 internal prototype to avoid an error. */
20286#ifdef __cplusplus
20287extern "C"
20288#endif
20289/* We use char because int might match the return type of a gcc2
20290 builtin and then its argument prototype would still apply. */
20291char getopt ();
20292char (*f) ();
20293
20294#ifdef F77_DUMMY_MAIN
20295# ifdef __cplusplus
20296 extern "C"
20297# endif
20298 int F77_DUMMY_MAIN() { return 1; }
20299#endif
20300int
20301main ()
20302{
20303/* The GNU C library defines this for functions which it implements
20304 to always fail with ENOSYS. Some functions are actually named
20305 something starting with __ and the normal name is an alias. */
20306#if defined (__stub_getopt) || defined (__stub___getopt)
20307choke me
20308#else
20309f = getopt;
20310#endif
20311
20312 ;
20313 return 0;
20314}
20315_ACEOF
20316rm -f conftest.$ac_objext conftest$ac_exeext
20317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20318 (eval $ac_link) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } &&
20322 { ac_try='test -s conftest$ac_exeext'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 ac_cv_func_getopt=yes
20329else
20330 echo "$as_me: failed program was:" >&5
20331cat conftest.$ac_ext >&5
20332ac_cv_func_getopt=no
20333fi
20334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20335fi
20336echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
20337echo "${ECHO_T}$ac_cv_func_getopt" >&6
20338if test $ac_cv_func_getopt = yes; then
20339
20340cat >>confdefs.h <<_ACEOF
20341#define HAVE_GETOPT 1
20342_ACEOF
20343
20344else
20345 LIBOBJS="$LIBOBJS getopt.$ac_objext"
20346fi
20347echo "$as_me:$LINENO: checking for gettimeofday" >&5
20348echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
20349if test "${ac_cv_func_gettimeofday+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351else
20352 cat >conftest.$ac_ext <<_ACEOF
20353#line $LINENO "configure"
20354#include "confdefs.h"
20355/* System header to define __stub macros and hopefully few prototypes,
20356 which can conflict with char gettimeofday (); below. */
20357#include <assert.h>
20358/* Override any gcc2 internal prototype to avoid an error. */
20359#ifdef __cplusplus
20360extern "C"
20361#endif
20362/* We use char because int might match the return type of a gcc2
20363 builtin and then its argument prototype would still apply. */
20364char gettimeofday ();
20365char (*f) ();
20366
20367#ifdef F77_DUMMY_MAIN
20368# ifdef __cplusplus
20369 extern "C"
20370# endif
20371 int F77_DUMMY_MAIN() { return 1; }
20372#endif
20373int
20374main ()
20375{
20376/* The GNU C library defines this for functions which it implements
20377 to always fail with ENOSYS. Some functions are actually named
20378 something starting with __ and the normal name is an alias. */
20379#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
20380choke me
20381#else
20382f = gettimeofday;
20383#endif
20384
20385 ;
20386 return 0;
20387}
20388_ACEOF
20389rm -f conftest.$ac_objext conftest$ac_exeext
20390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20391 (eval $ac_link) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } &&
20395 { ac_try='test -s conftest$ac_exeext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 ac_cv_func_gettimeofday=yes
20402else
20403 echo "$as_me: failed program was:" >&5
20404cat conftest.$ac_ext >&5
20405ac_cv_func_gettimeofday=no
20406fi
20407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20408fi
20409echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
20410echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
20411if test $ac_cv_func_gettimeofday = yes; then
20412
20413cat >>confdefs.h <<_ACEOF
20414#define HAVE_GETTIMEOFDAY 1
20415_ACEOF
20416
20417else
20418 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
20419fi
20420echo "$as_me:$LINENO: checking for getuid" >&5
20421echo $ECHO_N "checking for getuid... $ECHO_C" >&6
20422if test "${ac_cv_func_getuid+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424else
20425 cat >conftest.$ac_ext <<_ACEOF
20426#line $LINENO "configure"
20427#include "confdefs.h"
20428/* System header to define __stub macros and hopefully few prototypes,
20429 which can conflict with char getuid (); below. */
20430#include <assert.h>
20431/* Override any gcc2 internal prototype to avoid an error. */
20432#ifdef __cplusplus
20433extern "C"
20434#endif
20435/* We use char because int might match the return type of a gcc2
20436 builtin and then its argument prototype would still apply. */
20437char getuid ();
20438char (*f) ();
20439
20440#ifdef F77_DUMMY_MAIN
20441# ifdef __cplusplus
20442 extern "C"
20443# endif
20444 int F77_DUMMY_MAIN() { return 1; }
20445#endif
20446int
20447main ()
20448{
20449/* The GNU C library defines this for functions which it implements
20450 to always fail with ENOSYS. Some functions are actually named
20451 something starting with __ and the normal name is an alias. */
20452#if defined (__stub_getuid) || defined (__stub___getuid)
20453choke me
20454#else
20455f = getuid;
20456#endif
20457
20458 ;
20459 return 0;
20460}
20461_ACEOF
20462rm -f conftest.$ac_objext conftest$ac_exeext
20463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } &&
20468 { ac_try='test -s conftest$ac_exeext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 ac_cv_func_getuid=yes
20475else
20476 echo "$as_me: failed program was:" >&5
20477cat conftest.$ac_ext >&5
20478ac_cv_func_getuid=no
20479fi
20480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20481fi
20482echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
20483echo "${ECHO_T}$ac_cv_func_getuid" >&6
20484if test $ac_cv_func_getuid = yes; then
20485
20486cat >>confdefs.h <<_ACEOF
20487#define HAVE_GETUID 1
20488_ACEOF
20489
20490else
20491 LIBOBJS="$LIBOBJS getuid.$ac_objext"
20492fi
20493echo "$as_me:$LINENO: checking for getusershell" >&5
20494echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
20495if test "${ac_cv_func_getusershell+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20497else
20498 cat >conftest.$ac_ext <<_ACEOF
20499#line $LINENO "configure"
20500#include "confdefs.h"
20501/* System header to define __stub macros and hopefully few prototypes,
20502 which can conflict with char getusershell (); below. */
20503#include <assert.h>
20504/* Override any gcc2 internal prototype to avoid an error. */
20505#ifdef __cplusplus
20506extern "C"
20507#endif
20508/* We use char because int might match the return type of a gcc2
20509 builtin and then its argument prototype would still apply. */
20510char getusershell ();
20511char (*f) ();
20512
20513#ifdef F77_DUMMY_MAIN
20514# ifdef __cplusplus
20515 extern "C"
20516# endif
20517 int F77_DUMMY_MAIN() { return 1; }
20518#endif
20519int
20520main ()
20521{
20522/* The GNU C library defines this for functions which it implements
20523 to always fail with ENOSYS. Some functions are actually named
20524 something starting with __ and the normal name is an alias. */
20525#if defined (__stub_getusershell) || defined (__stub___getusershell)
20526choke me
20527#else
20528f = getusershell;
20529#endif
20530
20531 ;
20532 return 0;
20533}
20534_ACEOF
20535rm -f conftest.$ac_objext conftest$ac_exeext
20536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20537 (eval $ac_link) 2>&5
20538 ac_status=$?
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try='test -s conftest$ac_exeext'
20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543 (eval $ac_try) 2>&5
20544 ac_status=$?
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20547 ac_cv_func_getusershell=yes
20548else
20549 echo "$as_me: failed program was:" >&5
20550cat conftest.$ac_ext >&5
20551ac_cv_func_getusershell=no
20552fi
20553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20554fi
20555echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
20556echo "${ECHO_T}$ac_cv_func_getusershell" >&6
20557if test $ac_cv_func_getusershell = yes; then
20558
20559cat >>confdefs.h <<_ACEOF
20560#define HAVE_GETUSERSHELL 1
20561_ACEOF
20562
20563else
20564 LIBOBJS="$LIBOBJS getusershell.$ac_objext"
20565fi
20566echo "$as_me:$LINENO: checking for initgroups" >&5
20567echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
20568if test "${ac_cv_func_initgroups+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20570else
20571 cat >conftest.$ac_ext <<_ACEOF
20572#line $LINENO "configure"
20573#include "confdefs.h"
20574/* System header to define __stub macros and hopefully few prototypes,
20575 which can conflict with char initgroups (); below. */
20576#include <assert.h>
20577/* Override any gcc2 internal prototype to avoid an error. */
20578#ifdef __cplusplus
20579extern "C"
20580#endif
20581/* We use char because int might match the return type of a gcc2
20582 builtin and then its argument prototype would still apply. */
20583char initgroups ();
20584char (*f) ();
20585
20586#ifdef F77_DUMMY_MAIN
20587# ifdef __cplusplus
20588 extern "C"
20589# endif
20590 int F77_DUMMY_MAIN() { return 1; }
20591#endif
20592int
20593main ()
20594{
20595/* The GNU C library defines this for functions which it implements
20596 to always fail with ENOSYS. Some functions are actually named
20597 something starting with __ and the normal name is an alias. */
20598#if defined (__stub_initgroups) || defined (__stub___initgroups)
20599choke me
20600#else
20601f = initgroups;
20602#endif
20603
20604 ;
20605 return 0;
20606}
20607_ACEOF
20608rm -f conftest.$ac_objext conftest$ac_exeext
20609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20610 (eval $ac_link) 2>&5
20611 ac_status=$?
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
20614 { ac_try='test -s conftest$ac_exeext'
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 ac_cv_func_initgroups=yes
20621else
20622 echo "$as_me: failed program was:" >&5
20623cat conftest.$ac_ext >&5
20624ac_cv_func_initgroups=no
20625fi
20626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20627fi
20628echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
20629echo "${ECHO_T}$ac_cv_func_initgroups" >&6
20630if test $ac_cv_func_initgroups = yes; then
20631
20632cat >>confdefs.h <<_ACEOF
20633#define HAVE_INITGROUPS 1
20634_ACEOF
20635
20636else
20637 LIBOBJS="$LIBOBJS initgroups.$ac_objext"
20638fi
20639echo "$as_me:$LINENO: checking for innetgr" >&5
20640echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
20641if test "${ac_cv_func_innetgr+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20643else
20644 cat >conftest.$ac_ext <<_ACEOF
20645#line $LINENO "configure"
20646#include "confdefs.h"
20647/* System header to define __stub macros and hopefully few prototypes,
20648 which can conflict with char innetgr (); below. */
20649#include <assert.h>
20650/* Override any gcc2 internal prototype to avoid an error. */
20651#ifdef __cplusplus
20652extern "C"
20653#endif
20654/* We use char because int might match the return type of a gcc2
20655 builtin and then its argument prototype would still apply. */
20656char innetgr ();
20657char (*f) ();
20658
20659#ifdef F77_DUMMY_MAIN
20660# ifdef __cplusplus
20661 extern "C"
20662# endif
20663 int F77_DUMMY_MAIN() { return 1; }
20664#endif
20665int
20666main ()
20667{
20668/* The GNU C library defines this for functions which it implements
20669 to always fail with ENOSYS. Some functions are actually named
20670 something starting with __ and the normal name is an alias. */
20671#if defined (__stub_innetgr) || defined (__stub___innetgr)
20672choke me
20673#else
20674f = innetgr;
20675#endif
20676
20677 ;
20678 return 0;
20679}
20680_ACEOF
20681rm -f conftest.$ac_objext conftest$ac_exeext
20682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20683 (eval $ac_link) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } &&
20687 { ac_try='test -s conftest$ac_exeext'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20690 ac_status=$?
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; }; then
20693 ac_cv_func_innetgr=yes
20694else
20695 echo "$as_me: failed program was:" >&5
20696cat conftest.$ac_ext >&5
20697ac_cv_func_innetgr=no
20698fi
20699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20700fi
20701echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
20702echo "${ECHO_T}$ac_cv_func_innetgr" >&6
20703if test $ac_cv_func_innetgr = yes; then
20704
20705cat >>confdefs.h <<_ACEOF
20706#define HAVE_INNETGR 1
20707_ACEOF
20708
20709else
20710 LIBOBJS="$LIBOBJS innetgr.$ac_objext"
20711fi
20712echo "$as_me:$LINENO: checking for iruserok" >&5
20713echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
20714if test "${ac_cv_func_iruserok+set}" = set; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20716else
20717 cat >conftest.$ac_ext <<_ACEOF
20718#line $LINENO "configure"
20719#include "confdefs.h"
20720/* System header to define __stub macros and hopefully few prototypes,
20721 which can conflict with char iruserok (); below. */
20722#include <assert.h>
20723/* Override any gcc2 internal prototype to avoid an error. */
20724#ifdef __cplusplus
20725extern "C"
20726#endif
20727/* We use char because int might match the return type of a gcc2
20728 builtin and then its argument prototype would still apply. */
20729char iruserok ();
20730char (*f) ();
20731
20732#ifdef F77_DUMMY_MAIN
20733# ifdef __cplusplus
20734 extern "C"
20735# endif
20736 int F77_DUMMY_MAIN() { return 1; }
20737#endif
20738int
20739main ()
20740{
20741/* The GNU C library defines this for functions which it implements
20742 to always fail with ENOSYS. Some functions are actually named
20743 something starting with __ and the normal name is an alias. */
20744#if defined (__stub_iruserok) || defined (__stub___iruserok)
20745choke me
20746#else
20747f = iruserok;
20748#endif
20749
20750 ;
20751 return 0;
20752}
20753_ACEOF
20754rm -f conftest.$ac_objext conftest$ac_exeext
20755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20756 (eval $ac_link) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
20760 { ac_try='test -s conftest$ac_exeext'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 ac_cv_func_iruserok=yes
20767else
20768 echo "$as_me: failed program was:" >&5
20769cat conftest.$ac_ext >&5
20770ac_cv_func_iruserok=no
20771fi
20772rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20773fi
20774echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
20775echo "${ECHO_T}$ac_cv_func_iruserok" >&6
20776if test $ac_cv_func_iruserok = yes; then
20777
20778cat >>confdefs.h <<_ACEOF
20779#define HAVE_IRUSEROK 1
20780_ACEOF
20781
20782else
20783 LIBOBJS="$LIBOBJS iruserok.$ac_objext"
20784fi
20785echo "$as_me:$LINENO: checking for localtime_r" >&5
20786echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
20787if test "${ac_cv_func_localtime_r+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790 cat >conftest.$ac_ext <<_ACEOF
20791#line $LINENO "configure"
20792#include "confdefs.h"
20793/* System header to define __stub macros and hopefully few prototypes,
20794 which can conflict with char localtime_r (); below. */
20795#include <assert.h>
20796/* Override any gcc2 internal prototype to avoid an error. */
20797#ifdef __cplusplus
20798extern "C"
20799#endif
20800/* We use char because int might match the return type of a gcc2
20801 builtin and then its argument prototype would still apply. */
20802char localtime_r ();
20803char (*f) ();
20804
20805#ifdef F77_DUMMY_MAIN
20806# ifdef __cplusplus
20807 extern "C"
20808# endif
20809 int F77_DUMMY_MAIN() { return 1; }
20810#endif
20811int
20812main ()
20813{
20814/* The GNU C library defines this for functions which it implements
20815 to always fail with ENOSYS. Some functions are actually named
20816 something starting with __ and the normal name is an alias. */
20817#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
20818choke me
20819#else
20820f = localtime_r;
20821#endif
20822
20823 ;
20824 return 0;
20825}
20826_ACEOF
20827rm -f conftest.$ac_objext conftest$ac_exeext
20828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20829 (eval $ac_link) 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } &&
20833 { ac_try='test -s conftest$ac_exeext'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
20839 ac_cv_func_localtime_r=yes
20840else
20841 echo "$as_me: failed program was:" >&5
20842cat conftest.$ac_ext >&5
20843ac_cv_func_localtime_r=no
20844fi
20845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20846fi
20847echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
20848echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
20849if test $ac_cv_func_localtime_r = yes; then
20850
20851cat >>confdefs.h <<_ACEOF
20852#define HAVE_LOCALTIME_R 1
20853_ACEOF
20854
20855else
20856 LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
20857fi
20858echo "$as_me:$LINENO: checking for lstat" >&5
20859echo $ECHO_N "checking for lstat... $ECHO_C" >&6
20860if test "${ac_cv_func_lstat+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20862else
20863 cat >conftest.$ac_ext <<_ACEOF
20864#line $LINENO "configure"
20865#include "confdefs.h"
20866/* System header to define __stub macros and hopefully few prototypes,
20867 which can conflict with char lstat (); below. */
20868#include <assert.h>
20869/* Override any gcc2 internal prototype to avoid an error. */
20870#ifdef __cplusplus
20871extern "C"
20872#endif
20873/* We use char because int might match the return type of a gcc2
20874 builtin and then its argument prototype would still apply. */
20875char lstat ();
20876char (*f) ();
20877
20878#ifdef F77_DUMMY_MAIN
20879# ifdef __cplusplus
20880 extern "C"
20881# endif
20882 int F77_DUMMY_MAIN() { return 1; }
20883#endif
20884int
20885main ()
20886{
20887/* The GNU C library defines this for functions which it implements
20888 to always fail with ENOSYS. Some functions are actually named
20889 something starting with __ and the normal name is an alias. */
20890#if defined (__stub_lstat) || defined (__stub___lstat)
20891choke me
20892#else
20893f = lstat;
20894#endif
20895
20896 ;
20897 return 0;
20898}
20899_ACEOF
20900rm -f conftest.$ac_objext conftest$ac_exeext
20901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20902 (eval $ac_link) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } &&
20906 { ac_try='test -s conftest$ac_exeext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 ac_cv_func_lstat=yes
20913else
20914 echo "$as_me: failed program was:" >&5
20915cat conftest.$ac_ext >&5
20916ac_cv_func_lstat=no
20917fi
20918rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20919fi
20920echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
20921echo "${ECHO_T}$ac_cv_func_lstat" >&6
20922if test $ac_cv_func_lstat = yes; then
20923
20924cat >>confdefs.h <<_ACEOF
20925#define HAVE_LSTAT 1
20926_ACEOF
20927
20928else
20929 LIBOBJS="$LIBOBJS lstat.$ac_objext"
20930fi
20931echo "$as_me:$LINENO: checking for memmove" >&5
20932echo $ECHO_N "checking for memmove... $ECHO_C" >&6
20933if test "${ac_cv_func_memmove+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935else
20936 cat >conftest.$ac_ext <<_ACEOF
20937#line $LINENO "configure"
20938#include "confdefs.h"
20939/* System header to define __stub macros and hopefully few prototypes,
20940 which can conflict with char memmove (); below. */
20941#include <assert.h>
20942/* Override any gcc2 internal prototype to avoid an error. */
20943#ifdef __cplusplus
20944extern "C"
20945#endif
20946/* We use char because int might match the return type of a gcc2
20947 builtin and then its argument prototype would still apply. */
20948char memmove ();
20949char (*f) ();
20950
20951#ifdef F77_DUMMY_MAIN
20952# ifdef __cplusplus
20953 extern "C"
20954# endif
20955 int F77_DUMMY_MAIN() { return 1; }
20956#endif
20957int
20958main ()
20959{
20960/* The GNU C library defines this for functions which it implements
20961 to always fail with ENOSYS. Some functions are actually named
20962 something starting with __ and the normal name is an alias. */
20963#if defined (__stub_memmove) || defined (__stub___memmove)
20964choke me
20965#else
20966f = memmove;
20967#endif
20968
20969 ;
20970 return 0;
20971}
20972_ACEOF
20973rm -f conftest.$ac_objext conftest$ac_exeext
20974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20975 (eval $ac_link) 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
20979 { ac_try='test -s conftest$ac_exeext'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
20985 ac_cv_func_memmove=yes
20986else
20987 echo "$as_me: failed program was:" >&5
20988cat conftest.$ac_ext >&5
20989ac_cv_func_memmove=no
20990fi
20991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20992fi
20993echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
20994echo "${ECHO_T}$ac_cv_func_memmove" >&6
20995if test $ac_cv_func_memmove = yes; then
20996
20997cat >>confdefs.h <<_ACEOF
20998#define HAVE_MEMMOVE 1
20999_ACEOF
21000
21001else
21002 LIBOBJS="$LIBOBJS memmove.$ac_objext"
21003fi
21004echo "$as_me:$LINENO: checking for mkstemp" >&5
21005echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
21006if test "${ac_cv_func_mkstemp+set}" = set; then
21007 echo $ECHO_N "(cached) $ECHO_C" >&6
21008else
21009 cat >conftest.$ac_ext <<_ACEOF
21010#line $LINENO "configure"
21011#include "confdefs.h"
21012/* System header to define __stub macros and hopefully few prototypes,
21013 which can conflict with char mkstemp (); below. */
21014#include <assert.h>
21015/* Override any gcc2 internal prototype to avoid an error. */
21016#ifdef __cplusplus
21017extern "C"
21018#endif
21019/* We use char because int might match the return type of a gcc2
21020 builtin and then its argument prototype would still apply. */
21021char mkstemp ();
21022char (*f) ();
21023
21024#ifdef F77_DUMMY_MAIN
21025# ifdef __cplusplus
21026 extern "C"
21027# endif
21028 int F77_DUMMY_MAIN() { return 1; }
21029#endif
21030int
21031main ()
21032{
21033/* The GNU C library defines this for functions which it implements
21034 to always fail with ENOSYS. Some functions are actually named
21035 something starting with __ and the normal name is an alias. */
21036#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
21037choke me
21038#else
21039f = mkstemp;
21040#endif
21041
21042 ;
21043 return 0;
21044}
21045_ACEOF
21046rm -f conftest.$ac_objext conftest$ac_exeext
21047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21048 (eval $ac_link) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } &&
21052 { ac_try='test -s conftest$ac_exeext'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_cv_func_mkstemp=yes
21059else
21060 echo "$as_me: failed program was:" >&5
21061cat conftest.$ac_ext >&5
21062ac_cv_func_mkstemp=no
21063fi
21064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21065fi
21066echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
21067echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21068if test $ac_cv_func_mkstemp = yes; then
21069
21070cat >>confdefs.h <<_ACEOF
21071#define HAVE_MKSTEMP 1
21072_ACEOF
21073
21074else
21075 LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
21076fi
21077echo "$as_me:$LINENO: checking for putenv" >&5
21078echo $ECHO_N "checking for putenv... $ECHO_C" >&6
21079if test "${ac_cv_func_putenv+set}" = set; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21081else
21082 cat >conftest.$ac_ext <<_ACEOF
21083#line $LINENO "configure"
21084#include "confdefs.h"
21085/* System header to define __stub macros and hopefully few prototypes,
21086 which can conflict with char putenv (); below. */
21087#include <assert.h>
21088/* Override any gcc2 internal prototype to avoid an error. */
21089#ifdef __cplusplus
21090extern "C"
21091#endif
21092/* We use char because int might match the return type of a gcc2
21093 builtin and then its argument prototype would still apply. */
21094char putenv ();
21095char (*f) ();
21096
21097#ifdef F77_DUMMY_MAIN
21098# ifdef __cplusplus
21099 extern "C"
21100# endif
21101 int F77_DUMMY_MAIN() { return 1; }
21102#endif
21103int
21104main ()
21105{
21106/* The GNU C library defines this for functions which it implements
21107 to always fail with ENOSYS. Some functions are actually named
21108 something starting with __ and the normal name is an alias. */
21109#if defined (__stub_putenv) || defined (__stub___putenv)
21110choke me
21111#else
21112f = putenv;
21113#endif
21114
21115 ;
21116 return 0;
21117}
21118_ACEOF
21119rm -f conftest.$ac_objext conftest$ac_exeext
21120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21121 (eval $ac_link) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } &&
21125 { ac_try='test -s conftest$ac_exeext'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131 ac_cv_func_putenv=yes
21132else
21133 echo "$as_me: failed program was:" >&5
21134cat conftest.$ac_ext >&5
21135ac_cv_func_putenv=no
21136fi
21137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21138fi
21139echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
21140echo "${ECHO_T}$ac_cv_func_putenv" >&6
21141if test $ac_cv_func_putenv = yes; then
21142
21143cat >>confdefs.h <<_ACEOF
21144#define HAVE_PUTENV 1
21145_ACEOF
21146
21147else
21148 LIBOBJS="$LIBOBJS putenv.$ac_objext"
21149fi
21150echo "$as_me:$LINENO: checking for rcmd" >&5
21151echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
21152if test "${ac_cv_func_rcmd+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21154else
21155 cat >conftest.$ac_ext <<_ACEOF
21156#line $LINENO "configure"
21157#include "confdefs.h"
21158/* System header to define __stub macros and hopefully few prototypes,
21159 which can conflict with char rcmd (); below. */
21160#include <assert.h>
21161/* Override any gcc2 internal prototype to avoid an error. */
21162#ifdef __cplusplus
21163extern "C"
21164#endif
21165/* We use char because int might match the return type of a gcc2
21166 builtin and then its argument prototype would still apply. */
21167char rcmd ();
21168char (*f) ();
21169
21170#ifdef F77_DUMMY_MAIN
21171# ifdef __cplusplus
21172 extern "C"
21173# endif
21174 int F77_DUMMY_MAIN() { return 1; }
21175#endif
21176int
21177main ()
21178{
21179/* The GNU C library defines this for functions which it implements
21180 to always fail with ENOSYS. Some functions are actually named
21181 something starting with __ and the normal name is an alias. */
21182#if defined (__stub_rcmd) || defined (__stub___rcmd)
21183choke me
21184#else
21185f = rcmd;
21186#endif
21187
21188 ;
21189 return 0;
21190}
21191_ACEOF
21192rm -f conftest.$ac_objext conftest$ac_exeext
21193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21194 (eval $ac_link) 2>&5
21195 ac_status=$?
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
21198 { ac_try='test -s conftest$ac_exeext'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21204 ac_cv_func_rcmd=yes
21205else
21206 echo "$as_me: failed program was:" >&5
21207cat conftest.$ac_ext >&5
21208ac_cv_func_rcmd=no
21209fi
21210rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21211fi
21212echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
21213echo "${ECHO_T}$ac_cv_func_rcmd" >&6
21214if test $ac_cv_func_rcmd = yes; then
21215
21216cat >>confdefs.h <<_ACEOF
21217#define HAVE_RCMD 1
21218_ACEOF
21219
21220else
21221 LIBOBJS="$LIBOBJS rcmd.$ac_objext"
21222fi
21223echo "$as_me:$LINENO: checking for readv" >&5
21224echo $ECHO_N "checking for readv... $ECHO_C" >&6
21225if test "${ac_cv_func_readv+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21227else
21228 cat >conftest.$ac_ext <<_ACEOF
21229#line $LINENO "configure"
21230#include "confdefs.h"
21231/* System header to define __stub macros and hopefully few prototypes,
21232 which can conflict with char readv (); below. */
21233#include <assert.h>
21234/* Override any gcc2 internal prototype to avoid an error. */
21235#ifdef __cplusplus
21236extern "C"
21237#endif
21238/* We use char because int might match the return type of a gcc2
21239 builtin and then its argument prototype would still apply. */
21240char readv ();
21241char (*f) ();
21242
21243#ifdef F77_DUMMY_MAIN
21244# ifdef __cplusplus
21245 extern "C"
21246# endif
21247 int F77_DUMMY_MAIN() { return 1; }
21248#endif
21249int
21250main ()
21251{
21252/* The GNU C library defines this for functions which it implements
21253 to always fail with ENOSYS. Some functions are actually named
21254 something starting with __ and the normal name is an alias. */
21255#if defined (__stub_readv) || defined (__stub___readv)
21256choke me
21257#else
21258f = readv;
21259#endif
21260
21261 ;
21262 return 0;
21263}
21264_ACEOF
21265rm -f conftest.$ac_objext conftest$ac_exeext
21266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21267 (eval $ac_link) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } &&
21271 { ac_try='test -s conftest$ac_exeext'
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; }; then
21277 ac_cv_func_readv=yes
21278else
21279 echo "$as_me: failed program was:" >&5
21280cat conftest.$ac_ext >&5
21281ac_cv_func_readv=no
21282fi
21283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21284fi
21285echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
21286echo "${ECHO_T}$ac_cv_func_readv" >&6
21287if test $ac_cv_func_readv = yes; then
21288
21289cat >>confdefs.h <<_ACEOF
21290#define HAVE_READV 1
21291_ACEOF
21292
21293else
21294 LIBOBJS="$LIBOBJS readv.$ac_objext"
21295fi
21296echo "$as_me:$LINENO: checking for recvmsg" >&5
21297echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
21298if test "${ac_cv_func_recvmsg+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21300else
21301 cat >conftest.$ac_ext <<_ACEOF
21302#line $LINENO "configure"
21303#include "confdefs.h"
21304/* System header to define __stub macros and hopefully few prototypes,
21305 which can conflict with char recvmsg (); below. */
21306#include <assert.h>
21307/* Override any gcc2 internal prototype to avoid an error. */
21308#ifdef __cplusplus
21309extern "C"
21310#endif
21311/* We use char because int might match the return type of a gcc2
21312 builtin and then its argument prototype would still apply. */
21313char recvmsg ();
21314char (*f) ();
21315
21316#ifdef F77_DUMMY_MAIN
21317# ifdef __cplusplus
21318 extern "C"
21319# endif
21320 int F77_DUMMY_MAIN() { return 1; }
21321#endif
21322int
21323main ()
21324{
21325/* The GNU C library defines this for functions which it implements
21326 to always fail with ENOSYS. Some functions are actually named
21327 something starting with __ and the normal name is an alias. */
21328#if defined (__stub_recvmsg) || defined (__stub___recvmsg)
21329choke me
21330#else
21331f = recvmsg;
21332#endif
21333
21334 ;
21335 return 0;
21336}
21337_ACEOF
21338rm -f conftest.$ac_objext conftest$ac_exeext
21339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21340 (eval $ac_link) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
21344 { ac_try='test -s conftest$ac_exeext'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; }; then
21350 ac_cv_func_recvmsg=yes
21351else
21352 echo "$as_me: failed program was:" >&5
21353cat conftest.$ac_ext >&5
21354ac_cv_func_recvmsg=no
21355fi
21356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21357fi
21358echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
21359echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
21360if test $ac_cv_func_recvmsg = yes; then
21361
21362cat >>confdefs.h <<_ACEOF
21363#define HAVE_RECVMSG 1
21364_ACEOF
21365
21366else
21367 LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
21368fi
21369echo "$as_me:$LINENO: checking for sendmsg" >&5
21370echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
21371if test "${ac_cv_func_sendmsg+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21373else
21374 cat >conftest.$ac_ext <<_ACEOF
21375#line $LINENO "configure"
21376#include "confdefs.h"
21377/* System header to define __stub macros and hopefully few prototypes,
21378 which can conflict with char sendmsg (); below. */
21379#include <assert.h>
21380/* Override any gcc2 internal prototype to avoid an error. */
21381#ifdef __cplusplus
21382extern "C"
21383#endif
21384/* We use char because int might match the return type of a gcc2
21385 builtin and then its argument prototype would still apply. */
21386char sendmsg ();
21387char (*f) ();
21388
21389#ifdef F77_DUMMY_MAIN
21390# ifdef __cplusplus
21391 extern "C"
21392# endif
21393 int F77_DUMMY_MAIN() { return 1; }
21394#endif
21395int
21396main ()
21397{
21398/* The GNU C library defines this for functions which it implements
21399 to always fail with ENOSYS. Some functions are actually named
21400 something starting with __ and the normal name is an alias. */
21401#if defined (__stub_sendmsg) || defined (__stub___sendmsg)
21402choke me
21403#else
21404f = sendmsg;
21405#endif
21406
21407 ;
21408 return 0;
21409}
21410_ACEOF
21411rm -f conftest.$ac_objext conftest$ac_exeext
21412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413 (eval $ac_link) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
21417 { ac_try='test -s conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_func_sendmsg=yes
21424else
21425 echo "$as_me: failed program was:" >&5
21426cat conftest.$ac_ext >&5
21427ac_cv_func_sendmsg=no
21428fi
21429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21430fi
21431echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
21432echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
21433if test $ac_cv_func_sendmsg = yes; then
21434
21435cat >>confdefs.h <<_ACEOF
21436#define HAVE_SENDMSG 1
21437_ACEOF
21438
21439else
21440 LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
21441fi
21442echo "$as_me:$LINENO: checking for setegid" >&5
21443echo $ECHO_N "checking for setegid... $ECHO_C" >&6
21444if test "${ac_cv_func_setegid+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21446else
21447 cat >conftest.$ac_ext <<_ACEOF
21448#line $LINENO "configure"
21449#include "confdefs.h"
21450/* System header to define __stub macros and hopefully few prototypes,
21451 which can conflict with char setegid (); below. */
21452#include <assert.h>
21453/* Override any gcc2 internal prototype to avoid an error. */
21454#ifdef __cplusplus
21455extern "C"
21456#endif
21457/* We use char because int might match the return type of a gcc2
21458 builtin and then its argument prototype would still apply. */
21459char setegid ();
21460char (*f) ();
21461
21462#ifdef F77_DUMMY_MAIN
21463# ifdef __cplusplus
21464 extern "C"
21465# endif
21466 int F77_DUMMY_MAIN() { return 1; }
21467#endif
21468int
21469main ()
21470{
21471/* The GNU C library defines this for functions which it implements
21472 to always fail with ENOSYS. Some functions are actually named
21473 something starting with __ and the normal name is an alias. */
21474#if defined (__stub_setegid) || defined (__stub___setegid)
21475choke me
21476#else
21477f = setegid;
21478#endif
21479
21480 ;
21481 return 0;
21482}
21483_ACEOF
21484rm -f conftest.$ac_objext conftest$ac_exeext
21485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21486 (eval $ac_link) 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } &&
21490 { ac_try='test -s conftest$ac_exeext'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; }; then
21496 ac_cv_func_setegid=yes
21497else
21498 echo "$as_me: failed program was:" >&5
21499cat conftest.$ac_ext >&5
21500ac_cv_func_setegid=no
21501fi
21502rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21503fi
21504echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
21505echo "${ECHO_T}$ac_cv_func_setegid" >&6
21506if test $ac_cv_func_setegid = yes; then
21507
21508cat >>confdefs.h <<_ACEOF
21509#define HAVE_SETEGID 1
21510_ACEOF
21511
21512else
21513 LIBOBJS="$LIBOBJS setegid.$ac_objext"
21514fi
21515echo "$as_me:$LINENO: checking for setenv" >&5
21516echo $ECHO_N "checking for setenv... $ECHO_C" >&6
21517if test "${ac_cv_func_setenv+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21519else
21520 cat >conftest.$ac_ext <<_ACEOF
21521#line $LINENO "configure"
21522#include "confdefs.h"
21523/* System header to define __stub macros and hopefully few prototypes,
21524 which can conflict with char setenv (); below. */
21525#include <assert.h>
21526/* Override any gcc2 internal prototype to avoid an error. */
21527#ifdef __cplusplus
21528extern "C"
21529#endif
21530/* We use char because int might match the return type of a gcc2
21531 builtin and then its argument prototype would still apply. */
21532char setenv ();
21533char (*f) ();
21534
21535#ifdef F77_DUMMY_MAIN
21536# ifdef __cplusplus
21537 extern "C"
21538# endif
21539 int F77_DUMMY_MAIN() { return 1; }
21540#endif
21541int
21542main ()
21543{
21544/* The GNU C library defines this for functions which it implements
21545 to always fail with ENOSYS. Some functions are actually named
21546 something starting with __ and the normal name is an alias. */
21547#if defined (__stub_setenv) || defined (__stub___setenv)
21548choke me
21549#else
21550f = setenv;
21551#endif
21552
21553 ;
21554 return 0;
21555}
21556_ACEOF
21557rm -f conftest.$ac_objext conftest$ac_exeext
21558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21559 (eval $ac_link) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
21563 { ac_try='test -s conftest$ac_exeext'
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21566 ac_status=$?
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 ac_cv_func_setenv=yes
21570else
21571 echo "$as_me: failed program was:" >&5
21572cat conftest.$ac_ext >&5
21573ac_cv_func_setenv=no
21574fi
21575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21576fi
21577echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
21578echo "${ECHO_T}$ac_cv_func_setenv" >&6
21579if test $ac_cv_func_setenv = yes; then
21580
21581cat >>confdefs.h <<_ACEOF
21582#define HAVE_SETENV 1
21583_ACEOF
21584
21585else
21586 LIBOBJS="$LIBOBJS setenv.$ac_objext"
21587fi
21588echo "$as_me:$LINENO: checking for seteuid" >&5
21589echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
21590if test "${ac_cv_func_seteuid+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21592else
21593 cat >conftest.$ac_ext <<_ACEOF
21594#line $LINENO "configure"
21595#include "confdefs.h"
21596/* System header to define __stub macros and hopefully few prototypes,
21597 which can conflict with char seteuid (); below. */
21598#include <assert.h>
21599/* Override any gcc2 internal prototype to avoid an error. */
21600#ifdef __cplusplus
21601extern "C"
21602#endif
21603/* We use char because int might match the return type of a gcc2
21604 builtin and then its argument prototype would still apply. */
21605char seteuid ();
21606char (*f) ();
21607
21608#ifdef F77_DUMMY_MAIN
21609# ifdef __cplusplus
21610 extern "C"
21611# endif
21612 int F77_DUMMY_MAIN() { return 1; }
21613#endif
21614int
21615main ()
21616{
21617/* The GNU C library defines this for functions which it implements
21618 to always fail with ENOSYS. Some functions are actually named
21619 something starting with __ and the normal name is an alias. */
21620#if defined (__stub_seteuid) || defined (__stub___seteuid)
21621choke me
21622#else
21623f = seteuid;
21624#endif
21625
21626 ;
21627 return 0;
21628}
21629_ACEOF
21630rm -f conftest.$ac_objext conftest$ac_exeext
21631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21632 (eval $ac_link) 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } &&
21636 { ac_try='test -s conftest$ac_exeext'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; }; then
21642 ac_cv_func_seteuid=yes
21643else
21644 echo "$as_me: failed program was:" >&5
21645cat conftest.$ac_ext >&5
21646ac_cv_func_seteuid=no
21647fi
21648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21649fi
21650echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
21651echo "${ECHO_T}$ac_cv_func_seteuid" >&6
21652if test $ac_cv_func_seteuid = yes; then
21653
21654cat >>confdefs.h <<_ACEOF
21655#define HAVE_SETEUID 1
21656_ACEOF
21657
21658else
21659 LIBOBJS="$LIBOBJS seteuid.$ac_objext"
21660fi
21661echo "$as_me:$LINENO: checking for strcasecmp" >&5
21662echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
21663if test "${ac_cv_func_strcasecmp+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21665else
21666 cat >conftest.$ac_ext <<_ACEOF
21667#line $LINENO "configure"
21668#include "confdefs.h"
21669/* System header to define __stub macros and hopefully few prototypes,
21670 which can conflict with char strcasecmp (); below. */
21671#include <assert.h>
21672/* Override any gcc2 internal prototype to avoid an error. */
21673#ifdef __cplusplus
21674extern "C"
21675#endif
21676/* We use char because int might match the return type of a gcc2
21677 builtin and then its argument prototype would still apply. */
21678char strcasecmp ();
21679char (*f) ();
21680
21681#ifdef F77_DUMMY_MAIN
21682# ifdef __cplusplus
21683 extern "C"
21684# endif
21685 int F77_DUMMY_MAIN() { return 1; }
21686#endif
21687int
21688main ()
21689{
21690/* The GNU C library defines this for functions which it implements
21691 to always fail with ENOSYS. Some functions are actually named
21692 something starting with __ and the normal name is an alias. */
21693#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
21694choke me
21695#else
21696f = strcasecmp;
21697#endif
21698
21699 ;
21700 return 0;
21701}
21702_ACEOF
21703rm -f conftest.$ac_objext conftest$ac_exeext
21704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21705 (eval $ac_link) 2>&5
21706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } &&
21709 { ac_try='test -s conftest$ac_exeext'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }; then
21715 ac_cv_func_strcasecmp=yes
21716else
21717 echo "$as_me: failed program was:" >&5
21718cat conftest.$ac_ext >&5
21719ac_cv_func_strcasecmp=no
21720fi
21721rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21722fi
21723echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
21724echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
21725if test $ac_cv_func_strcasecmp = yes; then
21726
21727cat >>confdefs.h <<_ACEOF
21728#define HAVE_STRCASECMP 1
21729_ACEOF
21730
21731else
21732 LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
21733fi
21734echo "$as_me:$LINENO: checking for strdup" >&5
21735echo $ECHO_N "checking for strdup... $ECHO_C" >&6
21736if test "${ac_cv_func_strdup+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21738else
21739 cat >conftest.$ac_ext <<_ACEOF
21740#line $LINENO "configure"
21741#include "confdefs.h"
21742/* System header to define __stub macros and hopefully few prototypes,
21743 which can conflict with char strdup (); below. */
21744#include <assert.h>
21745/* Override any gcc2 internal prototype to avoid an error. */
21746#ifdef __cplusplus
21747extern "C"
21748#endif
21749/* We use char because int might match the return type of a gcc2
21750 builtin and then its argument prototype would still apply. */
21751char strdup ();
21752char (*f) ();
21753
21754#ifdef F77_DUMMY_MAIN
21755# ifdef __cplusplus
21756 extern "C"
21757# endif
21758 int F77_DUMMY_MAIN() { return 1; }
21759#endif
21760int
21761main ()
21762{
21763/* The GNU C library defines this for functions which it implements
21764 to always fail with ENOSYS. Some functions are actually named
21765 something starting with __ and the normal name is an alias. */
21766#if defined (__stub_strdup) || defined (__stub___strdup)
21767choke me
21768#else
21769f = strdup;
21770#endif
21771
21772 ;
21773 return 0;
21774}
21775_ACEOF
21776rm -f conftest.$ac_objext conftest$ac_exeext
21777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21778 (eval $ac_link) 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } &&
21782 { ac_try='test -s conftest$ac_exeext'
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21785 ac_status=$?
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; }; then
21788 ac_cv_func_strdup=yes
21789else
21790 echo "$as_me: failed program was:" >&5
21791cat conftest.$ac_ext >&5
21792ac_cv_func_strdup=no
21793fi
21794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21795fi
21796echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
21797echo "${ECHO_T}$ac_cv_func_strdup" >&6
21798if test $ac_cv_func_strdup = yes; then
21799
21800cat >>confdefs.h <<_ACEOF
21801#define HAVE_STRDUP 1
21802_ACEOF
21803
21804else
21805 LIBOBJS="$LIBOBJS strdup.$ac_objext"
21806fi
21807echo "$as_me:$LINENO: checking for strerror" >&5
21808echo $ECHO_N "checking for strerror... $ECHO_C" >&6
21809if test "${ac_cv_func_strerror+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811else
21812 cat >conftest.$ac_ext <<_ACEOF
21813#line $LINENO "configure"
21814#include "confdefs.h"
21815/* System header to define __stub macros and hopefully few prototypes,
21816 which can conflict with char strerror (); below. */
21817#include <assert.h>
21818/* Override any gcc2 internal prototype to avoid an error. */
21819#ifdef __cplusplus
21820extern "C"
21821#endif
21822/* We use char because int might match the return type of a gcc2
21823 builtin and then its argument prototype would still apply. */
21824char strerror ();
21825char (*f) ();
21826
21827#ifdef F77_DUMMY_MAIN
21828# ifdef __cplusplus
21829 extern "C"
21830# endif
21831 int F77_DUMMY_MAIN() { return 1; }
21832#endif
21833int
21834main ()
21835{
21836/* The GNU C library defines this for functions which it implements
21837 to always fail with ENOSYS. Some functions are actually named
21838 something starting with __ and the normal name is an alias. */
21839#if defined (__stub_strerror) || defined (__stub___strerror)
21840choke me
21841#else
21842f = strerror;
21843#endif
21844
21845 ;
21846 return 0;
21847}
21848_ACEOF
21849rm -f conftest.$ac_objext conftest$ac_exeext
21850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851 (eval $ac_link) 2>&5
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } &&
21855 { ac_try='test -s conftest$ac_exeext'
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21861 ac_cv_func_strerror=yes
21862else
21863 echo "$as_me: failed program was:" >&5
21864cat conftest.$ac_ext >&5
21865ac_cv_func_strerror=no
21866fi
21867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21868fi
21869echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
21870echo "${ECHO_T}$ac_cv_func_strerror" >&6
21871if test $ac_cv_func_strerror = yes; then
21872
21873cat >>confdefs.h <<_ACEOF
21874#define HAVE_STRERROR 1
21875_ACEOF
21876
21877else
21878 LIBOBJS="$LIBOBJS strerror.$ac_objext"
21879fi
21880echo "$as_me:$LINENO: checking for strftime" >&5
21881echo $ECHO_N "checking for strftime... $ECHO_C" >&6
21882if test "${ac_cv_func_strftime+set}" = set; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21884else
21885 cat >conftest.$ac_ext <<_ACEOF
21886#line $LINENO "configure"
21887#include "confdefs.h"
21888/* System header to define __stub macros and hopefully few prototypes,
21889 which can conflict with char strftime (); below. */
21890#include <assert.h>
21891/* Override any gcc2 internal prototype to avoid an error. */
21892#ifdef __cplusplus
21893extern "C"
21894#endif
21895/* We use char because int might match the return type of a gcc2
21896 builtin and then its argument prototype would still apply. */
21897char strftime ();
21898char (*f) ();
21899
21900#ifdef F77_DUMMY_MAIN
21901# ifdef __cplusplus
21902 extern "C"
21903# endif
21904 int F77_DUMMY_MAIN() { return 1; }
21905#endif
21906int
21907main ()
21908{
21909/* The GNU C library defines this for functions which it implements
21910 to always fail with ENOSYS. Some functions are actually named
21911 something starting with __ and the normal name is an alias. */
21912#if defined (__stub_strftime) || defined (__stub___strftime)
21913choke me
21914#else
21915f = strftime;
21916#endif
21917
21918 ;
21919 return 0;
21920}
21921_ACEOF
21922rm -f conftest.$ac_objext conftest$ac_exeext
21923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924 (eval $ac_link) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } &&
21928 { ac_try='test -s conftest$ac_exeext'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21934 ac_cv_func_strftime=yes
21935else
21936 echo "$as_me: failed program was:" >&5
21937cat conftest.$ac_ext >&5
21938ac_cv_func_strftime=no
21939fi
21940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21941fi
21942echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
21943echo "${ECHO_T}$ac_cv_func_strftime" >&6
21944if test $ac_cv_func_strftime = yes; then
21945
21946cat >>confdefs.h <<_ACEOF
21947#define HAVE_STRFTIME 1
21948_ACEOF
21949
21950else
21951 LIBOBJS="$LIBOBJS strftime.$ac_objext"
21952fi
21953echo "$as_me:$LINENO: checking for strlcat" >&5
21954echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
21955if test "${ac_cv_func_strlcat+set}" = set; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
21957else
21958 cat >conftest.$ac_ext <<_ACEOF
21959#line $LINENO "configure"
21960#include "confdefs.h"
21961/* System header to define __stub macros and hopefully few prototypes,
21962 which can conflict with char strlcat (); below. */
21963#include <assert.h>
21964/* Override any gcc2 internal prototype to avoid an error. */
21965#ifdef __cplusplus
21966extern "C"
21967#endif
21968/* We use char because int might match the return type of a gcc2
21969 builtin and then its argument prototype would still apply. */
21970char strlcat ();
21971char (*f) ();
21972
21973#ifdef F77_DUMMY_MAIN
21974# ifdef __cplusplus
21975 extern "C"
21976# endif
21977 int F77_DUMMY_MAIN() { return 1; }
21978#endif
21979int
21980main ()
21981{
21982/* The GNU C library defines this for functions which it implements
21983 to always fail with ENOSYS. Some functions are actually named
21984 something starting with __ and the normal name is an alias. */
21985#if defined (__stub_strlcat) || defined (__stub___strlcat)
21986choke me
21987#else
21988f = strlcat;
21989#endif
21990
21991 ;
21992 return 0;
21993}
21994_ACEOF
21995rm -f conftest.$ac_objext conftest$ac_exeext
21996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21997 (eval $ac_link) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
22001 { ac_try='test -s conftest$ac_exeext'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; }; then
22007 ac_cv_func_strlcat=yes
22008else
22009 echo "$as_me: failed program was:" >&5
22010cat conftest.$ac_ext >&5
22011ac_cv_func_strlcat=no
22012fi
22013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22014fi
22015echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
22016echo "${ECHO_T}$ac_cv_func_strlcat" >&6
22017if test $ac_cv_func_strlcat = yes; then
22018
22019cat >>confdefs.h <<_ACEOF
22020#define HAVE_STRLCAT 1
22021_ACEOF
22022
22023else
22024 LIBOBJS="$LIBOBJS strlcat.$ac_objext"
22025fi
22026echo "$as_me:$LINENO: checking for strlcpy" >&5
22027echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
22028if test "${ac_cv_func_strlcpy+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030else
22031 cat >conftest.$ac_ext <<_ACEOF
22032#line $LINENO "configure"
22033#include "confdefs.h"
22034/* System header to define __stub macros and hopefully few prototypes,
22035 which can conflict with char strlcpy (); below. */
22036#include <assert.h>
22037/* Override any gcc2 internal prototype to avoid an error. */
22038#ifdef __cplusplus
22039extern "C"
22040#endif
22041/* We use char because int might match the return type of a gcc2
22042 builtin and then its argument prototype would still apply. */
22043char strlcpy ();
22044char (*f) ();
22045
22046#ifdef F77_DUMMY_MAIN
22047# ifdef __cplusplus
22048 extern "C"
22049# endif
22050 int F77_DUMMY_MAIN() { return 1; }
22051#endif
22052int
22053main ()
22054{
22055/* The GNU C library defines this for functions which it implements
22056 to always fail with ENOSYS. Some functions are actually named
22057 something starting with __ and the normal name is an alias. */
22058#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
22059choke me
22060#else
22061f = strlcpy;
22062#endif
22063
22064 ;
22065 return 0;
22066}
22067_ACEOF
22068rm -f conftest.$ac_objext conftest$ac_exeext
22069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22070 (eval $ac_link) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } &&
22074 { ac_try='test -s conftest$ac_exeext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ac_cv_func_strlcpy=yes
22081else
22082 echo "$as_me: failed program was:" >&5
22083cat conftest.$ac_ext >&5
22084ac_cv_func_strlcpy=no
22085fi
22086rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22087fi
22088echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
22089echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
22090if test $ac_cv_func_strlcpy = yes; then
22091
22092cat >>confdefs.h <<_ACEOF
22093#define HAVE_STRLCPY 1
22094_ACEOF
22095
22096else
22097 LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
22098fi
22099echo "$as_me:$LINENO: checking for strlwr" >&5
22100echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
22101if test "${ac_cv_func_strlwr+set}" = set; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22103else
22104 cat >conftest.$ac_ext <<_ACEOF
22105#line $LINENO "configure"
22106#include "confdefs.h"
22107/* System header to define __stub macros and hopefully few prototypes,
22108 which can conflict with char strlwr (); below. */
22109#include <assert.h>
22110/* Override any gcc2 internal prototype to avoid an error. */
22111#ifdef __cplusplus
22112extern "C"
22113#endif
22114/* We use char because int might match the return type of a gcc2
22115 builtin and then its argument prototype would still apply. */
22116char strlwr ();
22117char (*f) ();
22118
22119#ifdef F77_DUMMY_MAIN
22120# ifdef __cplusplus
22121 extern "C"
22122# endif
22123 int F77_DUMMY_MAIN() { return 1; }
22124#endif
22125int
22126main ()
22127{
22128/* The GNU C library defines this for functions which it implements
22129 to always fail with ENOSYS. Some functions are actually named
22130 something starting with __ and the normal name is an alias. */
22131#if defined (__stub_strlwr) || defined (__stub___strlwr)
22132choke me
22133#else
22134f = strlwr;
22135#endif
22136
22137 ;
22138 return 0;
22139}
22140_ACEOF
22141rm -f conftest.$ac_objext conftest$ac_exeext
22142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22143 (eval $ac_link) 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
22147 { ac_try='test -s conftest$ac_exeext'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; }; then
22153 ac_cv_func_strlwr=yes
22154else
22155 echo "$as_me: failed program was:" >&5
22156cat conftest.$ac_ext >&5
22157ac_cv_func_strlwr=no
22158fi
22159rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22160fi
22161echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
22162echo "${ECHO_T}$ac_cv_func_strlwr" >&6
22163if test $ac_cv_func_strlwr = yes; then
22164
22165cat >>confdefs.h <<_ACEOF
22166#define HAVE_STRLWR 1
22167_ACEOF
22168
22169else
22170 LIBOBJS="$LIBOBJS strlwr.$ac_objext"
22171fi
22172echo "$as_me:$LINENO: checking for strncasecmp" >&5
22173echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
22174if test "${ac_cv_func_strncasecmp+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176else
22177 cat >conftest.$ac_ext <<_ACEOF
22178#line $LINENO "configure"
22179#include "confdefs.h"
22180/* System header to define __stub macros and hopefully few prototypes,
22181 which can conflict with char strncasecmp (); below. */
22182#include <assert.h>
22183/* Override any gcc2 internal prototype to avoid an error. */
22184#ifdef __cplusplus
22185extern "C"
22186#endif
22187/* We use char because int might match the return type of a gcc2
22188 builtin and then its argument prototype would still apply. */
22189char strncasecmp ();
22190char (*f) ();
22191
22192#ifdef F77_DUMMY_MAIN
22193# ifdef __cplusplus
22194 extern "C"
22195# endif
22196 int F77_DUMMY_MAIN() { return 1; }
22197#endif
22198int
22199main ()
22200{
22201/* The GNU C library defines this for functions which it implements
22202 to always fail with ENOSYS. Some functions are actually named
22203 something starting with __ and the normal name is an alias. */
22204#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
22205choke me
22206#else
22207f = strncasecmp;
22208#endif
22209
22210 ;
22211 return 0;
22212}
22213_ACEOF
22214rm -f conftest.$ac_objext conftest$ac_exeext
22215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22216 (eval $ac_link) 2>&5
22217 ac_status=$?
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } &&
22220 { ac_try='test -s conftest$ac_exeext'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 ac_cv_func_strncasecmp=yes
22227else
22228 echo "$as_me: failed program was:" >&5
22229cat conftest.$ac_ext >&5
22230ac_cv_func_strncasecmp=no
22231fi
22232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22233fi
22234echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
22235echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
22236if test $ac_cv_func_strncasecmp = yes; then
22237
22238cat >>confdefs.h <<_ACEOF
22239#define HAVE_STRNCASECMP 1
22240_ACEOF
22241
22242else
22243 LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
22244fi
22245echo "$as_me:$LINENO: checking for strndup" >&5
22246echo $ECHO_N "checking for strndup... $ECHO_C" >&6
22247if test "${ac_cv_func_strndup+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22249else
22250 cat >conftest.$ac_ext <<_ACEOF
22251#line $LINENO "configure"
22252#include "confdefs.h"
22253/* System header to define __stub macros and hopefully few prototypes,
22254 which can conflict with char strndup (); below. */
22255#include <assert.h>
22256/* Override any gcc2 internal prototype to avoid an error. */
22257#ifdef __cplusplus
22258extern "C"
22259#endif
22260/* We use char because int might match the return type of a gcc2
22261 builtin and then its argument prototype would still apply. */
22262char strndup ();
22263char (*f) ();
22264
22265#ifdef F77_DUMMY_MAIN
22266# ifdef __cplusplus
22267 extern "C"
22268# endif
22269 int F77_DUMMY_MAIN() { return 1; }
22270#endif
22271int
22272main ()
22273{
22274/* The GNU C library defines this for functions which it implements
22275 to always fail with ENOSYS. Some functions are actually named
22276 something starting with __ and the normal name is an alias. */
22277#if defined (__stub_strndup) || defined (__stub___strndup)
22278choke me
22279#else
22280f = strndup;
22281#endif
22282
22283 ;
22284 return 0;
22285}
22286_ACEOF
22287rm -f conftest.$ac_objext conftest$ac_exeext
22288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22289 (eval $ac_link) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } &&
22293 { ac_try='test -s conftest$ac_exeext'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 ac_cv_func_strndup=yes
22300else
22301 echo "$as_me: failed program was:" >&5
22302cat conftest.$ac_ext >&5
22303ac_cv_func_strndup=no
22304fi
22305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22306fi
22307echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
22308echo "${ECHO_T}$ac_cv_func_strndup" >&6
22309if test $ac_cv_func_strndup = yes; then
22310
22311cat >>confdefs.h <<_ACEOF
22312#define HAVE_STRNDUP 1
22313_ACEOF
22314
22315else
22316 LIBOBJS="$LIBOBJS strndup.$ac_objext"
22317fi
22318echo "$as_me:$LINENO: checking for strnlen" >&5
22319echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
22320if test "${ac_cv_func_strnlen+set}" = set; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22322else
22323 cat >conftest.$ac_ext <<_ACEOF
22324#line $LINENO "configure"
22325#include "confdefs.h"
22326/* System header to define __stub macros and hopefully few prototypes,
22327 which can conflict with char strnlen (); below. */
22328#include <assert.h>
22329/* Override any gcc2 internal prototype to avoid an error. */
22330#ifdef __cplusplus
22331extern "C"
22332#endif
22333/* We use char because int might match the return type of a gcc2
22334 builtin and then its argument prototype would still apply. */
22335char strnlen ();
22336char (*f) ();
22337
22338#ifdef F77_DUMMY_MAIN
22339# ifdef __cplusplus
22340 extern "C"
22341# endif
22342 int F77_DUMMY_MAIN() { return 1; }
22343#endif
22344int
22345main ()
22346{
22347/* The GNU C library defines this for functions which it implements
22348 to always fail with ENOSYS. Some functions are actually named
22349 something starting with __ and the normal name is an alias. */
22350#if defined (__stub_strnlen) || defined (__stub___strnlen)
22351choke me
22352#else
22353f = strnlen;
22354#endif
22355
22356 ;
22357 return 0;
22358}
22359_ACEOF
22360rm -f conftest.$ac_objext conftest$ac_exeext
22361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22362 (eval $ac_link) 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } &&
22366 { ac_try='test -s conftest$ac_exeext'
22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; }; then
22372 ac_cv_func_strnlen=yes
22373else
22374 echo "$as_me: failed program was:" >&5
22375cat conftest.$ac_ext >&5
22376ac_cv_func_strnlen=no
22377fi
22378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22379fi
22380echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
22381echo "${ECHO_T}$ac_cv_func_strnlen" >&6
22382if test $ac_cv_func_strnlen = yes; then
22383
22384cat >>confdefs.h <<_ACEOF
22385#define HAVE_STRNLEN 1
22386_ACEOF
22387
22388else
22389 LIBOBJS="$LIBOBJS strnlen.$ac_objext"
22390fi
22391echo "$as_me:$LINENO: checking for strptime" >&5
22392echo $ECHO_N "checking for strptime... $ECHO_C" >&6
22393if test "${ac_cv_func_strptime+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22395else
22396 cat >conftest.$ac_ext <<_ACEOF
22397#line $LINENO "configure"
22398#include "confdefs.h"
22399/* System header to define __stub macros and hopefully few prototypes,
22400 which can conflict with char strptime (); below. */
22401#include <assert.h>
22402/* Override any gcc2 internal prototype to avoid an error. */
22403#ifdef __cplusplus
22404extern "C"
22405#endif
22406/* We use char because int might match the return type of a gcc2
22407 builtin and then its argument prototype would still apply. */
22408char strptime ();
22409char (*f) ();
22410
22411#ifdef F77_DUMMY_MAIN
22412# ifdef __cplusplus
22413 extern "C"
22414# endif
22415 int F77_DUMMY_MAIN() { return 1; }
22416#endif
22417int
22418main ()
22419{
22420/* The GNU C library defines this for functions which it implements
22421 to always fail with ENOSYS. Some functions are actually named
22422 something starting with __ and the normal name is an alias. */
22423#if defined (__stub_strptime) || defined (__stub___strptime)
22424choke me
22425#else
22426f = strptime;
22427#endif
22428
22429 ;
22430 return 0;
22431}
22432_ACEOF
22433rm -f conftest.$ac_objext conftest$ac_exeext
22434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22435 (eval $ac_link) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } &&
22439 { ac_try='test -s conftest$ac_exeext'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 ac_cv_func_strptime=yes
22446else
22447 echo "$as_me: failed program was:" >&5
22448cat conftest.$ac_ext >&5
22449ac_cv_func_strptime=no
22450fi
22451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22452fi
22453echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
22454echo "${ECHO_T}$ac_cv_func_strptime" >&6
22455if test $ac_cv_func_strptime = yes; then
22456
22457cat >>confdefs.h <<_ACEOF
22458#define HAVE_STRPTIME 1
22459_ACEOF
22460
22461else
22462 LIBOBJS="$LIBOBJS strptime.$ac_objext"
22463fi
22464echo "$as_me:$LINENO: checking for strsep" >&5
22465echo $ECHO_N "checking for strsep... $ECHO_C" >&6
22466if test "${ac_cv_func_strsep+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22468else
22469 cat >conftest.$ac_ext <<_ACEOF
22470#line $LINENO "configure"
22471#include "confdefs.h"
22472/* System header to define __stub macros and hopefully few prototypes,
22473 which can conflict with char strsep (); below. */
22474#include <assert.h>
22475/* Override any gcc2 internal prototype to avoid an error. */
22476#ifdef __cplusplus
22477extern "C"
22478#endif
22479/* We use char because int might match the return type of a gcc2
22480 builtin and then its argument prototype would still apply. */
22481char strsep ();
22482char (*f) ();
22483
22484#ifdef F77_DUMMY_MAIN
22485# ifdef __cplusplus
22486 extern "C"
22487# endif
22488 int F77_DUMMY_MAIN() { return 1; }
22489#endif
22490int
22491main ()
22492{
22493/* The GNU C library defines this for functions which it implements
22494 to always fail with ENOSYS. Some functions are actually named
22495 something starting with __ and the normal name is an alias. */
22496#if defined (__stub_strsep) || defined (__stub___strsep)
22497choke me
22498#else
22499f = strsep;
22500#endif
22501
22502 ;
22503 return 0;
22504}
22505_ACEOF
22506rm -f conftest.$ac_objext conftest$ac_exeext
22507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22508 (eval $ac_link) 2>&5
22509 ac_status=$?
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } &&
22512 { ac_try='test -s conftest$ac_exeext'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; }; then
22518 ac_cv_func_strsep=yes
22519else
22520 echo "$as_me: failed program was:" >&5
22521cat conftest.$ac_ext >&5
22522ac_cv_func_strsep=no
22523fi
22524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22525fi
22526echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
22527echo "${ECHO_T}$ac_cv_func_strsep" >&6
22528if test $ac_cv_func_strsep = yes; then
22529
22530cat >>confdefs.h <<_ACEOF
22531#define HAVE_STRSEP 1
22532_ACEOF
22533
22534else
22535 LIBOBJS="$LIBOBJS strsep.$ac_objext"
22536fi
22537echo "$as_me:$LINENO: checking for strsep_copy" >&5
22538echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
22539if test "${ac_cv_func_strsep_copy+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22541else
22542 cat >conftest.$ac_ext <<_ACEOF
22543#line $LINENO "configure"
22544#include "confdefs.h"
22545/* System header to define __stub macros and hopefully few prototypes,
22546 which can conflict with char strsep_copy (); below. */
22547#include <assert.h>
22548/* Override any gcc2 internal prototype to avoid an error. */
22549#ifdef __cplusplus
22550extern "C"
22551#endif
22552/* We use char because int might match the return type of a gcc2
22553 builtin and then its argument prototype would still apply. */
22554char strsep_copy ();
22555char (*f) ();
22556
22557#ifdef F77_DUMMY_MAIN
22558# ifdef __cplusplus
22559 extern "C"
22560# endif
22561 int F77_DUMMY_MAIN() { return 1; }
22562#endif
22563int
22564main ()
22565{
22566/* The GNU C library defines this for functions which it implements
22567 to always fail with ENOSYS. Some functions are actually named
22568 something starting with __ and the normal name is an alias. */
22569#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
22570choke me
22571#else
22572f = strsep_copy;
22573#endif
22574
22575 ;
22576 return 0;
22577}
22578_ACEOF
22579rm -f conftest.$ac_objext conftest$ac_exeext
22580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22581 (eval $ac_link) 2>&5
22582 ac_status=$?
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } &&
22585 { ac_try='test -s conftest$ac_exeext'
22586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22587 (eval $ac_try) 2>&5
22588 ac_status=$?
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); }; }; then
22591 ac_cv_func_strsep_copy=yes
22592else
22593 echo "$as_me: failed program was:" >&5
22594cat conftest.$ac_ext >&5
22595ac_cv_func_strsep_copy=no
22596fi
22597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22598fi
22599echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
22600echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
22601if test $ac_cv_func_strsep_copy = yes; then
22602
22603cat >>confdefs.h <<_ACEOF
22604#define HAVE_STRSEP_COPY 1
22605_ACEOF
22606
22607else
22608 LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
22609fi
22610echo "$as_me:$LINENO: checking for strtok_r" >&5
22611echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
22612if test "${ac_cv_func_strtok_r+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22614else
22615 cat >conftest.$ac_ext <<_ACEOF
22616#line $LINENO "configure"
22617#include "confdefs.h"
22618/* System header to define __stub macros and hopefully few prototypes,
22619 which can conflict with char strtok_r (); below. */
22620#include <assert.h>
22621/* Override any gcc2 internal prototype to avoid an error. */
22622#ifdef __cplusplus
22623extern "C"
22624#endif
22625/* We use char because int might match the return type of a gcc2
22626 builtin and then its argument prototype would still apply. */
22627char strtok_r ();
22628char (*f) ();
22629
22630#ifdef F77_DUMMY_MAIN
22631# ifdef __cplusplus
22632 extern "C"
22633# endif
22634 int F77_DUMMY_MAIN() { return 1; }
22635#endif
22636int
22637main ()
22638{
22639/* The GNU C library defines this for functions which it implements
22640 to always fail with ENOSYS. Some functions are actually named
22641 something starting with __ and the normal name is an alias. */
22642#if defined (__stub_strtok_r) || defined (__stub___strtok_r)
22643choke me
22644#else
22645f = strtok_r;
22646#endif
22647
22648 ;
22649 return 0;
22650}
22651_ACEOF
22652rm -f conftest.$ac_objext conftest$ac_exeext
22653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22654 (eval $ac_link) 2>&5
22655 ac_status=$?
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); } &&
22658 { ac_try='test -s conftest$ac_exeext'
22659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660 (eval $ac_try) 2>&5
22661 ac_status=$?
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); }; }; then
22664 ac_cv_func_strtok_r=yes
22665else
22666 echo "$as_me: failed program was:" >&5
22667cat conftest.$ac_ext >&5
22668ac_cv_func_strtok_r=no
22669fi
22670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22671fi
22672echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
22673echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
22674if test $ac_cv_func_strtok_r = yes; then
22675
22676cat >>confdefs.h <<_ACEOF
22677#define HAVE_STRTOK_R 1
22678_ACEOF
22679
22680else
22681 LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
22682fi
22683echo "$as_me:$LINENO: checking for strupr" >&5
22684echo $ECHO_N "checking for strupr... $ECHO_C" >&6
22685if test "${ac_cv_func_strupr+set}" = set; then
22686 echo $ECHO_N "(cached) $ECHO_C" >&6
22687else
22688 cat >conftest.$ac_ext <<_ACEOF
22689#line $LINENO "configure"
22690#include "confdefs.h"
22691/* System header to define __stub macros and hopefully few prototypes,
22692 which can conflict with char strupr (); below. */
22693#include <assert.h>
22694/* Override any gcc2 internal prototype to avoid an error. */
22695#ifdef __cplusplus
22696extern "C"
22697#endif
22698/* We use char because int might match the return type of a gcc2
22699 builtin and then its argument prototype would still apply. */
22700char strupr ();
22701char (*f) ();
22702
22703#ifdef F77_DUMMY_MAIN
22704# ifdef __cplusplus
22705 extern "C"
22706# endif
22707 int F77_DUMMY_MAIN() { return 1; }
22708#endif
22709int
22710main ()
22711{
22712/* The GNU C library defines this for functions which it implements
22713 to always fail with ENOSYS. Some functions are actually named
22714 something starting with __ and the normal name is an alias. */
22715#if defined (__stub_strupr) || defined (__stub___strupr)
22716choke me
22717#else
22718f = strupr;
22719#endif
22720
22721 ;
22722 return 0;
22723}
22724_ACEOF
22725rm -f conftest.$ac_objext conftest$ac_exeext
22726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727 (eval $ac_link) 2>&5
22728 ac_status=$?
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } &&
22731 { ac_try='test -s conftest$ac_exeext'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; }; then
22737 ac_cv_func_strupr=yes
22738else
22739 echo "$as_me: failed program was:" >&5
22740cat conftest.$ac_ext >&5
22741ac_cv_func_strupr=no
22742fi
22743rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22744fi
22745echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
22746echo "${ECHO_T}$ac_cv_func_strupr" >&6
22747if test $ac_cv_func_strupr = yes; then
22748
22749cat >>confdefs.h <<_ACEOF
22750#define HAVE_STRUPR 1
22751_ACEOF
22752
22753else
22754 LIBOBJS="$LIBOBJS strupr.$ac_objext"
22755fi
22756echo "$as_me:$LINENO: checking for swab" >&5
22757echo $ECHO_N "checking for swab... $ECHO_C" >&6
22758if test "${ac_cv_func_swab+set}" = set; then
22759 echo $ECHO_N "(cached) $ECHO_C" >&6
22760else
22761 cat >conftest.$ac_ext <<_ACEOF
22762#line $LINENO "configure"
22763#include "confdefs.h"
22764/* System header to define __stub macros and hopefully few prototypes,
22765 which can conflict with char swab (); below. */
22766#include <assert.h>
22767/* Override any gcc2 internal prototype to avoid an error. */
22768#ifdef __cplusplus
22769extern "C"
22770#endif
22771/* We use char because int might match the return type of a gcc2
22772 builtin and then its argument prototype would still apply. */
22773char swab ();
22774char (*f) ();
22775
22776#ifdef F77_DUMMY_MAIN
22777# ifdef __cplusplus
22778 extern "C"
22779# endif
22780 int F77_DUMMY_MAIN() { return 1; }
22781#endif
22782int
22783main ()
22784{
22785/* The GNU C library defines this for functions which it implements
22786 to always fail with ENOSYS. Some functions are actually named
22787 something starting with __ and the normal name is an alias. */
22788#if defined (__stub_swab) || defined (__stub___swab)
22789choke me
22790#else
22791f = swab;
22792#endif
22793
22794 ;
22795 return 0;
22796}
22797_ACEOF
22798rm -f conftest.$ac_objext conftest$ac_exeext
22799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800 (eval $ac_link) 2>&5
22801 ac_status=$?
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } &&
22804 { ac_try='test -s conftest$ac_exeext'
22805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22806 (eval $ac_try) 2>&5
22807 ac_status=$?
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); }; }; then
22810 ac_cv_func_swab=yes
22811else
22812 echo "$as_me: failed program was:" >&5
22813cat conftest.$ac_ext >&5
22814ac_cv_func_swab=no
22815fi
22816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22817fi
22818echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
22819echo "${ECHO_T}$ac_cv_func_swab" >&6
22820if test $ac_cv_func_swab = yes; then
22821
22822cat >>confdefs.h <<_ACEOF
22823#define HAVE_SWAB 1
22824_ACEOF
22825
22826else
22827 LIBOBJS="$LIBOBJS swab.$ac_objext"
22828fi
22829echo "$as_me:$LINENO: checking for unsetenv" >&5
22830echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
22831if test "${ac_cv_func_unsetenv+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22833else
22834 cat >conftest.$ac_ext <<_ACEOF
22835#line $LINENO "configure"
22836#include "confdefs.h"
22837/* System header to define __stub macros and hopefully few prototypes,
22838 which can conflict with char unsetenv (); below. */
22839#include <assert.h>
22840/* Override any gcc2 internal prototype to avoid an error. */
22841#ifdef __cplusplus
22842extern "C"
22843#endif
22844/* We use char because int might match the return type of a gcc2
22845 builtin and then its argument prototype would still apply. */
22846char unsetenv ();
22847char (*f) ();
22848
22849#ifdef F77_DUMMY_MAIN
22850# ifdef __cplusplus
22851 extern "C"
22852# endif
22853 int F77_DUMMY_MAIN() { return 1; }
22854#endif
22855int
22856main ()
22857{
22858/* The GNU C library defines this for functions which it implements
22859 to always fail with ENOSYS. Some functions are actually named
22860 something starting with __ and the normal name is an alias. */
22861#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
22862choke me
22863#else
22864f = unsetenv;
22865#endif
22866
22867 ;
22868 return 0;
22869}
22870_ACEOF
22871rm -f conftest.$ac_objext conftest$ac_exeext
22872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22873 (eval $ac_link) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } &&
22877 { ac_try='test -s conftest$ac_exeext'
22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 ac_cv_func_unsetenv=yes
22884else
22885 echo "$as_me: failed program was:" >&5
22886cat conftest.$ac_ext >&5
22887ac_cv_func_unsetenv=no
22888fi
22889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22890fi
22891echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
22892echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
22893if test $ac_cv_func_unsetenv = yes; then
22894
22895cat >>confdefs.h <<_ACEOF
22896#define HAVE_UNSETENV 1
22897_ACEOF
22898
22899else
22900 LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
22901fi
22902echo "$as_me:$LINENO: checking for verr" >&5
22903echo $ECHO_N "checking for verr... $ECHO_C" >&6
22904if test "${ac_cv_func_verr+set}" = set; then
22905 echo $ECHO_N "(cached) $ECHO_C" >&6
22906else
22907 cat >conftest.$ac_ext <<_ACEOF
22908#line $LINENO "configure"
22909#include "confdefs.h"
22910/* System header to define __stub macros and hopefully few prototypes,
22911 which can conflict with char verr (); below. */
22912#include <assert.h>
22913/* Override any gcc2 internal prototype to avoid an error. */
22914#ifdef __cplusplus
22915extern "C"
22916#endif
22917/* We use char because int might match the return type of a gcc2
22918 builtin and then its argument prototype would still apply. */
22919char verr ();
22920char (*f) ();
22921
22922#ifdef F77_DUMMY_MAIN
22923# ifdef __cplusplus
22924 extern "C"
22925# endif
22926 int F77_DUMMY_MAIN() { return 1; }
22927#endif
22928int
22929main ()
22930{
22931/* The GNU C library defines this for functions which it implements
22932 to always fail with ENOSYS. Some functions are actually named
22933 something starting with __ and the normal name is an alias. */
22934#if defined (__stub_verr) || defined (__stub___verr)
22935choke me
22936#else
22937f = verr;
22938#endif
22939
22940 ;
22941 return 0;
22942}
22943_ACEOF
22944rm -f conftest.$ac_objext conftest$ac_exeext
22945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22946 (eval $ac_link) 2>&5
22947 ac_status=$?
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } &&
22950 { ac_try='test -s conftest$ac_exeext'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22956 ac_cv_func_verr=yes
22957else
22958 echo "$as_me: failed program was:" >&5
22959cat conftest.$ac_ext >&5
22960ac_cv_func_verr=no
22961fi
22962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22963fi
22964echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
22965echo "${ECHO_T}$ac_cv_func_verr" >&6
22966if test $ac_cv_func_verr = yes; then
22967
22968cat >>confdefs.h <<_ACEOF
22969#define HAVE_VERR 1
22970_ACEOF
22971
22972else
22973 LIBOBJS="$LIBOBJS verr.$ac_objext"
22974fi
22975echo "$as_me:$LINENO: checking for verrx" >&5
22976echo $ECHO_N "checking for verrx... $ECHO_C" >&6
22977if test "${ac_cv_func_verrx+set}" = set; then
22978 echo $ECHO_N "(cached) $ECHO_C" >&6
22979else
22980 cat >conftest.$ac_ext <<_ACEOF
22981#line $LINENO "configure"
22982#include "confdefs.h"
22983/* System header to define __stub macros and hopefully few prototypes,
22984 which can conflict with char verrx (); below. */
22985#include <assert.h>
22986/* Override any gcc2 internal prototype to avoid an error. */
22987#ifdef __cplusplus
22988extern "C"
22989#endif
22990/* We use char because int might match the return type of a gcc2
22991 builtin and then its argument prototype would still apply. */
22992char verrx ();
22993char (*f) ();
22994
22995#ifdef F77_DUMMY_MAIN
22996# ifdef __cplusplus
22997 extern "C"
22998# endif
22999 int F77_DUMMY_MAIN() { return 1; }
23000#endif
23001int
23002main ()
23003{
23004/* The GNU C library defines this for functions which it implements
23005 to always fail with ENOSYS. Some functions are actually named
23006 something starting with __ and the normal name is an alias. */
23007#if defined (__stub_verrx) || defined (__stub___verrx)
23008choke me
23009#else
23010f = verrx;
23011#endif
23012
23013 ;
23014 return 0;
23015}
23016_ACEOF
23017rm -f conftest.$ac_objext conftest$ac_exeext
23018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019 (eval $ac_link) 2>&5
23020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } &&
23023 { ac_try='test -s conftest$ac_exeext'
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; }; then
23029 ac_cv_func_verrx=yes
23030else
23031 echo "$as_me: failed program was:" >&5
23032cat conftest.$ac_ext >&5
23033ac_cv_func_verrx=no
23034fi
23035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23036fi
23037echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
23038echo "${ECHO_T}$ac_cv_func_verrx" >&6
23039if test $ac_cv_func_verrx = yes; then
23040
23041cat >>confdefs.h <<_ACEOF
23042#define HAVE_VERRX 1
23043_ACEOF
23044
23045else
23046 LIBOBJS="$LIBOBJS verrx.$ac_objext"
23047fi
23048echo "$as_me:$LINENO: checking for vsyslog" >&5
23049echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
23050if test "${ac_cv_func_vsyslog+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052else
23053 cat >conftest.$ac_ext <<_ACEOF
23054#line $LINENO "configure"
23055#include "confdefs.h"
23056/* System header to define __stub macros and hopefully few prototypes,
23057 which can conflict with char vsyslog (); below. */
23058#include <assert.h>
23059/* Override any gcc2 internal prototype to avoid an error. */
23060#ifdef __cplusplus
23061extern "C"
23062#endif
23063/* We use char because int might match the return type of a gcc2
23064 builtin and then its argument prototype would still apply. */
23065char vsyslog ();
23066char (*f) ();
23067
23068#ifdef F77_DUMMY_MAIN
23069# ifdef __cplusplus
23070 extern "C"
23071# endif
23072 int F77_DUMMY_MAIN() { return 1; }
23073#endif
23074int
23075main ()
23076{
23077/* The GNU C library defines this for functions which it implements
23078 to always fail with ENOSYS. Some functions are actually named
23079 something starting with __ and the normal name is an alias. */
23080#if defined (__stub_vsyslog) || defined (__stub___vsyslog)
23081choke me
23082#else
23083f = vsyslog;
23084#endif
23085
23086 ;
23087 return 0;
23088}
23089_ACEOF
23090rm -f conftest.$ac_objext conftest$ac_exeext
23091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23092 (eval $ac_link) 2>&5
23093 ac_status=$?
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } &&
23096 { ac_try='test -s conftest$ac_exeext'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; }; then
23102 ac_cv_func_vsyslog=yes
23103else
23104 echo "$as_me: failed program was:" >&5
23105cat conftest.$ac_ext >&5
23106ac_cv_func_vsyslog=no
23107fi
23108rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23109fi
23110echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
23111echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
23112if test $ac_cv_func_vsyslog = yes; then
23113
23114cat >>confdefs.h <<_ACEOF
23115#define HAVE_VSYSLOG 1
23116_ACEOF
23117
23118else
23119 LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
23120fi
23121echo "$as_me:$LINENO: checking for vwarn" >&5
23122echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
23123if test "${ac_cv_func_vwarn+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23125else
23126 cat >conftest.$ac_ext <<_ACEOF
23127#line $LINENO "configure"
23128#include "confdefs.h"
23129/* System header to define __stub macros and hopefully few prototypes,
23130 which can conflict with char vwarn (); below. */
23131#include <assert.h>
23132/* Override any gcc2 internal prototype to avoid an error. */
23133#ifdef __cplusplus
23134extern "C"
23135#endif
23136/* We use char because int might match the return type of a gcc2
23137 builtin and then its argument prototype would still apply. */
23138char vwarn ();
23139char (*f) ();
23140
23141#ifdef F77_DUMMY_MAIN
23142# ifdef __cplusplus
23143 extern "C"
23144# endif
23145 int F77_DUMMY_MAIN() { return 1; }
23146#endif
23147int
23148main ()
23149{
23150/* The GNU C library defines this for functions which it implements
23151 to always fail with ENOSYS. Some functions are actually named
23152 something starting with __ and the normal name is an alias. */
23153#if defined (__stub_vwarn) || defined (__stub___vwarn)
23154choke me
23155#else
23156f = vwarn;
23157#endif
23158
23159 ;
23160 return 0;
23161}
23162_ACEOF
23163rm -f conftest.$ac_objext conftest$ac_exeext
23164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23165 (eval $ac_link) 2>&5
23166 ac_status=$?
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
23169 { ac_try='test -s conftest$ac_exeext'
23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171 (eval $ac_try) 2>&5
23172 ac_status=$?
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; }; then
23175 ac_cv_func_vwarn=yes
23176else
23177 echo "$as_me: failed program was:" >&5
23178cat conftest.$ac_ext >&5
23179ac_cv_func_vwarn=no
23180fi
23181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23182fi
23183echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
23184echo "${ECHO_T}$ac_cv_func_vwarn" >&6
23185if test $ac_cv_func_vwarn = yes; then
23186
23187cat >>confdefs.h <<_ACEOF
23188#define HAVE_VWARN 1
23189_ACEOF
23190
23191else
23192 LIBOBJS="$LIBOBJS vwarn.$ac_objext"
23193fi
23194echo "$as_me:$LINENO: checking for vwarnx" >&5
23195echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
23196if test "${ac_cv_func_vwarnx+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23198else
23199 cat >conftest.$ac_ext <<_ACEOF
23200#line $LINENO "configure"
23201#include "confdefs.h"
23202/* System header to define __stub macros and hopefully few prototypes,
23203 which can conflict with char vwarnx (); below. */
23204#include <assert.h>
23205/* Override any gcc2 internal prototype to avoid an error. */
23206#ifdef __cplusplus
23207extern "C"
23208#endif
23209/* We use char because int might match the return type of a gcc2
23210 builtin and then its argument prototype would still apply. */
23211char vwarnx ();
23212char (*f) ();
23213
23214#ifdef F77_DUMMY_MAIN
23215# ifdef __cplusplus
23216 extern "C"
23217# endif
23218 int F77_DUMMY_MAIN() { return 1; }
23219#endif
23220int
23221main ()
23222{
23223/* The GNU C library defines this for functions which it implements
23224 to always fail with ENOSYS. Some functions are actually named
23225 something starting with __ and the normal name is an alias. */
23226#if defined (__stub_vwarnx) || defined (__stub___vwarnx)
23227choke me
23228#else
23229f = vwarnx;
23230#endif
23231
23232 ;
23233 return 0;
23234}
23235_ACEOF
23236rm -f conftest.$ac_objext conftest$ac_exeext
23237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23238 (eval $ac_link) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } &&
23242 { ac_try='test -s conftest$ac_exeext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 ac_cv_func_vwarnx=yes
23249else
23250 echo "$as_me: failed program was:" >&5
23251cat conftest.$ac_ext >&5
23252ac_cv_func_vwarnx=no
23253fi
23254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23255fi
23256echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
23257echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
23258if test $ac_cv_func_vwarnx = yes; then
23259
23260cat >>confdefs.h <<_ACEOF
23261#define HAVE_VWARNX 1
23262_ACEOF
23263
23264else
23265 LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
23266fi
23267echo "$as_me:$LINENO: checking for warn" >&5
23268echo $ECHO_N "checking for warn... $ECHO_C" >&6
23269if test "${ac_cv_func_warn+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23271else
23272 cat >conftest.$ac_ext <<_ACEOF
23273#line $LINENO "configure"
23274#include "confdefs.h"
23275/* System header to define __stub macros and hopefully few prototypes,
23276 which can conflict with char warn (); below. */
23277#include <assert.h>
23278/* Override any gcc2 internal prototype to avoid an error. */
23279#ifdef __cplusplus
23280extern "C"
23281#endif
23282/* We use char because int might match the return type of a gcc2
23283 builtin and then its argument prototype would still apply. */
23284char warn ();
23285char (*f) ();
23286
23287#ifdef F77_DUMMY_MAIN
23288# ifdef __cplusplus
23289 extern "C"
23290# endif
23291 int F77_DUMMY_MAIN() { return 1; }
23292#endif
23293int
23294main ()
23295{
23296/* The GNU C library defines this for functions which it implements
23297 to always fail with ENOSYS. Some functions are actually named
23298 something starting with __ and the normal name is an alias. */
23299#if defined (__stub_warn) || defined (__stub___warn)
23300choke me
23301#else
23302f = warn;
23303#endif
23304
23305 ;
23306 return 0;
23307}
23308_ACEOF
23309rm -f conftest.$ac_objext conftest$ac_exeext
23310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23311 (eval $ac_link) 2>&5
23312 ac_status=$?
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
23315 { ac_try='test -s conftest$ac_exeext'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; }; then
23321 ac_cv_func_warn=yes
23322else
23323 echo "$as_me: failed program was:" >&5
23324cat conftest.$ac_ext >&5
23325ac_cv_func_warn=no
23326fi
23327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23328fi
23329echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
23330echo "${ECHO_T}$ac_cv_func_warn" >&6
23331if test $ac_cv_func_warn = yes; then
23332
23333cat >>confdefs.h <<_ACEOF
23334#define HAVE_WARN 1
23335_ACEOF
23336
23337else
23338 LIBOBJS="$LIBOBJS warn.$ac_objext"
23339fi
23340echo "$as_me:$LINENO: checking for warnx" >&5
23341echo $ECHO_N "checking for warnx... $ECHO_C" >&6
23342if test "${ac_cv_func_warnx+set}" = set; then
23343 echo $ECHO_N "(cached) $ECHO_C" >&6
23344else
23345 cat >conftest.$ac_ext <<_ACEOF
23346#line $LINENO "configure"
23347#include "confdefs.h"
23348/* System header to define __stub macros and hopefully few prototypes,
23349 which can conflict with char warnx (); below. */
23350#include <assert.h>
23351/* Override any gcc2 internal prototype to avoid an error. */
23352#ifdef __cplusplus
23353extern "C"
23354#endif
23355/* We use char because int might match the return type of a gcc2
23356 builtin and then its argument prototype would still apply. */
23357char warnx ();
23358char (*f) ();
23359
23360#ifdef F77_DUMMY_MAIN
23361# ifdef __cplusplus
23362 extern "C"
23363# endif
23364 int F77_DUMMY_MAIN() { return 1; }
23365#endif
23366int
23367main ()
23368{
23369/* The GNU C library defines this for functions which it implements
23370 to always fail with ENOSYS. Some functions are actually named
23371 something starting with __ and the normal name is an alias. */
23372#if defined (__stub_warnx) || defined (__stub___warnx)
23373choke me
23374#else
23375f = warnx;
23376#endif
23377
23378 ;
23379 return 0;
23380}
23381_ACEOF
23382rm -f conftest.$ac_objext conftest$ac_exeext
23383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23384 (eval $ac_link) 2>&5
23385 ac_status=$?
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
23388 { ac_try='test -s conftest$ac_exeext'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_cv_func_warnx=yes
23395else
23396 echo "$as_me: failed program was:" >&5
23397cat conftest.$ac_ext >&5
23398ac_cv_func_warnx=no
23399fi
23400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23401fi
23402echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
23403echo "${ECHO_T}$ac_cv_func_warnx" >&6
23404if test $ac_cv_func_warnx = yes; then
23405
23406cat >>confdefs.h <<_ACEOF
23407#define HAVE_WARNX 1
23408_ACEOF
23409
23410else
23411 LIBOBJS="$LIBOBJS warnx.$ac_objext"
23412fi
23413echo "$as_me:$LINENO: checking for writev" >&5
23414echo $ECHO_N "checking for writev... $ECHO_C" >&6
23415if test "${ac_cv_func_writev+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23417else
23418 cat >conftest.$ac_ext <<_ACEOF
23419#line $LINENO "configure"
23420#include "confdefs.h"
23421/* System header to define __stub macros and hopefully few prototypes,
23422 which can conflict with char writev (); below. */
23423#include <assert.h>
23424/* Override any gcc2 internal prototype to avoid an error. */
23425#ifdef __cplusplus
23426extern "C"
23427#endif
23428/* We use char because int might match the return type of a gcc2
23429 builtin and then its argument prototype would still apply. */
23430char writev ();
23431char (*f) ();
23432
23433#ifdef F77_DUMMY_MAIN
23434# ifdef __cplusplus
23435 extern "C"
23436# endif
23437 int F77_DUMMY_MAIN() { return 1; }
23438#endif
23439int
23440main ()
23441{
23442/* The GNU C library defines this for functions which it implements
23443 to always fail with ENOSYS. Some functions are actually named
23444 something starting with __ and the normal name is an alias. */
23445#if defined (__stub_writev) || defined (__stub___writev)
23446choke me
23447#else
23448f = writev;
23449#endif
23450
23451 ;
23452 return 0;
23453}
23454_ACEOF
23455rm -f conftest.$ac_objext conftest$ac_exeext
23456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23457 (eval $ac_link) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } &&
23461 { ac_try='test -s conftest$ac_exeext'
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; }; then
23467 ac_cv_func_writev=yes
23468else
23469 echo "$as_me: failed program was:" >&5
23470cat conftest.$ac_ext >&5
23471ac_cv_func_writev=no
23472fi
23473rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23474fi
23475echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
23476echo "${ECHO_T}$ac_cv_func_writev" >&6
23477if test $ac_cv_func_writev = yes; then
23478
23479cat >>confdefs.h <<_ACEOF
23480#define HAVE_WRITEV 1
23481_ACEOF
23482
23483else
23484 LIBOBJS="$LIBOBJS writev.$ac_objext"
23485fi
23486
23487
23488
23489if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
23490echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
23491echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
23492if test "${ac_cv_func_strndup_noproto+set}" = set; then
23493 echo $ECHO_N "(cached) $ECHO_C" >&6
23494else
23495 cat >conftest.$ac_ext <<_ACEOF
23496#line $LINENO "configure"
23497#include "confdefs.h"
23498#include <string.h>
23499#ifdef F77_DUMMY_MAIN
23500# ifdef __cplusplus
23501 extern "C"
23502# endif
23503 int F77_DUMMY_MAIN() { return 1; }
23504#endif
23505int
23506main ()
23507{
23508struct foo { int foo; } xx;
23509extern int strndup (struct foo*);
23510strndup(&xx);
23511
23512 ;
23513 return 0;
23514}
23515_ACEOF
23516rm -f conftest.$ac_objext
23517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23518 (eval $ac_compile) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
23522 { ac_try='test -s conftest.$ac_objext'
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 eval "ac_cv_func_strndup_noproto=yes"
23529else
23530 echo "$as_me: failed program was:" >&5
23531cat conftest.$ac_ext >&5
23532eval "ac_cv_func_strndup_noproto=no"
23533fi
23534rm -f conftest.$ac_objext conftest.$ac_ext
23535fi
23536echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
23537echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
23538if test "$ac_cv_func_strndup_noproto" = yes; then
23539
23540cat >>confdefs.h <<\_ACEOF
23541#define NEED_STRNDUP_PROTO 1
23542_ACEOF
23543
23544fi
23545fi
23546
23547if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
23548echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
23549echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
23550if test "${ac_cv_func_strsep_noproto+set}" = set; then
23551 echo $ECHO_N "(cached) $ECHO_C" >&6
23552else
23553 cat >conftest.$ac_ext <<_ACEOF
23554#line $LINENO "configure"
23555#include "confdefs.h"
23556#include <string.h>
23557#ifdef F77_DUMMY_MAIN
23558# ifdef __cplusplus
23559 extern "C"
23560# endif
23561 int F77_DUMMY_MAIN() { return 1; }
23562#endif
23563int
23564main ()
23565{
23566struct foo { int foo; } xx;
23567extern int strsep (struct foo*);
23568strsep(&xx);
23569
23570 ;
23571 return 0;
23572}
23573_ACEOF
23574rm -f conftest.$ac_objext
23575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23576 (eval $ac_compile) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } &&
23580 { ac_try='test -s conftest.$ac_objext'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 eval "ac_cv_func_strsep_noproto=yes"
23587else
23588 echo "$as_me: failed program was:" >&5
23589cat conftest.$ac_ext >&5
23590eval "ac_cv_func_strsep_noproto=no"
23591fi
23592rm -f conftest.$ac_objext conftest.$ac_ext
23593fi
23594echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
23595echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
23596if test "$ac_cv_func_strsep_noproto" = yes; then
23597
23598cat >>confdefs.h <<\_ACEOF
23599#define NEED_STRSEP_PROTO 1
23600_ACEOF
23601
23602fi
23603fi
23604
23605if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
23606echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
23607echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
23608if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23610else
23611 cat >conftest.$ac_ext <<_ACEOF
23612#line $LINENO "configure"
23613#include "confdefs.h"
23614#include <string.h>
23615#ifdef F77_DUMMY_MAIN
23616# ifdef __cplusplus
23617 extern "C"
23618# endif
23619 int F77_DUMMY_MAIN() { return 1; }
23620#endif
23621int
23622main ()
23623{
23624struct foo { int foo; } xx;
23625extern int strtok_r (struct foo*);
23626strtok_r(&xx);
23627
23628 ;
23629 return 0;
23630}
23631_ACEOF
23632rm -f conftest.$ac_objext
23633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23634 (eval $ac_compile) 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); } &&
23638 { ac_try='test -s conftest.$ac_objext'
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23641 ac_status=$?
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; }; then
23644 eval "ac_cv_func_strtok_r_noproto=yes"
23645else
23646 echo "$as_me: failed program was:" >&5
23647cat conftest.$ac_ext >&5
23648eval "ac_cv_func_strtok_r_noproto=no"
23649fi
23650rm -f conftest.$ac_objext conftest.$ac_ext
23651fi
23652echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
23653echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
23654if test "$ac_cv_func_strtok_r_noproto" = yes; then
23655
23656cat >>confdefs.h <<\_ACEOF
23657#define NEED_STRTOK_R_PROTO 1
23658_ACEOF
23659
23660fi
23661fi
23662
23663
23664
23665if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
23666echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
23667echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
23668if test "${ac_cv_func_strsvis_noproto+set}" = set; then
23669 echo $ECHO_N "(cached) $ECHO_C" >&6
23670else
23671 cat >conftest.$ac_ext <<_ACEOF
23672#line $LINENO "configure"
23673#include "confdefs.h"
23674#ifdef HAVE_VIS_H
23675#include <vis.h>
23676#endif
23677#ifdef F77_DUMMY_MAIN
23678# ifdef __cplusplus
23679 extern "C"
23680# endif
23681 int F77_DUMMY_MAIN() { return 1; }
23682#endif
23683int
23684main ()
23685{
23686struct foo { int foo; } xx;
23687extern int strsvis (struct foo*);
23688strsvis(&xx);
23689
23690 ;
23691 return 0;
23692}
23693_ACEOF
23694rm -f conftest.$ac_objext
23695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23696 (eval $ac_compile) 2>&5
23697 ac_status=$?
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } &&
23700 { ac_try='test -s conftest.$ac_objext'
23701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23702 (eval $ac_try) 2>&5
23703 ac_status=$?
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); }; }; then
23706 eval "ac_cv_func_strsvis_noproto=yes"
23707else
23708 echo "$as_me: failed program was:" >&5
23709cat conftest.$ac_ext >&5
23710eval "ac_cv_func_strsvis_noproto=no"
23711fi
23712rm -f conftest.$ac_objext conftest.$ac_ext
23713fi
23714echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
23715echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
23716if test "$ac_cv_func_strsvis_noproto" = yes; then
23717
23718cat >>confdefs.h <<\_ACEOF
23719#define NEED_STRSVIS_PROTO 1
23720_ACEOF
23721
23722fi
23723fi
23724
23725if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
23726echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
23727echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
23728if test "${ac_cv_func_strunvis_noproto+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23730else
23731 cat >conftest.$ac_ext <<_ACEOF
23732#line $LINENO "configure"
23733#include "confdefs.h"
23734#ifdef HAVE_VIS_H
23735#include <vis.h>
23736#endif
23737#ifdef F77_DUMMY_MAIN
23738# ifdef __cplusplus
23739 extern "C"
23740# endif
23741 int F77_DUMMY_MAIN() { return 1; }
23742#endif
23743int
23744main ()
23745{
23746struct foo { int foo; } xx;
23747extern int strunvis (struct foo*);
23748strunvis(&xx);
23749
23750 ;
23751 return 0;
23752}
23753_ACEOF
23754rm -f conftest.$ac_objext
23755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23756 (eval $ac_compile) 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } &&
23760 { ac_try='test -s conftest.$ac_objext'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23766 eval "ac_cv_func_strunvis_noproto=yes"
23767else
23768 echo "$as_me: failed program was:" >&5
23769cat conftest.$ac_ext >&5
23770eval "ac_cv_func_strunvis_noproto=no"
23771fi
23772rm -f conftest.$ac_objext conftest.$ac_ext
23773fi
23774echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
23775echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
23776if test "$ac_cv_func_strunvis_noproto" = yes; then
23777
23778cat >>confdefs.h <<\_ACEOF
23779#define NEED_STRUNVIS_PROTO 1
23780_ACEOF
23781
23782fi
23783fi
23784
23785if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
23786echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
23787echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
23788if test "${ac_cv_func_strvis_noproto+set}" = set; then
23789 echo $ECHO_N "(cached) $ECHO_C" >&6
23790else
23791 cat >conftest.$ac_ext <<_ACEOF
23792#line $LINENO "configure"
23793#include "confdefs.h"
23794#ifdef HAVE_VIS_H
23795#include <vis.h>
23796#endif
23797#ifdef F77_DUMMY_MAIN
23798# ifdef __cplusplus
23799 extern "C"
23800# endif
23801 int F77_DUMMY_MAIN() { return 1; }
23802#endif
23803int
23804main ()
23805{
23806struct foo { int foo; } xx;
23807extern int strvis (struct foo*);
23808strvis(&xx);
23809
23810 ;
23811 return 0;
23812}
23813_ACEOF
23814rm -f conftest.$ac_objext
23815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23816 (eval $ac_compile) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); } &&
23820 { ac_try='test -s conftest.$ac_objext'
23821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23822 (eval $ac_try) 2>&5
23823 ac_status=$?
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); }; }; then
23826 eval "ac_cv_func_strvis_noproto=yes"
23827else
23828 echo "$as_me: failed program was:" >&5
23829cat conftest.$ac_ext >&5
23830eval "ac_cv_func_strvis_noproto=no"
23831fi
23832rm -f conftest.$ac_objext conftest.$ac_ext
23833fi
23834echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
23835echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
23836if test "$ac_cv_func_strvis_noproto" = yes; then
23837
23838cat >>confdefs.h <<\_ACEOF
23839#define NEED_STRVIS_PROTO 1
23840_ACEOF
23841
23842fi
23843fi
23844
23845if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
23846echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
23847echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
23848if test "${ac_cv_func_strvisx_noproto+set}" = set; then
23849 echo $ECHO_N "(cached) $ECHO_C" >&6
23850else
23851 cat >conftest.$ac_ext <<_ACEOF
23852#line $LINENO "configure"
23853#include "confdefs.h"
23854#ifdef HAVE_VIS_H
23855#include <vis.h>
23856#endif
23857#ifdef F77_DUMMY_MAIN
23858# ifdef __cplusplus
23859 extern "C"
23860# endif
23861 int F77_DUMMY_MAIN() { return 1; }
23862#endif
23863int
23864main ()
23865{
23866struct foo { int foo; } xx;
23867extern int strvisx (struct foo*);
23868strvisx(&xx);
23869
23870 ;
23871 return 0;
23872}
23873_ACEOF
23874rm -f conftest.$ac_objext
23875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23876 (eval $ac_compile) 2>&5
23877 ac_status=$?
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); } &&
23880 { ac_try='test -s conftest.$ac_objext'
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; }; then
23886 eval "ac_cv_func_strvisx_noproto=yes"
23887else
23888 echo "$as_me: failed program was:" >&5
23889cat conftest.$ac_ext >&5
23890eval "ac_cv_func_strvisx_noproto=no"
23891fi
23892rm -f conftest.$ac_objext conftest.$ac_ext
23893fi
23894echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
23895echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
23896if test "$ac_cv_func_strvisx_noproto" = yes; then
23897
23898cat >>confdefs.h <<\_ACEOF
23899#define NEED_STRVISX_PROTO 1
23900_ACEOF
23901
23902fi
23903fi
23904
23905if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
23906echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
23907echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
23908if test "${ac_cv_func_svis_noproto+set}" = set; then
23909 echo $ECHO_N "(cached) $ECHO_C" >&6
23910else
23911 cat >conftest.$ac_ext <<_ACEOF
23912#line $LINENO "configure"
23913#include "confdefs.h"
23914#ifdef HAVE_VIS_H
23915#include <vis.h>
23916#endif
23917#ifdef F77_DUMMY_MAIN
23918# ifdef __cplusplus
23919 extern "C"
23920# endif
23921 int F77_DUMMY_MAIN() { return 1; }
23922#endif
23923int
23924main ()
23925{
23926struct foo { int foo; } xx;
23927extern int svis (struct foo*);
23928svis(&xx);
23929
23930 ;
23931 return 0;
23932}
23933_ACEOF
23934rm -f conftest.$ac_objext
23935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23936 (eval $ac_compile) 2>&5
23937 ac_status=$?
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); } &&
23940 { ac_try='test -s conftest.$ac_objext'
23941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942 (eval $ac_try) 2>&5
23943 ac_status=$?
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; }; then
23946 eval "ac_cv_func_svis_noproto=yes"
23947else
23948 echo "$as_me: failed program was:" >&5
23949cat conftest.$ac_ext >&5
23950eval "ac_cv_func_svis_noproto=no"
23951fi
23952rm -f conftest.$ac_objext conftest.$ac_ext
23953fi
23954echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
23955echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
23956if test "$ac_cv_func_svis_noproto" = yes; then
23957
23958cat >>confdefs.h <<\_ACEOF
23959#define NEED_SVIS_PROTO 1
23960_ACEOF
23961
23962fi
23963fi
23964
23965if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
23966echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
23967echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
23968if test "${ac_cv_func_unvis_noproto+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23970else
23971 cat >conftest.$ac_ext <<_ACEOF
23972#line $LINENO "configure"
23973#include "confdefs.h"
23974#ifdef HAVE_VIS_H
23975#include <vis.h>
23976#endif
23977#ifdef F77_DUMMY_MAIN
23978# ifdef __cplusplus
23979 extern "C"
23980# endif
23981 int F77_DUMMY_MAIN() { return 1; }
23982#endif
23983int
23984main ()
23985{
23986struct foo { int foo; } xx;
23987extern int unvis (struct foo*);
23988unvis(&xx);
23989
23990 ;
23991 return 0;
23992}
23993_ACEOF
23994rm -f conftest.$ac_objext
23995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23996 (eval $ac_compile) 2>&5
23997 ac_status=$?
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } &&
24000 { ac_try='test -s conftest.$ac_objext'
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; }; then
24006 eval "ac_cv_func_unvis_noproto=yes"
24007else
24008 echo "$as_me: failed program was:" >&5
24009cat conftest.$ac_ext >&5
24010eval "ac_cv_func_unvis_noproto=no"
24011fi
24012rm -f conftest.$ac_objext conftest.$ac_ext
24013fi
24014echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
24015echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
24016if test "$ac_cv_func_unvis_noproto" = yes; then
24017
24018cat >>confdefs.h <<\_ACEOF
24019#define NEED_UNVIS_PROTO 1
24020_ACEOF
24021
24022fi
24023fi
24024
24025if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
24026echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
24027echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
24028if test "${ac_cv_func_vis_noproto+set}" = set; then
24029 echo $ECHO_N "(cached) $ECHO_C" >&6
24030else
24031 cat >conftest.$ac_ext <<_ACEOF
24032#line $LINENO "configure"
24033#include "confdefs.h"
24034#ifdef HAVE_VIS_H
24035#include <vis.h>
24036#endif
24037#ifdef F77_DUMMY_MAIN
24038# ifdef __cplusplus
24039 extern "C"
24040# endif
24041 int F77_DUMMY_MAIN() { return 1; }
24042#endif
24043int
24044main ()
24045{
24046struct foo { int foo; } xx;
24047extern int vis (struct foo*);
24048vis(&xx);
24049
24050 ;
24051 return 0;
24052}
24053_ACEOF
24054rm -f conftest.$ac_objext
24055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24056 (eval $ac_compile) 2>&5
24057 ac_status=$?
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); } &&
24060 { ac_try='test -s conftest.$ac_objext'
24061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062 (eval $ac_try) 2>&5
24063 ac_status=$?
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); }; }; then
24066 eval "ac_cv_func_vis_noproto=yes"
24067else
24068 echo "$as_me: failed program was:" >&5
24069cat conftest.$ac_ext >&5
24070eval "ac_cv_func_vis_noproto=no"
24071fi
24072rm -f conftest.$ac_objext conftest.$ac_ext
24073fi
24074echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
24075echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
24076if test "$ac_cv_func_vis_noproto" = yes; then
24077
24078cat >>confdefs.h <<\_ACEOF
24079#define NEED_VIS_PROTO 1
24080_ACEOF
24081
24082fi
24083fi
24084
24085
24086echo "$as_me:$LINENO: checking for inet_aton" >&5
24087echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
24088if test "${ac_cv_func_inet_aton+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24090else
24091 cat >conftest.$ac_ext <<_ACEOF
24092#line $LINENO "configure"
24093#include "confdefs.h"
24094#ifdef HAVE_SYS_TYPES_H
24095#include <sys/types.h>
24096#endif
24097#ifdef HAVE_SYS_SOCKET_H
24098#include <sys/socket.h>
24099#endif
24100#ifdef HAVE_NETINET_IN_H
24101#include <netinet/in.h>
24102#endif
24103#ifdef HAVE_ARPA_INET_H
24104#include <arpa/inet.h>
24105#endif
24106#ifdef F77_DUMMY_MAIN
24107# ifdef __cplusplus
24108 extern "C"
24109# endif
24110 int F77_DUMMY_MAIN() { return 1; }
24111#endif
24112int
24113main ()
24114{
24115
24116/* The GNU C library defines this for functions which it implements
24117 to always fail with ENOSYS. Some functions are actually named
24118 something starting with __ and the normal name is an alias. */
24119#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
24120choke me
24121#else
24122inet_aton(0,0)
24123#endif
24124
24125 ;
24126 return 0;
24127}
24128_ACEOF
24129rm -f conftest.$ac_objext conftest$ac_exeext
24130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24131 (eval $ac_link) 2>&5
24132 ac_status=$?
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } &&
24135 { ac_try='test -s conftest$ac_exeext'
24136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24137 (eval $ac_try) 2>&5
24138 ac_status=$?
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); }; }; then
24141 eval "ac_cv_func_inet_aton=yes"
24142else
24143 echo "$as_me: failed program was:" >&5
24144cat conftest.$ac_ext >&5
24145eval "ac_cv_func_inet_aton=no"
24146fi
24147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24148fi
24149
24150if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
24151
24152cat >>confdefs.h <<_ACEOF
24153#define HAVE_INET_ATON 1
24154_ACEOF
24155
24156 echo "$as_me:$LINENO: result: yes" >&5
24157echo "${ECHO_T}yes" >&6
24158else
24159 echo "$as_me:$LINENO: result: no" >&5
24160echo "${ECHO_T}no" >&6
24161 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
24162fi
24163
24164echo "$as_me:$LINENO: checking for inet_ntop" >&5
24165echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
24166if test "${ac_cv_func_inet_ntop+set}" = set; then
24167 echo $ECHO_N "(cached) $ECHO_C" >&6
24168else
24169 cat >conftest.$ac_ext <<_ACEOF
24170#line $LINENO "configure"
24171#include "confdefs.h"
24172#ifdef HAVE_SYS_TYPES_H
24173#include <sys/types.h>
24174#endif
24175#ifdef HAVE_SYS_SOCKET_H
24176#include <sys/socket.h>
24177#endif
24178#ifdef HAVE_NETINET_IN_H
24179#include <netinet/in.h>
24180#endif
24181#ifdef HAVE_ARPA_INET_H
24182#include <arpa/inet.h>
24183#endif
24184#ifdef F77_DUMMY_MAIN
24185# ifdef __cplusplus
24186 extern "C"
24187# endif
24188 int F77_DUMMY_MAIN() { return 1; }
24189#endif
24190int
24191main ()
24192{
24193
24194/* The GNU C library defines this for functions which it implements
24195 to always fail with ENOSYS. Some functions are actually named
24196 something starting with __ and the normal name is an alias. */
24197#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
24198choke me
24199#else
24200inet_ntop(0, 0, 0, 0)
24201#endif
24202
24203 ;
24204 return 0;
24205}
24206_ACEOF
24207rm -f conftest.$ac_objext conftest$ac_exeext
24208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209 (eval $ac_link) 2>&5
24210 ac_status=$?
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } &&
24213 { ac_try='test -s conftest$ac_exeext'
24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215 (eval $ac_try) 2>&5
24216 ac_status=$?
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; }; then
24219 eval "ac_cv_func_inet_ntop=yes"
24220else
24221 echo "$as_me: failed program was:" >&5
24222cat conftest.$ac_ext >&5
24223eval "ac_cv_func_inet_ntop=no"
24224fi
24225rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24226fi
24227
24228if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
24229
24230cat >>confdefs.h <<_ACEOF
24231#define HAVE_INET_NTOP 1
24232_ACEOF
24233
24234 echo "$as_me:$LINENO: result: yes" >&5
24235echo "${ECHO_T}yes" >&6
24236else
24237 echo "$as_me:$LINENO: result: no" >&5
24238echo "${ECHO_T}no" >&6
24239 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
24240fi
24241
24242echo "$as_me:$LINENO: checking for inet_pton" >&5
24243echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
24244if test "${ac_cv_func_inet_pton+set}" = set; then
24245 echo $ECHO_N "(cached) $ECHO_C" >&6
24246else
24247 cat >conftest.$ac_ext <<_ACEOF
24248#line $LINENO "configure"
24249#include "confdefs.h"
24250#ifdef HAVE_SYS_TYPES_H
24251#include <sys/types.h>
24252#endif
24253#ifdef HAVE_SYS_SOCKET_H
24254#include <sys/socket.h>
24255#endif
24256#ifdef HAVE_NETINET_IN_H
24257#include <netinet/in.h>
24258#endif
24259#ifdef HAVE_ARPA_INET_H
24260#include <arpa/inet.h>
24261#endif
24262#ifdef F77_DUMMY_MAIN
24263# ifdef __cplusplus
24264 extern "C"
24265# endif
24266 int F77_DUMMY_MAIN() { return 1; }
24267#endif
24268int
24269main ()
24270{
24271
24272/* The GNU C library defines this for functions which it implements
24273 to always fail with ENOSYS. Some functions are actually named
24274 something starting with __ and the normal name is an alias. */
24275#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
24276choke me
24277#else
24278inet_pton(0,0,0)
24279#endif
24280
24281 ;
24282 return 0;
24283}
24284_ACEOF
24285rm -f conftest.$ac_objext conftest$ac_exeext
24286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24287 (eval $ac_link) 2>&5
24288 ac_status=$?
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } &&
24291 { ac_try='test -s conftest$ac_exeext'
24292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24293 (eval $ac_try) 2>&5
24294 ac_status=$?
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); }; }; then
24297 eval "ac_cv_func_inet_pton=yes"
24298else
24299 echo "$as_me: failed program was:" >&5
24300cat conftest.$ac_ext >&5
24301eval "ac_cv_func_inet_pton=no"
24302fi
24303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24304fi
24305
24306if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
24307
24308cat >>confdefs.h <<_ACEOF
24309#define HAVE_INET_PTON 1
24310_ACEOF
24311
24312 echo "$as_me:$LINENO: result: yes" >&5
24313echo "${ECHO_T}yes" >&6
24314else
24315 echo "$as_me:$LINENO: result: no" >&5
24316echo "${ECHO_T}no" >&6
24317 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
24318fi
24319
24320
24321
24322echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
24323echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
24324if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24326else
24327
24328cat >conftest.$ac_ext <<_ACEOF
24329#line $LINENO "configure"
24330#include "confdefs.h"
24331#include <sys/types.h>
24332#include <sys/socket.h>
24333#ifdef F77_DUMMY_MAIN
24334# ifdef __cplusplus
24335 extern "C"
24336# endif
24337 int F77_DUMMY_MAIN() { return 1; }
24338#endif
24339int
24340main ()
24341{
24342struct sockaddr x; x.sa_len;
24343 ;
24344 return 0;
24345}
24346_ACEOF
24347rm -f conftest.$ac_objext
24348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24349 (eval $ac_compile) 2>&5
24350 ac_status=$?
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } &&
24353 { ac_try='test -s conftest.$ac_objext'
24354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355 (eval $ac_try) 2>&5
24356 ac_status=$?
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; }; then
24359 ac_cv_type_struct_sockaddr_sa_len=yes
24360else
24361 echo "$as_me: failed program was:" >&5
24362cat conftest.$ac_ext >&5
24363ac_cv_type_struct_sockaddr_sa_len=no
24364fi
24365rm -f conftest.$ac_objext conftest.$ac_ext
24366fi
24367echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
24368echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
24369if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
24370
24371
24372cat >>confdefs.h <<\_ACEOF
24373#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
24374_ACEOF
24375
24376
24377fi
24378
24379
24380
24381if test "$ac_cv_func_getnameinfo" = "yes"; then
24382
24383echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
24384echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
24385if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24387else
24388 if test "$cross_compiling" = yes; then
24389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
24390echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24391 { (exit 1); exit 1; }; }
24392else
24393 cat >conftest.$ac_ext <<_ACEOF
24394#line $LINENO "configure"
24395#include "confdefs.h"
24396#include <stdio.h>
24397#include <sys/types.h>
24398#include <sys/socket.h>
24399#include <netinet/in.h>
24400#include <netdb.h>
24401
24402int
24403main(int argc, char **argv)
24404{
24405 struct sockaddr_in sin;
24406 char host[256];
24407 memset(&sin, 0, sizeof(sin));
24408#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
24409 sin.sin_len = sizeof(sin);
24410#endif
24411 sin.sin_family = AF_INET;
24412 sin.sin_addr.s_addr = 0xffffffff;
24413 sin.sin_port = 0;
24414 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
24415 NULL, 0, 0);
24416}
24417
24418_ACEOF
24419rm -f conftest$ac_exeext
24420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24421 (eval $ac_link) 2>&5
24422 ac_status=$?
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; }; then
24430 ac_cv_func_getnameinfo_broken=no
24431else
24432 echo "$as_me: program exited with status $ac_status" >&5
24433echo "$as_me: failed program was:" >&5
24434cat conftest.$ac_ext >&5
24435( exit $ac_status )
24436ac_cv_func_getnameinfo_broken=yes
24437fi
24438rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24439fi
24440fi
24441echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
24442echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
24443 if test "$ac_cv_func_getnameinfo_broken" = yes; then
24444 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
24445 fi
24446fi
24447
24448if test "$ac_cv_func_getaddrinfo" = "yes"; then
24449
24450echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
24451echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
24452if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24454else
24455 if test "$cross_compiling" = yes; then
24456 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
24457echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24458 { (exit 1); exit 1; }; }
24459else
24460 cat >conftest.$ac_ext <<_ACEOF
24461#line $LINENO "configure"
24462#include "confdefs.h"
24463#include <stdio.h>
24464#include <sys/types.h>
24465#include <sys/socket.h>
24466#include <netdb.h>
24467
24468int
24469main(int argc, char **argv)
24470{
24471 struct addrinfo hints, *ai;
24472 memset(&hints, 0, sizeof(hints));
24473 hints.ai_flags = AI_PASSIVE;
24474 hints.ai_socktype = SOCK_STREAM;
24475 hints.ai_family = PF_UNSPEC;
24476 if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
24477 return 1;
24478 return 0;
24479}
24480
24481_ACEOF
24482rm -f conftest$ac_exeext
24483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24484 (eval $ac_link) 2>&5
24485 ac_status=$?
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24490 ac_status=$?
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; }; then
24493 ac_cv_func_getaddrinfo_numserv=yes
24494else
24495 echo "$as_me: program exited with status $ac_status" >&5
24496echo "$as_me: failed program was:" >&5
24497cat conftest.$ac_ext >&5
24498( exit $ac_status )
24499ac_cv_func_getaddrinfo_numserv=no
24500fi
24501rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24502fi
24503fi
24504echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
24505echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
24506 if test "$ac_cv_func_getaddrinfo_numserv" = no; then
24507 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
24508 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
24509 fi
24510fi
24511
24512
24513if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
24514echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
24515echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
24516if test "${ac_cv_func_setenv_noproto+set}" = set; then
24517 echo $ECHO_N "(cached) $ECHO_C" >&6
24518else
24519 cat >conftest.$ac_ext <<_ACEOF
24520#line $LINENO "configure"
24521#include "confdefs.h"
24522#include <stdlib.h>
24523#ifdef F77_DUMMY_MAIN
24524# ifdef __cplusplus
24525 extern "C"
24526# endif
24527 int F77_DUMMY_MAIN() { return 1; }
24528#endif
24529int
24530main ()
24531{
24532struct foo { int foo; } xx;
24533extern int setenv (struct foo*);
24534setenv(&xx);
24535
24536 ;
24537 return 0;
24538}
24539_ACEOF
24540rm -f conftest.$ac_objext
24541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24542 (eval $ac_compile) 2>&5
24543 ac_status=$?
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } &&
24546 { ac_try='test -s conftest.$ac_objext'
24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); }; }; then
24552 eval "ac_cv_func_setenv_noproto=yes"
24553else
24554 echo "$as_me: failed program was:" >&5
24555cat conftest.$ac_ext >&5
24556eval "ac_cv_func_setenv_noproto=no"
24557fi
24558rm -f conftest.$ac_objext conftest.$ac_ext
24559fi
24560echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
24561echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
24562if test "$ac_cv_func_setenv_noproto" = yes; then
24563
24564cat >>confdefs.h <<\_ACEOF
24565#define NEED_SETENV_PROTO 1
24566_ACEOF
24567
24568fi
24569fi
24570
24571
24572if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
24573echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
24574echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
24575if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24577else
24578 cat >conftest.$ac_ext <<_ACEOF
24579#line $LINENO "configure"
24580#include "confdefs.h"
24581#include <stdlib.h>
24582#ifdef F77_DUMMY_MAIN
24583# ifdef __cplusplus
24584 extern "C"
24585# endif
24586 int F77_DUMMY_MAIN() { return 1; }
24587#endif
24588int
24589main ()
24590{
24591struct foo { int foo; } xx;
24592extern int unsetenv (struct foo*);
24593unsetenv(&xx);
24594
24595 ;
24596 return 0;
24597}
24598_ACEOF
24599rm -f conftest.$ac_objext
24600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24601 (eval $ac_compile) 2>&5
24602 ac_status=$?
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } &&
24605 { ac_try='test -s conftest.$ac_objext'
24606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607 (eval $ac_try) 2>&5
24608 ac_status=$?
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); }; }; then
24611 eval "ac_cv_func_unsetenv_noproto=yes"
24612else
24613 echo "$as_me: failed program was:" >&5
24614cat conftest.$ac_ext >&5
24615eval "ac_cv_func_unsetenv_noproto=no"
24616fi
24617rm -f conftest.$ac_objext conftest.$ac_ext
24618fi
24619echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
24620echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
24621if test "$ac_cv_func_unsetenv_noproto" = yes; then
24622
24623cat >>confdefs.h <<\_ACEOF
24624#define NEED_UNSETENV_PROTO 1
24625_ACEOF
24626
24627fi
24628fi
24629
24630
24631if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
24632echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
24633echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
24634if test "${ac_cv_func_gethostname_noproto+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24636else
24637 cat >conftest.$ac_ext <<_ACEOF
24638#line $LINENO "configure"
24639#include "confdefs.h"
24640#include <unistd.h>
24641#ifdef F77_DUMMY_MAIN
24642# ifdef __cplusplus
24643 extern "C"
24644# endif
24645 int F77_DUMMY_MAIN() { return 1; }
24646#endif
24647int
24648main ()
24649{
24650struct foo { int foo; } xx;
24651extern int gethostname (struct foo*);
24652gethostname(&xx);
24653
24654 ;
24655 return 0;
24656}
24657_ACEOF
24658rm -f conftest.$ac_objext
24659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24660 (eval $ac_compile) 2>&5
24661 ac_status=$?
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } &&
24664 { ac_try='test -s conftest.$ac_objext'
24665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666 (eval $ac_try) 2>&5
24667 ac_status=$?
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); }; }; then
24670 eval "ac_cv_func_gethostname_noproto=yes"
24671else
24672 echo "$as_me: failed program was:" >&5
24673cat conftest.$ac_ext >&5
24674eval "ac_cv_func_gethostname_noproto=no"
24675fi
24676rm -f conftest.$ac_objext conftest.$ac_ext
24677fi
24678echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
24679echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
24680if test "$ac_cv_func_gethostname_noproto" = yes; then
24681
24682cat >>confdefs.h <<\_ACEOF
24683#define NEED_GETHOSTNAME_PROTO 1
24684_ACEOF
24685
24686fi
24687fi
24688
24689
24690if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
24691echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
24692echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
24693if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
24694 echo $ECHO_N "(cached) $ECHO_C" >&6
24695else
24696 cat >conftest.$ac_ext <<_ACEOF
24697#line $LINENO "configure"
24698#include "confdefs.h"
24699#include <unistd.h>
24700#ifdef F77_DUMMY_MAIN
24701# ifdef __cplusplus
24702 extern "C"
24703# endif
24704 int F77_DUMMY_MAIN() { return 1; }
24705#endif
24706int
24707main ()
24708{
24709struct foo { int foo; } xx;
24710extern int mkstemp (struct foo*);
24711mkstemp(&xx);
24712
24713 ;
24714 return 0;
24715}
24716_ACEOF
24717rm -f conftest.$ac_objext
24718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24719 (eval $ac_compile) 2>&5
24720 ac_status=$?
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } &&
24723 { ac_try='test -s conftest.$ac_objext'
24724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725 (eval $ac_try) 2>&5
24726 ac_status=$?
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); }; }; then
24729 eval "ac_cv_func_mkstemp_noproto=yes"
24730else
24731 echo "$as_me: failed program was:" >&5
24732cat conftest.$ac_ext >&5
24733eval "ac_cv_func_mkstemp_noproto=no"
24734fi
24735rm -f conftest.$ac_objext conftest.$ac_ext
24736fi
24737echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
24738echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
24739if test "$ac_cv_func_mkstemp_noproto" = yes; then
24740
24741cat >>confdefs.h <<\_ACEOF
24742#define NEED_MKSTEMP_PROTO 1
24743_ACEOF
24744
24745fi
24746fi
24747
24748
24749if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
24750echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
24751echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
24752if test "${ac_cv_func_getusershell_noproto+set}" = set; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24754else
24755 cat >conftest.$ac_ext <<_ACEOF
24756#line $LINENO "configure"
24757#include "confdefs.h"
24758#include <unistd.h>
24759#ifdef F77_DUMMY_MAIN
24760# ifdef __cplusplus
24761 extern "C"
24762# endif
24763 int F77_DUMMY_MAIN() { return 1; }
24764#endif
24765int
24766main ()
24767{
24768struct foo { int foo; } xx;
24769extern int getusershell (struct foo*);
24770getusershell(&xx);
24771
24772 ;
24773 return 0;
24774}
24775_ACEOF
24776rm -f conftest.$ac_objext
24777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24778 (eval $ac_compile) 2>&5
24779 ac_status=$?
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); } &&
24782 { ac_try='test -s conftest.$ac_objext'
24783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784 (eval $ac_try) 2>&5
24785 ac_status=$?
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); }; }; then
24788 eval "ac_cv_func_getusershell_noproto=yes"
24789else
24790 echo "$as_me: failed program was:" >&5
24791cat conftest.$ac_ext >&5
24792eval "ac_cv_func_getusershell_noproto=no"
24793fi
24794rm -f conftest.$ac_objext conftest.$ac_ext
24795fi
24796echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
24797echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
24798if test "$ac_cv_func_getusershell_noproto" = yes; then
24799
24800cat >>confdefs.h <<\_ACEOF
24801#define NEED_GETUSERSHELL_PROTO 1
24802_ACEOF
24803
24804fi
24805fi
24806
24807
24808
24809if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
24810echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
24811echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
24812if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
24813 echo $ECHO_N "(cached) $ECHO_C" >&6
24814else
24815 cat >conftest.$ac_ext <<_ACEOF
24816#line $LINENO "configure"
24817#include "confdefs.h"
24818
24819#ifdef HAVE_SYS_TYPES_H
24820#include <sys/types.h>
24821#endif
24822#ifdef HAVE_SYS_SOCKET_H
24823#include <sys/socket.h>
24824#endif
24825#ifdef HAVE_NETINET_IN_H
24826#include <netinet/in.h>
24827#endif
24828#ifdef HAVE_ARPA_INET_H
24829#include <arpa/inet.h>
24830#endif
24831#ifdef F77_DUMMY_MAIN
24832# ifdef __cplusplus
24833 extern "C"
24834# endif
24835 int F77_DUMMY_MAIN() { return 1; }
24836#endif
24837int
24838main ()
24839{
24840struct foo { int foo; } xx;
24841extern int inet_aton (struct foo*);
24842inet_aton(&xx);
24843
24844 ;
24845 return 0;
24846}
24847_ACEOF
24848rm -f conftest.$ac_objext
24849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24850 (eval $ac_compile) 2>&5
24851 ac_status=$?
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } &&
24854 { ac_try='test -s conftest.$ac_objext'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 eval "ac_cv_func_inet_aton_noproto=yes"
24861else
24862 echo "$as_me: failed program was:" >&5
24863cat conftest.$ac_ext >&5
24864eval "ac_cv_func_inet_aton_noproto=no"
24865fi
24866rm -f conftest.$ac_objext conftest.$ac_ext
24867fi
24868echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
24869echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
24870if test "$ac_cv_func_inet_aton_noproto" = yes; then
24871
24872cat >>confdefs.h <<\_ACEOF
24873#define NEED_INET_ATON_PROTO 1
24874_ACEOF
24875
24876fi
24877fi
24878
24879
24880
24881
24882
24883echo "$as_me:$LINENO: checking for crypt" >&5
24884echo $ECHO_N "checking for crypt... $ECHO_C" >&6
24885if test "${ac_cv_funclib_crypt+set}" = set; then
24886 echo $ECHO_N "(cached) $ECHO_C" >&6
24887else
24888
24889if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
24890 ac_save_LIBS="$LIBS"
24891 for ac_lib in "" crypt; do
24892 case "$ac_lib" in
24893 "") ;;
24894 yes) ac_lib="" ;;
24895 no) continue ;;
24896 -l*) ;;
24897 *) ac_lib="-l$ac_lib" ;;
24898 esac
24899 LIBS=" $ac_lib $ac_save_LIBS"
24900 cat >conftest.$ac_ext <<_ACEOF
24901#line $LINENO "configure"
24902#include "confdefs.h"
24903
24904#ifdef F77_DUMMY_MAIN
24905# ifdef __cplusplus
24906 extern "C"
24907# endif
24908 int F77_DUMMY_MAIN() { return 1; }
24909#endif
24910int
24911main ()
24912{
24913crypt()
24914 ;
24915 return 0;
24916}
24917_ACEOF
24918rm -f conftest.$ac_objext conftest$ac_exeext
24919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920 (eval $ac_link) 2>&5
24921 ac_status=$?
24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); } &&
24924 { ac_try='test -s conftest$ac_exeext'
24925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24926 (eval $ac_try) 2>&5
24927 ac_status=$?
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); }; }; then
24930 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
24931else
24932 echo "$as_me: failed program was:" >&5
24933cat conftest.$ac_ext >&5
24934fi
24935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24936 done
24937 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
24938 LIBS="$ac_save_LIBS"
24939fi
24940
24941fi
24942
24943
24944eval "ac_res=\$ac_cv_funclib_crypt"
24945
24946if false; then
24947
24948for ac_func in crypt
24949do
24950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24951echo "$as_me:$LINENO: checking for $ac_func" >&5
24952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24953if eval "test \"\${$as_ac_var+set}\" = set"; then
24954 echo $ECHO_N "(cached) $ECHO_C" >&6
24955else
24956 cat >conftest.$ac_ext <<_ACEOF
24957#line $LINENO "configure"
24958#include "confdefs.h"
24959/* System header to define __stub macros and hopefully few prototypes,
24960 which can conflict with char $ac_func (); below. */
24961#include <assert.h>
24962/* Override any gcc2 internal prototype to avoid an error. */
24963#ifdef __cplusplus
24964extern "C"
24965#endif
24966/* We use char because int might match the return type of a gcc2
24967 builtin and then its argument prototype would still apply. */
24968char $ac_func ();
24969char (*f) ();
24970
24971#ifdef F77_DUMMY_MAIN
24972# ifdef __cplusplus
24973 extern "C"
24974# endif
24975 int F77_DUMMY_MAIN() { return 1; }
24976#endif
24977int
24978main ()
24979{
24980/* The GNU C library defines this for functions which it implements
24981 to always fail with ENOSYS. Some functions are actually named
24982 something starting with __ and the normal name is an alias. */
24983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24984choke me
24985#else
24986f = $ac_func;
24987#endif
24988
24989 ;
24990 return 0;
24991}
24992_ACEOF
24993rm -f conftest.$ac_objext conftest$ac_exeext
24994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24995 (eval $ac_link) 2>&5
24996 ac_status=$?
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
24999 { ac_try='test -s conftest$ac_exeext'
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; }; then
25005 eval "$as_ac_var=yes"
25006else
25007 echo "$as_me: failed program was:" >&5
25008cat conftest.$ac_ext >&5
25009eval "$as_ac_var=no"
25010fi
25011rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25012fi
25013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25015if test `eval echo '${'$as_ac_var'}'` = yes; then
25016 cat >>confdefs.h <<_ACEOF
25017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25018_ACEOF
25019
25020fi
25021done
25022
25023fi
25024# crypt
25025eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25026eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25027eval "LIB_crypt=$ac_res"
25028
25029case "$ac_res" in
25030 yes)
25031 eval "ac_cv_func_crypt=yes"
25032 eval "LIB_crypt="
25033 cat >>confdefs.h <<_ACEOF
25034#define $ac_tr_func 1
25035_ACEOF
25036
25037 echo "$as_me:$LINENO: result: yes" >&5
25038echo "${ECHO_T}yes" >&6
25039 ;;
25040 no)
25041 eval "ac_cv_func_crypt=no"
25042 eval "LIB_crypt="
25043 echo "$as_me:$LINENO: result: no" >&5
25044echo "${ECHO_T}no" >&6
25045 ;;
25046 *)
25047 eval "ac_cv_func_crypt=yes"
25048 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25049 cat >>confdefs.h <<_ACEOF
25050#define $ac_tr_func 1
25051_ACEOF
25052
25053 cat >>confdefs.h <<_ACEOF
25054#define $ac_tr_lib 1
25055_ACEOF
25056
25057 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25058echo "${ECHO_T}yes, in $ac_res" >&6
25059 ;;
25060esac
25061
25062
25063
25064
25065
25066
25067echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
25068echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
25069if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
25070 echo $ECHO_N "(cached) $ECHO_C" >&6
25071else
25072 cat >conftest.$ac_ext <<_ACEOF
25073#line $LINENO "configure"
25074#include "confdefs.h"
25075
25076#ifdef HAVE_SYS_TYPES_H
25077#include <sys/types.h>
25078#endif
25079#ifdef HAVE_SYS_SOCKET_H
25080#include <sys/socket.h>
25081#endif
25082#ifdef HAVE_NETINET_IN_H
25083#include <netinet/in.h>
25084#endif
25085#ifdef HAVE_ARPA_INET_H
25086#include <arpa/inet.h>
25087#endif
25088#ifdef HAVE_NETDB_H
25089#include <netdb.h>
25090#endif
25091
25092#ifdef F77_DUMMY_MAIN
25093# ifdef __cplusplus
25094 extern "C"
25095# endif
25096 int F77_DUMMY_MAIN() { return 1; }
25097#endif
25098int
25099main ()
25100{
25101struct hostent *gethostbyname(const char *);
25102 ;
25103 return 0;
25104}
25105_ACEOF
25106rm -f conftest.$ac_objext
25107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25108 (eval $ac_compile) 2>&5
25109 ac_status=$?
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } &&
25112 { ac_try='test -s conftest.$ac_objext'
25113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114 (eval $ac_try) 2>&5
25115 ac_status=$?
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); }; }; then
25118 eval "ac_cv_func_gethostbyname_proto_compat=yes"
25119else
25120 echo "$as_me: failed program was:" >&5
25121cat conftest.$ac_ext >&5
25122eval "ac_cv_func_gethostbyname_proto_compat=no"
25123fi
25124rm -f conftest.$ac_objext conftest.$ac_ext
25125fi
25126echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
25127echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
25128
25129if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
25130
25131cat >>confdefs.h <<\_ACEOF
25132#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
25133_ACEOF
25134
25135fi
25136
25137
25138
25139
25140echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
25141echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
25142if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
25143 echo $ECHO_N "(cached) $ECHO_C" >&6
25144else
25145 cat >conftest.$ac_ext <<_ACEOF
25146#line $LINENO "configure"
25147#include "confdefs.h"
25148
25149#ifdef HAVE_SYS_TYPES_H
25150#include <sys/types.h>
25151#endif
25152#ifdef HAVE_SYS_SOCKET_H
25153#include <sys/socket.h>
25154#endif
25155#ifdef HAVE_NETINET_IN_H
25156#include <netinet/in.h>
25157#endif
25158#ifdef HAVE_ARPA_INET_H
25159#include <arpa/inet.h>
25160#endif
25161#ifdef HAVE_NETDB_H
25162#include <netdb.h>
25163#endif
25164
25165#ifdef F77_DUMMY_MAIN
25166# ifdef __cplusplus
25167 extern "C"
25168# endif
25169 int F77_DUMMY_MAIN() { return 1; }
25170#endif
25171int
25172main ()
25173{
25174struct hostent *gethostbyaddr(const void *, size_t, int);
25175 ;
25176 return 0;
25177}
25178_ACEOF
25179rm -f conftest.$ac_objext
25180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25181 (eval $ac_compile) 2>&5
25182 ac_status=$?
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } &&
25185 { ac_try='test -s conftest.$ac_objext'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; }; then
25191 eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
25192else
25193 echo "$as_me: failed program was:" >&5
25194cat conftest.$ac_ext >&5
25195eval "ac_cv_func_gethostbyaddr_proto_compat=no"
25196fi
25197rm -f conftest.$ac_objext conftest.$ac_ext
25198fi
25199echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
25200echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
25201
25202if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
25203
25204cat >>confdefs.h <<\_ACEOF
25205#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
25206_ACEOF
25207
25208fi
25209
25210
25211
25212
25213echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
25214echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
25215if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
25216 echo $ECHO_N "(cached) $ECHO_C" >&6
25217else
25218 cat >conftest.$ac_ext <<_ACEOF
25219#line $LINENO "configure"
25220#include "confdefs.h"
25221
25222#ifdef HAVE_SYS_TYPES_H
25223#include <sys/types.h>
25224#endif
25225#ifdef HAVE_SYS_SOCKET_H
25226#include <sys/socket.h>
25227#endif
25228#ifdef HAVE_NETINET_IN_H
25229#include <netinet/in.h>
25230#endif
25231#ifdef HAVE_ARPA_INET_H
25232#include <arpa/inet.h>
25233#endif
25234#ifdef HAVE_NETDB_H
25235#include <netdb.h>
25236#endif
25237
25238#ifdef F77_DUMMY_MAIN
25239# ifdef __cplusplus
25240 extern "C"
25241# endif
25242 int F77_DUMMY_MAIN() { return 1; }
25243#endif
25244int
25245main ()
25246{
25247struct servent *getservbyname(const char *, const char *);
25248 ;
25249 return 0;
25250}
25251_ACEOF
25252rm -f conftest.$ac_objext
25253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25254 (eval $ac_compile) 2>&5
25255 ac_status=$?
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } &&
25258 { ac_try='test -s conftest.$ac_objext'
25259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260 (eval $ac_try) 2>&5
25261 ac_status=$?
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); }; }; then
25264 eval "ac_cv_func_getservbyname_proto_compat=yes"
25265else
25266 echo "$as_me: failed program was:" >&5
25267cat conftest.$ac_ext >&5
25268eval "ac_cv_func_getservbyname_proto_compat=no"
25269fi
25270rm -f conftest.$ac_objext conftest.$ac_ext
25271fi
25272echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
25273echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
25274
25275if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
25276
25277cat >>confdefs.h <<\_ACEOF
25278#define GETSERVBYNAME_PROTO_COMPATIBLE 1
25279_ACEOF
25280
25281fi
25282
25283
25284
25285
25286echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
25287echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
25288if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25290else
25291 cat >conftest.$ac_ext <<_ACEOF
25292#line $LINENO "configure"
25293#include "confdefs.h"
25294
25295#ifdef HAVE_SYS_TYPES_H
25296#include <sys/types.h>
25297#endif
25298#ifdef HAVE_SYS_SOCKET_H
25299#include <sys/socket.h>
25300#endif
25301
25302#ifdef F77_DUMMY_MAIN
25303# ifdef __cplusplus
25304 extern "C"
25305# endif
25306 int F77_DUMMY_MAIN() { return 1; }
25307#endif
25308int
25309main ()
25310{
25311int getsockname(int, struct sockaddr*, socklen_t*);
25312 ;
25313 return 0;
25314}
25315_ACEOF
25316rm -f conftest.$ac_objext
25317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25318 (eval $ac_compile) 2>&5
25319 ac_status=$?
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } &&
25322 { ac_try='test -s conftest.$ac_objext'
25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); }; }; then
25328 eval "ac_cv_func_getsockname_proto_compat=yes"
25329else
25330 echo "$as_me: failed program was:" >&5
25331cat conftest.$ac_ext >&5
25332eval "ac_cv_func_getsockname_proto_compat=no"
25333fi
25334rm -f conftest.$ac_objext conftest.$ac_ext
25335fi
25336echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
25337echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
25338
25339if test "$ac_cv_func_getsockname_proto_compat" = yes; then
25340
25341cat >>confdefs.h <<\_ACEOF
25342#define GETSOCKNAME_PROTO_COMPATIBLE 1
25343_ACEOF
25344
25345fi
25346
25347
25348
25349
25350echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
25351echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
25352if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
25353 echo $ECHO_N "(cached) $ECHO_C" >&6
25354else
25355 cat >conftest.$ac_ext <<_ACEOF
25356#line $LINENO "configure"
25357#include "confdefs.h"
25358
25359#ifdef HAVE_SYSLOG_H
25360#include <syslog.h>
25361#endif
25362
25363#ifdef F77_DUMMY_MAIN
25364# ifdef __cplusplus
25365 extern "C"
25366# endif
25367 int F77_DUMMY_MAIN() { return 1; }
25368#endif
25369int
25370main ()
25371{
25372void openlog(const char *, int, int);
25373 ;
25374 return 0;
25375}
25376_ACEOF
25377rm -f conftest.$ac_objext
25378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25379 (eval $ac_compile) 2>&5
25380 ac_status=$?
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } &&
25383 { ac_try='test -s conftest.$ac_objext'
25384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25385 (eval $ac_try) 2>&5
25386 ac_status=$?
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); }; }; then
25389 eval "ac_cv_func_openlog_proto_compat=yes"
25390else
25391 echo "$as_me: failed program was:" >&5
25392cat conftest.$ac_ext >&5
25393eval "ac_cv_func_openlog_proto_compat=no"
25394fi
25395rm -f conftest.$ac_objext conftest.$ac_ext
25396fi
25397echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
25398echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
25399
25400if test "$ac_cv_func_openlog_proto_compat" = yes; then
25401
25402cat >>confdefs.h <<\_ACEOF
25403#define OPENLOG_PROTO_COMPATIBLE 1
25404_ACEOF
25405
25406fi
25407
25408
25409
25410
25411if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
25412echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
25413echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
25414if test "${ac_cv_func_crypt_noproto+set}" = set; then
25415 echo $ECHO_N "(cached) $ECHO_C" >&6
25416else
25417 cat >conftest.$ac_ext <<_ACEOF
25418#line $LINENO "configure"
25419#include "confdefs.h"
25420
25421#ifdef HAVE_CRYPT_H
25422#include <crypt.h>
25423#endif
25424#ifdef HAVE_UNISTD_H
25425#include <unistd.h>
25426#endif
25427
25428#ifdef F77_DUMMY_MAIN
25429# ifdef __cplusplus
25430 extern "C"
25431# endif
25432 int F77_DUMMY_MAIN() { return 1; }
25433#endif
25434int
25435main ()
25436{
25437struct foo { int foo; } xx;
25438extern int crypt (struct foo*);
25439crypt(&xx);
25440
25441 ;
25442 return 0;
25443}
25444_ACEOF
25445rm -f conftest.$ac_objext
25446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25447 (eval $ac_compile) 2>&5
25448 ac_status=$?
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } &&
25451 { ac_try='test -s conftest.$ac_objext'
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25454 ac_status=$?
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; }; then
25457 eval "ac_cv_func_crypt_noproto=yes"
25458else
25459 echo "$as_me: failed program was:" >&5
25460cat conftest.$ac_ext >&5
25461eval "ac_cv_func_crypt_noproto=no"
25462fi
25463rm -f conftest.$ac_objext conftest.$ac_ext
25464fi
25465echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
25466echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
25467if test "$ac_cv_func_crypt_noproto" = yes; then
25468
25469cat >>confdefs.h <<\_ACEOF
25470#define NEED_CRYPT_PROTO 1
25471_ACEOF
25472
25473fi
25474fi
25475
25476
25477
25478
25479echo "$as_me:$LINENO: checking for h_errno" >&5
25480echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
25481if test "${ac_cv_var_h_errno+set}" = set; then
25482 echo $ECHO_N "(cached) $ECHO_C" >&6
25483else
25484
25485
25486 cat >conftest.$ac_ext <<_ACEOF
25487#line $LINENO "configure"
25488#include "confdefs.h"
25489#ifdef HAVE_SYS_TYPES_H
25490#include <sys/types.h>
25491#endif
25492#ifdef HAVE_NETDB_H
25493#include <netdb.h>
25494#endif
25495 void * foo() { return &h_errno; }
25496#ifdef F77_DUMMY_MAIN
25497# ifdef __cplusplus
25498 extern "C"
25499# endif
25500 int F77_DUMMY_MAIN() { return 1; }
25501#endif
25502int
25503main ()
25504{
25505foo()
25506 ;
25507 return 0;
25508}
25509_ACEOF
25510rm -f conftest.$ac_objext conftest$ac_exeext
25511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25512 (eval $ac_link) 2>&5
25513 ac_status=$?
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } &&
25516 { ac_try='test -s conftest$ac_exeext'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_var_h_errno=yes
25523else
25524 echo "$as_me: failed program was:" >&5
25525cat conftest.$ac_ext >&5
25526ac_cv_var_h_errno=no
25527fi
25528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25529if test "$ac_cv_var_h_errno" != yes ; then
25530cat >conftest.$ac_ext <<_ACEOF
25531#line $LINENO "configure"
25532#include "confdefs.h"
25533extern int h_errno;
25534int foo() { return h_errno; }
25535#ifdef F77_DUMMY_MAIN
25536# ifdef __cplusplus
25537 extern "C"
25538# endif
25539 int F77_DUMMY_MAIN() { return 1; }
25540#endif
25541int
25542main ()
25543{
25544foo()
25545 ;
25546 return 0;
25547}
25548_ACEOF
25549rm -f conftest.$ac_objext conftest$ac_exeext
25550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25551 (eval $ac_link) 2>&5
25552 ac_status=$?
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } &&
25555 { ac_try='test -s conftest$ac_exeext'
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; }; then
25561 ac_cv_var_h_errno=yes
25562else
25563 echo "$as_me: failed program was:" >&5
25564cat conftest.$ac_ext >&5
25565ac_cv_var_h_errno=no
25566fi
25567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25568fi
25569
25570fi
25571
25572ac_foo=`eval echo \\$ac_cv_var_h_errno`
25573echo "$as_me:$LINENO: result: $ac_foo" >&5
25574echo "${ECHO_T}$ac_foo" >&6
25575if test "$ac_foo" = yes; then
25576
25577cat >>confdefs.h <<_ACEOF
25578#define HAVE_H_ERRNO 1
25579_ACEOF
25580
25581
25582echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
25583echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
25584if test "${ac_cv_var_h_errno_declaration+set}" = set; then
25585 echo $ECHO_N "(cached) $ECHO_C" >&6
25586else
25587
25588cat >conftest.$ac_ext <<_ACEOF
25589#line $LINENO "configure"
25590#include "confdefs.h"
25591#ifdef HAVE_SYS_TYPES_H
25592#include <sys/types.h>
25593#endif
25594#ifdef HAVE_NETDB_H
25595#include <netdb.h>
25596#endif
25597extern struct { int foo; } h_errno;
25598#ifdef F77_DUMMY_MAIN
25599# ifdef __cplusplus
25600 extern "C"
25601# endif
25602 int F77_DUMMY_MAIN() { return 1; }
25603#endif
25604int
25605main ()
25606{
25607h_errno.foo = 1;
25608 ;
25609 return 0;
25610}
25611_ACEOF
25612rm -f conftest.$ac_objext
25613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25614 (eval $ac_compile) 2>&5
25615 ac_status=$?
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } &&
25618 { ac_try='test -s conftest.$ac_objext'
25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620 (eval $ac_try) 2>&5
25621 ac_status=$?
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; }; then
25624 eval "ac_cv_var_h_errno_declaration=no"
25625else
25626 echo "$as_me: failed program was:" >&5
25627cat conftest.$ac_ext >&5
25628eval "ac_cv_var_h_errno_declaration=yes"
25629fi
25630rm -f conftest.$ac_objext conftest.$ac_ext
25631
25632fi
25633
25634
25635
25636
25637echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
25638echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
25639if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
25640
25641cat >>confdefs.h <<\_ACEOF
25642#define HAVE_H_ERRNO_DECLARATION 1
25643_ACEOF
25644
25645fi
25646
25647
25648fi
25649
25650
25651
25652echo "$as_me:$LINENO: checking for h_errlist" >&5
25653echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
25654if test "${ac_cv_var_h_errlist+set}" = set; then
25655 echo $ECHO_N "(cached) $ECHO_C" >&6
25656else
25657
25658
25659 cat >conftest.$ac_ext <<_ACEOF
25660#line $LINENO "configure"
25661#include "confdefs.h"
25662#ifdef HAVE_NETDB_H
25663#include <netdb.h>
25664#endif
25665 void * foo() { return &h_errlist; }
25666#ifdef F77_DUMMY_MAIN
25667# ifdef __cplusplus
25668 extern "C"
25669# endif
25670 int F77_DUMMY_MAIN() { return 1; }
25671#endif
25672int
25673main ()
25674{
25675foo()
25676 ;
25677 return 0;
25678}
25679_ACEOF
25680rm -f conftest.$ac_objext conftest$ac_exeext
25681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25682 (eval $ac_link) 2>&5
25683 ac_status=$?
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } &&
25686 { ac_try='test -s conftest$ac_exeext'
25687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); }; }; then
25692 ac_cv_var_h_errlist=yes
25693else
25694 echo "$as_me: failed program was:" >&5
25695cat conftest.$ac_ext >&5
25696ac_cv_var_h_errlist=no
25697fi
25698rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25699if test "$ac_cv_var_h_errlist" != yes ; then
25700cat >conftest.$ac_ext <<_ACEOF
25701#line $LINENO "configure"
25702#include "confdefs.h"
25703extern int h_errlist;
25704int foo() { return h_errlist; }
25705#ifdef F77_DUMMY_MAIN
25706# ifdef __cplusplus
25707 extern "C"
25708# endif
25709 int F77_DUMMY_MAIN() { return 1; }
25710#endif
25711int
25712main ()
25713{
25714foo()
25715 ;
25716 return 0;
25717}
25718_ACEOF
25719rm -f conftest.$ac_objext conftest$ac_exeext
25720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25721 (eval $ac_link) 2>&5
25722 ac_status=$?
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); } &&
25725 { ac_try='test -s conftest$ac_exeext'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; }; then
25731 ac_cv_var_h_errlist=yes
25732else
25733 echo "$as_me: failed program was:" >&5
25734cat conftest.$ac_ext >&5
25735ac_cv_var_h_errlist=no
25736fi
25737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25738fi
25739
25740fi
25741
25742ac_foo=`eval echo \\$ac_cv_var_h_errlist`
25743echo "$as_me:$LINENO: result: $ac_foo" >&5
25744echo "${ECHO_T}$ac_foo" >&6
25745if test "$ac_foo" = yes; then
25746
25747cat >>confdefs.h <<_ACEOF
25748#define HAVE_H_ERRLIST 1
25749_ACEOF
25750
25751
25752echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
25753echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
25754if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
25755 echo $ECHO_N "(cached) $ECHO_C" >&6
25756else
25757
25758cat >conftest.$ac_ext <<_ACEOF
25759#line $LINENO "configure"
25760#include "confdefs.h"
25761#ifdef HAVE_NETDB_H
25762#include <netdb.h>
25763#endif
25764extern struct { int foo; } h_errlist;
25765#ifdef F77_DUMMY_MAIN
25766# ifdef __cplusplus
25767 extern "C"
25768# endif
25769 int F77_DUMMY_MAIN() { return 1; }
25770#endif
25771int
25772main ()
25773{
25774h_errlist.foo = 1;
25775 ;
25776 return 0;
25777}
25778_ACEOF
25779rm -f conftest.$ac_objext
25780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25781 (eval $ac_compile) 2>&5
25782 ac_status=$?
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } &&
25785 { ac_try='test -s conftest.$ac_objext'
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25788 ac_status=$?
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; }; then
25791 eval "ac_cv_var_h_errlist_declaration=no"
25792else
25793 echo "$as_me: failed program was:" >&5
25794cat conftest.$ac_ext >&5
25795eval "ac_cv_var_h_errlist_declaration=yes"
25796fi
25797rm -f conftest.$ac_objext conftest.$ac_ext
25798
25799fi
25800
25801
25802
25803
25804echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
25805echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
25806if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
25807
25808cat >>confdefs.h <<\_ACEOF
25809#define HAVE_H_ERRLIST_DECLARATION 1
25810_ACEOF
25811
25812fi
25813
25814
25815fi
25816
25817
25818
25819echo "$as_me:$LINENO: checking for h_nerr" >&5
25820echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
25821if test "${ac_cv_var_h_nerr+set}" = set; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
25823else
25824
25825
25826 cat >conftest.$ac_ext <<_ACEOF
25827#line $LINENO "configure"
25828#include "confdefs.h"
25829#ifdef HAVE_NETDB_H
25830#include <netdb.h>
25831#endif
25832 void * foo() { return &h_nerr; }
25833#ifdef F77_DUMMY_MAIN
25834# ifdef __cplusplus
25835 extern "C"
25836# endif
25837 int F77_DUMMY_MAIN() { return 1; }
25838#endif
25839int
25840main ()
25841{
25842foo()
25843 ;
25844 return 0;
25845}
25846_ACEOF
25847rm -f conftest.$ac_objext conftest$ac_exeext
25848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25849 (eval $ac_link) 2>&5
25850 ac_status=$?
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } &&
25853 { ac_try='test -s conftest$ac_exeext'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; }; then
25859 ac_cv_var_h_nerr=yes
25860else
25861 echo "$as_me: failed program was:" >&5
25862cat conftest.$ac_ext >&5
25863ac_cv_var_h_nerr=no
25864fi
25865rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25866if test "$ac_cv_var_h_nerr" != yes ; then
25867cat >conftest.$ac_ext <<_ACEOF
25868#line $LINENO "configure"
25869#include "confdefs.h"
25870extern int h_nerr;
25871int foo() { return h_nerr; }
25872#ifdef F77_DUMMY_MAIN
25873# ifdef __cplusplus
25874 extern "C"
25875# endif
25876 int F77_DUMMY_MAIN() { return 1; }
25877#endif
25878int
25879main ()
25880{
25881foo()
25882 ;
25883 return 0;
25884}
25885_ACEOF
25886rm -f conftest.$ac_objext conftest$ac_exeext
25887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25888 (eval $ac_link) 2>&5
25889 ac_status=$?
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); } &&
25892 { ac_try='test -s conftest$ac_exeext'
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25895 ac_status=$?
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; }; then
25898 ac_cv_var_h_nerr=yes
25899else
25900 echo "$as_me: failed program was:" >&5
25901cat conftest.$ac_ext >&5
25902ac_cv_var_h_nerr=no
25903fi
25904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25905fi
25906
25907fi
25908
25909ac_foo=`eval echo \\$ac_cv_var_h_nerr`
25910echo "$as_me:$LINENO: result: $ac_foo" >&5
25911echo "${ECHO_T}$ac_foo" >&6
25912if test "$ac_foo" = yes; then
25913
25914cat >>confdefs.h <<_ACEOF
25915#define HAVE_H_NERR 1
25916_ACEOF
25917
25918
25919echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
25920echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
25921if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25923else
25924
25925cat >conftest.$ac_ext <<_ACEOF
25926#line $LINENO "configure"
25927#include "confdefs.h"
25928#ifdef HAVE_NETDB_H
25929#include <netdb.h>
25930#endif
25931extern struct { int foo; } h_nerr;
25932#ifdef F77_DUMMY_MAIN
25933# ifdef __cplusplus
25934 extern "C"
25935# endif
25936 int F77_DUMMY_MAIN() { return 1; }
25937#endif
25938int
25939main ()
25940{
25941h_nerr.foo = 1;
25942 ;
25943 return 0;
25944}
25945_ACEOF
25946rm -f conftest.$ac_objext
25947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25948 (eval $ac_compile) 2>&5
25949 ac_status=$?
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); } &&
25952 { ac_try='test -s conftest.$ac_objext'
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25955 ac_status=$?
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; }; then
25958 eval "ac_cv_var_h_nerr_declaration=no"
25959else
25960 echo "$as_me: failed program was:" >&5
25961cat conftest.$ac_ext >&5
25962eval "ac_cv_var_h_nerr_declaration=yes"
25963fi
25964rm -f conftest.$ac_objext conftest.$ac_ext
25965
25966fi
25967
25968
25969
25970
25971echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
25972echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
25973if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
25974
25975cat >>confdefs.h <<\_ACEOF
25976#define HAVE_H_NERR_DECLARATION 1
25977_ACEOF
25978
25979fi
25980
25981
25982fi
25983
25984
25985
25986echo "$as_me:$LINENO: checking for __progname" >&5
25987echo $ECHO_N "checking for __progname... $ECHO_C" >&6
25988if test "${ac_cv_var___progname+set}" = set; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25990else
25991
25992
25993 cat >conftest.$ac_ext <<_ACEOF
25994#line $LINENO "configure"
25995#include "confdefs.h"
25996#ifdef HAVE_ERR_H
25997#include <err.h>
25998#endif
25999 void * foo() { return &__progname; }
26000#ifdef F77_DUMMY_MAIN
26001# ifdef __cplusplus
26002 extern "C"
26003# endif
26004 int F77_DUMMY_MAIN() { return 1; }
26005#endif
26006int
26007main ()
26008{
26009foo()
26010 ;
26011 return 0;
26012}
26013_ACEOF
26014rm -f conftest.$ac_objext conftest$ac_exeext
26015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26016 (eval $ac_link) 2>&5
26017 ac_status=$?
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } &&
26020 { ac_try='test -s conftest$ac_exeext'
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26023 ac_status=$?
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; }; then
26026 ac_cv_var___progname=yes
26027else
26028 echo "$as_me: failed program was:" >&5
26029cat conftest.$ac_ext >&5
26030ac_cv_var___progname=no
26031fi
26032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26033if test "$ac_cv_var___progname" != yes ; then
26034cat >conftest.$ac_ext <<_ACEOF
26035#line $LINENO "configure"
26036#include "confdefs.h"
26037extern int __progname;
26038int foo() { return __progname; }
26039#ifdef F77_DUMMY_MAIN
26040# ifdef __cplusplus
26041 extern "C"
26042# endif
26043 int F77_DUMMY_MAIN() { return 1; }
26044#endif
26045int
26046main ()
26047{
26048foo()
26049 ;
26050 return 0;
26051}
26052_ACEOF
26053rm -f conftest.$ac_objext conftest$ac_exeext
26054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26055 (eval $ac_link) 2>&5
26056 ac_status=$?
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); } &&
26059 { ac_try='test -s conftest$ac_exeext'
26060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); }; }; then
26065 ac_cv_var___progname=yes
26066else
26067 echo "$as_me: failed program was:" >&5
26068cat conftest.$ac_ext >&5
26069ac_cv_var___progname=no
26070fi
26071rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26072fi
26073
26074fi
26075
26076ac_foo=`eval echo \\$ac_cv_var___progname`
26077echo "$as_me:$LINENO: result: $ac_foo" >&5
26078echo "${ECHO_T}$ac_foo" >&6
26079if test "$ac_foo" = yes; then
26080
26081cat >>confdefs.h <<_ACEOF
26082#define HAVE___PROGNAME 1
26083_ACEOF
26084
26085
26086echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
26087echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
26088if test "${ac_cv_var___progname_declaration+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26090else
26091
26092cat >conftest.$ac_ext <<_ACEOF
26093#line $LINENO "configure"
26094#include "confdefs.h"
26095#ifdef HAVE_ERR_H
26096#include <err.h>
26097#endif
26098extern struct { int foo; } __progname;
26099#ifdef F77_DUMMY_MAIN
26100# ifdef __cplusplus
26101 extern "C"
26102# endif
26103 int F77_DUMMY_MAIN() { return 1; }
26104#endif
26105int
26106main ()
26107{
26108__progname.foo = 1;
26109 ;
26110 return 0;
26111}
26112_ACEOF
26113rm -f conftest.$ac_objext
26114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26115 (eval $ac_compile) 2>&5
26116 ac_status=$?
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); } &&
26119 { ac_try='test -s conftest.$ac_objext'
26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121 (eval $ac_try) 2>&5
26122 ac_status=$?
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; }; then
26125 eval "ac_cv_var___progname_declaration=no"
26126else
26127 echo "$as_me: failed program was:" >&5
26128cat conftest.$ac_ext >&5
26129eval "ac_cv_var___progname_declaration=yes"
26130fi
26131rm -f conftest.$ac_objext conftest.$ac_ext
26132
26133fi
26134
26135
26136
26137
26138echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
26139echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
26140if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
26141
26142cat >>confdefs.h <<\_ACEOF
26143#define HAVE___PROGNAME_DECLARATION 1
26144_ACEOF
26145
26146fi
26147
26148
26149fi
26150
26151
26152
26153echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
26154echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
26155if test "${ac_cv_var_optarg_declaration+set}" = set; then
26156 echo $ECHO_N "(cached) $ECHO_C" >&6
26157else
26158
26159cat >conftest.$ac_ext <<_ACEOF
26160#line $LINENO "configure"
26161#include "confdefs.h"
26162#include <stdlib.h>
26163#ifdef HAVE_UNISTD_H
26164#include <unistd.h>
26165#endif
26166extern struct { int foo; } optarg;
26167#ifdef F77_DUMMY_MAIN
26168# ifdef __cplusplus
26169 extern "C"
26170# endif
26171 int F77_DUMMY_MAIN() { return 1; }
26172#endif
26173int
26174main ()
26175{
26176optarg.foo = 1;
26177 ;
26178 return 0;
26179}
26180_ACEOF
26181rm -f conftest.$ac_objext
26182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26183 (eval $ac_compile) 2>&5
26184 ac_status=$?
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } &&
26187 { ac_try='test -s conftest.$ac_objext'
26188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26189 (eval $ac_try) 2>&5
26190 ac_status=$?
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); }; }; then
26193 eval "ac_cv_var_optarg_declaration=no"
26194else
26195 echo "$as_me: failed program was:" >&5
26196cat conftest.$ac_ext >&5
26197eval "ac_cv_var_optarg_declaration=yes"
26198fi
26199rm -f conftest.$ac_objext conftest.$ac_ext
26200
26201fi
26202
26203
26204
26205
26206echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
26207echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
26208if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
26209
26210cat >>confdefs.h <<\_ACEOF
26211#define HAVE_OPTARG_DECLARATION 1
26212_ACEOF
26213
26214fi
26215
26216
26217
26218echo "$as_me:$LINENO: checking if optind is properly declared" >&5
26219echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
26220if test "${ac_cv_var_optind_declaration+set}" = set; then
26221 echo $ECHO_N "(cached) $ECHO_C" >&6
26222else
26223
26224cat >conftest.$ac_ext <<_ACEOF
26225#line $LINENO "configure"
26226#include "confdefs.h"
26227#include <stdlib.h>
26228#ifdef HAVE_UNISTD_H
26229#include <unistd.h>
26230#endif
26231extern struct { int foo; } optind;
26232#ifdef F77_DUMMY_MAIN
26233# ifdef __cplusplus
26234 extern "C"
26235# endif
26236 int F77_DUMMY_MAIN() { return 1; }
26237#endif
26238int
26239main ()
26240{
26241optind.foo = 1;
26242 ;
26243 return 0;
26244}
26245_ACEOF
26246rm -f conftest.$ac_objext
26247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26248 (eval $ac_compile) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } &&
26252 { ac_try='test -s conftest.$ac_objext'
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; }; then
26258 eval "ac_cv_var_optind_declaration=no"
26259else
26260 echo "$as_me: failed program was:" >&5
26261cat conftest.$ac_ext >&5
26262eval "ac_cv_var_optind_declaration=yes"
26263fi
26264rm -f conftest.$ac_objext conftest.$ac_ext
26265
26266fi
26267
26268
26269
26270
26271echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
26272echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
26273if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
26274
26275cat >>confdefs.h <<\_ACEOF
26276#define HAVE_OPTIND_DECLARATION 1
26277_ACEOF
26278
26279fi
26280
26281
26282
26283echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
26284echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
26285if test "${ac_cv_var_opterr_declaration+set}" = set; then
26286 echo $ECHO_N "(cached) $ECHO_C" >&6
26287else
26288
26289cat >conftest.$ac_ext <<_ACEOF
26290#line $LINENO "configure"
26291#include "confdefs.h"
26292#include <stdlib.h>
26293#ifdef HAVE_UNISTD_H
26294#include <unistd.h>
26295#endif
26296extern struct { int foo; } opterr;
26297#ifdef F77_DUMMY_MAIN
26298# ifdef __cplusplus
26299 extern "C"
26300# endif
26301 int F77_DUMMY_MAIN() { return 1; }
26302#endif
26303int
26304main ()
26305{
26306opterr.foo = 1;
26307 ;
26308 return 0;
26309}
26310_ACEOF
26311rm -f conftest.$ac_objext
26312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26313 (eval $ac_compile) 2>&5
26314 ac_status=$?
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); } &&
26317 { ac_try='test -s conftest.$ac_objext'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; }; then
26323 eval "ac_cv_var_opterr_declaration=no"
26324else
26325 echo "$as_me: failed program was:" >&5
26326cat conftest.$ac_ext >&5
26327eval "ac_cv_var_opterr_declaration=yes"
26328fi
26329rm -f conftest.$ac_objext conftest.$ac_ext
26330
26331fi
26332
26333
26334
26335
26336echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
26337echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
26338if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
26339
26340cat >>confdefs.h <<\_ACEOF
26341#define HAVE_OPTERR_DECLARATION 1
26342_ACEOF
26343
26344fi
26345
26346
26347
26348echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
26349echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
26350if test "${ac_cv_var_optopt_declaration+set}" = set; then
26351 echo $ECHO_N "(cached) $ECHO_C" >&6
26352else
26353
26354cat >conftest.$ac_ext <<_ACEOF
26355#line $LINENO "configure"
26356#include "confdefs.h"
26357#include <stdlib.h>
26358#ifdef HAVE_UNISTD_H
26359#include <unistd.h>
26360#endif
26361extern struct { int foo; } optopt;
26362#ifdef F77_DUMMY_MAIN
26363# ifdef __cplusplus
26364 extern "C"
26365# endif
26366 int F77_DUMMY_MAIN() { return 1; }
26367#endif
26368int
26369main ()
26370{
26371optopt.foo = 1;
26372 ;
26373 return 0;
26374}
26375_ACEOF
26376rm -f conftest.$ac_objext
26377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26378 (eval $ac_compile) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } &&
26382 { ac_try='test -s conftest.$ac_objext'
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26385 ac_status=$?
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); }; }; then
26388 eval "ac_cv_var_optopt_declaration=no"
26389else
26390 echo "$as_me: failed program was:" >&5
26391cat conftest.$ac_ext >&5
26392eval "ac_cv_var_optopt_declaration=yes"
26393fi
26394rm -f conftest.$ac_objext conftest.$ac_ext
26395
26396fi
26397
26398
26399
26400
26401echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
26402echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
26403if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
26404
26405cat >>confdefs.h <<\_ACEOF
26406#define HAVE_OPTOPT_DECLARATION 1
26407_ACEOF
26408
26409fi
26410
26411
26412
26413
26414echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26415echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
26416if test "${ac_cv_var_environ_declaration+set}" = set; then
26417 echo $ECHO_N "(cached) $ECHO_C" >&6
26418else
26419
26420cat >conftest.$ac_ext <<_ACEOF
26421#line $LINENO "configure"
26422#include "confdefs.h"
26423#include <stdlib.h>
26424extern struct { int foo; } environ;
26425#ifdef F77_DUMMY_MAIN
26426# ifdef __cplusplus
26427 extern "C"
26428# endif
26429 int F77_DUMMY_MAIN() { return 1; }
26430#endif
26431int
26432main ()
26433{
26434environ.foo = 1;
26435 ;
26436 return 0;
26437}
26438_ACEOF
26439rm -f conftest.$ac_objext
26440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26441 (eval $ac_compile) 2>&5
26442 ac_status=$?
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); } &&
26445 { ac_try='test -s conftest.$ac_objext'
26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 (eval $ac_try) 2>&5
26448 ac_status=$?
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; }; then
26451 eval "ac_cv_var_environ_declaration=no"
26452else
26453 echo "$as_me: failed program was:" >&5
26454cat conftest.$ac_ext >&5
26455eval "ac_cv_var_environ_declaration=yes"
26456fi
26457rm -f conftest.$ac_objext conftest.$ac_ext
26458
26459fi
26460
26461
26462
26463
26464echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
26465echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
26466if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
26467
26468cat >>confdefs.h <<\_ACEOF
26469#define HAVE_ENVIRON_DECLARATION 1
26470_ACEOF
26471
26472fi
26473
26474
26475
26476
26477
26478
26479echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
26480echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
26481if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
26482 echo $ECHO_N "(cached) $ECHO_C" >&6
26483else
26484
26485cat >conftest.$ac_ext <<_ACEOF
26486#line $LINENO "configure"
26487#include "confdefs.h"
26488#include <time.h>
26489#ifdef F77_DUMMY_MAIN
26490# ifdef __cplusplus
26491 extern "C"
26492# endif
26493 int F77_DUMMY_MAIN() { return 1; }
26494#endif
26495int
26496main ()
26497{
26498struct tm x; x.tm_gmtoff;
26499 ;
26500 return 0;
26501}
26502_ACEOF
26503rm -f conftest.$ac_objext
26504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26505 (eval $ac_compile) 2>&5
26506 ac_status=$?
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
26509 { ac_try='test -s conftest.$ac_objext'
26510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26511 (eval $ac_try) 2>&5
26512 ac_status=$?
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); }; }; then
26515 ac_cv_type_struct_tm_tm_gmtoff=yes
26516else
26517 echo "$as_me: failed program was:" >&5
26518cat conftest.$ac_ext >&5
26519ac_cv_type_struct_tm_tm_gmtoff=no
26520fi
26521rm -f conftest.$ac_objext conftest.$ac_ext
26522fi
26523echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
26524echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
26525if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
26526
26527
26528cat >>confdefs.h <<\_ACEOF
26529#define HAVE_STRUCT_TM_TM_GMTOFF 1
26530_ACEOF
26531
26532
26533fi
26534
26535
26536
26537
26538echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
26539echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
26540if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
26541 echo $ECHO_N "(cached) $ECHO_C" >&6
26542else
26543
26544cat >conftest.$ac_ext <<_ACEOF
26545#line $LINENO "configure"
26546#include "confdefs.h"
26547#include <time.h>
26548#ifdef F77_DUMMY_MAIN
26549# ifdef __cplusplus
26550 extern "C"
26551# endif
26552 int F77_DUMMY_MAIN() { return 1; }
26553#endif
26554int
26555main ()
26556{
26557struct tm x; x.tm_zone;
26558 ;
26559 return 0;
26560}
26561_ACEOF
26562rm -f conftest.$ac_objext
26563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26564 (eval $ac_compile) 2>&5
26565 ac_status=$?
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); } &&
26568 { ac_try='test -s conftest.$ac_objext'
26569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570 (eval $ac_try) 2>&5
26571 ac_status=$?
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); }; }; then
26574 ac_cv_type_struct_tm_tm_zone=yes
26575else
26576 echo "$as_me: failed program was:" >&5
26577cat conftest.$ac_ext >&5
26578ac_cv_type_struct_tm_tm_zone=no
26579fi
26580rm -f conftest.$ac_objext conftest.$ac_ext
26581fi
26582echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
26583echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
26584if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
26585
26586
26587cat >>confdefs.h <<\_ACEOF
26588#define HAVE_STRUCT_TM_TM_ZONE 1
26589_ACEOF
26590
26591
26592fi
26593
26594
26595
26596
26597
26598echo "$as_me:$LINENO: checking for timezone" >&5
26599echo $ECHO_N "checking for timezone... $ECHO_C" >&6
26600if test "${ac_cv_var_timezone+set}" = set; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26602else
26603
26604
26605 cat >conftest.$ac_ext <<_ACEOF
26606#line $LINENO "configure"
26607#include "confdefs.h"
26608#include <time.h>
26609 void * foo() { return &timezone; }
26610#ifdef F77_DUMMY_MAIN
26611# ifdef __cplusplus
26612 extern "C"
26613# endif
26614 int F77_DUMMY_MAIN() { return 1; }
26615#endif
26616int
26617main ()
26618{
26619foo()
26620 ;
26621 return 0;
26622}
26623_ACEOF
26624rm -f conftest.$ac_objext conftest$ac_exeext
26625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26626 (eval $ac_link) 2>&5
26627 ac_status=$?
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); } &&
26630 { ac_try='test -s conftest$ac_exeext'
26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; }; then
26636 ac_cv_var_timezone=yes
26637else
26638 echo "$as_me: failed program was:" >&5
26639cat conftest.$ac_ext >&5
26640ac_cv_var_timezone=no
26641fi
26642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26643if test "$ac_cv_var_timezone" != yes ; then
26644cat >conftest.$ac_ext <<_ACEOF
26645#line $LINENO "configure"
26646#include "confdefs.h"
26647extern int timezone;
26648int foo() { return timezone; }
26649#ifdef F77_DUMMY_MAIN
26650# ifdef __cplusplus
26651 extern "C"
26652# endif
26653 int F77_DUMMY_MAIN() { return 1; }
26654#endif
26655int
26656main ()
26657{
26658foo()
26659 ;
26660 return 0;
26661}
26662_ACEOF
26663rm -f conftest.$ac_objext conftest$ac_exeext
26664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26665 (eval $ac_link) 2>&5
26666 ac_status=$?
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); } &&
26669 { ac_try='test -s conftest$ac_exeext'
26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26672 ac_status=$?
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; }; then
26675 ac_cv_var_timezone=yes
26676else
26677 echo "$as_me: failed program was:" >&5
26678cat conftest.$ac_ext >&5
26679ac_cv_var_timezone=no
26680fi
26681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26682fi
26683
26684fi
26685
26686ac_foo=`eval echo \\$ac_cv_var_timezone`
26687echo "$as_me:$LINENO: result: $ac_foo" >&5
26688echo "${ECHO_T}$ac_foo" >&6
26689if test "$ac_foo" = yes; then
26690
26691cat >>confdefs.h <<_ACEOF
26692#define HAVE_TIMEZONE 1
26693_ACEOF
26694
26695
26696echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
26697echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
26698if test "${ac_cv_var_timezone_declaration+set}" = set; then
26699 echo $ECHO_N "(cached) $ECHO_C" >&6
26700else
26701
26702cat >conftest.$ac_ext <<_ACEOF
26703#line $LINENO "configure"
26704#include "confdefs.h"
26705#include <time.h>
26706extern struct { int foo; } timezone;
26707#ifdef F77_DUMMY_MAIN
26708# ifdef __cplusplus
26709 extern "C"
26710# endif
26711 int F77_DUMMY_MAIN() { return 1; }
26712#endif
26713int
26714main ()
26715{
26716timezone.foo = 1;
26717 ;
26718 return 0;
26719}
26720_ACEOF
26721rm -f conftest.$ac_objext
26722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26723 (eval $ac_compile) 2>&5
26724 ac_status=$?
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } &&
26727 { ac_try='test -s conftest.$ac_objext'
26728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; }; then
26733 eval "ac_cv_var_timezone_declaration=no"
26734else
26735 echo "$as_me: failed program was:" >&5
26736cat conftest.$ac_ext >&5
26737eval "ac_cv_var_timezone_declaration=yes"
26738fi
26739rm -f conftest.$ac_objext conftest.$ac_ext
26740
26741fi
26742
26743
26744
26745
26746echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
26747echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
26748if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
26749
26750cat >>confdefs.h <<\_ACEOF
26751#define HAVE_TIMEZONE_DECLARATION 1
26752_ACEOF
26753
26754fi
26755
26756
26757fi
26758
26759
26760echo "$as_me:$LINENO: checking for altzone" >&5
26761echo $ECHO_N "checking for altzone... $ECHO_C" >&6
26762if test "${ac_cv_var_altzone+set}" = set; then
26763 echo $ECHO_N "(cached) $ECHO_C" >&6
26764else
26765
26766
26767 cat >conftest.$ac_ext <<_ACEOF
26768#line $LINENO "configure"
26769#include "confdefs.h"
26770#include <time.h>
26771 void * foo() { return &altzone; }
26772#ifdef F77_DUMMY_MAIN
26773# ifdef __cplusplus
26774 extern "C"
26775# endif
26776 int F77_DUMMY_MAIN() { return 1; }
26777#endif
26778int
26779main ()
26780{
26781foo()
26782 ;
26783 return 0;
26784}
26785_ACEOF
26786rm -f conftest.$ac_objext conftest$ac_exeext
26787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26788 (eval $ac_link) 2>&5
26789 ac_status=$?
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } &&
26792 { ac_try='test -s conftest$ac_exeext'
26793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794 (eval $ac_try) 2>&5
26795 ac_status=$?
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; }; then
26798 ac_cv_var_altzone=yes
26799else
26800 echo "$as_me: failed program was:" >&5
26801cat conftest.$ac_ext >&5
26802ac_cv_var_altzone=no
26803fi
26804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26805if test "$ac_cv_var_altzone" != yes ; then
26806cat >conftest.$ac_ext <<_ACEOF
26807#line $LINENO "configure"
26808#include "confdefs.h"
26809extern int altzone;
26810int foo() { return altzone; }
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{
26820foo()
26821 ;
26822 return 0;
26823}
26824_ACEOF
26825rm -f conftest.$ac_objext conftest$ac_exeext
26826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26827 (eval $ac_link) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
26831 { ac_try='test -s conftest$ac_exeext'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 ac_cv_var_altzone=yes
26838else
26839 echo "$as_me: failed program was:" >&5
26840cat conftest.$ac_ext >&5
26841ac_cv_var_altzone=no
26842fi
26843rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26844fi
26845
26846fi
26847
26848ac_foo=`eval echo \\$ac_cv_var_altzone`
26849echo "$as_me:$LINENO: result: $ac_foo" >&5
26850echo "${ECHO_T}$ac_foo" >&6
26851if test "$ac_foo" = yes; then
26852
26853cat >>confdefs.h <<_ACEOF
26854#define HAVE_ALTZONE 1
26855_ACEOF
26856
26857
26858echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
26859echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
26860if test "${ac_cv_var_altzone_declaration+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26862else
26863
26864cat >conftest.$ac_ext <<_ACEOF
26865#line $LINENO "configure"
26866#include "confdefs.h"
26867#include <time.h>
26868extern struct { int foo; } altzone;
26869#ifdef F77_DUMMY_MAIN
26870# ifdef __cplusplus
26871 extern "C"
26872# endif
26873 int F77_DUMMY_MAIN() { return 1; }
26874#endif
26875int
26876main ()
26877{
26878altzone.foo = 1;
26879 ;
26880 return 0;
26881}
26882_ACEOF
26883rm -f conftest.$ac_objext
26884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26885 (eval $ac_compile) 2>&5
26886 ac_status=$?
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); } &&
26889 { ac_try='test -s conftest.$ac_objext'
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; }; then
26895 eval "ac_cv_var_altzone_declaration=no"
26896else
26897 echo "$as_me: failed program was:" >&5
26898cat conftest.$ac_ext >&5
26899eval "ac_cv_var_altzone_declaration=yes"
26900fi
26901rm -f conftest.$ac_objext conftest.$ac_ext
26902
26903fi
26904
26905
26906
26907
26908echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
26909echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
26910if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
26911
26912cat >>confdefs.h <<\_ACEOF
26913#define HAVE_ALTZONE_DECLARATION 1
26914_ACEOF
26915
26916fi
26917
26918
26919fi
26920
26921
26922
26923
26924cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
26925echo "$as_me:$LINENO: checking for sa_family_t" >&5
26926echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
26927if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26928 echo $ECHO_N "(cached) $ECHO_C" >&6
26929else
26930 cat >conftest.$ac_ext <<_ACEOF
26931#line $LINENO "configure"
26932#include "confdefs.h"
26933#include <sys/types.h>
26934#if STDC_HEADERS
26935#include <stdlib.h>
26936#include <stddef.h>
26937#endif
26938#include <sys/socket.h>
26939#ifdef F77_DUMMY_MAIN
26940# ifdef __cplusplus
26941 extern "C"
26942# endif
26943 int F77_DUMMY_MAIN() { return 1; }
26944#endif
26945int
26946main ()
26947{
26948sa_family_t foo;
26949 ;
26950 return 0;
26951}
26952_ACEOF
26953rm -f conftest.$ac_objext
26954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26955 (eval $ac_compile) 2>&5
26956 ac_status=$?
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); } &&
26959 { ac_try='test -s conftest.$ac_objext'
26960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961 (eval $ac_try) 2>&5
26962 ac_status=$?
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; }; then
26965 eval "ac_cv_type_$cv=yes"
26966else
26967 echo "$as_me: failed program was:" >&5
26968cat conftest.$ac_ext >&5
26969eval "ac_cv_type_$cv=no"
26970fi
26971rm -f conftest.$ac_objext conftest.$ac_ext
26972fi
26973ac_foo=`eval echo \\$ac_cv_type_$cv`
26974echo "$as_me:$LINENO: result: $ac_foo" >&5
26975echo "${ECHO_T}$ac_foo" >&6
26976if test "$ac_foo" = yes; then
26977 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26978if false; then
26979 echo "$as_me:$LINENO: checking for sa_family_t" >&5
26980echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
26981if test "${ac_cv_type_sa_family_t+set}" = set; then
26982 echo $ECHO_N "(cached) $ECHO_C" >&6
26983else
26984 cat >conftest.$ac_ext <<_ACEOF
26985#line $LINENO "configure"
26986#include "confdefs.h"
26987$ac_includes_default
26988#ifdef F77_DUMMY_MAIN
26989# ifdef __cplusplus
26990 extern "C"
26991# endif
26992 int F77_DUMMY_MAIN() { return 1; }
26993#endif
26994int
26995main ()
26996{
26997if ((sa_family_t *) 0)
26998 return 0;
26999if (sizeof (sa_family_t))
27000 return 0;
27001 ;
27002 return 0;
27003}
27004_ACEOF
27005rm -f conftest.$ac_objext
27006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27007 (eval $ac_compile) 2>&5
27008 ac_status=$?
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } &&
27011 { ac_try='test -s conftest.$ac_objext'
27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); }; }; then
27017 ac_cv_type_sa_family_t=yes
27018else
27019 echo "$as_me: failed program was:" >&5
27020cat conftest.$ac_ext >&5
27021ac_cv_type_sa_family_t=no
27022fi
27023rm -f conftest.$ac_objext conftest.$ac_ext
27024fi
27025echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
27026echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
27027if test $ac_cv_type_sa_family_t = yes; then
27028
27029cat >>confdefs.h <<_ACEOF
27030#define HAVE_SA_FAMILY_T 1
27031_ACEOF
27032
27033
27034fi
27035
27036fi
27037
27038cat >>confdefs.h <<_ACEOF
27039#define $ac_tr_hdr 1
27040_ACEOF
27041
27042fi
27043
27044
27045
27046cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
27047echo "$as_me:$LINENO: checking for socklen_t" >&5
27048echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
27049if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27050 echo $ECHO_N "(cached) $ECHO_C" >&6
27051else
27052 cat >conftest.$ac_ext <<_ACEOF
27053#line $LINENO "configure"
27054#include "confdefs.h"
27055#include <sys/types.h>
27056#if STDC_HEADERS
27057#include <stdlib.h>
27058#include <stddef.h>
27059#endif
27060#include <sys/socket.h>
27061#ifdef F77_DUMMY_MAIN
27062# ifdef __cplusplus
27063 extern "C"
27064# endif
27065 int F77_DUMMY_MAIN() { return 1; }
27066#endif
27067int
27068main ()
27069{
27070socklen_t foo;
27071 ;
27072 return 0;
27073}
27074_ACEOF
27075rm -f conftest.$ac_objext
27076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27077 (eval $ac_compile) 2>&5
27078 ac_status=$?
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); } &&
27081 { ac_try='test -s conftest.$ac_objext'
27082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; }; then
27087 eval "ac_cv_type_$cv=yes"
27088else
27089 echo "$as_me: failed program was:" >&5
27090cat conftest.$ac_ext >&5
27091eval "ac_cv_type_$cv=no"
27092fi
27093rm -f conftest.$ac_objext conftest.$ac_ext
27094fi
27095ac_foo=`eval echo \\$ac_cv_type_$cv`
27096echo "$as_me:$LINENO: result: $ac_foo" >&5
27097echo "${ECHO_T}$ac_foo" >&6
27098if test "$ac_foo" = yes; then
27099 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27100if false; then
27101 echo "$as_me:$LINENO: checking for socklen_t" >&5
27102echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
27103if test "${ac_cv_type_socklen_t+set}" = set; then
27104 echo $ECHO_N "(cached) $ECHO_C" >&6
27105else
27106 cat >conftest.$ac_ext <<_ACEOF
27107#line $LINENO "configure"
27108#include "confdefs.h"
27109$ac_includes_default
27110#ifdef F77_DUMMY_MAIN
27111# ifdef __cplusplus
27112 extern "C"
27113# endif
27114 int F77_DUMMY_MAIN() { return 1; }
27115#endif
27116int
27117main ()
27118{
27119if ((socklen_t *) 0)
27120 return 0;
27121if (sizeof (socklen_t))
27122 return 0;
27123 ;
27124 return 0;
27125}
27126_ACEOF
27127rm -f conftest.$ac_objext
27128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27129 (eval $ac_compile) 2>&5
27130 ac_status=$?
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } &&
27133 { ac_try='test -s conftest.$ac_objext'
27134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27135 (eval $ac_try) 2>&5
27136 ac_status=$?
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; }; then
27139 ac_cv_type_socklen_t=yes
27140else
27141 echo "$as_me: failed program was:" >&5
27142cat conftest.$ac_ext >&5
27143ac_cv_type_socklen_t=no
27144fi
27145rm -f conftest.$ac_objext conftest.$ac_ext
27146fi
27147echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27148echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
27149if test $ac_cv_type_socklen_t = yes; then
27150
27151cat >>confdefs.h <<_ACEOF
27152#define HAVE_SOCKLEN_T 1
27153_ACEOF
27154
27155
27156fi
27157
27158fi
27159
27160cat >>confdefs.h <<_ACEOF
27161#define $ac_tr_hdr 1
27162_ACEOF
27163
27164fi
27165
27166
27167
27168cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
27169echo "$as_me:$LINENO: checking for struct sockaddr" >&5
27170echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
27171if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27172 echo $ECHO_N "(cached) $ECHO_C" >&6
27173else
27174 cat >conftest.$ac_ext <<_ACEOF
27175#line $LINENO "configure"
27176#include "confdefs.h"
27177#include <sys/types.h>
27178#if STDC_HEADERS
27179#include <stdlib.h>
27180#include <stddef.h>
27181#endif
27182#include <sys/socket.h>
27183#ifdef F77_DUMMY_MAIN
27184# ifdef __cplusplus
27185 extern "C"
27186# endif
27187 int F77_DUMMY_MAIN() { return 1; }
27188#endif
27189int
27190main ()
27191{
27192struct sockaddr foo;
27193 ;
27194 return 0;
27195}
27196_ACEOF
27197rm -f conftest.$ac_objext
27198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27199 (eval $ac_compile) 2>&5
27200 ac_status=$?
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } &&
27203 { ac_try='test -s conftest.$ac_objext'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 eval "ac_cv_type_$cv=yes"
27210else
27211 echo "$as_me: failed program was:" >&5
27212cat conftest.$ac_ext >&5
27213eval "ac_cv_type_$cv=no"
27214fi
27215rm -f conftest.$ac_objext conftest.$ac_ext
27216fi
27217ac_foo=`eval echo \\$ac_cv_type_$cv`
27218echo "$as_me:$LINENO: result: $ac_foo" >&5
27219echo "${ECHO_T}$ac_foo" >&6
27220if test "$ac_foo" = yes; then
27221 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27222if false; then
27223 echo "$as_me:$LINENO: checking for struct sockaddr" >&5
27224echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
27225if test "${ac_cv_type_struct_sockaddr+set}" = set; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27227else
27228 cat >conftest.$ac_ext <<_ACEOF
27229#line $LINENO "configure"
27230#include "confdefs.h"
27231$ac_includes_default
27232#ifdef F77_DUMMY_MAIN
27233# ifdef __cplusplus
27234 extern "C"
27235# endif
27236 int F77_DUMMY_MAIN() { return 1; }
27237#endif
27238int
27239main ()
27240{
27241if ((struct sockaddr *) 0)
27242 return 0;
27243if (sizeof (struct sockaddr))
27244 return 0;
27245 ;
27246 return 0;
27247}
27248_ACEOF
27249rm -f conftest.$ac_objext
27250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27251 (eval $ac_compile) 2>&5
27252 ac_status=$?
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } &&
27255 { ac_try='test -s conftest.$ac_objext'
27256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257 (eval $ac_try) 2>&5
27258 ac_status=$?
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); }; }; then
27261 ac_cv_type_struct_sockaddr=yes
27262else
27263 echo "$as_me: failed program was:" >&5
27264cat conftest.$ac_ext >&5
27265ac_cv_type_struct_sockaddr=no
27266fi
27267rm -f conftest.$ac_objext conftest.$ac_ext
27268fi
27269echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
27270echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
27271if test $ac_cv_type_struct_sockaddr = yes; then
27272
27273cat >>confdefs.h <<_ACEOF
27274#define HAVE_STRUCT_SOCKADDR 1
27275_ACEOF
27276
27277
27278fi
27279
27280fi
27281
27282cat >>confdefs.h <<_ACEOF
27283#define $ac_tr_hdr 1
27284_ACEOF
27285
27286fi
27287
27288
27289
27290cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
27291echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
27292echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
27293if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27294 echo $ECHO_N "(cached) $ECHO_C" >&6
27295else
27296 cat >conftest.$ac_ext <<_ACEOF
27297#line $LINENO "configure"
27298#include "confdefs.h"
27299#include <sys/types.h>
27300#if STDC_HEADERS
27301#include <stdlib.h>
27302#include <stddef.h>
27303#endif
27304#include <sys/socket.h>
27305#ifdef F77_DUMMY_MAIN
27306# ifdef __cplusplus
27307 extern "C"
27308# endif
27309 int F77_DUMMY_MAIN() { return 1; }
27310#endif
27311int
27312main ()
27313{
27314struct sockaddr_storage foo;
27315 ;
27316 return 0;
27317}
27318_ACEOF
27319rm -f conftest.$ac_objext
27320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27321 (eval $ac_compile) 2>&5
27322 ac_status=$?
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
27325 { ac_try='test -s conftest.$ac_objext'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27328 ac_status=$?
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
27331 eval "ac_cv_type_$cv=yes"
27332else
27333 echo "$as_me: failed program was:" >&5
27334cat conftest.$ac_ext >&5
27335eval "ac_cv_type_$cv=no"
27336fi
27337rm -f conftest.$ac_objext conftest.$ac_ext
27338fi
27339ac_foo=`eval echo \\$ac_cv_type_$cv`
27340echo "$as_me:$LINENO: result: $ac_foo" >&5
27341echo "${ECHO_T}$ac_foo" >&6
27342if test "$ac_foo" = yes; then
27343 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27344if false; then
27345 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
27346echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
27347if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27349else
27350 cat >conftest.$ac_ext <<_ACEOF
27351#line $LINENO "configure"
27352#include "confdefs.h"
27353$ac_includes_default
27354#ifdef F77_DUMMY_MAIN
27355# ifdef __cplusplus
27356 extern "C"
27357# endif
27358 int F77_DUMMY_MAIN() { return 1; }
27359#endif
27360int
27361main ()
27362{
27363if ((struct sockaddr_storage *) 0)
27364 return 0;
27365if (sizeof (struct sockaddr_storage))
27366 return 0;
27367 ;
27368 return 0;
27369}
27370_ACEOF
27371rm -f conftest.$ac_objext
27372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27373 (eval $ac_compile) 2>&5
27374 ac_status=$?
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); } &&
27377 { ac_try='test -s conftest.$ac_objext'
27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379 (eval $ac_try) 2>&5
27380 ac_status=$?
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; }; then
27383 ac_cv_type_struct_sockaddr_storage=yes
27384else
27385 echo "$as_me: failed program was:" >&5
27386cat conftest.$ac_ext >&5
27387ac_cv_type_struct_sockaddr_storage=no
27388fi
27389rm -f conftest.$ac_objext conftest.$ac_ext
27390fi
27391echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
27392echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
27393if test $ac_cv_type_struct_sockaddr_storage = yes; then
27394
27395cat >>confdefs.h <<_ACEOF
27396#define HAVE_STRUCT_SOCKADDR_STORAGE 1
27397_ACEOF
27398
27399
27400fi
27401
27402fi
27403
27404cat >>confdefs.h <<_ACEOF
27405#define $ac_tr_hdr 1
27406_ACEOF
27407
27408fi
27409
27410
27411
27412cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
27413echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27414echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
27415if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27416 echo $ECHO_N "(cached) $ECHO_C" >&6
27417else
27418 cat >conftest.$ac_ext <<_ACEOF
27419#line $LINENO "configure"
27420#include "confdefs.h"
27421#include <sys/types.h>
27422#if STDC_HEADERS
27423#include <stdlib.h>
27424#include <stddef.h>
27425#endif
27426#include <netdb.h>
27427#ifdef F77_DUMMY_MAIN
27428# ifdef __cplusplus
27429 extern "C"
27430# endif
27431 int F77_DUMMY_MAIN() { return 1; }
27432#endif
27433int
27434main ()
27435{
27436struct addrinfo foo;
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 eval "ac_cv_type_$cv=yes"
27454else
27455 echo "$as_me: failed program was:" >&5
27456cat conftest.$ac_ext >&5
27457eval "ac_cv_type_$cv=no"
27458fi
27459rm -f conftest.$ac_objext conftest.$ac_ext
27460fi
27461ac_foo=`eval echo \\$ac_cv_type_$cv`
27462echo "$as_me:$LINENO: result: $ac_foo" >&5
27463echo "${ECHO_T}$ac_foo" >&6
27464if test "$ac_foo" = yes; then
27465 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27466if false; then
27467 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27468echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
27469if test "${ac_cv_type_struct_addrinfo+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27471else
27472 cat >conftest.$ac_ext <<_ACEOF
27473#line $LINENO "configure"
27474#include "confdefs.h"
27475$ac_includes_default
27476#ifdef F77_DUMMY_MAIN
27477# ifdef __cplusplus
27478 extern "C"
27479# endif
27480 int F77_DUMMY_MAIN() { return 1; }
27481#endif
27482int
27483main ()
27484{
27485if ((struct addrinfo *) 0)
27486 return 0;
27487if (sizeof (struct addrinfo))
27488 return 0;
27489 ;
27490 return 0;
27491}
27492_ACEOF
27493rm -f conftest.$ac_objext
27494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27495 (eval $ac_compile) 2>&5
27496 ac_status=$?
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); } &&
27499 { ac_try='test -s conftest.$ac_objext'
27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501 (eval $ac_try) 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505 ac_cv_type_struct_addrinfo=yes
27506else
27507 echo "$as_me: failed program was:" >&5
27508cat conftest.$ac_ext >&5
27509ac_cv_type_struct_addrinfo=no
27510fi
27511rm -f conftest.$ac_objext conftest.$ac_ext
27512fi
27513echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
27514echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
27515if test $ac_cv_type_struct_addrinfo = yes; then
27516
27517cat >>confdefs.h <<_ACEOF
27518#define HAVE_STRUCT_ADDRINFO 1
27519_ACEOF
27520
27521
27522fi
27523
27524fi
27525
27526cat >>confdefs.h <<_ACEOF
27527#define $ac_tr_hdr 1
27528_ACEOF
27529
27530fi
27531
27532
27533
27534cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
27535echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
27536echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
27537if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27539else
27540 cat >conftest.$ac_ext <<_ACEOF
27541#line $LINENO "configure"
27542#include "confdefs.h"
27543#include <sys/types.h>
27544#if STDC_HEADERS
27545#include <stdlib.h>
27546#include <stddef.h>
27547#endif
27548#include <ifaddrs.h>
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{
27558struct ifaddrs foo;
27559 ;
27560 return 0;
27561}
27562_ACEOF
27563rm -f conftest.$ac_objext
27564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27565 (eval $ac_compile) 2>&5
27566 ac_status=$?
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } &&
27569 { ac_try='test -s conftest.$ac_objext'
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }; then
27575 eval "ac_cv_type_$cv=yes"
27576else
27577 echo "$as_me: failed program was:" >&5
27578cat conftest.$ac_ext >&5
27579eval "ac_cv_type_$cv=no"
27580fi
27581rm -f conftest.$ac_objext conftest.$ac_ext
27582fi
27583ac_foo=`eval echo \\$ac_cv_type_$cv`
27584echo "$as_me:$LINENO: result: $ac_foo" >&5
27585echo "${ECHO_T}$ac_foo" >&6
27586if test "$ac_foo" = yes; then
27587 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27588if false; then
27589 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
27590echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
27591if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
27592 echo $ECHO_N "(cached) $ECHO_C" >&6
27593else
27594 cat >conftest.$ac_ext <<_ACEOF
27595#line $LINENO "configure"
27596#include "confdefs.h"
27597$ac_includes_default
27598#ifdef F77_DUMMY_MAIN
27599# ifdef __cplusplus
27600 extern "C"
27601# endif
27602 int F77_DUMMY_MAIN() { return 1; }
27603#endif
27604int
27605main ()
27606{
27607if ((struct ifaddrs *) 0)
27608 return 0;
27609if (sizeof (struct ifaddrs))
27610 return 0;
27611 ;
27612 return 0;
27613}
27614_ACEOF
27615rm -f conftest.$ac_objext
27616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27617 (eval $ac_compile) 2>&5
27618 ac_status=$?
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); } &&
27621 { ac_try='test -s conftest.$ac_objext'
27622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27623 (eval $ac_try) 2>&5
27624 ac_status=$?
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); }; }; then
27627 ac_cv_type_struct_ifaddrs=yes
27628else
27629 echo "$as_me: failed program was:" >&5
27630cat conftest.$ac_ext >&5
27631ac_cv_type_struct_ifaddrs=no
27632fi
27633rm -f conftest.$ac_objext conftest.$ac_ext
27634fi
27635echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
27636echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
27637if test $ac_cv_type_struct_ifaddrs = yes; then
27638
27639cat >>confdefs.h <<_ACEOF
27640#define HAVE_STRUCT_IFADDRS 1
27641_ACEOF
27642
27643
27644fi
27645
27646fi
27647
27648cat >>confdefs.h <<_ACEOF
27649#define $ac_tr_hdr 1
27650_ACEOF
27651
27652fi
27653
27654
27655
27656cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
27657echo "$as_me:$LINENO: checking for struct iovec" >&5
27658echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
27659if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27660 echo $ECHO_N "(cached) $ECHO_C" >&6
27661else
27662 cat >conftest.$ac_ext <<_ACEOF
27663#line $LINENO "configure"
27664#include "confdefs.h"
27665#include <sys/types.h>
27666#if STDC_HEADERS
27667#include <stdlib.h>
27668#include <stddef.h>
27669#endif
27670
27671#include <sys/types.h>
27672#include <sys/uio.h>
27673
27674#ifdef F77_DUMMY_MAIN
27675# ifdef __cplusplus
27676 extern "C"
27677# endif
27678 int F77_DUMMY_MAIN() { return 1; }
27679#endif
27680int
27681main ()
27682{
27683struct iovec foo;
27684 ;
27685 return 0;
27686}
27687_ACEOF
27688rm -f conftest.$ac_objext
27689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27690 (eval $ac_compile) 2>&5
27691 ac_status=$?
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); } &&
27694 { ac_try='test -s conftest.$ac_objext'
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; }; then
27700 eval "ac_cv_type_$cv=yes"
27701else
27702 echo "$as_me: failed program was:" >&5
27703cat conftest.$ac_ext >&5
27704eval "ac_cv_type_$cv=no"
27705fi
27706rm -f conftest.$ac_objext conftest.$ac_ext
27707fi
27708ac_foo=`eval echo \\$ac_cv_type_$cv`
27709echo "$as_me:$LINENO: result: $ac_foo" >&5
27710echo "${ECHO_T}$ac_foo" >&6
27711if test "$ac_foo" = yes; then
27712 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27713if false; then
27714 echo "$as_me:$LINENO: checking for struct iovec" >&5
27715echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
27716if test "${ac_cv_type_struct_iovec+set}" = set; then
27717 echo $ECHO_N "(cached) $ECHO_C" >&6
27718else
27719 cat >conftest.$ac_ext <<_ACEOF
27720#line $LINENO "configure"
27721#include "confdefs.h"
27722$ac_includes_default
27723#ifdef F77_DUMMY_MAIN
27724# ifdef __cplusplus
27725 extern "C"
27726# endif
27727 int F77_DUMMY_MAIN() { return 1; }
27728#endif
27729int
27730main ()
27731{
27732if ((struct iovec *) 0)
27733 return 0;
27734if (sizeof (struct iovec))
27735 return 0;
27736 ;
27737 return 0;
27738}
27739_ACEOF
27740rm -f conftest.$ac_objext
27741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27742 (eval $ac_compile) 2>&5
27743 ac_status=$?
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); } &&
27746 { ac_try='test -s conftest.$ac_objext'
27747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748 (eval $ac_try) 2>&5
27749 ac_status=$?
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; }; then
27752 ac_cv_type_struct_iovec=yes
27753else
27754 echo "$as_me: failed program was:" >&5
27755cat conftest.$ac_ext >&5
27756ac_cv_type_struct_iovec=no
27757fi
27758rm -f conftest.$ac_objext conftest.$ac_ext
27759fi
27760echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
27761echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
27762if test $ac_cv_type_struct_iovec = yes; then
27763
27764cat >>confdefs.h <<_ACEOF
27765#define HAVE_STRUCT_IOVEC 1
27766_ACEOF
27767
27768
27769fi
27770
27771fi
27772
27773cat >>confdefs.h <<_ACEOF
27774#define $ac_tr_hdr 1
27775_ACEOF
27776
27777fi
27778
27779
27780
27781cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
27782echo "$as_me:$LINENO: checking for struct msghdr" >&5
27783echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
27784if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27785 echo $ECHO_N "(cached) $ECHO_C" >&6
27786else
27787 cat >conftest.$ac_ext <<_ACEOF
27788#line $LINENO "configure"
27789#include "confdefs.h"
27790#include <sys/types.h>
27791#if STDC_HEADERS
27792#include <stdlib.h>
27793#include <stddef.h>
27794#endif
27795
27796#include <sys/types.h>
27797#include <sys/socket.h>
27798
27799#ifdef F77_DUMMY_MAIN
27800# ifdef __cplusplus
27801 extern "C"
27802# endif
27803 int F77_DUMMY_MAIN() { return 1; }
27804#endif
27805int
27806main ()
27807{
27808struct msghdr foo;
27809 ;
27810 return 0;
27811}
27812_ACEOF
27813rm -f conftest.$ac_objext
27814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27815 (eval $ac_compile) 2>&5
27816 ac_status=$?
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } &&
27819 { ac_try='test -s conftest.$ac_objext'
27820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27821 (eval $ac_try) 2>&5
27822 ac_status=$?
27823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27824 (exit $ac_status); }; }; then
27825 eval "ac_cv_type_$cv=yes"
27826else
27827 echo "$as_me: failed program was:" >&5
27828cat conftest.$ac_ext >&5
27829eval "ac_cv_type_$cv=no"
27830fi
27831rm -f conftest.$ac_objext conftest.$ac_ext
27832fi
27833ac_foo=`eval echo \\$ac_cv_type_$cv`
27834echo "$as_me:$LINENO: result: $ac_foo" >&5
27835echo "${ECHO_T}$ac_foo" >&6
27836if test "$ac_foo" = yes; then
27837 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27838if false; then
27839 echo "$as_me:$LINENO: checking for struct msghdr" >&5
27840echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
27841if test "${ac_cv_type_struct_msghdr+set}" = set; then
27842 echo $ECHO_N "(cached) $ECHO_C" >&6
27843else
27844 cat >conftest.$ac_ext <<_ACEOF
27845#line $LINENO "configure"
27846#include "confdefs.h"
27847$ac_includes_default
27848#ifdef F77_DUMMY_MAIN
27849# ifdef __cplusplus
27850 extern "C"
27851# endif
27852 int F77_DUMMY_MAIN() { return 1; }
27853#endif
27854int
27855main ()
27856{
27857if ((struct msghdr *) 0)
27858 return 0;
27859if (sizeof (struct msghdr))
27860 return 0;
27861 ;
27862 return 0;
27863}
27864_ACEOF
27865rm -f conftest.$ac_objext
27866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27867 (eval $ac_compile) 2>&5
27868 ac_status=$?
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); } &&
27871 { ac_try='test -s conftest.$ac_objext'
27872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873 (eval $ac_try) 2>&5
27874 ac_status=$?
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; }; then
27877 ac_cv_type_struct_msghdr=yes
27878else
27879 echo "$as_me: failed program was:" >&5
27880cat conftest.$ac_ext >&5
27881ac_cv_type_struct_msghdr=no
27882fi
27883rm -f conftest.$ac_objext conftest.$ac_ext
27884fi
27885echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
27886echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
27887if test $ac_cv_type_struct_msghdr = yes; then
27888
27889cat >>confdefs.h <<_ACEOF
27890#define HAVE_STRUCT_MSGHDR 1
27891_ACEOF
27892
27893
27894fi
27895
27896fi
27897
27898cat >>confdefs.h <<_ACEOF
27899#define $ac_tr_hdr 1
27900_ACEOF
27901
27902fi
27903
27904
27905
27906
27907echo "$as_me:$LINENO: checking for struct winsize" >&5
27908echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
27909if test "${ac_cv_struct_winsize+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27911else
27912
27913ac_cv_struct_winsize=no
27914for i in sys/termios.h sys/ioctl.h; do
27915cat >conftest.$ac_ext <<_ACEOF
27916#line $LINENO "configure"
27917#include "confdefs.h"
27918#include <$i>
27919
27920_ACEOF
27921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27922 egrep "struct[ ]*winsize" >/dev/null 2>&1; then
27923 ac_cv_struct_winsize=yes; break
27924fi
27925rm -f conftest*
27926done
27927
27928fi
27929
27930if test "$ac_cv_struct_winsize" = "yes"; then
27931
27932cat >>confdefs.h <<\_ACEOF
27933#define HAVE_STRUCT_WINSIZE 1
27934_ACEOF
27935
27936fi
27937echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
27938echo "${ECHO_T}$ac_cv_struct_winsize" >&6
27939cat >conftest.$ac_ext <<_ACEOF
27940#line $LINENO "configure"
27941#include "confdefs.h"
27942#include <termios.h>
27943
27944_ACEOF
27945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27946 egrep "ws_xpixel" >/dev/null 2>&1; then
27947
27948cat >>confdefs.h <<\_ACEOF
27949#define HAVE_WS_XPIXEL 1
27950_ACEOF
27951
27952fi
27953rm -f conftest*
27954
27955cat >conftest.$ac_ext <<_ACEOF
27956#line $LINENO "configure"
27957#include "confdefs.h"
27958#include <termios.h>
27959
27960_ACEOF
27961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27962 egrep "ws_ypixel" >/dev/null 2>&1; then
27963
27964cat >>confdefs.h <<\_ACEOF
27965#define HAVE_WS_YPIXEL 1
27966_ACEOF
27967
27968fi
27969rm -f conftest*
27970
27971
27972
27973
27974
27975echo "$as_me:$LINENO: checking for struct spwd" >&5
27976echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
27977if test "${ac_cv_struct_spwd+set}" = set; then
27978 echo $ECHO_N "(cached) $ECHO_C" >&6
27979else
27980
27981cat >conftest.$ac_ext <<_ACEOF
27982#line $LINENO "configure"
27983#include "confdefs.h"
27984#include <pwd.h>
27985#ifdef HAVE_SHADOW_H
27986#include <shadow.h>
27987#endif
27988#ifdef F77_DUMMY_MAIN
27989# ifdef __cplusplus
27990 extern "C"
27991# endif
27992 int F77_DUMMY_MAIN() { return 1; }
27993#endif
27994int
27995main ()
27996{
27997struct spwd foo;
27998 ;
27999 return 0;
28000}
28001_ACEOF
28002rm -f conftest.$ac_objext
28003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28004 (eval $ac_compile) 2>&5
28005 ac_status=$?
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); } &&
28008 { ac_try='test -s conftest.$ac_objext'
28009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28010 (eval $ac_try) 2>&5
28011 ac_status=$?
28012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013 (exit $ac_status); }; }; then
28014 ac_cv_struct_spwd=yes
28015else
28016 echo "$as_me: failed program was:" >&5
28017cat conftest.$ac_ext >&5
28018ac_cv_struct_spwd=no
28019fi
28020rm -f conftest.$ac_objext conftest.$ac_ext
28021
28022fi
28023
28024echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
28025echo "${ECHO_T}$ac_cv_struct_spwd" >&6
28026
28027if test "$ac_cv_struct_spwd" = "yes"; then
28028
28029cat >>confdefs.h <<\_ACEOF
28030#define HAVE_STRUCT_SPWD 1
28031_ACEOF
28032
28033fi
28034
28035
28036
28037LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
28038
28039
28040LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
28041
28042
28043# Check whether --enable-otp or --disable-otp was given.
28044if test "${enable_otp+set}" = set; then
28045 enableval="$enable_otp"
28046
28047fi;
28048if test "$enable_otp" = yes -a "$db_type" = unknown; then
28049 { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
28050echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
28051 { (exit 1); exit 1; }; }
28052fi
28053if test "$enable_otp" != no; then
28054 if test "$db_type" != unknown; then
28055 enable_otp=yes
28056 else
28057 enable_otp=no
28058 fi
28059fi
28060if test "$enable_otp" = yes; then
28061
28062cat >>confdefs.h <<\_ACEOF
28063#define OTP 1
28064_ACEOF
28065
28066 LIB_otp='$(top_builddir)/lib/otp/libotp.la'
28067
28068fi
28069echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
28070echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
28071echo "$as_me:$LINENO: result: $enable_otp" >&5
28072echo "${ECHO_T}$enable_otp" >&6
28073
28074
28075if test "$enable_otp" = yes; then
28076 OTP_TRUE=
28077 OTP_FALSE='#'
28078else
28079 OTP_TRUE='#'
28080 OTP_FALSE=
28081fi
28082
28083
28084
28085# Check whether --enable-osfc2 or --disable-osfc2 was given.
28086if test "${enable_osfc2+set}" = set; then
28087 enableval="$enable_osfc2"
28088
28089fi;
28090LIB_security=
28091if test "$enable_osfc2" = yes; then
28092
28093cat >>confdefs.h <<\_ACEOF
28094#define HAVE_OSFC2 1
28095_ACEOF
28096
28097 LIB_security=-lsecurity
28098fi
28099
28100
28101
28102# Check whether --enable-mmap or --disable-mmap was given.
28103if test "${enable_mmap+set}" = set; then
28104 enableval="$enable_mmap"
28105
28106fi;
28107if test "$enable_mmap" = "no"; then
28108
28109cat >>confdefs.h <<\_ACEOF
28110#define NO_MMAP 1
28111_ACEOF
28112
28113fi
28114
28115# Extract the first word of "nroff", so it can be a program name with args.
28116set dummy nroff; ac_word=$2
28117echo "$as_me:$LINENO: checking for $ac_word" >&5
28118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28119if test "${ac_cv_path_NROFF+set}" = set; then
28120 echo $ECHO_N "(cached) $ECHO_C" >&6
28121else
28122 case $NROFF in
28123 [\\/]* | ?:[\\/]*)
28124 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
28125 ;;
28126 *)
28127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28128for as_dir in $PATH
28129do
28130 IFS=$as_save_IFS
28131 test -z "$as_dir" && as_dir=.
28132 for ac_exec_ext in '' $ac_executable_extensions; do
28133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28134 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
28135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28136 break 2
28137 fi
28138done
28139done
28140
28141 ;;
28142esac
28143fi
28144NROFF=$ac_cv_path_NROFF
28145
28146if test -n "$NROFF"; then
28147 echo "$as_me:$LINENO: result: $NROFF" >&5
28148echo "${ECHO_T}$NROFF" >&6
28149else
28150 echo "$as_me:$LINENO: result: no" >&5
28151echo "${ECHO_T}no" >&6
28152fi
28153
28154# Extract the first word of "groff", so it can be a program name with args.
28155set dummy groff; ac_word=$2
28156echo "$as_me:$LINENO: checking for $ac_word" >&5
28157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28158if test "${ac_cv_path_GROFF+set}" = set; then
28159 echo $ECHO_N "(cached) $ECHO_C" >&6
28160else
28161 case $GROFF in
28162 [\\/]* | ?:[\\/]*)
28163 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
28164 ;;
28165 *)
28166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28167for as_dir in $PATH
28168do
28169 IFS=$as_save_IFS
28170 test -z "$as_dir" && as_dir=.
28171 for ac_exec_ext in '' $ac_executable_extensions; do
28172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28173 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
28174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28175 break 2
28176 fi
28177done
28178done
28179
28180 ;;
28181esac
28182fi
28183GROFF=$ac_cv_path_GROFF
28184
28185if test -n "$GROFF"; then
28186 echo "$as_me:$LINENO: result: $GROFF" >&5
28187echo "${ECHO_T}$GROFF" >&6
28188else
28189 echo "$as_me:$LINENO: result: no" >&5
28190echo "${ECHO_T}no" >&6
28191fi
28192
28193echo "$as_me:$LINENO: checking how to format man pages" >&5
28194echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
28195if test "${ac_cv_sys_man_format+set}" = set; then
28196 echo $ECHO_N "(cached) $ECHO_C" >&6
28197else
28198 cat > conftest.1 << END
28199.Dd January 1, 1970
28200.Dt CONFTEST 1
28201.Sh NAME
28202.Nm conftest
28203.Nd
28204foobar
28205END
28206
28207if test "$NROFF" ; then
28208 for i in "-mdoc" "-mandoc"; do
28209 if "$NROFF" $i conftest.1 2> /dev/null | \
28210 grep Jan > /dev/null 2>&1 ; then
28211 ac_cv_sys_man_format="$NROFF $i"
28212 break
28213 fi
28214 done
28215fi
28216if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
28217 for i in "-mdoc" "-mandoc"; do
28218 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
28219 grep Jan > /dev/null 2>&1 ; then
28220 ac_cv_sys_man_format="$GROFF -Tascii $i"
28221 break
28222 fi
28223 done
28224fi
28225if test "$ac_cv_sys_man_format"; then
28226 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
28227fi
28228
28229fi
28230echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
28231echo "${ECHO_T}$ac_cv_sys_man_format" >&6
28232if test "$ac_cv_sys_man_format"; then
28233 CATMAN="$ac_cv_sys_man_format"
28234
28235fi
28236
28237
28238if test "$CATMAN"; then
28239 CATMAN_TRUE=
28240 CATMAN_FALSE='#'
28241else
28242 CATMAN_TRUE='#'
28243 CATMAN_FALSE=
28244fi
28245
28246echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
28247echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
28248if test "${ac_cv_sys_catman_ext+set}" = set; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28250else
28251 if grep _suffix /etc/man.conf > /dev/null 2>&1; then
28252 ac_cv_sys_catman_ext=0
28253else
28254 ac_cv_sys_catman_ext=number
28255fi
28256
28257fi
28258echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
28259echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
28260if test "$ac_cv_sys_catman_ext" = number; then
28261 CATMANEXT='$$section'
28262else
28263 CATMANEXT=0
28264fi
28265
28266
28267
28268
28269
28270# Check whether --with-readline or --without-readline was given.
28271if test "${with_readline+set}" = set; then
28272 withval="$with_readline"
28273
28274fi;
28275
28276# Check whether --with-readline-lib or --without-readline-lib was given.
28277if test "${with_readline_lib+set}" = set; then
28278 withval="$with_readline_lib"
28279 if test "$withval" = "yes" -o "$withval" = "no"; then
28280 { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
28281echo "$as_me: error: No argument for --with-readline-lib" >&2;}
28282 { (exit 1); exit 1; }; }
28283elif test "X$with_readline" = "X"; then
28284 with_readline=yes
28285fi
28286fi;
28287
28288# Check whether --with-readline-include or --without-readline-include was given.
28289if test "${with_readline_include+set}" = set; then
28290 withval="$with_readline_include"
28291 if test "$withval" = "yes" -o "$withval" = "no"; then
28292 { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
28293echo "$as_me: error: No argument for --with-readline-include" >&2;}
28294 { (exit 1); exit 1; }; }
28295elif test "X$with_readline" = "X"; then
28296 with_readline=yes
28297fi
28298fi;
28299
28300# Check whether --with-readline-config or --without-readline-config was given.
28301if test "${with_readline_config+set}" = set; then
28302 withval="$with_readline_config"
28303
28304fi;
28305
28306
28307
28308echo "$as_me:$LINENO: checking for readline" >&5
28309echo $ECHO_N "checking for readline... $ECHO_C" >&6
28310
28311case "$with_readline" in
28312yes|"") d='' ;;
28313no) d= ;;
28314*) d="$with_readline" ;;
28315esac
28316
28317header_dirs=
28318lib_dirs=
28319for i in $d; do
28320 if test "$with_readline_include" = ""; then
28321 if test -d "$i/include/readline"; then
28322 header_dirs="$header_dirs $i/include/readline"
28323 fi
28324 if test -d "$i/include"; then
28325 header_dirs="$header_dirs $i/include"
28326 fi
28327 fi
28328 if test "$with_readline_lib" = ""; then
28329 if test -d "$i/lib$abilibdirext"; then
28330 lib_dirs="$lib_dirs $i/lib$abilibdirext"
28331 fi
28332 fi
28333done
28334
28335if test "$with_readline_include"; then
28336 header_dirs="$with_readline_include $header_dirs"
28337fi
28338if test "$with_readline_lib"; then
28339 lib_dirs="$with_readline_lib $lib_dirs"
28340fi
28341
28342if test "$with_readline_config" = ""; then
28343 with_readline_config=''
28344fi
28345
28346readline_cflags=
28347readline_libs=
28348
28349case "$with_readline_config" in
28350yes|no|"")
28351 ;;
28352*)
28353 readline_cflags="`$with_readline_config --cflags 2>&1`"
28354 readline_libs="`$with_readline_config --libs 2>&1`"
28355 ;;
28356esac
28357
28358found=no
28359if test "$with_readline" != no; then
28360 save_CFLAGS="$CFLAGS"
28361 save_LIBS="$LIBS"
28362 if test "$readline_cflags" -a "$readline_libs"; then
28363 CFLAGS="$readline_cflags $save_CFLAGS"
28364 LIBS="$readline_libs $save_LIBS"
28365 cat >conftest.$ac_ext <<_ACEOF
28366#line $LINENO "configure"
28367#include "confdefs.h"
28368#include <stdio.h>
28369 #include <readline.h>
28370#ifdef F77_DUMMY_MAIN
28371# ifdef __cplusplus
28372 extern "C"
28373# endif
28374 int F77_DUMMY_MAIN() { return 1; }
28375#endif
28376int
28377main ()
28378{
28379
28380 ;
28381 return 0;
28382}
28383_ACEOF
28384rm -f conftest.$ac_objext conftest$ac_exeext
28385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28386 (eval $ac_link) 2>&5
28387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } &&
28390 { ac_try='test -s conftest$ac_exeext'
28391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); }; }; then
28396
28397 INCLUDE_readline="$readline_cflags"
28398 LIB_readline="$readline_libs"
28399 echo "$as_me:$LINENO: result: from $with_readline_config" >&5
28400echo "${ECHO_T}from $with_readline_config" >&6
28401 found=yes
28402else
28403 echo "$as_me: failed program was:" >&5
28404cat conftest.$ac_ext >&5
28405fi
28406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28407 fi
28408 if test "$found" = no; then
28409 ires= lres=
28410 for i in $header_dirs; do
28411 CFLAGS="-I$i $save_CFLAGS"
28412 cat >conftest.$ac_ext <<_ACEOF
28413#line $LINENO "configure"
28414#include "confdefs.h"
28415#include <stdio.h>
28416 #include <readline.h>
28417#ifdef F77_DUMMY_MAIN
28418# ifdef __cplusplus
28419 extern "C"
28420# endif
28421 int F77_DUMMY_MAIN() { return 1; }
28422#endif
28423int
28424main ()
28425{
28426
28427 ;
28428 return 0;
28429}
28430_ACEOF
28431rm -f conftest.$ac_objext
28432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28433 (eval $ac_compile) 2>&5
28434 ac_status=$?
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } &&
28437 { ac_try='test -s conftest.$ac_objext'
28438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28439 (eval $ac_try) 2>&5
28440 ac_status=$?
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); }; }; then
28443 ires=$i;break
28444else
28445 echo "$as_me: failed program was:" >&5
28446cat conftest.$ac_ext >&5
28447fi
28448rm -f conftest.$ac_objext conftest.$ac_ext
28449 done
28450 for i in $lib_dirs; do
28451 LIBS="-L$i -lreadline $save_LIBS"
28452 cat >conftest.$ac_ext <<_ACEOF
28453#line $LINENO "configure"
28454#include "confdefs.h"
28455#include <stdio.h>
28456 #include <readline.h>
28457#ifdef F77_DUMMY_MAIN
28458# ifdef __cplusplus
28459 extern "C"
28460# endif
28461 int F77_DUMMY_MAIN() { return 1; }
28462#endif
28463int
28464main ()
28465{
28466
28467 ;
28468 return 0;
28469}
28470_ACEOF
28471rm -f conftest.$ac_objext conftest$ac_exeext
28472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28473 (eval $ac_link) 2>&5
28474 ac_status=$?
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); } &&
28477 { ac_try='test -s conftest$ac_exeext'
28478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479 (eval $ac_try) 2>&5
28480 ac_status=$?
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); }; }; then
28483 lres=$i;break
28484else
28485 echo "$as_me: failed program was:" >&5
28486cat conftest.$ac_ext >&5
28487fi
28488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28489 done
28490 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
28491 INCLUDE_readline="-I$ires"
28492 LIB_readline="-L$lres -lreadline "
28493 found=yes
28494 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
28495echo "${ECHO_T}headers $ires, libraries $lres" >&6
28496 fi
28497 fi
28498 CFLAGS="$save_CFLAGS"
28499 LIBS="$save_LIBS"
28500fi
28501
28502if test "$found" = yes; then
28503
28504cat >>confdefs.h <<_ACEOF
28505#define READLINE 1
28506_ACEOF
28507
28508 with_readline=yes
28509else
28510 with_readline=no
28511 INCLUDE_readline=
28512 LIB_readline=
28513 echo "$as_me:$LINENO: result: no" >&5
28514echo "${ECHO_T}no" >&6
28515fi
28516
28517
28518
28519
28520
28521
28522
28523# Check whether --with-hesiod or --without-hesiod was given.
28524if test "${with_hesiod+set}" = set; then
28525 withval="$with_hesiod"
28526
28527fi;
28528
28529# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
28530if test "${with_hesiod_lib+set}" = set; then
28531 withval="$with_hesiod_lib"
28532 if test "$withval" = "yes" -o "$withval" = "no"; then
28533 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
28534echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
28535 { (exit 1); exit 1; }; }
28536elif test "X$with_hesiod" = "X"; then
28537 with_hesiod=yes
28538fi
28539fi;
28540
28541# Check whether --with-hesiod-include or --without-hesiod-include was given.
28542if test "${with_hesiod_include+set}" = set; then
28543 withval="$with_hesiod_include"
28544 if test "$withval" = "yes" -o "$withval" = "no"; then
28545 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
28546echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
28547 { (exit 1); exit 1; }; }
28548elif test "X$with_hesiod" = "X"; then
28549 with_hesiod=yes
28550fi
28551fi;
28552
28553# Check whether --with-hesiod-config or --without-hesiod-config was given.
28554if test "${with_hesiod_config+set}" = set; then
28555 withval="$with_hesiod_config"
28556
28557fi;
28558
28559
28560
28561echo "$as_me:$LINENO: checking for hesiod" >&5
28562echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
28563
28564case "$with_hesiod" in
28565yes|"") d='' ;;
28566no) d= ;;
28567*) d="$with_hesiod" ;;
28568esac
28569
28570header_dirs=
28571lib_dirs=
28572for i in $d; do
28573 if test "$with_hesiod_include" = ""; then
28574 if test -d "$i/include/hesiod"; then
28575 header_dirs="$header_dirs $i/include/hesiod"
28576 fi
28577 if test -d "$i/include"; then
28578 header_dirs="$header_dirs $i/include"
28579 fi
28580 fi
28581 if test "$with_hesiod_lib" = ""; then
28582 if test -d "$i/lib$abilibdirext"; then
28583 lib_dirs="$lib_dirs $i/lib$abilibdirext"
28584 fi
28585 fi
28586done
28587
28588if test "$with_hesiod_include"; then
28589 header_dirs="$with_hesiod_include $header_dirs"
28590fi
28591if test "$with_hesiod_lib"; then
28592 lib_dirs="$with_hesiod_lib $lib_dirs"
28593fi
28594
28595if test "$with_hesiod_config" = ""; then
28596 with_hesiod_config=''
28597fi
28598
28599hesiod_cflags=
28600hesiod_libs=
28601
28602case "$with_hesiod_config" in
28603yes|no|"")
28604 ;;
28605*)
28606 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
28607 hesiod_libs="`$with_hesiod_config --libs 2>&1`"
28608 ;;
28609esac
28610
28611found=no
28612if test "$with_hesiod" != no; then
28613 save_CFLAGS="$CFLAGS"
28614 save_LIBS="$LIBS"
28615 if test "$hesiod_cflags" -a "$hesiod_libs"; then
28616 CFLAGS="$hesiod_cflags $save_CFLAGS"
28617 LIBS="$hesiod_libs $save_LIBS"
28618 cat >conftest.$ac_ext <<_ACEOF
28619#line $LINENO "configure"
28620#include "confdefs.h"
28621#include <hesiod.h>
28622#ifdef F77_DUMMY_MAIN
28623# ifdef __cplusplus
28624 extern "C"
28625# endif
28626 int F77_DUMMY_MAIN() { return 1; }
28627#endif
28628int
28629main ()
28630{
28631
28632 ;
28633 return 0;
28634}
28635_ACEOF
28636rm -f conftest.$ac_objext conftest$ac_exeext
28637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28638 (eval $ac_link) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); } &&
28642 { ac_try='test -s conftest$ac_exeext'
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; }; then
28648
28649 INCLUDE_hesiod="$hesiod_cflags"
28650 LIB_hesiod="$hesiod_libs"
28651 echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
28652echo "${ECHO_T}from $with_hesiod_config" >&6
28653 found=yes
28654else
28655 echo "$as_me: failed program was:" >&5
28656cat conftest.$ac_ext >&5
28657fi
28658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28659 fi
28660 if test "$found" = no; then
28661 ires= lres=
28662 for i in $header_dirs; do
28663 CFLAGS="-I$i $save_CFLAGS"
28664 cat >conftest.$ac_ext <<_ACEOF
28665#line $LINENO "configure"
28666#include "confdefs.h"
28667#include <hesiod.h>
28668#ifdef F77_DUMMY_MAIN
28669# ifdef __cplusplus
28670 extern "C"
28671# endif
28672 int F77_DUMMY_MAIN() { return 1; }
28673#endif
28674int
28675main ()
28676{
28677
28678 ;
28679 return 0;
28680}
28681_ACEOF
28682rm -f conftest.$ac_objext
28683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28684 (eval $ac_compile) 2>&5
28685 ac_status=$?
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); } &&
28688 { ac_try='test -s conftest.$ac_objext'
28689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690 (eval $ac_try) 2>&5
28691 ac_status=$?
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; }; then
28694 ires=$i;break
28695else
28696 echo "$as_me: failed program was:" >&5
28697cat conftest.$ac_ext >&5
28698fi
28699rm -f conftest.$ac_objext conftest.$ac_ext
28700 done
28701 for i in $lib_dirs; do
28702 LIBS="-L$i -lhesiod $save_LIBS"
28703 cat >conftest.$ac_ext <<_ACEOF
28704#line $LINENO "configure"
28705#include "confdefs.h"
28706#include <hesiod.h>
28707#ifdef F77_DUMMY_MAIN
28708# ifdef __cplusplus
28709 extern "C"
28710# endif
28711 int F77_DUMMY_MAIN() { return 1; }
28712#endif
28713int
28714main ()
28715{
28716
28717 ;
28718 return 0;
28719}
28720_ACEOF
28721rm -f conftest.$ac_objext conftest$ac_exeext
28722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28723 (eval $ac_link) 2>&5
28724 ac_status=$?
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); } &&
28727 { ac_try='test -s conftest$ac_exeext'
28728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729 (eval $ac_try) 2>&5
28730 ac_status=$?
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28733 lres=$i;break
28734else
28735 echo "$as_me: failed program was:" >&5
28736cat conftest.$ac_ext >&5
28737fi
28738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28739 done
28740 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
28741 INCLUDE_hesiod="-I$ires"
28742 LIB_hesiod="-L$lres -lhesiod "
28743 found=yes
28744 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
28745echo "${ECHO_T}headers $ires, libraries $lres" >&6
28746 fi
28747 fi
28748 CFLAGS="$save_CFLAGS"
28749 LIBS="$save_LIBS"
28750fi
28751
28752if test "$found" = yes; then
28753
28754cat >>confdefs.h <<_ACEOF
28755#define HESIOD 1
28756_ACEOF
28757
28758 with_hesiod=yes
28759else
28760 with_hesiod=no
28761 INCLUDE_hesiod=
28762 LIB_hesiod=
28763 echo "$as_me:$LINENO: result: no" >&5
28764echo "${ECHO_T}no" >&6
28765fi
28766
28767
28768
28769
28770
28771
28772# Check whether --enable-bigendian or --disable-bigendian was given.
28773if test "${enable_bigendian+set}" = set; then
28774 enableval="$enable_bigendian"
28775 krb_cv_c_bigendian=yes
28776fi;
28777# Check whether --enable-littleendian or --disable-littleendian was given.
28778if test "${enable_littleendian+set}" = set; then
28779 enableval="$enable_littleendian"
28780 krb_cv_c_bigendian=no
28781fi;
28782echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
28783echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
28784if test "${krb_cv_c_bigendian_compile+set}" = set; then
28785 echo $ECHO_N "(cached) $ECHO_C" >&6
28786else
28787 cat >conftest.$ac_ext <<_ACEOF
28788#line $LINENO "configure"
28789#include "confdefs.h"
28790
28791#include <sys/types.h>
28792#include <sys/param.h>
28793#ifdef F77_DUMMY_MAIN
28794# ifdef __cplusplus
28795 extern "C"
28796# endif
28797 int F77_DUMMY_MAIN() { return 1; }
28798#endif
28799int
28800main ()
28801{
28802
28803#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
28804 bogus endian macros
28805#endif
28806 ;
28807 return 0;
28808}
28809_ACEOF
28810rm -f conftest.$ac_objext
28811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28812 (eval $ac_compile) 2>&5
28813 ac_status=$?
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } &&
28816 { ac_try='test -s conftest.$ac_objext'
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 krb_cv_c_bigendian_compile=yes
28823else
28824 echo "$as_me: failed program was:" >&5
28825cat conftest.$ac_ext >&5
28826krb_cv_c_bigendian_compile=no
28827fi
28828rm -f conftest.$ac_objext conftest.$ac_ext
28829fi
28830echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
28831echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
28832echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28833echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
28834if test "${krb_cv_c_bigendian+set}" = set; then
28835 echo $ECHO_N "(cached) $ECHO_C" >&6
28836else
28837
28838 if test "$krb_cv_c_bigendian_compile" = "yes"; then
28839 cat >conftest.$ac_ext <<_ACEOF
28840#line $LINENO "configure"
28841#include "confdefs.h"
28842
28843#include <sys/types.h>
28844#include <sys/param.h>
28845#ifdef F77_DUMMY_MAIN
28846# ifdef __cplusplus
28847 extern "C"
28848# endif
28849 int F77_DUMMY_MAIN() { return 1; }
28850#endif
28851int
28852main ()
28853{
28854
28855#if BYTE_ORDER != BIG_ENDIAN
28856 not big endian
28857#endif
28858 ;
28859 return 0;
28860}
28861_ACEOF
28862rm -f conftest.$ac_objext
28863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28864 (eval $ac_compile) 2>&5
28865 ac_status=$?
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } &&
28868 { ac_try='test -s conftest.$ac_objext'
28869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870 (eval $ac_try) 2>&5
28871 ac_status=$?
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; }; then
28874 krb_cv_c_bigendian=yes
28875else
28876 echo "$as_me: failed program was:" >&5
28877cat conftest.$ac_ext >&5
28878krb_cv_c_bigendian=no
28879fi
28880rm -f conftest.$ac_objext conftest.$ac_ext
28881 else
28882 if test "$cross_compiling" = yes; then
28883 { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
28884echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
28885 { (exit 1); exit 1; }; }
28886else
28887 cat >conftest.$ac_ext <<_ACEOF
28888#line $LINENO "configure"
28889#include "confdefs.h"
28890main () {
28891 /* Are we little or big endian? From Harbison&Steele. */
28892 union
28893 {
28894 long l;
28895 char c[sizeof (long)];
28896 } u;
28897 u.l = 1;
28898 exit (u.c[sizeof (long) - 1] == 1);
28899 }
28900_ACEOF
28901rm -f conftest$ac_exeext
28902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28903 (eval $ac_link) 2>&5
28904 ac_status=$?
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908 (eval $ac_try) 2>&5
28909 ac_status=$?
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; }; then
28912 krb_cv_c_bigendian=no
28913else
28914 echo "$as_me: program exited with status $ac_status" >&5
28915echo "$as_me: failed program was:" >&5
28916cat conftest.$ac_ext >&5
28917( exit $ac_status )
28918krb_cv_c_bigendian=yes
28919fi
28920rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28921fi
28922 fi
28923
28924fi
28925echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
28926echo "${ECHO_T}$krb_cv_c_bigendian" >&6
28927if test "$krb_cv_c_bigendian" = "yes"; then
28928
28929cat >>confdefs.h <<\_ACEOF
28930#define WORDS_BIGENDIAN 1
28931_ACEOF
28932fi
28933if test "$krb_cv_c_bigendian_compile" = "yes"; then
28934
28935cat >>confdefs.h <<\_ACEOF
28936#define ENDIANESS_IN_SYS_PARAM_H 1
28937_ACEOF
28938fi
28939
28940
28941
28942echo "$as_me:$LINENO: checking for inline" >&5
28943echo $ECHO_N "checking for inline... $ECHO_C" >&6
28944if test "${ac_cv_c_inline+set}" = set; then
28945 echo $ECHO_N "(cached) $ECHO_C" >&6
28946else
28947 ac_cv_c_inline=no
28948for ac_kw in inline __inline__ __inline; do
28949 cat >conftest.$ac_ext <<_ACEOF
28950#line $LINENO "configure"
28951#include "confdefs.h"
28952#ifndef __cplusplus
28953static $ac_kw int static_foo () {return 0; }
28954$ac_kw int foo () {return 0; }
28955#endif
28956
28957_ACEOF
28958rm -f conftest.$ac_objext
28959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28960 (eval $ac_compile) 2>&5
28961 ac_status=$?
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); } &&
28964 { ac_try='test -s conftest.$ac_objext'
28965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28966 (eval $ac_try) 2>&5
28967 ac_status=$?
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); }; }; then
28970 ac_cv_c_inline=$ac_kw; break
28971else
28972 echo "$as_me: failed program was:" >&5
28973cat conftest.$ac_ext >&5
28974fi
28975rm -f conftest.$ac_objext conftest.$ac_ext
28976done
28977
28978fi
28979echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
28980echo "${ECHO_T}$ac_cv_c_inline" >&6
28981case $ac_cv_c_inline in
28982 inline | yes) ;;
28983 no)
28984cat >>confdefs.h <<\_ACEOF
28985#define inline
28986_ACEOF
28987 ;;
28988 *) cat >>confdefs.h <<_ACEOF
28989#define inline $ac_cv_c_inline
28990_ACEOF
28991 ;;
28992esac
28993
28994
28995
28996
28997
28998
28999echo "$as_me:$LINENO: checking for dlopen" >&5
29000echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
29001if test "${ac_cv_funclib_dlopen+set}" = set; then
29002 echo $ECHO_N "(cached) $ECHO_C" >&6
29003else
29004
29005if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
29006 ac_save_LIBS="$LIBS"
29007 for ac_lib in "" dl; do
29008 case "$ac_lib" in
29009 "") ;;
29010 yes) ac_lib="" ;;
29011 no) continue ;;
29012 -l*) ;;
29013 *) ac_lib="-l$ac_lib" ;;
29014 esac
29015 LIBS=" $ac_lib $ac_save_LIBS"
29016 cat >conftest.$ac_ext <<_ACEOF
29017#line $LINENO "configure"
29018#include "confdefs.h"
29019
29020#ifdef F77_DUMMY_MAIN
29021# ifdef __cplusplus
29022 extern "C"
29023# endif
29024 int F77_DUMMY_MAIN() { return 1; }
29025#endif
29026int
29027main ()
29028{
29029dlopen()
29030 ;
29031 return 0;
29032}
29033_ACEOF
29034rm -f conftest.$ac_objext conftest$ac_exeext
29035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29036 (eval $ac_link) 2>&5
29037 ac_status=$?
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); } &&
29040 { ac_try='test -s conftest$ac_exeext'
29041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; }; then
29046 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
29047else
29048 echo "$as_me: failed program was:" >&5
29049cat conftest.$ac_ext >&5
29050fi
29051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29052 done
29053 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
29054 LIBS="$ac_save_LIBS"
29055fi
29056
29057fi
29058
29059
29060eval "ac_res=\$ac_cv_funclib_dlopen"
29061
29062if false; then
29063
29064for ac_func in dlopen
29065do
29066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29067echo "$as_me:$LINENO: checking for $ac_func" >&5
29068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29069if eval "test \"\${$as_ac_var+set}\" = set"; then
29070 echo $ECHO_N "(cached) $ECHO_C" >&6
29071else
29072 cat >conftest.$ac_ext <<_ACEOF
29073#line $LINENO "configure"
29074#include "confdefs.h"
29075/* System header to define __stub macros and hopefully few prototypes,
29076 which can conflict with char $ac_func (); below. */
29077#include <assert.h>
29078/* Override any gcc2 internal prototype to avoid an error. */
29079#ifdef __cplusplus
29080extern "C"
29081#endif
29082/* We use char because int might match the return type of a gcc2
29083 builtin and then its argument prototype would still apply. */
29084char $ac_func ();
29085char (*f) ();
29086
29087#ifdef F77_DUMMY_MAIN
29088# ifdef __cplusplus
29089 extern "C"
29090# endif
29091 int F77_DUMMY_MAIN() { return 1; }
29092#endif
29093int
29094main ()
29095{
29096/* The GNU C library defines this for functions which it implements
29097 to always fail with ENOSYS. Some functions are actually named
29098 something starting with __ and the normal name is an alias. */
29099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29100choke me
29101#else
29102f = $ac_func;
29103#endif
29104
29105 ;
29106 return 0;
29107}
29108_ACEOF
29109rm -f conftest.$ac_objext conftest$ac_exeext
29110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29111 (eval $ac_link) 2>&5
29112 ac_status=$?
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); } &&
29115 { ac_try='test -s conftest$ac_exeext'
29116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29117 (eval $ac_try) 2>&5
29118 ac_status=$?
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); }; }; then
29121 eval "$as_ac_var=yes"
29122else
29123 echo "$as_me: failed program was:" >&5
29124cat conftest.$ac_ext >&5
29125eval "$as_ac_var=no"
29126fi
29127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29128fi
29129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29130echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29131if test `eval echo '${'$as_ac_var'}'` = yes; then
29132 cat >>confdefs.h <<_ACEOF
29133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29134_ACEOF
29135
29136fi
29137done
29138
29139fi
29140# dlopen
29141eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29142eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29143eval "LIB_dlopen=$ac_res"
29144
29145case "$ac_res" in
29146 yes)
29147 eval "ac_cv_func_dlopen=yes"
29148 eval "LIB_dlopen="
29149 cat >>confdefs.h <<_ACEOF
29150#define $ac_tr_func 1
29151_ACEOF
29152
29153 echo "$as_me:$LINENO: result: yes" >&5
29154echo "${ECHO_T}yes" >&6
29155 ;;
29156 no)
29157 eval "ac_cv_func_dlopen=no"
29158 eval "LIB_dlopen="
29159 echo "$as_me:$LINENO: result: no" >&5
29160echo "${ECHO_T}no" >&6
29161 ;;
29162 *)
29163 eval "ac_cv_func_dlopen=yes"
29164 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29165 cat >>confdefs.h <<_ACEOF
29166#define $ac_tr_func 1
29167_ACEOF
29168
29169 cat >>confdefs.h <<_ACEOF
29170#define $ac_tr_lib 1
29171_ACEOF
29172
29173 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29174echo "${ECHO_T}yes, in $ac_res" >&6
29175 ;;
29176esac
29177
29178
29179
29180
29181if test "$ac_cv_funclib_dlopen" != no; then
29182 HAVE_DLOPEN_TRUE=
29183 HAVE_DLOPEN_FALSE='#'
29184else
29185 HAVE_DLOPEN_TRUE='#'
29186 HAVE_DLOPEN_FALSE=
29187fi
29188
29189
29190
29191
29192aix=no
29193case "$host" in
29194*-*-aix3*)
29195 aix=3
29196 ;;
29197*-*-aix4*|*-*-aix5*)
29198 aix=4
29199 ;;
29200esac
29201
29202
29203
29204if test "$aix" != no; then
29205 AIX_TRUE=
29206 AIX_FALSE='#'
29207else
29208 AIX_TRUE='#'
29209 AIX_FALSE=
29210fi
29211
29212
29213if test "$aix" = 4; then
29214 AIX4_TRUE=
29215 AIX4_FALSE='#'
29216else
29217 AIX4_TRUE='#'
29218 AIX4_FALSE=
29219fi
29220
29221
29222
29223# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
29224if test "${enable_dynamic_afs+set}" = set; then
29225 enableval="$enable_dynamic_afs"
29226
29227fi;
29228
29229if test "$aix" != no; then
29230 if test "$enable_dynamic_afs" != no; then
29231
29232 if test "$ac_cv_func_dlopen" = no; then
29233
29234
29235
29236echo "$as_me:$LINENO: checking for loadquery" >&5
29237echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
29238if test "${ac_cv_funclib_loadquery+set}" = set; then
29239 echo $ECHO_N "(cached) $ECHO_C" >&6
29240else
29241
29242if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
29243 ac_save_LIBS="$LIBS"
29244 for ac_lib in "" ld; do
29245 case "$ac_lib" in
29246 "") ;;
29247 yes) ac_lib="" ;;
29248 no) continue ;;
29249 -l*) ;;
29250 *) ac_lib="-l$ac_lib" ;;
29251 esac
29252 LIBS=" $ac_lib $ac_save_LIBS"
29253 cat >conftest.$ac_ext <<_ACEOF
29254#line $LINENO "configure"
29255#include "confdefs.h"
29256
29257#ifdef F77_DUMMY_MAIN
29258# ifdef __cplusplus
29259 extern "C"
29260# endif
29261 int F77_DUMMY_MAIN() { return 1; }
29262#endif
29263int
29264main ()
29265{
29266loadquery()
29267 ;
29268 return 0;
29269}
29270_ACEOF
29271rm -f conftest.$ac_objext conftest$ac_exeext
29272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29273 (eval $ac_link) 2>&5
29274 ac_status=$?
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } &&
29277 { ac_try='test -s conftest$ac_exeext'
29278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279 (eval $ac_try) 2>&5
29280 ac_status=$?
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; }; then
29283 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
29284else
29285 echo "$as_me: failed program was:" >&5
29286cat conftest.$ac_ext >&5
29287fi
29288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29289 done
29290 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
29291 LIBS="$ac_save_LIBS"
29292fi
29293
29294fi
29295
29296
29297eval "ac_res=\$ac_cv_funclib_loadquery"
29298
29299if false; then
29300
29301for ac_func in loadquery
29302do
29303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29304echo "$as_me:$LINENO: checking for $ac_func" >&5
29305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29306if eval "test \"\${$as_ac_var+set}\" = set"; then
29307 echo $ECHO_N "(cached) $ECHO_C" >&6
29308else
29309 cat >conftest.$ac_ext <<_ACEOF
29310#line $LINENO "configure"
29311#include "confdefs.h"
29312/* System header to define __stub macros and hopefully few prototypes,
29313 which can conflict with char $ac_func (); below. */
29314#include <assert.h>
29315/* Override any gcc2 internal prototype to avoid an error. */
29316#ifdef __cplusplus
29317extern "C"
29318#endif
29319/* We use char because int might match the return type of a gcc2
29320 builtin and then its argument prototype would still apply. */
29321char $ac_func ();
29322char (*f) ();
29323
29324#ifdef F77_DUMMY_MAIN
29325# ifdef __cplusplus
29326 extern "C"
29327# endif
29328 int F77_DUMMY_MAIN() { return 1; }
29329#endif
29330int
29331main ()
29332{
29333/* The GNU C library defines this for functions which it implements
29334 to always fail with ENOSYS. Some functions are actually named
29335 something starting with __ and the normal name is an alias. */
29336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29337choke me
29338#else
29339f = $ac_func;
29340#endif
29341
29342 ;
29343 return 0;
29344}
29345_ACEOF
29346rm -f conftest.$ac_objext conftest$ac_exeext
29347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29348 (eval $ac_link) 2>&5
29349 ac_status=$?
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); } &&
29352 { ac_try='test -s conftest$ac_exeext'
29353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29354 (eval $ac_try) 2>&5
29355 ac_status=$?
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); }; }; then
29358 eval "$as_ac_var=yes"
29359else
29360 echo "$as_me: failed program was:" >&5
29361cat conftest.$ac_ext >&5
29362eval "$as_ac_var=no"
29363fi
29364rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29365fi
29366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29368if test `eval echo '${'$as_ac_var'}'` = yes; then
29369 cat >>confdefs.h <<_ACEOF
29370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29371_ACEOF
29372
29373fi
29374done
29375
29376fi
29377# loadquery
29378eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29379eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29380eval "LIB_loadquery=$ac_res"
29381
29382case "$ac_res" in
29383 yes)
29384 eval "ac_cv_func_loadquery=yes"
29385 eval "LIB_loadquery="
29386 cat >>confdefs.h <<_ACEOF
29387#define $ac_tr_func 1
29388_ACEOF
29389
29390 echo "$as_me:$LINENO: result: yes" >&5
29391echo "${ECHO_T}yes" >&6
29392 ;;
29393 no)
29394 eval "ac_cv_func_loadquery=no"
29395 eval "LIB_loadquery="
29396 echo "$as_me:$LINENO: result: no" >&5
29397echo "${ECHO_T}no" >&6
29398 ;;
29399 *)
29400 eval "ac_cv_func_loadquery=yes"
29401 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29402 cat >>confdefs.h <<_ACEOF
29403#define $ac_tr_func 1
29404_ACEOF
29405
29406 cat >>confdefs.h <<_ACEOF
29407#define $ac_tr_lib 1
29408_ACEOF
29409
29410 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29411echo "${ECHO_T}yes, in $ac_res" >&6
29412 ;;
29413esac
29414
29415
29416 fi
29417 if test "$ac_cv_func_dlopen" != no; then
29418 AIX_EXTRA_KAFS='$(LIB_dlopen)'
29419 elif test "$ac_cv_func_loadquery" != no; then
29420 AIX_EXTRA_KAFS='$(LIB_loadquery)'
29421 else
29422 { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
29423echo "$as_me: not using dynloaded AFS library" >&6;}
29424 AIX_EXTRA_KAFS=
29425 enable_dynamic_afs=no
29426 fi
29427 else
29428 AIX_EXTRA_KAFS=
29429 fi
29430fi
29431
29432
29433
29434if test "$enable_dynamic_afs" != no; then
29435 AIX_DYNAMIC_AFS_TRUE=
29436 AIX_DYNAMIC_AFS_FALSE='#'
29437else
29438 AIX_DYNAMIC_AFS_TRUE='#'
29439 AIX_DYNAMIC_AFS_FALSE=
29440fi
29441
29442
29443
29444
29445
29446
29447irix=no
29448case "$host" in
29449*-*-irix4*)
29450
29451cat >>confdefs.h <<\_ACEOF
29452#define IRIX4 1
29453_ACEOF
29454
29455 irix=yes
29456 ;;
29457*-*-irix*)
29458 irix=yes
29459 ;;
29460esac
29461
29462
29463if test "$irix" != no; then
29464 IRIX_TRUE=
29465 IRIX_FALSE='#'
29466else
29467 IRIX_TRUE='#'
29468 IRIX_FALSE=
29469fi
29470
29471
29472
29473
29474
29475sunos=no
29476case "$host" in
29477*-*-sunos4*)
29478 sunos=40
29479 ;;
29480*-*-solaris2.7)
29481 sunos=57
29482 ;;
29483*-*-solaris2.[89])
29484 sunos=58
29485 ;;
29486*-*-solaris2*)
29487 sunos=50
29488 ;;
29489esac
29490if test "$sunos" != no; then
29491
29492cat >>confdefs.h <<_ACEOF
29493#define SunOS $sunos
29494_ACEOF
29495
29496fi
29497
29498
29499echo "$as_me:$LINENO: checking for X" >&5
29500echo $ECHO_N "checking for X... $ECHO_C" >&6
29501
29502
29503# Check whether --with-x or --without-x was given.
29504if test "${with_x+set}" = set; then
29505 withval="$with_x"
29506
29507fi;
29508# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29509if test "x$with_x" = xno; then
29510 # The user explicitly disabled X.
29511 have_x=disabled
29512else
29513 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29514 # Both variables are already set.
29515 have_x=yes
29516 else
29517 if test "${ac_cv_have_x+set}" = set; then
29518 echo $ECHO_N "(cached) $ECHO_C" >&6
29519else
29520 # One or both of the vars are not set, and there is no cached value.
29521ac_x_includes=no ac_x_libraries=no
29522rm -fr conftest.dir
29523if mkdir conftest.dir; then
29524 cd conftest.dir
29525 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29526 cat >Imakefile <<'_ACEOF'
29527acfindx:
29528 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29529_ACEOF
29530 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29532 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29533 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29534 for ac_extension in a so sl; do
29535 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29536 test -f $ac_im_libdir/libX11.$ac_extension; then
29537 ac_im_usrlibdir=$ac_im_libdir; break
29538 fi
29539 done
29540 # Screen out bogus values from the imake configuration. They are
29541 # bogus both because they are the default anyway, and because
29542 # using them would break gcc on systems where it needs fixed includes.
29543 case $ac_im_incroot in
29544 /usr/include) ;;
29545 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29546 esac
29547 case $ac_im_usrlibdir in
29548 /usr/lib | /lib) ;;
29549 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29550 esac
29551 fi
29552 cd ..
29553 rm -fr conftest.dir
29554fi
29555
29556# Standard set of common directories for X headers.
29557# Check X11 before X11Rn because it is often a symlink to the current release.
29558ac_x_header_dirs='
29559/usr/X11/include
29560/usr/X11R6/include
29561/usr/X11R5/include
29562/usr/X11R4/include
29563
29564/usr/include/X11
29565/usr/include/X11R6
29566/usr/include/X11R5
29567/usr/include/X11R4
29568
29569/usr/local/X11/include
29570/usr/local/X11R6/include
29571/usr/local/X11R5/include
29572/usr/local/X11R4/include
29573
29574/usr/local/include/X11
29575/usr/local/include/X11R6
29576/usr/local/include/X11R5
29577/usr/local/include/X11R4
29578
29579/usr/X386/include
29580/usr/x386/include
29581/usr/XFree86/include/X11
29582
29583/usr/include
29584/usr/local/include
29585/usr/unsupported/include
29586/usr/athena/include
29587/usr/local/x11r5/include
29588/usr/lpp/Xamples/include
29589
29590/usr/openwin/include
29591/usr/openwin/share/include'
29592
29593if test "$ac_x_includes" = no; then
29594 # Guess where to find include files, by looking for Intrinsic.h.
29595 # First, try using that file with no special directory specified.
29596 cat >conftest.$ac_ext <<_ACEOF
29597#line $LINENO "configure"
29598#include "confdefs.h"
29599#include <X11/Intrinsic.h>
29600_ACEOF
29601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29603 ac_status=$?
29604 egrep -v '^ *\+' conftest.er1 >conftest.err
29605 rm -f conftest.er1
29606 cat conftest.err >&5
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); } >/dev/null; then
29609 if test -s conftest.err; then
29610 ac_cpp_err=$ac_c_preproc_warn_flag
29611 else
29612 ac_cpp_err=
29613 fi
29614else
29615 ac_cpp_err=yes
29616fi
29617if test -z "$ac_cpp_err"; then
29618 # We can compile using X headers with no special include directory.
29619ac_x_includes=
29620else
29621 echo "$as_me: failed program was:" >&5
29622 cat conftest.$ac_ext >&5
29623 for ac_dir in $ac_x_header_dirs; do
29624 if test -r "$ac_dir/X11/Intrinsic.h"; then
29625 ac_x_includes=$ac_dir
29626 break
29627 fi
29628done
29629fi
29630rm -f conftest.err conftest.$ac_ext
29631fi # $ac_x_includes = no
29632
29633if test "$ac_x_libraries" = no; then
29634 # Check for the libraries.
29635 # See if we find them without any special options.
29636 # Don't add to $LIBS permanently.
29637 ac_save_LIBS=$LIBS
29638 LIBS="-lXt $LIBS"
29639 cat >conftest.$ac_ext <<_ACEOF
29640#line $LINENO "configure"
29641#include "confdefs.h"
29642#include <X11/Intrinsic.h>
29643#ifdef F77_DUMMY_MAIN
29644# ifdef __cplusplus
29645 extern "C"
29646# endif
29647 int F77_DUMMY_MAIN() { return 1; }
29648#endif
29649int
29650main ()
29651{
29652XtMalloc (0)
29653 ;
29654 return 0;
29655}
29656_ACEOF
29657rm -f conftest.$ac_objext conftest$ac_exeext
29658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29659 (eval $ac_link) 2>&5
29660 ac_status=$?
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } &&
29663 { ac_try='test -s conftest$ac_exeext'
29664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29665 (eval $ac_try) 2>&5
29666 ac_status=$?
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); }; }; then
29669 LIBS=$ac_save_LIBS
29670# We can link X programs with no special library path.
29671ac_x_libraries=
29672else
29673 echo "$as_me: failed program was:" >&5
29674cat conftest.$ac_ext >&5
29675LIBS=$ac_save_LIBS
29676for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29677do
29678 # Don't even attempt the hair of trying to link an X program!
29679 for ac_extension in a so sl; do
29680 if test -r $ac_dir/libXt.$ac_extension; then
29681 ac_x_libraries=$ac_dir
29682 break 2
29683 fi
29684 done
29685done
29686fi
29687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29688fi # $ac_x_libraries = no
29689
29690if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29691 # Didn't find X anywhere. Cache the known absence of X.
29692 ac_cv_have_x="have_x=no"
29693else
29694 # Record where we found X for the cache.
29695 ac_cv_have_x="have_x=yes \
29696 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29697fi
29698fi
29699
29700 fi
29701 eval "$ac_cv_have_x"
29702fi # $with_x != no
29703
29704if test "$have_x" != yes; then
29705 echo "$as_me:$LINENO: result: $have_x" >&5
29706echo "${ECHO_T}$have_x" >&6
29707 no_x=yes
29708else
29709 # If each of the values was on the command line, it overrides each guess.
29710 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29711 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29712 # Update the cache value to reflect the command line values.
29713 ac_cv_have_x="have_x=yes \
29714 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29715 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29716echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
29717fi
29718
29719
29720if test "$no_x" = yes; then
29721 # Not all programs may use this symbol, but it does not hurt to define it.
29722
29723cat >>confdefs.h <<\_ACEOF
29724#define X_DISPLAY_MISSING 1
29725_ACEOF
29726
29727 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29728else
29729 if test -n "$x_includes"; then
29730 X_CFLAGS="$X_CFLAGS -I$x_includes"
29731 fi
29732
29733 # It would also be nice to do this for all -L options, not just this one.
29734 if test -n "$x_libraries"; then
29735 X_LIBS="$X_LIBS -L$x_libraries"
29736 # For Solaris; some versions of Sun CC require a space after -R and
29737 # others require no space. Words are not sufficient . . . .
29738 case `(uname -sr) 2>/dev/null` in
29739 "SunOS 5"*)
29740 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29741echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29742 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29743 cat >conftest.$ac_ext <<_ACEOF
29744#line $LINENO "configure"
29745#include "confdefs.h"
29746
29747#ifdef F77_DUMMY_MAIN
29748# ifdef __cplusplus
29749 extern "C"
29750# endif
29751 int F77_DUMMY_MAIN() { return 1; }
29752#endif
29753int
29754main ()
29755{
29756
29757 ;
29758 return 0;
29759}
29760_ACEOF
29761rm -f conftest.$ac_objext conftest$ac_exeext
29762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29763 (eval $ac_link) 2>&5
29764 ac_status=$?
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); } &&
29767 { ac_try='test -s conftest$ac_exeext'
29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769 (eval $ac_try) 2>&5
29770 ac_status=$?
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; }; then
29773 ac_R_nospace=yes
29774else
29775 echo "$as_me: failed program was:" >&5
29776cat conftest.$ac_ext >&5
29777ac_R_nospace=no
29778fi
29779rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29780 if test $ac_R_nospace = yes; then
29781 echo "$as_me:$LINENO: result: no" >&5
29782echo "${ECHO_T}no" >&6
29783 X_LIBS="$X_LIBS -R$x_libraries"
29784 else
29785 LIBS="$ac_xsave_LIBS -R $x_libraries"
29786 cat >conftest.$ac_ext <<_ACEOF
29787#line $LINENO "configure"
29788#include "confdefs.h"
29789
29790#ifdef F77_DUMMY_MAIN
29791# ifdef __cplusplus
29792 extern "C"
29793# endif
29794 int F77_DUMMY_MAIN() { return 1; }
29795#endif
29796int
29797main ()
29798{
29799
29800 ;
29801 return 0;
29802}
29803_ACEOF
29804rm -f conftest.$ac_objext conftest$ac_exeext
29805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29806 (eval $ac_link) 2>&5
29807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); } &&
29810 { ac_try='test -s conftest$ac_exeext'
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; }; then
29816 ac_R_space=yes
29817else
29818 echo "$as_me: failed program was:" >&5
29819cat conftest.$ac_ext >&5
29820ac_R_space=no
29821fi
29822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29823 if test $ac_R_space = yes; then
29824 echo "$as_me:$LINENO: result: yes" >&5
29825echo "${ECHO_T}yes" >&6
29826 X_LIBS="$X_LIBS -R $x_libraries"
29827 else
29828 echo "$as_me:$LINENO: result: neither works" >&5
29829echo "${ECHO_T}neither works" >&6
29830 fi
29831 fi
29832 LIBS=$ac_xsave_LIBS
29833 esac
29834 fi
29835
29836 # Check for system-dependent libraries X programs must link with.
29837 # Do this before checking for the system-independent R6 libraries
29838 # (-lICE), since we may need -lsocket or whatever for X linking.
29839
29840 if test "$ISC" = yes; then
29841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29842 else
29843 # Martyn Johnson says this is needed for Ultrix, if the X
29844 # libraries were built with DECnet support. And Karl Berry says
29845 # the Alpha needs dnet_stub (dnet does not exist).
29846 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29847 cat >conftest.$ac_ext <<_ACEOF
29848#line $LINENO "configure"
29849#include "confdefs.h"
29850
29851/* Override any gcc2 internal prototype to avoid an error. */
29852#ifdef __cplusplus
29853extern "C"
29854#endif
29855/* We use char because int might match the return type of a gcc2
29856 builtin and then its argument prototype would still apply. */
29857char XOpenDisplay ();
29858#ifdef F77_DUMMY_MAIN
29859# ifdef __cplusplus
29860 extern "C"
29861# endif
29862 int F77_DUMMY_MAIN() { return 1; }
29863#endif
29864int
29865main ()
29866{
29867XOpenDisplay ();
29868 ;
29869 return 0;
29870}
29871_ACEOF
29872rm -f conftest.$ac_objext conftest$ac_exeext
29873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29874 (eval $ac_link) 2>&5
29875 ac_status=$?
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); } &&
29878 { ac_try='test -s conftest$ac_exeext'
29879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880 (eval $ac_try) 2>&5
29881 ac_status=$?
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; }; then
29884 :
29885else
29886 echo "$as_me: failed program was:" >&5
29887cat conftest.$ac_ext >&5
29888echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29889echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29890if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29891 echo $ECHO_N "(cached) $ECHO_C" >&6
29892else
29893 ac_check_lib_save_LIBS=$LIBS
29894LIBS="-ldnet $LIBS"
29895cat >conftest.$ac_ext <<_ACEOF
29896#line $LINENO "configure"
29897#include "confdefs.h"
29898
29899/* Override any gcc2 internal prototype to avoid an error. */
29900#ifdef __cplusplus
29901extern "C"
29902#endif
29903/* We use char because int might match the return type of a gcc2
29904 builtin and then its argument prototype would still apply. */
29905char dnet_ntoa ();
29906#ifdef F77_DUMMY_MAIN
29907# ifdef __cplusplus
29908 extern "C"
29909# endif
29910 int F77_DUMMY_MAIN() { return 1; }
29911#endif
29912int
29913main ()
29914{
29915dnet_ntoa ();
29916 ;
29917 return 0;
29918}
29919_ACEOF
29920rm -f conftest.$ac_objext conftest$ac_exeext
29921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29922 (eval $ac_link) 2>&5
29923 ac_status=$?
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); } &&
29926 { ac_try='test -s conftest$ac_exeext'
29927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29928 (eval $ac_try) 2>&5
29929 ac_status=$?
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; }; then
29932 ac_cv_lib_dnet_dnet_ntoa=yes
29933else
29934 echo "$as_me: failed program was:" >&5
29935cat conftest.$ac_ext >&5
29936ac_cv_lib_dnet_dnet_ntoa=no
29937fi
29938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29939LIBS=$ac_check_lib_save_LIBS
29940fi
29941echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29942echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29943if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29944 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29945fi
29946
29947 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29948 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29949echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29950if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29951 echo $ECHO_N "(cached) $ECHO_C" >&6
29952else
29953 ac_check_lib_save_LIBS=$LIBS
29954LIBS="-ldnet_stub $LIBS"
29955cat >conftest.$ac_ext <<_ACEOF
29956#line $LINENO "configure"
29957#include "confdefs.h"
29958
29959/* Override any gcc2 internal prototype to avoid an error. */
29960#ifdef __cplusplus
29961extern "C"
29962#endif
29963/* We use char because int might match the return type of a gcc2
29964 builtin and then its argument prototype would still apply. */
29965char dnet_ntoa ();
29966#ifdef F77_DUMMY_MAIN
29967# ifdef __cplusplus
29968 extern "C"
29969# endif
29970 int F77_DUMMY_MAIN() { return 1; }
29971#endif
29972int
29973main ()
29974{
29975dnet_ntoa ();
29976 ;
29977 return 0;
29978}
29979_ACEOF
29980rm -f conftest.$ac_objext conftest$ac_exeext
29981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29982 (eval $ac_link) 2>&5
29983 ac_status=$?
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); } &&
29986 { ac_try='test -s conftest$ac_exeext'
29987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29988 (eval $ac_try) 2>&5
29989 ac_status=$?
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
29992 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29993else
29994 echo "$as_me: failed program was:" >&5
29995cat conftest.$ac_ext >&5
29996ac_cv_lib_dnet_stub_dnet_ntoa=no
29997fi
29998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29999LIBS=$ac_check_lib_save_LIBS
30000fi
30001echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30002echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30003if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30004 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30005fi
30006
30007 fi
30008fi
30009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30010 LIBS="$ac_xsave_LIBS"
30011
30012 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30013 # to get the SysV transport functions.
30014 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30015 # needs -lnsl.
30016 # The nsl library prevents programs from opening the X display
30017 # on Irix 5.2, according to T.E. Dickey.
30018 # The functions gethostbyname, getservbyname, and inet_addr are
30019 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30020 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30021echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30022if test "${ac_cv_func_gethostbyname+set}" = set; then
30023 echo $ECHO_N "(cached) $ECHO_C" >&6
30024else
30025 cat >conftest.$ac_ext <<_ACEOF
30026#line $LINENO "configure"
30027#include "confdefs.h"
30028/* System header to define __stub macros and hopefully few prototypes,
30029 which can conflict with char gethostbyname (); below. */
30030#include <assert.h>
30031/* Override any gcc2 internal prototype to avoid an error. */
30032#ifdef __cplusplus
30033extern "C"
30034#endif
30035/* We use char because int might match the return type of a gcc2
30036 builtin and then its argument prototype would still apply. */
30037char gethostbyname ();
30038char (*f) ();
30039
30040#ifdef F77_DUMMY_MAIN
30041# ifdef __cplusplus
30042 extern "C"
30043# endif
30044 int F77_DUMMY_MAIN() { return 1; }
30045#endif
30046int
30047main ()
30048{
30049/* The GNU C library defines this for functions which it implements
30050 to always fail with ENOSYS. Some functions are actually named
30051 something starting with __ and the normal name is an alias. */
30052#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30053choke me
30054#else
30055f = gethostbyname;
30056#endif
30057
30058 ;
30059 return 0;
30060}
30061_ACEOF
30062rm -f conftest.$ac_objext conftest$ac_exeext
30063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30064 (eval $ac_link) 2>&5
30065 ac_status=$?
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); } &&
30068 { ac_try='test -s conftest$ac_exeext'
30069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070 (eval $ac_try) 2>&5
30071 ac_status=$?
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; }; then
30074 ac_cv_func_gethostbyname=yes
30075else
30076 echo "$as_me: failed program was:" >&5
30077cat conftest.$ac_ext >&5
30078ac_cv_func_gethostbyname=no
30079fi
30080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30081fi
30082echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30083echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30084
30085 if test $ac_cv_func_gethostbyname = no; then
30086 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30087echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30088if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30089 echo $ECHO_N "(cached) $ECHO_C" >&6
30090else
30091 ac_check_lib_save_LIBS=$LIBS
30092LIBS="-lnsl $LIBS"
30093cat >conftest.$ac_ext <<_ACEOF
30094#line $LINENO "configure"
30095#include "confdefs.h"
30096
30097/* Override any gcc2 internal prototype to avoid an error. */
30098#ifdef __cplusplus
30099extern "C"
30100#endif
30101/* We use char because int might match the return type of a gcc2
30102 builtin and then its argument prototype would still apply. */
30103char gethostbyname ();
30104#ifdef F77_DUMMY_MAIN
30105# ifdef __cplusplus
30106 extern "C"
30107# endif
30108 int F77_DUMMY_MAIN() { return 1; }
30109#endif
30110int
30111main ()
30112{
30113gethostbyname ();
30114 ;
30115 return 0;
30116}
30117_ACEOF
30118rm -f conftest.$ac_objext conftest$ac_exeext
30119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30120 (eval $ac_link) 2>&5
30121 ac_status=$?
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } &&
30124 { ac_try='test -s conftest$ac_exeext'
30125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30126 (eval $ac_try) 2>&5
30127 ac_status=$?
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); }; }; then
30130 ac_cv_lib_nsl_gethostbyname=yes
30131else
30132 echo "$as_me: failed program was:" >&5
30133cat conftest.$ac_ext >&5
30134ac_cv_lib_nsl_gethostbyname=no
30135fi
30136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30137LIBS=$ac_check_lib_save_LIBS
30138fi
30139echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30140echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30141if test $ac_cv_lib_nsl_gethostbyname = yes; then
30142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30143fi
30144
30145 if test $ac_cv_lib_nsl_gethostbyname = no; then
30146 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30147echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30148if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30149 echo $ECHO_N "(cached) $ECHO_C" >&6
30150else
30151 ac_check_lib_save_LIBS=$LIBS
30152LIBS="-lbsd $LIBS"
30153cat >conftest.$ac_ext <<_ACEOF
30154#line $LINENO "configure"
30155#include "confdefs.h"
30156
30157/* Override any gcc2 internal prototype to avoid an error. */
30158#ifdef __cplusplus
30159extern "C"
30160#endif
30161/* We use char because int might match the return type of a gcc2
30162 builtin and then its argument prototype would still apply. */
30163char gethostbyname ();
30164#ifdef F77_DUMMY_MAIN
30165# ifdef __cplusplus
30166 extern "C"
30167# endif
30168 int F77_DUMMY_MAIN() { return 1; }
30169#endif
30170int
30171main ()
30172{
30173gethostbyname ();
30174 ;
30175 return 0;
30176}
30177_ACEOF
30178rm -f conftest.$ac_objext conftest$ac_exeext
30179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30180 (eval $ac_link) 2>&5
30181 ac_status=$?
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); } &&
30184 { ac_try='test -s conftest$ac_exeext'
30185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186 (eval $ac_try) 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; }; then
30190 ac_cv_lib_bsd_gethostbyname=yes
30191else
30192 echo "$as_me: failed program was:" >&5
30193cat conftest.$ac_ext >&5
30194ac_cv_lib_bsd_gethostbyname=no
30195fi
30196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30197LIBS=$ac_check_lib_save_LIBS
30198fi
30199echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30200echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30201if test $ac_cv_lib_bsd_gethostbyname = yes; then
30202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30203fi
30204
30205 fi
30206 fi
30207
30208 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30209 # socket/setsockopt and other routines are undefined under SCO ODT
30210 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30211 # on later versions), says Simon Leinen: it contains gethostby*
30212 # variants that don't use the nameserver (or something). -lsocket
30213 # must be given before -lnsl if both are needed. We assume that
30214 # if connect needs -lnsl, so does gethostbyname.
30215 echo "$as_me:$LINENO: checking for connect" >&5
30216echo $ECHO_N "checking for connect... $ECHO_C" >&6
30217if test "${ac_cv_func_connect+set}" = set; then
30218 echo $ECHO_N "(cached) $ECHO_C" >&6
30219else
30220 cat >conftest.$ac_ext <<_ACEOF
30221#line $LINENO "configure"
30222#include "confdefs.h"
30223/* System header to define __stub macros and hopefully few prototypes,
30224 which can conflict with char connect (); below. */
30225#include <assert.h>
30226/* Override any gcc2 internal prototype to avoid an error. */
30227#ifdef __cplusplus
30228extern "C"
30229#endif
30230/* We use char because int might match the return type of a gcc2
30231 builtin and then its argument prototype would still apply. */
30232char connect ();
30233char (*f) ();
30234
30235#ifdef F77_DUMMY_MAIN
30236# ifdef __cplusplus
30237 extern "C"
30238# endif
30239 int F77_DUMMY_MAIN() { return 1; }
30240#endif
30241int
30242main ()
30243{
30244/* The GNU C library defines this for functions which it implements
30245 to always fail with ENOSYS. Some functions are actually named
30246 something starting with __ and the normal name is an alias. */
30247#if defined (__stub_connect) || defined (__stub___connect)
30248choke me
30249#else
30250f = connect;
30251#endif
30252
30253 ;
30254 return 0;
30255}
30256_ACEOF
30257rm -f conftest.$ac_objext conftest$ac_exeext
30258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259 (eval $ac_link) 2>&5
30260 ac_status=$?
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); } &&
30263 { ac_try='test -s conftest$ac_exeext'
30264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30265 (eval $ac_try) 2>&5
30266 ac_status=$?
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); }; }; then
30269 ac_cv_func_connect=yes
30270else
30271 echo "$as_me: failed program was:" >&5
30272cat conftest.$ac_ext >&5
30273ac_cv_func_connect=no
30274fi
30275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30276fi
30277echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30278echo "${ECHO_T}$ac_cv_func_connect" >&6
30279
30280 if test $ac_cv_func_connect = no; then
30281 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30282echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30283if test "${ac_cv_lib_socket_connect+set}" = set; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30285else
30286 ac_check_lib_save_LIBS=$LIBS
30287LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30288cat >conftest.$ac_ext <<_ACEOF
30289#line $LINENO "configure"
30290#include "confdefs.h"
30291
30292/* Override any gcc2 internal prototype to avoid an error. */
30293#ifdef __cplusplus
30294extern "C"
30295#endif
30296/* We use char because int might match the return type of a gcc2
30297 builtin and then its argument prototype would still apply. */
30298char connect ();
30299#ifdef F77_DUMMY_MAIN
30300# ifdef __cplusplus
30301 extern "C"
30302# endif
30303 int F77_DUMMY_MAIN() { return 1; }
30304#endif
30305int
30306main ()
30307{
30308connect ();
30309 ;
30310 return 0;
30311}
30312_ACEOF
30313rm -f conftest.$ac_objext conftest$ac_exeext
30314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30315 (eval $ac_link) 2>&5
30316 ac_status=$?
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); } &&
30319 { ac_try='test -s conftest$ac_exeext'
30320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30321 (eval $ac_try) 2>&5
30322 ac_status=$?
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; }; then
30325 ac_cv_lib_socket_connect=yes
30326else
30327 echo "$as_me: failed program was:" >&5
30328cat conftest.$ac_ext >&5
30329ac_cv_lib_socket_connect=no
30330fi
30331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30332LIBS=$ac_check_lib_save_LIBS
30333fi
30334echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30335echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30336if test $ac_cv_lib_socket_connect = yes; then
30337 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30338fi
30339
30340 fi
30341
30342 # Guillermo Gomez says -lposix is necessary on A/UX.
30343 echo "$as_me:$LINENO: checking for remove" >&5
30344echo $ECHO_N "checking for remove... $ECHO_C" >&6
30345if test "${ac_cv_func_remove+set}" = set; then
30346 echo $ECHO_N "(cached) $ECHO_C" >&6
30347else
30348 cat >conftest.$ac_ext <<_ACEOF
30349#line $LINENO "configure"
30350#include "confdefs.h"
30351/* System header to define __stub macros and hopefully few prototypes,
30352 which can conflict with char remove (); below. */
30353#include <assert.h>
30354/* Override any gcc2 internal prototype to avoid an error. */
30355#ifdef __cplusplus
30356extern "C"
30357#endif
30358/* We use char because int might match the return type of a gcc2
30359 builtin and then its argument prototype would still apply. */
30360char remove ();
30361char (*f) ();
30362
30363#ifdef F77_DUMMY_MAIN
30364# ifdef __cplusplus
30365 extern "C"
30366# endif
30367 int F77_DUMMY_MAIN() { return 1; }
30368#endif
30369int
30370main ()
30371{
30372/* The GNU C library defines this for functions which it implements
30373 to always fail with ENOSYS. Some functions are actually named
30374 something starting with __ and the normal name is an alias. */
30375#if defined (__stub_remove) || defined (__stub___remove)
30376choke me
30377#else
30378f = remove;
30379#endif
30380
30381 ;
30382 return 0;
30383}
30384_ACEOF
30385rm -f conftest.$ac_objext conftest$ac_exeext
30386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30387 (eval $ac_link) 2>&5
30388 ac_status=$?
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); } &&
30391 { ac_try='test -s conftest$ac_exeext'
30392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30393 (eval $ac_try) 2>&5
30394 ac_status=$?
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); }; }; then
30397 ac_cv_func_remove=yes
30398else
30399 echo "$as_me: failed program was:" >&5
30400cat conftest.$ac_ext >&5
30401ac_cv_func_remove=no
30402fi
30403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30404fi
30405echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30406echo "${ECHO_T}$ac_cv_func_remove" >&6
30407
30408 if test $ac_cv_func_remove = no; then
30409 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30410echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30411if test "${ac_cv_lib_posix_remove+set}" = set; then
30412 echo $ECHO_N "(cached) $ECHO_C" >&6
30413else
30414 ac_check_lib_save_LIBS=$LIBS
30415LIBS="-lposix $LIBS"
30416cat >conftest.$ac_ext <<_ACEOF
30417#line $LINENO "configure"
30418#include "confdefs.h"
30419
30420/* Override any gcc2 internal prototype to avoid an error. */
30421#ifdef __cplusplus
30422extern "C"
30423#endif
30424/* We use char because int might match the return type of a gcc2
30425 builtin and then its argument prototype would still apply. */
30426char remove ();
30427#ifdef F77_DUMMY_MAIN
30428# ifdef __cplusplus
30429 extern "C"
30430# endif
30431 int F77_DUMMY_MAIN() { return 1; }
30432#endif
30433int
30434main ()
30435{
30436remove ();
30437 ;
30438 return 0;
30439}
30440_ACEOF
30441rm -f conftest.$ac_objext conftest$ac_exeext
30442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30443 (eval $ac_link) 2>&5
30444 ac_status=$?
30445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446 (exit $ac_status); } &&
30447 { ac_try='test -s conftest$ac_exeext'
30448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30449 (eval $ac_try) 2>&5
30450 ac_status=$?
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); }; }; then
30453 ac_cv_lib_posix_remove=yes
30454else
30455 echo "$as_me: failed program was:" >&5
30456cat conftest.$ac_ext >&5
30457ac_cv_lib_posix_remove=no
30458fi
30459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30460LIBS=$ac_check_lib_save_LIBS
30461fi
30462echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30463echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30464if test $ac_cv_lib_posix_remove = yes; then
30465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30466fi
30467
30468 fi
30469
30470 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30471 echo "$as_me:$LINENO: checking for shmat" >&5
30472echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30473if test "${ac_cv_func_shmat+set}" = set; then
30474 echo $ECHO_N "(cached) $ECHO_C" >&6
30475else
30476 cat >conftest.$ac_ext <<_ACEOF
30477#line $LINENO "configure"
30478#include "confdefs.h"
30479/* System header to define __stub macros and hopefully few prototypes,
30480 which can conflict with char shmat (); below. */
30481#include <assert.h>
30482/* Override any gcc2 internal prototype to avoid an error. */
30483#ifdef __cplusplus
30484extern "C"
30485#endif
30486/* We use char because int might match the return type of a gcc2
30487 builtin and then its argument prototype would still apply. */
30488char shmat ();
30489char (*f) ();
30490
30491#ifdef F77_DUMMY_MAIN
30492# ifdef __cplusplus
30493 extern "C"
30494# endif
30495 int F77_DUMMY_MAIN() { return 1; }
30496#endif
30497int
30498main ()
30499{
30500/* The GNU C library defines this for functions which it implements
30501 to always fail with ENOSYS. Some functions are actually named
30502 something starting with __ and the normal name is an alias. */
30503#if defined (__stub_shmat) || defined (__stub___shmat)
30504choke me
30505#else
30506f = shmat;
30507#endif
30508
30509 ;
30510 return 0;
30511}
30512_ACEOF
30513rm -f conftest.$ac_objext conftest$ac_exeext
30514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30515 (eval $ac_link) 2>&5
30516 ac_status=$?
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); } &&
30519 { ac_try='test -s conftest$ac_exeext'
30520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521 (eval $ac_try) 2>&5
30522 ac_status=$?
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); }; }; then
30525 ac_cv_func_shmat=yes
30526else
30527 echo "$as_me: failed program was:" >&5
30528cat conftest.$ac_ext >&5
30529ac_cv_func_shmat=no
30530fi
30531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30532fi
30533echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30534echo "${ECHO_T}$ac_cv_func_shmat" >&6
30535
30536 if test $ac_cv_func_shmat = no; then
30537 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30538echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30539if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30540 echo $ECHO_N "(cached) $ECHO_C" >&6
30541else
30542 ac_check_lib_save_LIBS=$LIBS
30543LIBS="-lipc $LIBS"
30544cat >conftest.$ac_ext <<_ACEOF
30545#line $LINENO "configure"
30546#include "confdefs.h"
30547
30548/* Override any gcc2 internal prototype to avoid an error. */
30549#ifdef __cplusplus
30550extern "C"
30551#endif
30552/* We use char because int might match the return type of a gcc2
30553 builtin and then its argument prototype would still apply. */
30554char shmat ();
30555#ifdef F77_DUMMY_MAIN
30556# ifdef __cplusplus
30557 extern "C"
30558# endif
30559 int F77_DUMMY_MAIN() { return 1; }
30560#endif
30561int
30562main ()
30563{
30564shmat ();
30565 ;
30566 return 0;
30567}
30568_ACEOF
30569rm -f conftest.$ac_objext conftest$ac_exeext
30570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30571 (eval $ac_link) 2>&5
30572 ac_status=$?
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); } &&
30575 { ac_try='test -s conftest$ac_exeext'
30576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30577 (eval $ac_try) 2>&5
30578 ac_status=$?
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); }; }; then
30581 ac_cv_lib_ipc_shmat=yes
30582else
30583 echo "$as_me: failed program was:" >&5
30584cat conftest.$ac_ext >&5
30585ac_cv_lib_ipc_shmat=no
30586fi
30587rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30588LIBS=$ac_check_lib_save_LIBS
30589fi
30590echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30591echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30592if test $ac_cv_lib_ipc_shmat = yes; then
30593 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30594fi
30595
30596 fi
30597 fi
30598
30599 # Check for libraries that X11R6 Xt/Xaw programs need.
30600 ac_save_LDFLAGS=$LDFLAGS
30601 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30602 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30603 # check for ICE first), but we must link in the order -lSM -lICE or
30604 # we get undefined symbols. So assume we have SM if we have ICE.
30605 # These have to be linked with before -lX11, unlike the other
30606 # libraries we check for below, so use a different variable.
30607 # John Interrante, Karl Berry
30608 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30609echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30610if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30611 echo $ECHO_N "(cached) $ECHO_C" >&6
30612else
30613 ac_check_lib_save_LIBS=$LIBS
30614LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30615cat >conftest.$ac_ext <<_ACEOF
30616#line $LINENO "configure"
30617#include "confdefs.h"
30618
30619/* Override any gcc2 internal prototype to avoid an error. */
30620#ifdef __cplusplus
30621extern "C"
30622#endif
30623/* We use char because int might match the return type of a gcc2
30624 builtin and then its argument prototype would still apply. */
30625char IceConnectionNumber ();
30626#ifdef F77_DUMMY_MAIN
30627# ifdef __cplusplus
30628 extern "C"
30629# endif
30630 int F77_DUMMY_MAIN() { return 1; }
30631#endif
30632int
30633main ()
30634{
30635IceConnectionNumber ();
30636 ;
30637 return 0;
30638}
30639_ACEOF
30640rm -f conftest.$ac_objext conftest$ac_exeext
30641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30642 (eval $ac_link) 2>&5
30643 ac_status=$?
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
30646 { ac_try='test -s conftest$ac_exeext'
30647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30648 (eval $ac_try) 2>&5
30649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; }; then
30652 ac_cv_lib_ICE_IceConnectionNumber=yes
30653else
30654 echo "$as_me: failed program was:" >&5
30655cat conftest.$ac_ext >&5
30656ac_cv_lib_ICE_IceConnectionNumber=no
30657fi
30658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30659LIBS=$ac_check_lib_save_LIBS
30660fi
30661echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30662echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30663if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30664 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30665fi
30666
30667 LDFLAGS=$ac_save_LDFLAGS
30668
30669fi
30670
30671
30672# try to figure out if we need any additional ld flags, like -R
30673# and yes, the autoconf X test is utterly broken
30674if test "$no_x" != yes; then
30675 echo "$as_me:$LINENO: checking for special X linker flags" >&5
30676echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
30677if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
30678 echo $ECHO_N "(cached) $ECHO_C" >&6
30679else
30680
30681 ac_save_libs="$LIBS"
30682 ac_save_cflags="$CFLAGS"
30683 CFLAGS="$CFLAGS $X_CFLAGS"
30684 krb_cv_sys_x_libs_rpath=""
30685 krb_cv_sys_x_libs=""
30686 for rflag in "" "-R" "-R " "-rpath "; do
30687 if test "$rflag" = ""; then
30688 foo="$X_LIBS"
30689 else
30690 foo=""
30691 for flag in $X_LIBS; do
30692 case $flag in
30693 -L*)
30694 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
30695 ;;
30696 *)
30697 foo="$foo $flag"
30698 ;;
30699 esac
30700 done
30701 fi
30702 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
30703 if test "$cross_compiling" = yes; then
30704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
30705echo "$as_me: error: cannot run test program while cross compiling" >&2;}
30706 { (exit 1); exit 1; }; }
30707else
30708 cat >conftest.$ac_ext <<_ACEOF
30709#line $LINENO "configure"
30710#include "confdefs.h"
30711
30712 #include <X11/Xlib.h>
30713 foo()
30714 {
30715 XOpenDisplay(NULL);
30716 }
30717 main()
30718 {
30719 return 0;
30720 }
30721
30722_ACEOF
30723rm -f conftest$ac_exeext
30724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30725 (eval $ac_link) 2>&5
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30730 (eval $ac_try) 2>&5
30731 ac_status=$?
30732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733 (exit $ac_status); }; }; then
30734 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
30735else
30736 echo "$as_me: program exited with status $ac_status" >&5
30737echo "$as_me: failed program was:" >&5
30738cat conftest.$ac_ext >&5
30739( exit $ac_status )
30740:
30741fi
30742rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30743fi
30744 done
30745 LIBS="$ac_save_libs"
30746 CFLAGS="$ac_save_cflags"
30747
30748fi
30749echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
30750echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
30751 X_LIBS="$krb_cv_sys_x_libs"
30752fi
30753
30754
30755
30756
30757if test "$no_x" != yes; then
30758 HAVE_X_TRUE=
30759 HAVE_X_FALSE='#'
30760else
30761 HAVE_X_TRUE='#'
30762 HAVE_X_FALSE=
30763fi
30764
30765
30766
30767save_CFLAGS="$CFLAGS"
30768CFLAGS="$X_CFLAGS $CFLAGS"
30769save_LIBS="$LIBS"
30770LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
30771save_LDFLAGS="$LDFLAGS"
30772LDFLAGS="$LDFLAGS $X_LIBS"
30773
30774
30775
30776
30777
30778echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
30779echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
30780if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
30781 echo $ECHO_N "(cached) $ECHO_C" >&6
30782else
30783
30784if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
30785 ac_save_LIBS="$LIBS"
30786 for ac_lib in "" X11 Xau; do
30787 case "$ac_lib" in
30788 "") ;;
30789 yes) ac_lib="" ;;
30790 no) continue ;;
30791 -l*) ;;
30792 *) ac_lib="-l$ac_lib" ;;
30793 esac
30794 LIBS=" $ac_lib $ac_save_LIBS"
30795 cat >conftest.$ac_ext <<_ACEOF
30796#line $LINENO "configure"
30797#include "confdefs.h"
30798
30799#ifdef F77_DUMMY_MAIN
30800# ifdef __cplusplus
30801 extern "C"
30802# endif
30803 int F77_DUMMY_MAIN() { return 1; }
30804#endif
30805int
30806main ()
30807{
30808XauWriteAuth()
30809 ;
30810 return 0;
30811}
30812_ACEOF
30813rm -f conftest.$ac_objext conftest$ac_exeext
30814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30815 (eval $ac_link) 2>&5
30816 ac_status=$?
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); } &&
30819 { ac_try='test -s conftest$ac_exeext'
30820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30821 (eval $ac_try) 2>&5
30822 ac_status=$?
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); }; }; then
30825 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
30826else
30827 echo "$as_me: failed program was:" >&5
30828cat conftest.$ac_ext >&5
30829fi
30830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30831 done
30832 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
30833 LIBS="$ac_save_LIBS"
30834fi
30835
30836fi
30837
30838
30839eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
30840
30841if false; then
30842
30843for ac_func in XauWriteAuth
30844do
30845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30846echo "$as_me:$LINENO: checking for $ac_func" >&5
30847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30848if eval "test \"\${$as_ac_var+set}\" = set"; then
30849 echo $ECHO_N "(cached) $ECHO_C" >&6
30850else
30851 cat >conftest.$ac_ext <<_ACEOF
30852#line $LINENO "configure"
30853#include "confdefs.h"
30854/* System header to define __stub macros and hopefully few prototypes,
30855 which can conflict with char $ac_func (); below. */
30856#include <assert.h>
30857/* Override any gcc2 internal prototype to avoid an error. */
30858#ifdef __cplusplus
30859extern "C"
30860#endif
30861/* We use char because int might match the return type of a gcc2
30862 builtin and then its argument prototype would still apply. */
30863char $ac_func ();
30864char (*f) ();
30865
30866#ifdef F77_DUMMY_MAIN
30867# ifdef __cplusplus
30868 extern "C"
30869# endif
30870 int F77_DUMMY_MAIN() { return 1; }
30871#endif
30872int
30873main ()
30874{
30875/* The GNU C library defines this for functions which it implements
30876 to always fail with ENOSYS. Some functions are actually named
30877 something starting with __ and the normal name is an alias. */
30878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30879choke me
30880#else
30881f = $ac_func;
30882#endif
30883
30884 ;
30885 return 0;
30886}
30887_ACEOF
30888rm -f conftest.$ac_objext conftest$ac_exeext
30889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30890 (eval $ac_link) 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); } &&
30894 { ac_try='test -s conftest$ac_exeext'
30895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30896 (eval $ac_try) 2>&5
30897 ac_status=$?
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); }; }; then
30900 eval "$as_ac_var=yes"
30901else
30902 echo "$as_me: failed program was:" >&5
30903cat conftest.$ac_ext >&5
30904eval "$as_ac_var=no"
30905fi
30906rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30907fi
30908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30910if test `eval echo '${'$as_ac_var'}'` = yes; then
30911 cat >>confdefs.h <<_ACEOF
30912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30913_ACEOF
30914
30915fi
30916done
30917
30918fi
30919# XauWriteAuth
30920eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30921eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30922eval "LIB_XauWriteAuth=$ac_res"
30923
30924case "$ac_res" in
30925 yes)
30926 eval "ac_cv_func_XauWriteAuth=yes"
30927 eval "LIB_XauWriteAuth="
30928 cat >>confdefs.h <<_ACEOF
30929#define $ac_tr_func 1
30930_ACEOF
30931
30932 echo "$as_me:$LINENO: result: yes" >&5
30933echo "${ECHO_T}yes" >&6
30934 ;;
30935 no)
30936 eval "ac_cv_func_XauWriteAuth=no"
30937 eval "LIB_XauWriteAuth="
30938 echo "$as_me:$LINENO: result: no" >&5
30939echo "${ECHO_T}no" >&6
30940 ;;
30941 *)
30942 eval "ac_cv_func_XauWriteAuth=yes"
30943 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30944 cat >>confdefs.h <<_ACEOF
30945#define $ac_tr_func 1
30946_ACEOF
30947
30948 cat >>confdefs.h <<_ACEOF
30949#define $ac_tr_lib 1
30950_ACEOF
30951
30952 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30953echo "${ECHO_T}yes, in $ac_res" >&6
30954 ;;
30955esac
30956
30957
30958ac_xxx="$LIBS"
30959LIBS="$LIB_XauWriteAuth $LIBS"
30960
30961
30962
30963echo "$as_me:$LINENO: checking for XauReadAuth" >&5
30964echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
30965if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
30966 echo $ECHO_N "(cached) $ECHO_C" >&6
30967else
30968
30969if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
30970 ac_save_LIBS="$LIBS"
30971 for ac_lib in "" X11 Xau; do
30972 case "$ac_lib" in
30973 "") ;;
30974 yes) ac_lib="" ;;
30975 no) continue ;;
30976 -l*) ;;
30977 *) ac_lib="-l$ac_lib" ;;
30978 esac
30979 LIBS=" $ac_lib $ac_save_LIBS"
30980 cat >conftest.$ac_ext <<_ACEOF
30981#line $LINENO "configure"
30982#include "confdefs.h"
30983
30984#ifdef F77_DUMMY_MAIN
30985# ifdef __cplusplus
30986 extern "C"
30987# endif
30988 int F77_DUMMY_MAIN() { return 1; }
30989#endif
30990int
30991main ()
30992{
30993XauReadAuth()
30994 ;
30995 return 0;
30996}
30997_ACEOF
30998rm -f conftest.$ac_objext conftest$ac_exeext
30999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31000 (eval $ac_link) 2>&5
31001 ac_status=$?
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); } &&
31004 { ac_try='test -s conftest$ac_exeext'
31005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006 (eval $ac_try) 2>&5
31007 ac_status=$?
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); }; }; then
31010 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
31011else
31012 echo "$as_me: failed program was:" >&5
31013cat conftest.$ac_ext >&5
31014fi
31015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31016 done
31017 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
31018 LIBS="$ac_save_LIBS"
31019fi
31020
31021fi
31022
31023
31024eval "ac_res=\$ac_cv_funclib_XauReadAuth"
31025
31026if false; then
31027
31028for ac_func in XauReadAuth
31029do
31030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31031echo "$as_me:$LINENO: checking for $ac_func" >&5
31032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31033if eval "test \"\${$as_ac_var+set}\" = set"; then
31034 echo $ECHO_N "(cached) $ECHO_C" >&6
31035else
31036 cat >conftest.$ac_ext <<_ACEOF
31037#line $LINENO "configure"
31038#include "confdefs.h"
31039/* System header to define __stub macros and hopefully few prototypes,
31040 which can conflict with char $ac_func (); below. */
31041#include <assert.h>
31042/* Override any gcc2 internal prototype to avoid an error. */
31043#ifdef __cplusplus
31044extern "C"
31045#endif
31046/* We use char because int might match the return type of a gcc2
31047 builtin and then its argument prototype would still apply. */
31048char $ac_func ();
31049char (*f) ();
31050
31051#ifdef F77_DUMMY_MAIN
31052# ifdef __cplusplus
31053 extern "C"
31054# endif
31055 int F77_DUMMY_MAIN() { return 1; }
31056#endif
31057int
31058main ()
31059{
31060/* The GNU C library defines this for functions which it implements
31061 to always fail with ENOSYS. Some functions are actually named
31062 something starting with __ and the normal name is an alias. */
31063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31064choke me
31065#else
31066f = $ac_func;
31067#endif
31068
31069 ;
31070 return 0;
31071}
31072_ACEOF
31073rm -f conftest.$ac_objext conftest$ac_exeext
31074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31075 (eval $ac_link) 2>&5
31076 ac_status=$?
31077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078 (exit $ac_status); } &&
31079 { ac_try='test -s conftest$ac_exeext'
31080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31081 (eval $ac_try) 2>&5
31082 ac_status=$?
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); }; }; then
31085 eval "$as_ac_var=yes"
31086else
31087 echo "$as_me: failed program was:" >&5
31088cat conftest.$ac_ext >&5
31089eval "$as_ac_var=no"
31090fi
31091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31092fi
31093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31095if test `eval echo '${'$as_ac_var'}'` = yes; then
31096 cat >>confdefs.h <<_ACEOF
31097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31098_ACEOF
31099
31100fi
31101done
31102
31103fi
31104# XauReadAuth
31105eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31106eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31107eval "LIB_XauReadAuth=$ac_res"
31108
31109case "$ac_res" in
31110 yes)
31111 eval "ac_cv_func_XauReadAuth=yes"
31112 eval "LIB_XauReadAuth="
31113 cat >>confdefs.h <<_ACEOF
31114#define $ac_tr_func 1
31115_ACEOF
31116
31117 echo "$as_me:$LINENO: result: yes" >&5
31118echo "${ECHO_T}yes" >&6
31119 ;;
31120 no)
31121 eval "ac_cv_func_XauReadAuth=no"
31122 eval "LIB_XauReadAuth="
31123 echo "$as_me:$LINENO: result: no" >&5
31124echo "${ECHO_T}no" >&6
31125 ;;
31126 *)
31127 eval "ac_cv_func_XauReadAuth=yes"
31128 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31129 cat >>confdefs.h <<_ACEOF
31130#define $ac_tr_func 1
31131_ACEOF
31132
31133 cat >>confdefs.h <<_ACEOF
31134#define $ac_tr_lib 1
31135_ACEOF
31136
31137 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31138echo "${ECHO_T}yes, in $ac_res" >&6
31139 ;;
31140esac
31141
31142
31143LIBS="$LIB_XauReadAauth $LIBS"
31144
31145
31146
31147echo "$as_me:$LINENO: checking for XauFileName" >&5
31148echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
31149if test "${ac_cv_funclib_XauFileName+set}" = set; then
31150 echo $ECHO_N "(cached) $ECHO_C" >&6
31151else
31152
31153if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
31154 ac_save_LIBS="$LIBS"
31155 for ac_lib in "" X11 Xau; do
31156 case "$ac_lib" in
31157 "") ;;
31158 yes) ac_lib="" ;;
31159 no) continue ;;
31160 -l*) ;;
31161 *) ac_lib="-l$ac_lib" ;;
31162 esac
31163 LIBS=" $ac_lib $ac_save_LIBS"
31164 cat >conftest.$ac_ext <<_ACEOF
31165#line $LINENO "configure"
31166#include "confdefs.h"
31167
31168#ifdef F77_DUMMY_MAIN
31169# ifdef __cplusplus
31170 extern "C"
31171# endif
31172 int F77_DUMMY_MAIN() { return 1; }
31173#endif
31174int
31175main ()
31176{
31177XauFileName()
31178 ;
31179 return 0;
31180}
31181_ACEOF
31182rm -f conftest.$ac_objext conftest$ac_exeext
31183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31184 (eval $ac_link) 2>&5
31185 ac_status=$?
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); } &&
31188 { ac_try='test -s conftest$ac_exeext'
31189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31190 (eval $ac_try) 2>&5
31191 ac_status=$?
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; }; then
31194 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
31195else
31196 echo "$as_me: failed program was:" >&5
31197cat conftest.$ac_ext >&5
31198fi
31199rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31200 done
31201 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
31202 LIBS="$ac_save_LIBS"
31203fi
31204
31205fi
31206
31207
31208eval "ac_res=\$ac_cv_funclib_XauFileName"
31209
31210if false; then
31211
31212for ac_func in XauFileName
31213do
31214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31215echo "$as_me:$LINENO: checking for $ac_func" >&5
31216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31217if eval "test \"\${$as_ac_var+set}\" = set"; then
31218 echo $ECHO_N "(cached) $ECHO_C" >&6
31219else
31220 cat >conftest.$ac_ext <<_ACEOF
31221#line $LINENO "configure"
31222#include "confdefs.h"
31223/* System header to define __stub macros and hopefully few prototypes,
31224 which can conflict with char $ac_func (); below. */
31225#include <assert.h>
31226/* Override any gcc2 internal prototype to avoid an error. */
31227#ifdef __cplusplus
31228extern "C"
31229#endif
31230/* We use char because int might match the return type of a gcc2
31231 builtin and then its argument prototype would still apply. */
31232char $ac_func ();
31233char (*f) ();
31234
31235#ifdef F77_DUMMY_MAIN
31236# ifdef __cplusplus
31237 extern "C"
31238# endif
31239 int F77_DUMMY_MAIN() { return 1; }
31240#endif
31241int
31242main ()
31243{
31244/* The GNU C library defines this for functions which it implements
31245 to always fail with ENOSYS. Some functions are actually named
31246 something starting with __ and the normal name is an alias. */
31247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31248choke me
31249#else
31250f = $ac_func;
31251#endif
31252
31253 ;
31254 return 0;
31255}
31256_ACEOF
31257rm -f conftest.$ac_objext conftest$ac_exeext
31258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31259 (eval $ac_link) 2>&5
31260 ac_status=$?
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } &&
31263 { ac_try='test -s conftest$ac_exeext'
31264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31265 (eval $ac_try) 2>&5
31266 ac_status=$?
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); }; }; then
31269 eval "$as_ac_var=yes"
31270else
31271 echo "$as_me: failed program was:" >&5
31272cat conftest.$ac_ext >&5
31273eval "$as_ac_var=no"
31274fi
31275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31276fi
31277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31279if test `eval echo '${'$as_ac_var'}'` = yes; then
31280 cat >>confdefs.h <<_ACEOF
31281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31282_ACEOF
31283
31284fi
31285done
31286
31287fi
31288# XauFileName
31289eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31290eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31291eval "LIB_XauFileName=$ac_res"
31292
31293case "$ac_res" in
31294 yes)
31295 eval "ac_cv_func_XauFileName=yes"
31296 eval "LIB_XauFileName="
31297 cat >>confdefs.h <<_ACEOF
31298#define $ac_tr_func 1
31299_ACEOF
31300
31301 echo "$as_me:$LINENO: result: yes" >&5
31302echo "${ECHO_T}yes" >&6
31303 ;;
31304 no)
31305 eval "ac_cv_func_XauFileName=no"
31306 eval "LIB_XauFileName="
31307 echo "$as_me:$LINENO: result: no" >&5
31308echo "${ECHO_T}no" >&6
31309 ;;
31310 *)
31311 eval "ac_cv_func_XauFileName=yes"
31312 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31313 cat >>confdefs.h <<_ACEOF
31314#define $ac_tr_func 1
31315_ACEOF
31316
31317 cat >>confdefs.h <<_ACEOF
31318#define $ac_tr_lib 1
31319_ACEOF
31320
31321 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31322echo "${ECHO_T}yes, in $ac_res" >&6
31323 ;;
31324esac
31325
31326
31327LIBS="$ac_xxx"
31328
31329case "$ac_cv_funclib_XauWriteAuth" in
31330yes) ;;
31331no) ;;
31332*) if test "$ac_cv_funclib_XauReadAuth" = yes; then
31333 if test "$ac_cv_funclib_XauFileName" = yes; then
31334 LIB_XauReadAuth="$LIB_XauWriteAuth"
31335 else
31336 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
31337 fi
31338 else
31339 if test "$ac_cv_funclib_XauFileName" = yes; then
31340 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
31341 else
31342 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
31343 fi
31344 fi
31345 ;;
31346esac
31347
31348if test "$AUTOMAKE" != ""; then
31349
31350
31351if test "$ac_cv_func_XauWriteAuth" != "yes"; then
31352 NEED_WRITEAUTH_TRUE=
31353 NEED_WRITEAUTH_FALSE='#'
31354else
31355 NEED_WRITEAUTH_TRUE='#'
31356 NEED_WRITEAUTH_FALSE=
31357fi
31358
31359else
31360
31361
31362 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
31363 NEED_WRITEAUTH_TRUE=
31364 NEED_WRITEAUTH_FALSE='#'
31365 else
31366 NEED_WRITEAUTH_TRUE='#'
31367 NEED_WRITEAUTH_FALSE=
31368 fi
31369fi
31370CFLAGS=$save_CFLAGS
31371LIBS=$save_LIBS
31372LDFLAGS=$save_LDFLAGS
31373
31374
31375
31376echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31377echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
31378if test "${ac_cv_c_const+set}" = set; then
31379 echo $ECHO_N "(cached) $ECHO_C" >&6
31380else
31381 cat >conftest.$ac_ext <<_ACEOF
31382#line $LINENO "configure"
31383#include "confdefs.h"
31384
31385#ifdef F77_DUMMY_MAIN
31386# ifdef __cplusplus
31387 extern "C"
31388# endif
31389 int F77_DUMMY_MAIN() { return 1; }
31390#endif
31391int
31392main ()
31393{
31394/* FIXME: Include the comments suggested by Paul. */
31395#ifndef __cplusplus
31396 /* Ultrix mips cc rejects this. */
31397 typedef int charset[2];
31398 const charset x;
31399 /* SunOS 4.1.1 cc rejects this. */
31400 char const *const *ccp;
31401 char **p;
31402 /* NEC SVR4.0.2 mips cc rejects this. */
31403 struct point {int x, y;};
31404 static struct point const zero = {0,0};
31405 /* AIX XL C 1.02.0.0 rejects this.
31406 It does not let you subtract one const X* pointer from another in
31407 an arm of an if-expression whose if-part is not a constant
31408 expression */
31409 const char *g = "string";
31410 ccp = &g + (g ? g-g : 0);
31411 /* HPUX 7.0 cc rejects these. */
31412 ++ccp;
31413 p = (char**) ccp;
31414 ccp = (char const *const *) p;
31415 { /* SCO 3.2v4 cc rejects this. */
31416 char *t;
31417 char const *s = 0 ? (char *) 0 : (char const *) 0;
31418
31419 *t++ = 0;
31420 }
31421 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
31422 int x[] = {25, 17};
31423 const int *foo = &x[0];
31424 ++foo;
31425 }
31426 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31427 typedef const int *iptr;
31428 iptr p = 0;
31429 ++p;
31430 }
31431 { /* AIX XL C 1.02.0.0 rejects this saying
31432 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31433 struct s { int j; const int *ap[3]; };
31434 struct s *b; b->j = 5;
31435 }
31436 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31437 const int foo = 10;
31438 }
31439#endif
31440
31441 ;
31442 return 0;
31443}
31444_ACEOF
31445rm -f conftest.$ac_objext
31446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31447 (eval $ac_compile) 2>&5
31448 ac_status=$?
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); } &&
31451 { ac_try='test -s conftest.$ac_objext'
31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453 (eval $ac_try) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; }; then
31457 ac_cv_c_const=yes
31458else
31459 echo "$as_me: failed program was:" >&5
31460cat conftest.$ac_ext >&5
31461ac_cv_c_const=no
31462fi
31463rm -f conftest.$ac_objext conftest.$ac_ext
31464fi
31465echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31466echo "${ECHO_T}$ac_cv_c_const" >&6
31467if test $ac_cv_c_const = no; then
31468
31469cat >>confdefs.h <<\_ACEOF
31470#define const
31471_ACEOF
31472
31473fi
31474
31475echo "$as_me:$LINENO: checking for off_t" >&5
31476echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31477if test "${ac_cv_type_off_t+set}" = set; then
31478 echo $ECHO_N "(cached) $ECHO_C" >&6
31479else
31480 cat >conftest.$ac_ext <<_ACEOF
31481#line $LINENO "configure"
31482#include "confdefs.h"
31483$ac_includes_default
31484#ifdef F77_DUMMY_MAIN
31485# ifdef __cplusplus
31486 extern "C"
31487# endif
31488 int F77_DUMMY_MAIN() { return 1; }
31489#endif
31490int
31491main ()
31492{
31493if ((off_t *) 0)
31494 return 0;
31495if (sizeof (off_t))
31496 return 0;
31497 ;
31498 return 0;
31499}
31500_ACEOF
31501rm -f conftest.$ac_objext
31502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31503 (eval $ac_compile) 2>&5
31504 ac_status=$?
31505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506 (exit $ac_status); } &&
31507 { ac_try='test -s conftest.$ac_objext'
31508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31509 (eval $ac_try) 2>&5
31510 ac_status=$?
31511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 (exit $ac_status); }; }; then
31513 ac_cv_type_off_t=yes
31514else
31515 echo "$as_me: failed program was:" >&5
31516cat conftest.$ac_ext >&5
31517ac_cv_type_off_t=no
31518fi
31519rm -f conftest.$ac_objext conftest.$ac_ext
31520fi
31521echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31522echo "${ECHO_T}$ac_cv_type_off_t" >&6
31523if test $ac_cv_type_off_t = yes; then
31524 :
31525else
31526
31527cat >>confdefs.h <<_ACEOF
31528#define off_t long
31529_ACEOF
31530
31531fi
31532
31533echo "$as_me:$LINENO: checking for mode_t" >&5
31534echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31535if test "${ac_cv_type_mode_t+set}" = set; then
31536 echo $ECHO_N "(cached) $ECHO_C" >&6
31537else
31538 cat >conftest.$ac_ext <<_ACEOF
31539#line $LINENO "configure"
31540#include "confdefs.h"
31541#include <sys/types.h>
31542#if STDC_HEADERS
31543#include <stdlib.h>
31544#include <stddef.h>
31545#endif
31546
31547_ACEOF
31548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31549 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31550 ac_cv_type_mode_t=yes
31551else
31552 ac_cv_type_mode_t=no
31553fi
31554rm -f conftest*
31555
31556fi
31557echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31558echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31559if test $ac_cv_type_mode_t = no; then
31560
31561cat >>confdefs.h <<\_ACEOF
31562#define mode_t unsigned short
31563_ACEOF
31564
31565fi
31566
31567echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
31568echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
31569if test "${ac_cv_type_sig_atomic_t+set}" = set; then
31570 echo $ECHO_N "(cached) $ECHO_C" >&6
31571else
31572 cat >conftest.$ac_ext <<_ACEOF
31573#line $LINENO "configure"
31574#include "confdefs.h"
31575#include <sys/types.h>
31576#if STDC_HEADERS
31577#include <stdlib.h>
31578#include <stddef.h>
31579#endif
31580#include <signal.h>
31581_ACEOF
31582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31583 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31584 ac_cv_type_sig_atomic_t=yes
31585else
31586 ac_cv_type_sig_atomic_t=no
31587fi
31588rm -f conftest*
31589
31590fi
31591echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
31592echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
31593if test $ac_cv_type_sig_atomic_t = no; then
31594
31595cat >>confdefs.h <<\_ACEOF
31596#define sig_atomic_t int
31597_ACEOF
31598
31599fi
31600
31601
31602
31603cv=`echo "long long" | sed 'y%./+- %__p__%'`
31604echo "$as_me:$LINENO: checking for long long" >&5
31605echo $ECHO_N "checking for long long... $ECHO_C" >&6
31606if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31608else
31609 cat >conftest.$ac_ext <<_ACEOF
31610#line $LINENO "configure"
31611#include "confdefs.h"
31612#include <sys/types.h>
31613#if STDC_HEADERS
31614#include <stdlib.h>
31615#include <stddef.h>
31616#endif
31617
31618#ifdef F77_DUMMY_MAIN
31619# ifdef __cplusplus
31620 extern "C"
31621# endif
31622 int F77_DUMMY_MAIN() { return 1; }
31623#endif
31624int
31625main ()
31626{
31627long long foo;
31628 ;
31629 return 0;
31630}
31631_ACEOF
31632rm -f conftest.$ac_objext
31633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31634 (eval $ac_compile) 2>&5
31635 ac_status=$?
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); } &&
31638 { ac_try='test -s conftest.$ac_objext'
31639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640 (eval $ac_try) 2>&5
31641 ac_status=$?
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); }; }; then
31644 eval "ac_cv_type_$cv=yes"
31645else
31646 echo "$as_me: failed program was:" >&5
31647cat conftest.$ac_ext >&5
31648eval "ac_cv_type_$cv=no"
31649fi
31650rm -f conftest.$ac_objext conftest.$ac_ext
31651fi
31652ac_foo=`eval echo \\$ac_cv_type_$cv`
31653echo "$as_me:$LINENO: result: $ac_foo" >&5
31654echo "${ECHO_T}$ac_foo" >&6
31655if test "$ac_foo" = yes; then
31656 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
31657if false; then
31658 echo "$as_me:$LINENO: checking for long long" >&5
31659echo $ECHO_N "checking for long long... $ECHO_C" >&6
31660if test "${ac_cv_type_long_long+set}" = set; then
31661 echo $ECHO_N "(cached) $ECHO_C" >&6
31662else
31663 cat >conftest.$ac_ext <<_ACEOF
31664#line $LINENO "configure"
31665#include "confdefs.h"
31666$ac_includes_default
31667#ifdef F77_DUMMY_MAIN
31668# ifdef __cplusplus
31669 extern "C"
31670# endif
31671 int F77_DUMMY_MAIN() { return 1; }
31672#endif
31673int
31674main ()
31675{
31676if ((long long *) 0)
31677 return 0;
31678if (sizeof (long long))
31679 return 0;
31680 ;
31681 return 0;
31682}
31683_ACEOF
31684rm -f conftest.$ac_objext
31685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31686 (eval $ac_compile) 2>&5
31687 ac_status=$?
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); } &&
31690 { ac_try='test -s conftest.$ac_objext'
31691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31692 (eval $ac_try) 2>&5
31693 ac_status=$?
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); }; }; then
31696 ac_cv_type_long_long=yes
31697else
31698 echo "$as_me: failed program was:" >&5
31699cat conftest.$ac_ext >&5
31700ac_cv_type_long_long=no
31701fi
31702rm -f conftest.$ac_objext conftest.$ac_ext
31703fi
31704echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31705echo "${ECHO_T}$ac_cv_type_long_long" >&6
31706if test $ac_cv_type_long_long = yes; then
31707
31708cat >>confdefs.h <<_ACEOF
31709#define HAVE_LONG_LONG 1
31710_ACEOF
31711
31712
31713fi
31714
31715fi
31716
31717cat >>confdefs.h <<_ACEOF
31718#define $ac_tr_hdr 1
31719_ACEOF
31720
31721fi
31722
31723echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31724echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
31725if test "${ac_cv_header_time+set}" = set; then
31726 echo $ECHO_N "(cached) $ECHO_C" >&6
31727else
31728 cat >conftest.$ac_ext <<_ACEOF
31729#line $LINENO "configure"
31730#include "confdefs.h"
31731#include <sys/types.h>
31732#include <sys/time.h>
31733#include <time.h>
31734
31735#ifdef F77_DUMMY_MAIN
31736# ifdef __cplusplus
31737 extern "C"
31738# endif
31739 int F77_DUMMY_MAIN() { return 1; }
31740#endif
31741int
31742main ()
31743{
31744if ((struct tm *) 0)
31745return 0;
31746 ;
31747 return 0;
31748}
31749_ACEOF
31750rm -f conftest.$ac_objext
31751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31752 (eval $ac_compile) 2>&5
31753 ac_status=$?
31754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31755 (exit $ac_status); } &&
31756 { ac_try='test -s conftest.$ac_objext'
31757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31758 (eval $ac_try) 2>&5
31759 ac_status=$?
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); }; }; then
31762 ac_cv_header_time=yes
31763else
31764 echo "$as_me: failed program was:" >&5
31765cat conftest.$ac_ext >&5
31766ac_cv_header_time=no
31767fi
31768rm -f conftest.$ac_objext conftest.$ac_ext
31769fi
31770echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31771echo "${ECHO_T}$ac_cv_header_time" >&6
31772if test $ac_cv_header_time = yes; then
31773
31774cat >>confdefs.h <<\_ACEOF
31775#define TIME_WITH_SYS_TIME 1
31776_ACEOF
31777
31778fi
31779
31780echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31781echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31782if test "${ac_cv_struct_tm+set}" = set; then
31783 echo $ECHO_N "(cached) $ECHO_C" >&6
31784else
31785 cat >conftest.$ac_ext <<_ACEOF
31786#line $LINENO "configure"
31787#include "confdefs.h"
31788#include <sys/types.h>
31789#include <time.h>
31790
31791#ifdef F77_DUMMY_MAIN
31792# ifdef __cplusplus
31793 extern "C"
31794# endif
31795 int F77_DUMMY_MAIN() { return 1; }
31796#endif
31797int
31798main ()
31799{
31800struct tm *tp; tp->tm_sec;
31801 ;
31802 return 0;
31803}
31804_ACEOF
31805rm -f conftest.$ac_objext
31806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31807 (eval $ac_compile) 2>&5
31808 ac_status=$?
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); } &&
31811 { ac_try='test -s conftest.$ac_objext'
31812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31813 (eval $ac_try) 2>&5
31814 ac_status=$?
31815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816 (exit $ac_status); }; }; then
31817 ac_cv_struct_tm=time.h
31818else
31819 echo "$as_me: failed program was:" >&5
31820cat conftest.$ac_ext >&5
31821ac_cv_struct_tm=sys/time.h
31822fi
31823rm -f conftest.$ac_objext conftest.$ac_ext
31824fi
31825echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31826echo "${ECHO_T}$ac_cv_struct_tm" >&6
31827if test $ac_cv_struct_tm = sys/time.h; then
31828
31829cat >>confdefs.h <<\_ACEOF
31830#define TM_IN_SYS_TIME 1
31831_ACEOF
31832
31833fi
31834
31835
31836echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31837echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31838if test "${ac_cv_header_stdc+set}" = set; then
31839 echo $ECHO_N "(cached) $ECHO_C" >&6
31840else
31841 cat >conftest.$ac_ext <<_ACEOF
31842#line $LINENO "configure"
31843#include "confdefs.h"
31844#include <stdlib.h>
31845#include <stdarg.h>
31846#include <string.h>
31847#include <float.h>
31848
31849_ACEOF
31850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31852 ac_status=$?
31853 egrep -v '^ *\+' conftest.er1 >conftest.err
31854 rm -f conftest.er1
31855 cat conftest.err >&5
31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857 (exit $ac_status); } >/dev/null; then
31858 if test -s conftest.err; then
31859 ac_cpp_err=$ac_c_preproc_warn_flag
31860 else
31861 ac_cpp_err=
31862 fi
31863else
31864 ac_cpp_err=yes
31865fi
31866if test -z "$ac_cpp_err"; then
31867 ac_cv_header_stdc=yes
31868else
31869 echo "$as_me: failed program was:" >&5
31870 cat conftest.$ac_ext >&5
31871 ac_cv_header_stdc=no
31872fi
31873rm -f conftest.err conftest.$ac_ext
31874
31875if test $ac_cv_header_stdc = yes; then
31876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31877 cat >conftest.$ac_ext <<_ACEOF
31878#line $LINENO "configure"
31879#include "confdefs.h"
31880#include <string.h>
31881
31882_ACEOF
31883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31884 egrep "memchr" >/dev/null 2>&1; then
31885 :
31886else
31887 ac_cv_header_stdc=no
31888fi
31889rm -f conftest*
31890
31891fi
31892
31893if test $ac_cv_header_stdc = yes; then
31894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31895 cat >conftest.$ac_ext <<_ACEOF
31896#line $LINENO "configure"
31897#include "confdefs.h"
31898#include <stdlib.h>
31899
31900_ACEOF
31901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31902 egrep "free" >/dev/null 2>&1; then
31903 :
31904else
31905 ac_cv_header_stdc=no
31906fi
31907rm -f conftest*
31908
31909fi
31910
31911if test $ac_cv_header_stdc = yes; then
31912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31913 if test "$cross_compiling" = yes; then
31914 :
31915else
31916 cat >conftest.$ac_ext <<_ACEOF
31917#line $LINENO "configure"
31918#include "confdefs.h"
31919#include <ctype.h>
31920#if ((' ' & 0x0FF) == 0x020)
31921# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31922# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31923#else
31924# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
31925 || ('j' <= (c) && (c) <= 'r') \
31926 || ('s' <= (c) && (c) <= 'z'))
31927# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31928#endif
31929
31930#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31931int
31932main ()
31933{
31934 int i;
31935 for (i = 0; i < 256; i++)
31936 if (XOR (islower (i), ISLOWER (i))
31937 || toupper (i) != TOUPPER (i))
31938 exit(2);
31939 exit (0);
31940}
31941_ACEOF
31942rm -f conftest$ac_exeext
31943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31944 (eval $ac_link) 2>&5
31945 ac_status=$?
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31949 (eval $ac_try) 2>&5
31950 ac_status=$?
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); }; }; then
31953 :
31954else
31955 echo "$as_me: program exited with status $ac_status" >&5
31956echo "$as_me: failed program was:" >&5
31957cat conftest.$ac_ext >&5
31958( exit $ac_status )
31959ac_cv_header_stdc=no
31960fi
31961rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31962fi
31963fi
31964fi
31965echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31966echo "${ECHO_T}$ac_cv_header_stdc" >&6
31967if test $ac_cv_header_stdc = yes; then
31968
31969cat >>confdefs.h <<\_ACEOF
31970#define STDC_HEADERS 1
31971_ACEOF
31972
31973fi
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989
31990
31991
31992
31993
31994
31995
31996
31997
31998
31999
32000
32001
32002
32003
32004
32005
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026for ac_header in \
32027 arpa/ftp.h \
32028 arpa/telnet.h \
32029 bind/bitypes.h \
32030 bsdsetjmp.h \
32031 curses.h \
32032 dlfcn.h \
32033 fnmatch.h \
32034 inttypes.h \
32035 io.h \
32036 libutil.h \
32037 limits.h \
32038 maillock.h \
32039 netgroup.h \
32040 netinet/in6_machtypes.h \
32041 netinfo/ni.h \
32042 pthread.h \
32043 pty.h \
32044 sac.h \
32045 security/pam_modules.h \
32046 sgtty.h \
32047 siad.h \
32048 signal.h \
32049 stropts.h \
32050 sys/bitypes.h \
32051 sys/category.h \
32052 sys/file.h \
32053 sys/filio.h \
32054 sys/ioccom.h \
32055 sys/mman.h \
32056 sys/pty.h \
32057 sys/ptyio.h \
32058 sys/ptyvar.h \
32059 sys/select.h \
32060 sys/str_tty.h \
32061 sys/stream.h \
32062 sys/stropts.h \
32063 sys/strtty.h \
32064 sys/syscall.h \
32065 sys/termio.h \
32066 sys/timeb.h \
32067 sys/times.h \
32068 sys/un.h \
32069 term.h \
32070 termcap.h \
32071 termio.h \
32072 time.h \
32073 tmpdir.h \
32074 udb.h \
32075 utmp.h \
32076 utmpx.h \
32077
32078do
32079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32080if eval "test \"\${$as_ac_Header+set}\" = set"; then
32081 echo "$as_me:$LINENO: checking for $ac_header" >&5
32082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32083if eval "test \"\${$as_ac_Header+set}\" = set"; then
32084 echo $ECHO_N "(cached) $ECHO_C" >&6
32085fi
32086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32088else
32089 # Is the header compilable?
32090echo "$as_me:$LINENO: checking $ac_header usability" >&5
32091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32092cat >conftest.$ac_ext <<_ACEOF
32093#line $LINENO "configure"
32094#include "confdefs.h"
32095$ac_includes_default
32096#include <$ac_header>
32097_ACEOF
32098rm -f conftest.$ac_objext
32099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32100 (eval $ac_compile) 2>&5
32101 ac_status=$?
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); } &&
32104 { ac_try='test -s conftest.$ac_objext'
32105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32106 (eval $ac_try) 2>&5
32107 ac_status=$?
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; }; then
32110 ac_header_compiler=yes
32111else
32112 echo "$as_me: failed program was:" >&5
32113cat conftest.$ac_ext >&5
32114ac_header_compiler=no
32115fi
32116rm -f conftest.$ac_objext conftest.$ac_ext
32117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32118echo "${ECHO_T}$ac_header_compiler" >&6
32119
32120# Is the header present?
32121echo "$as_me:$LINENO: checking $ac_header presence" >&5
32122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32123cat >conftest.$ac_ext <<_ACEOF
32124#line $LINENO "configure"
32125#include "confdefs.h"
32126#include <$ac_header>
32127_ACEOF
32128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32130 ac_status=$?
32131 egrep -v '^ *\+' conftest.er1 >conftest.err
32132 rm -f conftest.er1
32133 cat conftest.err >&5
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); } >/dev/null; then
32136 if test -s conftest.err; then
32137 ac_cpp_err=$ac_c_preproc_warn_flag
32138 else
32139 ac_cpp_err=
32140 fi
32141else
32142 ac_cpp_err=yes
32143fi
32144if test -z "$ac_cpp_err"; then
32145 ac_header_preproc=yes
32146else
32147 echo "$as_me: failed program was:" >&5
32148 cat conftest.$ac_ext >&5
32149 ac_header_preproc=no
32150fi
32151rm -f conftest.err conftest.$ac_ext
32152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32153echo "${ECHO_T}$ac_header_preproc" >&6
32154
32155# So? What about this header?
32156case $ac_header_compiler:$ac_header_preproc in
32157 yes:no )
32158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32162 no:yes )
32163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32166echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32169esac
32170echo "$as_me:$LINENO: checking for $ac_header" >&5
32171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32172if eval "test \"\${$as_ac_Header+set}\" = set"; then
32173 echo $ECHO_N "(cached) $ECHO_C" >&6
32174else
32175 eval "$as_ac_Header=$ac_header_preproc"
32176fi
32177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32179
32180fi
32181if test `eval echo '${'$as_ac_Header'}'` = yes; then
32182 cat >>confdefs.h <<_ACEOF
32183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32184_ACEOF
32185
32186fi
32187
32188done
32189
32190
32191# Check whether --enable-netinfo or --disable-netinfo was given.
32192if test "${enable_netinfo+set}" = set; then
32193 enableval="$enable_netinfo"
32194
32195fi;
32196
32197if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
32198
32199cat >>confdefs.h <<\_ACEOF
32200#define HAVE_NETINFO 1
32201_ACEOF
32202
32203fi
32204
32205
32206
32207
32208
32209echo "$as_me:$LINENO: checking for logwtmp" >&5
32210echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
32211if test "${ac_cv_funclib_logwtmp+set}" = set; then
32212 echo $ECHO_N "(cached) $ECHO_C" >&6
32213else
32214
32215if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
32216 ac_save_LIBS="$LIBS"
32217 for ac_lib in "" util; do
32218 case "$ac_lib" in
32219 "") ;;
32220 yes) ac_lib="" ;;
32221 no) continue ;;
32222 -l*) ;;
32223 *) ac_lib="-l$ac_lib" ;;
32224 esac
32225 LIBS=" $ac_lib $ac_save_LIBS"
32226 cat >conftest.$ac_ext <<_ACEOF
32227#line $LINENO "configure"
32228#include "confdefs.h"
32229
32230#ifdef F77_DUMMY_MAIN
32231# ifdef __cplusplus
32232 extern "C"
32233# endif
32234 int F77_DUMMY_MAIN() { return 1; }
32235#endif
32236int
32237main ()
32238{
32239logwtmp()
32240 ;
32241 return 0;
32242}
32243_ACEOF
32244rm -f conftest.$ac_objext conftest$ac_exeext
32245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32246 (eval $ac_link) 2>&5
32247 ac_status=$?
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); } &&
32250 { ac_try='test -s conftest$ac_exeext'
32251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32252 (eval $ac_try) 2>&5
32253 ac_status=$?
32254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255 (exit $ac_status); }; }; then
32256 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
32257else
32258 echo "$as_me: failed program was:" >&5
32259cat conftest.$ac_ext >&5
32260fi
32261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32262 done
32263 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
32264 LIBS="$ac_save_LIBS"
32265fi
32266
32267fi
32268
32269
32270eval "ac_res=\$ac_cv_funclib_logwtmp"
32271
32272if false; then
32273
32274for ac_func in logwtmp
32275do
32276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32277echo "$as_me:$LINENO: checking for $ac_func" >&5
32278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32279if eval "test \"\${$as_ac_var+set}\" = set"; then
32280 echo $ECHO_N "(cached) $ECHO_C" >&6
32281else
32282 cat >conftest.$ac_ext <<_ACEOF
32283#line $LINENO "configure"
32284#include "confdefs.h"
32285/* System header to define __stub macros and hopefully few prototypes,
32286 which can conflict with char $ac_func (); below. */
32287#include <assert.h>
32288/* Override any gcc2 internal prototype to avoid an error. */
32289#ifdef __cplusplus
32290extern "C"
32291#endif
32292/* We use char because int might match the return type of a gcc2
32293 builtin and then its argument prototype would still apply. */
32294char $ac_func ();
32295char (*f) ();
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{
32306/* The GNU C library defines this for functions which it implements
32307 to always fail with ENOSYS. Some functions are actually named
32308 something starting with __ and the normal name is an alias. */
32309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32310choke me
32311#else
32312f = $ac_func;
32313#endif
32314
32315 ;
32316 return 0;
32317}
32318_ACEOF
32319rm -f conftest.$ac_objext conftest$ac_exeext
32320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32321 (eval $ac_link) 2>&5
32322 ac_status=$?
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); } &&
32325 { ac_try='test -s conftest$ac_exeext'
32326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32327 (eval $ac_try) 2>&5
32328 ac_status=$?
32329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32330 (exit $ac_status); }; }; then
32331 eval "$as_ac_var=yes"
32332else
32333 echo "$as_me: failed program was:" >&5
32334cat conftest.$ac_ext >&5
32335eval "$as_ac_var=no"
32336fi
32337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32338fi
32339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32341if test `eval echo '${'$as_ac_var'}'` = yes; then
32342 cat >>confdefs.h <<_ACEOF
32343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32344_ACEOF
32345
32346fi
32347done
32348
32349fi
32350# logwtmp
32351eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32352eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32353eval "LIB_logwtmp=$ac_res"
32354
32355case "$ac_res" in
32356 yes)
32357 eval "ac_cv_func_logwtmp=yes"
32358 eval "LIB_logwtmp="
32359 cat >>confdefs.h <<_ACEOF
32360#define $ac_tr_func 1
32361_ACEOF
32362
32363 echo "$as_me:$LINENO: result: yes" >&5
32364echo "${ECHO_T}yes" >&6
32365 ;;
32366 no)
32367 eval "ac_cv_func_logwtmp=no"
32368 eval "LIB_logwtmp="
32369 echo "$as_me:$LINENO: result: no" >&5
32370echo "${ECHO_T}no" >&6
32371 ;;
32372 *)
32373 eval "ac_cv_func_logwtmp=yes"
32374 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32375 cat >>confdefs.h <<_ACEOF
32376#define $ac_tr_func 1
32377_ACEOF
32378
32379 cat >>confdefs.h <<_ACEOF
32380#define $ac_tr_lib 1
32381_ACEOF
32382
32383 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32384echo "${ECHO_T}yes, in $ac_res" >&6
32385 ;;
32386esac
32387
32388
32389
32390
32391
32392echo "$as_me:$LINENO: checking for logout" >&5
32393echo $ECHO_N "checking for logout... $ECHO_C" >&6
32394if test "${ac_cv_funclib_logout+set}" = set; then
32395 echo $ECHO_N "(cached) $ECHO_C" >&6
32396else
32397
32398if eval "test \"\$ac_cv_func_logout\" != yes" ; then
32399 ac_save_LIBS="$LIBS"
32400 for ac_lib in "" util; do
32401 case "$ac_lib" in
32402 "") ;;
32403 yes) ac_lib="" ;;
32404 no) continue ;;
32405 -l*) ;;
32406 *) ac_lib="-l$ac_lib" ;;
32407 esac
32408 LIBS=" $ac_lib $ac_save_LIBS"
32409 cat >conftest.$ac_ext <<_ACEOF
32410#line $LINENO "configure"
32411#include "confdefs.h"
32412
32413#ifdef F77_DUMMY_MAIN
32414# ifdef __cplusplus
32415 extern "C"
32416# endif
32417 int F77_DUMMY_MAIN() { return 1; }
32418#endif
32419int
32420main ()
32421{
32422logout()
32423 ;
32424 return 0;
32425}
32426_ACEOF
32427rm -f conftest.$ac_objext conftest$ac_exeext
32428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32429 (eval $ac_link) 2>&5
32430 ac_status=$?
32431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432 (exit $ac_status); } &&
32433 { ac_try='test -s conftest$ac_exeext'
32434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32435 (eval $ac_try) 2>&5
32436 ac_status=$?
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; }; then
32439 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
32440else
32441 echo "$as_me: failed program was:" >&5
32442cat conftest.$ac_ext >&5
32443fi
32444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32445 done
32446 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
32447 LIBS="$ac_save_LIBS"
32448fi
32449
32450fi
32451
32452
32453eval "ac_res=\$ac_cv_funclib_logout"
32454
32455if false; then
32456
32457for ac_func in logout
32458do
32459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32460echo "$as_me:$LINENO: checking for $ac_func" >&5
32461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32462if eval "test \"\${$as_ac_var+set}\" = set"; then
32463 echo $ECHO_N "(cached) $ECHO_C" >&6
32464else
32465 cat >conftest.$ac_ext <<_ACEOF
32466#line $LINENO "configure"
32467#include "confdefs.h"
32468/* System header to define __stub macros and hopefully few prototypes,
32469 which can conflict with char $ac_func (); below. */
32470#include <assert.h>
32471/* Override any gcc2 internal prototype to avoid an error. */
32472#ifdef __cplusplus
32473extern "C"
32474#endif
32475/* We use char because int might match the return type of a gcc2
32476 builtin and then its argument prototype would still apply. */
32477char $ac_func ();
32478char (*f) ();
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{
32489/* The GNU C library defines this for functions which it implements
32490 to always fail with ENOSYS. Some functions are actually named
32491 something starting with __ and the normal name is an alias. */
32492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32493choke me
32494#else
32495f = $ac_func;
32496#endif
32497
32498 ;
32499 return 0;
32500}
32501_ACEOF
32502rm -f conftest.$ac_objext conftest$ac_exeext
32503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32504 (eval $ac_link) 2>&5
32505 ac_status=$?
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); } &&
32508 { ac_try='test -s conftest$ac_exeext'
32509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32510 (eval $ac_try) 2>&5
32511 ac_status=$?
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); }; }; then
32514 eval "$as_ac_var=yes"
32515else
32516 echo "$as_me: failed program was:" >&5
32517cat conftest.$ac_ext >&5
32518eval "$as_ac_var=no"
32519fi
32520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32521fi
32522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32523echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32524if test `eval echo '${'$as_ac_var'}'` = yes; then
32525 cat >>confdefs.h <<_ACEOF
32526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32527_ACEOF
32528
32529fi
32530done
32531
32532fi
32533# logout
32534eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32535eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32536eval "LIB_logout=$ac_res"
32537
32538case "$ac_res" in
32539 yes)
32540 eval "ac_cv_func_logout=yes"
32541 eval "LIB_logout="
32542 cat >>confdefs.h <<_ACEOF
32543#define $ac_tr_func 1
32544_ACEOF
32545
32546 echo "$as_me:$LINENO: result: yes" >&5
32547echo "${ECHO_T}yes" >&6
32548 ;;
32549 no)
32550 eval "ac_cv_func_logout=no"
32551 eval "LIB_logout="
32552 echo "$as_me:$LINENO: result: no" >&5
32553echo "${ECHO_T}no" >&6
32554 ;;
32555 *)
32556 eval "ac_cv_func_logout=yes"
32557 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32558 cat >>confdefs.h <<_ACEOF
32559#define $ac_tr_func 1
32560_ACEOF
32561
32562 cat >>confdefs.h <<_ACEOF
32563#define $ac_tr_lib 1
32564_ACEOF
32565
32566 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32567echo "${ECHO_T}yes, in $ac_res" >&6
32568 ;;
32569esac
32570
32571
32572
32573
32574
32575echo "$as_me:$LINENO: checking for openpty" >&5
32576echo $ECHO_N "checking for openpty... $ECHO_C" >&6
32577if test "${ac_cv_funclib_openpty+set}" = set; then
32578 echo $ECHO_N "(cached) $ECHO_C" >&6
32579else
32580
32581if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
32582 ac_save_LIBS="$LIBS"
32583 for ac_lib in "" util; do
32584 case "$ac_lib" in
32585 "") ;;
32586 yes) ac_lib="" ;;
32587 no) continue ;;
32588 -l*) ;;
32589 *) ac_lib="-l$ac_lib" ;;
32590 esac
32591 LIBS=" $ac_lib $ac_save_LIBS"
32592 cat >conftest.$ac_ext <<_ACEOF
32593#line $LINENO "configure"
32594#include "confdefs.h"
32595
32596#ifdef F77_DUMMY_MAIN
32597# ifdef __cplusplus
32598 extern "C"
32599# endif
32600 int F77_DUMMY_MAIN() { return 1; }
32601#endif
32602int
32603main ()
32604{
32605openpty()
32606 ;
32607 return 0;
32608}
32609_ACEOF
32610rm -f conftest.$ac_objext conftest$ac_exeext
32611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32612 (eval $ac_link) 2>&5
32613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); } &&
32616 { ac_try='test -s conftest$ac_exeext'
32617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32618 (eval $ac_try) 2>&5
32619 ac_status=$?
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); }; }; then
32622 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
32623else
32624 echo "$as_me: failed program was:" >&5
32625cat conftest.$ac_ext >&5
32626fi
32627rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32628 done
32629 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
32630 LIBS="$ac_save_LIBS"
32631fi
32632
32633fi
32634
32635
32636eval "ac_res=\$ac_cv_funclib_openpty"
32637
32638if false; then
32639
32640for ac_func in openpty
32641do
32642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32643echo "$as_me:$LINENO: checking for $ac_func" >&5
32644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32645if eval "test \"\${$as_ac_var+set}\" = set"; then
32646 echo $ECHO_N "(cached) $ECHO_C" >&6
32647else
32648 cat >conftest.$ac_ext <<_ACEOF
32649#line $LINENO "configure"
32650#include "confdefs.h"
32651/* System header to define __stub macros and hopefully few prototypes,
32652 which can conflict with char $ac_func (); below. */
32653#include <assert.h>
32654/* Override any gcc2 internal prototype to avoid an error. */
32655#ifdef __cplusplus
32656extern "C"
32657#endif
32658/* We use char because int might match the return type of a gcc2
32659 builtin and then its argument prototype would still apply. */
32660char $ac_func ();
32661char (*f) ();
32662
32663#ifdef F77_DUMMY_MAIN
32664# ifdef __cplusplus
32665 extern "C"
32666# endif
32667 int F77_DUMMY_MAIN() { return 1; }
32668#endif
32669int
32670main ()
32671{
32672/* The GNU C library defines this for functions which it implements
32673 to always fail with ENOSYS. Some functions are actually named
32674 something starting with __ and the normal name is an alias. */
32675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32676choke me
32677#else
32678f = $ac_func;
32679#endif
32680
32681 ;
32682 return 0;
32683}
32684_ACEOF
32685rm -f conftest.$ac_objext conftest$ac_exeext
32686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32687 (eval $ac_link) 2>&5
32688 ac_status=$?
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); } &&
32691 { ac_try='test -s conftest$ac_exeext'
32692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32693 (eval $ac_try) 2>&5
32694 ac_status=$?
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); }; }; then
32697 eval "$as_ac_var=yes"
32698else
32699 echo "$as_me: failed program was:" >&5
32700cat conftest.$ac_ext >&5
32701eval "$as_ac_var=no"
32702fi
32703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32704fi
32705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32707if test `eval echo '${'$as_ac_var'}'` = yes; then
32708 cat >>confdefs.h <<_ACEOF
32709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32710_ACEOF
32711
32712fi
32713done
32714
32715fi
32716# openpty
32717eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32718eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32719eval "LIB_openpty=$ac_res"
32720
32721case "$ac_res" in
32722 yes)
32723 eval "ac_cv_func_openpty=yes"
32724 eval "LIB_openpty="
32725 cat >>confdefs.h <<_ACEOF
32726#define $ac_tr_func 1
32727_ACEOF
32728
32729 echo "$as_me:$LINENO: result: yes" >&5
32730echo "${ECHO_T}yes" >&6
32731 ;;
32732 no)
32733 eval "ac_cv_func_openpty=no"
32734 eval "LIB_openpty="
32735 echo "$as_me:$LINENO: result: no" >&5
32736echo "${ECHO_T}no" >&6
32737 ;;
32738 *)
32739 eval "ac_cv_func_openpty=yes"
32740 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32741 cat >>confdefs.h <<_ACEOF
32742#define $ac_tr_func 1
32743_ACEOF
32744
32745 cat >>confdefs.h <<_ACEOF
32746#define $ac_tr_lib 1
32747_ACEOF
32748
32749 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32750echo "${ECHO_T}yes, in $ac_res" >&6
32751 ;;
32752esac
32753
32754
32755
32756
32757
32758echo "$as_me:$LINENO: checking for tgetent" >&5
32759echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
32760if test "${ac_cv_funclib_tgetent+set}" = set; then
32761 echo $ECHO_N "(cached) $ECHO_C" >&6
32762else
32763
32764if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
32765 ac_save_LIBS="$LIBS"
32766 for ac_lib in "" termcap ncurses curses; do
32767 case "$ac_lib" in
32768 "") ;;
32769 yes) ac_lib="" ;;
32770 no) continue ;;
32771 -l*) ;;
32772 *) ac_lib="-l$ac_lib" ;;
32773 esac
32774 LIBS=" $ac_lib $ac_save_LIBS"
32775 cat >conftest.$ac_ext <<_ACEOF
32776#line $LINENO "configure"
32777#include "confdefs.h"
32778
32779#ifdef F77_DUMMY_MAIN
32780# ifdef __cplusplus
32781 extern "C"
32782# endif
32783 int F77_DUMMY_MAIN() { return 1; }
32784#endif
32785int
32786main ()
32787{
32788tgetent()
32789 ;
32790 return 0;
32791}
32792_ACEOF
32793rm -f conftest.$ac_objext conftest$ac_exeext
32794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32795 (eval $ac_link) 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); } &&
32799 { ac_try='test -s conftest$ac_exeext'
32800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32801 (eval $ac_try) 2>&5
32802 ac_status=$?
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); }; }; then
32805 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
32806else
32807 echo "$as_me: failed program was:" >&5
32808cat conftest.$ac_ext >&5
32809fi
32810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32811 done
32812 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
32813 LIBS="$ac_save_LIBS"
32814fi
32815
32816fi
32817
32818
32819eval "ac_res=\$ac_cv_funclib_tgetent"
32820
32821if false; then
32822
32823for ac_func in tgetent
32824do
32825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32826echo "$as_me:$LINENO: checking for $ac_func" >&5
32827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32828if eval "test \"\${$as_ac_var+set}\" = set"; then
32829 echo $ECHO_N "(cached) $ECHO_C" >&6
32830else
32831 cat >conftest.$ac_ext <<_ACEOF
32832#line $LINENO "configure"
32833#include "confdefs.h"
32834/* System header to define __stub macros and hopefully few prototypes,
32835 which can conflict with char $ac_func (); below. */
32836#include <assert.h>
32837/* Override any gcc2 internal prototype to avoid an error. */
32838#ifdef __cplusplus
32839extern "C"
32840#endif
32841/* We use char because int might match the return type of a gcc2
32842 builtin and then its argument prototype would still apply. */
32843char $ac_func ();
32844char (*f) ();
32845
32846#ifdef F77_DUMMY_MAIN
32847# ifdef __cplusplus
32848 extern "C"
32849# endif
32850 int F77_DUMMY_MAIN() { return 1; }
32851#endif
32852int
32853main ()
32854{
32855/* The GNU C library defines this for functions which it implements
32856 to always fail with ENOSYS. Some functions are actually named
32857 something starting with __ and the normal name is an alias. */
32858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32859choke me
32860#else
32861f = $ac_func;
32862#endif
32863
32864 ;
32865 return 0;
32866}
32867_ACEOF
32868rm -f conftest.$ac_objext conftest$ac_exeext
32869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32870 (eval $ac_link) 2>&5
32871 ac_status=$?
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); } &&
32874 { ac_try='test -s conftest$ac_exeext'
32875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32876 (eval $ac_try) 2>&5
32877 ac_status=$?
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; }; then
32880 eval "$as_ac_var=yes"
32881else
32882 echo "$as_me: failed program was:" >&5
32883cat conftest.$ac_ext >&5
32884eval "$as_ac_var=no"
32885fi
32886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32887fi
32888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32890if test `eval echo '${'$as_ac_var'}'` = yes; then
32891 cat >>confdefs.h <<_ACEOF
32892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32893_ACEOF
32894
32895fi
32896done
32897
32898fi
32899# tgetent
32900eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32901eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32902eval "LIB_tgetent=$ac_res"
32903
32904case "$ac_res" in
32905 yes)
32906 eval "ac_cv_func_tgetent=yes"
32907 eval "LIB_tgetent="
32908 cat >>confdefs.h <<_ACEOF
32909#define $ac_tr_func 1
32910_ACEOF
32911
32912 echo "$as_me:$LINENO: result: yes" >&5
32913echo "${ECHO_T}yes" >&6
32914 ;;
32915 no)
32916 eval "ac_cv_func_tgetent=no"
32917 eval "LIB_tgetent="
32918 echo "$as_me:$LINENO: result: no" >&5
32919echo "${ECHO_T}no" >&6
32920 ;;
32921 *)
32922 eval "ac_cv_func_tgetent=yes"
32923 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32924 cat >>confdefs.h <<_ACEOF
32925#define $ac_tr_func 1
32926_ACEOF
32927
32928 cat >>confdefs.h <<_ACEOF
32929#define $ac_tr_lib 1
32930_ACEOF
32931
32932 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32933echo "${ECHO_T}yes, in $ac_res" >&6
32934 ;;
32935esac
32936
32937
32938
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
32966
32967
32968for ac_func in \
32969 _getpty \
32970 _scrsize \
32971 fcntl \
32972 grantpt \
32973 mktime \
32974 ptsname \
32975 rand \
32976 revoke \
32977 select \
32978 setitimer \
32979 setpcred \
32980 setpgid \
32981 setproctitle \
32982 setregid \
32983 setresgid \
32984 setresuid \
32985 setreuid \
32986 setsid \
32987 setutent \
32988 sigaction \
32989 strstr \
32990 timegm \
32991 ttyname \
32992 ttyslot \
32993 umask \
32994 unlockpt \
32995 vhangup \
32996 yp_get_default_domain \
32997
32998do
32999as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33000echo "$as_me:$LINENO: checking for $ac_func" >&5
33001echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33002if eval "test \"\${$as_ac_var+set}\" = set"; then
33003 echo $ECHO_N "(cached) $ECHO_C" >&6
33004else
33005 cat >conftest.$ac_ext <<_ACEOF
33006#line $LINENO "configure"
33007#include "confdefs.h"
33008/* System header to define __stub macros and hopefully few prototypes,
33009 which can conflict with char $ac_func (); below. */
33010#include <assert.h>
33011/* Override any gcc2 internal prototype to avoid an error. */
33012#ifdef __cplusplus
33013extern "C"
33014#endif
33015/* We use char because int might match the return type of a gcc2
33016 builtin and then its argument prototype would still apply. */
33017char $ac_func ();
33018char (*f) ();
33019
33020#ifdef F77_DUMMY_MAIN
33021# ifdef __cplusplus
33022 extern "C"
33023# endif
33024 int F77_DUMMY_MAIN() { return 1; }
33025#endif
33026int
33027main ()
33028{
33029/* The GNU C library defines this for functions which it implements
33030 to always fail with ENOSYS. Some functions are actually named
33031 something starting with __ and the normal name is an alias. */
33032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33033choke me
33034#else
33035f = $ac_func;
33036#endif
33037
33038 ;
33039 return 0;
33040}
33041_ACEOF
33042rm -f conftest.$ac_objext conftest$ac_exeext
33043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33044 (eval $ac_link) 2>&5
33045 ac_status=$?
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } &&
33048 { ac_try='test -s conftest$ac_exeext'
33049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050 (eval $ac_try) 2>&5
33051 ac_status=$?
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; }; then
33054 eval "$as_ac_var=yes"
33055else
33056 echo "$as_me: failed program was:" >&5
33057cat conftest.$ac_ext >&5
33058eval "$as_ac_var=no"
33059fi
33060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33061fi
33062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33064if test `eval echo '${'$as_ac_var'}'` = yes; then
33065 cat >>confdefs.h <<_ACEOF
33066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33067_ACEOF
33068
33069fi
33070done
33071
33072
33073
33074
33075for ac_header in stdlib.h unistd.h
33076do
33077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33078if eval "test \"\${$as_ac_Header+set}\" = set"; then
33079 echo "$as_me:$LINENO: checking for $ac_header" >&5
33080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33081if eval "test \"\${$as_ac_Header+set}\" = set"; then
33082 echo $ECHO_N "(cached) $ECHO_C" >&6
33083fi
33084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33086else
33087 # Is the header compilable?
33088echo "$as_me:$LINENO: checking $ac_header usability" >&5
33089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33090cat >conftest.$ac_ext <<_ACEOF
33091#line $LINENO "configure"
33092#include "confdefs.h"
33093$ac_includes_default
33094#include <$ac_header>
33095_ACEOF
33096rm -f conftest.$ac_objext
33097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33098 (eval $ac_compile) 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); } &&
33102 { ac_try='test -s conftest.$ac_objext'
33103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33104 (eval $ac_try) 2>&5
33105 ac_status=$?
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); }; }; then
33108 ac_header_compiler=yes
33109else
33110 echo "$as_me: failed program was:" >&5
33111cat conftest.$ac_ext >&5
33112ac_header_compiler=no
33113fi
33114rm -f conftest.$ac_objext conftest.$ac_ext
33115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33116echo "${ECHO_T}$ac_header_compiler" >&6
33117
33118# Is the header present?
33119echo "$as_me:$LINENO: checking $ac_header presence" >&5
33120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33121cat >conftest.$ac_ext <<_ACEOF
33122#line $LINENO "configure"
33123#include "confdefs.h"
33124#include <$ac_header>
33125_ACEOF
33126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33128 ac_status=$?
33129 egrep -v '^ *\+' conftest.er1 >conftest.err
33130 rm -f conftest.er1
33131 cat conftest.err >&5
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); } >/dev/null; then
33134 if test -s conftest.err; then
33135 ac_cpp_err=$ac_c_preproc_warn_flag
33136 else
33137 ac_cpp_err=
33138 fi
33139else
33140 ac_cpp_err=yes
33141fi
33142if test -z "$ac_cpp_err"; then
33143 ac_header_preproc=yes
33144else
33145 echo "$as_me: failed program was:" >&5
33146 cat conftest.$ac_ext >&5
33147 ac_header_preproc=no
33148fi
33149rm -f conftest.err conftest.$ac_ext
33150echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33151echo "${ECHO_T}$ac_header_preproc" >&6
33152
33153# So? What about this header?
33154case $ac_header_compiler:$ac_header_preproc in
33155 yes:no )
33156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33159echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33160 no:yes )
33161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33167esac
33168echo "$as_me:$LINENO: checking for $ac_header" >&5
33169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33170if eval "test \"\${$as_ac_Header+set}\" = set"; then
33171 echo $ECHO_N "(cached) $ECHO_C" >&6
33172else
33173 eval "$as_ac_Header=$ac_header_preproc"
33174fi
33175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33177
33178fi
33179if test `eval echo '${'$as_ac_Header'}'` = yes; then
33180 cat >>confdefs.h <<_ACEOF
33181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33182_ACEOF
33183
33184fi
33185
33186done
33187
33188
33189for ac_func in getpagesize
33190do
33191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33192echo "$as_me:$LINENO: checking for $ac_func" >&5
33193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33194if eval "test \"\${$as_ac_var+set}\" = set"; then
33195 echo $ECHO_N "(cached) $ECHO_C" >&6
33196else
33197 cat >conftest.$ac_ext <<_ACEOF
33198#line $LINENO "configure"
33199#include "confdefs.h"
33200/* System header to define __stub macros and hopefully few prototypes,
33201 which can conflict with char $ac_func (); below. */
33202#include <assert.h>
33203/* Override any gcc2 internal prototype to avoid an error. */
33204#ifdef __cplusplus
33205extern "C"
33206#endif
33207/* We use char because int might match the return type of a gcc2
33208 builtin and then its argument prototype would still apply. */
33209char $ac_func ();
33210char (*f) ();
33211
33212#ifdef F77_DUMMY_MAIN
33213# ifdef __cplusplus
33214 extern "C"
33215# endif
33216 int F77_DUMMY_MAIN() { return 1; }
33217#endif
33218int
33219main ()
33220{
33221/* The GNU C library defines this for functions which it implements
33222 to always fail with ENOSYS. Some functions are actually named
33223 something starting with __ and the normal name is an alias. */
33224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33225choke me
33226#else
33227f = $ac_func;
33228#endif
33229
33230 ;
33231 return 0;
33232}
33233_ACEOF
33234rm -f conftest.$ac_objext conftest$ac_exeext
33235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33236 (eval $ac_link) 2>&5
33237 ac_status=$?
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); } &&
33240 { ac_try='test -s conftest$ac_exeext'
33241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33242 (eval $ac_try) 2>&5
33243 ac_status=$?
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); }; }; then
33246 eval "$as_ac_var=yes"
33247else
33248 echo "$as_me: failed program was:" >&5
33249cat conftest.$ac_ext >&5
33250eval "$as_ac_var=no"
33251fi
33252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33253fi
33254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33256if test `eval echo '${'$as_ac_var'}'` = yes; then
33257 cat >>confdefs.h <<_ACEOF
33258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33259_ACEOF
33260
33261fi
33262done
33263
33264echo "$as_me:$LINENO: checking for working mmap" >&5
33265echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
33266if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33267 echo $ECHO_N "(cached) $ECHO_C" >&6
33268else
33269 if test "$cross_compiling" = yes; then
33270 ac_cv_func_mmap_fixed_mapped=no
33271else
33272 cat >conftest.$ac_ext <<_ACEOF
33273#line $LINENO "configure"
33274#include "confdefs.h"
33275$ac_includes_default
33276/* malloc might have been renamed as rpl_malloc. */
33277#undef malloc
33278
33279/* Thanks to Mike Haertel and Jim Avera for this test.
33280 Here is a matrix of mmap possibilities:
33281 mmap private not fixed
33282 mmap private fixed at somewhere currently unmapped
33283 mmap private fixed at somewhere already mapped
33284 mmap shared not fixed
33285 mmap shared fixed at somewhere currently unmapped
33286 mmap shared fixed at somewhere already mapped
33287 For private mappings, we should verify that changes cannot be read()
33288 back from the file, nor mmap's back from the file at a different
33289 address. (There have been systems where private was not correctly
33290 implemented like the infamous i386 svr4.0, and systems where the
33291 VM page cache was not coherent with the file system buffer cache
33292 like early versions of FreeBSD and possibly contemporary NetBSD.)
33293 For shared mappings, we should conversely verify that changes get
33294 propagated back to all the places they're supposed to be.
33295
33296 Grep wants private fixed already mapped.
33297 The main things grep needs to know about mmap are:
33298 * does it exist and is it safe to write into the mmap'd area
33299 * how to use it (BSD variants) */
33300
33301#include <fcntl.h>
33302#include <sys/mman.h>
33303
33304#if !STDC_HEADERS && !HAVE_STDLIB_H
33305char *malloc ();
33306#endif
33307
33308/* This mess was copied from the GNU getpagesize.h. */
33309#if !HAVE_GETPAGESIZE
33310/* Assume that all systems that can run configure have sys/param.h. */
33311# if !HAVE_SYS_PARAM_H
33312# define HAVE_SYS_PARAM_H 1
33313# endif
33314
33315# ifdef _SC_PAGESIZE
33316# define getpagesize() sysconf(_SC_PAGESIZE)
33317# else /* no _SC_PAGESIZE */
33318# if HAVE_SYS_PARAM_H
33319# include <sys/param.h>
33320# ifdef EXEC_PAGESIZE
33321# define getpagesize() EXEC_PAGESIZE
33322# else /* no EXEC_PAGESIZE */
33323# ifdef NBPG
33324# define getpagesize() NBPG * CLSIZE
33325# ifndef CLSIZE
33326# define CLSIZE 1
33327# endif /* no CLSIZE */
33328# else /* no NBPG */
33329# ifdef NBPC
33330# define getpagesize() NBPC
33331# else /* no NBPC */
33332# ifdef PAGESIZE
33333# define getpagesize() PAGESIZE
33334# endif /* PAGESIZE */
33335# endif /* no NBPC */
33336# endif /* no NBPG */
33337# endif /* no EXEC_PAGESIZE */
33338# else /* no HAVE_SYS_PARAM_H */
33339# define getpagesize() 8192 /* punt totally */
33340# endif /* no HAVE_SYS_PARAM_H */
33341# endif /* no _SC_PAGESIZE */
33342
33343#endif /* no HAVE_GETPAGESIZE */
33344
33345int
33346main ()
33347{
33348 char *data, *data2, *data3;
33349 int i, pagesize;
33350 int fd;
33351
33352 pagesize = getpagesize ();
33353
33354 /* First, make a file with some known garbage in it. */
33355 data = (char *) malloc (pagesize);
33356 if (!data)
33357 exit (1);
33358 for (i = 0; i < pagesize; ++i)
33359 *(data + i) = rand ();
33360 umask (0);
33361 fd = creat ("conftest.mmap", 0600);
33362 if (fd < 0)
33363 exit (1);
33364 if (write (fd, data, pagesize) != pagesize)
33365 exit (1);
33366 close (fd);
33367
33368 /* Next, try to mmap the file at a fixed address which already has
33369 something else allocated at it. If we can, also make sure that
33370 we see the same garbage. */
33371 fd = open ("conftest.mmap", O_RDWR);
33372 if (fd < 0)
33373 exit (1);
33374 data2 = (char *) malloc (2 * pagesize);
33375 if (!data2)
33376 exit (1);
33377 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
33378 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33379 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33380 exit (1);
33381 for (i = 0; i < pagesize; ++i)
33382 if (*(data + i) != *(data2 + i))
33383 exit (1);
33384
33385 /* Finally, make sure that changes to the mapped area do not
33386 percolate back to the file as seen by read(). (This is a bug on
33387 some variants of i386 svr4.0.) */
33388 for (i = 0; i < pagesize; ++i)
33389 *(data2 + i) = *(data2 + i) + 1;
33390 data3 = (char *) malloc (pagesize);
33391 if (!data3)
33392 exit (1);
33393 if (read (fd, data3, pagesize) != pagesize)
33394 exit (1);
33395 for (i = 0; i < pagesize; ++i)
33396 if (*(data + i) != *(data3 + i))
33397 exit (1);
33398 close (fd);
33399 exit (0);
33400}
33401_ACEOF
33402rm -f conftest$ac_exeext
33403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33404 (eval $ac_link) 2>&5
33405 ac_status=$?
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409 (eval $ac_try) 2>&5
33410 ac_status=$?
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); }; }; then
33413 ac_cv_func_mmap_fixed_mapped=yes
33414else
33415 echo "$as_me: program exited with status $ac_status" >&5
33416echo "$as_me: failed program was:" >&5
33417cat conftest.$ac_ext >&5
33418( exit $ac_status )
33419ac_cv_func_mmap_fixed_mapped=no
33420fi
33421rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33422fi
33423fi
33424echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33425echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
33426if test $ac_cv_func_mmap_fixed_mapped = yes; then
33427
33428cat >>confdefs.h <<\_ACEOF
33429#define HAVE_MMAP 1
33430_ACEOF
33431
33432fi
33433rm -f conftest.mmap
33434
33435
33436
33437
33438
33439
33440for ac_header in capability.h sys/capability.h
33441do
33442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33443if eval "test \"\${$as_ac_Header+set}\" = set"; then
33444 echo "$as_me:$LINENO: checking for $ac_header" >&5
33445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33446if eval "test \"\${$as_ac_Header+set}\" = set"; then
33447 echo $ECHO_N "(cached) $ECHO_C" >&6
33448fi
33449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33451else
33452 # Is the header compilable?
33453echo "$as_me:$LINENO: checking $ac_header usability" >&5
33454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33455cat >conftest.$ac_ext <<_ACEOF
33456#line $LINENO "configure"
33457#include "confdefs.h"
33458$ac_includes_default
33459#include <$ac_header>
33460_ACEOF
33461rm -f conftest.$ac_objext
33462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33463 (eval $ac_compile) 2>&5
33464 ac_status=$?
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); } &&
33467 { ac_try='test -s conftest.$ac_objext'
33468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33469 (eval $ac_try) 2>&5
33470 ac_status=$?
33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472 (exit $ac_status); }; }; then
33473 ac_header_compiler=yes
33474else
33475 echo "$as_me: failed program was:" >&5
33476cat conftest.$ac_ext >&5
33477ac_header_compiler=no
33478fi
33479rm -f conftest.$ac_objext conftest.$ac_ext
33480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33481echo "${ECHO_T}$ac_header_compiler" >&6
33482
33483# Is the header present?
33484echo "$as_me:$LINENO: checking $ac_header presence" >&5
33485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33486cat >conftest.$ac_ext <<_ACEOF
33487#line $LINENO "configure"
33488#include "confdefs.h"
33489#include <$ac_header>
33490_ACEOF
33491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33493 ac_status=$?
33494 egrep -v '^ *\+' conftest.er1 >conftest.err
33495 rm -f conftest.er1
33496 cat conftest.err >&5
33497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498 (exit $ac_status); } >/dev/null; then
33499 if test -s conftest.err; then
33500 ac_cpp_err=$ac_c_preproc_warn_flag
33501 else
33502 ac_cpp_err=
33503 fi
33504else
33505 ac_cpp_err=yes
33506fi
33507if test -z "$ac_cpp_err"; then
33508 ac_header_preproc=yes
33509else
33510 echo "$as_me: failed program was:" >&5
33511 cat conftest.$ac_ext >&5
33512 ac_header_preproc=no
33513fi
33514rm -f conftest.err conftest.$ac_ext
33515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33516echo "${ECHO_T}$ac_header_preproc" >&6
33517
33518# So? What about this header?
33519case $ac_header_compiler:$ac_header_preproc in
33520 yes:no )
33521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33525 no:yes )
33526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33532esac
33533echo "$as_me:$LINENO: checking for $ac_header" >&5
33534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33535if eval "test \"\${$as_ac_Header+set}\" = set"; then
33536 echo $ECHO_N "(cached) $ECHO_C" >&6
33537else
33538 eval "$as_ac_Header=$ac_header_preproc"
33539fi
33540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33542
33543fi
33544if test `eval echo '${'$as_ac_Header'}'` = yes; then
33545 cat >>confdefs.h <<_ACEOF
33546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33547_ACEOF
33548
33549fi
33550
33551done
33552
33553
33554
33555
33556for ac_func in sgi_getcapabilitybyname cap_set_proc
33557do
33558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33559echo "$as_me:$LINENO: checking for $ac_func" >&5
33560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33561if eval "test \"\${$as_ac_var+set}\" = set"; then
33562 echo $ECHO_N "(cached) $ECHO_C" >&6
33563else
33564 cat >conftest.$ac_ext <<_ACEOF
33565#line $LINENO "configure"
33566#include "confdefs.h"
33567/* System header to define __stub macros and hopefully few prototypes,
33568 which can conflict with char $ac_func (); below. */
33569#include <assert.h>
33570/* Override any gcc2 internal prototype to avoid an error. */
33571#ifdef __cplusplus
33572extern "C"
33573#endif
33574/* We use char because int might match the return type of a gcc2
33575 builtin and then its argument prototype would still apply. */
33576char $ac_func ();
33577char (*f) ();
33578
33579#ifdef F77_DUMMY_MAIN
33580# ifdef __cplusplus
33581 extern "C"
33582# endif
33583 int F77_DUMMY_MAIN() { return 1; }
33584#endif
33585int
33586main ()
33587{
33588/* The GNU C library defines this for functions which it implements
33589 to always fail with ENOSYS. Some functions are actually named
33590 something starting with __ and the normal name is an alias. */
33591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33592choke me
33593#else
33594f = $ac_func;
33595#endif
33596
33597 ;
33598 return 0;
33599}
33600_ACEOF
33601rm -f conftest.$ac_objext conftest$ac_exeext
33602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33603 (eval $ac_link) 2>&5
33604 ac_status=$?
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); } &&
33607 { ac_try='test -s conftest$ac_exeext'
33608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609 (eval $ac_try) 2>&5
33610 ac_status=$?
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 eval "$as_ac_var=yes"
33614else
33615 echo "$as_me: failed program was:" >&5
33616cat conftest.$ac_ext >&5
33617eval "$as_ac_var=no"
33618fi
33619rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33620fi
33621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33623if test `eval echo '${'$as_ac_var'}'` = yes; then
33624 cat >>confdefs.h <<_ACEOF
33625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33626_ACEOF
33627
33628fi
33629done
33630
33631
33632
33633
33634
33635
33636
33637echo "$as_me:$LINENO: checking for getpwnam_r" >&5
33638echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
33639if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
33640 echo $ECHO_N "(cached) $ECHO_C" >&6
33641else
33642
33643if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
33644 ac_save_LIBS="$LIBS"
33645 for ac_lib in "" c_r; do
33646 case "$ac_lib" in
33647 "") ;;
33648 yes) ac_lib="" ;;
33649 no) continue ;;
33650 -l*) ;;
33651 *) ac_lib="-l$ac_lib" ;;
33652 esac
33653 LIBS=" $ac_lib $ac_save_LIBS"
33654 cat >conftest.$ac_ext <<_ACEOF
33655#line $LINENO "configure"
33656#include "confdefs.h"
33657
33658#ifdef F77_DUMMY_MAIN
33659# ifdef __cplusplus
33660 extern "C"
33661# endif
33662 int F77_DUMMY_MAIN() { return 1; }
33663#endif
33664int
33665main ()
33666{
33667getpwnam_r()
33668 ;
33669 return 0;
33670}
33671_ACEOF
33672rm -f conftest.$ac_objext conftest$ac_exeext
33673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33674 (eval $ac_link) 2>&5
33675 ac_status=$?
33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677 (exit $ac_status); } &&
33678 { ac_try='test -s conftest$ac_exeext'
33679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680 (eval $ac_try) 2>&5
33681 ac_status=$?
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); }; }; then
33684 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
33685else
33686 echo "$as_me: failed program was:" >&5
33687cat conftest.$ac_ext >&5
33688fi
33689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33690 done
33691 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
33692 LIBS="$ac_save_LIBS"
33693fi
33694
33695fi
33696
33697
33698eval "ac_res=\$ac_cv_funclib_getpwnam_r"
33699
33700if false; then
33701
33702for ac_func in getpwnam_r
33703do
33704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33705echo "$as_me:$LINENO: checking for $ac_func" >&5
33706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33707if eval "test \"\${$as_ac_var+set}\" = set"; then
33708 echo $ECHO_N "(cached) $ECHO_C" >&6
33709else
33710 cat >conftest.$ac_ext <<_ACEOF
33711#line $LINENO "configure"
33712#include "confdefs.h"
33713/* System header to define __stub macros and hopefully few prototypes,
33714 which can conflict with char $ac_func (); below. */
33715#include <assert.h>
33716/* Override any gcc2 internal prototype to avoid an error. */
33717#ifdef __cplusplus
33718extern "C"
33719#endif
33720/* We use char because int might match the return type of a gcc2
33721 builtin and then its argument prototype would still apply. */
33722char $ac_func ();
33723char (*f) ();
33724
33725#ifdef F77_DUMMY_MAIN
33726# ifdef __cplusplus
33727 extern "C"
33728# endif
33729 int F77_DUMMY_MAIN() { return 1; }
33730#endif
33731int
33732main ()
33733{
33734/* The GNU C library defines this for functions which it implements
33735 to always fail with ENOSYS. Some functions are actually named
33736 something starting with __ and the normal name is an alias. */
33737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33738choke me
33739#else
33740f = $ac_func;
33741#endif
33742
33743 ;
33744 return 0;
33745}
33746_ACEOF
33747rm -f conftest.$ac_objext conftest$ac_exeext
33748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33749 (eval $ac_link) 2>&5
33750 ac_status=$?
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); } &&
33753 { ac_try='test -s conftest$ac_exeext'
33754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755 (eval $ac_try) 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; }; then
33759 eval "$as_ac_var=yes"
33760else
33761 echo "$as_me: failed program was:" >&5
33762cat conftest.$ac_ext >&5
33763eval "$as_ac_var=no"
33764fi
33765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33766fi
33767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33768echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33769if test `eval echo '${'$as_ac_var'}'` = yes; then
33770 cat >>confdefs.h <<_ACEOF
33771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33772_ACEOF
33773
33774fi
33775done
33776
33777fi
33778# getpwnam_r
33779eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33780eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33781eval "LIB_getpwnam_r=$ac_res"
33782
33783case "$ac_res" in
33784 yes)
33785 eval "ac_cv_func_getpwnam_r=yes"
33786 eval "LIB_getpwnam_r="
33787 cat >>confdefs.h <<_ACEOF
33788#define $ac_tr_func 1
33789_ACEOF
33790
33791 echo "$as_me:$LINENO: result: yes" >&5
33792echo "${ECHO_T}yes" >&6
33793 ;;
33794 no)
33795 eval "ac_cv_func_getpwnam_r=no"
33796 eval "LIB_getpwnam_r="
33797 echo "$as_me:$LINENO: result: no" >&5
33798echo "${ECHO_T}no" >&6
33799 ;;
33800 *)
33801 eval "ac_cv_func_getpwnam_r=yes"
33802 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
33803 cat >>confdefs.h <<_ACEOF
33804#define $ac_tr_func 1
33805_ACEOF
33806
33807 cat >>confdefs.h <<_ACEOF
33808#define $ac_tr_lib 1
33809_ACEOF
33810
33811 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
33812echo "${ECHO_T}yes, in $ac_res" >&6
33813 ;;
33814esac
33815
33816
33817if test "$ac_cv_func_getpwnam_r" = yes; then
33818 echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
33819echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
33820if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
33821 echo $ECHO_N "(cached) $ECHO_C" >&6
33822else
33823 ac_libs="$LIBS"
33824 LIBS="$LIBS $LIB_getpwnam_r"
33825 if test "$cross_compiling" = yes; then
33826 :
33827else
33828 cat >conftest.$ac_ext <<_ACEOF
33829#line $LINENO "configure"
33830#include "confdefs.h"
33831
33832#include <pwd.h>
33833int main()
33834{
33835 struct passwd pw, *pwd;
33836 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
33837}
33838
33839_ACEOF
33840rm -f conftest$ac_exeext
33841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33842 (eval $ac_link) 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33847 (eval $ac_try) 2>&5
33848 ac_status=$?
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); }; }; then
33851 ac_cv_func_getpwnam_r_posix=yes
33852else
33853 echo "$as_me: program exited with status $ac_status" >&5
33854echo "$as_me: failed program was:" >&5
33855cat conftest.$ac_ext >&5
33856( exit $ac_status )
33857ac_cv_func_getpwnam_r_posix=no
33858fi
33859rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33860fi
33861LIBS="$ac_libs"
33862fi
33863echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
33864echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
33865if test "$ac_cv_func_getpwnam_r_posix" = yes; then
33866
33867cat >>confdefs.h <<\_ACEOF
33868#define POSIX_GETPWNAM_R 1
33869_ACEOF
33870
33871fi
33872fi
33873
33874
33875
33876
33877for ac_func in getudbnam setlim
33878do
33879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33880echo "$as_me:$LINENO: checking for $ac_func" >&5
33881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33882if eval "test \"\${$as_ac_var+set}\" = set"; then
33883 echo $ECHO_N "(cached) $ECHO_C" >&6
33884else
33885 cat >conftest.$ac_ext <<_ACEOF
33886#line $LINENO "configure"
33887#include "confdefs.h"
33888/* System header to define __stub macros and hopefully few prototypes,
33889 which can conflict with char $ac_func (); below. */
33890#include <assert.h>
33891/* Override any gcc2 internal prototype to avoid an error. */
33892#ifdef __cplusplus
33893extern "C"
33894#endif
33895/* We use char because int might match the return type of a gcc2
33896 builtin and then its argument prototype would still apply. */
33897char $ac_func ();
33898char (*f) ();
33899
33900#ifdef F77_DUMMY_MAIN
33901# ifdef __cplusplus
33902 extern "C"
33903# endif
33904 int F77_DUMMY_MAIN() { return 1; }
33905#endif
33906int
33907main ()
33908{
33909/* The GNU C library defines this for functions which it implements
33910 to always fail with ENOSYS. Some functions are actually named
33911 something starting with __ and the normal name is an alias. */
33912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33913choke me
33914#else
33915f = $ac_func;
33916#endif
33917
33918 ;
33919 return 0;
33920}
33921_ACEOF
33922rm -f conftest.$ac_objext conftest$ac_exeext
33923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33924 (eval $ac_link) 2>&5
33925 ac_status=$?
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } &&
33928 { ac_try='test -s conftest$ac_exeext'
33929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930 (eval $ac_try) 2>&5
33931 ac_status=$?
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; }; then
33934 eval "$as_ac_var=yes"
33935else
33936 echo "$as_me: failed program was:" >&5
33937cat conftest.$ac_ext >&5
33938eval "$as_ac_var=no"
33939fi
33940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33941fi
33942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33944if test `eval echo '${'$as_ac_var'}'` = yes; then
33945 cat >>confdefs.h <<_ACEOF
33946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33947_ACEOF
33948
33949fi
33950done
33951
33952
33953
33954
33955
33956
33957echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
33958echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
33959if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
33960 echo $ECHO_N "(cached) $ECHO_C" >&6
33961else
33962
33963cat >conftest.$ac_ext <<_ACEOF
33964#line $LINENO "configure"
33965#include "confdefs.h"
33966#include <utmp.h>
33967#ifdef F77_DUMMY_MAIN
33968# ifdef __cplusplus
33969 extern "C"
33970# endif
33971 int F77_DUMMY_MAIN() { return 1; }
33972#endif
33973int
33974main ()
33975{
33976struct utmp x; x.ut_addr;
33977 ;
33978 return 0;
33979}
33980_ACEOF
33981rm -f conftest.$ac_objext
33982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33983 (eval $ac_compile) 2>&5
33984 ac_status=$?
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); } &&
33987 { ac_try='test -s conftest.$ac_objext'
33988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33989 (eval $ac_try) 2>&5
33990 ac_status=$?
33991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 (exit $ac_status); }; }; then
33993 ac_cv_type_struct_utmp_ut_addr=yes
33994else
33995 echo "$as_me: failed program was:" >&5
33996cat conftest.$ac_ext >&5
33997ac_cv_type_struct_utmp_ut_addr=no
33998fi
33999rm -f conftest.$ac_objext conftest.$ac_ext
34000fi
34001echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
34002echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
34003if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
34004
34005
34006cat >>confdefs.h <<\_ACEOF
34007#define HAVE_STRUCT_UTMP_UT_ADDR 1
34008_ACEOF
34009
34010
34011fi
34012
34013
34014
34015
34016echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
34017echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
34018if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
34019 echo $ECHO_N "(cached) $ECHO_C" >&6
34020else
34021
34022cat >conftest.$ac_ext <<_ACEOF
34023#line $LINENO "configure"
34024#include "confdefs.h"
34025#include <utmp.h>
34026#ifdef F77_DUMMY_MAIN
34027# ifdef __cplusplus
34028 extern "C"
34029# endif
34030 int F77_DUMMY_MAIN() { return 1; }
34031#endif
34032int
34033main ()
34034{
34035struct utmp x; x.ut_host;
34036 ;
34037 return 0;
34038}
34039_ACEOF
34040rm -f conftest.$ac_objext
34041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34042 (eval $ac_compile) 2>&5
34043 ac_status=$?
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); } &&
34046 { ac_try='test -s conftest.$ac_objext'
34047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34048 (eval $ac_try) 2>&5
34049 ac_status=$?
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); }; }; then
34052 ac_cv_type_struct_utmp_ut_host=yes
34053else
34054 echo "$as_me: failed program was:" >&5
34055cat conftest.$ac_ext >&5
34056ac_cv_type_struct_utmp_ut_host=no
34057fi
34058rm -f conftest.$ac_objext conftest.$ac_ext
34059fi
34060echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
34061echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
34062if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
34063
34064
34065cat >>confdefs.h <<\_ACEOF
34066#define HAVE_STRUCT_UTMP_UT_HOST 1
34067_ACEOF
34068
34069
34070fi
34071
34072
34073
34074
34075echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
34076echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
34077if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
34078 echo $ECHO_N "(cached) $ECHO_C" >&6
34079else
34080
34081cat >conftest.$ac_ext <<_ACEOF
34082#line $LINENO "configure"
34083#include "confdefs.h"
34084#include <utmp.h>
34085#ifdef F77_DUMMY_MAIN
34086# ifdef __cplusplus
34087 extern "C"
34088# endif
34089 int F77_DUMMY_MAIN() { return 1; }
34090#endif
34091int
34092main ()
34093{
34094struct utmp x; x.ut_id;
34095 ;
34096 return 0;
34097}
34098_ACEOF
34099rm -f conftest.$ac_objext
34100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34101 (eval $ac_compile) 2>&5
34102 ac_status=$?
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 (exit $ac_status); } &&
34105 { ac_try='test -s conftest.$ac_objext'
34106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34107 (eval $ac_try) 2>&5
34108 ac_status=$?
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); }; }; then
34111 ac_cv_type_struct_utmp_ut_id=yes
34112else
34113 echo "$as_me: failed program was:" >&5
34114cat conftest.$ac_ext >&5
34115ac_cv_type_struct_utmp_ut_id=no
34116fi
34117rm -f conftest.$ac_objext conftest.$ac_ext
34118fi
34119echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
34120echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
34121if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
34122
34123
34124cat >>confdefs.h <<\_ACEOF
34125#define HAVE_STRUCT_UTMP_UT_ID 1
34126_ACEOF
34127
34128
34129fi
34130
34131
34132
34133
34134echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
34135echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
34136if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
34137 echo $ECHO_N "(cached) $ECHO_C" >&6
34138else
34139
34140cat >conftest.$ac_ext <<_ACEOF
34141#line $LINENO "configure"
34142#include "confdefs.h"
34143#include <utmp.h>
34144#ifdef F77_DUMMY_MAIN
34145# ifdef __cplusplus
34146 extern "C"
34147# endif
34148 int F77_DUMMY_MAIN() { return 1; }
34149#endif
34150int
34151main ()
34152{
34153struct utmp x; x.ut_pid;
34154 ;
34155 return 0;
34156}
34157_ACEOF
34158rm -f conftest.$ac_objext
34159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34160 (eval $ac_compile) 2>&5
34161 ac_status=$?
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); } &&
34164 { ac_try='test -s conftest.$ac_objext'
34165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34166 (eval $ac_try) 2>&5
34167 ac_status=$?
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); }; }; then
34170 ac_cv_type_struct_utmp_ut_pid=yes
34171else
34172 echo "$as_me: failed program was:" >&5
34173cat conftest.$ac_ext >&5
34174ac_cv_type_struct_utmp_ut_pid=no
34175fi
34176rm -f conftest.$ac_objext conftest.$ac_ext
34177fi
34178echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
34179echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
34180if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
34181
34182
34183cat >>confdefs.h <<\_ACEOF
34184#define HAVE_STRUCT_UTMP_UT_PID 1
34185_ACEOF
34186
34187
34188fi
34189
34190
34191
34192
34193echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
34194echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
34195if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
34196 echo $ECHO_N "(cached) $ECHO_C" >&6
34197else
34198
34199cat >conftest.$ac_ext <<_ACEOF
34200#line $LINENO "configure"
34201#include "confdefs.h"
34202#include <utmp.h>
34203#ifdef F77_DUMMY_MAIN
34204# ifdef __cplusplus
34205 extern "C"
34206# endif
34207 int F77_DUMMY_MAIN() { return 1; }
34208#endif
34209int
34210main ()
34211{
34212struct utmp x; x.ut_type;
34213 ;
34214 return 0;
34215}
34216_ACEOF
34217rm -f conftest.$ac_objext
34218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34219 (eval $ac_compile) 2>&5
34220 ac_status=$?
34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222 (exit $ac_status); } &&
34223 { ac_try='test -s conftest.$ac_objext'
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34226 ac_status=$?
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; }; then
34229 ac_cv_type_struct_utmp_ut_type=yes
34230else
34231 echo "$as_me: failed program was:" >&5
34232cat conftest.$ac_ext >&5
34233ac_cv_type_struct_utmp_ut_type=no
34234fi
34235rm -f conftest.$ac_objext conftest.$ac_ext
34236fi
34237echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
34238echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
34239if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
34240
34241
34242cat >>confdefs.h <<\_ACEOF
34243#define HAVE_STRUCT_UTMP_UT_TYPE 1
34244_ACEOF
34245
34246
34247fi
34248
34249
34250
34251
34252echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
34253echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
34254if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
34255 echo $ECHO_N "(cached) $ECHO_C" >&6
34256else
34257
34258cat >conftest.$ac_ext <<_ACEOF
34259#line $LINENO "configure"
34260#include "confdefs.h"
34261#include <utmp.h>
34262#ifdef F77_DUMMY_MAIN
34263# ifdef __cplusplus
34264 extern "C"
34265# endif
34266 int F77_DUMMY_MAIN() { return 1; }
34267#endif
34268int
34269main ()
34270{
34271struct utmp x; x.ut_user;
34272 ;
34273 return 0;
34274}
34275_ACEOF
34276rm -f conftest.$ac_objext
34277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34278 (eval $ac_compile) 2>&5
34279 ac_status=$?
34280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34281 (exit $ac_status); } &&
34282 { ac_try='test -s conftest.$ac_objext'
34283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34284 (eval $ac_try) 2>&5
34285 ac_status=$?
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); }; }; then
34288 ac_cv_type_struct_utmp_ut_user=yes
34289else
34290 echo "$as_me: failed program was:" >&5
34291cat conftest.$ac_ext >&5
34292ac_cv_type_struct_utmp_ut_user=no
34293fi
34294rm -f conftest.$ac_objext conftest.$ac_ext
34295fi
34296echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
34297echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
34298if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
34299
34300
34301cat >>confdefs.h <<\_ACEOF
34302#define HAVE_STRUCT_UTMP_UT_USER 1
34303_ACEOF
34304
34305
34306fi
34307
34308
34309
34310
34311echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
34312echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
34313if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
34314 echo $ECHO_N "(cached) $ECHO_C" >&6
34315else
34316
34317cat >conftest.$ac_ext <<_ACEOF
34318#line $LINENO "configure"
34319#include "confdefs.h"
34320#include <utmpx.h>
34321#ifdef F77_DUMMY_MAIN
34322# ifdef __cplusplus
34323 extern "C"
34324# endif
34325 int F77_DUMMY_MAIN() { return 1; }
34326#endif
34327int
34328main ()
34329{
34330struct utmpx x; x.ut_exit;
34331 ;
34332 return 0;
34333}
34334_ACEOF
34335rm -f conftest.$ac_objext
34336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34337 (eval $ac_compile) 2>&5
34338 ac_status=$?
34339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340 (exit $ac_status); } &&
34341 { ac_try='test -s conftest.$ac_objext'
34342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34343 (eval $ac_try) 2>&5
34344 ac_status=$?
34345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346 (exit $ac_status); }; }; then
34347 ac_cv_type_struct_utmpx_ut_exit=yes
34348else
34349 echo "$as_me: failed program was:" >&5
34350cat conftest.$ac_ext >&5
34351ac_cv_type_struct_utmpx_ut_exit=no
34352fi
34353rm -f conftest.$ac_objext conftest.$ac_ext
34354fi
34355echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
34356echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
34357if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
34358
34359
34360cat >>confdefs.h <<\_ACEOF
34361#define HAVE_STRUCT_UTMPX_UT_EXIT 1
34362_ACEOF
34363
34364
34365fi
34366
34367
34368
34369
34370echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
34371echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
34372if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
34373 echo $ECHO_N "(cached) $ECHO_C" >&6
34374else
34375
34376cat >conftest.$ac_ext <<_ACEOF
34377#line $LINENO "configure"
34378#include "confdefs.h"
34379#include <utmpx.h>
34380#ifdef F77_DUMMY_MAIN
34381# ifdef __cplusplus
34382 extern "C"
34383# endif
34384 int F77_DUMMY_MAIN() { return 1; }
34385#endif
34386int
34387main ()
34388{
34389struct utmpx x; x.ut_syslen;
34390 ;
34391 return 0;
34392}
34393_ACEOF
34394rm -f conftest.$ac_objext
34395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34396 (eval $ac_compile) 2>&5
34397 ac_status=$?
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); } &&
34400 { ac_try='test -s conftest.$ac_objext'
34401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34402 (eval $ac_try) 2>&5
34403 ac_status=$?
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); }; }; then
34406 ac_cv_type_struct_utmpx_ut_syslen=yes
34407else
34408 echo "$as_me: failed program was:" >&5
34409cat conftest.$ac_ext >&5
34410ac_cv_type_struct_utmpx_ut_syslen=no
34411fi
34412rm -f conftest.$ac_objext conftest.$ac_ext
34413fi
34414echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
34415echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
34416if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
34417
34418
34419cat >>confdefs.h <<\_ACEOF
34420#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
34421_ACEOF
34422
34423
34424fi
34425
34426
34427
34428echo "$as_me:$LINENO: checking for int8_t" >&5
34429echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
34430if test "${ac_cv_type_int8_t+set}" = set; then
34431 echo $ECHO_N "(cached) $ECHO_C" >&6
34432else
34433 cat >conftest.$ac_ext <<_ACEOF
34434#line $LINENO "configure"
34435#include "confdefs.h"
34436
34437#ifdef HAVE_INTTYPES_H
34438#include <inttypes.h>
34439#endif
34440#ifdef HAVE_SYS_TYPES_H
34441#include <sys/types.h>
34442#endif
34443#ifdef HAVE_SYS_BITYPES_H
34444#include <sys/bitypes.h>
34445#endif
34446#ifdef HAVE_BIND_BITYPES_H
34447#include <bind/bitypes.h>
34448#endif
34449#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34450#include <netinet/in6_machtypes.h>
34451#endif
34452
34453
34454#ifdef F77_DUMMY_MAIN
34455# ifdef __cplusplus
34456 extern "C"
34457# endif
34458 int F77_DUMMY_MAIN() { return 1; }
34459#endif
34460int
34461main ()
34462{
34463if ((int8_t *) 0)
34464 return 0;
34465if (sizeof (int8_t))
34466 return 0;
34467 ;
34468 return 0;
34469}
34470_ACEOF
34471rm -f conftest.$ac_objext
34472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34473 (eval $ac_compile) 2>&5
34474 ac_status=$?
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); } &&
34477 { ac_try='test -s conftest.$ac_objext'
34478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479 (eval $ac_try) 2>&5
34480 ac_status=$?
34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); }; }; then
34483 ac_cv_type_int8_t=yes
34484else
34485 echo "$as_me: failed program was:" >&5
34486cat conftest.$ac_ext >&5
34487ac_cv_type_int8_t=no
34488fi
34489rm -f conftest.$ac_objext conftest.$ac_ext
34490fi
34491echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
34492echo "${ECHO_T}$ac_cv_type_int8_t" >&6
34493if test $ac_cv_type_int8_t = yes; then
34494
34495cat >>confdefs.h <<_ACEOF
34496#define HAVE_INT8_T 1
34497_ACEOF
34498
34499
34500fi
34501echo "$as_me:$LINENO: checking for int16_t" >&5
34502echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
34503if test "${ac_cv_type_int16_t+set}" = set; then
34504 echo $ECHO_N "(cached) $ECHO_C" >&6
34505else
34506 cat >conftest.$ac_ext <<_ACEOF
34507#line $LINENO "configure"
34508#include "confdefs.h"
34509
34510#ifdef HAVE_INTTYPES_H
34511#include <inttypes.h>
34512#endif
34513#ifdef HAVE_SYS_TYPES_H
34514#include <sys/types.h>
34515#endif
34516#ifdef HAVE_SYS_BITYPES_H
34517#include <sys/bitypes.h>
34518#endif
34519#ifdef HAVE_BIND_BITYPES_H
34520#include <bind/bitypes.h>
34521#endif
34522#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34523#include <netinet/in6_machtypes.h>
34524#endif
34525
34526
34527#ifdef F77_DUMMY_MAIN
34528# ifdef __cplusplus
34529 extern "C"
34530# endif
34531 int F77_DUMMY_MAIN() { return 1; }
34532#endif
34533int
34534main ()
34535{
34536if ((int16_t *) 0)
34537 return 0;
34538if (sizeof (int16_t))
34539 return 0;
34540 ;
34541 return 0;
34542}
34543_ACEOF
34544rm -f conftest.$ac_objext
34545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34546 (eval $ac_compile) 2>&5
34547 ac_status=$?
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); } &&
34550 { ac_try='test -s conftest.$ac_objext'
34551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34552 (eval $ac_try) 2>&5
34553 ac_status=$?
34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555 (exit $ac_status); }; }; then
34556 ac_cv_type_int16_t=yes
34557else
34558 echo "$as_me: failed program was:" >&5
34559cat conftest.$ac_ext >&5
34560ac_cv_type_int16_t=no
34561fi
34562rm -f conftest.$ac_objext conftest.$ac_ext
34563fi
34564echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
34565echo "${ECHO_T}$ac_cv_type_int16_t" >&6
34566if test $ac_cv_type_int16_t = yes; then
34567
34568cat >>confdefs.h <<_ACEOF
34569#define HAVE_INT16_T 1
34570_ACEOF
34571
34572
34573fi
34574echo "$as_me:$LINENO: checking for int32_t" >&5
34575echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
34576if test "${ac_cv_type_int32_t+set}" = set; then
34577 echo $ECHO_N "(cached) $ECHO_C" >&6
34578else
34579 cat >conftest.$ac_ext <<_ACEOF
34580#line $LINENO "configure"
34581#include "confdefs.h"
34582
34583#ifdef HAVE_INTTYPES_H
34584#include <inttypes.h>
34585#endif
34586#ifdef HAVE_SYS_TYPES_H
34587#include <sys/types.h>
34588#endif
34589#ifdef HAVE_SYS_BITYPES_H
34590#include <sys/bitypes.h>
34591#endif
34592#ifdef HAVE_BIND_BITYPES_H
34593#include <bind/bitypes.h>
34594#endif
34595#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34596#include <netinet/in6_machtypes.h>
34597#endif
34598
34599
34600#ifdef F77_DUMMY_MAIN
34601# ifdef __cplusplus
34602 extern "C"
34603# endif
34604 int F77_DUMMY_MAIN() { return 1; }
34605#endif
34606int
34607main ()
34608{
34609if ((int32_t *) 0)
34610 return 0;
34611if (sizeof (int32_t))
34612 return 0;
34613 ;
34614 return 0;
34615}
34616_ACEOF
34617rm -f conftest.$ac_objext
34618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34619 (eval $ac_compile) 2>&5
34620 ac_status=$?
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); } &&
34623 { ac_try='test -s conftest.$ac_objext'
34624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34625 (eval $ac_try) 2>&5
34626 ac_status=$?
34627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628 (exit $ac_status); }; }; then
34629 ac_cv_type_int32_t=yes
34630else
34631 echo "$as_me: failed program was:" >&5
34632cat conftest.$ac_ext >&5
34633ac_cv_type_int32_t=no
34634fi
34635rm -f conftest.$ac_objext conftest.$ac_ext
34636fi
34637echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
34638echo "${ECHO_T}$ac_cv_type_int32_t" >&6
34639if test $ac_cv_type_int32_t = yes; then
34640
34641cat >>confdefs.h <<_ACEOF
34642#define HAVE_INT32_T 1
34643_ACEOF
34644
34645
34646fi
34647echo "$as_me:$LINENO: checking for int64_t" >&5
34648echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
34649if test "${ac_cv_type_int64_t+set}" = set; then
34650 echo $ECHO_N "(cached) $ECHO_C" >&6
34651else
34652 cat >conftest.$ac_ext <<_ACEOF
34653#line $LINENO "configure"
34654#include "confdefs.h"
34655
34656#ifdef HAVE_INTTYPES_H
34657#include <inttypes.h>
34658#endif
34659#ifdef HAVE_SYS_TYPES_H
34660#include <sys/types.h>
34661#endif
34662#ifdef HAVE_SYS_BITYPES_H
34663#include <sys/bitypes.h>
34664#endif
34665#ifdef HAVE_BIND_BITYPES_H
34666#include <bind/bitypes.h>
34667#endif
34668#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34669#include <netinet/in6_machtypes.h>
34670#endif
34671
34672
34673#ifdef F77_DUMMY_MAIN
34674# ifdef __cplusplus
34675 extern "C"
34676# endif
34677 int F77_DUMMY_MAIN() { return 1; }
34678#endif
34679int
34680main ()
34681{
34682if ((int64_t *) 0)
34683 return 0;
34684if (sizeof (int64_t))
34685 return 0;
34686 ;
34687 return 0;
34688}
34689_ACEOF
34690rm -f conftest.$ac_objext
34691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34692 (eval $ac_compile) 2>&5
34693 ac_status=$?
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); } &&
34696 { ac_try='test -s conftest.$ac_objext'
34697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34698 (eval $ac_try) 2>&5
34699 ac_status=$?
34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); }; }; then
34702 ac_cv_type_int64_t=yes
34703else
34704 echo "$as_me: failed program was:" >&5
34705cat conftest.$ac_ext >&5
34706ac_cv_type_int64_t=no
34707fi
34708rm -f conftest.$ac_objext conftest.$ac_ext
34709fi
34710echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
34711echo "${ECHO_T}$ac_cv_type_int64_t" >&6
34712if test $ac_cv_type_int64_t = yes; then
34713
34714cat >>confdefs.h <<_ACEOF
34715#define HAVE_INT64_T 1
34716_ACEOF
34717
34718
34719fi
34720echo "$as_me:$LINENO: checking for u_int8_t" >&5
34721echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
34722if test "${ac_cv_type_u_int8_t+set}" = set; then
34723 echo $ECHO_N "(cached) $ECHO_C" >&6
34724else
34725 cat >conftest.$ac_ext <<_ACEOF
34726#line $LINENO "configure"
34727#include "confdefs.h"
34728
34729#ifdef HAVE_INTTYPES_H
34730#include <inttypes.h>
34731#endif
34732#ifdef HAVE_SYS_TYPES_H
34733#include <sys/types.h>
34734#endif
34735#ifdef HAVE_SYS_BITYPES_H
34736#include <sys/bitypes.h>
34737#endif
34738#ifdef HAVE_BIND_BITYPES_H
34739#include <bind/bitypes.h>
34740#endif
34741#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34742#include <netinet/in6_machtypes.h>
34743#endif
34744
34745
34746#ifdef F77_DUMMY_MAIN
34747# ifdef __cplusplus
34748 extern "C"
34749# endif
34750 int F77_DUMMY_MAIN() { return 1; }
34751#endif
34752int
34753main ()
34754{
34755if ((u_int8_t *) 0)
34756 return 0;
34757if (sizeof (u_int8_t))
34758 return 0;
34759 ;
34760 return 0;
34761}
34762_ACEOF
34763rm -f conftest.$ac_objext
34764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34765 (eval $ac_compile) 2>&5
34766 ac_status=$?
34767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768 (exit $ac_status); } &&
34769 { ac_try='test -s conftest.$ac_objext'
34770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34771 (eval $ac_try) 2>&5
34772 ac_status=$?
34773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34774 (exit $ac_status); }; }; then
34775 ac_cv_type_u_int8_t=yes
34776else
34777 echo "$as_me: failed program was:" >&5
34778cat conftest.$ac_ext >&5
34779ac_cv_type_u_int8_t=no
34780fi
34781rm -f conftest.$ac_objext conftest.$ac_ext
34782fi
34783echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
34784echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
34785if test $ac_cv_type_u_int8_t = yes; then
34786
34787cat >>confdefs.h <<_ACEOF
34788#define HAVE_U_INT8_T 1
34789_ACEOF
34790
34791
34792fi
34793echo "$as_me:$LINENO: checking for u_int16_t" >&5
34794echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
34795if test "${ac_cv_type_u_int16_t+set}" = set; then
34796 echo $ECHO_N "(cached) $ECHO_C" >&6
34797else
34798 cat >conftest.$ac_ext <<_ACEOF
34799#line $LINENO "configure"
34800#include "confdefs.h"
34801
34802#ifdef HAVE_INTTYPES_H
34803#include <inttypes.h>
34804#endif
34805#ifdef HAVE_SYS_TYPES_H
34806#include <sys/types.h>
34807#endif
34808#ifdef HAVE_SYS_BITYPES_H
34809#include <sys/bitypes.h>
34810#endif
34811#ifdef HAVE_BIND_BITYPES_H
34812#include <bind/bitypes.h>
34813#endif
34814#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34815#include <netinet/in6_machtypes.h>
34816#endif
34817
34818
34819#ifdef F77_DUMMY_MAIN
34820# ifdef __cplusplus
34821 extern "C"
34822# endif
34823 int F77_DUMMY_MAIN() { return 1; }
34824#endif
34825int
34826main ()
34827{
34828if ((u_int16_t *) 0)
34829 return 0;
34830if (sizeof (u_int16_t))
34831 return 0;
34832 ;
34833 return 0;
34834}
34835_ACEOF
34836rm -f conftest.$ac_objext
34837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34838 (eval $ac_compile) 2>&5
34839 ac_status=$?
34840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34841 (exit $ac_status); } &&
34842 { ac_try='test -s conftest.$ac_objext'
34843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34844 (eval $ac_try) 2>&5
34845 ac_status=$?
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); }; }; then
34848 ac_cv_type_u_int16_t=yes
34849else
34850 echo "$as_me: failed program was:" >&5
34851cat conftest.$ac_ext >&5
34852ac_cv_type_u_int16_t=no
34853fi
34854rm -f conftest.$ac_objext conftest.$ac_ext
34855fi
34856echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
34857echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
34858if test $ac_cv_type_u_int16_t = yes; then
34859
34860cat >>confdefs.h <<_ACEOF
34861#define HAVE_U_INT16_T 1
34862_ACEOF
34863
34864
34865fi
34866echo "$as_me:$LINENO: checking for u_int32_t" >&5
34867echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
34868if test "${ac_cv_type_u_int32_t+set}" = set; then
34869 echo $ECHO_N "(cached) $ECHO_C" >&6
34870else
34871 cat >conftest.$ac_ext <<_ACEOF
34872#line $LINENO "configure"
34873#include "confdefs.h"
34874
34875#ifdef HAVE_INTTYPES_H
34876#include <inttypes.h>
34877#endif
34878#ifdef HAVE_SYS_TYPES_H
34879#include <sys/types.h>
34880#endif
34881#ifdef HAVE_SYS_BITYPES_H
34882#include <sys/bitypes.h>
34883#endif
34884#ifdef HAVE_BIND_BITYPES_H
34885#include <bind/bitypes.h>
34886#endif
34887#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34888#include <netinet/in6_machtypes.h>
34889#endif
34890
34891
34892#ifdef F77_DUMMY_MAIN
34893# ifdef __cplusplus
34894 extern "C"
34895# endif
34896 int F77_DUMMY_MAIN() { return 1; }
34897#endif
34898int
34899main ()
34900{
34901if ((u_int32_t *) 0)
34902 return 0;
34903if (sizeof (u_int32_t))
34904 return 0;
34905 ;
34906 return 0;
34907}
34908_ACEOF
34909rm -f conftest.$ac_objext
34910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34911 (eval $ac_compile) 2>&5
34912 ac_status=$?
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); } &&
34915 { ac_try='test -s conftest.$ac_objext'
34916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917 (eval $ac_try) 2>&5
34918 ac_status=$?
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); }; }; then
34921 ac_cv_type_u_int32_t=yes
34922else
34923 echo "$as_me: failed program was:" >&5
34924cat conftest.$ac_ext >&5
34925ac_cv_type_u_int32_t=no
34926fi
34927rm -f conftest.$ac_objext conftest.$ac_ext
34928fi
34929echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
34930echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
34931if test $ac_cv_type_u_int32_t = yes; then
34932
34933cat >>confdefs.h <<_ACEOF
34934#define HAVE_U_INT32_T 1
34935_ACEOF
34936
34937
34938fi
34939echo "$as_me:$LINENO: checking for u_int64_t" >&5
34940echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
34941if test "${ac_cv_type_u_int64_t+set}" = set; then
34942 echo $ECHO_N "(cached) $ECHO_C" >&6
34943else
34944 cat >conftest.$ac_ext <<_ACEOF
34945#line $LINENO "configure"
34946#include "confdefs.h"
34947
34948#ifdef HAVE_INTTYPES_H
34949#include <inttypes.h>
34950#endif
34951#ifdef HAVE_SYS_TYPES_H
34952#include <sys/types.h>
34953#endif
34954#ifdef HAVE_SYS_BITYPES_H
34955#include <sys/bitypes.h>
34956#endif
34957#ifdef HAVE_BIND_BITYPES_H
34958#include <bind/bitypes.h>
34959#endif
34960#ifdef HAVE_NETINET_IN6_MACHTYPES_H
34961#include <netinet/in6_machtypes.h>
34962#endif
34963
34964
34965#ifdef F77_DUMMY_MAIN
34966# ifdef __cplusplus
34967 extern "C"
34968# endif
34969 int F77_DUMMY_MAIN() { return 1; }
34970#endif
34971int
34972main ()
34973{
34974if ((u_int64_t *) 0)
34975 return 0;
34976if (sizeof (u_int64_t))
34977 return 0;
34978 ;
34979 return 0;
34980}
34981_ACEOF
34982rm -f conftest.$ac_objext
34983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34984 (eval $ac_compile) 2>&5
34985 ac_status=$?
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); } &&
34988 { ac_try='test -s conftest.$ac_objext'
34989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34990 (eval $ac_try) 2>&5
34991 ac_status=$?
34992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993 (exit $ac_status); }; }; then
34994 ac_cv_type_u_int64_t=yes
34995else
34996 echo "$as_me: failed program was:" >&5
34997cat conftest.$ac_ext >&5
34998ac_cv_type_u_int64_t=no
34999fi
35000rm -f conftest.$ac_objext conftest.$ac_ext
35001fi
35002echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
35003echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
35004if test $ac_cv_type_u_int64_t = yes; then
35005
35006cat >>confdefs.h <<_ACEOF
35007#define HAVE_U_INT64_T 1
35008_ACEOF
35009
35010
35011fi
35012echo "$as_me:$LINENO: checking for uint8_t" >&5
35013echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
35014if test "${ac_cv_type_uint8_t+set}" = set; then
35015 echo $ECHO_N "(cached) $ECHO_C" >&6
35016else
35017 cat >conftest.$ac_ext <<_ACEOF
35018#line $LINENO "configure"
35019#include "confdefs.h"
35020
35021#ifdef HAVE_INTTYPES_H
35022#include <inttypes.h>
35023#endif
35024#ifdef HAVE_SYS_TYPES_H
35025#include <sys/types.h>
35026#endif
35027#ifdef HAVE_SYS_BITYPES_H
35028#include <sys/bitypes.h>
35029#endif
35030#ifdef HAVE_BIND_BITYPES_H
35031#include <bind/bitypes.h>
35032#endif
35033#ifdef HAVE_NETINET_IN6_MACHTYPES_H
35034#include <netinet/in6_machtypes.h>
35035#endif
35036
35037
35038#ifdef F77_DUMMY_MAIN
35039# ifdef __cplusplus
35040 extern "C"
35041# endif
35042 int F77_DUMMY_MAIN() { return 1; }
35043#endif
35044int
35045main ()
35046{
35047if ((uint8_t *) 0)
35048 return 0;
35049if (sizeof (uint8_t))
35050 return 0;
35051 ;
35052 return 0;
35053}
35054_ACEOF
35055rm -f conftest.$ac_objext
35056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35057 (eval $ac_compile) 2>&5
35058 ac_status=$?
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); } &&
35061 { ac_try='test -s conftest.$ac_objext'
35062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35063 (eval $ac_try) 2>&5
35064 ac_status=$?
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); }; }; then
35067 ac_cv_type_uint8_t=yes
35068else
35069 echo "$as_me: failed program was:" >&5
35070cat conftest.$ac_ext >&5
35071ac_cv_type_uint8_t=no
35072fi
35073rm -f conftest.$ac_objext conftest.$ac_ext
35074fi
35075echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
35076echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
35077if test $ac_cv_type_uint8_t = yes; then
35078
35079cat >>confdefs.h <<_ACEOF
35080#define HAVE_UINT8_T 1
35081_ACEOF
35082
35083
35084fi
35085echo "$as_me:$LINENO: checking for uint16_t" >&5
35086echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
35087if test "${ac_cv_type_uint16_t+set}" = set; then
35088 echo $ECHO_N "(cached) $ECHO_C" >&6
35089else
35090 cat >conftest.$ac_ext <<_ACEOF
35091#line $LINENO "configure"
35092#include "confdefs.h"
35093
35094#ifdef HAVE_INTTYPES_H
35095#include <inttypes.h>
35096#endif
35097#ifdef HAVE_SYS_TYPES_H
35098#include <sys/types.h>
35099#endif
35100#ifdef HAVE_SYS_BITYPES_H
35101#include <sys/bitypes.h>
35102#endif
35103#ifdef HAVE_BIND_BITYPES_H
35104#include <bind/bitypes.h>
35105#endif
35106#ifdef HAVE_NETINET_IN6_MACHTYPES_H
35107#include <netinet/in6_machtypes.h>
35108#endif
35109
35110
35111#ifdef F77_DUMMY_MAIN
35112# ifdef __cplusplus
35113 extern "C"
35114# endif
35115 int F77_DUMMY_MAIN() { return 1; }
35116#endif
35117int
35118main ()
35119{
35120if ((uint16_t *) 0)
35121 return 0;
35122if (sizeof (uint16_t))
35123 return 0;
35124 ;
35125 return 0;
35126}
35127_ACEOF
35128rm -f conftest.$ac_objext
35129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35130 (eval $ac_compile) 2>&5
35131 ac_status=$?
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); } &&
35134 { ac_try='test -s conftest.$ac_objext'
35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136 (eval $ac_try) 2>&5
35137 ac_status=$?
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); }; }; then
35140 ac_cv_type_uint16_t=yes
35141else
35142 echo "$as_me: failed program was:" >&5
35143cat conftest.$ac_ext >&5
35144ac_cv_type_uint16_t=no
35145fi
35146rm -f conftest.$ac_objext conftest.$ac_ext
35147fi
35148echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
35149echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
35150if test $ac_cv_type_uint16_t = yes; then
35151
35152cat >>confdefs.h <<_ACEOF
35153#define HAVE_UINT16_T 1
35154_ACEOF
35155
35156
35157fi
35158echo "$as_me:$LINENO: checking for uint32_t" >&5
35159echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
35160if test "${ac_cv_type_uint32_t+set}" = set; then
35161 echo $ECHO_N "(cached) $ECHO_C" >&6
35162else
35163 cat >conftest.$ac_ext <<_ACEOF
35164#line $LINENO "configure"
35165#include "confdefs.h"
35166
35167#ifdef HAVE_INTTYPES_H
35168#include <inttypes.h>
35169#endif
35170#ifdef HAVE_SYS_TYPES_H
35171#include <sys/types.h>
35172#endif
35173#ifdef HAVE_SYS_BITYPES_H
35174#include <sys/bitypes.h>
35175#endif
35176#ifdef HAVE_BIND_BITYPES_H
35177#include <bind/bitypes.h>
35178#endif
35179#ifdef HAVE_NETINET_IN6_MACHTYPES_H
35180#include <netinet/in6_machtypes.h>
35181#endif
35182
35183
35184#ifdef F77_DUMMY_MAIN
35185# ifdef __cplusplus
35186 extern "C"
35187# endif
35188 int F77_DUMMY_MAIN() { return 1; }
35189#endif
35190int
35191main ()
35192{
35193if ((uint32_t *) 0)
35194 return 0;
35195if (sizeof (uint32_t))
35196 return 0;
35197 ;
35198 return 0;
35199}
35200_ACEOF
35201rm -f conftest.$ac_objext
35202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35203 (eval $ac_compile) 2>&5
35204 ac_status=$?
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); } &&
35207 { ac_try='test -s conftest.$ac_objext'
35208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209 (eval $ac_try) 2>&5
35210 ac_status=$?
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); }; }; then
35213 ac_cv_type_uint32_t=yes
35214else
35215 echo "$as_me: failed program was:" >&5
35216cat conftest.$ac_ext >&5
35217ac_cv_type_uint32_t=no
35218fi
35219rm -f conftest.$ac_objext conftest.$ac_ext
35220fi
35221echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
35222echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
35223if test $ac_cv_type_uint32_t = yes; then
35224
35225cat >>confdefs.h <<_ACEOF
35226#define HAVE_UINT32_T 1
35227_ACEOF
35228
35229
35230fi
35231echo "$as_me:$LINENO: checking for uint64_t" >&5
35232echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
35233if test "${ac_cv_type_uint64_t+set}" = set; then
35234 echo $ECHO_N "(cached) $ECHO_C" >&6
35235else
35236 cat >conftest.$ac_ext <<_ACEOF
35237#line $LINENO "configure"
35238#include "confdefs.h"
35239
35240#ifdef HAVE_INTTYPES_H
35241#include <inttypes.h>
35242#endif
35243#ifdef HAVE_SYS_TYPES_H
35244#include <sys/types.h>
35245#endif
35246#ifdef HAVE_SYS_BITYPES_H
35247#include <sys/bitypes.h>
35248#endif
35249#ifdef HAVE_BIND_BITYPES_H
35250#include <bind/bitypes.h>
35251#endif
35252#ifdef HAVE_NETINET_IN6_MACHTYPES_H
35253#include <netinet/in6_machtypes.h>
35254#endif
35255
35256
35257#ifdef F77_DUMMY_MAIN
35258# ifdef __cplusplus
35259 extern "C"
35260# endif
35261 int F77_DUMMY_MAIN() { return 1; }
35262#endif
35263int
35264main ()
35265{
35266if ((uint64_t *) 0)
35267 return 0;
35268if (sizeof (uint64_t))
35269 return 0;
35270 ;
35271 return 0;
35272}
35273_ACEOF
35274rm -f conftest.$ac_objext
35275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35276 (eval $ac_compile) 2>&5
35277 ac_status=$?
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); } &&
35280 { ac_try='test -s conftest.$ac_objext'
35281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282 (eval $ac_try) 2>&5
35283 ac_status=$?
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); }; }; then
35286 ac_cv_type_uint64_t=yes
35287else
35288 echo "$as_me: failed program was:" >&5
35289cat conftest.$ac_ext >&5
35290ac_cv_type_uint64_t=no
35291fi
35292rm -f conftest.$ac_objext conftest.$ac_ext
35293fi
35294echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
35295echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
35296if test $ac_cv_type_uint64_t = yes; then
35297
35298cat >>confdefs.h <<_ACEOF
35299#define HAVE_UINT64_T 1
35300_ACEOF
35301
35302
35303fi
35304
35305
35306
35307
35308
35309
35310echo "$as_me:$LINENO: checking for el_init" >&5
35311echo $ECHO_N "checking for el_init... $ECHO_C" >&6
35312if test "${ac_cv_funclib_el_init+set}" = set; then
35313 echo $ECHO_N "(cached) $ECHO_C" >&6
35314else
35315
35316if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
35317 ac_save_LIBS="$LIBS"
35318 for ac_lib in "" edit; do
35319 case "$ac_lib" in
35320 "") ;;
35321 yes) ac_lib="" ;;
35322 no) continue ;;
35323 -l*) ;;
35324 *) ac_lib="-l$ac_lib" ;;
35325 esac
35326 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
35327 cat >conftest.$ac_ext <<_ACEOF
35328#line $LINENO "configure"
35329#include "confdefs.h"
35330
35331#ifdef F77_DUMMY_MAIN
35332# ifdef __cplusplus
35333 extern "C"
35334# endif
35335 int F77_DUMMY_MAIN() { return 1; }
35336#endif
35337int
35338main ()
35339{
35340el_init()
35341 ;
35342 return 0;
35343}
35344_ACEOF
35345rm -f conftest.$ac_objext conftest$ac_exeext
35346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35347 (eval $ac_link) 2>&5
35348 ac_status=$?
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); } &&
35351 { ac_try='test -s conftest$ac_exeext'
35352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353 (eval $ac_try) 2>&5
35354 ac_status=$?
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); }; }; then
35357 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
35358else
35359 echo "$as_me: failed program was:" >&5
35360cat conftest.$ac_ext >&5
35361fi
35362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35363 done
35364 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
35365 LIBS="$ac_save_LIBS"
35366fi
35367
35368fi
35369
35370
35371eval "ac_res=\$ac_cv_funclib_el_init"
35372
35373if false; then
35374
35375for ac_func in el_init
35376do
35377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35378echo "$as_me:$LINENO: checking for $ac_func" >&5
35379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35380if eval "test \"\${$as_ac_var+set}\" = set"; then
35381 echo $ECHO_N "(cached) $ECHO_C" >&6
35382else
35383 cat >conftest.$ac_ext <<_ACEOF
35384#line $LINENO "configure"
35385#include "confdefs.h"
35386/* System header to define __stub macros and hopefully few prototypes,
35387 which can conflict with char $ac_func (); below. */
35388#include <assert.h>
35389/* Override any gcc2 internal prototype to avoid an error. */
35390#ifdef __cplusplus
35391extern "C"
35392#endif
35393/* We use char because int might match the return type of a gcc2
35394 builtin and then its argument prototype would still apply. */
35395char $ac_func ();
35396char (*f) ();
35397
35398#ifdef F77_DUMMY_MAIN
35399# ifdef __cplusplus
35400 extern "C"
35401# endif
35402 int F77_DUMMY_MAIN() { return 1; }
35403#endif
35404int
35405main ()
35406{
35407/* The GNU C library defines this for functions which it implements
35408 to always fail with ENOSYS. Some functions are actually named
35409 something starting with __ and the normal name is an alias. */
35410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35411choke me
35412#else
35413f = $ac_func;
35414#endif
35415
35416 ;
35417 return 0;
35418}
35419_ACEOF
35420rm -f conftest.$ac_objext conftest$ac_exeext
35421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35422 (eval $ac_link) 2>&5
35423 ac_status=$?
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } &&
35426 { ac_try='test -s conftest$ac_exeext'
35427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35428 (eval $ac_try) 2>&5
35429 ac_status=$?
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); }; }; then
35432 eval "$as_ac_var=yes"
35433else
35434 echo "$as_me: failed program was:" >&5
35435cat conftest.$ac_ext >&5
35436eval "$as_ac_var=no"
35437fi
35438rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35439fi
35440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35442if test `eval echo '${'$as_ac_var'}'` = yes; then
35443 cat >>confdefs.h <<_ACEOF
35444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35445_ACEOF
35446
35447fi
35448done
35449
35450fi
35451# el_init
35452eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
35453eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
35454eval "LIB_el_init=$ac_res"
35455
35456case "$ac_res" in
35457 yes)
35458 eval "ac_cv_func_el_init=yes"
35459 eval "LIB_el_init="
35460 cat >>confdefs.h <<_ACEOF
35461#define $ac_tr_func 1
35462_ACEOF
35463
35464 echo "$as_me:$LINENO: result: yes" >&5
35465echo "${ECHO_T}yes" >&6
35466 ;;
35467 no)
35468 eval "ac_cv_func_el_init=no"
35469 eval "LIB_el_init="
35470 echo "$as_me:$LINENO: result: no" >&5
35471echo "${ECHO_T}no" >&6
35472 ;;
35473 *)
35474 eval "ac_cv_func_el_init=yes"
35475 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
35476 cat >>confdefs.h <<_ACEOF
35477#define $ac_tr_func 1
35478_ACEOF
35479
35480 cat >>confdefs.h <<_ACEOF
35481#define $ac_tr_lib 1
35482_ACEOF
35483
35484 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
35485echo "${ECHO_T}yes, in $ac_res" >&6
35486 ;;
35487esac
35488
35489
35490if test "$ac_cv_func_el_init" = yes ; then
35491 echo "$as_me:$LINENO: checking for four argument el_init" >&5
35492echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
35493if test "${ac_cv_func_el_init_four+set}" = set; then
35494 echo $ECHO_N "(cached) $ECHO_C" >&6
35495else
35496
35497 cat >conftest.$ac_ext <<_ACEOF
35498#line $LINENO "configure"
35499#include "confdefs.h"
35500#include <stdio.h>
35501 #include <histedit.h>
35502#ifdef F77_DUMMY_MAIN
35503# ifdef __cplusplus
35504 extern "C"
35505# endif
35506 int F77_DUMMY_MAIN() { return 1; }
35507#endif
35508int
35509main ()
35510{
35511el_init("", NULL, NULL, NULL);
35512 ;
35513 return 0;
35514}
35515_ACEOF
35516rm -f conftest.$ac_objext
35517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35518 (eval $ac_compile) 2>&5
35519 ac_status=$?
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); } &&
35522 { ac_try='test -s conftest.$ac_objext'
35523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35524 (eval $ac_try) 2>&5
35525 ac_status=$?
35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527 (exit $ac_status); }; }; then
35528 ac_cv_func_el_init_four=yes
35529else
35530 echo "$as_me: failed program was:" >&5
35531cat conftest.$ac_ext >&5
35532ac_cv_func_el_init_four=no
35533fi
35534rm -f conftest.$ac_objext conftest.$ac_ext
35535fi
35536echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
35537echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
35538 if test "$ac_cv_func_el_init_four" = yes; then
35539
35540cat >>confdefs.h <<\_ACEOF
35541#define HAVE_FOUR_VALUED_EL_INIT 1
35542_ACEOF
35543
35544 fi
35545fi
35546
35547
35548ac_foo=no
35549if test "$with_readline" = yes; then
35550 :
35551elif test "$ac_cv_func_readline" = yes; then
35552 :
35553elif test "$ac_cv_func_el_init" = yes; then
35554 ac_foo=yes
35555 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
35556else
35557 LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
35558fi
35559
35560
35561if test "$ac_foo" = yes; then
35562 el_compat_TRUE=
35563 el_compat_FALSE='#'
35564else
35565 el_compat_TRUE='#'
35566 el_compat_FALSE=
35567fi
35568
35569
35570cat >>confdefs.h <<\_ACEOF
35571#define HAVE_READLINE 1
35572_ACEOF
35573
35574
35575
35576
35577
35578cat >>confdefs.h <<\_ACEOF
35579#define AUTHENTICATION 1
35580_ACEOF
35581
35582cat >>confdefs.h <<\_ACEOF
35583#define ENCRYPTION 1
35584_ACEOF
35585
35586cat >>confdefs.h <<\_ACEOF
35587#define DES_ENCRYPTION 1
35588_ACEOF
35589
35590cat >>confdefs.h <<\_ACEOF
35591#define DIAGNOSTICS 1
35592_ACEOF
35593
35594cat >>confdefs.h <<\_ACEOF
35595#define OLD_ENVIRON 1
35596_ACEOF
35597if false; then
35598
35599cat >>confdefs.h <<\_ACEOF
35600#define ENV_HACK 1
35601_ACEOF
35602
35603fi
35604
35605# Simple test for streamspty, based on the existance of getmsg(), alas
35606# this breaks on SunOS4 which have streams but BSD-like ptys
35607#
35608# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
35609
35610case "$host" in
35611*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
35612 ;;
35613*)
35614 echo "$as_me:$LINENO: checking for getmsg" >&5
35615echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
35616if test "${ac_cv_func_getmsg+set}" = set; then
35617 echo $ECHO_N "(cached) $ECHO_C" >&6
35618else
35619 cat >conftest.$ac_ext <<_ACEOF
35620#line $LINENO "configure"
35621#include "confdefs.h"
35622/* System header to define __stub macros and hopefully few prototypes,
35623 which can conflict with char getmsg (); below. */
35624#include <assert.h>
35625/* Override any gcc2 internal prototype to avoid an error. */
35626#ifdef __cplusplus
35627extern "C"
35628#endif
35629/* We use char because int might match the return type of a gcc2
35630 builtin and then its argument prototype would still apply. */
35631char getmsg ();
35632char (*f) ();
35633
35634#ifdef F77_DUMMY_MAIN
35635# ifdef __cplusplus
35636 extern "C"
35637# endif
35638 int F77_DUMMY_MAIN() { return 1; }
35639#endif
35640int
35641main ()
35642{
35643/* The GNU C library defines this for functions which it implements
35644 to always fail with ENOSYS. Some functions are actually named
35645 something starting with __ and the normal name is an alias. */
35646#if defined (__stub_getmsg) || defined (__stub___getmsg)
35647choke me
35648#else
35649f = getmsg;
35650#endif
35651
35652 ;
35653 return 0;
35654}
35655_ACEOF
35656rm -f conftest.$ac_objext conftest$ac_exeext
35657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35658 (eval $ac_link) 2>&5
35659 ac_status=$?
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); } &&
35662 { ac_try='test -s conftest$ac_exeext'
35663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35664 (eval $ac_try) 2>&5
35665 ac_status=$?
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); }; }; then
35668 ac_cv_func_getmsg=yes
35669else
35670 echo "$as_me: failed program was:" >&5
35671cat conftest.$ac_ext >&5
35672ac_cv_func_getmsg=no
35673fi
35674rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35675fi
35676echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
35677echo "${ECHO_T}$ac_cv_func_getmsg" >&6
35678
35679 if test "$ac_cv_func_getmsg" = "yes"; then
35680 echo "$as_me:$LINENO: checking if getmsg works" >&5
35681echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
35682if test "${ac_cv_func_getmsg_works+set}" = set; then
35683 echo $ECHO_N "(cached) $ECHO_C" >&6
35684else
35685 if test "$cross_compiling" = yes; then
35686 ac_cv_func_getmsg_works=no
35687else
35688 cat >conftest.$ac_ext <<_ACEOF
35689#line $LINENO "configure"
35690#include "confdefs.h"
35691
35692 #include <stdio.h>
35693 #include <errno.h>
35694
35695 int main()
35696 {
35697 int ret;
35698 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
35699 if(ret < 0 && errno == ENOSYS)
35700 return 1;
35701 return 0;
35702 }
35703
35704_ACEOF
35705rm -f conftest$ac_exeext
35706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35707 (eval $ac_link) 2>&5
35708 ac_status=$?
35709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35712 (eval $ac_try) 2>&5
35713 ac_status=$?
35714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35715 (exit $ac_status); }; }; then
35716 ac_cv_func_getmsg_works=yes
35717else
35718 echo "$as_me: program exited with status $ac_status" >&5
35719echo "$as_me: failed program was:" >&5
35720cat conftest.$ac_ext >&5
35721( exit $ac_status )
35722ac_cv_func_getmsg_works=no
35723fi
35724rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35725fi
35726fi
35727echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
35728echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
35729 if test "$ac_cv_func_getmsg_works" = "yes"; then
35730
35731cat >>confdefs.h <<\_ACEOF
35732#define HAVE_GETMSG 1
35733_ACEOF
35734
35735
35736cat >>confdefs.h <<\_ACEOF
35737#define STREAMSPTY 1
35738_ACEOF
35739
35740 fi
35741 fi
35742 ;;
35743esac
35744
35745
35746
35747
35748
35749
35750
35751# Extract the first word of "compile_et", so it can be a program name with args.
35752set dummy compile_et; ac_word=$2
35753echo "$as_me:$LINENO: checking for $ac_word" >&5
35754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35755if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
35756 echo $ECHO_N "(cached) $ECHO_C" >&6
35757else
35758 if test -n "$COMPILE_ET"; then
35759 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
35760else
35761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35762for as_dir in $PATH
35763do
35764 IFS=$as_save_IFS
35765 test -z "$as_dir" && as_dir=.
35766 for ac_exec_ext in '' $ac_executable_extensions; do
35767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35768 ac_cv_prog_COMPILE_ET="compile_et"
35769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35770 break 2
35771 fi
35772done
35773done
35774
35775fi
35776fi
35777COMPILE_ET=$ac_cv_prog_COMPILE_ET
35778if test -n "$COMPILE_ET"; then
35779 echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
35780echo "${ECHO_T}$COMPILE_ET" >&6
35781else
35782 echo "$as_me:$LINENO: result: no" >&5
35783echo "${ECHO_T}no" >&6
35784fi
35785
35786
35787krb_cv_compile_et="no"
35788krb_cv_com_err_need_r=""
35789if test "${COMPILE_ET}" = "compile_et"; then
35790
35791echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
35792echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
35793cat > conftest_et.et <<'EOF'
35794error_table conf
35795prefix CONFTEST
35796index 1
35797error_code CODE1, "CODE1"
35798index 128
35799error_code CODE2, "CODE2"
35800end
35801EOF
35802if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
35803 save_CPPFLAGS="${save_CPPFLAGS}"
35804 if test -d "/usr/include/et"; then
35805 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
35806 fi
35807 if test "$cross_compiling" = yes; then
35808 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
35809echo "$as_me: error: cannot run test program while cross compiling" >&2;}
35810 { (exit 1); exit 1; }; }
35811else
35812 cat >conftest.$ac_ext <<_ACEOF
35813#line $LINENO "configure"
35814#include "confdefs.h"
35815
35816#include <com_err.h>
35817#include <string.h>
35818#include "conftest_et.h"
35819int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
35820
35821_ACEOF
35822rm -f conftest$ac_exeext
35823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35824 (eval $ac_link) 2>&5
35825 ac_status=$?
35826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35829 (eval $ac_try) 2>&5
35830 ac_status=$?
35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832 (exit $ac_status); }; }; then
35833 krb_cv_compile_et="yes"
35834else
35835 echo "$as_me: program exited with status $ac_status" >&5
35836echo "$as_me: failed program was:" >&5
35837cat conftest.$ac_ext >&5
35838( exit $ac_status )
35839CPPFLAGS="${save_CPPFLAGS}"
35840fi
35841rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35842fi
35843fi
35844echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
35845echo "${ECHO_T}${krb_cv_compile_et}" >&6
35846if test "${krb_cv_compile_et}" = "yes"; then
35847 echo "$as_me:$LINENO: checking for if com_err needs to have a initialize_error_table_r" >&5
35848echo $ECHO_N "checking for if com_err needs to have a initialize_error_table_r... $ECHO_C" >&6
35849 save2_CPPFLAGS="$CPPFLAGS"
35850 CPPFLAGS="$CPPFLAGS"
35851 cat >conftest.$ac_ext <<_ACEOF
35852#line $LINENO "configure"
35853#include "confdefs.h"
35854#include "conftest_et.c"
35855_ACEOF
35856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35857 egrep "initialize_error_table_r" >/dev/null 2>&1; then
35858 krb_cv_com_err_need_r="initialize_error_table_r(0,0,0,0);"
35859 CPPFLAGS="$save2_CPPFLAGS"
35860else
35861 CPPFLAGS="${save_CPPFLAGS}"
35862fi
35863rm -f conftest*
35864
35865 if test X"$krb_cv_com_err_need_r" = X ; then
35866 echo "$as_me:$LINENO: result: no" >&5
35867echo "${ECHO_T}no" >&6
35868 else
35869 echo "$as_me:$LINENO: result: yes" >&5
35870echo "${ECHO_T}yes" >&6
35871 fi
35872fi
35873rm -fr conftest*
35874fi
35875
35876if test "${krb_cv_compile_et}" = "yes"; then
35877 krb_cv_save_LIBS="${LIBS}"
35878 LIBS="${LIBS} -lcom_err"
35879 echo "$as_me:$LINENO: checking for com_err" >&5
35880echo $ECHO_N "checking for com_err... $ECHO_C" >&6
35881 cat >conftest.$ac_ext <<_ACEOF
35882#line $LINENO "configure"
35883#include "confdefs.h"
35884#include <com_err.h>
35885#ifdef F77_DUMMY_MAIN
35886# ifdef __cplusplus
35887 extern "C"
35888# endif
35889 int F77_DUMMY_MAIN() { return 1; }
35890#endif
35891int
35892main ()
35893{
35894
35895 const char *p;
35896 p = error_message(0);
35897 $krb_cv_com_err_need_r
35898
35899 ;
35900 return 0;
35901}
35902_ACEOF
35903rm -f conftest.$ac_objext conftest$ac_exeext
35904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35905 (eval $ac_link) 2>&5
35906 ac_status=$?
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } &&
35909 { ac_try='test -s conftest$ac_exeext'
35910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35911 (eval $ac_try) 2>&5
35912 ac_status=$?
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); }; }; then
35915 krb_cv_com_err="yes"
35916else
35917 echo "$as_me: failed program was:" >&5
35918cat conftest.$ac_ext >&5
35919krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
35920fi
35921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35922 echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
35923echo "${ECHO_T}${krb_cv_com_err}" >&6
35924 LIBS="${krb_cv_save_LIBS}"
35925else
35926 krb_cv_com_err="no"
35927fi
35928
35929if test "${krb_cv_com_err}" = "yes"; then
35930 DIR_com_err=""
35931 LIB_com_err="-lcom_err"
35932 LIB_com_err_a=""
35933 LIB_com_err_so=""
35934 { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
35935echo "$as_me: Using the already-installed com_err" >&6;}
35936else
35937 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
35938 DIR_com_err="com_err"
35939 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
35940 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
35941 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
35942 { echo "$as_me:$LINENO: Using our own com_err" >&5
35943echo "$as_me: Using our own com_err" >&6;}
35944fi
35945
35946
35947
35948
35949
35950
35951
35952
35953echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
35954echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
35955
35956z='sia afskauthlib'
35957LIB_AUTH_SUBDIRS=
35958for i in $z; do
35959case $i in
35960sia)
35961if test "$ac_cv_header_siad_h" = yes; then
35962 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
35963fi
35964;;
35965pam)
35966case "${host}" in
35967*-*-freebsd*) ac_cv_want_pam_krb4=no ;;
35968*) ac_cv_want_pam_krb4=yes ;;
35969esac
35970
35971if test "$ac_cv_want_pam_krb4" = yes -a \
35972 "$ac_cv_header_security_pam_modules_h" = yes -a \
35973 "$enable_shared" = yes; then
35974 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
35975fi
35976;;
35977afskauthlib)
35978case "${host}" in
35979*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
35980esac
35981;;
35982esac
35983done
35984if test "$LIB_AUTH_SUBDIRS"; then
35985 echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
35986echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
35987else
35988 echo "$as_me:$LINENO: result: none" >&5
35989echo "${ECHO_T}none" >&6
35990fi
35991
35992
35993
35994
35995# This is done by AC_OUTPUT but we need the result here.
35996test "x$prefix" = xNONE && prefix=$ac_default_prefix
35997test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35998
35999
36000 x="${bindir}"
36001 eval y="$x"
36002 while test "x$y" != "x$x"; do
36003 x="$y"
36004 eval y="$x"
36005 done
36006
36007cat >>confdefs.h <<_ACEOF
36008#define BINDIR "$x"
36009_ACEOF
36010
36011 x="${libdir}"
36012 eval y="$x"
36013 while test "x$y" != "x$x"; do
36014 x="$y"
36015 eval y="$x"
36016 done
36017
36018cat >>confdefs.h <<_ACEOF
36019#define LIBDIR "$x"
36020_ACEOF
36021
36022 x="${libexecdir}"
36023 eval y="$x"
36024 while test "x$y" != "x$x"; do
36025 x="$y"
36026 eval y="$x"
36027 done
36028
36029cat >>confdefs.h <<_ACEOF
36030#define LIBEXECDIR "$x"
36031_ACEOF
36032
36033 x="${localstatedir}"
36034 eval y="$x"
36035 while test "x$y" != "x$x"; do
36036 x="$y"
36037 eval y="$x"
36038 done
36039
36040cat >>confdefs.h <<_ACEOF
36041#define LOCALSTATEDIR "$x"
36042_ACEOF
36043
36044 x="${sbindir}"
36045 eval y="$x"
36046 while test "x$y" != "x$x"; do
36047 x="$y"
36048 eval y="$x"
36049 done
36050
36051cat >>confdefs.h <<_ACEOF
36052#define SBINDIR "$x"
36053_ACEOF
36054
36055 x="${sysconfdir}"
36056 eval y="$x"
36057 while test "x$y" != "x$x"; do
36058 x="$y"
36059 eval y="$x"
36060 done
36061
36062cat >>confdefs.h <<_ACEOF
36063#define SYSCONFDIR "$x"
36064_ACEOF
36065
36066
36067
36068LTLIBOBJS=`echo "$LIBOBJS" |
36069 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
36070
36071
36072
36073
36074
36075ac_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"
36076
36077
36078cat >confcache <<\_ACEOF
36079# This file is a shell script that caches the results of configure
36080# tests run on this system so they can be shared between configure
36081# scripts and configure runs, see configure's option --config-cache.
36082# It is not useful on other systems. If it contains results you don't
36083# want to keep, you may remove or edit it.
36084#
36085# config.status only pays attention to the cache file if you give it
36086# the --recheck option to rerun configure.
36087#
36088# `ac_cv_env_foo' variables (set or unset) will be overriden when
36089# loading this file, other *unset* `ac_cv_foo' will be assigned the
36090# following values.
36091
36092_ACEOF
36093
36094# The following way of writing the cache mishandles newlines in values,
36095# but we know of no workaround that is simple, portable, and efficient.
36096# So, don't put newlines in cache variables' values.
36097# Ultrix sh set writes to stderr and can't be redirected directly,
36098# and sets the high bit in the cache file unless we assign to the vars.
36099{
36100 (set) 2>&1 |
36101 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36102 *ac_space=\ *)
36103 # `set' does not quote correctly, so add quotes (double-quote
36104 # substitution turns \\\\ into \\, and sed turns \\ into \).
36105 sed -n \
36106 "s/'/'\\\\''/g;
36107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36108 ;;
36109 *)
36110 # `set' quotes correctly as required by POSIX, so do not add quotes.
36111 sed -n \
36112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
36113 ;;
36114 esac;
36115} |
36116 sed '
36117 t clear
36118 : clear
36119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36120 t end
36121 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36122 : end' >>confcache
36123if cmp -s $cache_file confcache; then :; else
36124 if test -w $cache_file; then
36125 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36126 cat confcache >$cache_file
36127 else
36128 echo "not updating unwritable cache $cache_file"
36129 fi
36130fi
36131rm -f confcache
36132
36133test "x$prefix" = xNONE && prefix=$ac_default_prefix
36134# Let make expand exec_prefix.
36135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36136
36137# VPATH may cause trouble with some makes, so we remove $(srcdir),
36138# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36139# trailing colons and then remove the whole line if VPATH becomes empty
36140# (actually we leave an empty line to preserve line numbers).
36141if test "x$srcdir" = x.; then
36142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36143s/:*\$(srcdir):*/:/;
36144s/:*\${srcdir}:*/:/;
36145s/:*@srcdir@:*/:/;
36146s/^\([^=]*=[ ]*\):*/\1/;
36147s/:*$//;
36148s/^[^=]*=[ ]*$//;
36149}'
36150fi
36151
36152DEFS=-DHAVE_CONFIG_H
36153
36154if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36155 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
36156Usually this means the macro was only invoked conditionally." >&5
36157echo "$as_me: error: conditional \"AMDEP\" was never defined.
36158Usually this means the macro was only invoked conditionally." >&2;}
36159 { (exit 1); exit 1; }; }
36160fi
36161if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36162 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
36163Usually this means the macro was only invoked conditionally." >&5
36164echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
36165Usually this means the macro was only invoked conditionally." >&2;}
36166 { (exit 1); exit 1; }; }
36167fi
36168if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
36169 { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
36170Usually this means the macro was only invoked conditionally." >&5
36171echo "$as_me: error: conditional \"KRB4\" was never defined.
36172Usually this means the macro was only invoked conditionally." >&2;}
36173 { (exit 1); exit 1; }; }
36174fi
36175if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
36176 { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
36177Usually this means the macro was only invoked conditionally." >&5
36178echo "$as_me: error: conditional \"KRB5\" was never defined.
36179Usually this means the macro was only invoked conditionally." >&2;}
36180 { (exit 1); exit 1; }; }
36181fi
36182if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
36183 { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
36184Usually this means the macro was only invoked conditionally." >&5
36185echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
36186Usually this means the macro was only invoked conditionally." >&2;}
36187 { (exit 1); exit 1; }; }
36188fi
36189if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
36190 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
36191Usually this means the macro was only invoked conditionally." >&5
36192echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
36193Usually this means the macro was only invoked conditionally." >&2;}
36194 { (exit 1); exit 1; }; }
36195fi
36196if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
36197 { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
36198Usually this means the macro was only invoked conditionally." >&5
36199echo "$as_me: error: conditional \"DCE\" was never defined.
36200Usually this means the macro was only invoked conditionally." >&2;}
36201 { (exit 1); exit 1; }; }
36202fi
36203if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
36204 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
36205Usually this means the macro was only invoked conditionally." >&5
36206echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
36207Usually this means the macro was only invoked conditionally." >&2;}
36208 { (exit 1); exit 1; }; }
36209fi
36210if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
36211 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
36212Usually this means the macro was only invoked conditionally." >&5
36213echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
36214Usually this means the macro was only invoked conditionally." >&2;}
36215 { (exit 1); exit 1; }; }
36216fi
36217if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
36218 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
36219Usually this means the macro was only invoked conditionally." >&5
36220echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
36221Usually this means the macro was only invoked conditionally." >&2;}
36222 { (exit 1); exit 1; }; }
36223fi
36224if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
36225 { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
36226Usually this means the macro was only invoked conditionally." >&5
36227echo "$as_me: error: conditional \"have_err_h\" was never defined.
36228Usually this means the macro was only invoked conditionally." >&2;}
36229 { (exit 1); exit 1; }; }
36230fi
36231if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
36232 { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
36233Usually this means the macro was only invoked conditionally." >&5
36234echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
36235Usually this means the macro was only invoked conditionally." >&2;}
36236 { (exit 1); exit 1; }; }
36237fi
36238if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
36239 { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
36240Usually this means the macro was only invoked conditionally." >&5
36241echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
36242Usually this means the macro was only invoked conditionally." >&2;}
36243 { (exit 1); exit 1; }; }
36244fi
36245if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
36246 { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
36247Usually this means the macro was only invoked conditionally." >&5
36248echo "$as_me: error: conditional \"have_vis_h\" was never defined.
36249Usually this means the macro was only invoked conditionally." >&2;}
36250 { (exit 1); exit 1; }; }
36251fi
36252if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
36253 { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
36254Usually this means the macro was only invoked conditionally." >&5
36255echo "$as_me: error: conditional \"have_glob_h\" was never defined.
36256Usually this means the macro was only invoked conditionally." >&2;}
36257 { (exit 1); exit 1; }; }
36258fi
36259if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
36260 { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
36261Usually this means the macro was only invoked conditionally." >&5
36262echo "$as_me: error: conditional \"OTP\" was never defined.
36263Usually this means the macro was only invoked conditionally." >&2;}
36264 { (exit 1); exit 1; }; }
36265fi
36266if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
36267 { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
36268Usually this means the macro was only invoked conditionally." >&5
36269echo "$as_me: error: conditional \"CATMAN\" was never defined.
36270Usually this means the macro was only invoked conditionally." >&2;}
36271 { (exit 1); exit 1; }; }
36272fi
36273if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
36274 { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
36275Usually this means the macro was only invoked conditionally." >&5
36276echo "$as_me: error: conditional \"AIX\" was never defined.
36277Usually this means the macro was only invoked conditionally." >&2;}
36278 { (exit 1); exit 1; }; }
36279fi
36280if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
36281 { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
36282Usually this means the macro was only invoked conditionally." >&5
36283echo "$as_me: error: conditional \"AIX4\" was never defined.
36284Usually this means the macro was only invoked conditionally." >&2;}
36285 { (exit 1); exit 1; }; }
36286fi
36287if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
36288 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
36289Usually this means the macro was only invoked conditionally." >&5
36290echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
36291Usually this means the macro was only invoked conditionally." >&2;}
36292 { (exit 1); exit 1; }; }
36293fi
36294if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
36295 { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
36296Usually this means the macro was only invoked conditionally." >&5
36297echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
36298Usually this means the macro was only invoked conditionally." >&2;}
36299 { (exit 1); exit 1; }; }
36300fi
36301if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
36302 { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
36303Usually this means the macro was only invoked conditionally." >&5
36304echo "$as_me: error: conditional \"IRIX\" was never defined.
36305Usually this means the macro was only invoked conditionally." >&2;}
36306 { (exit 1); exit 1; }; }
36307fi
36308if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
36309 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
36310Usually this means the macro was only invoked conditionally." >&5
36311echo "$as_me: error: conditional \"HAVE_X\" was never defined.
36312Usually this means the macro was only invoked conditionally." >&2;}
36313 { (exit 1); exit 1; }; }
36314fi
36315if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
36316 { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
36317Usually this means the macro was only invoked conditionally." >&5
36318echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
36319Usually this means the macro was only invoked conditionally." >&2;}
36320 { (exit 1); exit 1; }; }
36321fi
36322if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
36323 { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
36324Usually this means the macro was only invoked conditionally." >&5
36325echo "$as_me: error: conditional \"el_compat\" was never defined.
36326Usually this means the macro was only invoked conditionally." >&2;}
36327 { (exit 1); exit 1; }; }
36328fi
36329
36330: ${CONFIG_STATUS=./config.status}
36331ac_clean_files_save=$ac_clean_files
36332ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36333{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36334echo "$as_me: creating $CONFIG_STATUS" >&6;}
36335cat >$CONFIG_STATUS <<_ACEOF
36336#! $SHELL
36337# Generated by $as_me.
36338# Run this file to recreate the current configuration.
36339# Compiler output produced by configure, useful for debugging
36340# configure, is in config.log if it exists.
36341
36342debug=false
36343SHELL=\${CONFIG_SHELL-$SHELL}
36344_ACEOF
36345
36346cat >>$CONFIG_STATUS <<\_ACEOF
36347
36348## --------------------- ##
36349## M4sh Initialization. ##
36350## --------------------- ##
36351
36352# Be Bourne compatible
36353if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36354 emulate sh
36355 NULLCMD=:
36356elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36357 set -o posix
36358fi
36359
36360# NLS nuisances.
36361# Support unset when possible.
36362if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36363 as_unset=unset
36364else
36365 as_unset=false
36366fi
36367
36368(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
36369 { $as_unset LANG || test "${LANG+set}" != set; } ||
36370 { LANG=C; export LANG; }
36371(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
36372 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
36373 { LC_ALL=C; export LC_ALL; }
36374(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
36375 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
36376 { LC_TIME=C; export LC_TIME; }
36377(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
36378 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
36379 { LC_CTYPE=C; export LC_CTYPE; }
36380(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
36381 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
36382 { LANGUAGE=C; export LANGUAGE; }
36383(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
36384 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
36385 { LC_COLLATE=C; export LC_COLLATE; }
36386(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
36387 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
36388 { LC_NUMERIC=C; export LC_NUMERIC; }
36389(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
36390 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
36391 { LC_MESSAGES=C; export LC_MESSAGES; }
36392
36393
36394# Name of the executable.
36395as_me=`(basename "$0") 2>/dev/null ||
36396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36397 X"$0" : 'X\(//\)$' \| \
36398 X"$0" : 'X\(/\)$' \| \
36399 . : '\(.\)' 2>/dev/null ||
36400echo X/"$0" |
36401 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36402 /^X\/\(\/\/\)$/{ s//\1/; q; }
36403 /^X\/\(\/\).*/{ s//\1/; q; }
36404 s/.*/./; q'`
36405
36406# PATH needs CR, and LINENO needs CR and PATH.
36407# Avoid depending upon Character Ranges.
36408as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36409as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36410as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36411as_cr_digits='0123456789'
36412as_cr_alnum=$as_cr_Letters$as_cr_digits
36413
36414# The user is always right.
36415if test "${PATH_SEPARATOR+set}" != set; then
36416 echo "#! /bin/sh" >conftest.sh
36417 echo "exit 0" >>conftest.sh
36418 chmod +x conftest.sh
36419 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
36420 PATH_SEPARATOR=';'
36421 else
36422 PATH_SEPARATOR=:
36423 fi
36424 rm -f conftest.sh
36425fi
36426
36427
36428 as_lineno_1=$LINENO
36429 as_lineno_2=$LINENO
36430 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36431 test "x$as_lineno_1" != "x$as_lineno_2" &&
36432 test "x$as_lineno_3" = "x$as_lineno_2" || {
36433 # Find who we are. Look in the path if we contain no path at all
36434 # relative or not.
36435 case $0 in
36436 *[\\/]* ) as_myself=$0 ;;
36437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36438for as_dir in $PATH
36439do
36440 IFS=$as_save_IFS
36441 test -z "$as_dir" && as_dir=.
36442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36443done
36444
36445 ;;
36446 esac
36447 # We did not find ourselves, most probably we were run as `sh COMMAND'
36448 # in which case we are not to be found in the path.
36449 if test "x$as_myself" = x; then
36450 as_myself=$0
36451 fi
36452 if test ! -f "$as_myself"; then
36453 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36454echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36455 { (exit 1); exit 1; }; }
36456 fi
36457 case $CONFIG_SHELL in
36458 '')
36459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36460for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36461do
36462 IFS=$as_save_IFS
36463 test -z "$as_dir" && as_dir=.
36464 for as_base in sh bash ksh sh5; do
36465 case $as_dir in
36466 /*)
36467 if ("$as_dir/$as_base" -c '
36468 as_lineno_1=$LINENO
36469 as_lineno_2=$LINENO
36470 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36471 test "x$as_lineno_1" != "x$as_lineno_2" &&
36472 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36473 CONFIG_SHELL=$as_dir/$as_base
36474 export CONFIG_SHELL
36475 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36476 fi;;
36477 esac
36478 done
36479done
36480;;
36481 esac
36482
36483 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36484 # uniformly replaced by the line number. The first 'sed' inserts a
36485 # line-number line before each line; the second 'sed' does the real
36486 # work. The second script uses 'N' to pair each line-number line
36487 # with the numbered line, and appends trailing '-' during
36488 # substitution so that $LINENO is not a special case at line end.
36489 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36490 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36491 sed '=' <$as_myself |
36492 sed '
36493 N
36494 s,$,-,
36495 : loop
36496 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36497 t loop
36498 s,-$,,
36499 s,^['$as_cr_digits']*\n,,
36500 ' >$as_me.lineno &&
36501 chmod +x $as_me.lineno ||
36502 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36503echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36504 { (exit 1); exit 1; }; }
36505
36506 # Don't try to exec as it changes $[0], causing all sort of problems
36507 # (the dirname of $[0] is not the place where we might find the
36508 # original and so on. Autoconf is especially sensible to this).
36509 . ./$as_me.lineno
36510 # Exit status is that of the last command.
36511 exit
36512}
36513
36514
36515case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36516 *c*,-n*) ECHO_N= ECHO_C='
36517' ECHO_T=' ' ;;
36518 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36519 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36520esac
36521
36522if expr a : '\(a\)' >/dev/null 2>&1; then
36523 as_expr=expr
36524else
36525 as_expr=false
36526fi
36527
36528rm -f conf$$ conf$$.exe conf$$.file
36529echo >conf$$.file
36530if ln -s conf$$.file conf$$ 2>/dev/null; then
36531 # We could just check for DJGPP; but this test a) works b) is more generic
36532 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36533 if test -f conf$$.exe; then
36534 # Don't use ln at all; we don't have any links
36535 as_ln_s='cp -p'
36536 else
36537 as_ln_s='ln -s'
36538 fi
36539elif ln conf$$.file conf$$ 2>/dev/null; then
36540 as_ln_s=ln
36541else
36542 as_ln_s='cp -p'
36543fi
36544rm -f conf$$ conf$$.exe conf$$.file
36545
36546as_executable_p="test -f"
36547
36548# Sed expression to map a string onto a valid CPP name.
36549as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36550
36551# Sed expression to map a string onto a valid variable name.
36552as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36553
36554
36555# IFS
36556# We need space, tab and new line, in precisely that order.
36557as_nl='
36558'
36559IFS=" $as_nl"
36560
36561# CDPATH.
36562$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
36563
36564exec 6>&1
36565
36566# Open the log real soon, to keep \$[0] and so on meaningful, and to
36567# report actual input values of CONFIG_FILES etc. instead of their
36568# values after options handling. Logging --version etc. is OK.
36569exec 5>>config.log
36570{
36571 echo
36572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36573## Running $as_me. ##
36574_ASBOX
36575} >&5
36576cat >&5 <<_CSEOF
36577
36578This file was extended by Heimdal $as_me 0.6, which was
36579generated by GNU Autoconf 2.53. Invocation command line was
36580
36581 CONFIG_FILES = $CONFIG_FILES
36582 CONFIG_HEADERS = $CONFIG_HEADERS
36583 CONFIG_LINKS = $CONFIG_LINKS
36584 CONFIG_COMMANDS = $CONFIG_COMMANDS
36585 $ $0 $@
36586
36587_CSEOF
36588echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36589echo >&5
36590_ACEOF
36591
36592# Files that config.status was made for.
36593if test -n "$ac_config_files"; then
36594 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36595fi
36596
36597if test -n "$ac_config_headers"; then
36598 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36599fi
36600
36601if test -n "$ac_config_links"; then
36602 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36603fi
36604
36605if test -n "$ac_config_commands"; then
36606 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36607fi
36608
36609cat >>$CONFIG_STATUS <<\_ACEOF
36610
36611ac_cs_usage="\
36612\`$as_me' instantiates files from templates according to the
36613current configuration.
36614
36615Usage: $0 [OPTIONS] [FILE]...
36616
36617 -h, --help print this help, then exit
36618 -V, --version print version number, then exit
36619 -d, --debug don't remove temporary files
36620 --recheck update $as_me by reconfiguring in the same conditions
36621 --file=FILE[:TEMPLATE]
36622 instantiate the configuration file FILE
36623 --header=FILE[:TEMPLATE]
36624 instantiate the configuration header FILE
36625
36626Configuration files:
36627$config_files
36628
36629Configuration headers:
36630$config_headers
36631
36632Configuration commands:
36633$config_commands
36634
36635Report bugs to <bug-autoconf@gnu.org>."
36636_ACEOF
36637
36638cat >>$CONFIG_STATUS <<_ACEOF
36639ac_cs_version="\\
36640Heimdal config.status 0.6
36641configured by $0, generated by GNU Autoconf 2.53,
36642 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36643
36644Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36645Free Software Foundation, Inc.
36646This config.status script is free software; the Free Software Foundation
36647gives unlimited permission to copy, distribute and modify it."
36648srcdir=$srcdir
36649INSTALL="$INSTALL"
36650_ACEOF
36651
36652cat >>$CONFIG_STATUS <<\_ACEOF
36653# If no file are specified by the user, then we need to provide default
36654# value. By we need to know if files were specified by the user.
36655ac_need_defaults=:
36656while test $# != 0
36657do
36658 case $1 in
36659 --*=*)
36660 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36661 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36662 shift
36663 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
36664 shift
36665 ;;
36666 -*);;
36667 *) # This is not an option, so the user has probably given explicit
36668 # arguments.
36669 ac_need_defaults=false;;
36670 esac
36671
36672 case $1 in
36673 # Handling of the options.
36674_ACEOF
36675cat >>$CONFIG_STATUS <<_ACEOF
36676 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36677 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
36678 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
36679_ACEOF
36680cat >>$CONFIG_STATUS <<\_ACEOF
36681 --version | --vers* | -V )
36682 echo "$ac_cs_version"; exit 0 ;;
36683 --he | --h)
36684 # Conflict between --help and --header
36685 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36686Try \`$0 --help' for more information." >&5
36687echo "$as_me: error: ambiguous option: $1
36688Try \`$0 --help' for more information." >&2;}
36689 { (exit 1); exit 1; }; };;
36690 --help | --hel | -h )
36691 echo "$ac_cs_usage"; exit 0 ;;
36692 --debug | --d* | -d )
36693 debug=: ;;
36694 --file | --fil | --fi | --f )
36695 shift
36696 CONFIG_FILES="$CONFIG_FILES $1"
36697 ac_need_defaults=false;;
36698 --header | --heade | --head | --hea )
36699 shift
36700 CONFIG_HEADERS="$CONFIG_HEADERS $1"
36701 ac_need_defaults=false;;
36702
36703 # This is an error.
36704 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36705Try \`$0 --help' for more information." >&5
36706echo "$as_me: error: unrecognized option: $1
36707Try \`$0 --help' for more information." >&2;}
36708 { (exit 1); exit 1; }; } ;;
36709
36710 *) ac_config_targets="$ac_config_targets $1" ;;
36711
36712 esac
36713 shift
36714done
36715
36716_ACEOF
36717
36718cat >>$CONFIG_STATUS <<_ACEOF
36719#
36720# INIT-COMMANDS section.
36721#
36722
36723AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36724
36725_ACEOF
36726
36727
36728
36729cat >>$CONFIG_STATUS <<\_ACEOF
36730for ac_config_target in $ac_config_targets
36731do
36732 case "$ac_config_target" in
36733 # Handling of arguments.
36734 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36735 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
36736 "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
36737 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
36738 "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
36739 "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
36740 "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
36741 "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
36742 "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
36743 "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
36744 "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
36745 "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
36746 "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
36747 "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
36748 "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
36749 "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
36750 "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
36751 "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
36752 "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
36753 "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
36754 "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
36755 "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
36756 "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
36757 "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
36758 "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
36759 "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
36760 "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
36761 "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
36762 "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
36763 "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
36764 "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
36765 "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
36766 "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
36767 "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
36768 "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
36769 "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
36770 "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
36771 "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
36772 "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
36773 "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
36774 "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
36775 "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
36776 "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
36777 "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
36778 "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
36779 "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
36780 "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
36781 "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
36782 "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
36783 "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
36784 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36785 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
36786 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36787 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
36788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36789echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36790 { (exit 1); exit 1; }; };;
36791 esac
36792done
36793
36794# If the user did not use the arguments to specify the items to instantiate,
36795# then the envvar interface is used. Set only those that are not.
36796# We use the long form for the default assignment because of an extremely
36797# bizarre bug on SunOS 4.1.3.
36798if $ac_need_defaults; then
36799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36802fi
36803
36804# Create a temporary directory, and hook for its removal unless debugging.
36805$debug ||
36806{
36807 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36808 trap '{ (exit 1); exit 1; }' 1 2 13 15
36809}
36810
36811# Create a (secure) tmp directory for tmp files.
36812: ${TMPDIR=/tmp}
36813{
36814 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
36815 test -n "$tmp" && test -d "$tmp"
36816} ||
36817{
36818 tmp=$TMPDIR/cs$$-$RANDOM
36819 (umask 077 && mkdir $tmp)
36820} ||
36821{
36822 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
36823 { (exit 1); exit 1; }
36824}
36825
36826_ACEOF
36827
36828cat >>$CONFIG_STATUS <<_ACEOF
36829
36830#
36831# CONFIG_FILES section.
36832#
36833
36834# No need to generate the scripts if there are no CONFIG_FILES.
36835# This happens for instance when ./config.status config.h
36836if test -n "\$CONFIG_FILES"; then
36837 # Protect against being on the right side of a sed subst in config.status.
36838 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36839 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36840s,@SHELL@,$SHELL,;t t
36841s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36842s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36843s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36844s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36845s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36846s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36847s,@exec_prefix@,$exec_prefix,;t t
36848s,@prefix@,$prefix,;t t
36849s,@program_transform_name@,$program_transform_name,;t t
36850s,@bindir@,$bindir,;t t
36851s,@sbindir@,$sbindir,;t t
36852s,@libexecdir@,$libexecdir,;t t
36853s,@datadir@,$datadir,;t t
36854s,@sysconfdir@,$sysconfdir,;t t
36855s,@sharedstatedir@,$sharedstatedir,;t t
36856s,@localstatedir@,$localstatedir,;t t
36857s,@libdir@,$libdir,;t t
36858s,@includedir@,$includedir,;t t
36859s,@oldincludedir@,$oldincludedir,;t t
36860s,@infodir@,$infodir,;t t
36861s,@mandir@,$mandir,;t t
36862s,@build_alias@,$build_alias,;t t
36863s,@host_alias@,$host_alias,;t t
36864s,@target_alias@,$target_alias,;t t
36865s,@DEFS@,$DEFS,;t t
36866s,@ECHO_C@,$ECHO_C,;t t
36867s,@ECHO_N@,$ECHO_N,;t t
36868s,@ECHO_T@,$ECHO_T,;t t
36869s,@LIBS@,$LIBS,;t t
36870s,@CC@,$CC,;t t
36871s,@CFLAGS@,$CFLAGS,;t t
36872s,@LDFLAGS@,$LDFLAGS,;t t
36873s,@CPPFLAGS@,$CPPFLAGS,;t t
36874s,@ac_ct_CC@,$ac_ct_CC,;t t
36875s,@EXEEXT@,$EXEEXT,;t t
36876s,@OBJEXT@,$OBJEXT,;t t
36877s,@CPP@,$CPP,;t t
36878s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36879s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36880s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36881s,@PACKAGE@,$PACKAGE,;t t
36882s,@VERSION@,$VERSION,;t t
36883s,@ACLOCAL@,$ACLOCAL,;t t
36884s,@AUTOCONF@,$AUTOCONF,;t t
36885s,@AUTOMAKE@,$AUTOMAKE,;t t
36886s,@AUTOHEADER@,$AUTOHEADER,;t t
36887s,@MAKEINFO@,$MAKEINFO,;t t
36888s,@AMTAR@,$AMTAR,;t t
36889s,@install_sh@,$install_sh,;t t
36890s,@STRIP@,$STRIP,;t t
36891s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36892s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
36893s,@AWK@,$AWK,;t t
36894s,@SET_MAKE@,$SET_MAKE,;t t
36895s,@DEPDIR@,$DEPDIR,;t t
36896s,@am__include@,$am__include,;t t
36897s,@am__quote@,$am__quote,;t t
36898s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
36899s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
36900s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
36901s,@CCDEPMODE@,$CCDEPMODE,;t t
36902s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
36903s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
36904s,@MAINT@,$MAINT,;t t
36905s,@build@,$build,;t t
36906s,@build_cpu@,$build_cpu,;t t
36907s,@build_vendor@,$build_vendor,;t t
36908s,@build_os@,$build_os,;t t
36909s,@host@,$host,;t t
36910s,@host_cpu@,$host_cpu,;t t
36911s,@host_vendor@,$host_vendor,;t t
36912s,@host_os@,$host_os,;t t
36913s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
36914s,@YACC@,$YACC,;t t
36915s,@LEX@,$LEX,;t t
36916s,@LEXLIB@,$LEXLIB,;t t
36917s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36918s,@LN_S@,$LN_S,;t t
36919s,@ECHO@,$ECHO,;t t
36920s,@RANLIB@,$RANLIB,;t t
36921s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36922s,@LIBTOOL@,$LIBTOOL,;t t
36923s,@WFLAGS@,$WFLAGS,;t t
36924s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
36925s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
36926s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
36927s,@LIB_openldap@,$LIB_openldap,;t t
36928s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
36929s,@LIB_krb4@,$LIB_krb4,;t t
36930s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
36931s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
36932s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
36933s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
36934s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
36935s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
36936s,@KRB4_TRUE@,$KRB4_TRUE,;t t
36937s,@KRB4_FALSE@,$KRB4_FALSE,;t t
36938s,@KRB5_TRUE@,$KRB5_TRUE,;t t
36939s,@KRB5_FALSE@,$KRB5_FALSE,;t t
36940s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
36941s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
36942s,@LIB_kdb@,$LIB_kdb,;t t
36943s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
36944s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
36945s,@DIR_des@,$DIR_des,;t t
36946s,@INCLUDE_des@,$INCLUDE_des,;t t
36947s,@LIB_des@,$LIB_des,;t t
36948s,@LIB_des_a@,$LIB_des_a,;t t
36949s,@LIB_des_so@,$LIB_des_so,;t t
36950s,@LIB_des_appl@,$LIB_des_appl,;t t
36951s,@DCE_TRUE@,$DCE_TRUE,;t t
36952s,@DCE_FALSE@,$DCE_FALSE,;t t
36953s,@dpagaix_cflags@,$dpagaix_cflags,;t t
36954s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
36955s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
36956s,@LIB_db_create@,$LIB_db_create,;t t
36957s,@LIB_dbopen@,$LIB_dbopen,;t t
36958s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
36959s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
36960s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
36961s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
36962s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
36963s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
36964s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
36965s,@DBLIB@,$DBLIB,;t t
36966s,@LIB_NDBM@,$LIB_NDBM,;t t
36967s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
36968s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
36969s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
36970s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
36971s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
36972s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
36973s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
36974s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
36975s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
36976s,@LIB_socket@,$LIB_socket,;t t
36977s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
36978s,@LIB_syslog@,$LIB_syslog,;t t
36979s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
36980s,@LIB_res_search@,$LIB_res_search,;t t
36981s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t
36982s,@LIB_dn_expand@,$LIB_dn_expand,;t t
36983s,@LIBOBJS@,$LIBOBJS,;t t
36984s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
36985s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
36986s,@LIB_getsockopt@,$LIB_getsockopt,;t t
36987s,@LIB_setsockopt@,$LIB_setsockopt,;t t
36988s,@LIB_hstrerror@,$LIB_hstrerror,;t t
36989s,@LIB_bswap16@,$LIB_bswap16,;t t
36990s,@LIB_bswap32@,$LIB_bswap32,;t t
36991s,@LIB_pidfile@,$LIB_pidfile,;t t
36992s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
36993s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
36994s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
36995s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
36996s,@LIB_crypt@,$LIB_crypt,;t t
36997s,@DIR_roken@,$DIR_roken,;t t
36998s,@LIB_roken@,$LIB_roken,;t t
36999s,@INCLUDES_roken@,$INCLUDES_roken,;t t
37000s,@LIB_otp@,$LIB_otp,;t t
37001s,@OTP_TRUE@,$OTP_TRUE,;t t
37002s,@OTP_FALSE@,$OTP_FALSE,;t t
37003s,@LIB_security@,$LIB_security,;t t
37004s,@NROFF@,$NROFF,;t t
37005s,@GROFF@,$GROFF,;t t
37006s,@CATMAN@,$CATMAN,;t t
37007s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
37008s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
37009s,@CATMANEXT@,$CATMANEXT,;t t
37010s,@INCLUDE_readline@,$INCLUDE_readline,;t t
37011s,@LIB_readline@,$LIB_readline,;t t
37012s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
37013s,@LIB_hesiod@,$LIB_hesiod,;t t
37014s,@AIX_TRUE@,$AIX_TRUE,;t t
37015s,@AIX_FALSE@,$AIX_FALSE,;t t
37016s,@AIX4_TRUE@,$AIX4_TRUE,;t t
37017s,@AIX4_FALSE@,$AIX4_FALSE,;t t
37018s,@LIB_dlopen@,$LIB_dlopen,;t t
37019s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
37020s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
37021s,@LIB_loadquery@,$LIB_loadquery,;t t
37022s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
37023s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
37024s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
37025s,@IRIX_TRUE@,$IRIX_TRUE,;t t
37026s,@IRIX_FALSE@,$IRIX_FALSE,;t t
37027s,@X_CFLAGS@,$X_CFLAGS,;t t
37028s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
37029s,@X_LIBS@,$X_LIBS,;t t
37030s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
37031s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
37032s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
37033s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
37034s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
37035s,@LIB_XauFileName@,$LIB_XauFileName,;t t
37036s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
37037s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
37038s,@LIB_logwtmp@,$LIB_logwtmp,;t t
37039s,@LIB_logout@,$LIB_logout,;t t
37040s,@LIB_openpty@,$LIB_openpty,;t t
37041s,@LIB_tgetent@,$LIB_tgetent,;t t
37042s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
37043s,@LIB_el_init@,$LIB_el_init,;t t
37044s,@el_compat_TRUE@,$el_compat_TRUE,;t t
37045s,@el_compat_FALSE@,$el_compat_FALSE,;t t
37046s,@COMPILE_ET@,$COMPILE_ET,;t t
37047s,@DIR_com_err@,$DIR_com_err,;t t
37048s,@LIB_com_err@,$LIB_com_err,;t t
37049s,@LIB_com_err_a@,$LIB_com_err_a,;t t
37050s,@LIB_com_err_so@,$LIB_com_err_so,;t t
37051s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
37052s,@LTLIBOBJS@,$LTLIBOBJS,;t t
37053CEOF
37054
37055_ACEOF
37056
37057 cat >>$CONFIG_STATUS <<\_ACEOF
37058 # Split the substitutions into bite-sized pieces for seds with
37059 # small command number limits, like on Digital OSF/1 and HP-UX.
37060 ac_max_sed_lines=48
37061 ac_sed_frag=1 # Number of current file.
37062 ac_beg=1 # First line for current file.
37063 ac_end=$ac_max_sed_lines # Line after last line for current file.
37064 ac_more_lines=:
37065 ac_sed_cmds=
37066 while $ac_more_lines; do
37067 if test $ac_beg -gt 1; then
37068 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37069 else
37070 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37071 fi
37072 if test ! -s $tmp/subs.frag; then
37073 ac_more_lines=false
37074 else
37075 # The purpose of the label and of the branching condition is to
37076 # speed up the sed processing (if there are no `@' at all, there
37077 # is no need to browse any of the substitutions).
37078 # These are the two extra sed commands mentioned above.
37079 (echo ':t
37080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
37081 if test -z "$ac_sed_cmds"; then
37082 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
37083 else
37084 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
37085 fi
37086 ac_sed_frag=`expr $ac_sed_frag + 1`
37087 ac_beg=$ac_end
37088 ac_end=`expr $ac_end + $ac_max_sed_lines`
37089 fi
37090 done
37091 if test -z "$ac_sed_cmds"; then
37092 ac_sed_cmds=cat
37093 fi
37094fi # test -n "$CONFIG_FILES"
37095
37096_ACEOF
37097cat >>$CONFIG_STATUS <<\_ACEOF
37098for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
37099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
37100 case $ac_file in
37101 - | *:- | *:-:* ) # input from stdin
37102 cat >$tmp/stdin
37103 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37104 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37105 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37107 * ) ac_file_in=$ac_file.in ;;
37108 esac
37109
37110 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
37111 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37113 X"$ac_file" : 'X\(//\)[^/]' \| \
37114 X"$ac_file" : 'X\(//\)$' \| \
37115 X"$ac_file" : 'X\(/\)' \| \
37116 . : '\(.\)' 2>/dev/null ||
37117echo X"$ac_file" |
37118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37120 /^X\(\/\/\)$/{ s//\1/; q; }
37121 /^X\(\/\).*/{ s//\1/; q; }
37122 s/.*/./; q'`
37123 { case "$ac_dir" in
37124 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
37125 *) as_incr_dir=.;;
37126esac
37127as_dummy="$ac_dir"
37128for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
37129 case $as_mkdir_dir in
37130 # Skip DOS drivespec
37131 ?:) as_incr_dir=$as_mkdir_dir ;;
37132 *)
37133 as_incr_dir=$as_incr_dir/$as_mkdir_dir
37134 test -d "$as_incr_dir" ||
37135 mkdir "$as_incr_dir" ||
37136 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
37137echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
37138 { (exit 1); exit 1; }; }
37139 ;;
37140 esac
37141done; }
37142
37143 ac_builddir=.
37144
37145if test "$ac_dir" != .; then
37146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37147 # A "../" for each directory in $ac_dir_suffix.
37148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37149else
37150 ac_dir_suffix= ac_top_builddir=
37151fi
37152
37153case $srcdir in
37154 .) # No --srcdir option. We are building in place.
37155 ac_srcdir=.
37156 if test -z "$ac_top_builddir"; then
37157 ac_top_srcdir=.
37158 else
37159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37160 fi ;;
37161 [\\/]* | ?:[\\/]* ) # Absolute path.
37162 ac_srcdir=$srcdir$ac_dir_suffix;
37163 ac_top_srcdir=$srcdir ;;
37164 *) # Relative path.
37165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37166 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37167esac
37168# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37169# absolute.
37170ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37171ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
37172ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37173ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37174
37175
37176 case $INSTALL in
37177 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37178 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
37179 esac
37180
37181 if test x"$ac_file" != x-; then
37182 { echo "$as_me:$LINENO: creating $ac_file" >&5
37183echo "$as_me: creating $ac_file" >&6;}
37184 rm -f "$ac_file"
37185 fi
37186 # Let's still pretend it is `configure' which instantiates (i.e., don't
37187 # use $as_me), people would be surprised to read:
37188 # /* config.h. Generated by config.status. */
37189 if test x"$ac_file" = x-; then
37190 configure_input=
37191 else
37192 configure_input="$ac_file. "
37193 fi
37194 configure_input=$configure_input"Generated from `echo $ac_file_in |
37195 sed 's,.*/,,'` by configure."
37196
37197 # First look for the input files in the build tree, otherwise in the
37198 # src tree.
37199 ac_file_inputs=`IFS=:
37200 for f in $ac_file_in; do
37201 case $f in
37202 -) echo $tmp/stdin ;;
37203 [\\/$]*)
37204 # Absolute (can't be DOS-style, as IFS=:)
37205 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37206echo "$as_me: error: cannot find input file: $f" >&2;}
37207 { (exit 1); exit 1; }; }
37208 echo $f;;
37209 *) # Relative
37210 if test -f "$f"; then
37211 # Build tree
37212 echo $f
37213 elif test -f "$srcdir/$f"; then
37214 # Source tree
37215 echo $srcdir/$f
37216 else
37217 # /dev/null tree
37218 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37219echo "$as_me: error: cannot find input file: $f" >&2;}
37220 { (exit 1); exit 1; }; }
37221 fi;;
37222 esac
37223 done` || { (exit 1); exit 1; }
37224_ACEOF
37225cat >>$CONFIG_STATUS <<_ACEOF
37226 sed "$ac_vpsub
37227$extrasub
37228_ACEOF
37229cat >>$CONFIG_STATUS <<\_ACEOF
37230:t
37231/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37232s,@configure_input@,$configure_input,;t t
37233s,@srcdir@,$ac_srcdir,;t t
37234s,@abs_srcdir@,$ac_abs_srcdir,;t t
37235s,@top_srcdir@,$ac_top_srcdir,;t t
37236s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
37237s,@builddir@,$ac_builddir,;t t
37238s,@abs_builddir@,$ac_abs_builddir,;t t
37239s,@top_builddir@,$ac_top_builddir,;t t
37240s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
37241s,@INSTALL@,$ac_INSTALL,;t t
37242" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
37243 rm -f $tmp/stdin
37244 if test x"$ac_file" != x-; then
37245 mv $tmp/out $ac_file
37246 else
37247 cat $tmp/out
37248 rm -f $tmp/out
37249 fi
37250
37251done
37252_ACEOF
37253cat >>$CONFIG_STATUS <<\_ACEOF
37254
37255#
37256# CONFIG_HEADER section.
37257#
37258
37259# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
37260# NAME is the cpp macro being defined and VALUE is the value it is being given.
37261#
37262# ac_d sets the value in "#define NAME VALUE" lines.
37263ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
37264ac_dB='[ ].*$,\1#\2'
37265ac_dC=' '
37266ac_dD=',;t'
37267# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
37268ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
37269ac_uB='$,\1#\2define\3'
37270ac_uC=' '
37271ac_uD=',;t'
37272
37273for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
37274 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
37275 case $ac_file in
37276 - | *:- | *:-:* ) # input from stdin
37277 cat >$tmp/stdin
37278 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37279 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37280 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37281 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37282 * ) ac_file_in=$ac_file.in ;;
37283 esac
37284
37285 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
37286echo "$as_me: creating $ac_file" >&6;}
37287
37288 # First look for the input files in the build tree, otherwise in the
37289 # src tree.
37290 ac_file_inputs=`IFS=:
37291 for f in $ac_file_in; do
37292 case $f in
37293 -) echo $tmp/stdin ;;
37294 [\\/$]*)
37295 # Absolute (can't be DOS-style, as IFS=:)
37296 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37297echo "$as_me: error: cannot find input file: $f" >&2;}
37298 { (exit 1); exit 1; }; }
37299 echo $f;;
37300 *) # Relative
37301 if test -f "$f"; then
37302 # Build tree
37303 echo $f
37304 elif test -f "$srcdir/$f"; then
37305 # Source tree
37306 echo $srcdir/$f
37307 else
37308 # /dev/null tree
37309 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37310echo "$as_me: error: cannot find input file: $f" >&2;}
37311 { (exit 1); exit 1; }; }
37312 fi;;
37313 esac
37314 done` || { (exit 1); exit 1; }
37315 # Remove the trailing spaces.
37316 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
37317
37318_ACEOF
37319
37320# Transform confdefs.h into two sed scripts, `conftest.defines' and
37321# `conftest.undefs', that substitutes the proper values into
37322# config.h.in to produce config.h. The first handles `#define'
37323# templates, and the second `#undef' templates.
37324# And first: Protect against being on the right side of a sed subst in
37325# config.status. Protect against being in an unquoted here document
37326# in config.status.
37327rm -f conftest.defines conftest.undefs
37328# Using a here document instead of a string reduces the quoting nightmare.
37329# Putting comments in sed scripts is not portable.
37330#
37331# `end' is used to avoid that the second main sed command (meant for
37332# 0-ary CPP macros) applies to n-ary macro definitions.
37333# See the Autoconf documentation for `clear'.
37334cat >confdef2sed.sed <<\_ACEOF
37335s/[\\&,]/\\&/g
37336s,[\\$`],\\&,g
37337t clear
37338: clear
37339s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
37340t end
37341s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
37342: end
37343_ACEOF
37344# If some macros were called several times there might be several times
37345# the same #defines, which is useless. Nevertheless, we may not want to
37346# sort them, since we want the *last* AC-DEFINE to be honored.
37347uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37348sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37349rm -f confdef2sed.sed
37350
37351# This sed command replaces #undef with comments. This is necessary, for
37352# example, in the case of _POSIX_SOURCE, which is predefined and required
37353# on some systems where configure will not decide to define it.
37354cat >>conftest.undefs <<\_ACEOF
37355s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
37356_ACEOF
37357
37358# Break up conftest.defines because some shells have a limit on the size
37359# of here documents, and old seds have small limits too (100 cmds).
37360echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
37361echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
37362echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37363echo ' :' >>$CONFIG_STATUS
37364rm -f conftest.tail
37365while grep . conftest.defines >/dev/null
37366do
37367 # Write a limited-size here document to $tmp/defines.sed.
37368 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37369 # Speed up: don't consider the non `#define' lines.
37370 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
37371 # Work around the forget-to-reset-the-flag bug.
37372 echo 't clr' >>$CONFIG_STATUS
37373 echo ': clr' >>$CONFIG_STATUS
37374 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37375 echo 'CEOF
37376 sed -f $tmp/defines.sed $tmp/in >$tmp/out
37377 rm -f $tmp/in
37378 mv $tmp/out $tmp/in
37379' >>$CONFIG_STATUS
37380 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37381 rm -f conftest.defines
37382 mv conftest.tail conftest.defines
37383done
37384rm -f conftest.defines
37385echo ' fi # egrep' >>$CONFIG_STATUS
37386echo >>$CONFIG_STATUS
37387
37388# Break up conftest.undefs because some shells have a limit on the size
37389# of here documents, and old seds have small limits too (100 cmds).
37390echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
37391rm -f conftest.tail
37392while grep . conftest.undefs >/dev/null
37393do
37394 # Write a limited-size here document to $tmp/undefs.sed.
37395 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37396 # Speed up: don't consider the non `#undef'
37397 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
37398 # Work around the forget-to-reset-the-flag bug.
37399 echo 't clr' >>$CONFIG_STATUS
37400 echo ': clr' >>$CONFIG_STATUS
37401 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
37402 echo 'CEOF
37403 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37404 rm -f $tmp/in
37405 mv $tmp/out $tmp/in
37406' >>$CONFIG_STATUS
37407 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37408 rm -f conftest.undefs
37409 mv conftest.tail conftest.undefs
37410done
37411rm -f conftest.undefs
37412
37413cat >>$CONFIG_STATUS <<\_ACEOF
37414 # Let's still pretend it is `configure' which instantiates (i.e., don't
37415 # use $as_me), people would be surprised to read:
37416 # /* config.h. Generated by config.status. */
37417 if test x"$ac_file" = x-; then
37418 echo "/* Generated by configure. */" >$tmp/config.h
37419 else
37420 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
37421 fi
37422 cat $tmp/in >>$tmp/config.h
37423 rm -f $tmp/in
37424 if test x"$ac_file" != x-; then
37425 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
37426 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37427echo "$as_me: $ac_file is unchanged" >&6;}
37428 else
37429 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37430$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37431 X"$ac_file" : 'X\(//\)[^/]' \| \
37432 X"$ac_file" : 'X\(//\)$' \| \
37433 X"$ac_file" : 'X\(/\)' \| \
37434 . : '\(.\)' 2>/dev/null ||
37435echo X"$ac_file" |
37436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37438 /^X\(\/\/\)$/{ s//\1/; q; }
37439 /^X\(\/\).*/{ s//\1/; q; }
37440 s/.*/./; q'`
37441 { case "$ac_dir" in
37442 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
37443 *) as_incr_dir=.;;
37444esac
37445as_dummy="$ac_dir"
37446for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
37447 case $as_mkdir_dir in
37448 # Skip DOS drivespec
37449 ?:) as_incr_dir=$as_mkdir_dir ;;
37450 *)
37451 as_incr_dir=$as_incr_dir/$as_mkdir_dir
37452 test -d "$as_incr_dir" ||
37453 mkdir "$as_incr_dir" ||
37454 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
37455echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
37456 { (exit 1); exit 1; }; }
37457 ;;
37458 esac
37459done; }
37460
37461 rm -f $ac_file
37462 mv $tmp/config.h $ac_file
37463 fi
37464 else
37465 cat $tmp/config.h
37466 rm -f $tmp/config.h
37467 fi
37468 # Run the commands associated with the file.
37469 case $ac_file in
37470 include/config.h ) # update the timestamp
37471echo 'timestamp for include/config.h' >"include/stamp-h1"
37472 ;;
37473 esac
37474done
37475_ACEOF
37476cat >>$CONFIG_STATUS <<\_ACEOF
37477
37478#
37479# CONFIG_COMMANDS section.
37480#
37481for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37482 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37483 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37484 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37485$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37486 X"$ac_dest" : 'X\(//\)[^/]' \| \
37487 X"$ac_dest" : 'X\(//\)$' \| \
37488 X"$ac_dest" : 'X\(/\)' \| \
37489 . : '\(.\)' 2>/dev/null ||
37490echo X"$ac_dest" |
37491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37493 /^X\(\/\/\)$/{ s//\1/; q; }
37494 /^X\(\/\).*/{ s//\1/; q; }
37495 s/.*/./; q'`
37496 ac_builddir=.
37497
37498if test "$ac_dir" != .; then
37499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37500 # A "../" for each directory in $ac_dir_suffix.
37501 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37502else
37503 ac_dir_suffix= ac_top_builddir=
37504fi
37505
37506case $srcdir in
37507 .) # No --srcdir option. We are building in place.
37508 ac_srcdir=.
37509 if test -z "$ac_top_builddir"; then
37510 ac_top_srcdir=.
37511 else
37512 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37513 fi ;;
37514 [\\/]* | ?:[\\/]* ) # Absolute path.
37515 ac_srcdir=$srcdir$ac_dir_suffix;
37516 ac_top_srcdir=$srcdir ;;
37517 *) # Relative path.
37518 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37519 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37520esac
37521# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37522# absolute.
37523ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37524ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
37525ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37526ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37527
37528
37529 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37530echo "$as_me: executing $ac_dest commands" >&6;}
37531 case $ac_dest in
37532 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37533 # Strip MF so we end up with the name of the file.
37534 mf=`echo "$mf" | sed -e 's/:.*$//'`
37535 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
37536 dirpart=`(dirname "$mf") 2>/dev/null ||
37537$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37538 X"$mf" : 'X\(//\)[^/]' \| \
37539 X"$mf" : 'X\(//\)$' \| \
37540 X"$mf" : 'X\(/\)' \| \
37541 . : '\(.\)' 2>/dev/null ||
37542echo X"$mf" |
37543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37545 /^X\(\/\/\)$/{ s//\1/; q; }
37546 /^X\(\/\).*/{ s//\1/; q; }
37547 s/.*/./; q'`
37548 else
37549 continue
37550 fi
37551 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
37552 # Extract the definition of DEP_FILES from the Makefile without
37553 # running `make'.
37554 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
37555 test -z "$DEPDIR" && continue
37556 # When using ansi2knr, U may be empty or an underscore; expand it
37557 U=`sed -n -e '/^U = / s///p' < "$mf"`
37558 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
37559 # We invoke sed twice because it is the simplest approach to
37560 # changing $(DEPDIR) to its actual value in the expansion.
37561 for file in `sed -n -e '
37562 /^DEP_FILES = .*\\\\$/ {
37563 s/^DEP_FILES = //
37564 :loop
37565 s/\\\\$//
37566 p
37567 n
37568 /\\\\$/ b loop
37569 p
37570 }
37571 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
37572 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37573 # Make sure the directory exists.
37574 test -f "$dirpart/$file" && continue
37575 fdir=`(dirname "$file") 2>/dev/null ||
37576$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37577 X"$file" : 'X\(//\)[^/]' \| \
37578 X"$file" : 'X\(//\)$' \| \
37579 X"$file" : 'X\(/\)' \| \
37580 . : '\(.\)' 2>/dev/null ||
37581echo X"$file" |
37582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37584 /^X\(\/\/\)$/{ s//\1/; q; }
37585 /^X\(\/\).*/{ s//\1/; q; }
37586 s/.*/./; q'`
37587 { case $dirpart/$fdir in
37588 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
37589 *) as_incr_dir=.;;
37590esac
37591as_dummy=$dirpart/$fdir
37592for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
37593 case $as_mkdir_dir in
37594 # Skip DOS drivespec
37595 ?:) as_incr_dir=$as_mkdir_dir ;;
37596 *)
37597 as_incr_dir=$as_incr_dir/$as_mkdir_dir
37598 test -d "$as_incr_dir" ||
37599 mkdir "$as_incr_dir" ||
37600 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
37601echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
37602 { (exit 1); exit 1; }; }
37603 ;;
37604 esac
37605done; }
37606
37607 # echo "creating $dirpart/$file"
37608 echo '# dummy' > "$dirpart/$file"
37609 done
37610done
37611 ;;
37612 esac
37613done
37614_ACEOF
37615
37616cat >>$CONFIG_STATUS <<\_ACEOF
37617
37618{ (exit 0); exit 0; }
37619_ACEOF
37620chmod +x $CONFIG_STATUS
37621ac_clean_files=$ac_clean_files_save
37622
37623
37624# configure is writing to config.log, and then calls config.status.
37625# config.status does its own redirection, appending to config.log.
37626# Unfortunately, on DOS this fails, as config.log is still kept open
37627# by configure, so config.status won't be able to write to it; its
37628# output is simply discarded. So we exec the FD to /dev/null,
37629# effectively closing config.log, so it can be properly (re)opened and
37630# appended to by config.status. When coming back to configure, we
37631# need to make the FD available again.
37632if test "$no_create" != yes; then
37633 ac_cs_success=:
37634 exec 5>/dev/null
37635 $SHELL $CONFIG_STATUS || ac_cs_success=false
37636 exec 5>>config.log
37637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37638 # would make configure fail if this is the last instruction.
37639 $ac_cs_success || { (exit 1); exit 1; }
37640fi
37641
37642
37643
37644cat > include/newversion.h.in <<EOF
37645const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
37646const char *heimdal_version = "Heimdal 0.6";
37647EOF
37648
37649if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
37650 echo "include/version.h is unchanged"
37651 rm -f include/newversion.h.in
37652else
37653 echo "creating include/version.h"
37654 User=${USER-${LOGNAME}}
37655 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
37656 Date=`date`
37657 mv -f include/newversion.h.in include/version.h.in
37658 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
37659fi