Merge from vendor branch GCC:
[dragonfly.git] / crypto / heimdal / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.325.2.2 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for Heimdal 0.5.1.
5 #
6 # Report bugs to <heimdal-bugs@pdc.kth.se>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12
13 # Find the correct PATH separator.  Usually this is `:', but
14 # DJGPP uses `;' like DOS.
15 if 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
22 fi
23
24
25 # Check that we are running under the correct shell.
26 SHELL=${CONFIG_SHELL-/bin/sh}
27
28 case X$ECHO in
29 X*--fallback-echo)
30   # Remove one level of quotation (which was required for Make).
31   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32   ;;
33 esac
34
35 echo=${ECHO-echo}
36 if test "X$1" = X--no-reexec; then
37   # Discard the --no-reexec flag, and continue.
38   shift
39 elif test "X$1" = X--fallback-echo; then
40   # Avoid inline document here, it may be left over
41   :
42 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
43   # Yippee, $echo works!
44   :
45 else
46   # Restart under the correct shell.
47   exec $SHELL "$0" --no-reexec ${1+"$@"}
48 fi
49
50 if test "X$1" = X--fallback-echo; then
51   # used as fallback echo
52   shift
53   cat <<EOF
54
55 EOF
56   exit 0
57 fi
58
59 # The HP-UX ksh and POSIX shell print the target directory to stdout
60 # if CDPATH is set.
61 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
62
63 if test -z "$ECHO"; then
64 if 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
75 fi
76
77 if 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   :
81 else
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
160 fi
161 fi
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.
165 ECHO=$echo
166 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
167    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
168 fi
169
170
171
172 if expr a : '\(a\)' >/dev/null 2>&1; then
173   as_expr=expr
174 else
175   as_expr=false
176 fi
177
178
179 ## --------------------- ##
180 ## M4sh Initialization.  ##
181 ## --------------------- ##
182
183 # Be Bourne compatible
184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
185   emulate sh
186   NULLCMD=:
187 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
188   set -o posix
189 fi
190
191 # NLS nuisances.
192 # Support unset when possible.
193 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
194   as_unset=unset
195 else
196   as_unset=false
197 fi
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.
226 as_me=`(basename "$0") 2>/dev/null ||
227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
228          X"$0" : 'X\(//\)$' \| \
229          X"$0" : 'X\(/\)$' \| \
230          .     : '\(.\)' 2>/dev/null ||
231 echo 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.
239 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
240 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
241 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
242 as_cr_digits='0123456789'
243 as_cr_alnum=$as_cr_Letters$as_cr_digits
244
245 # The user is always right.
246 if 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
256 fi
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
269 for as_dir in $PATH
270 do
271   IFS=$as_save_IFS
272   test -z "$as_dir" && as_dir=.
273   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
274 done
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
290 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
291 do
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
309 done
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
344 case `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= ;;
349 esac
350
351 if expr a : '\(a\)' >/dev/null 2>&1; then
352   as_expr=expr
353 else
354   as_expr=false
355 fi
356
357 rm -f conf$$ conf$$.exe conf$$.file
358 echo >conf$$.file
359 if 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
368 elif ln conf$$.file conf$$ 2>/dev/null; then
369   as_ln_s=ln
370 else
371   as_ln_s='cp -p'
372 fi
373 rm -f conf$$ conf$$.exe conf$$.file
374
375 as_executable_p="test -f"
376
377 # Sed expression to map a string onto a valid CPP name.
378 as_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.
381 as_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.
386 as_nl='
387 '
388 IFS="   $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.
397 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398
399 exec 6>&1
400
401 #
402 # Initializations.
403 #
404 ac_default_prefix=/usr/local
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${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.
417 PACKAGE_NAME='Heimdal'
418 PACKAGE_TARNAME='heimdal'
419 PACKAGE_VERSION='0.5.1'
420 PACKAGE_STRING='Heimdal 0.5.1'
421 PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se'
422
423 ac_unique_file="kuser/kinit.c"
424 ac_default_prefix=/usr/heimdal
425 # Factoring default headers for most tests.
426 ac_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.
464 ac_init_help=
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 cache_file=/dev/null
469 exec_prefix=NONE
470 no_create=
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 verbose=
480 x_includes=NONE
481 x_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.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
500
501 ac_prev=
502 for ac_option
503 do
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
775 Try \`$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
798 done
799
800 if 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; }; }
804 fi
805
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
808 do
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
815 done
816
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819               localstatedir libdir includedir oldincludedir infodir mandir
820 do
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
827 done
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.
832 build=$build_alias
833 host=$host_alias
834 target=$target_alias
835
836 # FIXME: To remove some day.
837 if 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
845 fi
846
847 ac_tool_prefix=
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850 test "$silent" = yes && exec 6>/dev/null
851
852
853 # Find the source files, if location was not specified.
854 if 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 ||
863 echo 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
873 else
874   ac_srcdir_defaulted=no
875 fi
876 if 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
884 fi
885 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
886 ac_env_build_alias_set=${build_alias+set}
887 ac_env_build_alias_value=$build_alias
888 ac_cv_env_build_alias_set=${build_alias+set}
889 ac_cv_env_build_alias_value=$build_alias
890 ac_env_host_alias_set=${host_alias+set}
891 ac_env_host_alias_value=$host_alias
892 ac_cv_env_host_alias_set=${host_alias+set}
893 ac_cv_env_host_alias_value=$host_alias
894 ac_env_target_alias_set=${target_alias+set}
895 ac_env_target_alias_value=$target_alias
896 ac_cv_env_target_alias_set=${target_alias+set}
897 ac_cv_env_target_alias_value=$target_alias
898 ac_env_CC_set=${CC+set}
899 ac_env_CC_value=$CC
900 ac_cv_env_CC_set=${CC+set}
901 ac_cv_env_CC_value=$CC
902 ac_env_CFLAGS_set=${CFLAGS+set}
903 ac_env_CFLAGS_value=$CFLAGS
904 ac_cv_env_CFLAGS_set=${CFLAGS+set}
905 ac_cv_env_CFLAGS_value=$CFLAGS
906 ac_env_LDFLAGS_set=${LDFLAGS+set}
907 ac_env_LDFLAGS_value=$LDFLAGS
908 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
909 ac_cv_env_LDFLAGS_value=$LDFLAGS
910 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_env_CPPFLAGS_value=$CPPFLAGS
912 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
913 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
914 ac_env_CPP_set=${CPP+set}
915 ac_env_CPP_value=$CPP
916 ac_cv_env_CPP_set=${CPP+set}
917 ac_cv_env_CPP_value=$CPP
918
919 #
920 # Report the --help message.
921 #
922 if test "$ac_init_help" = "long"; then
923   # Omit some internal or obsolete options to make the list less imposing.
924   # This message is too long to be a string in the A/UX 3.1 sh.
925   cat <<_ACEOF
926 \`configure' configures Heimdal 0.5.1 to adapt to many kinds of systems.
927
928 Usage: $0 [OPTION]... [VAR=VALUE]...
929
930 To assign environment variables (e.g., CC, CFLAGS...), specify them as
931 VAR=VALUE.  See below for descriptions of some of the useful variables.
932
933 Defaults for the options are specified in brackets.
934
935 Configuration:
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
949 Installation 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
955 By default, \`make install' will install all the files in
956 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
957 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
958 for instance \`--prefix=\$HOME'.
959
960 For better control, use the options below.
961
962 Fine 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
979 Program 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
984 X features:
985   --x-includes=DIR    X include files are in DIR
986   --x-libraries=DIR   X library files are in DIR
987
988 System 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
992 fi
993
994 if test -n "$ac_init_help"; then
995   case $ac_init_help in
996      short | recursive ) echo "Configuration of Heimdal 0.5.1:";;
997    esac
998   cat <<\_ACEOF
999
1000 Optional Features:
1001   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003   --disable-dependency-tracking Speeds up one-time builds
1004   --enable-dependency-tracking  Do not reject slow dependency extractors
1005   --disable-largefile     omit support for large files
1006   --enable-shared=PKGS  build shared libraries default=no
1007   --enable-static=PKGS  build static libraries default=yes
1008   --enable-fast-install=PKGS  optimize for fast installation default=yes
1009   --disable-libtool-lock  avoid locking (might break parallel builds)
1010   --enable-dce            if you want support for DCE/DFS PAG's
1011   --disable-berkeley-db   if you don't want berkeley db
1012   --disable-otp           if you don't want OTP support
1013   --enable-osfc2          enable some OSF C2 support
1014   --disable-mmap          disable use of mmap
1015   --enable-bigendian      the target is big endian
1016   --enable-littleendian   the target is little endian
1017   --disable-dynamic-afs   do not use loaded AFS library with AIX
1018   --enable-netinfo        enable netinfo for configuration lookup
1019
1020 Optional Packages:
1021   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1022   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1023   --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
1024   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1025   --with-pic              try to use only PIC/non-PIC objects default=use both
1026   --with-openldap=dir     use openldap in dir
1027   --with-openldap-lib=dir use openldap libraries in dir
1028   --with-openldap-include=dir
1029                           use openldap headers in dir
1030   --with-openldap-config=path
1031                           config program for openldap
1032   --with-krb4=dir         use krb4 in dir
1033   --with-krb4-lib=dir     use krb4 libraries in dir
1034   --with-krb4-include=dir use krb4 headers in dir
1035   --with-krb4-config=path config program for krb4
1036   --with-openssl=dir      use openssl in dir
1037   --with-openssl-lib=dir  use openssl libraries in dir
1038   --with-openssl-include=dir
1039                           use openssl headers in dir
1040   --without-ipv6          do not enable IPv6 support
1041   --with-readline=dir     use readline in dir
1042   --with-readline-lib=dir use readline libraries in dir
1043   --with-readline-include=dir
1044                           use readline headers in dir
1045   --with-readline-config=path
1046                           config program for readline
1047   --with-hesiod=dir       use hesiod in dir
1048   --with-hesiod-lib=dir   use hesiod libraries in dir
1049   --with-hesiod-include=dir
1050                           use hesiod headers in dir
1051   --with-hesiod-config=path
1052                           config program for hesiod
1053   --with-x                use the X Window System
1054
1055 Some influential environment variables:
1056   CC          C compiler command
1057   CFLAGS      C compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CPP         C preprocessor
1063
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1066
1067 Report bugs to <heimdal-bugs@pdc.kth.se>.
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072   # If there are subdirs, report their specific --help.
1073   ac_popdir=`pwd`
1074   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075     test -d $ac_dir || continue
1076     ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080   # A "../" for each directory in $ac_dir_suffix.
1081   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083   ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087   .)  # No --srcdir option.  We are building in place.
1088     ac_srcdir=.
1089     if test -z "$ac_top_builddir"; then
1090        ac_top_srcdir=.
1091     else
1092        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093     fi ;;
1094   [\\/]* | ?:[\\/]* )  # Absolute path.
1095     ac_srcdir=$srcdir$ac_dir_suffix;
1096     ac_top_srcdir=$srcdir ;;
1097   *) # Relative path.
1098     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1102 # absolute.
1103 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1104 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1105 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1106 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1107
1108     cd $ac_dir
1109     # Check for guested configure; otherwise get Cygnus style configure.
1110     if test -f $ac_srcdir/configure.gnu; then
1111       echo
1112       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1113     elif test -f $ac_srcdir/configure; then
1114       echo
1115       $SHELL $ac_srcdir/configure  --help=recursive
1116     elif test -f $ac_srcdir/configure.ac ||
1117            test -f $ac_srcdir/configure.in; then
1118       echo
1119       $ac_configure --help
1120     else
1121       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1122     fi
1123     cd $ac_popdir
1124   done
1125 fi
1126
1127 test -n "$ac_init_help" && exit 0
1128 if $ac_init_version; then
1129   cat <<\_ACEOF
1130 Heimdal configure 0.5.1
1131 generated by GNU Autoconf 2.53
1132
1133 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1134 Free Software Foundation, Inc.
1135 This configure script is free software; the Free Software Foundation
1136 gives unlimited permission to copy, distribute and modify it.
1137 _ACEOF
1138   exit 0
1139 fi
1140 exec 5>config.log
1141 cat >&5 <<_ACEOF
1142 This file contains any messages produced by compilers while
1143 running configure, to aid debugging if configure makes a mistake.
1144
1145 It was created by Heimdal $as_me 0.5.1, which was
1146 generated by GNU Autoconf 2.53.  Invocation command line was
1147
1148   $ $0 $@
1149
1150 _ACEOF
1151 {
1152 cat <<_ASUNAME
1153 ## --------- ##
1154 ## Platform. ##
1155 ## --------- ##
1156
1157 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162
1163 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1165
1166 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1167 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1168 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1170 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1171 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1172 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1173
1174 _ASUNAME
1175
1176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177 for as_dir in $PATH
1178 do
1179   IFS=$as_save_IFS
1180   test -z "$as_dir" && as_dir=.
1181   echo "PATH: $as_dir"
1182 done
1183
1184 } >&5
1185
1186 cat >&5 <<_ACEOF
1187
1188
1189 ## ----------- ##
1190 ## Core tests. ##
1191 ## ----------- ##
1192
1193 _ACEOF
1194
1195
1196 # Keep a trace of the command line.
1197 # Strip out --no-create and --no-recursion so they do not pile up.
1198 # Also quote any args containing shell meta-characters.
1199 ac_configure_args=
1200 ac_sep=
1201 for ac_arg
1202 do
1203   case $ac_arg in
1204   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205   | --no-cr | --no-c | -n ) continue ;;
1206   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208     continue ;;
1209   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1210     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1211   esac
1212   case " $ac_configure_args " in
1213     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1214     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1215        ac_sep=" " ;;
1216   esac
1217   # Get rid of the leading space.
1218 done
1219
1220 # When interrupted or exit'd, cleanup temporary files, and complete
1221 # config.log.  We remove comments because anyway the quotes in there
1222 # would cause problems or look ugly.
1223 # WARNING: Be sure not to use single quotes in there, as some shells,
1224 # such as our DU 5.0 friend, will then `close' the trap.
1225 trap 'exit_status=$?
1226   # Save into config.log some information that might help in debugging.
1227   {
1228     echo
1229     cat <<\_ASBOX
1230 ## ---------------- ##
1231 ## Cache variables. ##
1232 ## ---------------- ##
1233 _ASBOX
1234     echo
1235     # The following way of writing the cache mishandles newlines in values,
1236 {
1237   (set) 2>&1 |
1238     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1239     *ac_space=\ *)
1240       sed -n \
1241         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1243       ;;
1244     *)
1245       sed -n \
1246         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1247       ;;
1248     esac;
1249 }
1250     echo
1251     if test -s confdefs.h; then
1252       cat <<\_ASBOX
1253 ## ----------- ##
1254 ## confdefs.h. ##
1255 ## ----------- ##
1256 _ASBOX
1257       echo
1258       sed "/^$/d" confdefs.h
1259       echo
1260     fi
1261     test "$ac_signal" != 0 &&
1262       echo "$as_me: caught signal $ac_signal"
1263     echo "$as_me: exit $exit_status"
1264   } >&5
1265   rm -f core core.* *.core &&
1266   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1267     exit $exit_status
1268      ' 0
1269 for ac_signal in 1 2 13 15; do
1270   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1271 done
1272 ac_signal=0
1273
1274 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1275 rm -rf conftest* confdefs.h
1276 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1277 echo >confdefs.h
1278
1279 # Predefined preprocessor variables.
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_NAME "$PACKAGE_NAME"
1283 _ACEOF
1284
1285
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1288 _ACEOF
1289
1290
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1293 _ACEOF
1294
1295
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_STRING "$PACKAGE_STRING"
1298 _ACEOF
1299
1300
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1303 _ACEOF
1304
1305
1306 # Let the site file select an alternate cache file if it wants to.
1307 # Prefer explicitly selected file to automatically selected ones.
1308 if test -z "$CONFIG_SITE"; then
1309   if test "x$prefix" != xNONE; then
1310     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1311   else
1312     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1313   fi
1314 fi
1315 for ac_site_file in $CONFIG_SITE; do
1316   if test -r "$ac_site_file"; then
1317     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1318 echo "$as_me: loading site script $ac_site_file" >&6;}
1319     sed 's/^/| /' "$ac_site_file" >&5
1320     . "$ac_site_file"
1321   fi
1322 done
1323
1324 if test -r "$cache_file"; then
1325   # Some versions of bash will fail to source /dev/null (special
1326   # files actually), so we avoid doing that.
1327   if test -f "$cache_file"; then
1328     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1329 echo "$as_me: loading cache $cache_file" >&6;}
1330     case $cache_file in
1331       [\\/]* | ?:[\\/]* ) . $cache_file;;
1332       *)                      . ./$cache_file;;
1333     esac
1334   fi
1335 else
1336   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1337 echo "$as_me: creating cache $cache_file" >&6;}
1338   >$cache_file
1339 fi
1340
1341 # Check that the precious variables saved in the cache have kept the same
1342 # value.
1343 ac_cache_corrupted=false
1344 for ac_var in `(set) 2>&1 |
1345                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1346   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1347   eval ac_new_set=\$ac_env_${ac_var}_set
1348   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1349   eval ac_new_val="\$ac_env_${ac_var}_value"
1350   case $ac_old_set,$ac_new_set in
1351     set,)
1352       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1353 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1354       ac_cache_corrupted=: ;;
1355     ,set)
1356       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1358       ac_cache_corrupted=: ;;
1359     ,);;
1360     *)
1361       if test "x$ac_old_val" != "x$ac_new_val"; then
1362         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1363 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1364         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1365 echo "$as_me:   former value:  $ac_old_val" >&2;}
1366         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1367 echo "$as_me:   current value: $ac_new_val" >&2;}
1368         ac_cache_corrupted=:
1369       fi;;
1370   esac
1371   # Pass precious variables to config.status.
1372   if test "$ac_new_set" = set; then
1373     case $ac_new_val in
1374     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1375       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1376     *) ac_arg=$ac_var=$ac_new_val ;;
1377     esac
1378     case " $ac_configure_args " in
1379       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1380       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1381     esac
1382   fi
1383 done
1384 if $ac_cache_corrupted; then
1385   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1386 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1387   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1388 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1389    { (exit 1); exit 1; }; }
1390 fi
1391
1392 ac_ext=c
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424 # Add the stamp file to the list of files AC keeps track of,
1425 # along with our hook.
1426 ac_config_headers="$ac_config_headers include/config.h"
1427
1428
1429
1430
1431 ac_ext=c
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442   echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444   if test -n "$CC"; then
1445   ac_cv_prog_CC="$CC" # Let the user override the test.
1446 else
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450   IFS=$as_save_IFS
1451   test -z "$as_dir" && as_dir=.
1452   for ac_exec_ext in '' $ac_executable_extensions; do
1453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456     break 2
1457   fi
1458 done
1459 done
1460
1461 fi
1462 fi
1463 CC=$ac_cv_prog_CC
1464 if test -n "$CC"; then
1465   echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1467 else
1468   echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1470 fi
1471
1472 fi
1473 if test -z "$ac_cv_prog_CC"; then
1474   ac_ct_CC=$CC
1475   # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482   if test -n "$ac_ct_CC"; then
1483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488   IFS=$as_save_IFS
1489   test -z "$as_dir" && as_dir=.
1490   for ac_exec_ext in '' $ac_executable_extensions; do
1491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492     ac_cv_prog_ac_ct_CC="gcc"
1493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494     break 2
1495   fi
1496 done
1497 done
1498
1499 fi
1500 fi
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1505 else
1506   echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510   CC=$ac_ct_CC
1511 else
1512   CC="$ac_cv_prog_CC"
1513 fi
1514
1515 if test -z "$CC"; then
1516   if test -n "$ac_tool_prefix"; then
1517   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522   echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524   if test -n "$CC"; then
1525   ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530   IFS=$as_save_IFS
1531   test -z "$as_dir" && as_dir=.
1532   for ac_exec_ext in '' $ac_executable_extensions; do
1533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534     ac_cv_prog_CC="${ac_tool_prefix}cc"
1535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536     break 2
1537   fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 CC=$ac_cv_prog_CC
1544 if test -n "$CC"; then
1545   echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1547 else
1548   echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552 fi
1553 if test -z "$ac_cv_prog_CC"; then
1554   ac_ct_CC=$CC
1555   # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   if test -n "$ac_ct_CC"; then
1563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   for ac_exec_ext in '' $ac_executable_extensions; do
1571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572     ac_cv_prog_ac_ct_CC="cc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590   CC=$ac_ct_CC
1591 else
1592   CC="$ac_cv_prog_CC"
1593 fi
1594
1595 fi
1596 if test -z "$CC"; then
1597   # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   if test -n "$CC"; then
1605   ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607   ac_prog_rejected=no
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616        ac_prog_rejected=yes
1617        continue
1618      fi
1619     ac_cv_prog_CC="cc"
1620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621     break 2
1622   fi
1623 done
1624 done
1625
1626 if test $ac_prog_rejected = yes; then
1627   # We found a bogon in the path, so make sure we never use it.
1628   set dummy $ac_cv_prog_CC
1629   shift
1630   if test $# != 0; then
1631     # We chose a different compiler from the bogus one.
1632     # However, it has the same basename, so the bogon will be chosen
1633     # first if we set CC to just the basename; use the full file name.
1634     shift
1635     set dummy "$as_dir/$ac_word" ${1+"$@"}
1636     shift
1637     ac_cv_prog_CC="$@"
1638   fi
1639 fi
1640 fi
1641 fi
1642 CC=$ac_cv_prog_CC
1643 if test -n "$CC"; then
1644   echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1646 else
1647   echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1649 fi
1650
1651 fi
1652 if test -z "$CC"; then
1653   if test -n "$ac_tool_prefix"; then
1654   for ac_prog in cl
1655   do
1656     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$CC"; then
1664   ac_cv_prog_CC="$CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 CC=$ac_cv_prog_CC
1683 if test -n "$CC"; then
1684   echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691     test -n "$CC" && break
1692   done
1693 fi
1694 if test -z "$CC"; then
1695   ac_ct_CC=$CC
1696   for ac_prog in cl
1697 do
1698   # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy $ac_prog; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   if test -n "$ac_ct_CC"; then
1706   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707 else
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1710 do
1711   IFS=$as_save_IFS
1712   test -z "$as_dir" && as_dir=.
1713   for ac_exec_ext in '' $ac_executable_extensions; do
1714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715     ac_cv_prog_ac_ct_CC="$ac_prog"
1716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717     break 2
1718   fi
1719 done
1720 done
1721
1722 fi
1723 fi
1724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1728 else
1729   echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1731 fi
1732
1733   test -n "$ac_ct_CC" && break
1734 done
1735
1736   CC=$ac_ct_CC
1737 fi
1738
1739 fi
1740
1741
1742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1743 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1744    { (exit 1); exit 1; }; }
1745
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748      "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751   (eval $ac_compiler --version </dev/null >&5) 2>&5
1752   ac_status=$?
1753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754   (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756   (eval $ac_compiler -v </dev/null >&5) 2>&5
1757   ac_status=$?
1758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759   (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761   (eval $ac_compiler -V </dev/null >&5) 2>&5
1762   ac_status=$?
1763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764   (exit $ac_status); }
1765
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line $LINENO "configure"
1768 #include "confdefs.h"
1769
1770 #ifdef F77_DUMMY_MAIN
1771 #  ifdef __cplusplus
1772      extern "C"
1773 #  endif
1774    int F77_DUMMY_MAIN() { return 1; }
1775 #endif
1776 int
1777 main ()
1778 {
1779
1780   ;
1781   return 0;
1782 }
1783 _ACEOF
1784 ac_clean_files_save=$ac_clean_files
1785 ac_clean_files="$ac_clean_files a.out a.exe"
1786 # Try to create an executable without -o first, disregard a.out.
1787 # It will help us diagnose broken compilers, and finding out an intuition
1788 # of exeext.
1789 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1790 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793   (eval $ac_link_default) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }; then
1797   # Find the output, starting from the most likely.  This scheme is
1798 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799 # resort.
1800
1801 # Be careful to initialize this variable, since it used to be cached.
1802 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 ac_cv_exeext=
1804 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1805                 ls a.out conftest 2>/dev/null;
1806                 ls a.* conftest.* 2>/dev/null`; do
1807   case $ac_file in
1808     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1809     a.out ) # We found the default executable, but exeext='' is most
1810             # certainly right.
1811             break;;
1812     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1814           export ac_cv_exeext
1815           break;;
1816     * ) break;;
1817   esac
1818 done
1819 else
1820   echo "$as_me: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1822 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1823 echo "$as_me: error: C compiler cannot create executables" >&2;}
1824    { (exit 77); exit 77; }; }
1825 fi
1826
1827 ac_exeext=$ac_cv_exeext
1828 echo "$as_me:$LINENO: result: $ac_file" >&5
1829 echo "${ECHO_T}$ac_file" >&6
1830
1831 # Check the compiler produces executables we can run.  If not, either
1832 # the compiler is broken, or we cross compile.
1833 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1836 # If not cross compiling, check that we can run a simple program.
1837 if test "$cross_compiling" != yes; then
1838   if { ac_try='./$ac_file'
1839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1840   (eval $ac_try) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }; }; then
1844     cross_compiling=no
1845   else
1846     if test "$cross_compiling" = maybe; then
1847         cross_compiling=yes
1848     else
1849         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1850 If you meant to cross compile, use \`--host'." >&5
1851 echo "$as_me: error: cannot run C compiled programs.
1852 If you meant to cross compile, use \`--host'." >&2;}
1853    { (exit 1); exit 1; }; }
1854     fi
1855   fi
1856 fi
1857 echo "$as_me:$LINENO: result: yes" >&5
1858 echo "${ECHO_T}yes" >&6
1859
1860 rm -f a.out a.exe conftest$ac_cv_exeext
1861 ac_clean_files=$ac_clean_files_save
1862 # Check the compiler produces executables we can run.  If not, either
1863 # the compiler is broken, or we cross compile.
1864 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1866 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1867 echo "${ECHO_T}$cross_compiling" >&6
1868
1869 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1872   (eval $ac_link) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; then
1876   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1877 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1878 # work properly (i.e., refer to `conftest.exe'), while it won't with
1879 # `rm'.
1880 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1881   case $ac_file in
1882     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1883     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1884           export ac_cv_exeext
1885           break;;
1886     * ) break;;
1887   esac
1888 done
1889 else
1890   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1891 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1892    { (exit 1); exit 1; }; }
1893 fi
1894
1895 rm -f conftest$ac_cv_exeext
1896 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1897 echo "${ECHO_T}$ac_cv_exeext" >&6
1898
1899 rm -f conftest.$ac_ext
1900 EXEEXT=$ac_cv_exeext
1901 ac_exeext=$EXEEXT
1902 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1903 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1904 if test "${ac_cv_objext+set}" = set; then
1905   echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907   cat >conftest.$ac_ext <<_ACEOF
1908 #line $LINENO "configure"
1909 #include "confdefs.h"
1910
1911 #ifdef F77_DUMMY_MAIN
1912 #  ifdef __cplusplus
1913      extern "C"
1914 #  endif
1915    int F77_DUMMY_MAIN() { return 1; }
1916 #endif
1917 int
1918 main ()
1919 {
1920
1921   ;
1922   return 0;
1923 }
1924 _ACEOF
1925 rm -f conftest.o conftest.obj
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927   (eval $ac_compile) 2>&5
1928   ac_status=$?
1929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930   (exit $ac_status); }; then
1931   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1932   case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1934     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1935        break;;
1936   esac
1937 done
1938 else
1939   echo "$as_me: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1942 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1943    { (exit 1); exit 1; }; }
1944 fi
1945
1946 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1947 fi
1948 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1949 echo "${ECHO_T}$ac_cv_objext" >&6
1950 OBJEXT=$ac_cv_objext
1951 ac_objext=$OBJEXT
1952 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1953 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1954 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 #include "confdefs.h"
1960
1961 #ifdef F77_DUMMY_MAIN
1962 #  ifdef __cplusplus
1963      extern "C"
1964 #  endif
1965    int F77_DUMMY_MAIN() { return 1; }
1966 #endif
1967 int
1968 main ()
1969 {
1970 #ifndef __GNUC__
1971        choke me
1972 #endif
1973
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 rm -f conftest.$ac_objext
1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980   (eval $ac_compile) 2>&5
1981   ac_status=$?
1982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983   (exit $ac_status); } &&
1984          { ac_try='test -s conftest.$ac_objext'
1985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986   (eval $ac_try) 2>&5
1987   ac_status=$?
1988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989   (exit $ac_status); }; }; then
1990   ac_compiler_gnu=yes
1991 else
1992   echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 ac_compiler_gnu=no
1995 fi
1996 rm -f conftest.$ac_objext conftest.$ac_ext
1997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1998
1999 fi
2000 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2001 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2002 GCC=`test $ac_compiler_gnu = yes && echo yes`
2003 ac_test_CFLAGS=${CFLAGS+set}
2004 ac_save_CFLAGS=$CFLAGS
2005 CFLAGS="-g"
2006 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2007 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2008 if test "${ac_cv_prog_cc_g+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 #include "confdefs.h"
2014
2015 #ifdef F77_DUMMY_MAIN
2016 #  ifdef __cplusplus
2017      extern "C"
2018 #  endif
2019    int F77_DUMMY_MAIN() { return 1; }
2020 #endif
2021 int
2022 main ()
2023 {
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031   (eval $ac_compile) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); } &&
2035          { ac_try='test -s conftest.$ac_objext'
2036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037   (eval $ac_try) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); }; }; then
2041   ac_cv_prog_cc_g=yes
2042 else
2043   echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 ac_cv_prog_cc_g=no
2046 fi
2047 rm -f conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2050 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2051 if test "$ac_test_CFLAGS" = set; then
2052   CFLAGS=$ac_save_CFLAGS
2053 elif test $ac_cv_prog_cc_g = yes; then
2054   if test "$GCC" = yes; then
2055     CFLAGS="-g -O2"
2056   else
2057     CFLAGS="-g"
2058   fi
2059 else
2060   if test "$GCC" = yes; then
2061     CFLAGS="-O2"
2062   else
2063     CFLAGS=
2064   fi
2065 fi
2066 # Some people use a C++ compiler to compile C.  Since we use `exit',
2067 # in C++ we need to declare it.  In case someone uses the same compiler
2068 # for both compiling C and C++ we need to have the C++ compiler decide
2069 # the declaration of exit, since it's the most demanding environment.
2070 cat >conftest.$ac_ext <<_ACEOF
2071 #ifndef __cplusplus
2072   choke me
2073 #endif
2074 _ACEOF
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077   (eval $ac_compile) 2>&5
2078   ac_status=$?
2079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080   (exit $ac_status); } &&
2081          { ac_try='test -s conftest.$ac_objext'
2082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083   (eval $ac_try) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; }; then
2087   for ac_declaration in \
2088    ''\
2089    '#include <stdlib.h>' \
2090    'extern "C" void std::exit (int) throw (); using std::exit;' \
2091    'extern "C" void std::exit (int); using std::exit;' \
2092    'extern "C" void exit (int) throw ();' \
2093    'extern "C" void exit (int);' \
2094    'void exit (int);'
2095 do
2096   cat >conftest.$ac_ext <<_ACEOF
2097 #line $LINENO "configure"
2098 #include "confdefs.h"
2099 #include <stdlib.h>
2100 $ac_declaration
2101 #ifdef F77_DUMMY_MAIN
2102 #  ifdef __cplusplus
2103      extern "C"
2104 #  endif
2105    int F77_DUMMY_MAIN() { return 1; }
2106 #endif
2107 int
2108 main ()
2109 {
2110 exit (42);
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 rm -f conftest.$ac_objext
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117   (eval $ac_compile) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); } &&
2121          { ac_try='test -s conftest.$ac_objext'
2122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123   (eval $ac_try) 2>&5
2124   ac_status=$?
2125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126   (exit $ac_status); }; }; then
2127   :
2128 else
2129   echo "$as_me: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2131 continue
2132 fi
2133 rm -f conftest.$ac_objext conftest.$ac_ext
2134   cat >conftest.$ac_ext <<_ACEOF
2135 #line $LINENO "configure"
2136 #include "confdefs.h"
2137 $ac_declaration
2138 #ifdef F77_DUMMY_MAIN
2139 #  ifdef __cplusplus
2140      extern "C"
2141 #  endif
2142    int F77_DUMMY_MAIN() { return 1; }
2143 #endif
2144 int
2145 main ()
2146 {
2147 exit (42);
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154   (eval $ac_compile) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); } &&
2158          { ac_try='test -s conftest.$ac_objext'
2159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160   (eval $ac_try) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; }; then
2164   break
2165 else
2166   echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 fi
2169 rm -f conftest.$ac_objext conftest.$ac_ext
2170 done
2171 rm -f conftest*
2172 if test -n "$ac_declaration"; then
2173   echo '#ifdef __cplusplus' >>confdefs.h
2174   echo $ac_declaration      >>confdefs.h
2175   echo '#endif'             >>confdefs.h
2176 fi
2177
2178 else
2179   echo "$as_me: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2181 fi
2182 rm -f conftest.$ac_objext conftest.$ac_ext
2183 ac_ext=c
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2195 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2196 # On Suns, sometimes $CPP names a directory.
2197 if test -n "$CPP" && test -d "$CPP"; then
2198   CPP=
2199 fi
2200 if test -z "$CPP"; then
2201   if test "${ac_cv_prog_CPP+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204       # Double quotes because CPP needs to be expanded
2205     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2206     do
2207       ac_preproc_ok=false
2208 for ac_c_preproc_warn_flag in '' yes
2209 do
2210   # Use a header file that comes with gcc, so configuring glibc
2211   # with a fresh cross-compiler works.
2212   # On the NeXT, cc -E runs the code through the compiler's parser,
2213   # not just through cpp. "Syntax error" is here to catch this case.
2214   cat >conftest.$ac_ext <<_ACEOF
2215 #line $LINENO "configure"
2216 #include "confdefs.h"
2217 #include <assert.h>
2218                      Syntax error
2219 _ACEOF
2220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2222   ac_status=$?
2223   egrep -v '^ *\+' conftest.er1 >conftest.err
2224   rm -f conftest.er1
2225   cat conftest.err >&5
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } >/dev/null; then
2228   if test -s conftest.err; then
2229     ac_cpp_err=$ac_c_preproc_warn_flag
2230   else
2231     ac_cpp_err=
2232   fi
2233 else
2234   ac_cpp_err=yes
2235 fi
2236 if test -z "$ac_cpp_err"; then
2237   :
2238 else
2239   echo "$as_me: failed program was:" >&5
2240   cat conftest.$ac_ext >&5
2241   # Broken: fails on valid input.
2242 continue
2243 fi
2244 rm -f conftest.err conftest.$ac_ext
2245
2246   # OK, works on sane cases.  Now check whether non-existent headers
2247   # can be detected and how.
2248   cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2250 #include "confdefs.h"
2251 #include <ac_nonexistent.h>
2252 _ACEOF
2253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2255   ac_status=$?
2256   egrep -v '^ *\+' conftest.er1 >conftest.err
2257   rm -f conftest.er1
2258   cat conftest.err >&5
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); } >/dev/null; then
2261   if test -s conftest.err; then
2262     ac_cpp_err=$ac_c_preproc_warn_flag
2263   else
2264     ac_cpp_err=
2265   fi
2266 else
2267   ac_cpp_err=yes
2268 fi
2269 if test -z "$ac_cpp_err"; then
2270   # Broken: success on invalid input.
2271 continue
2272 else
2273   echo "$as_me: failed program was:" >&5
2274   cat conftest.$ac_ext >&5
2275   # Passes both tests.
2276 ac_preproc_ok=:
2277 break
2278 fi
2279 rm -f conftest.err conftest.$ac_ext
2280
2281 done
2282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2283 rm -f conftest.err conftest.$ac_ext
2284 if $ac_preproc_ok; then
2285   break
2286 fi
2287
2288     done
2289     ac_cv_prog_CPP=$CPP
2290
2291 fi
2292   CPP=$ac_cv_prog_CPP
2293 else
2294   ac_cv_prog_CPP=$CPP
2295 fi
2296 echo "$as_me:$LINENO: result: $CPP" >&5
2297 echo "${ECHO_T}$CPP" >&6
2298 ac_preproc_ok=false
2299 for ac_c_preproc_warn_flag in '' yes
2300 do
2301   # Use a header file that comes with gcc, so configuring glibc
2302   # with a fresh cross-compiler works.
2303   # On the NeXT, cc -E runs the code through the compiler's parser,
2304   # not just through cpp. "Syntax error" is here to catch this case.
2305   cat >conftest.$ac_ext <<_ACEOF
2306 #line $LINENO "configure"
2307 #include "confdefs.h"
2308 #include <assert.h>
2309                      Syntax error
2310 _ACEOF
2311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2313   ac_status=$?
2314   egrep -v '^ *\+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } >/dev/null; then
2319   if test -s conftest.err; then
2320     ac_cpp_err=$ac_c_preproc_warn_flag
2321   else
2322     ac_cpp_err=
2323   fi
2324 else
2325   ac_cpp_err=yes
2326 fi
2327 if test -z "$ac_cpp_err"; then
2328   :
2329 else
2330   echo "$as_me: failed program was:" >&5
2331   cat conftest.$ac_ext >&5
2332   # Broken: fails on valid input.
2333 continue
2334 fi
2335 rm -f conftest.err conftest.$ac_ext
2336
2337   # OK, works on sane cases.  Now check whether non-existent headers
2338   # can be detected and how.
2339   cat >conftest.$ac_ext <<_ACEOF
2340 #line $LINENO "configure"
2341 #include "confdefs.h"
2342 #include <ac_nonexistent.h>
2343 _ACEOF
2344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2346   ac_status=$?
2347   egrep -v '^ *\+' conftest.er1 >conftest.err
2348   rm -f conftest.er1
2349   cat conftest.err >&5
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); } >/dev/null; then
2352   if test -s conftest.err; then
2353     ac_cpp_err=$ac_c_preproc_warn_flag
2354   else
2355     ac_cpp_err=
2356   fi
2357 else
2358   ac_cpp_err=yes
2359 fi
2360 if test -z "$ac_cpp_err"; then
2361   # Broken: success on invalid input.
2362 continue
2363 else
2364   echo "$as_me: failed program was:" >&5
2365   cat conftest.$ac_ext >&5
2366   # Passes both tests.
2367 ac_preproc_ok=:
2368 break
2369 fi
2370 rm -f conftest.err conftest.$ac_ext
2371
2372 done
2373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2374 rm -f conftest.err conftest.$ac_ext
2375 if $ac_preproc_ok; then
2376   :
2377 else
2378   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2379 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2380    { (exit 1); exit 1; }; }
2381 fi
2382
2383 ac_ext=c
2384 ac_cpp='$CPP $CPPFLAGS'
2385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388
2389
2390 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2391 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   ac_cv_prog_cc_stdc=no
2396 ac_save_CC=$CC
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #line $LINENO "configure"
2399 #include "confdefs.h"
2400 #include <stdarg.h>
2401 #include <stdio.h>
2402 #include <sys/types.h>
2403 #include <sys/stat.h>
2404 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2405 struct buf { int x; };
2406 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2407 static char *e (p, i)
2408      char **p;
2409      int i;
2410 {
2411   return p[i];
2412 }
2413 static char *f (char * (*g) (char **, int), char **p, ...)
2414 {
2415   char *s;
2416   va_list v;
2417   va_start (v,p);
2418   s = g (p, va_arg (v,int));
2419   va_end (v);
2420   return s;
2421 }
2422 int test (int i, double x);
2423 struct s1 {int (*f) (int a);};
2424 struct s2 {int (*f) (double a);};
2425 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2426 int argc;
2427 char **argv;
2428 #ifdef F77_DUMMY_MAIN
2429 #  ifdef __cplusplus
2430      extern "C"
2431 #  endif
2432    int F77_DUMMY_MAIN() { return 1; }
2433 #endif
2434 int
2435 main ()
2436 {
2437 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 # Don't try gcc -ansi; that turns off useful extensions and
2443 # breaks some systems' header files.
2444 # AIX                   -qlanglvl=ansi
2445 # Ultrix and OSF/1      -std1
2446 # HP-UX 10.20 and later -Ae
2447 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2448 # SVR4                  -Xc -D__EXTENSIONS__
2449 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2450 do
2451   CC="$ac_save_CC $ac_arg"
2452   rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454   (eval $ac_compile) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); } &&
2458          { ac_try='test -s conftest.$ac_objext'
2459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; }; then
2464   ac_cv_prog_cc_stdc=$ac_arg
2465 break
2466 else
2467   echo "$as_me: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 fi
2470 rm -f conftest.$ac_objext
2471 done
2472 rm -f conftest.$ac_ext conftest.$ac_objext
2473 CC=$ac_save_CC
2474
2475 fi
2476
2477 case "x$ac_cv_prog_cc_stdc" in
2478   x|xno)
2479     echo "$as_me:$LINENO: result: none needed" >&5
2480 echo "${ECHO_T}none needed" >&6 ;;
2481   *)
2482     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2483 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2484     CC="$CC $ac_cv_prog_cc_stdc" ;;
2485 esac
2486
2487
2488 am__api_version="1.6"
2489 ac_aux_dir=
2490 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2491   if test -f $ac_dir/install-sh; then
2492     ac_aux_dir=$ac_dir
2493     ac_install_sh="$ac_aux_dir/install-sh -c"
2494     break
2495   elif test -f $ac_dir/install.sh; then
2496     ac_aux_dir=$ac_dir
2497     ac_install_sh="$ac_aux_dir/install.sh -c"
2498     break
2499   elif test -f $ac_dir/shtool; then
2500     ac_aux_dir=$ac_dir
2501     ac_install_sh="$ac_aux_dir/shtool install -c"
2502     break
2503   fi
2504 done
2505 if test -z "$ac_aux_dir"; then
2506   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2507 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2508    { (exit 1); exit 1; }; }
2509 fi
2510 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2511 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2512 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2513
2514 # Find a good install program.  We prefer a C program (faster),
2515 # so one script is as good as another.  But avoid the broken or
2516 # incompatible versions:
2517 # SysV /etc/install, /usr/sbin/install
2518 # SunOS /usr/etc/install
2519 # IRIX /sbin/install
2520 # AIX /bin/install
2521 # AmigaOS /C/install, which installs bootblocks on floppy discs
2522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2525 # ./install, which can be erroneously created by make from ./install.sh.
2526 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2527 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2528 if test -z "$INSTALL"; then
2529 if test "${ac_cv_path_install+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535   IFS=$as_save_IFS
2536   test -z "$as_dir" && as_dir=.
2537   # Account for people who put trailing slashes in PATH elements.
2538 case $as_dir/ in
2539   ./ | .// | /cC/* | \
2540   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2541   /usr/ucb/* ) ;;
2542   *)
2543     # OSF1 and SCO ODT 3.0 have their own names for install.
2544     # Don't use installbsd from OSF since it installs stuff as root
2545     # by default.
2546     for ac_prog in ginstall scoinst install; do
2547       for ac_exec_ext in '' $ac_executable_extensions; do
2548         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549           if test $ac_prog = install &&
2550             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551             # AIX install.  It has an incompatible calling convention.
2552             :
2553           elif test $ac_prog = install &&
2554             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555             # program-specific install script used by HP pwplus--don't use.
2556             :
2557           else
2558             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2559             break 3
2560           fi
2561         fi
2562       done
2563     done
2564     ;;
2565 esac
2566 done
2567
2568
2569 fi
2570   if test "${ac_cv_path_install+set}" = set; then
2571     INSTALL=$ac_cv_path_install
2572   else
2573     # As a last resort, use the slow shell script.  We don't cache a
2574     # path for INSTALL within a source directory, because that will
2575     # break other packages using the cache if that directory is
2576     # removed, or if the path is relative.
2577     INSTALL=$ac_install_sh
2578   fi
2579 fi
2580 echo "$as_me:$LINENO: result: $INSTALL" >&5
2581 echo "${ECHO_T}$INSTALL" >&6
2582
2583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2584 # It thinks the first close brace ends the variable substitution.
2585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2586
2587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2588
2589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2590
2591 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2592 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2593 # Just in case
2594 sleep 1
2595 echo timestamp > conftest.file
2596 # Do `set' in a subshell so we don't clobber the current shell's
2597 # arguments.  Must try -L first in case configure is actually a
2598 # symlink; some systems play weird games with the mod time of symlinks
2599 # (eg FreeBSD returns the mod time of the symlink's containing
2600 # directory).
2601 if (
2602    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2603    if test "$*" = "X"; then
2604       # -L didn't work.
2605       set X `ls -t $srcdir/configure conftest.file`
2606    fi
2607    rm -f conftest.file
2608    if test "$*" != "X $srcdir/configure conftest.file" \
2609       && test "$*" != "X conftest.file $srcdir/configure"; then
2610
2611       # If neither matched, then we have a broken ls.  This can happen
2612       # if, for instance, CONFIG_SHELL is bash and it inherits a
2613       # broken ls alias from the environment.  This has actually
2614       # happened.  Such a system could not be considered "sane".
2615       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2616 alias in your environment" >&5
2617 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2618 alias in your environment" >&2;}
2619    { (exit 1); exit 1; }; }
2620    fi
2621
2622    test "$2" = conftest.file
2623    )
2624 then
2625    # Ok.
2626    :
2627 else
2628    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2629 Check your system clock" >&5
2630 echo "$as_me: error: newly created file is older than distributed files!
2631 Check your system clock" >&2;}
2632    { (exit 1); exit 1; }; }
2633 fi
2634 echo "$as_me:$LINENO: result: yes" >&5
2635 echo "${ECHO_T}yes" >&6
2636 test "$program_prefix" != NONE &&
2637   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2638 # Use a double $ so make ignores it.
2639 test "$program_suffix" != NONE &&
2640   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2641 # Double any \ or $.  echo might interpret backslashes.
2642 # By default was `s,x,x', remove it if useless.
2643 cat <<\_ACEOF >conftest.sed
2644 s/[\\$]/&&/g;s/;s,x,x,$//
2645 _ACEOF
2646 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2647 rm conftest.sed
2648
2649
2650 # expand $ac_aux_dir to an absolute path
2651 am_aux_dir=`cd $ac_aux_dir && pwd`
2652
2653 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2654 # Use eval to expand $SHELL
2655 if eval "$MISSING --run true"; then
2656   am_missing_run="$MISSING --run "
2657 else
2658   am_missing_run=
2659   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2660 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2661 fi
2662
2663 for ac_prog in gawk mawk nawk awk
2664 do
2665   # Extract the first word of "$ac_prog", so it can be a program name with args.
2666 set dummy $ac_prog; ac_word=$2
2667 echo "$as_me:$LINENO: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2669 if test "${ac_cv_prog_AWK+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   if test -n "$AWK"; then
2673   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678   IFS=$as_save_IFS
2679   test -z "$as_dir" && as_dir=.
2680   for ac_exec_ext in '' $ac_executable_extensions; do
2681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682     ac_cv_prog_AWK="$ac_prog"
2683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684     break 2
2685   fi
2686 done
2687 done
2688
2689 fi
2690 fi
2691 AWK=$ac_cv_prog_AWK
2692 if test -n "$AWK"; then
2693   echo "$as_me:$LINENO: result: $AWK" >&5
2694 echo "${ECHO_T}$AWK" >&6
2695 else
2696   echo "$as_me:$LINENO: result: no" >&5
2697 echo "${ECHO_T}no" >&6
2698 fi
2699
2700   test -n "$AWK" && break
2701 done
2702
2703 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2704 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2705 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2706 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   cat >conftest.make <<\_ACEOF
2710 all:
2711         @echo 'ac_maketemp="${MAKE}"'
2712 _ACEOF
2713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2714 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2715 if test -n "$ac_maketemp"; then
2716   eval ac_cv_prog_make_${ac_make}_set=yes
2717 else
2718   eval ac_cv_prog_make_${ac_make}_set=no
2719 fi
2720 rm -f conftest.make
2721 fi
2722 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2723   echo "$as_me:$LINENO: result: yes" >&5
2724 echo "${ECHO_T}yes" >&6
2725   SET_MAKE=
2726 else
2727   echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6
2729   SET_MAKE="MAKE=${MAKE-make}"
2730 fi
2731
2732 rm -f .deps 2>/dev/null
2733 mkdir .deps 2>/dev/null
2734 if test -d .deps; then
2735   DEPDIR=.deps
2736 else
2737   # MS-DOS does not allow filenames that begin with a dot.
2738   DEPDIR=_deps
2739 fi
2740 rmdir .deps 2>/dev/null
2741
2742
2743 ac_config_commands="$ac_config_commands depfiles"
2744
2745
2746 am_make=${MAKE-make}
2747 cat > confinc << 'END'
2748 doit:
2749         @echo done
2750 END
2751 # If we don't find an include directive, just comment out the code.
2752 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2753 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2754 am__include="#"
2755 am__quote=
2756 _am_result=none
2757 # First try GNU make style include.
2758 echo "include confinc" > confmf
2759 # We grep out `Entering directory' and `Leaving directory'
2760 # messages which can occur if `w' ends up in MAKEFLAGS.
2761 # In particular we don't look at `^make:' because GNU make might
2762 # be invoked under some other name (usually "gmake"), in which
2763 # case it prints its new name instead of `make'.
2764 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2765    am__include=include
2766    am__quote=
2767    _am_result=GNU
2768 fi
2769 # Now try BSD make style include.
2770 if test "$am__include" = "#"; then
2771    echo '.include "confinc"' > confmf
2772    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2773       am__include=.include
2774       am__quote="\""
2775       _am_result=BSD
2776    fi
2777 fi
2778
2779
2780 echo "$as_me:$LINENO: result: $_am_result" >&5
2781 echo "${ECHO_T}$_am_result" >&6
2782 rm -f confinc confmf
2783
2784 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2785 if test "${enable_dependency_tracking+set}" = set; then
2786   enableval="$enable_dependency_tracking"
2787
2788 fi;
2789 if test "x$enable_dependency_tracking" != xno; then
2790   am_depcomp="$ac_aux_dir/depcomp"
2791   AMDEPBACKSLASH='\'
2792 fi
2793
2794
2795 if test "x$enable_dependency_tracking" != xno; then
2796   AMDEP_TRUE=
2797   AMDEP_FALSE='#'
2798 else
2799   AMDEP_TRUE='#'
2800   AMDEP_FALSE=
2801 fi
2802
2803
2804
2805  # test to see if srcdir already configured
2806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2807    test -f $srcdir/config.status; then
2808   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2810    { (exit 1); exit 1; }; }
2811 fi
2812
2813 # Define the identity of the package.
2814  PACKAGE=heimdal
2815  VERSION=0.5.1
2816
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE "$PACKAGE"
2820 _ACEOF
2821
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define VERSION "$VERSION"
2825 _ACEOF
2826
2827 # Some tools Automake needs.
2828
2829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2830
2831
2832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2833
2834
2835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2836
2837
2838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2839
2840
2841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2842
2843
2844 AMTAR=${AMTAR-"${am_missing_run}tar"}
2845
2846 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2847
2848 # Installed binaries are usually stripped using `strip' when the user
2849 # run `make install-strip'.  However `strip' might not be the right
2850 # tool to use in cross-compilation environments, therefore Automake
2851 # will honor the `STRIP' environment variable to overrule this program.
2852 if test "$cross_compiling" != no; then
2853   if test -n "$ac_tool_prefix"; then
2854   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}strip; ac_word=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_STRIP+set}" = set; then
2859   echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861   if test -n "$STRIP"; then
2862   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869   for ac_exec_ext in '' $ac_executable_extensions; do
2870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873     break 2
2874   fi
2875 done
2876 done
2877
2878 fi
2879 fi
2880 STRIP=$ac_cv_prog_STRIP
2881 if test -n "$STRIP"; then
2882   echo "$as_me:$LINENO: result: $STRIP" >&5
2883 echo "${ECHO_T}$STRIP" >&6
2884 else
2885   echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2887 fi
2888
2889 fi
2890 if test -z "$ac_cv_prog_STRIP"; then
2891   ac_ct_STRIP=$STRIP
2892   # Extract the first word of "strip", so it can be a program name with args.
2893 set dummy strip; ac_word=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$ac_ct_STRIP"; then
2900   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909     ac_cv_prog_ac_ct_STRIP="strip"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915
2916   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2917 fi
2918 fi
2919 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2920 if test -n "$ac_ct_STRIP"; then
2921   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2922 echo "${ECHO_T}$ac_ct_STRIP" >&6
2923 else
2924   echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2926 fi
2927
2928   STRIP=$ac_ct_STRIP
2929 else
2930   STRIP="$ac_cv_prog_STRIP"
2931 fi
2932
2933 fi
2934 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2935
2936 # We need awk for the "check" target.  The system "awk" is bad on
2937 # some platforms.
2938
2939
2940 depcc="$CC"   am_compiler_list=
2941
2942 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2943 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2944 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2948   # We make a subdir and do the tests there.  Otherwise we can end up
2949   # making bogus files that we don't know about and never remove.  For
2950   # instance it was reported that on HP-UX the gcc test will end up
2951   # making a dummy file named `D' -- because `-MD' means `put the output
2952   # in D'.
2953   mkdir conftest.dir
2954   # Copy depcomp to subdir because otherwise we won't find it if we're
2955   # using a relative directory.
2956   cp "$am_depcomp" conftest.dir
2957   cd conftest.dir
2958
2959   am_cv_CC_dependencies_compiler_type=none
2960   if test "$am_compiler_list" = ""; then
2961      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2962   fi
2963   for depmode in $am_compiler_list; do
2964     # We need to recreate these files for each test, as the compiler may
2965     # overwrite some of them when testing with obscure command lines.
2966     # This happens at least with the AIX C compiler.
2967     echo '#include "conftest.h"' > conftest.c
2968     echo 'int i;' > conftest.h
2969     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2970
2971     case $depmode in
2972     nosideeffect)
2973       # after this tag, mechanisms are not by side-effect, so they'll
2974       # only be used when explicitly requested
2975       if test "x$enable_dependency_tracking" = xyes; then
2976         continue
2977       else
2978         break
2979       fi
2980       ;;
2981     none) break ;;
2982     esac
2983     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2984     # mode.  It turns out that the SunPro C++ compiler does not properly
2985     # handle `-M -o', and we need to detect this.
2986     if depmode=$depmode \
2987        source=conftest.c object=conftest.o \
2988        depfile=conftest.Po tmpdepfile=conftest.TPo \
2989        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2990        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2991        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2992       am_cv_CC_dependencies_compiler_type=$depmode
2993       break
2994     fi
2995   done
2996
2997   cd ..
2998   rm -rf conftest.dir
2999 else
3000   am_cv_CC_dependencies_compiler_type=none
3001 fi
3002
3003 fi
3004 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3005 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3006 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3007
3008
3009
3010
3011
3012
3013 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3014 test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3015
3016 # Make sure we can run config.sub.
3017 $ac_config_sub sun4 >/dev/null 2>&1 ||
3018   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3019 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3020    { (exit 1); exit 1; }; }
3021
3022 echo "$as_me:$LINENO: checking build system type" >&5
3023 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3024 if test "${ac_cv_build+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   ac_cv_build_alias=$build_alias
3028 test -z "$ac_cv_build_alias" &&
3029   ac_cv_build_alias=`$ac_config_guess`
3030 test -z "$ac_cv_build_alias" &&
3031   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3033    { (exit 1); exit 1; }; }
3034 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3035   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3036 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3037    { (exit 1); exit 1; }; }
3038
3039 fi
3040 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3041 echo "${ECHO_T}$ac_cv_build" >&6
3042 build=$ac_cv_build
3043 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3044 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3045 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3046
3047
3048 echo "$as_me:$LINENO: checking host system type" >&5
3049 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3050 if test "${ac_cv_host+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   ac_cv_host_alias=$host_alias
3054 test -z "$ac_cv_host_alias" &&
3055   ac_cv_host_alias=$ac_cv_build_alias
3056 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3057   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3058 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3059    { (exit 1); exit 1; }; }
3060
3061 fi
3062 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3063 echo "${ECHO_T}$ac_cv_host" >&6
3064 host=$ac_cv_host
3065 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3066 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3067 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3068
3069
3070 CANONICAL_HOST=$host
3071
3072
3073 # Check whether --enable-largefile or --disable-largefile was given.
3074 if test "${enable_largefile+set}" = set; then
3075   enableval="$enable_largefile"
3076
3077 fi;
3078 if test "$enable_largefile" != no; then
3079
3080   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3081 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3082 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   ac_cv_sys_largefile_CC=no
3086      if test "$GCC" != yes; then
3087        ac_save_CC=$CC
3088        while :; do
3089          # IRIX 6.2 and later do not support large files by default,
3090          # so use the C compiler's -n32 option if that helps.
3091          cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3093 #include "confdefs.h"
3094 #include <sys/types.h>
3095  /* Check that off_t can represent 2**63 - 1 correctly.
3096     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3097     since some C++ compilers masquerading as C compilers
3098     incorrectly reject 9223372036854775807.  */
3099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3100   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3101                        && LARGE_OFF_T % 2147483647 == 1)
3102                       ? 1 : -1];
3103 #ifdef F77_DUMMY_MAIN
3104 #  ifdef __cplusplus
3105      extern "C"
3106 #  endif
3107    int F77_DUMMY_MAIN() { return 1; }
3108 #endif
3109 int
3110 main ()
3111 {
3112
3113   ;
3114   return 0;
3115 }
3116 _ACEOF
3117          rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119   (eval $ac_compile) 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125   (eval $ac_try) 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; }; then
3129   break
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3133 fi
3134 rm -f conftest.$ac_objext
3135          CC="$CC -n32"
3136          rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138   (eval $ac_compile) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } &&
3142          { ac_try='test -s conftest.$ac_objext'
3143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144   (eval $ac_try) 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; }; then
3148   ac_cv_sys_largefile_CC=' -n32'; break
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 fi
3153 rm -f conftest.$ac_objext
3154          break
3155        done
3156        CC=$ac_save_CC
3157        rm -f conftest.$ac_ext
3158     fi
3159 fi
3160 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3161 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3162   if test "$ac_cv_sys_largefile_CC" != no; then
3163     CC=$CC$ac_cv_sys_largefile_CC
3164   fi
3165
3166   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3167 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3168 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   while :; do
3172   ac_cv_sys_file_offset_bits=no
3173   cat >conftest.$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3175 #include "confdefs.h"
3176 #include <sys/types.h>
3177  /* Check that off_t can represent 2**63 - 1 correctly.
3178     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3179     since some C++ compilers masquerading as C compilers
3180     incorrectly reject 9223372036854775807.  */
3181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3182   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3183                        && LARGE_OFF_T % 2147483647 == 1)
3184                       ? 1 : -1];
3185 #ifdef F77_DUMMY_MAIN
3186 #  ifdef __cplusplus
3187      extern "C"
3188 #  endif
3189    int F77_DUMMY_MAIN() { return 1; }
3190 #endif
3191 int
3192 main ()
3193 {
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201   (eval $ac_compile) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } &&
3205          { ac_try='test -s conftest.$ac_objext'
3206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207   (eval $ac_try) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   break
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 fi
3216 rm -f conftest.$ac_objext conftest.$ac_ext
3217   cat >conftest.$ac_ext <<_ACEOF
3218 #line $LINENO "configure"
3219 #include "confdefs.h"
3220 #define _FILE_OFFSET_BITS 64
3221 #include <sys/types.h>
3222  /* Check that off_t can represent 2**63 - 1 correctly.
3223     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3224     since some C++ compilers masquerading as C compilers
3225     incorrectly reject 9223372036854775807.  */
3226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3227   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3228                        && LARGE_OFF_T % 2147483647 == 1)
3229                       ? 1 : -1];
3230 #ifdef F77_DUMMY_MAIN
3231 #  ifdef __cplusplus
3232      extern "C"
3233 #  endif
3234    int F77_DUMMY_MAIN() { return 1; }
3235 #endif
3236 int
3237 main ()
3238 {
3239
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246   (eval $ac_compile) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); } &&
3250          { ac_try='test -s conftest.$ac_objext'
3251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252   (eval $ac_try) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256   ac_cv_sys_file_offset_bits=64; break
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 fi
3261 rm -f conftest.$ac_objext conftest.$ac_ext
3262   break
3263 done
3264 fi
3265 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3266 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3267 if test "$ac_cv_sys_file_offset_bits" != no; then
3268
3269 cat >>confdefs.h <<_ACEOF
3270 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3271 _ACEOF
3272
3273 fi
3274 rm -f conftest*
3275   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3276 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3277 if test "${ac_cv_sys_large_files+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   while :; do
3281   ac_cv_sys_large_files=no
3282   cat >conftest.$ac_ext <<_ACEOF
3283 #line $LINENO "configure"
3284 #include "confdefs.h"
3285 #include <sys/types.h>
3286  /* Check that off_t can represent 2**63 - 1 correctly.
3287     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3288     since some C++ compilers masquerading as C compilers
3289     incorrectly reject 9223372036854775807.  */
3290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3291   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3292                        && LARGE_OFF_T % 2147483647 == 1)
3293                       ? 1 : -1];
3294 #ifdef F77_DUMMY_MAIN
3295 #  ifdef __cplusplus
3296      extern "C"
3297 #  endif
3298    int F77_DUMMY_MAIN() { return 1; }
3299 #endif
3300 int
3301 main ()
3302 {
3303
3304   ;
3305   return 0;
3306 }
3307 _ACEOF
3308 rm -f conftest.$ac_objext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310   (eval $ac_compile) 2>&5
3311   ac_status=$?
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); } &&
3314          { ac_try='test -s conftest.$ac_objext'
3315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316   (eval $ac_try) 2>&5
3317   ac_status=$?
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); }; }; then
3320   break
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 fi
3325 rm -f conftest.$ac_objext conftest.$ac_ext
3326   cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3328 #include "confdefs.h"
3329 #define _LARGE_FILES 1
3330 #include <sys/types.h>
3331  /* Check that off_t can represent 2**63 - 1 correctly.
3332     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3333     since some C++ compilers masquerading as C compilers
3334     incorrectly reject 9223372036854775807.  */
3335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3336   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3337                        && LARGE_OFF_T % 2147483647 == 1)
3338                       ? 1 : -1];
3339 #ifdef F77_DUMMY_MAIN
3340 #  ifdef __cplusplus
3341      extern "C"
3342 #  endif
3343    int F77_DUMMY_MAIN() { return 1; }
3344 #endif
3345 int
3346 main ()
3347 {
3348
3349   ;
3350   return 0;
3351 }
3352 _ACEOF
3353 rm -f conftest.$ac_objext
3354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355   (eval $ac_compile) 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } &&
3359          { ac_try='test -s conftest.$ac_objext'
3360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361   (eval $ac_try) 2>&5
3362   ac_status=$?
3363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364   (exit $ac_status); }; }; then
3365   ac_cv_sys_large_files=1; break
3366 else
3367   echo "$as_me: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3369 fi
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3371   break
3372 done
3373 fi
3374 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3375 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3376 if test "$ac_cv_sys_large_files" != no; then
3377
3378 cat >>confdefs.h <<_ACEOF
3379 #define _LARGE_FILES $ac_cv_sys_large_files
3380 _ACEOF
3381
3382 fi
3383 rm -f conftest*
3384 fi
3385
3386
3387
3388 cat >>confdefs.h <<\_ACEOF
3389 #define _GNU_SOURCE 1
3390 _ACEOF
3391
3392
3393
3394
3395
3396 for ac_prog in 'bison -y' byacc
3397 do
3398   # Extract the first word of "$ac_prog", so it can be a program name with args.
3399 set dummy $ac_prog; ac_word=$2
3400 echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3402 if test "${ac_cv_prog_YACC+set}" = set; then
3403   echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405   if test -n "$YACC"; then
3406   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413   for ac_exec_ext in '' $ac_executable_extensions; do
3414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415     ac_cv_prog_YACC="$ac_prog"
3416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417     break 2
3418   fi
3419 done
3420 done
3421
3422 fi
3423 fi
3424 YACC=$ac_cv_prog_YACC
3425 if test -n "$YACC"; then
3426   echo "$as_me:$LINENO: result: $YACC" >&5
3427 echo "${ECHO_T}$YACC" >&6
3428 else
3429   echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3431 fi
3432
3433   test -n "$YACC" && break
3434 done
3435 test -n "$YACC" || YACC="yacc"
3436
3437 for ac_prog in flex lex
3438 do
3439   # Extract the first word of "$ac_prog", so it can be a program name with args.
3440 set dummy $ac_prog; ac_word=$2
3441 echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443 if test "${ac_cv_prog_LEX+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   if test -n "$LEX"; then
3447   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452   IFS=$as_save_IFS
3453   test -z "$as_dir" && as_dir=.
3454   for ac_exec_ext in '' $ac_executable_extensions; do
3455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456     ac_cv_prog_LEX="$ac_prog"
3457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458     break 2
3459   fi
3460 done
3461 done
3462
3463 fi
3464 fi
3465 LEX=$ac_cv_prog_LEX
3466 if test -n "$LEX"; then
3467   echo "$as_me:$LINENO: result: $LEX" >&5
3468 echo "${ECHO_T}$LEX" >&6
3469 else
3470   echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3472 fi
3473
3474   test -n "$LEX" && break
3475 done
3476 test -n "$LEX" || LEX=":"
3477
3478 if test -z "$LEXLIB"
3479 then
3480   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3481 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3482 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   ac_check_lib_save_LIBS=$LIBS
3486 LIBS="-lfl  $LIBS"
3487 cat >conftest.$ac_ext <<_ACEOF
3488 #line $LINENO "configure"
3489 #include "confdefs.h"
3490
3491 /* Override any gcc2 internal prototype to avoid an error.  */
3492 #ifdef __cplusplus
3493 extern "C"
3494 #endif
3495 /* We use char because int might match the return type of a gcc2
3496    builtin and then its argument prototype would still apply.  */
3497 char yywrap ();
3498 #ifdef F77_DUMMY_MAIN
3499 #  ifdef __cplusplus
3500      extern "C"
3501 #  endif
3502    int F77_DUMMY_MAIN() { return 1; }
3503 #endif
3504 int
3505 main ()
3506 {
3507 yywrap ();
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 rm -f conftest.$ac_objext conftest$ac_exeext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3514   (eval $ac_link) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } &&
3518          { ac_try='test -s conftest$ac_exeext'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; }; then
3524   ac_cv_lib_fl_yywrap=yes
3525 else
3526   echo "$as_me: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 ac_cv_lib_fl_yywrap=no
3529 fi
3530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3531 LIBS=$ac_check_lib_save_LIBS
3532 fi
3533 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3534 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3535 if test $ac_cv_lib_fl_yywrap = yes; then
3536   LEXLIB="-lfl"
3537 else
3538   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3539 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3540 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   ac_check_lib_save_LIBS=$LIBS
3544 LIBS="-ll  $LIBS"
3545 cat >conftest.$ac_ext <<_ACEOF
3546 #line $LINENO "configure"
3547 #include "confdefs.h"
3548
3549 /* Override any gcc2 internal prototype to avoid an error.  */
3550 #ifdef __cplusplus
3551 extern "C"
3552 #endif
3553 /* We use char because int might match the return type of a gcc2
3554    builtin and then its argument prototype would still apply.  */
3555 char yywrap ();
3556 #ifdef F77_DUMMY_MAIN
3557 #  ifdef __cplusplus
3558      extern "C"
3559 #  endif
3560    int F77_DUMMY_MAIN() { return 1; }
3561 #endif
3562 int
3563 main ()
3564 {
3565 yywrap ();
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext conftest$ac_exeext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3572   (eval $ac_link) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -s conftest$ac_exeext'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; }; then
3582   ac_cv_lib_l_yywrap=yes
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3586 ac_cv_lib_l_yywrap=no
3587 fi
3588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3589 LIBS=$ac_check_lib_save_LIBS
3590 fi
3591 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3592 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3593 if test $ac_cv_lib_l_yywrap = yes; then
3594   LEXLIB="-ll"
3595 fi
3596
3597 fi
3598
3599 fi
3600
3601 if test "x$LEX" != "x:"; then
3602   echo "$as_me:$LINENO: checking lex output file root" >&5
3603 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3604 if test "${ac_cv_prog_lex_root+set}" = set; then
3605   echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607   # The minimal lex program is just a single line: %%.  But some broken lexes
3608 # (Solaris, I think it was) want two %% lines, so accommodate them.
3609 cat >conftest.l <<_ACEOF
3610 %%
3611 %%
3612 _ACEOF
3613 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3614   (eval $LEX conftest.l) 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }
3618 if test -f lex.yy.c; then
3619   ac_cv_prog_lex_root=lex.yy
3620 elif test -f lexyy.c; then
3621   ac_cv_prog_lex_root=lexyy
3622 else
3623   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3624 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3625    { (exit 1); exit 1; }; }
3626 fi
3627 fi
3628 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3629 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3630 rm -f conftest.l
3631 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3632
3633 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3634 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3635 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3636   echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638   # POSIX says lex can declare yytext either as a pointer or an array; the
3639 # default is implementation-dependent. Figure out which it is, since
3640 # not all implementations provide the %pointer and %array declarations.
3641 ac_cv_prog_lex_yytext_pointer=no
3642 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3643 ac_save_LIBS=$LIBS
3644 LIBS="$LIBS $LEXLIB"
3645 cat >conftest.$ac_ext <<_ACEOF
3646 `cat $LEX_OUTPUT_ROOT.c`
3647 _ACEOF
3648 rm -f conftest.$ac_objext conftest$ac_exeext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650   (eval $ac_link) 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); } &&
3654          { ac_try='test -s conftest$ac_exeext'
3655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656   (eval $ac_try) 2>&5
3657   ac_status=$?
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); }; }; then
3660   ac_cv_prog_lex_yytext_pointer=yes
3661 else
3662   echo "$as_me: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3664 fi
3665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3666 LIBS=$ac_save_LIBS
3667 rm -f "${LEX_OUTPUT_ROOT}.c"
3668
3669 fi
3670 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3671 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3672 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3673
3674 cat >>confdefs.h <<\_ACEOF
3675 #define YYTEXT_POINTER 1
3676 _ACEOF
3677
3678 fi
3679
3680 fi
3681 if test "$LEX" = :; then
3682   LEX=${am_missing_run}flex
3683 fi
3684 for ac_prog in gawk mawk nawk awk
3685 do
3686   # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy $ac_prog; ac_word=$2
3688 echo "$as_me:$LINENO: checking for $ac_word" >&5
3689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3690 if test "${ac_cv_prog_AWK+set}" = set; then
3691   echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693   if test -n "$AWK"; then
3694   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699   IFS=$as_save_IFS
3700   test -z "$as_dir" && as_dir=.
3701   for ac_exec_ext in '' $ac_executable_extensions; do
3702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703     ac_cv_prog_AWK="$ac_prog"
3704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705     break 2
3706   fi
3707 done
3708 done
3709
3710 fi
3711 fi
3712 AWK=$ac_cv_prog_AWK
3713 if test -n "$AWK"; then
3714   echo "$as_me:$LINENO: result: $AWK" >&5
3715 echo "${ECHO_T}$AWK" >&6
3716 else
3717   echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3719 fi
3720
3721   test -n "$AWK" && break
3722 done
3723
3724 echo "$as_me:$LINENO: checking for ln -s or something else" >&5
3725 echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3726 if test "${ac_cv_prog_LN_S+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   rm -f conftestdata
3730 if ln -s X conftestdata 2>/dev/null
3731 then
3732   rm -f conftestdata
3733   ac_cv_prog_LN_S="ln -s"
3734 else
3735   touch conftestdata1
3736   if ln conftestdata1 conftestdata2; then
3737     rm -f conftestdata*
3738     ac_cv_prog_LN_S=ln
3739   else
3740     ac_cv_prog_LN_S=cp
3741   fi
3742 fi
3743 fi
3744 LN_S="$ac_cv_prog_LN_S"
3745 echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
3746 echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
3747
3748
3749
3750
3751 # Check whether --with-mips_abi or --without-mips_abi was given.
3752 if test "${with_mips_abi+set}" = set; then
3753   withval="$with_mips_abi"
3754
3755 fi;
3756
3757 case "$host_os" in
3758 irix*)
3759 with_mips_abi="${with_mips_abi:-yes}"
3760 if test -n "$GCC"; then
3761
3762 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
3763 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
3764 #
3765 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
3766 # GCC and revert back to O32. The same goes if O32 is asked for - old
3767 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
3768 #
3769 # Don't you just love *all* the different SGI ABIs?
3770
3771 case "${with_mips_abi}" in
3772         32|o32) abi='-mabi=32';  abilibdirext=''     ;;
3773        n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
3774         64) abi='-mabi=64';  abilibdirext='64'   ;;
3775         no) abi=''; abilibdirext='';;
3776          *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3777 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3778    { (exit 1); exit 1; }; } ;;
3779 esac
3780 if test -n "$abi" ; then
3781 ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
3782 echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
3783 echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
3784 if eval "test \"\${$ac_foo+set}\" = set"; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787
3788 save_CFLAGS="$CFLAGS"
3789 CFLAGS="$CFLAGS $abi"
3790 cat >conftest.$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3792 #include "confdefs.h"
3793
3794 #ifdef F77_DUMMY_MAIN
3795 #  ifdef __cplusplus
3796      extern "C"
3797 #  endif
3798    int F77_DUMMY_MAIN() { return 1; }
3799 #endif
3800 int
3801 main ()
3802 {
3803 int x;
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810   (eval $ac_compile) 2>&5
3811   ac_status=$?
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); } &&
3814          { ac_try='test -s conftest.$ac_objext'
3815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816   (eval $ac_try) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); }; }; then
3820   eval $ac_foo=yes
3821 else
3822   echo "$as_me: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3824 eval $ac_foo=no
3825 fi
3826 rm -f conftest.$ac_objext conftest.$ac_ext
3827 CFLAGS="$save_CFLAGS"
3828
3829 fi
3830
3831 ac_res=`eval echo \\\$$ac_foo`
3832 echo "$as_me:$LINENO: result: $ac_res" >&5
3833 echo "${ECHO_T}$ac_res" >&6
3834 if test $ac_res = no; then
3835 # Try to figure out why that failed...
3836 case $abi in
3837         -mabi=32)
3838         save_CFLAGS="$CFLAGS"
3839         CFLAGS="$CFLAGS -mabi=n32"
3840         cat >conftest.$ac_ext <<_ACEOF
3841 #line $LINENO "configure"
3842 #include "confdefs.h"
3843
3844 #ifdef F77_DUMMY_MAIN
3845 #  ifdef __cplusplus
3846      extern "C"
3847 #  endif
3848    int F77_DUMMY_MAIN() { return 1; }
3849 #endif
3850 int
3851 main ()
3852 {
3853 int x;
3854   ;
3855   return 0;
3856 }
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860   (eval $ac_compile) 2>&5
3861   ac_status=$?
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); } &&
3864          { ac_try='test -s conftest.$ac_objext'
3865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866   (eval $ac_try) 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }; }; then
3870   ac_res=yes
3871 else
3872   echo "$as_me: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3874 ac_res=no
3875 fi
3876 rm -f conftest.$ac_objext conftest.$ac_ext
3877         CLAGS="$save_CFLAGS"
3878         if test $ac_res = yes; then
3879                 # New GCC
3880                 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3881 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3882    { (exit 1); exit 1; }; }
3883         fi
3884         # Old GCC
3885         abi=''
3886         abilibdirext=''
3887         ;;
3888         -mabi=n32|-mabi=64)
3889                 if test $with_mips_abi = yes; then
3890                         # Old GCC, default to O32
3891                         abi=''
3892                         abilibdirext=''
3893                 else
3894                         # Some broken GCC
3895                         { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3896 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3897    { (exit 1); exit 1; }; }
3898                 fi
3899         ;;
3900 esac
3901 fi #if test $ac_res = no; then
3902 fi #if test -n "$abi" ; then
3903 else
3904 case "${with_mips_abi}" in
3905         32|o32) abi='-32'; abilibdirext=''     ;;
3906        n32|yes) abi='-n32'; abilibdirext='32'  ;;
3907         64) abi='-64'; abilibdirext='64'   ;;
3908         no) abi=''; abilibdirext='';;
3909          *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3910 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3911    { (exit 1); exit 1; }; } ;;
3912 esac
3913 fi #if test -n "$GCC"; then
3914 ;;
3915 esac
3916
3917 CC="$CC $abi"
3918 libdir="$libdir$abilibdirext"
3919
3920
3921 echo "$as_me:$LINENO: checking for __attribute__" >&5
3922 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
3923 if test "${ac_cv___attribute__+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926
3927 cat >conftest.$ac_ext <<_ACEOF
3928 #line $LINENO "configure"
3929 #include "confdefs.h"
3930
3931 #include <stdlib.h>
3932
3933 #ifdef F77_DUMMY_MAIN
3934 #  ifdef __cplusplus
3935      extern "C"
3936 #  endif
3937    int F77_DUMMY_MAIN() { return 1; }
3938 #endif
3939 int
3940 main ()
3941 {
3942
3943 static void foo(void) __attribute__ ((noreturn));
3944
3945 static void
3946 foo(void)
3947 {
3948   exit(1);
3949 }
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957   (eval $ac_compile) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } &&
3961          { ac_try='test -s conftest.$ac_objext'
3962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963   (eval $ac_try) 2>&5
3964   ac_status=$?
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); }; }; then
3967   ac_cv___attribute__=yes
3968 else
3969   echo "$as_me: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3971 ac_cv___attribute__=no
3972 fi
3973 rm -f conftest.$ac_objext conftest.$ac_ext
3974 fi
3975
3976 if test "$ac_cv___attribute__" = "yes"; then
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define HAVE___ATTRIBUTE__ 1
3980 _ACEOF
3981
3982 fi
3983 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3984 echo "${ECHO_T}$ac_cv___attribute__" >&6
3985
3986
3987 # Check whether --enable-shared or --disable-shared was given.
3988 if test "${enable_shared+set}" = set; then
3989   enableval="$enable_shared"
3990   p=${PACKAGE-default}
3991 case $enableval in
3992 yes) enable_shared=yes ;;
3993 no) enable_shared=no ;;
3994 *)
3995   enable_shared=no
3996   # Look at the argument we got.  We use all the common list separators.
3997   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3998   for pkg in $enableval; do
3999     if test "X$pkg" = "X$p"; then
4000       enable_shared=yes
4001     fi
4002   done
4003   IFS="$ac_save_ifs"
4004   ;;
4005 esac
4006 else
4007   enable_shared=no
4008 fi;
4009 # Check whether --enable-static or --disable-static was given.
4010 if test "${enable_static+set}" = set; then
4011   enableval="$enable_static"
4012   p=${PACKAGE-default}
4013 case $enableval in
4014 yes) enable_static=yes ;;
4015 no) enable_static=no ;;
4016 *)
4017   enable_static=no
4018   # Look at the argument we got.  We use all the common list separators.
4019   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4020   for pkg in $enableval; do
4021     if test "X$pkg" = "X$p"; then
4022       enable_static=yes
4023     fi
4024   done
4025   IFS="$ac_save_ifs"
4026   ;;
4027 esac
4028 else
4029   enable_static=yes
4030 fi;
4031 # Check whether --enable-fast-install or --disable-fast-install was given.
4032 if test "${enable_fast_install+set}" = set; then
4033   enableval="$enable_fast_install"
4034   p=${PACKAGE-default}
4035 case $enableval in
4036 yes) enable_fast_install=yes ;;
4037 no) enable_fast_install=no ;;
4038 *)
4039   enable_fast_install=no
4040   # Look at the argument we got.  We use all the common list separators.
4041   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4042   for pkg in $enableval; do
4043     if test "X$pkg" = "X$p"; then
4044       enable_fast_install=yes
4045     fi
4046   done
4047   IFS="$ac_save_ifs"
4048   ;;
4049 esac
4050 else
4051   enable_fast_install=yes
4052 fi;
4053 # Find the correct PATH separator.  Usually this is `:', but
4054 # DJGPP uses `;' like DOS.
4055 if test "X${PATH_SEPARATOR+set}" != Xset; then
4056   UNAME=${UNAME-`uname 2>/dev/null`}
4057   case X$UNAME in
4058     *-DOS) lt_cv_sys_path_separator=';' ;;
4059     *)     lt_cv_sys_path_separator=':' ;;
4060   esac
4061   PATH_SEPARATOR=$lt_cv_sys_path_separator
4062 fi
4063
4064
4065 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4066 if test "${with_gnu_ld+set}" = set; then
4067   withval="$with_gnu_ld"
4068   test "$withval" = no || with_gnu_ld=yes
4069 else
4070   with_gnu_ld=no
4071 fi;
4072 ac_prog=ld
4073 if test "$GCC" = yes; then
4074   # Check if gcc -print-prog-name=ld gives a path.
4075   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4076 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4077   case $host in
4078   *-*-mingw*)
4079     # gcc leaves a trailing carriage return which upsets mingw
4080     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4081   *)
4082     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4083   esac
4084   case $ac_prog in
4085     # Accept absolute paths.
4086     [\\/]* | [A-Za-z]:[\\/]*)
4087       re_direlt='/[^/][^/]*/\.\./'
4088       # Canonicalize the path of ld
4089       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4090       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4091         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4092       done
4093       test -z "$LD" && LD="$ac_prog"
4094       ;;
4095   "")
4096     # If it fails, then pretend we aren't using GCC.
4097     ac_prog=ld
4098     ;;
4099   *)
4100     # If it is relative, then search for the first ld in PATH.
4101     with_gnu_ld=unknown
4102     ;;
4103   esac
4104 elif test "$with_gnu_ld" = yes; then
4105   echo "$as_me:$LINENO: checking for GNU ld" >&5
4106 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4107 else
4108   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4109 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4110 fi
4111 if test "${lt_cv_path_LD+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   if test -z "$LD"; then
4115   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4116   for ac_dir in $PATH; do
4117     test -z "$ac_dir" && ac_dir=.
4118     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4119       lt_cv_path_LD="$ac_dir/$ac_prog"
4120       # Check to see if the program is GNU ld.  I'd rather use --version,
4121       # but apparently some GNU ld's only accept -v.
4122       # Break only if it was the GNU/non-GNU ld that we prefer.
4123       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4124         test "$with_gnu_ld" != no && break
4125       else
4126         test "$with_gnu_ld" != yes && break
4127       fi
4128     fi
4129   done
4130   IFS="$ac_save_ifs"
4131 else
4132   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4133 fi
4134 fi
4135
4136 LD="$lt_cv_path_LD"
4137 if test -n "$LD"; then
4138   echo "$as_me:$LINENO: result: $LD" >&5
4139 echo "${ECHO_T}$LD" >&6
4140 else
4141   echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4143 fi
4144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4146    { (exit 1); exit 1; }; }
4147 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4149 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4153 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4154   lt_cv_prog_gnu_ld=yes
4155 else
4156   lt_cv_prog_gnu_ld=no
4157 fi
4158 fi
4159 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4160 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4161 with_gnu_ld=$lt_cv_prog_gnu_ld
4162
4163
4164 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4165 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4166 if test "${lt_cv_ld_reload_flag+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   lt_cv_ld_reload_flag='-r'
4170 fi
4171 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4172 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4173 reload_flag=$lt_cv_ld_reload_flag
4174 test -n "$reload_flag" && reload_flag=" $reload_flag"
4175
4176 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4177 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4178 if test "${lt_cv_path_NM+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   if test -n "$NM"; then
4182   # Let the user override the test.
4183   lt_cv_path_NM="$NM"
4184 else
4185   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4187     test -z "$ac_dir" && ac_dir=.
4188     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4189     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4190       # Check to see if the nm accepts a BSD-compat flag.
4191       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4192       #   nm: unknown option "B" ignored
4193       # Tru64's nm complains that /dev/null is an invalid object file
4194       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4195         lt_cv_path_NM="$tmp_nm -B"
4196         break
4197       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4198         lt_cv_path_NM="$tmp_nm -p"
4199         break
4200       else
4201         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4202         continue # so that we can try to find one that supports BSD flags
4203       fi
4204     fi
4205   done
4206   IFS="$ac_save_ifs"
4207   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4208 fi
4209 fi
4210
4211 NM="$lt_cv_path_NM"
4212 echo "$as_me:$LINENO: result: $NM" >&5
4213 echo "${ECHO_T}$NM" >&6
4214
4215 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4216 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4217 LN_S=$as_ln_s
4218 if test "$LN_S" = "ln -s"; then
4219   echo "$as_me:$LINENO: result: yes" >&5
4220 echo "${ECHO_T}yes" >&6
4221 else
4222   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4223 echo "${ECHO_T}no, using $LN_S" >&6
4224 fi
4225
4226 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4227 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4228 if test "${lt_cv_deplibs_check_method+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   lt_cv_file_magic_cmd='$MAGIC_CMD'
4232 lt_cv_file_magic_test_file=
4233 lt_cv_deplibs_check_method='unknown'
4234 # Need to set the preceding variable on all platforms that support
4235 # interlibrary dependencies.
4236 # 'none' -- dependencies not supported.
4237 # `unknown' -- same as none, but documents that we really don't know.
4238 # 'pass_all' -- all dependencies passed with no checks.
4239 # 'test_compile' -- check by making test program.
4240 # 'file_magic [[regex]]' -- check by looking for files in library path
4241 # which responds to the $file_magic_cmd with a given egrep regex.
4242 # If you have `file' or equivalent on your system and you're not sure
4243 # whether `pass_all' will *always* work, you probably want this one.
4244
4245 case $host_os in
4246 aix4* | aix5*)
4247   lt_cv_deplibs_check_method=pass_all
4248   ;;
4249
4250 beos*)
4251   lt_cv_deplibs_check_method=pass_all
4252   ;;
4253
4254 bsdi4*)
4255   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4256   lt_cv_file_magic_cmd='/usr/bin/file -L'
4257   lt_cv_file_magic_test_file=/shlib/libc.so
4258   ;;
4259
4260 cygwin* | mingw* | pw32*)
4261   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4262   lt_cv_file_magic_cmd='$OBJDUMP -f'
4263   ;;
4264
4265 darwin* | rhapsody*)
4266   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4267   lt_cv_file_magic_cmd='/usr/bin/file -L'
4268   case "$host_os" in
4269   rhapsody* | darwin1.[012])
4270     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4271     ;;
4272   *) # Darwin 1.3 on
4273     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4274     ;;
4275   esac
4276   ;;
4277
4278 freebsd*)
4279   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4280     case $host_cpu in
4281     i*86 )
4282       # Not sure whether the presence of OpenBSD here was a mistake.
4283       # Let's accept both of them until this is cleared up.
4284       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4285       lt_cv_file_magic_cmd=/usr/bin/file
4286       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4287       ;;
4288     esac
4289   else
4290     lt_cv_deplibs_check_method=pass_all
4291   fi
4292   ;;
4293
4294 gnu*)
4295   lt_cv_deplibs_check_method=pass_all
4296   ;;
4297
4298 hpux10.20*|hpux11*)
4299   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4300   lt_cv_file_magic_cmd=/usr/bin/file
4301   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4302   ;;
4303
4304 irix5* | irix6*)
4305   case $host_os in
4306   irix5*)
4307     # this will be overridden with pass_all, but let us keep it just in case
4308     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4309     ;;
4310   *)
4311     case $LD in
4312     *-32|*"-32 ") libmagic=32-bit;;
4313     *-n32|*"-n32 ") libmagic=N32;;
4314     *-64|*"-64 ") libmagic=64-bit;;
4315     *) libmagic=never-match;;
4316     esac
4317     # this will be overridden with pass_all, but let us keep it just in case
4318     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4319     ;;
4320   esac
4321   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4322   lt_cv_deplibs_check_method=pass_all
4323   ;;
4324
4325 # This must be Linux ELF.
4326 linux-gnu*)
4327   case $host_cpu in
4328   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4329     lt_cv_deplibs_check_method=pass_all ;;
4330   *)
4331     # glibc up to 2.1.1 does not perform some relocations on ARM
4332     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4333   esac
4334   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4335   ;;
4336
4337 netbsd*)
4338   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4339     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4340   else
4341     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4342   fi
4343   ;;
4344
4345 newos6*)
4346   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4347   lt_cv_file_magic_cmd=/usr/bin/file
4348   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4349   ;;
4350
4351 openbsd*)
4352   lt_cv_file_magic_cmd=/usr/bin/file
4353   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4354   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4355     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4356   else
4357     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4358   fi
4359   ;;
4360
4361 osf3* | osf4* | osf5*)
4362   # this will be overridden with pass_all, but let us keep it just in case
4363   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4364   lt_cv_file_magic_test_file=/shlib/libc.so
4365   lt_cv_deplibs_check_method=pass_all
4366   ;;
4367
4368 sco3.2v5*)
4369   lt_cv_deplibs_check_method=pass_all
4370   ;;
4371
4372 solaris*)
4373   lt_cv_deplibs_check_method=pass_all
4374   lt_cv_file_magic_test_file=/lib/libc.so
4375   ;;
4376
4377 sysv5uw[78]* | sysv4*uw2*)
4378   lt_cv_deplibs_check_method=pass_all
4379   ;;
4380
4381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4382   case $host_vendor in
4383   motorola)
4384     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4385     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4386     ;;
4387   ncr)
4388     lt_cv_deplibs_check_method=pass_all
4389     ;;
4390   sequent)
4391     lt_cv_file_magic_cmd='/bin/file'
4392     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4393     ;;
4394   sni)
4395     lt_cv_file_magic_cmd='/bin/file'
4396     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4397     lt_cv_file_magic_test_file=/lib/libc.so
4398     ;;
4399   esac
4400   ;;
4401 esac
4402
4403 fi
4404 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4405 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4406 file_magic_cmd=$lt_cv_file_magic_cmd
4407 deplibs_check_method=$lt_cv_deplibs_check_method
4408
4409
4410
4411
4412
4413 # Check for command to grab the raw symbol name followed by C symbol from nm.
4414 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4415 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4416 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419
4420 # These are sane defaults that work on at least a few old systems.
4421 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4422
4423 # Character class describing NM global symbol codes.
4424 symcode='[BCDEGRST]'
4425
4426 # Regexp to match symbols that can be accessed directly from C.
4427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4428
4429 # Transform the above into a raw symbol and a C symbol.
4430 symxfrm='\1 \2\3 \3'
4431
4432 # Transform an extracted symbol line into a proper C declaration
4433 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4434
4435 # Transform an extracted symbol line into symbol name and symbol address
4436 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'"
4437
4438 # Define system-specific variables.
4439 case $host_os in
4440 aix*)
4441   symcode='[BCDT]'
4442   ;;
4443 cygwin* | mingw* | pw32*)
4444   symcode='[ABCDGISTW]'
4445   ;;
4446 hpux*) # Its linker distinguishes data from code symbols
4447   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4448   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4449   ;;
4450 irix*)
4451   symcode='[BCDEGRST]'
4452   ;;
4453 solaris* | sysv5*)
4454   symcode='[BDT]'
4455   ;;
4456 sysv4)
4457   symcode='[DFNSTU]'
4458   ;;
4459 esac
4460
4461 # Handle CRLF in mingw tool chain
4462 opt_cr=
4463 case $host_os in
4464 mingw*)
4465   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4466   ;;
4467 esac
4468
4469 # If we're using GNU nm, then use its standard symbol codes.
4470 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4471   symcode='[ABCDGISTW]'
4472 fi
4473
4474 # Try without a prefix undercore, then with it.
4475 for ac_symprfx in "" "_"; do
4476
4477   # Write the raw and C identifiers.
4478 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4479
4480   # Check to see that the pipe works correctly.
4481   pipe_works=no
4482   rm -f conftest*
4483   cat > conftest.$ac_ext <<EOF
4484 #ifdef __cplusplus
4485 extern "C" {
4486 #endif
4487 char nm_test_var;
4488 void nm_test_func(){}
4489 #ifdef __cplusplus
4490 }
4491 #endif
4492 int main(){nm_test_var='a';nm_test_func();return(0);}
4493 EOF
4494
4495   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496   (eval $ac_compile) 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); }; then
4500     # Now try to grab the symbols.
4501     nlist=conftest.nm
4502     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4503   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4504   ac_status=$?
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); } && test -s "$nlist"; then
4507       # Try sorting and uniquifying the output.
4508       if sort "$nlist" | uniq > "$nlist"T; then
4509         mv -f "$nlist"T "$nlist"
4510       else
4511         rm -f "$nlist"T
4512       fi
4513
4514       # Make sure that we snagged all the symbols we need.
4515       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4516         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4517           cat <<EOF > conftest.$ac_ext
4518 #ifdef __cplusplus
4519 extern "C" {
4520 #endif
4521
4522 EOF
4523           # Now generate the symbol file.
4524           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4525
4526           cat <<EOF >> conftest.$ac_ext
4527 #if defined (__STDC__) && __STDC__
4528 # define lt_ptr void *
4529 #else
4530 # define lt_ptr char *
4531 # define const
4532 #endif
4533
4534 /* The mapping between symbol names and symbols. */
4535 const struct {
4536   const char *name;
4537   lt_ptr address;
4538 }
4539 lt_preloaded_symbols[] =
4540 {
4541 EOF
4542           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4543           cat <<\EOF >> conftest.$ac_ext
4544   {0, (lt_ptr) 0}
4545 };
4546
4547 #ifdef __cplusplus
4548 }
4549 #endif
4550 EOF
4551           # Now try linking the two files.
4552           mv conftest.$ac_objext conftstm.$ac_objext
4553           save_LIBS="$LIBS"
4554           save_CFLAGS="$CFLAGS"
4555           LIBS="conftstm.$ac_objext"
4556           CFLAGS="$CFLAGS$no_builtin_flag"
4557           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558   (eval $ac_link) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } && test -s conftest; then
4562             pipe_works=yes
4563           fi
4564           LIBS="$save_LIBS"
4565           CFLAGS="$save_CFLAGS"
4566         else
4567           echo "cannot find nm_test_func in $nlist" >&5
4568         fi
4569       else
4570         echo "cannot find nm_test_var in $nlist" >&5
4571       fi
4572     else
4573       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4574     fi
4575   else
4576     echo "$progname: failed program was:" >&5
4577     cat conftest.$ac_ext >&5
4578   fi
4579   rm -f conftest* conftst*
4580
4581   # Do not use the global_symbol_pipe unless it works.
4582   if test "$pipe_works" = yes; then
4583     break
4584   else
4585     lt_cv_sys_global_symbol_pipe=
4586   fi
4587 done
4588
4589 fi
4590
4591 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4593   global_symbol_to_cdecl=
4594   global_symbol_to_c_name_address=
4595 else
4596   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4597   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4598 fi
4599 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4600 then
4601   echo "$as_me:$LINENO: result: failed" >&5
4602 echo "${ECHO_T}failed" >&6
4603 else
4604   echo "$as_me:$LINENO: result: ok" >&5
4605 echo "${ECHO_T}ok" >&6
4606 fi
4607
4608
4609 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4610 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4611 if test "${ac_cv_header_stdc+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   cat >conftest.$ac_ext <<_ACEOF
4615 #line $LINENO "configure"
4616 #include "confdefs.h"
4617 #include <stdlib.h>
4618 #include <stdarg.h>
4619 #include <string.h>
4620 #include <float.h>
4621
4622 _ACEOF
4623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4625   ac_status=$?
4626   egrep -v '^ *\+' conftest.er1 >conftest.err
4627   rm -f conftest.er1
4628   cat conftest.err >&5
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); } >/dev/null; then
4631   if test -s conftest.err; then
4632     ac_cpp_err=$ac_c_preproc_warn_flag
4633   else
4634     ac_cpp_err=
4635   fi
4636 else
4637   ac_cpp_err=yes
4638 fi
4639 if test -z "$ac_cpp_err"; then
4640   ac_cv_header_stdc=yes
4641 else
4642   echo "$as_me: failed program was:" >&5
4643   cat conftest.$ac_ext >&5
4644   ac_cv_header_stdc=no
4645 fi
4646 rm -f conftest.err conftest.$ac_ext
4647
4648 if test $ac_cv_header_stdc = yes; then
4649   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4650   cat >conftest.$ac_ext <<_ACEOF
4651 #line $LINENO "configure"
4652 #include "confdefs.h"
4653 #include <string.h>
4654
4655 _ACEOF
4656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4657   egrep "memchr" >/dev/null 2>&1; then
4658   :
4659 else
4660   ac_cv_header_stdc=no
4661 fi
4662 rm -f conftest*
4663
4664 fi
4665
4666 if test $ac_cv_header_stdc = yes; then
4667   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4668   cat >conftest.$ac_ext <<_ACEOF
4669 #line $LINENO "configure"
4670 #include "confdefs.h"
4671 #include <stdlib.h>
4672
4673 _ACEOF
4674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675   egrep "free" >/dev/null 2>&1; then
4676   :
4677 else
4678   ac_cv_header_stdc=no
4679 fi
4680 rm -f conftest*
4681
4682 fi
4683
4684 if test $ac_cv_header_stdc = yes; then
4685   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4686   if test "$cross_compiling" = yes; then
4687   :
4688 else
4689   cat >conftest.$ac_ext <<_ACEOF
4690 #line $LINENO "configure"
4691 #include "confdefs.h"
4692 #include <ctype.h>
4693 #if ((' ' & 0x0FF) == 0x020)
4694 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4695 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4696 #else
4697 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4698                      || ('j' <= (c) && (c) <= 'r') \
4699                      || ('s' <= (c) && (c) <= 'z'))
4700 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4701 #endif
4702
4703 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4704 int
4705 main ()
4706 {
4707   int i;
4708   for (i = 0; i < 256; i++)
4709     if (XOR (islower (i), ISLOWER (i))
4710         || toupper (i) != TOUPPER (i))
4711       exit(2);
4712   exit (0);
4713 }
4714 _ACEOF
4715 rm -f conftest$ac_exeext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717   (eval $ac_link) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722   (eval $ac_try) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); }; }; then
4726   :
4727 else
4728   echo "$as_me: program exited with status $ac_status" >&5
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 ( exit $ac_status )
4732 ac_cv_header_stdc=no
4733 fi
4734 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 fi
4737 fi
4738 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4739 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4740 if test $ac_cv_header_stdc = yes; then
4741
4742 cat >>confdefs.h <<\_ACEOF
4743 #define STDC_HEADERS 1
4744 _ACEOF
4745
4746 fi
4747
4748 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4759                   inttypes.h stdint.h unistd.h
4760 do
4761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4762 echo "$as_me:$LINENO: checking for $ac_header" >&5
4763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   cat >conftest.$ac_ext <<_ACEOF
4768 #line $LINENO "configure"
4769 #include "confdefs.h"
4770 $ac_includes_default
4771
4772 #include <$ac_header>
4773 _ACEOF
4774 rm -f conftest.$ac_objext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776   (eval $ac_compile) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); } &&
4780          { ac_try='test -s conftest.$ac_objext'
4781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782   (eval $ac_try) 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }; }; then
4786   eval "$as_ac_Header=yes"
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 eval "$as_ac_Header=no"
4791 fi
4792 rm -f conftest.$ac_objext conftest.$ac_ext
4793 fi
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4797   cat >>confdefs.h <<_ACEOF
4798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4799 _ACEOF
4800
4801 fi
4802
4803 done
4804
4805
4806
4807 for ac_header in dlfcn.h
4808 do
4809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811   echo "$as_me:$LINENO: checking for $ac_header" >&5
4812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 fi
4816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4818 else
4819   # Is the header compilable?
4820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #line $LINENO "configure"
4824 #include "confdefs.h"
4825 $ac_includes_default
4826 #include <$ac_header>
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830   (eval $ac_compile) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } &&
4834          { ac_try='test -s conftest.$ac_objext'
4835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836   (eval $ac_try) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; }; then
4840   ac_header_compiler=yes
4841 else
4842   echo "$as_me: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4844 ac_header_compiler=no
4845 fi
4846 rm -f conftest.$ac_objext conftest.$ac_ext
4847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848 echo "${ECHO_T}$ac_header_compiler" >&6
4849
4850 # Is the header present?
4851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 #include "confdefs.h"
4856 #include <$ac_header>
4857 _ACEOF
4858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4860   ac_status=$?
4861   egrep -v '^ *\+' conftest.er1 >conftest.err
4862   rm -f conftest.er1
4863   cat conftest.err >&5
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } >/dev/null; then
4866   if test -s conftest.err; then
4867     ac_cpp_err=$ac_c_preproc_warn_flag
4868   else
4869     ac_cpp_err=
4870   fi
4871 else
4872   ac_cpp_err=yes
4873 fi
4874 if test -z "$ac_cpp_err"; then
4875   ac_header_preproc=yes
4876 else
4877   echo "$as_me: failed program was:" >&5
4878   cat conftest.$ac_ext >&5
4879   ac_header_preproc=no
4880 fi
4881 rm -f conftest.err conftest.$ac_ext
4882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4883 echo "${ECHO_T}$ac_header_preproc" >&6
4884
4885 # So?  What about this header?
4886 case $ac_header_compiler:$ac_header_preproc in
4887   yes:no )
4888     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4892   no:yes )
4893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4895     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4899 esac
4900 echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   eval "$as_ac_Header=$ac_header_preproc"
4906 fi
4907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
4910 fi
4911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912   cat >>confdefs.h <<_ACEOF
4913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914 _ACEOF
4915
4916 fi
4917
4918 done
4919
4920
4921
4922
4923
4924 # Only perform the check for file, if the check method requires it
4925 case $deplibs_check_method in
4926 file_magic*)
4927   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4928     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4929 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4930 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933   case $MAGIC_CMD in
4934   /*)
4935   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4936   ;;
4937   ?:/*)
4938   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4939   ;;
4940   *)
4941   ac_save_MAGIC_CMD="$MAGIC_CMD"
4942   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4943   ac_dummy="/usr/bin:$PATH"
4944   for ac_dir in $ac_dummy; do
4945     test -z "$ac_dir" && ac_dir=.
4946     if test -f $ac_dir/${ac_tool_prefix}file; then
4947       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4948       if test -n "$file_magic_test_file"; then
4949         case $deplibs_check_method in
4950         "file_magic "*)
4951           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4952           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4953           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4954             egrep "$file_magic_regex" > /dev/null; then
4955             :
4956           else
4957             cat <<EOF 1>&2
4958
4959 *** Warning: the command libtool uses to detect shared libraries,
4960 *** $file_magic_cmd, produces output that libtool cannot recognize.
4961 *** The result is that libtool may fail to recognize shared libraries
4962 *** as such.  This will affect the creation of libtool libraries that
4963 *** depend on shared libraries, but programs linked with such libtool
4964 *** libraries will work regardless of this problem.  Nevertheless, you
4965 *** may want to report the problem to your system manager and/or to
4966 *** bug-libtool@gnu.org
4967
4968 EOF
4969           fi ;;
4970         esac
4971       fi
4972       break
4973     fi
4974   done
4975   IFS="$ac_save_ifs"
4976   MAGIC_CMD="$ac_save_MAGIC_CMD"
4977   ;;
4978 esac
4979 fi
4980
4981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4982 if test -n "$MAGIC_CMD"; then
4983   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4984 echo "${ECHO_T}$MAGIC_CMD" >&6
4985 else
4986   echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6
4988 fi
4989
4990 if test -z "$lt_cv_path_MAGIC_CMD"; then
4991   if test -n "$ac_tool_prefix"; then
4992     echo "$as_me:$LINENO: checking for file" >&5
4993 echo $ECHO_N "checking for file... $ECHO_C" >&6
4994 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   case $MAGIC_CMD in
4998   /*)
4999   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5000   ;;
5001   ?:/*)
5002   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5003   ;;
5004   *)
5005   ac_save_MAGIC_CMD="$MAGIC_CMD"
5006   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5007   ac_dummy="/usr/bin:$PATH"
5008   for ac_dir in $ac_dummy; do
5009     test -z "$ac_dir" && ac_dir=.
5010     if test -f $ac_dir/file; then
5011       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5012       if test -n "$file_magic_test_file"; then
5013         case $deplibs_check_method in
5014         "file_magic "*)
5015           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5016           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5017           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5018             egrep "$file_magic_regex" > /dev/null; then
5019             :
5020           else
5021             cat <<EOF 1>&2
5022
5023 *** Warning: the command libtool uses to detect shared libraries,
5024 *** $file_magic_cmd, produces output that libtool cannot recognize.
5025 *** The result is that libtool may fail to recognize shared libraries
5026 *** as such.  This will affect the creation of libtool libraries that
5027 *** depend on shared libraries, but programs linked with such libtool
5028 *** libraries will work regardless of this problem.  Nevertheless, you
5029 *** may want to report the problem to your system manager and/or to
5030 *** bug-libtool@gnu.org
5031
5032 EOF
5033           fi ;;
5034         esac
5035       fi
5036       break
5037     fi
5038   done
5039   IFS="$ac_save_ifs"
5040   MAGIC_CMD="$ac_save_MAGIC_CMD"
5041   ;;
5042 esac
5043 fi
5044
5045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5046 if test -n "$MAGIC_CMD"; then
5047   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5048 echo "${ECHO_T}$MAGIC_CMD" >&6
5049 else
5050   echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5052 fi
5053
5054   else
5055     MAGIC_CMD=:
5056   fi
5057 fi
5058
5059   fi
5060   ;;
5061 esac
5062
5063 if test -n "$ac_tool_prefix"; then
5064   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5066 echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068 if test "${ac_cv_prog_RANLIB+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071   if test -n "$RANLIB"; then
5072   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079   for ac_exec_ext in '' $ac_executable_extensions; do
5080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086 done
5087
5088 fi
5089 fi
5090 RANLIB=$ac_cv_prog_RANLIB
5091 if test -n "$RANLIB"; then
5092   echo "$as_me:$LINENO: result: $RANLIB" >&5
5093 echo "${ECHO_T}$RANLIB" >&6
5094 else
5095   echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5097 fi
5098
5099 fi
5100 if test -z "$ac_cv_prog_RANLIB"; then
5101   ac_ct_RANLIB=$RANLIB
5102   # Extract the first word of "ranlib", so it can be a program name with args.
5103 set dummy ranlib; ac_word=$2
5104 echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   if test -n "$ac_ct_RANLIB"; then
5110   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117   for ac_exec_ext in '' $ac_executable_extensions; do
5118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119     ac_cv_prog_ac_ct_RANLIB="ranlib"
5120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124 done
5125
5126   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5127 fi
5128 fi
5129 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5130 if test -n "$ac_ct_RANLIB"; then
5131   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5132 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5133 else
5134   echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5136 fi
5137
5138   RANLIB=$ac_ct_RANLIB
5139 else
5140   RANLIB="$ac_cv_prog_RANLIB"
5141 fi
5142
5143 if test -n "$ac_tool_prefix"; then
5144   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}strip; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_STRIP+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   if test -n "$STRIP"; then
5152   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159   for ac_exec_ext in '' $ac_executable_extensions; do
5160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166 done
5167
5168 fi
5169 fi
5170 STRIP=$ac_cv_prog_STRIP
5171 if test -n "$STRIP"; then
5172   echo "$as_me:$LINENO: result: $STRIP" >&5
5173 echo "${ECHO_T}$STRIP" >&6
5174 else
5175   echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5177 fi
5178
5179 fi
5180 if test -z "$ac_cv_prog_STRIP"; then
5181   ac_ct_STRIP=$STRIP
5182   # Extract the first word of "strip", so it can be a program name with args.
5183 set dummy strip; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   if test -n "$ac_ct_STRIP"; then
5190   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for ac_exec_ext in '' $ac_executable_extensions; do
5198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199     ac_cv_prog_ac_ct_STRIP="strip"
5200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204 done
5205
5206   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5207 fi
5208 fi
5209 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5210 if test -n "$ac_ct_STRIP"; then
5211   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5212 echo "${ECHO_T}$ac_ct_STRIP" >&6
5213 else
5214   echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5216 fi
5217
5218   STRIP=$ac_ct_STRIP
5219 else
5220   STRIP="$ac_cv_prog_STRIP"
5221 fi
5222
5223
5224 enable_dlopen=no
5225 enable_win32_dll=no
5226
5227 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5228 if test "${enable_libtool_lock+set}" = set; then
5229   enableval="$enable_libtool_lock"
5230
5231 fi;
5232 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5233
5234 # Some flags need to be propagated to the compiler or linker for good
5235 # libtool support.
5236 case $host in
5237 *-*-irix6*)
5238   # Find out which ABI we are using.
5239   echo '#line 5239 "configure"' > conftest.$ac_ext
5240   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241   (eval $ac_compile) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }; then
5245     case `/usr/bin/file conftest.$ac_objext` in
5246     *32-bit*)
5247       LD="${LD-ld} -32"
5248       ;;
5249     *N32*)
5250       LD="${LD-ld} -n32"
5251       ;;
5252     *64-bit*)
5253       LD="${LD-ld} -64"
5254       ;;
5255     esac
5256   fi
5257   rm -rf conftest*
5258   ;;
5259
5260 *-*-sco3.2v5*)
5261   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5262   SAVE_CFLAGS="$CFLAGS"
5263   CFLAGS="$CFLAGS -belf"
5264   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5265 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5266 if test "${lt_cv_cc_needs_belf+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269
5270
5271      ac_ext=c
5272 ac_cpp='$CPP $CPPFLAGS'
5273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276
5277      cat >conftest.$ac_ext <<_ACEOF
5278 #line $LINENO "configure"
5279 #include "confdefs.h"
5280
5281 #ifdef F77_DUMMY_MAIN
5282 #  ifdef __cplusplus
5283      extern "C"
5284 #  endif
5285    int F77_DUMMY_MAIN() { return 1; }
5286 #endif
5287 int
5288 main ()
5289 {
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext conftest$ac_exeext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297   (eval $ac_link) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } &&
5301          { ac_try='test -s conftest$ac_exeext'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; }; then
5307   lt_cv_cc_needs_belf=yes
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5311 lt_cv_cc_needs_belf=no
5312 fi
5313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5314      ac_ext=c
5315 ac_cpp='$CPP $CPPFLAGS'
5316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5319
5320 fi
5321 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5322 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5323   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5324     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5325     CFLAGS="$SAVE_CFLAGS"
5326   fi
5327   ;;
5328
5329
5330 esac
5331
5332 # Sed substitution that helps us do robust quoting.  It backslashifies
5333 # metacharacters that are still active within double-quoted strings.
5334 Xsed='sed -e s/^X//'
5335 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5336
5337 # Same as above, but do not quote variable references.
5338 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5339
5340 # Sed substitution to delay expansion of an escaped shell variable in a
5341 # double_quote_subst'ed string.
5342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5343
5344 # Constants:
5345 rm="rm -f"
5346
5347 # Global variables:
5348 default_ofile=libtool
5349 can_build_shared=yes
5350
5351 # All known linkers require a `.a' archive for static linking (except M$VC,
5352 # which needs '.lib').
5353 libext=a
5354 ltmain="$ac_aux_dir/ltmain.sh"
5355 ofile="$default_ofile"
5356 with_gnu_ld="$lt_cv_prog_gnu_ld"
5357 need_locks="$enable_libtool_lock"
5358
5359 old_CC="$CC"
5360 old_CFLAGS="$CFLAGS"
5361
5362 # Set sane defaults for various variables
5363 test -z "$AR" && AR=ar
5364 test -z "$AR_FLAGS" && AR_FLAGS=cru
5365 test -z "$AS" && AS=as
5366 test -z "$CC" && CC=cc
5367 test -z "$DLLTOOL" && DLLTOOL=dlltool
5368 test -z "$LD" && LD=ld
5369 test -z "$LN_S" && LN_S="ln -s"
5370 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5371 test -z "$NM" && NM=nm
5372 test -z "$OBJDUMP" && OBJDUMP=objdump
5373 test -z "$RANLIB" && RANLIB=:
5374 test -z "$STRIP" && STRIP=:
5375 test -z "$ac_objext" && ac_objext=o
5376
5377 if test x"$host" != x"$build"; then
5378   ac_tool_prefix=${host_alias}-
5379 else
5380   ac_tool_prefix=
5381 fi
5382
5383 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5384 case $host_os in
5385 linux-gnu*) ;;
5386 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5387 esac
5388
5389 case $host_os in
5390 aix3*)
5391   # AIX sometimes has problems with the GCC collect2 program.  For some
5392   # reason, if we set the COLLECT_NAMES environment variable, the problems
5393   # vanish in a puff of smoke.
5394   if test "X${COLLECT_NAMES+set}" != Xset; then
5395     COLLECT_NAMES=
5396     export COLLECT_NAMES
5397   fi
5398   ;;
5399 esac
5400
5401 # Determine commands to create old-style static archives.
5402 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5403 old_postinstall_cmds='chmod 644 $oldlib'
5404 old_postuninstall_cmds=
5405
5406 if test -n "$RANLIB"; then
5407   case $host_os in
5408   openbsd*)
5409     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5410     ;;
5411   *)
5412     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5413     ;;
5414   esac
5415   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5416 fi
5417
5418 # Allow CC to be a program name with arguments.
5419 set dummy $CC
5420 compiler="$2"
5421
5422 echo "$as_me:$LINENO: checking for objdir" >&5
5423 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5424 rm -f .libs 2>/dev/null
5425 mkdir .libs 2>/dev/null
5426 if test -d .libs; then
5427   objdir=.libs
5428 else
5429   # MS-DOS does not allow filenames that begin with a dot.
5430   objdir=_libs
5431 fi
5432 rmdir .libs 2>/dev/null
5433 echo "$as_me:$LINENO: result: $objdir" >&5
5434 echo "${ECHO_T}$objdir" >&6
5435
5436
5437
5438 # Check whether --with-pic or --without-pic was given.
5439 if test "${with_pic+set}" = set; then
5440   withval="$with_pic"
5441   pic_mode="$withval"
5442 else
5443   pic_mode=default
5444 fi;
5445 test -z "$pic_mode" && pic_mode=default
5446
5447 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5448 # in isolation, and that seeing it set (from the cache) indicates that
5449 # the associated values are set (in the cache) correctly too.
5450 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5451 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5452 if test "${lt_cv_prog_cc_pic+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455    lt_cv_prog_cc_pic=
5456   lt_cv_prog_cc_shlib=
5457   lt_cv_prog_cc_wl=
5458   lt_cv_prog_cc_static=
5459   lt_cv_prog_cc_no_builtin=
5460   lt_cv_prog_cc_can_build_shared=$can_build_shared
5461
5462   if test "$GCC" = yes; then
5463     lt_cv_prog_cc_wl='-Wl,'
5464     lt_cv_prog_cc_static='-static'
5465
5466     case $host_os in
5467     aix*)
5468       # Below there is a dirty hack to force normal static linking with -ldl
5469       # The problem is because libdl dynamically linked with both libc and
5470       # libC (AIX C++ library), which obviously doesn't included in libraries
5471       # list by gcc. This cause undefined symbols with -static flags.
5472       # This hack allows C programs to be linked with "-static -ldl", but
5473       # not sure about C++ programs.
5474       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5475       ;;
5476     amigaos*)
5477       # FIXME: we need at least 68020 code to build shared libraries, but
5478       # adding the `-m68020' flag to GCC prevents building anything better,
5479       # like `-m68040'.
5480       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5481       ;;
5482     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5483       # PIC is the default for these OSes.
5484       ;;
5485     darwin* | rhapsody*)
5486       # PIC is the default on this platform
5487       # Common symbols not allowed in MH_DYLIB files
5488       lt_cv_prog_cc_pic='-fno-common'
5489       ;;
5490     cygwin* | mingw* | pw32* | os2*)
5491       # This hack is so that the source file can tell whether it is being
5492       # built for inclusion in a dll (and should export symbols for example).
5493       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5494       ;;
5495     sysv4*MP*)
5496       if test -d /usr/nec; then
5497          lt_cv_prog_cc_pic=-Kconform_pic
5498       fi
5499       ;;
5500     *)
5501       lt_cv_prog_cc_pic='-fPIC'
5502       ;;
5503     esac
5504   else
5505     # PORTME Check for PIC flags for the system compiler.
5506     case $host_os in
5507     aix3* | aix4* | aix5*)
5508       lt_cv_prog_cc_wl='-Wl,'
5509       # All AIX code is PIC.
5510       if test "$host_cpu" = ia64; then
5511         # AIX 5 now supports IA64 processor
5512         lt_cv_prog_cc_static='-Bstatic'
5513       else
5514         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5515       fi
5516       ;;
5517
5518     hpux9* | hpux10* | hpux11*)
5519       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5520       lt_cv_prog_cc_wl='-Wl,'
5521       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5522       lt_cv_prog_cc_pic='+Z'
5523       ;;
5524
5525     irix5* | irix6*)
5526       lt_cv_prog_cc_wl='-Wl,'
5527       lt_cv_prog_cc_static='-non_shared'
5528       # PIC (with -KPIC) is the default.
5529       ;;
5530
5531     cygwin* | mingw* | pw32* | os2*)
5532       # This hack is so that the source file can tell whether it is being
5533       # built for inclusion in a dll (and should export symbols for example).
5534       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5535       ;;
5536
5537     newsos6)
5538       lt_cv_prog_cc_pic='-KPIC'
5539       lt_cv_prog_cc_static='-Bstatic'
5540       ;;
5541
5542     osf3* | osf4* | osf5*)
5543       # All OSF/1 code is PIC.
5544       lt_cv_prog_cc_wl='-Wl,'
5545       lt_cv_prog_cc_static='-non_shared'
5546       ;;
5547
5548     sco3.2v5*)
5549       lt_cv_prog_cc_pic='-Kpic'
5550       lt_cv_prog_cc_static='-dn'
5551       lt_cv_prog_cc_shlib='-belf'
5552       ;;
5553
5554     solaris*)
5555       lt_cv_prog_cc_pic='-KPIC'
5556       lt_cv_prog_cc_static='-Bstatic'
5557       lt_cv_prog_cc_wl='-Wl,'
5558       ;;
5559
5560     sunos4*)
5561       lt_cv_prog_cc_pic='-PIC'
5562       lt_cv_prog_cc_static='-Bstatic'
5563       lt_cv_prog_cc_wl='-Qoption ld '
5564       ;;
5565
5566     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5567       lt_cv_prog_cc_pic='-KPIC'
5568       lt_cv_prog_cc_static='-Bstatic'
5569       if test "x$host_vendor" = xsni; then
5570         lt_cv_prog_cc_wl='-LD'
5571       else
5572         lt_cv_prog_cc_wl='-Wl,'
5573       fi
5574       ;;
5575
5576     uts4*)
5577       lt_cv_prog_cc_pic='-pic'
5578       lt_cv_prog_cc_static='-Bstatic'
5579       ;;
5580
5581     sysv4*MP*)
5582       if test -d /usr/nec ;then
5583         lt_cv_prog_cc_pic='-Kconform_pic'
5584         lt_cv_prog_cc_static='-Bstatic'
5585       fi
5586       ;;
5587
5588     *)
5589       lt_cv_prog_cc_can_build_shared=no
5590       ;;
5591     esac
5592   fi
5593
5594 fi
5595
5596 if test -z "$lt_cv_prog_cc_pic"; then
5597   echo "$as_me:$LINENO: result: none" >&5
5598 echo "${ECHO_T}none" >&6
5599 else
5600   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5601 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5602
5603   # Check to make sure the pic_flag actually works.
5604   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5605 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5606   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609       save_CFLAGS="$CFLAGS"
5610     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5611     cat >conftest.$ac_ext <<_ACEOF
5612 #line $LINENO "configure"
5613 #include "confdefs.h"
5614
5615 #ifdef F77_DUMMY_MAIN
5616 #  ifdef __cplusplus
5617      extern "C"
5618 #  endif
5619    int F77_DUMMY_MAIN() { return 1; }
5620 #endif
5621 int
5622 main ()
5623 {
5624
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631   (eval $ac_compile) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } &&
5635          { ac_try='test -s conftest.$ac_objext'
5636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637   (eval $ac_try) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }; }; then
5641         case $host_os in
5642       hpux9* | hpux10* | hpux11*)
5643         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5644         # they create non-PIC objects.  So, if there were any warnings, we
5645         # assume that PIC is not supported.
5646         if test -s conftest.err; then
5647           lt_cv_prog_cc_pic_works=no
5648         else
5649           lt_cv_prog_cc_pic_works=yes
5650         fi
5651         ;;
5652       *)
5653         lt_cv_prog_cc_pic_works=yes
5654         ;;
5655       esac
5656
5657 else
5658   echo "$as_me: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5660       lt_cv_prog_cc_pic_works=no
5661
5662 fi
5663 rm -f conftest.$ac_objext conftest.$ac_ext
5664     CFLAGS="$save_CFLAGS"
5665
5666 fi
5667
5668
5669   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5670     lt_cv_prog_cc_pic=
5671     lt_cv_prog_cc_can_build_shared=no
5672   else
5673     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5674   fi
5675
5676   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5677 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5678 fi
5679
5680 # Check for any special shared library compilation flags.
5681 if test -n "$lt_cv_prog_cc_shlib"; then
5682   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5683 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5684   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5685   else
5686    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5687 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5688     lt_cv_prog_cc_can_build_shared=no
5689   fi
5690 fi
5691
5692 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5693 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5694 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697     lt_cv_prog_cc_static_works=no
5698   save_LDFLAGS="$LDFLAGS"
5699   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5700   cat >conftest.$ac_ext <<_ACEOF
5701 #line $LINENO "configure"
5702 #include "confdefs.h"
5703
5704 #ifdef F77_DUMMY_MAIN
5705 #  ifdef __cplusplus
5706      extern "C"
5707 #  endif
5708    int F77_DUMMY_MAIN() { return 1; }
5709 #endif
5710 int
5711 main ()
5712 {
5713
5714   ;
5715   return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720   (eval $ac_link) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } &&
5724          { ac_try='test -s conftest$ac_exeext'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; }; then
5730   lt_cv_prog_cc_static_works=yes
5731 else
5732   echo "$as_me: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5734 fi
5735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736   LDFLAGS="$save_LDFLAGS"
5737
5738 fi
5739
5740
5741 # Belt *and* braces to stop my trousers falling down:
5742 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5743 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5744 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5745
5746 pic_flag="$lt_cv_prog_cc_pic"
5747 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5748 wl="$lt_cv_prog_cc_wl"
5749 link_static_flag="$lt_cv_prog_cc_static"
5750 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5751 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5752
5753
5754 # Check to see if options -o and -c are simultaneously supported by compiler
5755 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5756 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5757 if test "${lt_cv_compiler_c_o+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760
5761 $rm -r conftest 2>/dev/null
5762 mkdir conftest
5763 cd conftest
5764 echo "int some_variable = 0;" > conftest.$ac_ext
5765 mkdir out
5766 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5767 # that will create temporary files in the current directory regardless of
5768 # the output directory.  Thus, making CWD read-only will cause this test
5769 # to fail, enabling locking or at least warning the user not to do parallel
5770 # builds.
5771 chmod -w .
5772 save_CFLAGS="$CFLAGS"
5773 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5774 compiler_c_o=no
5775 if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5776   # The compiler can only warn and ignore the option if not recognized
5777   # So say no if there are warnings
5778   if test -s out/conftest.err; then
5779     lt_cv_compiler_c_o=no
5780   else
5781     lt_cv_compiler_c_o=yes
5782   fi
5783 else
5784   # Append any errors to the config.log.
5785   cat out/conftest.err 1>&5
5786   lt_cv_compiler_c_o=no
5787 fi
5788 CFLAGS="$save_CFLAGS"
5789 chmod u+w .
5790 $rm conftest* out/*
5791 rmdir out
5792 cd ..
5793 rmdir conftest
5794 $rm -r conftest 2>/dev/null
5795
5796 fi
5797
5798 compiler_c_o=$lt_cv_compiler_c_o
5799 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5800 echo "${ECHO_T}$compiler_c_o" >&6
5801
5802 if test x"$compiler_c_o" = x"yes"; then
5803   # Check to see if we can write to a .lo
5804   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5805 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5806   if test "${lt_cv_compiler_o_lo+set}" = set; then
5807   echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809
5810   lt_cv_compiler_o_lo=no
5811   save_CFLAGS="$CFLAGS"
5812   CFLAGS="$CFLAGS -c -o conftest.lo"
5813   save_objext="$ac_objext"
5814   ac_objext=lo
5815   cat >conftest.$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5817 #include "confdefs.h"
5818
5819 #ifdef F77_DUMMY_MAIN
5820 #  ifdef __cplusplus
5821      extern "C"
5822 #  endif
5823    int F77_DUMMY_MAIN() { return 1; }
5824 #endif
5825 int
5826 main ()
5827 {
5828 int some_variable = 0;
5829   ;
5830   return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835   (eval $ac_compile) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } &&
5839          { ac_try='test -s conftest.$ac_objext'
5840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841   (eval $ac_try) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); }; }; then
5845       # The compiler can only warn and ignore the option if not recognized
5846     # So say no if there are warnings
5847     if test -s conftest.err; then
5848       lt_cv_compiler_o_lo=no
5849     else
5850       lt_cv_compiler_o_lo=yes
5851     fi
5852
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5856 fi
5857 rm -f conftest.$ac_objext conftest.$ac_ext
5858   ac_objext="$save_objext"
5859   CFLAGS="$save_CFLAGS"
5860
5861 fi
5862
5863   compiler_o_lo=$lt_cv_compiler_o_lo
5864   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5865 echo "${ECHO_T}$compiler_o_lo" >&6
5866 else
5867   compiler_o_lo=no
5868 fi
5869
5870 # Check to see if we can do hard links to lock some files if needed
5871 hard_links="nottested"
5872 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5873   # do not overwrite the value of need_locks provided by the user
5874   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5876   hard_links=yes
5877   $rm conftest*
5878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5879   touch conftest.a
5880   ln conftest.a conftest.b 2>&5 || hard_links=no
5881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5882   echo "$as_me:$LINENO: result: $hard_links" >&5
5883 echo "${ECHO_T}$hard_links" >&6
5884   if test "$hard_links" = no; then
5885     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5887     need_locks=warn
5888   fi
5889 else
5890   need_locks=no
5891 fi
5892
5893 if test "$GCC" = yes; then
5894   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5895   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5896 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5897   echo "int some_variable = 0;" > conftest.$ac_ext
5898   save_CFLAGS="$CFLAGS"
5899   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5900   compiler_rtti_exceptions=no
5901   cat >conftest.$ac_ext <<_ACEOF
5902 #line $LINENO "configure"
5903 #include "confdefs.h"
5904
5905 #ifdef F77_DUMMY_MAIN
5906 #  ifdef __cplusplus
5907      extern "C"
5908 #  endif
5909    int F77_DUMMY_MAIN() { return 1; }
5910 #endif
5911 int
5912 main ()
5913 {
5914 int some_variable = 0;
5915   ;
5916   return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921   (eval $ac_compile) 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); } &&
5925          { ac_try='test -s conftest.$ac_objext'
5926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927   (eval $ac_try) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; }; then
5931       # The compiler can only warn and ignore the option if not recognized
5932     # So say no if there are warnings
5933     if test -s conftest.err; then
5934       compiler_rtti_exceptions=no
5935     else
5936       compiler_rtti_exceptions=yes
5937     fi
5938
5939 else
5940   echo "$as_me: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5942 fi
5943 rm -f conftest.$ac_objext conftest.$ac_ext
5944   CFLAGS="$save_CFLAGS"
5945   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5946 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5947
5948   if test "$compiler_rtti_exceptions" = "yes"; then
5949     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5950   else
5951     no_builtin_flag=' -fno-builtin'
5952   fi
5953 fi
5954
5955 # See if the linker supports building shared libraries.
5956 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5957 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5958
5959 allow_undefined_flag=
5960 no_undefined_flag=
5961 need_lib_prefix=unknown
5962 need_version=unknown
5963 # when you set need_version to no, make sure it does not cause -set_version
5964 # flags to be left without arguments
5965 archive_cmds=
5966 archive_expsym_cmds=
5967 old_archive_from_new_cmds=
5968 old_archive_from_expsyms_cmds=
5969 export_dynamic_flag_spec=
5970 whole_archive_flag_spec=
5971 thread_safe_flag_spec=
5972 hardcode_into_libs=no
5973 hardcode_libdir_flag_spec=
5974 hardcode_libdir_separator=
5975 hardcode_direct=no
5976 hardcode_minus_L=no
5977 hardcode_shlibpath_var=unsupported
5978 runpath_var=
5979 link_all_deplibs=unknown
5980 always_export_symbols=no
5981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5982 # include_expsyms should be a list of space-separated symbols to be *always*
5983 # included in the symbol list
5984 include_expsyms=
5985 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5986 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5987 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5988 # as well as any symbol that contains `d'.
5989 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5990 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5991 # platforms (ab)use it in PIC code, but their linkers get confused if
5992 # the symbol is explicitly referenced.  Since portable code cannot
5993 # rely on this symbol name, it's probably fine to never include it in
5994 # preloaded symbol tables.
5995 extract_expsyms_cmds=
5996
5997 case $host_os in
5998 cygwin* | mingw* | pw32*)
5999   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6000   # When not using gcc, we currently assume that we are using
6001   # Microsoft Visual C++.
6002   if test "$GCC" != yes; then
6003     with_gnu_ld=no
6004   fi
6005   ;;
6006 openbsd*)
6007   with_gnu_ld=no
6008   ;;
6009 esac
6010
6011 ld_shlibs=yes
6012 if test "$with_gnu_ld" = yes; then
6013   # If archive_cmds runs LD, not CC, wlarc should be empty
6014   wlarc='${wl}'
6015
6016   # See if GNU ld supports shared libraries.
6017   case $host_os in
6018   aix3* | aix4* | aix5*)
6019     # On AIX, the GNU linker is very broken
6020     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6021     ld_shlibs=no
6022     cat <<EOF 1>&2
6023
6024 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6025 *** to be unable to reliably create shared libraries on AIX.
6026 *** Therefore, libtool is disabling shared libraries support.  If you
6027 *** really care for shared libraries, you may want to modify your PATH
6028 *** so that a non-GNU linker is found, and then restart.
6029
6030 EOF
6031     ;;
6032
6033   amigaos*)
6034     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6035     hardcode_libdir_flag_spec='-L$libdir'
6036     hardcode_minus_L=yes
6037
6038     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6039     # that the semantics of dynamic libraries on AmigaOS, at least up
6040     # to version 4, is to share data among multiple programs linked
6041     # with the same dynamic library.  Since this doesn't match the
6042     # behavior of shared libraries on other platforms, we can use
6043     # them.
6044     ld_shlibs=no
6045     ;;
6046
6047   beos*)
6048     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6049       allow_undefined_flag=unsupported
6050       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6051       # support --undefined.  This deserves some investigation.  FIXME
6052       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6053     else
6054       ld_shlibs=no
6055     fi
6056     ;;
6057
6058   cygwin* | mingw* | pw32*)
6059     # hardcode_libdir_flag_spec is actually meaningless, as there is
6060     # no search path for DLLs.
6061     hardcode_libdir_flag_spec='-L$libdir'
6062     allow_undefined_flag=unsupported
6063     always_export_symbols=yes
6064
6065     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6066       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6067       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6068       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6069       else $CC -o impgen impgen.c ; fi)~
6070       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6071
6072     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6073
6074     # cygwin and mingw dlls have different entry points and sets of symbols
6075     # to exclude.
6076     # FIXME: what about values for MSVC?
6077     dll_entry=__cygwin_dll_entry@12
6078     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6079     case $host_os in
6080     mingw*)
6081       # mingw values
6082       dll_entry=_DllMainCRTStartup@12
6083       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6084       ;;
6085     esac
6086
6087     # mingw and cygwin differ, and it's simplest to just exclude the union
6088     # of the two symbol sets.
6089     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6090
6091     # recent cygwin and mingw systems supply a stub DllMain which the user
6092     # can override, but on older systems we have to supply one (in ltdll.c)
6093     if test "x$lt_cv_need_dllmain" = "xyes"; then
6094       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6095       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6096         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6097     else
6098       ltdll_obj=
6099       ltdll_cmds=
6100     fi
6101
6102     # Extract the symbol export list from an `--export-all' def file,
6103     # then regenerate the def file from the symbol export list, so that
6104     # the compiled dll only exports the symbol export list.
6105     # Be careful not to strip the DATA tag left be newer dlltools.
6106     export_symbols_cmds="$ltdll_cmds"'
6107       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6108       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6109
6110     # If the export-symbols file already is a .def file (1st line
6111     # is EXPORTS), use it as is.
6112     # If DATA tags from a recent dlltool are present, honour them!
6113     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6114         cp $export_symbols $output_objdir/$soname-def;
6115       else
6116         echo EXPORTS > $output_objdir/$soname-def;
6117         _lt_hint=1;
6118         cat $export_symbols | while read symbol; do
6119          set dummy \$symbol;
6120          case \$# in
6121            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6122            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6123          esac;
6124          _lt_hint=`expr 1 + \$_lt_hint`;
6125         done;
6126       fi~
6127       '"$ltdll_cmds"'
6128       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6129       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6130       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6131       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6132       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6133     ;;
6134
6135   netbsd*)
6136     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6137       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6138       wlarc=
6139     else
6140       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6141       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6142     fi
6143     ;;
6144
6145   solaris* | sysv5*)
6146     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6147       ld_shlibs=no
6148       cat <<EOF 1>&2
6149
6150 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6151 *** create shared libraries on Solaris systems.  Therefore, libtool
6152 *** is disabling shared libraries support.  We urge you to upgrade GNU
6153 *** binutils to release 2.9.1 or newer.  Another option is to modify
6154 *** your PATH or compiler configuration so that the native linker is
6155 *** used, and then restart.
6156
6157 EOF
6158     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6159       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6160       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6161     else
6162       ld_shlibs=no
6163     fi
6164     ;;
6165
6166   sunos4*)
6167     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6168     wlarc=
6169     hardcode_direct=yes
6170     hardcode_shlibpath_var=no
6171     ;;
6172
6173   *)
6174     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6175       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6176       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6177     else
6178       ld_shlibs=no
6179     fi
6180     ;;
6181   esac
6182
6183   if test "$ld_shlibs" = yes; then
6184     runpath_var=LD_RUN_PATH
6185     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6186     export_dynamic_flag_spec='${wl}--export-dynamic'
6187     case $host_os in
6188     cygwin* | mingw* | pw32*)
6189       # dlltool doesn't understand --whole-archive et. al.
6190       whole_archive_flag_spec=
6191       ;;
6192     *)
6193       # ancient GNU ld didn't support --whole-archive et. al.
6194       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6195         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6196       else
6197         whole_archive_flag_spec=
6198       fi
6199       ;;
6200     esac
6201   fi
6202 else
6203   # PORTME fill in a description of your system's linker (not GNU ld)
6204   case $host_os in
6205   aix3*)
6206     allow_undefined_flag=unsupported
6207     always_export_symbols=yes
6208     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6209     # Note: this linker hardcodes the directories in LIBPATH if there
6210     # are no directories specified by -L.
6211     hardcode_minus_L=yes
6212     if test "$GCC" = yes && test -z "$link_static_flag"; then
6213       # Neither direct hardcoding nor static linking is supported with a
6214       # broken collect2.
6215       hardcode_direct=unsupported
6216     fi
6217     ;;
6218
6219   aix4* | aix5*)
6220     if test "$host_cpu" = ia64; then
6221       # On IA64, the linker does run time linking by default, so we don't
6222       # have to do anything special.
6223       aix_use_runtimelinking=no
6224       exp_sym_flag='-Bexport'
6225       no_entry_flag=""
6226     else
6227       aix_use_runtimelinking=no
6228
6229       # Test if we are trying to use run time linking or normal
6230       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6231       # need to do runtime linking.
6232       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6233         for ld_flag in $LDFLAGS; do
6234           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6235             aix_use_runtimelinking=yes
6236             break
6237           fi
6238         done
6239       esac
6240
6241       exp_sym_flag='-bexport'
6242       no_entry_flag='-bnoentry'
6243     fi
6244
6245     # When large executables or shared objects are built, AIX ld can
6246     # have problems creating the table of contents.  If linking a library
6247     # or program results in "error TOC overflow" add -mminimal-toc to
6248     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6249     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6250
6251     hardcode_direct=yes
6252     archive_cmds=''
6253     hardcode_libdir_separator=':'
6254     if test "$GCC" = yes; then
6255       case $host_os in aix4.[012]|aix4.[012].*)
6256         collect2name=`${CC} -print-prog-name=collect2`
6257         if test -f "$collect2name" && \
6258           strings "$collect2name" | grep resolve_lib_name >/dev/null
6259         then
6260           # We have reworked collect2
6261           hardcode_direct=yes
6262         else
6263           # We have old collect2
6264           hardcode_direct=unsupported
6265           # It fails to find uninstalled libraries when the uninstalled
6266           # path is not listed in the libpath.  Setting hardcode_minus_L
6267           # to unsupported forces relinking
6268           hardcode_minus_L=yes
6269           hardcode_libdir_flag_spec='-L$libdir'
6270           hardcode_libdir_separator=
6271         fi
6272       esac
6273
6274       shared_flag='-shared'
6275     else
6276       # not using gcc
6277       if test "$host_cpu" = ia64; then
6278         shared_flag='${wl}-G'
6279       else
6280         if test "$aix_use_runtimelinking" = yes; then
6281           shared_flag='${wl}-G'
6282         else
6283           shared_flag='${wl}-bM:SRE'
6284         fi
6285       fi
6286     fi
6287
6288     # It seems that -bexpall can do strange things, so it is better to
6289     # generate a list of symbols to export.
6290     always_export_symbols=yes
6291     if test "$aix_use_runtimelinking" = yes; then
6292       # Warning - without using the other runtime loading flags (-brtl),
6293       # -berok will link without error, but may produce a broken library.
6294       allow_undefined_flag='-berok'
6295       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6296       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6297     else
6298       if test "$host_cpu" = ia64; then
6299         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6300         allow_undefined_flag="-z nodefs"
6301         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6302       else
6303         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6304         # Warning - without using the other run time loading flags,
6305         # -berok will link without error, but may produce a broken library.
6306         allow_undefined_flag='${wl}-berok'
6307         # This is a bit strange, but is similar to how AIX traditionally builds
6308         # it's shared libraries.
6309         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6310       fi
6311     fi
6312     ;;
6313
6314   amigaos*)
6315     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6316     hardcode_libdir_flag_spec='-L$libdir'
6317     hardcode_minus_L=yes
6318     # see comment about different semantics on the GNU ld section
6319     ld_shlibs=no
6320     ;;
6321
6322   cygwin* | mingw* | pw32*)
6323     # When not using gcc, we currently assume that we are using
6324     # Microsoft Visual C++.
6325     # hardcode_libdir_flag_spec is actually meaningless, as there is
6326     # no search path for DLLs.
6327     hardcode_libdir_flag_spec=' '
6328     allow_undefined_flag=unsupported
6329     # Tell ltmain to make .lib files, not .a files.
6330     libext=lib
6331     # FIXME: Setting linknames here is a bad hack.
6332     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6333     # The linker will automatically build a .lib file if we build a DLL.
6334     old_archive_from_new_cmds='true'
6335     # FIXME: Should let the user specify the lib program.
6336     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6337     fix_srcfile_path='`cygpath -w "$srcfile"`'
6338     ;;
6339
6340   darwin* | rhapsody*)
6341     case "$host_os" in
6342     rhapsody* | darwin1.[012])
6343       allow_undefined_flag='-undefined suppress'
6344       ;;
6345     *) # Darwin 1.3 on
6346       allow_undefined_flag='-flat_namespace -undefined suppress'
6347       ;;
6348     esac
6349     # FIXME: Relying on posixy $() will cause problems for
6350     #        cross-compilation, but unfortunately the echo tests do not
6351     #        yet detect zsh echo's removal of \ escapes.
6352     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6353     # We need to add '_' to the symbols in $export_symbols first
6354     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6355     hardcode_direct=yes
6356     hardcode_shlibpath_var=no
6357     whole_archive_flag_spec='-all_load $convenience'
6358     ;;
6359
6360   freebsd1*)
6361     ld_shlibs=no
6362     ;;
6363
6364   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6365   # support.  Future versions do this automatically, but an explicit c++rt0.o
6366   # does not break anything, and helps significantly (at the cost of a little
6367   # extra space).
6368   freebsd2.2*)
6369     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6370     hardcode_libdir_flag_spec='-R$libdir'
6371     hardcode_direct=yes
6372     hardcode_shlibpath_var=no
6373     ;;
6374
6375   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6376   freebsd2*)
6377     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6378     hardcode_direct=yes
6379     hardcode_minus_L=yes
6380     hardcode_shlibpath_var=no
6381     ;;
6382
6383   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6384   freebsd*)
6385     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6386     hardcode_libdir_flag_spec='-R$libdir'
6387     hardcode_direct=yes
6388     hardcode_shlibpath_var=no
6389     ;;
6390
6391   hpux9* | hpux10* | hpux11*)
6392     case $host_os in
6393     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6394     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6395     esac
6396     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6397     hardcode_libdir_separator=:
6398     hardcode_direct=yes
6399     hardcode_minus_L=yes # Not in the search PATH, but as the default
6400                          # location of the library.
6401     export_dynamic_flag_spec='${wl}-E'
6402     ;;
6403
6404   irix5* | irix6*)
6405     if test "$GCC" = yes; then
6406       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6407     else
6408       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6409     fi
6410     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6411     hardcode_libdir_separator=:
6412     link_all_deplibs=yes
6413     ;;
6414
6415   netbsd*)
6416     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6417       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6418     else
6419       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6420     fi
6421     hardcode_libdir_flag_spec='-R$libdir'
6422     hardcode_direct=yes
6423     hardcode_shlibpath_var=no
6424     ;;
6425
6426   newsos6)
6427     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6428     hardcode_direct=yes
6429     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6430     hardcode_libdir_separator=:
6431     hardcode_shlibpath_var=no
6432     ;;
6433
6434   openbsd*)
6435     hardcode_direct=yes
6436     hardcode_shlibpath_var=no
6437     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6438       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6439       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6440       export_dynamic_flag_spec='${wl}-E'
6441     else
6442       case "$host_os" in
6443       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6444         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6445         hardcode_libdir_flag_spec='-R$libdir'
6446         ;;
6447       *)
6448         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6449         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6450         ;;
6451       esac
6452     fi
6453     ;;
6454
6455   os2*)
6456     hardcode_libdir_flag_spec='-L$libdir'
6457     hardcode_minus_L=yes
6458     allow_undefined_flag=unsupported
6459     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6460     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6461     ;;
6462
6463   osf3*)
6464     if test "$GCC" = yes; then
6465       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6466       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6467     else
6468       allow_undefined_flag=' -expect_unresolved \*'
6469       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6470     fi
6471     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6472     hardcode_libdir_separator=:
6473     ;;
6474
6475   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6476     if test "$GCC" = yes; then
6477       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6478       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6479       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6480     else
6481       allow_undefined_flag=' -expect_unresolved \*'
6482       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6483       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6484       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6485
6486       #Both c and cxx compiler support -rpath directly
6487       hardcode_libdir_flag_spec='-rpath $libdir'
6488     fi
6489     hardcode_libdir_separator=:
6490     ;;
6491
6492   sco3.2v5*)
6493     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6494     hardcode_shlibpath_var=no
6495     runpath_var=LD_RUN_PATH
6496     hardcode_runpath_var=yes
6497     export_dynamic_flag_spec='${wl}-Bexport'
6498     ;;
6499
6500   solaris*)
6501     # gcc --version < 3.0 without binutils cannot create self contained
6502     # shared libraries reliably, requiring libgcc.a to resolve some of
6503     # the object symbols generated in some cases.  Libraries that use
6504     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6505     # a copy of libgcc.a into every shared library to guarantee resolving
6506     # such symbols causes other problems:  According to Tim Van Holder
6507     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6508     # (to the application) exception stack for one thing.
6509     no_undefined_flag=' -z defs'
6510     if test "$GCC" = yes; then
6511       case `$CC --version 2>/dev/null` in
6512       [12].*)
6513         cat <<EOF 1>&2
6514
6515 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6516 *** create self contained shared libraries on Solaris systems, without
6517 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6518 *** -no-undefined support, which will at least allow you to build shared
6519 *** libraries.  However, you may find that when you link such libraries
6520 *** into an application without using GCC, you have to manually add
6521 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6522 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6523 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6524
6525 EOF
6526         no_undefined_flag=
6527         ;;
6528       esac
6529     fi
6530     # $CC -shared without GNU ld will not create a library from C++
6531     # object files and a static libstdc++, better avoid it by now
6532     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6533     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6534                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6535     hardcode_libdir_flag_spec='-R$libdir'
6536     hardcode_shlibpath_var=no
6537     case $host_os in
6538     solaris2.[0-5] | solaris2.[0-5].*) ;;
6539     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6540       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6541     esac
6542     link_all_deplibs=yes
6543     ;;
6544
6545   sunos4*)
6546     if test "x$host_vendor" = xsequent; then
6547       # Use $CC to link under sequent, because it throws in some extra .o
6548       # files that make .init and .fini sections work.
6549       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6550     else
6551       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6552     fi
6553     hardcode_libdir_flag_spec='-L$libdir'
6554     hardcode_direct=yes
6555     hardcode_minus_L=yes
6556     hardcode_shlibpath_var=no
6557     ;;
6558
6559   sysv4)
6560     if test "x$host_vendor" = xsno; then
6561       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6562       hardcode_direct=yes # is this really true???
6563     else
6564       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6565       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6566     fi
6567     runpath_var='LD_RUN_PATH'
6568     hardcode_shlibpath_var=no
6569     ;;
6570
6571   sysv4.3*)
6572     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6573     hardcode_shlibpath_var=no
6574     export_dynamic_flag_spec='-Bexport'
6575     ;;
6576
6577   sysv5*)
6578     no_undefined_flag=' -z text'
6579     # $CC -shared without GNU ld will not create a library from C++
6580     # object files and a static libstdc++, better avoid it by now
6581     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6582     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6583                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6584     hardcode_libdir_flag_spec=
6585     hardcode_shlibpath_var=no
6586     runpath_var='LD_RUN_PATH'
6587     ;;
6588
6589   uts4*)
6590     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6591     hardcode_libdir_flag_spec='-L$libdir'
6592     hardcode_shlibpath_var=no
6593     ;;
6594
6595   dgux*)
6596     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6597     hardcode_libdir_flag_spec='-L$libdir'
6598     hardcode_shlibpath_var=no
6599     ;;
6600
6601   sysv4*MP*)
6602     if test -d /usr/nec; then
6603       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6604       hardcode_shlibpath_var=no
6605       runpath_var=LD_RUN_PATH
6606       hardcode_runpath_var=yes
6607       ld_shlibs=yes
6608     fi
6609     ;;
6610
6611   sysv4.2uw2*)
6612     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6613     hardcode_direct=yes
6614     hardcode_minus_L=no
6615     hardcode_shlibpath_var=no
6616     hardcode_runpath_var=yes
6617     runpath_var=LD_RUN_PATH
6618     ;;
6619
6620   sysv5uw7* | unixware7*)
6621     no_undefined_flag='${wl}-z ${wl}text'
6622     if test "$GCC" = yes; then
6623       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6624     else
6625       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6626     fi
6627     runpath_var='LD_RUN_PATH'
6628     hardcode_shlibpath_var=no
6629     ;;
6630
6631   *)
6632     ld_shlibs=no
6633     ;;
6634   esac
6635 fi
6636 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6637 echo "${ECHO_T}$ld_shlibs" >&6
6638 test "$ld_shlibs" = no && can_build_shared=no
6639
6640 # Check hardcoding attributes.
6641 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6643 hardcode_action=
6644 if test -n "$hardcode_libdir_flag_spec" || \
6645    test -n "$runpath_var"; then
6646
6647   # We can hardcode non-existant directories.
6648   if test "$hardcode_direct" != no &&
6649      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6650      # have to relink, otherwise we might link with an installed library
6651      # when we should be linking with a yet-to-be-installed one
6652      ## test "$hardcode_shlibpath_var" != no &&
6653      test "$hardcode_minus_L" != no; then
6654     # Linking always hardcodes the temporary library directory.
6655     hardcode_action=relink
6656   else
6657     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6658     hardcode_action=immediate
6659   fi
6660 else
6661   # We cannot hardcode anything, or else we can only hardcode existing
6662   # directories.
6663   hardcode_action=unsupported
6664 fi
6665 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6666 echo "${ECHO_T}$hardcode_action" >&6
6667
6668 striplib=
6669 old_striplib=
6670 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6671 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6672 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6673   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6674   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6675   echo "$as_me:$LINENO: result: yes" >&5
6676 echo "${ECHO_T}yes" >&6
6677 else
6678   echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6680 fi
6681
6682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6683 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6684
6685 # PORTME Fill in your ld.so characteristics
6686 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6687 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6688 library_names_spec=
6689 libname_spec='lib$name'
6690 soname_spec=
6691 postinstall_cmds=
6692 postuninstall_cmds=
6693 finish_cmds=
6694 finish_eval=
6695 shlibpath_var=
6696 shlibpath_overrides_runpath=unknown
6697 version_type=none
6698 dynamic_linker="$host_os ld.so"
6699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6701
6702 case $host_os in
6703 aix3*)
6704   version_type=linux
6705   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6706   shlibpath_var=LIBPATH
6707
6708   # AIX has no versioning support, so we append a major version to the name.
6709   soname_spec='${libname}${release}.so$major'
6710   ;;
6711
6712 aix4* | aix5*)
6713   version_type=linux
6714   if test "$host_cpu" = ia64; then
6715     # AIX 5 supports IA64
6716     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6717     shlibpath_var=LD_LIBRARY_PATH
6718   else
6719     # With GCC up to 2.95.x, collect2 would create an import file
6720     # for dependence libraries.  The import file would start with
6721     # the line `#! .'.  This would cause the generated library to
6722     # depend on `.', always an invalid library.  This was fixed in
6723     # development snapshots of GCC prior to 3.0.
6724     case $host_os in
6725       aix4 | aix4.[01] | aix4.[01].*)
6726         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6727              echo ' yes '
6728              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6729           :
6730         else
6731           can_build_shared=no
6732         fi
6733         ;;
6734     esac
6735     # AIX (on Power*) has no versioning support, so currently we can
6736     # not hardcode correct soname into executable. Probably we can
6737     # add versioning support to collect2, so additional links can
6738     # be useful in future.
6739     if test "$aix_use_runtimelinking" = yes; then
6740       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6741       # instead of lib<name>.a to let people know that these are not
6742       # typical AIX shared libraries.
6743       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6744     else
6745       # We preserve .a as extension for shared libraries through AIX4.2
6746       # and later when we are not doing run time linking.
6747       library_names_spec='${libname}${release}.a $libname.a'
6748       soname_spec='${libname}${release}.so$major'
6749     fi
6750     shlibpath_var=LIBPATH
6751   fi
6752   ;;
6753
6754 amigaos*)
6755   library_names_spec='$libname.ixlibrary $libname.a'
6756   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6757   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6758   ;;
6759
6760 beos*)
6761   library_names_spec='${libname}.so'
6762   dynamic_linker="$host_os ld.so"
6763   shlibpath_var=LIBRARY_PATH
6764   ;;
6765
6766 bsdi4*)
6767   version_type=linux
6768   need_version=no
6769   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6770   soname_spec='${libname}${release}.so$major'
6771   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6772   shlibpath_var=LD_LIBRARY_PATH
6773   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6774   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6775   export_dynamic_flag_spec=-rdynamic
6776   # the default ld.so.conf also contains /usr/contrib/lib and
6777   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6778   # libtool to hard-code these into programs
6779   ;;
6780
6781 cygwin* | mingw* | pw32*)
6782   version_type=windows
6783   need_version=no
6784   need_lib_prefix=no
6785   case $GCC,$host_os in
6786   yes,cygwin*)
6787     library_names_spec='$libname.dll.a'
6788     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6789     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6790       dldir=$destdir/`dirname \$dlpath`~
6791       test -d \$dldir || mkdir -p \$dldir~
6792       $install_prog .libs/$dlname \$dldir/$dlname'
6793     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6794       dlpath=$dir/\$dldll~
6795        $rm \$dlpath'
6796     ;;
6797   yes,mingw*)
6798     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6799     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6800     ;;
6801   yes,pw32*)
6802     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6803     ;;
6804   *)
6805     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6806     ;;
6807   esac
6808   dynamic_linker='Win32 ld.exe'
6809   # FIXME: first we should search . and the directory the executable is in
6810   shlibpath_var=PATH
6811   ;;
6812
6813 darwin* | rhapsody*)
6814   dynamic_linker="$host_os dyld"
6815   version_type=darwin
6816   need_lib_prefix=no
6817   need_version=no
6818   # FIXME: Relying on posixy $() will cause problems for
6819   #        cross-compilation, but unfortunately the echo tests do not
6820   #        yet detect zsh echo's removal of \ escapes.
6821   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6822   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6823   shlibpath_overrides_runpath=yes
6824   shlibpath_var=DYLD_LIBRARY_PATH
6825   ;;
6826
6827 freebsd1*)
6828   dynamic_linker=no
6829   ;;
6830
6831 freebsd*)
6832   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6833   version_type=freebsd-$objformat
6834   case $version_type in
6835     freebsd-elf*)
6836       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6837       need_version=no
6838       need_lib_prefix=no
6839       ;;
6840     freebsd-*)
6841       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6842       need_version=yes
6843       ;;
6844   esac
6845   shlibpath_var=LD_LIBRARY_PATH
6846   case $host_os in
6847   freebsd2*)
6848     shlibpath_overrides_runpath=yes
6849     ;;
6850   *)
6851     shlibpath_overrides_runpath=no
6852     hardcode_into_libs=yes
6853     ;;
6854   esac
6855   ;;
6856
6857 gnu*)
6858   version_type=linux
6859   need_lib_prefix=no
6860   need_version=no
6861   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6862   soname_spec='${libname}${release}.so$major'
6863   shlibpath_var=LD_LIBRARY_PATH
6864   hardcode_into_libs=yes
6865   ;;
6866
6867 hpux9* | hpux10* | hpux11*)
6868   # Give a soname corresponding to the major version so that dld.sl refuses to
6869   # link against other versions.
6870   dynamic_linker="$host_os dld.sl"
6871   version_type=sunos
6872   need_lib_prefix=no
6873   need_version=no
6874   shlibpath_var=SHLIB_PATH
6875   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6876   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6877   soname_spec='${libname}${release}.sl$major'
6878   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6879   postinstall_cmds='chmod 555 $lib'
6880   ;;
6881
6882 irix5* | irix6*)
6883   version_type=irix
6884   need_lib_prefix=no
6885   need_version=no
6886   soname_spec='${libname}${release}.so$major'
6887   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6888   case $host_os in
6889   irix5*)
6890     libsuff= shlibsuff=
6891     ;;
6892   *)
6893     case $LD in # libtool.m4 will add one of these switches to LD
6894     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6895     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6896     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6897     *) libsuff= shlibsuff= libmagic=never-match;;
6898     esac
6899     ;;
6900   esac
6901   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6902   shlibpath_overrides_runpath=no
6903   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6904   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6905   ;;
6906
6907 # No shared lib support for Linux oldld, aout, or coff.
6908 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6909   dynamic_linker=no
6910   ;;
6911
6912 # This must be Linux ELF.
6913 linux-gnu*)
6914   version_type=linux
6915   need_lib_prefix=no
6916   need_version=no
6917   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6918   soname_spec='${libname}${release}.so$major'
6919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6920   shlibpath_var=LD_LIBRARY_PATH
6921   shlibpath_overrides_runpath=no
6922   # This implies no fast_install, which is unacceptable.
6923   # Some rework will be needed to allow for fast_install
6924   # before this can be enabled.
6925   hardcode_into_libs=yes
6926
6927   # We used to test for /lib/ld.so.1 and disable shared libraries on
6928   # powerpc, because MkLinux only supported shared libraries with the
6929   # GNU dynamic linker.  Since this was broken with cross compilers,
6930   # most powerpc-linux boxes support dynamic linking these days and
6931   # people can always --disable-shared, the test was removed, and we
6932   # assume the GNU/Linux dynamic linker is in use.
6933   dynamic_linker='GNU/Linux ld.so'
6934   ;;
6935
6936 netbsd*)
6937   version_type=sunos
6938   need_lib_prefix=no
6939   need_version=no
6940   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6941     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6942     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6943     dynamic_linker='NetBSD (a.out) ld.so'
6944   else
6945     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6946     soname_spec='${libname}${release}.so$major'
6947     dynamic_linker='NetBSD ld.elf_so'
6948   fi
6949   shlibpath_var=LD_LIBRARY_PATH
6950   shlibpath_overrides_runpath=yes
6951   hardcode_into_libs=yes
6952   ;;
6953
6954 newsos6)
6955   version_type=linux
6956   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6957   shlibpath_var=LD_LIBRARY_PATH
6958   shlibpath_overrides_runpath=yes
6959   ;;
6960
6961 openbsd*)
6962   version_type=sunos
6963   need_lib_prefix=no
6964   need_version=no
6965   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6966     case "$host_os" in
6967     openbsd2.[89] | openbsd2.[89].*)
6968       shlibpath_overrides_runpath=no
6969       ;;
6970     *)
6971       shlibpath_overrides_runpath=yes
6972       ;;
6973     esac
6974   else
6975     shlibpath_overrides_runpath=yes
6976   fi
6977   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6978   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6979   shlibpath_var=LD_LIBRARY_PATH
6980   ;;
6981
6982 os2*)
6983   libname_spec='$name'
6984   need_lib_prefix=no
6985   library_names_spec='$libname.dll $libname.a'
6986   dynamic_linker='OS/2 ld.exe'
6987   shlibpath_var=LIBPATH
6988   ;;
6989
6990 osf3* | osf4* | osf5*)
6991   version_type=osf
6992   need_version=no
6993   soname_spec='${libname}${release}.so'
6994   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6995   shlibpath_var=LD_LIBRARY_PATH
6996   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6997   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6998   ;;
6999
7000 sco3.2v5*)
7001   version_type=osf
7002   soname_spec='${libname}${release}.so$major'
7003   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7004   shlibpath_var=LD_LIBRARY_PATH
7005   ;;
7006
7007 solaris*)
7008   version_type=linux
7009   need_lib_prefix=no
7010   need_version=no
7011   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7012   soname_spec='${libname}${release}.so$major'
7013   shlibpath_var=LD_LIBRARY_PATH
7014   shlibpath_overrides_runpath=yes
7015   hardcode_into_libs=yes
7016   # ldd complains unless libraries are executable
7017   postinstall_cmds='chmod +x $lib'
7018   ;;
7019
7020 sunos4*)
7021   version_type=sunos
7022   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7023   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7024   shlibpath_var=LD_LIBRARY_PATH
7025   shlibpath_overrides_runpath=yes
7026   if test "$with_gnu_ld" = yes; then
7027     need_lib_prefix=no
7028   fi
7029   need_version=yes
7030   ;;
7031
7032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7033   version_type=linux
7034   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7035   soname_spec='${libname}${release}.so$major'
7036   shlibpath_var=LD_LIBRARY_PATH
7037   case $host_vendor in
7038     sni)
7039       shlibpath_overrides_runpath=no
7040       ;;
7041     motorola)
7042       need_lib_prefix=no
7043       need_version=no
7044       shlibpath_overrides_runpath=no
7045       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7046       ;;
7047   esac
7048   ;;
7049
7050 uts4*)
7051   version_type=linux
7052   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7053   soname_spec='${libname}${release}.so$major'
7054   shlibpath_var=LD_LIBRARY_PATH
7055   ;;
7056
7057 dgux*)
7058   version_type=linux
7059   need_lib_prefix=no
7060   need_version=no
7061   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7062   soname_spec='${libname}${release}.so$major'
7063   shlibpath_var=LD_LIBRARY_PATH
7064   ;;
7065
7066 sysv4*MP*)
7067   if test -d /usr/nec ;then
7068     version_type=linux
7069     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7070     soname_spec='$libname.so.$major'
7071     shlibpath_var=LD_LIBRARY_PATH
7072   fi
7073   ;;
7074
7075 *)
7076   dynamic_linker=no
7077   ;;
7078 esac
7079 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7080 echo "${ECHO_T}$dynamic_linker" >&6
7081 test "$dynamic_linker" = no && can_build_shared=no
7082
7083 # Report the final consequences.
7084 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7085 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7086 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7087 echo "${ECHO_T}$can_build_shared" >&6
7088
7089 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7090 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7091 test "$can_build_shared" = "no" && enable_shared=no
7092
7093 # On AIX, shared libraries and static libraries use the same namespace, and
7094 # are all built from PIC.
7095 case "$host_os" in
7096 aix3*)
7097   test "$enable_shared" = yes && enable_static=no
7098   if test -n "$RANLIB"; then
7099     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7100     postinstall_cmds='$RANLIB $lib'
7101   fi
7102   ;;
7103
7104 aix4*)
7105   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7106     test "$enable_shared" = yes && enable_static=no
7107   fi
7108   ;;
7109 esac
7110 echo "$as_me:$LINENO: result: $enable_shared" >&5
7111 echo "${ECHO_T}$enable_shared" >&6
7112
7113 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7114 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7115 # Make sure either enable_shared or enable_static is yes.
7116 test "$enable_shared" = yes || enable_static=yes
7117 echo "$as_me:$LINENO: result: $enable_static" >&5
7118 echo "${ECHO_T}$enable_static" >&6
7119
7120 if test "$hardcode_action" = relink; then
7121   # Fast installation is not supported
7122   enable_fast_install=no
7123 elif test "$shlibpath_overrides_runpath" = yes ||
7124      test "$enable_shared" = no; then
7125   # Fast installation is not necessary
7126   enable_fast_install=needless
7127 fi
7128
7129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7130 if test "$GCC" = yes; then
7131   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7132 fi
7133
7134 if test "x$enable_dlopen" != xyes; then
7135   enable_dlopen=unknown
7136   enable_dlopen_self=unknown
7137   enable_dlopen_self_static=unknown
7138 else
7139   lt_cv_dlopen=no
7140   lt_cv_dlopen_libs=
7141
7142   case $host_os in
7143   beos*)
7144     lt_cv_dlopen="load_add_on"
7145     lt_cv_dlopen_libs=
7146     lt_cv_dlopen_self=yes
7147     ;;
7148
7149   cygwin* | mingw* | pw32*)
7150     lt_cv_dlopen="LoadLibrary"
7151     lt_cv_dlopen_libs=
7152    ;;
7153
7154   *)
7155     echo "$as_me:$LINENO: checking for shl_load" >&5
7156 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7157 if test "${ac_cv_func_shl_load+set}" = set; then
7158   echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160   cat >conftest.$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7162 #include "confdefs.h"
7163 /* System header to define __stub macros and hopefully few prototypes,
7164     which can conflict with char shl_load (); below.  */
7165 #include <assert.h>
7166 /* Override any gcc2 internal prototype to avoid an error.  */
7167 #ifdef __cplusplus
7168 extern "C"
7169 #endif
7170 /* We use char because int might match the return type of a gcc2
7171    builtin and then its argument prototype would still apply.  */
7172 char shl_load ();
7173 char (*f) ();
7174
7175 #ifdef F77_DUMMY_MAIN
7176 #  ifdef __cplusplus
7177      extern "C"
7178 #  endif
7179    int F77_DUMMY_MAIN() { return 1; }
7180 #endif
7181 int
7182 main ()
7183 {
7184 /* The GNU C library defines this for functions which it implements
7185     to always fail with ENOSYS.  Some functions are actually named
7186     something starting with __ and the normal name is an alias.  */
7187 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7188 choke me
7189 #else
7190 f = shl_load;
7191 #endif
7192
7193   ;
7194   return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199   (eval $ac_link) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } &&
7203          { ac_try='test -s conftest$ac_exeext'
7204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205   (eval $ac_try) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; }; then
7209   ac_cv_func_shl_load=yes
7210 else
7211   echo "$as_me: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7213 ac_cv_func_shl_load=no
7214 fi
7215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7216 fi
7217 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7218 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7219 if test $ac_cv_func_shl_load = yes; then
7220   lt_cv_dlopen="shl_load"
7221 else
7222   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7223 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7224 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   ac_check_lib_save_LIBS=$LIBS
7228 LIBS="-ldld  $LIBS"
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7231 #include "confdefs.h"
7232
7233 /* Override any gcc2 internal prototype to avoid an error.  */
7234 #ifdef __cplusplus
7235 extern "C"
7236 #endif
7237 /* We use char because int might match the return type of a gcc2
7238    builtin and then its argument prototype would still apply.  */
7239 char shl_load ();
7240 #ifdef F77_DUMMY_MAIN
7241 #  ifdef __cplusplus
7242      extern "C"
7243 #  endif
7244    int F77_DUMMY_MAIN() { return 1; }
7245 #endif
7246 int
7247 main ()
7248 {
7249 shl_load ();
7250   ;
7251   return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext conftest$ac_exeext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7256   (eval $ac_link) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -s conftest$ac_exeext'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   ac_cv_lib_dld_shl_load=yes
7267 else
7268   echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 ac_cv_lib_dld_shl_load=no
7271 fi
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7276 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7277 if test $ac_cv_lib_dld_shl_load = yes; then
7278   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7279 else
7280   echo "$as_me:$LINENO: checking for dlopen" >&5
7281 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7282 if test "${ac_cv_func_dlopen+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   cat >conftest.$ac_ext <<_ACEOF
7286 #line $LINENO "configure"
7287 #include "confdefs.h"
7288 /* System header to define __stub macros and hopefully few prototypes,
7289     which can conflict with char dlopen (); below.  */
7290 #include <assert.h>
7291 /* Override any gcc2 internal prototype to avoid an error.  */
7292 #ifdef __cplusplus
7293 extern "C"
7294 #endif
7295 /* We use char because int might match the return type of a gcc2
7296    builtin and then its argument prototype would still apply.  */
7297 char dlopen ();
7298 char (*f) ();
7299
7300 #ifdef F77_DUMMY_MAIN
7301 #  ifdef __cplusplus
7302      extern "C"
7303 #  endif
7304    int F77_DUMMY_MAIN() { return 1; }
7305 #endif
7306 int
7307 main ()
7308 {
7309 /* The GNU C library defines this for functions which it implements
7310     to always fail with ENOSYS.  Some functions are actually named
7311     something starting with __ and the normal name is an alias.  */
7312 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7313 choke me
7314 #else
7315 f = dlopen;
7316 #endif
7317
7318   ;
7319   return 0;
7320 }
7321 _ACEOF
7322 rm -f conftest.$ac_objext conftest$ac_exeext
7323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7324   (eval $ac_link) 2>&5
7325   ac_status=$?
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } &&
7328          { ac_try='test -s conftest$ac_exeext'
7329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330   (eval $ac_try) 2>&5
7331   ac_status=$?
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); }; }; then
7334   ac_cv_func_dlopen=yes
7335 else
7336   echo "$as_me: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7338 ac_cv_func_dlopen=no
7339 fi
7340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7341 fi
7342 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7343 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7344 if test $ac_cv_func_dlopen = yes; then
7345   lt_cv_dlopen="dlopen"
7346 else
7347   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7350   echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352   ac_check_lib_save_LIBS=$LIBS
7353 LIBS="-ldl  $LIBS"
7354 cat >conftest.$ac_ext <<_ACEOF
7355 #line $LINENO "configure"
7356 #include "confdefs.h"
7357
7358 /* Override any gcc2 internal prototype to avoid an error.  */
7359 #ifdef __cplusplus
7360 extern "C"
7361 #endif
7362 /* We use char because int might match the return type of a gcc2
7363    builtin and then its argument prototype would still apply.  */
7364 char dlopen ();
7365 #ifdef F77_DUMMY_MAIN
7366 #  ifdef __cplusplus
7367      extern "C"
7368 #  endif
7369    int F77_DUMMY_MAIN() { return 1; }
7370 #endif
7371 int
7372 main ()
7373 {
7374 dlopen ();
7375   ;
7376   return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381   (eval $ac_link) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } &&
7385          { ac_try='test -s conftest$ac_exeext'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; }; then
7391   ac_cv_lib_dl_dlopen=yes
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7395 ac_cv_lib_dl_dlopen=no
7396 fi
7397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7398 LIBS=$ac_check_lib_save_LIBS
7399 fi
7400 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7401 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7402 if test $ac_cv_lib_dl_dlopen = yes; then
7403   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7404 else
7405   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7406 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7407 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   ac_check_lib_save_LIBS=$LIBS
7411 LIBS="-lsvld  $LIBS"
7412 cat >conftest.$ac_ext <<_ACEOF
7413 #line $LINENO "configure"
7414 #include "confdefs.h"
7415
7416 /* Override any gcc2 internal prototype to avoid an error.  */
7417 #ifdef __cplusplus
7418 extern "C"
7419 #endif
7420 /* We use char because int might match the return type of a gcc2
7421    builtin and then its argument prototype would still apply.  */
7422 char dlopen ();
7423 #ifdef F77_DUMMY_MAIN
7424 #  ifdef __cplusplus
7425      extern "C"
7426 #  endif
7427    int F77_DUMMY_MAIN() { return 1; }
7428 #endif
7429 int
7430 main ()
7431 {
7432 dlopen ();
7433   ;
7434   return 0;
7435 }
7436 _ACEOF
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439   (eval $ac_link) 2>&5
7440   ac_status=$?
7441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442   (exit $ac_status); } &&
7443          { ac_try='test -s conftest$ac_exeext'
7444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445   (eval $ac_try) 2>&5
7446   ac_status=$?
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); }; }; then
7449   ac_cv_lib_svld_dlopen=yes
7450 else
7451   echo "$as_me: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 ac_cv_lib_svld_dlopen=no
7454 fi
7455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7456 LIBS=$ac_check_lib_save_LIBS
7457 fi
7458 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7459 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7460 if test $ac_cv_lib_svld_dlopen = yes; then
7461   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7462 else
7463   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7464 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7465 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   ac_check_lib_save_LIBS=$LIBS
7469 LIBS="-ldld  $LIBS"
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 #include "confdefs.h"
7473
7474 /* Override any gcc2 internal prototype to avoid an error.  */
7475 #ifdef __cplusplus
7476 extern "C"
7477 #endif
7478 /* We use char because int might match the return type of a gcc2
7479    builtin and then its argument prototype would still apply.  */
7480 char dld_link ();
7481 #ifdef F77_DUMMY_MAIN
7482 #  ifdef __cplusplus
7483      extern "C"
7484 #  endif
7485    int F77_DUMMY_MAIN() { return 1; }
7486 #endif
7487 int
7488 main ()
7489 {
7490 dld_link ();
7491   ;
7492   return 0;
7493 }
7494 _ACEOF
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497   (eval $ac_link) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } &&
7501          { ac_try='test -s conftest$ac_exeext'
7502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503   (eval $ac_try) 2>&5
7504   ac_status=$?
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); }; }; then
7507   ac_cv_lib_dld_dld_link=yes
7508 else
7509   echo "$as_me: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 ac_cv_lib_dld_dld_link=no
7512 fi
7513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7514 LIBS=$ac_check_lib_save_LIBS
7515 fi
7516 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7517 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7518 if test $ac_cv_lib_dld_dld_link = yes; then
7519   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7520 fi
7521
7522
7523 fi
7524
7525
7526 fi
7527
7528
7529 fi
7530
7531
7532 fi
7533
7534
7535 fi
7536
7537     ;;
7538   esac
7539
7540   if test "x$lt_cv_dlopen" != xno; then
7541     enable_dlopen=yes
7542   else
7543     enable_dlopen=no
7544   fi
7545
7546   case $lt_cv_dlopen in
7547   dlopen)
7548     save_CPPFLAGS="$CPPFLAGS"
7549         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7550
7551     save_LDFLAGS="$LDFLAGS"
7552     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7553
7554     save_LIBS="$LIBS"
7555     LIBS="$lt_cv_dlopen_libs $LIBS"
7556
7557     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7558 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7559 if test "${lt_cv_dlopen_self+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562           if test "$cross_compiling" = yes; then :
7563   lt_cv_dlopen_self=cross
7564 else
7565     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7566   lt_status=$lt_dlunknown
7567   cat > conftest.$ac_ext <<EOF
7568 #line 7568 "configure"
7569 #include "confdefs.h"
7570
7571 #if HAVE_DLFCN_H
7572 #include <dlfcn.h>
7573 #endif
7574
7575 #include <stdio.h>
7576
7577 #ifdef RTLD_GLOBAL
7578 #  define LT_DLGLOBAL           RTLD_GLOBAL
7579 #else
7580 #  ifdef DL_GLOBAL
7581 #    define LT_DLGLOBAL         DL_GLOBAL
7582 #  else
7583 #    define LT_DLGLOBAL         0
7584 #  endif
7585 #endif
7586
7587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7588    find out it does not work in some platform. */
7589 #ifndef LT_DLLAZY_OR_NOW
7590 #  ifdef RTLD_LAZY
7591 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7592 #  else
7593 #    ifdef DL_LAZY
7594 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7595 #    else
7596 #      ifdef RTLD_NOW
7597 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7598 #      else
7599 #        ifdef DL_NOW
7600 #          define LT_DLLAZY_OR_NOW      DL_NOW
7601 #        else
7602 #          define LT_DLLAZY_OR_NOW      0
7603 #        endif
7604 #      endif
7605 #    endif
7606 #  endif
7607 #endif
7608
7609 #ifdef __cplusplus
7610 extern "C" void exit (int);
7611 #endif
7612
7613 void fnord() { int i=42;}
7614 int main ()
7615 {
7616   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7617   int status = $lt_dlunknown;
7618
7619   if (self)
7620     {
7621       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7622       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7623       /* dlclose (self); */
7624     }
7625
7626     exit (status);
7627 }
7628 EOF
7629   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630   (eval $ac_link) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7634     (./conftest; exit; ) 2>/dev/null
7635     lt_status=$?
7636     case x$lt_status in
7637       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7638       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7639       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7640     esac
7641   else :
7642     # compilation failed
7643     lt_cv_dlopen_self=no
7644   fi
7645 fi
7646 rm -fr conftest*
7647
7648
7649 fi
7650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7651 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7652
7653     if test "x$lt_cv_dlopen_self" = xyes; then
7654       LDFLAGS="$LDFLAGS $link_static_flag"
7655       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7656 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7657 if test "${lt_cv_dlopen_self_static+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660           if test "$cross_compiling" = yes; then :
7661   lt_cv_dlopen_self_static=cross
7662 else
7663     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7664   lt_status=$lt_dlunknown
7665   cat > conftest.$ac_ext <<EOF
7666 #line 7666 "configure"
7667 #include "confdefs.h"
7668
7669 #if HAVE_DLFCN_H
7670 #include <dlfcn.h>
7671 #endif
7672
7673 #include <stdio.h>
7674
7675 #ifdef RTLD_GLOBAL
7676 #  define LT_DLGLOBAL           RTLD_GLOBAL
7677 #else
7678 #  ifdef DL_GLOBAL
7679 #    define LT_DLGLOBAL         DL_GLOBAL
7680 #  else
7681 #    define LT_DLGLOBAL         0
7682 #  endif
7683 #endif
7684
7685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7686    find out it does not work in some platform. */
7687 #ifndef LT_DLLAZY_OR_NOW
7688 #  ifdef RTLD_LAZY
7689 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7690 #  else
7691 #    ifdef DL_LAZY
7692 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7693 #    else
7694 #      ifdef RTLD_NOW
7695 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7696 #      else
7697 #        ifdef DL_NOW
7698 #          define LT_DLLAZY_OR_NOW      DL_NOW
7699 #        else
7700 #          define LT_DLLAZY_OR_NOW      0
7701 #        endif
7702 #      endif
7703 #    endif
7704 #  endif
7705 #endif
7706
7707 #ifdef __cplusplus
7708 extern "C" void exit (int);
7709 #endif
7710
7711 void fnord() { int i=42;}
7712 int main ()
7713 {
7714   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7715   int status = $lt_dlunknown;
7716
7717   if (self)
7718     {
7719       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7720       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7721       /* dlclose (self); */
7722     }
7723
7724     exit (status);
7725 }
7726 EOF
7727   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7728   (eval $ac_link) 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7732     (./conftest; exit; ) 2>/dev/null
7733     lt_status=$?
7734     case x$lt_status in
7735       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7736       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7737       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7738     esac
7739   else :
7740     # compilation failed
7741     lt_cv_dlopen_self_static=no
7742   fi
7743 fi
7744 rm -fr conftest*
7745
7746
7747 fi
7748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7749 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7750     fi
7751
7752     CPPFLAGS="$save_CPPFLAGS"
7753     LDFLAGS="$save_LDFLAGS"
7754     LIBS="$save_LIBS"
7755     ;;
7756   esac
7757
7758   case $lt_cv_dlopen_self in
7759   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7760   *) enable_dlopen_self=unknown ;;
7761   esac
7762
7763   case $lt_cv_dlopen_self_static in
7764   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7765   *) enable_dlopen_self_static=unknown ;;
7766   esac
7767 fi
7768
7769
7770 if test "$enable_shared" = yes && test "$GCC" = yes; then
7771   case $archive_cmds in
7772   *'~'*)
7773     # FIXME: we may have to deal with multi-command sequences.
7774     ;;
7775   '$CC '*)
7776     # Test whether the compiler implicitly links with -lc since on some
7777     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7778     # to ld, don't add -lc before -lgcc.
7779     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7780 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7781     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   $rm conftest*
7785     echo 'static int dummy;' > conftest.$ac_ext
7786
7787     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788   (eval $ac_compile) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; then
7792       soname=conftest
7793       lib=conftest
7794       libobjs=conftest.$ac_objext
7795       deplibs=
7796       wl=$lt_cv_prog_cc_wl
7797       compiler_flags=-v
7798       linker_flags=-v
7799       verstring=
7800       output_objdir=.
7801       libname=conftest
7802       save_allow_undefined_flag=$allow_undefined_flag
7803       allow_undefined_flag=
7804       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7805   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7806   ac_status=$?
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); }
7809       then
7810         lt_cv_archive_cmds_need_lc=no
7811       else
7812         lt_cv_archive_cmds_need_lc=yes
7813       fi
7814       allow_undefined_flag=$save_allow_undefined_flag
7815     else
7816       cat conftest.err 1>&5
7817     fi
7818 fi
7819
7820     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7821 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7822     ;;
7823   esac
7824 fi
7825 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7826
7827 # The second clause should only fire when bootstrapping the
7828 # libtool distribution, otherwise you forgot to ship ltmain.sh
7829 # with your package, and you will get complaints that there are
7830 # no rules to generate ltmain.sh.
7831 if test -f "$ltmain"; then
7832   :
7833 else
7834   # If there is no Makefile yet, we rely on a make rule to execute
7835   # `config.status --recheck' to rerun these tests and create the
7836   # libtool script then.
7837   test -f Makefile && make "$ltmain"
7838 fi
7839
7840 if test -f "$ltmain"; then
7841   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7842   $rm -f "${ofile}T"
7843
7844   echo creating $ofile
7845
7846   # Now quote all the things that may contain metacharacters while being
7847   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7848   # variables and quote the copies for generation of the libtool script.
7849   for var in echo old_CC old_CFLAGS \
7850     AR AR_FLAGS CC LD LN_S NM SHELL \
7851     reload_flag reload_cmds wl \
7852     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7853     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7854     library_names_spec soname_spec \
7855     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7856     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7857     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7858     old_striplib striplib file_magic_cmd export_symbols_cmds \
7859     deplibs_check_method allow_undefined_flag no_undefined_flag \
7860     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7861     global_symbol_to_c_name_address \
7862     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7863     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7864     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7865
7866     case $var in
7867     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7868     old_postinstall_cmds | old_postuninstall_cmds | \
7869     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7870     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7871     postinstall_cmds | postuninstall_cmds | \
7872     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7873       # Double-quote double-evaled strings.
7874       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7875       ;;
7876     *)
7877       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7878       ;;
7879     esac
7880   done
7881
7882   cat <<__EOF__ > "${ofile}T"
7883 #! $SHELL
7884
7885 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7886 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7887 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7888 #
7889 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7890 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7891 #
7892 # This program is free software; you can redistribute it and/or modify
7893 # it under the terms of the GNU General Public License as published by
7894 # the Free Software Foundation; either version 2 of the License, or
7895 # (at your option) any later version.
7896 #
7897 # This program is distributed in the hope that it will be useful, but
7898 # WITHOUT ANY WARRANTY; without even the implied warranty of
7899 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7900 # General Public License for more details.
7901 #
7902 # You should have received a copy of the GNU General Public License
7903 # along with this program; if not, write to the Free Software
7904 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7905 #
7906 # As a special exception to the GNU General Public License, if you
7907 # distribute this file as part of a program that contains a
7908 # configuration script generated by Autoconf, you may include it under
7909 # the same distribution terms that you use for the rest of that program.
7910
7911 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7912 Xsed="sed -e s/^X//"
7913
7914 # The HP-UX ksh and POSIX shell print the target directory to stdout
7915 # if CDPATH is set.
7916 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7917
7918 # ### BEGIN LIBTOOL CONFIG
7919
7920 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7921
7922 # Shell to use when invoking shell scripts.
7923 SHELL=$lt_SHELL
7924
7925 # Whether or not to build shared libraries.
7926 build_libtool_libs=$enable_shared
7927
7928 # Whether or not to build static libraries.
7929 build_old_libs=$enable_static
7930
7931 # Whether or not to add -lc for building shared libraries.
7932 build_libtool_need_lc=$need_lc
7933
7934 # Whether or not to optimize for fast installation.
7935 fast_install=$enable_fast_install
7936
7937 # The host system.
7938 host_alias=$host_alias
7939 host=$host
7940
7941 # An echo program that does not interpret backslashes.
7942 echo=$lt_echo
7943
7944 # The archiver.
7945 AR=$lt_AR
7946 AR_FLAGS=$lt_AR_FLAGS
7947
7948 # The default C compiler.
7949 CC=$lt_CC
7950
7951 # Is the compiler the GNU C compiler?
7952 with_gcc=$GCC
7953
7954 # The linker used to build libraries.
7955 LD=$lt_LD
7956
7957 # Whether we need hard or soft links.
7958 LN_S=$lt_LN_S
7959
7960 # A BSD-compatible nm program.
7961 NM=$lt_NM
7962
7963 # A symbol stripping program
7964 STRIP=$STRIP
7965
7966 # Used to examine libraries when file_magic_cmd begins "file"
7967 MAGIC_CMD=$MAGIC_CMD
7968
7969 # Used on cygwin: DLL creation program.
7970 DLLTOOL="$DLLTOOL"
7971
7972 # Used on cygwin: object dumper.
7973 OBJDUMP="$OBJDUMP"
7974
7975 # Used on cygwin: assembler.
7976 AS="$AS"
7977
7978 # The name of the directory that contains temporary libtool files.
7979 objdir=$objdir
7980
7981 # How to create reloadable object files.
7982 reload_flag=$lt_reload_flag
7983 reload_cmds=$lt_reload_cmds
7984
7985 # How to pass a linker flag through the compiler.
7986 wl=$lt_wl
7987
7988 # Object file suffix (normally "o").
7989 objext="$ac_objext"
7990
7991 # Old archive suffix (normally "a").
7992 libext="$libext"
7993
7994 # Executable file suffix (normally "").
7995 exeext="$exeext"
7996
7997 # Additional compiler flags for building library objects.
7998 pic_flag=$lt_pic_flag
7999 pic_mode=$pic_mode
8000
8001 # Does compiler simultaneously support -c and -o options?
8002 compiler_c_o=$lt_compiler_c_o
8003
8004 # Can we write directly to a .lo ?
8005 compiler_o_lo=$lt_compiler_o_lo
8006
8007 # Must we lock files when doing compilation ?
8008 need_locks=$lt_need_locks
8009
8010 # Do we need the lib prefix for modules?
8011 need_lib_prefix=$need_lib_prefix
8012
8013 # Do we need a version for libraries?
8014 need_version=$need_version
8015
8016 # Whether dlopen is supported.
8017 dlopen_support=$enable_dlopen
8018
8019 # Whether dlopen of programs is supported.
8020 dlopen_self=$enable_dlopen_self
8021
8022 # Whether dlopen of statically linked programs is supported.
8023 dlopen_self_static=$enable_dlopen_self_static
8024
8025 # Compiler flag to prevent dynamic linking.
8026 link_static_flag=$lt_link_static_flag
8027
8028 # Compiler flag to turn off builtin functions.
8029 no_builtin_flag=$lt_no_builtin_flag
8030
8031 # Compiler flag to allow reflexive dlopens.
8032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8033
8034 # Compiler flag to generate shared objects directly from archives.
8035 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8036
8037 # Compiler flag to generate thread-safe objects.
8038 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8039
8040 # Library versioning type.
8041 version_type=$version_type
8042
8043 # Format of library name prefix.
8044 libname_spec=$lt_libname_spec
8045
8046 # List of archive names.  First name is the real one, the rest are links.
8047 # The last name is the one that the linker finds with -lNAME.
8048 library_names_spec=$lt_library_names_spec
8049
8050 # The coded name of the library, if different from the real name.
8051 soname_spec=$lt_soname_spec
8052
8053 # Commands used to build and install an old-style archive.
8054 RANLIB=$lt_RANLIB
8055 old_archive_cmds=$lt_old_archive_cmds
8056 old_postinstall_cmds=$lt_old_postinstall_cmds
8057 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8058
8059 # Create an old-style archive from a shared archive.
8060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8061
8062 # Create a temporary old-style archive to link instead of a shared archive.
8063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8064
8065 # Commands used to build and install a shared archive.
8066 archive_cmds=$lt_archive_cmds
8067 archive_expsym_cmds=$lt_archive_expsym_cmds
8068 postinstall_cmds=$lt_postinstall_cmds
8069 postuninstall_cmds=$lt_postuninstall_cmds
8070
8071 # Commands to strip libraries.
8072 old_striplib=$lt_old_striplib
8073 striplib=$lt_striplib
8074
8075 # Method to check whether dependent libraries are shared objects.
8076 deplibs_check_method=$lt_deplibs_check_method
8077
8078 # Command to use when deplibs_check_method == file_magic.
8079 file_magic_cmd=$lt_file_magic_cmd
8080
8081 # Flag that allows shared libraries with undefined symbols to be built.
8082 allow_undefined_flag=$lt_allow_undefined_flag
8083
8084 # Flag that forces no undefined symbols.
8085 no_undefined_flag=$lt_no_undefined_flag
8086
8087 # Commands used to finish a libtool library installation in a directory.
8088 finish_cmds=$lt_finish_cmds
8089
8090 # Same as above, but a single script fragment to be evaled but not shown.
8091 finish_eval=$lt_finish_eval
8092
8093 # Take the output of nm and produce a listing of raw symbols and C names.
8094 global_symbol_pipe=$lt_global_symbol_pipe
8095
8096 # Transform the output of nm in a proper C declaration
8097 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8098
8099 # Transform the output of nm in a C name address pair
8100 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8101
8102 # This is the shared library runtime path variable.
8103 runpath_var=$runpath_var
8104
8105 # This is the shared library path variable.
8106 shlibpath_var=$shlibpath_var
8107
8108 # Is shlibpath searched before the hard-coded library search path?
8109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8110
8111 # How to hardcode a shared library path into an executable.
8112 hardcode_action=$hardcode_action
8113
8114 # Whether we should hardcode library paths into libraries.
8115 hardcode_into_libs=$hardcode_into_libs
8116
8117 # Flag to hardcode \$libdir into a binary during linking.
8118 # This must work even if \$libdir does not exist.
8119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8120
8121 # Whether we need a single -rpath flag with a separated argument.
8122 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8123
8124 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8125 # resulting binary.
8126 hardcode_direct=$hardcode_direct
8127
8128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8129 # resulting binary.
8130 hardcode_minus_L=$hardcode_minus_L
8131
8132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8133 # the resulting binary.
8134 hardcode_shlibpath_var=$hardcode_shlibpath_var
8135
8136 # Variables whose values should be saved in libtool wrapper scripts and
8137 # restored at relink time.
8138 variables_saved_for_relink="$variables_saved_for_relink"
8139
8140 # Whether libtool must link a program against all its dependency libraries.
8141 link_all_deplibs=$link_all_deplibs
8142
8143 # Compile-time system search path for libraries
8144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8145
8146 # Run-time system search path for libraries
8147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8148
8149 # Fix the shell variable \$srcfile for the compiler.
8150 fix_srcfile_path="$fix_srcfile_path"
8151
8152 # Set to yes if exported symbols are required.
8153 always_export_symbols=$always_export_symbols
8154
8155 # The commands to list exported symbols.
8156 export_symbols_cmds=$lt_export_symbols_cmds
8157
8158 # The commands to extract the exported symbol list from a shared archive.
8159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8160
8161 # Symbols that should not be listed in the preloaded symbols.
8162 exclude_expsyms=$lt_exclude_expsyms
8163
8164 # Symbols that must always be exported.
8165 include_expsyms=$lt_include_expsyms
8166
8167 # ### END LIBTOOL CONFIG
8168
8169 __EOF__
8170
8171   case $host_os in
8172   aix3*)
8173     cat <<\EOF >> "${ofile}T"
8174
8175 # AIX sometimes has problems with the GCC collect2 program.  For some
8176 # reason, if we set the COLLECT_NAMES environment variable, the problems
8177 # vanish in a puff of smoke.
8178 if test "X${COLLECT_NAMES+set}" != Xset; then
8179   COLLECT_NAMES=
8180   export COLLECT_NAMES
8181 fi
8182 EOF
8183     ;;
8184   esac
8185
8186   case $host_os in
8187   cygwin* | mingw* | pw32* | os2*)
8188     cat <<'EOF' >> "${ofile}T"
8189       # This is a source program that is used to create dlls on Windows
8190       # Don't remove nor modify the starting and closing comments
8191 # /* ltdll.c starts here */
8192 # #define WIN32_LEAN_AND_MEAN
8193 # #include <windows.h>
8194 # #undef WIN32_LEAN_AND_MEAN
8195 # #include <stdio.h>
8196 #
8197 # #ifndef __CYGWIN__
8198 # #  ifdef __CYGWIN32__
8199 # #    define __CYGWIN__ __CYGWIN32__
8200 # #  endif
8201 # #endif
8202 #
8203 # #ifdef __cplusplus
8204 # extern "C" {
8205 # #endif
8206 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8207 # #ifdef __cplusplus
8208 # }
8209 # #endif
8210 #
8211 # #ifdef __CYGWIN__
8212 # #include <cygwin/cygwin_dll.h>
8213 # DECLARE_CYGWIN_DLL( DllMain );
8214 # #endif
8215 # HINSTANCE __hDllInstance_base;
8216 #
8217 # BOOL APIENTRY
8218 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8219 # {
8220 #   __hDllInstance_base = hInst;
8221 #   return TRUE;
8222 # }
8223 # /* ltdll.c ends here */
8224         # This is a source program that is used to create import libraries
8225         # on Windows for dlls which lack them. Don't remove nor modify the
8226         # starting and closing comments
8227 # /* impgen.c starts here */
8228 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8229 #
8230 #  This file is part of GNU libtool.
8231 #
8232 #  This program is free software; you can redistribute it and/or modify
8233 #  it under the terms of the GNU General Public License as published by
8234 #  the Free Software Foundation; either version 2 of the License, or
8235 #  (at your option) any later version.
8236 #
8237 #  This program is distributed in the hope that it will be useful,
8238 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8239 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8240 #  GNU General Public License for more details.
8241 #
8242 #  You should have received a copy of the GNU General Public License
8243 #  along with this program; if not, write to the Free Software
8244 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8245 #  */
8246 #
8247 # #include <stdio.h>            /* for printf() */
8248 # #include <unistd.h>           /* for open(), lseek(), read() */
8249 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8250 # #include <string.h>           /* for strdup() */
8251 #
8252 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8253 # #ifndef O_BINARY
8254 # #define O_BINARY 0
8255 # #endif
8256 #
8257 # static unsigned int
8258 # pe_get16 (fd, offset)
8259 #      int fd;
8260 #      int offset;
8261 # {
8262 #   unsigned char b[2];
8263 #   lseek (fd, offset, SEEK_SET);
8264 #   read (fd, b, 2);
8265 #   return b[0] + (b[1]<<8);
8266 # }
8267 #
8268 # static unsigned int
8269 # pe_get32 (fd, offset)
8270 #     int fd;
8271 #     int offset;
8272 # {
8273 #   unsigned char b[4];
8274 #   lseek (fd, offset, SEEK_SET);
8275 #   read (fd, b, 4);
8276 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8277 # }
8278 #
8279 # static unsigned int
8280 # pe_as32 (ptr)
8281 #      void *ptr;
8282 # {
8283 #   unsigned char *b = ptr;
8284 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8285 # }
8286 #
8287 # int
8288 # main (argc, argv)
8289 #     int argc;
8290 #     char *argv[];
8291 # {
8292 #     int dll;
8293 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8294 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8295 #     unsigned long name_rvas, nexp;
8296 #     unsigned char *expdata, *erva;
8297 #     char *filename, *dll_name;
8298 #
8299 #     filename = argv[1];
8300 #
8301 #     dll = open(filename, O_RDONLY|O_BINARY);
8302 #     if (dll < 1)
8303 #       return 1;
8304 #
8305 #     dll_name = filename;
8306 #
8307 #     for (i=0; filename[i]; i++)
8308 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8309 #           dll_name = filename + i +1;
8310 #
8311 #     pe_header_offset = pe_get32 (dll, 0x3c);
8312 #     opthdr_ofs = pe_header_offset + 4 + 20;
8313 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8314 #
8315 #     if (num_entries < 1) /* no exports */
8316 #       return 1;
8317 #
8318 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8319 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8320 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8321 #     secptr = (pe_header_offset + 4 + 20 +
8322 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8323 #
8324 #     expptr = 0;
8325 #     for (i = 0; i < nsections; i++)
8326 #     {
8327 #       char sname[8];
8328 #       unsigned long secptr1 = secptr + 40 * i;
8329 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8330 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8331 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8332 #       lseek(dll, secptr1, SEEK_SET);
8333 #       read(dll, sname, 8);
8334 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8335 #       {
8336 #           expptr = fptr + (export_rva - vaddr);
8337 #           if (export_rva + export_size > vaddr + vsize)
8338 #               export_size = vsize - (export_rva - vaddr);
8339 #           break;
8340 #       }
8341 #     }
8342 #
8343 #     expdata = (unsigned char*)malloc(export_size);
8344 #     lseek (dll, expptr, SEEK_SET);
8345 #     read (dll, expdata, export_size);
8346 #     erva = expdata - export_rva;
8347 #
8348 #     nexp = pe_as32 (expdata+24);
8349 #     name_rvas = pe_as32 (expdata+32);
8350 #
8351 #     printf ("EXPORTS\n");
8352 #     for (i = 0; i<nexp; i++)
8353 #     {
8354 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8355 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8356 #     }
8357 #
8358 #     return 0;
8359 # }
8360 # /* impgen.c ends here */
8361
8362 EOF
8363     ;;
8364   esac
8365
8366   # We use sed instead of cat because bash on DJGPP gets confused if
8367   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8368   # text mode, it properly converts lines to CR/LF.  This bash problem
8369   # is reportedly fixed, but why not run on old versions too?
8370   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8371
8372   mv -f "${ofile}T" "$ofile" || \
8373     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8374   chmod +x "$ofile"
8375 fi
8376
8377
8378
8379
8380
8381 # This can be used to rebuild libtool when needed
8382 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8383
8384 # Always use our own libtool.
8385 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8386
8387 # Prevent multiple expansion
8388
8389
8390
8391
8392 WFLAGS_NOUNUSED=""
8393 WFLAGS_NOIMPLICITINT=""
8394 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
8395   # -Wno-implicit-int for broken X11 headers
8396   # leave these out for now:
8397   #   -Wcast-align doesn't work well on alpha osf/1
8398   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
8399   #   -Wmissing-declarations -Wnested-externs
8400   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
8401   WFLAGS_NOUNUSED="-Wno-unused"
8402   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
8403 fi
8404
8405
8406
8407
8408 # Check whether --with-openldap or --without-openldap was given.
8409 if test "${with_openldap+set}" = set; then
8410   withval="$with_openldap"
8411
8412 fi;
8413
8414 # Check whether --with-openldap-lib or --without-openldap-lib was given.
8415 if test "${with_openldap_lib+set}" = set; then
8416   withval="$with_openldap_lib"
8417   if test "$withval" = "yes" -o "$withval" = "no"; then
8418   { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
8419 echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
8420    { (exit 1); exit 1; }; }
8421 elif test "X$with_openldap" = "X"; then
8422   with_openldap=yes
8423 fi
8424 fi;
8425
8426 # Check whether --with-openldap-include or --without-openldap-include was given.
8427 if test "${with_openldap_include+set}" = set; then
8428   withval="$with_openldap_include"
8429   if test "$withval" = "yes" -o "$withval" = "no"; then
8430   { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
8431 echo "$as_me: error: No argument for --with-openldap-include" >&2;}
8432    { (exit 1); exit 1; }; }
8433 elif test "X$with_openldap" = "X"; then
8434   with_openldap=yes
8435 fi
8436 fi;
8437
8438 # Check whether --with-openldap-config or --without-openldap-config was given.
8439 if test "${with_openldap_config+set}" = set; then
8440   withval="$with_openldap_config"
8441
8442 fi;
8443
8444
8445
8446 echo "$as_me:$LINENO: checking for openldap" >&5
8447 echo $ECHO_N "checking for openldap... $ECHO_C" >&6
8448
8449 case "$with_openldap" in
8450 yes|"") d='' ;;
8451 no)     d= ;;
8452 *)      d="$with_openldap" ;;
8453 esac
8454
8455 header_dirs=
8456 lib_dirs=
8457 for i in $d; do
8458         if test "$with_openldap_include" = ""; then
8459                 if test -d "$i/include/openldap"; then
8460                         header_dirs="$header_dirs $i/include/openldap"
8461                 fi
8462                 if test -d "$i/include"; then
8463                         header_dirs="$header_dirs $i/include"
8464                 fi
8465         fi
8466         if test "$with_openldap_lib" = ""; then
8467                 if test -d "$i/lib$abilibdirext"; then
8468                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
8469                 fi
8470         fi
8471 done
8472
8473 if test "$with_openldap_include"; then
8474         header_dirs="$with_openldap_include $header_dirs"
8475 fi
8476 if test "$with_openldap_lib"; then
8477         lib_dirs="$with_openldap_lib $lib_dirs"
8478 fi
8479
8480 if test "$with_openldap_config" = ""; then
8481         with_openldap_config=''
8482 fi
8483
8484 openldap_cflags=
8485 openldap_libs=
8486
8487 case "$with_openldap_config" in
8488 yes|no|"")
8489         ;;
8490 *)
8491         openldap_cflags="`$with_openldap_config --cflags 2>&1`"
8492         openldap_libs="`$with_openldap_config --libs 2>&1`"
8493         ;;
8494 esac
8495
8496 found=no
8497 if test "$with_openldap" != no; then
8498         save_CFLAGS="$CFLAGS"
8499         save_LIBS="$LIBS"
8500         if test "$openldap_cflags" -a "$openldap_libs"; then
8501                 CFLAGS="$openldap_cflags $save_CFLAGS"
8502                 LIBS="$openldap_libs $save_LIBS"
8503                 cat >conftest.$ac_ext <<_ACEOF
8504 #line $LINENO "configure"
8505 #include "confdefs.h"
8506 #include <lber.h>
8507 #include <ldap.h>
8508 #ifdef F77_DUMMY_MAIN
8509 #  ifdef __cplusplus
8510      extern "C"
8511 #  endif
8512    int F77_DUMMY_MAIN() { return 1; }
8513 #endif
8514 int
8515 main ()
8516 {
8517
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524   (eval $ac_link) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -s conftest$ac_exeext'
8529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530   (eval $ac_try) 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; }; then
8534
8535                         INCLUDE_openldap="$openldap_cflags"
8536                         LIB_openldap="$openldap_libs"
8537                         echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
8538 echo "${ECHO_T}from $with_openldap_config" >&6
8539                         found=yes
8540 else
8541   echo "$as_me: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8543 fi
8544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8545         fi
8546         if test "$found" = no; then
8547                 ires= lres=
8548                 for i in $header_dirs; do
8549                         CFLAGS="-I$i $save_CFLAGS"
8550                         cat >conftest.$ac_ext <<_ACEOF
8551 #line $LINENO "configure"
8552 #include "confdefs.h"
8553 #include <lber.h>
8554 #include <ldap.h>
8555 #ifdef F77_DUMMY_MAIN
8556 #  ifdef __cplusplus
8557      extern "C"
8558 #  endif
8559    int F77_DUMMY_MAIN() { return 1; }
8560 #endif
8561 int
8562 main ()
8563 {
8564
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8571   (eval $ac_compile) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } &&
8575          { ac_try='test -s conftest.$ac_objext'
8576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577   (eval $ac_try) 2>&5
8578   ac_status=$?
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); }; }; then
8581   ires=$i;break
8582 else
8583   echo "$as_me: failed program was:" >&5
8584 cat conftest.$ac_ext >&5
8585 fi
8586 rm -f conftest.$ac_objext conftest.$ac_ext
8587                 done
8588                 for i in $lib_dirs; do
8589                         LIBS="-L$i -lldap -llber  $save_LIBS"
8590                         cat >conftest.$ac_ext <<_ACEOF
8591 #line $LINENO "configure"
8592 #include "confdefs.h"
8593 #include <lber.h>
8594 #include <ldap.h>
8595 #ifdef F77_DUMMY_MAIN
8596 #  ifdef __cplusplus
8597      extern "C"
8598 #  endif
8599    int F77_DUMMY_MAIN() { return 1; }
8600 #endif
8601 int
8602 main ()
8603 {
8604
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8611   (eval $ac_link) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -s conftest$ac_exeext'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   lres=$i;break
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8625 fi
8626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8627                 done
8628                 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
8629                         INCLUDE_openldap="-I$ires"
8630                         LIB_openldap="-L$lres -lldap -llber "
8631                         found=yes
8632                         echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
8633 echo "${ECHO_T}headers $ires, libraries $lres" >&6
8634                 fi
8635         fi
8636         CFLAGS="$save_CFLAGS"
8637         LIBS="$save_LIBS"
8638 fi
8639
8640 if test "$found" = yes; then
8641
8642 cat >>confdefs.h <<_ACEOF
8643 #define OPENLDAP 1
8644 _ACEOF
8645
8646         with_openldap=yes
8647 else
8648         with_openldap=no
8649         INCLUDE_openldap=
8650         LIB_openldap=
8651         echo "$as_me:$LINENO: result: no" >&5
8652 echo "${ECHO_T}no" >&6
8653 fi
8654
8655
8656
8657
8658
8659
8660
8661 # Check whether --with-krb4 or --without-krb4 was given.
8662 if test "${with_krb4+set}" = set; then
8663   withval="$with_krb4"
8664
8665 fi;
8666
8667 # Check whether --with-krb4-lib or --without-krb4-lib was given.
8668 if test "${with_krb4_lib+set}" = set; then
8669   withval="$with_krb4_lib"
8670   if test "$withval" = "yes" -o "$withval" = "no"; then
8671   { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
8672 echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
8673    { (exit 1); exit 1; }; }
8674 elif test "X$with_krb4" = "X"; then
8675   with_krb4=yes
8676 fi
8677 fi;
8678
8679 # Check whether --with-krb4-include or --without-krb4-include was given.
8680 if test "${with_krb4_include+set}" = set; then
8681   withval="$with_krb4_include"
8682   if test "$withval" = "yes" -o "$withval" = "no"; then
8683   { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
8684 echo "$as_me: error: No argument for --with-krb4-include" >&2;}
8685    { (exit 1); exit 1; }; }
8686 elif test "X$with_krb4" = "X"; then
8687   with_krb4=yes
8688 fi
8689 fi;
8690
8691 # Check whether --with-krb4-config or --without-krb4-config was given.
8692 if test "${with_krb4_config+set}" = set; then
8693   withval="$with_krb4_config"
8694
8695 fi;
8696
8697
8698
8699 echo "$as_me:$LINENO: checking for krb4" >&5
8700 echo $ECHO_N "checking for krb4... $ECHO_C" >&6
8701
8702 case "$with_krb4" in
8703 yes|"") d='/usr/athena' ;;
8704 no)     d= ;;
8705 *)      d="$with_krb4" ;;
8706 esac
8707
8708 header_dirs=
8709 lib_dirs=
8710 for i in $d; do
8711         if test "$with_krb4_include" = ""; then
8712                 if test -d "$i/include/krb4"; then
8713                         header_dirs="$header_dirs $i/include/krb4"
8714                 fi
8715                 if test -d "$i/include"; then
8716                         header_dirs="$header_dirs $i/include"
8717                 fi
8718         fi
8719         if test "$with_krb4_lib" = ""; then
8720                 if test -d "$i/lib$abilibdirext"; then
8721                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
8722                 fi
8723         fi
8724 done
8725
8726 if test "$with_krb4_include"; then
8727         header_dirs="$with_krb4_include $header_dirs"
8728 fi
8729 if test "$with_krb4_lib"; then
8730         lib_dirs="$with_krb4_lib $lib_dirs"
8731 fi
8732
8733 if test "$with_krb4_config" = ""; then
8734         with_krb4_config='krb4-config'
8735 fi
8736
8737 krb4_cflags=
8738 krb4_libs=
8739
8740 case "$with_krb4_config" in
8741 yes|no|"")
8742         ;;
8743 *)
8744         krb4_cflags="`$with_krb4_config --cflags 2>&1`"
8745         krb4_libs="`$with_krb4_config --libs 2>&1`"
8746         ;;
8747 esac
8748
8749 found=no
8750 if test "$with_krb4" != no; then
8751         save_CFLAGS="$CFLAGS"
8752         save_LIBS="$LIBS"
8753         if test "$krb4_cflags" -a "$krb4_libs"; then
8754                 CFLAGS="$krb4_cflags $save_CFLAGS"
8755                 LIBS="$krb4_libs $save_LIBS"
8756                 cat >conftest.$ac_ext <<_ACEOF
8757 #line $LINENO "configure"
8758 #include "confdefs.h"
8759 #include <krb.h>
8760 #ifdef F77_DUMMY_MAIN
8761 #  ifdef __cplusplus
8762      extern "C"
8763 #  endif
8764    int F77_DUMMY_MAIN() { return 1; }
8765 #endif
8766 int
8767 main ()
8768 {
8769
8770   ;
8771   return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776   (eval $ac_link) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } &&
8780          { ac_try='test -s conftest$ac_exeext'
8781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782   (eval $ac_try) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; }; then
8786
8787                         INCLUDE_krb4="$krb4_cflags"
8788                         LIB_krb4="$krb4_libs"
8789                         echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
8790 echo "${ECHO_T}from $with_krb4_config" >&6
8791                         found=yes
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8795 fi
8796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8797         fi
8798         if test "$found" = no; then
8799                 ires= lres=
8800                 for i in $header_dirs; do
8801                         CFLAGS="-I$i $save_CFLAGS"
8802                         cat >conftest.$ac_ext <<_ACEOF
8803 #line $LINENO "configure"
8804 #include "confdefs.h"
8805 #include <krb.h>
8806 #ifdef F77_DUMMY_MAIN
8807 #  ifdef __cplusplus
8808      extern "C"
8809 #  endif
8810    int F77_DUMMY_MAIN() { return 1; }
8811 #endif
8812 int
8813 main ()
8814 {
8815
8816   ;
8817   return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8822   (eval $ac_compile) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); } &&
8826          { ac_try='test -s conftest.$ac_objext'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; }; then
8832   ires=$i;break
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8836 fi
8837 rm -f conftest.$ac_objext conftest.$ac_ext
8838                 done
8839                 for i in $lib_dirs; do
8840                         LIBS="-L$i -lkrb -ldes $save_LIBS"
8841                         cat >conftest.$ac_ext <<_ACEOF
8842 #line $LINENO "configure"
8843 #include "confdefs.h"
8844 #include <krb.h>
8845 #ifdef F77_DUMMY_MAIN
8846 #  ifdef __cplusplus
8847      extern "C"
8848 #  endif
8849    int F77_DUMMY_MAIN() { return 1; }
8850 #endif
8851 int
8852 main ()
8853 {
8854
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861   (eval $ac_link) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } &&
8865          { ac_try='test -s conftest$ac_exeext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   lres=$i;break
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 fi
8876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8877                 done
8878                 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
8879                         INCLUDE_krb4="-I$ires"
8880                         LIB_krb4="-L$lres -lkrb -ldes"
8881                         found=yes
8882                         echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
8883 echo "${ECHO_T}headers $ires, libraries $lres" >&6
8884                 fi
8885         fi
8886         CFLAGS="$save_CFLAGS"
8887         LIBS="$save_LIBS"
8888 fi
8889
8890 if test "$found" = yes; then
8891
8892 cat >>confdefs.h <<_ACEOF
8893 #define KRB4 1
8894 _ACEOF
8895
8896         with_krb4=yes
8897 else
8898         with_krb4=no
8899         INCLUDE_krb4=
8900         LIB_krb4=
8901         echo "$as_me:$LINENO: result: no" >&5
8902 echo "${ECHO_T}no" >&6
8903 fi
8904
8905
8906
8907
8908
8909 LIB_kdb=
8910 if test "$with_krb4" != "no"; then
8911         save_CFLAGS="$CFLAGS"
8912         CFLAGS="$CFLAGS $INCLUDE_krb4"
8913         save_LIBS="$LIBS"
8914         LIBS="$LIB_krb4 $LIBS"
8915         EXTRA_LIB45=lib45.a
8916
8917         echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
8918 echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
8919 if test "${ac_cv_func_krb_put_int_four+set}" = set; then
8920   echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922   cat >conftest.$ac_ext <<_ACEOF
8923 #line $LINENO "configure"
8924 #include "confdefs.h"
8925 #include <krb.h>
8926 #ifdef F77_DUMMY_MAIN
8927 #  ifdef __cplusplus
8928      extern "C"
8929 #  endif
8930    int F77_DUMMY_MAIN() { return 1; }
8931 #endif
8932 int
8933 main ()
8934 {
8935
8936                 char tmp[4];
8937                 krb_put_int(17, tmp, 4, sizeof(tmp));
8938   ;
8939   return 0;
8940 }
8941 _ACEOF
8942 rm -f conftest.$ac_objext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8944   (eval $ac_compile) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); } &&
8948          { ac_try='test -s conftest.$ac_objext'
8949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950   (eval $ac_try) 2>&5
8951   ac_status=$?
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); }; }; then
8954   ac_cv_func_krb_put_int_four=yes
8955 else
8956   echo "$as_me: failed program was:" >&5
8957 cat conftest.$ac_ext >&5
8958 ac_cv_func_krb_put_int_four=no
8959 fi
8960 rm -f conftest.$ac_objext conftest.$ac_ext
8961
8962 fi
8963 echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
8964 echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
8965         if test "$ac_cv_func_krb_put_int_four" = yes; then
8966
8967 cat >>confdefs.h <<\_ACEOF
8968 #define HAVE_FOUR_VALUED_KRB_PUT_INT 1
8969 _ACEOF
8970
8971         fi
8972
8973
8974         echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
8975 echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
8976 if test "${ac_cv_func_krb_verify_secure+set}" = set; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979   cat >conftest.$ac_ext <<_ACEOF
8980 #line $LINENO "configure"
8981 #include "confdefs.h"
8982 #include <krb.h>
8983 #ifdef F77_DUMMY_MAIN
8984 #  ifdef __cplusplus
8985      extern "C"
8986 #  endif
8987    int F77_DUMMY_MAIN() { return 1; }
8988 #endif
8989 int
8990 main ()
8991 {
8992
8993                 int x = KRB_VERIFY_SECURE
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000   (eval $ac_compile) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } &&
9004          { ac_try='test -s conftest.$ac_objext'
9005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006   (eval $ac_try) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); }; }; then
9010   ac_cv_func_krb_verify_secure=yes
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 cat conftest.$ac_ext >&5
9014 ac_cv_func_krb_verify_secure=no
9015 fi
9016 rm -f conftest.$ac_objext conftest.$ac_ext
9017
9018 fi
9019 echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
9020 echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
9021         if test "$ac_cv_func_krb_verify_secure" != yes; then
9022
9023 cat >>confdefs.h <<\_ACEOF
9024 #define KRB_VERIFY_SECURE 1
9025 _ACEOF
9026
9027
9028 cat >>confdefs.h <<\_ACEOF
9029 #define KRB_VERIFY_SECURE_FAIL 2
9030 _ACEOF
9031
9032         fi
9033         echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
9034 echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
9035 if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
9036   echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038   cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 #include "confdefs.h"
9041 #include <krb.h>
9042 #ifdef F77_DUMMY_MAIN
9043 #  ifdef __cplusplus
9044      extern "C"
9045 #  endif
9046    int F77_DUMMY_MAIN() { return 1; }
9047 #endif
9048 int
9049 main ()
9050 {
9051
9052                 int x = KRB_VERIFY_NOT_SECURE
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059   (eval $ac_compile) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); } &&
9063          { ac_try='test -s conftest.$ac_objext'
9064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065   (eval $ac_try) 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); }; }; then
9069   ac_cv_func_krb_verify_not_secure=yes
9070 else
9071   echo "$as_me: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9073 ac_cv_func_krb_verify_not_secure=no
9074 fi
9075 rm -f conftest.$ac_objext conftest.$ac_ext
9076
9077 fi
9078 echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
9079 echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
9080         if test "$ac_cv_func_krb_verify_not_secure" != yes; then
9081
9082 cat >>confdefs.h <<\_ACEOF
9083 #define KRB_VERIFY_NOT_SECURE 0
9084 _ACEOF
9085
9086         fi
9087
9088
9089
9090
9091 echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
9092 echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
9093 if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
9094   echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096
9097 if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
9098         ac_save_LIBS="$LIBS"
9099         for ac_lib in "" ; do
9100                 case "$ac_lib" in
9101                 "") ;;
9102                 yes) ac_lib="" ;;
9103                 no) continue ;;
9104                 -l*) ;;
9105                 *) ac_lib="-l$ac_lib" ;;
9106                 esac
9107                 LIBS=" $ac_lib  $ac_save_LIBS"
9108                 cat >conftest.$ac_ext <<_ACEOF
9109 #line $LINENO "configure"
9110 #include "confdefs.h"
9111
9112 #ifdef F77_DUMMY_MAIN
9113 #  ifdef __cplusplus
9114      extern "C"
9115 #  endif
9116    int F77_DUMMY_MAIN() { return 1; }
9117 #endif
9118 int
9119 main ()
9120 {
9121 krb_enable_debug()
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128   (eval $ac_link) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); } &&
9132          { ac_try='test -s conftest$ac_exeext'
9133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134   (eval $ac_try) 2>&5
9135   ac_status=$?
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); }; }; then
9138   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
9139 else
9140   echo "$as_me: failed program was:" >&5
9141 cat conftest.$ac_ext >&5
9142 fi
9143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9144         done
9145         eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
9146         LIBS="$ac_save_LIBS"
9147 fi
9148
9149 fi
9150
9151
9152 eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
9153
9154 if false; then
9155
9156 for ac_func in krb_enable_debug
9157 do
9158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9159 echo "$as_me:$LINENO: checking for $ac_func" >&5
9160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9161 if eval "test \"\${$as_ac_var+set}\" = set"; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9167 /* System header to define __stub macros and hopefully few prototypes,
9168     which can conflict with char $ac_func (); below.  */
9169 #include <assert.h>
9170 /* Override any gcc2 internal prototype to avoid an error.  */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 /* We use char because int might match the return type of a gcc2
9175    builtin and then its argument prototype would still apply.  */
9176 char $ac_func ();
9177 char (*f) ();
9178
9179 #ifdef F77_DUMMY_MAIN
9180 #  ifdef __cplusplus
9181      extern "C"
9182 #  endif
9183    int F77_DUMMY_MAIN() { return 1; }
9184 #endif
9185 int
9186 main ()
9187 {
9188 /* The GNU C library defines this for functions which it implements
9189     to always fail with ENOSYS.  Some functions are actually named
9190     something starting with __ and the normal name is an alias.  */
9191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9192 choke me
9193 #else
9194 f = $ac_func;
9195 #endif
9196
9197   ;
9198   return 0;
9199 }
9200 _ACEOF
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203   (eval $ac_link) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); } &&
9207          { ac_try='test -s conftest$ac_exeext'
9208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209   (eval $ac_try) 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); }; }; then
9213   eval "$as_ac_var=yes"
9214 else
9215   echo "$as_me: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9217 eval "$as_ac_var=no"
9218 fi
9219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9220 fi
9221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9223 if test `eval echo '${'$as_ac_var'}'` = yes; then
9224   cat >>confdefs.h <<_ACEOF
9225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9226 _ACEOF
9227
9228 fi
9229 done
9230
9231 fi
9232 # krb_enable_debug
9233 eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9234 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9235 eval "LIB_krb_enable_debug=$ac_res"
9236
9237 case "$ac_res" in
9238         yes)
9239         eval "ac_cv_func_krb_enable_debug=yes"
9240         eval "LIB_krb_enable_debug="
9241         cat >>confdefs.h <<_ACEOF
9242 #define $ac_tr_func 1
9243 _ACEOF
9244
9245         echo "$as_me:$LINENO: result: yes" >&5
9246 echo "${ECHO_T}yes" >&6
9247         ;;
9248         no)
9249         eval "ac_cv_func_krb_enable_debug=no"
9250         eval "LIB_krb_enable_debug="
9251         echo "$as_me:$LINENO: result: no" >&5
9252 echo "${ECHO_T}no" >&6
9253         ;;
9254         *)
9255         eval "ac_cv_func_krb_enable_debug=yes"
9256         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9257         cat >>confdefs.h <<_ACEOF
9258 #define $ac_tr_func 1
9259 _ACEOF
9260
9261         cat >>confdefs.h <<_ACEOF
9262 #define $ac_tr_lib 1
9263 _ACEOF
9264
9265         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9266 echo "${ECHO_T}yes, in $ac_res" >&6
9267         ;;
9268 esac
9269
9270
9271 if test -n "$LIB_krb_enable_debug"; then
9272         LIBS="$LIB_krb_enable_debug $LIBS"
9273 fi
9274
9275
9276
9277
9278
9279 echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
9280 echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
9281 if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
9282   echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284
9285 if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
9286         ac_save_LIBS="$LIBS"
9287         for ac_lib in "" ; do
9288                 case "$ac_lib" in
9289                 "") ;;
9290                 yes) ac_lib="" ;;
9291                 no) continue ;;
9292                 -l*) ;;
9293                 *) ac_lib="-l$ac_lib" ;;
9294                 esac
9295                 LIBS=" $ac_lib  $ac_save_LIBS"
9296                 cat >conftest.$ac_ext <<_ACEOF
9297 #line $LINENO "configure"
9298 #include "confdefs.h"
9299
9300 #ifdef F77_DUMMY_MAIN
9301 #  ifdef __cplusplus
9302      extern "C"
9303 #  endif
9304    int F77_DUMMY_MAIN() { return 1; }
9305 #endif
9306 int
9307 main ()
9308 {
9309 krb_disable_debug()
9310   ;
9311   return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316   (eval $ac_link) 2>&5
9317   ac_status=$?
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } &&
9320          { ac_try='test -s conftest$ac_exeext'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; }; then
9326   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
9327 else
9328   echo "$as_me: failed program was:" >&5
9329 cat conftest.$ac_ext >&5
9330 fi
9331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9332         done
9333         eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
9334         LIBS="$ac_save_LIBS"
9335 fi
9336
9337 fi
9338
9339
9340 eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
9341
9342 if false; then
9343
9344 for ac_func in krb_disable_debug
9345 do
9346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347 echo "$as_me:$LINENO: checking for $ac_func" >&5
9348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9349 if eval "test \"\${$as_ac_var+set}\" = set"; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   cat >conftest.$ac_ext <<_ACEOF
9353 #line $LINENO "configure"
9354 #include "confdefs.h"
9355 /* System header to define __stub macros and hopefully few prototypes,
9356     which can conflict with char $ac_func (); below.  */
9357 #include <assert.h>
9358 /* Override any gcc2 internal prototype to avoid an error.  */
9359 #ifdef __cplusplus
9360 extern "C"
9361 #endif
9362 /* We use char because int might match the return type of a gcc2
9363    builtin and then its argument prototype would still apply.  */
9364 char $ac_func ();
9365 char (*f) ();
9366
9367 #ifdef F77_DUMMY_MAIN
9368 #  ifdef __cplusplus
9369      extern "C"
9370 #  endif
9371    int F77_DUMMY_MAIN() { return 1; }
9372 #endif
9373 int
9374 main ()
9375 {
9376 /* The GNU C library defines this for functions which it implements
9377     to always fail with ENOSYS.  Some functions are actually named
9378     something starting with __ and the normal name is an alias.  */
9379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9380 choke me
9381 #else
9382 f = $ac_func;
9383 #endif
9384
9385   ;
9386   return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391   (eval $ac_link) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); } &&
9395          { ac_try='test -s conftest$ac_exeext'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; }; then
9401   eval "$as_ac_var=yes"
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 eval "$as_ac_var=no"
9406 fi
9407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9408 fi
9409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9411 if test `eval echo '${'$as_ac_var'}'` = yes; then
9412   cat >>confdefs.h <<_ACEOF
9413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9414 _ACEOF
9415
9416 fi
9417 done
9418
9419 fi
9420 # krb_disable_debug
9421 eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9422 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9423 eval "LIB_krb_disable_debug=$ac_res"
9424
9425 case "$ac_res" in
9426         yes)
9427         eval "ac_cv_func_krb_disable_debug=yes"
9428         eval "LIB_krb_disable_debug="
9429         cat >>confdefs.h <<_ACEOF
9430 #define $ac_tr_func 1
9431 _ACEOF
9432
9433         echo "$as_me:$LINENO: result: yes" >&5
9434 echo "${ECHO_T}yes" >&6
9435         ;;
9436         no)
9437         eval "ac_cv_func_krb_disable_debug=no"
9438         eval "LIB_krb_disable_debug="
9439         echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6
9441         ;;
9442         *)
9443         eval "ac_cv_func_krb_disable_debug=yes"
9444         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9445         cat >>confdefs.h <<_ACEOF
9446 #define $ac_tr_func 1
9447 _ACEOF
9448
9449         cat >>confdefs.h <<_ACEOF
9450 #define $ac_tr_lib 1
9451 _ACEOF
9452
9453         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9454 echo "${ECHO_T}yes, in $ac_res" >&6
9455         ;;
9456 esac
9457
9458
9459 if test -n "$LIB_krb_disable_debug"; then
9460         LIBS="$LIB_krb_disable_debug $LIBS"
9461 fi
9462
9463
9464
9465
9466
9467 echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
9468 echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
9469 if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472
9473 if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
9474         ac_save_LIBS="$LIBS"
9475         for ac_lib in "" ; do
9476                 case "$ac_lib" in
9477                 "") ;;
9478                 yes) ac_lib="" ;;
9479                 no) continue ;;
9480                 -l*) ;;
9481                 *) ac_lib="-l$ac_lib" ;;
9482                 esac
9483                 LIBS=" $ac_lib  $ac_save_LIBS"
9484                 cat >conftest.$ac_ext <<_ACEOF
9485 #line $LINENO "configure"
9486 #include "confdefs.h"
9487
9488 #ifdef F77_DUMMY_MAIN
9489 #  ifdef __cplusplus
9490      extern "C"
9491 #  endif
9492    int F77_DUMMY_MAIN() { return 1; }
9493 #endif
9494 int
9495 main ()
9496 {
9497 krb_get_our_ip_for_realm()
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504   (eval $ac_link) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } &&
9508          { ac_try='test -s conftest$ac_exeext'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; }; then
9514   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 fi
9519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9520         done
9521         eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
9522         LIBS="$ac_save_LIBS"
9523 fi
9524
9525 fi
9526
9527
9528 eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
9529
9530 if false; then
9531
9532 for ac_func in krb_get_our_ip_for_realm
9533 do
9534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9535 echo "$as_me:$LINENO: checking for $ac_func" >&5
9536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9537 if eval "test \"\${$as_ac_var+set}\" = set"; then
9538   echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540   cat >conftest.$ac_ext <<_ACEOF
9541 #line $LINENO "configure"
9542 #include "confdefs.h"
9543 /* System header to define __stub macros and hopefully few prototypes,
9544     which can conflict with char $ac_func (); below.  */
9545 #include <assert.h>
9546 /* Override any gcc2 internal prototype to avoid an error.  */
9547 #ifdef __cplusplus
9548 extern "C"
9549 #endif
9550 /* We use char because int might match the return type of a gcc2
9551    builtin and then its argument prototype would still apply.  */
9552 char $ac_func ();
9553 char (*f) ();
9554
9555 #ifdef F77_DUMMY_MAIN
9556 #  ifdef __cplusplus
9557      extern "C"
9558 #  endif
9559    int F77_DUMMY_MAIN() { return 1; }
9560 #endif
9561 int
9562 main ()
9563 {
9564 /* The GNU C library defines this for functions which it implements
9565     to always fail with ENOSYS.  Some functions are actually named
9566     something starting with __ and the normal name is an alias.  */
9567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9568 choke me
9569 #else
9570 f = $ac_func;
9571 #endif
9572
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579   (eval $ac_link) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); } &&
9583          { ac_try='test -s conftest$ac_exeext'
9584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585   (eval $ac_try) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); }; }; then
9589   eval "$as_ac_var=yes"
9590 else
9591   echo "$as_me: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9593 eval "$as_ac_var=no"
9594 fi
9595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9596 fi
9597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9599 if test `eval echo '${'$as_ac_var'}'` = yes; then
9600   cat >>confdefs.h <<_ACEOF
9601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9602 _ACEOF
9603
9604 fi
9605 done
9606
9607 fi
9608 # krb_get_our_ip_for_realm
9609 eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9610 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9611 eval "LIB_krb_get_our_ip_for_realm=$ac_res"
9612
9613 case "$ac_res" in
9614         yes)
9615         eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
9616         eval "LIB_krb_get_our_ip_for_realm="
9617         cat >>confdefs.h <<_ACEOF
9618 #define $ac_tr_func 1
9619 _ACEOF
9620
9621         echo "$as_me:$LINENO: result: yes" >&5
9622 echo "${ECHO_T}yes" >&6
9623         ;;
9624         no)
9625         eval "ac_cv_func_krb_get_our_ip_for_realm=no"
9626         eval "LIB_krb_get_our_ip_for_realm="
9627         echo "$as_me:$LINENO: result: no" >&5
9628 echo "${ECHO_T}no" >&6
9629         ;;
9630         *)
9631         eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
9632         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9633         cat >>confdefs.h <<_ACEOF
9634 #define $ac_tr_func 1
9635 _ACEOF
9636
9637         cat >>confdefs.h <<_ACEOF
9638 #define $ac_tr_lib 1
9639 _ACEOF
9640
9641         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9642 echo "${ECHO_T}yes, in $ac_res" >&6
9643         ;;
9644 esac
9645
9646
9647 if test -n "$LIB_krb_get_our_ip_for_realm"; then
9648         LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
9649 fi
9650
9651
9652
9653
9654
9655 echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
9656 echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
9657 if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660
9661 if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
9662         ac_save_LIBS="$LIBS"
9663         for ac_lib in "" ; do
9664                 case "$ac_lib" in
9665                 "") ;;
9666                 yes) ac_lib="" ;;
9667                 no) continue ;;
9668                 -l*) ;;
9669                 *) ac_lib="-l$ac_lib" ;;
9670                 esac
9671                 LIBS=" $ac_lib  $ac_save_LIBS"
9672                 cat >conftest.$ac_ext <<_ACEOF
9673 #line $LINENO "configure"
9674 #include "confdefs.h"
9675
9676 #ifdef F77_DUMMY_MAIN
9677 #  ifdef __cplusplus
9678      extern "C"
9679 #  endif
9680    int F77_DUMMY_MAIN() { return 1; }
9681 #endif
9682 int
9683 main ()
9684 {
9685 krb_kdctimeofday()
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692   (eval $ac_link) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); } &&
9696          { ac_try='test -s conftest$ac_exeext'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; }; then
9702   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
9703 else
9704   echo "$as_me: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 fi
9707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9708         done
9709         eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
9710         LIBS="$ac_save_LIBS"
9711 fi
9712
9713 fi
9714
9715
9716 eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
9717
9718 if false; then
9719
9720 for ac_func in krb_kdctimeofday
9721 do
9722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9723 echo "$as_me:$LINENO: checking for $ac_func" >&5
9724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9725 if eval "test \"\${$as_ac_var+set}\" = set"; then
9726   echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728   cat >conftest.$ac_ext <<_ACEOF
9729 #line $LINENO "configure"
9730 #include "confdefs.h"
9731 /* System header to define __stub macros and hopefully few prototypes,
9732     which can conflict with char $ac_func (); below.  */
9733 #include <assert.h>
9734 /* Override any gcc2 internal prototype to avoid an error.  */
9735 #ifdef __cplusplus
9736 extern "C"
9737 #endif
9738 /* We use char because int might match the return type of a gcc2
9739    builtin and then its argument prototype would still apply.  */
9740 char $ac_func ();
9741 char (*f) ();
9742
9743 #ifdef F77_DUMMY_MAIN
9744 #  ifdef __cplusplus
9745      extern "C"
9746 #  endif
9747    int F77_DUMMY_MAIN() { return 1; }
9748 #endif
9749 int
9750 main ()
9751 {
9752 /* The GNU C library defines this for functions which it implements
9753     to always fail with ENOSYS.  Some functions are actually named
9754     something starting with __ and the normal name is an alias.  */
9755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9756 choke me
9757 #else
9758 f = $ac_func;
9759 #endif
9760
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767   (eval $ac_link) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } &&
9771          { ac_try='test -s conftest$ac_exeext'
9772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773   (eval $ac_try) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; }; then
9777   eval "$as_ac_var=yes"
9778 else
9779   echo "$as_me: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9781 eval "$as_ac_var=no"
9782 fi
9783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9784 fi
9785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9787 if test `eval echo '${'$as_ac_var'}'` = yes; then
9788   cat >>confdefs.h <<_ACEOF
9789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9790 _ACEOF
9791
9792 fi
9793 done
9794
9795 fi
9796 # krb_kdctimeofday
9797 eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9798 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9799 eval "LIB_krb_kdctimeofday=$ac_res"
9800
9801 case "$ac_res" in
9802         yes)
9803         eval "ac_cv_func_krb_kdctimeofday=yes"
9804         eval "LIB_krb_kdctimeofday="
9805         cat >>confdefs.h <<_ACEOF
9806 #define $ac_tr_func 1
9807 _ACEOF
9808
9809         echo "$as_me:$LINENO: result: yes" >&5
9810 echo "${ECHO_T}yes" >&6
9811         ;;
9812         no)
9813         eval "ac_cv_func_krb_kdctimeofday=no"
9814         eval "LIB_krb_kdctimeofday="
9815         echo "$as_me:$LINENO: result: no" >&5
9816 echo "${ECHO_T}no" >&6
9817         ;;
9818         *)
9819         eval "ac_cv_func_krb_kdctimeofday=yes"
9820         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9821         cat >>confdefs.h <<_ACEOF
9822 #define $ac_tr_func 1
9823 _ACEOF
9824
9825         cat >>confdefs.h <<_ACEOF
9826 #define $ac_tr_lib 1
9827 _ACEOF
9828
9829         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9830 echo "${ECHO_T}yes, in $ac_res" >&6
9831         ;;
9832 esac
9833
9834
9835 if test -n "$LIB_krb_kdctimeofday"; then
9836         LIBS="$LIB_krb_kdctimeofday $LIBS"
9837 fi
9838
9839
9840
9841
9842
9843
9844
9845 echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
9846 echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
9847 if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850
9851 if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
9852         ac_save_LIBS="$LIBS"
9853         for ac_lib in "" ; do
9854                 case "$ac_lib" in
9855                 "") ;;
9856                 yes) ac_lib="" ;;
9857                 no) continue ;;
9858                 -l*) ;;
9859                 *) ac_lib="-l$ac_lib" ;;
9860                 esac
9861                 LIBS=" $ac_lib  $ac_save_LIBS"
9862                 cat >conftest.$ac_ext <<_ACEOF
9863 #line $LINENO "configure"
9864 #include "confdefs.h"
9865
9866 #ifdef F77_DUMMY_MAIN
9867 #  ifdef __cplusplus
9868      extern "C"
9869 #  endif
9870    int F77_DUMMY_MAIN() { return 1; }
9871 #endif
9872 int
9873 main ()
9874 {
9875 krb_get_kdc_time_diff()
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882   (eval $ac_link) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); } &&
9886          { ac_try='test -s conftest$ac_exeext'
9887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888   (eval $ac_try) 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; }; then
9892   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9896 fi
9897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9898         done
9899         eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
9900         LIBS="$ac_save_LIBS"
9901 fi
9902
9903 fi
9904
9905
9906 eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
9907
9908 if false; then
9909
9910 for ac_func in krb_get_kdc_time_diff
9911 do
9912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9913 echo "$as_me:$LINENO: checking for $ac_func" >&5
9914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9915 if eval "test \"\${$as_ac_var+set}\" = set"; then
9916   echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918   cat >conftest.$ac_ext <<_ACEOF
9919 #line $LINENO "configure"
9920 #include "confdefs.h"
9921 /* System header to define __stub macros and hopefully few prototypes,
9922     which can conflict with char $ac_func (); below.  */
9923 #include <assert.h>
9924 /* Override any gcc2 internal prototype to avoid an error.  */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 /* We use char because int might match the return type of a gcc2
9929    builtin and then its argument prototype would still apply.  */
9930 char $ac_func ();
9931 char (*f) ();
9932
9933 #ifdef F77_DUMMY_MAIN
9934 #  ifdef __cplusplus
9935      extern "C"
9936 #  endif
9937    int F77_DUMMY_MAIN() { return 1; }
9938 #endif
9939 int
9940 main ()
9941 {
9942 /* The GNU C library defines this for functions which it implements
9943     to always fail with ENOSYS.  Some functions are actually named
9944     something starting with __ and the normal name is an alias.  */
9945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9946 choke me
9947 #else
9948 f = $ac_func;
9949 #endif
9950
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957   (eval $ac_link) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -s conftest$ac_exeext'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   eval "$as_ac_var=yes"
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9971 eval "$as_ac_var=no"
9972 fi
9973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9974 fi
9975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9977 if test `eval echo '${'$as_ac_var'}'` = yes; then
9978   cat >>confdefs.h <<_ACEOF
9979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9980 _ACEOF
9981
9982 fi
9983 done
9984
9985 fi
9986 # krb_get_kdc_time_diff
9987 eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9988 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9989 eval "LIB_krb_get_kdc_time_diff=$ac_res"
9990
9991 case "$ac_res" in
9992         yes)
9993         eval "ac_cv_func_krb_get_kdc_time_diff=yes"
9994         eval "LIB_krb_get_kdc_time_diff="
9995         cat >>confdefs.h <<_ACEOF
9996 #define $ac_tr_func 1
9997 _ACEOF
9998
9999         echo "$as_me:$LINENO: result: yes" >&5
10000 echo "${ECHO_T}yes" >&6
10001         ;;
10002         no)
10003         eval "ac_cv_func_krb_get_kdc_time_diff=no"
10004         eval "LIB_krb_get_kdc_time_diff="
10005         echo "$as_me:$LINENO: result: no" >&5
10006 echo "${ECHO_T}no" >&6
10007         ;;
10008         *)
10009         eval "ac_cv_func_krb_get_kdc_time_diff=yes"
10010         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
10011         cat >>confdefs.h <<_ACEOF
10012 #define $ac_tr_func 1
10013 _ACEOF
10014
10015         cat >>confdefs.h <<_ACEOF
10016 #define $ac_tr_lib 1
10017 _ACEOF
10018
10019         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
10020 echo "${ECHO_T}yes, in $ac_res" >&6
10021         ;;
10022 esac
10023
10024
10025 if test -n "$LIB_krb_get_kdc_time_diff"; then
10026         LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
10027 fi
10028
10029
10030
10031         echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
10032 echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
10033 if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
10034   echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036   cat >conftest.$ac_ext <<_ACEOF
10037 #line $LINENO "configure"
10038 #include "confdefs.h"
10039 #include <krb.h>
10040                         #include <prot.h>
10041 #ifdef F77_DUMMY_MAIN
10042 #  ifdef __cplusplus
10043      extern "C"
10044 #  endif
10045    int F77_DUMMY_MAIN() { return 1; }
10046 #endif
10047 int
10048 main ()
10049 {
10050
10051                 char *x = KRB_SENDAUTH_VERS
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 rm -f conftest.$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058   (eval $ac_compile) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } &&
10062          { ac_try='test -s conftest.$ac_objext'
10063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064   (eval $ac_try) 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; }; then
10068   ac_cv_func_krb_sendauth_vers=yes
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 cat conftest.$ac_ext >&5
10072 ac_cv_func_krb_sendauth_vers=no
10073 fi
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10075
10076 fi
10077 echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
10078 echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
10079         if test "$ac_cv_func_krb_sendauth_vers" != yes; then
10080
10081 cat >>confdefs.h <<\_ACEOF
10082 #define KRB_SENDAUTH_VERS "AUTHV0.1"
10083 _ACEOF
10084
10085         fi
10086         echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
10087 echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
10088 if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
10089   echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091   cat >conftest.$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10093 #include "confdefs.h"
10094 #include <krb.h>
10095                 int krb_mk_req(KTEXT a, const char *s, const char *i,
10096                                const char *r, int32_t checksum)
10097                 { return 17; }
10098 #ifdef F77_DUMMY_MAIN
10099 #  ifdef __cplusplus
10100      extern "C"
10101 #  endif
10102    int F77_DUMMY_MAIN() { return 1; }
10103 #endif
10104 int
10105 main ()
10106 {
10107
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114   (eval $ac_compile) 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } &&
10118          { ac_try='test -s conftest.$ac_objext'
10119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120   (eval $ac_try) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; }; then
10124   ac_cv_func_krb_mk_req_const=yes
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_func_krb_mk_req_const=no
10129 fi
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10131
10132 fi
10133 echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
10134 echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
10135         if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
10136
10137 cat >>confdefs.h <<\_ACEOF
10138 #define KRB_MK_REQ_CONST 1
10139 _ACEOF
10140
10141         fi
10142
10143         LIBS="$save_LIBS"
10144         CFLAGS="$save_CFLAGS"
10145         LIB_kdb="-lkdb -lkrb"
10146 fi
10147
10148
10149 if test "$with_krb4" != "no"; then
10150   KRB4_TRUE=
10151   KRB4_FALSE='#'
10152 else
10153   KRB4_TRUE='#'
10154   KRB4_FALSE=
10155 fi
10156
10157
10158
10159 if true; then
10160   KRB5_TRUE=
10161   KRB5_FALSE='#'
10162 else
10163   KRB5_TRUE='#'
10164   KRB5_FALSE=
10165 fi
10166
10167
10168
10169 if true; then
10170   do_roken_rename_TRUE=
10171   do_roken_rename_FALSE='#'
10172 else
10173   do_roken_rename_TRUE='#'
10174   do_roken_rename_FALSE=
10175 fi
10176
10177
10178
10179 cat >>confdefs.h <<\_ACEOF
10180 #define KRB5 1
10181 _ACEOF
10182
10183
10184 crypto_lib=unknown
10185
10186
10187 # Check whether --with-openssl or --without-openssl was given.
10188 if test "${with_openssl+set}" = set; then
10189   withval="$with_openssl"
10190
10191 fi;
10192
10193
10194 # Check whether --with-openssl-lib or --without-openssl-lib was given.
10195 if test "${with_openssl_lib+set}" = set; then
10196   withval="$with_openssl_lib"
10197   if test "$withval" = "yes" -o "$withval" = "no"; then
10198   { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
10199 echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
10200    { (exit 1); exit 1; }; }
10201 elif test "X$with_openssl" = "X"; then
10202   with_openssl=yes
10203 fi
10204 fi;
10205
10206
10207 # Check whether --with-openssl-include or --without-openssl-include was given.
10208 if test "${with_openssl_include+set}" = set; then
10209   withval="$with_openssl_include"
10210   if test "$withval" = "yes" -o "$withval" = "no"; then
10211   { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
10212 echo "$as_me: error: No argument for --with-openssl-include" >&2;}
10213    { (exit 1); exit 1; }; }
10214 elif test "X$with_openssl" = "X"; then
10215   with_openssl=yes
10216 fi
10217 fi;
10218
10219 case "$with_openssl" in
10220 yes)    ;;
10221 no)     ;;
10222 "")     ;;
10223 *)      if test "$with_openssl_include" = ""; then
10224                 with_openssl_include="$with_openssl/include"
10225         fi
10226         if test "$with_openssl_lib" = ""; then
10227                 with_openssl_lib="$with_openssl/lib$abilibdirext"
10228         fi
10229         ;;
10230 esac
10231
10232
10233 DIR_des=
10234
10235 echo "$as_me:$LINENO: checking for crypto library" >&5
10236 echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
10237
10238 openssl=no
10239 old_hash=no
10240
10241 if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
10242         save_CPPFLAGS="$CPPFLAGS"
10243         save_LIBS="$LIBS"
10244
10245         cdirs= clibs=
10246         for i in $LIB_krb4; do
10247                 case "$i" in
10248                 -L*) cdirs="$cdirs $i";;
10249                 -l*) clibs="$clibs $i";;
10250                 esac
10251         done
10252
10253         ires=
10254         for i in $INCLUDE_krb4; do
10255                 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
10256                 cat >conftest.$ac_ext <<_ACEOF
10257 #line $LINENO "configure"
10258 #include "confdefs.h"
10259
10260                 #undef KRB5 /* makes md4.h et al unhappy */
10261                 #ifdef HAVE_OPENSSL
10262                 #include <openssl/md4.h>
10263                 #include <openssl/md5.h>
10264                 #include <openssl/sha.h>
10265                 #include <openssl/des.h>
10266                 #include <openssl/rc4.h>
10267                 #else
10268                 #include <md4.h>
10269                 #include <md5.h>
10270                 #include <sha.h>
10271                 #include <des.h>
10272                 #include <rc4.h>
10273                 #endif
10274                 #ifdef OLD_HASH_NAMES
10275                 typedef struct md4 MD4_CTX;
10276                 #define MD4_Init(C) md4_init((C))
10277                 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10278                 #define MD4_Final(D, C) md4_finito((C), (D))
10279                 typedef struct md5 MD5_CTX;
10280                 #define MD5_Init(C) md5_init((C))
10281                 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10282                 #define MD5_Final(D, C) md5_finito((C), (D))
10283                 typedef struct sha SHA_CTX;
10284                 #define SHA1_Init(C) sha_init((C))
10285                 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10286                 #define SHA1_Final(D, C) sha_finito((C), (D))
10287                 #endif
10288
10289 #ifdef F77_DUMMY_MAIN
10290 #  ifdef __cplusplus
10291      extern "C"
10292 #  endif
10293    int F77_DUMMY_MAIN() { return 1; }
10294 #endif
10295 int
10296 main ()
10297 {
10298
10299                 void *schedule = 0;
10300                 MD4_CTX md4;
10301                 MD5_CTX md5;
10302                 SHA_CTX sha1;
10303
10304                 MD4_Init(&md4);
10305                 MD5_Init(&md5);
10306                 SHA1_Init(&sha1);
10307
10308                 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10309                 RC4(0, 0, 0, 0);
10310   ;
10311   return 0;
10312 }
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316   (eval $ac_compile) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); } &&
10320          { ac_try='test -s conftest.$ac_objext'
10321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322   (eval $ac_try) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); }; }; then
10326   openssl=yes ires="$i"; break
10327 else
10328   echo "$as_me: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10330 fi
10331 rm -f conftest.$ac_objext conftest.$ac_ext
10332                 CFLAGS="$i $save_CFLAGS"
10333                 cat >conftest.$ac_ext <<_ACEOF
10334 #line $LINENO "configure"
10335 #include "confdefs.h"
10336
10337                 #undef KRB5 /* makes md4.h et al unhappy */
10338                 #ifdef HAVE_OPENSSL
10339                 #include <openssl/md4.h>
10340                 #include <openssl/md5.h>
10341                 #include <openssl/sha.h>
10342                 #include <openssl/des.h>
10343                 #include <openssl/rc4.h>
10344                 #else
10345                 #include <md4.h>
10346                 #include <md5.h>
10347                 #include <sha.h>
10348                 #include <des.h>
10349                 #include <rc4.h>
10350                 #endif
10351                 #ifdef OLD_HASH_NAMES
10352                 typedef struct md4 MD4_CTX;
10353                 #define MD4_Init(C) md4_init((C))
10354                 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10355                 #define MD4_Final(D, C) md4_finito((C), (D))
10356                 typedef struct md5 MD5_CTX;
10357                 #define MD5_Init(C) md5_init((C))
10358                 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10359                 #define MD5_Final(D, C) md5_finito((C), (D))
10360                 typedef struct sha SHA_CTX;
10361                 #define SHA1_Init(C) sha_init((C))
10362                 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10363                 #define SHA1_Final(D, C) sha_finito((C), (D))
10364                 #endif
10365
10366 #ifdef F77_DUMMY_MAIN
10367 #  ifdef __cplusplus
10368      extern "C"
10369 #  endif
10370    int F77_DUMMY_MAIN() { return 1; }
10371 #endif
10372 int
10373 main ()
10374 {
10375
10376                 void *schedule = 0;
10377                 MD4_CTX md4;
10378                 MD5_CTX md5;
10379                 SHA_CTX sha1;
10380
10381                 MD4_Init(&md4);
10382                 MD5_Init(&md5);
10383                 SHA1_Init(&sha1);
10384
10385                 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10386                 RC4(0, 0, 0, 0);
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393   (eval $ac_compile) 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); } &&
10397          { ac_try='test -s conftest.$ac_objext'
10398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399   (eval $ac_try) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; }; then
10403   openssl=no ires="$i"; break
10404 else
10405   echo "$as_me: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10407 fi
10408 rm -f conftest.$ac_objext conftest.$ac_ext
10409                 CFLAGS="-DOLD_HASH_NAMES $i $save_CFLAGS"
10410                 cat >conftest.$ac_ext <<_ACEOF
10411 #line $LINENO "configure"
10412 #include "confdefs.h"
10413
10414                 #undef KRB5 /* makes md4.h et al unhappy */
10415                 #ifdef HAVE_OPENSSL
10416                 #include <openssl/md4.h>
10417                 #include <openssl/md5.h>
10418                 #include <openssl/sha.h>
10419                 #include <openssl/des.h>
10420                 #include <openssl/rc4.h>
10421                 #else
10422                 #include <md4.h>
10423                 #include <md5.h>
10424                 #include <sha.h>
10425                 #include <des.h>
10426                 #include <rc4.h>
10427                 #endif
10428                 #ifdef OLD_HASH_NAMES
10429                 typedef struct md4 MD4_CTX;
10430                 #define MD4_Init(C) md4_init((C))
10431                 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10432                 #define MD4_Final(D, C) md4_finito((C), (D))
10433                 typedef struct md5 MD5_CTX;
10434                 #define MD5_Init(C) md5_init((C))
10435                 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10436                 #define MD5_Final(D, C) md5_finito((C), (D))
10437                 typedef struct sha SHA_CTX;
10438                 #define SHA1_Init(C) sha_init((C))
10439                 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10440                 #define SHA1_Final(D, C) sha_finito((C), (D))
10441                 #endif
10442
10443 #ifdef F77_DUMMY_MAIN
10444 #  ifdef __cplusplus
10445      extern "C"
10446 #  endif
10447    int F77_DUMMY_MAIN() { return 1; }
10448 #endif
10449 int
10450 main ()
10451 {
10452
10453                 void *schedule = 0;
10454                 MD4_CTX md4;
10455                 MD5_CTX md5;
10456                 SHA_CTX sha1;
10457
10458                 MD4_Init(&md4);
10459                 MD5_Init(&md5);
10460                 SHA1_Init(&sha1);
10461
10462                 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10463                 RC4(0, 0, 0, 0);
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10470   (eval $ac_compile) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } &&
10474          { ac_try='test -s conftest.$ac_objext'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; }; then
10480   openssl=no ires="$i" old_hash=yes; break
10481 else
10482   echo "$as_me: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10484 fi
10485 rm -f conftest.$ac_objext conftest.$ac_ext
10486         done
10487         lres=
10488         for i in $cdirs; do
10489                 for j in $clibs; do
10490                         LIBS="$i $j $save_LIBS"
10491                         cat >conftest.$ac_ext <<_ACEOF
10492 #line $LINENO "configure"
10493 #include "confdefs.h"
10494
10495                 #undef KRB5 /* makes md4.h et al unhappy */
10496                 #ifdef HAVE_OPENSSL
10497                 #include <openssl/md4.h>
10498                 #include <openssl/md5.h>
10499                 #include <openssl/sha.h>
10500                 #include <openssl/des.h>
10501                 #include <openssl/rc4.h>
10502                 #else
10503                 #include <md4.h>
10504                 #include <md5.h>
10505                 #include <sha.h>
10506                 #include <des.h>
10507                 #include <rc4.h>
10508                 #endif
10509                 #ifdef OLD_HASH_NAMES
10510                 typedef struct md4 MD4_CTX;
10511                 #define MD4_Init(C) md4_init((C))
10512                 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10513                 #define MD4_Final(D, C) md4_finito((C), (D))
10514                 typedef struct md5 MD5_CTX;
10515                 #define MD5_Init(C) md5_init((C))
10516                 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10517                 #define MD5_Final(D, C) md5_finito((C), (D))
10518                 typedef struct sha SHA_CTX;
10519                 #define SHA1_Init(C) sha_init((C))
10520                 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10521                 #define SHA1_Final(D, C) sha_finito((C), (D))
10522                 #endif
10523
10524 #ifdef F77_DUMMY_MAIN
10525 #  ifdef __cplusplus
10526      extern "C"
10527 #  endif
10528    int F77_DUMMY_MAIN() { return 1; }
10529 #endif
10530 int
10531 main ()
10532 {
10533
10534                 void *schedule = 0;
10535                 MD4_CTX md4;
10536                 MD5_CTX md5;
10537                 SHA_CTX sha1;
10538
10539                 MD4_Init(&md4);
10540                 MD5_Init(&md5);
10541                 SHA1_Init(&sha1);
10542
10543                 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10544                 RC4(0, 0, 0, 0);
10545   ;
10546   return 0;
10547 }
10548 _ACEOF
10549 rm -f conftest.$ac_objext conftest$ac_exeext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10551   (eval $ac_link) 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } &&
10555          { ac_try='test -s conftest$ac_exeext'
10556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557   (eval $ac_try) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; }; then
10561   lres="$i $j"; break 2
10562 else
10563   echo "$as_me: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10565 fi
10566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10567                 done
10568         done
10569         CFLAGS="$save_CFLAGS"
10570         LIBS="$save_LIBS"
10571         if test "$ires" -a "$lres"; then
10572                 INCLUDE_des="$ires"
10573                 LIB_des="$lres"
10574                 crypto_lib=krb4
10575                 echo "$as_me:$LINENO: result: same as krb4" >&5
10576 echo "${ECHO_T}same as krb4" >&6
10577                 LIB_des_a='$(LIB_des)'
10578                 LIB_des_so='$(LIB_des)'
10579                 LIB_des_appl='$(LIB_des)'
10580         fi
10581 fi
10582
10583 if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
10584         save_CFLAGS="$CFLAGS"
10585         save_LIBS="$LIBS"
10586         INCLUDE_des=
10587         LIB_des=
10588         if test "$with_openssl_include" != ""; then
10589                 INCLUDE_des="-I${with_openssl}/include"
10590         fi
10591         if test "$with_openssl_lib" != ""; then
10592                 LIB_des="-L${with_openssl}/lib"
10593         fi
10594         CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
10595         LIB_des="${LIB_des} -lcrypto"
10596         LIB_des_a="$LIB_des"
10597         LIB_des_so="$LIB_des"
10598         LIB_des_appl="$LIB_des"
10599         LIBS="${LIBS} ${LIB_des}"
10600         cat >conftest.$ac_ext <<_ACEOF
10601 #line $LINENO "configure"
10602 #include "confdefs.h"
10603
10604                 #undef KRB5 /* makes md4.h et al unhappy */
10605                 #ifdef HAVE_OPENSSL
10606                 #include <openssl/md4.h>
10607                 #include <openssl/md5.h>
10608                 #include <openssl/sha.h>
10609                 #include <openssl/des.h>
10610                 #include <openssl/rc4.h>
10611                 #else
10612                 #include <md4.h>
10613                 #include <md5.h>
10614                 #include <sha.h>
10615                 #include <des.h>
10616                 #include <rc4.h>
10617                 #endif
10618                 #ifdef OLD_HASH_NAMES
10619                 typedef struct md4 MD4_CTX;
10620                 #define MD4_Init(C) md4_init((C))
10621                 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
10622                 #define MD4_Final(D, C) md4_finito((C), (D))
10623                 typedef struct md5 MD5_CTX;
10624                 #define MD5_Init(C) md5_init((C))
10625                 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
10626                 #define MD5_Final(D, C) md5_finito((C), (D))
10627                 typedef struct sha SHA_CTX;
10628                 #define SHA1_Init(C) sha_init((C))
10629                 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
10630                 #define SHA1_Final(D, C) sha_finito((C), (D))
10631                 #endif
10632
10633 #ifdef F77_DUMMY_MAIN
10634 #  ifdef __cplusplus
10635      extern "C"
10636 #  endif
10637    int F77_DUMMY_MAIN() { return 1; }
10638 #endif
10639 int
10640 main ()
10641 {
10642
10643                 void *schedule = 0;
10644                 MD4_CTX md4;
10645                 MD5_CTX md5;
10646                 SHA_CTX sha1;
10647
10648                 MD4_Init(&md4);
10649                 MD5_Init(&md5);
10650                 SHA1_Init(&sha1);
10651
10652                 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
10653                 RC4(0, 0, 0, 0);
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10660   (eval $ac_link) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -s conftest$ac_exeext'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; }; then
10670
10671                 crypto_lib=libcrypto openssl=yes
10672                 echo "$as_me:$LINENO: result: libcrypto" >&5
10673 echo "${ECHO_T}libcrypto" >&6
10674
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10678 fi
10679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10680         CFLAGS="$save_CFLAGS"
10681         LIBS="$save_LIBS"
10682 fi
10683
10684 if test "$crypto_lib" = "unknown"; then
10685
10686   DIR_des='des'
10687   LIB_des='$(top_builddir)/lib/des/libdes.la'
10688   LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
10689   LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
10690   LIB_des_appl="-ldes"
10691
10692   echo "$as_me:$LINENO: result: included libdes" >&5
10693 echo "${ECHO_T}included libdes" >&6
10694
10695 fi
10696
10697 if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
10698         { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
10699 required by Kerberos 5; to continue, you need to install a newer
10700 Kerberos 4 or configure --without-krb4" >&5
10701 echo "$as_me: error: the crypto library used by krb4 lacks features
10702 required by Kerberos 5; to continue, you need to install a newer
10703 Kerberos 4 or configure --without-krb4" >&2;}
10704    { (exit 1); exit 1; }; }
10705 fi
10706
10707 if test "$openssl" = "yes"; then
10708
10709 cat >>confdefs.h <<\_ACEOF
10710 #define HAVE_OPENSSL 1
10711 _ACEOF
10712
10713 fi
10714 if test "$old_hash" = yes; then
10715
10716 cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_OLD_HASH_NAMES 1
10718 _ACEOF
10719
10720 fi
10721
10722
10723 if test "$openssl" = yes; then
10724   HAVE_OPENSSL_TRUE=
10725   HAVE_OPENSSL_FALSE='#'
10726 else
10727   HAVE_OPENSSL_TRUE='#'
10728   HAVE_OPENSSL_FALSE=
10729 fi
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739 # Check whether --enable-dce or --disable-dce was given.
10740 if test "${enable_dce+set}" = set; then
10741   enableval="$enable_dce"
10742
10743 fi;
10744 if test "$enable_dce" = yes; then
10745
10746 cat >>confdefs.h <<\_ACEOF
10747 #define DCE 1
10748 _ACEOF
10749
10750 fi
10751
10752
10753 if test "$enable_dce" = yes; then
10754   DCE_TRUE=
10755   DCE_FALSE='#'
10756 else
10757   DCE_TRUE='#'
10758   DCE_FALSE=
10759 fi
10760
10761
10762 ## XXX quite horrible:
10763 if test -f /etc/ibmcxx.cfg; then
10764         dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
10765         dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
10766         dpagaix_ldflags=
10767 else
10768         dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
10769         dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
10770         dpagaix_ldflags="-Wl,-bI:dfspag.exp"
10771 fi
10772
10773
10774
10775
10776
10777 # Check whether --enable-berkeley-db or --disable-berkeley-db was given.
10778 if test "${enable_berkeley_db+set}" = set; then
10779   enableval="$enable_berkeley_db"
10780
10781
10782 fi;
10783
10784 have_ndbm=no
10785 db_type=unknown
10786
10787 if test "$enable_berkeley_db" != no; then
10788
10789
10790
10791
10792
10793 for ac_header in                                \
10794         db4/db.h                                \
10795         db3/db.h                                \
10796         db.h                                    \
10797         db_185.h                                \
10798
10799 do
10800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802   echo "$as_me:$LINENO: checking for $ac_header" >&5
10803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 fi
10807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10809 else
10810   # Is the header compilable?
10811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10813 cat >conftest.$ac_ext <<_ACEOF
10814 #line $LINENO "configure"
10815 #include "confdefs.h"
10816 $ac_includes_default
10817 #include <$ac_header>
10818 _ACEOF
10819 rm -f conftest.$ac_objext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10821   (eval $ac_compile) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); } &&
10825          { ac_try='test -s conftest.$ac_objext'
10826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827   (eval $ac_try) 2>&5
10828   ac_status=$?
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); }; }; then
10831   ac_header_compiler=yes
10832 else
10833   echo "$as_me: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10835 ac_header_compiler=no
10836 fi
10837 rm -f conftest.$ac_objext conftest.$ac_ext
10838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10839 echo "${ECHO_T}$ac_header_compiler" >&6
10840
10841 # Is the header present?
10842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10847 #include <$ac_header>
10848 _ACEOF
10849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10851   ac_status=$?
10852   egrep -v '^ *\+' conftest.er1 >conftest.err
10853   rm -f conftest.er1
10854   cat conftest.err >&5
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } >/dev/null; then
10857   if test -s conftest.err; then
10858     ac_cpp_err=$ac_c_preproc_warn_flag
10859   else
10860     ac_cpp_err=
10861   fi
10862 else
10863   ac_cpp_err=yes
10864 fi
10865 if test -z "$ac_cpp_err"; then
10866   ac_header_preproc=yes
10867 else
10868   echo "$as_me: failed program was:" >&5
10869   cat conftest.$ac_ext >&5
10870   ac_header_preproc=no
10871 fi
10872 rm -f conftest.err conftest.$ac_ext
10873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10874 echo "${ECHO_T}$ac_header_preproc" >&6
10875
10876 # So?  What about this header?
10877 case $ac_header_compiler:$ac_header_preproc in
10878   yes:no )
10879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10883   no:yes )
10884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10890 esac
10891 echo "$as_me:$LINENO: checking for $ac_header" >&5
10892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10894   echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896   eval "$as_ac_Header=$ac_header_preproc"
10897 fi
10898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10900
10901 fi
10902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10903   cat >>confdefs.h <<_ACEOF
10904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10905 _ACEOF
10906
10907 fi
10908
10909 done
10910
10911
10912
10913
10914
10915
10916 echo "$as_me:$LINENO: checking for db_create" >&5
10917 echo $ECHO_N "checking for db_create... $ECHO_C" >&6
10918 if test "${ac_cv_funclib_db_create+set}" = set; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921
10922 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
10923         ac_save_LIBS="$LIBS"
10924         for ac_lib in "" db4 db3 db; do
10925                 case "$ac_lib" in
10926                 "") ;;
10927                 yes) ac_lib="" ;;
10928                 no) continue ;;
10929                 -l*) ;;
10930                 *) ac_lib="-l$ac_lib" ;;
10931                 esac
10932                 LIBS=" $ac_lib  $ac_save_LIBS"
10933                 cat >conftest.$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10935 #include "confdefs.h"
10936
10937   #include <stdio.h>
10938   #ifdef HAVE_DB4_DB_H
10939   #include <db4/db.h>
10940   #elif defined(HAVE_DB3_DB_H)
10941   #include <db3/db.h>
10942   #else
10943   #include <db.h>
10944   #endif
10945
10946 #ifdef F77_DUMMY_MAIN
10947 #  ifdef __cplusplus
10948      extern "C"
10949 #  endif
10950    int F77_DUMMY_MAIN() { return 1; }
10951 #endif
10952 int
10953 main ()
10954 {
10955 db_create(NULL, NULL, 0)
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962   (eval $ac_link) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } &&
10966          { ac_try='test -s conftest$ac_exeext'
10967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968   (eval $ac_try) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); }; }; then
10972   eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
10973 else
10974   echo "$as_me: failed program was:" >&5
10975 cat conftest.$ac_ext >&5
10976 fi
10977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10978         done
10979         eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
10980         LIBS="$ac_save_LIBS"
10981 fi
10982
10983 fi
10984
10985
10986 eval "ac_res=\$ac_cv_funclib_db_create"
10987
10988 if false; then
10989
10990 for ac_func in db_create
10991 do
10992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10993 echo "$as_me:$LINENO: checking for $ac_func" >&5
10994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10995 if eval "test \"\${$as_ac_var+set}\" = set"; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   cat >conftest.$ac_ext <<_ACEOF
10999 #line $LINENO "configure"
11000 #include "confdefs.h"
11001 /* System header to define __stub macros and hopefully few prototypes,
11002     which can conflict with char $ac_func (); below.  */
11003 #include <assert.h>
11004 /* Override any gcc2 internal prototype to avoid an error.  */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 /* We use char because int might match the return type of a gcc2
11009    builtin and then its argument prototype would still apply.  */
11010 char $ac_func ();
11011 char (*f) ();
11012
11013 #ifdef F77_DUMMY_MAIN
11014 #  ifdef __cplusplus
11015      extern "C"
11016 #  endif
11017    int F77_DUMMY_MAIN() { return 1; }
11018 #endif
11019 int
11020 main ()
11021 {
11022 /* The GNU C library defines this for functions which it implements
11023     to always fail with ENOSYS.  Some functions are actually named
11024     something starting with __ and the normal name is an alias.  */
11025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11026 choke me
11027 #else
11028 f = $ac_func;
11029 #endif
11030
11031   ;
11032   return 0;
11033 }
11034 _ACEOF
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037   (eval $ac_link) 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); } &&
11041          { ac_try='test -s conftest$ac_exeext'
11042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043   (eval $ac_try) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }; }; then
11047   eval "$as_ac_var=yes"
11048 else
11049   echo "$as_me: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 eval "$as_ac_var=no"
11052 fi
11053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11054 fi
11055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11057 if test `eval echo '${'$as_ac_var'}'` = yes; then
11058   cat >>confdefs.h <<_ACEOF
11059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11060 _ACEOF
11061
11062 fi
11063 done
11064
11065 fi
11066 # db_create
11067 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11068 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11069 eval "LIB_db_create=$ac_res"
11070
11071 case "$ac_res" in
11072         yes)
11073         eval "ac_cv_func_db_create=yes"
11074         eval "LIB_db_create="
11075         cat >>confdefs.h <<_ACEOF
11076 #define $ac_tr_func 1
11077 _ACEOF
11078
11079         echo "$as_me:$LINENO: result: yes" >&5
11080 echo "${ECHO_T}yes" >&6
11081         ;;
11082         no)
11083         eval "ac_cv_func_db_create=no"
11084         eval "LIB_db_create="
11085         echo "$as_me:$LINENO: result: no" >&5
11086 echo "${ECHO_T}no" >&6
11087         ;;
11088         *)
11089         eval "ac_cv_func_db_create=yes"
11090         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11091         cat >>confdefs.h <<_ACEOF
11092 #define $ac_tr_func 1
11093 _ACEOF
11094
11095         cat >>confdefs.h <<_ACEOF
11096 #define $ac_tr_lib 1
11097 _ACEOF
11098
11099         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11100 echo "${ECHO_T}yes, in $ac_res" >&6
11101         ;;
11102 esac
11103
11104
11105
11106   if test "$ac_cv_func_db_create" = "yes"; then
11107     db_type=db3
11108     if test "$ac_cv_funclib_db_create" != "yes"; then
11109       DBLIB="$ac_cv_funclib_db_create"
11110     else
11111       DBLIB=""
11112     fi
11113
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_DB3 1
11116 _ACEOF
11117
11118   else
11119
11120
11121
11122
11123
11124 echo "$as_me:$LINENO: checking for dbopen" >&5
11125 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
11126 if test "${ac_cv_funclib_dbopen+set}" = set; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129
11130 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
11131         ac_save_LIBS="$LIBS"
11132         for ac_lib in "" db2 db; do
11133                 case "$ac_lib" in
11134                 "") ;;
11135                 yes) ac_lib="" ;;
11136                 no) continue ;;
11137                 -l*) ;;
11138                 *) ac_lib="-l$ac_lib" ;;
11139                 esac
11140                 LIBS=" $ac_lib  $ac_save_LIBS"
11141                 cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 #include "confdefs.h"
11144
11145     #include <stdio.h>
11146     #if defined(HAVE_DB2_DB_H)
11147     #include <db2/db.h>
11148     #elif defined(HAVE_DB_185_H)
11149     #include <db_185.h>
11150     #elif defined(HAVE_DB_H)
11151     #include <db.h>
11152     #else
11153     #error no db.h
11154     #endif
11155
11156 #ifdef F77_DUMMY_MAIN
11157 #  ifdef __cplusplus
11158      extern "C"
11159 #  endif
11160    int F77_DUMMY_MAIN() { return 1; }
11161 #endif
11162 int
11163 main ()
11164 {
11165 dbopen(NULL, 0, 0, 0, NULL)
11166   ;
11167   return 0;
11168 }
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172   (eval $ac_link) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } &&
11176          { ac_try='test -s conftest$ac_exeext'
11177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178   (eval $ac_try) 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); }; }; then
11182   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
11183 else
11184   echo "$as_me: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 fi
11187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11188         done
11189         eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
11190         LIBS="$ac_save_LIBS"
11191 fi
11192
11193 fi
11194
11195
11196 eval "ac_res=\$ac_cv_funclib_dbopen"
11197
11198 if false; then
11199
11200 for ac_func in dbopen
11201 do
11202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11203 echo "$as_me:$LINENO: checking for $ac_func" >&5
11204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11205 if eval "test \"\${$as_ac_var+set}\" = set"; then
11206   echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208   cat >conftest.$ac_ext <<_ACEOF
11209 #line $LINENO "configure"
11210 #include "confdefs.h"
11211 /* System header to define __stub macros and hopefully few prototypes,
11212     which can conflict with char $ac_func (); below.  */
11213 #include <assert.h>
11214 /* Override any gcc2 internal prototype to avoid an error.  */
11215 #ifdef __cplusplus
11216 extern "C"
11217 #endif
11218 /* We use char because int might match the return type of a gcc2
11219    builtin and then its argument prototype would still apply.  */
11220 char $ac_func ();
11221 char (*f) ();
11222
11223 #ifdef F77_DUMMY_MAIN
11224 #  ifdef __cplusplus
11225      extern "C"
11226 #  endif
11227    int F77_DUMMY_MAIN() { return 1; }
11228 #endif
11229 int
11230 main ()
11231 {
11232 /* The GNU C library defines this for functions which it implements
11233     to always fail with ENOSYS.  Some functions are actually named
11234     something starting with __ and the normal name is an alias.  */
11235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11236 choke me
11237 #else
11238 f = $ac_func;
11239 #endif
11240
11241   ;
11242   return 0;
11243 }
11244 _ACEOF
11245 rm -f conftest.$ac_objext conftest$ac_exeext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11247   (eval $ac_link) 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } &&
11251          { ac_try='test -s conftest$ac_exeext'
11252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253   (eval $ac_try) 2>&5
11254   ac_status=$?
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); }; }; then
11257   eval "$as_ac_var=yes"
11258 else
11259   echo "$as_me: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 eval "$as_ac_var=no"
11262 fi
11263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11264 fi
11265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11267 if test `eval echo '${'$as_ac_var'}'` = yes; then
11268   cat >>confdefs.h <<_ACEOF
11269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11270 _ACEOF
11271
11272 fi
11273 done
11274
11275 fi
11276 # dbopen
11277 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11278 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11279 eval "LIB_dbopen=$ac_res"
11280
11281 case "$ac_res" in
11282         yes)
11283         eval "ac_cv_func_dbopen=yes"
11284         eval "LIB_dbopen="
11285         cat >>confdefs.h <<_ACEOF
11286 #define $ac_tr_func 1
11287 _ACEOF
11288
11289         echo "$as_me:$LINENO: result: yes" >&5
11290 echo "${ECHO_T}yes" >&6
11291         ;;
11292         no)
11293         eval "ac_cv_func_dbopen=no"
11294         eval "LIB_dbopen="
11295         echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6
11297         ;;
11298         *)
11299         eval "ac_cv_func_dbopen=yes"
11300         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11301         cat >>confdefs.h <<_ACEOF
11302 #define $ac_tr_func 1
11303 _ACEOF
11304
11305         cat >>confdefs.h <<_ACEOF
11306 #define $ac_tr_lib 1
11307 _ACEOF
11308
11309         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11310 echo "${ECHO_T}yes, in $ac_res" >&6
11311         ;;
11312 esac
11313
11314
11315
11316     if test "$ac_cv_func_dbopen" = "yes"; then
11317       db_type=db1
11318       if test "$ac_cv_funclib_dbopen" != "yes"; then
11319         DBLIB="$ac_cv_funclib_dbopen"
11320       else
11321         DBLIB=""
11322       fi
11323
11324 cat >>confdefs.h <<\_ACEOF
11325 #define HAVE_DB1 1
11326 _ACEOF
11327
11328     fi
11329   fi
11330
11331
11332   if test "$ac_cv_func_dbm_firstkey" != yes; then
11333
11334
11335 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11336 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
11337 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340
11341 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
11342         ac_save_LIBS="$LIBS"
11343         for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
11344                 case "$ac_lib" in
11345                 "") ;;
11346                 yes) ac_lib="" ;;
11347                 no) continue ;;
11348                 -l*) ;;
11349                 *) ac_lib="-l$ac_lib" ;;
11350                 esac
11351                 LIBS=" $ac_lib  $ac_save_LIBS"
11352                 cat >conftest.$ac_ext <<_ACEOF
11353 #line $LINENO "configure"
11354 #include "confdefs.h"
11355
11356     #include <stdio.h>
11357     #define DB_DBM_HSEARCH 1
11358     #include <db.h>
11359     DBM *dbm;
11360
11361 #ifdef F77_DUMMY_MAIN
11362 #  ifdef __cplusplus
11363      extern "C"
11364 #  endif
11365    int F77_DUMMY_MAIN() { return 1; }
11366 #endif
11367 int
11368 main ()
11369 {
11370 dbm_firstkey(NULL)
11371   ;
11372   return 0;
11373 }
11374 _ACEOF
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11377   (eval $ac_link) 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); } &&
11381          { ac_try='test -s conftest$ac_exeext'
11382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383   (eval $ac_try) 2>&5
11384   ac_status=$?
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); }; }; then
11387   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
11388 else
11389   echo "$as_me: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11391 fi
11392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11393         done
11394         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
11395         LIBS="$ac_save_LIBS"
11396 fi
11397
11398 fi
11399
11400
11401 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
11402
11403 if false; then
11404
11405 for ac_func in dbm_firstkey
11406 do
11407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11410 if eval "test \"\${$as_ac_var+set}\" = set"; then
11411   echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413   cat >conftest.$ac_ext <<_ACEOF
11414 #line $LINENO "configure"
11415 #include "confdefs.h"
11416 /* System header to define __stub macros and hopefully few prototypes,
11417     which can conflict with char $ac_func (); below.  */
11418 #include <assert.h>
11419 /* Override any gcc2 internal prototype to avoid an error.  */
11420 #ifdef __cplusplus
11421 extern "C"
11422 #endif
11423 /* We use char because int might match the return type of a gcc2
11424    builtin and then its argument prototype would still apply.  */
11425 char $ac_func ();
11426 char (*f) ();
11427
11428 #ifdef F77_DUMMY_MAIN
11429 #  ifdef __cplusplus
11430      extern "C"
11431 #  endif
11432    int F77_DUMMY_MAIN() { return 1; }
11433 #endif
11434 int
11435 main ()
11436 {
11437 /* The GNU C library defines this for functions which it implements
11438     to always fail with ENOSYS.  Some functions are actually named
11439     something starting with __ and the normal name is an alias.  */
11440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11441 choke me
11442 #else
11443 f = $ac_func;
11444 #endif
11445
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11452   (eval $ac_link) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } &&
11456          { ac_try='test -s conftest$ac_exeext'
11457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458   (eval $ac_try) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; }; then
11462   eval "$as_ac_var=yes"
11463 else
11464   echo "$as_me: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11466 eval "$as_ac_var=no"
11467 fi
11468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11469 fi
11470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11472 if test `eval echo '${'$as_ac_var'}'` = yes; then
11473   cat >>confdefs.h <<_ACEOF
11474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11475 _ACEOF
11476
11477 fi
11478 done
11479
11480 fi
11481 # dbm_firstkey
11482 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11483 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11484 eval "LIB_dbm_firstkey=$ac_res"
11485
11486 case "$ac_res" in
11487         yes)
11488         eval "ac_cv_func_dbm_firstkey=yes"
11489         eval "LIB_dbm_firstkey="
11490         cat >>confdefs.h <<_ACEOF
11491 #define $ac_tr_func 1
11492 _ACEOF
11493
11494         echo "$as_me:$LINENO: result: yes" >&5
11495 echo "${ECHO_T}yes" >&6
11496         ;;
11497         no)
11498         eval "ac_cv_func_dbm_firstkey=no"
11499         eval "LIB_dbm_firstkey="
11500         echo "$as_me:$LINENO: result: no" >&5
11501 echo "${ECHO_T}no" >&6
11502         ;;
11503         *)
11504         eval "ac_cv_func_dbm_firstkey=yes"
11505         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11506         cat >>confdefs.h <<_ACEOF
11507 #define $ac_tr_func 1
11508 _ACEOF
11509
11510         cat >>confdefs.h <<_ACEOF
11511 #define $ac_tr_lib 1
11512 _ACEOF
11513
11514         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11515 echo "${ECHO_T}yes, in $ac_res" >&6
11516         ;;
11517 esac
11518
11519
11520
11521     if test "$ac_cv_func_dbm_firstkey" = "yes"; then
11522       if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
11523         LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
11524       else
11525         LIB_NDBM=""
11526       fi
11527
11528 cat >>confdefs.h <<\_ACEOF
11529 #define HAVE_DB_NDBM 1
11530 _ACEOF
11531
11532
11533 cat >>confdefs.h <<\_ACEOF
11534 #define HAVE_NEW_DB 1
11535 _ACEOF
11536
11537     else
11538       $as_unset ac_cv_func_dbm_firstkey
11539       $as_unset ac_cv_funclib_dbm_firstkey
11540     fi
11541   fi
11542
11543 fi # berkeley db
11544
11545 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
11546
11547
11548
11549 for ac_header in                                \
11550         dbm.h                                   \
11551         ndbm.h                                  \
11552
11553 do
11554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11556   echo "$as_me:$LINENO: checking for $ac_header" >&5
11557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 fi
11561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11563 else
11564   # Is the header compilable?
11565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11567 cat >conftest.$ac_ext <<_ACEOF
11568 #line $LINENO "configure"
11569 #include "confdefs.h"
11570 $ac_includes_default
11571 #include <$ac_header>
11572 _ACEOF
11573 rm -f conftest.$ac_objext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575   (eval $ac_compile) 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); } &&
11579          { ac_try='test -s conftest.$ac_objext'
11580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581   (eval $ac_try) 2>&5
11582   ac_status=$?
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); }; }; then
11585   ac_header_compiler=yes
11586 else
11587   echo "$as_me: failed program was:" >&5
11588 cat conftest.$ac_ext >&5
11589 ac_header_compiler=no
11590 fi
11591 rm -f conftest.$ac_objext conftest.$ac_ext
11592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11593 echo "${ECHO_T}$ac_header_compiler" >&6
11594
11595 # Is the header present?
11596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11598 cat >conftest.$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11600 #include "confdefs.h"
11601 #include <$ac_header>
11602 _ACEOF
11603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11605   ac_status=$?
11606   egrep -v '^ *\+' conftest.er1 >conftest.err
11607   rm -f conftest.er1
11608   cat conftest.err >&5
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } >/dev/null; then
11611   if test -s conftest.err; then
11612     ac_cpp_err=$ac_c_preproc_warn_flag
11613   else
11614     ac_cpp_err=
11615   fi
11616 else
11617   ac_cpp_err=yes
11618 fi
11619 if test -z "$ac_cpp_err"; then
11620   ac_header_preproc=yes
11621 else
11622   echo "$as_me: failed program was:" >&5
11623   cat conftest.$ac_ext >&5
11624   ac_header_preproc=no
11625 fi
11626 rm -f conftest.err conftest.$ac_ext
11627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628 echo "${ECHO_T}$ac_header_preproc" >&6
11629
11630 # So?  What about this header?
11631 case $ac_header_compiler:$ac_header_preproc in
11632   yes:no )
11633     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11637   no:yes )
11638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11640     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11644 esac
11645 echo "$as_me:$LINENO: checking for $ac_header" >&5
11646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   eval "$as_ac_Header=$ac_header_preproc"
11651 fi
11652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11654
11655 fi
11656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11657   cat >>confdefs.h <<_ACEOF
11658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11659 _ACEOF
11660
11661 fi
11662
11663 done
11664
11665
11666
11667
11668
11669 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11670 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
11671 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
11672   echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674
11675 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
11676         ac_save_LIBS="$LIBS"
11677         for ac_lib in "" ndbm; do
11678                 case "$ac_lib" in
11679                 "") ;;
11680                 yes) ac_lib="" ;;
11681                 no) continue ;;
11682                 -l*) ;;
11683                 *) ac_lib="-l$ac_lib" ;;
11684                 esac
11685                 LIBS=" $ac_lib  $ac_save_LIBS"
11686                 cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 #include "confdefs.h"
11689
11690   #include <stdio.h>
11691   #if defined(HAVE_NDBM_H)
11692   #include <ndbm.h>
11693   #elif defined(HAVE_DBM_H)
11694   #include <dbm.h>
11695   #endif
11696   DBM *dbm;
11697
11698 #ifdef F77_DUMMY_MAIN
11699 #  ifdef __cplusplus
11700      extern "C"
11701 #  endif
11702    int F77_DUMMY_MAIN() { return 1; }
11703 #endif
11704 int
11705 main ()
11706 {
11707 dbm_firstkey(NULL)
11708   ;
11709   return 0;
11710 }
11711 _ACEOF
11712 rm -f conftest.$ac_objext conftest$ac_exeext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11714   (eval $ac_link) 2>&5
11715   ac_status=$?
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -s conftest$ac_exeext'
11719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720   (eval $ac_try) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); }; }; then
11724   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
11725 else
11726   echo "$as_me: failed program was:" >&5
11727 cat conftest.$ac_ext >&5
11728 fi
11729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11730         done
11731         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
11732         LIBS="$ac_save_LIBS"
11733 fi
11734
11735 fi
11736
11737
11738 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
11739
11740 if false; then
11741
11742 for ac_func in dbm_firstkey
11743 do
11744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11745 echo "$as_me:$LINENO: checking for $ac_func" >&5
11746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11747 if eval "test \"\${$as_ac_var+set}\" = set"; then
11748   echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750   cat >conftest.$ac_ext <<_ACEOF
11751 #line $LINENO "configure"
11752 #include "confdefs.h"
11753 /* System header to define __stub macros and hopefully few prototypes,
11754     which can conflict with char $ac_func (); below.  */
11755 #include <assert.h>
11756 /* Override any gcc2 internal prototype to avoid an error.  */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 /* We use char because int might match the return type of a gcc2
11761    builtin and then its argument prototype would still apply.  */
11762 char $ac_func ();
11763 char (*f) ();
11764
11765 #ifdef F77_DUMMY_MAIN
11766 #  ifdef __cplusplus
11767      extern "C"
11768 #  endif
11769    int F77_DUMMY_MAIN() { return 1; }
11770 #endif
11771 int
11772 main ()
11773 {
11774 /* The GNU C library defines this for functions which it implements
11775     to always fail with ENOSYS.  Some functions are actually named
11776     something starting with __ and the normal name is an alias.  */
11777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11778 choke me
11779 #else
11780 f = $ac_func;
11781 #endif
11782
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789   (eval $ac_link) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } &&
11793          { ac_try='test -s conftest$ac_exeext'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; }; then
11799   eval "$as_ac_var=yes"
11800 else
11801   echo "$as_me: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 eval "$as_ac_var=no"
11804 fi
11805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11806 fi
11807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11809 if test `eval echo '${'$as_ac_var'}'` = yes; then
11810   cat >>confdefs.h <<_ACEOF
11811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812 _ACEOF
11813
11814 fi
11815 done
11816
11817 fi
11818 # dbm_firstkey
11819 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11820 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11821 eval "LIB_dbm_firstkey=$ac_res"
11822
11823 case "$ac_res" in
11824         yes)
11825         eval "ac_cv_func_dbm_firstkey=yes"
11826         eval "LIB_dbm_firstkey="
11827         cat >>confdefs.h <<_ACEOF
11828 #define $ac_tr_func 1
11829 _ACEOF
11830
11831         echo "$as_me:$LINENO: result: yes" >&5
11832 echo "${ECHO_T}yes" >&6
11833         ;;
11834         no)
11835         eval "ac_cv_func_dbm_firstkey=no"
11836         eval "LIB_dbm_firstkey="
11837         echo "$as_me:$LINENO: result: no" >&5
11838 echo "${ECHO_T}no" >&6
11839         ;;
11840         *)
11841         eval "ac_cv_func_dbm_firstkey=yes"
11842         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11843         cat >>confdefs.h <<_ACEOF
11844 #define $ac_tr_func 1
11845 _ACEOF
11846
11847         cat >>confdefs.h <<_ACEOF
11848 #define $ac_tr_lib 1
11849 _ACEOF
11850
11851         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11852 echo "${ECHO_T}yes, in $ac_res" >&6
11853         ;;
11854 esac
11855
11856
11857
11858   if test "$ac_cv_func_dbm_firstkey" = "yes"; then
11859     if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
11860       LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
11861     else
11862       LIB_NDBM=""
11863     fi
11864
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_NDBM 1
11867 _ACEOF
11868     have_ndbm=yes
11869     if test "$db_type" = "unknown"; then
11870       db_type=ndbm
11871       DBLIB="$LIB_NDBM"
11872     fi
11873   else
11874
11875     $as_unset ac_cv_func_dbm_firstkey
11876     $as_unset ac_cv_funclib_dbm_firstkey
11877
11878
11879 for ac_header in                                \
11880           gdbm/ndbm.h                           \
11881
11882 do
11883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11885   echo "$as_me:$LINENO: checking for $ac_header" >&5
11886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 fi
11890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11892 else
11893   # Is the header compilable?
11894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11896 cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 #include "confdefs.h"
11899 $ac_includes_default
11900 #include <$ac_header>
11901 _ACEOF
11902 rm -f conftest.$ac_objext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904   (eval $ac_compile) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); } &&
11908          { ac_try='test -s conftest.$ac_objext'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   ac_header_compiler=yes
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11918 ac_header_compiler=no
11919 fi
11920 rm -f conftest.$ac_objext conftest.$ac_ext
11921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11922 echo "${ECHO_T}$ac_header_compiler" >&6
11923
11924 # Is the header present?
11925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11927 cat >conftest.$ac_ext <<_ACEOF
11928 #line $LINENO "configure"
11929 #include "confdefs.h"
11930 #include <$ac_header>
11931 _ACEOF
11932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11934   ac_status=$?
11935   egrep -v '^ *\+' conftest.er1 >conftest.err
11936   rm -f conftest.er1
11937   cat conftest.err >&5
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); } >/dev/null; then
11940   if test -s conftest.err; then
11941     ac_cpp_err=$ac_c_preproc_warn_flag
11942   else
11943     ac_cpp_err=
11944   fi
11945 else
11946   ac_cpp_err=yes
11947 fi
11948 if test -z "$ac_cpp_err"; then
11949   ac_header_preproc=yes
11950 else
11951   echo "$as_me: failed program was:" >&5
11952   cat conftest.$ac_ext >&5
11953   ac_header_preproc=no
11954 fi
11955 rm -f conftest.err conftest.$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11957 echo "${ECHO_T}$ac_header_preproc" >&6
11958
11959 # So?  What about this header?
11960 case $ac_header_compiler:$ac_header_preproc in
11961   yes:no )
11962     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11966   no:yes )
11967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11969     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11973 esac
11974 echo "$as_me:$LINENO: checking for $ac_header" >&5
11975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11977   echo $ECHO_N "(cached) $ECHO_C" >&6
11978 else
11979   eval "$as_ac_Header=$ac_header_preproc"
11980 fi
11981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11983
11984 fi
11985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11986   cat >>confdefs.h <<_ACEOF
11987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11988 _ACEOF
11989
11990 fi
11991
11992 done
11993
11994
11995
11996
11997
11998 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
11999 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
12000 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003
12004 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
12005         ac_save_LIBS="$LIBS"
12006         for ac_lib in "" gdbm; do
12007                 case "$ac_lib" in
12008                 "") ;;
12009                 yes) ac_lib="" ;;
12010                 no) continue ;;
12011                 -l*) ;;
12012                 *) ac_lib="-l$ac_lib" ;;
12013                 esac
12014                 LIBS=" $ac_lib  $ac_save_LIBS"
12015                 cat >conftest.$ac_ext <<_ACEOF
12016 #line $LINENO "configure"
12017 #include "confdefs.h"
12018
12019     #include <stdio.h>
12020     #include <gdbm/ndbm.h>
12021     DBM *dbm;
12022
12023 #ifdef F77_DUMMY_MAIN
12024 #  ifdef __cplusplus
12025      extern "C"
12026 #  endif
12027    int F77_DUMMY_MAIN() { return 1; }
12028 #endif
12029 int
12030 main ()
12031 {
12032 dbm_firstkey(NULL)
12033   ;
12034   return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039   (eval $ac_link) 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); } &&
12043          { ac_try='test -s conftest$ac_exeext'
12044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045   (eval $ac_try) 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); }; }; then
12049   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
12050 else
12051   echo "$as_me: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 fi
12054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12055         done
12056         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
12057         LIBS="$ac_save_LIBS"
12058 fi
12059
12060 fi
12061
12062
12063 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
12064
12065 if false; then
12066
12067 for ac_func in dbm_firstkey
12068 do
12069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 echo "$as_me:$LINENO: checking for $ac_func" >&5
12071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_var+set}\" = set"; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 #include "confdefs.h"
12078 /* System header to define __stub macros and hopefully few prototypes,
12079     which can conflict with char $ac_func (); below.  */
12080 #include <assert.h>
12081 /* Override any gcc2 internal prototype to avoid an error.  */
12082 #ifdef __cplusplus
12083 extern "C"
12084 #endif
12085 /* We use char because int might match the return type of a gcc2
12086    builtin and then its argument prototype would still apply.  */
12087 char $ac_func ();
12088 char (*f) ();
12089
12090 #ifdef F77_DUMMY_MAIN
12091 #  ifdef __cplusplus
12092      extern "C"
12093 #  endif
12094    int F77_DUMMY_MAIN() { return 1; }
12095 #endif
12096 int
12097 main ()
12098 {
12099 /* The GNU C library defines this for functions which it implements
12100     to always fail with ENOSYS.  Some functions are actually named
12101     something starting with __ and the normal name is an alias.  */
12102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12103 choke me
12104 #else
12105 f = $ac_func;
12106 #endif
12107
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114   (eval $ac_link) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -s conftest$ac_exeext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   eval "$as_ac_var=yes"
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 eval "$as_ac_var=no"
12129 fi
12130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12131 fi
12132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12134 if test `eval echo '${'$as_ac_var'}'` = yes; then
12135   cat >>confdefs.h <<_ACEOF
12136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12137 _ACEOF
12138
12139 fi
12140 done
12141
12142 fi
12143 # dbm_firstkey
12144 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12145 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12146 eval "LIB_dbm_firstkey=$ac_res"
12147
12148 case "$ac_res" in
12149         yes)
12150         eval "ac_cv_func_dbm_firstkey=yes"
12151         eval "LIB_dbm_firstkey="
12152         cat >>confdefs.h <<_ACEOF
12153 #define $ac_tr_func 1
12154 _ACEOF
12155
12156         echo "$as_me:$LINENO: result: yes" >&5
12157 echo "${ECHO_T}yes" >&6
12158         ;;
12159         no)
12160         eval "ac_cv_func_dbm_firstkey=no"
12161         eval "LIB_dbm_firstkey="
12162         echo "$as_me:$LINENO: result: no" >&5
12163 echo "${ECHO_T}no" >&6
12164         ;;
12165         *)
12166         eval "ac_cv_func_dbm_firstkey=yes"
12167         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12168         cat >>confdefs.h <<_ACEOF
12169 #define $ac_tr_func 1
12170 _ACEOF
12171
12172         cat >>confdefs.h <<_ACEOF
12173 #define $ac_tr_lib 1
12174 _ACEOF
12175
12176         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
12177 echo "${ECHO_T}yes, in $ac_res" >&6
12178         ;;
12179 esac
12180
12181
12182
12183     if test "$ac_cv_func_dbm_firstkey" = "yes"; then
12184       if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
12185         LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
12186       else
12187         LIB_NDBM=""
12188       fi
12189
12190 cat >>confdefs.h <<\_ACEOF
12191 #define HAVE_NDBM 1
12192 _ACEOF
12193       have_ndbm=yes
12194       if test "$db_type" = "unknown"; then
12195         db_type=ndbm
12196         DBLIB="$LIB_NDBM"
12197       fi
12198     fi
12199   fi
12200
12201 fi # unknown
12202
12203 if test "$have_ndbm" = "yes"; then
12204   echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
12205 echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
12206   if test "$cross_compiling" = yes; then
12207   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12208 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12209    { (exit 1); exit 1; }; }
12210 else
12211   cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214
12215 #include <unistd.h>
12216 #include <fcntl.h>
12217 #if defined(HAVE_GDBM_NDBM_H)
12218 #include <gdbm/ndbm.h>
12219 #elif defined(HAVE_NDBM_H)
12220 #include <ndbm.h>
12221 #elif defined(HAVE_DBM_H)
12222 #include <dbm.h>
12223 #endif
12224 int main()
12225 {
12226   DBM *d;
12227
12228   d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
12229   if (d == NULL)
12230     return 1;
12231   dbm_close(d);
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237   (eval $ac_link) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242   (eval $ac_try) 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); }; }; then
12246
12247     if test -f conftest.db; then
12248       echo "$as_me:$LINENO: result: yes" >&5
12249 echo "${ECHO_T}yes" >&6
12250
12251 cat >>confdefs.h <<\_ACEOF
12252 #define HAVE_NEW_DB 1
12253 _ACEOF
12254
12255     else
12256       echo "$as_me:$LINENO: result: no" >&5
12257 echo "${ECHO_T}no" >&6
12258     fi
12259 else
12260   echo "$as_me: program exited with status $ac_status" >&5
12261 echo "$as_me: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12263 ( exit $ac_status )
12264 echo "$as_me:$LINENO: result: no" >&5
12265 echo "${ECHO_T}no" >&6
12266 fi
12267 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12268 fi
12269 fi
12270
12271
12272
12273 if test "$db_type" = db1; then
12274   HAVE_DB1_TRUE=
12275   HAVE_DB1_FALSE='#'
12276 else
12277   HAVE_DB1_TRUE='#'
12278   HAVE_DB1_FALSE=
12279 fi
12280
12281
12282 if test "$db_type" = db3; then
12283   HAVE_DB3_TRUE=
12284   HAVE_DB3_FALSE='#'
12285 else
12286   HAVE_DB3_TRUE='#'
12287   HAVE_DB3_FALSE=
12288 fi
12289
12290
12291 if test "$db_type" = ndbm; then
12292   HAVE_NDBM_TRUE=
12293   HAVE_NDBM_FALSE='#'
12294 else
12295   HAVE_NDBM_TRUE='#'
12296   HAVE_NDBM_FALSE=
12297 fi
12298
12299 z=""
12300 for i in $LDFLAGS; do
12301         case "$i" in
12302         -L*) z="$z $i";;
12303         esac
12304 done
12305 DBLIB="$z $DBLIB"
12306
12307
12308
12309
12310
12311 echo "$as_me:$LINENO: checking for inline" >&5
12312 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12313 if test "${ac_cv_c_inline+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   ac_cv_c_inline=no
12317 for ac_kw in inline __inline__ __inline; do
12318   cat >conftest.$ac_ext <<_ACEOF
12319 #line $LINENO "configure"
12320 #include "confdefs.h"
12321 #ifndef __cplusplus
12322 static $ac_kw int static_foo () {return 0; }
12323 $ac_kw int foo () {return 0; }
12324 #endif
12325
12326 _ACEOF
12327 rm -f conftest.$ac_objext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329   (eval $ac_compile) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); } &&
12333          { ac_try='test -s conftest.$ac_objext'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; }; then
12339   ac_cv_c_inline=$ac_kw; break
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 cat conftest.$ac_ext >&5
12343 fi
12344 rm -f conftest.$ac_objext conftest.$ac_ext
12345 done
12346
12347 fi
12348 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12349 echo "${ECHO_T}$ac_cv_c_inline" >&6
12350 case $ac_cv_c_inline in
12351   inline | yes) ;;
12352   no)
12353 cat >>confdefs.h <<\_ACEOF
12354 #define inline
12355 _ACEOF
12356  ;;
12357   *)  cat >>confdefs.h <<_ACEOF
12358 #define inline $ac_cv_c_inline
12359 _ACEOF
12360  ;;
12361 esac
12362
12363 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12364 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12365 if test "${ac_cv_c_const+set}" = set; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368   cat >conftest.$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12370 #include "confdefs.h"
12371
12372 #ifdef F77_DUMMY_MAIN
12373 #  ifdef __cplusplus
12374      extern "C"
12375 #  endif
12376    int F77_DUMMY_MAIN() { return 1; }
12377 #endif
12378 int
12379 main ()
12380 {
12381 /* FIXME: Include the comments suggested by Paul. */
12382 #ifndef __cplusplus
12383   /* Ultrix mips cc rejects this.  */
12384   typedef int charset[2];
12385   const charset x;
12386   /* SunOS 4.1.1 cc rejects this.  */
12387   char const *const *ccp;
12388   char **p;
12389   /* NEC SVR4.0.2 mips cc rejects this.  */
12390   struct point {int x, y;};
12391   static struct point const zero = {0,0};
12392   /* AIX XL C 1.02.0.0 rejects this.
12393      It does not let you subtract one const X* pointer from another in
12394      an arm of an if-expression whose if-part is not a constant
12395      expression */
12396   const char *g = "string";
12397   ccp = &g + (g ? g-g : 0);
12398   /* HPUX 7.0 cc rejects these. */
12399   ++ccp;
12400   p = (char**) ccp;
12401   ccp = (char const *const *) p;
12402   { /* SCO 3.2v4 cc rejects this.  */
12403     char *t;
12404     char const *s = 0 ? (char *) 0 : (char const *) 0;
12405
12406     *t++ = 0;
12407   }
12408   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12409     int x[] = {25, 17};
12410     const int *foo = &x[0];
12411     ++foo;
12412   }
12413   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12414     typedef const int *iptr;
12415     iptr p = 0;
12416     ++p;
12417   }
12418   { /* AIX XL C 1.02.0.0 rejects this saying
12419        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12420     struct s { int j; const int *ap[3]; };
12421     struct s *b; b->j = 5;
12422   }
12423   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12424     const int foo = 10;
12425   }
12426 #endif
12427
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 rm -f conftest.$ac_objext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12434   (eval $ac_compile) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); } &&
12438          { ac_try='test -s conftest.$ac_objext'
12439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440   (eval $ac_try) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; }; then
12444   ac_cv_c_const=yes
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 cat conftest.$ac_ext >&5
12448 ac_cv_c_const=no
12449 fi
12450 rm -f conftest.$ac_objext conftest.$ac_ext
12451 fi
12452 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12453 echo "${ECHO_T}$ac_cv_c_const" >&6
12454 if test $ac_cv_c_const = no; then
12455
12456 cat >>confdefs.h <<\_ACEOF
12457 #define const
12458 _ACEOF
12459
12460 fi
12461
12462 echo "$as_me:$LINENO: checking for size_t" >&5
12463 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12464 if test "${ac_cv_type_size_t+set}" = set; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467   cat >conftest.$ac_ext <<_ACEOF
12468 #line $LINENO "configure"
12469 #include "confdefs.h"
12470 $ac_includes_default
12471 #ifdef F77_DUMMY_MAIN
12472 #  ifdef __cplusplus
12473      extern "C"
12474 #  endif
12475    int F77_DUMMY_MAIN() { return 1; }
12476 #endif
12477 int
12478 main ()
12479 {
12480 if ((size_t *) 0)
12481   return 0;
12482 if (sizeof (size_t))
12483   return 0;
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490   (eval $ac_compile) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); } &&
12494          { ac_try='test -s conftest.$ac_objext'
12495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496   (eval $ac_try) 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; }; then
12500   ac_cv_type_size_t=yes
12501 else
12502   echo "$as_me: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12504 ac_cv_type_size_t=no
12505 fi
12506 rm -f conftest.$ac_objext conftest.$ac_ext
12507 fi
12508 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12509 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12510 if test $ac_cv_type_size_t = yes; then
12511   :
12512 else
12513
12514 cat >>confdefs.h <<_ACEOF
12515 #define size_t unsigned
12516 _ACEOF
12517
12518 fi
12519
12520 echo "$as_me:$LINENO: checking for pid_t" >&5
12521 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12522 if test "${ac_cv_type_pid_t+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   cat >conftest.$ac_ext <<_ACEOF
12526 #line $LINENO "configure"
12527 #include "confdefs.h"
12528 $ac_includes_default
12529 #ifdef F77_DUMMY_MAIN
12530 #  ifdef __cplusplus
12531      extern "C"
12532 #  endif
12533    int F77_DUMMY_MAIN() { return 1; }
12534 #endif
12535 int
12536 main ()
12537 {
12538 if ((pid_t *) 0)
12539   return 0;
12540 if (sizeof (pid_t))
12541   return 0;
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548   (eval $ac_compile) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); } &&
12552          { ac_try='test -s conftest.$ac_objext'
12553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554   (eval $ac_try) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; }; then
12558   ac_cv_type_pid_t=yes
12559 else
12560   echo "$as_me: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12562 ac_cv_type_pid_t=no
12563 fi
12564 rm -f conftest.$ac_objext conftest.$ac_ext
12565 fi
12566 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12567 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12568 if test $ac_cv_type_pid_t = yes; then
12569   :
12570 else
12571
12572 cat >>confdefs.h <<_ACEOF
12573 #define pid_t int
12574 _ACEOF
12575
12576 fi
12577
12578 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12579 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12580 if test "${ac_cv_type_uid_t+set}" = set; then
12581   echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583   cat >conftest.$ac_ext <<_ACEOF
12584 #line $LINENO "configure"
12585 #include "confdefs.h"
12586 #include <sys/types.h>
12587
12588 _ACEOF
12589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12590   egrep "uid_t" >/dev/null 2>&1; then
12591   ac_cv_type_uid_t=yes
12592 else
12593   ac_cv_type_uid_t=no
12594 fi
12595 rm -f conftest*
12596
12597 fi
12598 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12600 if test $ac_cv_type_uid_t = no; then
12601
12602 cat >>confdefs.h <<\_ACEOF
12603 #define uid_t int
12604 _ACEOF
12605
12606
12607 cat >>confdefs.h <<\_ACEOF
12608 #define gid_t int
12609 _ACEOF
12610
12611 fi
12612
12613
12614 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12615 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12616 if test "${ac_cv_type_signal+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   cat >conftest.$ac_ext <<_ACEOF
12620 #line $LINENO "configure"
12621 #include "confdefs.h"
12622 #include <sys/types.h>
12623 #include <signal.h>
12624 #ifdef signal
12625 # undef signal
12626 #endif
12627 #ifdef __cplusplus
12628 extern "C" void (*signal (int, void (*)(int)))(int);
12629 #else
12630 void (*signal ()) ();
12631 #endif
12632
12633 #ifdef F77_DUMMY_MAIN
12634 #  ifdef __cplusplus
12635      extern "C"
12636 #  endif
12637    int F77_DUMMY_MAIN() { return 1; }
12638 #endif
12639 int
12640 main ()
12641 {
12642 int i;
12643   ;
12644   return 0;
12645 }
12646 _ACEOF
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649   (eval $ac_compile) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); } &&
12653          { ac_try='test -s conftest.$ac_objext'
12654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655   (eval $ac_try) 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   ac_cv_type_signal=void
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 ac_cv_type_signal=int
12664 fi
12665 rm -f conftest.$ac_objext conftest.$ac_ext
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12668 echo "${ECHO_T}$ac_cv_type_signal" >&6
12669
12670 cat >>confdefs.h <<_ACEOF
12671 #define RETSIGTYPE $ac_cv_type_signal
12672 _ACEOF
12673
12674
12675 if test "$ac_cv_type_signal" = "void" ; then
12676
12677 cat >>confdefs.h <<\_ACEOF
12678 #define VOID_RETSIGTYPE 1
12679 _ACEOF
12680
12681 fi
12682
12683
12684
12685
12686 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12687 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12688 if test "${ac_cv_header_time+set}" = set; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   cat >conftest.$ac_ext <<_ACEOF
12692 #line $LINENO "configure"
12693 #include "confdefs.h"
12694 #include <sys/types.h>
12695 #include <sys/time.h>
12696 #include <time.h>
12697
12698 #ifdef F77_DUMMY_MAIN
12699 #  ifdef __cplusplus
12700      extern "C"
12701 #  endif
12702    int F77_DUMMY_MAIN() { return 1; }
12703 #endif
12704 int
12705 main ()
12706 {
12707 if ((struct tm *) 0)
12708 return 0;
12709   ;
12710   return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715   (eval $ac_compile) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } &&
12719          { ac_try='test -s conftest.$ac_objext'
12720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721   (eval $ac_try) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   ac_cv_header_time=yes
12726 else
12727   echo "$as_me: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12729 ac_cv_header_time=no
12730 fi
12731 rm -f conftest.$ac_objext conftest.$ac_ext
12732 fi
12733 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12734 echo "${ECHO_T}$ac_cv_header_time" >&6
12735 if test $ac_cv_header_time = yes; then
12736
12737 cat >>confdefs.h <<\_ACEOF
12738 #define TIME_WITH_SYS_TIME 1
12739 _ACEOF
12740
12741 fi
12742
12743
12744
12745 for ac_header in standards.h
12746 do
12747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12749   echo "$as_me:$LINENO: checking for $ac_header" >&5
12750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 fi
12754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12756 else
12757   # Is the header compilable?
12758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12760 cat >conftest.$ac_ext <<_ACEOF
12761 #line $LINENO "configure"
12762 #include "confdefs.h"
12763 $ac_includes_default
12764 #include <$ac_header>
12765 _ACEOF
12766 rm -f conftest.$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768   (eval $ac_compile) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } &&
12772          { ac_try='test -s conftest.$ac_objext'
12773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774   (eval $ac_try) 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); }; }; then
12778   ac_header_compiler=yes
12779 else
12780   echo "$as_me: failed program was:" >&5
12781 cat conftest.$ac_ext >&5
12782 ac_header_compiler=no
12783 fi
12784 rm -f conftest.$ac_objext conftest.$ac_ext
12785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6
12787
12788 # Is the header present?
12789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12791 cat >conftest.$ac_ext <<_ACEOF
12792 #line $LINENO "configure"
12793 #include "confdefs.h"
12794 #include <$ac_header>
12795 _ACEOF
12796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12798   ac_status=$?
12799   egrep -v '^ *\+' conftest.er1 >conftest.err
12800   rm -f conftest.er1
12801   cat conftest.err >&5
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); } >/dev/null; then
12804   if test -s conftest.err; then
12805     ac_cpp_err=$ac_c_preproc_warn_flag
12806   else
12807     ac_cpp_err=
12808   fi
12809 else
12810   ac_cpp_err=yes
12811 fi
12812 if test -z "$ac_cpp_err"; then
12813   ac_header_preproc=yes
12814 else
12815   echo "$as_me: failed program was:" >&5
12816   cat conftest.$ac_ext >&5
12817   ac_header_preproc=no
12818 fi
12819 rm -f conftest.err conftest.$ac_ext
12820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12821 echo "${ECHO_T}$ac_header_preproc" >&6
12822
12823 # So?  What about this header?
12824 case $ac_header_compiler:$ac_header_preproc in
12825   yes:no )
12826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12830   no:yes )
12831     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12833     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12837 esac
12838 echo "$as_me:$LINENO: checking for $ac_header" >&5
12839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12841   echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843   eval "$as_ac_Header=$ac_header_preproc"
12844 fi
12845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12847
12848 fi
12849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12850   cat >>confdefs.h <<_ACEOF
12851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12852 _ACEOF
12853
12854 fi
12855
12856 done
12857
12858 for i in netinet/ip.h netinet/tcp.h; do
12859
12860 cv=`echo "$i" | sed 'y%./+-%__p_%'`
12861
12862 echo "$as_me:$LINENO: checking for $i" >&5
12863 echo $ECHO_N "checking for $i... $ECHO_C" >&6
12864 if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   cat >conftest.$ac_ext <<_ACEOF
12868 #line $LINENO "configure"
12869 #include "confdefs.h"
12870 \
12871 #ifdef HAVE_STANDARDS_H
12872 #include <standards.h>
12873 #endif
12874 #include <$i>
12875
12876 _ACEOF
12877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12879   ac_status=$?
12880   egrep -v '^ *\+' conftest.er1 >conftest.err
12881   rm -f conftest.er1
12882   cat conftest.err >&5
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } >/dev/null; then
12885   if test -s conftest.err; then
12886     ac_cpp_err=$ac_c_preproc_warn_flag
12887   else
12888     ac_cpp_err=
12889   fi
12890 else
12891   ac_cpp_err=yes
12892 fi
12893 if test -z "$ac_cpp_err"; then
12894   eval "ac_cv_header_$cv=yes"
12895 else
12896   echo "$as_me: failed program was:" >&5
12897   cat conftest.$ac_ext >&5
12898   eval "ac_cv_header_$cv=no"
12899 fi
12900 rm -f conftest.err conftest.$ac_ext
12901 fi
12902 echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
12903 echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
12904 ac_res=`eval echo \\$ac_cv_header_$cv`
12905 if test "$ac_res" = yes; then
12906         ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12907         cat >>confdefs.h <<_ACEOF
12908 #define $ac_tr_hdr 1
12909 _ACEOF
12910
12911 fi
12912 done
12913 if false;then
12914
12915
12916 for ac_header in netinet/ip.h netinet/tcp.h
12917 do
12918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12920   echo "$as_me:$LINENO: checking for $ac_header" >&5
12921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 fi
12925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12927 else
12928   # Is the header compilable?
12929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12931 cat >conftest.$ac_ext <<_ACEOF
12932 #line $LINENO "configure"
12933 #include "confdefs.h"
12934 $ac_includes_default
12935 #include <$ac_header>
12936 _ACEOF
12937 rm -f conftest.$ac_objext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939   (eval $ac_compile) 2>&5
12940   ac_status=$?
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); } &&
12943          { ac_try='test -s conftest.$ac_objext'
12944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945   (eval $ac_try) 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); }; }; then
12949   ac_header_compiler=yes
12950 else
12951   echo "$as_me: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953 ac_header_compiler=no
12954 fi
12955 rm -f conftest.$ac_objext conftest.$ac_ext
12956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12957 echo "${ECHO_T}$ac_header_compiler" >&6
12958
12959 # Is the header present?
12960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12962 cat >conftest.$ac_ext <<_ACEOF
12963 #line $LINENO "configure"
12964 #include "confdefs.h"
12965 #include <$ac_header>
12966 _ACEOF
12967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12969   ac_status=$?
12970   egrep -v '^ *\+' conftest.er1 >conftest.err
12971   rm -f conftest.er1
12972   cat conftest.err >&5
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); } >/dev/null; then
12975   if test -s conftest.err; then
12976     ac_cpp_err=$ac_c_preproc_warn_flag
12977   else
12978     ac_cpp_err=
12979   fi
12980 else
12981   ac_cpp_err=yes
12982 fi
12983 if test -z "$ac_cpp_err"; then
12984   ac_header_preproc=yes
12985 else
12986   echo "$as_me: failed program was:" >&5
12987   cat conftest.$ac_ext >&5
12988   ac_header_preproc=no
12989 fi
12990 rm -f conftest.err conftest.$ac_ext
12991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12992 echo "${ECHO_T}$ac_header_preproc" >&6
12993
12994 # So?  What about this header?
12995 case $ac_header_compiler:$ac_header_preproc in
12996   yes:no )
12997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13001   no:yes )
13002     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13004     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13008 esac
13009 echo "$as_me:$LINENO: checking for $ac_header" >&5
13010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13012   echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014   eval "$as_ac_Header=$ac_header_preproc"
13015 fi
13016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13018
13019 fi
13020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13021   cat >>confdefs.h <<_ACEOF
13022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13023 _ACEOF
13024
13025 fi
13026
13027 done
13028
13029 fi
13030
13031
13032
13033
13034 for ac_func in getlogin setlogin
13035 do
13036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13037 echo "$as_me:$LINENO: checking for $ac_func" >&5
13038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13039 if eval "test \"\${$as_ac_var+set}\" = set"; then
13040   echo $ECHO_N "(cached) $ECHO_C" >&6
13041 else
13042   cat >conftest.$ac_ext <<_ACEOF
13043 #line $LINENO "configure"
13044 #include "confdefs.h"
13045 /* System header to define __stub macros and hopefully few prototypes,
13046     which can conflict with char $ac_func (); below.  */
13047 #include <assert.h>
13048 /* Override any gcc2 internal prototype to avoid an error.  */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 /* We use char because int might match the return type of a gcc2
13053    builtin and then its argument prototype would still apply.  */
13054 char $ac_func ();
13055 char (*f) ();
13056
13057 #ifdef F77_DUMMY_MAIN
13058 #  ifdef __cplusplus
13059      extern "C"
13060 #  endif
13061    int F77_DUMMY_MAIN() { return 1; }
13062 #endif
13063 int
13064 main ()
13065 {
13066 /* The GNU C library defines this for functions which it implements
13067     to always fail with ENOSYS.  Some functions are actually named
13068     something starting with __ and the normal name is an alias.  */
13069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13070 choke me
13071 #else
13072 f = $ac_func;
13073 #endif
13074
13075   ;
13076   return 0;
13077 }
13078 _ACEOF
13079 rm -f conftest.$ac_objext conftest$ac_exeext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13081   (eval $ac_link) 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); } &&
13085          { ac_try='test -s conftest$ac_exeext'
13086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087   (eval $ac_try) 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); }; }; then
13091   eval "$as_ac_var=yes"
13092 else
13093   echo "$as_me: failed program was:" >&5
13094 cat conftest.$ac_ext >&5
13095 eval "$as_ac_var=no"
13096 fi
13097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13098 fi
13099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13101 if test `eval echo '${'$as_ac_var'}'` = yes; then
13102   cat >>confdefs.h <<_ACEOF
13103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13104 _ACEOF
13105
13106 fi
13107 done
13108
13109 if test "$ac_cv_func_getlogin" = yes; then
13110 echo "$as_me:$LINENO: checking if getlogin is posix" >&5
13111 echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
13112 if test "${ac_cv_func_getlogin_posix+set}" = set; then
13113   echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115
13116 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
13117         ac_cv_func_getlogin_posix=no
13118 else
13119         ac_cv_func_getlogin_posix=yes
13120 fi
13121
13122 fi
13123 echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
13124 echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
13125 if test "$ac_cv_func_getlogin_posix" = yes; then
13126
13127 cat >>confdefs.h <<\_ACEOF
13128 #define POSIX_GETLOGIN 1
13129 _ACEOF
13130
13131 fi
13132 fi
13133
13134
13135
13136 for ac_header in stdlib.h unistd.h
13137 do
13138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13140   echo "$as_me:$LINENO: checking for $ac_header" >&5
13141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13143   echo $ECHO_N "(cached) $ECHO_C" >&6
13144 fi
13145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13147 else
13148   # Is the header compilable?
13149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13151 cat >conftest.$ac_ext <<_ACEOF
13152 #line $LINENO "configure"
13153 #include "confdefs.h"
13154 $ac_includes_default
13155 #include <$ac_header>
13156 _ACEOF
13157 rm -f conftest.$ac_objext
13158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13159   (eval $ac_compile) 2>&5
13160   ac_status=$?
13161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162   (exit $ac_status); } &&
13163          { ac_try='test -s conftest.$ac_objext'
13164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165   (eval $ac_try) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); }; }; then
13169   ac_header_compiler=yes
13170 else
13171   echo "$as_me: failed program was:" >&5
13172 cat conftest.$ac_ext >&5
13173 ac_header_compiler=no
13174 fi
13175 rm -f conftest.$ac_objext conftest.$ac_ext
13176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13177 echo "${ECHO_T}$ac_header_compiler" >&6
13178
13179 # Is the header present?
13180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13182 cat >conftest.$ac_ext <<_ACEOF
13183 #line $LINENO "configure"
13184 #include "confdefs.h"
13185 #include <$ac_header>
13186 _ACEOF
13187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13189   ac_status=$?
13190   egrep -v '^ *\+' conftest.er1 >conftest.err
13191   rm -f conftest.er1
13192   cat conftest.err >&5
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); } >/dev/null; then
13195   if test -s conftest.err; then
13196     ac_cpp_err=$ac_c_preproc_warn_flag
13197   else
13198     ac_cpp_err=
13199   fi
13200 else
13201   ac_cpp_err=yes
13202 fi
13203 if test -z "$ac_cpp_err"; then
13204   ac_header_preproc=yes
13205 else
13206   echo "$as_me: failed program was:" >&5
13207   cat conftest.$ac_ext >&5
13208   ac_header_preproc=no
13209 fi
13210 rm -f conftest.err conftest.$ac_ext
13211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13212 echo "${ECHO_T}$ac_header_preproc" >&6
13213
13214 # So?  What about this header?
13215 case $ac_header_compiler:$ac_header_preproc in
13216   yes:no )
13217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13221   no:yes )
13222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13224     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13228 esac
13229 echo "$as_me:$LINENO: checking for $ac_header" >&5
13230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13232   echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234   eval "$as_ac_Header=$ac_header_preproc"
13235 fi
13236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13238
13239 fi
13240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13241   cat >>confdefs.h <<_ACEOF
13242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13243 _ACEOF
13244
13245 fi
13246
13247 done
13248
13249
13250 for ac_func in getpagesize
13251 do
13252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13253 echo "$as_me:$LINENO: checking for $ac_func" >&5
13254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13255 if eval "test \"\${$as_ac_var+set}\" = set"; then
13256   echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258   cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13260 #include "confdefs.h"
13261 /* System header to define __stub macros and hopefully few prototypes,
13262     which can conflict with char $ac_func (); below.  */
13263 #include <assert.h>
13264 /* Override any gcc2 internal prototype to avoid an error.  */
13265 #ifdef __cplusplus
13266 extern "C"
13267 #endif
13268 /* We use char because int might match the return type of a gcc2
13269    builtin and then its argument prototype would still apply.  */
13270 char $ac_func ();
13271 char (*f) ();
13272
13273 #ifdef F77_DUMMY_MAIN
13274 #  ifdef __cplusplus
13275      extern "C"
13276 #  endif
13277    int F77_DUMMY_MAIN() { return 1; }
13278 #endif
13279 int
13280 main ()
13281 {
13282 /* The GNU C library defines this for functions which it implements
13283     to always fail with ENOSYS.  Some functions are actually named
13284     something starting with __ and the normal name is an alias.  */
13285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13286 choke me
13287 #else
13288 f = $ac_func;
13289 #endif
13290
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297   (eval $ac_link) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } &&
13301          { ac_try='test -s conftest$ac_exeext'
13302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303   (eval $ac_try) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   eval "$as_ac_var=yes"
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 cat conftest.$ac_ext >&5
13311 eval "$as_ac_var=no"
13312 fi
13313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13314 fi
13315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13317 if test `eval echo '${'$as_ac_var'}'` = yes; then
13318   cat >>confdefs.h <<_ACEOF
13319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13320 _ACEOF
13321
13322 fi
13323 done
13324
13325 echo "$as_me:$LINENO: checking for working mmap" >&5
13326 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13327 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13328   echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330   if test "$cross_compiling" = yes; then
13331   ac_cv_func_mmap_fixed_mapped=no
13332 else
13333   cat >conftest.$ac_ext <<_ACEOF
13334 #line $LINENO "configure"
13335 #include "confdefs.h"
13336 $ac_includes_default
13337 /* malloc might have been renamed as rpl_malloc. */
13338 #undef malloc
13339
13340 /* Thanks to Mike Haertel and Jim Avera for this test.
13341    Here is a matrix of mmap possibilities:
13342         mmap private not fixed
13343         mmap private fixed at somewhere currently unmapped
13344         mmap private fixed at somewhere already mapped
13345         mmap shared not fixed
13346         mmap shared fixed at somewhere currently unmapped
13347         mmap shared fixed at somewhere already mapped
13348    For private mappings, we should verify that changes cannot be read()
13349    back from the file, nor mmap's back from the file at a different
13350    address.  (There have been systems where private was not correctly
13351    implemented like the infamous i386 svr4.0, and systems where the
13352    VM page cache was not coherent with the file system buffer cache
13353    like early versions of FreeBSD and possibly contemporary NetBSD.)
13354    For shared mappings, we should conversely verify that changes get
13355    propagated back to all the places they're supposed to be.
13356
13357    Grep wants private fixed already mapped.
13358    The main things grep needs to know about mmap are:
13359    * does it exist and is it safe to write into the mmap'd area
13360    * how to use it (BSD variants)  */
13361
13362 #include <fcntl.h>
13363 #include <sys/mman.h>
13364
13365 #if !STDC_HEADERS && !HAVE_STDLIB_H
13366 char *malloc ();
13367 #endif
13368
13369 /* This mess was copied from the GNU getpagesize.h.  */
13370 #if !HAVE_GETPAGESIZE
13371 /* Assume that all systems that can run configure have sys/param.h.  */
13372 # if !HAVE_SYS_PARAM_H
13373 #  define HAVE_SYS_PARAM_H 1
13374 # endif
13375
13376 # ifdef _SC_PAGESIZE
13377 #  define getpagesize() sysconf(_SC_PAGESIZE)
13378 # else /* no _SC_PAGESIZE */
13379 #  if HAVE_SYS_PARAM_H
13380 #   include <sys/param.h>
13381 #   ifdef EXEC_PAGESIZE
13382 #    define getpagesize() EXEC_PAGESIZE
13383 #   else /* no EXEC_PAGESIZE */
13384 #    ifdef NBPG
13385 #     define getpagesize() NBPG * CLSIZE
13386 #     ifndef CLSIZE
13387 #      define CLSIZE 1
13388 #     endif /* no CLSIZE */
13389 #    else /* no NBPG */
13390 #     ifdef NBPC
13391 #      define getpagesize() NBPC
13392 #     else /* no NBPC */
13393 #      ifdef PAGESIZE
13394 #       define getpagesize() PAGESIZE
13395 #      endif /* PAGESIZE */
13396 #     endif /* no NBPC */
13397 #    endif /* no NBPG */
13398 #   endif /* no EXEC_PAGESIZE */
13399 #  else /* no HAVE_SYS_PARAM_H */
13400 #   define getpagesize() 8192   /* punt totally */
13401 #  endif /* no HAVE_SYS_PARAM_H */
13402 # endif /* no _SC_PAGESIZE */
13403
13404 #endif /* no HAVE_GETPAGESIZE */
13405
13406 int
13407 main ()
13408 {
13409   char *data, *data2, *data3;
13410   int i, pagesize;
13411   int fd;
13412
13413   pagesize = getpagesize ();
13414
13415   /* First, make a file with some known garbage in it. */
13416   data = (char *) malloc (pagesize);
13417   if (!data)
13418     exit (1);
13419   for (i = 0; i < pagesize; ++i)
13420     *(data + i) = rand ();
13421   umask (0);
13422   fd = creat ("conftest.mmap", 0600);
13423   if (fd < 0)
13424     exit (1);
13425   if (write (fd, data, pagesize) != pagesize)
13426     exit (1);
13427   close (fd);
13428
13429   /* Next, try to mmap the file at a fixed address which already has
13430      something else allocated at it.  If we can, also make sure that
13431      we see the same garbage.  */
13432   fd = open ("conftest.mmap", O_RDWR);
13433   if (fd < 0)
13434     exit (1);
13435   data2 = (char *) malloc (2 * pagesize);
13436   if (!data2)
13437     exit (1);
13438   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13439   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13440                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13441     exit (1);
13442   for (i = 0; i < pagesize; ++i)
13443     if (*(data + i) != *(data2 + i))
13444       exit (1);
13445
13446   /* Finally, make sure that changes to the mapped area do not
13447      percolate back to the file as seen by read().  (This is a bug on
13448      some variants of i386 svr4.0.)  */
13449   for (i = 0; i < pagesize; ++i)
13450     *(data2 + i) = *(data2 + i) + 1;
13451   data3 = (char *) malloc (pagesize);
13452   if (!data3)
13453     exit (1);
13454   if (read (fd, data3, pagesize) != pagesize)
13455     exit (1);
13456   for (i = 0; i < pagesize; ++i)
13457     if (*(data + i) != *(data3 + i))
13458       exit (1);
13459   close (fd);
13460   exit (0);
13461 }
13462 _ACEOF
13463 rm -f conftest$ac_exeext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465   (eval $ac_link) 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; }; then
13474   ac_cv_func_mmap_fixed_mapped=yes
13475 else
13476   echo "$as_me: program exited with status $ac_status" >&5
13477 echo "$as_me: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13479 ( exit $ac_status )
13480 ac_cv_func_mmap_fixed_mapped=no
13481 fi
13482 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13483 fi
13484 fi
13485 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13486 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13487 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13488
13489 cat >>confdefs.h <<\_ACEOF
13490 #define HAVE_MMAP 1
13491 _ACEOF
13492
13493 fi
13494 rm -f conftest.mmap
13495
13496
13497 echo "$as_me:$LINENO: checking if realloc if broken" >&5
13498 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
13499 if test "${ac_cv_func_realloc_broken+set}" = set; then
13500   echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502
13503 ac_cv_func_realloc_broken=no
13504 if test "$cross_compiling" = yes; then
13505   :
13506 else
13507   cat >conftest.$ac_ext <<_ACEOF
13508 #line $LINENO "configure"
13509 #include "confdefs.h"
13510
13511 #include <stddef.h>
13512 #include <stdlib.h>
13513
13514 int main()
13515 {
13516         return realloc(NULL, 17) == NULL;
13517 }
13518
13519 _ACEOF
13520 rm -f conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522   (eval $ac_link) 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527   (eval $ac_try) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; }; then
13531   :
13532 else
13533   echo "$as_me: program exited with status $ac_status" >&5
13534 echo "$as_me: failed program was:" >&5
13535 cat conftest.$ac_ext >&5
13536 ( exit $ac_status )
13537 ac_cv_func_realloc_broken=yes
13538 fi
13539 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13540 fi
13541
13542 fi
13543 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
13544 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
13545 if test "$ac_cv_func_realloc_broken" = yes ; then
13546
13547 cat >>confdefs.h <<\_ACEOF
13548 #define BROKEN_REALLOC 1
13549 _ACEOF
13550
13551 fi
13552
13553
13554
13555
13556
13557
13558
13559 DIR_roken=roken
13560 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
13561 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576 WFLAGS_NOUNUSED=""
13577 WFLAGS_NOIMPLICITINT=""
13578 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
13579   # -Wno-implicit-int for broken X11 headers
13580   # leave these out for now:
13581   #   -Wcast-align doesn't work well on alpha osf/1
13582   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
13583   #   -Wmissing-declarations -Wnested-externs
13584   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
13585   WFLAGS_NOUNUSED="-Wno-unused"
13586   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
13587 fi
13588
13589
13590
13591
13592
13593
13594
13595
13596 cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
13597 echo "$as_me:$LINENO: checking for ssize_t" >&5
13598 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13599 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
13600   echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602   cat >conftest.$ac_ext <<_ACEOF
13603 #line $LINENO "configure"
13604 #include "confdefs.h"
13605 #include <sys/types.h>
13606 #if STDC_HEADERS
13607 #include <stdlib.h>
13608 #include <stddef.h>
13609 #endif
13610 #include <unistd.h>
13611 #ifdef F77_DUMMY_MAIN
13612 #  ifdef __cplusplus
13613      extern "C"
13614 #  endif
13615    int F77_DUMMY_MAIN() { return 1; }
13616 #endif
13617 int
13618 main ()
13619 {
13620 ssize_t foo;
13621   ;
13622   return 0;
13623 }
13624 _ACEOF
13625 rm -f conftest.$ac_objext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627   (eval $ac_compile) 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); } &&
13631          { ac_try='test -s conftest.$ac_objext'
13632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633   (eval $ac_try) 2>&5
13634   ac_status=$?
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); }; }; then
13637   eval "ac_cv_type_$cv=yes"
13638 else
13639   echo "$as_me: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13641 eval "ac_cv_type_$cv=no"
13642 fi
13643 rm -f conftest.$ac_objext conftest.$ac_ext
13644 fi
13645 ac_foo=`eval echo \\$ac_cv_type_$cv`
13646 echo "$as_me:$LINENO: result: $ac_foo" >&5
13647 echo "${ECHO_T}$ac_foo" >&6
13648 if test "$ac_foo" = yes; then
13649   ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
13650 if false; then
13651         echo "$as_me:$LINENO: checking for ssize_t" >&5
13652 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13653 if test "${ac_cv_type_ssize_t+set}" = set; then
13654   echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656   cat >conftest.$ac_ext <<_ACEOF
13657 #line $LINENO "configure"
13658 #include "confdefs.h"
13659 $ac_includes_default
13660 #ifdef F77_DUMMY_MAIN
13661 #  ifdef __cplusplus
13662      extern "C"
13663 #  endif
13664    int F77_DUMMY_MAIN() { return 1; }
13665 #endif
13666 int
13667 main ()
13668 {
13669 if ((ssize_t *) 0)
13670   return 0;
13671 if (sizeof (ssize_t))
13672   return 0;
13673   ;
13674   return 0;
13675 }
13676 _ACEOF
13677 rm -f conftest.$ac_objext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13679   (eval $ac_compile) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); } &&
13683          { ac_try='test -s conftest.$ac_objext'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   ac_cv_type_ssize_t=yes
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 cat conftest.$ac_ext >&5
13693 ac_cv_type_ssize_t=no
13694 fi
13695 rm -f conftest.$ac_objext conftest.$ac_ext
13696 fi
13697 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13698 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13699 if test $ac_cv_type_ssize_t = yes; then
13700
13701 cat >>confdefs.h <<_ACEOF
13702 #define HAVE_SSIZE_T 1
13703 _ACEOF
13704
13705
13706 fi
13707
13708 fi
13709
13710 cat >>confdefs.h <<_ACEOF
13711 #define $ac_tr_hdr 1
13712 _ACEOF
13713
13714 fi
13715
13716
13717
13718
13719
13720 cv=`echo "long long" | sed 'y%./+- %__p__%'`
13721 echo "$as_me:$LINENO: checking for long long" >&5
13722 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13723 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726   cat >conftest.$ac_ext <<_ACEOF
13727 #line $LINENO "configure"
13728 #include "confdefs.h"
13729 #include <sys/types.h>
13730 #if STDC_HEADERS
13731 #include <stdlib.h>
13732 #include <stddef.h>
13733 #endif
13734
13735 #ifdef F77_DUMMY_MAIN
13736 #  ifdef __cplusplus
13737      extern "C"
13738 #  endif
13739    int F77_DUMMY_MAIN() { return 1; }
13740 #endif
13741 int
13742 main ()
13743 {
13744 long long foo;
13745   ;
13746   return 0;
13747 }
13748 _ACEOF
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751   (eval $ac_compile) 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -s conftest.$ac_objext'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; }; then
13761   eval "ac_cv_type_$cv=yes"
13762 else
13763   echo "$as_me: failed program was:" >&5
13764 cat conftest.$ac_ext >&5
13765 eval "ac_cv_type_$cv=no"
13766 fi
13767 rm -f conftest.$ac_objext conftest.$ac_ext
13768 fi
13769 ac_foo=`eval echo \\$ac_cv_type_$cv`
13770 echo "$as_me:$LINENO: result: $ac_foo" >&5
13771 echo "${ECHO_T}$ac_foo" >&6
13772 if test "$ac_foo" = yes; then
13773   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
13774 if false; then
13775         echo "$as_me:$LINENO: checking for long long" >&5
13776 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13777 if test "${ac_cv_type_long_long+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13782 #include "confdefs.h"
13783 $ac_includes_default
13784 #ifdef F77_DUMMY_MAIN
13785 #  ifdef __cplusplus
13786      extern "C"
13787 #  endif
13788    int F77_DUMMY_MAIN() { return 1; }
13789 #endif
13790 int
13791 main ()
13792 {
13793 if ((long long *) 0)
13794   return 0;
13795 if (sizeof (long long))
13796   return 0;
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803   (eval $ac_compile) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); } &&
13807          { ac_try='test -s conftest.$ac_objext'
13808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809   (eval $ac_try) 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; }; then
13813   ac_cv_type_long_long=yes
13814 else
13815   echo "$as_me: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 ac_cv_type_long_long=no
13818 fi
13819 rm -f conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13822 echo "${ECHO_T}$ac_cv_type_long_long" >&6
13823 if test $ac_cv_type_long_long = yes; then
13824
13825 cat >>confdefs.h <<_ACEOF
13826 #define HAVE_LONG_LONG 1
13827 _ACEOF
13828
13829
13830 fi
13831
13832 fi
13833
13834 cat >>confdefs.h <<_ACEOF
13835 #define $ac_tr_hdr 1
13836 _ACEOF
13837
13838 fi
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891 for ac_header in \
13892         arpa/inet.h                             \
13893         arpa/nameser.h                          \
13894         config.h                                \
13895         crypt.h                                 \
13896         dirent.h                                \
13897         errno.h                                 \
13898         err.h                                   \
13899         fcntl.h                                 \
13900         grp.h                                   \
13901         ifaddrs.h                               \
13902         net/if.h                                \
13903         netdb.h                                 \
13904         netinet/in.h                            \
13905         netinet/in6.h                           \
13906         netinet/in_systm.h                      \
13907         netinet6/in6.h                          \
13908         netinet6/in6_var.h                      \
13909         paths.h                                 \
13910         pwd.h                                   \
13911         resolv.h                                \
13912         rpcsvc/ypclnt.h                         \
13913         shadow.h                                \
13914         sys/bswap.h                             \
13915         sys/ioctl.h                             \
13916         sys/mman.h                              \
13917         sys/param.h                             \
13918         sys/proc.h                              \
13919         sys/resource.h                          \
13920         sys/socket.h                            \
13921         sys/sockio.h                            \
13922         sys/stat.h                              \
13923         sys/sysctl.h                            \
13924         sys/time.h                              \
13925         sys/tty.h                               \
13926         sys/types.h                             \
13927         sys/uio.h                               \
13928         sys/utsname.h                           \
13929         sys/wait.h                              \
13930         syslog.h                                \
13931         termios.h                               \
13932         unistd.h                                \
13933         userconf.h                              \
13934         usersec.h                               \
13935         util.h                                  \
13936         vis.h                                   \
13937
13938 do
13939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941   echo "$as_me:$LINENO: checking for $ac_header" >&5
13942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13944   echo $ECHO_N "(cached) $ECHO_C" >&6
13945 fi
13946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13948 else
13949   # Is the header compilable?
13950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13952 cat >conftest.$ac_ext <<_ACEOF
13953 #line $LINENO "configure"
13954 #include "confdefs.h"
13955 $ac_includes_default
13956 #include <$ac_header>
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960   (eval $ac_compile) 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); } &&
13964          { ac_try='test -s conftest.$ac_objext'
13965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966   (eval $ac_try) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); }; }; then
13970   ac_header_compiler=yes
13971 else
13972   echo "$as_me: failed program was:" >&5
13973 cat conftest.$ac_ext >&5
13974 ac_header_compiler=no
13975 fi
13976 rm -f conftest.$ac_objext conftest.$ac_ext
13977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13978 echo "${ECHO_T}$ac_header_compiler" >&6
13979
13980 # Is the header present?
13981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13984 #line $LINENO "configure"
13985 #include "confdefs.h"
13986 #include <$ac_header>
13987 _ACEOF
13988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13990   ac_status=$?
13991   egrep -v '^ *\+' conftest.er1 >conftest.err
13992   rm -f conftest.er1
13993   cat conftest.err >&5
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); } >/dev/null; then
13996   if test -s conftest.err; then
13997     ac_cpp_err=$ac_c_preproc_warn_flag
13998   else
13999     ac_cpp_err=
14000   fi
14001 else
14002   ac_cpp_err=yes
14003 fi
14004 if test -z "$ac_cpp_err"; then
14005   ac_header_preproc=yes
14006 else
14007   echo "$as_me: failed program was:" >&5
14008   cat conftest.$ac_ext >&5
14009   ac_header_preproc=no
14010 fi
14011 rm -f conftest.err conftest.$ac_ext
14012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013 echo "${ECHO_T}$ac_header_preproc" >&6
14014
14015 # So?  What about this header?
14016 case $ac_header_compiler:$ac_header_preproc in
14017   yes:no )
14018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14022   no:yes )
14023     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14025     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14029 esac
14030 echo "$as_me:$LINENO: checking for $ac_header" >&5
14031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   eval "$as_ac_Header=$ac_header_preproc"
14036 fi
14037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14039
14040 fi
14041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14042   cat >>confdefs.h <<_ACEOF
14043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14044 _ACEOF
14045
14046 fi
14047
14048 done
14049
14050
14051
14052
14053
14054
14055 if test "$ac_cv_header_err_h" = yes; then
14056   have_err_h_TRUE=
14057   have_err_h_FALSE='#'
14058 else
14059   have_err_h_TRUE='#'
14060   have_err_h_FALSE=
14061 fi
14062
14063
14064
14065 if test "$ac_cv_header_fnmatch_h" = yes; then
14066   have_fnmatch_h_TRUE=
14067   have_fnmatch_h_FALSE='#'
14068 else
14069   have_fnmatch_h_TRUE='#'
14070   have_fnmatch_h_FALSE=
14071 fi
14072
14073
14074
14075 if test "$ac_cv_header_ifaddrs_h" = yes; then
14076   have_ifaddrs_h_TRUE=
14077   have_ifaddrs_h_FALSE='#'
14078 else
14079   have_ifaddrs_h_TRUE='#'
14080   have_ifaddrs_h_FALSE=
14081 fi
14082
14083
14084
14085 if test "$ac_cv_header_vis_h" = yes; then
14086   have_vis_h_TRUE=
14087   have_vis_h_FALSE='#'
14088 else
14089   have_vis_h_TRUE='#'
14090   have_vis_h_FALSE=
14091 fi
14092
14093
14094
14095
14096
14097
14098
14099 echo "$as_me:$LINENO: checking for socket" >&5
14100 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14101 if test "${ac_cv_funclib_socket+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104
14105 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
14106         ac_save_LIBS="$LIBS"
14107         for ac_lib in "" socket; do
14108                 case "$ac_lib" in
14109                 "") ;;
14110                 yes) ac_lib="" ;;
14111                 no) continue ;;
14112                 -l*) ;;
14113                 *) ac_lib="-l$ac_lib" ;;
14114                 esac
14115                 LIBS=" $ac_lib  $ac_save_LIBS"
14116                 cat >conftest.$ac_ext <<_ACEOF
14117 #line $LINENO "configure"
14118 #include "confdefs.h"
14119
14120 #ifdef F77_DUMMY_MAIN
14121 #  ifdef __cplusplus
14122      extern "C"
14123 #  endif
14124    int F77_DUMMY_MAIN() { return 1; }
14125 #endif
14126 int
14127 main ()
14128 {
14129 socket()
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14136   (eval $ac_link) 2>&5
14137   ac_status=$?
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); } &&
14140          { ac_try='test -s conftest$ac_exeext'
14141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142   (eval $ac_try) 2>&5
14143   ac_status=$?
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); }; }; then
14146   eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
14147 else
14148   echo "$as_me: failed program was:" >&5
14149 cat conftest.$ac_ext >&5
14150 fi
14151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14152         done
14153         eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
14154         LIBS="$ac_save_LIBS"
14155 fi
14156
14157 fi
14158
14159
14160 eval "ac_res=\$ac_cv_funclib_socket"
14161
14162 if false; then
14163
14164 for ac_func in socket
14165 do
14166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14167 echo "$as_me:$LINENO: checking for $ac_func" >&5
14168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14169 if eval "test \"\${$as_ac_var+set}\" = set"; then
14170   echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172   cat >conftest.$ac_ext <<_ACEOF
14173 #line $LINENO "configure"
14174 #include "confdefs.h"
14175 /* System header to define __stub macros and hopefully few prototypes,
14176     which can conflict with char $ac_func (); below.  */
14177 #include <assert.h>
14178 /* Override any gcc2 internal prototype to avoid an error.  */
14179 #ifdef __cplusplus
14180 extern "C"
14181 #endif
14182 /* We use char because int might match the return type of a gcc2
14183    builtin and then its argument prototype would still apply.  */
14184 char $ac_func ();
14185 char (*f) ();
14186
14187 #ifdef F77_DUMMY_MAIN
14188 #  ifdef __cplusplus
14189      extern "C"
14190 #  endif
14191    int F77_DUMMY_MAIN() { return 1; }
14192 #endif
14193 int
14194 main ()
14195 {
14196 /* The GNU C library defines this for functions which it implements
14197     to always fail with ENOSYS.  Some functions are actually named
14198     something starting with __ and the normal name is an alias.  */
14199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14200 choke me
14201 #else
14202 f = $ac_func;
14203 #endif
14204
14205   ;
14206   return 0;
14207 }
14208 _ACEOF
14209 rm -f conftest.$ac_objext conftest$ac_exeext
14210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14211   (eval $ac_link) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); } &&
14215          { ac_try='test -s conftest$ac_exeext'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   eval "$as_ac_var=yes"
14222 else
14223   echo "$as_me: failed program was:" >&5
14224 cat conftest.$ac_ext >&5
14225 eval "$as_ac_var=no"
14226 fi
14227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14228 fi
14229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14231 if test `eval echo '${'$as_ac_var'}'` = yes; then
14232   cat >>confdefs.h <<_ACEOF
14233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14234 _ACEOF
14235
14236 fi
14237 done
14238
14239 fi
14240 # socket
14241 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14242 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14243 eval "LIB_socket=$ac_res"
14244
14245 case "$ac_res" in
14246         yes)
14247         eval "ac_cv_func_socket=yes"
14248         eval "LIB_socket="
14249         cat >>confdefs.h <<_ACEOF
14250 #define $ac_tr_func 1
14251 _ACEOF
14252
14253         echo "$as_me:$LINENO: result: yes" >&5
14254 echo "${ECHO_T}yes" >&6
14255         ;;
14256         no)
14257         eval "ac_cv_func_socket=no"
14258         eval "LIB_socket="
14259         echo "$as_me:$LINENO: result: no" >&5
14260 echo "${ECHO_T}no" >&6
14261         ;;
14262         *)
14263         eval "ac_cv_func_socket=yes"
14264         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14265         cat >>confdefs.h <<_ACEOF
14266 #define $ac_tr_func 1
14267 _ACEOF
14268
14269         cat >>confdefs.h <<_ACEOF
14270 #define $ac_tr_lib 1
14271 _ACEOF
14272
14273         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14274 echo "${ECHO_T}yes, in $ac_res" >&6
14275         ;;
14276 esac
14277
14278
14279 if test -n "$LIB_socket"; then
14280         LIBS="$LIB_socket $LIBS"
14281 fi
14282
14283
14284
14285
14286
14287 echo "$as_me:$LINENO: checking for gethostbyname" >&5
14288 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
14289 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
14290   echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292
14293 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
14294         ac_save_LIBS="$LIBS"
14295         for ac_lib in "" nsl; do
14296                 case "$ac_lib" in
14297                 "") ;;
14298                 yes) ac_lib="" ;;
14299                 no) continue ;;
14300                 -l*) ;;
14301                 *) ac_lib="-l$ac_lib" ;;
14302                 esac
14303                 LIBS=" $ac_lib  $ac_save_LIBS"
14304                 cat >conftest.$ac_ext <<_ACEOF
14305 #line $LINENO "configure"
14306 #include "confdefs.h"
14307
14308 #ifdef F77_DUMMY_MAIN
14309 #  ifdef __cplusplus
14310      extern "C"
14311 #  endif
14312    int F77_DUMMY_MAIN() { return 1; }
14313 #endif
14314 int
14315 main ()
14316 {
14317 gethostbyname()
14318   ;
14319   return 0;
14320 }
14321 _ACEOF
14322 rm -f conftest.$ac_objext conftest$ac_exeext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14324   (eval $ac_link) 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); } &&
14328          { ac_try='test -s conftest$ac_exeext'
14329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330   (eval $ac_try) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; }; then
14334   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 cat conftest.$ac_ext >&5
14338 fi
14339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14340         done
14341         eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
14342         LIBS="$ac_save_LIBS"
14343 fi
14344
14345 fi
14346
14347
14348 eval "ac_res=\$ac_cv_funclib_gethostbyname"
14349
14350 if false; then
14351
14352 for ac_func in gethostbyname
14353 do
14354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355 echo "$as_me:$LINENO: checking for $ac_func" >&5
14356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14357 if eval "test \"\${$as_ac_var+set}\" = set"; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14362 #include "confdefs.h"
14363 /* System header to define __stub macros and hopefully few prototypes,
14364     which can conflict with char $ac_func (); below.  */
14365 #include <assert.h>
14366 /* Override any gcc2 internal prototype to avoid an error.  */
14367 #ifdef __cplusplus
14368 extern "C"
14369 #endif
14370 /* We use char because int might match the return type of a gcc2
14371    builtin and then its argument prototype would still apply.  */
14372 char $ac_func ();
14373 char (*f) ();
14374
14375 #ifdef F77_DUMMY_MAIN
14376 #  ifdef __cplusplus
14377      extern "C"
14378 #  endif
14379    int F77_DUMMY_MAIN() { return 1; }
14380 #endif
14381 int
14382 main ()
14383 {
14384 /* The GNU C library defines this for functions which it implements
14385     to always fail with ENOSYS.  Some functions are actually named
14386     something starting with __ and the normal name is an alias.  */
14387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14388 choke me
14389 #else
14390 f = $ac_func;
14391 #endif
14392
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 rm -f conftest.$ac_objext conftest$ac_exeext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14399   (eval $ac_link) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -s conftest$ac_exeext'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   eval "$as_ac_var=yes"
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 eval "$as_ac_var=no"
14414 fi
14415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14416 fi
14417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14419 if test `eval echo '${'$as_ac_var'}'` = yes; then
14420   cat >>confdefs.h <<_ACEOF
14421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14422 _ACEOF
14423
14424 fi
14425 done
14426
14427 fi
14428 # gethostbyname
14429 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14430 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14431 eval "LIB_gethostbyname=$ac_res"
14432
14433 case "$ac_res" in
14434         yes)
14435         eval "ac_cv_func_gethostbyname=yes"
14436         eval "LIB_gethostbyname="
14437         cat >>confdefs.h <<_ACEOF
14438 #define $ac_tr_func 1
14439 _ACEOF
14440
14441         echo "$as_me:$LINENO: result: yes" >&5
14442 echo "${ECHO_T}yes" >&6
14443         ;;
14444         no)
14445         eval "ac_cv_func_gethostbyname=no"
14446         eval "LIB_gethostbyname="
14447         echo "$as_me:$LINENO: result: no" >&5
14448 echo "${ECHO_T}no" >&6
14449         ;;
14450         *)
14451         eval "ac_cv_func_gethostbyname=yes"
14452         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14453         cat >>confdefs.h <<_ACEOF
14454 #define $ac_tr_func 1
14455 _ACEOF
14456
14457         cat >>confdefs.h <<_ACEOF
14458 #define $ac_tr_lib 1
14459 _ACEOF
14460
14461         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14462 echo "${ECHO_T}yes, in $ac_res" >&6
14463         ;;
14464 esac
14465
14466
14467 if test -n "$LIB_gethostbyname"; then
14468         LIBS="$LIB_gethostbyname $LIBS"
14469 fi
14470
14471
14472
14473
14474
14475 echo "$as_me:$LINENO: checking for syslog" >&5
14476 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14477 if test "${ac_cv_funclib_syslog+set}" = set; then
14478   echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480
14481 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
14482         ac_save_LIBS="$LIBS"
14483         for ac_lib in "" syslog; do
14484                 case "$ac_lib" in
14485                 "") ;;
14486                 yes) ac_lib="" ;;
14487                 no) continue ;;
14488                 -l*) ;;
14489                 *) ac_lib="-l$ac_lib" ;;
14490                 esac
14491                 LIBS=" $ac_lib  $ac_save_LIBS"
14492                 cat >conftest.$ac_ext <<_ACEOF
14493 #line $LINENO "configure"
14494 #include "confdefs.h"
14495
14496 #ifdef F77_DUMMY_MAIN
14497 #  ifdef __cplusplus
14498      extern "C"
14499 #  endif
14500    int F77_DUMMY_MAIN() { return 1; }
14501 #endif
14502 int
14503 main ()
14504 {
14505 syslog()
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512   (eval $ac_link) 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); } &&
14516          { ac_try='test -s conftest$ac_exeext'
14517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518   (eval $ac_try) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); }; }; then
14522   eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
14523 else
14524   echo "$as_me: failed program was:" >&5
14525 cat conftest.$ac_ext >&5
14526 fi
14527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14528         done
14529         eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
14530         LIBS="$ac_save_LIBS"
14531 fi
14532
14533 fi
14534
14535
14536 eval "ac_res=\$ac_cv_funclib_syslog"
14537
14538 if false; then
14539
14540 for ac_func in syslog
14541 do
14542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14543 echo "$as_me:$LINENO: checking for $ac_func" >&5
14544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14545 if eval "test \"\${$as_ac_var+set}\" = set"; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14550 #include "confdefs.h"
14551 /* System header to define __stub macros and hopefully few prototypes,
14552     which can conflict with char $ac_func (); below.  */
14553 #include <assert.h>
14554 /* Override any gcc2 internal prototype to avoid an error.  */
14555 #ifdef __cplusplus
14556 extern "C"
14557 #endif
14558 /* We use char because int might match the return type of a gcc2
14559    builtin and then its argument prototype would still apply.  */
14560 char $ac_func ();
14561 char (*f) ();
14562
14563 #ifdef F77_DUMMY_MAIN
14564 #  ifdef __cplusplus
14565      extern "C"
14566 #  endif
14567    int F77_DUMMY_MAIN() { return 1; }
14568 #endif
14569 int
14570 main ()
14571 {
14572 /* The GNU C library defines this for functions which it implements
14573     to always fail with ENOSYS.  Some functions are actually named
14574     something starting with __ and the normal name is an alias.  */
14575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14576 choke me
14577 #else
14578 f = $ac_func;
14579 #endif
14580
14581   ;
14582   return 0;
14583 }
14584 _ACEOF
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14587   (eval $ac_link) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); } &&
14591          { ac_try='test -s conftest$ac_exeext'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597   eval "$as_ac_var=yes"
14598 else
14599   echo "$as_me: failed program was:" >&5
14600 cat conftest.$ac_ext >&5
14601 eval "$as_ac_var=no"
14602 fi
14603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14604 fi
14605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14607 if test `eval echo '${'$as_ac_var'}'` = yes; then
14608   cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14610 _ACEOF
14611
14612 fi
14613 done
14614
14615 fi
14616 # syslog
14617 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14618 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14619 eval "LIB_syslog=$ac_res"
14620
14621 case "$ac_res" in
14622         yes)
14623         eval "ac_cv_func_syslog=yes"
14624         eval "LIB_syslog="
14625         cat >>confdefs.h <<_ACEOF
14626 #define $ac_tr_func 1
14627 _ACEOF
14628
14629         echo "$as_me:$LINENO: result: yes" >&5
14630 echo "${ECHO_T}yes" >&6
14631         ;;
14632         no)
14633         eval "ac_cv_func_syslog=no"
14634         eval "LIB_syslog="
14635         echo "$as_me:$LINENO: result: no" >&5
14636 echo "${ECHO_T}no" >&6
14637         ;;
14638         *)
14639         eval "ac_cv_func_syslog=yes"
14640         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14641         cat >>confdefs.h <<_ACEOF
14642 #define $ac_tr_func 1
14643 _ACEOF
14644
14645         cat >>confdefs.h <<_ACEOF
14646 #define $ac_tr_lib 1
14647 _ACEOF
14648
14649         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14650 echo "${ECHO_T}yes, in $ac_res" >&6
14651         ;;
14652 esac
14653
14654
14655 if test -n "$LIB_syslog"; then
14656         LIBS="$LIB_syslog $LIBS"
14657 fi
14658
14659
14660
14661
14662 # Check whether --with-ipv6 or --without-ipv6 was given.
14663 if test "${with_ipv6+set}" = set; then
14664   withval="$with_ipv6"
14665
14666 if test "$withval" = "no"; then
14667         ac_cv_lib_ipv6=no
14668 fi
14669 fi;
14670 save_CFLAGS="${CFLAGS}"
14671 echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
14672 echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
14673 if test "${v6type+set}" = set; then
14674   echo $ECHO_N "(cached) $ECHO_C" >&6
14675 else
14676   v6type=unknown
14677 v6lib=none
14678
14679 for i in v6d toshiba kame inria zeta linux; do
14680         case $i in
14681         v6d)
14682                 cat >conftest.$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14684 #include "confdefs.h"
14685
14686 #include </usr/local/v6/include/sys/types.h>
14687 #ifdef __V6D__
14688 yes
14689 #endif
14690 _ACEOF
14691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14692   egrep "yes" >/dev/null 2>&1; then
14693   v6type=$i; v6lib=v6;
14694                         v6libdir=/usr/local/v6/lib;
14695                         CFLAGS="-I/usr/local/v6/include $CFLAGS"
14696 fi
14697 rm -f conftest*
14698
14699                 ;;
14700         toshiba)
14701                 cat >conftest.$ac_ext <<_ACEOF
14702 #line $LINENO "configure"
14703 #include "confdefs.h"
14704
14705 #include <sys/param.h>
14706 #ifdef _TOSHIBA_INET6
14707 yes
14708 #endif
14709 _ACEOF
14710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14711   egrep "yes" >/dev/null 2>&1; then
14712   v6type=$i; v6lib=inet6;
14713                         v6libdir=/usr/local/v6/lib;
14714                         CFLAGS="-DINET6 $CFLAGS"
14715 fi
14716 rm -f conftest*
14717
14718                 ;;
14719         kame)
14720                 cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14722 #include "confdefs.h"
14723
14724 #include <netinet/in.h>
14725 #ifdef __KAME__
14726 yes
14727 #endif
14728 _ACEOF
14729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14730   egrep "yes" >/dev/null 2>&1; then
14731   v6type=$i; v6lib=inet6;
14732                         v6libdir=/usr/local/v6/lib;
14733                         CFLAGS="-DINET6 $CFLAGS"
14734 fi
14735 rm -f conftest*
14736
14737                 ;;
14738         inria)
14739                 cat >conftest.$ac_ext <<_ACEOF
14740 #line $LINENO "configure"
14741 #include "confdefs.h"
14742
14743 #include <netinet/in.h>
14744 #ifdef IPV6_INRIA_VERSION
14745 yes
14746 #endif
14747 _ACEOF
14748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14749   egrep "yes" >/dev/null 2>&1; then
14750   v6type=$i; CFLAGS="-DINET6 $CFLAGS"
14751 fi
14752 rm -f conftest*
14753
14754                 ;;
14755         zeta)
14756                 cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 #include "confdefs.h"
14759
14760 #include <sys/param.h>
14761 #ifdef _ZETA_MINAMI_INET6
14762 yes
14763 #endif
14764 _ACEOF
14765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14766   egrep "yes" >/dev/null 2>&1; then
14767   v6type=$i; v6lib=inet6;
14768                         v6libdir=/usr/local/v6/lib;
14769                         CFLAGS="-DINET6 $CFLAGS"
14770 fi
14771 rm -f conftest*
14772
14773                 ;;
14774         linux)
14775                 if test -d /usr/inet6; then
14776                         v6type=$i
14777                         v6lib=inet6
14778                         v6libdir=/usr/inet6
14779                         CFLAGS="-DINET6 $CFLAGS"
14780                 fi
14781                 ;;
14782         esac
14783         if test "$v6type" != "unknown"; then
14784                 break
14785         fi
14786 done
14787
14788 if test "$v6lib" != "none"; then
14789         for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
14790                 if test -d $dir -a -f $dir/lib$v6lib.a; then
14791                         LIBS="-L$dir -l$v6lib $LIBS"
14792                         break
14793                 fi
14794         done
14795 fi
14796
14797 fi
14798 echo "$as_me:$LINENO: result: $v6type" >&5
14799 echo "${ECHO_T}$v6type" >&6
14800
14801 echo "$as_me:$LINENO: checking for IPv6" >&5
14802 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
14803 if test "${ac_cv_lib_ipv6+set}" = set; then
14804   echo $ECHO_N "(cached) $ECHO_C" >&6
14805 else
14806
14807 cat >conftest.$ac_ext <<_ACEOF
14808 #line $LINENO "configure"
14809 #include "confdefs.h"
14810
14811 #ifdef HAVE_SYS_TYPES_H
14812 #include <sys/types.h>
14813 #endif
14814 #ifdef HAVE_SYS_SOCKET_H
14815 #include <sys/socket.h>
14816 #endif
14817 #ifdef HAVE_NETINET_IN_H
14818 #include <netinet/in.h>
14819 #endif
14820 #ifdef HAVE_NETINET_IN6_H
14821 #include <netinet/in6.h>
14822 #endif
14823
14824 #ifdef F77_DUMMY_MAIN
14825 #  ifdef __cplusplus
14826      extern "C"
14827 #  endif
14828    int F77_DUMMY_MAIN() { return 1; }
14829 #endif
14830 int
14831 main ()
14832 {
14833
14834  struct sockaddr_in6 sin6;
14835  int s;
14836
14837  s = socket(AF_INET6, SOCK_DGRAM, 0);
14838
14839  sin6.sin6_family = AF_INET6;
14840  sin6.sin6_port = htons(17);
14841  sin6.sin6_addr = in6addr_any;
14842  bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
14843
14844   ;
14845   return 0;
14846 }
14847 _ACEOF
14848 rm -f conftest.$ac_objext conftest$ac_exeext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14850   (eval $ac_link) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } &&
14854          { ac_try='test -s conftest$ac_exeext'
14855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; }; then
14860   ac_cv_lib_ipv6=yes
14861 else
14862   echo "$as_me: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14864 ac_cv_lib_ipv6=no
14865 fi
14866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14867 fi
14868 echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
14869 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
14870 if test "$ac_cv_lib_ipv6" = yes; then
14871
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_IPV6 1
14874 _ACEOF
14875
14876 else
14877   CFLAGS="${save_CFLAGS}"
14878 fi
14879
14880 if test "$ac_cv_lib_ipv6" = yes; then
14881         echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
14882 echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
14883 if test "${ac_cv_var_in6addr_loopback+set}" = set; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886
14887         cat >conftest.$ac_ext <<_ACEOF
14888 #line $LINENO "configure"
14889 #include "confdefs.h"
14890
14891 #ifdef HAVE_SYS_TYPES_H
14892 #include <sys/types.h>
14893 #endif
14894 #ifdef HAVE_SYS_SOCKET_H
14895 #include <sys/socket.h>
14896 #endif
14897 #ifdef HAVE_NETINET_IN_H
14898 #include <netinet/in.h>
14899 #endif
14900 #ifdef HAVE_NETINET_IN6_H
14901 #include <netinet/in6.h>
14902 #endif
14903 #ifdef F77_DUMMY_MAIN
14904 #  ifdef __cplusplus
14905      extern "C"
14906 #  endif
14907    int F77_DUMMY_MAIN() { return 1; }
14908 #endif
14909 int
14910 main ()
14911 {
14912
14913 struct sockaddr_in6 sin6;
14914 sin6.sin6_addr = in6addr_loopback;
14915
14916   ;
14917   return 0;
14918 }
14919 _ACEOF
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922   (eval $ac_link) 2>&5
14923   ac_status=$?
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } &&
14926          { ac_try='test -s conftest$ac_exeext'
14927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928   (eval $ac_try) 2>&5
14929   ac_status=$?
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); }; }; then
14932   ac_cv_var_in6addr_loopback=yes
14933 else
14934   echo "$as_me: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 ac_cv_var_in6addr_loopback=no
14937 fi
14938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14939 fi
14940 echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
14941 echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
14942         if test "$ac_cv_var_in6addr_loopback" = yes; then
14943
14944 cat >>confdefs.h <<\_ACEOF
14945 #define HAVE_IN6ADDR_LOOPBACK 1
14946 _ACEOF
14947
14948         fi
14949 fi
14950
14951
14952
14953
14954
14955
14956 echo "$as_me:$LINENO: checking for gethostbyname2" >&5
14957 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
14958 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
14959   echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961
14962 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
14963         ac_save_LIBS="$LIBS"
14964         for ac_lib in "" inet6 ip6; do
14965                 case "$ac_lib" in
14966                 "") ;;
14967                 yes) ac_lib="" ;;
14968                 no) continue ;;
14969                 -l*) ;;
14970                 *) ac_lib="-l$ac_lib" ;;
14971                 esac
14972                 LIBS=" $ac_lib  $ac_save_LIBS"
14973                 cat >conftest.$ac_ext <<_ACEOF
14974 #line $LINENO "configure"
14975 #include "confdefs.h"
14976
14977 #ifdef F77_DUMMY_MAIN
14978 #  ifdef __cplusplus
14979      extern "C"
14980 #  endif
14981    int F77_DUMMY_MAIN() { return 1; }
14982 #endif
14983 int
14984 main ()
14985 {
14986 gethostbyname2()
14987   ;
14988   return 0;
14989 }
14990 _ACEOF
14991 rm -f conftest.$ac_objext conftest$ac_exeext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14993   (eval $ac_link) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); } &&
14997          { ac_try='test -s conftest$ac_exeext'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }; then
15003   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15007 fi
15008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15009         done
15010         eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
15011         LIBS="$ac_save_LIBS"
15012 fi
15013
15014 fi
15015
15016
15017 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
15018
15019 if false; then
15020
15021 for ac_func in gethostbyname2
15022 do
15023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15024 echo "$as_me:$LINENO: checking for $ac_func" >&5
15025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15026 if eval "test \"\${$as_ac_var+set}\" = set"; then
15027   echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029   cat >conftest.$ac_ext <<_ACEOF
15030 #line $LINENO "configure"
15031 #include "confdefs.h"
15032 /* System header to define __stub macros and hopefully few prototypes,
15033     which can conflict with char $ac_func (); below.  */
15034 #include <assert.h>
15035 /* Override any gcc2 internal prototype to avoid an error.  */
15036 #ifdef __cplusplus
15037 extern "C"
15038 #endif
15039 /* We use char because int might match the return type of a gcc2
15040    builtin and then its argument prototype would still apply.  */
15041 char $ac_func ();
15042 char (*f) ();
15043
15044 #ifdef F77_DUMMY_MAIN
15045 #  ifdef __cplusplus
15046      extern "C"
15047 #  endif
15048    int F77_DUMMY_MAIN() { return 1; }
15049 #endif
15050 int
15051 main ()
15052 {
15053 /* The GNU C library defines this for functions which it implements
15054     to always fail with ENOSYS.  Some functions are actually named
15055     something starting with __ and the normal name is an alias.  */
15056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15057 choke me
15058 #else
15059 f = $ac_func;
15060 #endif
15061
15062   ;
15063   return 0;
15064 }
15065 _ACEOF
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15068   (eval $ac_link) 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); } &&
15072          { ac_try='test -s conftest$ac_exeext'
15073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074   (eval $ac_try) 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; }; then
15078   eval "$as_ac_var=yes"
15079 else
15080   echo "$as_me: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15082 eval "$as_ac_var=no"
15083 fi
15084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15085 fi
15086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15088 if test `eval echo '${'$as_ac_var'}'` = yes; then
15089   cat >>confdefs.h <<_ACEOF
15090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15091 _ACEOF
15092
15093 fi
15094 done
15095
15096 fi
15097 # gethostbyname2
15098 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15099 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15100 eval "LIB_gethostbyname2=$ac_res"
15101
15102 case "$ac_res" in
15103         yes)
15104         eval "ac_cv_func_gethostbyname2=yes"
15105         eval "LIB_gethostbyname2="
15106         cat >>confdefs.h <<_ACEOF
15107 #define $ac_tr_func 1
15108 _ACEOF
15109
15110         echo "$as_me:$LINENO: result: yes" >&5
15111 echo "${ECHO_T}yes" >&6
15112         ;;
15113         no)
15114         eval "ac_cv_func_gethostbyname2=no"
15115         eval "LIB_gethostbyname2="
15116         echo "$as_me:$LINENO: result: no" >&5
15117 echo "${ECHO_T}no" >&6
15118         ;;
15119         *)
15120         eval "ac_cv_func_gethostbyname2=yes"
15121         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15122         cat >>confdefs.h <<_ACEOF
15123 #define $ac_tr_func 1
15124 _ACEOF
15125
15126         cat >>confdefs.h <<_ACEOF
15127 #define $ac_tr_lib 1
15128 _ACEOF
15129
15130         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15131 echo "${ECHO_T}yes, in $ac_res" >&6
15132         ;;
15133 esac
15134
15135
15136 if test -n "$LIB_gethostbyname2"; then
15137         LIBS="$LIB_gethostbyname2 $LIBS"
15138 fi
15139
15140
15141
15142
15143
15144
15145 echo "$as_me:$LINENO: checking for res_search" >&5
15146 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
15147 if test "${ac_cv_funclib_res_search+set}" = set; then
15148   echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150
15151 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
15152         ac_save_LIBS="$LIBS"
15153         for ac_lib in "" resolv; do
15154                 case "$ac_lib" in
15155                 "") ;;
15156                 yes) ac_lib="" ;;
15157                 no) continue ;;
15158                 -l*) ;;
15159                 *) ac_lib="-l$ac_lib" ;;
15160                 esac
15161                 LIBS=" $ac_lib  $ac_save_LIBS"
15162                 cat >conftest.$ac_ext <<_ACEOF
15163 #line $LINENO "configure"
15164 #include "confdefs.h"
15165
15166 #include <stdio.h>
15167 #ifdef HAVE_SYS_TYPES_H
15168 #include <sys/types.h>
15169 #endif
15170 #ifdef HAVE_NETINET_IN_H
15171 #include <netinet/in.h>
15172 #endif
15173 #ifdef HAVE_ARPA_NAMESER_H
15174 #include <arpa/nameser.h>
15175 #endif
15176 #ifdef HAVE_RESOLV_H
15177 #include <resolv.h>
15178 #endif
15179
15180 #ifdef F77_DUMMY_MAIN
15181 #  ifdef __cplusplus
15182      extern "C"
15183 #  endif
15184    int F77_DUMMY_MAIN() { return 1; }
15185 #endif
15186 int
15187 main ()
15188 {
15189 res_search(0,0,0,0,0)
15190   ;
15191   return 0;
15192 }
15193 _ACEOF
15194 rm -f conftest.$ac_objext conftest$ac_exeext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15196   (eval $ac_link) 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } &&
15200          { ac_try='test -s conftest$ac_exeext'
15201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202   (eval $ac_try) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; }; then
15206   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
15207 else
15208   echo "$as_me: failed program was:" >&5
15209 cat conftest.$ac_ext >&5
15210 fi
15211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15212         done
15213         eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
15214         LIBS="$ac_save_LIBS"
15215 fi
15216
15217 fi
15218
15219
15220 eval "ac_res=\$ac_cv_funclib_res_search"
15221
15222 if false; then
15223
15224 for ac_func in res_search
15225 do
15226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15227 echo "$as_me:$LINENO: checking for $ac_func" >&5
15228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15229 if eval "test \"\${$as_ac_var+set}\" = set"; then
15230   echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232   cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15234 #include "confdefs.h"
15235 /* System header to define __stub macros and hopefully few prototypes,
15236     which can conflict with char $ac_func (); below.  */
15237 #include <assert.h>
15238 /* Override any gcc2 internal prototype to avoid an error.  */
15239 #ifdef __cplusplus
15240 extern "C"
15241 #endif
15242 /* We use char because int might match the return type of a gcc2
15243    builtin and then its argument prototype would still apply.  */
15244 char $ac_func ();
15245 char (*f) ();
15246
15247 #ifdef F77_DUMMY_MAIN
15248 #  ifdef __cplusplus
15249      extern "C"
15250 #  endif
15251    int F77_DUMMY_MAIN() { return 1; }
15252 #endif
15253 int
15254 main ()
15255 {
15256 /* The GNU C library defines this for functions which it implements
15257     to always fail with ENOSYS.  Some functions are actually named
15258     something starting with __ and the normal name is an alias.  */
15259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15260 choke me
15261 #else
15262 f = $ac_func;
15263 #endif
15264
15265   ;
15266   return 0;
15267 }
15268 _ACEOF
15269 rm -f conftest.$ac_objext conftest$ac_exeext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15271   (eval $ac_link) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } &&
15275          { ac_try='test -s conftest$ac_exeext'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281   eval "$as_ac_var=yes"
15282 else
15283   echo "$as_me: failed program was:" >&5
15284 cat conftest.$ac_ext >&5
15285 eval "$as_ac_var=no"
15286 fi
15287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15288 fi
15289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15291 if test `eval echo '${'$as_ac_var'}'` = yes; then
15292   cat >>confdefs.h <<_ACEOF
15293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15294 _ACEOF
15295
15296 fi
15297 done
15298
15299 fi
15300 # res_search
15301 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15302 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15303 eval "LIB_res_search=$ac_res"
15304
15305 case "$ac_res" in
15306         yes)
15307         eval "ac_cv_func_res_search=yes"
15308         eval "LIB_res_search="
15309         cat >>confdefs.h <<_ACEOF
15310 #define $ac_tr_func 1
15311 _ACEOF
15312
15313         echo "$as_me:$LINENO: result: yes" >&5
15314 echo "${ECHO_T}yes" >&6
15315         ;;
15316         no)
15317         eval "ac_cv_func_res_search=no"
15318         eval "LIB_res_search="
15319         echo "$as_me:$LINENO: result: no" >&5
15320 echo "${ECHO_T}no" >&6
15321         ;;
15322         *)
15323         eval "ac_cv_func_res_search=yes"
15324         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15325         cat >>confdefs.h <<_ACEOF
15326 #define $ac_tr_func 1
15327 _ACEOF
15328
15329         cat >>confdefs.h <<_ACEOF
15330 #define $ac_tr_lib 1
15331 _ACEOF
15332
15333         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15334 echo "${ECHO_T}yes, in $ac_res" >&6
15335         ;;
15336 esac
15337
15338
15339 if test -n "$LIB_res_search"; then
15340         LIBS="$LIB_res_search $LIBS"
15341 fi
15342
15343
15344
15345
15346
15347
15348 echo "$as_me:$LINENO: checking for res_nsearch" >&5
15349 echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
15350 if test "${ac_cv_funclib_res_nsearch+set}" = set; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 else
15353
15354 if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
15355         ac_save_LIBS="$LIBS"
15356         for ac_lib in "" resolv; do
15357                 case "$ac_lib" in
15358                 "") ;;
15359                 yes) ac_lib="" ;;
15360                 no) continue ;;
15361                 -l*) ;;
15362                 *) ac_lib="-l$ac_lib" ;;
15363                 esac
15364                 LIBS=" $ac_lib  $ac_save_LIBS"
15365                 cat >conftest.$ac_ext <<_ACEOF
15366 #line $LINENO "configure"
15367 #include "confdefs.h"
15368
15369 #include <stdio.h>
15370 #ifdef HAVE_SYS_TYPES_H
15371 #include <sys/types.h>
15372 #endif
15373 #ifdef HAVE_NETINET_IN_H
15374 #include <netinet/in.h>
15375 #endif
15376 #ifdef HAVE_ARPA_NAMESER_H
15377 #include <arpa/nameser.h>
15378 #endif
15379 #ifdef HAVE_RESOLV_H
15380 #include <resolv.h>
15381 #endif
15382
15383 #ifdef F77_DUMMY_MAIN
15384 #  ifdef __cplusplus
15385      extern "C"
15386 #  endif
15387    int F77_DUMMY_MAIN() { return 1; }
15388 #endif
15389 int
15390 main ()
15391 {
15392 res_nsearch(0,0,0,0,0)
15393   ;
15394   return 0;
15395 }
15396 _ACEOF
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399   (eval $ac_link) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); } &&
15403          { ac_try='test -s conftest$ac_exeext'
15404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405   (eval $ac_try) 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }; }; then
15409   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
15410 else
15411   echo "$as_me: failed program was:" >&5
15412 cat conftest.$ac_ext >&5
15413 fi
15414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15415         done
15416         eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
15417         LIBS="$ac_save_LIBS"
15418 fi
15419
15420 fi
15421
15422
15423 eval "ac_res=\$ac_cv_funclib_res_nsearch"
15424
15425 if false; then
15426
15427 for ac_func in res_nsearch
15428 do
15429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15430 echo "$as_me:$LINENO: checking for $ac_func" >&5
15431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15432 if eval "test \"\${$as_ac_var+set}\" = set"; then
15433   echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435   cat >conftest.$ac_ext <<_ACEOF
15436 #line $LINENO "configure"
15437 #include "confdefs.h"
15438 /* System header to define __stub macros and hopefully few prototypes,
15439     which can conflict with char $ac_func (); below.  */
15440 #include <assert.h>
15441 /* Override any gcc2 internal prototype to avoid an error.  */
15442 #ifdef __cplusplus
15443 extern "C"
15444 #endif
15445 /* We use char because int might match the return type of a gcc2
15446    builtin and then its argument prototype would still apply.  */
15447 char $ac_func ();
15448 char (*f) ();
15449
15450 #ifdef F77_DUMMY_MAIN
15451 #  ifdef __cplusplus
15452      extern "C"
15453 #  endif
15454    int F77_DUMMY_MAIN() { return 1; }
15455 #endif
15456 int
15457 main ()
15458 {
15459 /* The GNU C library defines this for functions which it implements
15460     to always fail with ENOSYS.  Some functions are actually named
15461     something starting with __ and the normal name is an alias.  */
15462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15463 choke me
15464 #else
15465 f = $ac_func;
15466 #endif
15467
15468   ;
15469   return 0;
15470 }
15471 _ACEOF
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15474   (eval $ac_link) 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); } &&
15478          { ac_try='test -s conftest$ac_exeext'
15479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480   (eval $ac_try) 2>&5
15481   ac_status=$?
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); }; }; then
15484   eval "$as_ac_var=yes"
15485 else
15486   echo "$as_me: failed program was:" >&5
15487 cat conftest.$ac_ext >&5
15488 eval "$as_ac_var=no"
15489 fi
15490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15491 fi
15492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15494 if test `eval echo '${'$as_ac_var'}'` = yes; then
15495   cat >>confdefs.h <<_ACEOF
15496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15497 _ACEOF
15498
15499 fi
15500 done
15501
15502 fi
15503 # res_nsearch
15504 eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15505 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15506 eval "LIB_res_nsearch=$ac_res"
15507
15508 case "$ac_res" in
15509         yes)
15510         eval "ac_cv_func_res_nsearch=yes"
15511         eval "LIB_res_nsearch="
15512         cat >>confdefs.h <<_ACEOF
15513 #define $ac_tr_func 1
15514 _ACEOF
15515
15516         echo "$as_me:$LINENO: result: yes" >&5
15517 echo "${ECHO_T}yes" >&6
15518         ;;
15519         no)
15520         eval "ac_cv_func_res_nsearch=no"
15521         eval "LIB_res_nsearch="
15522         echo "$as_me:$LINENO: result: no" >&5
15523 echo "${ECHO_T}no" >&6
15524         ;;
15525         *)
15526         eval "ac_cv_func_res_nsearch=yes"
15527         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15528         cat >>confdefs.h <<_ACEOF
15529 #define $ac_tr_func 1
15530 _ACEOF
15531
15532         cat >>confdefs.h <<_ACEOF
15533 #define $ac_tr_lib 1
15534 _ACEOF
15535
15536         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15537 echo "${ECHO_T}yes, in $ac_res" >&6
15538         ;;
15539 esac
15540
15541
15542 if test -n "$LIB_res_nsearch"; then
15543         LIBS="$LIB_res_nsearch $LIBS"
15544 fi
15545
15546
15547
15548
15549
15550
15551 echo "$as_me:$LINENO: checking for dn_expand" >&5
15552 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
15553 if test "${ac_cv_funclib_dn_expand+set}" = set; then
15554   echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556
15557 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
15558         ac_save_LIBS="$LIBS"
15559         for ac_lib in "" resolv; do
15560                 case "$ac_lib" in
15561                 "") ;;
15562                 yes) ac_lib="" ;;
15563                 no) continue ;;
15564                 -l*) ;;
15565                 *) ac_lib="-l$ac_lib" ;;
15566                 esac
15567                 LIBS=" $ac_lib  $ac_save_LIBS"
15568                 cat >conftest.$ac_ext <<_ACEOF
15569 #line $LINENO "configure"
15570 #include "confdefs.h"
15571
15572 #include <stdio.h>
15573 #ifdef HAVE_SYS_TYPES_H
15574 #include <sys/types.h>
15575 #endif
15576 #ifdef HAVE_NETINET_IN_H
15577 #include <netinet/in.h>
15578 #endif
15579 #ifdef HAVE_ARPA_NAMESER_H
15580 #include <arpa/nameser.h>
15581 #endif
15582 #ifdef HAVE_RESOLV_H
15583 #include <resolv.h>
15584 #endif
15585
15586 #ifdef F77_DUMMY_MAIN
15587 #  ifdef __cplusplus
15588      extern "C"
15589 #  endif
15590    int F77_DUMMY_MAIN() { return 1; }
15591 #endif
15592 int
15593 main ()
15594 {
15595 dn_expand(0,0,0,0,0)
15596   ;
15597   return 0;
15598 }
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602   (eval $ac_link) 2>&5
15603   ac_status=$?
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } &&
15606          { ac_try='test -s conftest$ac_exeext'
15607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608   (eval $ac_try) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; }; then
15612   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
15613 else
15614   echo "$as_me: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15616 fi
15617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15618         done
15619         eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
15620         LIBS="$ac_save_LIBS"
15621 fi
15622
15623 fi
15624
15625
15626 eval "ac_res=\$ac_cv_funclib_dn_expand"
15627
15628 if false; then
15629
15630 for ac_func in dn_expand
15631 do
15632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 echo "$as_me:$LINENO: checking for $ac_func" >&5
15634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15635 if eval "test \"\${$as_ac_var+set}\" = set"; then
15636   echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638   cat >conftest.$ac_ext <<_ACEOF
15639 #line $LINENO "configure"
15640 #include "confdefs.h"
15641 /* System header to define __stub macros and hopefully few prototypes,
15642     which can conflict with char $ac_func (); below.  */
15643 #include <assert.h>
15644 /* Override any gcc2 internal prototype to avoid an error.  */
15645 #ifdef __cplusplus
15646 extern "C"
15647 #endif
15648 /* We use char because int might match the return type of a gcc2
15649    builtin and then its argument prototype would still apply.  */
15650 char $ac_func ();
15651 char (*f) ();
15652
15653 #ifdef F77_DUMMY_MAIN
15654 #  ifdef __cplusplus
15655      extern "C"
15656 #  endif
15657    int F77_DUMMY_MAIN() { return 1; }
15658 #endif
15659 int
15660 main ()
15661 {
15662 /* The GNU C library defines this for functions which it implements
15663     to always fail with ENOSYS.  Some functions are actually named
15664     something starting with __ and the normal name is an alias.  */
15665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15666 choke me
15667 #else
15668 f = $ac_func;
15669 #endif
15670
15671   ;
15672   return 0;
15673 }
15674 _ACEOF
15675 rm -f conftest.$ac_objext conftest$ac_exeext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677   (eval $ac_link) 2>&5
15678   ac_status=$?
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); } &&
15681          { ac_try='test -s conftest$ac_exeext'
15682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683   (eval $ac_try) 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; }; then
15687   eval "$as_ac_var=yes"
15688 else
15689   echo "$as_me: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 eval "$as_ac_var=no"
15692 fi
15693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15694 fi
15695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15697 if test `eval echo '${'$as_ac_var'}'` = yes; then
15698   cat >>confdefs.h <<_ACEOF
15699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15700 _ACEOF
15701
15702 fi
15703 done
15704
15705 fi
15706 # dn_expand
15707 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15708 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15709 eval "LIB_dn_expand=$ac_res"
15710
15711 case "$ac_res" in
15712         yes)
15713         eval "ac_cv_func_dn_expand=yes"
15714         eval "LIB_dn_expand="
15715         cat >>confdefs.h <<_ACEOF
15716 #define $ac_tr_func 1
15717 _ACEOF
15718
15719         echo "$as_me:$LINENO: result: yes" >&5
15720 echo "${ECHO_T}yes" >&6
15721         ;;
15722         no)
15723         eval "ac_cv_func_dn_expand=no"
15724         eval "LIB_dn_expand="
15725         echo "$as_me:$LINENO: result: no" >&5
15726 echo "${ECHO_T}no" >&6
15727         ;;
15728         *)
15729         eval "ac_cv_func_dn_expand=yes"
15730         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15731         cat >>confdefs.h <<_ACEOF
15732 #define $ac_tr_func 1
15733 _ACEOF
15734
15735         cat >>confdefs.h <<_ACEOF
15736 #define $ac_tr_lib 1
15737 _ACEOF
15738
15739         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15740 echo "${ECHO_T}yes, in $ac_res" >&6
15741         ;;
15742 esac
15743
15744
15745 if test -n "$LIB_dn_expand"; then
15746         LIBS="$LIB_dn_expand $LIBS"
15747 fi
15748
15749
15750
15751 echo "$as_me:$LINENO: checking for _res" >&5
15752 echo $ECHO_N "checking for _res... $ECHO_C" >&6
15753 if test "${ac_cv_var__res+set}" = set; then
15754   echo $ECHO_N "(cached) $ECHO_C" >&6
15755 else
15756
15757 cat >conftest.$ac_ext <<_ACEOF
15758 #line $LINENO "configure"
15759 #include "confdefs.h"
15760 extern int _res;
15761 int foo() { return _res; }
15762 #ifdef F77_DUMMY_MAIN
15763 #  ifdef __cplusplus
15764      extern "C"
15765 #  endif
15766    int F77_DUMMY_MAIN() { return 1; }
15767 #endif
15768 int
15769 main ()
15770 {
15771 foo()
15772   ;
15773   return 0;
15774 }
15775 _ACEOF
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15778   (eval $ac_link) 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); } &&
15782          { ac_try='test -s conftest$ac_exeext'
15783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784   (eval $ac_try) 2>&5
15785   ac_status=$?
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); }; }; then
15788   ac_cv_var__res=yes
15789 else
15790   echo "$as_me: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15792 ac_cv_var__res=no
15793 fi
15794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15795
15796 fi
15797
15798 ac_foo=`eval echo \\$ac_cv_var__res`
15799 echo "$as_me:$LINENO: result: $ac_foo" >&5
15800 echo "${ECHO_T}$ac_foo" >&6
15801 if test "$ac_foo" = yes; then
15802
15803 cat >>confdefs.h <<_ACEOF
15804 #define HAVE__RES 1
15805 _ACEOF
15806
15807
15808 echo "$as_me:$LINENO: checking if _res is properly declared" >&5
15809 echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
15810 if test "${ac_cv_var__res_declaration+set}" = set; then
15811   echo $ECHO_N "(cached) $ECHO_C" >&6
15812 else
15813
15814 cat >conftest.$ac_ext <<_ACEOF
15815 #line $LINENO "configure"
15816 #include "confdefs.h"
15817 #include <stdio.h>
15818 #ifdef HAVE_SYS_TYPES_H
15819 #include <sys/types.h>
15820 #endif
15821 #ifdef HAVE_NETINET_IN_H
15822 #include <netinet/in.h>
15823 #endif
15824 #ifdef HAVE_ARPA_NAMESER_H
15825 #include <arpa/nameser.h>
15826 #endif
15827 #ifdef HAVE_RESOLV_H
15828 #include <resolv.h>
15829 #endif
15830 extern struct { int foo; } _res;
15831 #ifdef F77_DUMMY_MAIN
15832 #  ifdef __cplusplus
15833      extern "C"
15834 #  endif
15835    int F77_DUMMY_MAIN() { return 1; }
15836 #endif
15837 int
15838 main ()
15839 {
15840 _res.foo = 1;
15841   ;
15842   return 0;
15843 }
15844 _ACEOF
15845 rm -f conftest.$ac_objext
15846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15847   (eval $ac_compile) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } &&
15851          { ac_try='test -s conftest.$ac_objext'
15852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853   (eval $ac_try) 2>&5
15854   ac_status=$?
15855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   (exit $ac_status); }; }; then
15857   eval "ac_cv_var__res_declaration=no"
15858 else
15859   echo "$as_me: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15861 eval "ac_cv_var__res_declaration=yes"
15862 fi
15863 rm -f conftest.$ac_objext conftest.$ac_ext
15864
15865 fi
15866
15867
15868
15869
15870 echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
15871 echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
15872 if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
15873
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HAVE__RES_DECLARATION 1
15876 _ACEOF
15877
15878 fi
15879
15880
15881 fi
15882
15883
15884
15885
15886 echo "$as_me:$LINENO: checking for working snprintf" >&5
15887 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
15888 if test "${ac_cv_func_snprintf_working+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891   ac_cv_func_snprintf_working=yes
15892 if test "$cross_compiling" = yes; then
15893   :
15894 else
15895   cat >conftest.$ac_ext <<_ACEOF
15896 #line $LINENO "configure"
15897 #include "confdefs.h"
15898
15899 #include <stdio.h>
15900 #include <string.h>
15901 int main()
15902 {
15903         char foo[3];
15904         snprintf(foo, 2, "12");
15905         return strcmp(foo, "1");
15906 }
15907 _ACEOF
15908 rm -f conftest$ac_exeext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15910   (eval $ac_link) 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915   (eval $ac_try) 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); }; }; then
15919   :
15920 else
15921   echo "$as_me: program exited with status $ac_status" >&5
15922 echo "$as_me: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15924 ( exit $ac_status )
15925 ac_cv_func_snprintf_working=no
15926 fi
15927 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15928 fi
15929 fi
15930 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
15931 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
15932
15933 if test "$ac_cv_func_snprintf_working" = yes; then
15934
15935 cat >>confdefs.h <<_ACEOF
15936 #define HAVE_SNPRINTF 1
15937 _ACEOF
15938
15939 fi
15940 if test "$ac_cv_func_snprintf_working" = yes; then
15941
15942 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
15943 echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
15944 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
15945 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
15946   echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948   cat >conftest.$ac_ext <<_ACEOF
15949 #line $LINENO "configure"
15950 #include "confdefs.h"
15951 #include <stdio.h>
15952 #ifdef F77_DUMMY_MAIN
15953 #  ifdef __cplusplus
15954      extern "C"
15955 #  endif
15956    int F77_DUMMY_MAIN() { return 1; }
15957 #endif
15958 int
15959 main ()
15960 {
15961 struct foo { int foo; } xx;
15962 extern int snprintf (struct foo*);
15963 snprintf(&xx);
15964
15965   ;
15966   return 0;
15967 }
15968 _ACEOF
15969 rm -f conftest.$ac_objext
15970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971   (eval $ac_compile) 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); } &&
15975          { ac_try='test -s conftest.$ac_objext'
15976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977   (eval $ac_try) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; }; then
15981   eval "ac_cv_func_snprintf_noproto=yes"
15982 else
15983   echo "$as_me: failed program was:" >&5
15984 cat conftest.$ac_ext >&5
15985 eval "ac_cv_func_snprintf_noproto=no"
15986 fi
15987 rm -f conftest.$ac_objext conftest.$ac_ext
15988 fi
15989 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
15990 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
15991 if test "$ac_cv_func_snprintf_noproto" = yes; then
15992
15993 cat >>confdefs.h <<\_ACEOF
15994 #define NEED_SNPRINTF_PROTO 1
15995 _ACEOF
15996
15997 fi
15998 fi
15999
16000 fi
16001
16002
16003 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
16004 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
16005 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
16006   echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008   ac_cv_func_vsnprintf_working=yes
16009 if test "$cross_compiling" = yes; then
16010   :
16011 else
16012   cat >conftest.$ac_ext <<_ACEOF
16013 #line $LINENO "configure"
16014 #include "confdefs.h"
16015
16016 #include <stdio.h>
16017 #include <string.h>
16018 #include <stdarg.h>
16019
16020 int foo(int num, ...)
16021 {
16022         char bar[3];
16023         va_list arg;
16024         va_start(arg, num);
16025         vsnprintf(bar, 2, "%s", arg);
16026         va_end(arg);
16027         return strcmp(bar, "1");
16028 }
16029
16030
16031 int main()
16032 {
16033         return foo(0, "12");
16034 }
16035 _ACEOF
16036 rm -f conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038   (eval $ac_link) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043   (eval $ac_try) 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; }; then
16047   :
16048 else
16049   echo "$as_me: program exited with status $ac_status" >&5
16050 echo "$as_me: failed program was:" >&5
16051 cat conftest.$ac_ext >&5
16052 ( exit $ac_status )
16053 ac_cv_func_vsnprintf_working=no
16054 fi
16055 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16056 fi
16057 fi
16058 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
16059 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
16060
16061 if test "$ac_cv_func_vsnprintf_working" = yes; then
16062
16063 cat >>confdefs.h <<_ACEOF
16064 #define HAVE_VSNPRINTF 1
16065 _ACEOF
16066
16067 fi
16068 if test "$ac_cv_func_vsnprintf_working" = yes; then
16069
16070 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
16071 echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
16072 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
16073 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16078 #include "confdefs.h"
16079 #include <stdio.h>
16080 #ifdef F77_DUMMY_MAIN
16081 #  ifdef __cplusplus
16082      extern "C"
16083 #  endif
16084    int F77_DUMMY_MAIN() { return 1; }
16085 #endif
16086 int
16087 main ()
16088 {
16089 struct foo { int foo; } xx;
16090 extern int vsnprintf (struct foo*);
16091 vsnprintf(&xx);
16092
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 rm -f conftest.$ac_objext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099   (eval $ac_compile) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -s conftest.$ac_objext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   eval "ac_cv_func_vsnprintf_noproto=yes"
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 eval "ac_cv_func_vsnprintf_noproto=no"
16114 fi
16115 rm -f conftest.$ac_objext conftest.$ac_ext
16116 fi
16117 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
16118 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
16119 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
16120
16121 cat >>confdefs.h <<\_ACEOF
16122 #define NEED_VSNPRINTF_PROTO 1
16123 _ACEOF
16124
16125 fi
16126 fi
16127
16128 fi
16129
16130
16131
16132 echo "$as_me:$LINENO: checking for working glob" >&5
16133 echo $ECHO_N "checking for working glob... $ECHO_C" >&6
16134 if test "${ac_cv_func_glob_working+set}" = set; then
16135   echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137   ac_cv_func_glob_working=yes
16138 cat >conftest.$ac_ext <<_ACEOF
16139 #line $LINENO "configure"
16140 #include "confdefs.h"
16141
16142 #include <stdio.h>
16143 #include <glob.h>
16144 #ifdef F77_DUMMY_MAIN
16145 #  ifdef __cplusplus
16146      extern "C"
16147 #  endif
16148    int F77_DUMMY_MAIN() { return 1; }
16149 #endif
16150 int
16151 main ()
16152 {
16153
16154 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
16155 #ifdef GLOB_MAXPATH
16156 GLOB_MAXPATH
16157 #else
16158 GLOB_LIMIT
16159 #endif
16160 ,
16161 NULL, NULL);
16162
16163   ;
16164   return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext conftest$ac_exeext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16169   (eval $ac_link) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); } &&
16173          { ac_try='test -s conftest$ac_exeext'
16174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175   (eval $ac_try) 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; }; then
16179   :
16180 else
16181   echo "$as_me: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16183 ac_cv_func_glob_working=no
16184 fi
16185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16186 fi
16187 echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
16188 echo "${ECHO_T}$ac_cv_func_glob_working" >&6
16189
16190 if test "$ac_cv_func_glob_working" = yes; then
16191
16192 cat >>confdefs.h <<\_ACEOF
16193 #define HAVE_GLOB 1
16194 _ACEOF
16195
16196 fi
16197 if test "$ac_cv_func_glob_working" = yes; then
16198
16199 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
16200 echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
16201 echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
16202 if test "${ac_cv_func_glob_noproto+set}" = set; then
16203   echo $ECHO_N "(cached) $ECHO_C" >&6
16204 else
16205   cat >conftest.$ac_ext <<_ACEOF
16206 #line $LINENO "configure"
16207 #include "confdefs.h"
16208 #include <stdio.h>
16209 #include <glob.h>
16210 #ifdef F77_DUMMY_MAIN
16211 #  ifdef __cplusplus
16212      extern "C"
16213 #  endif
16214    int F77_DUMMY_MAIN() { return 1; }
16215 #endif
16216 int
16217 main ()
16218 {
16219 struct foo { int foo; } xx;
16220 extern int glob (struct foo*);
16221 glob(&xx);
16222
16223   ;
16224   return 0;
16225 }
16226 _ACEOF
16227 rm -f conftest.$ac_objext
16228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16229   (eval $ac_compile) 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); } &&
16233          { ac_try='test -s conftest.$ac_objext'
16234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235   (eval $ac_try) 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; }; then
16239   eval "ac_cv_func_glob_noproto=yes"
16240 else
16241   echo "$as_me: failed program was:" >&5
16242 cat conftest.$ac_ext >&5
16243 eval "ac_cv_func_glob_noproto=no"
16244 fi
16245 rm -f conftest.$ac_objext conftest.$ac_ext
16246 fi
16247 echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
16248 echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
16249 if test "$ac_cv_func_glob_noproto" = yes; then
16250
16251 cat >>confdefs.h <<\_ACEOF
16252 #define NEED_GLOB_PROTO 1
16253 _ACEOF
16254
16255 fi
16256 fi
16257
16258 fi
16259
16260 if test "$ac_cv_func_glob_working" != yes; then
16261         LIBOBJS="$LIBOBJS glob.$ac_objext"
16262 fi
16263
16264
16265 if test "$ac_cv_func_glob_working" = yes; then
16266   have_glob_h_TRUE=
16267   have_glob_h_FALSE='#'
16268 else
16269   have_glob_h_TRUE='#'
16270   have_glob_h_FALSE=
16271 fi
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301 for ac_func in                          \
16302         asnprintf                               \
16303         asprintf                                \
16304         atexit                                  \
16305         cgetent                                 \
16306         getconfattr                             \
16307         getprogname                             \
16308         getrlimit                               \
16309         getspnam                                \
16310         initstate                               \
16311         issetugid                               \
16312         on_exit                                 \
16313         random                                  \
16314         setprogname                             \
16315         setstate                                \
16316         strsvis                                 \
16317         strunvis                                \
16318         strvis                                  \
16319         strvisx                                 \
16320         svis                                    \
16321         sysconf                                 \
16322         sysctl                                  \
16323         uname                                   \
16324         unvis                                   \
16325         vasnprintf                              \
16326         vasprintf                               \
16327         vis                                     \
16328
16329 do
16330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 echo "$as_me:$LINENO: checking for $ac_func" >&5
16332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16333 if eval "test \"\${$as_ac_var+set}\" = set"; then
16334   echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336   cat >conftest.$ac_ext <<_ACEOF
16337 #line $LINENO "configure"
16338 #include "confdefs.h"
16339 /* System header to define __stub macros and hopefully few prototypes,
16340     which can conflict with char $ac_func (); below.  */
16341 #include <assert.h>
16342 /* Override any gcc2 internal prototype to avoid an error.  */
16343 #ifdef __cplusplus
16344 extern "C"
16345 #endif
16346 /* We use char because int might match the return type of a gcc2
16347    builtin and then its argument prototype would still apply.  */
16348 char $ac_func ();
16349 char (*f) ();
16350
16351 #ifdef F77_DUMMY_MAIN
16352 #  ifdef __cplusplus
16353      extern "C"
16354 #  endif
16355    int F77_DUMMY_MAIN() { return 1; }
16356 #endif
16357 int
16358 main ()
16359 {
16360 /* The GNU C library defines this for functions which it implements
16361     to always fail with ENOSYS.  Some functions are actually named
16362     something starting with __ and the normal name is an alias.  */
16363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16364 choke me
16365 #else
16366 f = $ac_func;
16367 #endif
16368
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 rm -f conftest.$ac_objext conftest$ac_exeext
16374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16375   (eval $ac_link) 2>&5
16376   ac_status=$?
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); } &&
16379          { ac_try='test -s conftest$ac_exeext'
16380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381   (eval $ac_try) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }; }; then
16385   eval "$as_ac_var=yes"
16386 else
16387   echo "$as_me: failed program was:" >&5
16388 cat conftest.$ac_ext >&5
16389 eval "$as_ac_var=no"
16390 fi
16391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16392 fi
16393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16395 if test `eval echo '${'$as_ac_var'}'` = yes; then
16396   cat >>confdefs.h <<_ACEOF
16397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16398 _ACEOF
16399
16400 fi
16401 done
16402
16403
16404 if test "$ac_cv_func_cgetent" = no; then
16405         LIBOBJS="$LIBOBJS getcap.$ac_objext"
16406 fi
16407
16408
16409
16410
16411
16412
16413
16414
16415 echo "$as_me:$LINENO: checking for getsockopt" >&5
16416 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
16417 if test "${ac_cv_funclib_getsockopt+set}" = set; then
16418   echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420
16421 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
16422         ac_save_LIBS="$LIBS"
16423         for ac_lib in "" ; do
16424                 case "$ac_lib" in
16425                 "") ;;
16426                 yes) ac_lib="" ;;
16427                 no) continue ;;
16428                 -l*) ;;
16429                 *) ac_lib="-l$ac_lib" ;;
16430                 esac
16431                 LIBS=" $ac_lib  $ac_save_LIBS"
16432                 cat >conftest.$ac_ext <<_ACEOF
16433 #line $LINENO "configure"
16434 #include "confdefs.h"
16435 #ifdef HAVE_SYS_TYPES_H
16436 #include <sys/types.h>
16437 #endif
16438 #ifdef HAVE_SYS_SOCKET_H
16439 #include <sys/socket.h>
16440 #endif
16441 #ifdef F77_DUMMY_MAIN
16442 #  ifdef __cplusplus
16443      extern "C"
16444 #  endif
16445    int F77_DUMMY_MAIN() { return 1; }
16446 #endif
16447 int
16448 main ()
16449 {
16450 getsockopt(0,0,0,0,0)
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 rm -f conftest.$ac_objext conftest$ac_exeext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16457   (eval $ac_link) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); } &&
16461          { ac_try='test -s conftest$ac_exeext'
16462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463   (eval $ac_try) 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); }; }; then
16467   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 cat conftest.$ac_ext >&5
16471 fi
16472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16473         done
16474         eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
16475         LIBS="$ac_save_LIBS"
16476 fi
16477
16478 fi
16479
16480
16481 eval "ac_res=\$ac_cv_funclib_getsockopt"
16482
16483 if false; then
16484
16485 for ac_func in getsockopt
16486 do
16487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16488 echo "$as_me:$LINENO: checking for $ac_func" >&5
16489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16490 if eval "test \"\${$as_ac_var+set}\" = set"; then
16491   echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493   cat >conftest.$ac_ext <<_ACEOF
16494 #line $LINENO "configure"
16495 #include "confdefs.h"
16496 /* System header to define __stub macros and hopefully few prototypes,
16497     which can conflict with char $ac_func (); below.  */
16498 #include <assert.h>
16499 /* Override any gcc2 internal prototype to avoid an error.  */
16500 #ifdef __cplusplus
16501 extern "C"
16502 #endif
16503 /* We use char because int might match the return type of a gcc2
16504    builtin and then its argument prototype would still apply.  */
16505 char $ac_func ();
16506 char (*f) ();
16507
16508 #ifdef F77_DUMMY_MAIN
16509 #  ifdef __cplusplus
16510      extern "C"
16511 #  endif
16512    int F77_DUMMY_MAIN() { return 1; }
16513 #endif
16514 int
16515 main ()
16516 {
16517 /* The GNU C library defines this for functions which it implements
16518     to always fail with ENOSYS.  Some functions are actually named
16519     something starting with __ and the normal name is an alias.  */
16520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16521 choke me
16522 #else
16523 f = $ac_func;
16524 #endif
16525
16526   ;
16527   return 0;
16528 }
16529 _ACEOF
16530 rm -f conftest.$ac_objext conftest$ac_exeext
16531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532   (eval $ac_link) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); } &&
16536          { ac_try='test -s conftest$ac_exeext'
16537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538   (eval $ac_try) 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; }; then
16542   eval "$as_ac_var=yes"
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16546 eval "$as_ac_var=no"
16547 fi
16548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16549 fi
16550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16552 if test `eval echo '${'$as_ac_var'}'` = yes; then
16553   cat >>confdefs.h <<_ACEOF
16554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16555 _ACEOF
16556
16557 fi
16558 done
16559
16560 fi
16561 # getsockopt
16562 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16563 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16564 eval "LIB_getsockopt=$ac_res"
16565
16566 case "$ac_res" in
16567         yes)
16568         eval "ac_cv_func_getsockopt=yes"
16569         eval "LIB_getsockopt="
16570         cat >>confdefs.h <<_ACEOF
16571 #define $ac_tr_func 1
16572 _ACEOF
16573
16574         echo "$as_me:$LINENO: result: yes" >&5
16575 echo "${ECHO_T}yes" >&6
16576         ;;
16577         no)
16578         eval "ac_cv_func_getsockopt=no"
16579         eval "LIB_getsockopt="
16580         echo "$as_me:$LINENO: result: no" >&5
16581 echo "${ECHO_T}no" >&6
16582         ;;
16583         *)
16584         eval "ac_cv_func_getsockopt=yes"
16585         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16586         cat >>confdefs.h <<_ACEOF
16587 #define $ac_tr_func 1
16588 _ACEOF
16589
16590         cat >>confdefs.h <<_ACEOF
16591 #define $ac_tr_lib 1
16592 _ACEOF
16593
16594         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16595 echo "${ECHO_T}yes, in $ac_res" >&6
16596         ;;
16597 esac
16598
16599
16600
16601
16602
16603 echo "$as_me:$LINENO: checking for setsockopt" >&5
16604 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
16605 if test "${ac_cv_funclib_setsockopt+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608
16609 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
16610         ac_save_LIBS="$LIBS"
16611         for ac_lib in "" ; do
16612                 case "$ac_lib" in
16613                 "") ;;
16614                 yes) ac_lib="" ;;
16615                 no) continue ;;
16616                 -l*) ;;
16617                 *) ac_lib="-l$ac_lib" ;;
16618                 esac
16619                 LIBS=" $ac_lib  $ac_save_LIBS"
16620                 cat >conftest.$ac_ext <<_ACEOF
16621 #line $LINENO "configure"
16622 #include "confdefs.h"
16623 #ifdef HAVE_SYS_TYPES_H
16624 #include <sys/types.h>
16625 #endif
16626 #ifdef HAVE_SYS_SOCKET_H
16627 #include <sys/socket.h>
16628 #endif
16629 #ifdef F77_DUMMY_MAIN
16630 #  ifdef __cplusplus
16631      extern "C"
16632 #  endif
16633    int F77_DUMMY_MAIN() { return 1; }
16634 #endif
16635 int
16636 main ()
16637 {
16638 setsockopt(0,0,0,0,0)
16639   ;
16640   return 0;
16641 }
16642 _ACEOF
16643 rm -f conftest.$ac_objext conftest$ac_exeext
16644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16645   (eval $ac_link) 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); } &&
16649          { ac_try='test -s conftest$ac_exeext'
16650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651   (eval $ac_try) 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); }; }; then
16655   eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
16656 else
16657   echo "$as_me: failed program was:" >&5
16658 cat conftest.$ac_ext >&5
16659 fi
16660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16661         done
16662         eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
16663         LIBS="$ac_save_LIBS"
16664 fi
16665
16666 fi
16667
16668
16669 eval "ac_res=\$ac_cv_funclib_setsockopt"
16670
16671 if false; then
16672
16673 for ac_func in setsockopt
16674 do
16675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16676 echo "$as_me:$LINENO: checking for $ac_func" >&5
16677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16678 if eval "test \"\${$as_ac_var+set}\" = set"; then
16679   echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681   cat >conftest.$ac_ext <<_ACEOF
16682 #line $LINENO "configure"
16683 #include "confdefs.h"
16684 /* System header to define __stub macros and hopefully few prototypes,
16685     which can conflict with char $ac_func (); below.  */
16686 #include <assert.h>
16687 /* Override any gcc2 internal prototype to avoid an error.  */
16688 #ifdef __cplusplus
16689 extern "C"
16690 #endif
16691 /* We use char because int might match the return type of a gcc2
16692    builtin and then its argument prototype would still apply.  */
16693 char $ac_func ();
16694 char (*f) ();
16695
16696 #ifdef F77_DUMMY_MAIN
16697 #  ifdef __cplusplus
16698      extern "C"
16699 #  endif
16700    int F77_DUMMY_MAIN() { return 1; }
16701 #endif
16702 int
16703 main ()
16704 {
16705 /* The GNU C library defines this for functions which it implements
16706     to always fail with ENOSYS.  Some functions are actually named
16707     something starting with __ and the normal name is an alias.  */
16708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16709 choke me
16710 #else
16711 f = $ac_func;
16712 #endif
16713
16714   ;
16715   return 0;
16716 }
16717 _ACEOF
16718 rm -f conftest.$ac_objext conftest$ac_exeext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16720   (eval $ac_link) 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); } &&
16724          { ac_try='test -s conftest$ac_exeext'
16725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726   (eval $ac_try) 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); }; }; then
16730   eval "$as_ac_var=yes"
16731 else
16732   echo "$as_me: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 eval "$as_ac_var=no"
16735 fi
16736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16737 fi
16738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741   cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743 _ACEOF
16744
16745 fi
16746 done
16747
16748 fi
16749 # setsockopt
16750 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16751 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16752 eval "LIB_setsockopt=$ac_res"
16753
16754 case "$ac_res" in
16755         yes)
16756         eval "ac_cv_func_setsockopt=yes"
16757         eval "LIB_setsockopt="
16758         cat >>confdefs.h <<_ACEOF
16759 #define $ac_tr_func 1
16760 _ACEOF
16761
16762         echo "$as_me:$LINENO: result: yes" >&5
16763 echo "${ECHO_T}yes" >&6
16764         ;;
16765         no)
16766         eval "ac_cv_func_setsockopt=no"
16767         eval "LIB_setsockopt="
16768         echo "$as_me:$LINENO: result: no" >&5
16769 echo "${ECHO_T}no" >&6
16770         ;;
16771         *)
16772         eval "ac_cv_func_setsockopt=yes"
16773         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16774         cat >>confdefs.h <<_ACEOF
16775 #define $ac_tr_func 1
16776 _ACEOF
16777
16778         cat >>confdefs.h <<_ACEOF
16779 #define $ac_tr_lib 1
16780 _ACEOF
16781
16782         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16783 echo "${ECHO_T}yes, in $ac_res" >&6
16784         ;;
16785 esac
16786
16787
16788
16789
16790
16791
16792
16793 echo "$as_me:$LINENO: checking for hstrerror" >&5
16794 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
16795 if test "${ac_cv_funclib_hstrerror+set}" = set; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798
16799 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
16800         ac_save_LIBS="$LIBS"
16801         for ac_lib in "" resolv; do
16802                 case "$ac_lib" in
16803                 "") ;;
16804                 yes) ac_lib="" ;;
16805                 no) continue ;;
16806                 -l*) ;;
16807                 *) ac_lib="-l$ac_lib" ;;
16808                 esac
16809                 LIBS=" $ac_lib  $ac_save_LIBS"
16810                 cat >conftest.$ac_ext <<_ACEOF
16811 #line $LINENO "configure"
16812 #include "confdefs.h"
16813 #ifdef HAVE_NETDB_H
16814 #include <netdb.h>
16815 #endif
16816 #ifdef F77_DUMMY_MAIN
16817 #  ifdef __cplusplus
16818      extern "C"
16819 #  endif
16820    int F77_DUMMY_MAIN() { return 1; }
16821 #endif
16822 int
16823 main ()
16824 {
16825 hstrerror(17)
16826   ;
16827   return 0;
16828 }
16829 _ACEOF
16830 rm -f conftest.$ac_objext conftest$ac_exeext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16832   (eval $ac_link) 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); } &&
16836          { ac_try='test -s conftest$ac_exeext'
16837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838   (eval $ac_try) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }; }; then
16842   eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
16843 else
16844   echo "$as_me: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16846 fi
16847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16848         done
16849         eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
16850         LIBS="$ac_save_LIBS"
16851 fi
16852
16853 fi
16854
16855
16856 eval "ac_res=\$ac_cv_funclib_hstrerror"
16857
16858 if false; then
16859
16860 for ac_func in hstrerror
16861 do
16862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16863 echo "$as_me:$LINENO: checking for $ac_func" >&5
16864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16865 if eval "test \"\${$as_ac_var+set}\" = set"; then
16866   echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868   cat >conftest.$ac_ext <<_ACEOF
16869 #line $LINENO "configure"
16870 #include "confdefs.h"
16871 /* System header to define __stub macros and hopefully few prototypes,
16872     which can conflict with char $ac_func (); below.  */
16873 #include <assert.h>
16874 /* Override any gcc2 internal prototype to avoid an error.  */
16875 #ifdef __cplusplus
16876 extern "C"
16877 #endif
16878 /* We use char because int might match the return type of a gcc2
16879    builtin and then its argument prototype would still apply.  */
16880 char $ac_func ();
16881 char (*f) ();
16882
16883 #ifdef F77_DUMMY_MAIN
16884 #  ifdef __cplusplus
16885      extern "C"
16886 #  endif
16887    int F77_DUMMY_MAIN() { return 1; }
16888 #endif
16889 int
16890 main ()
16891 {
16892 /* The GNU C library defines this for functions which it implements
16893     to always fail with ENOSYS.  Some functions are actually named
16894     something starting with __ and the normal name is an alias.  */
16895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16896 choke me
16897 #else
16898 f = $ac_func;
16899 #endif
16900
16901   ;
16902   return 0;
16903 }
16904 _ACEOF
16905 rm -f conftest.$ac_objext conftest$ac_exeext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907   (eval $ac_link) 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); } &&
16911          { ac_try='test -s conftest$ac_exeext'
16912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913   (eval $ac_try) 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); }; }; then
16917   eval "$as_ac_var=yes"
16918 else
16919   echo "$as_me: failed program was:" >&5
16920 cat conftest.$ac_ext >&5
16921 eval "$as_ac_var=no"
16922 fi
16923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16924 fi
16925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16927 if test `eval echo '${'$as_ac_var'}'` = yes; then
16928   cat >>confdefs.h <<_ACEOF
16929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16930 _ACEOF
16931
16932 fi
16933 done
16934
16935 fi
16936 # hstrerror
16937 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16938 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16939 eval "LIB_hstrerror=$ac_res"
16940
16941 case "$ac_res" in
16942         yes)
16943         eval "ac_cv_func_hstrerror=yes"
16944         eval "LIB_hstrerror="
16945         cat >>confdefs.h <<_ACEOF
16946 #define $ac_tr_func 1
16947 _ACEOF
16948
16949         echo "$as_me:$LINENO: result: yes" >&5
16950 echo "${ECHO_T}yes" >&6
16951         ;;
16952         no)
16953         eval "ac_cv_func_hstrerror=no"
16954         eval "LIB_hstrerror="
16955         echo "$as_me:$LINENO: result: no" >&5
16956 echo "${ECHO_T}no" >&6
16957         ;;
16958         *)
16959         eval "ac_cv_func_hstrerror=yes"
16960         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16961         cat >>confdefs.h <<_ACEOF
16962 #define $ac_tr_func 1
16963 _ACEOF
16964
16965         cat >>confdefs.h <<_ACEOF
16966 #define $ac_tr_lib 1
16967 _ACEOF
16968
16969         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
16970 echo "${ECHO_T}yes, in $ac_res" >&6
16971         ;;
16972 esac
16973
16974
16975 if test -n "$LIB_hstrerror"; then
16976         LIBS="$LIB_hstrerror $LIBS"
16977 fi
16978
16979 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
16980         LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
16981 fi
16982
16983
16984 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
16985 echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
16986 echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
16987 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
16988   echo $ECHO_N "(cached) $ECHO_C" >&6
16989 else
16990   cat >conftest.$ac_ext <<_ACEOF
16991 #line $LINENO "configure"
16992 #include "confdefs.h"
16993
16994 #ifdef HAVE_NETDB_H
16995 #include <netdb.h>
16996 #endif
16997 #ifdef F77_DUMMY_MAIN
16998 #  ifdef __cplusplus
16999      extern "C"
17000 #  endif
17001    int F77_DUMMY_MAIN() { return 1; }
17002 #endif
17003 int
17004 main ()
17005 {
17006 struct foo { int foo; } xx;
17007 extern int hstrerror (struct foo*);
17008 hstrerror(&xx);
17009
17010   ;
17011   return 0;
17012 }
17013 _ACEOF
17014 rm -f conftest.$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016   (eval $ac_compile) 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } &&
17020          { ac_try='test -s conftest.$ac_objext'
17021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022   (eval $ac_try) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; }; then
17026   eval "ac_cv_func_hstrerror_noproto=yes"
17027 else
17028   echo "$as_me: failed program was:" >&5
17029 cat conftest.$ac_ext >&5
17030 eval "ac_cv_func_hstrerror_noproto=no"
17031 fi
17032 rm -f conftest.$ac_objext conftest.$ac_ext
17033 fi
17034 echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
17035 echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
17036 if test "$ac_cv_func_hstrerror_noproto" = yes; then
17037
17038 cat >>confdefs.h <<\_ACEOF
17039 #define NEED_HSTRERROR_PROTO 1
17040 _ACEOF
17041
17042 fi
17043 fi
17044
17045
17046
17047 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
17048 echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
17049 echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
17050 if test "${ac_cv_func_asprintf_noproto+set}" = set; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   cat >conftest.$ac_ext <<_ACEOF
17054 #line $LINENO "configure"
17055 #include "confdefs.h"
17056
17057         #include <stdio.h>
17058         #include <string.h>
17059 #ifdef F77_DUMMY_MAIN
17060 #  ifdef __cplusplus
17061      extern "C"
17062 #  endif
17063    int F77_DUMMY_MAIN() { return 1; }
17064 #endif
17065 int
17066 main ()
17067 {
17068 struct foo { int foo; } xx;
17069 extern int asprintf (struct foo*);
17070 asprintf(&xx);
17071
17072   ;
17073   return 0;
17074 }
17075 _ACEOF
17076 rm -f conftest.$ac_objext
17077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17078   (eval $ac_compile) 2>&5
17079   ac_status=$?
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); } &&
17082          { ac_try='test -s conftest.$ac_objext'
17083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084   (eval $ac_try) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; }; then
17088   eval "ac_cv_func_asprintf_noproto=yes"
17089 else
17090   echo "$as_me: failed program was:" >&5
17091 cat conftest.$ac_ext >&5
17092 eval "ac_cv_func_asprintf_noproto=no"
17093 fi
17094 rm -f conftest.$ac_objext conftest.$ac_ext
17095 fi
17096 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
17097 echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
17098 if test "$ac_cv_func_asprintf_noproto" = yes; then
17099
17100 cat >>confdefs.h <<\_ACEOF
17101 #define NEED_ASPRINTF_PROTO 1
17102 _ACEOF
17103
17104 fi
17105 fi
17106
17107 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
17108 echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
17109 echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
17110 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113   cat >conftest.$ac_ext <<_ACEOF
17114 #line $LINENO "configure"
17115 #include "confdefs.h"
17116
17117         #include <stdio.h>
17118         #include <string.h>
17119 #ifdef F77_DUMMY_MAIN
17120 #  ifdef __cplusplus
17121      extern "C"
17122 #  endif
17123    int F77_DUMMY_MAIN() { return 1; }
17124 #endif
17125 int
17126 main ()
17127 {
17128 struct foo { int foo; } xx;
17129 extern int vasprintf (struct foo*);
17130 vasprintf(&xx);
17131
17132   ;
17133   return 0;
17134 }
17135 _ACEOF
17136 rm -f conftest.$ac_objext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17138   (eval $ac_compile) 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); } &&
17142          { ac_try='test -s conftest.$ac_objext'
17143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144   (eval $ac_try) 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); }; }; then
17148   eval "ac_cv_func_vasprintf_noproto=yes"
17149 else
17150   echo "$as_me: failed program was:" >&5
17151 cat conftest.$ac_ext >&5
17152 eval "ac_cv_func_vasprintf_noproto=no"
17153 fi
17154 rm -f conftest.$ac_objext conftest.$ac_ext
17155 fi
17156 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
17157 echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
17158 if test "$ac_cv_func_vasprintf_noproto" = yes; then
17159
17160 cat >>confdefs.h <<\_ACEOF
17161 #define NEED_VASPRINTF_PROTO 1
17162 _ACEOF
17163
17164 fi
17165 fi
17166
17167 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
17168 echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
17169 echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
17170 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
17171   echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173   cat >conftest.$ac_ext <<_ACEOF
17174 #line $LINENO "configure"
17175 #include "confdefs.h"
17176
17177         #include <stdio.h>
17178         #include <string.h>
17179 #ifdef F77_DUMMY_MAIN
17180 #  ifdef __cplusplus
17181      extern "C"
17182 #  endif
17183    int F77_DUMMY_MAIN() { return 1; }
17184 #endif
17185 int
17186 main ()
17187 {
17188 struct foo { int foo; } xx;
17189 extern int asnprintf (struct foo*);
17190 asnprintf(&xx);
17191
17192   ;
17193   return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198   (eval $ac_compile) 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } &&
17202          { ac_try='test -s conftest.$ac_objext'
17203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204   (eval $ac_try) 2>&5
17205   ac_status=$?
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); }; }; then
17208   eval "ac_cv_func_asnprintf_noproto=yes"
17209 else
17210   echo "$as_me: failed program was:" >&5
17211 cat conftest.$ac_ext >&5
17212 eval "ac_cv_func_asnprintf_noproto=no"
17213 fi
17214 rm -f conftest.$ac_objext conftest.$ac_ext
17215 fi
17216 echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
17217 echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
17218 if test "$ac_cv_func_asnprintf_noproto" = yes; then
17219
17220 cat >>confdefs.h <<\_ACEOF
17221 #define NEED_ASNPRINTF_PROTO 1
17222 _ACEOF
17223
17224 fi
17225 fi
17226
17227 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
17228 echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
17229 echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
17230 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
17231   echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233   cat >conftest.$ac_ext <<_ACEOF
17234 #line $LINENO "configure"
17235 #include "confdefs.h"
17236
17237         #include <stdio.h>
17238         #include <string.h>
17239 #ifdef F77_DUMMY_MAIN
17240 #  ifdef __cplusplus
17241      extern "C"
17242 #  endif
17243    int F77_DUMMY_MAIN() { return 1; }
17244 #endif
17245 int
17246 main ()
17247 {
17248 struct foo { int foo; } xx;
17249 extern int vasnprintf (struct foo*);
17250 vasnprintf(&xx);
17251
17252   ;
17253   return 0;
17254 }
17255 _ACEOF
17256 rm -f conftest.$ac_objext
17257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258   (eval $ac_compile) 2>&5
17259   ac_status=$?
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); } &&
17262          { ac_try='test -s conftest.$ac_objext'
17263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264   (eval $ac_try) 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); }; }; then
17268   eval "ac_cv_func_vasnprintf_noproto=yes"
17269 else
17270   echo "$as_me: failed program was:" >&5
17271 cat conftest.$ac_ext >&5
17272 eval "ac_cv_func_vasnprintf_noproto=no"
17273 fi
17274 rm -f conftest.$ac_objext conftest.$ac_ext
17275 fi
17276 echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
17277 echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
17278 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
17279
17280 cat >>confdefs.h <<\_ACEOF
17281 #define NEED_VASNPRINTF_PROTO 1
17282 _ACEOF
17283
17284 fi
17285 fi
17286
17287
17288
17289
17290
17291 echo "$as_me:$LINENO: checking for bswap16" >&5
17292 echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
17293 if test "${ac_cv_funclib_bswap16+set}" = set; then
17294   echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296
17297 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
17298         ac_save_LIBS="$LIBS"
17299         for ac_lib in "" ; do
17300                 case "$ac_lib" in
17301                 "") ;;
17302                 yes) ac_lib="" ;;
17303                 no) continue ;;
17304                 -l*) ;;
17305                 *) ac_lib="-l$ac_lib" ;;
17306                 esac
17307                 LIBS=" $ac_lib  $ac_save_LIBS"
17308                 cat >conftest.$ac_ext <<_ACEOF
17309 #line $LINENO "configure"
17310 #include "confdefs.h"
17311 #ifdef HAVE_SYS_BSWAP_H
17312 #include <sys/bswap.h>
17313 #endif
17314 #ifdef F77_DUMMY_MAIN
17315 #  ifdef __cplusplus
17316      extern "C"
17317 #  endif
17318    int F77_DUMMY_MAIN() { return 1; }
17319 #endif
17320 int
17321 main ()
17322 {
17323 bswap16(0)
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330   (eval $ac_link) 2>&5
17331   ac_status=$?
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); } &&
17334          { ac_try='test -s conftest$ac_exeext'
17335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336   (eval $ac_try) 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; }; then
17340   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
17341 else
17342   echo "$as_me: failed program was:" >&5
17343 cat conftest.$ac_ext >&5
17344 fi
17345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17346         done
17347         eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
17348         LIBS="$ac_save_LIBS"
17349 fi
17350
17351 fi
17352
17353
17354 eval "ac_res=\$ac_cv_funclib_bswap16"
17355
17356 if false; then
17357
17358 for ac_func in bswap16
17359 do
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17363 if eval "test \"\${$as_ac_var+set}\" = set"; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366   cat >conftest.$ac_ext <<_ACEOF
17367 #line $LINENO "configure"
17368 #include "confdefs.h"
17369 /* System header to define __stub macros and hopefully few prototypes,
17370     which can conflict with char $ac_func (); below.  */
17371 #include <assert.h>
17372 /* Override any gcc2 internal prototype to avoid an error.  */
17373 #ifdef __cplusplus
17374 extern "C"
17375 #endif
17376 /* We use char because int might match the return type of a gcc2
17377    builtin and then its argument prototype would still apply.  */
17378 char $ac_func ();
17379 char (*f) ();
17380
17381 #ifdef F77_DUMMY_MAIN
17382 #  ifdef __cplusplus
17383      extern "C"
17384 #  endif
17385    int F77_DUMMY_MAIN() { return 1; }
17386 #endif
17387 int
17388 main ()
17389 {
17390 /* The GNU C library defines this for functions which it implements
17391     to always fail with ENOSYS.  Some functions are actually named
17392     something starting with __ and the normal name is an alias.  */
17393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17394 choke me
17395 #else
17396 f = $ac_func;
17397 #endif
17398
17399   ;
17400   return 0;
17401 }
17402 _ACEOF
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405   (eval $ac_link) 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } &&
17409          { ac_try='test -s conftest$ac_exeext'
17410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411   (eval $ac_try) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; }; then
17415   eval "$as_ac_var=yes"
17416 else
17417   echo "$as_me: failed program was:" >&5
17418 cat conftest.$ac_ext >&5
17419 eval "$as_ac_var=no"
17420 fi
17421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17422 fi
17423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17425 if test `eval echo '${'$as_ac_var'}'` = yes; then
17426   cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17428 _ACEOF
17429
17430 fi
17431 done
17432
17433 fi
17434 # bswap16
17435 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17436 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17437 eval "LIB_bswap16=$ac_res"
17438
17439 case "$ac_res" in
17440         yes)
17441         eval "ac_cv_func_bswap16=yes"
17442         eval "LIB_bswap16="
17443         cat >>confdefs.h <<_ACEOF
17444 #define $ac_tr_func 1
17445 _ACEOF
17446
17447         echo "$as_me:$LINENO: result: yes" >&5
17448 echo "${ECHO_T}yes" >&6
17449         ;;
17450         no)
17451         eval "ac_cv_func_bswap16=no"
17452         eval "LIB_bswap16="
17453         echo "$as_me:$LINENO: result: no" >&5
17454 echo "${ECHO_T}no" >&6
17455         ;;
17456         *)
17457         eval "ac_cv_func_bswap16=yes"
17458         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17459         cat >>confdefs.h <<_ACEOF
17460 #define $ac_tr_func 1
17461 _ACEOF
17462
17463         cat >>confdefs.h <<_ACEOF
17464 #define $ac_tr_lib 1
17465 _ACEOF
17466
17467         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17468 echo "${ECHO_T}yes, in $ac_res" >&6
17469         ;;
17470 esac
17471
17472
17473
17474
17475
17476
17477 echo "$as_me:$LINENO: checking for bswap32" >&5
17478 echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
17479 if test "${ac_cv_funclib_bswap32+set}" = set; then
17480   echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482
17483 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
17484         ac_save_LIBS="$LIBS"
17485         for ac_lib in "" ; do
17486                 case "$ac_lib" in
17487                 "") ;;
17488                 yes) ac_lib="" ;;
17489                 no) continue ;;
17490                 -l*) ;;
17491                 *) ac_lib="-l$ac_lib" ;;
17492                 esac
17493                 LIBS=" $ac_lib  $ac_save_LIBS"
17494                 cat >conftest.$ac_ext <<_ACEOF
17495 #line $LINENO "configure"
17496 #include "confdefs.h"
17497 #ifdef HAVE_SYS_BSWAP_H
17498 #include <sys/bswap.h>
17499 #endif
17500 #ifdef F77_DUMMY_MAIN
17501 #  ifdef __cplusplus
17502      extern "C"
17503 #  endif
17504    int F77_DUMMY_MAIN() { return 1; }
17505 #endif
17506 int
17507 main ()
17508 {
17509 bswap32(0)
17510   ;
17511   return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516   (eval $ac_link) 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); } &&
17520          { ac_try='test -s conftest$ac_exeext'
17521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522   (eval $ac_try) 2>&5
17523   ac_status=$?
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); }; }; then
17526   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
17527 else
17528   echo "$as_me: failed program was:" >&5
17529 cat conftest.$ac_ext >&5
17530 fi
17531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17532         done
17533         eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
17534         LIBS="$ac_save_LIBS"
17535 fi
17536
17537 fi
17538
17539
17540 eval "ac_res=\$ac_cv_funclib_bswap32"
17541
17542 if false; then
17543
17544 for ac_func in bswap32
17545 do
17546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17547 echo "$as_me:$LINENO: checking for $ac_func" >&5
17548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17549 if eval "test \"\${$as_ac_var+set}\" = set"; then
17550   echo $ECHO_N "(cached) $ECHO_C" >&6
17551 else
17552   cat >conftest.$ac_ext <<_ACEOF
17553 #line $LINENO "configure"
17554 #include "confdefs.h"
17555 /* System header to define __stub macros and hopefully few prototypes,
17556     which can conflict with char $ac_func (); below.  */
17557 #include <assert.h>
17558 /* Override any gcc2 internal prototype to avoid an error.  */
17559 #ifdef __cplusplus
17560 extern "C"
17561 #endif
17562 /* We use char because int might match the return type of a gcc2
17563    builtin and then its argument prototype would still apply.  */
17564 char $ac_func ();
17565 char (*f) ();
17566
17567 #ifdef F77_DUMMY_MAIN
17568 #  ifdef __cplusplus
17569      extern "C"
17570 #  endif
17571    int F77_DUMMY_MAIN() { return 1; }
17572 #endif
17573 int
17574 main ()
17575 {
17576 /* The GNU C library defines this for functions which it implements
17577     to always fail with ENOSYS.  Some functions are actually named
17578     something starting with __ and the normal name is an alias.  */
17579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17580 choke me
17581 #else
17582 f = $ac_func;
17583 #endif
17584
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591   (eval $ac_link) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } &&
17595          { ac_try='test -s conftest$ac_exeext'
17596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597   (eval $ac_try) 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   eval "$as_ac_var=yes"
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 cat conftest.$ac_ext >&5
17605 eval "$as_ac_var=no"
17606 fi
17607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17608 fi
17609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17611 if test `eval echo '${'$as_ac_var'}'` = yes; then
17612   cat >>confdefs.h <<_ACEOF
17613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17614 _ACEOF
17615
17616 fi
17617 done
17618
17619 fi
17620 # bswap32
17621 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17622 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17623 eval "LIB_bswap32=$ac_res"
17624
17625 case "$ac_res" in
17626         yes)
17627         eval "ac_cv_func_bswap32=yes"
17628         eval "LIB_bswap32="
17629         cat >>confdefs.h <<_ACEOF
17630 #define $ac_tr_func 1
17631 _ACEOF
17632
17633         echo "$as_me:$LINENO: result: yes" >&5
17634 echo "${ECHO_T}yes" >&6
17635         ;;
17636         no)
17637         eval "ac_cv_func_bswap32=no"
17638         eval "LIB_bswap32="
17639         echo "$as_me:$LINENO: result: no" >&5
17640 echo "${ECHO_T}no" >&6
17641         ;;
17642         *)
17643         eval "ac_cv_func_bswap32=yes"
17644         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17645         cat >>confdefs.h <<_ACEOF
17646 #define $ac_tr_func 1
17647 _ACEOF
17648
17649         cat >>confdefs.h <<_ACEOF
17650 #define $ac_tr_lib 1
17651 _ACEOF
17652
17653         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17654 echo "${ECHO_T}yes, in $ac_res" >&6
17655         ;;
17656 esac
17657
17658
17659
17660
17661
17662
17663 echo "$as_me:$LINENO: checking for pidfile" >&5
17664 echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
17665 if test "${ac_cv_funclib_pidfile+set}" = set; then
17666   echo $ECHO_N "(cached) $ECHO_C" >&6
17667 else
17668
17669 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
17670         ac_save_LIBS="$LIBS"
17671         for ac_lib in "" util; do
17672                 case "$ac_lib" in
17673                 "") ;;
17674                 yes) ac_lib="" ;;
17675                 no) continue ;;
17676                 -l*) ;;
17677                 *) ac_lib="-l$ac_lib" ;;
17678                 esac
17679                 LIBS=" $ac_lib  $ac_save_LIBS"
17680                 cat >conftest.$ac_ext <<_ACEOF
17681 #line $LINENO "configure"
17682 #include "confdefs.h"
17683 #ifdef HAVE_UTIL_H
17684 #include <util.h>
17685 #endif
17686 #ifdef F77_DUMMY_MAIN
17687 #  ifdef __cplusplus
17688      extern "C"
17689 #  endif
17690    int F77_DUMMY_MAIN() { return 1; }
17691 #endif
17692 int
17693 main ()
17694 {
17695 pidfile(0)
17696   ;
17697   return 0;
17698 }
17699 _ACEOF
17700 rm -f conftest.$ac_objext conftest$ac_exeext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702   (eval $ac_link) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); } &&
17706          { ac_try='test -s conftest$ac_exeext'
17707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708   (eval $ac_try) 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); }; }; then
17712   eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
17713 else
17714   echo "$as_me: failed program was:" >&5
17715 cat conftest.$ac_ext >&5
17716 fi
17717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17718         done
17719         eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
17720         LIBS="$ac_save_LIBS"
17721 fi
17722
17723 fi
17724
17725
17726 eval "ac_res=\$ac_cv_funclib_pidfile"
17727
17728 if false; then
17729
17730 for ac_func in pidfile
17731 do
17732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17733 echo "$as_me:$LINENO: checking for $ac_func" >&5
17734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17735 if eval "test \"\${$as_ac_var+set}\" = set"; then
17736   echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738   cat >conftest.$ac_ext <<_ACEOF
17739 #line $LINENO "configure"
17740 #include "confdefs.h"
17741 /* System header to define __stub macros and hopefully few prototypes,
17742     which can conflict with char $ac_func (); below.  */
17743 #include <assert.h>
17744 /* Override any gcc2 internal prototype to avoid an error.  */
17745 #ifdef __cplusplus
17746 extern "C"
17747 #endif
17748 /* We use char because int might match the return type of a gcc2
17749    builtin and then its argument prototype would still apply.  */
17750 char $ac_func ();
17751 char (*f) ();
17752
17753 #ifdef F77_DUMMY_MAIN
17754 #  ifdef __cplusplus
17755      extern "C"
17756 #  endif
17757    int F77_DUMMY_MAIN() { return 1; }
17758 #endif
17759 int
17760 main ()
17761 {
17762 /* The GNU C library defines this for functions which it implements
17763     to always fail with ENOSYS.  Some functions are actually named
17764     something starting with __ and the normal name is an alias.  */
17765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17766 choke me
17767 #else
17768 f = $ac_func;
17769 #endif
17770
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777   (eval $ac_link) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); } &&
17781          { ac_try='test -s conftest$ac_exeext'
17782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783   (eval $ac_try) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); }; }; then
17787   eval "$as_ac_var=yes"
17788 else
17789   echo "$as_me: failed program was:" >&5
17790 cat conftest.$ac_ext >&5
17791 eval "$as_ac_var=no"
17792 fi
17793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17794 fi
17795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17797 if test `eval echo '${'$as_ac_var'}'` = yes; then
17798   cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17800 _ACEOF
17801
17802 fi
17803 done
17804
17805 fi
17806 # pidfile
17807 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17808 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17809 eval "LIB_pidfile=$ac_res"
17810
17811 case "$ac_res" in
17812         yes)
17813         eval "ac_cv_func_pidfile=yes"
17814         eval "LIB_pidfile="
17815         cat >>confdefs.h <<_ACEOF
17816 #define $ac_tr_func 1
17817 _ACEOF
17818
17819         echo "$as_me:$LINENO: result: yes" >&5
17820 echo "${ECHO_T}yes" >&6
17821         ;;
17822         no)
17823         eval "ac_cv_func_pidfile=no"
17824         eval "LIB_pidfile="
17825         echo "$as_me:$LINENO: result: no" >&5
17826 echo "${ECHO_T}no" >&6
17827         ;;
17828         *)
17829         eval "ac_cv_func_pidfile=yes"
17830         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17831         cat >>confdefs.h <<_ACEOF
17832 #define $ac_tr_func 1
17833 _ACEOF
17834
17835         cat >>confdefs.h <<_ACEOF
17836 #define $ac_tr_lib 1
17837 _ACEOF
17838
17839         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
17840 echo "${ECHO_T}yes, in $ac_res" >&6
17841         ;;
17842 esac
17843
17844
17845
17846
17847
17848
17849
17850 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17851 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17852 if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
17853   echo $ECHO_N "(cached) $ECHO_C" >&6
17854 else
17855
17856 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
17857         ac_save_LIBS="$LIBS"
17858         for ac_lib in "" ; do
17859                 case "$ac_lib" in
17860                 "") ;;
17861                 yes) ac_lib="" ;;
17862                 no) continue ;;
17863                 -l*) ;;
17864                 *) ac_lib="-l$ac_lib" ;;
17865                 esac
17866                 LIBS=" $ac_lib  $ac_save_LIBS"
17867                 cat >conftest.$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17869 #include "confdefs.h"
17870 #ifdef HAVE_NETDB_H
17871 #include <netdb.h>
17872 #endif
17873 #ifdef F77_DUMMY_MAIN
17874 #  ifdef __cplusplus
17875      extern "C"
17876 #  endif
17877    int F77_DUMMY_MAIN() { return 1; }
17878 #endif
17879 int
17880 main ()
17881 {
17882 getaddrinfo(0,0,0,0)
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889   (eval $ac_link) 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); } &&
17893          { ac_try='test -s conftest$ac_exeext'
17894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895   (eval $ac_try) 2>&5
17896   ac_status=$?
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; }; then
17899   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 cat conftest.$ac_ext >&5
17903 fi
17904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17905         done
17906         eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
17907         LIBS="$ac_save_LIBS"
17908 fi
17909
17910 fi
17911
17912
17913 eval "ac_res=\$ac_cv_funclib_getaddrinfo"
17914
17915 if false; then
17916
17917 for ac_func in getaddrinfo
17918 do
17919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17920 echo "$as_me:$LINENO: checking for $ac_func" >&5
17921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17922 if eval "test \"\${$as_ac_var+set}\" = set"; then
17923   echo $ECHO_N "(cached) $ECHO_C" >&6
17924 else
17925   cat >conftest.$ac_ext <<_ACEOF
17926 #line $LINENO "configure"
17927 #include "confdefs.h"
17928 /* System header to define __stub macros and hopefully few prototypes,
17929     which can conflict with char $ac_func (); below.  */
17930 #include <assert.h>
17931 /* Override any gcc2 internal prototype to avoid an error.  */
17932 #ifdef __cplusplus
17933 extern "C"
17934 #endif
17935 /* We use char because int might match the return type of a gcc2
17936    builtin and then its argument prototype would still apply.  */
17937 char $ac_func ();
17938 char (*f) ();
17939
17940 #ifdef F77_DUMMY_MAIN
17941 #  ifdef __cplusplus
17942      extern "C"
17943 #  endif
17944    int F77_DUMMY_MAIN() { return 1; }
17945 #endif
17946 int
17947 main ()
17948 {
17949 /* The GNU C library defines this for functions which it implements
17950     to always fail with ENOSYS.  Some functions are actually named
17951     something starting with __ and the normal name is an alias.  */
17952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17953 choke me
17954 #else
17955 f = $ac_func;
17956 #endif
17957
17958   ;
17959   return 0;
17960 }
17961 _ACEOF
17962 rm -f conftest.$ac_objext conftest$ac_exeext
17963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964   (eval $ac_link) 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); } &&
17968          { ac_try='test -s conftest$ac_exeext'
17969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970   (eval $ac_try) 2>&5
17971   ac_status=$?
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); }; }; then
17974   eval "$as_ac_var=yes"
17975 else
17976   echo "$as_me: failed program was:" >&5
17977 cat conftest.$ac_ext >&5
17978 eval "$as_ac_var=no"
17979 fi
17980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17981 fi
17982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17984 if test `eval echo '${'$as_ac_var'}'` = yes; then
17985   cat >>confdefs.h <<_ACEOF
17986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17987 _ACEOF
17988
17989 fi
17990 done
17991
17992 fi
17993 # getaddrinfo
17994 eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17995 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17996 eval "LIB_getaddrinfo=$ac_res"
17997
17998 case "$ac_res" in
17999         yes)
18000         eval "ac_cv_func_getaddrinfo=yes"
18001         eval "LIB_getaddrinfo="
18002         cat >>confdefs.h <<_ACEOF
18003 #define $ac_tr_func 1
18004 _ACEOF
18005
18006         echo "$as_me:$LINENO: result: yes" >&5
18007 echo "${ECHO_T}yes" >&6
18008         ;;
18009         no)
18010         eval "ac_cv_func_getaddrinfo=no"
18011         eval "LIB_getaddrinfo="
18012         echo "$as_me:$LINENO: result: no" >&5
18013 echo "${ECHO_T}no" >&6
18014         ;;
18015         *)
18016         eval "ac_cv_func_getaddrinfo=yes"
18017         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18018         cat >>confdefs.h <<_ACEOF
18019 #define $ac_tr_func 1
18020 _ACEOF
18021
18022         cat >>confdefs.h <<_ACEOF
18023 #define $ac_tr_lib 1
18024 _ACEOF
18025
18026         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18027 echo "${ECHO_T}yes, in $ac_res" >&6
18028         ;;
18029 esac
18030
18031
18032 if test -n "$LIB_getaddrinfo"; then
18033         LIBS="$LIB_getaddrinfo $LIBS"
18034 fi
18035
18036 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
18037         LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
18038 fi
18039
18040
18041
18042
18043
18044
18045 echo "$as_me:$LINENO: checking for getnameinfo" >&5
18046 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
18047 if test "${ac_cv_funclib_getnameinfo+set}" = set; then
18048   echo $ECHO_N "(cached) $ECHO_C" >&6
18049 else
18050
18051 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
18052         ac_save_LIBS="$LIBS"
18053         for ac_lib in "" ; do
18054                 case "$ac_lib" in
18055                 "") ;;
18056                 yes) ac_lib="" ;;
18057                 no) continue ;;
18058                 -l*) ;;
18059                 *) ac_lib="-l$ac_lib" ;;
18060                 esac
18061                 LIBS=" $ac_lib  $ac_save_LIBS"
18062                 cat >conftest.$ac_ext <<_ACEOF
18063 #line $LINENO "configure"
18064 #include "confdefs.h"
18065 #ifdef HAVE_NETDB_H
18066 #include <netdb.h>
18067 #endif
18068 #ifdef F77_DUMMY_MAIN
18069 #  ifdef __cplusplus
18070      extern "C"
18071 #  endif
18072    int F77_DUMMY_MAIN() { return 1; }
18073 #endif
18074 int
18075 main ()
18076 {
18077 getnameinfo(0,0,0,0,0,0,0)
18078   ;
18079   return 0;
18080 }
18081 _ACEOF
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084   (eval $ac_link) 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); } &&
18088          { ac_try='test -s conftest$ac_exeext'
18089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090   (eval $ac_try) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; }; then
18094   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
18095 else
18096   echo "$as_me: failed program was:" >&5
18097 cat conftest.$ac_ext >&5
18098 fi
18099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18100         done
18101         eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
18102         LIBS="$ac_save_LIBS"
18103 fi
18104
18105 fi
18106
18107
18108 eval "ac_res=\$ac_cv_funclib_getnameinfo"
18109
18110 if false; then
18111
18112 for ac_func in getnameinfo
18113 do
18114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18115 echo "$as_me:$LINENO: checking for $ac_func" >&5
18116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18117 if eval "test \"\${$as_ac_var+set}\" = set"; then
18118   echo $ECHO_N "(cached) $ECHO_C" >&6
18119 else
18120   cat >conftest.$ac_ext <<_ACEOF
18121 #line $LINENO "configure"
18122 #include "confdefs.h"
18123 /* System header to define __stub macros and hopefully few prototypes,
18124     which can conflict with char $ac_func (); below.  */
18125 #include <assert.h>
18126 /* Override any gcc2 internal prototype to avoid an error.  */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 /* We use char because int might match the return type of a gcc2
18131    builtin and then its argument prototype would still apply.  */
18132 char $ac_func ();
18133 char (*f) ();
18134
18135 #ifdef F77_DUMMY_MAIN
18136 #  ifdef __cplusplus
18137      extern "C"
18138 #  endif
18139    int F77_DUMMY_MAIN() { return 1; }
18140 #endif
18141 int
18142 main ()
18143 {
18144 /* The GNU C library defines this for functions which it implements
18145     to always fail with ENOSYS.  Some functions are actually named
18146     something starting with __ and the normal name is an alias.  */
18147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18148 choke me
18149 #else
18150 f = $ac_func;
18151 #endif
18152
18153   ;
18154   return 0;
18155 }
18156 _ACEOF
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18159   (eval $ac_link) 2>&5
18160   ac_status=$?
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); } &&
18163          { ac_try='test -s conftest$ac_exeext'
18164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165   (eval $ac_try) 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; }; then
18169   eval "$as_ac_var=yes"
18170 else
18171   echo "$as_me: failed program was:" >&5
18172 cat conftest.$ac_ext >&5
18173 eval "$as_ac_var=no"
18174 fi
18175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18176 fi
18177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18179 if test `eval echo '${'$as_ac_var'}'` = yes; then
18180   cat >>confdefs.h <<_ACEOF
18181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18182 _ACEOF
18183
18184 fi
18185 done
18186
18187 fi
18188 # getnameinfo
18189 eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18190 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18191 eval "LIB_getnameinfo=$ac_res"
18192
18193 case "$ac_res" in
18194         yes)
18195         eval "ac_cv_func_getnameinfo=yes"
18196         eval "LIB_getnameinfo="
18197         cat >>confdefs.h <<_ACEOF
18198 #define $ac_tr_func 1
18199 _ACEOF
18200
18201         echo "$as_me:$LINENO: result: yes" >&5
18202 echo "${ECHO_T}yes" >&6
18203         ;;
18204         no)
18205         eval "ac_cv_func_getnameinfo=no"
18206         eval "LIB_getnameinfo="
18207         echo "$as_me:$LINENO: result: no" >&5
18208 echo "${ECHO_T}no" >&6
18209         ;;
18210         *)
18211         eval "ac_cv_func_getnameinfo=yes"
18212         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18213         cat >>confdefs.h <<_ACEOF
18214 #define $ac_tr_func 1
18215 _ACEOF
18216
18217         cat >>confdefs.h <<_ACEOF
18218 #define $ac_tr_lib 1
18219 _ACEOF
18220
18221         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18222 echo "${ECHO_T}yes, in $ac_res" >&6
18223         ;;
18224 esac
18225
18226
18227 if test -n "$LIB_getnameinfo"; then
18228         LIBS="$LIB_getnameinfo $LIBS"
18229 fi
18230
18231 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
18232         LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
18233 fi
18234
18235
18236
18237
18238
18239
18240 echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
18241 echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
18242 if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
18243   echo $ECHO_N "(cached) $ECHO_C" >&6
18244 else
18245
18246 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
18247         ac_save_LIBS="$LIBS"
18248         for ac_lib in "" ; do
18249                 case "$ac_lib" in
18250                 "") ;;
18251                 yes) ac_lib="" ;;
18252                 no) continue ;;
18253                 -l*) ;;
18254                 *) ac_lib="-l$ac_lib" ;;
18255                 esac
18256                 LIBS=" $ac_lib  $ac_save_LIBS"
18257                 cat >conftest.$ac_ext <<_ACEOF
18258 #line $LINENO "configure"
18259 #include "confdefs.h"
18260 #ifdef HAVE_NETDB_H
18261 #include <netdb.h>
18262 #endif
18263 #ifdef F77_DUMMY_MAIN
18264 #  ifdef __cplusplus
18265      extern "C"
18266 #  endif
18267    int F77_DUMMY_MAIN() { return 1; }
18268 #endif
18269 int
18270 main ()
18271 {
18272 freeaddrinfo(0)
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 rm -f conftest.$ac_objext conftest$ac_exeext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18279   (eval $ac_link) 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); } &&
18283          { ac_try='test -s conftest$ac_exeext'
18284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285   (eval $ac_try) 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; }; then
18289   eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
18290 else
18291   echo "$as_me: failed program was:" >&5
18292 cat conftest.$ac_ext >&5
18293 fi
18294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18295         done
18296         eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
18297         LIBS="$ac_save_LIBS"
18298 fi
18299
18300 fi
18301
18302
18303 eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
18304
18305 if false; then
18306
18307 for ac_func in freeaddrinfo
18308 do
18309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18310 echo "$as_me:$LINENO: checking for $ac_func" >&5
18311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18312 if eval "test \"\${$as_ac_var+set}\" = set"; then
18313   echo $ECHO_N "(cached) $ECHO_C" >&6
18314 else
18315   cat >conftest.$ac_ext <<_ACEOF
18316 #line $LINENO "configure"
18317 #include "confdefs.h"
18318 /* System header to define __stub macros and hopefully few prototypes,
18319     which can conflict with char $ac_func (); below.  */
18320 #include <assert.h>
18321 /* Override any gcc2 internal prototype to avoid an error.  */
18322 #ifdef __cplusplus
18323 extern "C"
18324 #endif
18325 /* We use char because int might match the return type of a gcc2
18326    builtin and then its argument prototype would still apply.  */
18327 char $ac_func ();
18328 char (*f) ();
18329
18330 #ifdef F77_DUMMY_MAIN
18331 #  ifdef __cplusplus
18332      extern "C"
18333 #  endif
18334    int F77_DUMMY_MAIN() { return 1; }
18335 #endif
18336 int
18337 main ()
18338 {
18339 /* The GNU C library defines this for functions which it implements
18340     to always fail with ENOSYS.  Some functions are actually named
18341     something starting with __ and the normal name is an alias.  */
18342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18343 choke me
18344 #else
18345 f = $ac_func;
18346 #endif
18347
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354   (eval $ac_link) 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); } &&
18358          { ac_try='test -s conftest$ac_exeext'
18359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360   (eval $ac_try) 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; }; then
18364   eval "$as_ac_var=yes"
18365 else
18366   echo "$as_me: failed program was:" >&5
18367 cat conftest.$ac_ext >&5
18368 eval "$as_ac_var=no"
18369 fi
18370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18371 fi
18372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18374 if test `eval echo '${'$as_ac_var'}'` = yes; then
18375   cat >>confdefs.h <<_ACEOF
18376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18377 _ACEOF
18378
18379 fi
18380 done
18381
18382 fi
18383 # freeaddrinfo
18384 eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18385 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18386 eval "LIB_freeaddrinfo=$ac_res"
18387
18388 case "$ac_res" in
18389         yes)
18390         eval "ac_cv_func_freeaddrinfo=yes"
18391         eval "LIB_freeaddrinfo="
18392         cat >>confdefs.h <<_ACEOF
18393 #define $ac_tr_func 1
18394 _ACEOF
18395
18396         echo "$as_me:$LINENO: result: yes" >&5
18397 echo "${ECHO_T}yes" >&6
18398         ;;
18399         no)
18400         eval "ac_cv_func_freeaddrinfo=no"
18401         eval "LIB_freeaddrinfo="
18402         echo "$as_me:$LINENO: result: no" >&5
18403 echo "${ECHO_T}no" >&6
18404         ;;
18405         *)
18406         eval "ac_cv_func_freeaddrinfo=yes"
18407         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18408         cat >>confdefs.h <<_ACEOF
18409 #define $ac_tr_func 1
18410 _ACEOF
18411
18412         cat >>confdefs.h <<_ACEOF
18413 #define $ac_tr_lib 1
18414 _ACEOF
18415
18416         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18417 echo "${ECHO_T}yes, in $ac_res" >&6
18418         ;;
18419 esac
18420
18421
18422 if test -n "$LIB_freeaddrinfo"; then
18423         LIBS="$LIB_freeaddrinfo $LIBS"
18424 fi
18425
18426 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
18427         LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
18428 fi
18429
18430
18431
18432
18433
18434
18435 echo "$as_me:$LINENO: checking for gai_strerror" >&5
18436 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
18437 if test "${ac_cv_funclib_gai_strerror+set}" = set; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440
18441 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
18442         ac_save_LIBS="$LIBS"
18443         for ac_lib in "" ; do
18444                 case "$ac_lib" in
18445                 "") ;;
18446                 yes) ac_lib="" ;;
18447                 no) continue ;;
18448                 -l*) ;;
18449                 *) ac_lib="-l$ac_lib" ;;
18450                 esac
18451                 LIBS=" $ac_lib  $ac_save_LIBS"
18452                 cat >conftest.$ac_ext <<_ACEOF
18453 #line $LINENO "configure"
18454 #include "confdefs.h"
18455 #ifdef HAVE_NETDB_H
18456 #include <netdb.h>
18457 #endif
18458 #ifdef F77_DUMMY_MAIN
18459 #  ifdef __cplusplus
18460      extern "C"
18461 #  endif
18462    int F77_DUMMY_MAIN() { return 1; }
18463 #endif
18464 int
18465 main ()
18466 {
18467 gai_strerror(0)
18468   ;
18469   return 0;
18470 }
18471 _ACEOF
18472 rm -f conftest.$ac_objext conftest$ac_exeext
18473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18474   (eval $ac_link) 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); } &&
18478          { ac_try='test -s conftest$ac_exeext'
18479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480   (eval $ac_try) 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; }; then
18484   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
18485 else
18486   echo "$as_me: failed program was:" >&5
18487 cat conftest.$ac_ext >&5
18488 fi
18489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18490         done
18491         eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
18492         LIBS="$ac_save_LIBS"
18493 fi
18494
18495 fi
18496
18497
18498 eval "ac_res=\$ac_cv_funclib_gai_strerror"
18499
18500 if false; then
18501
18502 for ac_func in gai_strerror
18503 do
18504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18505 echo "$as_me:$LINENO: checking for $ac_func" >&5
18506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18507 if eval "test \"\${$as_ac_var+set}\" = set"; then
18508   echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510   cat >conftest.$ac_ext <<_ACEOF
18511 #line $LINENO "configure"
18512 #include "confdefs.h"
18513 /* System header to define __stub macros and hopefully few prototypes,
18514     which can conflict with char $ac_func (); below.  */
18515 #include <assert.h>
18516 /* Override any gcc2 internal prototype to avoid an error.  */
18517 #ifdef __cplusplus
18518 extern "C"
18519 #endif
18520 /* We use char because int might match the return type of a gcc2
18521    builtin and then its argument prototype would still apply.  */
18522 char $ac_func ();
18523 char (*f) ();
18524
18525 #ifdef F77_DUMMY_MAIN
18526 #  ifdef __cplusplus
18527      extern "C"
18528 #  endif
18529    int F77_DUMMY_MAIN() { return 1; }
18530 #endif
18531 int
18532 main ()
18533 {
18534 /* The GNU C library defines this for functions which it implements
18535     to always fail with ENOSYS.  Some functions are actually named
18536     something starting with __ and the normal name is an alias.  */
18537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18538 choke me
18539 #else
18540 f = $ac_func;
18541 #endif
18542
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18549   (eval $ac_link) 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); } &&
18553          { ac_try='test -s conftest$ac_exeext'
18554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555   (eval $ac_try) 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; }; then
18559   eval "$as_ac_var=yes"
18560 else
18561   echo "$as_me: failed program was:" >&5
18562 cat conftest.$ac_ext >&5
18563 eval "$as_ac_var=no"
18564 fi
18565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18566 fi
18567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18569 if test `eval echo '${'$as_ac_var'}'` = yes; then
18570   cat >>confdefs.h <<_ACEOF
18571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18572 _ACEOF
18573
18574 fi
18575 done
18576
18577 fi
18578 # gai_strerror
18579 eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18580 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18581 eval "LIB_gai_strerror=$ac_res"
18582
18583 case "$ac_res" in
18584         yes)
18585         eval "ac_cv_func_gai_strerror=yes"
18586         eval "LIB_gai_strerror="
18587         cat >>confdefs.h <<_ACEOF
18588 #define $ac_tr_func 1
18589 _ACEOF
18590
18591         echo "$as_me:$LINENO: result: yes" >&5
18592 echo "${ECHO_T}yes" >&6
18593         ;;
18594         no)
18595         eval "ac_cv_func_gai_strerror=no"
18596         eval "LIB_gai_strerror="
18597         echo "$as_me:$LINENO: result: no" >&5
18598 echo "${ECHO_T}no" >&6
18599         ;;
18600         *)
18601         eval "ac_cv_func_gai_strerror=yes"
18602         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18603         cat >>confdefs.h <<_ACEOF
18604 #define $ac_tr_func 1
18605 _ACEOF
18606
18607         cat >>confdefs.h <<_ACEOF
18608 #define $ac_tr_lib 1
18609 _ACEOF
18610
18611         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
18612 echo "${ECHO_T}yes, in $ac_res" >&6
18613         ;;
18614 esac
18615
18616
18617 if test -n "$LIB_gai_strerror"; then
18618         LIBS="$LIB_gai_strerror $LIBS"
18619 fi
18620
18621 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
18622         LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
18623 fi
18624
18625
18626 echo "$as_me:$LINENO: checking for chown" >&5
18627 echo $ECHO_N "checking for chown... $ECHO_C" >&6
18628 if test "${ac_cv_func_chown+set}" = set; then
18629   echo $ECHO_N "(cached) $ECHO_C" >&6
18630 else
18631   cat >conftest.$ac_ext <<_ACEOF
18632 #line $LINENO "configure"
18633 #include "confdefs.h"
18634 /* System header to define __stub macros and hopefully few prototypes,
18635     which can conflict with char chown (); below.  */
18636 #include <assert.h>
18637 /* Override any gcc2 internal prototype to avoid an error.  */
18638 #ifdef __cplusplus
18639 extern "C"
18640 #endif
18641 /* We use char because int might match the return type of a gcc2
18642    builtin and then its argument prototype would still apply.  */
18643 char chown ();
18644 char (*f) ();
18645
18646 #ifdef F77_DUMMY_MAIN
18647 #  ifdef __cplusplus
18648      extern "C"
18649 #  endif
18650    int F77_DUMMY_MAIN() { return 1; }
18651 #endif
18652 int
18653 main ()
18654 {
18655 /* The GNU C library defines this for functions which it implements
18656     to always fail with ENOSYS.  Some functions are actually named
18657     something starting with __ and the normal name is an alias.  */
18658 #if defined (__stub_chown) || defined (__stub___chown)
18659 choke me
18660 #else
18661 f = chown;
18662 #endif
18663
18664   ;
18665   return 0;
18666 }
18667 _ACEOF
18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18670   (eval $ac_link) 2>&5
18671   ac_status=$?
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); } &&
18674          { ac_try='test -s conftest$ac_exeext'
18675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676   (eval $ac_try) 2>&5
18677   ac_status=$?
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); }; }; then
18680   ac_cv_func_chown=yes
18681 else
18682   echo "$as_me: failed program was:" >&5
18683 cat conftest.$ac_ext >&5
18684 ac_cv_func_chown=no
18685 fi
18686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18687 fi
18688 echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
18689 echo "${ECHO_T}$ac_cv_func_chown" >&6
18690 if test $ac_cv_func_chown = yes; then
18691
18692 cat >>confdefs.h <<_ACEOF
18693 #define HAVE_CHOWN 1
18694 _ACEOF
18695
18696 else
18697   LIBOBJS="$LIBOBJS chown.$ac_objext"
18698 fi
18699 echo "$as_me:$LINENO: checking for copyhostent" >&5
18700 echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
18701 if test "${ac_cv_func_copyhostent+set}" = set; then
18702   echo $ECHO_N "(cached) $ECHO_C" >&6
18703 else
18704   cat >conftest.$ac_ext <<_ACEOF
18705 #line $LINENO "configure"
18706 #include "confdefs.h"
18707 /* System header to define __stub macros and hopefully few prototypes,
18708     which can conflict with char copyhostent (); below.  */
18709 #include <assert.h>
18710 /* Override any gcc2 internal prototype to avoid an error.  */
18711 #ifdef __cplusplus
18712 extern "C"
18713 #endif
18714 /* We use char because int might match the return type of a gcc2
18715    builtin and then its argument prototype would still apply.  */
18716 char copyhostent ();
18717 char (*f) ();
18718
18719 #ifdef F77_DUMMY_MAIN
18720 #  ifdef __cplusplus
18721      extern "C"
18722 #  endif
18723    int F77_DUMMY_MAIN() { return 1; }
18724 #endif
18725 int
18726 main ()
18727 {
18728 /* The GNU C library defines this for functions which it implements
18729     to always fail with ENOSYS.  Some functions are actually named
18730     something starting with __ and the normal name is an alias.  */
18731 #if defined (__stub_copyhostent) || defined (__stub___copyhostent)
18732 choke me
18733 #else
18734 f = copyhostent;
18735 #endif
18736
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743   (eval $ac_link) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); } &&
18747          { ac_try='test -s conftest$ac_exeext'
18748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749   (eval $ac_try) 2>&5
18750   ac_status=$?
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); }; }; then
18753   ac_cv_func_copyhostent=yes
18754 else
18755   echo "$as_me: failed program was:" >&5
18756 cat conftest.$ac_ext >&5
18757 ac_cv_func_copyhostent=no
18758 fi
18759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18760 fi
18761 echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
18762 echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
18763 if test $ac_cv_func_copyhostent = yes; then
18764
18765 cat >>confdefs.h <<_ACEOF
18766 #define HAVE_COPYHOSTENT 1
18767 _ACEOF
18768
18769 else
18770   LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
18771 fi
18772 echo "$as_me:$LINENO: checking for daemon" >&5
18773 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
18774 if test "${ac_cv_func_daemon+set}" = set; then
18775   echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777   cat >conftest.$ac_ext <<_ACEOF
18778 #line $LINENO "configure"
18779 #include "confdefs.h"
18780 /* System header to define __stub macros and hopefully few prototypes,
18781     which can conflict with char daemon (); below.  */
18782 #include <assert.h>
18783 /* Override any gcc2 internal prototype to avoid an error.  */
18784 #ifdef __cplusplus
18785 extern "C"
18786 #endif
18787 /* We use char because int might match the return type of a gcc2
18788    builtin and then its argument prototype would still apply.  */
18789 char daemon ();
18790 char (*f) ();
18791
18792 #ifdef F77_DUMMY_MAIN
18793 #  ifdef __cplusplus
18794      extern "C"
18795 #  endif
18796    int F77_DUMMY_MAIN() { return 1; }
18797 #endif
18798 int
18799 main ()
18800 {
18801 /* The GNU C library defines this for functions which it implements
18802     to always fail with ENOSYS.  Some functions are actually named
18803     something starting with __ and the normal name is an alias.  */
18804 #if defined (__stub_daemon) || defined (__stub___daemon)
18805 choke me
18806 #else
18807 f = daemon;
18808 #endif
18809
18810   ;
18811   return 0;
18812 }
18813 _ACEOF
18814 rm -f conftest.$ac_objext conftest$ac_exeext
18815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18816   (eval $ac_link) 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); } &&
18820          { ac_try='test -s conftest$ac_exeext'
18821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822   (eval $ac_try) 2>&5
18823   ac_status=$?
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); }; }; then
18826   ac_cv_func_daemon=yes
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 cat conftest.$ac_ext >&5
18830 ac_cv_func_daemon=no
18831 fi
18832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18833 fi
18834 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
18835 echo "${ECHO_T}$ac_cv_func_daemon" >&6
18836 if test $ac_cv_func_daemon = yes; then
18837
18838 cat >>confdefs.h <<_ACEOF
18839 #define HAVE_DAEMON 1
18840 _ACEOF
18841
18842 else
18843   LIBOBJS="$LIBOBJS daemon.$ac_objext"
18844 fi
18845 echo "$as_me:$LINENO: checking for ecalloc" >&5
18846 echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
18847 if test "${ac_cv_func_ecalloc+set}" = set; then
18848   echo $ECHO_N "(cached) $ECHO_C" >&6
18849 else
18850   cat >conftest.$ac_ext <<_ACEOF
18851 #line $LINENO "configure"
18852 #include "confdefs.h"
18853 /* System header to define __stub macros and hopefully few prototypes,
18854     which can conflict with char ecalloc (); below.  */
18855 #include <assert.h>
18856 /* Override any gcc2 internal prototype to avoid an error.  */
18857 #ifdef __cplusplus
18858 extern "C"
18859 #endif
18860 /* We use char because int might match the return type of a gcc2
18861    builtin and then its argument prototype would still apply.  */
18862 char ecalloc ();
18863 char (*f) ();
18864
18865 #ifdef F77_DUMMY_MAIN
18866 #  ifdef __cplusplus
18867      extern "C"
18868 #  endif
18869    int F77_DUMMY_MAIN() { return 1; }
18870 #endif
18871 int
18872 main ()
18873 {
18874 /* The GNU C library defines this for functions which it implements
18875     to always fail with ENOSYS.  Some functions are actually named
18876     something starting with __ and the normal name is an alias.  */
18877 #if defined (__stub_ecalloc) || defined (__stub___ecalloc)
18878 choke me
18879 #else
18880 f = ecalloc;
18881 #endif
18882
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18889   (eval $ac_link) 2>&5
18890   ac_status=$?
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); } &&
18893          { ac_try='test -s conftest$ac_exeext'
18894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895   (eval $ac_try) 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; }; then
18899   ac_cv_func_ecalloc=yes
18900 else
18901   echo "$as_me: failed program was:" >&5
18902 cat conftest.$ac_ext >&5
18903 ac_cv_func_ecalloc=no
18904 fi
18905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18906 fi
18907 echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
18908 echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
18909 if test $ac_cv_func_ecalloc = yes; then
18910
18911 cat >>confdefs.h <<_ACEOF
18912 #define HAVE_ECALLOC 1
18913 _ACEOF
18914
18915 else
18916   LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
18917 fi
18918 echo "$as_me:$LINENO: checking for emalloc" >&5
18919 echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
18920 if test "${ac_cv_func_emalloc+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923   cat >conftest.$ac_ext <<_ACEOF
18924 #line $LINENO "configure"
18925 #include "confdefs.h"
18926 /* System header to define __stub macros and hopefully few prototypes,
18927     which can conflict with char emalloc (); below.  */
18928 #include <assert.h>
18929 /* Override any gcc2 internal prototype to avoid an error.  */
18930 #ifdef __cplusplus
18931 extern "C"
18932 #endif
18933 /* We use char because int might match the return type of a gcc2
18934    builtin and then its argument prototype would still apply.  */
18935 char emalloc ();
18936 char (*f) ();
18937
18938 #ifdef F77_DUMMY_MAIN
18939 #  ifdef __cplusplus
18940      extern "C"
18941 #  endif
18942    int F77_DUMMY_MAIN() { return 1; }
18943 #endif
18944 int
18945 main ()
18946 {
18947 /* The GNU C library defines this for functions which it implements
18948     to always fail with ENOSYS.  Some functions are actually named
18949     something starting with __ and the normal name is an alias.  */
18950 #if defined (__stub_emalloc) || defined (__stub___emalloc)
18951 choke me
18952 #else
18953 f = emalloc;
18954 #endif
18955
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18962   (eval $ac_link) 2>&5
18963   ac_status=$?
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); } &&
18966          { ac_try='test -s conftest$ac_exeext'
18967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968   (eval $ac_try) 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; }; then
18972   ac_cv_func_emalloc=yes
18973 else
18974   echo "$as_me: failed program was:" >&5
18975 cat conftest.$ac_ext >&5
18976 ac_cv_func_emalloc=no
18977 fi
18978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18979 fi
18980 echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
18981 echo "${ECHO_T}$ac_cv_func_emalloc" >&6
18982 if test $ac_cv_func_emalloc = yes; then
18983
18984 cat >>confdefs.h <<_ACEOF
18985 #define HAVE_EMALLOC 1
18986 _ACEOF
18987
18988 else
18989   LIBOBJS="$LIBOBJS emalloc.$ac_objext"
18990 fi
18991 echo "$as_me:$LINENO: checking for erealloc" >&5
18992 echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
18993 if test "${ac_cv_func_erealloc+set}" = set; then
18994   echo $ECHO_N "(cached) $ECHO_C" >&6
18995 else
18996   cat >conftest.$ac_ext <<_ACEOF
18997 #line $LINENO "configure"
18998 #include "confdefs.h"
18999 /* System header to define __stub macros and hopefully few prototypes,
19000     which can conflict with char erealloc (); below.  */
19001 #include <assert.h>
19002 /* Override any gcc2 internal prototype to avoid an error.  */
19003 #ifdef __cplusplus
19004 extern "C"
19005 #endif
19006 /* We use char because int might match the return type of a gcc2
19007    builtin and then its argument prototype would still apply.  */
19008 char erealloc ();
19009 char (*f) ();
19010
19011 #ifdef F77_DUMMY_MAIN
19012 #  ifdef __cplusplus
19013      extern "C"
19014 #  endif
19015    int F77_DUMMY_MAIN() { return 1; }
19016 #endif
19017 int
19018 main ()
19019 {
19020 /* The GNU C library defines this for functions which it implements
19021     to always fail with ENOSYS.  Some functions are actually named
19022     something starting with __ and the normal name is an alias.  */
19023 #if defined (__stub_erealloc) || defined (__stub___erealloc)
19024 choke me
19025 #else
19026 f = erealloc;
19027 #endif
19028
19029   ;
19030   return 0;
19031 }
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19035   (eval $ac_link) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } &&
19039          { ac_try='test -s conftest$ac_exeext'
19040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041   (eval $ac_try) 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; }; then
19045   ac_cv_func_erealloc=yes
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 cat conftest.$ac_ext >&5
19049 ac_cv_func_erealloc=no
19050 fi
19051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19052 fi
19053 echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
19054 echo "${ECHO_T}$ac_cv_func_erealloc" >&6
19055 if test $ac_cv_func_erealloc = yes; then
19056
19057 cat >>confdefs.h <<_ACEOF
19058 #define HAVE_EREALLOC 1
19059 _ACEOF
19060
19061 else
19062   LIBOBJS="$LIBOBJS erealloc.$ac_objext"
19063 fi
19064 echo "$as_me:$LINENO: checking for estrdup" >&5
19065 echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
19066 if test "${ac_cv_func_estrdup+set}" = set; then
19067   echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069   cat >conftest.$ac_ext <<_ACEOF
19070 #line $LINENO "configure"
19071 #include "confdefs.h"
19072 /* System header to define __stub macros and hopefully few prototypes,
19073     which can conflict with char estrdup (); below.  */
19074 #include <assert.h>
19075 /* Override any gcc2 internal prototype to avoid an error.  */
19076 #ifdef __cplusplus
19077 extern "C"
19078 #endif
19079 /* We use char because int might match the return type of a gcc2
19080    builtin and then its argument prototype would still apply.  */
19081 char estrdup ();
19082 char (*f) ();
19083
19084 #ifdef F77_DUMMY_MAIN
19085 #  ifdef __cplusplus
19086      extern "C"
19087 #  endif
19088    int F77_DUMMY_MAIN() { return 1; }
19089 #endif
19090 int
19091 main ()
19092 {
19093 /* The GNU C library defines this for functions which it implements
19094     to always fail with ENOSYS.  Some functions are actually named
19095     something starting with __ and the normal name is an alias.  */
19096 #if defined (__stub_estrdup) || defined (__stub___estrdup)
19097 choke me
19098 #else
19099 f = estrdup;
19100 #endif
19101
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 rm -f conftest.$ac_objext conftest$ac_exeext
19107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19108   (eval $ac_link) 2>&5
19109   ac_status=$?
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } &&
19112          { ac_try='test -s conftest$ac_exeext'
19113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114   (eval $ac_try) 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); }; }; then
19118   ac_cv_func_estrdup=yes
19119 else
19120   echo "$as_me: failed program was:" >&5
19121 cat conftest.$ac_ext >&5
19122 ac_cv_func_estrdup=no
19123 fi
19124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19125 fi
19126 echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
19127 echo "${ECHO_T}$ac_cv_func_estrdup" >&6
19128 if test $ac_cv_func_estrdup = yes; then
19129
19130 cat >>confdefs.h <<_ACEOF
19131 #define HAVE_ESTRDUP 1
19132 _ACEOF
19133
19134 else
19135   LIBOBJS="$LIBOBJS estrdup.$ac_objext"
19136 fi
19137 echo "$as_me:$LINENO: checking for err" >&5
19138 echo $ECHO_N "checking for err... $ECHO_C" >&6
19139 if test "${ac_cv_func_err+set}" = set; then
19140   echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142   cat >conftest.$ac_ext <<_ACEOF
19143 #line $LINENO "configure"
19144 #include "confdefs.h"
19145 /* System header to define __stub macros and hopefully few prototypes,
19146     which can conflict with char err (); below.  */
19147 #include <assert.h>
19148 /* Override any gcc2 internal prototype to avoid an error.  */
19149 #ifdef __cplusplus
19150 extern "C"
19151 #endif
19152 /* We use char because int might match the return type of a gcc2
19153    builtin and then its argument prototype would still apply.  */
19154 char err ();
19155 char (*f) ();
19156
19157 #ifdef F77_DUMMY_MAIN
19158 #  ifdef __cplusplus
19159      extern "C"
19160 #  endif
19161    int F77_DUMMY_MAIN() { return 1; }
19162 #endif
19163 int
19164 main ()
19165 {
19166 /* The GNU C library defines this for functions which it implements
19167     to always fail with ENOSYS.  Some functions are actually named
19168     something starting with __ and the normal name is an alias.  */
19169 #if defined (__stub_err) || defined (__stub___err)
19170 choke me
19171 #else
19172 f = err;
19173 #endif
19174
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181   (eval $ac_link) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); } &&
19185          { ac_try='test -s conftest$ac_exeext'
19186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187   (eval $ac_try) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; }; then
19191   ac_cv_func_err=yes
19192 else
19193   echo "$as_me: failed program was:" >&5
19194 cat conftest.$ac_ext >&5
19195 ac_cv_func_err=no
19196 fi
19197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19198 fi
19199 echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
19200 echo "${ECHO_T}$ac_cv_func_err" >&6
19201 if test $ac_cv_func_err = yes; then
19202
19203 cat >>confdefs.h <<_ACEOF
19204 #define HAVE_ERR 1
19205 _ACEOF
19206
19207 else
19208   LIBOBJS="$LIBOBJS err.$ac_objext"
19209 fi
19210 echo "$as_me:$LINENO: checking for errx" >&5
19211 echo $ECHO_N "checking for errx... $ECHO_C" >&6
19212 if test "${ac_cv_func_errx+set}" = set; then
19213   echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215   cat >conftest.$ac_ext <<_ACEOF
19216 #line $LINENO "configure"
19217 #include "confdefs.h"
19218 /* System header to define __stub macros and hopefully few prototypes,
19219     which can conflict with char errx (); below.  */
19220 #include <assert.h>
19221 /* Override any gcc2 internal prototype to avoid an error.  */
19222 #ifdef __cplusplus
19223 extern "C"
19224 #endif
19225 /* We use char because int might match the return type of a gcc2
19226    builtin and then its argument prototype would still apply.  */
19227 char errx ();
19228 char (*f) ();
19229
19230 #ifdef F77_DUMMY_MAIN
19231 #  ifdef __cplusplus
19232      extern "C"
19233 #  endif
19234    int F77_DUMMY_MAIN() { return 1; }
19235 #endif
19236 int
19237 main ()
19238 {
19239 /* The GNU C library defines this for functions which it implements
19240     to always fail with ENOSYS.  Some functions are actually named
19241     something starting with __ and the normal name is an alias.  */
19242 #if defined (__stub_errx) || defined (__stub___errx)
19243 choke me
19244 #else
19245 f = errx;
19246 #endif
19247
19248   ;
19249   return 0;
19250 }
19251 _ACEOF
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19254   (eval $ac_link) 2>&5
19255   ac_status=$?
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); } &&
19258          { ac_try='test -s conftest$ac_exeext'
19259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260   (eval $ac_try) 2>&5
19261   ac_status=$?
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); }; }; then
19264   ac_cv_func_errx=yes
19265 else
19266   echo "$as_me: failed program was:" >&5
19267 cat conftest.$ac_ext >&5
19268 ac_cv_func_errx=no
19269 fi
19270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19271 fi
19272 echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
19273 echo "${ECHO_T}$ac_cv_func_errx" >&6
19274 if test $ac_cv_func_errx = yes; then
19275
19276 cat >>confdefs.h <<_ACEOF
19277 #define HAVE_ERRX 1
19278 _ACEOF
19279
19280 else
19281   LIBOBJS="$LIBOBJS errx.$ac_objext"
19282 fi
19283 echo "$as_me:$LINENO: checking for fchown" >&5
19284 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
19285 if test "${ac_cv_func_fchown+set}" = set; then
19286   echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288   cat >conftest.$ac_ext <<_ACEOF
19289 #line $LINENO "configure"
19290 #include "confdefs.h"
19291 /* System header to define __stub macros and hopefully few prototypes,
19292     which can conflict with char fchown (); below.  */
19293 #include <assert.h>
19294 /* Override any gcc2 internal prototype to avoid an error.  */
19295 #ifdef __cplusplus
19296 extern "C"
19297 #endif
19298 /* We use char because int might match the return type of a gcc2
19299    builtin and then its argument prototype would still apply.  */
19300 char fchown ();
19301 char (*f) ();
19302
19303 #ifdef F77_DUMMY_MAIN
19304 #  ifdef __cplusplus
19305      extern "C"
19306 #  endif
19307    int F77_DUMMY_MAIN() { return 1; }
19308 #endif
19309 int
19310 main ()
19311 {
19312 /* The GNU C library defines this for functions which it implements
19313     to always fail with ENOSYS.  Some functions are actually named
19314     something starting with __ and the normal name is an alias.  */
19315 #if defined (__stub_fchown) || defined (__stub___fchown)
19316 choke me
19317 #else
19318 f = fchown;
19319 #endif
19320
19321   ;
19322   return 0;
19323 }
19324 _ACEOF
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327   (eval $ac_link) 2>&5
19328   ac_status=$?
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); } &&
19331          { ac_try='test -s conftest$ac_exeext'
19332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333   (eval $ac_try) 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); }; }; then
19337   ac_cv_func_fchown=yes
19338 else
19339   echo "$as_me: failed program was:" >&5
19340 cat conftest.$ac_ext >&5
19341 ac_cv_func_fchown=no
19342 fi
19343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19344 fi
19345 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
19346 echo "${ECHO_T}$ac_cv_func_fchown" >&6
19347 if test $ac_cv_func_fchown = yes; then
19348
19349 cat >>confdefs.h <<_ACEOF
19350 #define HAVE_FCHOWN 1
19351 _ACEOF
19352
19353 else
19354   LIBOBJS="$LIBOBJS fchown.$ac_objext"
19355 fi
19356 echo "$as_me:$LINENO: checking for flock" >&5
19357 echo $ECHO_N "checking for flock... $ECHO_C" >&6
19358 if test "${ac_cv_func_flock+set}" = set; then
19359   echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361   cat >conftest.$ac_ext <<_ACEOF
19362 #line $LINENO "configure"
19363 #include "confdefs.h"
19364 /* System header to define __stub macros and hopefully few prototypes,
19365     which can conflict with char flock (); below.  */
19366 #include <assert.h>
19367 /* Override any gcc2 internal prototype to avoid an error.  */
19368 #ifdef __cplusplus
19369 extern "C"
19370 #endif
19371 /* We use char because int might match the return type of a gcc2
19372    builtin and then its argument prototype would still apply.  */
19373 char flock ();
19374 char (*f) ();
19375
19376 #ifdef F77_DUMMY_MAIN
19377 #  ifdef __cplusplus
19378      extern "C"
19379 #  endif
19380    int F77_DUMMY_MAIN() { return 1; }
19381 #endif
19382 int
19383 main ()
19384 {
19385 /* The GNU C library defines this for functions which it implements
19386     to always fail with ENOSYS.  Some functions are actually named
19387     something starting with __ and the normal name is an alias.  */
19388 #if defined (__stub_flock) || defined (__stub___flock)
19389 choke me
19390 #else
19391 f = flock;
19392 #endif
19393
19394   ;
19395   return 0;
19396 }
19397 _ACEOF
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19400   (eval $ac_link) 2>&5
19401   ac_status=$?
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); } &&
19404          { ac_try='test -s conftest$ac_exeext'
19405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406   (eval $ac_try) 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; }; then
19410   ac_cv_func_flock=yes
19411 else
19412   echo "$as_me: failed program was:" >&5
19413 cat conftest.$ac_ext >&5
19414 ac_cv_func_flock=no
19415 fi
19416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19417 fi
19418 echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
19419 echo "${ECHO_T}$ac_cv_func_flock" >&6
19420 if test $ac_cv_func_flock = yes; then
19421
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_FLOCK 1
19424 _ACEOF
19425
19426 else
19427   LIBOBJS="$LIBOBJS flock.$ac_objext"
19428 fi
19429 echo "$as_me:$LINENO: checking for fnmatch" >&5
19430 echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
19431 if test "${ac_cv_func_fnmatch+set}" = set; then
19432   echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434   cat >conftest.$ac_ext <<_ACEOF
19435 #line $LINENO "configure"
19436 #include "confdefs.h"
19437 /* System header to define __stub macros and hopefully few prototypes,
19438     which can conflict with char fnmatch (); below.  */
19439 #include <assert.h>
19440 /* Override any gcc2 internal prototype to avoid an error.  */
19441 #ifdef __cplusplus
19442 extern "C"
19443 #endif
19444 /* We use char because int might match the return type of a gcc2
19445    builtin and then its argument prototype would still apply.  */
19446 char fnmatch ();
19447 char (*f) ();
19448
19449 #ifdef F77_DUMMY_MAIN
19450 #  ifdef __cplusplus
19451      extern "C"
19452 #  endif
19453    int F77_DUMMY_MAIN() { return 1; }
19454 #endif
19455 int
19456 main ()
19457 {
19458 /* The GNU C library defines this for functions which it implements
19459     to always fail with ENOSYS.  Some functions are actually named
19460     something starting with __ and the normal name is an alias.  */
19461 #if defined (__stub_fnmatch) || defined (__stub___fnmatch)
19462 choke me
19463 #else
19464 f = fnmatch;
19465 #endif
19466
19467   ;
19468   return 0;
19469 }
19470 _ACEOF
19471 rm -f conftest.$ac_objext conftest$ac_exeext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473   (eval $ac_link) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } &&
19477          { ac_try='test -s conftest$ac_exeext'
19478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479   (eval $ac_try) 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; }; then
19483   ac_cv_func_fnmatch=yes
19484 else
19485   echo "$as_me: failed program was:" >&5
19486 cat conftest.$ac_ext >&5
19487 ac_cv_func_fnmatch=no
19488 fi
19489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19490 fi
19491 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
19492 echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
19493 if test $ac_cv_func_fnmatch = yes; then
19494
19495 cat >>confdefs.h <<_ACEOF
19496 #define HAVE_FNMATCH 1
19497 _ACEOF
19498
19499 else
19500   LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
19501 fi
19502 echo "$as_me:$LINENO: checking for freehostent" >&5
19503 echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
19504 if test "${ac_cv_func_freehostent+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   cat >conftest.$ac_ext <<_ACEOF
19508 #line $LINENO "configure"
19509 #include "confdefs.h"
19510 /* System header to define __stub macros and hopefully few prototypes,
19511     which can conflict with char freehostent (); below.  */
19512 #include <assert.h>
19513 /* Override any gcc2 internal prototype to avoid an error.  */
19514 #ifdef __cplusplus
19515 extern "C"
19516 #endif
19517 /* We use char because int might match the return type of a gcc2
19518    builtin and then its argument prototype would still apply.  */
19519 char freehostent ();
19520 char (*f) ();
19521
19522 #ifdef F77_DUMMY_MAIN
19523 #  ifdef __cplusplus
19524      extern "C"
19525 #  endif
19526    int F77_DUMMY_MAIN() { return 1; }
19527 #endif
19528 int
19529 main ()
19530 {
19531 /* The GNU C library defines this for functions which it implements
19532     to always fail with ENOSYS.  Some functions are actually named
19533     something starting with __ and the normal name is an alias.  */
19534 #if defined (__stub_freehostent) || defined (__stub___freehostent)
19535 choke me
19536 #else
19537 f = freehostent;
19538 #endif
19539
19540   ;
19541   return 0;
19542 }
19543 _ACEOF
19544 rm -f conftest.$ac_objext conftest$ac_exeext
19545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19546   (eval $ac_link) 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } &&
19550          { ac_try='test -s conftest$ac_exeext'
19551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552   (eval $ac_try) 2>&5
19553   ac_status=$?
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); }; }; then
19556   ac_cv_func_freehostent=yes
19557 else
19558   echo "$as_me: failed program was:" >&5
19559 cat conftest.$ac_ext >&5
19560 ac_cv_func_freehostent=no
19561 fi
19562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19563 fi
19564 echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
19565 echo "${ECHO_T}$ac_cv_func_freehostent" >&6
19566 if test $ac_cv_func_freehostent = yes; then
19567
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_FREEHOSTENT 1
19570 _ACEOF
19571
19572 else
19573   LIBOBJS="$LIBOBJS freehostent.$ac_objext"
19574 fi
19575 echo "$as_me:$LINENO: checking for getcwd" >&5
19576 echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
19577 if test "${ac_cv_func_getcwd+set}" = set; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580   cat >conftest.$ac_ext <<_ACEOF
19581 #line $LINENO "configure"
19582 #include "confdefs.h"
19583 /* System header to define __stub macros and hopefully few prototypes,
19584     which can conflict with char getcwd (); below.  */
19585 #include <assert.h>
19586 /* Override any gcc2 internal prototype to avoid an error.  */
19587 #ifdef __cplusplus
19588 extern "C"
19589 #endif
19590 /* We use char because int might match the return type of a gcc2
19591    builtin and then its argument prototype would still apply.  */
19592 char getcwd ();
19593 char (*f) ();
19594
19595 #ifdef F77_DUMMY_MAIN
19596 #  ifdef __cplusplus
19597      extern "C"
19598 #  endif
19599    int F77_DUMMY_MAIN() { return 1; }
19600 #endif
19601 int
19602 main ()
19603 {
19604 /* The GNU C library defines this for functions which it implements
19605     to always fail with ENOSYS.  Some functions are actually named
19606     something starting with __ and the normal name is an alias.  */
19607 #if defined (__stub_getcwd) || defined (__stub___getcwd)
19608 choke me
19609 #else
19610 f = getcwd;
19611 #endif
19612
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619   (eval $ac_link) 2>&5
19620   ac_status=$?
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); } &&
19623          { ac_try='test -s conftest$ac_exeext'
19624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625   (eval $ac_try) 2>&5
19626   ac_status=$?
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); }; }; then
19629   ac_cv_func_getcwd=yes
19630 else
19631   echo "$as_me: failed program was:" >&5
19632 cat conftest.$ac_ext >&5
19633 ac_cv_func_getcwd=no
19634 fi
19635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19636 fi
19637 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
19638 echo "${ECHO_T}$ac_cv_func_getcwd" >&6
19639 if test $ac_cv_func_getcwd = yes; then
19640
19641 cat >>confdefs.h <<_ACEOF
19642 #define HAVE_GETCWD 1
19643 _ACEOF
19644
19645 else
19646   LIBOBJS="$LIBOBJS getcwd.$ac_objext"
19647 fi
19648 echo "$as_me:$LINENO: checking for getdtablesize" >&5
19649 echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
19650 if test "${ac_cv_func_getdtablesize+set}" = set; then
19651   echo $ECHO_N "(cached) $ECHO_C" >&6
19652 else
19653   cat >conftest.$ac_ext <<_ACEOF
19654 #line $LINENO "configure"
19655 #include "confdefs.h"
19656 /* System header to define __stub macros and hopefully few prototypes,
19657     which can conflict with char getdtablesize (); below.  */
19658 #include <assert.h>
19659 /* Override any gcc2 internal prototype to avoid an error.  */
19660 #ifdef __cplusplus
19661 extern "C"
19662 #endif
19663 /* We use char because int might match the return type of a gcc2
19664    builtin and then its argument prototype would still apply.  */
19665 char getdtablesize ();
19666 char (*f) ();
19667
19668 #ifdef F77_DUMMY_MAIN
19669 #  ifdef __cplusplus
19670      extern "C"
19671 #  endif
19672    int F77_DUMMY_MAIN() { return 1; }
19673 #endif
19674 int
19675 main ()
19676 {
19677 /* The GNU C library defines this for functions which it implements
19678     to always fail with ENOSYS.  Some functions are actually named
19679     something starting with __ and the normal name is an alias.  */
19680 #if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
19681 choke me
19682 #else
19683 f = getdtablesize;
19684 #endif
19685
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext conftest$ac_exeext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692   (eval $ac_link) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); } &&
19696          { ac_try='test -s conftest$ac_exeext'
19697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698   (eval $ac_try) 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; }; then
19702   ac_cv_func_getdtablesize=yes
19703 else
19704   echo "$as_me: failed program was:" >&5
19705 cat conftest.$ac_ext >&5
19706 ac_cv_func_getdtablesize=no
19707 fi
19708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19709 fi
19710 echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
19711 echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
19712 if test $ac_cv_func_getdtablesize = yes; then
19713
19714 cat >>confdefs.h <<_ACEOF
19715 #define HAVE_GETDTABLESIZE 1
19716 _ACEOF
19717
19718 else
19719   LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
19720 fi
19721 echo "$as_me:$LINENO: checking for getegid" >&5
19722 echo $ECHO_N "checking for getegid... $ECHO_C" >&6
19723 if test "${ac_cv_func_getegid+set}" = set; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 else
19726   cat >conftest.$ac_ext <<_ACEOF
19727 #line $LINENO "configure"
19728 #include "confdefs.h"
19729 /* System header to define __stub macros and hopefully few prototypes,
19730     which can conflict with char getegid (); below.  */
19731 #include <assert.h>
19732 /* Override any gcc2 internal prototype to avoid an error.  */
19733 #ifdef __cplusplus
19734 extern "C"
19735 #endif
19736 /* We use char because int might match the return type of a gcc2
19737    builtin and then its argument prototype would still apply.  */
19738 char getegid ();
19739 char (*f) ();
19740
19741 #ifdef F77_DUMMY_MAIN
19742 #  ifdef __cplusplus
19743      extern "C"
19744 #  endif
19745    int F77_DUMMY_MAIN() { return 1; }
19746 #endif
19747 int
19748 main ()
19749 {
19750 /* The GNU C library defines this for functions which it implements
19751     to always fail with ENOSYS.  Some functions are actually named
19752     something starting with __ and the normal name is an alias.  */
19753 #if defined (__stub_getegid) || defined (__stub___getegid)
19754 choke me
19755 #else
19756 f = getegid;
19757 #endif
19758
19759   ;
19760   return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765   (eval $ac_link) 2>&5
19766   ac_status=$?
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); } &&
19769          { ac_try='test -s conftest$ac_exeext'
19770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771   (eval $ac_try) 2>&5
19772   ac_status=$?
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); }; }; then
19775   ac_cv_func_getegid=yes
19776 else
19777   echo "$as_me: failed program was:" >&5
19778 cat conftest.$ac_ext >&5
19779 ac_cv_func_getegid=no
19780 fi
19781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19782 fi
19783 echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
19784 echo "${ECHO_T}$ac_cv_func_getegid" >&6
19785 if test $ac_cv_func_getegid = yes; then
19786
19787 cat >>confdefs.h <<_ACEOF
19788 #define HAVE_GETEGID 1
19789 _ACEOF
19790
19791 else
19792   LIBOBJS="$LIBOBJS getegid.$ac_objext"
19793 fi
19794 echo "$as_me:$LINENO: checking for geteuid" >&5
19795 echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
19796 if test "${ac_cv_func_geteuid+set}" = set; then
19797   echo $ECHO_N "(cached) $ECHO_C" >&6
19798 else
19799   cat >conftest.$ac_ext <<_ACEOF
19800 #line $LINENO "configure"
19801 #include "confdefs.h"
19802 /* System header to define __stub macros and hopefully few prototypes,
19803     which can conflict with char geteuid (); below.  */
19804 #include <assert.h>
19805 /* Override any gcc2 internal prototype to avoid an error.  */
19806 #ifdef __cplusplus
19807 extern "C"
19808 #endif
19809 /* We use char because int might match the return type of a gcc2
19810    builtin and then its argument prototype would still apply.  */
19811 char geteuid ();
19812 char (*f) ();
19813
19814 #ifdef F77_DUMMY_MAIN
19815 #  ifdef __cplusplus
19816      extern "C"
19817 #  endif
19818    int F77_DUMMY_MAIN() { return 1; }
19819 #endif
19820 int
19821 main ()
19822 {
19823 /* The GNU C library defines this for functions which it implements
19824     to always fail with ENOSYS.  Some functions are actually named
19825     something starting with __ and the normal name is an alias.  */
19826 #if defined (__stub_geteuid) || defined (__stub___geteuid)
19827 choke me
19828 #else
19829 f = geteuid;
19830 #endif
19831
19832   ;
19833   return 0;
19834 }
19835 _ACEOF
19836 rm -f conftest.$ac_objext conftest$ac_exeext
19837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19838   (eval $ac_link) 2>&5
19839   ac_status=$?
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); } &&
19842          { ac_try='test -s conftest$ac_exeext'
19843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844   (eval $ac_try) 2>&5
19845   ac_status=$?
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); }; }; then
19848   ac_cv_func_geteuid=yes
19849 else
19850   echo "$as_me: failed program was:" >&5
19851 cat conftest.$ac_ext >&5
19852 ac_cv_func_geteuid=no
19853 fi
19854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19855 fi
19856 echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
19857 echo "${ECHO_T}$ac_cv_func_geteuid" >&6
19858 if test $ac_cv_func_geteuid = yes; then
19859
19860 cat >>confdefs.h <<_ACEOF
19861 #define HAVE_GETEUID 1
19862 _ACEOF
19863
19864 else
19865   LIBOBJS="$LIBOBJS geteuid.$ac_objext"
19866 fi
19867 echo "$as_me:$LINENO: checking for getgid" >&5
19868 echo $ECHO_N "checking for getgid... $ECHO_C" >&6
19869 if test "${ac_cv_func_getgid+set}" = set; then
19870   echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872   cat >conftest.$ac_ext <<_ACEOF
19873 #line $LINENO "configure"
19874 #include "confdefs.h"
19875 /* System header to define __stub macros and hopefully few prototypes,
19876     which can conflict with char getgid (); below.  */
19877 #include <assert.h>
19878 /* Override any gcc2 internal prototype to avoid an error.  */
19879 #ifdef __cplusplus
19880 extern "C"
19881 #endif
19882 /* We use char because int might match the return type of a gcc2
19883    builtin and then its argument prototype would still apply.  */
19884 char getgid ();
19885 char (*f) ();
19886
19887 #ifdef F77_DUMMY_MAIN
19888 #  ifdef __cplusplus
19889      extern "C"
19890 #  endif
19891    int F77_DUMMY_MAIN() { return 1; }
19892 #endif
19893 int
19894 main ()
19895 {
19896 /* The GNU C library defines this for functions which it implements
19897     to always fail with ENOSYS.  Some functions are actually named
19898     something starting with __ and the normal name is an alias.  */
19899 #if defined (__stub_getgid) || defined (__stub___getgid)
19900 choke me
19901 #else
19902 f = getgid;
19903 #endif
19904
19905   ;
19906   return 0;
19907 }
19908 _ACEOF
19909 rm -f conftest.$ac_objext conftest$ac_exeext
19910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19911   (eval $ac_link) 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); } &&
19915          { ac_try='test -s conftest$ac_exeext'
19916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917   (eval $ac_try) 2>&5
19918   ac_status=$?
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); }; }; then
19921   ac_cv_func_getgid=yes
19922 else
19923   echo "$as_me: failed program was:" >&5
19924 cat conftest.$ac_ext >&5
19925 ac_cv_func_getgid=no
19926 fi
19927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19928 fi
19929 echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
19930 echo "${ECHO_T}$ac_cv_func_getgid" >&6
19931 if test $ac_cv_func_getgid = yes; then
19932
19933 cat >>confdefs.h <<_ACEOF
19934 #define HAVE_GETGID 1
19935 _ACEOF
19936
19937 else
19938   LIBOBJS="$LIBOBJS getgid.$ac_objext"
19939 fi
19940 echo "$as_me:$LINENO: checking for gethostname" >&5
19941 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
19942 if test "${ac_cv_func_gethostname+set}" = set; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   cat >conftest.$ac_ext <<_ACEOF
19946 #line $LINENO "configure"
19947 #include "confdefs.h"
19948 /* System header to define __stub macros and hopefully few prototypes,
19949     which can conflict with char gethostname (); below.  */
19950 #include <assert.h>
19951 /* Override any gcc2 internal prototype to avoid an error.  */
19952 #ifdef __cplusplus
19953 extern "C"
19954 #endif
19955 /* We use char because int might match the return type of a gcc2
19956    builtin and then its argument prototype would still apply.  */
19957 char gethostname ();
19958 char (*f) ();
19959
19960 #ifdef F77_DUMMY_MAIN
19961 #  ifdef __cplusplus
19962      extern "C"
19963 #  endif
19964    int F77_DUMMY_MAIN() { return 1; }
19965 #endif
19966 int
19967 main ()
19968 {
19969 /* The GNU C library defines this for functions which it implements
19970     to always fail with ENOSYS.  Some functions are actually named
19971     something starting with __ and the normal name is an alias.  */
19972 #if defined (__stub_gethostname) || defined (__stub___gethostname)
19973 choke me
19974 #else
19975 f = gethostname;
19976 #endif
19977
19978   ;
19979   return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984   (eval $ac_link) 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); } &&
19988          { ac_try='test -s conftest$ac_exeext'
19989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990   (eval $ac_try) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   ac_cv_func_gethostname=yes
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 cat conftest.$ac_ext >&5
19998 ac_cv_func_gethostname=no
19999 fi
20000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20001 fi
20002 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
20003 echo "${ECHO_T}$ac_cv_func_gethostname" >&6
20004 if test $ac_cv_func_gethostname = yes; then
20005
20006 cat >>confdefs.h <<_ACEOF
20007 #define HAVE_GETHOSTNAME 1
20008 _ACEOF
20009
20010 else
20011   LIBOBJS="$LIBOBJS gethostname.$ac_objext"
20012 fi
20013 echo "$as_me:$LINENO: checking for getifaddrs" >&5
20014 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
20015 if test "${ac_cv_func_getifaddrs+set}" = set; then
20016   echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018   cat >conftest.$ac_ext <<_ACEOF
20019 #line $LINENO "configure"
20020 #include "confdefs.h"
20021 /* System header to define __stub macros and hopefully few prototypes,
20022     which can conflict with char getifaddrs (); below.  */
20023 #include <assert.h>
20024 /* Override any gcc2 internal prototype to avoid an error.  */
20025 #ifdef __cplusplus
20026 extern "C"
20027 #endif
20028 /* We use char because int might match the return type of a gcc2
20029    builtin and then its argument prototype would still apply.  */
20030 char getifaddrs ();
20031 char (*f) ();
20032
20033 #ifdef F77_DUMMY_MAIN
20034 #  ifdef __cplusplus
20035      extern "C"
20036 #  endif
20037    int F77_DUMMY_MAIN() { return 1; }
20038 #endif
20039 int
20040 main ()
20041 {
20042 /* The GNU C library defines this for functions which it implements
20043     to always fail with ENOSYS.  Some functions are actually named
20044     something starting with __ and the normal name is an alias.  */
20045 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
20046 choke me
20047 #else
20048 f = getifaddrs;
20049 #endif
20050
20051   ;
20052   return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext conftest$ac_exeext
20056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20057   (eval $ac_link) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } &&
20061          { ac_try='test -s conftest$ac_exeext'
20062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063   (eval $ac_try) 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); }; }; then
20067   ac_cv_func_getifaddrs=yes
20068 else
20069   echo "$as_me: failed program was:" >&5
20070 cat conftest.$ac_ext >&5
20071 ac_cv_func_getifaddrs=no
20072 fi
20073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20074 fi
20075 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
20076 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
20077 if test $ac_cv_func_getifaddrs = yes; then
20078
20079 cat >>confdefs.h <<_ACEOF
20080 #define HAVE_GETIFADDRS 1
20081 _ACEOF
20082
20083 else
20084   LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
20085 fi
20086 echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
20087 echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
20088 if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091   cat >conftest.$ac_ext <<_ACEOF
20092 #line $LINENO "configure"
20093 #include "confdefs.h"
20094 /* System header to define __stub macros and hopefully few prototypes,
20095     which can conflict with char getipnodebyaddr (); below.  */
20096 #include <assert.h>
20097 /* Override any gcc2 internal prototype to avoid an error.  */
20098 #ifdef __cplusplus
20099 extern "C"
20100 #endif
20101 /* We use char because int might match the return type of a gcc2
20102    builtin and then its argument prototype would still apply.  */
20103 char getipnodebyaddr ();
20104 char (*f) ();
20105
20106 #ifdef F77_DUMMY_MAIN
20107 #  ifdef __cplusplus
20108      extern "C"
20109 #  endif
20110    int F77_DUMMY_MAIN() { return 1; }
20111 #endif
20112 int
20113 main ()
20114 {
20115 /* The GNU C library defines this for functions which it implements
20116     to always fail with ENOSYS.  Some functions are actually named
20117     something starting with __ and the normal name is an alias.  */
20118 #if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
20119 choke me
20120 #else
20121 f = getipnodebyaddr;
20122 #endif
20123
20124   ;
20125   return 0;
20126 }
20127 _ACEOF
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20130   (eval $ac_link) 2>&5
20131   ac_status=$?
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); } &&
20134          { ac_try='test -s conftest$ac_exeext'
20135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136   (eval $ac_try) 2>&5
20137   ac_status=$?
20138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139   (exit $ac_status); }; }; then
20140   ac_cv_func_getipnodebyaddr=yes
20141 else
20142   echo "$as_me: failed program was:" >&5
20143 cat conftest.$ac_ext >&5
20144 ac_cv_func_getipnodebyaddr=no
20145 fi
20146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20147 fi
20148 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
20149 echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
20150 if test $ac_cv_func_getipnodebyaddr = yes; then
20151
20152 cat >>confdefs.h <<_ACEOF
20153 #define HAVE_GETIPNODEBYADDR 1
20154 _ACEOF
20155
20156 else
20157   LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
20158 fi
20159 echo "$as_me:$LINENO: checking for getipnodebyname" >&5
20160 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
20161 if test "${ac_cv_func_getipnodebyname+set}" = set; then
20162   echo $ECHO_N "(cached) $ECHO_C" >&6
20163 else
20164   cat >conftest.$ac_ext <<_ACEOF
20165 #line $LINENO "configure"
20166 #include "confdefs.h"
20167 /* System header to define __stub macros and hopefully few prototypes,
20168     which can conflict with char getipnodebyname (); below.  */
20169 #include <assert.h>
20170 /* Override any gcc2 internal prototype to avoid an error.  */
20171 #ifdef __cplusplus
20172 extern "C"
20173 #endif
20174 /* We use char because int might match the return type of a gcc2
20175    builtin and then its argument prototype would still apply.  */
20176 char getipnodebyname ();
20177 char (*f) ();
20178
20179 #ifdef F77_DUMMY_MAIN
20180 #  ifdef __cplusplus
20181      extern "C"
20182 #  endif
20183    int F77_DUMMY_MAIN() { return 1; }
20184 #endif
20185 int
20186 main ()
20187 {
20188 /* The GNU C library defines this for functions which it implements
20189     to always fail with ENOSYS.  Some functions are actually named
20190     something starting with __ and the normal name is an alias.  */
20191 #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
20192 choke me
20193 #else
20194 f = getipnodebyname;
20195 #endif
20196
20197   ;
20198   return 0;
20199 }
20200 _ACEOF
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203   (eval $ac_link) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } &&
20207          { ac_try='test -s conftest$ac_exeext'
20208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209   (eval $ac_try) 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; }; then
20213   ac_cv_func_getipnodebyname=yes
20214 else
20215   echo "$as_me: failed program was:" >&5
20216 cat conftest.$ac_ext >&5
20217 ac_cv_func_getipnodebyname=no
20218 fi
20219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20220 fi
20221 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
20222 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
20223 if test $ac_cv_func_getipnodebyname = yes; then
20224
20225 cat >>confdefs.h <<_ACEOF
20226 #define HAVE_GETIPNODEBYNAME 1
20227 _ACEOF
20228
20229 else
20230   LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
20231 fi
20232 echo "$as_me:$LINENO: checking for getopt" >&5
20233 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
20234 if test "${ac_cv_func_getopt+set}" = set; then
20235   echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237   cat >conftest.$ac_ext <<_ACEOF
20238 #line $LINENO "configure"
20239 #include "confdefs.h"
20240 /* System header to define __stub macros and hopefully few prototypes,
20241     which can conflict with char getopt (); below.  */
20242 #include <assert.h>
20243 /* Override any gcc2 internal prototype to avoid an error.  */
20244 #ifdef __cplusplus
20245 extern "C"
20246 #endif
20247 /* We use char because int might match the return type of a gcc2
20248    builtin and then its argument prototype would still apply.  */
20249 char getopt ();
20250 char (*f) ();
20251
20252 #ifdef F77_DUMMY_MAIN
20253 #  ifdef __cplusplus
20254      extern "C"
20255 #  endif
20256    int F77_DUMMY_MAIN() { return 1; }
20257 #endif
20258 int
20259 main ()
20260 {
20261 /* The GNU C library defines this for functions which it implements
20262     to always fail with ENOSYS.  Some functions are actually named
20263     something starting with __ and the normal name is an alias.  */
20264 #if defined (__stub_getopt) || defined (__stub___getopt)
20265 choke me
20266 #else
20267 f = getopt;
20268 #endif
20269
20270   ;
20271   return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20276   (eval $ac_link) 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } &&
20280          { ac_try='test -s conftest$ac_exeext'
20281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282   (eval $ac_try) 2>&5
20283   ac_status=$?
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); }; }; then
20286   ac_cv_func_getopt=yes
20287 else
20288   echo "$as_me: failed program was:" >&5
20289 cat conftest.$ac_ext >&5
20290 ac_cv_func_getopt=no
20291 fi
20292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20293 fi
20294 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
20295 echo "${ECHO_T}$ac_cv_func_getopt" >&6
20296 if test $ac_cv_func_getopt = yes; then
20297
20298 cat >>confdefs.h <<_ACEOF
20299 #define HAVE_GETOPT 1
20300 _ACEOF
20301
20302 else
20303   LIBOBJS="$LIBOBJS getopt.$ac_objext"
20304 fi
20305 echo "$as_me:$LINENO: checking for gettimeofday" >&5
20306 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
20307 if test "${ac_cv_func_gettimeofday+set}" = set; then
20308   echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310   cat >conftest.$ac_ext <<_ACEOF
20311 #line $LINENO "configure"
20312 #include "confdefs.h"
20313 /* System header to define __stub macros and hopefully few prototypes,
20314     which can conflict with char gettimeofday (); below.  */
20315 #include <assert.h>
20316 /* Override any gcc2 internal prototype to avoid an error.  */
20317 #ifdef __cplusplus
20318 extern "C"
20319 #endif
20320 /* We use char because int might match the return type of a gcc2
20321    builtin and then its argument prototype would still apply.  */
20322 char gettimeofday ();
20323 char (*f) ();
20324
20325 #ifdef F77_DUMMY_MAIN
20326 #  ifdef __cplusplus
20327      extern "C"
20328 #  endif
20329    int F77_DUMMY_MAIN() { return 1; }
20330 #endif
20331 int
20332 main ()
20333 {
20334 /* The GNU C library defines this for functions which it implements
20335     to always fail with ENOSYS.  Some functions are actually named
20336     something starting with __ and the normal name is an alias.  */
20337 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
20338 choke me
20339 #else
20340 f = gettimeofday;
20341 #endif
20342
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 rm -f conftest.$ac_objext conftest$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349   (eval $ac_link) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } &&
20353          { ac_try='test -s conftest$ac_exeext'
20354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355   (eval $ac_try) 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359   ac_cv_func_gettimeofday=yes
20360 else
20361   echo "$as_me: failed program was:" >&5
20362 cat conftest.$ac_ext >&5
20363 ac_cv_func_gettimeofday=no
20364 fi
20365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20366 fi
20367 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
20368 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
20369 if test $ac_cv_func_gettimeofday = yes; then
20370
20371 cat >>confdefs.h <<_ACEOF
20372 #define HAVE_GETTIMEOFDAY 1
20373 _ACEOF
20374
20375 else
20376   LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
20377 fi
20378 echo "$as_me:$LINENO: checking for getuid" >&5
20379 echo $ECHO_N "checking for getuid... $ECHO_C" >&6
20380 if test "${ac_cv_func_getuid+set}" = set; then
20381   echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383   cat >conftest.$ac_ext <<_ACEOF
20384 #line $LINENO "configure"
20385 #include "confdefs.h"
20386 /* System header to define __stub macros and hopefully few prototypes,
20387     which can conflict with char getuid (); below.  */
20388 #include <assert.h>
20389 /* Override any gcc2 internal prototype to avoid an error.  */
20390 #ifdef __cplusplus
20391 extern "C"
20392 #endif
20393 /* We use char because int might match the return type of a gcc2
20394    builtin and then its argument prototype would still apply.  */
20395 char getuid ();
20396 char (*f) ();
20397
20398 #ifdef F77_DUMMY_MAIN
20399 #  ifdef __cplusplus
20400      extern "C"
20401 #  endif
20402    int F77_DUMMY_MAIN() { return 1; }
20403 #endif
20404 int
20405 main ()
20406 {
20407 /* The GNU C library defines this for functions which it implements
20408     to always fail with ENOSYS.  Some functions are actually named
20409     something starting with __ and the normal name is an alias.  */
20410 #if defined (__stub_getuid) || defined (__stub___getuid)
20411 choke me
20412 #else
20413 f = getuid;
20414 #endif
20415
20416   ;
20417   return 0;
20418 }
20419 _ACEOF
20420 rm -f conftest.$ac_objext conftest$ac_exeext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20422   (eval $ac_link) 2>&5
20423   ac_status=$?
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); } &&
20426          { ac_try='test -s conftest$ac_exeext'
20427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428   (eval $ac_try) 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); }; }; then
20432   ac_cv_func_getuid=yes
20433 else
20434   echo "$as_me: failed program was:" >&5
20435 cat conftest.$ac_ext >&5
20436 ac_cv_func_getuid=no
20437 fi
20438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20439 fi
20440 echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
20441 echo "${ECHO_T}$ac_cv_func_getuid" >&6
20442 if test $ac_cv_func_getuid = yes; then
20443
20444 cat >>confdefs.h <<_ACEOF
20445 #define HAVE_GETUID 1
20446 _ACEOF
20447
20448 else
20449   LIBOBJS="$LIBOBJS getuid.$ac_objext"
20450 fi
20451 echo "$as_me:$LINENO: checking for getusershell" >&5
20452 echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
20453 if test "${ac_cv_func_getusershell+set}" = set; then
20454   echo $ECHO_N "(cached) $ECHO_C" >&6
20455 else
20456   cat >conftest.$ac_ext <<_ACEOF
20457 #line $LINENO "configure"
20458 #include "confdefs.h"
20459 /* System header to define __stub macros and hopefully few prototypes,
20460     which can conflict with char getusershell (); below.  */
20461 #include <assert.h>
20462 /* Override any gcc2 internal prototype to avoid an error.  */
20463 #ifdef __cplusplus
20464 extern "C"
20465 #endif
20466 /* We use char because int might match the return type of a gcc2
20467    builtin and then its argument prototype would still apply.  */
20468 char getusershell ();
20469 char (*f) ();
20470
20471 #ifdef F77_DUMMY_MAIN
20472 #  ifdef __cplusplus
20473      extern "C"
20474 #  endif
20475    int F77_DUMMY_MAIN() { return 1; }
20476 #endif
20477 int
20478 main ()
20479 {
20480 /* The GNU C library defines this for functions which it implements
20481     to always fail with ENOSYS.  Some functions are actually named
20482     something starting with __ and the normal name is an alias.  */
20483 #if defined (__stub_getusershell) || defined (__stub___getusershell)
20484 choke me
20485 #else
20486 f = getusershell;
20487 #endif
20488
20489   ;
20490   return 0;
20491 }
20492 _ACEOF
20493 rm -f conftest.$ac_objext conftest$ac_exeext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20495   (eval $ac_link) 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); } &&
20499          { ac_try='test -s conftest$ac_exeext'
20500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501   (eval $ac_try) 2>&5
20502   ac_status=$?
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); }; }; then
20505   ac_cv_func_getusershell=yes
20506 else
20507   echo "$as_me: failed program was:" >&5
20508 cat conftest.$ac_ext >&5
20509 ac_cv_func_getusershell=no
20510 fi
20511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20512 fi
20513 echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
20514 echo "${ECHO_T}$ac_cv_func_getusershell" >&6
20515 if test $ac_cv_func_getusershell = yes; then
20516
20517 cat >>confdefs.h <<_ACEOF
20518 #define HAVE_GETUSERSHELL 1
20519 _ACEOF
20520
20521 else
20522   LIBOBJS="$LIBOBJS getusershell.$ac_objext"
20523 fi
20524 echo "$as_me:$LINENO: checking for initgroups" >&5
20525 echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
20526 if test "${ac_cv_func_initgroups+set}" = set; then
20527   echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529   cat >conftest.$ac_ext <<_ACEOF
20530 #line $LINENO "configure"
20531 #include "confdefs.h"
20532 /* System header to define __stub macros and hopefully few prototypes,
20533     which can conflict with char initgroups (); below.  */
20534 #include <assert.h>
20535 /* Override any gcc2 internal prototype to avoid an error.  */
20536 #ifdef __cplusplus
20537 extern "C"
20538 #endif
20539 /* We use char because int might match the return type of a gcc2
20540    builtin and then its argument prototype would still apply.  */
20541 char initgroups ();
20542 char (*f) ();
20543
20544 #ifdef F77_DUMMY_MAIN
20545 #  ifdef __cplusplus
20546      extern "C"
20547 #  endif
20548    int F77_DUMMY_MAIN() { return 1; }
20549 #endif
20550 int
20551 main ()
20552 {
20553 /* The GNU C library defines this for functions which it implements
20554     to always fail with ENOSYS.  Some functions are actually named
20555     something starting with __ and the normal name is an alias.  */
20556 #if defined (__stub_initgroups) || defined (__stub___initgroups)
20557 choke me
20558 #else
20559 f = initgroups;
20560 #endif
20561
20562   ;
20563   return 0;
20564 }
20565 _ACEOF
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20568   (eval $ac_link) 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); } &&
20572          { ac_try='test -s conftest$ac_exeext'
20573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574   (eval $ac_try) 2>&5
20575   ac_status=$?
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); }; }; then
20578   ac_cv_func_initgroups=yes
20579 else
20580   echo "$as_me: failed program was:" >&5
20581 cat conftest.$ac_ext >&5
20582 ac_cv_func_initgroups=no
20583 fi
20584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20585 fi
20586 echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
20587 echo "${ECHO_T}$ac_cv_func_initgroups" >&6
20588 if test $ac_cv_func_initgroups = yes; then
20589
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_INITGROUPS 1
20592 _ACEOF
20593
20594 else
20595   LIBOBJS="$LIBOBJS initgroups.$ac_objext"
20596 fi
20597 echo "$as_me:$LINENO: checking for innetgr" >&5
20598 echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
20599 if test "${ac_cv_func_innetgr+set}" = set; then
20600   echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602   cat >conftest.$ac_ext <<_ACEOF
20603 #line $LINENO "configure"
20604 #include "confdefs.h"
20605 /* System header to define __stub macros and hopefully few prototypes,
20606     which can conflict with char innetgr (); below.  */
20607 #include <assert.h>
20608 /* Override any gcc2 internal prototype to avoid an error.  */
20609 #ifdef __cplusplus
20610 extern "C"
20611 #endif
20612 /* We use char because int might match the return type of a gcc2
20613    builtin and then its argument prototype would still apply.  */
20614 char innetgr ();
20615 char (*f) ();
20616
20617 #ifdef F77_DUMMY_MAIN
20618 #  ifdef __cplusplus
20619      extern "C"
20620 #  endif
20621    int F77_DUMMY_MAIN() { return 1; }
20622 #endif
20623 int
20624 main ()
20625 {
20626 /* The GNU C library defines this for functions which it implements
20627     to always fail with ENOSYS.  Some functions are actually named
20628     something starting with __ and the normal name is an alias.  */
20629 #if defined (__stub_innetgr) || defined (__stub___innetgr)
20630 choke me
20631 #else
20632 f = innetgr;
20633 #endif
20634
20635   ;
20636   return 0;
20637 }
20638 _ACEOF
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641   (eval $ac_link) 2>&5
20642   ac_status=$?
20643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644   (exit $ac_status); } &&
20645          { ac_try='test -s conftest$ac_exeext'
20646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647   (eval $ac_try) 2>&5
20648   ac_status=$?
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); }; }; then
20651   ac_cv_func_innetgr=yes
20652 else
20653   echo "$as_me: failed program was:" >&5
20654 cat conftest.$ac_ext >&5
20655 ac_cv_func_innetgr=no
20656 fi
20657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20658 fi
20659 echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
20660 echo "${ECHO_T}$ac_cv_func_innetgr" >&6
20661 if test $ac_cv_func_innetgr = yes; then
20662
20663 cat >>confdefs.h <<_ACEOF
20664 #define HAVE_INNETGR 1
20665 _ACEOF
20666
20667 else
20668   LIBOBJS="$LIBOBJS innetgr.$ac_objext"
20669 fi
20670 echo "$as_me:$LINENO: checking for iruserok" >&5
20671 echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
20672 if test "${ac_cv_func_iruserok+set}" = set; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 else
20675   cat >conftest.$ac_ext <<_ACEOF
20676 #line $LINENO "configure"
20677 #include "confdefs.h"
20678 /* System header to define __stub macros and hopefully few prototypes,
20679     which can conflict with char iruserok (); below.  */
20680 #include <assert.h>
20681 /* Override any gcc2 internal prototype to avoid an error.  */
20682 #ifdef __cplusplus
20683 extern "C"
20684 #endif
20685 /* We use char because int might match the return type of a gcc2
20686    builtin and then its argument prototype would still apply.  */
20687 char iruserok ();
20688 char (*f) ();
20689
20690 #ifdef F77_DUMMY_MAIN
20691 #  ifdef __cplusplus
20692      extern "C"
20693 #  endif
20694    int F77_DUMMY_MAIN() { return 1; }
20695 #endif
20696 int
20697 main ()
20698 {
20699 /* The GNU C library defines this for functions which it implements
20700     to always fail with ENOSYS.  Some functions are actually named
20701     something starting with __ and the normal name is an alias.  */
20702 #if defined (__stub_iruserok) || defined (__stub___iruserok)
20703 choke me
20704 #else
20705 f = iruserok;
20706 #endif
20707
20708   ;
20709   return 0;
20710 }
20711 _ACEOF
20712 rm -f conftest.$ac_objext conftest$ac_exeext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20714   (eval $ac_link) 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } &&
20718          { ac_try='test -s conftest$ac_exeext'
20719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720   (eval $ac_try) 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; }; then
20724   ac_cv_func_iruserok=yes
20725 else
20726   echo "$as_me: failed program was:" >&5
20727 cat conftest.$ac_ext >&5
20728 ac_cv_func_iruserok=no
20729 fi
20730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20731 fi
20732 echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
20733 echo "${ECHO_T}$ac_cv_func_iruserok" >&6
20734 if test $ac_cv_func_iruserok = yes; then
20735
20736 cat >>confdefs.h <<_ACEOF
20737 #define HAVE_IRUSEROK 1
20738 _ACEOF
20739
20740 else
20741   LIBOBJS="$LIBOBJS iruserok.$ac_objext"
20742 fi
20743 echo "$as_me:$LINENO: checking for localtime_r" >&5
20744 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
20745 if test "${ac_cv_func_localtime_r+set}" = set; then
20746   echo $ECHO_N "(cached) $ECHO_C" >&6
20747 else
20748   cat >conftest.$ac_ext <<_ACEOF
20749 #line $LINENO "configure"
20750 #include "confdefs.h"
20751 /* System header to define __stub macros and hopefully few prototypes,
20752     which can conflict with char localtime_r (); below.  */
20753 #include <assert.h>
20754 /* Override any gcc2 internal prototype to avoid an error.  */
20755 #ifdef __cplusplus
20756 extern "C"
20757 #endif
20758 /* We use char because int might match the return type of a gcc2
20759    builtin and then its argument prototype would still apply.  */
20760 char localtime_r ();
20761 char (*f) ();
20762
20763 #ifdef F77_DUMMY_MAIN
20764 #  ifdef __cplusplus
20765      extern "C"
20766 #  endif
20767    int F77_DUMMY_MAIN() { return 1; }
20768 #endif
20769 int
20770 main ()
20771 {
20772 /* The GNU C library defines this for functions which it implements
20773     to always fail with ENOSYS.  Some functions are actually named
20774     something starting with __ and the normal name is an alias.  */
20775 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
20776 choke me
20777 #else
20778 f = localtime_r;
20779 #endif
20780
20781   ;
20782   return 0;
20783 }
20784 _ACEOF
20785 rm -f conftest.$ac_objext conftest$ac_exeext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20787   (eval $ac_link) 2>&5
20788   ac_status=$?
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } &&
20791          { ac_try='test -s conftest$ac_exeext'
20792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793   (eval $ac_try) 2>&5
20794   ac_status=$?
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); }; }; then
20797   ac_cv_func_localtime_r=yes
20798 else
20799   echo "$as_me: failed program was:" >&5
20800 cat conftest.$ac_ext >&5
20801 ac_cv_func_localtime_r=no
20802 fi
20803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20804 fi
20805 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
20806 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
20807 if test $ac_cv_func_localtime_r = yes; then
20808
20809 cat >>confdefs.h <<_ACEOF
20810 #define HAVE_LOCALTIME_R 1
20811 _ACEOF
20812
20813 else
20814   LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
20815 fi
20816 echo "$as_me:$LINENO: checking for lstat" >&5
20817 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
20818 if test "${ac_cv_func_lstat+set}" = set; then
20819   echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821   cat >conftest.$ac_ext <<_ACEOF
20822 #line $LINENO "configure"
20823 #include "confdefs.h"
20824 /* System header to define __stub macros and hopefully few prototypes,
20825     which can conflict with char lstat (); below.  */
20826 #include <assert.h>
20827 /* Override any gcc2 internal prototype to avoid an error.  */
20828 #ifdef __cplusplus
20829 extern "C"
20830 #endif
20831 /* We use char because int might match the return type of a gcc2
20832    builtin and then its argument prototype would still apply.  */
20833 char lstat ();
20834 char (*f) ();
20835
20836 #ifdef F77_DUMMY_MAIN
20837 #  ifdef __cplusplus
20838      extern "C"
20839 #  endif
20840    int F77_DUMMY_MAIN() { return 1; }
20841 #endif
20842 int
20843 main ()
20844 {
20845 /* The GNU C library defines this for functions which it implements
20846     to always fail with ENOSYS.  Some functions are actually named
20847     something starting with __ and the normal name is an alias.  */
20848 #if defined (__stub_lstat) || defined (__stub___lstat)
20849 choke me
20850 #else
20851 f = lstat;
20852 #endif
20853
20854   ;
20855   return 0;
20856 }
20857 _ACEOF
20858 rm -f conftest.$ac_objext conftest$ac_exeext
20859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20860   (eval $ac_link) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } &&
20864          { ac_try='test -s conftest$ac_exeext'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; }; then
20870   ac_cv_func_lstat=yes
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 cat conftest.$ac_ext >&5
20874 ac_cv_func_lstat=no
20875 fi
20876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20877 fi
20878 echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
20879 echo "${ECHO_T}$ac_cv_func_lstat" >&6
20880 if test $ac_cv_func_lstat = yes; then
20881
20882 cat >>confdefs.h <<_ACEOF
20883 #define HAVE_LSTAT 1
20884 _ACEOF
20885
20886 else
20887   LIBOBJS="$LIBOBJS lstat.$ac_objext"
20888 fi
20889 echo "$as_me:$LINENO: checking for memmove" >&5
20890 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
20891 if test "${ac_cv_func_memmove+set}" = set; then
20892   echo $ECHO_N "(cached) $ECHO_C" >&6
20893 else
20894   cat >conftest.$ac_ext <<_ACEOF
20895 #line $LINENO "configure"
20896 #include "confdefs.h"
20897 /* System header to define __stub macros and hopefully few prototypes,
20898     which can conflict with char memmove (); below.  */
20899 #include <assert.h>
20900 /* Override any gcc2 internal prototype to avoid an error.  */
20901 #ifdef __cplusplus
20902 extern "C"
20903 #endif
20904 /* We use char because int might match the return type of a gcc2
20905    builtin and then its argument prototype would still apply.  */
20906 char memmove ();
20907 char (*f) ();
20908
20909 #ifdef F77_DUMMY_MAIN
20910 #  ifdef __cplusplus
20911      extern "C"
20912 #  endif
20913    int F77_DUMMY_MAIN() { return 1; }
20914 #endif
20915 int
20916 main ()
20917 {
20918 /* The GNU C library defines this for functions which it implements
20919     to always fail with ENOSYS.  Some functions are actually named
20920     something starting with __ and the normal name is an alias.  */
20921 #if defined (__stub_memmove) || defined (__stub___memmove)
20922 choke me
20923 #else
20924 f = memmove;
20925 #endif
20926
20927   ;
20928   return 0;
20929 }
20930 _ACEOF
20931 rm -f conftest.$ac_objext conftest$ac_exeext
20932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20933   (eval $ac_link) 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } &&
20937          { ac_try='test -s conftest$ac_exeext'
20938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939   (eval $ac_try) 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; }; then
20943   ac_cv_func_memmove=yes
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 cat conftest.$ac_ext >&5
20947 ac_cv_func_memmove=no
20948 fi
20949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20950 fi
20951 echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
20952 echo "${ECHO_T}$ac_cv_func_memmove" >&6
20953 if test $ac_cv_func_memmove = yes; then
20954
20955 cat >>confdefs.h <<_ACEOF
20956 #define HAVE_MEMMOVE 1
20957 _ACEOF
20958
20959 else
20960   LIBOBJS="$LIBOBJS memmove.$ac_objext"
20961 fi
20962 echo "$as_me:$LINENO: checking for mkstemp" >&5
20963 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
20964 if test "${ac_cv_func_mkstemp+set}" = set; then
20965   echo $ECHO_N "(cached) $ECHO_C" >&6
20966 else
20967   cat >conftest.$ac_ext <<_ACEOF
20968 #line $LINENO "configure"
20969 #include "confdefs.h"
20970 /* System header to define __stub macros and hopefully few prototypes,
20971     which can conflict with char mkstemp (); below.  */
20972 #include <assert.h>
20973 /* Override any gcc2 internal prototype to avoid an error.  */
20974 #ifdef __cplusplus
20975 extern "C"
20976 #endif
20977 /* We use char because int might match the return type of a gcc2
20978    builtin and then its argument prototype would still apply.  */
20979 char mkstemp ();
20980 char (*f) ();
20981
20982 #ifdef F77_DUMMY_MAIN
20983 #  ifdef __cplusplus
20984      extern "C"
20985 #  endif
20986    int F77_DUMMY_MAIN() { return 1; }
20987 #endif
20988 int
20989 main ()
20990 {
20991 /* The GNU C library defines this for functions which it implements
20992     to always fail with ENOSYS.  Some functions are actually named
20993     something starting with __ and the normal name is an alias.  */
20994 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
20995 choke me
20996 #else
20997 f = mkstemp;
20998 #endif
20999
21000   ;
21001   return 0;
21002 }
21003 _ACEOF
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21006   (eval $ac_link) 2>&5
21007   ac_status=$?
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); } &&
21010          { ac_try='test -s conftest$ac_exeext'
21011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012   (eval $ac_try) 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); }; }; then
21016   ac_cv_func_mkstemp=yes
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 cat conftest.$ac_ext >&5
21020 ac_cv_func_mkstemp=no
21021 fi
21022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21023 fi
21024 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
21025 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21026 if test $ac_cv_func_mkstemp = yes; then
21027
21028 cat >>confdefs.h <<_ACEOF
21029 #define HAVE_MKSTEMP 1
21030 _ACEOF
21031
21032 else
21033   LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
21034 fi
21035 echo "$as_me:$LINENO: checking for putenv" >&5
21036 echo $ECHO_N "checking for putenv... $ECHO_C" >&6
21037 if test "${ac_cv_func_putenv+set}" = set; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040   cat >conftest.$ac_ext <<_ACEOF
21041 #line $LINENO "configure"
21042 #include "confdefs.h"
21043 /* System header to define __stub macros and hopefully few prototypes,
21044     which can conflict with char putenv (); below.  */
21045 #include <assert.h>
21046 /* Override any gcc2 internal prototype to avoid an error.  */
21047 #ifdef __cplusplus
21048 extern "C"
21049 #endif
21050 /* We use char because int might match the return type of a gcc2
21051    builtin and then its argument prototype would still apply.  */
21052 char putenv ();
21053 char (*f) ();
21054
21055 #ifdef F77_DUMMY_MAIN
21056 #  ifdef __cplusplus
21057      extern "C"
21058 #  endif
21059    int F77_DUMMY_MAIN() { return 1; }
21060 #endif
21061 int
21062 main ()
21063 {
21064 /* The GNU C library defines this for functions which it implements
21065     to always fail with ENOSYS.  Some functions are actually named
21066     something starting with __ and the normal name is an alias.  */
21067 #if defined (__stub_putenv) || defined (__stub___putenv)
21068 choke me
21069 #else
21070 f = putenv;
21071 #endif
21072
21073   ;
21074   return 0;
21075 }
21076 _ACEOF
21077 rm -f conftest.$ac_objext conftest$ac_exeext
21078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21079   (eval $ac_link) 2>&5
21080   ac_status=$?
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); } &&
21083          { ac_try='test -s conftest$ac_exeext'
21084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085   (eval $ac_try) 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; }; then
21089   ac_cv_func_putenv=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 cat conftest.$ac_ext >&5
21093 ac_cv_func_putenv=no
21094 fi
21095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21096 fi
21097 echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
21098 echo "${ECHO_T}$ac_cv_func_putenv" >&6
21099 if test $ac_cv_func_putenv = yes; then
21100
21101 cat >>confdefs.h <<_ACEOF
21102 #define HAVE_PUTENV 1
21103 _ACEOF
21104
21105 else
21106   LIBOBJS="$LIBOBJS putenv.$ac_objext"
21107 fi
21108 echo "$as_me:$LINENO: checking for rcmd" >&5
21109 echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
21110 if test "${ac_cv_func_rcmd+set}" = set; then
21111   echo $ECHO_N "(cached) $ECHO_C" >&6
21112 else
21113   cat >conftest.$ac_ext <<_ACEOF
21114 #line $LINENO "configure"
21115 #include "confdefs.h"
21116 /* System header to define __stub macros and hopefully few prototypes,
21117     which can conflict with char rcmd (); below.  */
21118 #include <assert.h>
21119 /* Override any gcc2 internal prototype to avoid an error.  */
21120 #ifdef __cplusplus
21121 extern "C"
21122 #endif
21123 /* We use char because int might match the return type of a gcc2
21124    builtin and then its argument prototype would still apply.  */
21125 char rcmd ();
21126 char (*f) ();
21127
21128 #ifdef F77_DUMMY_MAIN
21129 #  ifdef __cplusplus
21130      extern "C"
21131 #  endif
21132    int F77_DUMMY_MAIN() { return 1; }
21133 #endif
21134 int
21135 main ()
21136 {
21137 /* The GNU C library defines this for functions which it implements
21138     to always fail with ENOSYS.  Some functions are actually named
21139     something starting with __ and the normal name is an alias.  */
21140 #if defined (__stub_rcmd) || defined (__stub___rcmd)
21141 choke me
21142 #else
21143 f = rcmd;
21144 #endif
21145
21146   ;
21147   return 0;
21148 }
21149 _ACEOF
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152   (eval $ac_link) 2>&5
21153   ac_status=$?
21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); } &&
21156          { ac_try='test -s conftest$ac_exeext'
21157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158   (eval $ac_try) 2>&5
21159   ac_status=$?
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); }; }; then
21162   ac_cv_func_rcmd=yes
21163 else
21164   echo "$as_me: failed program was:" >&5
21165 cat conftest.$ac_ext >&5
21166 ac_cv_func_rcmd=no
21167 fi
21168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21169 fi
21170 echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
21171 echo "${ECHO_T}$ac_cv_func_rcmd" >&6
21172 if test $ac_cv_func_rcmd = yes; then
21173
21174 cat >>confdefs.h <<_ACEOF
21175 #define HAVE_RCMD 1
21176 _ACEOF
21177
21178 else
21179   LIBOBJS="$LIBOBJS rcmd.$ac_objext"
21180 fi
21181 echo "$as_me:$LINENO: checking for readv" >&5
21182 echo $ECHO_N "checking for readv... $ECHO_C" >&6
21183 if test "${ac_cv_func_readv+set}" = set; then
21184   echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186   cat >conftest.$ac_ext <<_ACEOF
21187 #line $LINENO "configure"
21188 #include "confdefs.h"
21189 /* System header to define __stub macros and hopefully few prototypes,
21190     which can conflict with char readv (); below.  */
21191 #include <assert.h>
21192 /* Override any gcc2 internal prototype to avoid an error.  */
21193 #ifdef __cplusplus
21194 extern "C"
21195 #endif
21196 /* We use char because int might match the return type of a gcc2
21197    builtin and then its argument prototype would still apply.  */
21198 char readv ();
21199 char (*f) ();
21200
21201 #ifdef F77_DUMMY_MAIN
21202 #  ifdef __cplusplus
21203      extern "C"
21204 #  endif
21205    int F77_DUMMY_MAIN() { return 1; }
21206 #endif
21207 int
21208 main ()
21209 {
21210 /* The GNU C library defines this for functions which it implements
21211     to always fail with ENOSYS.  Some functions are actually named
21212     something starting with __ and the normal name is an alias.  */
21213 #if defined (__stub_readv) || defined (__stub___readv)
21214 choke me
21215 #else
21216 f = readv;
21217 #endif
21218
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21225   (eval $ac_link) 2>&5
21226   ac_status=$?
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } &&
21229          { ac_try='test -s conftest$ac_exeext'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; }; then
21235   ac_cv_func_readv=yes
21236 else
21237   echo "$as_me: failed program was:" >&5
21238 cat conftest.$ac_ext >&5
21239 ac_cv_func_readv=no
21240 fi
21241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21242 fi
21243 echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
21244 echo "${ECHO_T}$ac_cv_func_readv" >&6
21245 if test $ac_cv_func_readv = yes; then
21246
21247 cat >>confdefs.h <<_ACEOF
21248 #define HAVE_READV 1
21249 _ACEOF
21250
21251 else
21252   LIBOBJS="$LIBOBJS readv.$ac_objext"
21253 fi
21254 echo "$as_me:$LINENO: checking for recvmsg" >&5
21255 echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
21256 if test "${ac_cv_func_recvmsg+set}" = set; then
21257   echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259   cat >conftest.$ac_ext <<_ACEOF
21260 #line $LINENO "configure"
21261 #include "confdefs.h"
21262 /* System header to define __stub macros and hopefully few prototypes,
21263     which can conflict with char recvmsg (); below.  */
21264 #include <assert.h>
21265 /* Override any gcc2 internal prototype to avoid an error.  */
21266 #ifdef __cplusplus
21267 extern "C"
21268 #endif
21269 /* We use char because int might match the return type of a gcc2
21270    builtin and then its argument prototype would still apply.  */
21271 char recvmsg ();
21272 char (*f) ();
21273
21274 #ifdef F77_DUMMY_MAIN
21275 #  ifdef __cplusplus
21276      extern "C"
21277 #  endif
21278    int F77_DUMMY_MAIN() { return 1; }
21279 #endif
21280 int
21281 main ()
21282 {
21283 /* The GNU C library defines this for functions which it implements
21284     to always fail with ENOSYS.  Some functions are actually named
21285     something starting with __ and the normal name is an alias.  */
21286 #if defined (__stub_recvmsg) || defined (__stub___recvmsg)
21287 choke me
21288 #else
21289 f = recvmsg;
21290 #endif
21291
21292   ;
21293   return 0;
21294 }
21295 _ACEOF
21296 rm -f conftest.$ac_objext conftest$ac_exeext
21297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21298   (eval $ac_link) 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); } &&
21302          { ac_try='test -s conftest$ac_exeext'
21303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304   (eval $ac_try) 2>&5
21305   ac_status=$?
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); }; }; then
21308   ac_cv_func_recvmsg=yes
21309 else
21310   echo "$as_me: failed program was:" >&5
21311 cat conftest.$ac_ext >&5
21312 ac_cv_func_recvmsg=no
21313 fi
21314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21315 fi
21316 echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
21317 echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
21318 if test $ac_cv_func_recvmsg = yes; then
21319
21320 cat >>confdefs.h <<_ACEOF
21321 #define HAVE_RECVMSG 1
21322 _ACEOF
21323
21324 else
21325   LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
21326 fi
21327 echo "$as_me:$LINENO: checking for sendmsg" >&5
21328 echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
21329 if test "${ac_cv_func_sendmsg+set}" = set; then
21330   echo $ECHO_N "(cached) $ECHO_C" >&6
21331 else
21332   cat >conftest.$ac_ext <<_ACEOF
21333 #line $LINENO "configure"
21334 #include "confdefs.h"
21335 /* System header to define __stub macros and hopefully few prototypes,
21336     which can conflict with char sendmsg (); below.  */
21337 #include <assert.h>
21338 /* Override any gcc2 internal prototype to avoid an error.  */
21339 #ifdef __cplusplus
21340 extern "C"
21341 #endif
21342 /* We use char because int might match the return type of a gcc2
21343    builtin and then its argument prototype would still apply.  */
21344 char sendmsg ();
21345 char (*f) ();
21346
21347 #ifdef F77_DUMMY_MAIN
21348 #  ifdef __cplusplus
21349      extern "C"
21350 #  endif
21351    int F77_DUMMY_MAIN() { return 1; }
21352 #endif
21353 int
21354 main ()
21355 {
21356 /* The GNU C library defines this for functions which it implements
21357     to always fail with ENOSYS.  Some functions are actually named
21358     something starting with __ and the normal name is an alias.  */
21359 #if defined (__stub_sendmsg) || defined (__stub___sendmsg)
21360 choke me
21361 #else
21362 f = sendmsg;
21363 #endif
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371   (eval $ac_link) 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); } &&
21375          { ac_try='test -s conftest$ac_exeext'
21376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377   (eval $ac_try) 2>&5
21378   ac_status=$?
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); }; }; then
21381   ac_cv_func_sendmsg=yes
21382 else
21383   echo "$as_me: failed program was:" >&5
21384 cat conftest.$ac_ext >&5
21385 ac_cv_func_sendmsg=no
21386 fi
21387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21388 fi
21389 echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
21390 echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
21391 if test $ac_cv_func_sendmsg = yes; then
21392
21393 cat >>confdefs.h <<_ACEOF
21394 #define HAVE_SENDMSG 1
21395 _ACEOF
21396
21397 else
21398   LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
21399 fi
21400 echo "$as_me:$LINENO: checking for setegid" >&5
21401 echo $ECHO_N "checking for setegid... $ECHO_C" >&6
21402 if test "${ac_cv_func_setegid+set}" = set; then
21403   echo $ECHO_N "(cached) $ECHO_C" >&6
21404 else
21405   cat >conftest.$ac_ext <<_ACEOF
21406 #line $LINENO "configure"
21407 #include "confdefs.h"
21408 /* System header to define __stub macros and hopefully few prototypes,
21409     which can conflict with char setegid (); below.  */
21410 #include <assert.h>
21411 /* Override any gcc2 internal prototype to avoid an error.  */
21412 #ifdef __cplusplus
21413 extern "C"
21414 #endif
21415 /* We use char because int might match the return type of a gcc2
21416    builtin and then its argument prototype would still apply.  */
21417 char setegid ();
21418 char (*f) ();
21419
21420 #ifdef F77_DUMMY_MAIN
21421 #  ifdef __cplusplus
21422      extern "C"
21423 #  endif
21424    int F77_DUMMY_MAIN() { return 1; }
21425 #endif
21426 int
21427 main ()
21428 {
21429 /* The GNU C library defines this for functions which it implements
21430     to always fail with ENOSYS.  Some functions are actually named
21431     something starting with __ and the normal name is an alias.  */
21432 #if defined (__stub_setegid) || defined (__stub___setegid)
21433 choke me
21434 #else
21435 f = setegid;
21436 #endif
21437
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444   (eval $ac_link) 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } &&
21448          { ac_try='test -s conftest$ac_exeext'
21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450   (eval $ac_try) 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; }; then
21454   ac_cv_func_setegid=yes
21455 else
21456   echo "$as_me: failed program was:" >&5
21457 cat conftest.$ac_ext >&5
21458 ac_cv_func_setegid=no
21459 fi
21460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21461 fi
21462 echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
21463 echo "${ECHO_T}$ac_cv_func_setegid" >&6
21464 if test $ac_cv_func_setegid = yes; then
21465
21466 cat >>confdefs.h <<_ACEOF
21467 #define HAVE_SETEGID 1
21468 _ACEOF
21469
21470 else
21471   LIBOBJS="$LIBOBJS setegid.$ac_objext"
21472 fi
21473 echo "$as_me:$LINENO: checking for setenv" >&5
21474 echo $ECHO_N "checking for setenv... $ECHO_C" >&6
21475 if test "${ac_cv_func_setenv+set}" = set; then
21476   echo $ECHO_N "(cached) $ECHO_C" >&6
21477 else
21478   cat >conftest.$ac_ext <<_ACEOF
21479 #line $LINENO "configure"
21480 #include "confdefs.h"
21481 /* System header to define __stub macros and hopefully few prototypes,
21482     which can conflict with char setenv (); below.  */
21483 #include <assert.h>
21484 /* Override any gcc2 internal prototype to avoid an error.  */
21485 #ifdef __cplusplus
21486 extern "C"
21487 #endif
21488 /* We use char because int might match the return type of a gcc2
21489    builtin and then its argument prototype would still apply.  */
21490 char setenv ();
21491 char (*f) ();
21492
21493 #ifdef F77_DUMMY_MAIN
21494 #  ifdef __cplusplus
21495      extern "C"
21496 #  endif
21497    int F77_DUMMY_MAIN() { return 1; }
21498 #endif
21499 int
21500 main ()
21501 {
21502 /* The GNU C library defines this for functions which it implements
21503     to always fail with ENOSYS.  Some functions are actually named
21504     something starting with __ and the normal name is an alias.  */
21505 #if defined (__stub_setenv) || defined (__stub___setenv)
21506 choke me
21507 #else
21508 f = setenv;
21509 #endif
21510
21511   ;
21512   return 0;
21513 }
21514 _ACEOF
21515 rm -f conftest.$ac_objext conftest$ac_exeext
21516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21517   (eval $ac_link) 2>&5
21518   ac_status=$?
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); } &&
21521          { ac_try='test -s conftest$ac_exeext'
21522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523   (eval $ac_try) 2>&5
21524   ac_status=$?
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); }; }; then
21527   ac_cv_func_setenv=yes
21528 else
21529   echo "$as_me: failed program was:" >&5
21530 cat conftest.$ac_ext >&5
21531 ac_cv_func_setenv=no
21532 fi
21533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21534 fi
21535 echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
21536 echo "${ECHO_T}$ac_cv_func_setenv" >&6
21537 if test $ac_cv_func_setenv = yes; then
21538
21539 cat >>confdefs.h <<_ACEOF
21540 #define HAVE_SETENV 1
21541 _ACEOF
21542
21543 else
21544   LIBOBJS="$LIBOBJS setenv.$ac_objext"
21545 fi
21546 echo "$as_me:$LINENO: checking for seteuid" >&5
21547 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
21548 if test "${ac_cv_func_seteuid+set}" = set; then
21549   echo $ECHO_N "(cached) $ECHO_C" >&6
21550 else
21551   cat >conftest.$ac_ext <<_ACEOF
21552 #line $LINENO "configure"
21553 #include "confdefs.h"
21554 /* System header to define __stub macros and hopefully few prototypes,
21555     which can conflict with char seteuid (); below.  */
21556 #include <assert.h>
21557 /* Override any gcc2 internal prototype to avoid an error.  */
21558 #ifdef __cplusplus
21559 extern "C"
21560 #endif
21561 /* We use char because int might match the return type of a gcc2
21562    builtin and then its argument prototype would still apply.  */
21563 char seteuid ();
21564 char (*f) ();
21565
21566 #ifdef F77_DUMMY_MAIN
21567 #  ifdef __cplusplus
21568      extern "C"
21569 #  endif
21570    int F77_DUMMY_MAIN() { return 1; }
21571 #endif
21572 int
21573 main ()
21574 {
21575 /* The GNU C library defines this for functions which it implements
21576     to always fail with ENOSYS.  Some functions are actually named
21577     something starting with __ and the normal name is an alias.  */
21578 #if defined (__stub_seteuid) || defined (__stub___seteuid)
21579 choke me
21580 #else
21581 f = seteuid;
21582 #endif
21583
21584   ;
21585   return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext conftest$ac_exeext
21589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21590   (eval $ac_link) 2>&5
21591   ac_status=$?
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); } &&
21594          { ac_try='test -s conftest$ac_exeext'
21595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596   (eval $ac_try) 2>&5
21597   ac_status=$?
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); }; }; then
21600   ac_cv_func_seteuid=yes
21601 else
21602   echo "$as_me: failed program was:" >&5
21603 cat conftest.$ac_ext >&5
21604 ac_cv_func_seteuid=no
21605 fi
21606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21607 fi
21608 echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
21609 echo "${ECHO_T}$ac_cv_func_seteuid" >&6
21610 if test $ac_cv_func_seteuid = yes; then
21611
21612 cat >>confdefs.h <<_ACEOF
21613 #define HAVE_SETEUID 1
21614 _ACEOF
21615
21616 else
21617   LIBOBJS="$LIBOBJS seteuid.$ac_objext"
21618 fi
21619 echo "$as_me:$LINENO: checking for strcasecmp" >&5
21620 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
21621 if test "${ac_cv_func_strcasecmp+set}" = set; then
21622   echo $ECHO_N "(cached) $ECHO_C" >&6
21623 else
21624   cat >conftest.$ac_ext <<_ACEOF
21625 #line $LINENO "configure"
21626 #include "confdefs.h"
21627 /* System header to define __stub macros and hopefully few prototypes,
21628     which can conflict with char strcasecmp (); below.  */
21629 #include <assert.h>
21630 /* Override any gcc2 internal prototype to avoid an error.  */
21631 #ifdef __cplusplus
21632 extern "C"
21633 #endif
21634 /* We use char because int might match the return type of a gcc2
21635    builtin and then its argument prototype would still apply.  */
21636 char strcasecmp ();
21637 char (*f) ();
21638
21639 #ifdef F77_DUMMY_MAIN
21640 #  ifdef __cplusplus
21641      extern "C"
21642 #  endif
21643    int F77_DUMMY_MAIN() { return 1; }
21644 #endif
21645 int
21646 main ()
21647 {
21648 /* The GNU C library defines this for functions which it implements
21649     to always fail with ENOSYS.  Some functions are actually named
21650     something starting with __ and the normal name is an alias.  */
21651 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
21652 choke me
21653 #else
21654 f = strcasecmp;
21655 #endif
21656
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663   (eval $ac_link) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } &&
21667          { ac_try='test -s conftest$ac_exeext'
21668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669   (eval $ac_try) 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; }; then
21673   ac_cv_func_strcasecmp=yes
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 cat conftest.$ac_ext >&5
21677 ac_cv_func_strcasecmp=no
21678 fi
21679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21680 fi
21681 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
21682 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
21683 if test $ac_cv_func_strcasecmp = yes; then
21684
21685 cat >>confdefs.h <<_ACEOF
21686 #define HAVE_STRCASECMP 1
21687 _ACEOF
21688
21689 else
21690   LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
21691 fi
21692 echo "$as_me:$LINENO: checking for strdup" >&5
21693 echo $ECHO_N "checking for strdup... $ECHO_C" >&6
21694 if test "${ac_cv_func_strdup+set}" = set; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697   cat >conftest.$ac_ext <<_ACEOF
21698 #line $LINENO "configure"
21699 #include "confdefs.h"
21700 /* System header to define __stub macros and hopefully few prototypes,
21701     which can conflict with char strdup (); below.  */
21702 #include <assert.h>
21703 /* Override any gcc2 internal prototype to avoid an error.  */
21704 #ifdef __cplusplus
21705 extern "C"
21706 #endif
21707 /* We use char because int might match the return type of a gcc2
21708    builtin and then its argument prototype would still apply.  */
21709 char strdup ();
21710 char (*f) ();
21711
21712 #ifdef F77_DUMMY_MAIN
21713 #  ifdef __cplusplus
21714      extern "C"
21715 #  endif
21716    int F77_DUMMY_MAIN() { return 1; }
21717 #endif
21718 int
21719 main ()
21720 {
21721 /* The GNU C library defines this for functions which it implements
21722     to always fail with ENOSYS.  Some functions are actually named
21723     something starting with __ and the normal name is an alias.  */
21724 #if defined (__stub_strdup) || defined (__stub___strdup)
21725 choke me
21726 #else
21727 f = strdup;
21728 #endif
21729
21730   ;
21731   return 0;
21732 }
21733 _ACEOF
21734 rm -f conftest.$ac_objext conftest$ac_exeext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736   (eval $ac_link) 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } &&
21740          { ac_try='test -s conftest$ac_exeext'
21741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742   (eval $ac_try) 2>&5
21743   ac_status=$?
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); }; }; then
21746   ac_cv_func_strdup=yes
21747 else
21748   echo "$as_me: failed program was:" >&5
21749 cat conftest.$ac_ext >&5
21750 ac_cv_func_strdup=no
21751 fi
21752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21753 fi
21754 echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
21755 echo "${ECHO_T}$ac_cv_func_strdup" >&6
21756 if test $ac_cv_func_strdup = yes; then
21757
21758 cat >>confdefs.h <<_ACEOF
21759 #define HAVE_STRDUP 1
21760 _ACEOF
21761
21762 else
21763   LIBOBJS="$LIBOBJS strdup.$ac_objext"
21764 fi
21765 echo "$as_me:$LINENO: checking for strerror" >&5
21766 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
21767 if test "${ac_cv_func_strerror+set}" = set; then
21768   echo $ECHO_N "(cached) $ECHO_C" >&6
21769 else
21770   cat >conftest.$ac_ext <<_ACEOF
21771 #line $LINENO "configure"
21772 #include "confdefs.h"
21773 /* System header to define __stub macros and hopefully few prototypes,
21774     which can conflict with char strerror (); below.  */
21775 #include <assert.h>
21776 /* Override any gcc2 internal prototype to avoid an error.  */
21777 #ifdef __cplusplus
21778 extern "C"
21779 #endif
21780 /* We use char because int might match the return type of a gcc2
21781    builtin and then its argument prototype would still apply.  */
21782 char strerror ();
21783 char (*f) ();
21784
21785 #ifdef F77_DUMMY_MAIN
21786 #  ifdef __cplusplus
21787      extern "C"
21788 #  endif
21789    int F77_DUMMY_MAIN() { return 1; }
21790 #endif
21791 int
21792 main ()
21793 {
21794 /* The GNU C library defines this for functions which it implements
21795     to always fail with ENOSYS.  Some functions are actually named
21796     something starting with __ and the normal name is an alias.  */
21797 #if defined (__stub_strerror) || defined (__stub___strerror)
21798 choke me
21799 #else
21800 f = strerror;
21801 #endif
21802
21803   ;
21804   return 0;
21805 }
21806 _ACEOF
21807 rm -f conftest.$ac_objext conftest$ac_exeext
21808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21809   (eval $ac_link) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); } &&
21813          { ac_try='test -s conftest$ac_exeext'
21814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815   (eval $ac_try) 2>&5
21816   ac_status=$?
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); }; }; then
21819   ac_cv_func_strerror=yes
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 cat conftest.$ac_ext >&5
21823 ac_cv_func_strerror=no
21824 fi
21825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21826 fi
21827 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
21828 echo "${ECHO_T}$ac_cv_func_strerror" >&6
21829 if test $ac_cv_func_strerror = yes; then
21830
21831 cat >>confdefs.h <<_ACEOF
21832 #define HAVE_STRERROR 1
21833 _ACEOF
21834
21835 else
21836   LIBOBJS="$LIBOBJS strerror.$ac_objext"
21837 fi
21838 echo "$as_me:$LINENO: checking for strftime" >&5
21839 echo $ECHO_N "checking for strftime... $ECHO_C" >&6
21840 if test "${ac_cv_func_strftime+set}" = set; then
21841   echo $ECHO_N "(cached) $ECHO_C" >&6
21842 else
21843   cat >conftest.$ac_ext <<_ACEOF
21844 #line $LINENO "configure"
21845 #include "confdefs.h"
21846 /* System header to define __stub macros and hopefully few prototypes,
21847     which can conflict with char strftime (); below.  */
21848 #include <assert.h>
21849 /* Override any gcc2 internal prototype to avoid an error.  */
21850 #ifdef __cplusplus
21851 extern "C"
21852 #endif
21853 /* We use char because int might match the return type of a gcc2
21854    builtin and then its argument prototype would still apply.  */
21855 char strftime ();
21856 char (*f) ();
21857
21858 #ifdef F77_DUMMY_MAIN
21859 #  ifdef __cplusplus
21860      extern "C"
21861 #  endif
21862    int F77_DUMMY_MAIN() { return 1; }
21863 #endif
21864 int
21865 main ()
21866 {
21867 /* The GNU C library defines this for functions which it implements
21868     to always fail with ENOSYS.  Some functions are actually named
21869     something starting with __ and the normal name is an alias.  */
21870 #if defined (__stub_strftime) || defined (__stub___strftime)
21871 choke me
21872 #else
21873 f = strftime;
21874 #endif
21875
21876   ;
21877   return 0;
21878 }
21879 _ACEOF
21880 rm -f conftest.$ac_objext conftest$ac_exeext
21881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21882   (eval $ac_link) 2>&5
21883   ac_status=$?
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); } &&
21886          { ac_try='test -s conftest$ac_exeext'
21887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888   (eval $ac_try) 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); }; }; then
21892   ac_cv_func_strftime=yes
21893 else
21894   echo "$as_me: failed program was:" >&5
21895 cat conftest.$ac_ext >&5
21896 ac_cv_func_strftime=no
21897 fi
21898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21899 fi
21900 echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
21901 echo "${ECHO_T}$ac_cv_func_strftime" >&6
21902 if test $ac_cv_func_strftime = yes; then
21903
21904 cat >>confdefs.h <<_ACEOF
21905 #define HAVE_STRFTIME 1
21906 _ACEOF
21907
21908 else
21909   LIBOBJS="$LIBOBJS strftime.$ac_objext"
21910 fi
21911 echo "$as_me:$LINENO: checking for strlcat" >&5
21912 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
21913 if test "${ac_cv_func_strlcat+set}" = set; then
21914   echo $ECHO_N "(cached) $ECHO_C" >&6
21915 else
21916   cat >conftest.$ac_ext <<_ACEOF
21917 #line $LINENO "configure"
21918 #include "confdefs.h"
21919 /* System header to define __stub macros and hopefully few prototypes,
21920     which can conflict with char strlcat (); below.  */
21921 #include <assert.h>
21922 /* Override any gcc2 internal prototype to avoid an error.  */
21923 #ifdef __cplusplus
21924 extern "C"
21925 #endif
21926 /* We use char because int might match the return type of a gcc2
21927    builtin and then its argument prototype would still apply.  */
21928 char strlcat ();
21929 char (*f) ();
21930
21931 #ifdef F77_DUMMY_MAIN
21932 #  ifdef __cplusplus
21933      extern "C"
21934 #  endif
21935    int F77_DUMMY_MAIN() { return 1; }
21936 #endif
21937 int
21938 main ()
21939 {
21940 /* The GNU C library defines this for functions which it implements
21941     to always fail with ENOSYS.  Some functions are actually named
21942     something starting with __ and the normal name is an alias.  */
21943 #if defined (__stub_strlcat) || defined (__stub___strlcat)
21944 choke me
21945 #else
21946 f = strlcat;
21947 #endif
21948
21949   ;
21950   return 0;
21951 }
21952 _ACEOF
21953 rm -f conftest.$ac_objext conftest$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955   (eval $ac_link) 2>&5
21956   ac_status=$?
21957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958   (exit $ac_status); } &&
21959          { ac_try='test -s conftest$ac_exeext'
21960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961   (eval $ac_try) 2>&5
21962   ac_status=$?
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); }; }; then
21965   ac_cv_func_strlcat=yes
21966 else
21967   echo "$as_me: failed program was:" >&5
21968 cat conftest.$ac_ext >&5
21969 ac_cv_func_strlcat=no
21970 fi
21971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21972 fi
21973 echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
21974 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
21975 if test $ac_cv_func_strlcat = yes; then
21976
21977 cat >>confdefs.h <<_ACEOF
21978 #define HAVE_STRLCAT 1
21979 _ACEOF
21980
21981 else
21982   LIBOBJS="$LIBOBJS strlcat.$ac_objext"
21983 fi
21984 echo "$as_me:$LINENO: checking for strlcpy" >&5
21985 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
21986 if test "${ac_cv_func_strlcpy+set}" = set; then
21987   echo $ECHO_N "(cached) $ECHO_C" >&6
21988 else
21989   cat >conftest.$ac_ext <<_ACEOF
21990 #line $LINENO "configure"
21991 #include "confdefs.h"
21992 /* System header to define __stub macros and hopefully few prototypes,
21993     which can conflict with char strlcpy (); below.  */
21994 #include <assert.h>
21995 /* Override any gcc2 internal prototype to avoid an error.  */
21996 #ifdef __cplusplus
21997 extern "C"
21998 #endif
21999 /* We use char because int might match the return type of a gcc2
22000    builtin and then its argument prototype would still apply.  */
22001 char strlcpy ();
22002 char (*f) ();
22003
22004 #ifdef F77_DUMMY_MAIN
22005 #  ifdef __cplusplus
22006      extern "C"
22007 #  endif
22008    int F77_DUMMY_MAIN() { return 1; }
22009 #endif
22010 int
22011 main ()
22012 {
22013 /* The GNU C library defines this for functions which it implements
22014     to always fail with ENOSYS.  Some functions are actually named
22015     something starting with __ and the normal name is an alias.  */
22016 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
22017 choke me
22018 #else
22019 f = strlcpy;
22020 #endif
22021
22022   ;
22023   return 0;
22024 }
22025 _ACEOF
22026 rm -f conftest.$ac_objext conftest$ac_exeext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22028   (eval $ac_link) 2>&5
22029   ac_status=$?
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); } &&
22032          { ac_try='test -s conftest$ac_exeext'
22033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034   (eval $ac_try) 2>&5
22035   ac_status=$?
22036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037   (exit $ac_status); }; }; then
22038   ac_cv_func_strlcpy=yes
22039 else
22040   echo "$as_me: failed program was:" >&5
22041 cat conftest.$ac_ext >&5
22042 ac_cv_func_strlcpy=no
22043 fi
22044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22045 fi
22046 echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
22047 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
22048 if test $ac_cv_func_strlcpy = yes; then
22049
22050 cat >>confdefs.h <<_ACEOF
22051 #define HAVE_STRLCPY 1
22052 _ACEOF
22053
22054 else
22055   LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
22056 fi
22057 echo "$as_me:$LINENO: checking for strlwr" >&5
22058 echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
22059 if test "${ac_cv_func_strlwr+set}" = set; then
22060   echo $ECHO_N "(cached) $ECHO_C" >&6
22061 else
22062   cat >conftest.$ac_ext <<_ACEOF
22063 #line $LINENO "configure"
22064 #include "confdefs.h"
22065 /* System header to define __stub macros and hopefully few prototypes,
22066     which can conflict with char strlwr (); below.  */
22067 #include <assert.h>
22068 /* Override any gcc2 internal prototype to avoid an error.  */
22069 #ifdef __cplusplus
22070 extern "C"
22071 #endif
22072 /* We use char because int might match the return type of a gcc2
22073    builtin and then its argument prototype would still apply.  */
22074 char strlwr ();
22075 char (*f) ();
22076
22077 #ifdef F77_DUMMY_MAIN
22078 #  ifdef __cplusplus
22079      extern "C"
22080 #  endif
22081    int F77_DUMMY_MAIN() { return 1; }
22082 #endif
22083 int
22084 main ()
22085 {
22086 /* The GNU C library defines this for functions which it implements
22087     to always fail with ENOSYS.  Some functions are actually named
22088     something starting with __ and the normal name is an alias.  */
22089 #if defined (__stub_strlwr) || defined (__stub___strlwr)
22090 choke me
22091 #else
22092 f = strlwr;
22093 #endif
22094
22095   ;
22096   return 0;
22097 }
22098 _ACEOF
22099 rm -f conftest.$ac_objext conftest$ac_exeext
22100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22101   (eval $ac_link) 2>&5
22102   ac_status=$?
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } &&
22105          { ac_try='test -s conftest$ac_exeext'
22106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107   (eval $ac_try) 2>&5
22108   ac_status=$?
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); }; }; then
22111   ac_cv_func_strlwr=yes
22112 else
22113   echo "$as_me: failed program was:" >&5
22114 cat conftest.$ac_ext >&5
22115 ac_cv_func_strlwr=no
22116 fi
22117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22118 fi
22119 echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
22120 echo "${ECHO_T}$ac_cv_func_strlwr" >&6
22121 if test $ac_cv_func_strlwr = yes; then
22122
22123 cat >>confdefs.h <<_ACEOF
22124 #define HAVE_STRLWR 1
22125 _ACEOF
22126
22127 else
22128   LIBOBJS="$LIBOBJS strlwr.$ac_objext"
22129 fi
22130 echo "$as_me:$LINENO: checking for strncasecmp" >&5
22131 echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
22132 if test "${ac_cv_func_strncasecmp+set}" = set; then
22133   echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135   cat >conftest.$ac_ext <<_ACEOF
22136 #line $LINENO "configure"
22137 #include "confdefs.h"
22138 /* System header to define __stub macros and hopefully few prototypes,
22139     which can conflict with char strncasecmp (); below.  */
22140 #include <assert.h>
22141 /* Override any gcc2 internal prototype to avoid an error.  */
22142 #ifdef __cplusplus
22143 extern "C"
22144 #endif
22145 /* We use char because int might match the return type of a gcc2
22146    builtin and then its argument prototype would still apply.  */
22147 char strncasecmp ();
22148 char (*f) ();
22149
22150 #ifdef F77_DUMMY_MAIN
22151 #  ifdef __cplusplus
22152      extern "C"
22153 #  endif
22154    int F77_DUMMY_MAIN() { return 1; }
22155 #endif
22156 int
22157 main ()
22158 {
22159 /* The GNU C library defines this for functions which it implements
22160     to always fail with ENOSYS.  Some functions are actually named
22161     something starting with __ and the normal name is an alias.  */
22162 #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
22163 choke me
22164 #else
22165 f = strncasecmp;
22166 #endif
22167
22168   ;
22169   return 0;
22170 }
22171 _ACEOF
22172 rm -f conftest.$ac_objext conftest$ac_exeext
22173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22174   (eval $ac_link) 2>&5
22175   ac_status=$?
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); } &&
22178          { ac_try='test -s conftest$ac_exeext'
22179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180   (eval $ac_try) 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; }; then
22184   ac_cv_func_strncasecmp=yes
22185 else
22186   echo "$as_me: failed program was:" >&5
22187 cat conftest.$ac_ext >&5
22188 ac_cv_func_strncasecmp=no
22189 fi
22190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22191 fi
22192 echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
22193 echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
22194 if test $ac_cv_func_strncasecmp = yes; then
22195
22196 cat >>confdefs.h <<_ACEOF
22197 #define HAVE_STRNCASECMP 1
22198 _ACEOF
22199
22200 else
22201   LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
22202 fi
22203 echo "$as_me:$LINENO: checking for strndup" >&5
22204 echo $ECHO_N "checking for strndup... $ECHO_C" >&6
22205 if test "${ac_cv_func_strndup+set}" = set; then
22206   echo $ECHO_N "(cached) $ECHO_C" >&6
22207 else
22208   cat >conftest.$ac_ext <<_ACEOF
22209 #line $LINENO "configure"
22210 #include "confdefs.h"
22211 /* System header to define __stub macros and hopefully few prototypes,
22212     which can conflict with char strndup (); below.  */
22213 #include <assert.h>
22214 /* Override any gcc2 internal prototype to avoid an error.  */
22215 #ifdef __cplusplus
22216 extern "C"
22217 #endif
22218 /* We use char because int might match the return type of a gcc2
22219    builtin and then its argument prototype would still apply.  */
22220 char strndup ();
22221 char (*f) ();
22222
22223 #ifdef F77_DUMMY_MAIN
22224 #  ifdef __cplusplus
22225      extern "C"
22226 #  endif
22227    int F77_DUMMY_MAIN() { return 1; }
22228 #endif
22229 int
22230 main ()
22231 {
22232 /* The GNU C library defines this for functions which it implements
22233     to always fail with ENOSYS.  Some functions are actually named
22234     something starting with __ and the normal name is an alias.  */
22235 #if defined (__stub_strndup) || defined (__stub___strndup)
22236 choke me
22237 #else
22238 f = strndup;
22239 #endif
22240
22241   ;
22242   return 0;
22243 }
22244 _ACEOF
22245 rm -f conftest.$ac_objext conftest$ac_exeext
22246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22247   (eval $ac_link) 2>&5
22248   ac_status=$?
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); } &&
22251          { ac_try='test -s conftest$ac_exeext'
22252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253   (eval $ac_try) 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); }; }; then
22257   ac_cv_func_strndup=yes
22258 else
22259   echo "$as_me: failed program was:" >&5
22260 cat conftest.$ac_ext >&5
22261 ac_cv_func_strndup=no
22262 fi
22263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22264 fi
22265 echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
22266 echo "${ECHO_T}$ac_cv_func_strndup" >&6
22267 if test $ac_cv_func_strndup = yes; then
22268
22269 cat >>confdefs.h <<_ACEOF
22270 #define HAVE_STRNDUP 1
22271 _ACEOF
22272
22273 else
22274   LIBOBJS="$LIBOBJS strndup.$ac_objext"
22275 fi
22276 echo "$as_me:$LINENO: checking for strnlen" >&5
22277 echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
22278 if test "${ac_cv_func_strnlen+set}" = set; then
22279   echo $ECHO_N "(cached) $ECHO_C" >&6
22280 else
22281   cat >conftest.$ac_ext <<_ACEOF
22282 #line $LINENO "configure"
22283 #include "confdefs.h"
22284 /* System header to define __stub macros and hopefully few prototypes,
22285     which can conflict with char strnlen (); below.  */
22286 #include <assert.h>
22287 /* Override any gcc2 internal prototype to avoid an error.  */
22288 #ifdef __cplusplus
22289 extern "C"
22290 #endif
22291 /* We use char because int might match the return type of a gcc2
22292    builtin and then its argument prototype would still apply.  */
22293 char strnlen ();
22294 char (*f) ();
22295
22296 #ifdef F77_DUMMY_MAIN
22297 #  ifdef __cplusplus
22298      extern "C"
22299 #  endif
22300    int F77_DUMMY_MAIN() { return 1; }
22301 #endif
22302 int
22303 main ()
22304 {
22305 /* The GNU C library defines this for functions which it implements
22306     to always fail with ENOSYS.  Some functions are actually named
22307     something starting with __ and the normal name is an alias.  */
22308 #if defined (__stub_strnlen) || defined (__stub___strnlen)
22309 choke me
22310 #else
22311 f = strnlen;
22312 #endif
22313
22314   ;
22315   return 0;
22316 }
22317 _ACEOF
22318 rm -f conftest.$ac_objext conftest$ac_exeext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320   (eval $ac_link) 2>&5
22321   ac_status=$?
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); } &&
22324          { ac_try='test -s conftest$ac_exeext'
22325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326   (eval $ac_try) 2>&5
22327   ac_status=$?
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   (exit $ac_status); }; }; then
22330   ac_cv_func_strnlen=yes
22331 else
22332   echo "$as_me: failed program was:" >&5
22333 cat conftest.$ac_ext >&5
22334 ac_cv_func_strnlen=no
22335 fi
22336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22337 fi
22338 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
22339 echo "${ECHO_T}$ac_cv_func_strnlen" >&6
22340 if test $ac_cv_func_strnlen = yes; then
22341
22342 cat >>confdefs.h <<_ACEOF
22343 #define HAVE_STRNLEN 1
22344 _ACEOF
22345
22346 else
22347   LIBOBJS="$LIBOBJS strnlen.$ac_objext"
22348 fi
22349 echo "$as_me:$LINENO: checking for strptime" >&5
22350 echo $ECHO_N "checking for strptime... $ECHO_C" >&6
22351 if test "${ac_cv_func_strptime+set}" = set; then
22352   echo $ECHO_N "(cached) $ECHO_C" >&6
22353 else
22354   cat >conftest.$ac_ext <<_ACEOF
22355 #line $LINENO "configure"
22356 #include "confdefs.h"
22357 /* System header to define __stub macros and hopefully few prototypes,
22358     which can conflict with char strptime (); below.  */
22359 #include <assert.h>
22360 /* Override any gcc2 internal prototype to avoid an error.  */
22361 #ifdef __cplusplus
22362 extern "C"
22363 #endif
22364 /* We use char because int might match the return type of a gcc2
22365    builtin and then its argument prototype would still apply.  */
22366 char strptime ();
22367 char (*f) ();
22368
22369 #ifdef F77_DUMMY_MAIN
22370 #  ifdef __cplusplus
22371      extern "C"
22372 #  endif
22373    int F77_DUMMY_MAIN() { return 1; }
22374 #endif
22375 int
22376 main ()
22377 {
22378 /* The GNU C library defines this for functions which it implements
22379     to always fail with ENOSYS.  Some functions are actually named
22380     something starting with __ and the normal name is an alias.  */
22381 #if defined (__stub_strptime) || defined (__stub___strptime)
22382 choke me
22383 #else
22384 f = strptime;
22385 #endif
22386
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 rm -f conftest.$ac_objext conftest$ac_exeext
22392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22393   (eval $ac_link) 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); } &&
22397          { ac_try='test -s conftest$ac_exeext'
22398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399   (eval $ac_try) 2>&5
22400   ac_status=$?
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); }; }; then
22403   ac_cv_func_strptime=yes
22404 else
22405   echo "$as_me: failed program was:" >&5
22406 cat conftest.$ac_ext >&5
22407 ac_cv_func_strptime=no
22408 fi
22409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22410 fi
22411 echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
22412 echo "${ECHO_T}$ac_cv_func_strptime" >&6
22413 if test $ac_cv_func_strptime = yes; then
22414
22415 cat >>confdefs.h <<_ACEOF
22416 #define HAVE_STRPTIME 1
22417 _ACEOF
22418
22419 else
22420   LIBOBJS="$LIBOBJS strptime.$ac_objext"
22421 fi
22422 echo "$as_me:$LINENO: checking for strsep" >&5
22423 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
22424 if test "${ac_cv_func_strsep+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   cat >conftest.$ac_ext <<_ACEOF
22428 #line $LINENO "configure"
22429 #include "confdefs.h"
22430 /* System header to define __stub macros and hopefully few prototypes,
22431     which can conflict with char strsep (); below.  */
22432 #include <assert.h>
22433 /* Override any gcc2 internal prototype to avoid an error.  */
22434 #ifdef __cplusplus
22435 extern "C"
22436 #endif
22437 /* We use char because int might match the return type of a gcc2
22438    builtin and then its argument prototype would still apply.  */
22439 char strsep ();
22440 char (*f) ();
22441
22442 #ifdef F77_DUMMY_MAIN
22443 #  ifdef __cplusplus
22444      extern "C"
22445 #  endif
22446    int F77_DUMMY_MAIN() { return 1; }
22447 #endif
22448 int
22449 main ()
22450 {
22451 /* The GNU C library defines this for functions which it implements
22452     to always fail with ENOSYS.  Some functions are actually named
22453     something starting with __ and the normal name is an alias.  */
22454 #if defined (__stub_strsep) || defined (__stub___strsep)
22455 choke me
22456 #else
22457 f = strsep;
22458 #endif
22459
22460   ;
22461   return 0;
22462 }
22463 _ACEOF
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22466   (eval $ac_link) 2>&5
22467   ac_status=$?
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } &&
22470          { ac_try='test -s conftest$ac_exeext'
22471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472   (eval $ac_try) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); }; }; then
22476   ac_cv_func_strsep=yes
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 cat conftest.$ac_ext >&5
22480 ac_cv_func_strsep=no
22481 fi
22482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22483 fi
22484 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
22485 echo "${ECHO_T}$ac_cv_func_strsep" >&6
22486 if test $ac_cv_func_strsep = yes; then
22487
22488 cat >>confdefs.h <<_ACEOF
22489 #define HAVE_STRSEP 1
22490 _ACEOF
22491
22492 else
22493   LIBOBJS="$LIBOBJS strsep.$ac_objext"
22494 fi
22495 echo "$as_me:$LINENO: checking for strsep_copy" >&5
22496 echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
22497 if test "${ac_cv_func_strsep_copy+set}" = set; then
22498   echo $ECHO_N "(cached) $ECHO_C" >&6
22499 else
22500   cat >conftest.$ac_ext <<_ACEOF
22501 #line $LINENO "configure"
22502 #include "confdefs.h"
22503 /* System header to define __stub macros and hopefully few prototypes,
22504     which can conflict with char strsep_copy (); below.  */
22505 #include <assert.h>
22506 /* Override any gcc2 internal prototype to avoid an error.  */
22507 #ifdef __cplusplus
22508 extern "C"
22509 #endif
22510 /* We use char because int might match the return type of a gcc2
22511    builtin and then its argument prototype would still apply.  */
22512 char strsep_copy ();
22513 char (*f) ();
22514
22515 #ifdef F77_DUMMY_MAIN
22516 #  ifdef __cplusplus
22517      extern "C"
22518 #  endif
22519    int F77_DUMMY_MAIN() { return 1; }
22520 #endif
22521 int
22522 main ()
22523 {
22524 /* The GNU C library defines this for functions which it implements
22525     to always fail with ENOSYS.  Some functions are actually named
22526     something starting with __ and the normal name is an alias.  */
22527 #if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
22528 choke me
22529 #else
22530 f = strsep_copy;
22531 #endif
22532
22533   ;
22534   return 0;
22535 }
22536 _ACEOF
22537 rm -f conftest.$ac_objext conftest$ac_exeext
22538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22539   (eval $ac_link) 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); } &&
22543          { ac_try='test -s conftest$ac_exeext'
22544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545   (eval $ac_try) 2>&5
22546   ac_status=$?
22547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548   (exit $ac_status); }; }; then
22549   ac_cv_func_strsep_copy=yes
22550 else
22551   echo "$as_me: failed program was:" >&5
22552 cat conftest.$ac_ext >&5
22553 ac_cv_func_strsep_copy=no
22554 fi
22555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22556 fi
22557 echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
22558 echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
22559 if test $ac_cv_func_strsep_copy = yes; then
22560
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_STRSEP_COPY 1
22563 _ACEOF
22564
22565 else
22566   LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
22567 fi
22568 echo "$as_me:$LINENO: checking for strtok_r" >&5
22569 echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
22570 if test "${ac_cv_func_strtok_r+set}" = set; then
22571   echo $ECHO_N "(cached) $ECHO_C" >&6
22572 else
22573   cat >conftest.$ac_ext <<_ACEOF
22574 #line $LINENO "configure"
22575 #include "confdefs.h"
22576 /* System header to define __stub macros and hopefully few prototypes,
22577     which can conflict with char strtok_r (); below.  */
22578 #include <assert.h>
22579 /* Override any gcc2 internal prototype to avoid an error.  */
22580 #ifdef __cplusplus
22581 extern "C"
22582 #endif
22583 /* We use char because int might match the return type of a gcc2
22584    builtin and then its argument prototype would still apply.  */
22585 char strtok_r ();
22586 char (*f) ();
22587
22588 #ifdef F77_DUMMY_MAIN
22589 #  ifdef __cplusplus
22590      extern "C"
22591 #  endif
22592    int F77_DUMMY_MAIN() { return 1; }
22593 #endif
22594 int
22595 main ()
22596 {
22597 /* The GNU C library defines this for functions which it implements
22598     to always fail with ENOSYS.  Some functions are actually named
22599     something starting with __ and the normal name is an alias.  */
22600 #if defined (__stub_strtok_r) || defined (__stub___strtok_r)
22601 choke me
22602 #else
22603 f = strtok_r;
22604 #endif
22605
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext conftest$ac_exeext
22611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612   (eval $ac_link) 2>&5
22613   ac_status=$?
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } &&
22616          { ac_try='test -s conftest$ac_exeext'
22617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618   (eval $ac_try) 2>&5
22619   ac_status=$?
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); }; }; then
22622   ac_cv_func_strtok_r=yes
22623 else
22624   echo "$as_me: failed program was:" >&5
22625 cat conftest.$ac_ext >&5
22626 ac_cv_func_strtok_r=no
22627 fi
22628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22629 fi
22630 echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
22631 echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
22632 if test $ac_cv_func_strtok_r = yes; then
22633
22634 cat >>confdefs.h <<_ACEOF
22635 #define HAVE_STRTOK_R 1
22636 _ACEOF
22637
22638 else
22639   LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
22640 fi
22641 echo "$as_me:$LINENO: checking for strupr" >&5
22642 echo $ECHO_N "checking for strupr... $ECHO_C" >&6
22643 if test "${ac_cv_func_strupr+set}" = set; then
22644   echo $ECHO_N "(cached) $ECHO_C" >&6
22645 else
22646   cat >conftest.$ac_ext <<_ACEOF
22647 #line $LINENO "configure"
22648 #include "confdefs.h"
22649 /* System header to define __stub macros and hopefully few prototypes,
22650     which can conflict with char strupr (); below.  */
22651 #include <assert.h>
22652 /* Override any gcc2 internal prototype to avoid an error.  */
22653 #ifdef __cplusplus
22654 extern "C"
22655 #endif
22656 /* We use char because int might match the return type of a gcc2
22657    builtin and then its argument prototype would still apply.  */
22658 char strupr ();
22659 char (*f) ();
22660
22661 #ifdef F77_DUMMY_MAIN
22662 #  ifdef __cplusplus
22663      extern "C"
22664 #  endif
22665    int F77_DUMMY_MAIN() { return 1; }
22666 #endif
22667 int
22668 main ()
22669 {
22670 /* The GNU C library defines this for functions which it implements
22671     to always fail with ENOSYS.  Some functions are actually named
22672     something starting with __ and the normal name is an alias.  */
22673 #if defined (__stub_strupr) || defined (__stub___strupr)
22674 choke me
22675 #else
22676 f = strupr;
22677 #endif
22678
22679   ;
22680   return 0;
22681 }
22682 _ACEOF
22683 rm -f conftest.$ac_objext conftest$ac_exeext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22685   (eval $ac_link) 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); } &&
22689          { ac_try='test -s conftest$ac_exeext'
22690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691   (eval $ac_try) 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; }; then
22695   ac_cv_func_strupr=yes
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 cat conftest.$ac_ext >&5
22699 ac_cv_func_strupr=no
22700 fi
22701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22702 fi
22703 echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
22704 echo "${ECHO_T}$ac_cv_func_strupr" >&6
22705 if test $ac_cv_func_strupr = yes; then
22706
22707 cat >>confdefs.h <<_ACEOF
22708 #define HAVE_STRUPR 1
22709 _ACEOF
22710
22711 else
22712   LIBOBJS="$LIBOBJS strupr.$ac_objext"
22713 fi
22714 echo "$as_me:$LINENO: checking for swab" >&5
22715 echo $ECHO_N "checking for swab... $ECHO_C" >&6
22716 if test "${ac_cv_func_swab+set}" = set; then
22717   echo $ECHO_N "(cached) $ECHO_C" >&6
22718 else
22719   cat >conftest.$ac_ext <<_ACEOF
22720 #line $LINENO "configure"
22721 #include "confdefs.h"
22722 /* System header to define __stub macros and hopefully few prototypes,
22723     which can conflict with char swab (); below.  */
22724 #include <assert.h>
22725 /* Override any gcc2 internal prototype to avoid an error.  */
22726 #ifdef __cplusplus
22727 extern "C"
22728 #endif
22729 /* We use char because int might match the return type of a gcc2
22730    builtin and then its argument prototype would still apply.  */
22731 char swab ();
22732 char (*f) ();
22733
22734 #ifdef F77_DUMMY_MAIN
22735 #  ifdef __cplusplus
22736      extern "C"
22737 #  endif
22738    int F77_DUMMY_MAIN() { return 1; }
22739 #endif
22740 int
22741 main ()
22742 {
22743 /* The GNU C library defines this for functions which it implements
22744     to always fail with ENOSYS.  Some functions are actually named
22745     something starting with __ and the normal name is an alias.  */
22746 #if defined (__stub_swab) || defined (__stub___swab)
22747 choke me
22748 #else
22749 f = swab;
22750 #endif
22751
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22758   (eval $ac_link) 2>&5
22759   ac_status=$?
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); } &&
22762          { ac_try='test -s conftest$ac_exeext'
22763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764   (eval $ac_try) 2>&5
22765   ac_status=$?
22766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767   (exit $ac_status); }; }; then
22768   ac_cv_func_swab=yes
22769 else
22770   echo "$as_me: failed program was:" >&5
22771 cat conftest.$ac_ext >&5
22772 ac_cv_func_swab=no
22773 fi
22774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22775 fi
22776 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
22777 echo "${ECHO_T}$ac_cv_func_swab" >&6
22778 if test $ac_cv_func_swab = yes; then
22779
22780 cat >>confdefs.h <<_ACEOF
22781 #define HAVE_SWAB 1
22782 _ACEOF
22783
22784 else
22785   LIBOBJS="$LIBOBJS swab.$ac_objext"
22786 fi
22787 echo "$as_me:$LINENO: checking for unsetenv" >&5
22788 echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
22789 if test "${ac_cv_func_unsetenv+set}" = set; then
22790   echo $ECHO_N "(cached) $ECHO_C" >&6
22791 else
22792   cat >conftest.$ac_ext <<_ACEOF
22793 #line $LINENO "configure"
22794 #include "confdefs.h"
22795 /* System header to define __stub macros and hopefully few prototypes,
22796     which can conflict with char unsetenv (); below.  */
22797 #include <assert.h>
22798 /* Override any gcc2 internal prototype to avoid an error.  */
22799 #ifdef __cplusplus
22800 extern "C"
22801 #endif
22802 /* We use char because int might match the return type of a gcc2
22803    builtin and then its argument prototype would still apply.  */
22804 char unsetenv ();
22805 char (*f) ();
22806
22807 #ifdef F77_DUMMY_MAIN
22808 #  ifdef __cplusplus
22809      extern "C"
22810 #  endif
22811    int F77_DUMMY_MAIN() { return 1; }
22812 #endif
22813 int
22814 main ()
22815 {
22816 /* The GNU C library defines this for functions which it implements
22817     to always fail with ENOSYS.  Some functions are actually named
22818     something starting with __ and the normal name is an alias.  */
22819 #if defined (__stub_unsetenv) || defined (__stub___unsetenv)
22820 choke me
22821 #else
22822 f = unsetenv;
22823 #endif
22824
22825   ;
22826   return 0;
22827 }
22828 _ACEOF
22829 rm -f conftest.$ac_objext conftest$ac_exeext
22830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22831   (eval $ac_link) 2>&5
22832   ac_status=$?
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } &&
22835          { ac_try='test -s conftest$ac_exeext'
22836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837   (eval $ac_try) 2>&5
22838   ac_status=$?
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); }; }; then
22841   ac_cv_func_unsetenv=yes
22842 else
22843   echo "$as_me: failed program was:" >&5
22844 cat conftest.$ac_ext >&5
22845 ac_cv_func_unsetenv=no
22846 fi
22847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22848 fi
22849 echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
22850 echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
22851 if test $ac_cv_func_unsetenv = yes; then
22852
22853 cat >>confdefs.h <<_ACEOF
22854 #define HAVE_UNSETENV 1
22855 _ACEOF
22856
22857 else
22858   LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
22859 fi
22860 echo "$as_me:$LINENO: checking for verr" >&5
22861 echo $ECHO_N "checking for verr... $ECHO_C" >&6
22862 if test "${ac_cv_func_verr+set}" = set; then
22863   echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865   cat >conftest.$ac_ext <<_ACEOF
22866 #line $LINENO "configure"
22867 #include "confdefs.h"
22868 /* System header to define __stub macros and hopefully few prototypes,
22869     which can conflict with char verr (); below.  */
22870 #include <assert.h>
22871 /* Override any gcc2 internal prototype to avoid an error.  */
22872 #ifdef __cplusplus
22873 extern "C"
22874 #endif
22875 /* We use char because int might match the return type of a gcc2
22876    builtin and then its argument prototype would still apply.  */
22877 char verr ();
22878 char (*f) ();
22879
22880 #ifdef F77_DUMMY_MAIN
22881 #  ifdef __cplusplus
22882      extern "C"
22883 #  endif
22884    int F77_DUMMY_MAIN() { return 1; }
22885 #endif
22886 int
22887 main ()
22888 {
22889 /* The GNU C library defines this for functions which it implements
22890     to always fail with ENOSYS.  Some functions are actually named
22891     something starting with __ and the normal name is an alias.  */
22892 #if defined (__stub_verr) || defined (__stub___verr)
22893 choke me
22894 #else
22895 f = verr;
22896 #endif
22897
22898   ;
22899   return 0;
22900 }
22901 _ACEOF
22902 rm -f conftest.$ac_objext conftest$ac_exeext
22903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22904   (eval $ac_link) 2>&5
22905   ac_status=$?
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); } &&
22908          { ac_try='test -s conftest$ac_exeext'
22909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910   (eval $ac_try) 2>&5
22911   ac_status=$?
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); }; }; then
22914   ac_cv_func_verr=yes
22915 else
22916   echo "$as_me: failed program was:" >&5
22917 cat conftest.$ac_ext >&5
22918 ac_cv_func_verr=no
22919 fi
22920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22921 fi
22922 echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
22923 echo "${ECHO_T}$ac_cv_func_verr" >&6
22924 if test $ac_cv_func_verr = yes; then
22925
22926 cat >>confdefs.h <<_ACEOF
22927 #define HAVE_VERR 1
22928 _ACEOF
22929
22930 else
22931   LIBOBJS="$LIBOBJS verr.$ac_objext"
22932 fi
22933 echo "$as_me:$LINENO: checking for verrx" >&5
22934 echo $ECHO_N "checking for verrx... $ECHO_C" >&6
22935 if test "${ac_cv_func_verrx+set}" = set; then
22936   echo $ECHO_N "(cached) $ECHO_C" >&6
22937 else
22938   cat >conftest.$ac_ext <<_ACEOF
22939 #line $LINENO "configure"
22940 #include "confdefs.h"
22941 /* System header to define __stub macros and hopefully few prototypes,
22942     which can conflict with char verrx (); below.  */
22943 #include <assert.h>
22944 /* Override any gcc2 internal prototype to avoid an error.  */
22945 #ifdef __cplusplus
22946 extern "C"
22947 #endif
22948 /* We use char because int might match the return type of a gcc2
22949    builtin and then its argument prototype would still apply.  */
22950 char verrx ();
22951 char (*f) ();
22952
22953 #ifdef F77_DUMMY_MAIN
22954 #  ifdef __cplusplus
22955      extern "C"
22956 #  endif
22957    int F77_DUMMY_MAIN() { return 1; }
22958 #endif
22959 int
22960 main ()
22961 {
22962 /* The GNU C library defines this for functions which it implements
22963     to always fail with ENOSYS.  Some functions are actually named
22964     something starting with __ and the normal name is an alias.  */
22965 #if defined (__stub_verrx) || defined (__stub___verrx)
22966 choke me
22967 #else
22968 f = verrx;
22969 #endif
22970
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 rm -f conftest.$ac_objext conftest$ac_exeext
22976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22977   (eval $ac_link) 2>&5
22978   ac_status=$?
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); } &&
22981          { ac_try='test -s conftest$ac_exeext'
22982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983   (eval $ac_try) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; }; then
22987   ac_cv_func_verrx=yes
22988 else
22989   echo "$as_me: failed program was:" >&5
22990 cat conftest.$ac_ext >&5
22991 ac_cv_func_verrx=no
22992 fi
22993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22994 fi
22995 echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
22996 echo "${ECHO_T}$ac_cv_func_verrx" >&6
22997 if test $ac_cv_func_verrx = yes; then
22998
22999 cat >>confdefs.h <<_ACEOF
23000 #define HAVE_VERRX 1
23001 _ACEOF
23002
23003 else
23004   LIBOBJS="$LIBOBJS verrx.$ac_objext"
23005 fi
23006 echo "$as_me:$LINENO: checking for vsyslog" >&5
23007 echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
23008 if test "${ac_cv_func_vsyslog+set}" = set; then
23009   echo $ECHO_N "(cached) $ECHO_C" >&6
23010 else
23011   cat >conftest.$ac_ext <<_ACEOF
23012 #line $LINENO "configure"
23013 #include "confdefs.h"
23014 /* System header to define __stub macros and hopefully few prototypes,
23015     which can conflict with char vsyslog (); below.  */
23016 #include <assert.h>
23017 /* Override any gcc2 internal prototype to avoid an error.  */
23018 #ifdef __cplusplus
23019 extern "C"
23020 #endif
23021 /* We use char because int might match the return type of a gcc2
23022    builtin and then its argument prototype would still apply.  */
23023 char vsyslog ();
23024 char (*f) ();
23025
23026 #ifdef F77_DUMMY_MAIN
23027 #  ifdef __cplusplus
23028      extern "C"
23029 #  endif
23030    int F77_DUMMY_MAIN() { return 1; }
23031 #endif
23032 int
23033 main ()
23034 {
23035 /* The GNU C library defines this for functions which it implements
23036     to always fail with ENOSYS.  Some functions are actually named
23037     something starting with __ and the normal name is an alias.  */
23038 #if defined (__stub_vsyslog) || defined (__stub___vsyslog)
23039 choke me
23040 #else
23041 f = vsyslog;
23042 #endif
23043
23044   ;
23045   return 0;
23046 }
23047 _ACEOF
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23050   (eval $ac_link) 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); } &&
23054          { ac_try='test -s conftest$ac_exeext'
23055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056   (eval $ac_try) 2>&5
23057   ac_status=$?
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); }; }; then
23060   ac_cv_func_vsyslog=yes
23061 else
23062   echo "$as_me: failed program was:" >&5
23063 cat conftest.$ac_ext >&5
23064 ac_cv_func_vsyslog=no
23065 fi
23066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23067 fi
23068 echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
23069 echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
23070 if test $ac_cv_func_vsyslog = yes; then
23071
23072 cat >>confdefs.h <<_ACEOF
23073 #define HAVE_VSYSLOG 1
23074 _ACEOF
23075
23076 else
23077   LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
23078 fi
23079 echo "$as_me:$LINENO: checking for vwarn" >&5
23080 echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
23081 if test "${ac_cv_func_vwarn+set}" = set; then
23082   echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084   cat >conftest.$ac_ext <<_ACEOF
23085 #line $LINENO "configure"
23086 #include "confdefs.h"
23087 /* System header to define __stub macros and hopefully few prototypes,
23088     which can conflict with char vwarn (); below.  */
23089 #include <assert.h>
23090 /* Override any gcc2 internal prototype to avoid an error.  */
23091 #ifdef __cplusplus
23092 extern "C"
23093 #endif
23094 /* We use char because int might match the return type of a gcc2
23095    builtin and then its argument prototype would still apply.  */
23096 char vwarn ();
23097 char (*f) ();
23098
23099 #ifdef F77_DUMMY_MAIN
23100 #  ifdef __cplusplus
23101      extern "C"
23102 #  endif
23103    int F77_DUMMY_MAIN() { return 1; }
23104 #endif
23105 int
23106 main ()
23107 {
23108 /* The GNU C library defines this for functions which it implements
23109     to always fail with ENOSYS.  Some functions are actually named
23110     something starting with __ and the normal name is an alias.  */
23111 #if defined (__stub_vwarn) || defined (__stub___vwarn)
23112 choke me
23113 #else
23114 f = vwarn;
23115 #endif
23116
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123   (eval $ac_link) 2>&5
23124   ac_status=$?
23125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126   (exit $ac_status); } &&
23127          { ac_try='test -s conftest$ac_exeext'
23128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129   (eval $ac_try) 2>&5
23130   ac_status=$?
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); }; }; then
23133   ac_cv_func_vwarn=yes
23134 else
23135   echo "$as_me: failed program was:" >&5
23136 cat conftest.$ac_ext >&5
23137 ac_cv_func_vwarn=no
23138 fi
23139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23140 fi
23141 echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
23142 echo "${ECHO_T}$ac_cv_func_vwarn" >&6
23143 if test $ac_cv_func_vwarn = yes; then
23144
23145 cat >>confdefs.h <<_ACEOF
23146 #define HAVE_VWARN 1
23147 _ACEOF
23148
23149 else
23150   LIBOBJS="$LIBOBJS vwarn.$ac_objext"
23151 fi
23152 echo "$as_me:$LINENO: checking for vwarnx" >&5
23153 echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
23154 if test "${ac_cv_func_vwarnx+set}" = set; then
23155   echo $ECHO_N "(cached) $ECHO_C" >&6
23156 else
23157   cat >conftest.$ac_ext <<_ACEOF
23158 #line $LINENO "configure"
23159 #include "confdefs.h"
23160 /* System header to define __stub macros and hopefully few prototypes,
23161     which can conflict with char vwarnx (); below.  */
23162 #include <assert.h>
23163 /* Override any gcc2 internal prototype to avoid an error.  */
23164 #ifdef __cplusplus
23165 extern "C"
23166 #endif
23167 /* We use char because int might match the return type of a gcc2
23168    builtin and then its argument prototype would still apply.  */
23169 char vwarnx ();
23170 char (*f) ();
23171
23172 #ifdef F77_DUMMY_MAIN
23173 #  ifdef __cplusplus
23174      extern "C"
23175 #  endif
23176    int F77_DUMMY_MAIN() { return 1; }
23177 #endif
23178 int
23179 main ()
23180 {
23181 /* The GNU C library defines this for functions which it implements
23182     to always fail with ENOSYS.  Some functions are actually named
23183     something starting with __ and the normal name is an alias.  */
23184 #if defined (__stub_vwarnx) || defined (__stub___vwarnx)
23185 choke me
23186 #else
23187 f = vwarnx;
23188 #endif
23189
23190   ;
23191   return 0;
23192 }
23193 _ACEOF
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23196   (eval $ac_link) 2>&5
23197   ac_status=$?
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); } &&
23200          { ac_try='test -s conftest$ac_exeext'
23201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202   (eval $ac_try) 2>&5
23203   ac_status=$?
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); }; }; then
23206   ac_cv_func_vwarnx=yes
23207 else
23208   echo "$as_me: failed program was:" >&5
23209 cat conftest.$ac_ext >&5
23210 ac_cv_func_vwarnx=no
23211 fi
23212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23213 fi
23214 echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
23215 echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
23216 if test $ac_cv_func_vwarnx = yes; then
23217
23218 cat >>confdefs.h <<_ACEOF
23219 #define HAVE_VWARNX 1
23220 _ACEOF
23221
23222 else
23223   LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
23224 fi
23225 echo "$as_me:$LINENO: checking for warn" >&5
23226 echo $ECHO_N "checking for warn... $ECHO_C" >&6
23227 if test "${ac_cv_func_warn+set}" = set; then
23228   echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230   cat >conftest.$ac_ext <<_ACEOF
23231 #line $LINENO "configure"
23232 #include "confdefs.h"
23233 /* System header to define __stub macros and hopefully few prototypes,
23234     which can conflict with char warn (); below.  */
23235 #include <assert.h>
23236 /* Override any gcc2 internal prototype to avoid an error.  */
23237 #ifdef __cplusplus
23238 extern "C"
23239 #endif
23240 /* We use char because int might match the return type of a gcc2
23241    builtin and then its argument prototype would still apply.  */
23242 char warn ();
23243 char (*f) ();
23244
23245 #ifdef F77_DUMMY_MAIN
23246 #  ifdef __cplusplus
23247      extern "C"
23248 #  endif
23249    int F77_DUMMY_MAIN() { return 1; }
23250 #endif
23251 int
23252 main ()
23253 {
23254 /* The GNU C library defines this for functions which it implements
23255     to always fail with ENOSYS.  Some functions are actually named
23256     something starting with __ and the normal name is an alias.  */
23257 #if defined (__stub_warn) || defined (__stub___warn)
23258 choke me
23259 #else
23260 f = warn;
23261 #endif
23262
23263   ;
23264   return 0;
23265 }
23266 _ACEOF
23267 rm -f conftest.$ac_objext conftest$ac_exeext
23268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23269   (eval $ac_link) 2>&5
23270   ac_status=$?
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } &&
23273          { ac_try='test -s conftest$ac_exeext'
23274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275   (eval $ac_try) 2>&5
23276   ac_status=$?
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); }; }; then
23279   ac_cv_func_warn=yes
23280 else
23281   echo "$as_me: failed program was:" >&5
23282 cat conftest.$ac_ext >&5
23283 ac_cv_func_warn=no
23284 fi
23285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23286 fi
23287 echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
23288 echo "${ECHO_T}$ac_cv_func_warn" >&6
23289 if test $ac_cv_func_warn = yes; then
23290
23291 cat >>confdefs.h <<_ACEOF
23292 #define HAVE_WARN 1
23293 _ACEOF
23294
23295 else
23296   LIBOBJS="$LIBOBJS warn.$ac_objext"
23297 fi
23298 echo "$as_me:$LINENO: checking for warnx" >&5
23299 echo $ECHO_N "checking for warnx... $ECHO_C" >&6
23300 if test "${ac_cv_func_warnx+set}" = set; then
23301   echo $ECHO_N "(cached) $ECHO_C" >&6
23302 else
23303   cat >conftest.$ac_ext <<_ACEOF
23304 #line $LINENO "configure"
23305 #include "confdefs.h"
23306 /* System header to define __stub macros and hopefully few prototypes,
23307     which can conflict with char warnx (); below.  */
23308 #include <assert.h>
23309 /* Override any gcc2 internal prototype to avoid an error.  */
23310 #ifdef __cplusplus
23311 extern "C"
23312 #endif
23313 /* We use char because int might match the return type of a gcc2
23314    builtin and then its argument prototype would still apply.  */
23315 char warnx ();
23316 char (*f) ();
23317
23318 #ifdef F77_DUMMY_MAIN
23319 #  ifdef __cplusplus
23320      extern "C"
23321 #  endif
23322    int F77_DUMMY_MAIN() { return 1; }
23323 #endif
23324 int
23325 main ()
23326 {
23327 /* The GNU C library defines this for functions which it implements
23328     to always fail with ENOSYS.  Some functions are actually named
23329     something starting with __ and the normal name is an alias.  */
23330 #if defined (__stub_warnx) || defined (__stub___warnx)
23331 choke me
23332 #else
23333 f = warnx;
23334 #endif
23335
23336   ;
23337   return 0;
23338 }
23339 _ACEOF
23340 rm -f conftest.$ac_objext conftest$ac_exeext
23341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23342   (eval $ac_link) 2>&5
23343   ac_status=$?
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); } &&
23346          { ac_try='test -s conftest$ac_exeext'
23347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348   (eval $ac_try) 2>&5
23349   ac_status=$?
23350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351   (exit $ac_status); }; }; then
23352   ac_cv_func_warnx=yes
23353 else
23354   echo "$as_me: failed program was:" >&5
23355 cat conftest.$ac_ext >&5
23356 ac_cv_func_warnx=no
23357 fi
23358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23359 fi
23360 echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
23361 echo "${ECHO_T}$ac_cv_func_warnx" >&6
23362 if test $ac_cv_func_warnx = yes; then
23363
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_WARNX 1
23366 _ACEOF
23367
23368 else
23369   LIBOBJS="$LIBOBJS warnx.$ac_objext"
23370 fi
23371 echo "$as_me:$LINENO: checking for writev" >&5
23372 echo $ECHO_N "checking for writev... $ECHO_C" >&6
23373 if test "${ac_cv_func_writev+set}" = set; then
23374   echo $ECHO_N "(cached) $ECHO_C" >&6
23375 else
23376   cat >conftest.$ac_ext <<_ACEOF
23377 #line $LINENO "configure"
23378 #include "confdefs.h"
23379 /* System header to define __stub macros and hopefully few prototypes,
23380     which can conflict with char writev (); below.  */
23381 #include <assert.h>
23382 /* Override any gcc2 internal prototype to avoid an error.  */
23383 #ifdef __cplusplus
23384 extern "C"
23385 #endif
23386 /* We use char because int might match the return type of a gcc2
23387    builtin and then its argument prototype would still apply.  */
23388 char writev ();
23389 char (*f) ();
23390
23391 #ifdef F77_DUMMY_MAIN
23392 #  ifdef __cplusplus
23393      extern "C"
23394 #  endif
23395    int F77_DUMMY_MAIN() { return 1; }
23396 #endif
23397 int
23398 main ()
23399 {
23400 /* The GNU C library defines this for functions which it implements
23401     to always fail with ENOSYS.  Some functions are actually named
23402     something starting with __ and the normal name is an alias.  */
23403 #if defined (__stub_writev) || defined (__stub___writev)
23404 choke me
23405 #else
23406 f = writev;
23407 #endif
23408
23409   ;
23410   return 0;
23411 }
23412 _ACEOF
23413 rm -f conftest.$ac_objext conftest$ac_exeext
23414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23415   (eval $ac_link) 2>&5
23416   ac_status=$?
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } &&
23419          { ac_try='test -s conftest$ac_exeext'
23420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421   (eval $ac_try) 2>&5
23422   ac_status=$?
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); }; }; then
23425   ac_cv_func_writev=yes
23426 else
23427   echo "$as_me: failed program was:" >&5
23428 cat conftest.$ac_ext >&5
23429 ac_cv_func_writev=no
23430 fi
23431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23432 fi
23433 echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
23434 echo "${ECHO_T}$ac_cv_func_writev" >&6
23435 if test $ac_cv_func_writev = yes; then
23436
23437 cat >>confdefs.h <<_ACEOF
23438 #define HAVE_WRITEV 1
23439 _ACEOF
23440
23441 else
23442   LIBOBJS="$LIBOBJS writev.$ac_objext"
23443 fi
23444
23445
23446
23447 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
23448 echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
23449 echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
23450 if test "${ac_cv_func_strndup_noproto+set}" = set; then
23451   echo $ECHO_N "(cached) $ECHO_C" >&6
23452 else
23453   cat >conftest.$ac_ext <<_ACEOF
23454 #line $LINENO "configure"
23455 #include "confdefs.h"
23456 #include <string.h>
23457 #ifdef F77_DUMMY_MAIN
23458 #  ifdef __cplusplus
23459      extern "C"
23460 #  endif
23461    int F77_DUMMY_MAIN() { return 1; }
23462 #endif
23463 int
23464 main ()
23465 {
23466 struct foo { int foo; } xx;
23467 extern int strndup (struct foo*);
23468 strndup(&xx);
23469
23470   ;
23471   return 0;
23472 }
23473 _ACEOF
23474 rm -f conftest.$ac_objext
23475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23476   (eval $ac_compile) 2>&5
23477   ac_status=$?
23478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479   (exit $ac_status); } &&
23480          { ac_try='test -s conftest.$ac_objext'
23481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482   (eval $ac_try) 2>&5
23483   ac_status=$?
23484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485   (exit $ac_status); }; }; then
23486   eval "ac_cv_func_strndup_noproto=yes"
23487 else
23488   echo "$as_me: failed program was:" >&5
23489 cat conftest.$ac_ext >&5
23490 eval "ac_cv_func_strndup_noproto=no"
23491 fi
23492 rm -f conftest.$ac_objext conftest.$ac_ext
23493 fi
23494 echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
23495 echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
23496 if test "$ac_cv_func_strndup_noproto" = yes; then
23497
23498 cat >>confdefs.h <<\_ACEOF
23499 #define NEED_STRNDUP_PROTO 1
23500 _ACEOF
23501
23502 fi
23503 fi
23504
23505 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
23506 echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
23507 echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
23508 if test "${ac_cv_func_strsep_noproto+set}" = set; then
23509   echo $ECHO_N "(cached) $ECHO_C" >&6
23510 else
23511   cat >conftest.$ac_ext <<_ACEOF
23512 #line $LINENO "configure"
23513 #include "confdefs.h"
23514 #include <string.h>
23515 #ifdef F77_DUMMY_MAIN
23516 #  ifdef __cplusplus
23517      extern "C"
23518 #  endif
23519    int F77_DUMMY_MAIN() { return 1; }
23520 #endif
23521 int
23522 main ()
23523 {
23524 struct foo { int foo; } xx;
23525 extern int strsep (struct foo*);
23526 strsep(&xx);
23527
23528   ;
23529   return 0;
23530 }
23531 _ACEOF
23532 rm -f conftest.$ac_objext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23534   (eval $ac_compile) 2>&5
23535   ac_status=$?
23536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); } &&
23538          { ac_try='test -s conftest.$ac_objext'
23539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540   (eval $ac_try) 2>&5
23541   ac_status=$?
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); }; }; then
23544   eval "ac_cv_func_strsep_noproto=yes"
23545 else
23546   echo "$as_me: failed program was:" >&5
23547 cat conftest.$ac_ext >&5
23548 eval "ac_cv_func_strsep_noproto=no"
23549 fi
23550 rm -f conftest.$ac_objext conftest.$ac_ext
23551 fi
23552 echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
23553 echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
23554 if test "$ac_cv_func_strsep_noproto" = yes; then
23555
23556 cat >>confdefs.h <<\_ACEOF
23557 #define NEED_STRSEP_PROTO 1
23558 _ACEOF
23559
23560 fi
23561 fi
23562
23563 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
23564 echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
23565 echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
23566 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
23567   echo $ECHO_N "(cached) $ECHO_C" >&6
23568 else
23569   cat >conftest.$ac_ext <<_ACEOF
23570 #line $LINENO "configure"
23571 #include "confdefs.h"
23572 #include <string.h>
23573 #ifdef F77_DUMMY_MAIN
23574 #  ifdef __cplusplus
23575      extern "C"
23576 #  endif
23577    int F77_DUMMY_MAIN() { return 1; }
23578 #endif
23579 int
23580 main ()
23581 {
23582 struct foo { int foo; } xx;
23583 extern int strtok_r (struct foo*);
23584 strtok_r(&xx);
23585
23586   ;
23587   return 0;
23588 }
23589 _ACEOF
23590 rm -f conftest.$ac_objext
23591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23592   (eval $ac_compile) 2>&5
23593   ac_status=$?
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); } &&
23596          { ac_try='test -s conftest.$ac_objext'
23597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598   (eval $ac_try) 2>&5
23599   ac_status=$?
23600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601   (exit $ac_status); }; }; then
23602   eval "ac_cv_func_strtok_r_noproto=yes"
23603 else
23604   echo "$as_me: failed program was:" >&5
23605 cat conftest.$ac_ext >&5
23606 eval "ac_cv_func_strtok_r_noproto=no"
23607 fi
23608 rm -f conftest.$ac_objext conftest.$ac_ext
23609 fi
23610 echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
23611 echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
23612 if test "$ac_cv_func_strtok_r_noproto" = yes; then
23613
23614 cat >>confdefs.h <<\_ACEOF
23615 #define NEED_STRTOK_R_PROTO 1
23616 _ACEOF
23617
23618 fi
23619 fi
23620
23621
23622
23623 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
23624 echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
23625 echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
23626 if test "${ac_cv_func_strsvis_noproto+set}" = set; then
23627   echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629   cat >conftest.$ac_ext <<_ACEOF
23630 #line $LINENO "configure"
23631 #include "confdefs.h"
23632 #ifdef HAVE_VIS_H
23633 #include <vis.h>
23634 #endif
23635 #ifdef F77_DUMMY_MAIN
23636 #  ifdef __cplusplus
23637      extern "C"
23638 #  endif
23639    int F77_DUMMY_MAIN() { return 1; }
23640 #endif
23641 int
23642 main ()
23643 {
23644 struct foo { int foo; } xx;
23645 extern int strsvis (struct foo*);
23646 strsvis(&xx);
23647
23648   ;
23649   return 0;
23650 }
23651 _ACEOF
23652 rm -f conftest.$ac_objext
23653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23654   (eval $ac_compile) 2>&5
23655   ac_status=$?
23656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657   (exit $ac_status); } &&
23658          { ac_try='test -s conftest.$ac_objext'
23659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660   (eval $ac_try) 2>&5
23661   ac_status=$?
23662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); }; }; then
23664   eval "ac_cv_func_strsvis_noproto=yes"
23665 else
23666   echo "$as_me: failed program was:" >&5
23667 cat conftest.$ac_ext >&5
23668 eval "ac_cv_func_strsvis_noproto=no"
23669 fi
23670 rm -f conftest.$ac_objext conftest.$ac_ext
23671 fi
23672 echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
23673 echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
23674 if test "$ac_cv_func_strsvis_noproto" = yes; then
23675
23676 cat >>confdefs.h <<\_ACEOF
23677 #define NEED_STRSVIS_PROTO 1
23678 _ACEOF
23679
23680 fi
23681 fi
23682
23683 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
23684 echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
23685 echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
23686 if test "${ac_cv_func_strunvis_noproto+set}" = set; then
23687   echo $ECHO_N "(cached) $ECHO_C" >&6
23688 else
23689   cat >conftest.$ac_ext <<_ACEOF
23690 #line $LINENO "configure"
23691 #include "confdefs.h"
23692 #ifdef HAVE_VIS_H
23693 #include <vis.h>
23694 #endif
23695 #ifdef F77_DUMMY_MAIN
23696 #  ifdef __cplusplus
23697      extern "C"
23698 #  endif
23699    int F77_DUMMY_MAIN() { return 1; }
23700 #endif
23701 int
23702 main ()
23703 {
23704 struct foo { int foo; } xx;
23705 extern int strunvis (struct foo*);
23706 strunvis(&xx);
23707
23708   ;
23709   return 0;
23710 }
23711 _ACEOF
23712 rm -f conftest.$ac_objext
23713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23714   (eval $ac_compile) 2>&5
23715   ac_status=$?
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); } &&
23718          { ac_try='test -s conftest.$ac_objext'
23719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720   (eval $ac_try) 2>&5
23721   ac_status=$?
23722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723   (exit $ac_status); }; }; then
23724   eval "ac_cv_func_strunvis_noproto=yes"
23725 else
23726   echo "$as_me: failed program was:" >&5
23727 cat conftest.$ac_ext >&5
23728 eval "ac_cv_func_strunvis_noproto=no"
23729 fi
23730 rm -f conftest.$ac_objext conftest.$ac_ext
23731 fi
23732 echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
23733 echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
23734 if test "$ac_cv_func_strunvis_noproto" = yes; then
23735
23736 cat >>confdefs.h <<\_ACEOF
23737 #define NEED_STRUNVIS_PROTO 1
23738 _ACEOF
23739
23740 fi
23741 fi
23742
23743 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
23744 echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
23745 echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
23746 if test "${ac_cv_func_strvis_noproto+set}" = set; then
23747   echo $ECHO_N "(cached) $ECHO_C" >&6
23748 else
23749   cat >conftest.$ac_ext <<_ACEOF
23750 #line $LINENO "configure"
23751 #include "confdefs.h"
23752 #ifdef HAVE_VIS_H
23753 #include <vis.h>
23754 #endif
23755 #ifdef F77_DUMMY_MAIN
23756 #  ifdef __cplusplus
23757      extern "C"
23758 #  endif
23759    int F77_DUMMY_MAIN() { return 1; }
23760 #endif
23761 int
23762 main ()
23763 {
23764 struct foo { int foo; } xx;
23765 extern int strvis (struct foo*);
23766 strvis(&xx);
23767
23768   ;
23769   return 0;
23770 }
23771 _ACEOF
23772 rm -f conftest.$ac_objext
23773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23774   (eval $ac_compile) 2>&5
23775   ac_status=$?
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); } &&
23778          { ac_try='test -s conftest.$ac_objext'
23779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780   (eval $ac_try) 2>&5
23781   ac_status=$?
23782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783   (exit $ac_status); }; }; then
23784   eval "ac_cv_func_strvis_noproto=yes"
23785 else
23786   echo "$as_me: failed program was:" >&5
23787 cat conftest.$ac_ext >&5
23788 eval "ac_cv_func_strvis_noproto=no"
23789 fi
23790 rm -f conftest.$ac_objext conftest.$ac_ext
23791 fi
23792 echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
23793 echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
23794 if test "$ac_cv_func_strvis_noproto" = yes; then
23795
23796 cat >>confdefs.h <<\_ACEOF
23797 #define NEED_STRVIS_PROTO 1
23798 _ACEOF
23799
23800 fi
23801 fi
23802
23803 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
23804 echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
23805 echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
23806 if test "${ac_cv_func_strvisx_noproto+set}" = set; then
23807   echo $ECHO_N "(cached) $ECHO_C" >&6
23808 else
23809   cat >conftest.$ac_ext <<_ACEOF
23810 #line $LINENO "configure"
23811 #include "confdefs.h"
23812 #ifdef HAVE_VIS_H
23813 #include <vis.h>
23814 #endif
23815 #ifdef F77_DUMMY_MAIN
23816 #  ifdef __cplusplus
23817      extern "C"
23818 #  endif
23819    int F77_DUMMY_MAIN() { return 1; }
23820 #endif
23821 int
23822 main ()
23823 {
23824 struct foo { int foo; } xx;
23825 extern int strvisx (struct foo*);
23826 strvisx(&xx);
23827
23828   ;
23829   return 0;
23830 }
23831 _ACEOF
23832 rm -f conftest.$ac_objext
23833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23834   (eval $ac_compile) 2>&5
23835   ac_status=$?
23836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); } &&
23838          { ac_try='test -s conftest.$ac_objext'
23839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840   (eval $ac_try) 2>&5
23841   ac_status=$?
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); }; }; then
23844   eval "ac_cv_func_strvisx_noproto=yes"
23845 else
23846   echo "$as_me: failed program was:" >&5
23847 cat conftest.$ac_ext >&5
23848 eval "ac_cv_func_strvisx_noproto=no"
23849 fi
23850 rm -f conftest.$ac_objext conftest.$ac_ext
23851 fi
23852 echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
23853 echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
23854 if test "$ac_cv_func_strvisx_noproto" = yes; then
23855
23856 cat >>confdefs.h <<\_ACEOF
23857 #define NEED_STRVISX_PROTO 1
23858 _ACEOF
23859
23860 fi
23861 fi
23862
23863 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
23864 echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
23865 echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
23866 if test "${ac_cv_func_svis_noproto+set}" = set; then
23867   echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23869   cat >conftest.$ac_ext <<_ACEOF
23870 #line $LINENO "configure"
23871 #include "confdefs.h"
23872 #ifdef HAVE_VIS_H
23873 #include <vis.h>
23874 #endif
23875 #ifdef F77_DUMMY_MAIN
23876 #  ifdef __cplusplus
23877      extern "C"
23878 #  endif
23879    int F77_DUMMY_MAIN() { return 1; }
23880 #endif
23881 int
23882 main ()
23883 {
23884 struct foo { int foo; } xx;
23885 extern int svis (struct foo*);
23886 svis(&xx);
23887
23888   ;
23889   return 0;
23890 }
23891 _ACEOF
23892 rm -f conftest.$ac_objext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23894   (eval $ac_compile) 2>&5
23895   ac_status=$?
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); } &&
23898          { ac_try='test -s conftest.$ac_objext'
23899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900   (eval $ac_try) 2>&5
23901   ac_status=$?
23902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903   (exit $ac_status); }; }; then
23904   eval "ac_cv_func_svis_noproto=yes"
23905 else
23906   echo "$as_me: failed program was:" >&5
23907 cat conftest.$ac_ext >&5
23908 eval "ac_cv_func_svis_noproto=no"
23909 fi
23910 rm -f conftest.$ac_objext conftest.$ac_ext
23911 fi
23912 echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
23913 echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
23914 if test "$ac_cv_func_svis_noproto" = yes; then
23915
23916 cat >>confdefs.h <<\_ACEOF
23917 #define NEED_SVIS_PROTO 1
23918 _ACEOF
23919
23920 fi
23921 fi
23922
23923 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
23924 echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
23925 echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
23926 if test "${ac_cv_func_unvis_noproto+set}" = set; then
23927   echo $ECHO_N "(cached) $ECHO_C" >&6
23928 else
23929   cat >conftest.$ac_ext <<_ACEOF
23930 #line $LINENO "configure"
23931 #include "confdefs.h"
23932 #ifdef HAVE_VIS_H
23933 #include <vis.h>
23934 #endif
23935 #ifdef F77_DUMMY_MAIN
23936 #  ifdef __cplusplus
23937      extern "C"
23938 #  endif
23939    int F77_DUMMY_MAIN() { return 1; }
23940 #endif
23941 int
23942 main ()
23943 {
23944 struct foo { int foo; } xx;
23945 extern int unvis (struct foo*);
23946 unvis(&xx);
23947
23948   ;
23949   return 0;
23950 }
23951 _ACEOF
23952 rm -f conftest.$ac_objext
23953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23954   (eval $ac_compile) 2>&5
23955   ac_status=$?
23956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957   (exit $ac_status); } &&
23958          { ac_try='test -s conftest.$ac_objext'
23959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960   (eval $ac_try) 2>&5
23961   ac_status=$?
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); }; }; then
23964   eval "ac_cv_func_unvis_noproto=yes"
23965 else
23966   echo "$as_me: failed program was:" >&5
23967 cat conftest.$ac_ext >&5
23968 eval "ac_cv_func_unvis_noproto=no"
23969 fi
23970 rm -f conftest.$ac_objext conftest.$ac_ext
23971 fi
23972 echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
23973 echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
23974 if test "$ac_cv_func_unvis_noproto" = yes; then
23975
23976 cat >>confdefs.h <<\_ACEOF
23977 #define NEED_UNVIS_PROTO 1
23978 _ACEOF
23979
23980 fi
23981 fi
23982
23983 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
23984 echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
23985 echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
23986 if test "${ac_cv_func_vis_noproto+set}" = set; then
23987   echo $ECHO_N "(cached) $ECHO_C" >&6
23988 else
23989   cat >conftest.$ac_ext <<_ACEOF
23990 #line $LINENO "configure"
23991 #include "confdefs.h"
23992 #ifdef HAVE_VIS_H
23993 #include <vis.h>
23994 #endif
23995 #ifdef F77_DUMMY_MAIN
23996 #  ifdef __cplusplus
23997      extern "C"
23998 #  endif
23999    int F77_DUMMY_MAIN() { return 1; }
24000 #endif
24001 int
24002 main ()
24003 {
24004 struct foo { int foo; } xx;
24005 extern int vis (struct foo*);
24006 vis(&xx);
24007
24008   ;
24009   return 0;
24010 }
24011 _ACEOF
24012 rm -f conftest.$ac_objext
24013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24014   (eval $ac_compile) 2>&5
24015   ac_status=$?
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); } &&
24018          { ac_try='test -s conftest.$ac_objext'
24019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020   (eval $ac_try) 2>&5
24021   ac_status=$?
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); }; }; then
24024   eval "ac_cv_func_vis_noproto=yes"
24025 else
24026   echo "$as_me: failed program was:" >&5
24027 cat conftest.$ac_ext >&5
24028 eval "ac_cv_func_vis_noproto=no"
24029 fi
24030 rm -f conftest.$ac_objext conftest.$ac_ext
24031 fi
24032 echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
24033 echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
24034 if test "$ac_cv_func_vis_noproto" = yes; then
24035
24036 cat >>confdefs.h <<\_ACEOF
24037 #define NEED_VIS_PROTO 1
24038 _ACEOF
24039
24040 fi
24041 fi
24042
24043
24044 echo "$as_me:$LINENO: checking for inet_aton" >&5
24045 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
24046 if test "${ac_cv_func_inet_aton+set}" = set; then
24047   echo $ECHO_N "(cached) $ECHO_C" >&6
24048 else
24049   cat >conftest.$ac_ext <<_ACEOF
24050 #line $LINENO "configure"
24051 #include "confdefs.h"
24052 #ifdef HAVE_SYS_TYPES_H
24053 #include <sys/types.h>
24054 #endif
24055 #ifdef HAVE_SYS_SOCKET_H
24056 #include <sys/socket.h>
24057 #endif
24058 #ifdef HAVE_NETINET_IN_H
24059 #include <netinet/in.h>
24060 #endif
24061 #ifdef HAVE_ARPA_INET_H
24062 #include <arpa/inet.h>
24063 #endif
24064 #ifdef F77_DUMMY_MAIN
24065 #  ifdef __cplusplus
24066      extern "C"
24067 #  endif
24068    int F77_DUMMY_MAIN() { return 1; }
24069 #endif
24070 int
24071 main ()
24072 {
24073
24074 /* The GNU C library defines this for functions which it implements
24075     to always fail with ENOSYS.  Some functions are actually named
24076     something starting with __ and the normal name is an alias.  */
24077 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
24078 choke me
24079 #else
24080 inet_aton(0,0)
24081 #endif
24082
24083   ;
24084   return 0;
24085 }
24086 _ACEOF
24087 rm -f conftest.$ac_objext conftest$ac_exeext
24088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24089   (eval $ac_link) 2>&5
24090   ac_status=$?
24091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092   (exit $ac_status); } &&
24093          { ac_try='test -s conftest$ac_exeext'
24094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095   (eval $ac_try) 2>&5
24096   ac_status=$?
24097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098   (exit $ac_status); }; }; then
24099   eval "ac_cv_func_inet_aton=yes"
24100 else
24101   echo "$as_me: failed program was:" >&5
24102 cat conftest.$ac_ext >&5
24103 eval "ac_cv_func_inet_aton=no"
24104 fi
24105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24106 fi
24107
24108 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
24109
24110 cat >>confdefs.h <<_ACEOF
24111 #define HAVE_INET_ATON 1
24112 _ACEOF
24113
24114   echo "$as_me:$LINENO: result: yes" >&5
24115 echo "${ECHO_T}yes" >&6
24116 else
24117   echo "$as_me:$LINENO: result: no" >&5
24118 echo "${ECHO_T}no" >&6
24119   LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
24120 fi
24121
24122 echo "$as_me:$LINENO: checking for inet_ntop" >&5
24123 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
24124 if test "${ac_cv_func_inet_ntop+set}" = set; then
24125   echo $ECHO_N "(cached) $ECHO_C" >&6
24126 else
24127   cat >conftest.$ac_ext <<_ACEOF
24128 #line $LINENO "configure"
24129 #include "confdefs.h"
24130 #ifdef HAVE_SYS_TYPES_H
24131 #include <sys/types.h>
24132 #endif
24133 #ifdef HAVE_SYS_SOCKET_H
24134 #include <sys/socket.h>
24135 #endif
24136 #ifdef HAVE_NETINET_IN_H
24137 #include <netinet/in.h>
24138 #endif
24139 #ifdef HAVE_ARPA_INET_H
24140 #include <arpa/inet.h>
24141 #endif
24142 #ifdef F77_DUMMY_MAIN
24143 #  ifdef __cplusplus
24144      extern "C"
24145 #  endif
24146    int F77_DUMMY_MAIN() { return 1; }
24147 #endif
24148 int
24149 main ()
24150 {
24151
24152 /* The GNU C library defines this for functions which it implements
24153     to always fail with ENOSYS.  Some functions are actually named
24154     something starting with __ and the normal name is an alias.  */
24155 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
24156 choke me
24157 #else
24158 inet_ntop(0, 0, 0, 0)
24159 #endif
24160
24161   ;
24162   return 0;
24163 }
24164 _ACEOF
24165 rm -f conftest.$ac_objext conftest$ac_exeext
24166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24167   (eval $ac_link) 2>&5
24168   ac_status=$?
24169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170   (exit $ac_status); } &&
24171          { ac_try='test -s conftest$ac_exeext'
24172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173   (eval $ac_try) 2>&5
24174   ac_status=$?
24175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176   (exit $ac_status); }; }; then
24177   eval "ac_cv_func_inet_ntop=yes"
24178 else
24179   echo "$as_me: failed program was:" >&5
24180 cat conftest.$ac_ext >&5
24181 eval "ac_cv_func_inet_ntop=no"
24182 fi
24183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24184 fi
24185
24186 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
24187
24188 cat >>confdefs.h <<_ACEOF
24189 #define HAVE_INET_NTOP 1
24190 _ACEOF
24191
24192   echo "$as_me:$LINENO: result: yes" >&5
24193 echo "${ECHO_T}yes" >&6
24194 else
24195   echo "$as_me:$LINENO: result: no" >&5
24196 echo "${ECHO_T}no" >&6
24197   LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
24198 fi
24199
24200 echo "$as_me:$LINENO: checking for inet_pton" >&5
24201 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
24202 if test "${ac_cv_func_inet_pton+set}" = set; then
24203   echo $ECHO_N "(cached) $ECHO_C" >&6
24204 else
24205   cat >conftest.$ac_ext <<_ACEOF
24206 #line $LINENO "configure"
24207 #include "confdefs.h"
24208 #ifdef HAVE_SYS_TYPES_H
24209 #include <sys/types.h>
24210 #endif
24211 #ifdef HAVE_SYS_SOCKET_H
24212 #include <sys/socket.h>
24213 #endif
24214 #ifdef HAVE_NETINET_IN_H
24215 #include <netinet/in.h>
24216 #endif
24217 #ifdef HAVE_ARPA_INET_H
24218 #include <arpa/inet.h>
24219 #endif
24220 #ifdef F77_DUMMY_MAIN
24221 #  ifdef __cplusplus
24222      extern "C"
24223 #  endif
24224    int F77_DUMMY_MAIN() { return 1; }
24225 #endif
24226 int
24227 main ()
24228 {
24229
24230 /* The GNU C library defines this for functions which it implements
24231     to always fail with ENOSYS.  Some functions are actually named
24232     something starting with __ and the normal name is an alias.  */
24233 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
24234 choke me
24235 #else
24236 inet_pton(0,0,0)
24237 #endif
24238
24239   ;
24240   return 0;
24241 }
24242 _ACEOF
24243 rm -f conftest.$ac_objext conftest$ac_exeext
24244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24245   (eval $ac_link) 2>&5
24246   ac_status=$?
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); } &&
24249          { ac_try='test -s conftest$ac_exeext'
24250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251   (eval $ac_try) 2>&5
24252   ac_status=$?
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); }; }; then
24255   eval "ac_cv_func_inet_pton=yes"
24256 else
24257   echo "$as_me: failed program was:" >&5
24258 cat conftest.$ac_ext >&5
24259 eval "ac_cv_func_inet_pton=no"
24260 fi
24261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24262 fi
24263
24264 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
24265
24266 cat >>confdefs.h <<_ACEOF
24267 #define HAVE_INET_PTON 1
24268 _ACEOF
24269
24270   echo "$as_me:$LINENO: result: yes" >&5
24271 echo "${ECHO_T}yes" >&6
24272 else
24273   echo "$as_me:$LINENO: result: no" >&5
24274 echo "${ECHO_T}no" >&6
24275   LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
24276 fi
24277
24278
24279
24280 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
24281 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
24282 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
24283   echo $ECHO_N "(cached) $ECHO_C" >&6
24284 else
24285
24286 cat >conftest.$ac_ext <<_ACEOF
24287 #line $LINENO "configure"
24288 #include "confdefs.h"
24289 #include <sys/types.h>
24290 #include <sys/socket.h>
24291 #ifdef F77_DUMMY_MAIN
24292 #  ifdef __cplusplus
24293      extern "C"
24294 #  endif
24295    int F77_DUMMY_MAIN() { return 1; }
24296 #endif
24297 int
24298 main ()
24299 {
24300 struct sockaddr x; x.sa_len;
24301   ;
24302   return 0;
24303 }
24304 _ACEOF
24305 rm -f conftest.$ac_objext
24306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24307   (eval $ac_compile) 2>&5
24308   ac_status=$?
24309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310   (exit $ac_status); } &&
24311          { ac_try='test -s conftest.$ac_objext'
24312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313   (eval $ac_try) 2>&5
24314   ac_status=$?
24315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316   (exit $ac_status); }; }; then
24317   ac_cv_type_struct_sockaddr_sa_len=yes
24318 else
24319   echo "$as_me: failed program was:" >&5
24320 cat conftest.$ac_ext >&5
24321 ac_cv_type_struct_sockaddr_sa_len=no
24322 fi
24323 rm -f conftest.$ac_objext conftest.$ac_ext
24324 fi
24325 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
24326 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
24327 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
24328
24329
24330 cat >>confdefs.h <<\_ACEOF
24331 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
24332 _ACEOF
24333
24334
24335 fi
24336
24337
24338
24339 if test "$ac_cv_func_getnameinfo" = "yes"; then
24340
24341 echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
24342 echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
24343 if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
24344   echo $ECHO_N "(cached) $ECHO_C" >&6
24345 else
24346   if test "$cross_compiling" = yes; then
24347   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
24348 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24349    { (exit 1); exit 1; }; }
24350 else
24351   cat >conftest.$ac_ext <<_ACEOF
24352 #line $LINENO "configure"
24353 #include "confdefs.h"
24354 #include <stdio.h>
24355 #include <sys/types.h>
24356 #include <sys/socket.h>
24357 #include <netinet/in.h>
24358 #include <netdb.h>
24359
24360 int
24361 main(int argc, char **argv)
24362 {
24363   struct sockaddr_in sin;
24364   char host[256];
24365   memset(&sin, 0, sizeof(sin));
24366 #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
24367   sin.sin_len = sizeof(sin);
24368 #endif
24369   sin.sin_family = AF_INET;
24370   sin.sin_addr.s_addr = 0xffffffff;
24371   sin.sin_port = 0;
24372   return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
24373               NULL, 0, 0);
24374 }
24375
24376 _ACEOF
24377 rm -f conftest$ac_exeext
24378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24379   (eval $ac_link) 2>&5
24380   ac_status=$?
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384   (eval $ac_try) 2>&5
24385   ac_status=$?
24386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387   (exit $ac_status); }; }; then
24388   ac_cv_func_getnameinfo_broken=no
24389 else
24390   echo "$as_me: program exited with status $ac_status" >&5
24391 echo "$as_me: failed program was:" >&5
24392 cat conftest.$ac_ext >&5
24393 ( exit $ac_status )
24394 ac_cv_func_getnameinfo_broken=yes
24395 fi
24396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24397 fi
24398 fi
24399 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
24400 echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
24401   if test "$ac_cv_func_getnameinfo_broken" = yes; then
24402         LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
24403   fi
24404 fi
24405
24406 if test "$ac_cv_func_getaddrinfo" = "yes"; then
24407
24408 echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
24409 echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
24410 if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
24411   echo $ECHO_N "(cached) $ECHO_C" >&6
24412 else
24413   if test "$cross_compiling" = yes; then
24414   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
24415 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24416    { (exit 1); exit 1; }; }
24417 else
24418   cat >conftest.$ac_ext <<_ACEOF
24419 #line $LINENO "configure"
24420 #include "confdefs.h"
24421 #include <stdio.h>
24422 #include <sys/types.h>
24423 #include <sys/socket.h>
24424 #include <netdb.h>
24425
24426 int
24427 main(int argc, char **argv)
24428 {
24429         struct addrinfo hints, *ai;
24430         memset(&hints, 0, sizeof(hints));
24431         hints.ai_flags = AI_PASSIVE;
24432         hints.ai_socktype = SOCK_STREAM;
24433         hints.ai_family = PF_UNSPEC;
24434         if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
24435                 return 1;
24436         return 0;
24437 }
24438
24439 _ACEOF
24440 rm -f conftest$ac_exeext
24441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24442   (eval $ac_link) 2>&5
24443   ac_status=$?
24444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24447   (eval $ac_try) 2>&5
24448   ac_status=$?
24449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450   (exit $ac_status); }; }; then
24451   ac_cv_func_getaddrinfo_numserv=yes
24452 else
24453   echo "$as_me: program exited with status $ac_status" >&5
24454 echo "$as_me: failed program was:" >&5
24455 cat conftest.$ac_ext >&5
24456 ( exit $ac_status )
24457 ac_cv_func_getaddrinfo_numserv=no
24458 fi
24459 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24460 fi
24461 fi
24462 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
24463 echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
24464   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
24465         LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
24466         LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
24467   fi
24468 fi
24469
24470
24471 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
24472 echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
24473 echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
24474 if test "${ac_cv_func_setenv_noproto+set}" = set; then
24475   echo $ECHO_N "(cached) $ECHO_C" >&6
24476 else
24477   cat >conftest.$ac_ext <<_ACEOF
24478 #line $LINENO "configure"
24479 #include "confdefs.h"
24480 #include <stdlib.h>
24481 #ifdef F77_DUMMY_MAIN
24482 #  ifdef __cplusplus
24483      extern "C"
24484 #  endif
24485    int F77_DUMMY_MAIN() { return 1; }
24486 #endif
24487 int
24488 main ()
24489 {
24490 struct foo { int foo; } xx;
24491 extern int setenv (struct foo*);
24492 setenv(&xx);
24493
24494   ;
24495   return 0;
24496 }
24497 _ACEOF
24498 rm -f conftest.$ac_objext
24499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24500   (eval $ac_compile) 2>&5
24501   ac_status=$?
24502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503   (exit $ac_status); } &&
24504          { ac_try='test -s conftest.$ac_objext'
24505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506   (eval $ac_try) 2>&5
24507   ac_status=$?
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); }; }; then
24510   eval "ac_cv_func_setenv_noproto=yes"
24511 else
24512   echo "$as_me: failed program was:" >&5
24513 cat conftest.$ac_ext >&5
24514 eval "ac_cv_func_setenv_noproto=no"
24515 fi
24516 rm -f conftest.$ac_objext conftest.$ac_ext
24517 fi
24518 echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
24519 echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
24520 if test "$ac_cv_func_setenv_noproto" = yes; then
24521
24522 cat >>confdefs.h <<\_ACEOF
24523 #define NEED_SETENV_PROTO 1
24524 _ACEOF
24525
24526 fi
24527 fi
24528
24529
24530 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
24531 echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
24532 echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
24533 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
24534   echo $ECHO_N "(cached) $ECHO_C" >&6
24535 else
24536   cat >conftest.$ac_ext <<_ACEOF
24537 #line $LINENO "configure"
24538 #include "confdefs.h"
24539 #include <stdlib.h>
24540 #ifdef F77_DUMMY_MAIN
24541 #  ifdef __cplusplus
24542      extern "C"
24543 #  endif
24544    int F77_DUMMY_MAIN() { return 1; }
24545 #endif
24546 int
24547 main ()
24548 {
24549 struct foo { int foo; } xx;
24550 extern int unsetenv (struct foo*);
24551 unsetenv(&xx);
24552
24553   ;
24554   return 0;
24555 }
24556 _ACEOF
24557 rm -f conftest.$ac_objext
24558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24559   (eval $ac_compile) 2>&5
24560   ac_status=$?
24561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562   (exit $ac_status); } &&
24563          { ac_try='test -s conftest.$ac_objext'
24564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565   (eval $ac_try) 2>&5
24566   ac_status=$?
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); }; }; then
24569   eval "ac_cv_func_unsetenv_noproto=yes"
24570 else
24571   echo "$as_me: failed program was:" >&5
24572 cat conftest.$ac_ext >&5
24573 eval "ac_cv_func_unsetenv_noproto=no"
24574 fi
24575 rm -f conftest.$ac_objext conftest.$ac_ext
24576 fi
24577 echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
24578 echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
24579 if test "$ac_cv_func_unsetenv_noproto" = yes; then
24580
24581 cat >>confdefs.h <<\_ACEOF
24582 #define NEED_UNSETENV_PROTO 1
24583 _ACEOF
24584
24585 fi
24586 fi
24587
24588
24589 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
24590 echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
24591 echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
24592 if test "${ac_cv_func_gethostname_noproto+set}" = set; then
24593   echo $ECHO_N "(cached) $ECHO_C" >&6
24594 else
24595   cat >conftest.$ac_ext <<_ACEOF
24596 #line $LINENO "configure"
24597 #include "confdefs.h"
24598 #include <unistd.h>
24599 #ifdef F77_DUMMY_MAIN
24600 #  ifdef __cplusplus
24601      extern "C"
24602 #  endif
24603    int F77_DUMMY_MAIN() { return 1; }
24604 #endif
24605 int
24606 main ()
24607 {
24608 struct foo { int foo; } xx;
24609 extern int gethostname (struct foo*);
24610 gethostname(&xx);
24611
24612   ;
24613   return 0;
24614 }
24615 _ACEOF
24616 rm -f conftest.$ac_objext
24617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24618   (eval $ac_compile) 2>&5
24619   ac_status=$?
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); } &&
24622          { ac_try='test -s conftest.$ac_objext'
24623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624   (eval $ac_try) 2>&5
24625   ac_status=$?
24626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627   (exit $ac_status); }; }; then
24628   eval "ac_cv_func_gethostname_noproto=yes"
24629 else
24630   echo "$as_me: failed program was:" >&5
24631 cat conftest.$ac_ext >&5
24632 eval "ac_cv_func_gethostname_noproto=no"
24633 fi
24634 rm -f conftest.$ac_objext conftest.$ac_ext
24635 fi
24636 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
24637 echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
24638 if test "$ac_cv_func_gethostname_noproto" = yes; then
24639
24640 cat >>confdefs.h <<\_ACEOF
24641 #define NEED_GETHOSTNAME_PROTO 1
24642 _ACEOF
24643
24644 fi
24645 fi
24646
24647
24648 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
24649 echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
24650 echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
24651 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
24652   echo $ECHO_N "(cached) $ECHO_C" >&6
24653 else
24654   cat >conftest.$ac_ext <<_ACEOF
24655 #line $LINENO "configure"
24656 #include "confdefs.h"
24657 #include <unistd.h>
24658 #ifdef F77_DUMMY_MAIN
24659 #  ifdef __cplusplus
24660      extern "C"
24661 #  endif
24662    int F77_DUMMY_MAIN() { return 1; }
24663 #endif
24664 int
24665 main ()
24666 {
24667 struct foo { int foo; } xx;
24668 extern int mkstemp (struct foo*);
24669 mkstemp(&xx);
24670
24671   ;
24672   return 0;
24673 }
24674 _ACEOF
24675 rm -f conftest.$ac_objext
24676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24677   (eval $ac_compile) 2>&5
24678   ac_status=$?
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); } &&
24681          { ac_try='test -s conftest.$ac_objext'
24682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683   (eval $ac_try) 2>&5
24684   ac_status=$?
24685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686   (exit $ac_status); }; }; then
24687   eval "ac_cv_func_mkstemp_noproto=yes"
24688 else
24689   echo "$as_me: failed program was:" >&5
24690 cat conftest.$ac_ext >&5
24691 eval "ac_cv_func_mkstemp_noproto=no"
24692 fi
24693 rm -f conftest.$ac_objext conftest.$ac_ext
24694 fi
24695 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
24696 echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
24697 if test "$ac_cv_func_mkstemp_noproto" = yes; then
24698
24699 cat >>confdefs.h <<\_ACEOF
24700 #define NEED_MKSTEMP_PROTO 1
24701 _ACEOF
24702
24703 fi
24704 fi
24705
24706
24707 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
24708 echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
24709 echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
24710 if test "${ac_cv_func_getusershell_noproto+set}" = set; then
24711   echo $ECHO_N "(cached) $ECHO_C" >&6
24712 else
24713   cat >conftest.$ac_ext <<_ACEOF
24714 #line $LINENO "configure"
24715 #include "confdefs.h"
24716 #include <unistd.h>
24717 #ifdef F77_DUMMY_MAIN
24718 #  ifdef __cplusplus
24719      extern "C"
24720 #  endif
24721    int F77_DUMMY_MAIN() { return 1; }
24722 #endif
24723 int
24724 main ()
24725 {
24726 struct foo { int foo; } xx;
24727 extern int getusershell (struct foo*);
24728 getusershell(&xx);
24729
24730   ;
24731   return 0;
24732 }
24733 _ACEOF
24734 rm -f conftest.$ac_objext
24735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24736   (eval $ac_compile) 2>&5
24737   ac_status=$?
24738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739   (exit $ac_status); } &&
24740          { ac_try='test -s conftest.$ac_objext'
24741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742   (eval $ac_try) 2>&5
24743   ac_status=$?
24744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); }; }; then
24746   eval "ac_cv_func_getusershell_noproto=yes"
24747 else
24748   echo "$as_me: failed program was:" >&5
24749 cat conftest.$ac_ext >&5
24750 eval "ac_cv_func_getusershell_noproto=no"
24751 fi
24752 rm -f conftest.$ac_objext conftest.$ac_ext
24753 fi
24754 echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
24755 echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
24756 if test "$ac_cv_func_getusershell_noproto" = yes; then
24757
24758 cat >>confdefs.h <<\_ACEOF
24759 #define NEED_GETUSERSHELL_PROTO 1
24760 _ACEOF
24761
24762 fi
24763 fi
24764
24765
24766
24767 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
24768 echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
24769 echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
24770 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
24771   echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773   cat >conftest.$ac_ext <<_ACEOF
24774 #line $LINENO "configure"
24775 #include "confdefs.h"
24776
24777 #ifdef HAVE_SYS_TYPES_H
24778 #include <sys/types.h>
24779 #endif
24780 #ifdef HAVE_SYS_SOCKET_H
24781 #include <sys/socket.h>
24782 #endif
24783 #ifdef HAVE_NETINET_IN_H
24784 #include <netinet/in.h>
24785 #endif
24786 #ifdef HAVE_ARPA_INET_H
24787 #include <arpa/inet.h>
24788 #endif
24789 #ifdef F77_DUMMY_MAIN
24790 #  ifdef __cplusplus
24791      extern "C"
24792 #  endif
24793    int F77_DUMMY_MAIN() { return 1; }
24794 #endif
24795 int
24796 main ()
24797 {
24798 struct foo { int foo; } xx;
24799 extern int inet_aton (struct foo*);
24800 inet_aton(&xx);
24801
24802   ;
24803   return 0;
24804 }
24805 _ACEOF
24806 rm -f conftest.$ac_objext
24807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24808   (eval $ac_compile) 2>&5
24809   ac_status=$?
24810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); } &&
24812          { ac_try='test -s conftest.$ac_objext'
24813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814   (eval $ac_try) 2>&5
24815   ac_status=$?
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); }; }; then
24818   eval "ac_cv_func_inet_aton_noproto=yes"
24819 else
24820   echo "$as_me: failed program was:" >&5
24821 cat conftest.$ac_ext >&5
24822 eval "ac_cv_func_inet_aton_noproto=no"
24823 fi
24824 rm -f conftest.$ac_objext conftest.$ac_ext
24825 fi
24826 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
24827 echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
24828 if test "$ac_cv_func_inet_aton_noproto" = yes; then
24829
24830 cat >>confdefs.h <<\_ACEOF
24831 #define NEED_INET_ATON_PROTO 1
24832 _ACEOF
24833
24834 fi
24835 fi
24836
24837
24838
24839
24840
24841 echo "$as_me:$LINENO: checking for crypt" >&5
24842 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
24843 if test "${ac_cv_funclib_crypt+set}" = set; then
24844   echo $ECHO_N "(cached) $ECHO_C" >&6
24845 else
24846
24847 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
24848         ac_save_LIBS="$LIBS"
24849         for ac_lib in "" crypt; do
24850                 case "$ac_lib" in
24851                 "") ;;
24852                 yes) ac_lib="" ;;
24853                 no) continue ;;
24854                 -l*) ;;
24855                 *) ac_lib="-l$ac_lib" ;;
24856                 esac
24857                 LIBS=" $ac_lib  $ac_save_LIBS"
24858                 cat >conftest.$ac_ext <<_ACEOF
24859 #line $LINENO "configure"
24860 #include "confdefs.h"
24861
24862 #ifdef F77_DUMMY_MAIN
24863 #  ifdef __cplusplus
24864      extern "C"
24865 #  endif
24866    int F77_DUMMY_MAIN() { return 1; }
24867 #endif
24868 int
24869 main ()
24870 {
24871 crypt()
24872   ;
24873   return 0;
24874 }
24875 _ACEOF
24876 rm -f conftest.$ac_objext conftest$ac_exeext
24877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24878   (eval $ac_link) 2>&5
24879   ac_status=$?
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } &&
24882          { ac_try='test -s conftest$ac_exeext'
24883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884   (eval $ac_try) 2>&5
24885   ac_status=$?
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); }; }; then
24888   eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
24889 else
24890   echo "$as_me: failed program was:" >&5
24891 cat conftest.$ac_ext >&5
24892 fi
24893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24894         done
24895         eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
24896         LIBS="$ac_save_LIBS"
24897 fi
24898
24899 fi
24900
24901
24902 eval "ac_res=\$ac_cv_funclib_crypt"
24903
24904 if false; then
24905
24906 for ac_func in crypt
24907 do
24908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24909 echo "$as_me:$LINENO: checking for $ac_func" >&5
24910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24911 if eval "test \"\${$as_ac_var+set}\" = set"; then
24912   echo $ECHO_N "(cached) $ECHO_C" >&6
24913 else
24914   cat >conftest.$ac_ext <<_ACEOF
24915 #line $LINENO "configure"
24916 #include "confdefs.h"
24917 /* System header to define __stub macros and hopefully few prototypes,
24918     which can conflict with char $ac_func (); below.  */
24919 #include <assert.h>
24920 /* Override any gcc2 internal prototype to avoid an error.  */
24921 #ifdef __cplusplus
24922 extern "C"
24923 #endif
24924 /* We use char because int might match the return type of a gcc2
24925    builtin and then its argument prototype would still apply.  */
24926 char $ac_func ();
24927 char (*f) ();
24928
24929 #ifdef F77_DUMMY_MAIN
24930 #  ifdef __cplusplus
24931      extern "C"
24932 #  endif
24933    int F77_DUMMY_MAIN() { return 1; }
24934 #endif
24935 int
24936 main ()
24937 {
24938 /* The GNU C library defines this for functions which it implements
24939     to always fail with ENOSYS.  Some functions are actually named
24940     something starting with __ and the normal name is an alias.  */
24941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24942 choke me
24943 #else
24944 f = $ac_func;
24945 #endif
24946
24947   ;
24948   return 0;
24949 }
24950 _ACEOF
24951 rm -f conftest.$ac_objext conftest$ac_exeext
24952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24953   (eval $ac_link) 2>&5
24954   ac_status=$?
24955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); } &&
24957          { ac_try='test -s conftest$ac_exeext'
24958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959   (eval $ac_try) 2>&5
24960   ac_status=$?
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); }; }; then
24963   eval "$as_ac_var=yes"
24964 else
24965   echo "$as_me: failed program was:" >&5
24966 cat conftest.$ac_ext >&5
24967 eval "$as_ac_var=no"
24968 fi
24969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24970 fi
24971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24973 if test `eval echo '${'$as_ac_var'}'` = yes; then
24974   cat >>confdefs.h <<_ACEOF
24975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24976 _ACEOF
24977
24978 fi
24979 done
24980
24981 fi
24982 # crypt
24983 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24984 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24985 eval "LIB_crypt=$ac_res"
24986
24987 case "$ac_res" in
24988         yes)
24989         eval "ac_cv_func_crypt=yes"
24990         eval "LIB_crypt="
24991         cat >>confdefs.h <<_ACEOF
24992 #define $ac_tr_func 1
24993 _ACEOF
24994
24995         echo "$as_me:$LINENO: result: yes" >&5
24996 echo "${ECHO_T}yes" >&6
24997         ;;
24998         no)
24999         eval "ac_cv_func_crypt=no"
25000         eval "LIB_crypt="
25001         echo "$as_me:$LINENO: result: no" >&5
25002 echo "${ECHO_T}no" >&6
25003         ;;
25004         *)
25005         eval "ac_cv_func_crypt=yes"
25006         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25007         cat >>confdefs.h <<_ACEOF
25008 #define $ac_tr_func 1
25009 _ACEOF
25010
25011         cat >>confdefs.h <<_ACEOF
25012 #define $ac_tr_lib 1
25013 _ACEOF
25014
25015         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25016 echo "${ECHO_T}yes, in $ac_res" >&6
25017         ;;
25018 esac
25019
25020
25021
25022
25023
25024
25025 echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
25026 echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
25027 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
25028   echo $ECHO_N "(cached) $ECHO_C" >&6
25029 else
25030   cat >conftest.$ac_ext <<_ACEOF
25031 #line $LINENO "configure"
25032 #include "confdefs.h"
25033
25034 #ifdef HAVE_SYS_TYPES_H
25035 #include <sys/types.h>
25036 #endif
25037 #ifdef HAVE_SYS_SOCKET_H
25038 #include <sys/socket.h>
25039 #endif
25040 #ifdef HAVE_NETINET_IN_H
25041 #include <netinet/in.h>
25042 #endif
25043 #ifdef HAVE_ARPA_INET_H
25044 #include <arpa/inet.h>
25045 #endif
25046 #ifdef HAVE_NETDB_H
25047 #include <netdb.h>
25048 #endif
25049
25050 #ifdef F77_DUMMY_MAIN
25051 #  ifdef __cplusplus
25052      extern "C"
25053 #  endif
25054    int F77_DUMMY_MAIN() { return 1; }
25055 #endif
25056 int
25057 main ()
25058 {
25059 struct hostent *gethostbyname(const char *);
25060   ;
25061   return 0;
25062 }
25063 _ACEOF
25064 rm -f conftest.$ac_objext
25065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25066   (eval $ac_compile) 2>&5
25067   ac_status=$?
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); } &&
25070          { ac_try='test -s conftest.$ac_objext'
25071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072   (eval $ac_try) 2>&5
25073   ac_status=$?
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); }; }; then
25076   eval "ac_cv_func_gethostbyname_proto_compat=yes"
25077 else
25078   echo "$as_me: failed program was:" >&5
25079 cat conftest.$ac_ext >&5
25080 eval "ac_cv_func_gethostbyname_proto_compat=no"
25081 fi
25082 rm -f conftest.$ac_objext conftest.$ac_ext
25083 fi
25084 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
25085 echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
25086
25087 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
25088
25089 cat >>confdefs.h <<\_ACEOF
25090 #define GETHOSTBYNAME_PROTO_COMPATIBLE 1
25091 _ACEOF
25092
25093 fi
25094
25095
25096
25097
25098 echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
25099 echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
25100 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
25101   echo $ECHO_N "(cached) $ECHO_C" >&6
25102 else
25103   cat >conftest.$ac_ext <<_ACEOF
25104 #line $LINENO "configure"
25105 #include "confdefs.h"
25106
25107 #ifdef HAVE_SYS_TYPES_H
25108 #include <sys/types.h>
25109 #endif
25110 #ifdef HAVE_SYS_SOCKET_H
25111 #include <sys/socket.h>
25112 #endif
25113 #ifdef HAVE_NETINET_IN_H
25114 #include <netinet/in.h>
25115 #endif
25116 #ifdef HAVE_ARPA_INET_H
25117 #include <arpa/inet.h>
25118 #endif
25119 #ifdef HAVE_NETDB_H
25120 #include <netdb.h>
25121 #endif
25122
25123 #ifdef F77_DUMMY_MAIN
25124 #  ifdef __cplusplus
25125      extern "C"
25126 #  endif
25127    int F77_DUMMY_MAIN() { return 1; }
25128 #endif
25129 int
25130 main ()
25131 {
25132 struct hostent *gethostbyaddr(const void *, size_t, int);
25133   ;
25134   return 0;
25135 }
25136 _ACEOF
25137 rm -f conftest.$ac_objext
25138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25139   (eval $ac_compile) 2>&5
25140   ac_status=$?
25141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142   (exit $ac_status); } &&
25143          { ac_try='test -s conftest.$ac_objext'
25144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145   (eval $ac_try) 2>&5
25146   ac_status=$?
25147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148   (exit $ac_status); }; }; then
25149   eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
25150 else
25151   echo "$as_me: failed program was:" >&5
25152 cat conftest.$ac_ext >&5
25153 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
25154 fi
25155 rm -f conftest.$ac_objext conftest.$ac_ext
25156 fi
25157 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
25158 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
25159
25160 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
25161
25162 cat >>confdefs.h <<\_ACEOF
25163 #define GETHOSTBYADDR_PROTO_COMPATIBLE 1
25164 _ACEOF
25165
25166 fi
25167
25168
25169
25170
25171 echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
25172 echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
25173 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
25174   echo $ECHO_N "(cached) $ECHO_C" >&6
25175 else
25176   cat >conftest.$ac_ext <<_ACEOF
25177 #line $LINENO "configure"
25178 #include "confdefs.h"
25179
25180 #ifdef HAVE_SYS_TYPES_H
25181 #include <sys/types.h>
25182 #endif
25183 #ifdef HAVE_SYS_SOCKET_H
25184 #include <sys/socket.h>
25185 #endif
25186 #ifdef HAVE_NETINET_IN_H
25187 #include <netinet/in.h>
25188 #endif
25189 #ifdef HAVE_ARPA_INET_H
25190 #include <arpa/inet.h>
25191 #endif
25192 #ifdef HAVE_NETDB_H
25193 #include <netdb.h>
25194 #endif
25195
25196 #ifdef F77_DUMMY_MAIN
25197 #  ifdef __cplusplus
25198      extern "C"
25199 #  endif
25200    int F77_DUMMY_MAIN() { return 1; }
25201 #endif
25202 int
25203 main ()
25204 {
25205 struct servent *getservbyname(const char *, const char *);
25206   ;
25207   return 0;
25208 }
25209 _ACEOF
25210 rm -f conftest.$ac_objext
25211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25212   (eval $ac_compile) 2>&5
25213   ac_status=$?
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); } &&
25216          { ac_try='test -s conftest.$ac_objext'
25217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218   (eval $ac_try) 2>&5
25219   ac_status=$?
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); }; }; then
25222   eval "ac_cv_func_getservbyname_proto_compat=yes"
25223 else
25224   echo "$as_me: failed program was:" >&5
25225 cat conftest.$ac_ext >&5
25226 eval "ac_cv_func_getservbyname_proto_compat=no"
25227 fi
25228 rm -f conftest.$ac_objext conftest.$ac_ext
25229 fi
25230 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
25231 echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
25232
25233 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
25234
25235 cat >>confdefs.h <<\_ACEOF
25236 #define GETSERVBYNAME_PROTO_COMPATIBLE 1
25237 _ACEOF
25238
25239 fi
25240
25241
25242
25243
25244 echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
25245 echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
25246 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
25247   echo $ECHO_N "(cached) $ECHO_C" >&6
25248 else
25249   cat >conftest.$ac_ext <<_ACEOF
25250 #line $LINENO "configure"
25251 #include "confdefs.h"
25252
25253 #ifdef HAVE_SYS_TYPES_H
25254 #include <sys/types.h>
25255 #endif
25256 #ifdef HAVE_SYS_SOCKET_H
25257 #include <sys/socket.h>
25258 #endif
25259
25260 #ifdef F77_DUMMY_MAIN
25261 #  ifdef __cplusplus
25262      extern "C"
25263 #  endif
25264    int F77_DUMMY_MAIN() { return 1; }
25265 #endif
25266 int
25267 main ()
25268 {
25269 int getsockname(int, struct sockaddr*, socklen_t*);
25270   ;
25271   return 0;
25272 }
25273 _ACEOF
25274 rm -f conftest.$ac_objext
25275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25276   (eval $ac_compile) 2>&5
25277   ac_status=$?
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); } &&
25280          { ac_try='test -s conftest.$ac_objext'
25281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); }; }; then
25286   eval "ac_cv_func_getsockname_proto_compat=yes"
25287 else
25288   echo "$as_me: failed program was:" >&5
25289 cat conftest.$ac_ext >&5
25290 eval "ac_cv_func_getsockname_proto_compat=no"
25291 fi
25292 rm -f conftest.$ac_objext conftest.$ac_ext
25293 fi
25294 echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
25295 echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
25296
25297 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
25298
25299 cat >>confdefs.h <<\_ACEOF
25300 #define GETSOCKNAME_PROTO_COMPATIBLE 1
25301 _ACEOF
25302
25303 fi
25304
25305
25306
25307
25308 echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
25309 echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
25310 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
25311   echo $ECHO_N "(cached) $ECHO_C" >&6
25312 else
25313   cat >conftest.$ac_ext <<_ACEOF
25314 #line $LINENO "configure"
25315 #include "confdefs.h"
25316
25317 #ifdef HAVE_SYSLOG_H
25318 #include <syslog.h>
25319 #endif
25320
25321 #ifdef F77_DUMMY_MAIN
25322 #  ifdef __cplusplus
25323      extern "C"
25324 #  endif
25325    int F77_DUMMY_MAIN() { return 1; }
25326 #endif
25327 int
25328 main ()
25329 {
25330 void openlog(const char *, int, int);
25331   ;
25332   return 0;
25333 }
25334 _ACEOF
25335 rm -f conftest.$ac_objext
25336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25337   (eval $ac_compile) 2>&5
25338   ac_status=$?
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); } &&
25341          { ac_try='test -s conftest.$ac_objext'
25342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343   (eval $ac_try) 2>&5
25344   ac_status=$?
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); }; }; then
25347   eval "ac_cv_func_openlog_proto_compat=yes"
25348 else
25349   echo "$as_me: failed program was:" >&5
25350 cat conftest.$ac_ext >&5
25351 eval "ac_cv_func_openlog_proto_compat=no"
25352 fi
25353 rm -f conftest.$ac_objext conftest.$ac_ext
25354 fi
25355 echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
25356 echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
25357
25358 if test "$ac_cv_func_openlog_proto_compat" = yes; then
25359
25360 cat >>confdefs.h <<\_ACEOF
25361 #define OPENLOG_PROTO_COMPATIBLE 1
25362 _ACEOF
25363
25364 fi
25365
25366
25367
25368
25369 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
25370 echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
25371 echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
25372 if test "${ac_cv_func_crypt_noproto+set}" = set; then
25373   echo $ECHO_N "(cached) $ECHO_C" >&6
25374 else
25375   cat >conftest.$ac_ext <<_ACEOF
25376 #line $LINENO "configure"
25377 #include "confdefs.h"
25378
25379 #ifdef HAVE_CRYPT_H
25380 #include <crypt.h>
25381 #endif
25382 #ifdef HAVE_UNISTD_H
25383 #include <unistd.h>
25384 #endif
25385
25386 #ifdef F77_DUMMY_MAIN
25387 #  ifdef __cplusplus
25388      extern "C"
25389 #  endif
25390    int F77_DUMMY_MAIN() { return 1; }
25391 #endif
25392 int
25393 main ()
25394 {
25395 struct foo { int foo; } xx;
25396 extern int crypt (struct foo*);
25397 crypt(&xx);
25398
25399   ;
25400   return 0;
25401 }
25402 _ACEOF
25403 rm -f conftest.$ac_objext
25404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25405   (eval $ac_compile) 2>&5
25406   ac_status=$?
25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); } &&
25409          { ac_try='test -s conftest.$ac_objext'
25410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411   (eval $ac_try) 2>&5
25412   ac_status=$?
25413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414   (exit $ac_status); }; }; then
25415   eval "ac_cv_func_crypt_noproto=yes"
25416 else
25417   echo "$as_me: failed program was:" >&5
25418 cat conftest.$ac_ext >&5
25419 eval "ac_cv_func_crypt_noproto=no"
25420 fi
25421 rm -f conftest.$ac_objext conftest.$ac_ext
25422 fi
25423 echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
25424 echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
25425 if test "$ac_cv_func_crypt_noproto" = yes; then
25426
25427 cat >>confdefs.h <<\_ACEOF
25428 #define NEED_CRYPT_PROTO 1
25429 _ACEOF
25430
25431 fi
25432 fi
25433
25434
25435
25436
25437 echo "$as_me:$LINENO: checking for h_errno" >&5
25438 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
25439 if test "${ac_cv_var_h_errno+set}" = set; then
25440   echo $ECHO_N "(cached) $ECHO_C" >&6
25441 else
25442
25443 cat >conftest.$ac_ext <<_ACEOF
25444 #line $LINENO "configure"
25445 #include "confdefs.h"
25446 extern int h_errno;
25447 int foo() { return h_errno; }
25448 #ifdef F77_DUMMY_MAIN
25449 #  ifdef __cplusplus
25450      extern "C"
25451 #  endif
25452    int F77_DUMMY_MAIN() { return 1; }
25453 #endif
25454 int
25455 main ()
25456 {
25457 foo()
25458   ;
25459   return 0;
25460 }
25461 _ACEOF
25462 rm -f conftest.$ac_objext conftest$ac_exeext
25463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25464   (eval $ac_link) 2>&5
25465   ac_status=$?
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); } &&
25468          { ac_try='test -s conftest$ac_exeext'
25469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470   (eval $ac_try) 2>&5
25471   ac_status=$?
25472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473   (exit $ac_status); }; }; then
25474   ac_cv_var_h_errno=yes
25475 else
25476   echo "$as_me: failed program was:" >&5
25477 cat conftest.$ac_ext >&5
25478 ac_cv_var_h_errno=no
25479 fi
25480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25481
25482 fi
25483
25484 ac_foo=`eval echo \\$ac_cv_var_h_errno`
25485 echo "$as_me:$LINENO: result: $ac_foo" >&5
25486 echo "${ECHO_T}$ac_foo" >&6
25487 if test "$ac_foo" = yes; then
25488
25489 cat >>confdefs.h <<_ACEOF
25490 #define HAVE_H_ERRNO 1
25491 _ACEOF
25492
25493
25494 echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
25495 echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
25496 if test "${ac_cv_var_h_errno_declaration+set}" = set; then
25497   echo $ECHO_N "(cached) $ECHO_C" >&6
25498 else
25499
25500 cat >conftest.$ac_ext <<_ACEOF
25501 #line $LINENO "configure"
25502 #include "confdefs.h"
25503 #ifdef HAVE_SYS_TYPES_H
25504 #include <sys/types.h>
25505 #endif
25506 #ifdef HAVE_NETDB_H
25507 #include <netdb.h>
25508 #endif
25509 extern struct { int foo; } h_errno;
25510 #ifdef F77_DUMMY_MAIN
25511 #  ifdef __cplusplus
25512      extern "C"
25513 #  endif
25514    int F77_DUMMY_MAIN() { return 1; }
25515 #endif
25516 int
25517 main ()
25518 {
25519 h_errno.foo = 1;
25520   ;
25521   return 0;
25522 }
25523 _ACEOF
25524 rm -f conftest.$ac_objext
25525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25526   (eval $ac_compile) 2>&5
25527   ac_status=$?
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); } &&
25530          { ac_try='test -s conftest.$ac_objext'
25531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532   (eval $ac_try) 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }; }; then
25536   eval "ac_cv_var_h_errno_declaration=no"
25537 else
25538   echo "$as_me: failed program was:" >&5
25539 cat conftest.$ac_ext >&5
25540 eval "ac_cv_var_h_errno_declaration=yes"
25541 fi
25542 rm -f conftest.$ac_objext conftest.$ac_ext
25543
25544 fi
25545
25546
25547
25548
25549 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
25550 echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
25551 if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
25552
25553 cat >>confdefs.h <<\_ACEOF
25554 #define HAVE_H_ERRNO_DECLARATION 1
25555 _ACEOF
25556
25557 fi
25558
25559
25560 fi
25561
25562
25563
25564 echo "$as_me:$LINENO: checking for h_errlist" >&5
25565 echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
25566 if test "${ac_cv_var_h_errlist+set}" = set; then
25567   echo $ECHO_N "(cached) $ECHO_C" >&6
25568 else
25569
25570 cat >conftest.$ac_ext <<_ACEOF
25571 #line $LINENO "configure"
25572 #include "confdefs.h"
25573 extern int h_errlist;
25574 int foo() { return h_errlist; }
25575 #ifdef F77_DUMMY_MAIN
25576 #  ifdef __cplusplus
25577      extern "C"
25578 #  endif
25579    int F77_DUMMY_MAIN() { return 1; }
25580 #endif
25581 int
25582 main ()
25583 {
25584 foo()
25585   ;
25586   return 0;
25587 }
25588 _ACEOF
25589 rm -f conftest.$ac_objext conftest$ac_exeext
25590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25591   (eval $ac_link) 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); } &&
25595          { ac_try='test -s conftest$ac_exeext'
25596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597   (eval $ac_try) 2>&5
25598   ac_status=$?
25599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); }; }; then
25601   ac_cv_var_h_errlist=yes
25602 else
25603   echo "$as_me: failed program was:" >&5
25604 cat conftest.$ac_ext >&5
25605 ac_cv_var_h_errlist=no
25606 fi
25607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25608
25609 fi
25610
25611 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
25612 echo "$as_me:$LINENO: result: $ac_foo" >&5
25613 echo "${ECHO_T}$ac_foo" >&6
25614 if test "$ac_foo" = yes; then
25615
25616 cat >>confdefs.h <<_ACEOF
25617 #define HAVE_H_ERRLIST 1
25618 _ACEOF
25619
25620
25621 echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
25622 echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
25623 if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
25624   echo $ECHO_N "(cached) $ECHO_C" >&6
25625 else
25626
25627 cat >conftest.$ac_ext <<_ACEOF
25628 #line $LINENO "configure"
25629 #include "confdefs.h"
25630 #ifdef HAVE_NETDB_H
25631 #include <netdb.h>
25632 #endif
25633 extern struct { int foo; } h_errlist;
25634 #ifdef F77_DUMMY_MAIN
25635 #  ifdef __cplusplus
25636      extern "C"
25637 #  endif
25638    int F77_DUMMY_MAIN() { return 1; }
25639 #endif
25640 int
25641 main ()
25642 {
25643 h_errlist.foo = 1;
25644   ;
25645   return 0;
25646 }
25647 _ACEOF
25648 rm -f conftest.$ac_objext
25649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25650   (eval $ac_compile) 2>&5
25651   ac_status=$?
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); } &&
25654          { ac_try='test -s conftest.$ac_objext'
25655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656   (eval $ac_try) 2>&5
25657   ac_status=$?
25658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659   (exit $ac_status); }; }; then
25660   eval "ac_cv_var_h_errlist_declaration=no"
25661 else
25662   echo "$as_me: failed program was:" >&5
25663 cat conftest.$ac_ext >&5
25664 eval "ac_cv_var_h_errlist_declaration=yes"
25665 fi
25666 rm -f conftest.$ac_objext conftest.$ac_ext
25667
25668 fi
25669
25670
25671
25672
25673 echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
25674 echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
25675 if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
25676
25677 cat >>confdefs.h <<\_ACEOF
25678 #define HAVE_H_ERRLIST_DECLARATION 1
25679 _ACEOF
25680
25681 fi
25682
25683
25684 fi
25685
25686
25687
25688 echo "$as_me:$LINENO: checking for h_nerr" >&5
25689 echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
25690 if test "${ac_cv_var_h_nerr+set}" = set; then
25691   echo $ECHO_N "(cached) $ECHO_C" >&6
25692 else
25693
25694 cat >conftest.$ac_ext <<_ACEOF
25695 #line $LINENO "configure"
25696 #include "confdefs.h"
25697 extern int h_nerr;
25698 int foo() { return h_nerr; }
25699 #ifdef F77_DUMMY_MAIN
25700 #  ifdef __cplusplus
25701      extern "C"
25702 #  endif
25703    int F77_DUMMY_MAIN() { return 1; }
25704 #endif
25705 int
25706 main ()
25707 {
25708 foo()
25709   ;
25710   return 0;
25711 }
25712 _ACEOF
25713 rm -f conftest.$ac_objext conftest$ac_exeext
25714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25715   (eval $ac_link) 2>&5
25716   ac_status=$?
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); } &&
25719          { ac_try='test -s conftest$ac_exeext'
25720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721   (eval $ac_try) 2>&5
25722   ac_status=$?
25723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724   (exit $ac_status); }; }; then
25725   ac_cv_var_h_nerr=yes
25726 else
25727   echo "$as_me: failed program was:" >&5
25728 cat conftest.$ac_ext >&5
25729 ac_cv_var_h_nerr=no
25730 fi
25731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25732
25733 fi
25734
25735 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
25736 echo "$as_me:$LINENO: result: $ac_foo" >&5
25737 echo "${ECHO_T}$ac_foo" >&6
25738 if test "$ac_foo" = yes; then
25739
25740 cat >>confdefs.h <<_ACEOF
25741 #define HAVE_H_NERR 1
25742 _ACEOF
25743
25744
25745 echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
25746 echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
25747 if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750
25751 cat >conftest.$ac_ext <<_ACEOF
25752 #line $LINENO "configure"
25753 #include "confdefs.h"
25754 #ifdef HAVE_NETDB_H
25755 #include <netdb.h>
25756 #endif
25757 extern struct { int foo; } h_nerr;
25758 #ifdef F77_DUMMY_MAIN
25759 #  ifdef __cplusplus
25760      extern "C"
25761 #  endif
25762    int F77_DUMMY_MAIN() { return 1; }
25763 #endif
25764 int
25765 main ()
25766 {
25767 h_nerr.foo = 1;
25768   ;
25769   return 0;
25770 }
25771 _ACEOF
25772 rm -f conftest.$ac_objext
25773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25774   (eval $ac_compile) 2>&5
25775   ac_status=$?
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); } &&
25778          { ac_try='test -s conftest.$ac_objext'
25779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780   (eval $ac_try) 2>&5
25781   ac_status=$?
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); }; }; then
25784   eval "ac_cv_var_h_nerr_declaration=no"
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 cat conftest.$ac_ext >&5
25788 eval "ac_cv_var_h_nerr_declaration=yes"
25789 fi
25790 rm -f conftest.$ac_objext conftest.$ac_ext
25791
25792 fi
25793
25794
25795
25796
25797 echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
25798 echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
25799 if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
25800
25801 cat >>confdefs.h <<\_ACEOF
25802 #define HAVE_H_NERR_DECLARATION 1
25803 _ACEOF
25804
25805 fi
25806
25807
25808 fi
25809
25810
25811
25812 echo "$as_me:$LINENO: checking for __progname" >&5
25813 echo $ECHO_N "checking for __progname... $ECHO_C" >&6
25814 if test "${ac_cv_var___progname+set}" = set; then
25815   echo $ECHO_N "(cached) $ECHO_C" >&6
25816 else
25817
25818 cat >conftest.$ac_ext <<_ACEOF
25819 #line $LINENO "configure"
25820 #include "confdefs.h"
25821 extern int __progname;
25822 int foo() { return __progname; }
25823 #ifdef F77_DUMMY_MAIN
25824 #  ifdef __cplusplus
25825      extern "C"
25826 #  endif
25827    int F77_DUMMY_MAIN() { return 1; }
25828 #endif
25829 int
25830 main ()
25831 {
25832 foo()
25833   ;
25834   return 0;
25835 }
25836 _ACEOF
25837 rm -f conftest.$ac_objext conftest$ac_exeext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25839   (eval $ac_link) 2>&5
25840   ac_status=$?
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); } &&
25843          { ac_try='test -s conftest$ac_exeext'
25844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845   (eval $ac_try) 2>&5
25846   ac_status=$?
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); }; }; then
25849   ac_cv_var___progname=yes
25850 else
25851   echo "$as_me: failed program was:" >&5
25852 cat conftest.$ac_ext >&5
25853 ac_cv_var___progname=no
25854 fi
25855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25856
25857 fi
25858
25859 ac_foo=`eval echo \\$ac_cv_var___progname`
25860 echo "$as_me:$LINENO: result: $ac_foo" >&5
25861 echo "${ECHO_T}$ac_foo" >&6
25862 if test "$ac_foo" = yes; then
25863
25864 cat >>confdefs.h <<_ACEOF
25865 #define HAVE___PROGNAME 1
25866 _ACEOF
25867
25868
25869 echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
25870 echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
25871 if test "${ac_cv_var___progname_declaration+set}" = set; then
25872   echo $ECHO_N "(cached) $ECHO_C" >&6
25873 else
25874
25875 cat >conftest.$ac_ext <<_ACEOF
25876 #line $LINENO "configure"
25877 #include "confdefs.h"
25878 #ifdef HAVE_ERR_H
25879 #include <err.h>
25880 #endif
25881 extern struct { int foo; } __progname;
25882 #ifdef F77_DUMMY_MAIN
25883 #  ifdef __cplusplus
25884      extern "C"
25885 #  endif
25886    int F77_DUMMY_MAIN() { return 1; }
25887 #endif
25888 int
25889 main ()
25890 {
25891 __progname.foo = 1;
25892   ;
25893   return 0;
25894 }
25895 _ACEOF
25896 rm -f conftest.$ac_objext
25897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25898   (eval $ac_compile) 2>&5
25899   ac_status=$?
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); } &&
25902          { ac_try='test -s conftest.$ac_objext'
25903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904   (eval $ac_try) 2>&5
25905   ac_status=$?
25906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907   (exit $ac_status); }; }; then
25908   eval "ac_cv_var___progname_declaration=no"
25909 else
25910   echo "$as_me: failed program was:" >&5
25911 cat conftest.$ac_ext >&5
25912 eval "ac_cv_var___progname_declaration=yes"
25913 fi
25914 rm -f conftest.$ac_objext conftest.$ac_ext
25915
25916 fi
25917
25918
25919
25920
25921 echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
25922 echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
25923 if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
25924
25925 cat >>confdefs.h <<\_ACEOF
25926 #define HAVE___PROGNAME_DECLARATION 1
25927 _ACEOF
25928
25929 fi
25930
25931
25932 fi
25933
25934
25935
25936 echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
25937 echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
25938 if test "${ac_cv_var_optarg_declaration+set}" = set; then
25939   echo $ECHO_N "(cached) $ECHO_C" >&6
25940 else
25941
25942 cat >conftest.$ac_ext <<_ACEOF
25943 #line $LINENO "configure"
25944 #include "confdefs.h"
25945 #include <stdlib.h>
25946 #ifdef HAVE_UNISTD_H
25947 #include <unistd.h>
25948 #endif
25949 extern struct { int foo; } optarg;
25950 #ifdef F77_DUMMY_MAIN
25951 #  ifdef __cplusplus
25952      extern "C"
25953 #  endif
25954    int F77_DUMMY_MAIN() { return 1; }
25955 #endif
25956 int
25957 main ()
25958 {
25959 optarg.foo = 1;
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 rm -f conftest.$ac_objext
25965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25966   (eval $ac_compile) 2>&5
25967   ac_status=$?
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); } &&
25970          { ac_try='test -s conftest.$ac_objext'
25971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972   (eval $ac_try) 2>&5
25973   ac_status=$?
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); }; }; then
25976   eval "ac_cv_var_optarg_declaration=no"
25977 else
25978   echo "$as_me: failed program was:" >&5
25979 cat conftest.$ac_ext >&5
25980 eval "ac_cv_var_optarg_declaration=yes"
25981 fi
25982 rm -f conftest.$ac_objext conftest.$ac_ext
25983
25984 fi
25985
25986
25987
25988
25989 echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
25990 echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
25991 if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
25992
25993 cat >>confdefs.h <<\_ACEOF
25994 #define HAVE_OPTARG_DECLARATION 1
25995 _ACEOF
25996
25997 fi
25998
25999
26000
26001 echo "$as_me:$LINENO: checking if optind is properly declared" >&5
26002 echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
26003 if test "${ac_cv_var_optind_declaration+set}" = set; then
26004   echo $ECHO_N "(cached) $ECHO_C" >&6
26005 else
26006
26007 cat >conftest.$ac_ext <<_ACEOF
26008 #line $LINENO "configure"
26009 #include "confdefs.h"
26010 #include <stdlib.h>
26011 #ifdef HAVE_UNISTD_H
26012 #include <unistd.h>
26013 #endif
26014 extern struct { int foo; } optind;
26015 #ifdef F77_DUMMY_MAIN
26016 #  ifdef __cplusplus
26017      extern "C"
26018 #  endif
26019    int F77_DUMMY_MAIN() { return 1; }
26020 #endif
26021 int
26022 main ()
26023 {
26024 optind.foo = 1;
26025   ;
26026   return 0;
26027 }
26028 _ACEOF
26029 rm -f conftest.$ac_objext
26030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26031   (eval $ac_compile) 2>&5
26032   ac_status=$?
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); } &&
26035          { ac_try='test -s conftest.$ac_objext'
26036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037   (eval $ac_try) 2>&5
26038   ac_status=$?
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); }; }; then
26041   eval "ac_cv_var_optind_declaration=no"
26042 else
26043   echo "$as_me: failed program was:" >&5
26044 cat conftest.$ac_ext >&5
26045 eval "ac_cv_var_optind_declaration=yes"
26046 fi
26047 rm -f conftest.$ac_objext conftest.$ac_ext
26048
26049 fi
26050
26051
26052
26053
26054 echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
26055 echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
26056 if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
26057
26058 cat >>confdefs.h <<\_ACEOF
26059 #define HAVE_OPTIND_DECLARATION 1
26060 _ACEOF
26061
26062 fi
26063
26064
26065
26066 echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
26067 echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
26068 if test "${ac_cv_var_opterr_declaration+set}" = set; then
26069   echo $ECHO_N "(cached) $ECHO_C" >&6
26070 else
26071
26072 cat >conftest.$ac_ext <<_ACEOF
26073 #line $LINENO "configure"
26074 #include "confdefs.h"
26075 #include <stdlib.h>
26076 #ifdef HAVE_UNISTD_H
26077 #include <unistd.h>
26078 #endif
26079 extern struct { int foo; } opterr;
26080 #ifdef F77_DUMMY_MAIN
26081 #  ifdef __cplusplus
26082      extern "C"
26083 #  endif
26084    int F77_DUMMY_MAIN() { return 1; }
26085 #endif
26086 int
26087 main ()
26088 {
26089 opterr.foo = 1;
26090   ;
26091   return 0;
26092 }
26093 _ACEOF
26094 rm -f conftest.$ac_objext
26095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26096   (eval $ac_compile) 2>&5
26097   ac_status=$?
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } &&
26100          { ac_try='test -s conftest.$ac_objext'
26101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102   (eval $ac_try) 2>&5
26103   ac_status=$?
26104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); }; }; then
26106   eval "ac_cv_var_opterr_declaration=no"
26107 else
26108   echo "$as_me: failed program was:" >&5
26109 cat conftest.$ac_ext >&5
26110 eval "ac_cv_var_opterr_declaration=yes"
26111 fi
26112 rm -f conftest.$ac_objext conftest.$ac_ext
26113
26114 fi
26115
26116
26117
26118
26119 echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
26120 echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
26121 if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
26122
26123 cat >>confdefs.h <<\_ACEOF
26124 #define HAVE_OPTERR_DECLARATION 1
26125 _ACEOF
26126
26127 fi
26128
26129
26130
26131 echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
26132 echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
26133 if test "${ac_cv_var_optopt_declaration+set}" = set; then
26134   echo $ECHO_N "(cached) $ECHO_C" >&6
26135 else
26136
26137 cat >conftest.$ac_ext <<_ACEOF
26138 #line $LINENO "configure"
26139 #include "confdefs.h"
26140 #include <stdlib.h>
26141 #ifdef HAVE_UNISTD_H
26142 #include <unistd.h>
26143 #endif
26144 extern struct { int foo; } optopt;
26145 #ifdef F77_DUMMY_MAIN
26146 #  ifdef __cplusplus
26147      extern "C"
26148 #  endif
26149    int F77_DUMMY_MAIN() { return 1; }
26150 #endif
26151 int
26152 main ()
26153 {
26154 optopt.foo = 1;
26155   ;
26156   return 0;
26157 }
26158 _ACEOF
26159 rm -f conftest.$ac_objext
26160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26161   (eval $ac_compile) 2>&5
26162   ac_status=$?
26163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164   (exit $ac_status); } &&
26165          { ac_try='test -s conftest.$ac_objext'
26166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167   (eval $ac_try) 2>&5
26168   ac_status=$?
26169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170   (exit $ac_status); }; }; then
26171   eval "ac_cv_var_optopt_declaration=no"
26172 else
26173   echo "$as_me: failed program was:" >&5
26174 cat conftest.$ac_ext >&5
26175 eval "ac_cv_var_optopt_declaration=yes"
26176 fi
26177 rm -f conftest.$ac_objext conftest.$ac_ext
26178
26179 fi
26180
26181
26182
26183
26184 echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
26185 echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
26186 if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
26187
26188 cat >>confdefs.h <<\_ACEOF
26189 #define HAVE_OPTOPT_DECLARATION 1
26190 _ACEOF
26191
26192 fi
26193
26194
26195
26196
26197 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26198 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
26199 if test "${ac_cv_var_environ_declaration+set}" = set; then
26200   echo $ECHO_N "(cached) $ECHO_C" >&6
26201 else
26202
26203 cat >conftest.$ac_ext <<_ACEOF
26204 #line $LINENO "configure"
26205 #include "confdefs.h"
26206 #include <stdlib.h>
26207 extern struct { int foo; } environ;
26208 #ifdef F77_DUMMY_MAIN
26209 #  ifdef __cplusplus
26210      extern "C"
26211 #  endif
26212    int F77_DUMMY_MAIN() { return 1; }
26213 #endif
26214 int
26215 main ()
26216 {
26217 environ.foo = 1;
26218   ;
26219   return 0;
26220 }
26221 _ACEOF
26222 rm -f conftest.$ac_objext
26223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26224   (eval $ac_compile) 2>&5
26225   ac_status=$?
26226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); } &&
26228          { ac_try='test -s conftest.$ac_objext'
26229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230   (eval $ac_try) 2>&5
26231   ac_status=$?
26232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233   (exit $ac_status); }; }; then
26234   eval "ac_cv_var_environ_declaration=no"
26235 else
26236   echo "$as_me: failed program was:" >&5
26237 cat conftest.$ac_ext >&5
26238 eval "ac_cv_var_environ_declaration=yes"
26239 fi
26240 rm -f conftest.$ac_objext conftest.$ac_ext
26241
26242 fi
26243
26244
26245
26246
26247 echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
26248 echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
26249 if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
26250
26251 cat >>confdefs.h <<\_ACEOF
26252 #define HAVE_ENVIRON_DECLARATION 1
26253 _ACEOF
26254
26255 fi
26256
26257
26258
26259
26260
26261
26262 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
26263 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
26264 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
26265   echo $ECHO_N "(cached) $ECHO_C" >&6
26266 else
26267
26268 cat >conftest.$ac_ext <<_ACEOF
26269 #line $LINENO "configure"
26270 #include "confdefs.h"
26271 #include <time.h>
26272 #ifdef F77_DUMMY_MAIN
26273 #  ifdef __cplusplus
26274      extern "C"
26275 #  endif
26276    int F77_DUMMY_MAIN() { return 1; }
26277 #endif
26278 int
26279 main ()
26280 {
26281 struct tm x; x.tm_gmtoff;
26282   ;
26283   return 0;
26284 }
26285 _ACEOF
26286 rm -f conftest.$ac_objext
26287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26288   (eval $ac_compile) 2>&5
26289   ac_status=$?
26290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291   (exit $ac_status); } &&
26292          { ac_try='test -s conftest.$ac_objext'
26293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294   (eval $ac_try) 2>&5
26295   ac_status=$?
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); }; }; then
26298   ac_cv_type_struct_tm_tm_gmtoff=yes
26299 else
26300   echo "$as_me: failed program was:" >&5
26301 cat conftest.$ac_ext >&5
26302 ac_cv_type_struct_tm_tm_gmtoff=no
26303 fi
26304 rm -f conftest.$ac_objext conftest.$ac_ext
26305 fi
26306 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
26307 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
26308 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
26309
26310
26311 cat >>confdefs.h <<\_ACEOF
26312 #define HAVE_STRUCT_TM_TM_GMTOFF 1
26313 _ACEOF
26314
26315
26316 fi
26317
26318
26319
26320
26321 echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
26322 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
26323 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
26324   echo $ECHO_N "(cached) $ECHO_C" >&6
26325 else
26326
26327 cat >conftest.$ac_ext <<_ACEOF
26328 #line $LINENO "configure"
26329 #include "confdefs.h"
26330 #include <time.h>
26331 #ifdef F77_DUMMY_MAIN
26332 #  ifdef __cplusplus
26333      extern "C"
26334 #  endif
26335    int F77_DUMMY_MAIN() { return 1; }
26336 #endif
26337 int
26338 main ()
26339 {
26340 struct tm x; x.tm_zone;
26341   ;
26342   return 0;
26343 }
26344 _ACEOF
26345 rm -f conftest.$ac_objext
26346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26347   (eval $ac_compile) 2>&5
26348   ac_status=$?
26349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350   (exit $ac_status); } &&
26351          { ac_try='test -s conftest.$ac_objext'
26352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353   (eval $ac_try) 2>&5
26354   ac_status=$?
26355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); }; }; then
26357   ac_cv_type_struct_tm_tm_zone=yes
26358 else
26359   echo "$as_me: failed program was:" >&5
26360 cat conftest.$ac_ext >&5
26361 ac_cv_type_struct_tm_tm_zone=no
26362 fi
26363 rm -f conftest.$ac_objext conftest.$ac_ext
26364 fi
26365 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
26366 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
26367 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
26368
26369
26370 cat >>confdefs.h <<\_ACEOF
26371 #define HAVE_STRUCT_TM_TM_ZONE 1
26372 _ACEOF
26373
26374
26375 fi
26376
26377
26378
26379
26380
26381 echo "$as_me:$LINENO: checking for timezone" >&5
26382 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
26383 if test "${ac_cv_var_timezone+set}" = set; then
26384   echo $ECHO_N "(cached) $ECHO_C" >&6
26385 else
26386
26387 cat >conftest.$ac_ext <<_ACEOF
26388 #line $LINENO "configure"
26389 #include "confdefs.h"
26390 extern int timezone;
26391 int foo() { return timezone; }
26392 #ifdef F77_DUMMY_MAIN
26393 #  ifdef __cplusplus
26394      extern "C"
26395 #  endif
26396    int F77_DUMMY_MAIN() { return 1; }
26397 #endif
26398 int
26399 main ()
26400 {
26401 foo()
26402   ;
26403   return 0;
26404 }
26405 _ACEOF
26406 rm -f conftest.$ac_objext conftest$ac_exeext
26407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26408   (eval $ac_link) 2>&5
26409   ac_status=$?
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); } &&
26412          { ac_try='test -s conftest$ac_exeext'
26413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414   (eval $ac_try) 2>&5
26415   ac_status=$?
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); }; }; then
26418   ac_cv_var_timezone=yes
26419 else
26420   echo "$as_me: failed program was:" >&5
26421 cat conftest.$ac_ext >&5
26422 ac_cv_var_timezone=no
26423 fi
26424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26425
26426 fi
26427
26428 ac_foo=`eval echo \\$ac_cv_var_timezone`
26429 echo "$as_me:$LINENO: result: $ac_foo" >&5
26430 echo "${ECHO_T}$ac_foo" >&6
26431 if test "$ac_foo" = yes; then
26432
26433 cat >>confdefs.h <<_ACEOF
26434 #define HAVE_TIMEZONE 1
26435 _ACEOF
26436
26437
26438 echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
26439 echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
26440 if test "${ac_cv_var_timezone_declaration+set}" = set; then
26441   echo $ECHO_N "(cached) $ECHO_C" >&6
26442 else
26443
26444 cat >conftest.$ac_ext <<_ACEOF
26445 #line $LINENO "configure"
26446 #include "confdefs.h"
26447 #include <time.h>
26448 extern struct { int foo; } timezone;
26449 #ifdef F77_DUMMY_MAIN
26450 #  ifdef __cplusplus
26451      extern "C"
26452 #  endif
26453    int F77_DUMMY_MAIN() { return 1; }
26454 #endif
26455 int
26456 main ()
26457 {
26458 timezone.foo = 1;
26459   ;
26460   return 0;
26461 }
26462 _ACEOF
26463 rm -f conftest.$ac_objext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26465   (eval $ac_compile) 2>&5
26466   ac_status=$?
26467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468   (exit $ac_status); } &&
26469          { ac_try='test -s conftest.$ac_objext'
26470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26471   (eval $ac_try) 2>&5
26472   ac_status=$?
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); }; }; then
26475   eval "ac_cv_var_timezone_declaration=no"
26476 else
26477   echo "$as_me: failed program was:" >&5
26478 cat conftest.$ac_ext >&5
26479 eval "ac_cv_var_timezone_declaration=yes"
26480 fi
26481 rm -f conftest.$ac_objext conftest.$ac_ext
26482
26483 fi
26484
26485
26486
26487
26488 echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
26489 echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
26490 if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
26491
26492 cat >>confdefs.h <<\_ACEOF
26493 #define HAVE_TIMEZONE_DECLARATION 1
26494 _ACEOF
26495
26496 fi
26497
26498
26499 fi
26500
26501
26502 echo "$as_me:$LINENO: checking for altzone" >&5
26503 echo $ECHO_N "checking for altzone... $ECHO_C" >&6
26504 if test "${ac_cv_var_altzone+set}" = set; then
26505   echo $ECHO_N "(cached) $ECHO_C" >&6
26506 else
26507
26508 cat >conftest.$ac_ext <<_ACEOF
26509 #line $LINENO "configure"
26510 #include "confdefs.h"
26511 extern int altzone;
26512 int foo() { return altzone; }
26513 #ifdef F77_DUMMY_MAIN
26514 #  ifdef __cplusplus
26515      extern "C"
26516 #  endif
26517    int F77_DUMMY_MAIN() { return 1; }
26518 #endif
26519 int
26520 main ()
26521 {
26522 foo()
26523   ;
26524   return 0;
26525 }
26526 _ACEOF
26527 rm -f conftest.$ac_objext conftest$ac_exeext
26528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26529   (eval $ac_link) 2>&5
26530   ac_status=$?
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); } &&
26533          { ac_try='test -s conftest$ac_exeext'
26534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535   (eval $ac_try) 2>&5
26536   ac_status=$?
26537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538   (exit $ac_status); }; }; then
26539   ac_cv_var_altzone=yes
26540 else
26541   echo "$as_me: failed program was:" >&5
26542 cat conftest.$ac_ext >&5
26543 ac_cv_var_altzone=no
26544 fi
26545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26546
26547 fi
26548
26549 ac_foo=`eval echo \\$ac_cv_var_altzone`
26550 echo "$as_me:$LINENO: result: $ac_foo" >&5
26551 echo "${ECHO_T}$ac_foo" >&6
26552 if test "$ac_foo" = yes; then
26553
26554 cat >>confdefs.h <<_ACEOF
26555 #define HAVE_ALTZONE 1
26556 _ACEOF
26557
26558
26559 echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
26560 echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
26561 if test "${ac_cv_var_altzone_declaration+set}" = set; then
26562   echo $ECHO_N "(cached) $ECHO_C" >&6
26563 else
26564
26565 cat >conftest.$ac_ext <<_ACEOF
26566 #line $LINENO "configure"
26567 #include "confdefs.h"
26568 #include <time.h>
26569 extern struct { int foo; } altzone;
26570 #ifdef F77_DUMMY_MAIN
26571 #  ifdef __cplusplus
26572      extern "C"
26573 #  endif
26574    int F77_DUMMY_MAIN() { return 1; }
26575 #endif
26576 int
26577 main ()
26578 {
26579 altzone.foo = 1;
26580   ;
26581   return 0;
26582 }
26583 _ACEOF
26584 rm -f conftest.$ac_objext
26585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26586   (eval $ac_compile) 2>&5
26587   ac_status=$?
26588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589   (exit $ac_status); } &&
26590          { ac_try='test -s conftest.$ac_objext'
26591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592   (eval $ac_try) 2>&5
26593   ac_status=$?
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); }; }; then
26596   eval "ac_cv_var_altzone_declaration=no"
26597 else
26598   echo "$as_me: failed program was:" >&5
26599 cat conftest.$ac_ext >&5
26600 eval "ac_cv_var_altzone_declaration=yes"
26601 fi
26602 rm -f conftest.$ac_objext conftest.$ac_ext
26603
26604 fi
26605
26606
26607
26608
26609 echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
26610 echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
26611 if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
26612
26613 cat >>confdefs.h <<\_ACEOF
26614 #define HAVE_ALTZONE_DECLARATION 1
26615 _ACEOF
26616
26617 fi
26618
26619
26620 fi
26621
26622
26623
26624
26625 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
26626 echo "$as_me:$LINENO: checking for sa_family_t" >&5
26627 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
26628 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26629   echo $ECHO_N "(cached) $ECHO_C" >&6
26630 else
26631   cat >conftest.$ac_ext <<_ACEOF
26632 #line $LINENO "configure"
26633 #include "confdefs.h"
26634 #include <sys/types.h>
26635 #if STDC_HEADERS
26636 #include <stdlib.h>
26637 #include <stddef.h>
26638 #endif
26639 #include <sys/socket.h>
26640 #ifdef F77_DUMMY_MAIN
26641 #  ifdef __cplusplus
26642      extern "C"
26643 #  endif
26644    int F77_DUMMY_MAIN() { return 1; }
26645 #endif
26646 int
26647 main ()
26648 {
26649 sa_family_t foo;
26650   ;
26651   return 0;
26652 }
26653 _ACEOF
26654 rm -f conftest.$ac_objext
26655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26656   (eval $ac_compile) 2>&5
26657   ac_status=$?
26658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); } &&
26660          { ac_try='test -s conftest.$ac_objext'
26661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662   (eval $ac_try) 2>&5
26663   ac_status=$?
26664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665   (exit $ac_status); }; }; then
26666   eval "ac_cv_type_$cv=yes"
26667 else
26668   echo "$as_me: failed program was:" >&5
26669 cat conftest.$ac_ext >&5
26670 eval "ac_cv_type_$cv=no"
26671 fi
26672 rm -f conftest.$ac_objext conftest.$ac_ext
26673 fi
26674 ac_foo=`eval echo \\$ac_cv_type_$cv`
26675 echo "$as_me:$LINENO: result: $ac_foo" >&5
26676 echo "${ECHO_T}$ac_foo" >&6
26677 if test "$ac_foo" = yes; then
26678   ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26679 if false; then
26680         echo "$as_me:$LINENO: checking for sa_family_t" >&5
26681 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
26682 if test "${ac_cv_type_sa_family_t+set}" = set; then
26683   echo $ECHO_N "(cached) $ECHO_C" >&6
26684 else
26685   cat >conftest.$ac_ext <<_ACEOF
26686 #line $LINENO "configure"
26687 #include "confdefs.h"
26688 $ac_includes_default
26689 #ifdef F77_DUMMY_MAIN
26690 #  ifdef __cplusplus
26691      extern "C"
26692 #  endif
26693    int F77_DUMMY_MAIN() { return 1; }
26694 #endif
26695 int
26696 main ()
26697 {
26698 if ((sa_family_t *) 0)
26699   return 0;
26700 if (sizeof (sa_family_t))
26701   return 0;
26702   ;
26703   return 0;
26704 }
26705 _ACEOF
26706 rm -f conftest.$ac_objext
26707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26708   (eval $ac_compile) 2>&5
26709   ac_status=$?
26710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); } &&
26712          { ac_try='test -s conftest.$ac_objext'
26713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26714   (eval $ac_try) 2>&5
26715   ac_status=$?
26716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717   (exit $ac_status); }; }; then
26718   ac_cv_type_sa_family_t=yes
26719 else
26720   echo "$as_me: failed program was:" >&5
26721 cat conftest.$ac_ext >&5
26722 ac_cv_type_sa_family_t=no
26723 fi
26724 rm -f conftest.$ac_objext conftest.$ac_ext
26725 fi
26726 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
26727 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
26728 if test $ac_cv_type_sa_family_t = yes; then
26729
26730 cat >>confdefs.h <<_ACEOF
26731 #define HAVE_SA_FAMILY_T 1
26732 _ACEOF
26733
26734
26735 fi
26736
26737 fi
26738
26739 cat >>confdefs.h <<_ACEOF
26740 #define $ac_tr_hdr 1
26741 _ACEOF
26742
26743 fi
26744
26745
26746
26747 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
26748 echo "$as_me:$LINENO: checking for socklen_t" >&5
26749 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
26750 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26751   echo $ECHO_N "(cached) $ECHO_C" >&6
26752 else
26753   cat >conftest.$ac_ext <<_ACEOF
26754 #line $LINENO "configure"
26755 #include "confdefs.h"
26756 #include <sys/types.h>
26757 #if STDC_HEADERS
26758 #include <stdlib.h>
26759 #include <stddef.h>
26760 #endif
26761 #include <sys/socket.h>
26762 #ifdef F77_DUMMY_MAIN
26763 #  ifdef __cplusplus
26764      extern "C"
26765 #  endif
26766    int F77_DUMMY_MAIN() { return 1; }
26767 #endif
26768 int
26769 main ()
26770 {
26771 socklen_t foo;
26772   ;
26773   return 0;
26774 }
26775 _ACEOF
26776 rm -f conftest.$ac_objext
26777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26778   (eval $ac_compile) 2>&5
26779   ac_status=$?
26780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781   (exit $ac_status); } &&
26782          { ac_try='test -s conftest.$ac_objext'
26783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784   (eval $ac_try) 2>&5
26785   ac_status=$?
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); }; }; then
26788   eval "ac_cv_type_$cv=yes"
26789 else
26790   echo "$as_me: failed program was:" >&5
26791 cat conftest.$ac_ext >&5
26792 eval "ac_cv_type_$cv=no"
26793 fi
26794 rm -f conftest.$ac_objext conftest.$ac_ext
26795 fi
26796 ac_foo=`eval echo \\$ac_cv_type_$cv`
26797 echo "$as_me:$LINENO: result: $ac_foo" >&5
26798 echo "${ECHO_T}$ac_foo" >&6
26799 if test "$ac_foo" = yes; then
26800   ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26801 if false; then
26802         echo "$as_me:$LINENO: checking for socklen_t" >&5
26803 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
26804 if test "${ac_cv_type_socklen_t+set}" = set; then
26805   echo $ECHO_N "(cached) $ECHO_C" >&6
26806 else
26807   cat >conftest.$ac_ext <<_ACEOF
26808 #line $LINENO "configure"
26809 #include "confdefs.h"
26810 $ac_includes_default
26811 #ifdef F77_DUMMY_MAIN
26812 #  ifdef __cplusplus
26813      extern "C"
26814 #  endif
26815    int F77_DUMMY_MAIN() { return 1; }
26816 #endif
26817 int
26818 main ()
26819 {
26820 if ((socklen_t *) 0)
26821   return 0;
26822 if (sizeof (socklen_t))
26823   return 0;
26824   ;
26825   return 0;
26826 }
26827 _ACEOF
26828 rm -f conftest.$ac_objext
26829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26830   (eval $ac_compile) 2>&5
26831   ac_status=$?
26832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833   (exit $ac_status); } &&
26834          { ac_try='test -s conftest.$ac_objext'
26835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836   (eval $ac_try) 2>&5
26837   ac_status=$?
26838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839   (exit $ac_status); }; }; then
26840   ac_cv_type_socklen_t=yes
26841 else
26842   echo "$as_me: failed program was:" >&5
26843 cat conftest.$ac_ext >&5
26844 ac_cv_type_socklen_t=no
26845 fi
26846 rm -f conftest.$ac_objext conftest.$ac_ext
26847 fi
26848 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26849 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
26850 if test $ac_cv_type_socklen_t = yes; then
26851
26852 cat >>confdefs.h <<_ACEOF
26853 #define HAVE_SOCKLEN_T 1
26854 _ACEOF
26855
26856
26857 fi
26858
26859 fi
26860
26861 cat >>confdefs.h <<_ACEOF
26862 #define $ac_tr_hdr 1
26863 _ACEOF
26864
26865 fi
26866
26867
26868
26869 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
26870 echo "$as_me:$LINENO: checking for struct sockaddr" >&5
26871 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
26872 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26873   echo $ECHO_N "(cached) $ECHO_C" >&6
26874 else
26875   cat >conftest.$ac_ext <<_ACEOF
26876 #line $LINENO "configure"
26877 #include "confdefs.h"
26878 #include <sys/types.h>
26879 #if STDC_HEADERS
26880 #include <stdlib.h>
26881 #include <stddef.h>
26882 #endif
26883 #include <sys/socket.h>
26884 #ifdef F77_DUMMY_MAIN
26885 #  ifdef __cplusplus
26886      extern "C"
26887 #  endif
26888    int F77_DUMMY_MAIN() { return 1; }
26889 #endif
26890 int
26891 main ()
26892 {
26893 struct sockaddr foo;
26894   ;
26895   return 0;
26896 }
26897 _ACEOF
26898 rm -f conftest.$ac_objext
26899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26900   (eval $ac_compile) 2>&5
26901   ac_status=$?
26902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903   (exit $ac_status); } &&
26904          { ac_try='test -s conftest.$ac_objext'
26905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906   (eval $ac_try) 2>&5
26907   ac_status=$?
26908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); }; }; then
26910   eval "ac_cv_type_$cv=yes"
26911 else
26912   echo "$as_me: failed program was:" >&5
26913 cat conftest.$ac_ext >&5
26914 eval "ac_cv_type_$cv=no"
26915 fi
26916 rm -f conftest.$ac_objext conftest.$ac_ext
26917 fi
26918 ac_foo=`eval echo \\$ac_cv_type_$cv`
26919 echo "$as_me:$LINENO: result: $ac_foo" >&5
26920 echo "${ECHO_T}$ac_foo" >&6
26921 if test "$ac_foo" = yes; then
26922   ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26923 if false; then
26924         echo "$as_me:$LINENO: checking for struct sockaddr" >&5
26925 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
26926 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
26927   echo $ECHO_N "(cached) $ECHO_C" >&6
26928 else
26929   cat >conftest.$ac_ext <<_ACEOF
26930 #line $LINENO "configure"
26931 #include "confdefs.h"
26932 $ac_includes_default
26933 #ifdef F77_DUMMY_MAIN
26934 #  ifdef __cplusplus
26935      extern "C"
26936 #  endif
26937    int F77_DUMMY_MAIN() { return 1; }
26938 #endif
26939 int
26940 main ()
26941 {
26942 if ((struct sockaddr *) 0)
26943   return 0;
26944 if (sizeof (struct sockaddr))
26945   return 0;
26946   ;
26947   return 0;
26948 }
26949 _ACEOF
26950 rm -f conftest.$ac_objext
26951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26952   (eval $ac_compile) 2>&5
26953   ac_status=$?
26954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955   (exit $ac_status); } &&
26956          { ac_try='test -s conftest.$ac_objext'
26957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26958   (eval $ac_try) 2>&5
26959   ac_status=$?
26960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961   (exit $ac_status); }; }; then
26962   ac_cv_type_struct_sockaddr=yes
26963 else
26964   echo "$as_me: failed program was:" >&5
26965 cat conftest.$ac_ext >&5
26966 ac_cv_type_struct_sockaddr=no
26967 fi
26968 rm -f conftest.$ac_objext conftest.$ac_ext
26969 fi
26970 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
26971 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
26972 if test $ac_cv_type_struct_sockaddr = yes; then
26973
26974 cat >>confdefs.h <<_ACEOF
26975 #define HAVE_STRUCT_SOCKADDR 1
26976 _ACEOF
26977
26978
26979 fi
26980
26981 fi
26982
26983 cat >>confdefs.h <<_ACEOF
26984 #define $ac_tr_hdr 1
26985 _ACEOF
26986
26987 fi
26988
26989
26990
26991 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
26992 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
26993 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
26994 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
26995   echo $ECHO_N "(cached) $ECHO_C" >&6
26996 else
26997   cat >conftest.$ac_ext <<_ACEOF
26998 #line $LINENO "configure"
26999 #include "confdefs.h"
27000 #include <sys/types.h>
27001 #if STDC_HEADERS
27002 #include <stdlib.h>
27003 #include <stddef.h>
27004 #endif
27005 #include <sys/socket.h>
27006 #ifdef F77_DUMMY_MAIN
27007 #  ifdef __cplusplus
27008      extern "C"
27009 #  endif
27010    int F77_DUMMY_MAIN() { return 1; }
27011 #endif
27012 int
27013 main ()
27014 {
27015 struct sockaddr_storage foo;
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest.$ac_objext
27021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27022   (eval $ac_compile) 2>&5
27023   ac_status=$?
27024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025   (exit $ac_status); } &&
27026          { ac_try='test -s conftest.$ac_objext'
27027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028   (eval $ac_try) 2>&5
27029   ac_status=$?
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); }; }; then
27032   eval "ac_cv_type_$cv=yes"
27033 else
27034   echo "$as_me: failed program was:" >&5
27035 cat conftest.$ac_ext >&5
27036 eval "ac_cv_type_$cv=no"
27037 fi
27038 rm -f conftest.$ac_objext conftest.$ac_ext
27039 fi
27040 ac_foo=`eval echo \\$ac_cv_type_$cv`
27041 echo "$as_me:$LINENO: result: $ac_foo" >&5
27042 echo "${ECHO_T}$ac_foo" >&6
27043 if test "$ac_foo" = yes; then
27044   ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27045 if false; then
27046         echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
27047 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
27048 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
27049   echo $ECHO_N "(cached) $ECHO_C" >&6
27050 else
27051   cat >conftest.$ac_ext <<_ACEOF
27052 #line $LINENO "configure"
27053 #include "confdefs.h"
27054 $ac_includes_default
27055 #ifdef F77_DUMMY_MAIN
27056 #  ifdef __cplusplus
27057      extern "C"
27058 #  endif
27059    int F77_DUMMY_MAIN() { return 1; }
27060 #endif
27061 int
27062 main ()
27063 {
27064 if ((struct sockaddr_storage *) 0)
27065   return 0;
27066 if (sizeof (struct sockaddr_storage))
27067   return 0;
27068   ;
27069   return 0;
27070 }
27071 _ACEOF
27072 rm -f conftest.$ac_objext
27073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27074   (eval $ac_compile) 2>&5
27075   ac_status=$?
27076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077   (exit $ac_status); } &&
27078          { ac_try='test -s conftest.$ac_objext'
27079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27080   (eval $ac_try) 2>&5
27081   ac_status=$?
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); }; }; then
27084   ac_cv_type_struct_sockaddr_storage=yes
27085 else
27086   echo "$as_me: failed program was:" >&5
27087 cat conftest.$ac_ext >&5
27088 ac_cv_type_struct_sockaddr_storage=no
27089 fi
27090 rm -f conftest.$ac_objext conftest.$ac_ext
27091 fi
27092 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
27093 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
27094 if test $ac_cv_type_struct_sockaddr_storage = yes; then
27095
27096 cat >>confdefs.h <<_ACEOF
27097 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
27098 _ACEOF
27099
27100
27101 fi
27102
27103 fi
27104
27105 cat >>confdefs.h <<_ACEOF
27106 #define $ac_tr_hdr 1
27107 _ACEOF
27108
27109 fi
27110
27111
27112
27113 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
27114 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27115 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
27116 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27117   echo $ECHO_N "(cached) $ECHO_C" >&6
27118 else
27119   cat >conftest.$ac_ext <<_ACEOF
27120 #line $LINENO "configure"
27121 #include "confdefs.h"
27122 #include <sys/types.h>
27123 #if STDC_HEADERS
27124 #include <stdlib.h>
27125 #include <stddef.h>
27126 #endif
27127 #include <netdb.h>
27128 #ifdef F77_DUMMY_MAIN
27129 #  ifdef __cplusplus
27130      extern "C"
27131 #  endif
27132    int F77_DUMMY_MAIN() { return 1; }
27133 #endif
27134 int
27135 main ()
27136 {
27137 struct addrinfo foo;
27138   ;
27139   return 0;
27140 }
27141 _ACEOF
27142 rm -f conftest.$ac_objext
27143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27144   (eval $ac_compile) 2>&5
27145   ac_status=$?
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); } &&
27148          { ac_try='test -s conftest.$ac_objext'
27149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150   (eval $ac_try) 2>&5
27151   ac_status=$?
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); }; }; then
27154   eval "ac_cv_type_$cv=yes"
27155 else
27156   echo "$as_me: failed program was:" >&5
27157 cat conftest.$ac_ext >&5
27158 eval "ac_cv_type_$cv=no"
27159 fi
27160 rm -f conftest.$ac_objext conftest.$ac_ext
27161 fi
27162 ac_foo=`eval echo \\$ac_cv_type_$cv`
27163 echo "$as_me:$LINENO: result: $ac_foo" >&5
27164 echo "${ECHO_T}$ac_foo" >&6
27165 if test "$ac_foo" = yes; then
27166   ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27167 if false; then
27168         echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27169 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
27170 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
27171   echo $ECHO_N "(cached) $ECHO_C" >&6
27172 else
27173   cat >conftest.$ac_ext <<_ACEOF
27174 #line $LINENO "configure"
27175 #include "confdefs.h"
27176 $ac_includes_default
27177 #ifdef F77_DUMMY_MAIN
27178 #  ifdef __cplusplus
27179      extern "C"
27180 #  endif
27181    int F77_DUMMY_MAIN() { return 1; }
27182 #endif
27183 int
27184 main ()
27185 {
27186 if ((struct addrinfo *) 0)
27187   return 0;
27188 if (sizeof (struct addrinfo))
27189   return 0;
27190   ;
27191   return 0;
27192 }
27193 _ACEOF
27194 rm -f conftest.$ac_objext
27195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27196   (eval $ac_compile) 2>&5
27197   ac_status=$?
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); } &&
27200          { ac_try='test -s conftest.$ac_objext'
27201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27202   (eval $ac_try) 2>&5
27203   ac_status=$?
27204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205   (exit $ac_status); }; }; then
27206   ac_cv_type_struct_addrinfo=yes
27207 else
27208   echo "$as_me: failed program was:" >&5
27209 cat conftest.$ac_ext >&5
27210 ac_cv_type_struct_addrinfo=no
27211 fi
27212 rm -f conftest.$ac_objext conftest.$ac_ext
27213 fi
27214 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
27215 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
27216 if test $ac_cv_type_struct_addrinfo = yes; then
27217
27218 cat >>confdefs.h <<_ACEOF
27219 #define HAVE_STRUCT_ADDRINFO 1
27220 _ACEOF
27221
27222
27223 fi
27224
27225 fi
27226
27227 cat >>confdefs.h <<_ACEOF
27228 #define $ac_tr_hdr 1
27229 _ACEOF
27230
27231 fi
27232
27233
27234
27235 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
27236 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
27237 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
27238 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27239   echo $ECHO_N "(cached) $ECHO_C" >&6
27240 else
27241   cat >conftest.$ac_ext <<_ACEOF
27242 #line $LINENO "configure"
27243 #include "confdefs.h"
27244 #include <sys/types.h>
27245 #if STDC_HEADERS
27246 #include <stdlib.h>
27247 #include <stddef.h>
27248 #endif
27249 #include <ifaddrs.h>
27250 #ifdef F77_DUMMY_MAIN
27251 #  ifdef __cplusplus
27252      extern "C"
27253 #  endif
27254    int F77_DUMMY_MAIN() { return 1; }
27255 #endif
27256 int
27257 main ()
27258 {
27259 struct ifaddrs foo;
27260   ;
27261   return 0;
27262 }
27263 _ACEOF
27264 rm -f conftest.$ac_objext
27265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27266   (eval $ac_compile) 2>&5
27267   ac_status=$?
27268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269   (exit $ac_status); } &&
27270          { ac_try='test -s conftest.$ac_objext'
27271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272   (eval $ac_try) 2>&5
27273   ac_status=$?
27274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275   (exit $ac_status); }; }; then
27276   eval "ac_cv_type_$cv=yes"
27277 else
27278   echo "$as_me: failed program was:" >&5
27279 cat conftest.$ac_ext >&5
27280 eval "ac_cv_type_$cv=no"
27281 fi
27282 rm -f conftest.$ac_objext conftest.$ac_ext
27283 fi
27284 ac_foo=`eval echo \\$ac_cv_type_$cv`
27285 echo "$as_me:$LINENO: result: $ac_foo" >&5
27286 echo "${ECHO_T}$ac_foo" >&6
27287 if test "$ac_foo" = yes; then
27288   ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27289 if false; then
27290         echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
27291 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
27292 if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
27293   echo $ECHO_N "(cached) $ECHO_C" >&6
27294 else
27295   cat >conftest.$ac_ext <<_ACEOF
27296 #line $LINENO "configure"
27297 #include "confdefs.h"
27298 $ac_includes_default
27299 #ifdef F77_DUMMY_MAIN
27300 #  ifdef __cplusplus
27301      extern "C"
27302 #  endif
27303    int F77_DUMMY_MAIN() { return 1; }
27304 #endif
27305 int
27306 main ()
27307 {
27308 if ((struct ifaddrs *) 0)
27309   return 0;
27310 if (sizeof (struct ifaddrs))
27311   return 0;
27312   ;
27313   return 0;
27314 }
27315 _ACEOF
27316 rm -f conftest.$ac_objext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318   (eval $ac_compile) 2>&5
27319   ac_status=$?
27320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321   (exit $ac_status); } &&
27322          { ac_try='test -s conftest.$ac_objext'
27323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324   (eval $ac_try) 2>&5
27325   ac_status=$?
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); }; }; then
27328   ac_cv_type_struct_ifaddrs=yes
27329 else
27330   echo "$as_me: failed program was:" >&5
27331 cat conftest.$ac_ext >&5
27332 ac_cv_type_struct_ifaddrs=no
27333 fi
27334 rm -f conftest.$ac_objext conftest.$ac_ext
27335 fi
27336 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
27337 echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
27338 if test $ac_cv_type_struct_ifaddrs = yes; then
27339
27340 cat >>confdefs.h <<_ACEOF
27341 #define HAVE_STRUCT_IFADDRS 1
27342 _ACEOF
27343
27344
27345 fi
27346
27347 fi
27348
27349 cat >>confdefs.h <<_ACEOF
27350 #define $ac_tr_hdr 1
27351 _ACEOF
27352
27353 fi
27354
27355
27356
27357 cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
27358 echo "$as_me:$LINENO: checking for struct iovec" >&5
27359 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
27360 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27361   echo $ECHO_N "(cached) $ECHO_C" >&6
27362 else
27363   cat >conftest.$ac_ext <<_ACEOF
27364 #line $LINENO "configure"
27365 #include "confdefs.h"
27366 #include <sys/types.h>
27367 #if STDC_HEADERS
27368 #include <stdlib.h>
27369 #include <stddef.h>
27370 #endif
27371
27372 #include <sys/types.h>
27373 #include <sys/uio.h>
27374
27375 #ifdef F77_DUMMY_MAIN
27376 #  ifdef __cplusplus
27377      extern "C"
27378 #  endif
27379    int F77_DUMMY_MAIN() { return 1; }
27380 #endif
27381 int
27382 main ()
27383 {
27384 struct iovec foo;
27385   ;
27386   return 0;
27387 }
27388 _ACEOF
27389 rm -f conftest.$ac_objext
27390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27391   (eval $ac_compile) 2>&5
27392   ac_status=$?
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); } &&
27395          { ac_try='test -s conftest.$ac_objext'
27396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397   (eval $ac_try) 2>&5
27398   ac_status=$?
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); }; }; then
27401   eval "ac_cv_type_$cv=yes"
27402 else
27403   echo "$as_me: failed program was:" >&5
27404 cat conftest.$ac_ext >&5
27405 eval "ac_cv_type_$cv=no"
27406 fi
27407 rm -f conftest.$ac_objext conftest.$ac_ext
27408 fi
27409 ac_foo=`eval echo \\$ac_cv_type_$cv`
27410 echo "$as_me:$LINENO: result: $ac_foo" >&5
27411 echo "${ECHO_T}$ac_foo" >&6
27412 if test "$ac_foo" = yes; then
27413   ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27414 if false; then
27415         echo "$as_me:$LINENO: checking for struct iovec" >&5
27416 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
27417 if test "${ac_cv_type_struct_iovec+set}" = set; then
27418   echo $ECHO_N "(cached) $ECHO_C" >&6
27419 else
27420   cat >conftest.$ac_ext <<_ACEOF
27421 #line $LINENO "configure"
27422 #include "confdefs.h"
27423 $ac_includes_default
27424 #ifdef F77_DUMMY_MAIN
27425 #  ifdef __cplusplus
27426      extern "C"
27427 #  endif
27428    int F77_DUMMY_MAIN() { return 1; }
27429 #endif
27430 int
27431 main ()
27432 {
27433 if ((struct iovec *) 0)
27434   return 0;
27435 if (sizeof (struct iovec))
27436   return 0;
27437   ;
27438   return 0;
27439 }
27440 _ACEOF
27441 rm -f conftest.$ac_objext
27442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27443   (eval $ac_compile) 2>&5
27444   ac_status=$?
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); } &&
27447          { ac_try='test -s conftest.$ac_objext'
27448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449   (eval $ac_try) 2>&5
27450   ac_status=$?
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); }; }; then
27453   ac_cv_type_struct_iovec=yes
27454 else
27455   echo "$as_me: failed program was:" >&5
27456 cat conftest.$ac_ext >&5
27457 ac_cv_type_struct_iovec=no
27458 fi
27459 rm -f conftest.$ac_objext conftest.$ac_ext
27460 fi
27461 echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
27462 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
27463 if test $ac_cv_type_struct_iovec = yes; then
27464
27465 cat >>confdefs.h <<_ACEOF
27466 #define HAVE_STRUCT_IOVEC 1
27467 _ACEOF
27468
27469
27470 fi
27471
27472 fi
27473
27474 cat >>confdefs.h <<_ACEOF
27475 #define $ac_tr_hdr 1
27476 _ACEOF
27477
27478 fi
27479
27480
27481
27482 cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
27483 echo "$as_me:$LINENO: checking for struct msghdr" >&5
27484 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
27485 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
27486   echo $ECHO_N "(cached) $ECHO_C" >&6
27487 else
27488   cat >conftest.$ac_ext <<_ACEOF
27489 #line $LINENO "configure"
27490 #include "confdefs.h"
27491 #include <sys/types.h>
27492 #if STDC_HEADERS
27493 #include <stdlib.h>
27494 #include <stddef.h>
27495 #endif
27496
27497 #include <sys/types.h>
27498 #include <sys/socket.h>
27499
27500 #ifdef F77_DUMMY_MAIN
27501 #  ifdef __cplusplus
27502      extern "C"
27503 #  endif
27504    int F77_DUMMY_MAIN() { return 1; }
27505 #endif
27506 int
27507 main ()
27508 {
27509 struct msghdr foo;
27510   ;
27511   return 0;
27512 }
27513 _ACEOF
27514 rm -f conftest.$ac_objext
27515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27516   (eval $ac_compile) 2>&5
27517   ac_status=$?
27518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); } &&
27520          { ac_try='test -s conftest.$ac_objext'
27521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522   (eval $ac_try) 2>&5
27523   ac_status=$?
27524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525   (exit $ac_status); }; }; then
27526   eval "ac_cv_type_$cv=yes"
27527 else
27528   echo "$as_me: failed program was:" >&5
27529 cat conftest.$ac_ext >&5
27530 eval "ac_cv_type_$cv=no"
27531 fi
27532 rm -f conftest.$ac_objext conftest.$ac_ext
27533 fi
27534 ac_foo=`eval echo \\$ac_cv_type_$cv`
27535 echo "$as_me:$LINENO: result: $ac_foo" >&5
27536 echo "${ECHO_T}$ac_foo" >&6
27537 if test "$ac_foo" = yes; then
27538   ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
27539 if false; then
27540         echo "$as_me:$LINENO: checking for struct msghdr" >&5
27541 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
27542 if test "${ac_cv_type_struct_msghdr+set}" = set; then
27543   echo $ECHO_N "(cached) $ECHO_C" >&6
27544 else
27545   cat >conftest.$ac_ext <<_ACEOF
27546 #line $LINENO "configure"
27547 #include "confdefs.h"
27548 $ac_includes_default
27549 #ifdef F77_DUMMY_MAIN
27550 #  ifdef __cplusplus
27551      extern "C"
27552 #  endif
27553    int F77_DUMMY_MAIN() { return 1; }
27554 #endif
27555 int
27556 main ()
27557 {
27558 if ((struct msghdr *) 0)
27559   return 0;
27560 if (sizeof (struct msghdr))
27561   return 0;
27562   ;
27563   return 0;
27564 }
27565 _ACEOF
27566 rm -f conftest.$ac_objext
27567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27568   (eval $ac_compile) 2>&5
27569   ac_status=$?
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); } &&
27572          { ac_try='test -s conftest.$ac_objext'
27573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574   (eval $ac_try) 2>&5
27575   ac_status=$?
27576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577   (exit $ac_status); }; }; then
27578   ac_cv_type_struct_msghdr=yes
27579 else
27580   echo "$as_me: failed program was:" >&5
27581 cat conftest.$ac_ext >&5
27582 ac_cv_type_struct_msghdr=no
27583 fi
27584 rm -f conftest.$ac_objext conftest.$ac_ext
27585 fi
27586 echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
27587 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
27588 if test $ac_cv_type_struct_msghdr = yes; then
27589
27590 cat >>confdefs.h <<_ACEOF
27591 #define HAVE_STRUCT_MSGHDR 1
27592 _ACEOF
27593
27594
27595 fi
27596
27597 fi
27598
27599 cat >>confdefs.h <<_ACEOF
27600 #define $ac_tr_hdr 1
27601 _ACEOF
27602
27603 fi
27604
27605
27606
27607
27608 echo "$as_me:$LINENO: checking for struct winsize" >&5
27609 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
27610 if test "${ac_cv_struct_winsize+set}" = set; then
27611   echo $ECHO_N "(cached) $ECHO_C" >&6
27612 else
27613
27614 ac_cv_struct_winsize=no
27615 for i in sys/termios.h sys/ioctl.h; do
27616 cat >conftest.$ac_ext <<_ACEOF
27617 #line $LINENO "configure"
27618 #include "confdefs.h"
27619 #include <$i>
27620
27621 _ACEOF
27622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27623   egrep "struct[        ]*winsize" >/dev/null 2>&1; then
27624   ac_cv_struct_winsize=yes; break
27625 fi
27626 rm -f conftest*
27627 done
27628
27629 fi
27630
27631 if test "$ac_cv_struct_winsize" = "yes"; then
27632
27633 cat >>confdefs.h <<\_ACEOF
27634 #define HAVE_STRUCT_WINSIZE 1
27635 _ACEOF
27636
27637 fi
27638 echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
27639 echo "${ECHO_T}$ac_cv_struct_winsize" >&6
27640 cat >conftest.$ac_ext <<_ACEOF
27641 #line $LINENO "configure"
27642 #include "confdefs.h"
27643 #include <termios.h>
27644
27645 _ACEOF
27646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27647   egrep "ws_xpixel" >/dev/null 2>&1; then
27648
27649 cat >>confdefs.h <<\_ACEOF
27650 #define HAVE_WS_XPIXEL 1
27651 _ACEOF
27652
27653 fi
27654 rm -f conftest*
27655
27656 cat >conftest.$ac_ext <<_ACEOF
27657 #line $LINENO "configure"
27658 #include "confdefs.h"
27659 #include <termios.h>
27660
27661 _ACEOF
27662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27663   egrep "ws_ypixel" >/dev/null 2>&1; then
27664
27665 cat >>confdefs.h <<\_ACEOF
27666 #define HAVE_WS_YPIXEL 1
27667 _ACEOF
27668
27669 fi
27670 rm -f conftest*
27671
27672
27673
27674
27675
27676 echo "$as_me:$LINENO: checking for struct spwd" >&5
27677 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
27678 if test "${ac_cv_struct_spwd+set}" = set; then
27679   echo $ECHO_N "(cached) $ECHO_C" >&6
27680 else
27681
27682 cat >conftest.$ac_ext <<_ACEOF
27683 #line $LINENO "configure"
27684 #include "confdefs.h"
27685 #include <pwd.h>
27686 #ifdef HAVE_SHADOW_H
27687 #include <shadow.h>
27688 #endif
27689 #ifdef F77_DUMMY_MAIN
27690 #  ifdef __cplusplus
27691      extern "C"
27692 #  endif
27693    int F77_DUMMY_MAIN() { return 1; }
27694 #endif
27695 int
27696 main ()
27697 {
27698 struct spwd foo;
27699   ;
27700   return 0;
27701 }
27702 _ACEOF
27703 rm -f conftest.$ac_objext
27704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27705   (eval $ac_compile) 2>&5
27706   ac_status=$?
27707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708   (exit $ac_status); } &&
27709          { ac_try='test -s conftest.$ac_objext'
27710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711   (eval $ac_try) 2>&5
27712   ac_status=$?
27713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714   (exit $ac_status); }; }; then
27715   ac_cv_struct_spwd=yes
27716 else
27717   echo "$as_me: failed program was:" >&5
27718 cat conftest.$ac_ext >&5
27719 ac_cv_struct_spwd=no
27720 fi
27721 rm -f conftest.$ac_objext conftest.$ac_ext
27722
27723 fi
27724
27725 echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
27726 echo "${ECHO_T}$ac_cv_struct_spwd" >&6
27727
27728 if test "$ac_cv_struct_spwd" = "yes"; then
27729
27730 cat >>confdefs.h <<\_ACEOF
27731 #define HAVE_STRUCT_SPWD 1
27732 _ACEOF
27733
27734 fi
27735
27736
27737
27738 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
27739
27740
27741 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
27742
27743
27744 # Check whether --enable-otp or --disable-otp was given.
27745 if test "${enable_otp+set}" = set; then
27746   enableval="$enable_otp"
27747
27748 fi;
27749 if test "$enable_otp" = yes -a "$db_type" = unknown; then
27750         { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
27751 echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
27752    { (exit 1); exit 1; }; }
27753 fi
27754 if test "$enable_otp" != no; then
27755         if test "$db_type" != unknown; then
27756                 enable_otp=yes
27757         else
27758                 enable_otp=no
27759         fi
27760 fi
27761 if test "$enable_otp" = yes; then
27762
27763 cat >>confdefs.h <<\_ACEOF
27764 #define OTP 1
27765 _ACEOF
27766
27767         LIB_otp='$(top_builddir)/lib/otp/libotp.la'
27768
27769 fi
27770 echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
27771 echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
27772 echo "$as_me:$LINENO: result: $enable_otp" >&5
27773 echo "${ECHO_T}$enable_otp" >&6
27774
27775
27776 if test "$enable_otp" = yes; then
27777   OTP_TRUE=
27778   OTP_FALSE='#'
27779 else
27780   OTP_TRUE='#'
27781   OTP_FALSE=
27782 fi
27783
27784
27785
27786 # Check whether --enable-osfc2 or --disable-osfc2 was given.
27787 if test "${enable_osfc2+set}" = set; then
27788   enableval="$enable_osfc2"
27789
27790 fi;
27791 LIB_security=
27792 if test "$enable_osfc2" = yes; then
27793
27794 cat >>confdefs.h <<\_ACEOF
27795 #define HAVE_OSFC2 1
27796 _ACEOF
27797
27798         LIB_security=-lsecurity
27799 fi
27800
27801
27802
27803 # Check whether --enable-mmap or --disable-mmap was given.
27804 if test "${enable_mmap+set}" = set; then
27805   enableval="$enable_mmap"
27806
27807 fi;
27808 if test "$enable_mmap" = "no"; then
27809
27810 cat >>confdefs.h <<\_ACEOF
27811 #define NO_MMAP 1
27812 _ACEOF
27813
27814 fi
27815
27816 # Extract the first word of "nroff", so it can be a program name with args.
27817 set dummy nroff; ac_word=$2
27818 echo "$as_me:$LINENO: checking for $ac_word" >&5
27819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27820 if test "${ac_cv_path_NROFF+set}" = set; then
27821   echo $ECHO_N "(cached) $ECHO_C" >&6
27822 else
27823   case $NROFF in
27824   [\\/]* | ?:[\\/]*)
27825   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27826   ;;
27827   *)
27828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27829 for as_dir in $PATH
27830 do
27831   IFS=$as_save_IFS
27832   test -z "$as_dir" && as_dir=.
27833   for ac_exec_ext in '' $ac_executable_extensions; do
27834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27835     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27837     break 2
27838   fi
27839 done
27840 done
27841
27842   ;;
27843 esac
27844 fi
27845 NROFF=$ac_cv_path_NROFF
27846
27847 if test -n "$NROFF"; then
27848   echo "$as_me:$LINENO: result: $NROFF" >&5
27849 echo "${ECHO_T}$NROFF" >&6
27850 else
27851   echo "$as_me:$LINENO: result: no" >&5
27852 echo "${ECHO_T}no" >&6
27853 fi
27854
27855 # Extract the first word of "groff", so it can be a program name with args.
27856 set dummy groff; ac_word=$2
27857 echo "$as_me:$LINENO: checking for $ac_word" >&5
27858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27859 if test "${ac_cv_path_GROFF+set}" = set; then
27860   echo $ECHO_N "(cached) $ECHO_C" >&6
27861 else
27862   case $GROFF in
27863   [\\/]* | ?:[\\/]*)
27864   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
27865   ;;
27866   *)
27867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27868 for as_dir in $PATH
27869 do
27870   IFS=$as_save_IFS
27871   test -z "$as_dir" && as_dir=.
27872   for ac_exec_ext in '' $ac_executable_extensions; do
27873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27874     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
27875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27876     break 2
27877   fi
27878 done
27879 done
27880
27881   ;;
27882 esac
27883 fi
27884 GROFF=$ac_cv_path_GROFF
27885
27886 if test -n "$GROFF"; then
27887   echo "$as_me:$LINENO: result: $GROFF" >&5
27888 echo "${ECHO_T}$GROFF" >&6
27889 else
27890   echo "$as_me:$LINENO: result: no" >&5
27891 echo "${ECHO_T}no" >&6
27892 fi
27893
27894 echo "$as_me:$LINENO: checking how to format man pages" >&5
27895 echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
27896 if test "${ac_cv_sys_man_format+set}" = set; then
27897   echo $ECHO_N "(cached) $ECHO_C" >&6
27898 else
27899   cat > conftest.1 << END
27900 .Dd January 1, 1970
27901 .Dt CONFTEST 1
27902 .Sh NAME
27903 .Nm conftest
27904 .Nd
27905 foobar
27906 END
27907
27908 if test "$NROFF" ; then
27909         for i in "-mdoc" "-mandoc"; do
27910                 if "$NROFF" $i conftest.1 2> /dev/null | \
27911                         grep Jan > /dev/null 2>&1 ; then
27912                         ac_cv_sys_man_format="$NROFF $i"
27913                         break
27914                 fi
27915         done
27916 fi
27917 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
27918         for i in "-mdoc" "-mandoc"; do
27919                 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
27920                         grep Jan > /dev/null 2>&1 ; then
27921                         ac_cv_sys_man_format="$GROFF -Tascii $i"
27922                         break
27923                 fi
27924         done
27925 fi
27926 if test "$ac_cv_sys_man_format"; then
27927         ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
27928 fi
27929
27930 fi
27931 echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
27932 echo "${ECHO_T}$ac_cv_sys_man_format" >&6
27933 if test "$ac_cv_sys_man_format"; then
27934         CATMAN="$ac_cv_sys_man_format"
27935
27936 fi
27937
27938
27939 if test "$CATMAN"; then
27940   CATMAN_TRUE=
27941   CATMAN_FALSE='#'
27942 else
27943   CATMAN_TRUE='#'
27944   CATMAN_FALSE=
27945 fi
27946
27947 echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
27948 echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
27949 if test "${ac_cv_sys_catman_ext+set}" = set; then
27950   echo $ECHO_N "(cached) $ECHO_C" >&6
27951 else
27952   if grep _suffix /etc/man.conf > /dev/null 2>&1; then
27953         ac_cv_sys_catman_ext=0
27954 else
27955         ac_cv_sys_catman_ext=number
27956 fi
27957
27958 fi
27959 echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
27960 echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
27961 if test "$ac_cv_sys_catman_ext" = number; then
27962         CATMANEXT='$$section'
27963 else
27964         CATMANEXT=0
27965 fi
27966
27967
27968
27969
27970
27971 # Check whether --with-readline or --without-readline was given.
27972 if test "${with_readline+set}" = set; then
27973   withval="$with_readline"
27974
27975 fi;
27976
27977 # Check whether --with-readline-lib or --without-readline-lib was given.
27978 if test "${with_readline_lib+set}" = set; then
27979   withval="$with_readline_lib"
27980   if test "$withval" = "yes" -o "$withval" = "no"; then
27981   { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
27982 echo "$as_me: error: No argument for --with-readline-lib" >&2;}
27983    { (exit 1); exit 1; }; }
27984 elif test "X$with_readline" = "X"; then
27985   with_readline=yes
27986 fi
27987 fi;
27988
27989 # Check whether --with-readline-include or --without-readline-include was given.
27990 if test "${with_readline_include+set}" = set; then
27991   withval="$with_readline_include"
27992   if test "$withval" = "yes" -o "$withval" = "no"; then
27993   { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
27994 echo "$as_me: error: No argument for --with-readline-include" >&2;}
27995    { (exit 1); exit 1; }; }
27996 elif test "X$with_readline" = "X"; then
27997   with_readline=yes
27998 fi
27999 fi;
28000
28001 # Check whether --with-readline-config or --without-readline-config was given.
28002 if test "${with_readline_config+set}" = set; then
28003   withval="$with_readline_config"
28004
28005 fi;
28006
28007
28008
28009 echo "$as_me:$LINENO: checking for readline" >&5
28010 echo $ECHO_N "checking for readline... $ECHO_C" >&6
28011
28012 case "$with_readline" in
28013 yes|"") d='' ;;
28014 no)     d= ;;
28015 *)      d="$with_readline" ;;
28016 esac
28017
28018 header_dirs=
28019 lib_dirs=
28020 for i in $d; do
28021         if test "$with_readline_include" = ""; then
28022                 if test -d "$i/include/readline"; then
28023                         header_dirs="$header_dirs $i/include/readline"
28024                 fi
28025                 if test -d "$i/include"; then
28026                         header_dirs="$header_dirs $i/include"
28027                 fi
28028         fi
28029         if test "$with_readline_lib" = ""; then
28030                 if test -d "$i/lib$abilibdirext"; then
28031                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
28032                 fi
28033         fi
28034 done
28035
28036 if test "$with_readline_include"; then
28037         header_dirs="$with_readline_include $header_dirs"
28038 fi
28039 if test "$with_readline_lib"; then
28040         lib_dirs="$with_readline_lib $lib_dirs"
28041 fi
28042
28043 if test "$with_readline_config" = ""; then
28044         with_readline_config=''
28045 fi
28046
28047 readline_cflags=
28048 readline_libs=
28049
28050 case "$with_readline_config" in
28051 yes|no|"")
28052         ;;
28053 *)
28054         readline_cflags="`$with_readline_config --cflags 2>&1`"
28055         readline_libs="`$with_readline_config --libs 2>&1`"
28056         ;;
28057 esac
28058
28059 found=no
28060 if test "$with_readline" != no; then
28061         save_CFLAGS="$CFLAGS"
28062         save_LIBS="$LIBS"
28063         if test "$readline_cflags" -a "$readline_libs"; then
28064                 CFLAGS="$readline_cflags $save_CFLAGS"
28065                 LIBS="$readline_libs $save_LIBS"
28066                 cat >conftest.$ac_ext <<_ACEOF
28067 #line $LINENO "configure"
28068 #include "confdefs.h"
28069 #include <stdio.h>
28070  #include <readline.h>
28071 #ifdef F77_DUMMY_MAIN
28072 #  ifdef __cplusplus
28073      extern "C"
28074 #  endif
28075    int F77_DUMMY_MAIN() { return 1; }
28076 #endif
28077 int
28078 main ()
28079 {
28080
28081   ;
28082   return 0;
28083 }
28084 _ACEOF
28085 rm -f conftest.$ac_objext conftest$ac_exeext
28086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28087   (eval $ac_link) 2>&5
28088   ac_status=$?
28089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090   (exit $ac_status); } &&
28091          { ac_try='test -s conftest$ac_exeext'
28092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28093   (eval $ac_try) 2>&5
28094   ac_status=$?
28095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096   (exit $ac_status); }; }; then
28097
28098                         INCLUDE_readline="$readline_cflags"
28099                         LIB_readline="$readline_libs"
28100                         echo "$as_me:$LINENO: result: from $with_readline_config" >&5
28101 echo "${ECHO_T}from $with_readline_config" >&6
28102                         found=yes
28103 else
28104   echo "$as_me: failed program was:" >&5
28105 cat conftest.$ac_ext >&5
28106 fi
28107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28108         fi
28109         if test "$found" = no; then
28110                 ires= lres=
28111                 for i in $header_dirs; do
28112                         CFLAGS="-I$i $save_CFLAGS"
28113                         cat >conftest.$ac_ext <<_ACEOF
28114 #line $LINENO "configure"
28115 #include "confdefs.h"
28116 #include <stdio.h>
28117  #include <readline.h>
28118 #ifdef F77_DUMMY_MAIN
28119 #  ifdef __cplusplus
28120      extern "C"
28121 #  endif
28122    int F77_DUMMY_MAIN() { return 1; }
28123 #endif
28124 int
28125 main ()
28126 {
28127
28128   ;
28129   return 0;
28130 }
28131 _ACEOF
28132 rm -f conftest.$ac_objext
28133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28134   (eval $ac_compile) 2>&5
28135   ac_status=$?
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); } &&
28138          { ac_try='test -s conftest.$ac_objext'
28139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140   (eval $ac_try) 2>&5
28141   ac_status=$?
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); }; }; then
28144   ires=$i;break
28145 else
28146   echo "$as_me: failed program was:" >&5
28147 cat conftest.$ac_ext >&5
28148 fi
28149 rm -f conftest.$ac_objext conftest.$ac_ext
28150                 done
28151                 for i in $lib_dirs; do
28152                         LIBS="-L$i -lreadline  $save_LIBS"
28153                         cat >conftest.$ac_ext <<_ACEOF
28154 #line $LINENO "configure"
28155 #include "confdefs.h"
28156 #include <stdio.h>
28157  #include <readline.h>
28158 #ifdef F77_DUMMY_MAIN
28159 #  ifdef __cplusplus
28160      extern "C"
28161 #  endif
28162    int F77_DUMMY_MAIN() { return 1; }
28163 #endif
28164 int
28165 main ()
28166 {
28167
28168   ;
28169   return 0;
28170 }
28171 _ACEOF
28172 rm -f conftest.$ac_objext conftest$ac_exeext
28173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28174   (eval $ac_link) 2>&5
28175   ac_status=$?
28176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177   (exit $ac_status); } &&
28178          { ac_try='test -s conftest$ac_exeext'
28179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180   (eval $ac_try) 2>&5
28181   ac_status=$?
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); }; }; then
28184   lres=$i;break
28185 else
28186   echo "$as_me: failed program was:" >&5
28187 cat conftest.$ac_ext >&5
28188 fi
28189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28190                 done
28191                 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
28192                         INCLUDE_readline="-I$ires"
28193                         LIB_readline="-L$lres -lreadline "
28194                         found=yes
28195                         echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
28196 echo "${ECHO_T}headers $ires, libraries $lres" >&6
28197                 fi
28198         fi
28199         CFLAGS="$save_CFLAGS"
28200         LIBS="$save_LIBS"
28201 fi
28202
28203 if test "$found" = yes; then
28204
28205 cat >>confdefs.h <<_ACEOF
28206 #define READLINE 1
28207 _ACEOF
28208
28209         with_readline=yes
28210 else
28211         with_readline=no
28212         INCLUDE_readline=
28213         LIB_readline=
28214         echo "$as_me:$LINENO: result: no" >&5
28215 echo "${ECHO_T}no" >&6
28216 fi
28217
28218
28219
28220
28221
28222
28223
28224 # Check whether --with-hesiod or --without-hesiod was given.
28225 if test "${with_hesiod+set}" = set; then
28226   withval="$with_hesiod"
28227
28228 fi;
28229
28230 # Check whether --with-hesiod-lib or --without-hesiod-lib was given.
28231 if test "${with_hesiod_lib+set}" = set; then
28232   withval="$with_hesiod_lib"
28233   if test "$withval" = "yes" -o "$withval" = "no"; then
28234   { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
28235 echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
28236    { (exit 1); exit 1; }; }
28237 elif test "X$with_hesiod" = "X"; then
28238   with_hesiod=yes
28239 fi
28240 fi;
28241
28242 # Check whether --with-hesiod-include or --without-hesiod-include was given.
28243 if test "${with_hesiod_include+set}" = set; then
28244   withval="$with_hesiod_include"
28245   if test "$withval" = "yes" -o "$withval" = "no"; then
28246   { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
28247 echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
28248    { (exit 1); exit 1; }; }
28249 elif test "X$with_hesiod" = "X"; then
28250   with_hesiod=yes
28251 fi
28252 fi;
28253
28254 # Check whether --with-hesiod-config or --without-hesiod-config was given.
28255 if test "${with_hesiod_config+set}" = set; then
28256   withval="$with_hesiod_config"
28257
28258 fi;
28259
28260
28261
28262 echo "$as_me:$LINENO: checking for hesiod" >&5
28263 echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
28264
28265 case "$with_hesiod" in
28266 yes|"") d='' ;;
28267 no)     d= ;;
28268 *)      d="$with_hesiod" ;;
28269 esac
28270
28271 header_dirs=
28272 lib_dirs=
28273 for i in $d; do
28274         if test "$with_hesiod_include" = ""; then
28275                 if test -d "$i/include/hesiod"; then
28276                         header_dirs="$header_dirs $i/include/hesiod"
28277                 fi
28278                 if test -d "$i/include"; then
28279                         header_dirs="$header_dirs $i/include"
28280                 fi
28281         fi
28282         if test "$with_hesiod_lib" = ""; then
28283                 if test -d "$i/lib$abilibdirext"; then
28284                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
28285                 fi
28286         fi
28287 done
28288
28289 if test "$with_hesiod_include"; then
28290         header_dirs="$with_hesiod_include $header_dirs"
28291 fi
28292 if test "$with_hesiod_lib"; then
28293         lib_dirs="$with_hesiod_lib $lib_dirs"
28294 fi
28295
28296 if test "$with_hesiod_config" = ""; then
28297         with_hesiod_config=''
28298 fi
28299
28300 hesiod_cflags=
28301 hesiod_libs=
28302
28303 case "$with_hesiod_config" in
28304 yes|no|"")
28305         ;;
28306 *)
28307         hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
28308         hesiod_libs="`$with_hesiod_config --libs 2>&1`"
28309         ;;
28310 esac
28311
28312 found=no
28313 if test "$with_hesiod" != no; then
28314         save_CFLAGS="$CFLAGS"
28315         save_LIBS="$LIBS"
28316         if test "$hesiod_cflags" -a "$hesiod_libs"; then
28317                 CFLAGS="$hesiod_cflags $save_CFLAGS"
28318                 LIBS="$hesiod_libs $save_LIBS"
28319                 cat >conftest.$ac_ext <<_ACEOF
28320 #line $LINENO "configure"
28321 #include "confdefs.h"
28322 #include <hesiod.h>
28323 #ifdef F77_DUMMY_MAIN
28324 #  ifdef __cplusplus
28325      extern "C"
28326 #  endif
28327    int F77_DUMMY_MAIN() { return 1; }
28328 #endif
28329 int
28330 main ()
28331 {
28332
28333   ;
28334   return 0;
28335 }
28336 _ACEOF
28337 rm -f conftest.$ac_objext conftest$ac_exeext
28338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28339   (eval $ac_link) 2>&5
28340   ac_status=$?
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); } &&
28343          { ac_try='test -s conftest$ac_exeext'
28344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345   (eval $ac_try) 2>&5
28346   ac_status=$?
28347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348   (exit $ac_status); }; }; then
28349
28350                         INCLUDE_hesiod="$hesiod_cflags"
28351                         LIB_hesiod="$hesiod_libs"
28352                         echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
28353 echo "${ECHO_T}from $with_hesiod_config" >&6
28354                         found=yes
28355 else
28356   echo "$as_me: failed program was:" >&5
28357 cat conftest.$ac_ext >&5
28358 fi
28359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28360         fi
28361         if test "$found" = no; then
28362                 ires= lres=
28363                 for i in $header_dirs; do
28364                         CFLAGS="-I$i $save_CFLAGS"
28365                         cat >conftest.$ac_ext <<_ACEOF
28366 #line $LINENO "configure"
28367 #include "confdefs.h"
28368 #include <hesiod.h>
28369 #ifdef F77_DUMMY_MAIN
28370 #  ifdef __cplusplus
28371      extern "C"
28372 #  endif
28373    int F77_DUMMY_MAIN() { return 1; }
28374 #endif
28375 int
28376 main ()
28377 {
28378
28379   ;
28380   return 0;
28381 }
28382 _ACEOF
28383 rm -f conftest.$ac_objext
28384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28385   (eval $ac_compile) 2>&5
28386   ac_status=$?
28387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388   (exit $ac_status); } &&
28389          { ac_try='test -s conftest.$ac_objext'
28390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391   (eval $ac_try) 2>&5
28392   ac_status=$?
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); }; }; then
28395   ires=$i;break
28396 else
28397   echo "$as_me: failed program was:" >&5
28398 cat conftest.$ac_ext >&5
28399 fi
28400 rm -f conftest.$ac_objext conftest.$ac_ext
28401                 done
28402                 for i in $lib_dirs; do
28403                         LIBS="-L$i -lhesiod  $save_LIBS"
28404                         cat >conftest.$ac_ext <<_ACEOF
28405 #line $LINENO "configure"
28406 #include "confdefs.h"
28407 #include <hesiod.h>
28408 #ifdef F77_DUMMY_MAIN
28409 #  ifdef __cplusplus
28410      extern "C"
28411 #  endif
28412    int F77_DUMMY_MAIN() { return 1; }
28413 #endif
28414 int
28415 main ()
28416 {
28417
28418   ;
28419   return 0;
28420 }
28421 _ACEOF
28422 rm -f conftest.$ac_objext conftest$ac_exeext
28423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28424   (eval $ac_link) 2>&5
28425   ac_status=$?
28426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427   (exit $ac_status); } &&
28428          { ac_try='test -s conftest$ac_exeext'
28429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430   (eval $ac_try) 2>&5
28431   ac_status=$?
28432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433   (exit $ac_status); }; }; then
28434   lres=$i;break
28435 else
28436   echo "$as_me: failed program was:" >&5
28437 cat conftest.$ac_ext >&5
28438 fi
28439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28440                 done
28441                 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
28442                         INCLUDE_hesiod="-I$ires"
28443                         LIB_hesiod="-L$lres -lhesiod "
28444                         found=yes
28445                         echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
28446 echo "${ECHO_T}headers $ires, libraries $lres" >&6
28447                 fi
28448         fi
28449         CFLAGS="$save_CFLAGS"
28450         LIBS="$save_LIBS"
28451 fi
28452
28453 if test "$found" = yes; then
28454
28455 cat >>confdefs.h <<_ACEOF
28456 #define HESIOD 1
28457 _ACEOF
28458
28459         with_hesiod=yes
28460 else
28461         with_hesiod=no
28462         INCLUDE_hesiod=
28463         LIB_hesiod=
28464         echo "$as_me:$LINENO: result: no" >&5
28465 echo "${ECHO_T}no" >&6
28466 fi
28467
28468
28469
28470
28471
28472
28473 # Check whether --enable-bigendian or --disable-bigendian was given.
28474 if test "${enable_bigendian+set}" = set; then
28475   enableval="$enable_bigendian"
28476   krb_cv_c_bigendian=yes
28477 fi;
28478 # Check whether --enable-littleendian or --disable-littleendian was given.
28479 if test "${enable_littleendian+set}" = set; then
28480   enableval="$enable_littleendian"
28481   krb_cv_c_bigendian=no
28482 fi;
28483 echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
28484 echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
28485 if test "${krb_cv_c_bigendian_compile+set}" = set; then
28486   echo $ECHO_N "(cached) $ECHO_C" >&6
28487 else
28488   cat >conftest.$ac_ext <<_ACEOF
28489 #line $LINENO "configure"
28490 #include "confdefs.h"
28491
28492 #include <sys/types.h>
28493 #include <sys/param.h>
28494 #ifdef F77_DUMMY_MAIN
28495 #  ifdef __cplusplus
28496      extern "C"
28497 #  endif
28498    int F77_DUMMY_MAIN() { return 1; }
28499 #endif
28500 int
28501 main ()
28502 {
28503
28504 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
28505  bogus endian macros
28506 #endif
28507   ;
28508   return 0;
28509 }
28510 _ACEOF
28511 rm -f conftest.$ac_objext
28512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28513   (eval $ac_compile) 2>&5
28514   ac_status=$?
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); } &&
28517          { ac_try='test -s conftest.$ac_objext'
28518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28519   (eval $ac_try) 2>&5
28520   ac_status=$?
28521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522   (exit $ac_status); }; }; then
28523   krb_cv_c_bigendian_compile=yes
28524 else
28525   echo "$as_me: failed program was:" >&5
28526 cat conftest.$ac_ext >&5
28527 krb_cv_c_bigendian_compile=no
28528 fi
28529 rm -f conftest.$ac_objext conftest.$ac_ext
28530 fi
28531 echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
28532 echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
28533 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28534 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
28535 if test "${krb_cv_c_bigendian+set}" = set; then
28536   echo $ECHO_N "(cached) $ECHO_C" >&6
28537 else
28538
28539   if test "$krb_cv_c_bigendian_compile" = "yes"; then
28540     cat >conftest.$ac_ext <<_ACEOF
28541 #line $LINENO "configure"
28542 #include "confdefs.h"
28543
28544 #include <sys/types.h>
28545 #include <sys/param.h>
28546 #ifdef F77_DUMMY_MAIN
28547 #  ifdef __cplusplus
28548      extern "C"
28549 #  endif
28550    int F77_DUMMY_MAIN() { return 1; }
28551 #endif
28552 int
28553 main ()
28554 {
28555
28556 #if BYTE_ORDER != BIG_ENDIAN
28557   not big endian
28558 #endif
28559   ;
28560   return 0;
28561 }
28562 _ACEOF
28563 rm -f conftest.$ac_objext
28564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28565   (eval $ac_compile) 2>&5
28566   ac_status=$?
28567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568   (exit $ac_status); } &&
28569          { ac_try='test -s conftest.$ac_objext'
28570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28571   (eval $ac_try) 2>&5
28572   ac_status=$?
28573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574   (exit $ac_status); }; }; then
28575   krb_cv_c_bigendian=yes
28576 else
28577   echo "$as_me: failed program was:" >&5
28578 cat conftest.$ac_ext >&5
28579 krb_cv_c_bigendian=no
28580 fi
28581 rm -f conftest.$ac_objext conftest.$ac_ext
28582   else
28583     if test "$cross_compiling" = yes; then
28584   { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
28585 echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
28586    { (exit 1); exit 1; }; }
28587 else
28588   cat >conftest.$ac_ext <<_ACEOF
28589 #line $LINENO "configure"
28590 #include "confdefs.h"
28591 main () {
28592       /* Are we little or big endian?  From Harbison&Steele.  */
28593       union
28594       {
28595         long l;
28596         char c[sizeof (long)];
28597     } u;
28598     u.l = 1;
28599     exit (u.c[sizeof (long) - 1] == 1);
28600   }
28601 _ACEOF
28602 rm -f conftest$ac_exeext
28603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28604   (eval $ac_link) 2>&5
28605   ac_status=$?
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609   (eval $ac_try) 2>&5
28610   ac_status=$?
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); }; }; then
28613   krb_cv_c_bigendian=no
28614 else
28615   echo "$as_me: program exited with status $ac_status" >&5
28616 echo "$as_me: failed program was:" >&5
28617 cat conftest.$ac_ext >&5
28618 ( exit $ac_status )
28619 krb_cv_c_bigendian=yes
28620 fi
28621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28622 fi
28623   fi
28624
28625 fi
28626 echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
28627 echo "${ECHO_T}$krb_cv_c_bigendian" >&6
28628 if test "$krb_cv_c_bigendian" = "yes"; then
28629
28630 cat >>confdefs.h <<\_ACEOF
28631 #define WORDS_BIGENDIAN 1
28632 _ACEOF
28633 fi
28634 if test "$krb_cv_c_bigendian_compile" = "yes"; then
28635
28636 cat >>confdefs.h <<\_ACEOF
28637 #define ENDIANESS_IN_SYS_PARAM_H 1
28638 _ACEOF
28639 fi
28640
28641
28642
28643 echo "$as_me:$LINENO: checking for inline" >&5
28644 echo $ECHO_N "checking for inline... $ECHO_C" >&6
28645 if test "${ac_cv_c_inline+set}" = set; then
28646   echo $ECHO_N "(cached) $ECHO_C" >&6
28647 else
28648   ac_cv_c_inline=no
28649 for ac_kw in inline __inline__ __inline; do
28650   cat >conftest.$ac_ext <<_ACEOF
28651 #line $LINENO "configure"
28652 #include "confdefs.h"
28653 #ifndef __cplusplus
28654 static $ac_kw int static_foo () {return 0; }
28655 $ac_kw int foo () {return 0; }
28656 #endif
28657
28658 _ACEOF
28659 rm -f conftest.$ac_objext
28660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28661   (eval $ac_compile) 2>&5
28662   ac_status=$?
28663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664   (exit $ac_status); } &&
28665          { ac_try='test -s conftest.$ac_objext'
28666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667   (eval $ac_try) 2>&5
28668   ac_status=$?
28669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670   (exit $ac_status); }; }; then
28671   ac_cv_c_inline=$ac_kw; break
28672 else
28673   echo "$as_me: failed program was:" >&5
28674 cat conftest.$ac_ext >&5
28675 fi
28676 rm -f conftest.$ac_objext conftest.$ac_ext
28677 done
28678
28679 fi
28680 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
28681 echo "${ECHO_T}$ac_cv_c_inline" >&6
28682 case $ac_cv_c_inline in
28683   inline | yes) ;;
28684   no)
28685 cat >>confdefs.h <<\_ACEOF
28686 #define inline
28687 _ACEOF
28688  ;;
28689   *)  cat >>confdefs.h <<_ACEOF
28690 #define inline $ac_cv_c_inline
28691 _ACEOF
28692  ;;
28693 esac
28694
28695
28696
28697
28698
28699
28700 echo "$as_me:$LINENO: checking for dlopen" >&5
28701 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
28702 if test "${ac_cv_funclib_dlopen+set}" = set; then
28703   echo $ECHO_N "(cached) $ECHO_C" >&6
28704 else
28705
28706 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
28707         ac_save_LIBS="$LIBS"
28708         for ac_lib in "" dl; do
28709                 case "$ac_lib" in
28710                 "") ;;
28711                 yes) ac_lib="" ;;
28712                 no) continue ;;
28713                 -l*) ;;
28714                 *) ac_lib="-l$ac_lib" ;;
28715                 esac
28716                 LIBS=" $ac_lib  $ac_save_LIBS"
28717                 cat >conftest.$ac_ext <<_ACEOF
28718 #line $LINENO "configure"
28719 #include "confdefs.h"
28720
28721 #ifdef F77_DUMMY_MAIN
28722 #  ifdef __cplusplus
28723      extern "C"
28724 #  endif
28725    int F77_DUMMY_MAIN() { return 1; }
28726 #endif
28727 int
28728 main ()
28729 {
28730 dlopen()
28731   ;
28732   return 0;
28733 }
28734 _ACEOF
28735 rm -f conftest.$ac_objext conftest$ac_exeext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737   (eval $ac_link) 2>&5
28738   ac_status=$?
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); } &&
28741          { ac_try='test -s conftest$ac_exeext'
28742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743   (eval $ac_try) 2>&5
28744   ac_status=$?
28745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746   (exit $ac_status); }; }; then
28747   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
28748 else
28749   echo "$as_me: failed program was:" >&5
28750 cat conftest.$ac_ext >&5
28751 fi
28752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28753         done
28754         eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
28755         LIBS="$ac_save_LIBS"
28756 fi
28757
28758 fi
28759
28760
28761 eval "ac_res=\$ac_cv_funclib_dlopen"
28762
28763 if false; then
28764
28765 for ac_func in dlopen
28766 do
28767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28768 echo "$as_me:$LINENO: checking for $ac_func" >&5
28769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28770 if eval "test \"\${$as_ac_var+set}\" = set"; then
28771   echo $ECHO_N "(cached) $ECHO_C" >&6
28772 else
28773   cat >conftest.$ac_ext <<_ACEOF
28774 #line $LINENO "configure"
28775 #include "confdefs.h"
28776 /* System header to define __stub macros and hopefully few prototypes,
28777     which can conflict with char $ac_func (); below.  */
28778 #include <assert.h>
28779 /* Override any gcc2 internal prototype to avoid an error.  */
28780 #ifdef __cplusplus
28781 extern "C"
28782 #endif
28783 /* We use char because int might match the return type of a gcc2
28784    builtin and then its argument prototype would still apply.  */
28785 char $ac_func ();
28786 char (*f) ();
28787
28788 #ifdef F77_DUMMY_MAIN
28789 #  ifdef __cplusplus
28790      extern "C"
28791 #  endif
28792    int F77_DUMMY_MAIN() { return 1; }
28793 #endif
28794 int
28795 main ()
28796 {
28797 /* The GNU C library defines this for functions which it implements
28798     to always fail with ENOSYS.  Some functions are actually named
28799     something starting with __ and the normal name is an alias.  */
28800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28801 choke me
28802 #else
28803 f = $ac_func;
28804 #endif
28805
28806   ;
28807   return 0;
28808 }
28809 _ACEOF
28810 rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28812   (eval $ac_link) 2>&5
28813   ac_status=$?
28814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815   (exit $ac_status); } &&
28816          { ac_try='test -s conftest$ac_exeext'
28817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818   (eval $ac_try) 2>&5
28819   ac_status=$?
28820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821   (exit $ac_status); }; }; then
28822   eval "$as_ac_var=yes"
28823 else
28824   echo "$as_me: failed program was:" >&5
28825 cat conftest.$ac_ext >&5
28826 eval "$as_ac_var=no"
28827 fi
28828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28829 fi
28830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28832 if test `eval echo '${'$as_ac_var'}'` = yes; then
28833   cat >>confdefs.h <<_ACEOF
28834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28835 _ACEOF
28836
28837 fi
28838 done
28839
28840 fi
28841 # dlopen
28842 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28843 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28844 eval "LIB_dlopen=$ac_res"
28845
28846 case "$ac_res" in
28847         yes)
28848         eval "ac_cv_func_dlopen=yes"
28849         eval "LIB_dlopen="
28850         cat >>confdefs.h <<_ACEOF
28851 #define $ac_tr_func 1
28852 _ACEOF
28853
28854         echo "$as_me:$LINENO: result: yes" >&5
28855 echo "${ECHO_T}yes" >&6
28856         ;;
28857         no)
28858         eval "ac_cv_func_dlopen=no"
28859         eval "LIB_dlopen="
28860         echo "$as_me:$LINENO: result: no" >&5
28861 echo "${ECHO_T}no" >&6
28862         ;;
28863         *)
28864         eval "ac_cv_func_dlopen=yes"
28865         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28866         cat >>confdefs.h <<_ACEOF
28867 #define $ac_tr_func 1
28868 _ACEOF
28869
28870         cat >>confdefs.h <<_ACEOF
28871 #define $ac_tr_lib 1
28872 _ACEOF
28873
28874         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28875 echo "${ECHO_T}yes, in $ac_res" >&6
28876         ;;
28877 esac
28878
28879
28880
28881
28882 if test "$ac_cv_funclib_dlopen" != no; then
28883   HAVE_DLOPEN_TRUE=
28884   HAVE_DLOPEN_FALSE='#'
28885 else
28886   HAVE_DLOPEN_TRUE='#'
28887   HAVE_DLOPEN_FALSE=
28888 fi
28889
28890
28891
28892
28893 aix=no
28894 case "$host" in
28895 *-*-aix3*)
28896         aix=3
28897         ;;
28898 *-*-aix4*|*-*-aix5*)
28899         aix=4
28900         ;;
28901 esac
28902
28903
28904
28905 if test "$aix" != no; then
28906   AIX_TRUE=
28907   AIX_FALSE='#'
28908 else
28909   AIX_TRUE='#'
28910   AIX_FALSE=
28911 fi
28912
28913
28914 if test "$aix" = 4; then
28915   AIX4_TRUE=
28916   AIX4_FALSE='#'
28917 else
28918   AIX4_TRUE='#'
28919   AIX4_FALSE=
28920 fi
28921
28922
28923
28924 # Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
28925 if test "${enable_dynamic_afs+set}" = set; then
28926   enableval="$enable_dynamic_afs"
28927
28928 fi;
28929
28930 if test "$aix" != no; then
28931         if test "$enable_dynamic_afs" != no; then
28932
28933                 if test "$ac_cv_func_dlopen" = no; then
28934
28935
28936
28937 echo "$as_me:$LINENO: checking for loadquery" >&5
28938 echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
28939 if test "${ac_cv_funclib_loadquery+set}" = set; then
28940   echo $ECHO_N "(cached) $ECHO_C" >&6
28941 else
28942
28943 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
28944         ac_save_LIBS="$LIBS"
28945         for ac_lib in "" ld; do
28946                 case "$ac_lib" in
28947                 "") ;;
28948                 yes) ac_lib="" ;;
28949                 no) continue ;;
28950                 -l*) ;;
28951                 *) ac_lib="-l$ac_lib" ;;
28952                 esac
28953                 LIBS=" $ac_lib  $ac_save_LIBS"
28954                 cat >conftest.$ac_ext <<_ACEOF
28955 #line $LINENO "configure"
28956 #include "confdefs.h"
28957
28958 #ifdef F77_DUMMY_MAIN
28959 #  ifdef __cplusplus
28960      extern "C"
28961 #  endif
28962    int F77_DUMMY_MAIN() { return 1; }
28963 #endif
28964 int
28965 main ()
28966 {
28967 loadquery()
28968   ;
28969   return 0;
28970 }
28971 _ACEOF
28972 rm -f conftest.$ac_objext conftest$ac_exeext
28973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28974   (eval $ac_link) 2>&5
28975   ac_status=$?
28976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); } &&
28978          { ac_try='test -s conftest$ac_exeext'
28979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28980   (eval $ac_try) 2>&5
28981   ac_status=$?
28982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983   (exit $ac_status); }; }; then
28984   eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
28985 else
28986   echo "$as_me: failed program was:" >&5
28987 cat conftest.$ac_ext >&5
28988 fi
28989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28990         done
28991         eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
28992         LIBS="$ac_save_LIBS"
28993 fi
28994
28995 fi
28996
28997
28998 eval "ac_res=\$ac_cv_funclib_loadquery"
28999
29000 if false; then
29001
29002 for ac_func in loadquery
29003 do
29004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29005 echo "$as_me:$LINENO: checking for $ac_func" >&5
29006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29007 if eval "test \"\${$as_ac_var+set}\" = set"; then
29008   echo $ECHO_N "(cached) $ECHO_C" >&6
29009 else
29010   cat >conftest.$ac_ext <<_ACEOF
29011 #line $LINENO "configure"
29012 #include "confdefs.h"
29013 /* System header to define __stub macros and hopefully few prototypes,
29014     which can conflict with char $ac_func (); below.  */
29015 #include <assert.h>
29016 /* Override any gcc2 internal prototype to avoid an error.  */
29017 #ifdef __cplusplus
29018 extern "C"
29019 #endif
29020 /* We use char because int might match the return type of a gcc2
29021    builtin and then its argument prototype would still apply.  */
29022 char $ac_func ();
29023 char (*f) ();
29024
29025 #ifdef F77_DUMMY_MAIN
29026 #  ifdef __cplusplus
29027      extern "C"
29028 #  endif
29029    int F77_DUMMY_MAIN() { return 1; }
29030 #endif
29031 int
29032 main ()
29033 {
29034 /* The GNU C library defines this for functions which it implements
29035     to always fail with ENOSYS.  Some functions are actually named
29036     something starting with __ and the normal name is an alias.  */
29037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29038 choke me
29039 #else
29040 f = $ac_func;
29041 #endif
29042
29043   ;
29044   return 0;
29045 }
29046 _ACEOF
29047 rm -f conftest.$ac_objext conftest$ac_exeext
29048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29049   (eval $ac_link) 2>&5
29050   ac_status=$?
29051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052   (exit $ac_status); } &&
29053          { ac_try='test -s conftest$ac_exeext'
29054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055   (eval $ac_try) 2>&5
29056   ac_status=$?
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); }; }; then
29059   eval "$as_ac_var=yes"
29060 else
29061   echo "$as_me: failed program was:" >&5
29062 cat conftest.$ac_ext >&5
29063 eval "$as_ac_var=no"
29064 fi
29065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29066 fi
29067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29069 if test `eval echo '${'$as_ac_var'}'` = yes; then
29070   cat >>confdefs.h <<_ACEOF
29071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29072 _ACEOF
29073
29074 fi
29075 done
29076
29077 fi
29078 # loadquery
29079 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29080 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29081 eval "LIB_loadquery=$ac_res"
29082
29083 case "$ac_res" in
29084         yes)
29085         eval "ac_cv_func_loadquery=yes"
29086         eval "LIB_loadquery="
29087         cat >>confdefs.h <<_ACEOF
29088 #define $ac_tr_func 1
29089 _ACEOF
29090
29091         echo "$as_me:$LINENO: result: yes" >&5
29092 echo "${ECHO_T}yes" >&6
29093         ;;
29094         no)
29095         eval "ac_cv_func_loadquery=no"
29096         eval "LIB_loadquery="
29097         echo "$as_me:$LINENO: result: no" >&5
29098 echo "${ECHO_T}no" >&6
29099         ;;
29100         *)
29101         eval "ac_cv_func_loadquery=yes"
29102         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29103         cat >>confdefs.h <<_ACEOF
29104 #define $ac_tr_func 1
29105 _ACEOF
29106
29107         cat >>confdefs.h <<_ACEOF
29108 #define $ac_tr_lib 1
29109 _ACEOF
29110
29111         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29112 echo "${ECHO_T}yes, in $ac_res" >&6
29113         ;;
29114 esac
29115
29116
29117                 fi
29118                 if test "$ac_cv_func_dlopen" != no; then
29119                         AIX_EXTRA_KAFS='$(LIB_dlopen)'
29120                 elif test "$ac_cv_func_loadquery" != no; then
29121                         AIX_EXTRA_KAFS='$(LIB_loadquery)'
29122                 else
29123                         { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
29124 echo "$as_me: not using dynloaded AFS library" >&6;}
29125                         AIX_EXTRA_KAFS=
29126                         enable_dynamic_afs=no
29127                 fi
29128         else
29129                 AIX_EXTRA_KAFS=
29130         fi
29131 fi
29132
29133
29134
29135 if test "$enable_dynamic_afs" != no; then
29136   AIX_DYNAMIC_AFS_TRUE=
29137   AIX_DYNAMIC_AFS_FALSE='#'
29138 else
29139   AIX_DYNAMIC_AFS_TRUE='#'
29140   AIX_DYNAMIC_AFS_FALSE=
29141 fi
29142
29143
29144
29145
29146
29147
29148 irix=no
29149 case "$host" in
29150 *-*-irix4*)
29151
29152 cat >>confdefs.h <<\_ACEOF
29153 #define IRIX4 1
29154 _ACEOF
29155
29156         irix=yes
29157         ;;
29158 *-*-irix*)
29159         irix=yes
29160         ;;
29161 esac
29162
29163
29164 if test "$irix" != no; then
29165   IRIX_TRUE=
29166   IRIX_FALSE='#'
29167 else
29168   IRIX_TRUE='#'
29169   IRIX_FALSE=
29170 fi
29171
29172
29173
29174
29175
29176 sunos=no
29177 case "$host" in
29178 *-*-sunos4*)
29179         sunos=40
29180         ;;
29181 *-*-solaris2.7)
29182         sunos=57
29183         ;;
29184 *-*-solaris2.[89])
29185         sunos=58
29186         ;;
29187 *-*-solaris2*)
29188         sunos=50
29189         ;;
29190 esac
29191 if test "$sunos" != no; then
29192
29193 cat >>confdefs.h <<_ACEOF
29194 #define SunOS $sunos
29195 _ACEOF
29196
29197 fi
29198
29199
29200 echo "$as_me:$LINENO: checking for X" >&5
29201 echo $ECHO_N "checking for X... $ECHO_C" >&6
29202
29203
29204 # Check whether --with-x or --without-x was given.
29205 if test "${with_x+set}" = set; then
29206   withval="$with_x"
29207
29208 fi;
29209 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29210 if test "x$with_x" = xno; then
29211   # The user explicitly disabled X.
29212   have_x=disabled
29213 else
29214   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29215     # Both variables are already set.
29216     have_x=yes
29217   else
29218     if test "${ac_cv_have_x+set}" = set; then
29219   echo $ECHO_N "(cached) $ECHO_C" >&6
29220 else
29221   # One or both of the vars are not set, and there is no cached value.
29222 ac_x_includes=no ac_x_libraries=no
29223 rm -fr conftest.dir
29224 if mkdir conftest.dir; then
29225   cd conftest.dir
29226   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29227   cat >Imakefile <<'_ACEOF'
29228 acfindx:
29229         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29230 _ACEOF
29231   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29232     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29233     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29234     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29235     for ac_extension in a so sl; do
29236       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29237          test -f $ac_im_libdir/libX11.$ac_extension; then
29238         ac_im_usrlibdir=$ac_im_libdir; break
29239       fi
29240     done
29241     # Screen out bogus values from the imake configuration.  They are
29242     # bogus both because they are the default anyway, and because
29243     # using them would break gcc on systems where it needs fixed includes.
29244     case $ac_im_incroot in
29245         /usr/include) ;;
29246         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29247     esac
29248     case $ac_im_usrlibdir in
29249         /usr/lib | /lib) ;;
29250         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29251     esac
29252   fi
29253   cd ..
29254   rm -fr conftest.dir
29255 fi
29256
29257 # Standard set of common directories for X headers.
29258 # Check X11 before X11Rn because it is often a symlink to the current release.
29259 ac_x_header_dirs='
29260 /usr/X11/include
29261 /usr/X11R6/include
29262 /usr/X11R5/include
29263 /usr/X11R4/include
29264
29265 /usr/include/X11
29266 /usr/include/X11R6
29267 /usr/include/X11R5
29268 /usr/include/X11R4
29269
29270 /usr/local/X11/include
29271 /usr/local/X11R6/include
29272 /usr/local/X11R5/include
29273 /usr/local/X11R4/include
29274
29275 /usr/local/include/X11
29276 /usr/local/include/X11R6
29277 /usr/local/include/X11R5
29278 /usr/local/include/X11R4
29279
29280 /usr/X386/include
29281 /usr/x386/include
29282 /usr/XFree86/include/X11
29283
29284 /usr/include
29285 /usr/local/include
29286 /usr/unsupported/include
29287 /usr/athena/include
29288 /usr/local/x11r5/include
29289 /usr/lpp/Xamples/include
29290
29291 /usr/openwin/include
29292 /usr/openwin/share/include'
29293
29294 if test "$ac_x_includes" = no; then
29295   # Guess where to find include files, by looking for Intrinsic.h.
29296   # First, try using that file with no special directory specified.
29297   cat >conftest.$ac_ext <<_ACEOF
29298 #line $LINENO "configure"
29299 #include "confdefs.h"
29300 #include <X11/Intrinsic.h>
29301 _ACEOF
29302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29304   ac_status=$?
29305   egrep -v '^ *\+' conftest.er1 >conftest.err
29306   rm -f conftest.er1
29307   cat conftest.err >&5
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); } >/dev/null; then
29310   if test -s conftest.err; then
29311     ac_cpp_err=$ac_c_preproc_warn_flag
29312   else
29313     ac_cpp_err=
29314   fi
29315 else
29316   ac_cpp_err=yes
29317 fi
29318 if test -z "$ac_cpp_err"; then
29319   # We can compile using X headers with no special include directory.
29320 ac_x_includes=
29321 else
29322   echo "$as_me: failed program was:" >&5
29323   cat conftest.$ac_ext >&5
29324   for ac_dir in $ac_x_header_dirs; do
29325   if test -r "$ac_dir/X11/Intrinsic.h"; then
29326     ac_x_includes=$ac_dir
29327     break
29328   fi
29329 done
29330 fi
29331 rm -f conftest.err conftest.$ac_ext
29332 fi # $ac_x_includes = no
29333
29334 if test "$ac_x_libraries" = no; then
29335   # Check for the libraries.
29336   # See if we find them without any special options.
29337   # Don't add to $LIBS permanently.
29338   ac_save_LIBS=$LIBS
29339   LIBS="-lXt $LIBS"
29340   cat >conftest.$ac_ext <<_ACEOF
29341 #line $LINENO "configure"
29342 #include "confdefs.h"
29343 #include <X11/Intrinsic.h>
29344 #ifdef F77_DUMMY_MAIN
29345 #  ifdef __cplusplus
29346      extern "C"
29347 #  endif
29348    int F77_DUMMY_MAIN() { return 1; }
29349 #endif
29350 int
29351 main ()
29352 {
29353 XtMalloc (0)
29354   ;
29355   return 0;
29356 }
29357 _ACEOF
29358 rm -f conftest.$ac_objext conftest$ac_exeext
29359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29360   (eval $ac_link) 2>&5
29361   ac_status=$?
29362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363   (exit $ac_status); } &&
29364          { ac_try='test -s conftest$ac_exeext'
29365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29366   (eval $ac_try) 2>&5
29367   ac_status=$?
29368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369   (exit $ac_status); }; }; then
29370   LIBS=$ac_save_LIBS
29371 # We can link X programs with no special library path.
29372 ac_x_libraries=
29373 else
29374   echo "$as_me: failed program was:" >&5
29375 cat conftest.$ac_ext >&5
29376 LIBS=$ac_save_LIBS
29377 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29378 do
29379   # Don't even attempt the hair of trying to link an X program!
29380   for ac_extension in a so sl; do
29381     if test -r $ac_dir/libXt.$ac_extension; then
29382       ac_x_libraries=$ac_dir
29383       break 2
29384     fi
29385   done
29386 done
29387 fi
29388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29389 fi # $ac_x_libraries = no
29390
29391 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29392   # Didn't find X anywhere.  Cache the known absence of X.
29393   ac_cv_have_x="have_x=no"
29394 else
29395   # Record where we found X for the cache.
29396   ac_cv_have_x="have_x=yes \
29397                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29398 fi
29399 fi
29400
29401   fi
29402   eval "$ac_cv_have_x"
29403 fi # $with_x != no
29404
29405 if test "$have_x" != yes; then
29406   echo "$as_me:$LINENO: result: $have_x" >&5
29407 echo "${ECHO_T}$have_x" >&6
29408   no_x=yes
29409 else
29410   # If each of the values was on the command line, it overrides each guess.
29411   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29412   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29413   # Update the cache value to reflect the command line values.
29414   ac_cv_have_x="have_x=yes \
29415                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29416   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29417 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
29418 fi
29419
29420
29421 if test "$no_x" = yes; then
29422   # Not all programs may use this symbol, but it does not hurt to define it.
29423
29424 cat >>confdefs.h <<\_ACEOF
29425 #define X_DISPLAY_MISSING 1
29426 _ACEOF
29427
29428   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29429 else
29430   if test -n "$x_includes"; then
29431     X_CFLAGS="$X_CFLAGS -I$x_includes"
29432   fi
29433
29434   # It would also be nice to do this for all -L options, not just this one.
29435   if test -n "$x_libraries"; then
29436     X_LIBS="$X_LIBS -L$x_libraries"
29437     # For Solaris; some versions of Sun CC require a space after -R and
29438     # others require no space.  Words are not sufficient . . . .
29439     case `(uname -sr) 2>/dev/null` in
29440     "SunOS 5"*)
29441       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29442 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29443       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29444       cat >conftest.$ac_ext <<_ACEOF
29445 #line $LINENO "configure"
29446 #include "confdefs.h"
29447
29448 #ifdef F77_DUMMY_MAIN
29449 #  ifdef __cplusplus
29450      extern "C"
29451 #  endif
29452    int F77_DUMMY_MAIN() { return 1; }
29453 #endif
29454 int
29455 main ()
29456 {
29457
29458   ;
29459   return 0;
29460 }
29461 _ACEOF
29462 rm -f conftest.$ac_objext conftest$ac_exeext
29463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29464   (eval $ac_link) 2>&5
29465   ac_status=$?
29466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467   (exit $ac_status); } &&
29468          { ac_try='test -s conftest$ac_exeext'
29469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470   (eval $ac_try) 2>&5
29471   ac_status=$?
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); }; }; then
29474   ac_R_nospace=yes
29475 else
29476   echo "$as_me: failed program was:" >&5
29477 cat conftest.$ac_ext >&5
29478 ac_R_nospace=no
29479 fi
29480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29481       if test $ac_R_nospace = yes; then
29482         echo "$as_me:$LINENO: result: no" >&5
29483 echo "${ECHO_T}no" >&6
29484         X_LIBS="$X_LIBS -R$x_libraries"
29485       else
29486         LIBS="$ac_xsave_LIBS -R $x_libraries"
29487         cat >conftest.$ac_ext <<_ACEOF
29488 #line $LINENO "configure"
29489 #include "confdefs.h"
29490
29491 #ifdef F77_DUMMY_MAIN
29492 #  ifdef __cplusplus
29493      extern "C"
29494 #  endif
29495    int F77_DUMMY_MAIN() { return 1; }
29496 #endif
29497 int
29498 main ()
29499 {
29500
29501   ;
29502   return 0;
29503 }
29504 _ACEOF
29505 rm -f conftest.$ac_objext conftest$ac_exeext
29506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29507   (eval $ac_link) 2>&5
29508   ac_status=$?
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); } &&
29511          { ac_try='test -s conftest$ac_exeext'
29512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513   (eval $ac_try) 2>&5
29514   ac_status=$?
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); }; }; then
29517   ac_R_space=yes
29518 else
29519   echo "$as_me: failed program was:" >&5
29520 cat conftest.$ac_ext >&5
29521 ac_R_space=no
29522 fi
29523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29524         if test $ac_R_space = yes; then
29525           echo "$as_me:$LINENO: result: yes" >&5
29526 echo "${ECHO_T}yes" >&6
29527           X_LIBS="$X_LIBS -R $x_libraries"
29528         else
29529           echo "$as_me:$LINENO: result: neither works" >&5
29530 echo "${ECHO_T}neither works" >&6
29531         fi
29532       fi
29533       LIBS=$ac_xsave_LIBS
29534     esac
29535   fi
29536
29537   # Check for system-dependent libraries X programs must link with.
29538   # Do this before checking for the system-independent R6 libraries
29539   # (-lICE), since we may need -lsocket or whatever for X linking.
29540
29541   if test "$ISC" = yes; then
29542     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29543   else
29544     # Martyn Johnson says this is needed for Ultrix, if the X
29545     # libraries were built with DECnet support.  And Karl Berry says
29546     # the Alpha needs dnet_stub (dnet does not exist).
29547     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29548     cat >conftest.$ac_ext <<_ACEOF
29549 #line $LINENO "configure"
29550 #include "confdefs.h"
29551
29552 /* Override any gcc2 internal prototype to avoid an error.  */
29553 #ifdef __cplusplus
29554 extern "C"
29555 #endif
29556 /* We use char because int might match the return type of a gcc2
29557    builtin and then its argument prototype would still apply.  */
29558 char XOpenDisplay ();
29559 #ifdef F77_DUMMY_MAIN
29560 #  ifdef __cplusplus
29561      extern "C"
29562 #  endif
29563    int F77_DUMMY_MAIN() { return 1; }
29564 #endif
29565 int
29566 main ()
29567 {
29568 XOpenDisplay ();
29569   ;
29570   return 0;
29571 }
29572 _ACEOF
29573 rm -f conftest.$ac_objext conftest$ac_exeext
29574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29575   (eval $ac_link) 2>&5
29576   ac_status=$?
29577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578   (exit $ac_status); } &&
29579          { ac_try='test -s conftest$ac_exeext'
29580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581   (eval $ac_try) 2>&5
29582   ac_status=$?
29583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); }; }; then
29585   :
29586 else
29587   echo "$as_me: failed program was:" >&5
29588 cat conftest.$ac_ext >&5
29589 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29590 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29591 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29592   echo $ECHO_N "(cached) $ECHO_C" >&6
29593 else
29594   ac_check_lib_save_LIBS=$LIBS
29595 LIBS="-ldnet  $LIBS"
29596 cat >conftest.$ac_ext <<_ACEOF
29597 #line $LINENO "configure"
29598 #include "confdefs.h"
29599
29600 /* Override any gcc2 internal prototype to avoid an error.  */
29601 #ifdef __cplusplus
29602 extern "C"
29603 #endif
29604 /* We use char because int might match the return type of a gcc2
29605    builtin and then its argument prototype would still apply.  */
29606 char dnet_ntoa ();
29607 #ifdef F77_DUMMY_MAIN
29608 #  ifdef __cplusplus
29609      extern "C"
29610 #  endif
29611    int F77_DUMMY_MAIN() { return 1; }
29612 #endif
29613 int
29614 main ()
29615 {
29616 dnet_ntoa ();
29617   ;
29618   return 0;
29619 }
29620 _ACEOF
29621 rm -f conftest.$ac_objext conftest$ac_exeext
29622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29623   (eval $ac_link) 2>&5
29624   ac_status=$?
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); } &&
29627          { ac_try='test -s conftest$ac_exeext'
29628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629   (eval $ac_try) 2>&5
29630   ac_status=$?
29631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632   (exit $ac_status); }; }; then
29633   ac_cv_lib_dnet_dnet_ntoa=yes
29634 else
29635   echo "$as_me: failed program was:" >&5
29636 cat conftest.$ac_ext >&5
29637 ac_cv_lib_dnet_dnet_ntoa=no
29638 fi
29639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29640 LIBS=$ac_check_lib_save_LIBS
29641 fi
29642 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29643 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29644 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29645   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29646 fi
29647
29648     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29649       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29650 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29651 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29652   echo $ECHO_N "(cached) $ECHO_C" >&6
29653 else
29654   ac_check_lib_save_LIBS=$LIBS
29655 LIBS="-ldnet_stub  $LIBS"
29656 cat >conftest.$ac_ext <<_ACEOF
29657 #line $LINENO "configure"
29658 #include "confdefs.h"
29659
29660 /* Override any gcc2 internal prototype to avoid an error.  */
29661 #ifdef __cplusplus
29662 extern "C"
29663 #endif
29664 /* We use char because int might match the return type of a gcc2
29665    builtin and then its argument prototype would still apply.  */
29666 char dnet_ntoa ();
29667 #ifdef F77_DUMMY_MAIN
29668 #  ifdef __cplusplus
29669      extern "C"
29670 #  endif
29671    int F77_DUMMY_MAIN() { return 1; }
29672 #endif
29673 int
29674 main ()
29675 {
29676 dnet_ntoa ();
29677   ;
29678   return 0;
29679 }
29680 _ACEOF
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29683   (eval $ac_link) 2>&5
29684   ac_status=$?
29685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); } &&
29687          { ac_try='test -s conftest$ac_exeext'
29688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689   (eval $ac_try) 2>&5
29690   ac_status=$?
29691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692   (exit $ac_status); }; }; then
29693   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29694 else
29695   echo "$as_me: failed program was:" >&5
29696 cat conftest.$ac_ext >&5
29697 ac_cv_lib_dnet_stub_dnet_ntoa=no
29698 fi
29699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29700 LIBS=$ac_check_lib_save_LIBS
29701 fi
29702 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29703 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29704 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29705   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29706 fi
29707
29708     fi
29709 fi
29710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29711     LIBS="$ac_xsave_LIBS"
29712
29713     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29714     # to get the SysV transport functions.
29715     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29716     # needs -lnsl.
29717     # The nsl library prevents programs from opening the X display
29718     # on Irix 5.2, according to T.E. Dickey.
29719     # The functions gethostbyname, getservbyname, and inet_addr are
29720     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29721     echo "$as_me:$LINENO: checking for gethostbyname" >&5
29722 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29723 if test "${ac_cv_func_gethostbyname+set}" = set; then
29724   echo $ECHO_N "(cached) $ECHO_C" >&6
29725 else
29726   cat >conftest.$ac_ext <<_ACEOF
29727 #line $LINENO "configure"
29728 #include "confdefs.h"
29729 /* System header to define __stub macros and hopefully few prototypes,
29730     which can conflict with char gethostbyname (); below.  */
29731 #include <assert.h>
29732 /* Override any gcc2 internal prototype to avoid an error.  */
29733 #ifdef __cplusplus
29734 extern "C"
29735 #endif
29736 /* We use char because int might match the return type of a gcc2
29737    builtin and then its argument prototype would still apply.  */
29738 char gethostbyname ();
29739 char (*f) ();
29740
29741 #ifdef F77_DUMMY_MAIN
29742 #  ifdef __cplusplus
29743      extern "C"
29744 #  endif
29745    int F77_DUMMY_MAIN() { return 1; }
29746 #endif
29747 int
29748 main ()
29749 {
29750 /* The GNU C library defines this for functions which it implements
29751     to always fail with ENOSYS.  Some functions are actually named
29752     something starting with __ and the normal name is an alias.  */
29753 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29754 choke me
29755 #else
29756 f = gethostbyname;
29757 #endif
29758
29759   ;
29760   return 0;
29761 }
29762 _ACEOF
29763 rm -f conftest.$ac_objext conftest$ac_exeext
29764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29765   (eval $ac_link) 2>&5
29766   ac_status=$?
29767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768   (exit $ac_status); } &&
29769          { ac_try='test -s conftest$ac_exeext'
29770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771   (eval $ac_try) 2>&5
29772   ac_status=$?
29773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774   (exit $ac_status); }; }; then
29775   ac_cv_func_gethostbyname=yes
29776 else
29777   echo "$as_me: failed program was:" >&5
29778 cat conftest.$ac_ext >&5
29779 ac_cv_func_gethostbyname=no
29780 fi
29781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29782 fi
29783 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29784 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29785
29786     if test $ac_cv_func_gethostbyname = no; then
29787       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29788 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29789 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29790   echo $ECHO_N "(cached) $ECHO_C" >&6
29791 else
29792   ac_check_lib_save_LIBS=$LIBS
29793 LIBS="-lnsl  $LIBS"
29794 cat >conftest.$ac_ext <<_ACEOF
29795 #line $LINENO "configure"
29796 #include "confdefs.h"
29797
29798 /* Override any gcc2 internal prototype to avoid an error.  */
29799 #ifdef __cplusplus
29800 extern "C"
29801 #endif
29802 /* We use char because int might match the return type of a gcc2
29803    builtin and then its argument prototype would still apply.  */
29804 char gethostbyname ();
29805 #ifdef F77_DUMMY_MAIN
29806 #  ifdef __cplusplus
29807      extern "C"
29808 #  endif
29809    int F77_DUMMY_MAIN() { return 1; }
29810 #endif
29811 int
29812 main ()
29813 {
29814 gethostbyname ();
29815   ;
29816   return 0;
29817 }
29818 _ACEOF
29819 rm -f conftest.$ac_objext conftest$ac_exeext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29821   (eval $ac_link) 2>&5
29822   ac_status=$?
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); } &&
29825          { ac_try='test -s conftest$ac_exeext'
29826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827   (eval $ac_try) 2>&5
29828   ac_status=$?
29829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830   (exit $ac_status); }; }; then
29831   ac_cv_lib_nsl_gethostbyname=yes
29832 else
29833   echo "$as_me: failed program was:" >&5
29834 cat conftest.$ac_ext >&5
29835 ac_cv_lib_nsl_gethostbyname=no
29836 fi
29837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29838 LIBS=$ac_check_lib_save_LIBS
29839 fi
29840 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29841 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29842 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29843   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29844 fi
29845
29846       if test $ac_cv_lib_nsl_gethostbyname = no; then
29847         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29848 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29849 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29850   echo $ECHO_N "(cached) $ECHO_C" >&6
29851 else
29852   ac_check_lib_save_LIBS=$LIBS
29853 LIBS="-lbsd  $LIBS"
29854 cat >conftest.$ac_ext <<_ACEOF
29855 #line $LINENO "configure"
29856 #include "confdefs.h"
29857
29858 /* Override any gcc2 internal prototype to avoid an error.  */
29859 #ifdef __cplusplus
29860 extern "C"
29861 #endif
29862 /* We use char because int might match the return type of a gcc2
29863    builtin and then its argument prototype would still apply.  */
29864 char gethostbyname ();
29865 #ifdef F77_DUMMY_MAIN
29866 #  ifdef __cplusplus
29867      extern "C"
29868 #  endif
29869    int F77_DUMMY_MAIN() { return 1; }
29870 #endif
29871 int
29872 main ()
29873 {
29874 gethostbyname ();
29875   ;
29876   return 0;
29877 }
29878 _ACEOF
29879 rm -f conftest.$ac_objext conftest$ac_exeext
29880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29881   (eval $ac_link) 2>&5
29882   ac_status=$?
29883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884   (exit $ac_status); } &&
29885          { ac_try='test -s conftest$ac_exeext'
29886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887   (eval $ac_try) 2>&5
29888   ac_status=$?
29889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890   (exit $ac_status); }; }; then
29891   ac_cv_lib_bsd_gethostbyname=yes
29892 else
29893   echo "$as_me: failed program was:" >&5
29894 cat conftest.$ac_ext >&5
29895 ac_cv_lib_bsd_gethostbyname=no
29896 fi
29897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29898 LIBS=$ac_check_lib_save_LIBS
29899 fi
29900 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29901 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29902 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29903   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29904 fi
29905
29906       fi
29907     fi
29908
29909     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29910     # socket/setsockopt and other routines are undefined under SCO ODT
29911     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29912     # on later versions), says Simon Leinen: it contains gethostby*
29913     # variants that don't use the nameserver (or something).  -lsocket
29914     # must be given before -lnsl if both are needed.  We assume that
29915     # if connect needs -lnsl, so does gethostbyname.
29916     echo "$as_me:$LINENO: checking for connect" >&5
29917 echo $ECHO_N "checking for connect... $ECHO_C" >&6
29918 if test "${ac_cv_func_connect+set}" = set; then
29919   echo $ECHO_N "(cached) $ECHO_C" >&6
29920 else
29921   cat >conftest.$ac_ext <<_ACEOF
29922 #line $LINENO "configure"
29923 #include "confdefs.h"
29924 /* System header to define __stub macros and hopefully few prototypes,
29925     which can conflict with char connect (); below.  */
29926 #include <assert.h>
29927 /* Override any gcc2 internal prototype to avoid an error.  */
29928 #ifdef __cplusplus
29929 extern "C"
29930 #endif
29931 /* We use char because int might match the return type of a gcc2
29932    builtin and then its argument prototype would still apply.  */
29933 char connect ();
29934 char (*f) ();
29935
29936 #ifdef F77_DUMMY_MAIN
29937 #  ifdef __cplusplus
29938      extern "C"
29939 #  endif
29940    int F77_DUMMY_MAIN() { return 1; }
29941 #endif
29942 int
29943 main ()
29944 {
29945 /* The GNU C library defines this for functions which it implements
29946     to always fail with ENOSYS.  Some functions are actually named
29947     something starting with __ and the normal name is an alias.  */
29948 #if defined (__stub_connect) || defined (__stub___connect)
29949 choke me
29950 #else
29951 f = connect;
29952 #endif
29953
29954   ;
29955   return 0;
29956 }
29957 _ACEOF
29958 rm -f conftest.$ac_objext conftest$ac_exeext
29959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29960   (eval $ac_link) 2>&5
29961   ac_status=$?
29962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); } &&
29964          { ac_try='test -s conftest$ac_exeext'
29965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966   (eval $ac_try) 2>&5
29967   ac_status=$?
29968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969   (exit $ac_status); }; }; then
29970   ac_cv_func_connect=yes
29971 else
29972   echo "$as_me: failed program was:" >&5
29973 cat conftest.$ac_ext >&5
29974 ac_cv_func_connect=no
29975 fi
29976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29977 fi
29978 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29979 echo "${ECHO_T}$ac_cv_func_connect" >&6
29980
29981     if test $ac_cv_func_connect = no; then
29982       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29983 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29984 if test "${ac_cv_lib_socket_connect+set}" = set; then
29985   echo $ECHO_N "(cached) $ECHO_C" >&6
29986 else
29987   ac_check_lib_save_LIBS=$LIBS
29988 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29989 cat >conftest.$ac_ext <<_ACEOF
29990 #line $LINENO "configure"
29991 #include "confdefs.h"
29992
29993 /* Override any gcc2 internal prototype to avoid an error.  */
29994 #ifdef __cplusplus
29995 extern "C"
29996 #endif
29997 /* We use char because int might match the return type of a gcc2
29998    builtin and then its argument prototype would still apply.  */
29999 char connect ();
30000 #ifdef F77_DUMMY_MAIN
30001 #  ifdef __cplusplus
30002      extern "C"
30003 #  endif
30004    int F77_DUMMY_MAIN() { return 1; }
30005 #endif
30006 int
30007 main ()
30008 {
30009 connect ();
30010   ;
30011   return 0;
30012 }
30013 _ACEOF
30014 rm -f conftest.$ac_objext conftest$ac_exeext
30015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30016   (eval $ac_link) 2>&5
30017   ac_status=$?
30018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019   (exit $ac_status); } &&
30020          { ac_try='test -s conftest$ac_exeext'
30021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30022   (eval $ac_try) 2>&5
30023   ac_status=$?
30024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025   (exit $ac_status); }; }; then
30026   ac_cv_lib_socket_connect=yes
30027 else
30028   echo "$as_me: failed program was:" >&5
30029 cat conftest.$ac_ext >&5
30030 ac_cv_lib_socket_connect=no
30031 fi
30032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30033 LIBS=$ac_check_lib_save_LIBS
30034 fi
30035 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30036 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30037 if test $ac_cv_lib_socket_connect = yes; then
30038   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30039 fi
30040
30041     fi
30042
30043     # Guillermo Gomez says -lposix is necessary on A/UX.
30044     echo "$as_me:$LINENO: checking for remove" >&5
30045 echo $ECHO_N "checking for remove... $ECHO_C" >&6
30046 if test "${ac_cv_func_remove+set}" = set; then
30047   echo $ECHO_N "(cached) $ECHO_C" >&6
30048 else
30049   cat >conftest.$ac_ext <<_ACEOF
30050 #line $LINENO "configure"
30051 #include "confdefs.h"
30052 /* System header to define __stub macros and hopefully few prototypes,
30053     which can conflict with char remove (); below.  */
30054 #include <assert.h>
30055 /* Override any gcc2 internal prototype to avoid an error.  */
30056 #ifdef __cplusplus
30057 extern "C"
30058 #endif
30059 /* We use char because int might match the return type of a gcc2
30060    builtin and then its argument prototype would still apply.  */
30061 char remove ();
30062 char (*f) ();
30063
30064 #ifdef F77_DUMMY_MAIN
30065 #  ifdef __cplusplus
30066      extern "C"
30067 #  endif
30068    int F77_DUMMY_MAIN() { return 1; }
30069 #endif
30070 int
30071 main ()
30072 {
30073 /* The GNU C library defines this for functions which it implements
30074     to always fail with ENOSYS.  Some functions are actually named
30075     something starting with __ and the normal name is an alias.  */
30076 #if defined (__stub_remove) || defined (__stub___remove)
30077 choke me
30078 #else
30079 f = remove;
30080 #endif
30081
30082   ;
30083   return 0;
30084 }
30085 _ACEOF
30086 rm -f conftest.$ac_objext conftest$ac_exeext
30087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30088   (eval $ac_link) 2>&5
30089   ac_status=$?
30090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091   (exit $ac_status); } &&
30092          { ac_try='test -s conftest$ac_exeext'
30093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094   (eval $ac_try) 2>&5
30095   ac_status=$?
30096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097   (exit $ac_status); }; }; then
30098   ac_cv_func_remove=yes
30099 else
30100   echo "$as_me: failed program was:" >&5
30101 cat conftest.$ac_ext >&5
30102 ac_cv_func_remove=no
30103 fi
30104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30105 fi
30106 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30107 echo "${ECHO_T}$ac_cv_func_remove" >&6
30108
30109     if test $ac_cv_func_remove = no; then
30110       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30111 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30112 if test "${ac_cv_lib_posix_remove+set}" = set; then
30113   echo $ECHO_N "(cached) $ECHO_C" >&6
30114 else
30115   ac_check_lib_save_LIBS=$LIBS
30116 LIBS="-lposix  $LIBS"
30117 cat >conftest.$ac_ext <<_ACEOF
30118 #line $LINENO "configure"
30119 #include "confdefs.h"
30120
30121 /* Override any gcc2 internal prototype to avoid an error.  */
30122 #ifdef __cplusplus
30123 extern "C"
30124 #endif
30125 /* We use char because int might match the return type of a gcc2
30126    builtin and then its argument prototype would still apply.  */
30127 char remove ();
30128 #ifdef F77_DUMMY_MAIN
30129 #  ifdef __cplusplus
30130      extern "C"
30131 #  endif
30132    int F77_DUMMY_MAIN() { return 1; }
30133 #endif
30134 int
30135 main ()
30136 {
30137 remove ();
30138   ;
30139   return 0;
30140 }
30141 _ACEOF
30142 rm -f conftest.$ac_objext conftest$ac_exeext
30143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30144   (eval $ac_link) 2>&5
30145   ac_status=$?
30146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147   (exit $ac_status); } &&
30148          { ac_try='test -s conftest$ac_exeext'
30149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150   (eval $ac_try) 2>&5
30151   ac_status=$?
30152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153   (exit $ac_status); }; }; then
30154   ac_cv_lib_posix_remove=yes
30155 else
30156   echo "$as_me: failed program was:" >&5
30157 cat conftest.$ac_ext >&5
30158 ac_cv_lib_posix_remove=no
30159 fi
30160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30161 LIBS=$ac_check_lib_save_LIBS
30162 fi
30163 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30164 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30165 if test $ac_cv_lib_posix_remove = yes; then
30166   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30167 fi
30168
30169     fi
30170
30171     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30172     echo "$as_me:$LINENO: checking for shmat" >&5
30173 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30174 if test "${ac_cv_func_shmat+set}" = set; then
30175   echo $ECHO_N "(cached) $ECHO_C" >&6
30176 else
30177   cat >conftest.$ac_ext <<_ACEOF
30178 #line $LINENO "configure"
30179 #include "confdefs.h"
30180 /* System header to define __stub macros and hopefully few prototypes,
30181     which can conflict with char shmat (); below.  */
30182 #include <assert.h>
30183 /* Override any gcc2 internal prototype to avoid an error.  */
30184 #ifdef __cplusplus
30185 extern "C"
30186 #endif
30187 /* We use char because int might match the return type of a gcc2
30188    builtin and then its argument prototype would still apply.  */
30189 char shmat ();
30190 char (*f) ();
30191
30192 #ifdef F77_DUMMY_MAIN
30193 #  ifdef __cplusplus
30194      extern "C"
30195 #  endif
30196    int F77_DUMMY_MAIN() { return 1; }
30197 #endif
30198 int
30199 main ()
30200 {
30201 /* The GNU C library defines this for functions which it implements
30202     to always fail with ENOSYS.  Some functions are actually named
30203     something starting with __ and the normal name is an alias.  */
30204 #if defined (__stub_shmat) || defined (__stub___shmat)
30205 choke me
30206 #else
30207 f = shmat;
30208 #endif
30209
30210   ;
30211   return 0;
30212 }
30213 _ACEOF
30214 rm -f conftest.$ac_objext conftest$ac_exeext
30215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30216   (eval $ac_link) 2>&5
30217   ac_status=$?
30218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219   (exit $ac_status); } &&
30220          { ac_try='test -s conftest$ac_exeext'
30221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222   (eval $ac_try) 2>&5
30223   ac_status=$?
30224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225   (exit $ac_status); }; }; then
30226   ac_cv_func_shmat=yes
30227 else
30228   echo "$as_me: failed program was:" >&5
30229 cat conftest.$ac_ext >&5
30230 ac_cv_func_shmat=no
30231 fi
30232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30233 fi
30234 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30235 echo "${ECHO_T}$ac_cv_func_shmat" >&6
30236
30237     if test $ac_cv_func_shmat = no; then
30238       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30239 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30240 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30241   echo $ECHO_N "(cached) $ECHO_C" >&6
30242 else
30243   ac_check_lib_save_LIBS=$LIBS
30244 LIBS="-lipc  $LIBS"
30245 cat >conftest.$ac_ext <<_ACEOF
30246 #line $LINENO "configure"
30247 #include "confdefs.h"
30248
30249 /* Override any gcc2 internal prototype to avoid an error.  */
30250 #ifdef __cplusplus
30251 extern "C"
30252 #endif
30253 /* We use char because int might match the return type of a gcc2
30254    builtin and then its argument prototype would still apply.  */
30255 char shmat ();
30256 #ifdef F77_DUMMY_MAIN
30257 #  ifdef __cplusplus
30258      extern "C"
30259 #  endif
30260    int F77_DUMMY_MAIN() { return 1; }
30261 #endif
30262 int
30263 main ()
30264 {
30265 shmat ();
30266   ;
30267   return 0;
30268 }
30269 _ACEOF
30270 rm -f conftest.$ac_objext conftest$ac_exeext
30271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30272   (eval $ac_link) 2>&5
30273   ac_status=$?
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); } &&
30276          { ac_try='test -s conftest$ac_exeext'
30277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278   (eval $ac_try) 2>&5
30279   ac_status=$?
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); }; }; then
30282   ac_cv_lib_ipc_shmat=yes
30283 else
30284   echo "$as_me: failed program was:" >&5
30285 cat conftest.$ac_ext >&5
30286 ac_cv_lib_ipc_shmat=no
30287 fi
30288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30289 LIBS=$ac_check_lib_save_LIBS
30290 fi
30291 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30292 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30293 if test $ac_cv_lib_ipc_shmat = yes; then
30294   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30295 fi
30296
30297     fi
30298   fi
30299
30300   # Check for libraries that X11R6 Xt/Xaw programs need.
30301   ac_save_LDFLAGS=$LDFLAGS
30302   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30303   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30304   # check for ICE first), but we must link in the order -lSM -lICE or
30305   # we get undefined symbols.  So assume we have SM if we have ICE.
30306   # These have to be linked with before -lX11, unlike the other
30307   # libraries we check for below, so use a different variable.
30308   # John Interrante, Karl Berry
30309   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30310 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30311 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30312   echo $ECHO_N "(cached) $ECHO_C" >&6
30313 else
30314   ac_check_lib_save_LIBS=$LIBS
30315 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30316 cat >conftest.$ac_ext <<_ACEOF
30317 #line $LINENO "configure"
30318 #include "confdefs.h"
30319
30320 /* Override any gcc2 internal prototype to avoid an error.  */
30321 #ifdef __cplusplus
30322 extern "C"
30323 #endif
30324 /* We use char because int might match the return type of a gcc2
30325    builtin and then its argument prototype would still apply.  */
30326 char IceConnectionNumber ();
30327 #ifdef F77_DUMMY_MAIN
30328 #  ifdef __cplusplus
30329      extern "C"
30330 #  endif
30331    int F77_DUMMY_MAIN() { return 1; }
30332 #endif
30333 int
30334 main ()
30335 {
30336 IceConnectionNumber ();
30337   ;
30338   return 0;
30339 }
30340 _ACEOF
30341 rm -f conftest.$ac_objext conftest$ac_exeext
30342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30343   (eval $ac_link) 2>&5
30344   ac_status=$?
30345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346   (exit $ac_status); } &&
30347          { ac_try='test -s conftest$ac_exeext'
30348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349   (eval $ac_try) 2>&5
30350   ac_status=$?
30351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352   (exit $ac_status); }; }; then
30353   ac_cv_lib_ICE_IceConnectionNumber=yes
30354 else
30355   echo "$as_me: failed program was:" >&5
30356 cat conftest.$ac_ext >&5
30357 ac_cv_lib_ICE_IceConnectionNumber=no
30358 fi
30359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30360 LIBS=$ac_check_lib_save_LIBS
30361 fi
30362 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30363 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30364 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30365   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30366 fi
30367
30368   LDFLAGS=$ac_save_LDFLAGS
30369
30370 fi
30371
30372
30373 # try to figure out if we need any additional ld flags, like -R
30374 # and yes, the autoconf X test is utterly broken
30375 if test "$no_x" != yes; then
30376         echo "$as_me:$LINENO: checking for special X linker flags" >&5
30377 echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
30378 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
30379   echo $ECHO_N "(cached) $ECHO_C" >&6
30380 else
30381
30382         ac_save_libs="$LIBS"
30383         ac_save_cflags="$CFLAGS"
30384         CFLAGS="$CFLAGS $X_CFLAGS"
30385         krb_cv_sys_x_libs_rpath=""
30386         krb_cv_sys_x_libs=""
30387         for rflag in "" "-R" "-R " "-rpath "; do
30388                 if test "$rflag" = ""; then
30389                         foo="$X_LIBS"
30390                 else
30391                         foo=""
30392                         for flag in $X_LIBS; do
30393                         case $flag in
30394                         -L*)
30395                                 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
30396                                 ;;
30397                         *)
30398                                 foo="$foo $flag"
30399                                 ;;
30400                         esac
30401                         done
30402                 fi
30403                 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
30404                 if test "$cross_compiling" = yes; then
30405   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
30406 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
30407    { (exit 1); exit 1; }; }
30408 else
30409   cat >conftest.$ac_ext <<_ACEOF
30410 #line $LINENO "configure"
30411 #include "confdefs.h"
30412
30413                 #include <X11/Xlib.h>
30414                 foo()
30415                 {
30416                 XOpenDisplay(NULL);
30417                 }
30418                 main()
30419                 {
30420                 return 0;
30421                 }
30422
30423 _ACEOF
30424 rm -f conftest$ac_exeext
30425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426   (eval $ac_link) 2>&5
30427   ac_status=$?
30428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431   (eval $ac_try) 2>&5
30432   ac_status=$?
30433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434   (exit $ac_status); }; }; then
30435   krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
30436 else
30437   echo "$as_me: program exited with status $ac_status" >&5
30438 echo "$as_me: failed program was:" >&5
30439 cat conftest.$ac_ext >&5
30440 ( exit $ac_status )
30441 :
30442 fi
30443 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30444 fi
30445         done
30446         LIBS="$ac_save_libs"
30447         CFLAGS="$ac_save_cflags"
30448
30449 fi
30450 echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
30451 echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
30452         X_LIBS="$krb_cv_sys_x_libs"
30453 fi
30454
30455
30456
30457
30458 if test "$no_x" != yes; then
30459   HAVE_X_TRUE=
30460   HAVE_X_FALSE='#'
30461 else
30462   HAVE_X_TRUE='#'
30463   HAVE_X_FALSE=
30464 fi
30465
30466
30467
30468 save_CFLAGS="$CFLAGS"
30469 CFLAGS="$X_CFLAGS $CFLAGS"
30470 save_LIBS="$LIBS"
30471 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
30472 save_LDFLAGS="$LDFLAGS"
30473 LDFLAGS="$LDFLAGS $X_LIBS"
30474
30475
30476
30477
30478
30479 echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
30480 echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
30481 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
30482   echo $ECHO_N "(cached) $ECHO_C" >&6
30483 else
30484
30485 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
30486         ac_save_LIBS="$LIBS"
30487         for ac_lib in "" X11 Xau; do
30488                 case "$ac_lib" in
30489                 "") ;;
30490                 yes) ac_lib="" ;;
30491                 no) continue ;;
30492                 -l*) ;;
30493                 *) ac_lib="-l$ac_lib" ;;
30494                 esac
30495                 LIBS=" $ac_lib  $ac_save_LIBS"
30496                 cat >conftest.$ac_ext <<_ACEOF
30497 #line $LINENO "configure"
30498 #include "confdefs.h"
30499
30500 #ifdef F77_DUMMY_MAIN
30501 #  ifdef __cplusplus
30502      extern "C"
30503 #  endif
30504    int F77_DUMMY_MAIN() { return 1; }
30505 #endif
30506 int
30507 main ()
30508 {
30509 XauWriteAuth()
30510   ;
30511   return 0;
30512 }
30513 _ACEOF
30514 rm -f conftest.$ac_objext conftest$ac_exeext
30515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30516   (eval $ac_link) 2>&5
30517   ac_status=$?
30518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519   (exit $ac_status); } &&
30520          { ac_try='test -s conftest$ac_exeext'
30521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522   (eval $ac_try) 2>&5
30523   ac_status=$?
30524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525   (exit $ac_status); }; }; then
30526   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
30527 else
30528   echo "$as_me: failed program was:" >&5
30529 cat conftest.$ac_ext >&5
30530 fi
30531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30532         done
30533         eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
30534         LIBS="$ac_save_LIBS"
30535 fi
30536
30537 fi
30538
30539
30540 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
30541
30542 if false; then
30543
30544 for ac_func in XauWriteAuth
30545 do
30546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30547 echo "$as_me:$LINENO: checking for $ac_func" >&5
30548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30549 if eval "test \"\${$as_ac_var+set}\" = set"; then
30550   echo $ECHO_N "(cached) $ECHO_C" >&6
30551 else
30552   cat >conftest.$ac_ext <<_ACEOF
30553 #line $LINENO "configure"
30554 #include "confdefs.h"
30555 /* System header to define __stub macros and hopefully few prototypes,
30556     which can conflict with char $ac_func (); below.  */
30557 #include <assert.h>
30558 /* Override any gcc2 internal prototype to avoid an error.  */
30559 #ifdef __cplusplus
30560 extern "C"
30561 #endif
30562 /* We use char because int might match the return type of a gcc2
30563    builtin and then its argument prototype would still apply.  */
30564 char $ac_func ();
30565 char (*f) ();
30566
30567 #ifdef F77_DUMMY_MAIN
30568 #  ifdef __cplusplus
30569      extern "C"
30570 #  endif
30571    int F77_DUMMY_MAIN() { return 1; }
30572 #endif
30573 int
30574 main ()
30575 {
30576 /* The GNU C library defines this for functions which it implements
30577     to always fail with ENOSYS.  Some functions are actually named
30578     something starting with __ and the normal name is an alias.  */
30579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30580 choke me
30581 #else
30582 f = $ac_func;
30583 #endif
30584
30585   ;
30586   return 0;
30587 }
30588 _ACEOF
30589 rm -f conftest.$ac_objext conftest$ac_exeext
30590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30591   (eval $ac_link) 2>&5
30592   ac_status=$?
30593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594   (exit $ac_status); } &&
30595          { ac_try='test -s conftest$ac_exeext'
30596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30597   (eval $ac_try) 2>&5
30598   ac_status=$?
30599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600   (exit $ac_status); }; }; then
30601   eval "$as_ac_var=yes"
30602 else
30603   echo "$as_me: failed program was:" >&5
30604 cat conftest.$ac_ext >&5
30605 eval "$as_ac_var=no"
30606 fi
30607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30608 fi
30609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30611 if test `eval echo '${'$as_ac_var'}'` = yes; then
30612   cat >>confdefs.h <<_ACEOF
30613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30614 _ACEOF
30615
30616 fi
30617 done
30618
30619 fi
30620 # XauWriteAuth
30621 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30622 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30623 eval "LIB_XauWriteAuth=$ac_res"
30624
30625 case "$ac_res" in
30626         yes)
30627         eval "ac_cv_func_XauWriteAuth=yes"
30628         eval "LIB_XauWriteAuth="
30629         cat >>confdefs.h <<_ACEOF
30630 #define $ac_tr_func 1
30631 _ACEOF
30632
30633         echo "$as_me:$LINENO: result: yes" >&5
30634 echo "${ECHO_T}yes" >&6
30635         ;;
30636         no)
30637         eval "ac_cv_func_XauWriteAuth=no"
30638         eval "LIB_XauWriteAuth="
30639         echo "$as_me:$LINENO: result: no" >&5
30640 echo "${ECHO_T}no" >&6
30641         ;;
30642         *)
30643         eval "ac_cv_func_XauWriteAuth=yes"
30644         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30645         cat >>confdefs.h <<_ACEOF
30646 #define $ac_tr_func 1
30647 _ACEOF
30648
30649         cat >>confdefs.h <<_ACEOF
30650 #define $ac_tr_lib 1
30651 _ACEOF
30652
30653         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30654 echo "${ECHO_T}yes, in $ac_res" >&6
30655         ;;
30656 esac
30657
30658
30659 ac_xxx="$LIBS"
30660 LIBS="$LIB_XauWriteAuth $LIBS"
30661
30662
30663
30664 echo "$as_me:$LINENO: checking for XauReadAuth" >&5
30665 echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
30666 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
30667   echo $ECHO_N "(cached) $ECHO_C" >&6
30668 else
30669
30670 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
30671         ac_save_LIBS="$LIBS"
30672         for ac_lib in "" X11 Xau; do
30673                 case "$ac_lib" in
30674                 "") ;;
30675                 yes) ac_lib="" ;;
30676                 no) continue ;;
30677                 -l*) ;;
30678                 *) ac_lib="-l$ac_lib" ;;
30679                 esac
30680                 LIBS=" $ac_lib  $ac_save_LIBS"
30681                 cat >conftest.$ac_ext <<_ACEOF
30682 #line $LINENO "configure"
30683 #include "confdefs.h"
30684
30685 #ifdef F77_DUMMY_MAIN
30686 #  ifdef __cplusplus
30687      extern "C"
30688 #  endif
30689    int F77_DUMMY_MAIN() { return 1; }
30690 #endif
30691 int
30692 main ()
30693 {
30694 XauReadAuth()
30695   ;
30696   return 0;
30697 }
30698 _ACEOF
30699 rm -f conftest.$ac_objext conftest$ac_exeext
30700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30701   (eval $ac_link) 2>&5
30702   ac_status=$?
30703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704   (exit $ac_status); } &&
30705          { ac_try='test -s conftest$ac_exeext'
30706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30707   (eval $ac_try) 2>&5
30708   ac_status=$?
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); }; }; then
30711   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
30712 else
30713   echo "$as_me: failed program was:" >&5
30714 cat conftest.$ac_ext >&5
30715 fi
30716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30717         done
30718         eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
30719         LIBS="$ac_save_LIBS"
30720 fi
30721
30722 fi
30723
30724
30725 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
30726
30727 if false; then
30728
30729 for ac_func in XauReadAuth
30730 do
30731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30732 echo "$as_me:$LINENO: checking for $ac_func" >&5
30733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30734 if eval "test \"\${$as_ac_var+set}\" = set"; then
30735   echo $ECHO_N "(cached) $ECHO_C" >&6
30736 else
30737   cat >conftest.$ac_ext <<_ACEOF
30738 #line $LINENO "configure"
30739 #include "confdefs.h"
30740 /* System header to define __stub macros and hopefully few prototypes,
30741     which can conflict with char $ac_func (); below.  */
30742 #include <assert.h>
30743 /* Override any gcc2 internal prototype to avoid an error.  */
30744 #ifdef __cplusplus
30745 extern "C"
30746 #endif
30747 /* We use char because int might match the return type of a gcc2
30748    builtin and then its argument prototype would still apply.  */
30749 char $ac_func ();
30750 char (*f) ();
30751
30752 #ifdef F77_DUMMY_MAIN
30753 #  ifdef __cplusplus
30754      extern "C"
30755 #  endif
30756    int F77_DUMMY_MAIN() { return 1; }
30757 #endif
30758 int
30759 main ()
30760 {
30761 /* The GNU C library defines this for functions which it implements
30762     to always fail with ENOSYS.  Some functions are actually named
30763     something starting with __ and the normal name is an alias.  */
30764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30765 choke me
30766 #else
30767 f = $ac_func;
30768 #endif
30769
30770   ;
30771   return 0;
30772 }
30773 _ACEOF
30774 rm -f conftest.$ac_objext conftest$ac_exeext
30775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30776   (eval $ac_link) 2>&5
30777   ac_status=$?
30778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779   (exit $ac_status); } &&
30780          { ac_try='test -s conftest$ac_exeext'
30781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30782   (eval $ac_try) 2>&5
30783   ac_status=$?
30784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785   (exit $ac_status); }; }; then
30786   eval "$as_ac_var=yes"
30787 else
30788   echo "$as_me: failed program was:" >&5
30789 cat conftest.$ac_ext >&5
30790 eval "$as_ac_var=no"
30791 fi
30792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30793 fi
30794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30796 if test `eval echo '${'$as_ac_var'}'` = yes; then
30797   cat >>confdefs.h <<_ACEOF
30798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30799 _ACEOF
30800
30801 fi
30802 done
30803
30804 fi
30805 # XauReadAuth
30806 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30807 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30808 eval "LIB_XauReadAuth=$ac_res"
30809
30810 case "$ac_res" in
30811         yes)
30812         eval "ac_cv_func_XauReadAuth=yes"
30813         eval "LIB_XauReadAuth="
30814         cat >>confdefs.h <<_ACEOF
30815 #define $ac_tr_func 1
30816 _ACEOF
30817
30818         echo "$as_me:$LINENO: result: yes" >&5
30819 echo "${ECHO_T}yes" >&6
30820         ;;
30821         no)
30822         eval "ac_cv_func_XauReadAuth=no"
30823         eval "LIB_XauReadAuth="
30824         echo "$as_me:$LINENO: result: no" >&5
30825 echo "${ECHO_T}no" >&6
30826         ;;
30827         *)
30828         eval "ac_cv_func_XauReadAuth=yes"
30829         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30830         cat >>confdefs.h <<_ACEOF
30831 #define $ac_tr_func 1
30832 _ACEOF
30833
30834         cat >>confdefs.h <<_ACEOF
30835 #define $ac_tr_lib 1
30836 _ACEOF
30837
30838         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30839 echo "${ECHO_T}yes, in $ac_res" >&6
30840         ;;
30841 esac
30842
30843
30844 LIBS="$LIB_XauReadAauth $LIBS"
30845
30846
30847
30848 echo "$as_me:$LINENO: checking for XauFileName" >&5
30849 echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
30850 if test "${ac_cv_funclib_XauFileName+set}" = set; then
30851   echo $ECHO_N "(cached) $ECHO_C" >&6
30852 else
30853
30854 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
30855         ac_save_LIBS="$LIBS"
30856         for ac_lib in "" X11 Xau; do
30857                 case "$ac_lib" in
30858                 "") ;;
30859                 yes) ac_lib="" ;;
30860                 no) continue ;;
30861                 -l*) ;;
30862                 *) ac_lib="-l$ac_lib" ;;
30863                 esac
30864                 LIBS=" $ac_lib  $ac_save_LIBS"
30865                 cat >conftest.$ac_ext <<_ACEOF
30866 #line $LINENO "configure"
30867 #include "confdefs.h"
30868
30869 #ifdef F77_DUMMY_MAIN
30870 #  ifdef __cplusplus
30871      extern "C"
30872 #  endif
30873    int F77_DUMMY_MAIN() { return 1; }
30874 #endif
30875 int
30876 main ()
30877 {
30878 XauFileName()
30879   ;
30880   return 0;
30881 }
30882 _ACEOF
30883 rm -f conftest.$ac_objext conftest$ac_exeext
30884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30885   (eval $ac_link) 2>&5
30886   ac_status=$?
30887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888   (exit $ac_status); } &&
30889          { ac_try='test -s conftest$ac_exeext'
30890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30891   (eval $ac_try) 2>&5
30892   ac_status=$?
30893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894   (exit $ac_status); }; }; then
30895   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
30896 else
30897   echo "$as_me: failed program was:" >&5
30898 cat conftest.$ac_ext >&5
30899 fi
30900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30901         done
30902         eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
30903         LIBS="$ac_save_LIBS"
30904 fi
30905
30906 fi
30907
30908
30909 eval "ac_res=\$ac_cv_funclib_XauFileName"
30910
30911 if false; then
30912
30913 for ac_func in XauFileName
30914 do
30915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30916 echo "$as_me:$LINENO: checking for $ac_func" >&5
30917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30918 if eval "test \"\${$as_ac_var+set}\" = set"; then
30919   echo $ECHO_N "(cached) $ECHO_C" >&6
30920 else
30921   cat >conftest.$ac_ext <<_ACEOF
30922 #line $LINENO "configure"
30923 #include "confdefs.h"
30924 /* System header to define __stub macros and hopefully few prototypes,
30925     which can conflict with char $ac_func (); below.  */
30926 #include <assert.h>
30927 /* Override any gcc2 internal prototype to avoid an error.  */
30928 #ifdef __cplusplus
30929 extern "C"
30930 #endif
30931 /* We use char because int might match the return type of a gcc2
30932    builtin and then its argument prototype would still apply.  */
30933 char $ac_func ();
30934 char (*f) ();
30935
30936 #ifdef F77_DUMMY_MAIN
30937 #  ifdef __cplusplus
30938      extern "C"
30939 #  endif
30940    int F77_DUMMY_MAIN() { return 1; }
30941 #endif
30942 int
30943 main ()
30944 {
30945 /* The GNU C library defines this for functions which it implements
30946     to always fail with ENOSYS.  Some functions are actually named
30947     something starting with __ and the normal name is an alias.  */
30948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30949 choke me
30950 #else
30951 f = $ac_func;
30952 #endif
30953
30954   ;
30955   return 0;
30956 }
30957 _ACEOF
30958 rm -f conftest.$ac_objext conftest$ac_exeext
30959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30960   (eval $ac_link) 2>&5
30961   ac_status=$?
30962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963   (exit $ac_status); } &&
30964          { ac_try='test -s conftest$ac_exeext'
30965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30966   (eval $ac_try) 2>&5
30967   ac_status=$?
30968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969   (exit $ac_status); }; }; then
30970   eval "$as_ac_var=yes"
30971 else
30972   echo "$as_me: failed program was:" >&5
30973 cat conftest.$ac_ext >&5
30974 eval "$as_ac_var=no"
30975 fi
30976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30977 fi
30978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30980 if test `eval echo '${'$as_ac_var'}'` = yes; then
30981   cat >>confdefs.h <<_ACEOF
30982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30983 _ACEOF
30984
30985 fi
30986 done
30987
30988 fi
30989 # XauFileName
30990 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30991 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30992 eval "LIB_XauFileName=$ac_res"
30993
30994 case "$ac_res" in
30995         yes)
30996         eval "ac_cv_func_XauFileName=yes"
30997         eval "LIB_XauFileName="
30998         cat >>confdefs.h <<_ACEOF
30999 #define $ac_tr_func 1
31000 _ACEOF
31001
31002         echo "$as_me:$LINENO: result: yes" >&5
31003 echo "${ECHO_T}yes" >&6
31004         ;;
31005         no)
31006         eval "ac_cv_func_XauFileName=no"
31007         eval "LIB_XauFileName="
31008         echo "$as_me:$LINENO: result: no" >&5
31009 echo "${ECHO_T}no" >&6
31010         ;;
31011         *)
31012         eval "ac_cv_func_XauFileName=yes"
31013         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31014         cat >>confdefs.h <<_ACEOF
31015 #define $ac_tr_func 1
31016 _ACEOF
31017
31018         cat >>confdefs.h <<_ACEOF
31019 #define $ac_tr_lib 1
31020 _ACEOF
31021
31022         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31023 echo "${ECHO_T}yes, in $ac_res" >&6
31024         ;;
31025 esac
31026
31027
31028 LIBS="$ac_xxx"
31029
31030 case "$ac_cv_funclib_XauWriteAuth" in
31031 yes)    ;;
31032 no)     ;;
31033 *)      if test "$ac_cv_funclib_XauReadAuth" = yes; then
31034                 if test "$ac_cv_funclib_XauFileName" = yes; then
31035                         LIB_XauReadAuth="$LIB_XauWriteAuth"
31036                 else
31037                         LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
31038                 fi
31039         else
31040                 if test "$ac_cv_funclib_XauFileName" = yes; then
31041                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
31042                 else
31043                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
31044                 fi
31045         fi
31046         ;;
31047 esac
31048
31049 if test "$AUTOMAKE" != ""; then
31050
31051
31052 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
31053   NEED_WRITEAUTH_TRUE=
31054   NEED_WRITEAUTH_FALSE='#'
31055 else
31056   NEED_WRITEAUTH_TRUE='#'
31057   NEED_WRITEAUTH_FALSE=
31058 fi
31059
31060 else
31061
31062
31063         if test "$ac_cv_func_XauWriteAuth" != "yes"; then
31064                 NEED_WRITEAUTH_TRUE=
31065                 NEED_WRITEAUTH_FALSE='#'
31066         else
31067                 NEED_WRITEAUTH_TRUE='#'
31068                 NEED_WRITEAUTH_FALSE=
31069         fi
31070 fi
31071 CFLAGS=$save_CFLAGS
31072 LIBS=$save_LIBS
31073 LDFLAGS=$save_LDFLAGS
31074
31075
31076
31077 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31078 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
31079 if test "${ac_cv_c_const+set}" = set; then
31080   echo $ECHO_N "(cached) $ECHO_C" >&6
31081 else
31082   cat >conftest.$ac_ext <<_ACEOF
31083 #line $LINENO "configure"
31084 #include "confdefs.h"
31085
31086 #ifdef F77_DUMMY_MAIN
31087 #  ifdef __cplusplus
31088      extern "C"
31089 #  endif
31090    int F77_DUMMY_MAIN() { return 1; }
31091 #endif
31092 int
31093 main ()
31094 {
31095 /* FIXME: Include the comments suggested by Paul. */
31096 #ifndef __cplusplus
31097   /* Ultrix mips cc rejects this.  */
31098   typedef int charset[2];
31099   const charset x;
31100   /* SunOS 4.1.1 cc rejects this.  */
31101   char const *const *ccp;
31102   char **p;
31103   /* NEC SVR4.0.2 mips cc rejects this.  */
31104   struct point {int x, y;};
31105   static struct point const zero = {0,0};
31106   /* AIX XL C 1.02.0.0 rejects this.
31107      It does not let you subtract one const X* pointer from another in
31108      an arm of an if-expression whose if-part is not a constant
31109      expression */
31110   const char *g = "string";
31111   ccp = &g + (g ? g-g : 0);
31112   /* HPUX 7.0 cc rejects these. */
31113   ++ccp;
31114   p = (char**) ccp;
31115   ccp = (char const *const *) p;
31116   { /* SCO 3.2v4 cc rejects this.  */
31117     char *t;
31118     char const *s = 0 ? (char *) 0 : (char const *) 0;
31119
31120     *t++ = 0;
31121   }
31122   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
31123     int x[] = {25, 17};
31124     const int *foo = &x[0];
31125     ++foo;
31126   }
31127   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31128     typedef const int *iptr;
31129     iptr p = 0;
31130     ++p;
31131   }
31132   { /* AIX XL C 1.02.0.0 rejects this saying
31133        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31134     struct s { int j; const int *ap[3]; };
31135     struct s *b; b->j = 5;
31136   }
31137   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31138     const int foo = 10;
31139   }
31140 #endif
31141
31142   ;
31143   return 0;
31144 }
31145 _ACEOF
31146 rm -f conftest.$ac_objext
31147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31148   (eval $ac_compile) 2>&5
31149   ac_status=$?
31150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151   (exit $ac_status); } &&
31152          { ac_try='test -s conftest.$ac_objext'
31153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154   (eval $ac_try) 2>&5
31155   ac_status=$?
31156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157   (exit $ac_status); }; }; then
31158   ac_cv_c_const=yes
31159 else
31160   echo "$as_me: failed program was:" >&5
31161 cat conftest.$ac_ext >&5
31162 ac_cv_c_const=no
31163 fi
31164 rm -f conftest.$ac_objext conftest.$ac_ext
31165 fi
31166 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31167 echo "${ECHO_T}$ac_cv_c_const" >&6
31168 if test $ac_cv_c_const = no; then
31169
31170 cat >>confdefs.h <<\_ACEOF
31171 #define const
31172 _ACEOF
31173
31174 fi
31175
31176 echo "$as_me:$LINENO: checking for off_t" >&5
31177 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31178 if test "${ac_cv_type_off_t+set}" = set; then
31179   echo $ECHO_N "(cached) $ECHO_C" >&6
31180 else
31181   cat >conftest.$ac_ext <<_ACEOF
31182 #line $LINENO "configure"
31183 #include "confdefs.h"
31184 $ac_includes_default
31185 #ifdef F77_DUMMY_MAIN
31186 #  ifdef __cplusplus
31187      extern "C"
31188 #  endif
31189    int F77_DUMMY_MAIN() { return 1; }
31190 #endif
31191 int
31192 main ()
31193 {
31194 if ((off_t *) 0)
31195   return 0;
31196 if (sizeof (off_t))
31197   return 0;
31198   ;
31199   return 0;
31200 }
31201 _ACEOF
31202 rm -f conftest.$ac_objext
31203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31204   (eval $ac_compile) 2>&5
31205   ac_status=$?
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); } &&
31208          { ac_try='test -s conftest.$ac_objext'
31209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210   (eval $ac_try) 2>&5
31211   ac_status=$?
31212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213   (exit $ac_status); }; }; then
31214   ac_cv_type_off_t=yes
31215 else
31216   echo "$as_me: failed program was:" >&5
31217 cat conftest.$ac_ext >&5
31218 ac_cv_type_off_t=no
31219 fi
31220 rm -f conftest.$ac_objext conftest.$ac_ext
31221 fi
31222 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31223 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31224 if test $ac_cv_type_off_t = yes; then
31225   :
31226 else
31227
31228 cat >>confdefs.h <<_ACEOF
31229 #define off_t long
31230 _ACEOF
31231
31232 fi
31233
31234 echo "$as_me:$LINENO: checking for mode_t" >&5
31235 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31236 if test "${ac_cv_type_mode_t+set}" = set; then
31237   echo $ECHO_N "(cached) $ECHO_C" >&6
31238 else
31239   cat >conftest.$ac_ext <<_ACEOF
31240 #line $LINENO "configure"
31241 #include "confdefs.h"
31242 #include <sys/types.h>
31243 #if STDC_HEADERS
31244 #include <stdlib.h>
31245 #include <stddef.h>
31246 #endif
31247
31248 _ACEOF
31249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31250   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31251   ac_cv_type_mode_t=yes
31252 else
31253   ac_cv_type_mode_t=no
31254 fi
31255 rm -f conftest*
31256
31257 fi
31258 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31259 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31260 if test $ac_cv_type_mode_t = no; then
31261
31262 cat >>confdefs.h <<\_ACEOF
31263 #define mode_t unsigned short
31264 _ACEOF
31265
31266 fi
31267
31268 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
31269 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
31270 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
31271   echo $ECHO_N "(cached) $ECHO_C" >&6
31272 else
31273   cat >conftest.$ac_ext <<_ACEOF
31274 #line $LINENO "configure"
31275 #include "confdefs.h"
31276 #include <sys/types.h>
31277 #if STDC_HEADERS
31278 #include <stdlib.h>
31279 #include <stddef.h>
31280 #endif
31281 #include <signal.h>
31282 _ACEOF
31283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31284   egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31285   ac_cv_type_sig_atomic_t=yes
31286 else
31287   ac_cv_type_sig_atomic_t=no
31288 fi
31289 rm -f conftest*
31290
31291 fi
31292 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
31293 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
31294 if test $ac_cv_type_sig_atomic_t = no; then
31295
31296 cat >>confdefs.h <<\_ACEOF
31297 #define sig_atomic_t int
31298 _ACEOF
31299
31300 fi
31301
31302
31303
31304 cv=`echo "long long" | sed 'y%./+- %__p__%'`
31305 echo "$as_me:$LINENO: checking for long long" >&5
31306 echo $ECHO_N "checking for long long... $ECHO_C" >&6
31307 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
31308   echo $ECHO_N "(cached) $ECHO_C" >&6
31309 else
31310   cat >conftest.$ac_ext <<_ACEOF
31311 #line $LINENO "configure"
31312 #include "confdefs.h"
31313 #include <sys/types.h>
31314 #if STDC_HEADERS
31315 #include <stdlib.h>
31316 #include <stddef.h>
31317 #endif
31318
31319 #ifdef F77_DUMMY_MAIN
31320 #  ifdef __cplusplus
31321      extern "C"
31322 #  endif
31323    int F77_DUMMY_MAIN() { return 1; }
31324 #endif
31325 int
31326 main ()
31327 {
31328 long long foo;
31329   ;
31330   return 0;
31331 }
31332 _ACEOF
31333 rm -f conftest.$ac_objext
31334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31335   (eval $ac_compile) 2>&5
31336   ac_status=$?
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); } &&
31339          { ac_try='test -s conftest.$ac_objext'
31340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341   (eval $ac_try) 2>&5
31342   ac_status=$?
31343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344   (exit $ac_status); }; }; then
31345   eval "ac_cv_type_$cv=yes"
31346 else
31347   echo "$as_me: failed program was:" >&5
31348 cat conftest.$ac_ext >&5
31349 eval "ac_cv_type_$cv=no"
31350 fi
31351 rm -f conftest.$ac_objext conftest.$ac_ext
31352 fi
31353 ac_foo=`eval echo \\$ac_cv_type_$cv`
31354 echo "$as_me:$LINENO: result: $ac_foo" >&5
31355 echo "${ECHO_T}$ac_foo" >&6
31356 if test "$ac_foo" = yes; then
31357   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
31358 if false; then
31359         echo "$as_me:$LINENO: checking for long long" >&5
31360 echo $ECHO_N "checking for long long... $ECHO_C" >&6
31361 if test "${ac_cv_type_long_long+set}" = set; then
31362   echo $ECHO_N "(cached) $ECHO_C" >&6
31363 else
31364   cat >conftest.$ac_ext <<_ACEOF
31365 #line $LINENO "configure"
31366 #include "confdefs.h"
31367 $ac_includes_default
31368 #ifdef F77_DUMMY_MAIN
31369 #  ifdef __cplusplus
31370      extern "C"
31371 #  endif
31372    int F77_DUMMY_MAIN() { return 1; }
31373 #endif
31374 int
31375 main ()
31376 {
31377 if ((long long *) 0)
31378   return 0;
31379 if (sizeof (long long))
31380   return 0;
31381   ;
31382   return 0;
31383 }
31384 _ACEOF
31385 rm -f conftest.$ac_objext
31386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31387   (eval $ac_compile) 2>&5
31388   ac_status=$?
31389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390   (exit $ac_status); } &&
31391          { ac_try='test -s conftest.$ac_objext'
31392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31393   (eval $ac_try) 2>&5
31394   ac_status=$?
31395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396   (exit $ac_status); }; }; then
31397   ac_cv_type_long_long=yes
31398 else
31399   echo "$as_me: failed program was:" >&5
31400 cat conftest.$ac_ext >&5
31401 ac_cv_type_long_long=no
31402 fi
31403 rm -f conftest.$ac_objext conftest.$ac_ext
31404 fi
31405 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31406 echo "${ECHO_T}$ac_cv_type_long_long" >&6
31407 if test $ac_cv_type_long_long = yes; then
31408
31409 cat >>confdefs.h <<_ACEOF
31410 #define HAVE_LONG_LONG 1
31411 _ACEOF
31412
31413
31414 fi
31415
31416 fi
31417
31418 cat >>confdefs.h <<_ACEOF
31419 #define $ac_tr_hdr 1
31420 _ACEOF
31421
31422 fi
31423
31424 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31425 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
31426 if test "${ac_cv_header_time+set}" = set; then
31427   echo $ECHO_N "(cached) $ECHO_C" >&6
31428 else
31429   cat >conftest.$ac_ext <<_ACEOF
31430 #line $LINENO "configure"
31431 #include "confdefs.h"
31432 #include <sys/types.h>
31433 #include <sys/time.h>
31434 #include <time.h>
31435
31436 #ifdef F77_DUMMY_MAIN
31437 #  ifdef __cplusplus
31438      extern "C"
31439 #  endif
31440    int F77_DUMMY_MAIN() { return 1; }
31441 #endif
31442 int
31443 main ()
31444 {
31445 if ((struct tm *) 0)
31446 return 0;
31447   ;
31448   return 0;
31449 }
31450 _ACEOF
31451 rm -f conftest.$ac_objext
31452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31453   (eval $ac_compile) 2>&5
31454   ac_status=$?
31455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456   (exit $ac_status); } &&
31457          { ac_try='test -s conftest.$ac_objext'
31458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459   (eval $ac_try) 2>&5
31460   ac_status=$?
31461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462   (exit $ac_status); }; }; then
31463   ac_cv_header_time=yes
31464 else
31465   echo "$as_me: failed program was:" >&5
31466 cat conftest.$ac_ext >&5
31467 ac_cv_header_time=no
31468 fi
31469 rm -f conftest.$ac_objext conftest.$ac_ext
31470 fi
31471 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31472 echo "${ECHO_T}$ac_cv_header_time" >&6
31473 if test $ac_cv_header_time = yes; then
31474
31475 cat >>confdefs.h <<\_ACEOF
31476 #define TIME_WITH_SYS_TIME 1
31477 _ACEOF
31478
31479 fi
31480
31481 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31482 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31483 if test "${ac_cv_struct_tm+set}" = set; then
31484   echo $ECHO_N "(cached) $ECHO_C" >&6
31485 else
31486   cat >conftest.$ac_ext <<_ACEOF
31487 #line $LINENO "configure"
31488 #include "confdefs.h"
31489 #include <sys/types.h>
31490 #include <time.h>
31491
31492 #ifdef F77_DUMMY_MAIN
31493 #  ifdef __cplusplus
31494      extern "C"
31495 #  endif
31496    int F77_DUMMY_MAIN() { return 1; }
31497 #endif
31498 int
31499 main ()
31500 {
31501 struct tm *tp; tp->tm_sec;
31502   ;
31503   return 0;
31504 }
31505 _ACEOF
31506 rm -f conftest.$ac_objext
31507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31508   (eval $ac_compile) 2>&5
31509   ac_status=$?
31510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511   (exit $ac_status); } &&
31512          { ac_try='test -s conftest.$ac_objext'
31513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31514   (eval $ac_try) 2>&5
31515   ac_status=$?
31516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517   (exit $ac_status); }; }; then
31518   ac_cv_struct_tm=time.h
31519 else
31520   echo "$as_me: failed program was:" >&5
31521 cat conftest.$ac_ext >&5
31522 ac_cv_struct_tm=sys/time.h
31523 fi
31524 rm -f conftest.$ac_objext conftest.$ac_ext
31525 fi
31526 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31527 echo "${ECHO_T}$ac_cv_struct_tm" >&6
31528 if test $ac_cv_struct_tm = sys/time.h; then
31529
31530 cat >>confdefs.h <<\_ACEOF
31531 #define TM_IN_SYS_TIME 1
31532 _ACEOF
31533
31534 fi
31535
31536
31537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31539 if test "${ac_cv_header_stdc+set}" = set; then
31540   echo $ECHO_N "(cached) $ECHO_C" >&6
31541 else
31542   cat >conftest.$ac_ext <<_ACEOF
31543 #line $LINENO "configure"
31544 #include "confdefs.h"
31545 #include <stdlib.h>
31546 #include <stdarg.h>
31547 #include <string.h>
31548 #include <float.h>
31549
31550 _ACEOF
31551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31553   ac_status=$?
31554   egrep -v '^ *\+' conftest.er1 >conftest.err
31555   rm -f conftest.er1
31556   cat conftest.err >&5
31557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558   (exit $ac_status); } >/dev/null; then
31559   if test -s conftest.err; then
31560     ac_cpp_err=$ac_c_preproc_warn_flag
31561   else
31562     ac_cpp_err=
31563   fi
31564 else
31565   ac_cpp_err=yes
31566 fi
31567 if test -z "$ac_cpp_err"; then
31568   ac_cv_header_stdc=yes
31569 else
31570   echo "$as_me: failed program was:" >&5
31571   cat conftest.$ac_ext >&5
31572   ac_cv_header_stdc=no
31573 fi
31574 rm -f conftest.err conftest.$ac_ext
31575
31576 if test $ac_cv_header_stdc = yes; then
31577   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31578   cat >conftest.$ac_ext <<_ACEOF
31579 #line $LINENO "configure"
31580 #include "confdefs.h"
31581 #include <string.h>
31582
31583 _ACEOF
31584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31585   egrep "memchr" >/dev/null 2>&1; then
31586   :
31587 else
31588   ac_cv_header_stdc=no
31589 fi
31590 rm -f conftest*
31591
31592 fi
31593
31594 if test $ac_cv_header_stdc = yes; then
31595   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31596   cat >conftest.$ac_ext <<_ACEOF
31597 #line $LINENO "configure"
31598 #include "confdefs.h"
31599 #include <stdlib.h>
31600
31601 _ACEOF
31602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31603   egrep "free" >/dev/null 2>&1; then
31604   :
31605 else
31606   ac_cv_header_stdc=no
31607 fi
31608 rm -f conftest*
31609
31610 fi
31611
31612 if test $ac_cv_header_stdc = yes; then
31613   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31614   if test "$cross_compiling" = yes; then
31615   :
31616 else
31617   cat >conftest.$ac_ext <<_ACEOF
31618 #line $LINENO "configure"
31619 #include "confdefs.h"
31620 #include <ctype.h>
31621 #if ((' ' & 0x0FF) == 0x020)
31622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31624 #else
31625 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
31626                      || ('j' <= (c) && (c) <= 'r') \
31627                      || ('s' <= (c) && (c) <= 'z'))
31628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31629 #endif
31630
31631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31632 int
31633 main ()
31634 {
31635   int i;
31636   for (i = 0; i < 256; i++)
31637     if (XOR (islower (i), ISLOWER (i))
31638         || toupper (i) != TOUPPER (i))
31639       exit(2);
31640   exit (0);
31641 }
31642 _ACEOF
31643 rm -f conftest$ac_exeext
31644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31645   (eval $ac_link) 2>&5
31646   ac_status=$?
31647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31650   (eval $ac_try) 2>&5
31651   ac_status=$?
31652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653   (exit $ac_status); }; }; then
31654   :
31655 else
31656   echo "$as_me: program exited with status $ac_status" >&5
31657 echo "$as_me: failed program was:" >&5
31658 cat conftest.$ac_ext >&5
31659 ( exit $ac_status )
31660 ac_cv_header_stdc=no
31661 fi
31662 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31663 fi
31664 fi
31665 fi
31666 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31667 echo "${ECHO_T}$ac_cv_header_stdc" >&6
31668 if test $ac_cv_header_stdc = yes; then
31669
31670 cat >>confdefs.h <<\_ACEOF
31671 #define STDC_HEADERS 1
31672 _ACEOF
31673
31674 fi
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727 for ac_header in \
31728         arpa/ftp.h                              \
31729         arpa/telnet.h                           \
31730         bind/bitypes.h                          \
31731         bsdsetjmp.h                             \
31732         curses.h                                \
31733         dlfcn.h                                 \
31734         fnmatch.h                               \
31735         inttypes.h                              \
31736         io.h                                    \
31737         libutil.h                               \
31738         limits.h                                \
31739         maillock.h                              \
31740         netgroup.h                              \
31741         netinet/in6_machtypes.h                 \
31742         netinfo/ni.h                            \
31743         pthread.h                               \
31744         pty.h                                   \
31745         sac.h                                   \
31746         security/pam_modules.h                  \
31747         sgtty.h                                 \
31748         siad.h                                  \
31749         signal.h                                \
31750         stropts.h                               \
31751         sys/bitypes.h                           \
31752         sys/category.h                          \
31753         sys/file.h                              \
31754         sys/filio.h                             \
31755         sys/ioccom.h                            \
31756         sys/mman.h                              \
31757         sys/pty.h                               \
31758         sys/ptyio.h                             \
31759         sys/ptyvar.h                            \
31760         sys/select.h                            \
31761         sys/str_tty.h                           \
31762         sys/stream.h                            \
31763         sys/stropts.h                           \
31764         sys/strtty.h                            \
31765         sys/syscall.h                           \
31766         sys/termio.h                            \
31767         sys/timeb.h                             \
31768         sys/times.h                             \
31769         sys/un.h                                \
31770         term.h                                  \
31771         termcap.h                               \
31772         termio.h                                \
31773         time.h                                  \
31774         tmpdir.h                                \
31775         udb.h                                   \
31776         utmp.h                                  \
31777         utmpx.h                                 \
31778
31779 do
31780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31782   echo "$as_me:$LINENO: checking for $ac_header" >&5
31783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31785   echo $ECHO_N "(cached) $ECHO_C" >&6
31786 fi
31787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31789 else
31790   # Is the header compilable?
31791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31793 cat >conftest.$ac_ext <<_ACEOF
31794 #line $LINENO "configure"
31795 #include "confdefs.h"
31796 $ac_includes_default
31797 #include <$ac_header>
31798 _ACEOF
31799 rm -f conftest.$ac_objext
31800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31801   (eval $ac_compile) 2>&5
31802   ac_status=$?
31803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804   (exit $ac_status); } &&
31805          { ac_try='test -s conftest.$ac_objext'
31806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31807   (eval $ac_try) 2>&5
31808   ac_status=$?
31809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810   (exit $ac_status); }; }; then
31811   ac_header_compiler=yes
31812 else
31813   echo "$as_me: failed program was:" >&5
31814 cat conftest.$ac_ext >&5
31815 ac_header_compiler=no
31816 fi
31817 rm -f conftest.$ac_objext conftest.$ac_ext
31818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31819 echo "${ECHO_T}$ac_header_compiler" >&6
31820
31821 # Is the header present?
31822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31824 cat >conftest.$ac_ext <<_ACEOF
31825 #line $LINENO "configure"
31826 #include "confdefs.h"
31827 #include <$ac_header>
31828 _ACEOF
31829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31830   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31831   ac_status=$?
31832   egrep -v '^ *\+' conftest.er1 >conftest.err
31833   rm -f conftest.er1
31834   cat conftest.err >&5
31835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836   (exit $ac_status); } >/dev/null; then
31837   if test -s conftest.err; then
31838     ac_cpp_err=$ac_c_preproc_warn_flag
31839   else
31840     ac_cpp_err=
31841   fi
31842 else
31843   ac_cpp_err=yes
31844 fi
31845 if test -z "$ac_cpp_err"; then
31846   ac_header_preproc=yes
31847 else
31848   echo "$as_me: failed program was:" >&5
31849   cat conftest.$ac_ext >&5
31850   ac_header_preproc=no
31851 fi
31852 rm -f conftest.err conftest.$ac_ext
31853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31854 echo "${ECHO_T}$ac_header_preproc" >&6
31855
31856 # So?  What about this header?
31857 case $ac_header_compiler:$ac_header_preproc in
31858   yes:no )
31859     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31863   no:yes )
31864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31866     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31870 esac
31871 echo "$as_me:$LINENO: checking for $ac_header" >&5
31872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31874   echo $ECHO_N "(cached) $ECHO_C" >&6
31875 else
31876   eval "$as_ac_Header=$ac_header_preproc"
31877 fi
31878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31880
31881 fi
31882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31883   cat >>confdefs.h <<_ACEOF
31884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31885 _ACEOF
31886
31887 fi
31888
31889 done
31890
31891
31892 # Check whether --enable-netinfo or --disable-netinfo was given.
31893 if test "${enable_netinfo+set}" = set; then
31894   enableval="$enable_netinfo"
31895
31896 fi;
31897
31898 if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
31899
31900 cat >>confdefs.h <<\_ACEOF
31901 #define HAVE_NETINFO 1
31902 _ACEOF
31903
31904 fi
31905
31906
31907
31908
31909
31910 echo "$as_me:$LINENO: checking for logwtmp" >&5
31911 echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
31912 if test "${ac_cv_funclib_logwtmp+set}" = set; then
31913   echo $ECHO_N "(cached) $ECHO_C" >&6
31914 else
31915
31916 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
31917         ac_save_LIBS="$LIBS"
31918         for ac_lib in "" util; do
31919                 case "$ac_lib" in
31920                 "") ;;
31921                 yes) ac_lib="" ;;
31922                 no) continue ;;
31923                 -l*) ;;
31924                 *) ac_lib="-l$ac_lib" ;;
31925                 esac
31926                 LIBS=" $ac_lib  $ac_save_LIBS"
31927                 cat >conftest.$ac_ext <<_ACEOF
31928 #line $LINENO "configure"
31929 #include "confdefs.h"
31930
31931 #ifdef F77_DUMMY_MAIN
31932 #  ifdef __cplusplus
31933      extern "C"
31934 #  endif
31935    int F77_DUMMY_MAIN() { return 1; }
31936 #endif
31937 int
31938 main ()
31939 {
31940 logwtmp()
31941   ;
31942   return 0;
31943 }
31944 _ACEOF
31945 rm -f conftest.$ac_objext conftest$ac_exeext
31946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31947   (eval $ac_link) 2>&5
31948   ac_status=$?
31949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950   (exit $ac_status); } &&
31951          { ac_try='test -s conftest$ac_exeext'
31952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31953   (eval $ac_try) 2>&5
31954   ac_status=$?
31955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956   (exit $ac_status); }; }; then
31957   eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
31958 else
31959   echo "$as_me: failed program was:" >&5
31960 cat conftest.$ac_ext >&5
31961 fi
31962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31963         done
31964         eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
31965         LIBS="$ac_save_LIBS"
31966 fi
31967
31968 fi
31969
31970
31971 eval "ac_res=\$ac_cv_funclib_logwtmp"
31972
31973 if false; then
31974
31975 for ac_func in logwtmp
31976 do
31977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31978 echo "$as_me:$LINENO: checking for $ac_func" >&5
31979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31980 if eval "test \"\${$as_ac_var+set}\" = set"; then
31981   echo $ECHO_N "(cached) $ECHO_C" >&6
31982 else
31983   cat >conftest.$ac_ext <<_ACEOF
31984 #line $LINENO "configure"
31985 #include "confdefs.h"
31986 /* System header to define __stub macros and hopefully few prototypes,
31987     which can conflict with char $ac_func (); below.  */
31988 #include <assert.h>
31989 /* Override any gcc2 internal prototype to avoid an error.  */
31990 #ifdef __cplusplus
31991 extern "C"
31992 #endif
31993 /* We use char because int might match the return type of a gcc2
31994    builtin and then its argument prototype would still apply.  */
31995 char $ac_func ();
31996 char (*f) ();
31997
31998 #ifdef F77_DUMMY_MAIN
31999 #  ifdef __cplusplus
32000      extern "C"
32001 #  endif
32002    int F77_DUMMY_MAIN() { return 1; }
32003 #endif
32004 int
32005 main ()
32006 {
32007 /* The GNU C library defines this for functions which it implements
32008     to always fail with ENOSYS.  Some functions are actually named
32009     something starting with __ and the normal name is an alias.  */
32010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32011 choke me
32012 #else
32013 f = $ac_func;
32014 #endif
32015
32016   ;
32017   return 0;
32018 }
32019 _ACEOF
32020 rm -f conftest.$ac_objext conftest$ac_exeext
32021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32022   (eval $ac_link) 2>&5
32023   ac_status=$?
32024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025   (exit $ac_status); } &&
32026          { ac_try='test -s conftest$ac_exeext'
32027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32028   (eval $ac_try) 2>&5
32029   ac_status=$?
32030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031   (exit $ac_status); }; }; then
32032   eval "$as_ac_var=yes"
32033 else
32034   echo "$as_me: failed program was:" >&5
32035 cat conftest.$ac_ext >&5
32036 eval "$as_ac_var=no"
32037 fi
32038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32039 fi
32040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32042 if test `eval echo '${'$as_ac_var'}'` = yes; then
32043   cat >>confdefs.h <<_ACEOF
32044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32045 _ACEOF
32046
32047 fi
32048 done
32049
32050 fi
32051 # logwtmp
32052 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32053 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32054 eval "LIB_logwtmp=$ac_res"
32055
32056 case "$ac_res" in
32057         yes)
32058         eval "ac_cv_func_logwtmp=yes"
32059         eval "LIB_logwtmp="
32060         cat >>confdefs.h <<_ACEOF
32061 #define $ac_tr_func 1
32062 _ACEOF
32063
32064         echo "$as_me:$LINENO: result: yes" >&5
32065 echo "${ECHO_T}yes" >&6
32066         ;;
32067         no)
32068         eval "ac_cv_func_logwtmp=no"
32069         eval "LIB_logwtmp="
32070         echo "$as_me:$LINENO: result: no" >&5
32071 echo "${ECHO_T}no" >&6
32072         ;;
32073         *)
32074         eval "ac_cv_func_logwtmp=yes"
32075         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32076         cat >>confdefs.h <<_ACEOF
32077 #define $ac_tr_func 1
32078 _ACEOF
32079
32080         cat >>confdefs.h <<_ACEOF
32081 #define $ac_tr_lib 1
32082 _ACEOF
32083
32084         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32085 echo "${ECHO_T}yes, in $ac_res" >&6
32086         ;;
32087 esac
32088
32089
32090
32091
32092
32093 echo "$as_me:$LINENO: checking for logout" >&5
32094 echo $ECHO_N "checking for logout... $ECHO_C" >&6
32095 if test "${ac_cv_funclib_logout+set}" = set; then
32096   echo $ECHO_N "(cached) $ECHO_C" >&6
32097 else
32098
32099 if eval "test \"\$ac_cv_func_logout\" != yes" ; then
32100         ac_save_LIBS="$LIBS"
32101         for ac_lib in "" util; do
32102                 case "$ac_lib" in
32103                 "") ;;
32104                 yes) ac_lib="" ;;
32105                 no) continue ;;
32106                 -l*) ;;
32107                 *) ac_lib="-l$ac_lib" ;;
32108                 esac
32109                 LIBS=" $ac_lib  $ac_save_LIBS"
32110                 cat >conftest.$ac_ext <<_ACEOF
32111 #line $LINENO "configure"
32112 #include "confdefs.h"
32113
32114 #ifdef F77_DUMMY_MAIN
32115 #  ifdef __cplusplus
32116      extern "C"
32117 #  endif
32118    int F77_DUMMY_MAIN() { return 1; }
32119 #endif
32120 int
32121 main ()
32122 {
32123 logout()
32124   ;
32125   return 0;
32126 }
32127 _ACEOF
32128 rm -f conftest.$ac_objext conftest$ac_exeext
32129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32130   (eval $ac_link) 2>&5
32131   ac_status=$?
32132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133   (exit $ac_status); } &&
32134          { ac_try='test -s conftest$ac_exeext'
32135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32136   (eval $ac_try) 2>&5
32137   ac_status=$?
32138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139   (exit $ac_status); }; }; then
32140   eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
32141 else
32142   echo "$as_me: failed program was:" >&5
32143 cat conftest.$ac_ext >&5
32144 fi
32145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32146         done
32147         eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
32148         LIBS="$ac_save_LIBS"
32149 fi
32150
32151 fi
32152
32153
32154 eval "ac_res=\$ac_cv_funclib_logout"
32155
32156 if false; then
32157
32158 for ac_func in logout
32159 do
32160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32161 echo "$as_me:$LINENO: checking for $ac_func" >&5
32162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32163 if eval "test \"\${$as_ac_var+set}\" = set"; then
32164   echo $ECHO_N "(cached) $ECHO_C" >&6
32165 else
32166   cat >conftest.$ac_ext <<_ACEOF
32167 #line $LINENO "configure"
32168 #include "confdefs.h"
32169 /* System header to define __stub macros and hopefully few prototypes,
32170     which can conflict with char $ac_func (); below.  */
32171 #include <assert.h>
32172 /* Override any gcc2 internal prototype to avoid an error.  */
32173 #ifdef __cplusplus
32174 extern "C"
32175 #endif
32176 /* We use char because int might match the return type of a gcc2
32177    builtin and then its argument prototype would still apply.  */
32178 char $ac_func ();
32179 char (*f) ();
32180
32181 #ifdef F77_DUMMY_MAIN
32182 #  ifdef __cplusplus
32183      extern "C"
32184 #  endif
32185    int F77_DUMMY_MAIN() { return 1; }
32186 #endif
32187 int
32188 main ()
32189 {
32190 /* The GNU C library defines this for functions which it implements
32191     to always fail with ENOSYS.  Some functions are actually named
32192     something starting with __ and the normal name is an alias.  */
32193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32194 choke me
32195 #else
32196 f = $ac_func;
32197 #endif
32198
32199   ;
32200   return 0;
32201 }
32202 _ACEOF
32203 rm -f conftest.$ac_objext conftest$ac_exeext
32204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32205   (eval $ac_link) 2>&5
32206   ac_status=$?
32207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208   (exit $ac_status); } &&
32209          { ac_try='test -s conftest$ac_exeext'
32210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32211   (eval $ac_try) 2>&5
32212   ac_status=$?
32213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214   (exit $ac_status); }; }; then
32215   eval "$as_ac_var=yes"
32216 else
32217   echo "$as_me: failed program was:" >&5
32218 cat conftest.$ac_ext >&5
32219 eval "$as_ac_var=no"
32220 fi
32221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32222 fi
32223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32225 if test `eval echo '${'$as_ac_var'}'` = yes; then
32226   cat >>confdefs.h <<_ACEOF
32227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32228 _ACEOF
32229
32230 fi
32231 done
32232
32233 fi
32234 # logout
32235 eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32236 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32237 eval "LIB_logout=$ac_res"
32238
32239 case "$ac_res" in
32240         yes)
32241         eval "ac_cv_func_logout=yes"
32242         eval "LIB_logout="
32243         cat >>confdefs.h <<_ACEOF
32244 #define $ac_tr_func 1
32245 _ACEOF
32246
32247         echo "$as_me:$LINENO: result: yes" >&5
32248 echo "${ECHO_T}yes" >&6
32249         ;;
32250         no)
32251         eval "ac_cv_func_logout=no"
32252         eval "LIB_logout="
32253         echo "$as_me:$LINENO: result: no" >&5
32254 echo "${ECHO_T}no" >&6
32255         ;;
32256         *)
32257         eval "ac_cv_func_logout=yes"
32258         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32259         cat >>confdefs.h <<_ACEOF
32260 #define $ac_tr_func 1
32261 _ACEOF
32262
32263         cat >>confdefs.h <<_ACEOF
32264 #define $ac_tr_lib 1
32265 _ACEOF
32266
32267         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32268 echo "${ECHO_T}yes, in $ac_res" >&6
32269         ;;
32270 esac
32271
32272
32273
32274
32275
32276 echo "$as_me:$LINENO: checking for openpty" >&5
32277 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
32278 if test "${ac_cv_funclib_openpty+set}" = set; then
32279   echo $ECHO_N "(cached) $ECHO_C" >&6
32280 else
32281
32282 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
32283         ac_save_LIBS="$LIBS"
32284         for ac_lib in "" util; do
32285                 case "$ac_lib" in
32286                 "") ;;
32287                 yes) ac_lib="" ;;
32288                 no) continue ;;
32289                 -l*) ;;
32290                 *) ac_lib="-l$ac_lib" ;;
32291                 esac
32292                 LIBS=" $ac_lib  $ac_save_LIBS"
32293                 cat >conftest.$ac_ext <<_ACEOF
32294 #line $LINENO "configure"
32295 #include "confdefs.h"
32296
32297 #ifdef F77_DUMMY_MAIN
32298 #  ifdef __cplusplus
32299      extern "C"
32300 #  endif
32301    int F77_DUMMY_MAIN() { return 1; }
32302 #endif
32303 int
32304 main ()
32305 {
32306 openpty()
32307   ;
32308   return 0;
32309 }
32310 _ACEOF
32311 rm -f conftest.$ac_objext conftest$ac_exeext
32312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32313   (eval $ac_link) 2>&5
32314   ac_status=$?
32315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316   (exit $ac_status); } &&
32317          { ac_try='test -s conftest$ac_exeext'
32318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319   (eval $ac_try) 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); }; }; then
32323   eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
32324 else
32325   echo "$as_me: failed program was:" >&5
32326 cat conftest.$ac_ext >&5
32327 fi
32328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32329         done
32330         eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
32331         LIBS="$ac_save_LIBS"
32332 fi
32333
32334 fi
32335
32336
32337 eval "ac_res=\$ac_cv_funclib_openpty"
32338
32339 if false; then
32340
32341 for ac_func in openpty
32342 do
32343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32344 echo "$as_me:$LINENO: checking for $ac_func" >&5
32345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32346 if eval "test \"\${$as_ac_var+set}\" = set"; then
32347   echo $ECHO_N "(cached) $ECHO_C" >&6
32348 else
32349   cat >conftest.$ac_ext <<_ACEOF
32350 #line $LINENO "configure"
32351 #include "confdefs.h"
32352 /* System header to define __stub macros and hopefully few prototypes,
32353     which can conflict with char $ac_func (); below.  */
32354 #include <assert.h>
32355 /* Override any gcc2 internal prototype to avoid an error.  */
32356 #ifdef __cplusplus
32357 extern "C"
32358 #endif
32359 /* We use char because int might match the return type of a gcc2
32360    builtin and then its argument prototype would still apply.  */
32361 char $ac_func ();
32362 char (*f) ();
32363
32364 #ifdef F77_DUMMY_MAIN
32365 #  ifdef __cplusplus
32366      extern "C"
32367 #  endif
32368    int F77_DUMMY_MAIN() { return 1; }
32369 #endif
32370 int
32371 main ()
32372 {
32373 /* The GNU C library defines this for functions which it implements
32374     to always fail with ENOSYS.  Some functions are actually named
32375     something starting with __ and the normal name is an alias.  */
32376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32377 choke me
32378 #else
32379 f = $ac_func;
32380 #endif
32381
32382   ;
32383   return 0;
32384 }
32385 _ACEOF
32386 rm -f conftest.$ac_objext conftest$ac_exeext
32387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32388   (eval $ac_link) 2>&5
32389   ac_status=$?
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); } &&
32392          { ac_try='test -s conftest$ac_exeext'
32393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32394   (eval $ac_try) 2>&5
32395   ac_status=$?
32396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); }; }; then
32398   eval "$as_ac_var=yes"
32399 else
32400   echo "$as_me: failed program was:" >&5
32401 cat conftest.$ac_ext >&5
32402 eval "$as_ac_var=no"
32403 fi
32404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32405 fi
32406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32408 if test `eval echo '${'$as_ac_var'}'` = yes; then
32409   cat >>confdefs.h <<_ACEOF
32410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32411 _ACEOF
32412
32413 fi
32414 done
32415
32416 fi
32417 # openpty
32418 eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32419 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32420 eval "LIB_openpty=$ac_res"
32421
32422 case "$ac_res" in
32423         yes)
32424         eval "ac_cv_func_openpty=yes"
32425         eval "LIB_openpty="
32426         cat >>confdefs.h <<_ACEOF
32427 #define $ac_tr_func 1
32428 _ACEOF
32429
32430         echo "$as_me:$LINENO: result: yes" >&5
32431 echo "${ECHO_T}yes" >&6
32432         ;;
32433         no)
32434         eval "ac_cv_func_openpty=no"
32435         eval "LIB_openpty="
32436         echo "$as_me:$LINENO: result: no" >&5
32437 echo "${ECHO_T}no" >&6
32438         ;;
32439         *)
32440         eval "ac_cv_func_openpty=yes"
32441         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32442         cat >>confdefs.h <<_ACEOF
32443 #define $ac_tr_func 1
32444 _ACEOF
32445
32446         cat >>confdefs.h <<_ACEOF
32447 #define $ac_tr_lib 1
32448 _ACEOF
32449
32450         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32451 echo "${ECHO_T}yes, in $ac_res" >&6
32452         ;;
32453 esac
32454
32455
32456
32457
32458
32459 echo "$as_me:$LINENO: checking for tgetent" >&5
32460 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
32461 if test "${ac_cv_funclib_tgetent+set}" = set; then
32462   echo $ECHO_N "(cached) $ECHO_C" >&6
32463 else
32464
32465 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
32466         ac_save_LIBS="$LIBS"
32467         for ac_lib in "" termcap ncurses curses; do
32468                 case "$ac_lib" in
32469                 "") ;;
32470                 yes) ac_lib="" ;;
32471                 no) continue ;;
32472                 -l*) ;;
32473                 *) ac_lib="-l$ac_lib" ;;
32474                 esac
32475                 LIBS=" $ac_lib  $ac_save_LIBS"
32476                 cat >conftest.$ac_ext <<_ACEOF
32477 #line $LINENO "configure"
32478 #include "confdefs.h"
32479
32480 #ifdef F77_DUMMY_MAIN
32481 #  ifdef __cplusplus
32482      extern "C"
32483 #  endif
32484    int F77_DUMMY_MAIN() { return 1; }
32485 #endif
32486 int
32487 main ()
32488 {
32489 tgetent()
32490   ;
32491   return 0;
32492 }
32493 _ACEOF
32494 rm -f conftest.$ac_objext conftest$ac_exeext
32495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32496   (eval $ac_link) 2>&5
32497   ac_status=$?
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); } &&
32500          { ac_try='test -s conftest$ac_exeext'
32501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32502   (eval $ac_try) 2>&5
32503   ac_status=$?
32504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505   (exit $ac_status); }; }; then
32506   eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
32507 else
32508   echo "$as_me: failed program was:" >&5
32509 cat conftest.$ac_ext >&5
32510 fi
32511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32512         done
32513         eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
32514         LIBS="$ac_save_LIBS"
32515 fi
32516
32517 fi
32518
32519
32520 eval "ac_res=\$ac_cv_funclib_tgetent"
32521
32522 if false; then
32523
32524 for ac_func in tgetent
32525 do
32526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32527 echo "$as_me:$LINENO: checking for $ac_func" >&5
32528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32529 if eval "test \"\${$as_ac_var+set}\" = set"; then
32530   echo $ECHO_N "(cached) $ECHO_C" >&6
32531 else
32532   cat >conftest.$ac_ext <<_ACEOF
32533 #line $LINENO "configure"
32534 #include "confdefs.h"
32535 /* System header to define __stub macros and hopefully few prototypes,
32536     which can conflict with char $ac_func (); below.  */
32537 #include <assert.h>
32538 /* Override any gcc2 internal prototype to avoid an error.  */
32539 #ifdef __cplusplus
32540 extern "C"
32541 #endif
32542 /* We use char because int might match the return type of a gcc2
32543    builtin and then its argument prototype would still apply.  */
32544 char $ac_func ();
32545 char (*f) ();
32546
32547 #ifdef F77_DUMMY_MAIN
32548 #  ifdef __cplusplus
32549      extern "C"
32550 #  endif
32551    int F77_DUMMY_MAIN() { return 1; }
32552 #endif
32553 int
32554 main ()
32555 {
32556 /* The GNU C library defines this for functions which it implements
32557     to always fail with ENOSYS.  Some functions are actually named
32558     something starting with __ and the normal name is an alias.  */
32559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32560 choke me
32561 #else
32562 f = $ac_func;
32563 #endif
32564
32565   ;
32566   return 0;
32567 }
32568 _ACEOF
32569 rm -f conftest.$ac_objext conftest$ac_exeext
32570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32571   (eval $ac_link) 2>&5
32572   ac_status=$?
32573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574   (exit $ac_status); } &&
32575          { ac_try='test -s conftest$ac_exeext'
32576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32577   (eval $ac_try) 2>&5
32578   ac_status=$?
32579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580   (exit $ac_status); }; }; then
32581   eval "$as_ac_var=yes"
32582 else
32583   echo "$as_me: failed program was:" >&5
32584 cat conftest.$ac_ext >&5
32585 eval "$as_ac_var=no"
32586 fi
32587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32588 fi
32589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32591 if test `eval echo '${'$as_ac_var'}'` = yes; then
32592   cat >>confdefs.h <<_ACEOF
32593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32594 _ACEOF
32595
32596 fi
32597 done
32598
32599 fi
32600 # tgetent
32601 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32602 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
32603 eval "LIB_tgetent=$ac_res"
32604
32605 case "$ac_res" in
32606         yes)
32607         eval "ac_cv_func_tgetent=yes"
32608         eval "LIB_tgetent="
32609         cat >>confdefs.h <<_ACEOF
32610 #define $ac_tr_func 1
32611 _ACEOF
32612
32613         echo "$as_me:$LINENO: result: yes" >&5
32614 echo "${ECHO_T}yes" >&6
32615         ;;
32616         no)
32617         eval "ac_cv_func_tgetent=no"
32618         eval "LIB_tgetent="
32619         echo "$as_me:$LINENO: result: no" >&5
32620 echo "${ECHO_T}no" >&6
32621         ;;
32622         *)
32623         eval "ac_cv_func_tgetent=yes"
32624         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
32625         cat >>confdefs.h <<_ACEOF
32626 #define $ac_tr_func 1
32627 _ACEOF
32628
32629         cat >>confdefs.h <<_ACEOF
32630 #define $ac_tr_lib 1
32631 _ACEOF
32632
32633         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
32634 echo "${ECHO_T}yes, in $ac_res" >&6
32635         ;;
32636 esac
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669 for ac_func in                          \
32670         _getpty                                 \
32671         _scrsize                                \
32672         fcntl                                   \
32673         grantpt                                 \
32674         mktime                                  \
32675         ptsname                                 \
32676         rand                                    \
32677         revoke                                  \
32678         select                                  \
32679         setitimer                               \
32680         setpcred                                \
32681         setpgid                                 \
32682         setproctitle                            \
32683         setregid                                \
32684         setresgid                               \
32685         setresuid                               \
32686         setreuid                                \
32687         setsid                                  \
32688         setutent                                \
32689         sigaction                               \
32690         strstr                                  \
32691         timegm                                  \
32692         ttyname                                 \
32693         ttyslot                                 \
32694         umask                                   \
32695         unlockpt                                \
32696         vhangup                                 \
32697         yp_get_default_domain                   \
32698
32699 do
32700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32701 echo "$as_me:$LINENO: checking for $ac_func" >&5
32702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32703 if eval "test \"\${$as_ac_var+set}\" = set"; then
32704   echo $ECHO_N "(cached) $ECHO_C" >&6
32705 else
32706   cat >conftest.$ac_ext <<_ACEOF
32707 #line $LINENO "configure"
32708 #include "confdefs.h"
32709 /* System header to define __stub macros and hopefully few prototypes,
32710     which can conflict with char $ac_func (); below.  */
32711 #include <assert.h>
32712 /* Override any gcc2 internal prototype to avoid an error.  */
32713 #ifdef __cplusplus
32714 extern "C"
32715 #endif
32716 /* We use char because int might match the return type of a gcc2
32717    builtin and then its argument prototype would still apply.  */
32718 char $ac_func ();
32719 char (*f) ();
32720
32721 #ifdef F77_DUMMY_MAIN
32722 #  ifdef __cplusplus
32723      extern "C"
32724 #  endif
32725    int F77_DUMMY_MAIN() { return 1; }
32726 #endif
32727 int
32728 main ()
32729 {
32730 /* The GNU C library defines this for functions which it implements
32731     to always fail with ENOSYS.  Some functions are actually named
32732     something starting with __ and the normal name is an alias.  */
32733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32734 choke me
32735 #else
32736 f = $ac_func;
32737 #endif
32738
32739   ;
32740   return 0;
32741 }
32742 _ACEOF
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32745   (eval $ac_link) 2>&5
32746   ac_status=$?
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); } &&
32749          { ac_try='test -s conftest$ac_exeext'
32750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751   (eval $ac_try) 2>&5
32752   ac_status=$?
32753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754   (exit $ac_status); }; }; then
32755   eval "$as_ac_var=yes"
32756 else
32757   echo "$as_me: failed program was:" >&5
32758 cat conftest.$ac_ext >&5
32759 eval "$as_ac_var=no"
32760 fi
32761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32762 fi
32763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32765 if test `eval echo '${'$as_ac_var'}'` = yes; then
32766   cat >>confdefs.h <<_ACEOF
32767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32768 _ACEOF
32769
32770 fi
32771 done
32772
32773
32774
32775
32776 for ac_header in stdlib.h unistd.h
32777 do
32778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32780   echo "$as_me:$LINENO: checking for $ac_header" >&5
32781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32783   echo $ECHO_N "(cached) $ECHO_C" >&6
32784 fi
32785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32787 else
32788   # Is the header compilable?
32789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32791 cat >conftest.$ac_ext <<_ACEOF
32792 #line $LINENO "configure"
32793 #include "confdefs.h"
32794 $ac_includes_default
32795 #include <$ac_header>
32796 _ACEOF
32797 rm -f conftest.$ac_objext
32798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32799   (eval $ac_compile) 2>&5
32800   ac_status=$?
32801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802   (exit $ac_status); } &&
32803          { ac_try='test -s conftest.$ac_objext'
32804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32805   (eval $ac_try) 2>&5
32806   ac_status=$?
32807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808   (exit $ac_status); }; }; then
32809   ac_header_compiler=yes
32810 else
32811   echo "$as_me: failed program was:" >&5
32812 cat conftest.$ac_ext >&5
32813 ac_header_compiler=no
32814 fi
32815 rm -f conftest.$ac_objext conftest.$ac_ext
32816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32817 echo "${ECHO_T}$ac_header_compiler" >&6
32818
32819 # Is the header present?
32820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32822 cat >conftest.$ac_ext <<_ACEOF
32823 #line $LINENO "configure"
32824 #include "confdefs.h"
32825 #include <$ac_header>
32826 _ACEOF
32827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32829   ac_status=$?
32830   egrep -v '^ *\+' conftest.er1 >conftest.err
32831   rm -f conftest.er1
32832   cat conftest.err >&5
32833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834   (exit $ac_status); } >/dev/null; then
32835   if test -s conftest.err; then
32836     ac_cpp_err=$ac_c_preproc_warn_flag
32837   else
32838     ac_cpp_err=
32839   fi
32840 else
32841   ac_cpp_err=yes
32842 fi
32843 if test -z "$ac_cpp_err"; then
32844   ac_header_preproc=yes
32845 else
32846   echo "$as_me: failed program was:" >&5
32847   cat conftest.$ac_ext >&5
32848   ac_header_preproc=no
32849 fi
32850 rm -f conftest.err conftest.$ac_ext
32851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32852 echo "${ECHO_T}$ac_header_preproc" >&6
32853
32854 # So?  What about this header?
32855 case $ac_header_compiler:$ac_header_preproc in
32856   yes:no )
32857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32861   no:yes )
32862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32864     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32868 esac
32869 echo "$as_me:$LINENO: checking for $ac_header" >&5
32870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32872   echo $ECHO_N "(cached) $ECHO_C" >&6
32873 else
32874   eval "$as_ac_Header=$ac_header_preproc"
32875 fi
32876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32878
32879 fi
32880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32881   cat >>confdefs.h <<_ACEOF
32882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32883 _ACEOF
32884
32885 fi
32886
32887 done
32888
32889
32890 for ac_func in getpagesize
32891 do
32892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32893 echo "$as_me:$LINENO: checking for $ac_func" >&5
32894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32895 if eval "test \"\${$as_ac_var+set}\" = set"; then
32896   echo $ECHO_N "(cached) $ECHO_C" >&6
32897 else
32898   cat >conftest.$ac_ext <<_ACEOF
32899 #line $LINENO "configure"
32900 #include "confdefs.h"
32901 /* System header to define __stub macros and hopefully few prototypes,
32902     which can conflict with char $ac_func (); below.  */
32903 #include <assert.h>
32904 /* Override any gcc2 internal prototype to avoid an error.  */
32905 #ifdef __cplusplus
32906 extern "C"
32907 #endif
32908 /* We use char because int might match the return type of a gcc2
32909    builtin and then its argument prototype would still apply.  */
32910 char $ac_func ();
32911 char (*f) ();
32912
32913 #ifdef F77_DUMMY_MAIN
32914 #  ifdef __cplusplus
32915      extern "C"
32916 #  endif
32917    int F77_DUMMY_MAIN() { return 1; }
32918 #endif
32919 int
32920 main ()
32921 {
32922 /* The GNU C library defines this for functions which it implements
32923     to always fail with ENOSYS.  Some functions are actually named
32924     something starting with __ and the normal name is an alias.  */
32925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32926 choke me
32927 #else
32928 f = $ac_func;
32929 #endif
32930
32931   ;
32932   return 0;
32933 }
32934 _ACEOF
32935 rm -f conftest.$ac_objext conftest$ac_exeext
32936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32937   (eval $ac_link) 2>&5
32938   ac_status=$?
32939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940   (exit $ac_status); } &&
32941          { ac_try='test -s conftest$ac_exeext'
32942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943   (eval $ac_try) 2>&5
32944   ac_status=$?
32945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946   (exit $ac_status); }; }; then
32947   eval "$as_ac_var=yes"
32948 else
32949   echo "$as_me: failed program was:" >&5
32950 cat conftest.$ac_ext >&5
32951 eval "$as_ac_var=no"
32952 fi
32953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32954 fi
32955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32957 if test `eval echo '${'$as_ac_var'}'` = yes; then
32958   cat >>confdefs.h <<_ACEOF
32959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32960 _ACEOF
32961
32962 fi
32963 done
32964
32965 echo "$as_me:$LINENO: checking for working mmap" >&5
32966 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
32967 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32968   echo $ECHO_N "(cached) $ECHO_C" >&6
32969 else
32970   if test "$cross_compiling" = yes; then
32971   ac_cv_func_mmap_fixed_mapped=no
32972 else
32973   cat >conftest.$ac_ext <<_ACEOF
32974 #line $LINENO "configure"
32975 #include "confdefs.h"
32976 $ac_includes_default
32977 /* malloc might have been renamed as rpl_malloc. */
32978 #undef malloc
32979
32980 /* Thanks to Mike Haertel and Jim Avera for this test.
32981    Here is a matrix of mmap possibilities:
32982         mmap private not fixed
32983         mmap private fixed at somewhere currently unmapped
32984         mmap private fixed at somewhere already mapped
32985         mmap shared not fixed
32986         mmap shared fixed at somewhere currently unmapped
32987         mmap shared fixed at somewhere already mapped
32988    For private mappings, we should verify that changes cannot be read()
32989    back from the file, nor mmap's back from the file at a different
32990    address.  (There have been systems where private was not correctly
32991    implemented like the infamous i386 svr4.0, and systems where the
32992    VM page cache was not coherent with the file system buffer cache
32993    like early versions of FreeBSD and possibly contemporary NetBSD.)
32994    For shared mappings, we should conversely verify that changes get
32995    propagated back to all the places they're supposed to be.
32996
32997    Grep wants private fixed already mapped.
32998    The main things grep needs to know about mmap are:
32999    * does it exist and is it safe to write into the mmap'd area
33000    * how to use it (BSD variants)  */
33001
33002 #include <fcntl.h>
33003 #include <sys/mman.h>
33004
33005 #if !STDC_HEADERS && !HAVE_STDLIB_H
33006 char *malloc ();
33007 #endif
33008
33009 /* This mess was copied from the GNU getpagesize.h.  */
33010 #if !HAVE_GETPAGESIZE
33011 /* Assume that all systems that can run configure have sys/param.h.  */
33012 # if !HAVE_SYS_PARAM_H
33013 #  define HAVE_SYS_PARAM_H 1
33014 # endif
33015
33016 # ifdef _SC_PAGESIZE
33017 #  define getpagesize() sysconf(_SC_PAGESIZE)
33018 # else /* no _SC_PAGESIZE */
33019 #  if HAVE_SYS_PARAM_H
33020 #   include <sys/param.h>
33021 #   ifdef EXEC_PAGESIZE
33022 #    define getpagesize() EXEC_PAGESIZE
33023 #   else /* no EXEC_PAGESIZE */
33024 #    ifdef NBPG
33025 #     define getpagesize() NBPG * CLSIZE
33026 #     ifndef CLSIZE
33027 #      define CLSIZE 1
33028 #     endif /* no CLSIZE */
33029 #    else /* no NBPG */
33030 #     ifdef NBPC
33031 #      define getpagesize() NBPC
33032 #     else /* no NBPC */
33033 #      ifdef PAGESIZE
33034 #       define getpagesize() PAGESIZE
33035 #      endif /* PAGESIZE */
33036 #     endif /* no NBPC */
33037 #    endif /* no NBPG */
33038 #   endif /* no EXEC_PAGESIZE */
33039 #  else /* no HAVE_SYS_PARAM_H */
33040 #   define getpagesize() 8192   /* punt totally */
33041 #  endif /* no HAVE_SYS_PARAM_H */
33042 # endif /* no _SC_PAGESIZE */
33043
33044 #endif /* no HAVE_GETPAGESIZE */
33045
33046 int
33047 main ()
33048 {
33049   char *data, *data2, *data3;
33050   int i, pagesize;
33051   int fd;
33052
33053   pagesize = getpagesize ();
33054
33055   /* First, make a file with some known garbage in it. */
33056   data = (char *) malloc (pagesize);
33057   if (!data)
33058     exit (1);
33059   for (i = 0; i < pagesize; ++i)
33060     *(data + i) = rand ();
33061   umask (0);
33062   fd = creat ("conftest.mmap", 0600);
33063   if (fd < 0)
33064     exit (1);
33065   if (write (fd, data, pagesize) != pagesize)
33066     exit (1);
33067   close (fd);
33068
33069   /* Next, try to mmap the file at a fixed address which already has
33070      something else allocated at it.  If we can, also make sure that
33071      we see the same garbage.  */
33072   fd = open ("conftest.mmap", O_RDWR);
33073   if (fd < 0)
33074     exit (1);
33075   data2 = (char *) malloc (2 * pagesize);
33076   if (!data2)
33077     exit (1);
33078   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
33079   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33080                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33081     exit (1);
33082   for (i = 0; i < pagesize; ++i)
33083     if (*(data + i) != *(data2 + i))
33084       exit (1);
33085
33086   /* Finally, make sure that changes to the mapped area do not
33087      percolate back to the file as seen by read().  (This is a bug on
33088      some variants of i386 svr4.0.)  */
33089   for (i = 0; i < pagesize; ++i)
33090     *(data2 + i) = *(data2 + i) + 1;
33091   data3 = (char *) malloc (pagesize);
33092   if (!data3)
33093     exit (1);
33094   if (read (fd, data3, pagesize) != pagesize)
33095     exit (1);
33096   for (i = 0; i < pagesize; ++i)
33097     if (*(data + i) != *(data3 + i))
33098       exit (1);
33099   close (fd);
33100   exit (0);
33101 }
33102 _ACEOF
33103 rm -f conftest$ac_exeext
33104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33105   (eval $ac_link) 2>&5
33106   ac_status=$?
33107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33110   (eval $ac_try) 2>&5
33111   ac_status=$?
33112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113   (exit $ac_status); }; }; then
33114   ac_cv_func_mmap_fixed_mapped=yes
33115 else
33116   echo "$as_me: program exited with status $ac_status" >&5
33117 echo "$as_me: failed program was:" >&5
33118 cat conftest.$ac_ext >&5
33119 ( exit $ac_status )
33120 ac_cv_func_mmap_fixed_mapped=no
33121 fi
33122 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33123 fi
33124 fi
33125 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33126 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
33127 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33128
33129 cat >>confdefs.h <<\_ACEOF
33130 #define HAVE_MMAP 1
33131 _ACEOF
33132
33133 fi
33134 rm -f conftest.mmap
33135
33136
33137
33138
33139
33140
33141 for ac_header in capability.h sys/capability.h
33142 do
33143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33145   echo "$as_me:$LINENO: checking for $ac_header" >&5
33146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33148   echo $ECHO_N "(cached) $ECHO_C" >&6
33149 fi
33150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33152 else
33153   # Is the header compilable?
33154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33156 cat >conftest.$ac_ext <<_ACEOF
33157 #line $LINENO "configure"
33158 #include "confdefs.h"
33159 $ac_includes_default
33160 #include <$ac_header>
33161 _ACEOF
33162 rm -f conftest.$ac_objext
33163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33164   (eval $ac_compile) 2>&5
33165   ac_status=$?
33166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167   (exit $ac_status); } &&
33168          { ac_try='test -s conftest.$ac_objext'
33169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33170   (eval $ac_try) 2>&5
33171   ac_status=$?
33172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173   (exit $ac_status); }; }; then
33174   ac_header_compiler=yes
33175 else
33176   echo "$as_me: failed program was:" >&5
33177 cat conftest.$ac_ext >&5
33178 ac_header_compiler=no
33179 fi
33180 rm -f conftest.$ac_objext conftest.$ac_ext
33181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33182 echo "${ECHO_T}$ac_header_compiler" >&6
33183
33184 # Is the header present?
33185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33187 cat >conftest.$ac_ext <<_ACEOF
33188 #line $LINENO "configure"
33189 #include "confdefs.h"
33190 #include <$ac_header>
33191 _ACEOF
33192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33194   ac_status=$?
33195   egrep -v '^ *\+' conftest.er1 >conftest.err
33196   rm -f conftest.er1
33197   cat conftest.err >&5
33198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199   (exit $ac_status); } >/dev/null; then
33200   if test -s conftest.err; then
33201     ac_cpp_err=$ac_c_preproc_warn_flag
33202   else
33203     ac_cpp_err=
33204   fi
33205 else
33206   ac_cpp_err=yes
33207 fi
33208 if test -z "$ac_cpp_err"; then
33209   ac_header_preproc=yes
33210 else
33211   echo "$as_me: failed program was:" >&5
33212   cat conftest.$ac_ext >&5
33213   ac_header_preproc=no
33214 fi
33215 rm -f conftest.err conftest.$ac_ext
33216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33217 echo "${ECHO_T}$ac_header_preproc" >&6
33218
33219 # So?  What about this header?
33220 case $ac_header_compiler:$ac_header_preproc in
33221   yes:no )
33222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33226   no:yes )
33227     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33229     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
33233 esac
33234 echo "$as_me:$LINENO: checking for $ac_header" >&5
33235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33237   echo $ECHO_N "(cached) $ECHO_C" >&6
33238 else
33239   eval "$as_ac_Header=$ac_header_preproc"
33240 fi
33241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33243
33244 fi
33245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33246   cat >>confdefs.h <<_ACEOF
33247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33248 _ACEOF
33249
33250 fi
33251
33252 done
33253
33254
33255
33256
33257 for ac_func in sgi_getcapabilitybyname cap_set_proc
33258 do
33259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33260 echo "$as_me:$LINENO: checking for $ac_func" >&5
33261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33262 if eval "test \"\${$as_ac_var+set}\" = set"; then
33263   echo $ECHO_N "(cached) $ECHO_C" >&6
33264 else
33265   cat >conftest.$ac_ext <<_ACEOF
33266 #line $LINENO "configure"
33267 #include "confdefs.h"
33268 /* System header to define __stub macros and hopefully few prototypes,
33269     which can conflict with char $ac_func (); below.  */
33270 #include <assert.h>
33271 /* Override any gcc2 internal prototype to avoid an error.  */
33272 #ifdef __cplusplus
33273 extern "C"
33274 #endif
33275 /* We use char because int might match the return type of a gcc2
33276    builtin and then its argument prototype would still apply.  */
33277 char $ac_func ();
33278 char (*f) ();
33279
33280 #ifdef F77_DUMMY_MAIN
33281 #  ifdef __cplusplus
33282      extern "C"
33283 #  endif
33284    int F77_DUMMY_MAIN() { return 1; }
33285 #endif
33286 int
33287 main ()
33288 {
33289 /* The GNU C library defines this for functions which it implements
33290     to always fail with ENOSYS.  Some functions are actually named
33291     something starting with __ and the normal name is an alias.  */
33292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33293 choke me
33294 #else
33295 f = $ac_func;
33296 #endif
33297
33298   ;
33299   return 0;
33300 }
33301 _ACEOF
33302 rm -f conftest.$ac_objext conftest$ac_exeext
33303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33304   (eval $ac_link) 2>&5
33305   ac_status=$?
33306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307   (exit $ac_status); } &&
33308          { ac_try='test -s conftest$ac_exeext'
33309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310   (eval $ac_try) 2>&5
33311   ac_status=$?
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); }; }; then
33314   eval "$as_ac_var=yes"
33315 else
33316   echo "$as_me: failed program was:" >&5
33317 cat conftest.$ac_ext >&5
33318 eval "$as_ac_var=no"
33319 fi
33320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33321 fi
33322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33324 if test `eval echo '${'$as_ac_var'}'` = yes; then
33325   cat >>confdefs.h <<_ACEOF
33326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33327 _ACEOF
33328
33329 fi
33330 done
33331
33332
33333
33334
33335
33336
33337
33338 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
33339 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
33340 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
33341   echo $ECHO_N "(cached) $ECHO_C" >&6
33342 else
33343
33344 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
33345         ac_save_LIBS="$LIBS"
33346         for ac_lib in "" c_r; do
33347                 case "$ac_lib" in
33348                 "") ;;
33349                 yes) ac_lib="" ;;
33350                 no) continue ;;
33351                 -l*) ;;
33352                 *) ac_lib="-l$ac_lib" ;;
33353                 esac
33354                 LIBS=" $ac_lib  $ac_save_LIBS"
33355                 cat >conftest.$ac_ext <<_ACEOF
33356 #line $LINENO "configure"
33357 #include "confdefs.h"
33358
33359 #ifdef F77_DUMMY_MAIN
33360 #  ifdef __cplusplus
33361      extern "C"
33362 #  endif
33363    int F77_DUMMY_MAIN() { return 1; }
33364 #endif
33365 int
33366 main ()
33367 {
33368 getpwnam_r()
33369   ;
33370   return 0;
33371 }
33372 _ACEOF
33373 rm -f conftest.$ac_objext conftest$ac_exeext
33374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33375   (eval $ac_link) 2>&5
33376   ac_status=$?
33377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378   (exit $ac_status); } &&
33379          { ac_try='test -s conftest$ac_exeext'
33380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33381   (eval $ac_try) 2>&5
33382   ac_status=$?
33383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384   (exit $ac_status); }; }; then
33385   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
33386 else
33387   echo "$as_me: failed program was:" >&5
33388 cat conftest.$ac_ext >&5
33389 fi
33390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33391         done
33392         eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
33393         LIBS="$ac_save_LIBS"
33394 fi
33395
33396 fi
33397
33398
33399 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
33400
33401 if false; then
33402
33403 for ac_func in getpwnam_r
33404 do
33405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33406 echo "$as_me:$LINENO: checking for $ac_func" >&5
33407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33408 if eval "test \"\${$as_ac_var+set}\" = set"; then
33409   echo $ECHO_N "(cached) $ECHO_C" >&6
33410 else
33411   cat >conftest.$ac_ext <<_ACEOF
33412 #line $LINENO "configure"
33413 #include "confdefs.h"
33414 /* System header to define __stub macros and hopefully few prototypes,
33415     which can conflict with char $ac_func (); below.  */
33416 #include <assert.h>
33417 /* Override any gcc2 internal prototype to avoid an error.  */
33418 #ifdef __cplusplus
33419 extern "C"
33420 #endif
33421 /* We use char because int might match the return type of a gcc2
33422    builtin and then its argument prototype would still apply.  */
33423 char $ac_func ();
33424 char (*f) ();
33425
33426 #ifdef F77_DUMMY_MAIN
33427 #  ifdef __cplusplus
33428      extern "C"
33429 #  endif
33430    int F77_DUMMY_MAIN() { return 1; }
33431 #endif
33432 int
33433 main ()
33434 {
33435 /* The GNU C library defines this for functions which it implements
33436     to always fail with ENOSYS.  Some functions are actually named
33437     something starting with __ and the normal name is an alias.  */
33438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33439 choke me
33440 #else
33441 f = $ac_func;
33442 #endif
33443
33444   ;
33445   return 0;
33446 }
33447 _ACEOF
33448 rm -f conftest.$ac_objext conftest$ac_exeext
33449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33450   (eval $ac_link) 2>&5
33451   ac_status=$?
33452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453   (exit $ac_status); } &&
33454          { ac_try='test -s conftest$ac_exeext'
33455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456   (eval $ac_try) 2>&5
33457   ac_status=$?
33458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459   (exit $ac_status); }; }; then
33460   eval "$as_ac_var=yes"
33461 else
33462   echo "$as_me: failed program was:" >&5
33463 cat conftest.$ac_ext >&5
33464 eval "$as_ac_var=no"
33465 fi
33466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33467 fi
33468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33470 if test `eval echo '${'$as_ac_var'}'` = yes; then
33471   cat >>confdefs.h <<_ACEOF
33472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33473 _ACEOF
33474
33475 fi
33476 done
33477
33478 fi
33479 # getpwnam_r
33480 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33481 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33482 eval "LIB_getpwnam_r=$ac_res"
33483
33484 case "$ac_res" in
33485         yes)
33486         eval "ac_cv_func_getpwnam_r=yes"
33487         eval "LIB_getpwnam_r="
33488         cat >>confdefs.h <<_ACEOF
33489 #define $ac_tr_func 1
33490 _ACEOF
33491
33492         echo "$as_me:$LINENO: result: yes" >&5
33493 echo "${ECHO_T}yes" >&6
33494         ;;
33495         no)
33496         eval "ac_cv_func_getpwnam_r=no"
33497         eval "LIB_getpwnam_r="
33498         echo "$as_me:$LINENO: result: no" >&5
33499 echo "${ECHO_T}no" >&6
33500         ;;
33501         *)
33502         eval "ac_cv_func_getpwnam_r=yes"
33503         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
33504         cat >>confdefs.h <<_ACEOF
33505 #define $ac_tr_func 1
33506 _ACEOF
33507
33508         cat >>confdefs.h <<_ACEOF
33509 #define $ac_tr_lib 1
33510 _ACEOF
33511
33512         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
33513 echo "${ECHO_T}yes, in $ac_res" >&6
33514         ;;
33515 esac
33516
33517
33518 if test "$ac_cv_func_getpwnam_r" = yes; then
33519         echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
33520 echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
33521 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
33522   echo $ECHO_N "(cached) $ECHO_C" >&6
33523 else
33524   ac_libs="$LIBS"
33525         LIBS="$LIBS $LIB_getpwnam_r"
33526         if test "$cross_compiling" = yes; then
33527   :
33528 else
33529   cat >conftest.$ac_ext <<_ACEOF
33530 #line $LINENO "configure"
33531 #include "confdefs.h"
33532
33533 #include <pwd.h>
33534 int main()
33535 {
33536         struct passwd pw, *pwd;
33537         return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
33538 }
33539
33540 _ACEOF
33541 rm -f conftest$ac_exeext
33542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33543   (eval $ac_link) 2>&5
33544   ac_status=$?
33545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548   (eval $ac_try) 2>&5
33549   ac_status=$?
33550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551   (exit $ac_status); }; }; then
33552   ac_cv_func_getpwnam_r_posix=yes
33553 else
33554   echo "$as_me: program exited with status $ac_status" >&5
33555 echo "$as_me: failed program was:" >&5
33556 cat conftest.$ac_ext >&5
33557 ( exit $ac_status )
33558 ac_cv_func_getpwnam_r_posix=no
33559 fi
33560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33561 fi
33562 LIBS="$ac_libs"
33563 fi
33564 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
33565 echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
33566 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
33567
33568 cat >>confdefs.h <<\_ACEOF
33569 #define POSIX_GETPWNAM_R 1
33570 _ACEOF
33571
33572 fi
33573 fi
33574
33575
33576
33577
33578 for ac_func in getudbnam setlim
33579 do
33580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33581 echo "$as_me:$LINENO: checking for $ac_func" >&5
33582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33583 if eval "test \"\${$as_ac_var+set}\" = set"; then
33584   echo $ECHO_N "(cached) $ECHO_C" >&6
33585 else
33586   cat >conftest.$ac_ext <<_ACEOF
33587 #line $LINENO "configure"
33588 #include "confdefs.h"
33589 /* System header to define __stub macros and hopefully few prototypes,
33590     which can conflict with char $ac_func (); below.  */
33591 #include <assert.h>
33592 /* Override any gcc2 internal prototype to avoid an error.  */
33593 #ifdef __cplusplus
33594 extern "C"
33595 #endif
33596 /* We use char because int might match the return type of a gcc2
33597    builtin and then its argument prototype would still apply.  */
33598 char $ac_func ();
33599 char (*f) ();
33600
33601 #ifdef F77_DUMMY_MAIN
33602 #  ifdef __cplusplus
33603      extern "C"
33604 #  endif
33605    int F77_DUMMY_MAIN() { return 1; }
33606 #endif
33607 int
33608 main ()
33609 {
33610 /* The GNU C library defines this for functions which it implements
33611     to always fail with ENOSYS.  Some functions are actually named
33612     something starting with __ and the normal name is an alias.  */
33613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33614 choke me
33615 #else
33616 f = $ac_func;
33617 #endif
33618
33619   ;
33620   return 0;
33621 }
33622 _ACEOF
33623 rm -f conftest.$ac_objext conftest$ac_exeext
33624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33625   (eval $ac_link) 2>&5
33626   ac_status=$?
33627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628   (exit $ac_status); } &&
33629          { ac_try='test -s conftest$ac_exeext'
33630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33631   (eval $ac_try) 2>&5
33632   ac_status=$?
33633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634   (exit $ac_status); }; }; then
33635   eval "$as_ac_var=yes"
33636 else
33637   echo "$as_me: failed program was:" >&5
33638 cat conftest.$ac_ext >&5
33639 eval "$as_ac_var=no"
33640 fi
33641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33642 fi
33643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33645 if test `eval echo '${'$as_ac_var'}'` = yes; then
33646   cat >>confdefs.h <<_ACEOF
33647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33648 _ACEOF
33649
33650 fi
33651 done
33652
33653
33654
33655
33656
33657
33658 echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
33659 echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
33660 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
33661   echo $ECHO_N "(cached) $ECHO_C" >&6
33662 else
33663
33664 cat >conftest.$ac_ext <<_ACEOF
33665 #line $LINENO "configure"
33666 #include "confdefs.h"
33667 #include <utmp.h>
33668 #ifdef F77_DUMMY_MAIN
33669 #  ifdef __cplusplus
33670      extern "C"
33671 #  endif
33672    int F77_DUMMY_MAIN() { return 1; }
33673 #endif
33674 int
33675 main ()
33676 {
33677 struct utmp x; x.ut_addr;
33678   ;
33679   return 0;
33680 }
33681 _ACEOF
33682 rm -f conftest.$ac_objext
33683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33684   (eval $ac_compile) 2>&5
33685   ac_status=$?
33686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687   (exit $ac_status); } &&
33688          { ac_try='test -s conftest.$ac_objext'
33689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690   (eval $ac_try) 2>&5
33691   ac_status=$?
33692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693   (exit $ac_status); }; }; then
33694   ac_cv_type_struct_utmp_ut_addr=yes
33695 else
33696   echo "$as_me: failed program was:" >&5
33697 cat conftest.$ac_ext >&5
33698 ac_cv_type_struct_utmp_ut_addr=no
33699 fi
33700 rm -f conftest.$ac_objext conftest.$ac_ext
33701 fi
33702 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
33703 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
33704 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
33705
33706
33707 cat >>confdefs.h <<\_ACEOF
33708 #define HAVE_STRUCT_UTMP_UT_ADDR 1
33709 _ACEOF
33710
33711
33712 fi
33713
33714
33715
33716
33717 echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
33718 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
33719 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
33720   echo $ECHO_N "(cached) $ECHO_C" >&6
33721 else
33722
33723 cat >conftest.$ac_ext <<_ACEOF
33724 #line $LINENO "configure"
33725 #include "confdefs.h"
33726 #include <utmp.h>
33727 #ifdef F77_DUMMY_MAIN
33728 #  ifdef __cplusplus
33729      extern "C"
33730 #  endif
33731    int F77_DUMMY_MAIN() { return 1; }
33732 #endif
33733 int
33734 main ()
33735 {
33736 struct utmp x; x.ut_host;
33737   ;
33738   return 0;
33739 }
33740 _ACEOF
33741 rm -f conftest.$ac_objext
33742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33743   (eval $ac_compile) 2>&5
33744   ac_status=$?
33745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746   (exit $ac_status); } &&
33747          { ac_try='test -s conftest.$ac_objext'
33748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749   (eval $ac_try) 2>&5
33750   ac_status=$?
33751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752   (exit $ac_status); }; }; then
33753   ac_cv_type_struct_utmp_ut_host=yes
33754 else
33755   echo "$as_me: failed program was:" >&5
33756 cat conftest.$ac_ext >&5
33757 ac_cv_type_struct_utmp_ut_host=no
33758 fi
33759 rm -f conftest.$ac_objext conftest.$ac_ext
33760 fi
33761 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
33762 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
33763 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
33764
33765
33766 cat >>confdefs.h <<\_ACEOF
33767 #define HAVE_STRUCT_UTMP_UT_HOST 1
33768 _ACEOF
33769
33770
33771 fi
33772
33773
33774
33775
33776 echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
33777 echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
33778 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
33779   echo $ECHO_N "(cached) $ECHO_C" >&6
33780 else
33781
33782 cat >conftest.$ac_ext <<_ACEOF
33783 #line $LINENO "configure"
33784 #include "confdefs.h"
33785 #include <utmp.h>
33786 #ifdef F77_DUMMY_MAIN
33787 #  ifdef __cplusplus
33788      extern "C"
33789 #  endif
33790    int F77_DUMMY_MAIN() { return 1; }
33791 #endif
33792 int
33793 main ()
33794 {
33795 struct utmp x; x.ut_id;
33796   ;
33797   return 0;
33798 }
33799 _ACEOF
33800 rm -f conftest.$ac_objext
33801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33802   (eval $ac_compile) 2>&5
33803   ac_status=$?
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); } &&
33806          { ac_try='test -s conftest.$ac_objext'
33807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808   (eval $ac_try) 2>&5
33809   ac_status=$?
33810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811   (exit $ac_status); }; }; then
33812   ac_cv_type_struct_utmp_ut_id=yes
33813 else
33814   echo "$as_me: failed program was:" >&5
33815 cat conftest.$ac_ext >&5
33816 ac_cv_type_struct_utmp_ut_id=no
33817 fi
33818 rm -f conftest.$ac_objext conftest.$ac_ext
33819 fi
33820 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
33821 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
33822 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
33823
33824
33825 cat >>confdefs.h <<\_ACEOF
33826 #define HAVE_STRUCT_UTMP_UT_ID 1
33827 _ACEOF
33828
33829
33830 fi
33831
33832
33833
33834
33835 echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
33836 echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
33837 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
33838   echo $ECHO_N "(cached) $ECHO_C" >&6
33839 else
33840
33841 cat >conftest.$ac_ext <<_ACEOF
33842 #line $LINENO "configure"
33843 #include "confdefs.h"
33844 #include <utmp.h>
33845 #ifdef F77_DUMMY_MAIN
33846 #  ifdef __cplusplus
33847      extern "C"
33848 #  endif
33849    int F77_DUMMY_MAIN() { return 1; }
33850 #endif
33851 int
33852 main ()
33853 {
33854 struct utmp x; x.ut_pid;
33855   ;
33856   return 0;
33857 }
33858 _ACEOF
33859 rm -f conftest.$ac_objext
33860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33861   (eval $ac_compile) 2>&5
33862   ac_status=$?
33863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864   (exit $ac_status); } &&
33865          { ac_try='test -s conftest.$ac_objext'
33866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33867   (eval $ac_try) 2>&5
33868   ac_status=$?
33869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870   (exit $ac_status); }; }; then
33871   ac_cv_type_struct_utmp_ut_pid=yes
33872 else
33873   echo "$as_me: failed program was:" >&5
33874 cat conftest.$ac_ext >&5
33875 ac_cv_type_struct_utmp_ut_pid=no
33876 fi
33877 rm -f conftest.$ac_objext conftest.$ac_ext
33878 fi
33879 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
33880 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
33881 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
33882
33883
33884 cat >>confdefs.h <<\_ACEOF
33885 #define HAVE_STRUCT_UTMP_UT_PID 1
33886 _ACEOF
33887
33888
33889 fi
33890
33891
33892
33893
33894 echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
33895 echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
33896 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
33897   echo $ECHO_N "(cached) $ECHO_C" >&6
33898 else
33899
33900 cat >conftest.$ac_ext <<_ACEOF
33901 #line $LINENO "configure"
33902 #include "confdefs.h"
33903 #include <utmp.h>
33904 #ifdef F77_DUMMY_MAIN
33905 #  ifdef __cplusplus
33906      extern "C"
33907 #  endif
33908    int F77_DUMMY_MAIN() { return 1; }
33909 #endif
33910 int
33911 main ()
33912 {
33913 struct utmp x; x.ut_type;
33914   ;
33915   return 0;
33916 }
33917 _ACEOF
33918 rm -f conftest.$ac_objext
33919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33920   (eval $ac_compile) 2>&5
33921   ac_status=$?
33922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923   (exit $ac_status); } &&
33924          { ac_try='test -s conftest.$ac_objext'
33925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33926   (eval $ac_try) 2>&5
33927   ac_status=$?
33928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929   (exit $ac_status); }; }; then
33930   ac_cv_type_struct_utmp_ut_type=yes
33931 else
33932   echo "$as_me: failed program was:" >&5
33933 cat conftest.$ac_ext >&5
33934 ac_cv_type_struct_utmp_ut_type=no
33935 fi
33936 rm -f conftest.$ac_objext conftest.$ac_ext
33937 fi
33938 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
33939 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
33940 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
33941
33942
33943 cat >>confdefs.h <<\_ACEOF
33944 #define HAVE_STRUCT_UTMP_UT_TYPE 1
33945 _ACEOF
33946
33947
33948 fi
33949
33950
33951
33952
33953 echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
33954 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
33955 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
33956   echo $ECHO_N "(cached) $ECHO_C" >&6
33957 else
33958
33959 cat >conftest.$ac_ext <<_ACEOF
33960 #line $LINENO "configure"
33961 #include "confdefs.h"
33962 #include <utmp.h>
33963 #ifdef F77_DUMMY_MAIN
33964 #  ifdef __cplusplus
33965      extern "C"
33966 #  endif
33967    int F77_DUMMY_MAIN() { return 1; }
33968 #endif
33969 int
33970 main ()
33971 {
33972 struct utmp x; x.ut_user;
33973   ;
33974   return 0;
33975 }
33976 _ACEOF
33977 rm -f conftest.$ac_objext
33978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33979   (eval $ac_compile) 2>&5
33980   ac_status=$?
33981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982   (exit $ac_status); } &&
33983          { ac_try='test -s conftest.$ac_objext'
33984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33985   (eval $ac_try) 2>&5
33986   ac_status=$?
33987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988   (exit $ac_status); }; }; then
33989   ac_cv_type_struct_utmp_ut_user=yes
33990 else
33991   echo "$as_me: failed program was:" >&5
33992 cat conftest.$ac_ext >&5
33993 ac_cv_type_struct_utmp_ut_user=no
33994 fi
33995 rm -f conftest.$ac_objext conftest.$ac_ext
33996 fi
33997 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
33998 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
33999 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
34000
34001
34002 cat >>confdefs.h <<\_ACEOF
34003 #define HAVE_STRUCT_UTMP_UT_USER 1
34004 _ACEOF
34005
34006
34007 fi
34008
34009
34010
34011
34012 echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
34013 echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
34014 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
34015   echo $ECHO_N "(cached) $ECHO_C" >&6
34016 else
34017
34018 cat >conftest.$ac_ext <<_ACEOF
34019 #line $LINENO "configure"
34020 #include "confdefs.h"
34021 #include <utmpx.h>
34022 #ifdef F77_DUMMY_MAIN
34023 #  ifdef __cplusplus
34024      extern "C"
34025 #  endif
34026    int F77_DUMMY_MAIN() { return 1; }
34027 #endif
34028 int
34029 main ()
34030 {
34031 struct utmpx x; x.ut_exit;
34032   ;
34033   return 0;
34034 }
34035 _ACEOF
34036 rm -f conftest.$ac_objext
34037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34038   (eval $ac_compile) 2>&5
34039   ac_status=$?
34040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041   (exit $ac_status); } &&
34042          { ac_try='test -s conftest.$ac_objext'
34043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34044   (eval $ac_try) 2>&5
34045   ac_status=$?
34046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047   (exit $ac_status); }; }; then
34048   ac_cv_type_struct_utmpx_ut_exit=yes
34049 else
34050   echo "$as_me: failed program was:" >&5
34051 cat conftest.$ac_ext >&5
34052 ac_cv_type_struct_utmpx_ut_exit=no
34053 fi
34054 rm -f conftest.$ac_objext conftest.$ac_ext
34055 fi
34056 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
34057 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
34058 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
34059
34060
34061 cat >>confdefs.h <<\_ACEOF
34062 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
34063 _ACEOF
34064
34065
34066 fi
34067
34068
34069
34070
34071 echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
34072 echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
34073 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
34074   echo $ECHO_N "(cached) $ECHO_C" >&6
34075 else
34076
34077 cat >conftest.$ac_ext <<_ACEOF
34078 #line $LINENO "configure"
34079 #include "confdefs.h"
34080 #include <utmpx.h>
34081 #ifdef F77_DUMMY_MAIN
34082 #  ifdef __cplusplus
34083      extern "C"
34084 #  endif
34085    int F77_DUMMY_MAIN() { return 1; }
34086 #endif
34087 int
34088 main ()
34089 {
34090 struct utmpx x; x.ut_syslen;
34091   ;
34092   return 0;
34093 }
34094 _ACEOF
34095 rm -f conftest.$ac_objext
34096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34097   (eval $ac_compile) 2>&5
34098   ac_status=$?
34099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100   (exit $ac_status); } &&
34101          { ac_try='test -s conftest.$ac_objext'
34102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103   (eval $ac_try) 2>&5
34104   ac_status=$?
34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106   (exit $ac_status); }; }; then
34107   ac_cv_type_struct_utmpx_ut_syslen=yes
34108 else
34109   echo "$as_me: failed program was:" >&5
34110 cat conftest.$ac_ext >&5
34111 ac_cv_type_struct_utmpx_ut_syslen=no
34112 fi
34113 rm -f conftest.$ac_objext conftest.$ac_ext
34114 fi
34115 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
34116 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
34117 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
34118
34119
34120 cat >>confdefs.h <<\_ACEOF
34121 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
34122 _ACEOF
34123
34124
34125 fi
34126
34127
34128
34129 echo "$as_me:$LINENO: checking for int8_t" >&5
34130 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
34131 if test "${ac_cv_type_int8_t+set}" = set; then
34132   echo $ECHO_N "(cached) $ECHO_C" >&6
34133 else
34134   cat >conftest.$ac_ext <<_ACEOF
34135 #line $LINENO "configure"
34136 #include "confdefs.h"
34137
34138 #ifdef HAVE_INTTYPES_H
34139 #include <inttypes.h>
34140 #endif
34141 #ifdef HAVE_SYS_TYPES_H
34142 #include <sys/types.h>
34143 #endif
34144 #ifdef HAVE_SYS_BITYPES_H
34145 #include <sys/bitypes.h>
34146 #endif
34147 #ifdef HAVE_BIND_BITYPES_H
34148 #include <bind/bitypes.h>
34149 #endif
34150 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34151 #include <netinet/in6_machtypes.h>
34152 #endif
34153
34154
34155 #ifdef F77_DUMMY_MAIN
34156 #  ifdef __cplusplus
34157      extern "C"
34158 #  endif
34159    int F77_DUMMY_MAIN() { return 1; }
34160 #endif
34161 int
34162 main ()
34163 {
34164 if ((int8_t *) 0)
34165   return 0;
34166 if (sizeof (int8_t))
34167   return 0;
34168   ;
34169   return 0;
34170 }
34171 _ACEOF
34172 rm -f conftest.$ac_objext
34173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34174   (eval $ac_compile) 2>&5
34175   ac_status=$?
34176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177   (exit $ac_status); } &&
34178          { ac_try='test -s conftest.$ac_objext'
34179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34180   (eval $ac_try) 2>&5
34181   ac_status=$?
34182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183   (exit $ac_status); }; }; then
34184   ac_cv_type_int8_t=yes
34185 else
34186   echo "$as_me: failed program was:" >&5
34187 cat conftest.$ac_ext >&5
34188 ac_cv_type_int8_t=no
34189 fi
34190 rm -f conftest.$ac_objext conftest.$ac_ext
34191 fi
34192 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
34193 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
34194 if test $ac_cv_type_int8_t = yes; then
34195
34196 cat >>confdefs.h <<_ACEOF
34197 #define HAVE_INT8_T 1
34198 _ACEOF
34199
34200
34201 fi
34202 echo "$as_me:$LINENO: checking for int16_t" >&5
34203 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
34204 if test "${ac_cv_type_int16_t+set}" = set; then
34205   echo $ECHO_N "(cached) $ECHO_C" >&6
34206 else
34207   cat >conftest.$ac_ext <<_ACEOF
34208 #line $LINENO "configure"
34209 #include "confdefs.h"
34210
34211 #ifdef HAVE_INTTYPES_H
34212 #include <inttypes.h>
34213 #endif
34214 #ifdef HAVE_SYS_TYPES_H
34215 #include <sys/types.h>
34216 #endif
34217 #ifdef HAVE_SYS_BITYPES_H
34218 #include <sys/bitypes.h>
34219 #endif
34220 #ifdef HAVE_BIND_BITYPES_H
34221 #include <bind/bitypes.h>
34222 #endif
34223 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34224 #include <netinet/in6_machtypes.h>
34225 #endif
34226
34227
34228 #ifdef F77_DUMMY_MAIN
34229 #  ifdef __cplusplus
34230      extern "C"
34231 #  endif
34232    int F77_DUMMY_MAIN() { return 1; }
34233 #endif
34234 int
34235 main ()
34236 {
34237 if ((int16_t *) 0)
34238   return 0;
34239 if (sizeof (int16_t))
34240   return 0;
34241   ;
34242   return 0;
34243 }
34244 _ACEOF
34245 rm -f conftest.$ac_objext
34246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34247   (eval $ac_compile) 2>&5
34248   ac_status=$?
34249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250   (exit $ac_status); } &&
34251          { ac_try='test -s conftest.$ac_objext'
34252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253   (eval $ac_try) 2>&5
34254   ac_status=$?
34255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256   (exit $ac_status); }; }; then
34257   ac_cv_type_int16_t=yes
34258 else
34259   echo "$as_me: failed program was:" >&5
34260 cat conftest.$ac_ext >&5
34261 ac_cv_type_int16_t=no
34262 fi
34263 rm -f conftest.$ac_objext conftest.$ac_ext
34264 fi
34265 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
34266 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
34267 if test $ac_cv_type_int16_t = yes; then
34268
34269 cat >>confdefs.h <<_ACEOF
34270 #define HAVE_INT16_T 1
34271 _ACEOF
34272
34273
34274 fi
34275 echo "$as_me:$LINENO: checking for int32_t" >&5
34276 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
34277 if test "${ac_cv_type_int32_t+set}" = set; then
34278   echo $ECHO_N "(cached) $ECHO_C" >&6
34279 else
34280   cat >conftest.$ac_ext <<_ACEOF
34281 #line $LINENO "configure"
34282 #include "confdefs.h"
34283
34284 #ifdef HAVE_INTTYPES_H
34285 #include <inttypes.h>
34286 #endif
34287 #ifdef HAVE_SYS_TYPES_H
34288 #include <sys/types.h>
34289 #endif
34290 #ifdef HAVE_SYS_BITYPES_H
34291 #include <sys/bitypes.h>
34292 #endif
34293 #ifdef HAVE_BIND_BITYPES_H
34294 #include <bind/bitypes.h>
34295 #endif
34296 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34297 #include <netinet/in6_machtypes.h>
34298 #endif
34299
34300
34301 #ifdef F77_DUMMY_MAIN
34302 #  ifdef __cplusplus
34303      extern "C"
34304 #  endif
34305    int F77_DUMMY_MAIN() { return 1; }
34306 #endif
34307 int
34308 main ()
34309 {
34310 if ((int32_t *) 0)
34311   return 0;
34312 if (sizeof (int32_t))
34313   return 0;
34314   ;
34315   return 0;
34316 }
34317 _ACEOF
34318 rm -f conftest.$ac_objext
34319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34320   (eval $ac_compile) 2>&5
34321   ac_status=$?
34322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323   (exit $ac_status); } &&
34324          { ac_try='test -s conftest.$ac_objext'
34325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34326   (eval $ac_try) 2>&5
34327   ac_status=$?
34328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329   (exit $ac_status); }; }; then
34330   ac_cv_type_int32_t=yes
34331 else
34332   echo "$as_me: failed program was:" >&5
34333 cat conftest.$ac_ext >&5
34334 ac_cv_type_int32_t=no
34335 fi
34336 rm -f conftest.$ac_objext conftest.$ac_ext
34337 fi
34338 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
34339 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
34340 if test $ac_cv_type_int32_t = yes; then
34341
34342 cat >>confdefs.h <<_ACEOF
34343 #define HAVE_INT32_T 1
34344 _ACEOF
34345
34346
34347 fi
34348 echo "$as_me:$LINENO: checking for int64_t" >&5
34349 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
34350 if test "${ac_cv_type_int64_t+set}" = set; then
34351   echo $ECHO_N "(cached) $ECHO_C" >&6
34352 else
34353   cat >conftest.$ac_ext <<_ACEOF
34354 #line $LINENO "configure"
34355 #include "confdefs.h"
34356
34357 #ifdef HAVE_INTTYPES_H
34358 #include <inttypes.h>
34359 #endif
34360 #ifdef HAVE_SYS_TYPES_H
34361 #include <sys/types.h>
34362 #endif
34363 #ifdef HAVE_SYS_BITYPES_H
34364 #include <sys/bitypes.h>
34365 #endif
34366 #ifdef HAVE_BIND_BITYPES_H
34367 #include <bind/bitypes.h>
34368 #endif
34369 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34370 #include <netinet/in6_machtypes.h>
34371 #endif
34372
34373
34374 #ifdef F77_DUMMY_MAIN
34375 #  ifdef __cplusplus
34376      extern "C"
34377 #  endif
34378    int F77_DUMMY_MAIN() { return 1; }
34379 #endif
34380 int
34381 main ()
34382 {
34383 if ((int64_t *) 0)
34384   return 0;
34385 if (sizeof (int64_t))
34386   return 0;
34387   ;
34388   return 0;
34389 }
34390 _ACEOF
34391 rm -f conftest.$ac_objext
34392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34393   (eval $ac_compile) 2>&5
34394   ac_status=$?
34395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396   (exit $ac_status); } &&
34397          { ac_try='test -s conftest.$ac_objext'
34398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399   (eval $ac_try) 2>&5
34400   ac_status=$?
34401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402   (exit $ac_status); }; }; then
34403   ac_cv_type_int64_t=yes
34404 else
34405   echo "$as_me: failed program was:" >&5
34406 cat conftest.$ac_ext >&5
34407 ac_cv_type_int64_t=no
34408 fi
34409 rm -f conftest.$ac_objext conftest.$ac_ext
34410 fi
34411 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
34412 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
34413 if test $ac_cv_type_int64_t = yes; then
34414
34415 cat >>confdefs.h <<_ACEOF
34416 #define HAVE_INT64_T 1
34417 _ACEOF
34418
34419
34420 fi
34421 echo "$as_me:$LINENO: checking for u_int8_t" >&5
34422 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
34423 if test "${ac_cv_type_u_int8_t+set}" = set; then
34424   echo $ECHO_N "(cached) $ECHO_C" >&6
34425 else
34426   cat >conftest.$ac_ext <<_ACEOF
34427 #line $LINENO "configure"
34428 #include "confdefs.h"
34429
34430 #ifdef HAVE_INTTYPES_H
34431 #include <inttypes.h>
34432 #endif
34433 #ifdef HAVE_SYS_TYPES_H
34434 #include <sys/types.h>
34435 #endif
34436 #ifdef HAVE_SYS_BITYPES_H
34437 #include <sys/bitypes.h>
34438 #endif
34439 #ifdef HAVE_BIND_BITYPES_H
34440 #include <bind/bitypes.h>
34441 #endif
34442 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34443 #include <netinet/in6_machtypes.h>
34444 #endif
34445
34446
34447 #ifdef F77_DUMMY_MAIN
34448 #  ifdef __cplusplus
34449      extern "C"
34450 #  endif
34451    int F77_DUMMY_MAIN() { return 1; }
34452 #endif
34453 int
34454 main ()
34455 {
34456 if ((u_int8_t *) 0)
34457   return 0;
34458 if (sizeof (u_int8_t))
34459   return 0;
34460   ;
34461   return 0;
34462 }
34463 _ACEOF
34464 rm -f conftest.$ac_objext
34465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34466   (eval $ac_compile) 2>&5
34467   ac_status=$?
34468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469   (exit $ac_status); } &&
34470          { ac_try='test -s conftest.$ac_objext'
34471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472   (eval $ac_try) 2>&5
34473   ac_status=$?
34474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475   (exit $ac_status); }; }; then
34476   ac_cv_type_u_int8_t=yes
34477 else
34478   echo "$as_me: failed program was:" >&5
34479 cat conftest.$ac_ext >&5
34480 ac_cv_type_u_int8_t=no
34481 fi
34482 rm -f conftest.$ac_objext conftest.$ac_ext
34483 fi
34484 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
34485 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
34486 if test $ac_cv_type_u_int8_t = yes; then
34487
34488 cat >>confdefs.h <<_ACEOF
34489 #define HAVE_U_INT8_T 1
34490 _ACEOF
34491
34492
34493 fi
34494 echo "$as_me:$LINENO: checking for u_int16_t" >&5
34495 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
34496 if test "${ac_cv_type_u_int16_t+set}" = set; then
34497   echo $ECHO_N "(cached) $ECHO_C" >&6
34498 else
34499   cat >conftest.$ac_ext <<_ACEOF
34500 #line $LINENO "configure"
34501 #include "confdefs.h"
34502
34503 #ifdef HAVE_INTTYPES_H
34504 #include <inttypes.h>
34505 #endif
34506 #ifdef HAVE_SYS_TYPES_H
34507 #include <sys/types.h>
34508 #endif
34509 #ifdef HAVE_SYS_BITYPES_H
34510 #include <sys/bitypes.h>
34511 #endif
34512 #ifdef HAVE_BIND_BITYPES_H
34513 #include <bind/bitypes.h>
34514 #endif
34515 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34516 #include <netinet/in6_machtypes.h>
34517 #endif
34518
34519
34520 #ifdef F77_DUMMY_MAIN
34521 #  ifdef __cplusplus
34522      extern "C"
34523 #  endif
34524    int F77_DUMMY_MAIN() { return 1; }
34525 #endif
34526 int
34527 main ()
34528 {
34529 if ((u_int16_t *) 0)
34530   return 0;
34531 if (sizeof (u_int16_t))
34532   return 0;
34533   ;
34534   return 0;
34535 }
34536 _ACEOF
34537 rm -f conftest.$ac_objext
34538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34539   (eval $ac_compile) 2>&5
34540   ac_status=$?
34541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542   (exit $ac_status); } &&
34543          { ac_try='test -s conftest.$ac_objext'
34544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34545   (eval $ac_try) 2>&5
34546   ac_status=$?
34547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548   (exit $ac_status); }; }; then
34549   ac_cv_type_u_int16_t=yes
34550 else
34551   echo "$as_me: failed program was:" >&5
34552 cat conftest.$ac_ext >&5
34553 ac_cv_type_u_int16_t=no
34554 fi
34555 rm -f conftest.$ac_objext conftest.$ac_ext
34556 fi
34557 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
34558 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
34559 if test $ac_cv_type_u_int16_t = yes; then
34560
34561 cat >>confdefs.h <<_ACEOF
34562 #define HAVE_U_INT16_T 1
34563 _ACEOF
34564
34565
34566 fi
34567 echo "$as_me:$LINENO: checking for u_int32_t" >&5
34568 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
34569 if test "${ac_cv_type_u_int32_t+set}" = set; then
34570   echo $ECHO_N "(cached) $ECHO_C" >&6
34571 else
34572   cat >conftest.$ac_ext <<_ACEOF
34573 #line $LINENO "configure"
34574 #include "confdefs.h"
34575
34576 #ifdef HAVE_INTTYPES_H
34577 #include <inttypes.h>
34578 #endif
34579 #ifdef HAVE_SYS_TYPES_H
34580 #include <sys/types.h>
34581 #endif
34582 #ifdef HAVE_SYS_BITYPES_H
34583 #include <sys/bitypes.h>
34584 #endif
34585 #ifdef HAVE_BIND_BITYPES_H
34586 #include <bind/bitypes.h>
34587 #endif
34588 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34589 #include <netinet/in6_machtypes.h>
34590 #endif
34591
34592
34593 #ifdef F77_DUMMY_MAIN
34594 #  ifdef __cplusplus
34595      extern "C"
34596 #  endif
34597    int F77_DUMMY_MAIN() { return 1; }
34598 #endif
34599 int
34600 main ()
34601 {
34602 if ((u_int32_t *) 0)
34603   return 0;
34604 if (sizeof (u_int32_t))
34605   return 0;
34606   ;
34607   return 0;
34608 }
34609 _ACEOF
34610 rm -f conftest.$ac_objext
34611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34612   (eval $ac_compile) 2>&5
34613   ac_status=$?
34614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615   (exit $ac_status); } &&
34616          { ac_try='test -s conftest.$ac_objext'
34617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34618   (eval $ac_try) 2>&5
34619   ac_status=$?
34620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621   (exit $ac_status); }; }; then
34622   ac_cv_type_u_int32_t=yes
34623 else
34624   echo "$as_me: failed program was:" >&5
34625 cat conftest.$ac_ext >&5
34626 ac_cv_type_u_int32_t=no
34627 fi
34628 rm -f conftest.$ac_objext conftest.$ac_ext
34629 fi
34630 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
34631 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
34632 if test $ac_cv_type_u_int32_t = yes; then
34633
34634 cat >>confdefs.h <<_ACEOF
34635 #define HAVE_U_INT32_T 1
34636 _ACEOF
34637
34638
34639 fi
34640 echo "$as_me:$LINENO: checking for u_int64_t" >&5
34641 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
34642 if test "${ac_cv_type_u_int64_t+set}" = set; then
34643   echo $ECHO_N "(cached) $ECHO_C" >&6
34644 else
34645   cat >conftest.$ac_ext <<_ACEOF
34646 #line $LINENO "configure"
34647 #include "confdefs.h"
34648
34649 #ifdef HAVE_INTTYPES_H
34650 #include <inttypes.h>
34651 #endif
34652 #ifdef HAVE_SYS_TYPES_H
34653 #include <sys/types.h>
34654 #endif
34655 #ifdef HAVE_SYS_BITYPES_H
34656 #include <sys/bitypes.h>
34657 #endif
34658 #ifdef HAVE_BIND_BITYPES_H
34659 #include <bind/bitypes.h>
34660 #endif
34661 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34662 #include <netinet/in6_machtypes.h>
34663 #endif
34664
34665
34666 #ifdef F77_DUMMY_MAIN
34667 #  ifdef __cplusplus
34668      extern "C"
34669 #  endif
34670    int F77_DUMMY_MAIN() { return 1; }
34671 #endif
34672 int
34673 main ()
34674 {
34675 if ((u_int64_t *) 0)
34676   return 0;
34677 if (sizeof (u_int64_t))
34678   return 0;
34679   ;
34680   return 0;
34681 }
34682 _ACEOF
34683 rm -f conftest.$ac_objext
34684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34685   (eval $ac_compile) 2>&5
34686   ac_status=$?
34687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688   (exit $ac_status); } &&
34689          { ac_try='test -s conftest.$ac_objext'
34690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34691   (eval $ac_try) 2>&5
34692   ac_status=$?
34693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694   (exit $ac_status); }; }; then
34695   ac_cv_type_u_int64_t=yes
34696 else
34697   echo "$as_me: failed program was:" >&5
34698 cat conftest.$ac_ext >&5
34699 ac_cv_type_u_int64_t=no
34700 fi
34701 rm -f conftest.$ac_objext conftest.$ac_ext
34702 fi
34703 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
34704 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
34705 if test $ac_cv_type_u_int64_t = yes; then
34706
34707 cat >>confdefs.h <<_ACEOF
34708 #define HAVE_U_INT64_T 1
34709 _ACEOF
34710
34711
34712 fi
34713 echo "$as_me:$LINENO: checking for uint8_t" >&5
34714 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
34715 if test "${ac_cv_type_uint8_t+set}" = set; then
34716   echo $ECHO_N "(cached) $ECHO_C" >&6
34717 else
34718   cat >conftest.$ac_ext <<_ACEOF
34719 #line $LINENO "configure"
34720 #include "confdefs.h"
34721
34722 #ifdef HAVE_INTTYPES_H
34723 #include <inttypes.h>
34724 #endif
34725 #ifdef HAVE_SYS_TYPES_H
34726 #include <sys/types.h>
34727 #endif
34728 #ifdef HAVE_SYS_BITYPES_H
34729 #include <sys/bitypes.h>
34730 #endif
34731 #ifdef HAVE_BIND_BITYPES_H
34732 #include <bind/bitypes.h>
34733 #endif
34734 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34735 #include <netinet/in6_machtypes.h>
34736 #endif
34737
34738
34739 #ifdef F77_DUMMY_MAIN
34740 #  ifdef __cplusplus
34741      extern "C"
34742 #  endif
34743    int F77_DUMMY_MAIN() { return 1; }
34744 #endif
34745 int
34746 main ()
34747 {
34748 if ((uint8_t *) 0)
34749   return 0;
34750 if (sizeof (uint8_t))
34751   return 0;
34752   ;
34753   return 0;
34754 }
34755 _ACEOF
34756 rm -f conftest.$ac_objext
34757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34758   (eval $ac_compile) 2>&5
34759   ac_status=$?
34760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761   (exit $ac_status); } &&
34762          { ac_try='test -s conftest.$ac_objext'
34763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34764   (eval $ac_try) 2>&5
34765   ac_status=$?
34766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767   (exit $ac_status); }; }; then
34768   ac_cv_type_uint8_t=yes
34769 else
34770   echo "$as_me: failed program was:" >&5
34771 cat conftest.$ac_ext >&5
34772 ac_cv_type_uint8_t=no
34773 fi
34774 rm -f conftest.$ac_objext conftest.$ac_ext
34775 fi
34776 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
34777 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
34778 if test $ac_cv_type_uint8_t = yes; then
34779
34780 cat >>confdefs.h <<_ACEOF
34781 #define HAVE_UINT8_T 1
34782 _ACEOF
34783
34784
34785 fi
34786 echo "$as_me:$LINENO: checking for uint16_t" >&5
34787 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
34788 if test "${ac_cv_type_uint16_t+set}" = set; then
34789   echo $ECHO_N "(cached) $ECHO_C" >&6
34790 else
34791   cat >conftest.$ac_ext <<_ACEOF
34792 #line $LINENO "configure"
34793 #include "confdefs.h"
34794
34795 #ifdef HAVE_INTTYPES_H
34796 #include <inttypes.h>
34797 #endif
34798 #ifdef HAVE_SYS_TYPES_H
34799 #include <sys/types.h>
34800 #endif
34801 #ifdef HAVE_SYS_BITYPES_H
34802 #include <sys/bitypes.h>
34803 #endif
34804 #ifdef HAVE_BIND_BITYPES_H
34805 #include <bind/bitypes.h>
34806 #endif
34807 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34808 #include <netinet/in6_machtypes.h>
34809 #endif
34810
34811
34812 #ifdef F77_DUMMY_MAIN
34813 #  ifdef __cplusplus
34814      extern "C"
34815 #  endif
34816    int F77_DUMMY_MAIN() { return 1; }
34817 #endif
34818 int
34819 main ()
34820 {
34821 if ((uint16_t *) 0)
34822   return 0;
34823 if (sizeof (uint16_t))
34824   return 0;
34825   ;
34826   return 0;
34827 }
34828 _ACEOF
34829 rm -f conftest.$ac_objext
34830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34831   (eval $ac_compile) 2>&5
34832   ac_status=$?
34833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834   (exit $ac_status); } &&
34835          { ac_try='test -s conftest.$ac_objext'
34836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34837   (eval $ac_try) 2>&5
34838   ac_status=$?
34839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840   (exit $ac_status); }; }; then
34841   ac_cv_type_uint16_t=yes
34842 else
34843   echo "$as_me: failed program was:" >&5
34844 cat conftest.$ac_ext >&5
34845 ac_cv_type_uint16_t=no
34846 fi
34847 rm -f conftest.$ac_objext conftest.$ac_ext
34848 fi
34849 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
34850 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
34851 if test $ac_cv_type_uint16_t = yes; then
34852
34853 cat >>confdefs.h <<_ACEOF
34854 #define HAVE_UINT16_T 1
34855 _ACEOF
34856
34857
34858 fi
34859 echo "$as_me:$LINENO: checking for uint32_t" >&5
34860 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
34861 if test "${ac_cv_type_uint32_t+set}" = set; then
34862   echo $ECHO_N "(cached) $ECHO_C" >&6
34863 else
34864   cat >conftest.$ac_ext <<_ACEOF
34865 #line $LINENO "configure"
34866 #include "confdefs.h"
34867
34868 #ifdef HAVE_INTTYPES_H
34869 #include <inttypes.h>
34870 #endif
34871 #ifdef HAVE_SYS_TYPES_H
34872 #include <sys/types.h>
34873 #endif
34874 #ifdef HAVE_SYS_BITYPES_H
34875 #include <sys/bitypes.h>
34876 #endif
34877 #ifdef HAVE_BIND_BITYPES_H
34878 #include <bind/bitypes.h>
34879 #endif
34880 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34881 #include <netinet/in6_machtypes.h>
34882 #endif
34883
34884
34885 #ifdef F77_DUMMY_MAIN
34886 #  ifdef __cplusplus
34887      extern "C"
34888 #  endif
34889    int F77_DUMMY_MAIN() { return 1; }
34890 #endif
34891 int
34892 main ()
34893 {
34894 if ((uint32_t *) 0)
34895   return 0;
34896 if (sizeof (uint32_t))
34897   return 0;
34898   ;
34899   return 0;
34900 }
34901 _ACEOF
34902 rm -f conftest.$ac_objext
34903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34904   (eval $ac_compile) 2>&5
34905   ac_status=$?
34906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907   (exit $ac_status); } &&
34908          { ac_try='test -s conftest.$ac_objext'
34909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34910   (eval $ac_try) 2>&5
34911   ac_status=$?
34912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913   (exit $ac_status); }; }; then
34914   ac_cv_type_uint32_t=yes
34915 else
34916   echo "$as_me: failed program was:" >&5
34917 cat conftest.$ac_ext >&5
34918 ac_cv_type_uint32_t=no
34919 fi
34920 rm -f conftest.$ac_objext conftest.$ac_ext
34921 fi
34922 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
34923 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
34924 if test $ac_cv_type_uint32_t = yes; then
34925
34926 cat >>confdefs.h <<_ACEOF
34927 #define HAVE_UINT32_T 1
34928 _ACEOF
34929
34930
34931 fi
34932 echo "$as_me:$LINENO: checking for uint64_t" >&5
34933 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
34934 if test "${ac_cv_type_uint64_t+set}" = set; then
34935   echo $ECHO_N "(cached) $ECHO_C" >&6
34936 else
34937   cat >conftest.$ac_ext <<_ACEOF
34938 #line $LINENO "configure"
34939 #include "confdefs.h"
34940
34941 #ifdef HAVE_INTTYPES_H
34942 #include <inttypes.h>
34943 #endif
34944 #ifdef HAVE_SYS_TYPES_H
34945 #include <sys/types.h>
34946 #endif
34947 #ifdef HAVE_SYS_BITYPES_H
34948 #include <sys/bitypes.h>
34949 #endif
34950 #ifdef HAVE_BIND_BITYPES_H
34951 #include <bind/bitypes.h>
34952 #endif
34953 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
34954 #include <netinet/in6_machtypes.h>
34955 #endif
34956
34957
34958 #ifdef F77_DUMMY_MAIN
34959 #  ifdef __cplusplus
34960      extern "C"
34961 #  endif
34962    int F77_DUMMY_MAIN() { return 1; }
34963 #endif
34964 int
34965 main ()
34966 {
34967 if ((uint64_t *) 0)
34968   return 0;
34969 if (sizeof (uint64_t))
34970   return 0;
34971   ;
34972   return 0;
34973 }
34974 _ACEOF
34975 rm -f conftest.$ac_objext
34976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34977   (eval $ac_compile) 2>&5
34978   ac_status=$?
34979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980   (exit $ac_status); } &&
34981          { ac_try='test -s conftest.$ac_objext'
34982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34983   (eval $ac_try) 2>&5
34984   ac_status=$?
34985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986   (exit $ac_status); }; }; then
34987   ac_cv_type_uint64_t=yes
34988 else
34989   echo "$as_me: failed program was:" >&5
34990 cat conftest.$ac_ext >&5
34991 ac_cv_type_uint64_t=no
34992 fi
34993 rm -f conftest.$ac_objext conftest.$ac_ext
34994 fi
34995 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
34996 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
34997 if test $ac_cv_type_uint64_t = yes; then
34998
34999 cat >>confdefs.h <<_ACEOF
35000 #define HAVE_UINT64_T 1
35001 _ACEOF
35002
35003
35004 fi
35005
35006
35007
35008
35009
35010
35011 echo "$as_me:$LINENO: checking for el_init" >&5
35012 echo $ECHO_N "checking for el_init... $ECHO_C" >&6
35013 if test "${ac_cv_funclib_el_init+set}" = set; then
35014   echo $ECHO_N "(cached) $ECHO_C" >&6
35015 else
35016
35017 if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
35018         ac_save_LIBS="$LIBS"
35019         for ac_lib in "" edit; do
35020                 case "$ac_lib" in
35021                 "") ;;
35022                 yes) ac_lib="" ;;
35023                 no) continue ;;
35024                 -l*) ;;
35025                 *) ac_lib="-l$ac_lib" ;;
35026                 esac
35027                 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
35028                 cat >conftest.$ac_ext <<_ACEOF
35029 #line $LINENO "configure"
35030 #include "confdefs.h"
35031
35032 #ifdef F77_DUMMY_MAIN
35033 #  ifdef __cplusplus
35034      extern "C"
35035 #  endif
35036    int F77_DUMMY_MAIN() { return 1; }
35037 #endif
35038 int
35039 main ()
35040 {
35041 el_init()
35042   ;
35043   return 0;
35044 }
35045 _ACEOF
35046 rm -f conftest.$ac_objext conftest$ac_exeext
35047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35048   (eval $ac_link) 2>&5
35049   ac_status=$?
35050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051   (exit $ac_status); } &&
35052          { ac_try='test -s conftest$ac_exeext'
35053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35054   (eval $ac_try) 2>&5
35055   ac_status=$?
35056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35057   (exit $ac_status); }; }; then
35058   eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
35059 else
35060   echo "$as_me: failed program was:" >&5
35061 cat conftest.$ac_ext >&5
35062 fi
35063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35064         done
35065         eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
35066         LIBS="$ac_save_LIBS"
35067 fi
35068
35069 fi
35070
35071
35072 eval "ac_res=\$ac_cv_funclib_el_init"
35073
35074 if false; then
35075
35076 for ac_func in el_init
35077 do
35078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35079 echo "$as_me:$LINENO: checking for $ac_func" >&5
35080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35081 if eval "test \"\${$as_ac_var+set}\" = set"; then
35082   echo $ECHO_N "(cached) $ECHO_C" >&6
35083 else
35084   cat >conftest.$ac_ext <<_ACEOF
35085 #line $LINENO "configure"
35086 #include "confdefs.h"
35087 /* System header to define __stub macros and hopefully few prototypes,
35088     which can conflict with char $ac_func (); below.  */
35089 #include <assert.h>
35090 /* Override any gcc2 internal prototype to avoid an error.  */
35091 #ifdef __cplusplus
35092 extern "C"
35093 #endif
35094 /* We use char because int might match the return type of a gcc2
35095    builtin and then its argument prototype would still apply.  */
35096 char $ac_func ();
35097 char (*f) ();
35098
35099 #ifdef F77_DUMMY_MAIN
35100 #  ifdef __cplusplus
35101      extern "C"
35102 #  endif
35103    int F77_DUMMY_MAIN() { return 1; }
35104 #endif
35105 int
35106 main ()
35107 {
35108 /* The GNU C library defines this for functions which it implements
35109     to always fail with ENOSYS.  Some functions are actually named
35110     something starting with __ and the normal name is an alias.  */
35111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35112 choke me
35113 #else
35114 f = $ac_func;
35115 #endif
35116
35117   ;
35118   return 0;
35119 }
35120 _ACEOF
35121 rm -f conftest.$ac_objext conftest$ac_exeext
35122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35123   (eval $ac_link) 2>&5
35124   ac_status=$?
35125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126   (exit $ac_status); } &&
35127          { ac_try='test -s conftest$ac_exeext'
35128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129   (eval $ac_try) 2>&5
35130   ac_status=$?
35131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132   (exit $ac_status); }; }; then
35133   eval "$as_ac_var=yes"
35134 else
35135   echo "$as_me: failed program was:" >&5
35136 cat conftest.$ac_ext >&5
35137 eval "$as_ac_var=no"
35138 fi
35139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35140 fi
35141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35143 if test `eval echo '${'$as_ac_var'}'` = yes; then
35144   cat >>confdefs.h <<_ACEOF
35145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35146 _ACEOF
35147
35148 fi
35149 done
35150
35151 fi
35152 # el_init
35153 eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
35154 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
35155 eval "LIB_el_init=$ac_res"
35156
35157 case "$ac_res" in
35158         yes)
35159         eval "ac_cv_func_el_init=yes"
35160         eval "LIB_el_init="
35161         cat >>confdefs.h <<_ACEOF
35162 #define $ac_tr_func 1
35163 _ACEOF
35164
35165         echo "$as_me:$LINENO: result: yes" >&5
35166 echo "${ECHO_T}yes" >&6
35167         ;;
35168         no)
35169         eval "ac_cv_func_el_init=no"
35170         eval "LIB_el_init="
35171         echo "$as_me:$LINENO: result: no" >&5
35172 echo "${ECHO_T}no" >&6
35173         ;;
35174         *)
35175         eval "ac_cv_func_el_init=yes"
35176         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
35177         cat >>confdefs.h <<_ACEOF
35178 #define $ac_tr_func 1
35179 _ACEOF
35180
35181         cat >>confdefs.h <<_ACEOF
35182 #define $ac_tr_lib 1
35183 _ACEOF
35184
35185         echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
35186 echo "${ECHO_T}yes, in $ac_res" >&6
35187         ;;
35188 esac
35189
35190
35191 if test "$ac_cv_func_el_init" = yes ; then
35192         echo "$as_me:$LINENO: checking for four argument el_init" >&5
35193 echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
35194 if test "${ac_cv_func_el_init_four+set}" = set; then
35195   echo $ECHO_N "(cached) $ECHO_C" >&6
35196 else
35197
35198                 cat >conftest.$ac_ext <<_ACEOF
35199 #line $LINENO "configure"
35200 #include "confdefs.h"
35201 #include <stdio.h>
35202                         #include <histedit.h>
35203 #ifdef F77_DUMMY_MAIN
35204 #  ifdef __cplusplus
35205      extern "C"
35206 #  endif
35207    int F77_DUMMY_MAIN() { return 1; }
35208 #endif
35209 int
35210 main ()
35211 {
35212 el_init("", NULL, NULL, NULL);
35213   ;
35214   return 0;
35215 }
35216 _ACEOF
35217 rm -f conftest.$ac_objext
35218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35219   (eval $ac_compile) 2>&5
35220   ac_status=$?
35221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222   (exit $ac_status); } &&
35223          { ac_try='test -s conftest.$ac_objext'
35224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35225   (eval $ac_try) 2>&5
35226   ac_status=$?
35227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228   (exit $ac_status); }; }; then
35229   ac_cv_func_el_init_four=yes
35230 else
35231   echo "$as_me: failed program was:" >&5
35232 cat conftest.$ac_ext >&5
35233 ac_cv_func_el_init_four=no
35234 fi
35235 rm -f conftest.$ac_objext conftest.$ac_ext
35236 fi
35237 echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
35238 echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
35239         if test "$ac_cv_func_el_init_four" = yes; then
35240
35241 cat >>confdefs.h <<\_ACEOF
35242 #define HAVE_FOUR_VALUED_EL_INIT 1
35243 _ACEOF
35244
35245         fi
35246 fi
35247
35248
35249 ac_foo=no
35250 if test "$with_readline" = yes; then
35251         :
35252 elif test "$ac_cv_func_readline" = yes; then
35253         :
35254 elif test "$ac_cv_func_el_init" = yes; then
35255         ac_foo=yes
35256         LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
35257 else
35258         LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
35259 fi
35260
35261
35262 if test "$ac_foo" = yes; then
35263   el_compat_TRUE=
35264   el_compat_FALSE='#'
35265 else
35266   el_compat_TRUE='#'
35267   el_compat_FALSE=
35268 fi
35269
35270
35271 cat >>confdefs.h <<\_ACEOF
35272 #define HAVE_READLINE 1
35273 _ACEOF
35274
35275
35276
35277
35278
35279 cat >>confdefs.h <<\_ACEOF
35280 #define AUTHENTICATION 1
35281 _ACEOF
35282
35283 cat >>confdefs.h <<\_ACEOF
35284 #define ENCRYPTION 1
35285 _ACEOF
35286
35287 cat >>confdefs.h <<\_ACEOF
35288 #define DES_ENCRYPTION 1
35289 _ACEOF
35290
35291 cat >>confdefs.h <<\_ACEOF
35292 #define DIAGNOSTICS 1
35293 _ACEOF
35294
35295 cat >>confdefs.h <<\_ACEOF
35296 #define OLD_ENVIRON 1
35297 _ACEOF
35298 if false; then
35299
35300 cat >>confdefs.h <<\_ACEOF
35301 #define ENV_HACK 1
35302 _ACEOF
35303
35304 fi
35305
35306 # Simple test for streamspty, based on the existance of getmsg(), alas
35307 # this breaks on SunOS4 which have streams but BSD-like ptys
35308 #
35309 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
35310
35311 case "$host" in
35312 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
35313         ;;
35314 *)
35315         echo "$as_me:$LINENO: checking for getmsg" >&5
35316 echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
35317 if test "${ac_cv_func_getmsg+set}" = set; then
35318   echo $ECHO_N "(cached) $ECHO_C" >&6
35319 else
35320   cat >conftest.$ac_ext <<_ACEOF
35321 #line $LINENO "configure"
35322 #include "confdefs.h"
35323 /* System header to define __stub macros and hopefully few prototypes,
35324     which can conflict with char getmsg (); below.  */
35325 #include <assert.h>
35326 /* Override any gcc2 internal prototype to avoid an error.  */
35327 #ifdef __cplusplus
35328 extern "C"
35329 #endif
35330 /* We use char because int might match the return type of a gcc2
35331    builtin and then its argument prototype would still apply.  */
35332 char getmsg ();
35333 char (*f) ();
35334
35335 #ifdef F77_DUMMY_MAIN
35336 #  ifdef __cplusplus
35337      extern "C"
35338 #  endif
35339    int F77_DUMMY_MAIN() { return 1; }
35340 #endif
35341 int
35342 main ()
35343 {
35344 /* The GNU C library defines this for functions which it implements
35345     to always fail with ENOSYS.  Some functions are actually named
35346     something starting with __ and the normal name is an alias.  */
35347 #if defined (__stub_getmsg) || defined (__stub___getmsg)
35348 choke me
35349 #else
35350 f = getmsg;
35351 #endif
35352
35353   ;
35354   return 0;
35355 }
35356 _ACEOF
35357 rm -f conftest.$ac_objext conftest$ac_exeext
35358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35359   (eval $ac_link) 2>&5
35360   ac_status=$?
35361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362   (exit $ac_status); } &&
35363          { ac_try='test -s conftest$ac_exeext'
35364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35365   (eval $ac_try) 2>&5
35366   ac_status=$?
35367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368   (exit $ac_status); }; }; then
35369   ac_cv_func_getmsg=yes
35370 else
35371   echo "$as_me: failed program was:" >&5
35372 cat conftest.$ac_ext >&5
35373 ac_cv_func_getmsg=no
35374 fi
35375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35376 fi
35377 echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
35378 echo "${ECHO_T}$ac_cv_func_getmsg" >&6
35379
35380         if test "$ac_cv_func_getmsg" = "yes"; then
35381                 echo "$as_me:$LINENO: checking if getmsg works" >&5
35382 echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
35383 if test "${ac_cv_func_getmsg_works+set}" = set; then
35384   echo $ECHO_N "(cached) $ECHO_C" >&6
35385 else
35386   if test "$cross_compiling" = yes; then
35387   ac_cv_func_getmsg_works=no
35388 else
35389   cat >conftest.$ac_ext <<_ACEOF
35390 #line $LINENO "configure"
35391 #include "confdefs.h"
35392
35393                         #include <stdio.h>
35394                         #include <errno.h>
35395
35396                         int main()
35397                         {
35398                           int ret;
35399                           ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
35400                           if(ret < 0 && errno == ENOSYS)
35401                             return 1;
35402                           return 0;
35403                         }
35404
35405 _ACEOF
35406 rm -f conftest$ac_exeext
35407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35408   (eval $ac_link) 2>&5
35409   ac_status=$?
35410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35413   (eval $ac_try) 2>&5
35414   ac_status=$?
35415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416   (exit $ac_status); }; }; then
35417   ac_cv_func_getmsg_works=yes
35418 else
35419   echo "$as_me: program exited with status $ac_status" >&5
35420 echo "$as_me: failed program was:" >&5
35421 cat conftest.$ac_ext >&5
35422 ( exit $ac_status )
35423 ac_cv_func_getmsg_works=no
35424 fi
35425 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35426 fi
35427 fi
35428 echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
35429 echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
35430                 if test "$ac_cv_func_getmsg_works" = "yes"; then
35431
35432 cat >>confdefs.h <<\_ACEOF
35433 #define HAVE_GETMSG 1
35434 _ACEOF
35435
35436
35437 cat >>confdefs.h <<\_ACEOF
35438 #define STREAMSPTY 1
35439 _ACEOF
35440
35441                 fi
35442         fi
35443         ;;
35444 esac
35445
35446
35447
35448
35449
35450
35451
35452 # Extract the first word of "compile_et", so it can be a program name with args.
35453 set dummy compile_et; ac_word=$2
35454 echo "$as_me:$LINENO: checking for $ac_word" >&5
35455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35456 if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
35457   echo $ECHO_N "(cached) $ECHO_C" >&6
35458 else
35459   if test -n "$COMPILE_ET"; then
35460   ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
35461 else
35462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35463 for as_dir in $PATH
35464 do
35465   IFS=$as_save_IFS
35466   test -z "$as_dir" && as_dir=.
35467   for ac_exec_ext in '' $ac_executable_extensions; do
35468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35469     ac_cv_prog_COMPILE_ET="compile_et"
35470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35471     break 2
35472   fi
35473 done
35474 done
35475
35476 fi
35477 fi
35478 COMPILE_ET=$ac_cv_prog_COMPILE_ET
35479 if test -n "$COMPILE_ET"; then
35480   echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
35481 echo "${ECHO_T}$COMPILE_ET" >&6
35482 else
35483   echo "$as_me:$LINENO: result: no" >&5
35484 echo "${ECHO_T}no" >&6
35485 fi
35486
35487
35488 krb_cv_compile_et="no"
35489 if test "${COMPILE_ET}" = "compile_et"; then
35490
35491 echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
35492 echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
35493 cat > conftest_et.et <<'EOF'
35494 error_table conf
35495 prefix CONFTEST
35496 index 1
35497 error_code CODE1, "CODE1"
35498 index 128
35499 error_code CODE2, "CODE2"
35500 end
35501 EOF
35502 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
35503     save_CPPFLAGS="${save_CPPFLAGS}"
35504   if test -d "/usr/include/et"; then
35505     CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
35506   fi
35507     if test "$cross_compiling" = yes; then
35508   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
35509 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
35510    { (exit 1); exit 1; }; }
35511 else
35512   cat >conftest.$ac_ext <<_ACEOF
35513 #line $LINENO "configure"
35514 #include "confdefs.h"
35515
35516 #include <com_err.h>
35517 #include <string.h>
35518 #include "conftest_et.h"
35519 int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
35520
35521 _ACEOF
35522 rm -f conftest$ac_exeext
35523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35524   (eval $ac_link) 2>&5
35525   ac_status=$?
35526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529   (eval $ac_try) 2>&5
35530   ac_status=$?
35531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532   (exit $ac_status); }; }; then
35533   krb_cv_compile_et="yes"
35534 else
35535   echo "$as_me: program exited with status $ac_status" >&5
35536 echo "$as_me: failed program was:" >&5
35537 cat conftest.$ac_ext >&5
35538 ( exit $ac_status )
35539 CPPFLAGS="${save_CPPFLAGS}"
35540 fi
35541 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35542 fi
35543 fi
35544 echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
35545 echo "${ECHO_T}${krb_cv_compile_et}" >&6
35546 rm -fr conftest*
35547 fi
35548
35549 if test "${krb_cv_compile_et}" = "yes"; then
35550     krb_cv_save_LIBS="${LIBS}"
35551   LIBS="${LIBS} -lcom_err"
35552   echo "$as_me:$LINENO: checking for com_err" >&5
35553 echo $ECHO_N "checking for com_err... $ECHO_C" >&6
35554   cat >conftest.$ac_ext <<_ACEOF
35555 #line $LINENO "configure"
35556 #include "confdefs.h"
35557 #include <com_err.h>
35558 #ifdef F77_DUMMY_MAIN
35559 #  ifdef __cplusplus
35560      extern "C"
35561 #  endif
35562    int F77_DUMMY_MAIN() { return 1; }
35563 #endif
35564 int
35565 main ()
35566 {
35567
35568     const char *p;
35569     p = error_message(0);
35570
35571   ;
35572   return 0;
35573 }
35574 _ACEOF
35575 rm -f conftest.$ac_objext conftest$ac_exeext
35576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35577   (eval $ac_link) 2>&5
35578   ac_status=$?
35579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580   (exit $ac_status); } &&
35581          { ac_try='test -s conftest$ac_exeext'
35582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583   (eval $ac_try) 2>&5
35584   ac_status=$?
35585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586   (exit $ac_status); }; }; then
35587   krb_cv_com_err="yes"
35588 else
35589   echo "$as_me: failed program was:" >&5
35590 cat conftest.$ac_ext >&5
35591 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
35592 fi
35593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35594   echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
35595 echo "${ECHO_T}${krb_cv_com_err}" >&6
35596   LIBS="${krb_cv_save_LIBS}"
35597 else
35598     krb_cv_com_err="no"
35599 fi
35600
35601 if test "${krb_cv_com_err}" = "yes"; then
35602     DIR_com_err=""
35603     LIB_com_err="-lcom_err"
35604     LIB_com_err_a=""
35605     LIB_com_err_so=""
35606     { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
35607 echo "$as_me: Using the already-installed com_err" >&6;}
35608 else
35609     COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
35610     DIR_com_err="com_err"
35611     LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
35612     LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
35613     LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
35614     { echo "$as_me:$LINENO: Using our own com_err" >&5
35615 echo "$as_me: Using our own com_err" >&6;}
35616 fi
35617
35618
35619
35620
35621
35622
35623
35624
35625 echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
35626 echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
35627
35628 z='sia afskauthlib'
35629 LIB_AUTH_SUBDIRS=
35630 for i in $z; do
35631 case $i in
35632 sia)
35633 if test "$ac_cv_header_siad_h" = yes; then
35634         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
35635 fi
35636 ;;
35637 pam)
35638 case "${host}" in
35639 *-*-freebsd*)   ac_cv_want_pam_krb4=no ;;
35640 *)              ac_cv_want_pam_krb4=yes ;;
35641 esac
35642
35643 if test "$ac_cv_want_pam_krb4" = yes -a \
35644     "$ac_cv_header_security_pam_modules_h" = yes -a \
35645     "$enable_shared" = yes; then
35646         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
35647 fi
35648 ;;
35649 afskauthlib)
35650 case "${host}" in
35651 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
35652 esac
35653 ;;
35654 esac
35655 done
35656 if test "$LIB_AUTH_SUBDIRS"; then
35657         echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
35658 echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
35659 else
35660         echo "$as_me:$LINENO: result: none" >&5
35661 echo "${ECHO_T}none" >&6
35662 fi
35663
35664
35665
35666
35667 # This is done by AC_OUTPUT but we need the result here.
35668 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35670
35671
35672         x="${bindir}"
35673         eval y="$x"
35674         while test "x$y" != "x$x"; do
35675                 x="$y"
35676                 eval y="$x"
35677         done
35678
35679 cat >>confdefs.h <<_ACEOF
35680 #define BINDIR "$x"
35681 _ACEOF
35682
35683         x="${libdir}"
35684         eval y="$x"
35685         while test "x$y" != "x$x"; do
35686                 x="$y"
35687                 eval y="$x"
35688         done
35689
35690 cat >>confdefs.h <<_ACEOF
35691 #define LIBDIR "$x"
35692 _ACEOF
35693
35694         x="${libexecdir}"
35695         eval y="$x"
35696         while test "x$y" != "x$x"; do
35697                 x="$y"
35698                 eval y="$x"
35699         done
35700
35701 cat >>confdefs.h <<_ACEOF
35702 #define LIBEXECDIR "$x"
35703 _ACEOF
35704
35705         x="${localstatedir}"
35706         eval y="$x"
35707         while test "x$y" != "x$x"; do
35708                 x="$y"
35709                 eval y="$x"
35710         done
35711
35712 cat >>confdefs.h <<_ACEOF
35713 #define LOCALSTATEDIR "$x"
35714 _ACEOF
35715
35716         x="${sbindir}"
35717         eval y="$x"
35718         while test "x$y" != "x$x"; do
35719                 x="$y"
35720                 eval y="$x"
35721         done
35722
35723 cat >>confdefs.h <<_ACEOF
35724 #define SBINDIR "$x"
35725 _ACEOF
35726
35727         x="${sysconfdir}"
35728         eval y="$x"
35729         while test "x$y" != "x$x"; do
35730                 x="$y"
35731                 eval y="$x"
35732         done
35733
35734 cat >>confdefs.h <<_ACEOF
35735 #define SYSCONFDIR "$x"
35736 _ACEOF
35737
35738
35739
35740 LTLIBOBJS=`echo "$LIBOBJS" |
35741         sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
35742
35743
35744
35745
35746
35747 ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile"
35748
35749
35750 cat >confcache <<\_ACEOF
35751 # This file is a shell script that caches the results of configure
35752 # tests run on this system so they can be shared between configure
35753 # scripts and configure runs, see configure's option --config-cache.
35754 # It is not useful on other systems.  If it contains results you don't
35755 # want to keep, you may remove or edit it.
35756 #
35757 # config.status only pays attention to the cache file if you give it
35758 # the --recheck option to rerun configure.
35759 #
35760 # `ac_cv_env_foo' variables (set or unset) will be overriden when
35761 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35762 # following values.
35763
35764 _ACEOF
35765
35766 # The following way of writing the cache mishandles newlines in values,
35767 # but we know of no workaround that is simple, portable, and efficient.
35768 # So, don't put newlines in cache variables' values.
35769 # Ultrix sh set writes to stderr and can't be redirected directly,
35770 # and sets the high bit in the cache file unless we assign to the vars.
35771 {
35772   (set) 2>&1 |
35773     case `(ac_space=' '; set | grep ac_space) 2>&1` in
35774     *ac_space=\ *)
35775       # `set' does not quote correctly, so add quotes (double-quote
35776       # substitution turns \\\\ into \\, and sed turns \\ into \).
35777       sed -n \
35778         "s/'/'\\\\''/g;
35779           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35780       ;;
35781     *)
35782       # `set' quotes correctly as required by POSIX, so do not add quotes.
35783       sed -n \
35784         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35785       ;;
35786     esac;
35787 } |
35788   sed '
35789      t clear
35790      : clear
35791      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35792      t end
35793      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35794      : end' >>confcache
35795 if cmp -s $cache_file confcache; then :; else
35796   if test -w $cache_file; then
35797     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35798     cat confcache >$cache_file
35799   else
35800     echo "not updating unwritable cache $cache_file"
35801   fi
35802 fi
35803 rm -f confcache
35804
35805 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35806 # Let make expand exec_prefix.
35807 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35808
35809 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35810 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35811 # trailing colons and then remove the whole line if VPATH becomes empty
35812 # (actually we leave an empty line to preserve line numbers).
35813 if test "x$srcdir" = x.; then
35814   ac_vpsub='/^[         ]*VPATH[        ]*=/{
35815 s/:*\$(srcdir):*/:/;
35816 s/:*\${srcdir}:*/:/;
35817 s/:*@srcdir@:*/:/;
35818 s/^\([^=]*=[    ]*\):*/\1/;
35819 s/:*$//;
35820 s/^[^=]*=[      ]*$//;
35821 }'
35822 fi
35823
35824 DEFS=-DHAVE_CONFIG_H
35825
35826 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35827   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
35828 Usually this means the macro was only invoked conditionally." >&5
35829 echo "$as_me: error: conditional \"AMDEP\" was never defined.
35830 Usually this means the macro was only invoked conditionally." >&2;}
35831    { (exit 1); exit 1; }; }
35832 fi
35833 if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
35834   { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
35835 Usually this means the macro was only invoked conditionally." >&5
35836 echo "$as_me: error: conditional \"KRB4\" was never defined.
35837 Usually this means the macro was only invoked conditionally." >&2;}
35838    { (exit 1); exit 1; }; }
35839 fi
35840 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
35841   { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
35842 Usually this means the macro was only invoked conditionally." >&5
35843 echo "$as_me: error: conditional \"KRB5\" was never defined.
35844 Usually this means the macro was only invoked conditionally." >&2;}
35845    { (exit 1); exit 1; }; }
35846 fi
35847 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
35848   { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
35849 Usually this means the macro was only invoked conditionally." >&5
35850 echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
35851 Usually this means the macro was only invoked conditionally." >&2;}
35852    { (exit 1); exit 1; }; }
35853 fi
35854 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
35855   { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
35856 Usually this means the macro was only invoked conditionally." >&5
35857 echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
35858 Usually this means the macro was only invoked conditionally." >&2;}
35859    { (exit 1); exit 1; }; }
35860 fi
35861 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
35862   { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
35863 Usually this means the macro was only invoked conditionally." >&5
35864 echo "$as_me: error: conditional \"DCE\" was never defined.
35865 Usually this means the macro was only invoked conditionally." >&2;}
35866    { (exit 1); exit 1; }; }
35867 fi
35868 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
35869   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
35870 Usually this means the macro was only invoked conditionally." >&5
35871 echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
35872 Usually this means the macro was only invoked conditionally." >&2;}
35873    { (exit 1); exit 1; }; }
35874 fi
35875 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
35876   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
35877 Usually this means the macro was only invoked conditionally." >&5
35878 echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
35879 Usually this means the macro was only invoked conditionally." >&2;}
35880    { (exit 1); exit 1; }; }
35881 fi
35882 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
35883   { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
35884 Usually this means the macro was only invoked conditionally." >&5
35885 echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
35886 Usually this means the macro was only invoked conditionally." >&2;}
35887    { (exit 1); exit 1; }; }
35888 fi
35889 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
35890   { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
35891 Usually this means the macro was only invoked conditionally." >&5
35892 echo "$as_me: error: conditional \"have_err_h\" was never defined.
35893 Usually this means the macro was only invoked conditionally." >&2;}
35894    { (exit 1); exit 1; }; }
35895 fi
35896 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
35897   { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
35898 Usually this means the macro was only invoked conditionally." >&5
35899 echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
35900 Usually this means the macro was only invoked conditionally." >&2;}
35901    { (exit 1); exit 1; }; }
35902 fi
35903 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
35904   { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
35905 Usually this means the macro was only invoked conditionally." >&5
35906 echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
35907 Usually this means the macro was only invoked conditionally." >&2;}
35908    { (exit 1); exit 1; }; }
35909 fi
35910 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
35911   { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
35912 Usually this means the macro was only invoked conditionally." >&5
35913 echo "$as_me: error: conditional \"have_vis_h\" was never defined.
35914 Usually this means the macro was only invoked conditionally." >&2;}
35915    { (exit 1); exit 1; }; }
35916 fi
35917 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
35918   { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
35919 Usually this means the macro was only invoked conditionally." >&5
35920 echo "$as_me: error: conditional \"have_glob_h\" was never defined.
35921 Usually this means the macro was only invoked conditionally." >&2;}
35922    { (exit 1); exit 1; }; }
35923 fi
35924 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
35925   { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
35926 Usually this means the macro was only invoked conditionally." >&5
35927 echo "$as_me: error: conditional \"OTP\" was never defined.
35928 Usually this means the macro was only invoked conditionally." >&2;}
35929    { (exit 1); exit 1; }; }
35930 fi
35931 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
35932   { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
35933 Usually this means the macro was only invoked conditionally." >&5
35934 echo "$as_me: error: conditional \"CATMAN\" was never defined.
35935 Usually this means the macro was only invoked conditionally." >&2;}
35936    { (exit 1); exit 1; }; }
35937 fi
35938 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
35939   { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
35940 Usually this means the macro was only invoked conditionally." >&5
35941 echo "$as_me: error: conditional \"AIX\" was never defined.
35942 Usually this means the macro was only invoked conditionally." >&2;}
35943    { (exit 1); exit 1; }; }
35944 fi
35945 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
35946   { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
35947 Usually this means the macro was only invoked conditionally." >&5
35948 echo "$as_me: error: conditional \"AIX4\" was never defined.
35949 Usually this means the macro was only invoked conditionally." >&2;}
35950    { (exit 1); exit 1; }; }
35951 fi
35952 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
35953   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
35954 Usually this means the macro was only invoked conditionally." >&5
35955 echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
35956 Usually this means the macro was only invoked conditionally." >&2;}
35957    { (exit 1); exit 1; }; }
35958 fi
35959 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
35960   { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
35961 Usually this means the macro was only invoked conditionally." >&5
35962 echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
35963 Usually this means the macro was only invoked conditionally." >&2;}
35964    { (exit 1); exit 1; }; }
35965 fi
35966 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
35967   { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
35968 Usually this means the macro was only invoked conditionally." >&5
35969 echo "$as_me: error: conditional \"IRIX\" was never defined.
35970 Usually this means the macro was only invoked conditionally." >&2;}
35971    { (exit 1); exit 1; }; }
35972 fi
35973 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
35974   { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
35975 Usually this means the macro was only invoked conditionally." >&5
35976 echo "$as_me: error: conditional \"HAVE_X\" was never defined.
35977 Usually this means the macro was only invoked conditionally." >&2;}
35978    { (exit 1); exit 1; }; }
35979 fi
35980 if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
35981   { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
35982 Usually this means the macro was only invoked conditionally." >&5
35983 echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
35984 Usually this means the macro was only invoked conditionally." >&2;}
35985    { (exit 1); exit 1; }; }
35986 fi
35987 if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
35988   { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
35989 Usually this means the macro was only invoked conditionally." >&5
35990 echo "$as_me: error: conditional \"el_compat\" was never defined.
35991 Usually this means the macro was only invoked conditionally." >&2;}
35992    { (exit 1); exit 1; }; }
35993 fi
35994
35995 : ${CONFIG_STATUS=./config.status}
35996 ac_clean_files_save=$ac_clean_files
35997 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35998 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35999 echo "$as_me: creating $CONFIG_STATUS" >&6;}
36000 cat >$CONFIG_STATUS <<_ACEOF
36001 #! $SHELL
36002 # Generated by $as_me.
36003 # Run this file to recreate the current configuration.
36004 # Compiler output produced by configure, useful for debugging
36005 # configure, is in config.log if it exists.
36006
36007 debug=false
36008 SHELL=\${CONFIG_SHELL-$SHELL}
36009 _ACEOF
36010
36011 cat >>$CONFIG_STATUS <<\_ACEOF
36012
36013 ## --------------------- ##
36014 ## M4sh Initialization.  ##
36015 ## --------------------- ##
36016
36017 # Be Bourne compatible
36018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36019   emulate sh
36020   NULLCMD=:
36021 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36022   set -o posix
36023 fi
36024
36025 # NLS nuisances.
36026 # Support unset when possible.
36027 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36028   as_unset=unset
36029 else
36030   as_unset=false
36031 fi
36032
36033 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
36034     { $as_unset LANG || test "${LANG+set}" != set; } ||
36035       { LANG=C; export LANG; }
36036 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
36037     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
36038       { LC_ALL=C; export LC_ALL; }
36039 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
36040     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
36041       { LC_TIME=C; export LC_TIME; }
36042 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
36043     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
36044       { LC_CTYPE=C; export LC_CTYPE; }
36045 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
36046     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
36047       { LANGUAGE=C; export LANGUAGE; }
36048 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
36049     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
36050       { LC_COLLATE=C; export LC_COLLATE; }
36051 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
36052     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
36053       { LC_NUMERIC=C; export LC_NUMERIC; }
36054 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
36055     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
36056       { LC_MESSAGES=C; export LC_MESSAGES; }
36057
36058
36059 # Name of the executable.
36060 as_me=`(basename "$0") 2>/dev/null ||
36061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36062          X"$0" : 'X\(//\)$' \| \
36063          X"$0" : 'X\(/\)$' \| \
36064          .     : '\(.\)' 2>/dev/null ||
36065 echo X/"$0" |
36066     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36067           /^X\/\(\/\/\)$/{ s//\1/; q; }
36068           /^X\/\(\/\).*/{ s//\1/; q; }
36069           s/.*/./; q'`
36070
36071 # PATH needs CR, and LINENO needs CR and PATH.
36072 # Avoid depending upon Character Ranges.
36073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36076 as_cr_digits='0123456789'
36077 as_cr_alnum=$as_cr_Letters$as_cr_digits
36078
36079 # The user is always right.
36080 if test "${PATH_SEPARATOR+set}" != set; then
36081   echo "#! /bin/sh" >conftest.sh
36082   echo  "exit 0"   >>conftest.sh
36083   chmod +x conftest.sh
36084   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
36085     PATH_SEPARATOR=';'
36086   else
36087     PATH_SEPARATOR=:
36088   fi
36089   rm -f conftest.sh
36090 fi
36091
36092
36093   as_lineno_1=$LINENO
36094   as_lineno_2=$LINENO
36095   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36096   test "x$as_lineno_1" != "x$as_lineno_2" &&
36097   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
36098   # Find who we are.  Look in the path if we contain no path at all
36099   # relative or not.
36100   case $0 in
36101     *[\\/]* ) as_myself=$0 ;;
36102     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36103 for as_dir in $PATH
36104 do
36105   IFS=$as_save_IFS
36106   test -z "$as_dir" && as_dir=.
36107   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36108 done
36109
36110        ;;
36111   esac
36112   # We did not find ourselves, most probably we were run as `sh COMMAND'
36113   # in which case we are not to be found in the path.
36114   if test "x$as_myself" = x; then
36115     as_myself=$0
36116   fi
36117   if test ! -f "$as_myself"; then
36118     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36119 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36120    { (exit 1); exit 1; }; }
36121   fi
36122   case $CONFIG_SHELL in
36123   '')
36124     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36125 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36126 do
36127   IFS=$as_save_IFS
36128   test -z "$as_dir" && as_dir=.
36129   for as_base in sh bash ksh sh5; do
36130          case $as_dir in
36131          /*)
36132            if ("$as_dir/$as_base" -c '
36133   as_lineno_1=$LINENO
36134   as_lineno_2=$LINENO
36135   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36136   test "x$as_lineno_1" != "x$as_lineno_2" &&
36137   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
36138              CONFIG_SHELL=$as_dir/$as_base
36139              export CONFIG_SHELL
36140              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36141            fi;;
36142          esac
36143        done
36144 done
36145 ;;
36146   esac
36147
36148   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36149   # uniformly replaced by the line number.  The first 'sed' inserts a
36150   # line-number line before each line; the second 'sed' does the real
36151   # work.  The second script uses 'N' to pair each line-number line
36152   # with the numbered line, and appends trailing '-' during
36153   # substitution so that $LINENO is not a special case at line end.
36154   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36155   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
36156   sed '=' <$as_myself |
36157     sed '
36158       N
36159       s,$,-,
36160       : loop
36161       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36162       t loop
36163       s,-$,,
36164       s,^['$as_cr_digits']*\n,,
36165     ' >$as_me.lineno &&
36166   chmod +x $as_me.lineno ||
36167     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36168 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36169    { (exit 1); exit 1; }; }
36170
36171   # Don't try to exec as it changes $[0], causing all sort of problems
36172   # (the dirname of $[0] is not the place where we might find the
36173   # original and so on.  Autoconf is especially sensible to this).
36174   . ./$as_me.lineno
36175   # Exit status is that of the last command.
36176   exit
36177 }
36178
36179
36180 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36181   *c*,-n*) ECHO_N= ECHO_C='
36182 ' ECHO_T='      ' ;;
36183   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36184   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
36185 esac
36186
36187 if expr a : '\(a\)' >/dev/null 2>&1; then
36188   as_expr=expr
36189 else
36190   as_expr=false
36191 fi
36192
36193 rm -f conf$$ conf$$.exe conf$$.file
36194 echo >conf$$.file
36195 if ln -s conf$$.file conf$$ 2>/dev/null; then
36196   # We could just check for DJGPP; but this test a) works b) is more generic
36197   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36198   if test -f conf$$.exe; then
36199     # Don't use ln at all; we don't have any links
36200     as_ln_s='cp -p'
36201   else
36202     as_ln_s='ln -s'
36203   fi
36204 elif ln conf$$.file conf$$ 2>/dev/null; then
36205   as_ln_s=ln
36206 else
36207   as_ln_s='cp -p'
36208 fi
36209 rm -f conf$$ conf$$.exe conf$$.file
36210
36211 as_executable_p="test -f"
36212
36213 # Sed expression to map a string onto a valid CPP name.
36214 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36215
36216 # Sed expression to map a string onto a valid variable name.
36217 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36218
36219
36220 # IFS
36221 # We need space, tab and new line, in precisely that order.
36222 as_nl='
36223 '
36224 IFS="   $as_nl"
36225
36226 # CDPATH.
36227 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
36228
36229 exec 6>&1
36230
36231 # Open the log real soon, to keep \$[0] and so on meaningful, and to
36232 # report actual input values of CONFIG_FILES etc. instead of their
36233 # values after options handling.  Logging --version etc. is OK.
36234 exec 5>>config.log
36235 {
36236   echo
36237   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36238 ## Running $as_me. ##
36239 _ASBOX
36240 } >&5
36241 cat >&5 <<_CSEOF
36242
36243 This file was extended by Heimdal $as_me 0.5.1, which was
36244 generated by GNU Autoconf 2.53.  Invocation command line was
36245
36246   CONFIG_FILES    = $CONFIG_FILES
36247   CONFIG_HEADERS  = $CONFIG_HEADERS
36248   CONFIG_LINKS    = $CONFIG_LINKS
36249   CONFIG_COMMANDS = $CONFIG_COMMANDS
36250   $ $0 $@
36251
36252 _CSEOF
36253 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36254 echo >&5
36255 _ACEOF
36256
36257 # Files that config.status was made for.
36258 if test -n "$ac_config_files"; then
36259   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36260 fi
36261
36262 if test -n "$ac_config_headers"; then
36263   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36264 fi
36265
36266 if test -n "$ac_config_links"; then
36267   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36268 fi
36269
36270 if test -n "$ac_config_commands"; then
36271   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36272 fi
36273
36274 cat >>$CONFIG_STATUS <<\_ACEOF
36275
36276 ac_cs_usage="\
36277 \`$as_me' instantiates files from templates according to the
36278 current configuration.
36279
36280 Usage: $0 [OPTIONS] [FILE]...
36281
36282   -h, --help       print this help, then exit
36283   -V, --version    print version number, then exit
36284   -d, --debug      don't remove temporary files
36285       --recheck    update $as_me by reconfiguring in the same conditions
36286   --file=FILE[:TEMPLATE]
36287                    instantiate the configuration file FILE
36288   --header=FILE[:TEMPLATE]
36289                    instantiate the configuration header FILE
36290
36291 Configuration files:
36292 $config_files
36293
36294 Configuration headers:
36295 $config_headers
36296
36297 Configuration commands:
36298 $config_commands
36299
36300 Report bugs to <bug-autoconf@gnu.org>."
36301 _ACEOF
36302
36303 cat >>$CONFIG_STATUS <<_ACEOF
36304 ac_cs_version="\\
36305 Heimdal config.status 0.5.1
36306 configured by $0, generated by GNU Autoconf 2.53,
36307   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36308
36309 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36310 Free Software Foundation, Inc.
36311 This config.status script is free software; the Free Software Foundation
36312 gives unlimited permission to copy, distribute and modify it."
36313 srcdir=$srcdir
36314 INSTALL="$INSTALL"
36315 _ACEOF
36316
36317 cat >>$CONFIG_STATUS <<\_ACEOF
36318 # If no file are specified by the user, then we need to provide default
36319 # value.  By we need to know if files were specified by the user.
36320 ac_need_defaults=:
36321 while test $# != 0
36322 do
36323   case $1 in
36324   --*=*)
36325     ac_option=`expr "x$1" : 'x\([^=]*\)='`
36326     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36327     shift
36328     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
36329     shift
36330     ;;
36331   -*);;
36332   *) # This is not an option, so the user has probably given explicit
36333      # arguments.
36334      ac_need_defaults=false;;
36335   esac
36336
36337   case $1 in
36338   # Handling of the options.
36339 _ACEOF
36340 cat >>$CONFIG_STATUS <<_ACEOF
36341   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36342     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
36343     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
36344 _ACEOF
36345 cat >>$CONFIG_STATUS <<\_ACEOF
36346   --version | --vers* | -V )
36347     echo "$ac_cs_version"; exit 0 ;;
36348   --he | --h)
36349     # Conflict between --help and --header
36350     { { echo "$as_me:$LINENO: error: ambiguous option: $1
36351 Try \`$0 --help' for more information." >&5
36352 echo "$as_me: error: ambiguous option: $1
36353 Try \`$0 --help' for more information." >&2;}
36354    { (exit 1); exit 1; }; };;
36355   --help | --hel | -h )
36356     echo "$ac_cs_usage"; exit 0 ;;
36357   --debug | --d* | -d )
36358     debug=: ;;
36359   --file | --fil | --fi | --f )
36360     shift
36361     CONFIG_FILES="$CONFIG_FILES $1"
36362     ac_need_defaults=false;;
36363   --header | --heade | --head | --hea )
36364     shift
36365     CONFIG_HEADERS="$CONFIG_HEADERS $1"
36366     ac_need_defaults=false;;
36367
36368   # This is an error.
36369   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36370 Try \`$0 --help' for more information." >&5
36371 echo "$as_me: error: unrecognized option: $1
36372 Try \`$0 --help' for more information." >&2;}
36373    { (exit 1); exit 1; }; } ;;
36374
36375   *) ac_config_targets="$ac_config_targets $1" ;;
36376
36377   esac
36378   shift
36379 done
36380
36381 _ACEOF
36382
36383 cat >>$CONFIG_STATUS <<_ACEOF
36384 #
36385 # INIT-COMMANDS section.
36386 #
36387
36388 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36389
36390 _ACEOF
36391
36392
36393
36394 cat >>$CONFIG_STATUS <<\_ACEOF
36395 for ac_config_target in $ac_config_targets
36396 do
36397   case "$ac_config_target" in
36398   # Handling of arguments.
36399   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36400   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
36401   "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
36402   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
36403   "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
36404   "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
36405   "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
36406   "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
36407   "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
36408   "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
36409   "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
36410   "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
36411   "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
36412   "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
36413   "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
36414   "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
36415   "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
36416   "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
36417   "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
36418   "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
36419   "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
36420   "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
36421   "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
36422   "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
36423   "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
36424   "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
36425   "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
36426   "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
36427   "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
36428   "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
36429   "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
36430   "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
36431   "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
36432   "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
36433   "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
36434   "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
36435   "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
36436   "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
36437   "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
36438   "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
36439   "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
36440   "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
36441   "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
36442   "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
36443   "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
36444   "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
36445   "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
36446   "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
36447   "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
36448   "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
36449   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36450   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
36451   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36452   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
36453   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36454 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36455    { (exit 1); exit 1; }; };;
36456   esac
36457 done
36458
36459 # If the user did not use the arguments to specify the items to instantiate,
36460 # then the envvar interface is used.  Set only those that are not.
36461 # We use the long form for the default assignment because of an extremely
36462 # bizarre bug on SunOS 4.1.3.
36463 if $ac_need_defaults; then
36464   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36465   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36466   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36467 fi
36468
36469 # Create a temporary directory, and hook for its removal unless debugging.
36470 $debug ||
36471 {
36472   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36473   trap '{ (exit 1); exit 1; }' 1 2 13 15
36474 }
36475
36476 # Create a (secure) tmp directory for tmp files.
36477 : ${TMPDIR=/tmp}
36478 {
36479   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
36480   test -n "$tmp" && test -d "$tmp"
36481 }  ||
36482 {
36483   tmp=$TMPDIR/cs$$-$RANDOM
36484   (umask 077 && mkdir $tmp)
36485 } ||
36486 {
36487    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
36488    { (exit 1); exit 1; }
36489 }
36490
36491 _ACEOF
36492
36493 cat >>$CONFIG_STATUS <<_ACEOF
36494
36495 #
36496 # CONFIG_FILES section.
36497 #
36498
36499 # No need to generate the scripts if there are no CONFIG_FILES.
36500 # This happens for instance when ./config.status config.h
36501 if test -n "\$CONFIG_FILES"; then
36502   # Protect against being on the right side of a sed subst in config.status.
36503   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36504    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36505 s,@SHELL@,$SHELL,;t t
36506 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36507 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36508 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36509 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36510 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36511 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36512 s,@exec_prefix@,$exec_prefix,;t t
36513 s,@prefix@,$prefix,;t t
36514 s,@program_transform_name@,$program_transform_name,;t t
36515 s,@bindir@,$bindir,;t t
36516 s,@sbindir@,$sbindir,;t t
36517 s,@libexecdir@,$libexecdir,;t t
36518 s,@datadir@,$datadir,;t t
36519 s,@sysconfdir@,$sysconfdir,;t t
36520 s,@sharedstatedir@,$sharedstatedir,;t t
36521 s,@localstatedir@,$localstatedir,;t t
36522 s,@libdir@,$libdir,;t t
36523 s,@includedir@,$includedir,;t t
36524 s,@oldincludedir@,$oldincludedir,;t t
36525 s,@infodir@,$infodir,;t t
36526 s,@mandir@,$mandir,;t t
36527 s,@build_alias@,$build_alias,;t t
36528 s,@host_alias@,$host_alias,;t t
36529 s,@target_alias@,$target_alias,;t t
36530 s,@DEFS@,$DEFS,;t t
36531 s,@ECHO_C@,$ECHO_C,;t t
36532 s,@ECHO_N@,$ECHO_N,;t t
36533 s,@ECHO_T@,$ECHO_T,;t t
36534 s,@LIBS@,$LIBS,;t t
36535 s,@CC@,$CC,;t t
36536 s,@CFLAGS@,$CFLAGS,;t t
36537 s,@LDFLAGS@,$LDFLAGS,;t t
36538 s,@CPPFLAGS@,$CPPFLAGS,;t t
36539 s,@ac_ct_CC@,$ac_ct_CC,;t t
36540 s,@EXEEXT@,$EXEEXT,;t t
36541 s,@OBJEXT@,$OBJEXT,;t t
36542 s,@CPP@,$CPP,;t t
36543 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36544 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36545 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36546 s,@PACKAGE@,$PACKAGE,;t t
36547 s,@VERSION@,$VERSION,;t t
36548 s,@ACLOCAL@,$ACLOCAL,;t t
36549 s,@AUTOCONF@,$AUTOCONF,;t t
36550 s,@AUTOMAKE@,$AUTOMAKE,;t t
36551 s,@AUTOHEADER@,$AUTOHEADER,;t t
36552 s,@MAKEINFO@,$MAKEINFO,;t t
36553 s,@AMTAR@,$AMTAR,;t t
36554 s,@install_sh@,$install_sh,;t t
36555 s,@STRIP@,$STRIP,;t t
36556 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36557 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
36558 s,@AWK@,$AWK,;t t
36559 s,@SET_MAKE@,$SET_MAKE,;t t
36560 s,@DEPDIR@,$DEPDIR,;t t
36561 s,@am__include@,$am__include,;t t
36562 s,@am__quote@,$am__quote,;t t
36563 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
36564 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
36565 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
36566 s,@CCDEPMODE@,$CCDEPMODE,;t t
36567 s,@build@,$build,;t t
36568 s,@build_cpu@,$build_cpu,;t t
36569 s,@build_vendor@,$build_vendor,;t t
36570 s,@build_os@,$build_os,;t t
36571 s,@host@,$host,;t t
36572 s,@host_cpu@,$host_cpu,;t t
36573 s,@host_vendor@,$host_vendor,;t t
36574 s,@host_os@,$host_os,;t t
36575 s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
36576 s,@YACC@,$YACC,;t t
36577 s,@LEX@,$LEX,;t t
36578 s,@LEXLIB@,$LEXLIB,;t t
36579 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36580 s,@LN_S@,$LN_S,;t t
36581 s,@ECHO@,$ECHO,;t t
36582 s,@RANLIB@,$RANLIB,;t t
36583 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36584 s,@LIBTOOL@,$LIBTOOL,;t t
36585 s,@WFLAGS@,$WFLAGS,;t t
36586 s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
36587 s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
36588 s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
36589 s,@LIB_openldap@,$LIB_openldap,;t t
36590 s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
36591 s,@LIB_krb4@,$LIB_krb4,;t t
36592 s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
36593 s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
36594 s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
36595 s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
36596 s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
36597 s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
36598 s,@KRB4_TRUE@,$KRB4_TRUE,;t t
36599 s,@KRB4_FALSE@,$KRB4_FALSE,;t t
36600 s,@KRB5_TRUE@,$KRB5_TRUE,;t t
36601 s,@KRB5_FALSE@,$KRB5_FALSE,;t t
36602 s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
36603 s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
36604 s,@LIB_kdb@,$LIB_kdb,;t t
36605 s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
36606 s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
36607 s,@DIR_des@,$DIR_des,;t t
36608 s,@INCLUDE_des@,$INCLUDE_des,;t t
36609 s,@LIB_des@,$LIB_des,;t t
36610 s,@LIB_des_a@,$LIB_des_a,;t t
36611 s,@LIB_des_so@,$LIB_des_so,;t t
36612 s,@LIB_des_appl@,$LIB_des_appl,;t t
36613 s,@DCE_TRUE@,$DCE_TRUE,;t t
36614 s,@DCE_FALSE@,$DCE_FALSE,;t t
36615 s,@dpagaix_cflags@,$dpagaix_cflags,;t t
36616 s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
36617 s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
36618 s,@LIB_db_create@,$LIB_db_create,;t t
36619 s,@LIB_dbopen@,$LIB_dbopen,;t t
36620 s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
36621 s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
36622 s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
36623 s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
36624 s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
36625 s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
36626 s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
36627 s,@DBLIB@,$DBLIB,;t t
36628 s,@LIB_NDBM@,$LIB_NDBM,;t t
36629 s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
36630 s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
36631 s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
36632 s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
36633 s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
36634 s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
36635 s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
36636 s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
36637 s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
36638 s,@LIB_socket@,$LIB_socket,;t t
36639 s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
36640 s,@LIB_syslog@,$LIB_syslog,;t t
36641 s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
36642 s,@LIB_res_search@,$LIB_res_search,;t t
36643 s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t
36644 s,@LIB_dn_expand@,$LIB_dn_expand,;t t
36645 s,@LIBOBJS@,$LIBOBJS,;t t
36646 s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
36647 s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
36648 s,@LIB_getsockopt@,$LIB_getsockopt,;t t
36649 s,@LIB_setsockopt@,$LIB_setsockopt,;t t
36650 s,@LIB_hstrerror@,$LIB_hstrerror,;t t
36651 s,@LIB_bswap16@,$LIB_bswap16,;t t
36652 s,@LIB_bswap32@,$LIB_bswap32,;t t
36653 s,@LIB_pidfile@,$LIB_pidfile,;t t
36654 s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
36655 s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
36656 s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
36657 s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
36658 s,@LIB_crypt@,$LIB_crypt,;t t
36659 s,@DIR_roken@,$DIR_roken,;t t
36660 s,@LIB_roken@,$LIB_roken,;t t
36661 s,@INCLUDES_roken@,$INCLUDES_roken,;t t
36662 s,@LIB_otp@,$LIB_otp,;t t
36663 s,@OTP_TRUE@,$OTP_TRUE,;t t
36664 s,@OTP_FALSE@,$OTP_FALSE,;t t
36665 s,@LIB_security@,$LIB_security,;t t
36666 s,@NROFF@,$NROFF,;t t
36667 s,@GROFF@,$GROFF,;t t
36668 s,@CATMAN@,$CATMAN,;t t
36669 s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
36670 s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
36671 s,@CATMANEXT@,$CATMANEXT,;t t
36672 s,@INCLUDE_readline@,$INCLUDE_readline,;t t
36673 s,@LIB_readline@,$LIB_readline,;t t
36674 s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
36675 s,@LIB_hesiod@,$LIB_hesiod,;t t
36676 s,@AIX_TRUE@,$AIX_TRUE,;t t
36677 s,@AIX_FALSE@,$AIX_FALSE,;t t
36678 s,@AIX4_TRUE@,$AIX4_TRUE,;t t
36679 s,@AIX4_FALSE@,$AIX4_FALSE,;t t
36680 s,@LIB_dlopen@,$LIB_dlopen,;t t
36681 s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
36682 s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
36683 s,@LIB_loadquery@,$LIB_loadquery,;t t
36684 s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
36685 s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
36686 s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
36687 s,@IRIX_TRUE@,$IRIX_TRUE,;t t
36688 s,@IRIX_FALSE@,$IRIX_FALSE,;t t
36689 s,@X_CFLAGS@,$X_CFLAGS,;t t
36690 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36691 s,@X_LIBS@,$X_LIBS,;t t
36692 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36693 s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
36694 s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
36695 s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
36696 s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
36697 s,@LIB_XauFileName@,$LIB_XauFileName,;t t
36698 s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
36699 s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
36700 s,@LIB_logwtmp@,$LIB_logwtmp,;t t
36701 s,@LIB_logout@,$LIB_logout,;t t
36702 s,@LIB_openpty@,$LIB_openpty,;t t
36703 s,@LIB_tgetent@,$LIB_tgetent,;t t
36704 s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
36705 s,@LIB_el_init@,$LIB_el_init,;t t
36706 s,@el_compat_TRUE@,$el_compat_TRUE,;t t
36707 s,@el_compat_FALSE@,$el_compat_FALSE,;t t
36708 s,@COMPILE_ET@,$COMPILE_ET,;t t
36709 s,@DIR_com_err@,$DIR_com_err,;t t
36710 s,@LIB_com_err@,$LIB_com_err,;t t
36711 s,@LIB_com_err_a@,$LIB_com_err_a,;t t
36712 s,@LIB_com_err_so@,$LIB_com_err_so,;t t
36713 s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
36714 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36715 CEOF
36716
36717 _ACEOF
36718
36719   cat >>$CONFIG_STATUS <<\_ACEOF
36720   # Split the substitutions into bite-sized pieces for seds with
36721   # small command number limits, like on Digital OSF/1 and HP-UX.
36722   ac_max_sed_lines=48
36723   ac_sed_frag=1 # Number of current file.
36724   ac_beg=1 # First line for current file.
36725   ac_end=$ac_max_sed_lines # Line after last line for current file.
36726   ac_more_lines=:
36727   ac_sed_cmds=
36728   while $ac_more_lines; do
36729     if test $ac_beg -gt 1; then
36730       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36731     else
36732       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36733     fi
36734     if test ! -s $tmp/subs.frag; then
36735       ac_more_lines=false
36736     else
36737       # The purpose of the label and of the branching condition is to
36738       # speed up the sed processing (if there are no `@' at all, there
36739       # is no need to browse any of the substitutions).
36740       # These are the two extra sed commands mentioned above.
36741       (echo ':t
36742   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36743       if test -z "$ac_sed_cmds"; then
36744         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36745       else
36746         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36747       fi
36748       ac_sed_frag=`expr $ac_sed_frag + 1`
36749       ac_beg=$ac_end
36750       ac_end=`expr $ac_end + $ac_max_sed_lines`
36751     fi
36752   done
36753   if test -z "$ac_sed_cmds"; then
36754     ac_sed_cmds=cat
36755   fi
36756 fi # test -n "$CONFIG_FILES"
36757
36758 _ACEOF
36759 cat >>$CONFIG_STATUS <<\_ACEOF
36760 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36761   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36762   case $ac_file in
36763   - | *:- | *:-:* ) # input from stdin
36764         cat >$tmp/stdin
36765         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36766         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36767   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36768         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36769   * )   ac_file_in=$ac_file.in ;;
36770   esac
36771
36772   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36773   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36775          X"$ac_file" : 'X\(//\)[^/]' \| \
36776          X"$ac_file" : 'X\(//\)$' \| \
36777          X"$ac_file" : 'X\(/\)' \| \
36778          .     : '\(.\)' 2>/dev/null ||
36779 echo X"$ac_file" |
36780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36781           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36782           /^X\(\/\/\)$/{ s//\1/; q; }
36783           /^X\(\/\).*/{ s//\1/; q; }
36784           s/.*/./; q'`
36785   { case "$ac_dir" in
36786   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
36787   *)                      as_incr_dir=.;;
36788 esac
36789 as_dummy="$ac_dir"
36790 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
36791   case $as_mkdir_dir in
36792     # Skip DOS drivespec
36793     ?:) as_incr_dir=$as_mkdir_dir ;;
36794     *)
36795       as_incr_dir=$as_incr_dir/$as_mkdir_dir
36796       test -d "$as_incr_dir" ||
36797         mkdir "$as_incr_dir" ||
36798         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
36799 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
36800    { (exit 1); exit 1; }; }
36801     ;;
36802   esac
36803 done; }
36804
36805   ac_builddir=.
36806
36807 if test "$ac_dir" != .; then
36808   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36809   # A "../" for each directory in $ac_dir_suffix.
36810   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36811 else
36812   ac_dir_suffix= ac_top_builddir=
36813 fi
36814
36815 case $srcdir in
36816   .)  # No --srcdir option.  We are building in place.
36817     ac_srcdir=.
36818     if test -z "$ac_top_builddir"; then
36819        ac_top_srcdir=.
36820     else
36821        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36822     fi ;;
36823   [\\/]* | ?:[\\/]* )  # Absolute path.
36824     ac_srcdir=$srcdir$ac_dir_suffix;
36825     ac_top_srcdir=$srcdir ;;
36826   *) # Relative path.
36827     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36828     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36829 esac
36830 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36831 # absolute.
36832 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36833 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
36834 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36835 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36836
36837
36838   case $INSTALL in
36839   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36840   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
36841   esac
36842
36843   if test x"$ac_file" != x-; then
36844     { echo "$as_me:$LINENO: creating $ac_file" >&5
36845 echo "$as_me: creating $ac_file" >&6;}
36846     rm -f "$ac_file"
36847   fi
36848   # Let's still pretend it is `configure' which instantiates (i.e., don't
36849   # use $as_me), people would be surprised to read:
36850   #    /* config.h.  Generated by config.status.  */
36851   if test x"$ac_file" = x-; then
36852     configure_input=
36853   else
36854     configure_input="$ac_file.  "
36855   fi
36856   configure_input=$configure_input"Generated from `echo $ac_file_in |
36857                                      sed 's,.*/,,'` by configure."
36858
36859   # First look for the input files in the build tree, otherwise in the
36860   # src tree.
36861   ac_file_inputs=`IFS=:
36862     for f in $ac_file_in; do
36863       case $f in
36864       -) echo $tmp/stdin ;;
36865       [\\/$]*)
36866          # Absolute (can't be DOS-style, as IFS=:)
36867          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36868 echo "$as_me: error: cannot find input file: $f" >&2;}
36869    { (exit 1); exit 1; }; }
36870          echo $f;;
36871       *) # Relative
36872          if test -f "$f"; then
36873            # Build tree
36874            echo $f
36875          elif test -f "$srcdir/$f"; then
36876            # Source tree
36877            echo $srcdir/$f
36878          else
36879            # /dev/null tree
36880            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36881 echo "$as_me: error: cannot find input file: $f" >&2;}
36882    { (exit 1); exit 1; }; }
36883          fi;;
36884       esac
36885     done` || { (exit 1); exit 1; }
36886 _ACEOF
36887 cat >>$CONFIG_STATUS <<_ACEOF
36888   sed "$ac_vpsub
36889 $extrasub
36890 _ACEOF
36891 cat >>$CONFIG_STATUS <<\_ACEOF
36892 :t
36893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36894 s,@configure_input@,$configure_input,;t t
36895 s,@srcdir@,$ac_srcdir,;t t
36896 s,@abs_srcdir@,$ac_abs_srcdir,;t t
36897 s,@top_srcdir@,$ac_top_srcdir,;t t
36898 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36899 s,@builddir@,$ac_builddir,;t t
36900 s,@abs_builddir@,$ac_abs_builddir,;t t
36901 s,@top_builddir@,$ac_top_builddir,;t t
36902 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36903 s,@INSTALL@,$ac_INSTALL,;t t
36904 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36905   rm -f $tmp/stdin
36906   if test x"$ac_file" != x-; then
36907     mv $tmp/out $ac_file
36908   else
36909     cat $tmp/out
36910     rm -f $tmp/out
36911   fi
36912
36913 done
36914 _ACEOF
36915 cat >>$CONFIG_STATUS <<\_ACEOF
36916
36917 #
36918 # CONFIG_HEADER section.
36919 #
36920
36921 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36922 # NAME is the cpp macro being defined and VALUE is the value it is being given.
36923 #
36924 # ac_d sets the value in "#define NAME VALUE" lines.
36925 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
36926 ac_dB='[        ].*$,\1#\2'
36927 ac_dC=' '
36928 ac_dD=',;t'
36929 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36930 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
36931 ac_uB='$,\1#\2define\3'
36932 ac_uC=' '
36933 ac_uD=',;t'
36934
36935 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36936   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36937   case $ac_file in
36938   - | *:- | *:-:* ) # input from stdin
36939         cat >$tmp/stdin
36940         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36941         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36942   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36943         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36944   * )   ac_file_in=$ac_file.in ;;
36945   esac
36946
36947   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36948 echo "$as_me: creating $ac_file" >&6;}
36949
36950   # First look for the input files in the build tree, otherwise in the
36951   # src tree.
36952   ac_file_inputs=`IFS=:
36953     for f in $ac_file_in; do
36954       case $f in
36955       -) echo $tmp/stdin ;;
36956       [\\/$]*)
36957          # Absolute (can't be DOS-style, as IFS=:)
36958          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36959 echo "$as_me: error: cannot find input file: $f" >&2;}
36960    { (exit 1); exit 1; }; }
36961          echo $f;;
36962       *) # Relative
36963          if test -f "$f"; then
36964            # Build tree
36965            echo $f
36966          elif test -f "$srcdir/$f"; then
36967            # Source tree
36968            echo $srcdir/$f
36969          else
36970            # /dev/null tree
36971            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36972 echo "$as_me: error: cannot find input file: $f" >&2;}
36973    { (exit 1); exit 1; }; }
36974          fi;;
36975       esac
36976     done` || { (exit 1); exit 1; }
36977   # Remove the trailing spaces.
36978   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
36979
36980 _ACEOF
36981
36982 # Transform confdefs.h into two sed scripts, `conftest.defines' and
36983 # `conftest.undefs', that substitutes the proper values into
36984 # config.h.in to produce config.h.  The first handles `#define'
36985 # templates, and the second `#undef' templates.
36986 # And first: Protect against being on the right side of a sed subst in
36987 # config.status.  Protect against being in an unquoted here document
36988 # in config.status.
36989 rm -f conftest.defines conftest.undefs
36990 # Using a here document instead of a string reduces the quoting nightmare.
36991 # Putting comments in sed scripts is not portable.
36992 #
36993 # `end' is used to avoid that the second main sed command (meant for
36994 # 0-ary CPP macros) applies to n-ary macro definitions.
36995 # See the Autoconf documentation for `clear'.
36996 cat >confdef2sed.sed <<\_ACEOF
36997 s/[\\&,]/\\&/g
36998 s,[\\$`],\\&,g
36999 t clear
37000 : clear
37001 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
37002 t end
37003 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
37004 : end
37005 _ACEOF
37006 # If some macros were called several times there might be several times
37007 # the same #defines, which is useless.  Nevertheless, we may not want to
37008 # sort them, since we want the *last* AC-DEFINE to be honored.
37009 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37010 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37011 rm -f confdef2sed.sed
37012
37013 # This sed command replaces #undef with comments.  This is necessary, for
37014 # example, in the case of _POSIX_SOURCE, which is predefined and required
37015 # on some systems where configure will not decide to define it.
37016 cat >>conftest.undefs <<\_ACEOF
37017 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
37018 _ACEOF
37019
37020 # Break up conftest.defines because some shells have a limit on the size
37021 # of here documents, and old seds have small limits too (100 cmds).
37022 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
37023 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
37024 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37025 echo '  :' >>$CONFIG_STATUS
37026 rm -f conftest.tail
37027 while grep . conftest.defines >/dev/null
37028 do
37029   # Write a limited-size here document to $tmp/defines.sed.
37030   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37031   # Speed up: don't consider the non `#define' lines.
37032   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
37033   # Work around the forget-to-reset-the-flag bug.
37034   echo 't clr' >>$CONFIG_STATUS
37035   echo ': clr' >>$CONFIG_STATUS
37036   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37037   echo 'CEOF
37038   sed -f $tmp/defines.sed $tmp/in >$tmp/out
37039   rm -f $tmp/in
37040   mv $tmp/out $tmp/in
37041 ' >>$CONFIG_STATUS
37042   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37043   rm -f conftest.defines
37044   mv conftest.tail conftest.defines
37045 done
37046 rm -f conftest.defines
37047 echo '  fi # egrep' >>$CONFIG_STATUS
37048 echo >>$CONFIG_STATUS
37049
37050 # Break up conftest.undefs because some shells have a limit on the size
37051 # of here documents, and old seds have small limits too (100 cmds).
37052 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
37053 rm -f conftest.tail
37054 while grep . conftest.undefs >/dev/null
37055 do
37056   # Write a limited-size here document to $tmp/undefs.sed.
37057   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37058   # Speed up: don't consider the non `#undef'
37059   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
37060   # Work around the forget-to-reset-the-flag bug.
37061   echo 't clr' >>$CONFIG_STATUS
37062   echo ': clr' >>$CONFIG_STATUS
37063   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
37064   echo 'CEOF
37065   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37066   rm -f $tmp/in
37067   mv $tmp/out $tmp/in
37068 ' >>$CONFIG_STATUS
37069   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37070   rm -f conftest.undefs
37071   mv conftest.tail conftest.undefs
37072 done
37073 rm -f conftest.undefs
37074
37075 cat >>$CONFIG_STATUS <<\_ACEOF
37076   # Let's still pretend it is `configure' which instantiates (i.e., don't
37077   # use $as_me), people would be surprised to read:
37078   #    /* config.h.  Generated by config.status.  */
37079   if test x"$ac_file" = x-; then
37080     echo "/* Generated by configure.  */" >$tmp/config.h
37081   else
37082     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
37083   fi
37084   cat $tmp/in >>$tmp/config.h
37085   rm -f $tmp/in
37086   if test x"$ac_file" != x-; then
37087     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
37088       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37089 echo "$as_me: $ac_file is unchanged" >&6;}
37090     else
37091       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37093          X"$ac_file" : 'X\(//\)[^/]' \| \
37094          X"$ac_file" : 'X\(//\)$' \| \
37095          X"$ac_file" : 'X\(/\)' \| \
37096          .     : '\(.\)' 2>/dev/null ||
37097 echo X"$ac_file" |
37098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37099           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37100           /^X\(\/\/\)$/{ s//\1/; q; }
37101           /^X\(\/\).*/{ s//\1/; q; }
37102           s/.*/./; q'`
37103       { case "$ac_dir" in
37104   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
37105   *)                      as_incr_dir=.;;
37106 esac
37107 as_dummy="$ac_dir"
37108 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
37109   case $as_mkdir_dir in
37110     # Skip DOS drivespec
37111     ?:) as_incr_dir=$as_mkdir_dir ;;
37112     *)
37113       as_incr_dir=$as_incr_dir/$as_mkdir_dir
37114       test -d "$as_incr_dir" ||
37115         mkdir "$as_incr_dir" ||
37116         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
37117 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
37118    { (exit 1); exit 1; }; }
37119     ;;
37120   esac
37121 done; }
37122
37123       rm -f $ac_file
37124       mv $tmp/config.h $ac_file
37125     fi
37126   else
37127     cat $tmp/config.h
37128     rm -f $tmp/config.h
37129   fi
37130   # Run the commands associated with the file.
37131   case $ac_file in
37132     include/config.h ) # update the timestamp
37133 echo 'timestamp for include/config.h' >"include/stamp-h1"
37134  ;;
37135   esac
37136 done
37137 _ACEOF
37138 cat >>$CONFIG_STATUS <<\_ACEOF
37139
37140 #
37141 # CONFIG_COMMANDS section.
37142 #
37143 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37144   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37145   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37146   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37147 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37148          X"$ac_dest" : 'X\(//\)[^/]' \| \
37149          X"$ac_dest" : 'X\(//\)$' \| \
37150          X"$ac_dest" : 'X\(/\)' \| \
37151          .     : '\(.\)' 2>/dev/null ||
37152 echo X"$ac_dest" |
37153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37154           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37155           /^X\(\/\/\)$/{ s//\1/; q; }
37156           /^X\(\/\).*/{ s//\1/; q; }
37157           s/.*/./; q'`
37158   ac_builddir=.
37159
37160 if test "$ac_dir" != .; then
37161   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37162   # A "../" for each directory in $ac_dir_suffix.
37163   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37164 else
37165   ac_dir_suffix= ac_top_builddir=
37166 fi
37167
37168 case $srcdir in
37169   .)  # No --srcdir option.  We are building in place.
37170     ac_srcdir=.
37171     if test -z "$ac_top_builddir"; then
37172        ac_top_srcdir=.
37173     else
37174        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37175     fi ;;
37176   [\\/]* | ?:[\\/]* )  # Absolute path.
37177     ac_srcdir=$srcdir$ac_dir_suffix;
37178     ac_top_srcdir=$srcdir ;;
37179   *) # Relative path.
37180     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37181     ac_top_srcdir=$ac_top_builddir$srcdir ;;
37182 esac
37183 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37184 # absolute.
37185 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37186 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
37187 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37188 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37189
37190
37191   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37192 echo "$as_me: executing $ac_dest commands" >&6;}
37193   case $ac_dest in
37194     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37195   # Strip MF so we end up with the name of the file.
37196   mf=`echo "$mf" | sed -e 's/:.*$//'`
37197   if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
37198     dirpart=`(dirname "$mf") 2>/dev/null ||
37199 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37200          X"$mf" : 'X\(//\)[^/]' \| \
37201          X"$mf" : 'X\(//\)$' \| \
37202          X"$mf" : 'X\(/\)' \| \
37203          .     : '\(.\)' 2>/dev/null ||
37204 echo X"$mf" |
37205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37206           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37207           /^X\(\/\/\)$/{ s//\1/; q; }
37208           /^X\(\/\).*/{ s//\1/; q; }
37209           s/.*/./; q'`
37210   else
37211     continue
37212   fi
37213   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
37214   # Extract the definition of DEP_FILES from the Makefile without
37215   # running `make'.
37216   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
37217   test -z "$DEPDIR" && continue
37218   # When using ansi2knr, U may be empty or an underscore; expand it
37219   U=`sed -n -e '/^U = / s///p' < "$mf"`
37220   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
37221   # We invoke sed twice because it is the simplest approach to
37222   # changing $(DEPDIR) to its actual value in the expansion.
37223   for file in `sed -n -e '
37224     /^DEP_FILES = .*\\\\$/ {
37225       s/^DEP_FILES = //
37226       :loop
37227         s/\\\\$//
37228         p
37229         n
37230         /\\\\$/ b loop
37231       p
37232     }
37233     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
37234        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37235     # Make sure the directory exists.
37236     test -f "$dirpart/$file" && continue
37237     fdir=`(dirname "$file") 2>/dev/null ||
37238 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37239          X"$file" : 'X\(//\)[^/]' \| \
37240          X"$file" : 'X\(//\)$' \| \
37241          X"$file" : 'X\(/\)' \| \
37242          .     : '\(.\)' 2>/dev/null ||
37243 echo X"$file" |
37244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37245           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37246           /^X\(\/\/\)$/{ s//\1/; q; }
37247           /^X\(\/\).*/{ s//\1/; q; }
37248           s/.*/./; q'`
37249     { case $dirpart/$fdir in
37250   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
37251   *)                      as_incr_dir=.;;
37252 esac
37253 as_dummy=$dirpart/$fdir
37254 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
37255   case $as_mkdir_dir in
37256     # Skip DOS drivespec
37257     ?:) as_incr_dir=$as_mkdir_dir ;;
37258     *)
37259       as_incr_dir=$as_incr_dir/$as_mkdir_dir
37260       test -d "$as_incr_dir" ||
37261         mkdir "$as_incr_dir" ||
37262         { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
37263 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
37264    { (exit 1); exit 1; }; }
37265     ;;
37266   esac
37267 done; }
37268
37269     # echo "creating $dirpart/$file"
37270     echo '# dummy' > "$dirpart/$file"
37271   done
37272 done
37273  ;;
37274   esac
37275 done
37276 _ACEOF
37277
37278 cat >>$CONFIG_STATUS <<\_ACEOF
37279
37280 { (exit 0); exit 0; }
37281 _ACEOF
37282 chmod +x $CONFIG_STATUS
37283 ac_clean_files=$ac_clean_files_save
37284
37285
37286 # configure is writing to config.log, and then calls config.status.
37287 # config.status does its own redirection, appending to config.log.
37288 # Unfortunately, on DOS this fails, as config.log is still kept open
37289 # by configure, so config.status won't be able to write to it; its
37290 # output is simply discarded.  So we exec the FD to /dev/null,
37291 # effectively closing config.log, so it can be properly (re)opened and
37292 # appended to by config.status.  When coming back to configure, we
37293 # need to make the FD available again.
37294 if test "$no_create" != yes; then
37295   ac_cs_success=:
37296   exec 5>/dev/null
37297   $SHELL $CONFIG_STATUS || ac_cs_success=false
37298   exec 5>>config.log
37299   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37300   # would make configure fail if this is the last instruction.
37301   $ac_cs_success || { (exit 1); exit 1; }
37302 fi
37303
37304
37305
37306 cat > include/newversion.h.in <<EOF
37307 const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
37308 const char *heimdal_version = "Heimdal 0.5.1";
37309 EOF
37310
37311 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
37312         echo "include/version.h is unchanged"
37313         rm -f include/newversion.h.in
37314 else
37315         echo "creating include/version.h"
37316         User=${USER-${LOGNAME}}
37317         Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
37318         Date=`date`
37319         mv -f include/newversion.h.in include/version.h.in
37320         sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
37321 fi