]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - crypto/heimdal/configure.lineno
Remove some parts of the Heimdal distribution which we do not use
[FreeBSD/FreeBSD.git] / crypto / heimdal / configure.lineno
1 #! /bin/sh
2 # From configure.in Revision: 1.320 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for Heimdal 0.4f.
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=259
260   as_lineno_2=260
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=298
299   as_lineno_2=299
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 313
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 318 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.4f'
420 PACKAGE_STRING='Heimdal 0.4f'
421 PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se'
422
423 ac_default_prefix=/usr/heimdal
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461
462 # Initialize some variables set by options.
463 ac_init_help=
464 ac_init_version=false
465 # The variables have the same names as the options, with
466 # dashes changed to underlines.
467 cache_file=/dev/null
468 exec_prefix=NONE
469 no_create=
470 no_recursion=
471 prefix=NONE
472 program_prefix=NONE
473 program_suffix=NONE
474 program_transform_name=s,x,x,
475 silent=
476 site=
477 srcdir=
478 verbose=
479 x_includes=NONE
480 x_libraries=NONE
481
482 # Installation directory options.
483 # These are left unexpanded so users can "make install exec_prefix=/foo"
484 # and all the variables that are supposed to be based on exec_prefix
485 # by default will actually change.
486 # Use braces instead of parens because sh, perl, etc. also accept them.
487 bindir='${exec_prefix}/bin'
488 sbindir='${exec_prefix}/sbin'
489 libexecdir='${exec_prefix}/libexec'
490 datadir='${prefix}/share'
491 sysconfdir='${prefix}/etc'
492 sharedstatedir='${prefix}/com'
493 localstatedir='${prefix}/var'
494 libdir='${exec_prefix}/lib'
495 includedir='${prefix}/include'
496 oldincludedir='/usr/include'
497 infodir='${prefix}/info'
498 mandir='${prefix}/man'
499
500 ac_prev=
501 for ac_option
502 do
503   # If the previous option needs an argument, assign it.
504   if test -n "$ac_prev"; then
505     eval "$ac_prev=\$ac_option"
506     ac_prev=
507     continue
508   fi
509
510   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
511
512   # Accept the important Cygnus configure options, so we can diagnose typos.
513
514   case $ac_option in
515
516   -bindir | --bindir | --bindi | --bind | --bin | --bi)
517     ac_prev=bindir ;;
518   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
519     bindir=$ac_optarg ;;
520
521   -build | --build | --buil | --bui | --bu)
522     ac_prev=build_alias ;;
523   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
524     build_alias=$ac_optarg ;;
525
526   -cache-file | --cache-file | --cache-fil | --cache-fi \
527   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
528     ac_prev=cache_file ;;
529   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
530   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
531     cache_file=$ac_optarg ;;
532
533   --config-cache | -C)
534     cache_file=config.cache ;;
535
536   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
537     ac_prev=datadir ;;
538   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
539   | --da=*)
540     datadir=$ac_optarg ;;
541
542   -disable-* | --disable-*)
543     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
544     # Reject names that are not valid shell variable names.
545     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
546       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
547    { (exit 1); exit 1; }; }
548     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
549     eval "enable_$ac_feature=no" ;;
550
551   -enable-* | --enable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     case $ac_option in
559       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560       *) ac_optarg=yes ;;
561     esac
562     eval "enable_$ac_feature='$ac_optarg'" ;;
563
564   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
565   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
566   | --exec | --exe | --ex)
567     ac_prev=exec_prefix ;;
568   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
569   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
570   | --exec=* | --exe=* | --ex=*)
571     exec_prefix=$ac_optarg ;;
572
573   -gas | --gas | --ga | --g)
574     # Obsolete; use --with-gas.
575     with_gas=yes ;;
576
577   -help | --help | --hel | --he | -h)
578     ac_init_help=long ;;
579   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
580     ac_init_help=recursive ;;
581   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
582     ac_init_help=short ;;
583
584   -host | --host | --hos | --ho)
585     ac_prev=host_alias ;;
586   -host=* | --host=* | --hos=* | --ho=*)
587     host_alias=$ac_optarg ;;
588
589   -includedir | --includedir | --includedi | --included | --include \
590   | --includ | --inclu | --incl | --inc)
591     ac_prev=includedir ;;
592   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
593   | --includ=* | --inclu=* | --incl=* | --inc=*)
594     includedir=$ac_optarg ;;
595
596   -infodir | --infodir | --infodi | --infod | --info | --inf)
597     ac_prev=infodir ;;
598   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
599     infodir=$ac_optarg ;;
600
601   -libdir | --libdir | --libdi | --libd)
602     ac_prev=libdir ;;
603   -libdir=* | --libdir=* | --libdi=* | --libd=*)
604     libdir=$ac_optarg ;;
605
606   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
607   | --libexe | --libex | --libe)
608     ac_prev=libexecdir ;;
609   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
610   | --libexe=* | --libex=* | --libe=*)
611     libexecdir=$ac_optarg ;;
612
613   -localstatedir | --localstatedir | --localstatedi | --localstated \
614   | --localstate | --localstat | --localsta | --localst \
615   | --locals | --local | --loca | --loc | --lo)
616     ac_prev=localstatedir ;;
617   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
618   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
619   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
620     localstatedir=$ac_optarg ;;
621
622   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
623     ac_prev=mandir ;;
624   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
625     mandir=$ac_optarg ;;
626
627   -nfp | --nfp | --nf)
628     # Obsolete; use --without-fp.
629     with_fp=no ;;
630
631   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
632   | --no-cr | --no-c | -n)
633     no_create=yes ;;
634
635   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
636   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
637     no_recursion=yes ;;
638
639   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
640   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
641   | --oldin | --oldi | --old | --ol | --o)
642     ac_prev=oldincludedir ;;
643   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
644   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
645   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
646     oldincludedir=$ac_optarg ;;
647
648   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
649     ac_prev=prefix ;;
650   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
651     prefix=$ac_optarg ;;
652
653   -program-prefix | --program-prefix | --program-prefi | --program-pref \
654   | --program-pre | --program-pr | --program-p)
655     ac_prev=program_prefix ;;
656   -program-prefix=* | --program-prefix=* | --program-prefi=* \
657   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
658     program_prefix=$ac_optarg ;;
659
660   -program-suffix | --program-suffix | --program-suffi | --program-suff \
661   | --program-suf | --program-su | --program-s)
662     ac_prev=program_suffix ;;
663   -program-suffix=* | --program-suffix=* | --program-suffi=* \
664   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
665     program_suffix=$ac_optarg ;;
666
667   -program-transform-name | --program-transform-name \
668   | --program-transform-nam | --program-transform-na \
669   | --program-transform-n | --program-transform- \
670   | --program-transform | --program-transfor \
671   | --program-transfo | --program-transf \
672   | --program-trans | --program-tran \
673   | --progr-tra | --program-tr | --program-t)
674     ac_prev=program_transform_name ;;
675   -program-transform-name=* | --program-transform-name=* \
676   | --program-transform-nam=* | --program-transform-na=* \
677   | --program-transform-n=* | --program-transform-=* \
678   | --program-transform=* | --program-transfor=* \
679   | --program-transfo=* | --program-transf=* \
680   | --program-trans=* | --program-tran=* \
681   | --progr-tra=* | --program-tr=* | --program-t=*)
682     program_transform_name=$ac_optarg ;;
683
684   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
685   | -silent | --silent | --silen | --sile | --sil)
686     silent=yes ;;
687
688   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
689     ac_prev=sbindir ;;
690   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
691   | --sbi=* | --sb=*)
692     sbindir=$ac_optarg ;;
693
694   -sharedstatedir | --sharedstatedir | --sharedstatedi \
695   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
696   | --sharedst | --shareds | --shared | --share | --shar \
697   | --sha | --sh)
698     ac_prev=sharedstatedir ;;
699   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
700   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
701   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
702   | --sha=* | --sh=*)
703     sharedstatedir=$ac_optarg ;;
704
705   -site | --site | --sit)
706     ac_prev=site ;;
707   -site=* | --site=* | --sit=*)
708     site=$ac_optarg ;;
709
710   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
711     ac_prev=srcdir ;;
712   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
713     srcdir=$ac_optarg ;;
714
715   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
716   | --syscon | --sysco | --sysc | --sys | --sy)
717     ac_prev=sysconfdir ;;
718   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
719   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
720     sysconfdir=$ac_optarg ;;
721
722   -target | --target | --targe | --targ | --tar | --ta | --t)
723     ac_prev=target_alias ;;
724   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
725     target_alias=$ac_optarg ;;
726
727   -v | -verbose | --verbose | --verbos | --verbo | --verb)
728     verbose=yes ;;
729
730   -version | --version | --versio | --versi | --vers | -V)
731     ac_init_version=: ;;
732
733   -with-* | --with-*)
734     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
735     # Reject names that are not valid shell variable names.
736     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
737       { echo "$as_me: error: invalid package name: $ac_package" >&2
738    { (exit 1); exit 1; }; }
739     ac_package=`echo $ac_package| sed 's/-/_/g'`
740     case $ac_option in
741       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
742       *) ac_optarg=yes ;;
743     esac
744     eval "with_$ac_package='$ac_optarg'" ;;
745
746   -without-* | --without-*)
747     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
748     # Reject names that are not valid shell variable names.
749     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750       { echo "$as_me: error: invalid package name: $ac_package" >&2
751    { (exit 1); exit 1; }; }
752     ac_package=`echo $ac_package | sed 's/-/_/g'`
753     eval "with_$ac_package=no" ;;
754
755   --x)
756     # Obsolete; use --with-x.
757     with_x=yes ;;
758
759   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
760   | --x-incl | --x-inc | --x-in | --x-i)
761     ac_prev=x_includes ;;
762   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
763   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
764     x_includes=$ac_optarg ;;
765
766   -x-libraries | --x-libraries | --x-librarie | --x-librari \
767   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
768     ac_prev=x_libraries ;;
769   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
770   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
771     x_libraries=$ac_optarg ;;
772
773   -*) { echo "$as_me: error: unrecognized option: $ac_option
774 Try \`$0 --help' for more information." >&2
775    { (exit 1); exit 1; }; }
776     ;;
777
778   *=*)
779     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
780     # Reject names that are not valid shell variable names.
781     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
782       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
783    { (exit 1); exit 1; }; }
784     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
785     eval "$ac_envvar='$ac_optarg'"
786     export $ac_envvar ;;
787
788   *)
789     # FIXME: should be removed in autoconf 3.0.
790     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
791     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
792       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
793     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
794     ;;
795
796   esac
797 done
798
799 if test -n "$ac_prev"; then
800   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
801   { echo "$as_me: error: missing argument to $ac_option" >&2
802    { (exit 1); exit 1; }; }
803 fi
804
805 # Be sure to have absolute paths.
806 for ac_var in exec_prefix prefix
807 do
808   eval ac_val=$`echo $ac_var`
809   case $ac_val in
810     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
811     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
812    { (exit 1); exit 1; }; };;
813   esac
814 done
815
816 # Be sure to have absolute paths.
817 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
818               localstatedir libdir includedir oldincludedir infodir mandir
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # There might be people who depend on the old broken behavior: `$host'
829 # used to hold the argument of --host etc.
830 # FIXME: To remove some day.
831 build=$build_alias
832 host=$host_alias
833 target=$target_alias
834
835 # FIXME: To remove some day.
836 if test "x$host_alias" != x; then
837   if test "x$build_alias" = x; then
838     cross_compiling=maybe
839     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
840     If a cross compiler is detected then cross compile mode will be used." >&2
841   elif test "x$build_alias" != "x$host_alias"; then
842     cross_compiling=yes
843   fi
844 fi
845
846 ac_tool_prefix=
847 test -n "$host_alias" && ac_tool_prefix=$host_alias-
848
849 test "$silent" = yes && exec 6>/dev/null
850
851
852 # Find the source files, if location was not specified.
853 if test -z "$srcdir"; then
854   ac_srcdir_defaulted=yes
855   # Try the directory containing this script, then its parent.
856   ac_confdir=`(dirname "$0") 2>/dev/null ||
857 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
858          X"$0" : 'X\(//\)[^/]' \| \
859          X"$0" : 'X\(//\)$' \| \
860          X"$0" : 'X\(/\)' \| \
861          .     : '\(.\)' 2>/dev/null ||
862 echo X"$0" |
863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
865           /^X\(\/\/\)$/{ s//\1/; q; }
866           /^X\(\/\).*/{ s//\1/; q; }
867           s/.*/./; q'`
868   srcdir=$ac_confdir
869   if test ! -r $srcdir/$ac_unique_file; then
870     srcdir=..
871   fi
872 else
873   ac_srcdir_defaulted=no
874 fi
875 if test ! -r $srcdir/$ac_unique_file; then
876   if test "$ac_srcdir_defaulted" = yes; then
877     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
878    { (exit 1); exit 1; }; }
879   else
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
881    { (exit 1); exit 1; }; }
882   fi
883 fi
884 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
885 ac_env_build_alias_set=${build_alias+set}
886 ac_env_build_alias_value=$build_alias
887 ac_cv_env_build_alias_set=${build_alias+set}
888 ac_cv_env_build_alias_value=$build_alias
889 ac_env_host_alias_set=${host_alias+set}
890 ac_env_host_alias_value=$host_alias
891 ac_cv_env_host_alias_set=${host_alias+set}
892 ac_cv_env_host_alias_value=$host_alias
893 ac_env_target_alias_set=${target_alias+set}
894 ac_env_target_alias_value=$target_alias
895 ac_cv_env_target_alias_set=${target_alias+set}
896 ac_cv_env_target_alias_value=$target_alias
897 ac_env_CC_set=${CC+set}
898 ac_env_CC_value=$CC
899 ac_cv_env_CC_set=${CC+set}
900 ac_cv_env_CC_value=$CC
901 ac_env_CFLAGS_set=${CFLAGS+set}
902 ac_env_CFLAGS_value=$CFLAGS
903 ac_cv_env_CFLAGS_set=${CFLAGS+set}
904 ac_cv_env_CFLAGS_value=$CFLAGS
905 ac_env_LDFLAGS_set=${LDFLAGS+set}
906 ac_env_LDFLAGS_value=$LDFLAGS
907 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
908 ac_cv_env_LDFLAGS_value=$LDFLAGS
909 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_env_CPPFLAGS_value=$CPPFLAGS
911 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
912 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
913 ac_env_CPP_set=${CPP+set}
914 ac_env_CPP_value=$CPP
915 ac_cv_env_CPP_set=${CPP+set}
916 ac_cv_env_CPP_value=$CPP
917
918 #
919 # Report the --help message.
920 #
921 if test "$ac_init_help" = "long"; then
922   # Omit some internal or obsolete options to make the list less imposing.
923   # This message is too long to be a string in the A/UX 3.1 sh.
924   cat <<_ACEOF
925 \`configure' configures Heimdal 0.4f to adapt to many kinds of systems.
926
927 Usage: $0 [OPTION]... [VAR=VALUE]...
928
929 To assign environment variables (e.g., CC, CFLAGS...), specify them as
930 VAR=VALUE.  See below for descriptions of some of the useful variables.
931
932 Defaults for the options are specified in brackets.
933
934 Configuration:
935   -h, --help              display this help and exit
936       --help=short        display options specific to this package
937       --help=recursive    display the short help of all the included packages
938   -V, --version           display version information and exit
939   -q, --quiet, --silent   do not print \`checking...' messages
940       --cache-file=FILE   cache test results in FILE [disabled]
941   -C, --config-cache      alias for \`--cache-file=config.cache'
942   -n, --no-create         do not create output files
943       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
944
945 _ACEOF
946
947   cat <<_ACEOF
948 Installation directories:
949   --prefix=PREFIX         install architecture-independent files in PREFIX
950                           [$ac_default_prefix]
951   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
952                           [PREFIX]
953
954 By default, \`make install' will install all the files in
955 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
956 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
957 for instance \`--prefix=\$HOME'.
958
959 For better control, use the options below.
960
961 Fine tuning of the installation directories:
962   --bindir=DIR           user executables [EPREFIX/bin]
963   --sbindir=DIR          system admin executables [EPREFIX/sbin]
964   --libexecdir=DIR       program executables [EPREFIX/libexec]
965   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
966   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
967   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
968   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
969   --libdir=DIR           object code libraries [EPREFIX/lib]
970   --includedir=DIR       C header files [PREFIX/include]
971   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
972   --infodir=DIR          info documentation [PREFIX/info]
973   --mandir=DIR           man documentation [PREFIX/man]
974 _ACEOF
975
976   cat <<\_ACEOF
977
978 Program names:
979   --program-prefix=PREFIX            prepend PREFIX to installed program names
980   --program-suffix=SUFFIX            append SUFFIX to installed program names
981   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
982
983 X features:
984   --x-includes=DIR    X include files are in DIR
985   --x-libraries=DIR   X library files are in DIR
986
987 System types:
988   --build=BUILD     configure for building on BUILD [guessed]
989   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
990 _ACEOF
991 fi
992
993 if test -n "$ac_init_help"; then
994   case $ac_init_help in
995      short | recursive ) echo "Configuration of Heimdal 0.4f:";;
996    esac
997   cat <<\_ACEOF
998
999 Optional Features:
1000   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002   --disable-dependency-tracking Speeds up one-time builds
1003   --enable-dependency-tracking  Do not reject slow dependency extractors
1004   --enable-shared=PKGS  build shared libraries default=no
1005   --enable-static=PKGS  build static libraries default=yes
1006   --enable-fast-install=PKGS  optimize for fast installation default=yes
1007   --disable-libtool-lock  avoid locking (might break parallel builds)
1008   --disable-berkeley-db   if you don't want berkeley db
1009   --enable-dce            if you want support for DCE/DFS PAG's
1010   --disable-otp           if you don't want OTP support
1011   --enable-osfc2          enable some OSF C2 support
1012   --enable-bigendian      the target is big endian
1013   --enable-littleendian   the target is little endian
1014   --disable-dynamic-afs   do not use loaded AFS library with AIX
1015   --enable-netinfo        enable netinfo for configuration lookup
1016
1017 Optional Packages:
1018   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1019   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1020   --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
1021   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1022   --with-pic              try to use only PIC/non-PIC objects default=use both
1023   --without-ipv6          do not enable IPv6 support
1024   --with-openldap=dir     use openldap in dir
1025   --with-openldap-lib=dir use openldap libraries in dir
1026   --with-openldap-include=dir
1027                           use openldap headers in dir
1028   --with-openldap-config=path
1029                           config program for openldap
1030   --with-krb4=dir         use krb4 in dir
1031   --with-krb4-lib=dir     use krb4 libraries in dir
1032   --with-krb4-include=dir use krb4 headers in dir
1033   --with-krb4-config=path config program for krb4
1034   --with-readline=dir     use readline in dir
1035   --with-readline-lib=dir use readline libraries in dir
1036   --with-readline-include=dir
1037                           use readline headers in dir
1038   --with-readline-config=path
1039                           config program for readline
1040   --with-hesiod=dir       use hesiod in dir
1041   --with-hesiod-lib=dir   use hesiod libraries in dir
1042   --with-hesiod-include=dir
1043                           use hesiod headers in dir
1044   --with-hesiod-config=path
1045                           config program for hesiod
1046   --with-x                use the X Window System
1047   --with-openssl=dir      use openssl in dir
1048   --with-openssl-lib=dir  use openssl libraries in dir
1049   --with-openssl-include=dir
1050                           use openssl headers in dir
1051
1052 Some influential environment variables:
1053   CC          C compiler command
1054   CFLAGS      C compiler flags
1055   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1056               nonstandard directory <lib dir>
1057   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058               headers in a nonstandard directory <include dir>
1059   CPP         C preprocessor
1060
1061 Use these variables to override the choices made by `configure' or to help
1062 it to find libraries and programs with nonstandard names/locations.
1063
1064 Report bugs to <heimdal-bugs@pdc.kth.se>.
1065 _ACEOF
1066 fi
1067
1068 if test "$ac_init_help" = "recursive"; then
1069   # If there are subdirs, report their specific --help.
1070   ac_popdir=`pwd`
1071   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072     test -d $ac_dir || continue
1073     ac_builddir=.
1074
1075 if test "$ac_dir" != .; then
1076   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077   # A "../" for each directory in $ac_dir_suffix.
1078   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 else
1080   ac_dir_suffix= ac_top_builddir=
1081 fi
1082
1083 case $srcdir in
1084   .)  # No --srcdir option.  We are building in place.
1085     ac_srcdir=.
1086     if test -z "$ac_top_builddir"; then
1087        ac_top_srcdir=.
1088     else
1089        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090     fi ;;
1091   [\\/]* | ?:[\\/]* )  # Absolute path.
1092     ac_srcdir=$srcdir$ac_dir_suffix;
1093     ac_top_srcdir=$srcdir ;;
1094   *) # Relative path.
1095     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 esac
1098 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1099 # absolute.
1100 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1101 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1102 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1103 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1104
1105     cd $ac_dir
1106     # Check for guested configure; otherwise get Cygnus style configure.
1107     if test -f $ac_srcdir/configure.gnu; then
1108       echo
1109       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1110     elif test -f $ac_srcdir/configure; then
1111       echo
1112       $SHELL $ac_srcdir/configure  --help=recursive
1113     elif test -f $ac_srcdir/configure.ac ||
1114            test -f $ac_srcdir/configure.in; then
1115       echo
1116       $ac_configure --help
1117     else
1118       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1119     fi
1120     cd $ac_popdir
1121   done
1122 fi
1123
1124 test -n "$ac_init_help" && exit 0
1125 if $ac_init_version; then
1126   cat <<\_ACEOF
1127 Heimdal configure 0.4f
1128 generated by GNU Autoconf 2.53
1129
1130 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1131 Free Software Foundation, Inc.
1132 This configure script is free software; the Free Software Foundation
1133 gives unlimited permission to copy, distribute and modify it.
1134 _ACEOF
1135   exit 0
1136 fi
1137 exec 5>config.log
1138 cat >&5 <<_ACEOF
1139 This file contains any messages produced by compilers while
1140 running configure, to aid debugging if configure makes a mistake.
1141
1142 It was created by Heimdal $as_me 0.4f, which was
1143 generated by GNU Autoconf 2.53.  Invocation command line was
1144
1145   $ $0 $@
1146
1147 _ACEOF
1148 {
1149 cat <<_ASUNAME
1150 ## --------- ##
1151 ## Platform. ##
1152 ## --------- ##
1153
1154 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1155 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1156 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1157 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1158 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1159
1160 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1161 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1162
1163 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1164 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1165 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1166 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1167 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1168 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1169 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1170
1171 _ASUNAME
1172
1173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1174 for as_dir in $PATH
1175 do
1176   IFS=$as_save_IFS
1177   test -z "$as_dir" && as_dir=.
1178   echo "PATH: $as_dir"
1179 done
1180
1181 } >&5
1182
1183 cat >&5 <<_ACEOF
1184
1185
1186 ## ----------- ##
1187 ## Core tests. ##
1188 ## ----------- ##
1189
1190 _ACEOF
1191
1192
1193 # Keep a trace of the command line.
1194 # Strip out --no-create and --no-recursion so they do not pile up.
1195 # Also quote any args containing shell meta-characters.
1196 ac_configure_args=
1197 ac_sep=
1198 for ac_arg
1199 do
1200   case $ac_arg in
1201   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202   | --no-cr | --no-c | -n ) continue ;;
1203   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205     continue ;;
1206   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208   esac
1209   case " $ac_configure_args " in
1210     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1211     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1212        ac_sep=" " ;;
1213   esac
1214   # Get rid of the leading space.
1215 done
1216
1217 # When interrupted or exit'd, cleanup temporary files, and complete
1218 # config.log.  We remove comments because anyway the quotes in there
1219 # would cause problems or look ugly.
1220 # WARNING: Be sure not to use single quotes in there, as some shells,
1221 # such as our DU 5.0 friend, will then `close' the trap.
1222 trap 'exit_status=$?
1223   # Save into config.log some information that might help in debugging.
1224   {
1225     echo
1226     cat <<\_ASBOX
1227 ## ---------------- ##
1228 ## Cache variables. ##
1229 ## ---------------- ##
1230 _ASBOX
1231     echo
1232     # The following way of writing the cache mishandles newlines in values,
1233 {
1234   (set) 2>&1 |
1235     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1236     *ac_space=\ *)
1237       sed -n \
1238         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1239           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1240       ;;
1241     *)
1242       sed -n \
1243         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1244       ;;
1245     esac;
1246 }
1247     echo
1248     if test -s confdefs.h; then
1249       cat <<\_ASBOX
1250 ## ----------- ##
1251 ## confdefs.h. ##
1252 ## ----------- ##
1253 _ASBOX
1254       echo
1255       sed "/^$/d" confdefs.h
1256       echo
1257     fi
1258     test "$ac_signal" != 0 &&
1259       echo "$as_me: caught signal $ac_signal"
1260     echo "$as_me: exit $exit_status"
1261   } >&5
1262   rm -f core core.* *.core &&
1263   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1264     exit $exit_status
1265      ' 0
1266 for ac_signal in 1 2 13 15; do
1267   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1268 done
1269 ac_signal=0
1270
1271 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1272 rm -rf conftest* confdefs.h
1273 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1274 echo >confdefs.h
1275
1276 # Predefined preprocessor variables.
1277
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_NAME "$PACKAGE_NAME"
1280 _ACEOF
1281
1282
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1285 _ACEOF
1286
1287
1288 cat >>confdefs.h <<_ACEOF
1289 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1290 _ACEOF
1291
1292
1293 cat >>confdefs.h <<_ACEOF
1294 #define PACKAGE_STRING "$PACKAGE_STRING"
1295 _ACEOF
1296
1297
1298 cat >>confdefs.h <<_ACEOF
1299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1300 _ACEOF
1301
1302
1303 # Let the site file select an alternate cache file if it wants to.
1304 # Prefer explicitly selected file to automatically selected ones.
1305 if test -z "$CONFIG_SITE"; then
1306   if test "x$prefix" != xNONE; then
1307     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1308   else
1309     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1310   fi
1311 fi
1312 for ac_site_file in $CONFIG_SITE; do
1313   if test -r "$ac_site_file"; then
1314     { echo "$as_me:1314: loading site script $ac_site_file" >&5
1315 echo "$as_me: loading site script $ac_site_file" >&6;}
1316     sed 's/^/| /' "$ac_site_file" >&5
1317     . "$ac_site_file"
1318   fi
1319 done
1320
1321 if test -r "$cache_file"; then
1322   # Some versions of bash will fail to source /dev/null (special
1323   # files actually), so we avoid doing that.
1324   if test -f "$cache_file"; then
1325     { echo "$as_me:1325: loading cache $cache_file" >&5
1326 echo "$as_me: loading cache $cache_file" >&6;}
1327     case $cache_file in
1328       [\\/]* | ?:[\\/]* ) . $cache_file;;
1329       *)                      . ./$cache_file;;
1330     esac
1331   fi
1332 else
1333   { echo "$as_me:1333: creating cache $cache_file" >&5
1334 echo "$as_me: creating cache $cache_file" >&6;}
1335   >$cache_file
1336 fi
1337
1338 # Check that the precious variables saved in the cache have kept the same
1339 # value.
1340 ac_cache_corrupted=false
1341 for ac_var in `(set) 2>&1 |
1342                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1343   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1344   eval ac_new_set=\$ac_env_${ac_var}_set
1345   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1346   eval ac_new_val="\$ac_env_${ac_var}_value"
1347   case $ac_old_set,$ac_new_set in
1348     set,)
1349       { echo "$as_me:1349: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1350 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1351       ac_cache_corrupted=: ;;
1352     ,set)
1353       { echo "$as_me:1353: error: \`$ac_var' was not set in the previous run" >&5
1354 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1355       ac_cache_corrupted=: ;;
1356     ,);;
1357     *)
1358       if test "x$ac_old_val" != "x$ac_new_val"; then
1359         { echo "$as_me:1359: error: \`$ac_var' has changed since the previous run:" >&5
1360 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1361         { echo "$as_me:1361:   former value:  $ac_old_val" >&5
1362 echo "$as_me:   former value:  $ac_old_val" >&2;}
1363         { echo "$as_me:1363:   current value: $ac_new_val" >&5
1364 echo "$as_me:   current value: $ac_new_val" >&2;}
1365         ac_cache_corrupted=:
1366       fi;;
1367   esac
1368   # Pass precious variables to config.status.
1369   if test "$ac_new_set" = set; then
1370     case $ac_new_val in
1371     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1372       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1373     *) ac_arg=$ac_var=$ac_new_val ;;
1374     esac
1375     case " $ac_configure_args " in
1376       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1377       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1378     esac
1379   fi
1380 done
1381 if $ac_cache_corrupted; then
1382   { echo "$as_me:1382: error: changes in the environment can compromise the build" >&5
1383 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1384   { { echo "$as_me:1384: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1385 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1386    { (exit 1); exit 1; }; }
1387 fi
1388
1389 ac_ext=c
1390 ac_cpp='$CPP $CPPFLAGS'
1391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420 # Add the stamp file to the list of files AC keeps track of,
1421 # along with our hook.
1422 ac_config_headers="$ac_config_headers include/config.h"
1423
1424
1425
1426
1427 ac_ext=c
1428 ac_cpp='$CPP $CPPFLAGS'
1429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1432 if test -n "$ac_tool_prefix"; then
1433   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1435 echo "$as_me:1435: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_CC+set}" = set; then
1438   echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440   if test -n "$CC"; then
1441   ac_cv_prog_CC="$CC" # Let the user override the test.
1442 else
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 for as_dir in $PATH
1445 do
1446   IFS=$as_save_IFS
1447   test -z "$as_dir" && as_dir=.
1448   for ac_exec_ext in '' $ac_executable_extensions; do
1449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1450     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1451     echo "$as_me:1451: found $as_dir/$ac_word$ac_exec_ext" >&5
1452     break 2
1453   fi
1454 done
1455 done
1456
1457 fi
1458 fi
1459 CC=$ac_cv_prog_CC
1460 if test -n "$CC"; then
1461   echo "$as_me:1461: result: $CC" >&5
1462 echo "${ECHO_T}$CC" >&6
1463 else
1464   echo "$as_me:1464: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1466 fi
1467
1468 fi
1469 if test -z "$ac_cv_prog_CC"; then
1470   ac_ct_CC=$CC
1471   # Extract the first word of "gcc", so it can be a program name with args.
1472 set dummy gcc; ac_word=$2
1473 echo "$as_me:1473: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1476   echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478   if test -n "$ac_ct_CC"; then
1479   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1480 else
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484   IFS=$as_save_IFS
1485   test -z "$as_dir" && as_dir=.
1486   for ac_exec_ext in '' $ac_executable_extensions; do
1487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488     ac_cv_prog_ac_ct_CC="gcc"
1489     echo "$as_me:1489: found $as_dir/$ac_word$ac_exec_ext" >&5
1490     break 2
1491   fi
1492 done
1493 done
1494
1495 fi
1496 fi
1497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1498 if test -n "$ac_ct_CC"; then
1499   echo "$as_me:1499: result: $ac_ct_CC" >&5
1500 echo "${ECHO_T}$ac_ct_CC" >&6
1501 else
1502   echo "$as_me:1502: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1504 fi
1505
1506   CC=$ac_ct_CC
1507 else
1508   CC="$ac_cv_prog_CC"
1509 fi
1510
1511 if test -z "$CC"; then
1512   if test -n "$ac_tool_prefix"; then
1513   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1514 set dummy ${ac_tool_prefix}cc; ac_word=$2
1515 echo "$as_me:1515: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_CC+set}" = set; then
1518   echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520   if test -n "$CC"; then
1521   ac_cv_prog_CC="$CC" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526   IFS=$as_save_IFS
1527   test -z "$as_dir" && as_dir=.
1528   for ac_exec_ext in '' $ac_executable_extensions; do
1529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530     ac_cv_prog_CC="${ac_tool_prefix}cc"
1531     echo "$as_me:1531: found $as_dir/$ac_word$ac_exec_ext" >&5
1532     break 2
1533   fi
1534 done
1535 done
1536
1537 fi
1538 fi
1539 CC=$ac_cv_prog_CC
1540 if test -n "$CC"; then
1541   echo "$as_me:1541: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1543 else
1544   echo "$as_me:1544: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548 fi
1549 if test -z "$ac_cv_prog_CC"; then
1550   ac_ct_CC=$CC
1551   # Extract the first word of "cc", so it can be a program name with args.
1552 set dummy cc; ac_word=$2
1553 echo "$as_me:1553: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   if test -n "$ac_ct_CC"; then
1559   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   for ac_exec_ext in '' $ac_executable_extensions; do
1567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568     ac_cv_prog_ac_ct_CC="cc"
1569     echo "$as_me:1569: found $as_dir/$ac_word$ac_exec_ext" >&5
1570     break 2
1571   fi
1572 done
1573 done
1574
1575 fi
1576 fi
1577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1578 if test -n "$ac_ct_CC"; then
1579   echo "$as_me:1579: result: $ac_ct_CC" >&5
1580 echo "${ECHO_T}$ac_ct_CC" >&6
1581 else
1582   echo "$as_me:1582: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 fi
1585
1586   CC=$ac_ct_CC
1587 else
1588   CC="$ac_cv_prog_CC"
1589 fi
1590
1591 fi
1592 if test -z "$CC"; then
1593   # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc; ac_word=$2
1595 echo "$as_me:1595: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   if test -n "$CC"; then
1601   ac_cv_prog_CC="$CC" # Let the user override the test.
1602 else
1603   ac_prog_rejected=no
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1606 do
1607   IFS=$as_save_IFS
1608   test -z "$as_dir" && as_dir=.
1609   for ac_exec_ext in '' $ac_executable_extensions; do
1610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1612        ac_prog_rejected=yes
1613        continue
1614      fi
1615     ac_cv_prog_CC="cc"
1616     echo "$as_me:1616: found $as_dir/$ac_word$ac_exec_ext" >&5
1617     break 2
1618   fi
1619 done
1620 done
1621
1622 if test $ac_prog_rejected = yes; then
1623   # We found a bogon in the path, so make sure we never use it.
1624   set dummy $ac_cv_prog_CC
1625   shift
1626   if test $# != 0; then
1627     # We chose a different compiler from the bogus one.
1628     # However, it has the same basename, so the bogon will be chosen
1629     # first if we set CC to just the basename; use the full file name.
1630     shift
1631     set dummy "$as_dir/$ac_word" ${1+"$@"}
1632     shift
1633     ac_cv_prog_CC="$@"
1634   fi
1635 fi
1636 fi
1637 fi
1638 CC=$ac_cv_prog_CC
1639 if test -n "$CC"; then
1640   echo "$as_me:1640: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1642 else
1643   echo "$as_me:1643: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647 fi
1648 if test -z "$CC"; then
1649   if test -n "$ac_tool_prefix"; then
1650   for ac_prog in cl
1651   do
1652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:1654: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   if test -n "$CC"; then
1660   ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   for ac_exec_ext in '' $ac_executable_extensions; do
1668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670     echo "$as_me:1670: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680   echo "$as_me:1680: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683   echo "$as_me:1683: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687     test -n "$CC" && break
1688   done
1689 fi
1690 if test -z "$CC"; then
1691   ac_ct_CC=$CC
1692   for ac_prog in cl
1693 do
1694   # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:1696: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$ac_ct_CC"; then
1702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_ac_ct_CC="$ac_prog"
1712     echo "$as_me:1712: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722   echo "$as_me:1722: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725   echo "$as_me:1725: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729   test -n "$ac_ct_CC" && break
1730 done
1731
1732   CC=$ac_ct_CC
1733 fi
1734
1735 fi
1736
1737
1738 test -z "$CC" && { { echo "$as_me:1738: error: no acceptable C compiler found in \$PATH" >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1740    { (exit 1); exit 1; }; }
1741
1742 # Provide some information about the compiler.
1743 echo "$as_me:1743:" \
1744      "checking for C compiler version" >&5
1745 ac_compiler=`set X $ac_compile; echo $2`
1746 { (eval echo "$as_me:1746: \"$ac_compiler --version </dev/null >&5\"") >&5
1747   (eval $ac_compiler --version </dev/null >&5) 2>&5
1748   ac_status=$?
1749   echo "$as_me:1749: \$? = $ac_status" >&5
1750   (exit $ac_status); }
1751 { (eval echo "$as_me:1751: \"$ac_compiler -v </dev/null >&5\"") >&5
1752   (eval $ac_compiler -v </dev/null >&5) 2>&5
1753   ac_status=$?
1754   echo "$as_me:1754: \$? = $ac_status" >&5
1755   (exit $ac_status); }
1756 { (eval echo "$as_me:1756: \"$ac_compiler -V </dev/null >&5\"") >&5
1757   (eval $ac_compiler -V </dev/null >&5) 2>&5
1758   ac_status=$?
1759   echo "$as_me:1759: \$? = $ac_status" >&5
1760   (exit $ac_status); }
1761
1762 cat >conftest.$ac_ext <<_ACEOF
1763 #line 1763 "configure"
1764 #include "confdefs.h"
1765
1766 #ifdef F77_DUMMY_MAIN
1767 #  ifdef __cplusplus
1768      extern "C"
1769 #  endif
1770    int F77_DUMMY_MAIN() { return 1; }
1771 #endif
1772 int
1773 main ()
1774 {
1775
1776   ;
1777   return 0;
1778 }
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:1785: checking for C compiler default output" >&5
1786 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:1788: \"$ac_link_default\"") >&5
1789   (eval $ac_link_default) 2>&5
1790   ac_status=$?
1791   echo "$as_me:1791: \$? = $ac_status" >&5
1792   (exit $ac_status); }; then
1793   # Find the output, starting from the most likely.  This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1796
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1801                 ls a.out conftest 2>/dev/null;
1802                 ls a.* conftest.* 2>/dev/null`; do
1803   case $ac_file in
1804     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1805     a.out ) # We found the default executable, but exeext='' is most
1806             # certainly right.
1807             break;;
1808     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1809           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1810           export ac_cv_exeext
1811           break;;
1812     * ) break;;
1813   esac
1814 done
1815 else
1816   echo "$as_me: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1818 { { echo "$as_me:1818: error: C compiler cannot create executables" >&5
1819 echo "$as_me: error: C compiler cannot create executables" >&2;}
1820    { (exit 77); exit 77; }; }
1821 fi
1822
1823 ac_exeext=$ac_cv_exeext
1824 echo "$as_me:1824: result: $ac_file" >&5
1825 echo "${ECHO_T}$ac_file" >&6
1826
1827 # Check the compiler produces executables we can run.  If not, either
1828 # the compiler is broken, or we cross compile.
1829 echo "$as_me:1829: checking whether the C compiler works" >&5
1830 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1831 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1832 # If not cross compiling, check that we can run a simple program.
1833 if test "$cross_compiling" != yes; then
1834   if { ac_try='./$ac_file'
1835   { (eval echo "$as_me:1835: \"$ac_try\"") >&5
1836   (eval $ac_try) 2>&5
1837   ac_status=$?
1838   echo "$as_me:1838: \$? = $ac_status" >&5
1839   (exit $ac_status); }; }; then
1840     cross_compiling=no
1841   else
1842     if test "$cross_compiling" = maybe; then
1843         cross_compiling=yes
1844     else
1845         { { echo "$as_me:1845: error: cannot run C compiled programs.
1846 If you meant to cross compile, use \`--host'." >&5
1847 echo "$as_me: error: cannot run C compiled programs.
1848 If you meant to cross compile, use \`--host'." >&2;}
1849    { (exit 1); exit 1; }; }
1850     fi
1851   fi
1852 fi
1853 echo "$as_me:1853: result: yes" >&5
1854 echo "${ECHO_T}yes" >&6
1855
1856 rm -f a.out a.exe conftest$ac_cv_exeext
1857 ac_clean_files=$ac_clean_files_save
1858 # Check the compiler produces executables we can run.  If not, either
1859 # the compiler is broken, or we cross compile.
1860 echo "$as_me:1860: checking whether we are cross compiling" >&5
1861 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1862 echo "$as_me:1862: result: $cross_compiling" >&5
1863 echo "${ECHO_T}$cross_compiling" >&6
1864
1865 echo "$as_me:1865: checking for suffix of executables" >&5
1866 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1867 if { (eval echo "$as_me:1867: \"$ac_link\"") >&5
1868   (eval $ac_link) 2>&5
1869   ac_status=$?
1870   echo "$as_me:1870: \$? = $ac_status" >&5
1871   (exit $ac_status); }; then
1872   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1873 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1874 # work properly (i.e., refer to `conftest.exe'), while it won't with
1875 # `rm'.
1876 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1877   case $ac_file in
1878     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1879     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1880           export ac_cv_exeext
1881           break;;
1882     * ) break;;
1883   esac
1884 done
1885 else
1886   { { echo "$as_me:1886: error: cannot compute suffix of executables: cannot compile and link" >&5
1887 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891 rm -f conftest$ac_cv_exeext
1892 echo "$as_me:1892: result: $ac_cv_exeext" >&5
1893 echo "${ECHO_T}$ac_cv_exeext" >&6
1894
1895 rm -f conftest.$ac_ext
1896 EXEEXT=$ac_cv_exeext
1897 ac_exeext=$EXEEXT
1898 echo "$as_me:1898: checking for suffix of object files" >&5
1899 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1900 if test "${ac_cv_objext+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   cat >conftest.$ac_ext <<_ACEOF
1904 #line 1904 "configure"
1905 #include "confdefs.h"
1906
1907 #ifdef F77_DUMMY_MAIN
1908 #  ifdef __cplusplus
1909      extern "C"
1910 #  endif
1911    int F77_DUMMY_MAIN() { return 1; }
1912 #endif
1913 int
1914 main ()
1915 {
1916
1917   ;
1918   return 0;
1919 }
1920 _ACEOF
1921 rm -f conftest.o conftest.obj
1922 if { (eval echo "$as_me:1922: \"$ac_compile\"") >&5
1923   (eval $ac_compile) 2>&5
1924   ac_status=$?
1925   echo "$as_me:1925: \$? = $ac_status" >&5
1926   (exit $ac_status); }; then
1927   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1928   case $ac_file in
1929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1930     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1931        break;;
1932   esac
1933 done
1934 else
1935   echo "$as_me: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1937 { { echo "$as_me:1937: error: cannot compute suffix of object files: cannot compile" >&5
1938 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1939    { (exit 1); exit 1; }; }
1940 fi
1941
1942 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1943 fi
1944 echo "$as_me:1944: result: $ac_cv_objext" >&5
1945 echo "${ECHO_T}$ac_cv_objext" >&6
1946 OBJEXT=$ac_cv_objext
1947 ac_objext=$OBJEXT
1948 echo "$as_me:1948: checking whether we are using the GNU C compiler" >&5
1949 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1950 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1951   echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953   cat >conftest.$ac_ext <<_ACEOF
1954 #line 1954 "configure"
1955 #include "confdefs.h"
1956
1957 #ifdef F77_DUMMY_MAIN
1958 #  ifdef __cplusplus
1959      extern "C"
1960 #  endif
1961    int F77_DUMMY_MAIN() { return 1; }
1962 #endif
1963 int
1964 main ()
1965 {
1966 #ifndef __GNUC__
1967        choke me
1968 #endif
1969
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 rm -f conftest.$ac_objext
1975 if { (eval echo "$as_me:1975: \"$ac_compile\"") >&5
1976   (eval $ac_compile) 2>&5
1977   ac_status=$?
1978   echo "$as_me:1978: \$? = $ac_status" >&5
1979   (exit $ac_status); } &&
1980          { ac_try='test -s conftest.$ac_objext'
1981   { (eval echo "$as_me:1981: \"$ac_try\"") >&5
1982   (eval $ac_try) 2>&5
1983   ac_status=$?
1984   echo "$as_me:1984: \$? = $ac_status" >&5
1985   (exit $ac_status); }; }; then
1986   ac_compiler_gnu=yes
1987 else
1988   echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 ac_compiler_gnu=no
1991 fi
1992 rm -f conftest.$ac_objext conftest.$ac_ext
1993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1994
1995 fi
1996 echo "$as_me:1996: result: $ac_cv_c_compiler_gnu" >&5
1997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1998 GCC=`test $ac_compiler_gnu = yes && echo yes`
1999 ac_test_CFLAGS=${CFLAGS+set}
2000 ac_save_CFLAGS=$CFLAGS
2001 CFLAGS="-g"
2002 echo "$as_me:2002: checking whether $CC accepts -g" >&5
2003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2004 if test "${ac_cv_prog_cc_g+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2010
2011 #ifdef F77_DUMMY_MAIN
2012 #  ifdef __cplusplus
2013      extern "C"
2014 #  endif
2015    int F77_DUMMY_MAIN() { return 1; }
2016 #endif
2017 int
2018 main ()
2019 {
2020
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:2026: \"$ac_compile\"") >&5
2027   (eval $ac_compile) 2>&5
2028   ac_status=$?
2029   echo "$as_me:2029: \$? = $ac_status" >&5
2030   (exit $ac_status); } &&
2031          { ac_try='test -s conftest.$ac_objext'
2032   { (eval echo "$as_me:2032: \"$ac_try\"") >&5
2033   (eval $ac_try) 2>&5
2034   ac_status=$?
2035   echo "$as_me:2035: \$? = $ac_status" >&5
2036   (exit $ac_status); }; }; then
2037   ac_cv_prog_cc_g=yes
2038 else
2039   echo "$as_me: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 ac_cv_prog_cc_g=no
2042 fi
2043 rm -f conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 echo "$as_me:2045: result: $ac_cv_prog_cc_g" >&5
2046 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2047 if test "$ac_test_CFLAGS" = set; then
2048   CFLAGS=$ac_save_CFLAGS
2049 elif test $ac_cv_prog_cc_g = yes; then
2050   if test "$GCC" = yes; then
2051     CFLAGS="-g -O2"
2052   else
2053     CFLAGS="-g"
2054   fi
2055 else
2056   if test "$GCC" = yes; then
2057     CFLAGS="-O2"
2058   else
2059     CFLAGS=
2060   fi
2061 fi
2062 # Some people use a C++ compiler to compile C.  Since we use `exit',
2063 # in C++ we need to declare it.  In case someone uses the same compiler
2064 # for both compiling C and C++ we need to have the C++ compiler decide
2065 # the declaration of exit, since it's the most demanding environment.
2066 cat >conftest.$ac_ext <<_ACEOF
2067 #ifndef __cplusplus
2068   choke me
2069 #endif
2070 _ACEOF
2071 rm -f conftest.$ac_objext
2072 if { (eval echo "$as_me:2072: \"$ac_compile\"") >&5
2073   (eval $ac_compile) 2>&5
2074   ac_status=$?
2075   echo "$as_me:2075: \$? = $ac_status" >&5
2076   (exit $ac_status); } &&
2077          { ac_try='test -s conftest.$ac_objext'
2078   { (eval echo "$as_me:2078: \"$ac_try\"") >&5
2079   (eval $ac_try) 2>&5
2080   ac_status=$?
2081   echo "$as_me:2081: \$? = $ac_status" >&5
2082   (exit $ac_status); }; }; then
2083   for ac_declaration in \
2084    ''\
2085    '#include <stdlib.h>' \
2086    'extern "C" void std::exit (int) throw (); using std::exit;' \
2087    'extern "C" void std::exit (int); using std::exit;' \
2088    'extern "C" void exit (int) throw ();' \
2089    'extern "C" void exit (int);' \
2090    'void exit (int);'
2091 do
2092   cat >conftest.$ac_ext <<_ACEOF
2093 #line 2093 "configure"
2094 #include "confdefs.h"
2095 #include <stdlib.h>
2096 $ac_declaration
2097 #ifdef F77_DUMMY_MAIN
2098 #  ifdef __cplusplus
2099      extern "C"
2100 #  endif
2101    int F77_DUMMY_MAIN() { return 1; }
2102 #endif
2103 int
2104 main ()
2105 {
2106 exit (42);
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 rm -f conftest.$ac_objext
2112 if { (eval echo "$as_me:2112: \"$ac_compile\"") >&5
2113   (eval $ac_compile) 2>&5
2114   ac_status=$?
2115   echo "$as_me:2115: \$? = $ac_status" >&5
2116   (exit $ac_status); } &&
2117          { ac_try='test -s conftest.$ac_objext'
2118   { (eval echo "$as_me:2118: \"$ac_try\"") >&5
2119   (eval $ac_try) 2>&5
2120   ac_status=$?
2121   echo "$as_me:2121: \$? = $ac_status" >&5
2122   (exit $ac_status); }; }; then
2123   :
2124 else
2125   echo "$as_me: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 continue
2128 fi
2129 rm -f conftest.$ac_objext conftest.$ac_ext
2130   cat >conftest.$ac_ext <<_ACEOF
2131 #line 2131 "configure"
2132 #include "confdefs.h"
2133 $ac_declaration
2134 #ifdef F77_DUMMY_MAIN
2135 #  ifdef __cplusplus
2136      extern "C"
2137 #  endif
2138    int F77_DUMMY_MAIN() { return 1; }
2139 #endif
2140 int
2141 main ()
2142 {
2143 exit (42);
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:2149: \"$ac_compile\"") >&5
2150   (eval $ac_compile) 2>&5
2151   ac_status=$?
2152   echo "$as_me:2152: \$? = $ac_status" >&5
2153   (exit $ac_status); } &&
2154          { ac_try='test -s conftest.$ac_objext'
2155   { (eval echo "$as_me:2155: \"$ac_try\"") >&5
2156   (eval $ac_try) 2>&5
2157   ac_status=$?
2158   echo "$as_me:2158: \$? = $ac_status" >&5
2159   (exit $ac_status); }; }; then
2160   break
2161 else
2162   echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 fi
2165 rm -f conftest.$ac_objext conftest.$ac_ext
2166 done
2167 rm -f conftest*
2168 if test -n "$ac_declaration"; then
2169   echo '#ifdef __cplusplus' >>confdefs.h
2170   echo $ac_declaration      >>confdefs.h
2171   echo '#endif'             >>confdefs.h
2172 fi
2173
2174 else
2175   echo "$as_me: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2177 fi
2178 rm -f conftest.$ac_objext conftest.$ac_ext
2179 ac_ext=c
2180 ac_cpp='$CPP $CPPFLAGS'
2181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184
2185 ac_ext=c
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190 echo "$as_me:2190: checking how to run the C preprocessor" >&5
2191 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2192 # On Suns, sometimes $CPP names a directory.
2193 if test -n "$CPP" && test -d "$CPP"; then
2194   CPP=
2195 fi
2196 if test -z "$CPP"; then
2197   if test "${ac_cv_prog_CPP+set}" = set; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200       # Double quotes because CPP needs to be expanded
2201     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2202     do
2203       ac_preproc_ok=false
2204 for ac_c_preproc_warn_flag in '' yes
2205 do
2206   # Use a header file that comes with gcc, so configuring glibc
2207   # with a fresh cross-compiler works.
2208   # On the NeXT, cc -E runs the code through the compiler's parser,
2209   # not just through cpp. "Syntax error" is here to catch this case.
2210   cat >conftest.$ac_ext <<_ACEOF
2211 #line 2211 "configure"
2212 #include "confdefs.h"
2213 #include <assert.h>
2214                      Syntax error
2215 _ACEOF
2216 if { (eval echo "$as_me:2216: \"$ac_cpp conftest.$ac_ext\"") >&5
2217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2218   ac_status=$?
2219   egrep -v '^ *\+' conftest.er1 >conftest.err
2220   rm -f conftest.er1
2221   cat conftest.err >&5
2222   echo "$as_me:2222: \$? = $ac_status" >&5
2223   (exit $ac_status); } >/dev/null; then
2224   if test -s conftest.err; then
2225     ac_cpp_err=$ac_c_preproc_warn_flag
2226   else
2227     ac_cpp_err=
2228   fi
2229 else
2230   ac_cpp_err=yes
2231 fi
2232 if test -z "$ac_cpp_err"; then
2233   :
2234 else
2235   echo "$as_me: failed program was:" >&5
2236   cat conftest.$ac_ext >&5
2237   # Broken: fails on valid input.
2238 continue
2239 fi
2240 rm -f conftest.err conftest.$ac_ext
2241
2242   # OK, works on sane cases.  Now check whether non-existent headers
2243   # can be detected and how.
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line 2245 "configure"
2246 #include "confdefs.h"
2247 #include <ac_nonexistent.h>
2248 _ACEOF
2249 if { (eval echo "$as_me:2249: \"$ac_cpp conftest.$ac_ext\"") >&5
2250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2251   ac_status=$?
2252   egrep -v '^ *\+' conftest.er1 >conftest.err
2253   rm -f conftest.er1
2254   cat conftest.err >&5
2255   echo "$as_me:2255: \$? = $ac_status" >&5
2256   (exit $ac_status); } >/dev/null; then
2257   if test -s conftest.err; then
2258     ac_cpp_err=$ac_c_preproc_warn_flag
2259   else
2260     ac_cpp_err=
2261   fi
2262 else
2263   ac_cpp_err=yes
2264 fi
2265 if test -z "$ac_cpp_err"; then
2266   # Broken: success on invalid input.
2267 continue
2268 else
2269   echo "$as_me: failed program was:" >&5
2270   cat conftest.$ac_ext >&5
2271   # Passes both tests.
2272 ac_preproc_ok=:
2273 break
2274 fi
2275 rm -f conftest.err conftest.$ac_ext
2276
2277 done
2278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2279 rm -f conftest.err conftest.$ac_ext
2280 if $ac_preproc_ok; then
2281   break
2282 fi
2283
2284     done
2285     ac_cv_prog_CPP=$CPP
2286
2287 fi
2288   CPP=$ac_cv_prog_CPP
2289 else
2290   ac_cv_prog_CPP=$CPP
2291 fi
2292 echo "$as_me:2292: result: $CPP" >&5
2293 echo "${ECHO_T}$CPP" >&6
2294 ac_preproc_ok=false
2295 for ac_c_preproc_warn_flag in '' yes
2296 do
2297   # Use a header file that comes with gcc, so configuring glibc
2298   # with a fresh cross-compiler works.
2299   # On the NeXT, cc -E runs the code through the compiler's parser,
2300   # not just through cpp. "Syntax error" is here to catch this case.
2301   cat >conftest.$ac_ext <<_ACEOF
2302 #line 2302 "configure"
2303 #include "confdefs.h"
2304 #include <assert.h>
2305                      Syntax error
2306 _ACEOF
2307 if { (eval echo "$as_me:2307: \"$ac_cpp conftest.$ac_ext\"") >&5
2308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2309   ac_status=$?
2310   egrep -v '^ *\+' conftest.er1 >conftest.err
2311   rm -f conftest.er1
2312   cat conftest.err >&5
2313   echo "$as_me:2313: \$? = $ac_status" >&5
2314   (exit $ac_status); } >/dev/null; then
2315   if test -s conftest.err; then
2316     ac_cpp_err=$ac_c_preproc_warn_flag
2317   else
2318     ac_cpp_err=
2319   fi
2320 else
2321   ac_cpp_err=yes
2322 fi
2323 if test -z "$ac_cpp_err"; then
2324   :
2325 else
2326   echo "$as_me: failed program was:" >&5
2327   cat conftest.$ac_ext >&5
2328   # Broken: fails on valid input.
2329 continue
2330 fi
2331 rm -f conftest.err conftest.$ac_ext
2332
2333   # OK, works on sane cases.  Now check whether non-existent headers
2334   # can be detected and how.
2335   cat >conftest.$ac_ext <<_ACEOF
2336 #line 2336 "configure"
2337 #include "confdefs.h"
2338 #include <ac_nonexistent.h>
2339 _ACEOF
2340 if { (eval echo "$as_me:2340: \"$ac_cpp conftest.$ac_ext\"") >&5
2341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2342   ac_status=$?
2343   egrep -v '^ *\+' conftest.er1 >conftest.err
2344   rm -f conftest.er1
2345   cat conftest.err >&5
2346   echo "$as_me:2346: \$? = $ac_status" >&5
2347   (exit $ac_status); } >/dev/null; then
2348   if test -s conftest.err; then
2349     ac_cpp_err=$ac_c_preproc_warn_flag
2350   else
2351     ac_cpp_err=
2352   fi
2353 else
2354   ac_cpp_err=yes
2355 fi
2356 if test -z "$ac_cpp_err"; then
2357   # Broken: success on invalid input.
2358 continue
2359 else
2360   echo "$as_me: failed program was:" >&5
2361   cat conftest.$ac_ext >&5
2362   # Passes both tests.
2363 ac_preproc_ok=:
2364 break
2365 fi
2366 rm -f conftest.err conftest.$ac_ext
2367
2368 done
2369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2370 rm -f conftest.err conftest.$ac_ext
2371 if $ac_preproc_ok; then
2372   :
2373 else
2374   { { echo "$as_me:2374: error: C preprocessor \"$CPP\" fails sanity check" >&5
2375 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2376    { (exit 1); exit 1; }; }
2377 fi
2378
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384
2385
2386 echo "$as_me:2386: checking for $CC option to accept ANSI C" >&5
2387 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2388 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   ac_cv_prog_cc_stdc=no
2392 ac_save_CC=$CC
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #line 2394 "configure"
2395 #include "confdefs.h"
2396 #include <stdarg.h>
2397 #include <stdio.h>
2398 #include <sys/types.h>
2399 #include <sys/stat.h>
2400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2401 struct buf { int x; };
2402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2403 static char *e (p, i)
2404      char **p;
2405      int i;
2406 {
2407   return p[i];
2408 }
2409 static char *f (char * (*g) (char **, int), char **p, ...)
2410 {
2411   char *s;
2412   va_list v;
2413   va_start (v,p);
2414   s = g (p, va_arg (v,int));
2415   va_end (v);
2416   return s;
2417 }
2418 int test (int i, double x);
2419 struct s1 {int (*f) (int a);};
2420 struct s2 {int (*f) (double a);};
2421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2422 int argc;
2423 char **argv;
2424 #ifdef F77_DUMMY_MAIN
2425 #  ifdef __cplusplus
2426      extern "C"
2427 #  endif
2428    int F77_DUMMY_MAIN() { return 1; }
2429 #endif
2430 int
2431 main ()
2432 {
2433 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 # Don't try gcc -ansi; that turns off useful extensions and
2439 # breaks some systems' header files.
2440 # AIX                   -qlanglvl=ansi
2441 # Ultrix and OSF/1      -std1
2442 # HP-UX 10.20 and later -Ae
2443 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2444 # SVR4                  -Xc -D__EXTENSIONS__
2445 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2446 do
2447   CC="$ac_save_CC $ac_arg"
2448   rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:2449: \"$ac_compile\"") >&5
2450   (eval $ac_compile) 2>&5
2451   ac_status=$?
2452   echo "$as_me:2452: \$? = $ac_status" >&5
2453   (exit $ac_status); } &&
2454          { ac_try='test -s conftest.$ac_objext'
2455   { (eval echo "$as_me:2455: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:2458: \$? = $ac_status" >&5
2459   (exit $ac_status); }; }; then
2460   ac_cv_prog_cc_stdc=$ac_arg
2461 break
2462 else
2463   echo "$as_me: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2465 fi
2466 rm -f conftest.$ac_objext
2467 done
2468 rm -f conftest.$ac_ext conftest.$ac_objext
2469 CC=$ac_save_CC
2470
2471 fi
2472
2473 case "x$ac_cv_prog_cc_stdc" in
2474   x|xno)
2475     echo "$as_me:2475: result: none needed" >&5
2476 echo "${ECHO_T}none needed" >&6 ;;
2477   *)
2478     echo "$as_me:2478: result: $ac_cv_prog_cc_stdc" >&5
2479 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2480     CC="$CC $ac_cv_prog_cc_stdc" ;;
2481 esac
2482
2483
2484 am__api_version="1.6"
2485 ac_aux_dir=
2486 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2487   if test -f $ac_dir/install-sh; then
2488     ac_aux_dir=$ac_dir
2489     ac_install_sh="$ac_aux_dir/install-sh -c"
2490     break
2491   elif 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/shtool; then
2496     ac_aux_dir=$ac_dir
2497     ac_install_sh="$ac_aux_dir/shtool install -c"
2498     break
2499   fi
2500 done
2501 if test -z "$ac_aux_dir"; then
2502   { { echo "$as_me:2502: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2503 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2504    { (exit 1); exit 1; }; }
2505 fi
2506 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2507 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2508 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2509
2510 # Find a good install program.  We prefer a C program (faster),
2511 # so one script is as good as another.  But avoid the broken or
2512 # incompatible versions:
2513 # SysV /etc/install, /usr/sbin/install
2514 # SunOS /usr/etc/install
2515 # IRIX /sbin/install
2516 # AIX /bin/install
2517 # AmigaOS /C/install, which installs bootblocks on floppy discs
2518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2521 # ./install, which can be erroneously created by make from ./install.sh.
2522 echo "$as_me:2522: checking for a BSD-compatible install" >&5
2523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2524 if test -z "$INSTALL"; then
2525 if test "${ac_cv_path_install+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533   # Account for people who put trailing slashes in PATH elements.
2534 case $as_dir/ in
2535   ./ | .// | /cC/* | \
2536   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537   /usr/ucb/* ) ;;
2538   *)
2539     # OSF1 and SCO ODT 3.0 have their own names for install.
2540     # Don't use installbsd from OSF since it installs stuff as root
2541     # by default.
2542     for ac_prog in ginstall scoinst install; do
2543       for ac_exec_ext in '' $ac_executable_extensions; do
2544         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2545           if test $ac_prog = install &&
2546             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547             # AIX install.  It has an incompatible calling convention.
2548             :
2549           elif test $ac_prog = install &&
2550             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551             # program-specific install script used by HP pwplus--don't use.
2552             :
2553           else
2554             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2555             break 3
2556           fi
2557         fi
2558       done
2559     done
2560     ;;
2561 esac
2562 done
2563
2564
2565 fi
2566   if test "${ac_cv_path_install+set}" = set; then
2567     INSTALL=$ac_cv_path_install
2568   else
2569     # As a last resort, use the slow shell script.  We don't cache a
2570     # path for INSTALL within a source directory, because that will
2571     # break other packages using the cache if that directory is
2572     # removed, or if the path is relative.
2573     INSTALL=$ac_install_sh
2574   fi
2575 fi
2576 echo "$as_me:2576: result: $INSTALL" >&5
2577 echo "${ECHO_T}$INSTALL" >&6
2578
2579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2580 # It thinks the first close brace ends the variable substitution.
2581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2582
2583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2584
2585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2586
2587 echo "$as_me:2587: checking whether build environment is sane" >&5
2588 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2589 # Just in case
2590 sleep 1
2591 echo timestamp > conftest.file
2592 # Do `set' in a subshell so we don't clobber the current shell's
2593 # arguments.  Must try -L first in case configure is actually a
2594 # symlink; some systems play weird games with the mod time of symlinks
2595 # (eg FreeBSD returns the mod time of the symlink's containing
2596 # directory).
2597 if (
2598    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2599    if test "$*" = "X"; then
2600       # -L didn't work.
2601       set X `ls -t $srcdir/configure conftest.file`
2602    fi
2603    rm -f conftest.file
2604    if test "$*" != "X $srcdir/configure conftest.file" \
2605       && test "$*" != "X conftest.file $srcdir/configure"; then
2606
2607       # If neither matched, then we have a broken ls.  This can happen
2608       # if, for instance, CONFIG_SHELL is bash and it inherits a
2609       # broken ls alias from the environment.  This has actually
2610       # happened.  Such a system could not be considered "sane".
2611       { { echo "$as_me:2611: error: ls -t appears to fail.  Make sure there is not a broken
2612 alias in your environment" >&5
2613 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2614 alias in your environment" >&2;}
2615    { (exit 1); exit 1; }; }
2616    fi
2617
2618    test "$2" = conftest.file
2619    )
2620 then
2621    # Ok.
2622    :
2623 else
2624    { { echo "$as_me:2624: error: newly created file is older than distributed files!
2625 Check your system clock" >&5
2626 echo "$as_me: error: newly created file is older than distributed files!
2627 Check your system clock" >&2;}
2628    { (exit 1); exit 1; }; }
2629 fi
2630 echo "$as_me:2630: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2632 test "$program_prefix" != NONE &&
2633   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2634 # Use a double $ so make ignores it.
2635 test "$program_suffix" != NONE &&
2636   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2637 # Double any \ or $.  echo might interpret backslashes.
2638 # By default was `s,x,x', remove it if useless.
2639 cat <<\_ACEOF >conftest.sed
2640 s/[\\$]/&&/g;s/;s,x,x,$//
2641 _ACEOF
2642 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2643 rm conftest.sed
2644
2645
2646 # expand $ac_aux_dir to an absolute path
2647 am_aux_dir=`cd $ac_aux_dir && pwd`
2648
2649 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2650 # Use eval to expand $SHELL
2651 if eval "$MISSING --run true"; then
2652   am_missing_run="$MISSING --run "
2653 else
2654   am_missing_run=
2655   { echo "$as_me:2655: WARNING: \`missing' script is too old or missing" >&5
2656 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2657 fi
2658
2659 for ac_prog in gawk mawk nawk awk
2660 do
2661   # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 echo "$as_me:2663: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_AWK+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   if test -n "$AWK"; then
2669   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676   for ac_exec_ext in '' $ac_executable_extensions; do
2677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678     ac_cv_prog_AWK="$ac_prog"
2679     echo "$as_me:2679: found $as_dir/$ac_word$ac_exec_ext" >&5
2680     break 2
2681   fi
2682 done
2683 done
2684
2685 fi
2686 fi
2687 AWK=$ac_cv_prog_AWK
2688 if test -n "$AWK"; then
2689   echo "$as_me:2689: result: $AWK" >&5
2690 echo "${ECHO_T}$AWK" >&6
2691 else
2692   echo "$as_me:2692: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2694 fi
2695
2696   test -n "$AWK" && break
2697 done
2698
2699 echo "$as_me:2699: checking whether ${MAKE-make} sets \${MAKE}" >&5
2700 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2701 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2702 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2703   echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705   cat >conftest.make <<\_ACEOF
2706 all:
2707         @echo 'ac_maketemp="${MAKE}"'
2708 _ACEOF
2709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2710 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2711 if test -n "$ac_maketemp"; then
2712   eval ac_cv_prog_make_${ac_make}_set=yes
2713 else
2714   eval ac_cv_prog_make_${ac_make}_set=no
2715 fi
2716 rm -f conftest.make
2717 fi
2718 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2719   echo "$as_me:2719: result: yes" >&5
2720 echo "${ECHO_T}yes" >&6
2721   SET_MAKE=
2722 else
2723   echo "$as_me:2723: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2725   SET_MAKE="MAKE=${MAKE-make}"
2726 fi
2727
2728 rm -f .deps 2>/dev/null
2729 mkdir .deps 2>/dev/null
2730 if test -d .deps; then
2731   DEPDIR=.deps
2732 else
2733   # MS-DOS does not allow filenames that begin with a dot.
2734   DEPDIR=_deps
2735 fi
2736 rmdir .deps 2>/dev/null
2737
2738
2739 ac_config_commands="$ac_config_commands depfiles"
2740
2741
2742 am_make=${MAKE-make}
2743 cat > confinc << 'END'
2744 doit:
2745         @echo done
2746 END
2747 # If we don't find an include directive, just comment out the code.
2748 echo "$as_me:2748: checking for style of include used by $am_make" >&5
2749 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2750 am__include="#"
2751 am__quote=
2752 _am_result=none
2753 # First try GNU make style include.
2754 echo "include confinc" > confmf
2755 # We grep out `Entering directory' and `Leaving directory'
2756 # messages which can occur if `w' ends up in MAKEFLAGS.
2757 # In particular we don't look at `^make:' because GNU make might
2758 # be invoked under some other name (usually "gmake"), in which
2759 # case it prints its new name instead of `make'.
2760 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2761    am__include=include
2762    am__quote=
2763    _am_result=GNU
2764 fi
2765 # Now try BSD make style include.
2766 if test "$am__include" = "#"; then
2767    echo '.include "confinc"' > confmf
2768    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2769       am__include=.include
2770       am__quote="\""
2771       _am_result=BSD
2772    fi
2773 fi
2774
2775
2776 echo "$as_me:2776: result: $_am_result" >&5
2777 echo "${ECHO_T}$_am_result" >&6
2778 rm -f confinc confmf
2779
2780 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2781 if test "${enable_dependency_tracking+set}" = set; then
2782   enableval="$enable_dependency_tracking"
2783
2784 fi;
2785 if test "x$enable_dependency_tracking" != xno; then
2786   am_depcomp="$ac_aux_dir/depcomp"
2787   AMDEPBACKSLASH='\'
2788 fi
2789
2790
2791 if test "x$enable_dependency_tracking" != xno; then
2792   AMDEP_TRUE=
2793   AMDEP_FALSE='#'
2794 else
2795   AMDEP_TRUE='#'
2796   AMDEP_FALSE=
2797 fi
2798
2799
2800
2801  # test to see if srcdir already configured
2802 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2803    test -f $srcdir/config.status; then
2804   { { echo "$as_me:2804: error: source directory already configured; run \"make distclean\" there first" >&5
2805 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2806    { (exit 1); exit 1; }; }
2807 fi
2808
2809 # Define the identity of the package.
2810  PACKAGE=heimdal
2811  VERSION=0.4f
2812
2813
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE "$PACKAGE"
2816 _ACEOF
2817
2818
2819 cat >>confdefs.h <<_ACEOF
2820 #define VERSION "$VERSION"
2821 _ACEOF
2822
2823 # Some tools Automake needs.
2824
2825 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2826
2827
2828 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2829
2830
2831 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2832
2833
2834 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2835
2836
2837 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2838
2839
2840 AMTAR=${AMTAR-"${am_missing_run}tar"}
2841
2842 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2843
2844 # Installed binaries are usually stripped using `strip' when the user
2845 # run `make install-strip'.  However `strip' might not be the right
2846 # tool to use in cross-compilation environments, therefore Automake
2847 # will honor the `STRIP' environment variable to overrule this program.
2848 if test "$cross_compiling" != no; then
2849   if test -n "$ac_tool_prefix"; then
2850   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2851 set dummy ${ac_tool_prefix}strip; ac_word=$2
2852 echo "$as_me:2852: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_STRIP+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   if test -n "$STRIP"; then
2858   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865   for ac_exec_ext in '' $ac_executable_extensions; do
2866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2868     echo "$as_me:2868: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872 done
2873
2874 fi
2875 fi
2876 STRIP=$ac_cv_prog_STRIP
2877 if test -n "$STRIP"; then
2878   echo "$as_me:2878: result: $STRIP" >&5
2879 echo "${ECHO_T}$STRIP" >&6
2880 else
2881   echo "$as_me:2881: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883 fi
2884
2885 fi
2886 if test -z "$ac_cv_prog_STRIP"; then
2887   ac_ct_STRIP=$STRIP
2888   # Extract the first word of "strip", so it can be a program name with args.
2889 set dummy strip; ac_word=$2
2890 echo "$as_me:2890: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2893   echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895   if test -n "$ac_ct_STRIP"; then
2896   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901   IFS=$as_save_IFS
2902   test -z "$as_dir" && as_dir=.
2903   for ac_exec_ext in '' $ac_executable_extensions; do
2904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905     ac_cv_prog_ac_ct_STRIP="strip"
2906     echo "$as_me:2906: found $as_dir/$ac_word$ac_exec_ext" >&5
2907     break 2
2908   fi
2909 done
2910 done
2911
2912   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2913 fi
2914 fi
2915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2916 if test -n "$ac_ct_STRIP"; then
2917   echo "$as_me:2917: result: $ac_ct_STRIP" >&5
2918 echo "${ECHO_T}$ac_ct_STRIP" >&6
2919 else
2920   echo "$as_me:2920: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2922 fi
2923
2924   STRIP=$ac_ct_STRIP
2925 else
2926   STRIP="$ac_cv_prog_STRIP"
2927 fi
2928
2929 fi
2930 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2931
2932 # We need awk for the "check" target.  The system "awk" is bad on
2933 # some platforms.
2934
2935
2936 depcc="$CC"   am_compiler_list=
2937
2938 echo "$as_me:2938: checking dependency style of $depcc" >&5
2939 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2940 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2944   # We make a subdir and do the tests there.  Otherwise we can end up
2945   # making bogus files that we don't know about and never remove.  For
2946   # instance it was reported that on HP-UX the gcc test will end up
2947   # making a dummy file named `D' -- because `-MD' means `put the output
2948   # in D'.
2949   mkdir conftest.dir
2950   # Copy depcomp to subdir because otherwise we won't find it if we're
2951   # using a relative directory.
2952   cp "$am_depcomp" conftest.dir
2953   cd conftest.dir
2954
2955   am_cv_CC_dependencies_compiler_type=none
2956   if test "$am_compiler_list" = ""; then
2957      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2958   fi
2959   for depmode in $am_compiler_list; do
2960     # We need to recreate these files for each test, as the compiler may
2961     # overwrite some of them when testing with obscure command lines.
2962     # This happens at least with the AIX C compiler.
2963     echo '#include "conftest.h"' > conftest.c
2964     echo 'int i;' > conftest.h
2965     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2966
2967     case $depmode in
2968     nosideeffect)
2969       # after this tag, mechanisms are not by side-effect, so they'll
2970       # only be used when explicitly requested
2971       if test "x$enable_dependency_tracking" = xyes; then
2972         continue
2973       else
2974         break
2975       fi
2976       ;;
2977     none) break ;;
2978     esac
2979     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2980     # mode.  It turns out that the SunPro C++ compiler does not properly
2981     # handle `-M -o', and we need to detect this.
2982     if depmode=$depmode \
2983        source=conftest.c object=conftest.o \
2984        depfile=conftest.Po tmpdepfile=conftest.TPo \
2985        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2986        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2987        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2988       am_cv_CC_dependencies_compiler_type=$depmode
2989       break
2990     fi
2991   done
2992
2993   cd ..
2994   rm -rf conftest.dir
2995 else
2996   am_cv_CC_dependencies_compiler_type=none
2997 fi
2998
2999 fi
3000 echo "$as_me:3000: result: $am_cv_CC_dependencies_compiler_type" >&5
3001 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3002 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3003
3004
3005
3006
3007
3008
3009 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3010 test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3011
3012 # Make sure we can run config.sub.
3013 $ac_config_sub sun4 >/dev/null 2>&1 ||
3014   { { echo "$as_me:3014: error: cannot run $ac_config_sub" >&5
3015 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3016    { (exit 1); exit 1; }; }
3017
3018 echo "$as_me:3018: checking build system type" >&5
3019 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3020 if test "${ac_cv_build+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   ac_cv_build_alias=$build_alias
3024 test -z "$ac_cv_build_alias" &&
3025   ac_cv_build_alias=`$ac_config_guess`
3026 test -z "$ac_cv_build_alias" &&
3027   { { echo "$as_me:3027: error: cannot guess build type; you must specify one" >&5
3028 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3029    { (exit 1); exit 1; }; }
3030 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3031   { { echo "$as_me:3031: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3032 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3033    { (exit 1); exit 1; }; }
3034
3035 fi
3036 echo "$as_me:3036: result: $ac_cv_build" >&5
3037 echo "${ECHO_T}$ac_cv_build" >&6
3038 build=$ac_cv_build
3039 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3040 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3041 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3042
3043
3044 echo "$as_me:3044: checking host system type" >&5
3045 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3046 if test "${ac_cv_host+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   ac_cv_host_alias=$host_alias
3050 test -z "$ac_cv_host_alias" &&
3051   ac_cv_host_alias=$ac_cv_build_alias
3052 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3053   { { echo "$as_me:3053: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3054 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3055    { (exit 1); exit 1; }; }
3056
3057 fi
3058 echo "$as_me:3058: result: $ac_cv_host" >&5
3059 echo "${ECHO_T}$ac_cv_host" >&6
3060 host=$ac_cv_host
3061 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3062 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3063 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3064
3065
3066 CANONICAL_HOST=$host
3067
3068
3069
3070 cat >>confdefs.h <<\_ACEOF
3071 #define _GNU_SOURCE 1
3072 _ACEOF
3073
3074
3075
3076
3077
3078 for ac_prog in 'bison -y' byacc
3079 do
3080   # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy $ac_prog; ac_word=$2
3082 echo "$as_me:3082: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_prog_YACC+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   if test -n "$YACC"; then
3088   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093   IFS=$as_save_IFS
3094   test -z "$as_dir" && as_dir=.
3095   for ac_exec_ext in '' $ac_executable_extensions; do
3096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097     ac_cv_prog_YACC="$ac_prog"
3098     echo "$as_me:3098: found $as_dir/$ac_word$ac_exec_ext" >&5
3099     break 2
3100   fi
3101 done
3102 done
3103
3104 fi
3105 fi
3106 YACC=$ac_cv_prog_YACC
3107 if test -n "$YACC"; then
3108   echo "$as_me:3108: result: $YACC" >&5
3109 echo "${ECHO_T}$YACC" >&6
3110 else
3111   echo "$as_me:3111: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3113 fi
3114
3115   test -n "$YACC" && break
3116 done
3117 test -n "$YACC" || YACC="yacc"
3118
3119 for ac_prog in flex lex
3120 do
3121   # Extract the first word of "$ac_prog", so it can be a program name with args.
3122 set dummy $ac_prog; ac_word=$2
3123 echo "$as_me:3123: checking for $ac_word" >&5
3124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125 if test "${ac_cv_prog_LEX+set}" = set; then
3126   echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128   if test -n "$LEX"; then
3129   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136   for ac_exec_ext in '' $ac_executable_extensions; do
3137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138     ac_cv_prog_LEX="$ac_prog"
3139     echo "$as_me:3139: found $as_dir/$ac_word$ac_exec_ext" >&5
3140     break 2
3141   fi
3142 done
3143 done
3144
3145 fi
3146 fi
3147 LEX=$ac_cv_prog_LEX
3148 if test -n "$LEX"; then
3149   echo "$as_me:3149: result: $LEX" >&5
3150 echo "${ECHO_T}$LEX" >&6
3151 else
3152   echo "$as_me:3152: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3154 fi
3155
3156   test -n "$LEX" && break
3157 done
3158 test -n "$LEX" || LEX=":"
3159
3160 if test -z "$LEXLIB"
3161 then
3162   echo "$as_me:3162: checking for yywrap in -lfl" >&5
3163 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3164 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3165   echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167   ac_check_lib_save_LIBS=$LIBS
3168 LIBS="-lfl  $LIBS"
3169 cat >conftest.$ac_ext <<_ACEOF
3170 #line 3170 "configure"
3171 #include "confdefs.h"
3172
3173 /* Override any gcc2 internal prototype to avoid an error.  */
3174 #ifdef __cplusplus
3175 extern "C"
3176 #endif
3177 /* We use char because int might match the return type of a gcc2
3178    builtin and then its argument prototype would still apply.  */
3179 char yywrap ();
3180 #ifdef F77_DUMMY_MAIN
3181 #  ifdef __cplusplus
3182      extern "C"
3183 #  endif
3184    int F77_DUMMY_MAIN() { return 1; }
3185 #endif
3186 int
3187 main ()
3188 {
3189 yywrap ();
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.$ac_objext conftest$ac_exeext
3195 if { (eval echo "$as_me:3195: \"$ac_link\"") >&5
3196   (eval $ac_link) 2>&5
3197   ac_status=$?
3198   echo "$as_me:3198: \$? = $ac_status" >&5
3199   (exit $ac_status); } &&
3200          { ac_try='test -s conftest$ac_exeext'
3201   { (eval echo "$as_me:3201: \"$ac_try\"") >&5
3202   (eval $ac_try) 2>&5
3203   ac_status=$?
3204   echo "$as_me:3204: \$? = $ac_status" >&5
3205   (exit $ac_status); }; }; then
3206   ac_cv_lib_fl_yywrap=yes
3207 else
3208   echo "$as_me: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3210 ac_cv_lib_fl_yywrap=no
3211 fi
3212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3213 LIBS=$ac_check_lib_save_LIBS
3214 fi
3215 echo "$as_me:3215: result: $ac_cv_lib_fl_yywrap" >&5
3216 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3217 if test $ac_cv_lib_fl_yywrap = yes; then
3218   LEXLIB="-lfl"
3219 else
3220   echo "$as_me:3220: checking for yywrap in -ll" >&5
3221 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3222 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   ac_check_lib_save_LIBS=$LIBS
3226 LIBS="-ll  $LIBS"
3227 cat >conftest.$ac_ext <<_ACEOF
3228 #line 3228 "configure"
3229 #include "confdefs.h"
3230
3231 /* Override any gcc2 internal prototype to avoid an error.  */
3232 #ifdef __cplusplus
3233 extern "C"
3234 #endif
3235 /* We use char because int might match the return type of a gcc2
3236    builtin and then its argument prototype would still apply.  */
3237 char yywrap ();
3238 #ifdef F77_DUMMY_MAIN
3239 #  ifdef __cplusplus
3240      extern "C"
3241 #  endif
3242    int F77_DUMMY_MAIN() { return 1; }
3243 #endif
3244 int
3245 main ()
3246 {
3247 yywrap ();
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext conftest$ac_exeext
3253 if { (eval echo "$as_me:3253: \"$ac_link\"") >&5
3254   (eval $ac_link) 2>&5
3255   ac_status=$?
3256   echo "$as_me:3256: \$? = $ac_status" >&5
3257   (exit $ac_status); } &&
3258          { ac_try='test -s conftest$ac_exeext'
3259   { (eval echo "$as_me:3259: \"$ac_try\"") >&5
3260   (eval $ac_try) 2>&5
3261   ac_status=$?
3262   echo "$as_me:3262: \$? = $ac_status" >&5
3263   (exit $ac_status); }; }; then
3264   ac_cv_lib_l_yywrap=yes
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3268 ac_cv_lib_l_yywrap=no
3269 fi
3270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3271 LIBS=$ac_check_lib_save_LIBS
3272 fi
3273 echo "$as_me:3273: result: $ac_cv_lib_l_yywrap" >&5
3274 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3275 if test $ac_cv_lib_l_yywrap = yes; then
3276   LEXLIB="-ll"
3277 fi
3278
3279 fi
3280
3281 fi
3282
3283 if test "x$LEX" != "x:"; then
3284   echo "$as_me:3284: checking lex output file root" >&5
3285 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3286 if test "${ac_cv_prog_lex_root+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   # The minimal lex program is just a single line: %%.  But some broken lexes
3290 # (Solaris, I think it was) want two %% lines, so accommodate them.
3291 cat >conftest.l <<_ACEOF
3292 %%
3293 %%
3294 _ACEOF
3295 { (eval echo "$as_me:3295: \"$LEX conftest.l\"") >&5
3296   (eval $LEX conftest.l) 2>&5
3297   ac_status=$?
3298   echo "$as_me:3298: \$? = $ac_status" >&5
3299   (exit $ac_status); }
3300 if test -f lex.yy.c; then
3301   ac_cv_prog_lex_root=lex.yy
3302 elif test -f lexyy.c; then
3303   ac_cv_prog_lex_root=lexyy
3304 else
3305   { { echo "$as_me:3305: error: cannot find output from $LEX; giving up" >&5
3306 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3307    { (exit 1); exit 1; }; }
3308 fi
3309 fi
3310 echo "$as_me:3310: result: $ac_cv_prog_lex_root" >&5
3311 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3312 rm -f conftest.l
3313 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3314
3315 echo "$as_me:3315: checking whether yytext is a pointer" >&5
3316 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3317 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   # POSIX says lex can declare yytext either as a pointer or an array; the
3321 # default is implementation-dependent. Figure out which it is, since
3322 # not all implementations provide the %pointer and %array declarations.
3323 ac_cv_prog_lex_yytext_pointer=no
3324 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3325 ac_save_LIBS=$LIBS
3326 LIBS="$LIBS $LEXLIB"
3327 cat >conftest.$ac_ext <<_ACEOF
3328 `cat $LEX_OUTPUT_ROOT.c`
3329 _ACEOF
3330 rm -f conftest.$ac_objext conftest$ac_exeext
3331 if { (eval echo "$as_me:3331: \"$ac_link\"") >&5
3332   (eval $ac_link) 2>&5
3333   ac_status=$?
3334   echo "$as_me:3334: \$? = $ac_status" >&5
3335   (exit $ac_status); } &&
3336          { ac_try='test -s conftest$ac_exeext'
3337   { (eval echo "$as_me:3337: \"$ac_try\"") >&5
3338   (eval $ac_try) 2>&5
3339   ac_status=$?
3340   echo "$as_me:3340: \$? = $ac_status" >&5
3341   (exit $ac_status); }; }; then
3342   ac_cv_prog_lex_yytext_pointer=yes
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3346 fi
3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3348 LIBS=$ac_save_LIBS
3349 rm -f "${LEX_OUTPUT_ROOT}.c"
3350
3351 fi
3352 echo "$as_me:3352: result: $ac_cv_prog_lex_yytext_pointer" >&5
3353 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3354 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3355
3356 cat >>confdefs.h <<\_ACEOF
3357 #define YYTEXT_POINTER 1
3358 _ACEOF
3359
3360 fi
3361
3362 fi
3363 if test "$LEX" = :; then
3364   LEX=${am_missing_run}flex
3365 fi
3366 for ac_prog in gawk mawk nawk awk
3367 do
3368   # Extract the first word of "$ac_prog", so it can be a program name with args.
3369 set dummy $ac_prog; ac_word=$2
3370 echo "$as_me:3370: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_AWK+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   if test -n "$AWK"; then
3376   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383   for ac_exec_ext in '' $ac_executable_extensions; do
3384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385     ac_cv_prog_AWK="$ac_prog"
3386     echo "$as_me:3386: found $as_dir/$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390 done
3391
3392 fi
3393 fi
3394 AWK=$ac_cv_prog_AWK
3395 if test -n "$AWK"; then
3396   echo "$as_me:3396: result: $AWK" >&5
3397 echo "${ECHO_T}$AWK" >&6
3398 else
3399   echo "$as_me:3399: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3401 fi
3402
3403   test -n "$AWK" && break
3404 done
3405
3406 echo "$as_me:3406: checking for ln -s or something else" >&5
3407 echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3408 if test "${ac_cv_prog_LN_S+set}" = set; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   rm -f conftestdata
3412 if ln -s X conftestdata 2>/dev/null
3413 then
3414   rm -f conftestdata
3415   ac_cv_prog_LN_S="ln -s"
3416 else
3417   touch conftestdata1
3418   if ln conftestdata1 conftestdata2; then
3419     rm -f conftestdata*
3420     ac_cv_prog_LN_S=ln
3421   else
3422     ac_cv_prog_LN_S=cp
3423   fi
3424 fi
3425 fi
3426 LN_S="$ac_cv_prog_LN_S"
3427 echo "$as_me:3427: result: $ac_cv_prog_LN_S" >&5
3428 echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
3429
3430
3431
3432
3433 # Check whether --with-mips_abi or --without-mips_abi was given.
3434 if test "${with_mips_abi+set}" = set; then
3435   withval="$with_mips_abi"
3436
3437 fi;
3438
3439 case "$host_os" in
3440 irix*)
3441 with_mips_abi="${with_mips_abi:-yes}"
3442 if test -n "$GCC"; then
3443
3444 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
3445 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
3446 #
3447 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
3448 # GCC and revert back to O32. The same goes if O32 is asked for - old
3449 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
3450 #
3451 # Don't you just love *all* the different SGI ABIs?
3452
3453 case "${with_mips_abi}" in
3454         32|o32) abi='-mabi=32';  abilibdirext=''     ;;
3455        n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
3456         64) abi='-mabi=64';  abilibdirext='64'   ;;
3457         no) abi=''; abilibdirext='';;
3458          *) { { echo "$as_me:3458: error: \"Invalid ABI specified\"" >&5
3459 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3460    { (exit 1); exit 1; }; } ;;
3461 esac
3462 if test -n "$abi" ; then
3463 ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
3464 echo "$as_me:3464: checking if $CC supports the $abi option" >&5
3465 echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
3466 if eval "test \"\${$ac_foo+set}\" = set"; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469
3470 save_CFLAGS="$CFLAGS"
3471 CFLAGS="$CFLAGS $abi"
3472 cat >conftest.$ac_ext <<_ACEOF
3473 #line 3473 "configure"
3474 #include "confdefs.h"
3475
3476 #ifdef F77_DUMMY_MAIN
3477 #  ifdef __cplusplus
3478      extern "C"
3479 #  endif
3480    int F77_DUMMY_MAIN() { return 1; }
3481 #endif
3482 int
3483 main ()
3484 {
3485 int x;
3486   ;
3487   return 0;
3488 }
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:3491: \"$ac_compile\"") >&5
3492   (eval $ac_compile) 2>&5
3493   ac_status=$?
3494   echo "$as_me:3494: \$? = $ac_status" >&5
3495   (exit $ac_status); } &&
3496          { ac_try='test -s conftest.$ac_objext'
3497   { (eval echo "$as_me:3497: \"$ac_try\"") >&5
3498   (eval $ac_try) 2>&5
3499   ac_status=$?
3500   echo "$as_me:3500: \$? = $ac_status" >&5
3501   (exit $ac_status); }; }; then
3502   eval $ac_foo=yes
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3506 eval $ac_foo=no
3507 fi
3508 rm -f conftest.$ac_objext conftest.$ac_ext
3509 CFLAGS="$save_CFLAGS"
3510
3511 fi
3512
3513 ac_res=`eval echo \\\$$ac_foo`
3514 echo "$as_me:3514: result: $ac_res" >&5
3515 echo "${ECHO_T}$ac_res" >&6
3516 if test $ac_res = no; then
3517 # Try to figure out why that failed...
3518 case $abi in
3519         -mabi=32)
3520         save_CFLAGS="$CFLAGS"
3521         CFLAGS="$CFLAGS -mabi=n32"
3522         cat >conftest.$ac_ext <<_ACEOF
3523 #line 3523 "configure"
3524 #include "confdefs.h"
3525
3526 #ifdef F77_DUMMY_MAIN
3527 #  ifdef __cplusplus
3528      extern "C"
3529 #  endif
3530    int F77_DUMMY_MAIN() { return 1; }
3531 #endif
3532 int
3533 main ()
3534 {
3535 int x;
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (eval echo "$as_me:3541: \"$ac_compile\"") >&5
3542   (eval $ac_compile) 2>&5
3543   ac_status=$?
3544   echo "$as_me:3544: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -s conftest.$ac_objext'
3547   { (eval echo "$as_me:3547: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:3550: \$? = $ac_status" >&5
3551   (exit $ac_status); }; }; then
3552   ac_res=yes
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3556 ac_res=no
3557 fi
3558 rm -f conftest.$ac_objext conftest.$ac_ext
3559         CLAGS="$save_CFLAGS"
3560         if test $ac_res = yes; then
3561                 # New GCC
3562                 { { echo "$as_me:3562: error: $CC does not support the $with_mips_abi ABI" >&5
3563 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3564    { (exit 1); exit 1; }; }
3565         fi
3566         # Old GCC
3567         abi=''
3568         abilibdirext=''
3569         ;;
3570         -mabi=n32|-mabi=64)
3571                 if test $with_mips_abi = yes; then
3572                         # Old GCC, default to O32
3573                         abi=''
3574                         abilibdirext=''
3575                 else
3576                         # Some broken GCC
3577                         { { echo "$as_me:3577: error: $CC does not support the $with_mips_abi ABI" >&5
3578 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3579    { (exit 1); exit 1; }; }
3580                 fi
3581         ;;
3582 esac
3583 fi #if test $ac_res = no; then
3584 fi #if test -n "$abi" ; then
3585 else
3586 case "${with_mips_abi}" in
3587         32|o32) abi='-32'; abilibdirext=''     ;;
3588        n32|yes) abi='-n32'; abilibdirext='32'  ;;
3589         64) abi='-64'; abilibdirext='64'   ;;
3590         no) abi=''; abilibdirext='';;
3591          *) { { echo "$as_me:3591: error: \"Invalid ABI specified\"" >&5
3592 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3593    { (exit 1); exit 1; }; } ;;
3594 esac
3595 fi #if test -n "$GCC"; then
3596 ;;
3597 esac
3598
3599 CC="$CC $abi"
3600 libdir="$libdir$abilibdirext"
3601
3602
3603 echo "$as_me:3603: checking for __attribute__" >&5
3604 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
3605 if test "${ac_cv___attribute__+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #line 3610 "configure"
3611 #include "confdefs.h"
3612
3613 #include <stdlib.h>
3614
3615 #ifdef F77_DUMMY_MAIN
3616 #  ifdef __cplusplus
3617      extern "C"
3618 #  endif
3619    int F77_DUMMY_MAIN() { return 1; }
3620 #endif
3621 int
3622 main ()
3623 {
3624
3625 static void foo(void) __attribute__ ((noreturn));
3626
3627 static void
3628 foo(void)
3629 {
3630   exit(1);
3631 }
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.$ac_objext
3638 if { (eval echo "$as_me:3638: \"$ac_compile\"") >&5
3639   (eval $ac_compile) 2>&5
3640   ac_status=$?
3641   echo "$as_me:3641: \$? = $ac_status" >&5
3642   (exit $ac_status); } &&
3643          { ac_try='test -s conftest.$ac_objext'
3644   { (eval echo "$as_me:3644: \"$ac_try\"") >&5
3645   (eval $ac_try) 2>&5
3646   ac_status=$?
3647   echo "$as_me:3647: \$? = $ac_status" >&5
3648   (exit $ac_status); }; }; then
3649   ac_cv___attribute__=yes
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3653 ac_cv___attribute__=no
3654 fi
3655 rm -f conftest.$ac_objext conftest.$ac_ext
3656 fi
3657
3658 if test "$ac_cv___attribute__" = "yes"; then
3659
3660 cat >>confdefs.h <<\_ACEOF
3661 #define HAVE___ATTRIBUTE__ 1
3662 _ACEOF
3663
3664 fi
3665 echo "$as_me:3665: result: $ac_cv___attribute__" >&5
3666 echo "${ECHO_T}$ac_cv___attribute__" >&6
3667
3668
3669 # Check whether --enable-shared or --disable-shared was given.
3670 if test "${enable_shared+set}" = set; then
3671   enableval="$enable_shared"
3672   p=${PACKAGE-default}
3673 case $enableval in
3674 yes) enable_shared=yes ;;
3675 no) enable_shared=no ;;
3676 *)
3677   enable_shared=no
3678   # Look at the argument we got.  We use all the common list separators.
3679   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3680   for pkg in $enableval; do
3681     if test "X$pkg" = "X$p"; then
3682       enable_shared=yes
3683     fi
3684   done
3685   IFS="$ac_save_ifs"
3686   ;;
3687 esac
3688 else
3689   enable_shared=no
3690 fi;
3691 # Check whether --enable-static or --disable-static was given.
3692 if test "${enable_static+set}" = set; then
3693   enableval="$enable_static"
3694   p=${PACKAGE-default}
3695 case $enableval in
3696 yes) enable_static=yes ;;
3697 no) enable_static=no ;;
3698 *)
3699   enable_static=no
3700   # Look at the argument we got.  We use all the common list separators.
3701   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3702   for pkg in $enableval; do
3703     if test "X$pkg" = "X$p"; then
3704       enable_static=yes
3705     fi
3706   done
3707   IFS="$ac_save_ifs"
3708   ;;
3709 esac
3710 else
3711   enable_static=yes
3712 fi;
3713 # Check whether --enable-fast-install or --disable-fast-install was given.
3714 if test "${enable_fast_install+set}" = set; then
3715   enableval="$enable_fast_install"
3716   p=${PACKAGE-default}
3717 case $enableval in
3718 yes) enable_fast_install=yes ;;
3719 no) enable_fast_install=no ;;
3720 *)
3721   enable_fast_install=no
3722   # Look at the argument we got.  We use all the common list separators.
3723   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3724   for pkg in $enableval; do
3725     if test "X$pkg" = "X$p"; then
3726       enable_fast_install=yes
3727     fi
3728   done
3729   IFS="$ac_save_ifs"
3730   ;;
3731 esac
3732 else
3733   enable_fast_install=yes
3734 fi;
3735 # Find the correct PATH separator.  Usually this is `:', but
3736 # DJGPP uses `;' like DOS.
3737 if test "X${PATH_SEPARATOR+set}" != Xset; then
3738   UNAME=${UNAME-`uname 2>/dev/null`}
3739   case X$UNAME in
3740     *-DOS) lt_cv_sys_path_separator=';' ;;
3741     *)     lt_cv_sys_path_separator=':' ;;
3742   esac
3743   PATH_SEPARATOR=$lt_cv_sys_path_separator
3744 fi
3745
3746
3747 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3748 if test "${with_gnu_ld+set}" = set; then
3749   withval="$with_gnu_ld"
3750   test "$withval" = no || with_gnu_ld=yes
3751 else
3752   with_gnu_ld=no
3753 fi;
3754 ac_prog=ld
3755 if test "$GCC" = yes; then
3756   # Check if gcc -print-prog-name=ld gives a path.
3757   echo "$as_me:3757: checking for ld used by GCC" >&5
3758 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3759   case $host in
3760   *-*-mingw*)
3761     # gcc leaves a trailing carriage return which upsets mingw
3762     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3763   *)
3764     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3765   esac
3766   case $ac_prog in
3767     # Accept absolute paths.
3768     [\\/]* | [A-Za-z]:[\\/]*)
3769       re_direlt='/[^/][^/]*/\.\./'
3770       # Canonicalize the path of ld
3771       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3772       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3773         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3774       done
3775       test -z "$LD" && LD="$ac_prog"
3776       ;;
3777   "")
3778     # If it fails, then pretend we aren't using GCC.
3779     ac_prog=ld
3780     ;;
3781   *)
3782     # If it is relative, then search for the first ld in PATH.
3783     with_gnu_ld=unknown
3784     ;;
3785   esac
3786 elif test "$with_gnu_ld" = yes; then
3787   echo "$as_me:3787: checking for GNU ld" >&5
3788 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3789 else
3790   echo "$as_me:3790: checking for non-GNU ld" >&5
3791 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3792 fi
3793 if test "${lt_cv_path_LD+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   if test -z "$LD"; then
3797   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3798   for ac_dir in $PATH; do
3799     test -z "$ac_dir" && ac_dir=.
3800     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3801       lt_cv_path_LD="$ac_dir/$ac_prog"
3802       # Check to see if the program is GNU ld.  I'd rather use --version,
3803       # but apparently some GNU ld's only accept -v.
3804       # Break only if it was the GNU/non-GNU ld that we prefer.
3805       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3806         test "$with_gnu_ld" != no && break
3807       else
3808         test "$with_gnu_ld" != yes && break
3809       fi
3810     fi
3811   done
3812   IFS="$ac_save_ifs"
3813 else
3814   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3815 fi
3816 fi
3817
3818 LD="$lt_cv_path_LD"
3819 if test -n "$LD"; then
3820   echo "$as_me:3820: result: $LD" >&5
3821 echo "${ECHO_T}$LD" >&6
3822 else
3823   echo "$as_me:3823: result: no" >&5
3824 echo "${ECHO_T}no" >&6
3825 fi
3826 test -z "$LD" && { { echo "$as_me:3826: error: no acceptable ld found in \$PATH" >&5
3827 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3828    { (exit 1); exit 1; }; }
3829 echo "$as_me:3829: checking if the linker ($LD) is GNU ld" >&5
3830 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3831 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3835 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3836   lt_cv_prog_gnu_ld=yes
3837 else
3838   lt_cv_prog_gnu_ld=no
3839 fi
3840 fi
3841 echo "$as_me:3841: result: $lt_cv_prog_gnu_ld" >&5
3842 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3843 with_gnu_ld=$lt_cv_prog_gnu_ld
3844
3845
3846 echo "$as_me:3846: checking for $LD option to reload object files" >&5
3847 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3848 if test "${lt_cv_ld_reload_flag+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   lt_cv_ld_reload_flag='-r'
3852 fi
3853 echo "$as_me:3853: result: $lt_cv_ld_reload_flag" >&5
3854 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3855 reload_flag=$lt_cv_ld_reload_flag
3856 test -n "$reload_flag" && reload_flag=" $reload_flag"
3857
3858 echo "$as_me:3858: checking for BSD-compatible nm" >&5
3859 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3860 if test "${lt_cv_path_NM+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   if test -n "$NM"; then
3864   # Let the user override the test.
3865   lt_cv_path_NM="$NM"
3866 else
3867   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3868   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3869     test -z "$ac_dir" && ac_dir=.
3870     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3871     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3872       # Check to see if the nm accepts a BSD-compat flag.
3873       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3874       #   nm: unknown option "B" ignored
3875       # Tru64's nm complains that /dev/null is an invalid object file
3876       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3877         lt_cv_path_NM="$tmp_nm -B"
3878         break
3879       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3880         lt_cv_path_NM="$tmp_nm -p"
3881         break
3882       else
3883         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3884         continue # so that we can try to find one that supports BSD flags
3885       fi
3886     fi
3887   done
3888   IFS="$ac_save_ifs"
3889   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3890 fi
3891 fi
3892
3893 NM="$lt_cv_path_NM"
3894 echo "$as_me:3894: result: $NM" >&5
3895 echo "${ECHO_T}$NM" >&6
3896
3897 echo "$as_me:3897: checking whether ln -s works" >&5
3898 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3899 LN_S=$as_ln_s
3900 if test "$LN_S" = "ln -s"; then
3901   echo "$as_me:3901: result: yes" >&5
3902 echo "${ECHO_T}yes" >&6
3903 else
3904   echo "$as_me:3904: result: no, using $LN_S" >&5
3905 echo "${ECHO_T}no, using $LN_S" >&6
3906 fi
3907
3908 echo "$as_me:3908: checking how to recognise dependant libraries" >&5
3909 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3910 if test "${lt_cv_deplibs_check_method+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   lt_cv_file_magic_cmd='$MAGIC_CMD'
3914 lt_cv_file_magic_test_file=
3915 lt_cv_deplibs_check_method='unknown'
3916 # Need to set the preceding variable on all platforms that support
3917 # interlibrary dependencies.
3918 # 'none' -- dependencies not supported.
3919 # `unknown' -- same as none, but documents that we really don't know.
3920 # 'pass_all' -- all dependencies passed with no checks.
3921 # 'test_compile' -- check by making test program.
3922 # 'file_magic [[regex]]' -- check by looking for files in library path
3923 # which responds to the $file_magic_cmd with a given egrep regex.
3924 # If you have `file' or equivalent on your system and you're not sure
3925 # whether `pass_all' will *always* work, you probably want this one.
3926
3927 case $host_os in
3928 aix4* | aix5*)
3929   lt_cv_deplibs_check_method=pass_all
3930   ;;
3931
3932 beos*)
3933   lt_cv_deplibs_check_method=pass_all
3934   ;;
3935
3936 bsdi4*)
3937   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3938   lt_cv_file_magic_cmd='/usr/bin/file -L'
3939   lt_cv_file_magic_test_file=/shlib/libc.so
3940   ;;
3941
3942 cygwin* | mingw* | pw32*)
3943   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3944   lt_cv_file_magic_cmd='$OBJDUMP -f'
3945   ;;
3946
3947 darwin* | rhapsody*)
3948   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3949   lt_cv_file_magic_cmd='/usr/bin/file -L'
3950   case "$host_os" in
3951   rhapsody* | darwin1.[012])
3952     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3953     ;;
3954   *) # Darwin 1.3 on
3955     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3956     ;;
3957   esac
3958   ;;
3959
3960 freebsd*)
3961   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3962     case $host_cpu in
3963     i*86 )
3964       # Not sure whether the presence of OpenBSD here was a mistake.
3965       # Let's accept both of them until this is cleared up.
3966       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3967       lt_cv_file_magic_cmd=/usr/bin/file
3968       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3969       ;;
3970     esac
3971   else
3972     lt_cv_deplibs_check_method=pass_all
3973   fi
3974   ;;
3975
3976 gnu*)
3977   lt_cv_deplibs_check_method=pass_all
3978   ;;
3979
3980 hpux10.20*|hpux11*)
3981   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3982   lt_cv_file_magic_cmd=/usr/bin/file
3983   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3984   ;;
3985
3986 irix5* | irix6*)
3987   case $host_os in
3988   irix5*)
3989     # this will be overridden with pass_all, but let us keep it just in case
3990     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3991     ;;
3992   *)
3993     case $LD in
3994     *-32|*"-32 ") libmagic=32-bit;;
3995     *-n32|*"-n32 ") libmagic=N32;;
3996     *-64|*"-64 ") libmagic=64-bit;;
3997     *) libmagic=never-match;;
3998     esac
3999     # this will be overridden with pass_all, but let us keep it just in case
4000     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4001     ;;
4002   esac
4003   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4004   lt_cv_deplibs_check_method=pass_all
4005   ;;
4006
4007 # This must be Linux ELF.
4008 linux-gnu*)
4009   case $host_cpu in
4010   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4011     lt_cv_deplibs_check_method=pass_all ;;
4012   *)
4013     # glibc up to 2.1.1 does not perform some relocations on ARM
4014     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4015   esac
4016   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4017   ;;
4018
4019 netbsd*)
4020   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4021     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4022   else
4023     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4024   fi
4025   ;;
4026
4027 newos6*)
4028   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4029   lt_cv_file_magic_cmd=/usr/bin/file
4030   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4031   ;;
4032
4033 openbsd*)
4034   lt_cv_file_magic_cmd=/usr/bin/file
4035   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4036   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4037     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4038   else
4039     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4040   fi
4041   ;;
4042
4043 osf3* | osf4* | osf5*)
4044   # this will be overridden with pass_all, but let us keep it just in case
4045   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4046   lt_cv_file_magic_test_file=/shlib/libc.so
4047   lt_cv_deplibs_check_method=pass_all
4048   ;;
4049
4050 sco3.2v5*)
4051   lt_cv_deplibs_check_method=pass_all
4052   ;;
4053
4054 solaris*)
4055   lt_cv_deplibs_check_method=pass_all
4056   lt_cv_file_magic_test_file=/lib/libc.so
4057   ;;
4058
4059 sysv5uw[78]* | sysv4*uw2*)
4060   lt_cv_deplibs_check_method=pass_all
4061   ;;
4062
4063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4064   case $host_vendor in
4065   motorola)
4066     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]'
4067     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4068     ;;
4069   ncr)
4070     lt_cv_deplibs_check_method=pass_all
4071     ;;
4072   sequent)
4073     lt_cv_file_magic_cmd='/bin/file'
4074     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4075     ;;
4076   sni)
4077     lt_cv_file_magic_cmd='/bin/file'
4078     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4079     lt_cv_file_magic_test_file=/lib/libc.so
4080     ;;
4081   esac
4082   ;;
4083 esac
4084
4085 fi
4086 echo "$as_me:4086: result: $lt_cv_deplibs_check_method" >&5
4087 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4088 file_magic_cmd=$lt_cv_file_magic_cmd
4089 deplibs_check_method=$lt_cv_deplibs_check_method
4090
4091
4092
4093
4094
4095 # Check for command to grab the raw symbol name followed by C symbol from nm.
4096 echo "$as_me:4096: checking command to parse $NM output" >&5
4097 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4098 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101
4102 # These are sane defaults that work on at least a few old systems.
4103 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4104
4105 # Character class describing NM global symbol codes.
4106 symcode='[BCDEGRST]'
4107
4108 # Regexp to match symbols that can be accessed directly from C.
4109 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4110
4111 # Transform the above into a raw symbol and a C symbol.
4112 symxfrm='\1 \2\3 \3'
4113
4114 # Transform an extracted symbol line into a proper C declaration
4115 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4116
4117 # Transform an extracted symbol line into symbol name and symbol address
4118 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'"
4119
4120 # Define system-specific variables.
4121 case $host_os in
4122 aix*)
4123   symcode='[BCDT]'
4124   ;;
4125 cygwin* | mingw* | pw32*)
4126   symcode='[ABCDGISTW]'
4127   ;;
4128 hpux*) # Its linker distinguishes data from code symbols
4129   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4130   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'"
4131   ;;
4132 irix*)
4133   symcode='[BCDEGRST]'
4134   ;;
4135 solaris* | sysv5*)
4136   symcode='[BDT]'
4137   ;;
4138 sysv4)
4139   symcode='[DFNSTU]'
4140   ;;
4141 esac
4142
4143 # Handle CRLF in mingw tool chain
4144 opt_cr=
4145 case $host_os in
4146 mingw*)
4147   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4148   ;;
4149 esac
4150
4151 # If we're using GNU nm, then use its standard symbol codes.
4152 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4153   symcode='[ABCDGISTW]'
4154 fi
4155
4156 # Try without a prefix undercore, then with it.
4157 for ac_symprfx in "" "_"; do
4158
4159   # Write the raw and C identifiers.
4160 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4161
4162   # Check to see that the pipe works correctly.
4163   pipe_works=no
4164   rm -f conftest*
4165   cat > conftest.$ac_ext <<EOF
4166 #ifdef __cplusplus
4167 extern "C" {
4168 #endif
4169 char nm_test_var;
4170 void nm_test_func(){}
4171 #ifdef __cplusplus
4172 }
4173 #endif
4174 int main(){nm_test_var='a';nm_test_func();return(0);}
4175 EOF
4176
4177   if { (eval echo "$as_me:4177: \"$ac_compile\"") >&5
4178   (eval $ac_compile) 2>&5
4179   ac_status=$?
4180   echo "$as_me:4180: \$? = $ac_status" >&5
4181   (exit $ac_status); }; then
4182     # Now try to grab the symbols.
4183     nlist=conftest.nm
4184     if { (eval echo "$as_me:4184: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4185   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4186   ac_status=$?
4187   echo "$as_me:4187: \$? = $ac_status" >&5
4188   (exit $ac_status); } && test -s "$nlist"; then
4189       # Try sorting and uniquifying the output.
4190       if sort "$nlist" | uniq > "$nlist"T; then
4191         mv -f "$nlist"T "$nlist"
4192       else
4193         rm -f "$nlist"T
4194       fi
4195
4196       # Make sure that we snagged all the symbols we need.
4197       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4198         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4199           cat <<EOF > conftest.$ac_ext
4200 #ifdef __cplusplus
4201 extern "C" {
4202 #endif
4203
4204 EOF
4205           # Now generate the symbol file.
4206           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4207
4208           cat <<EOF >> conftest.$ac_ext
4209 #if defined (__STDC__) && __STDC__
4210 # define lt_ptr void *
4211 #else
4212 # define lt_ptr char *
4213 # define const
4214 #endif
4215
4216 /* The mapping between symbol names and symbols. */
4217 const struct {
4218   const char *name;
4219   lt_ptr address;
4220 }
4221 lt_preloaded_symbols[] =
4222 {
4223 EOF
4224           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4225           cat <<\EOF >> conftest.$ac_ext
4226   {0, (lt_ptr) 0}
4227 };
4228
4229 #ifdef __cplusplus
4230 }
4231 #endif
4232 EOF
4233           # Now try linking the two files.
4234           mv conftest.$ac_objext conftstm.$ac_objext
4235           save_LIBS="$LIBS"
4236           save_CFLAGS="$CFLAGS"
4237           LIBS="conftstm.$ac_objext"
4238           CFLAGS="$CFLAGS$no_builtin_flag"
4239           if { (eval echo "$as_me:4239: \"$ac_link\"") >&5
4240   (eval $ac_link) 2>&5
4241   ac_status=$?
4242   echo "$as_me:4242: \$? = $ac_status" >&5
4243   (exit $ac_status); } && test -s conftest; then
4244             pipe_works=yes
4245           fi
4246           LIBS="$save_LIBS"
4247           CFLAGS="$save_CFLAGS"
4248         else
4249           echo "cannot find nm_test_func in $nlist" >&5
4250         fi
4251       else
4252         echo "cannot find nm_test_var in $nlist" >&5
4253       fi
4254     else
4255       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4256     fi
4257   else
4258     echo "$progname: failed program was:" >&5
4259     cat conftest.$ac_ext >&5
4260   fi
4261   rm -f conftest* conftst*
4262
4263   # Do not use the global_symbol_pipe unless it works.
4264   if test "$pipe_works" = yes; then
4265     break
4266   else
4267     lt_cv_sys_global_symbol_pipe=
4268   fi
4269 done
4270
4271 fi
4272
4273 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4275   global_symbol_to_cdecl=
4276   global_symbol_to_c_name_address=
4277 else
4278   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4279   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4280 fi
4281 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4282 then
4283   echo "$as_me:4283: result: failed" >&5
4284 echo "${ECHO_T}failed" >&6
4285 else
4286   echo "$as_me:4286: result: ok" >&5
4287 echo "${ECHO_T}ok" >&6
4288 fi
4289
4290
4291 echo "$as_me:4291: checking for ANSI C header files" >&5
4292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4293 if test "${ac_cv_header_stdc+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 #line 4297 "configure"
4298 #include "confdefs.h"
4299 #include <stdlib.h>
4300 #include <stdarg.h>
4301 #include <string.h>
4302 #include <float.h>
4303
4304 _ACEOF
4305 if { (eval echo "$as_me:4305: \"$ac_cpp conftest.$ac_ext\"") >&5
4306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4307   ac_status=$?
4308   egrep -v '^ *\+' conftest.er1 >conftest.err
4309   rm -f conftest.er1
4310   cat conftest.err >&5
4311   echo "$as_me:4311: \$? = $ac_status" >&5
4312   (exit $ac_status); } >/dev/null; then
4313   if test -s conftest.err; then
4314     ac_cpp_err=$ac_c_preproc_warn_flag
4315   else
4316     ac_cpp_err=
4317   fi
4318 else
4319   ac_cpp_err=yes
4320 fi
4321 if test -z "$ac_cpp_err"; then
4322   ac_cv_header_stdc=yes
4323 else
4324   echo "$as_me: failed program was:" >&5
4325   cat conftest.$ac_ext >&5
4326   ac_cv_header_stdc=no
4327 fi
4328 rm -f conftest.err conftest.$ac_ext
4329
4330 if test $ac_cv_header_stdc = yes; then
4331   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4332   cat >conftest.$ac_ext <<_ACEOF
4333 #line 4333 "configure"
4334 #include "confdefs.h"
4335 #include <string.h>
4336
4337 _ACEOF
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339   egrep "memchr" >/dev/null 2>&1; then
4340   :
4341 else
4342   ac_cv_header_stdc=no
4343 fi
4344 rm -f conftest*
4345
4346 fi
4347
4348 if test $ac_cv_header_stdc = yes; then
4349   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4350   cat >conftest.$ac_ext <<_ACEOF
4351 #line 4351 "configure"
4352 #include "confdefs.h"
4353 #include <stdlib.h>
4354
4355 _ACEOF
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357   egrep "free" >/dev/null 2>&1; then
4358   :
4359 else
4360   ac_cv_header_stdc=no
4361 fi
4362 rm -f conftest*
4363
4364 fi
4365
4366 if test $ac_cv_header_stdc = yes; then
4367   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4368   if test "$cross_compiling" = yes; then
4369   :
4370 else
4371   cat >conftest.$ac_ext <<_ACEOF
4372 #line 4372 "configure"
4373 #include "confdefs.h"
4374 #include <ctype.h>
4375 #if ((' ' & 0x0FF) == 0x020)
4376 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4377 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4378 #else
4379 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4380                      || ('j' <= (c) && (c) <= 'r') \
4381                      || ('s' <= (c) && (c) <= 'z'))
4382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4383 #endif
4384
4385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4386 int
4387 main ()
4388 {
4389   int i;
4390   for (i = 0; i < 256; i++)
4391     if (XOR (islower (i), ISLOWER (i))
4392         || toupper (i) != TOUPPER (i))
4393       exit(2);
4394   exit (0);
4395 }
4396 _ACEOF
4397 rm -f conftest$ac_exeext
4398 if { (eval echo "$as_me:4398: \"$ac_link\"") >&5
4399   (eval $ac_link) 2>&5
4400   ac_status=$?
4401   echo "$as_me:4401: \$? = $ac_status" >&5
4402   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4403   { (eval echo "$as_me:4403: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:4406: \$? = $ac_status" >&5
4407   (exit $ac_status); }; }; then
4408   :
4409 else
4410   echo "$as_me: program exited with status $ac_status" >&5
4411 echo "$as_me: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 ( exit $ac_status )
4414 ac_cv_header_stdc=no
4415 fi
4416 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4417 fi
4418 fi
4419 fi
4420 echo "$as_me:4420: result: $ac_cv_header_stdc" >&5
4421 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4422 if test $ac_cv_header_stdc = yes; then
4423
4424 cat >>confdefs.h <<\_ACEOF
4425 #define STDC_HEADERS 1
4426 _ACEOF
4427
4428 fi
4429
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441                   inttypes.h stdint.h unistd.h
4442 do
4443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 echo "$as_me:4444: checking for $ac_header" >&5
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 #line 4450 "configure"
4451 #include "confdefs.h"
4452 $ac_includes_default
4453
4454 #include <$ac_header>
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:4457: \"$ac_compile\"") >&5
4458   (eval $ac_compile) 2>&5
4459   ac_status=$?
4460   echo "$as_me:4460: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (eval echo "$as_me:4463: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:4466: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   eval "$as_ac_Header=yes"
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 eval "$as_ac_Header=no"
4473 fi
4474 rm -f conftest.$ac_objext conftest.$ac_ext
4475 fi
4476 echo "$as_me:4476: result: `eval echo '${'$as_ac_Header'}'`" >&5
4477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4479   cat >>confdefs.h <<_ACEOF
4480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4481 _ACEOF
4482
4483 fi
4484
4485 done
4486
4487
4488
4489 for ac_header in dlfcn.h
4490 do
4491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493   echo "$as_me:4493: checking for $ac_header" >&5
4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 fi
4498 echo "$as_me:4498: result: `eval echo '${'$as_ac_Header'}'`" >&5
4499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4500 else
4501   # Is the header compilable?
4502 echo "$as_me:4502: checking $ac_header usability" >&5
4503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line 4505 "configure"
4506 #include "confdefs.h"
4507 $ac_includes_default
4508 #include <$ac_header>
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (eval echo "$as_me:4511: \"$ac_compile\"") >&5
4512   (eval $ac_compile) 2>&5
4513   ac_status=$?
4514   echo "$as_me:4514: \$? = $ac_status" >&5
4515   (exit $ac_status); } &&
4516          { ac_try='test -s conftest.$ac_objext'
4517   { (eval echo "$as_me:4517: \"$ac_try\"") >&5
4518   (eval $ac_try) 2>&5
4519   ac_status=$?
4520   echo "$as_me:4520: \$? = $ac_status" >&5
4521   (exit $ac_status); }; }; then
4522   ac_header_compiler=yes
4523 else
4524   echo "$as_me: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 ac_header_compiler=no
4527 fi
4528 rm -f conftest.$ac_objext conftest.$ac_ext
4529 echo "$as_me:4529: result: $ac_header_compiler" >&5
4530 echo "${ECHO_T}$ac_header_compiler" >&6
4531
4532 # Is the header present?
4533 echo "$as_me:4533: checking $ac_header presence" >&5
4534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4535 cat >conftest.$ac_ext <<_ACEOF
4536 #line 4536 "configure"
4537 #include "confdefs.h"
4538 #include <$ac_header>
4539 _ACEOF
4540 if { (eval echo "$as_me:4540: \"$ac_cpp conftest.$ac_ext\"") >&5
4541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4542   ac_status=$?
4543   egrep -v '^ *\+' conftest.er1 >conftest.err
4544   rm -f conftest.er1
4545   cat conftest.err >&5
4546   echo "$as_me:4546: \$? = $ac_status" >&5
4547   (exit $ac_status); } >/dev/null; then
4548   if test -s conftest.err; then
4549     ac_cpp_err=$ac_c_preproc_warn_flag
4550   else
4551     ac_cpp_err=
4552   fi
4553 else
4554   ac_cpp_err=yes
4555 fi
4556 if test -z "$ac_cpp_err"; then
4557   ac_header_preproc=yes
4558 else
4559   echo "$as_me: failed program was:" >&5
4560   cat conftest.$ac_ext >&5
4561   ac_header_preproc=no
4562 fi
4563 rm -f conftest.err conftest.$ac_ext
4564 echo "$as_me:4564: result: $ac_header_preproc" >&5
4565 echo "${ECHO_T}$ac_header_preproc" >&6
4566
4567 # So?  What about this header?
4568 case $ac_header_compiler:$ac_header_preproc in
4569   yes:no )
4570     { echo "$as_me:4570: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4572     { echo "$as_me:4572: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4574   no:yes )
4575     { echo "$as_me:4575: WARNING: $ac_header: present but cannot be compiled" >&5
4576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4577     { echo "$as_me:4577: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4579     { echo "$as_me:4579: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4581 esac
4582 echo "$as_me:4582: checking for $ac_header" >&5
4583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   eval "$as_ac_Header=$ac_header_preproc"
4588 fi
4589 echo "$as_me:4589: result: `eval echo '${'$as_ac_Header'}'`" >&5
4590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4591
4592 fi
4593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4594   cat >>confdefs.h <<_ACEOF
4595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4596 _ACEOF
4597
4598 fi
4599
4600 done
4601
4602
4603
4604
4605
4606 # Only perform the check for file, if the check method requires it
4607 case $deplibs_check_method in
4608 file_magic*)
4609   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4610     echo "$as_me:4610: checking for ${ac_tool_prefix}file" >&5
4611 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4612 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   case $MAGIC_CMD in
4616   /*)
4617   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4618   ;;
4619   ?:/*)
4620   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4621   ;;
4622   *)
4623   ac_save_MAGIC_CMD="$MAGIC_CMD"
4624   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4625   ac_dummy="/usr/bin:$PATH"
4626   for ac_dir in $ac_dummy; do
4627     test -z "$ac_dir" && ac_dir=.
4628     if test -f $ac_dir/${ac_tool_prefix}file; then
4629       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4630       if test -n "$file_magic_test_file"; then
4631         case $deplibs_check_method in
4632         "file_magic "*)
4633           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4634           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4635           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4636             egrep "$file_magic_regex" > /dev/null; then
4637             :
4638           else
4639             cat <<EOF 1>&2
4640
4641 *** Warning: the command libtool uses to detect shared libraries,
4642 *** $file_magic_cmd, produces output that libtool cannot recognize.
4643 *** The result is that libtool may fail to recognize shared libraries
4644 *** as such.  This will affect the creation of libtool libraries that
4645 *** depend on shared libraries, but programs linked with such libtool
4646 *** libraries will work regardless of this problem.  Nevertheless, you
4647 *** may want to report the problem to your system manager and/or to
4648 *** bug-libtool@gnu.org
4649
4650 EOF
4651           fi ;;
4652         esac
4653       fi
4654       break
4655     fi
4656   done
4657   IFS="$ac_save_ifs"
4658   MAGIC_CMD="$ac_save_MAGIC_CMD"
4659   ;;
4660 esac
4661 fi
4662
4663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4664 if test -n "$MAGIC_CMD"; then
4665   echo "$as_me:4665: result: $MAGIC_CMD" >&5
4666 echo "${ECHO_T}$MAGIC_CMD" >&6
4667 else
4668   echo "$as_me:4668: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 fi
4671
4672 if test -z "$lt_cv_path_MAGIC_CMD"; then
4673   if test -n "$ac_tool_prefix"; then
4674     echo "$as_me:4674: checking for file" >&5
4675 echo $ECHO_N "checking for file... $ECHO_C" >&6
4676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   case $MAGIC_CMD in
4680   /*)
4681   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4682   ;;
4683   ?:/*)
4684   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4685   ;;
4686   *)
4687   ac_save_MAGIC_CMD="$MAGIC_CMD"
4688   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4689   ac_dummy="/usr/bin:$PATH"
4690   for ac_dir in $ac_dummy; do
4691     test -z "$ac_dir" && ac_dir=.
4692     if test -f $ac_dir/file; then
4693       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4694       if test -n "$file_magic_test_file"; then
4695         case $deplibs_check_method in
4696         "file_magic "*)
4697           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4698           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4699           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4700             egrep "$file_magic_regex" > /dev/null; then
4701             :
4702           else
4703             cat <<EOF 1>&2
4704
4705 *** Warning: the command libtool uses to detect shared libraries,
4706 *** $file_magic_cmd, produces output that libtool cannot recognize.
4707 *** The result is that libtool may fail to recognize shared libraries
4708 *** as such.  This will affect the creation of libtool libraries that
4709 *** depend on shared libraries, but programs linked with such libtool
4710 *** libraries will work regardless of this problem.  Nevertheless, you
4711 *** may want to report the problem to your system manager and/or to
4712 *** bug-libtool@gnu.org
4713
4714 EOF
4715           fi ;;
4716         esac
4717       fi
4718       break
4719     fi
4720   done
4721   IFS="$ac_save_ifs"
4722   MAGIC_CMD="$ac_save_MAGIC_CMD"
4723   ;;
4724 esac
4725 fi
4726
4727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4728 if test -n "$MAGIC_CMD"; then
4729   echo "$as_me:4729: result: $MAGIC_CMD" >&5
4730 echo "${ECHO_T}$MAGIC_CMD" >&6
4731 else
4732   echo "$as_me:4732: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4734 fi
4735
4736   else
4737     MAGIC_CMD=:
4738   fi
4739 fi
4740
4741   fi
4742   ;;
4743 esac
4744
4745 if test -n "$ac_tool_prefix"; then
4746   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4747 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4748 echo "$as_me:4748: checking for $ac_word" >&5
4749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750 if test "${ac_cv_prog_RANLIB+set}" = set; then
4751   echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753   if test -n "$RANLIB"; then
4754   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4758 do
4759   IFS=$as_save_IFS
4760   test -z "$as_dir" && as_dir=.
4761   for ac_exec_ext in '' $ac_executable_extensions; do
4762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4764     echo "$as_me:4764: found $as_dir/$ac_word$ac_exec_ext" >&5
4765     break 2
4766   fi
4767 done
4768 done
4769
4770 fi
4771 fi
4772 RANLIB=$ac_cv_prog_RANLIB
4773 if test -n "$RANLIB"; then
4774   echo "$as_me:4774: result: $RANLIB" >&5
4775 echo "${ECHO_T}$RANLIB" >&6
4776 else
4777   echo "$as_me:4777: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4779 fi
4780
4781 fi
4782 if test -z "$ac_cv_prog_RANLIB"; then
4783   ac_ct_RANLIB=$RANLIB
4784   # Extract the first word of "ranlib", so it can be a program name with args.
4785 set dummy ranlib; ac_word=$2
4786 echo "$as_me:4786: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4788 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   if test -n "$ac_ct_RANLIB"; then
4792   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799   for ac_exec_ext in '' $ac_executable_extensions; do
4800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801     ac_cv_prog_ac_ct_RANLIB="ranlib"
4802     echo "$as_me:4802: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806 done
4807
4808   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4809 fi
4810 fi
4811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4812 if test -n "$ac_ct_RANLIB"; then
4813   echo "$as_me:4813: result: $ac_ct_RANLIB" >&5
4814 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4815 else
4816   echo "$as_me:4816: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4818 fi
4819
4820   RANLIB=$ac_ct_RANLIB
4821 else
4822   RANLIB="$ac_cv_prog_RANLIB"
4823 fi
4824
4825 if test -n "$ac_tool_prefix"; then
4826   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}strip; ac_word=$2
4828 echo "$as_me:4828: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4830 if test "${ac_cv_prog_STRIP+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833   if test -n "$STRIP"; then
4834   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841   for ac_exec_ext in '' $ac_executable_extensions; do
4842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4844     echo "$as_me:4844: found $as_dir/$ac_word$ac_exec_ext" >&5
4845     break 2
4846   fi
4847 done
4848 done
4849
4850 fi
4851 fi
4852 STRIP=$ac_cv_prog_STRIP
4853 if test -n "$STRIP"; then
4854   echo "$as_me:4854: result: $STRIP" >&5
4855 echo "${ECHO_T}$STRIP" >&6
4856 else
4857   echo "$as_me:4857: result: no" >&5
4858 echo "${ECHO_T}no" >&6
4859 fi
4860
4861 fi
4862 if test -z "$ac_cv_prog_STRIP"; then
4863   ac_ct_STRIP=$STRIP
4864   # Extract the first word of "strip", so it can be a program name with args.
4865 set dummy strip; ac_word=$2
4866 echo "$as_me:4866: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   if test -n "$ac_ct_STRIP"; then
4872   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879   for ac_exec_ext in '' $ac_executable_extensions; do
4880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881     ac_cv_prog_ac_ct_STRIP="strip"
4882     echo "$as_me:4882: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886 done
4887
4888   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4889 fi
4890 fi
4891 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4892 if test -n "$ac_ct_STRIP"; then
4893   echo "$as_me:4893: result: $ac_ct_STRIP" >&5
4894 echo "${ECHO_T}$ac_ct_STRIP" >&6
4895 else
4896   echo "$as_me:4896: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4898 fi
4899
4900   STRIP=$ac_ct_STRIP
4901 else
4902   STRIP="$ac_cv_prog_STRIP"
4903 fi
4904
4905
4906 enable_dlopen=no
4907 enable_win32_dll=no
4908
4909 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4910 if test "${enable_libtool_lock+set}" = set; then
4911   enableval="$enable_libtool_lock"
4912
4913 fi;
4914 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4915
4916 # Some flags need to be propagated to the compiler or linker for good
4917 # libtool support.
4918 case $host in
4919 *-*-irix6*)
4920   # Find out which ABI we are using.
4921   echo '#line 4921 "configure"' > conftest.$ac_ext
4922   if { (eval echo "$as_me:4922: \"$ac_compile\"") >&5
4923   (eval $ac_compile) 2>&5
4924   ac_status=$?
4925   echo "$as_me:4925: \$? = $ac_status" >&5
4926   (exit $ac_status); }; then
4927     case `/usr/bin/file conftest.$ac_objext` in
4928     *32-bit*)
4929       LD="${LD-ld} -32"
4930       ;;
4931     *N32*)
4932       LD="${LD-ld} -n32"
4933       ;;
4934     *64-bit*)
4935       LD="${LD-ld} -64"
4936       ;;
4937     esac
4938   fi
4939   rm -rf conftest*
4940   ;;
4941
4942 *-*-sco3.2v5*)
4943   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4944   SAVE_CFLAGS="$CFLAGS"
4945   CFLAGS="$CFLAGS -belf"
4946   echo "$as_me:4946: checking whether the C compiler needs -belf" >&5
4947 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4948 if test "${lt_cv_cc_needs_belf+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951
4952
4953      ac_ext=c
4954 ac_cpp='$CPP $CPPFLAGS'
4955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958
4959      cat >conftest.$ac_ext <<_ACEOF
4960 #line 4960 "configure"
4961 #include "confdefs.h"
4962
4963 #ifdef F77_DUMMY_MAIN
4964 #  ifdef __cplusplus
4965      extern "C"
4966 #  endif
4967    int F77_DUMMY_MAIN() { return 1; }
4968 #endif
4969 int
4970 main ()
4971 {
4972
4973   ;
4974   return 0;
4975 }
4976 _ACEOF
4977 rm -f conftest.$ac_objext conftest$ac_exeext
4978 if { (eval echo "$as_me:4978: \"$ac_link\"") >&5
4979   (eval $ac_link) 2>&5
4980   ac_status=$?
4981   echo "$as_me:4981: \$? = $ac_status" >&5
4982   (exit $ac_status); } &&
4983          { ac_try='test -s conftest$ac_exeext'
4984   { (eval echo "$as_me:4984: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:4987: \$? = $ac_status" >&5
4988   (exit $ac_status); }; }; then
4989   lt_cv_cc_needs_belf=yes
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4993 lt_cv_cc_needs_belf=no
4994 fi
4995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4996      ac_ext=c
4997 ac_cpp='$CPP $CPPFLAGS'
4998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001
5002 fi
5003 echo "$as_me:5003: result: $lt_cv_cc_needs_belf" >&5
5004 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5005   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5006     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5007     CFLAGS="$SAVE_CFLAGS"
5008   fi
5009   ;;
5010
5011
5012 esac
5013
5014 # Sed substitution that helps us do robust quoting.  It backslashifies
5015 # metacharacters that are still active within double-quoted strings.
5016 Xsed='sed -e s/^X//'
5017 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5018
5019 # Same as above, but do not quote variable references.
5020 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5021
5022 # Sed substitution to delay expansion of an escaped shell variable in a
5023 # double_quote_subst'ed string.
5024 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5025
5026 # Constants:
5027 rm="rm -f"
5028
5029 # Global variables:
5030 default_ofile=libtool
5031 can_build_shared=yes
5032
5033 # All known linkers require a `.a' archive for static linking (except M$VC,
5034 # which needs '.lib').
5035 libext=a
5036 ltmain="$ac_aux_dir/ltmain.sh"
5037 ofile="$default_ofile"
5038 with_gnu_ld="$lt_cv_prog_gnu_ld"
5039 need_locks="$enable_libtool_lock"
5040
5041 old_CC="$CC"
5042 old_CFLAGS="$CFLAGS"
5043
5044 # Set sane defaults for various variables
5045 test -z "$AR" && AR=ar
5046 test -z "$AR_FLAGS" && AR_FLAGS=cru
5047 test -z "$AS" && AS=as
5048 test -z "$CC" && CC=cc
5049 test -z "$DLLTOOL" && DLLTOOL=dlltool
5050 test -z "$LD" && LD=ld
5051 test -z "$LN_S" && LN_S="ln -s"
5052 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5053 test -z "$NM" && NM=nm
5054 test -z "$OBJDUMP" && OBJDUMP=objdump
5055 test -z "$RANLIB" && RANLIB=:
5056 test -z "$STRIP" && STRIP=:
5057 test -z "$ac_objext" && ac_objext=o
5058
5059 if test x"$host" != x"$build"; then
5060   ac_tool_prefix=${host_alias}-
5061 else
5062   ac_tool_prefix=
5063 fi
5064
5065 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5066 case $host_os in
5067 linux-gnu*) ;;
5068 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5069 esac
5070
5071 case $host_os in
5072 aix3*)
5073   # AIX sometimes has problems with the GCC collect2 program.  For some
5074   # reason, if we set the COLLECT_NAMES environment variable, the problems
5075   # vanish in a puff of smoke.
5076   if test "X${COLLECT_NAMES+set}" != Xset; then
5077     COLLECT_NAMES=
5078     export COLLECT_NAMES
5079   fi
5080   ;;
5081 esac
5082
5083 # Determine commands to create old-style static archives.
5084 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5085 old_postinstall_cmds='chmod 644 $oldlib'
5086 old_postuninstall_cmds=
5087
5088 if test -n "$RANLIB"; then
5089   case $host_os in
5090   openbsd*)
5091     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5092     ;;
5093   *)
5094     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5095     ;;
5096   esac
5097   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5098 fi
5099
5100 # Allow CC to be a program name with arguments.
5101 set dummy $CC
5102 compiler="$2"
5103
5104 echo "$as_me:5104: checking for objdir" >&5
5105 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5106 rm -f .libs 2>/dev/null
5107 mkdir .libs 2>/dev/null
5108 if test -d .libs; then
5109   objdir=.libs
5110 else
5111   # MS-DOS does not allow filenames that begin with a dot.
5112   objdir=_libs
5113 fi
5114 rmdir .libs 2>/dev/null
5115 echo "$as_me:5115: result: $objdir" >&5
5116 echo "${ECHO_T}$objdir" >&6
5117
5118
5119
5120 # Check whether --with-pic or --without-pic was given.
5121 if test "${with_pic+set}" = set; then
5122   withval="$with_pic"
5123   pic_mode="$withval"
5124 else
5125   pic_mode=default
5126 fi;
5127 test -z "$pic_mode" && pic_mode=default
5128
5129 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5130 # in isolation, and that seeing it set (from the cache) indicates that
5131 # the associated values are set (in the cache) correctly too.
5132 echo "$as_me:5132: checking for $compiler option to produce PIC" >&5
5133 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5134 if test "${lt_cv_prog_cc_pic+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137    lt_cv_prog_cc_pic=
5138   lt_cv_prog_cc_shlib=
5139   lt_cv_prog_cc_wl=
5140   lt_cv_prog_cc_static=
5141   lt_cv_prog_cc_no_builtin=
5142   lt_cv_prog_cc_can_build_shared=$can_build_shared
5143
5144   if test "$GCC" = yes; then
5145     lt_cv_prog_cc_wl='-Wl,'
5146     lt_cv_prog_cc_static='-static'
5147
5148     case $host_os in
5149     aix*)
5150       # Below there is a dirty hack to force normal static linking with -ldl
5151       # The problem is because libdl dynamically linked with both libc and
5152       # libC (AIX C++ library), which obviously doesn't included in libraries
5153       # list by gcc. This cause undefined symbols with -static flags.
5154       # This hack allows C programs to be linked with "-static -ldl", but
5155       # not sure about C++ programs.
5156       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5157       ;;
5158     amigaos*)
5159       # FIXME: we need at least 68020 code to build shared libraries, but
5160       # adding the `-m68020' flag to GCC prevents building anything better,
5161       # like `-m68040'.
5162       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5163       ;;
5164     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5165       # PIC is the default for these OSes.
5166       ;;
5167     darwin* | rhapsody*)
5168       # PIC is the default on this platform
5169       # Common symbols not allowed in MH_DYLIB files
5170       lt_cv_prog_cc_pic='-fno-common'
5171       ;;
5172     cygwin* | mingw* | pw32* | os2*)
5173       # This hack is so that the source file can tell whether it is being
5174       # built for inclusion in a dll (and should export symbols for example).
5175       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5176       ;;
5177     sysv4*MP*)
5178       if test -d /usr/nec; then
5179          lt_cv_prog_cc_pic=-Kconform_pic
5180       fi
5181       ;;
5182     *)
5183       lt_cv_prog_cc_pic='-fPIC'
5184       ;;
5185     esac
5186   else
5187     # PORTME Check for PIC flags for the system compiler.
5188     case $host_os in
5189     aix3* | aix4* | aix5*)
5190       lt_cv_prog_cc_wl='-Wl,'
5191       # All AIX code is PIC.
5192       if test "$host_cpu" = ia64; then
5193         # AIX 5 now supports IA64 processor
5194         lt_cv_prog_cc_static='-Bstatic'
5195       else
5196         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5197       fi
5198       ;;
5199
5200     hpux9* | hpux10* | hpux11*)
5201       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5202       lt_cv_prog_cc_wl='-Wl,'
5203       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5204       lt_cv_prog_cc_pic='+Z'
5205       ;;
5206
5207     irix5* | irix6*)
5208       lt_cv_prog_cc_wl='-Wl,'
5209       lt_cv_prog_cc_static='-non_shared'
5210       # PIC (with -KPIC) is the default.
5211       ;;
5212
5213     cygwin* | mingw* | pw32* | os2*)
5214       # This hack is so that the source file can tell whether it is being
5215       # built for inclusion in a dll (and should export symbols for example).
5216       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5217       ;;
5218
5219     newsos6)
5220       lt_cv_prog_cc_pic='-KPIC'
5221       lt_cv_prog_cc_static='-Bstatic'
5222       ;;
5223
5224     osf3* | osf4* | osf5*)
5225       # All OSF/1 code is PIC.
5226       lt_cv_prog_cc_wl='-Wl,'
5227       lt_cv_prog_cc_static='-non_shared'
5228       ;;
5229
5230     sco3.2v5*)
5231       lt_cv_prog_cc_pic='-Kpic'
5232       lt_cv_prog_cc_static='-dn'
5233       lt_cv_prog_cc_shlib='-belf'
5234       ;;
5235
5236     solaris*)
5237       lt_cv_prog_cc_pic='-KPIC'
5238       lt_cv_prog_cc_static='-Bstatic'
5239       lt_cv_prog_cc_wl='-Wl,'
5240       ;;
5241
5242     sunos4*)
5243       lt_cv_prog_cc_pic='-PIC'
5244       lt_cv_prog_cc_static='-Bstatic'
5245       lt_cv_prog_cc_wl='-Qoption ld '
5246       ;;
5247
5248     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5249       lt_cv_prog_cc_pic='-KPIC'
5250       lt_cv_prog_cc_static='-Bstatic'
5251       if test "x$host_vendor" = xsni; then
5252         lt_cv_prog_cc_wl='-LD'
5253       else
5254         lt_cv_prog_cc_wl='-Wl,'
5255       fi
5256       ;;
5257
5258     uts4*)
5259       lt_cv_prog_cc_pic='-pic'
5260       lt_cv_prog_cc_static='-Bstatic'
5261       ;;
5262
5263     sysv4*MP*)
5264       if test -d /usr/nec ;then
5265         lt_cv_prog_cc_pic='-Kconform_pic'
5266         lt_cv_prog_cc_static='-Bstatic'
5267       fi
5268       ;;
5269
5270     *)
5271       lt_cv_prog_cc_can_build_shared=no
5272       ;;
5273     esac
5274   fi
5275
5276 fi
5277
5278 if test -z "$lt_cv_prog_cc_pic"; then
5279   echo "$as_me:5279: result: none" >&5
5280 echo "${ECHO_T}none" >&6
5281 else
5282   echo "$as_me:5282: result: $lt_cv_prog_cc_pic" >&5
5283 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5284
5285   # Check to make sure the pic_flag actually works.
5286   echo "$as_me:5286: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5287 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5288   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291       save_CFLAGS="$CFLAGS"
5292     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5293     cat >conftest.$ac_ext <<_ACEOF
5294 #line 5294 "configure"
5295 #include "confdefs.h"
5296
5297 #ifdef F77_DUMMY_MAIN
5298 #  ifdef __cplusplus
5299      extern "C"
5300 #  endif
5301    int F77_DUMMY_MAIN() { return 1; }
5302 #endif
5303 int
5304 main ()
5305 {
5306
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:5312: \"$ac_compile\"") >&5
5313   (eval $ac_compile) 2>&5
5314   ac_status=$?
5315   echo "$as_me:5315: \$? = $ac_status" >&5
5316   (exit $ac_status); } &&
5317          { ac_try='test -s conftest.$ac_objext'
5318   { (eval echo "$as_me:5318: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:5321: \$? = $ac_status" >&5
5322   (exit $ac_status); }; }; then
5323         case $host_os in
5324       hpux9* | hpux10* | hpux11*)
5325         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5326         # they create non-PIC objects.  So, if there were any warnings, we
5327         # assume that PIC is not supported.
5328         if test -s conftest.err; then
5329           lt_cv_prog_cc_pic_works=no
5330         else
5331           lt_cv_prog_cc_pic_works=yes
5332         fi
5333         ;;
5334       *)
5335         lt_cv_prog_cc_pic_works=yes
5336         ;;
5337       esac
5338
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5342       lt_cv_prog_cc_pic_works=no
5343
5344 fi
5345 rm -f conftest.$ac_objext conftest.$ac_ext
5346     CFLAGS="$save_CFLAGS"
5347
5348 fi
5349
5350
5351   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5352     lt_cv_prog_cc_pic=
5353     lt_cv_prog_cc_can_build_shared=no
5354   else
5355     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5356   fi
5357
5358   echo "$as_me:5358: result: $lt_cv_prog_cc_pic_works" >&5
5359 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5360 fi
5361
5362 # Check for any special shared library compilation flags.
5363 if test -n "$lt_cv_prog_cc_shlib"; then
5364   { echo "$as_me:5364: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5365 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5366   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5367   else
5368    { echo "$as_me:5368: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5369 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5370     lt_cv_prog_cc_can_build_shared=no
5371   fi
5372 fi
5373
5374 echo "$as_me:5374: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5375 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5376 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379     lt_cv_prog_cc_static_works=no
5380   save_LDFLAGS="$LDFLAGS"
5381   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5382   cat >conftest.$ac_ext <<_ACEOF
5383 #line 5383 "configure"
5384 #include "confdefs.h"
5385
5386 #ifdef F77_DUMMY_MAIN
5387 #  ifdef __cplusplus
5388      extern "C"
5389 #  endif
5390    int F77_DUMMY_MAIN() { return 1; }
5391 #endif
5392 int
5393 main ()
5394 {
5395
5396   ;
5397   return 0;
5398 }
5399 _ACEOF
5400 rm -f conftest.$ac_objext conftest$ac_exeext
5401 if { (eval echo "$as_me:5401: \"$ac_link\"") >&5
5402   (eval $ac_link) 2>&5
5403   ac_status=$?
5404   echo "$as_me:5404: \$? = $ac_status" >&5
5405   (exit $ac_status); } &&
5406          { ac_try='test -s conftest$ac_exeext'
5407   { (eval echo "$as_me:5407: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:5410: \$? = $ac_status" >&5
5411   (exit $ac_status); }; }; then
5412   lt_cv_prog_cc_static_works=yes
5413 else
5414   echo "$as_me: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5416 fi
5417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5418   LDFLAGS="$save_LDFLAGS"
5419
5420 fi
5421
5422
5423 # Belt *and* braces to stop my trousers falling down:
5424 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5425 echo "$as_me:5425: result: $lt_cv_prog_cc_static_works" >&5
5426 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5427
5428 pic_flag="$lt_cv_prog_cc_pic"
5429 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5430 wl="$lt_cv_prog_cc_wl"
5431 link_static_flag="$lt_cv_prog_cc_static"
5432 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5433 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5434
5435
5436 # Check to see if options -o and -c are simultaneously supported by compiler
5437 echo "$as_me:5437: checking if $compiler supports -c -o file.$ac_objext" >&5
5438 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5439 if test "${lt_cv_compiler_c_o+set}" = set; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442
5443 $rm -r conftest 2>/dev/null
5444 mkdir conftest
5445 cd conftest
5446 echo "int some_variable = 0;" > conftest.$ac_ext
5447 mkdir out
5448 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5449 # that will create temporary files in the current directory regardless of
5450 # the output directory.  Thus, making CWD read-only will cause this test
5451 # to fail, enabling locking or at least warning the user not to do parallel
5452 # builds.
5453 chmod -w .
5454 save_CFLAGS="$CFLAGS"
5455 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5456 compiler_c_o=no
5457 if { (eval echo configure:5457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5458   # The compiler can only warn and ignore the option if not recognized
5459   # So say no if there are warnings
5460   if test -s out/conftest.err; then
5461     lt_cv_compiler_c_o=no
5462   else
5463     lt_cv_compiler_c_o=yes
5464   fi
5465 else
5466   # Append any errors to the config.log.
5467   cat out/conftest.err 1>&5
5468   lt_cv_compiler_c_o=no
5469 fi
5470 CFLAGS="$save_CFLAGS"
5471 chmod u+w .
5472 $rm conftest* out/*
5473 rmdir out
5474 cd ..
5475 rmdir conftest
5476 $rm -r conftest 2>/dev/null
5477
5478 fi
5479
5480 compiler_c_o=$lt_cv_compiler_c_o
5481 echo "$as_me:5481: result: $compiler_c_o" >&5
5482 echo "${ECHO_T}$compiler_c_o" >&6
5483
5484 if test x"$compiler_c_o" = x"yes"; then
5485   # Check to see if we can write to a .lo
5486   echo "$as_me:5486: checking if $compiler supports -c -o file.lo" >&5
5487 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5488   if test "${lt_cv_compiler_o_lo+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491
5492   lt_cv_compiler_o_lo=no
5493   save_CFLAGS="$CFLAGS"
5494   CFLAGS="$CFLAGS -c -o conftest.lo"
5495   save_objext="$ac_objext"
5496   ac_objext=lo
5497   cat >conftest.$ac_ext <<_ACEOF
5498 #line 5498 "configure"
5499 #include "confdefs.h"
5500
5501 #ifdef F77_DUMMY_MAIN
5502 #  ifdef __cplusplus
5503      extern "C"
5504 #  endif
5505    int F77_DUMMY_MAIN() { return 1; }
5506 #endif
5507 int
5508 main ()
5509 {
5510 int some_variable = 0;
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (eval echo "$as_me:5516: \"$ac_compile\"") >&5
5517   (eval $ac_compile) 2>&5
5518   ac_status=$?
5519   echo "$as_me:5519: \$? = $ac_status" >&5
5520   (exit $ac_status); } &&
5521          { ac_try='test -s conftest.$ac_objext'
5522   { (eval echo "$as_me:5522: \"$ac_try\"") >&5
5523   (eval $ac_try) 2>&5
5524   ac_status=$?
5525   echo "$as_me:5525: \$? = $ac_status" >&5
5526   (exit $ac_status); }; }; then
5527       # The compiler can only warn and ignore the option if not recognized
5528     # So say no if there are warnings
5529     if test -s conftest.err; then
5530       lt_cv_compiler_o_lo=no
5531     else
5532       lt_cv_compiler_o_lo=yes
5533     fi
5534
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5538 fi
5539 rm -f conftest.$ac_objext conftest.$ac_ext
5540   ac_objext="$save_objext"
5541   CFLAGS="$save_CFLAGS"
5542
5543 fi
5544
5545   compiler_o_lo=$lt_cv_compiler_o_lo
5546   echo "$as_me:5546: result: $compiler_o_lo" >&5
5547 echo "${ECHO_T}$compiler_o_lo" >&6
5548 else
5549   compiler_o_lo=no
5550 fi
5551
5552 # Check to see if we can do hard links to lock some files if needed
5553 hard_links="nottested"
5554 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5555   # do not overwrite the value of need_locks provided by the user
5556   echo "$as_me:5556: checking if we can lock with hard links" >&5
5557 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5558   hard_links=yes
5559   $rm conftest*
5560   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5561   touch conftest.a
5562   ln conftest.a conftest.b 2>&5 || hard_links=no
5563   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5564   echo "$as_me:5564: result: $hard_links" >&5
5565 echo "${ECHO_T}$hard_links" >&6
5566   if test "$hard_links" = no; then
5567     { echo "$as_me:5567: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5568 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5569     need_locks=warn
5570   fi
5571 else
5572   need_locks=no
5573 fi
5574
5575 if test "$GCC" = yes; then
5576   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5577   echo "$as_me:5577: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5578 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5579   echo "int some_variable = 0;" > conftest.$ac_ext
5580   save_CFLAGS="$CFLAGS"
5581   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5582   compiler_rtti_exceptions=no
5583   cat >conftest.$ac_ext <<_ACEOF
5584 #line 5584 "configure"
5585 #include "confdefs.h"
5586
5587 #ifdef F77_DUMMY_MAIN
5588 #  ifdef __cplusplus
5589      extern "C"
5590 #  endif
5591    int F77_DUMMY_MAIN() { return 1; }
5592 #endif
5593 int
5594 main ()
5595 {
5596 int some_variable = 0;
5597   ;
5598   return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (eval echo "$as_me:5602: \"$ac_compile\"") >&5
5603   (eval $ac_compile) 2>&5
5604   ac_status=$?
5605   echo "$as_me:5605: \$? = $ac_status" >&5
5606   (exit $ac_status); } &&
5607          { ac_try='test -s conftest.$ac_objext'
5608   { (eval echo "$as_me:5608: \"$ac_try\"") >&5
5609   (eval $ac_try) 2>&5
5610   ac_status=$?
5611   echo "$as_me:5611: \$? = $ac_status" >&5
5612   (exit $ac_status); }; }; then
5613       # The compiler can only warn and ignore the option if not recognized
5614     # So say no if there are warnings
5615     if test -s conftest.err; then
5616       compiler_rtti_exceptions=no
5617     else
5618       compiler_rtti_exceptions=yes
5619     fi
5620
5621 else
5622   echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 fi
5625 rm -f conftest.$ac_objext conftest.$ac_ext
5626   CFLAGS="$save_CFLAGS"
5627   echo "$as_me:5627: result: $compiler_rtti_exceptions" >&5
5628 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5629
5630   if test "$compiler_rtti_exceptions" = "yes"; then
5631     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5632   else
5633     no_builtin_flag=' -fno-builtin'
5634   fi
5635 fi
5636
5637 # See if the linker supports building shared libraries.
5638 echo "$as_me:5638: checking whether the linker ($LD) supports shared libraries" >&5
5639 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5640
5641 allow_undefined_flag=
5642 no_undefined_flag=
5643 need_lib_prefix=unknown
5644 need_version=unknown
5645 # when you set need_version to no, make sure it does not cause -set_version
5646 # flags to be left without arguments
5647 archive_cmds=
5648 archive_expsym_cmds=
5649 old_archive_from_new_cmds=
5650 old_archive_from_expsyms_cmds=
5651 export_dynamic_flag_spec=
5652 whole_archive_flag_spec=
5653 thread_safe_flag_spec=
5654 hardcode_into_libs=no
5655 hardcode_libdir_flag_spec=
5656 hardcode_libdir_separator=
5657 hardcode_direct=no
5658 hardcode_minus_L=no
5659 hardcode_shlibpath_var=unsupported
5660 runpath_var=
5661 link_all_deplibs=unknown
5662 always_export_symbols=no
5663 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5664 # include_expsyms should be a list of space-separated symbols to be *always*
5665 # included in the symbol list
5666 include_expsyms=
5667 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5668 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5669 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5670 # as well as any symbol that contains `d'.
5671 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5672 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5673 # platforms (ab)use it in PIC code, but their linkers get confused if
5674 # the symbol is explicitly referenced.  Since portable code cannot
5675 # rely on this symbol name, it's probably fine to never include it in
5676 # preloaded symbol tables.
5677 extract_expsyms_cmds=
5678
5679 case $host_os in
5680 cygwin* | mingw* | pw32*)
5681   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5682   # When not using gcc, we currently assume that we are using
5683   # Microsoft Visual C++.
5684   if test "$GCC" != yes; then
5685     with_gnu_ld=no
5686   fi
5687   ;;
5688 openbsd*)
5689   with_gnu_ld=no
5690   ;;
5691 esac
5692
5693 ld_shlibs=yes
5694 if test "$with_gnu_ld" = yes; then
5695   # If archive_cmds runs LD, not CC, wlarc should be empty
5696   wlarc='${wl}'
5697
5698   # See if GNU ld supports shared libraries.
5699   case $host_os in
5700   aix3* | aix4* | aix5*)
5701     # On AIX, the GNU linker is very broken
5702     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5703     ld_shlibs=no
5704     cat <<EOF 1>&2
5705
5706 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5707 *** to be unable to reliably create shared libraries on AIX.
5708 *** Therefore, libtool is disabling shared libraries support.  If you
5709 *** really care for shared libraries, you may want to modify your PATH
5710 *** so that a non-GNU linker is found, and then restart.
5711
5712 EOF
5713     ;;
5714
5715   amigaos*)
5716     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)'
5717     hardcode_libdir_flag_spec='-L$libdir'
5718     hardcode_minus_L=yes
5719
5720     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5721     # that the semantics of dynamic libraries on AmigaOS, at least up
5722     # to version 4, is to share data among multiple programs linked
5723     # with the same dynamic library.  Since this doesn't match the
5724     # behavior of shared libraries on other platforms, we can use
5725     # them.
5726     ld_shlibs=no
5727     ;;
5728
5729   beos*)
5730     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5731       allow_undefined_flag=unsupported
5732       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5733       # support --undefined.  This deserves some investigation.  FIXME
5734       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5735     else
5736       ld_shlibs=no
5737     fi
5738     ;;
5739
5740   cygwin* | mingw* | pw32*)
5741     # hardcode_libdir_flag_spec is actually meaningless, as there is
5742     # no search path for DLLs.
5743     hardcode_libdir_flag_spec='-L$libdir'
5744     allow_undefined_flag=unsupported
5745     always_export_symbols=yes
5746
5747     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5748       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5749       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5750       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5751       else $CC -o impgen impgen.c ; fi)~
5752       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5753
5754     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5755
5756     # cygwin and mingw dlls have different entry points and sets of symbols
5757     # to exclude.
5758     # FIXME: what about values for MSVC?
5759     dll_entry=__cygwin_dll_entry@12
5760     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5761     case $host_os in
5762     mingw*)
5763       # mingw values
5764       dll_entry=_DllMainCRTStartup@12
5765       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5766       ;;
5767     esac
5768
5769     # mingw and cygwin differ, and it's simplest to just exclude the union
5770     # of the two symbol sets.
5771     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5772
5773     # recent cygwin and mingw systems supply a stub DllMain which the user
5774     # can override, but on older systems we have to supply one (in ltdll.c)
5775     if test "x$lt_cv_need_dllmain" = "xyes"; then
5776       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5777       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~
5778         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5779     else
5780       ltdll_obj=
5781       ltdll_cmds=
5782     fi
5783
5784     # Extract the symbol export list from an `--export-all' def file,
5785     # then regenerate the def file from the symbol export list, so that
5786     # the compiled dll only exports the symbol export list.
5787     # Be careful not to strip the DATA tag left be newer dlltools.
5788     export_symbols_cmds="$ltdll_cmds"'
5789       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5790       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5791
5792     # If the export-symbols file already is a .def file (1st line
5793     # is EXPORTS), use it as is.
5794     # If DATA tags from a recent dlltool are present, honour them!
5795     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5796         cp $export_symbols $output_objdir/$soname-def;
5797       else
5798         echo EXPORTS > $output_objdir/$soname-def;
5799         _lt_hint=1;
5800         cat $export_symbols | while read symbol; do
5801          set dummy \$symbol;
5802          case \$# in
5803            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5804            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5805          esac;
5806          _lt_hint=`expr 1 + \$_lt_hint`;
5807         done;
5808       fi~
5809       '"$ltdll_cmds"'
5810       $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~
5811       $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~
5812       $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~
5813       $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~
5814       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5815     ;;
5816
5817   netbsd*)
5818     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5819       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5820       wlarc=
5821     else
5822       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5823       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5824     fi
5825     ;;
5826
5827   solaris* | sysv5*)
5828     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5829       ld_shlibs=no
5830       cat <<EOF 1>&2
5831
5832 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5833 *** create shared libraries on Solaris systems.  Therefore, libtool
5834 *** is disabling shared libraries support.  We urge you to upgrade GNU
5835 *** binutils to release 2.9.1 or newer.  Another option is to modify
5836 *** your PATH or compiler configuration so that the native linker is
5837 *** used, and then restart.
5838
5839 EOF
5840     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5841       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5842       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5843     else
5844       ld_shlibs=no
5845     fi
5846     ;;
5847
5848   sunos4*)
5849     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5850     wlarc=
5851     hardcode_direct=yes
5852     hardcode_shlibpath_var=no
5853     ;;
5854
5855   *)
5856     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5857       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5858       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5859     else
5860       ld_shlibs=no
5861     fi
5862     ;;
5863   esac
5864
5865   if test "$ld_shlibs" = yes; then
5866     runpath_var=LD_RUN_PATH
5867     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5868     export_dynamic_flag_spec='${wl}--export-dynamic'
5869     case $host_os in
5870     cygwin* | mingw* | pw32*)
5871       # dlltool doesn't understand --whole-archive et. al.
5872       whole_archive_flag_spec=
5873       ;;
5874     *)
5875       # ancient GNU ld didn't support --whole-archive et. al.
5876       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5877         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5878       else
5879         whole_archive_flag_spec=
5880       fi
5881       ;;
5882     esac
5883   fi
5884 else
5885   # PORTME fill in a description of your system's linker (not GNU ld)
5886   case $host_os in
5887   aix3*)
5888     allow_undefined_flag=unsupported
5889     always_export_symbols=yes
5890     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'
5891     # Note: this linker hardcodes the directories in LIBPATH if there
5892     # are no directories specified by -L.
5893     hardcode_minus_L=yes
5894     if test "$GCC" = yes && test -z "$link_static_flag"; then
5895       # Neither direct hardcoding nor static linking is supported with a
5896       # broken collect2.
5897       hardcode_direct=unsupported
5898     fi
5899     ;;
5900
5901   aix4* | aix5*)
5902     if test "$host_cpu" = ia64; then
5903       # On IA64, the linker does run time linking by default, so we don't
5904       # have to do anything special.
5905       aix_use_runtimelinking=no
5906       exp_sym_flag='-Bexport'
5907       no_entry_flag=""
5908     else
5909       aix_use_runtimelinking=no
5910
5911       # Test if we are trying to use run time linking or normal
5912       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5913       # need to do runtime linking.
5914       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5915         for ld_flag in $LDFLAGS; do
5916           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5917             aix_use_runtimelinking=yes
5918             break
5919           fi
5920         done
5921       esac
5922
5923       exp_sym_flag='-bexport'
5924       no_entry_flag='-bnoentry'
5925     fi
5926
5927     # When large executables or shared objects are built, AIX ld can
5928     # have problems creating the table of contents.  If linking a library
5929     # or program results in "error TOC overflow" add -mminimal-toc to
5930     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5931     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5932
5933     hardcode_direct=yes
5934     archive_cmds=''
5935     hardcode_libdir_separator=':'
5936     if test "$GCC" = yes; then
5937       case $host_os in aix4.[012]|aix4.[012].*)
5938         collect2name=`${CC} -print-prog-name=collect2`
5939         if test -f "$collect2name" && \
5940           strings "$collect2name" | grep resolve_lib_name >/dev/null
5941         then
5942           # We have reworked collect2
5943           hardcode_direct=yes
5944         else
5945           # We have old collect2
5946           hardcode_direct=unsupported
5947           # It fails to find uninstalled libraries when the uninstalled
5948           # path is not listed in the libpath.  Setting hardcode_minus_L
5949           # to unsupported forces relinking
5950           hardcode_minus_L=yes
5951           hardcode_libdir_flag_spec='-L$libdir'
5952           hardcode_libdir_separator=
5953         fi
5954       esac
5955
5956       shared_flag='-shared'
5957     else
5958       # not using gcc
5959       if test "$host_cpu" = ia64; then
5960         shared_flag='${wl}-G'
5961       else
5962         if test "$aix_use_runtimelinking" = yes; then
5963           shared_flag='${wl}-G'
5964         else
5965           shared_flag='${wl}-bM:SRE'
5966         fi
5967       fi
5968     fi
5969
5970     # It seems that -bexpall can do strange things, so it is better to
5971     # generate a list of symbols to export.
5972     always_export_symbols=yes
5973     if test "$aix_use_runtimelinking" = yes; then
5974       # Warning - without using the other runtime loading flags (-brtl),
5975       # -berok will link without error, but may produce a broken library.
5976       allow_undefined_flag='-berok'
5977       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5978       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"
5979     else
5980       if test "$host_cpu" = ia64; then
5981         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5982         allow_undefined_flag="-z nodefs"
5983         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"
5984       else
5985         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5986         # Warning - without using the other run time loading flags,
5987         # -berok will link without error, but may produce a broken library.
5988         allow_undefined_flag='${wl}-berok'
5989         # This is a bit strange, but is similar to how AIX traditionally builds
5990         # it's shared libraries.
5991         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'
5992       fi
5993     fi
5994     ;;
5995
5996   amigaos*)
5997     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)'
5998     hardcode_libdir_flag_spec='-L$libdir'
5999     hardcode_minus_L=yes
6000     # see comment about different semantics on the GNU ld section
6001     ld_shlibs=no
6002     ;;
6003
6004   cygwin* | mingw* | pw32*)
6005     # When not using gcc, we currently assume that we are using
6006     # Microsoft Visual C++.
6007     # hardcode_libdir_flag_spec is actually meaningless, as there is
6008     # no search path for DLLs.
6009     hardcode_libdir_flag_spec=' '
6010     allow_undefined_flag=unsupported
6011     # Tell ltmain to make .lib files, not .a files.
6012     libext=lib
6013     # FIXME: Setting linknames here is a bad hack.
6014     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6015     # The linker will automatically build a .lib file if we build a DLL.
6016     old_archive_from_new_cmds='true'
6017     # FIXME: Should let the user specify the lib program.
6018     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6019     fix_srcfile_path='`cygpath -w "$srcfile"`'
6020     ;;
6021
6022   darwin* | rhapsody*)
6023     case "$host_os" in
6024     rhapsody* | darwin1.[012])
6025       allow_undefined_flag='-undefined suppress'
6026       ;;
6027     *) # Darwin 1.3 on
6028       allow_undefined_flag='-flat_namespace -undefined suppress'
6029       ;;
6030     esac
6031     # FIXME: Relying on posixy $() will cause problems for
6032     #        cross-compilation, but unfortunately the echo tests do not
6033     #        yet detect zsh echo's removal of \ escapes.
6034     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'
6035     # We need to add '_' to the symbols in $export_symbols first
6036     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6037     hardcode_direct=yes
6038     hardcode_shlibpath_var=no
6039     whole_archive_flag_spec='-all_load $convenience'
6040     ;;
6041
6042   freebsd1*)
6043     ld_shlibs=no
6044     ;;
6045
6046   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6047   # support.  Future versions do this automatically, but an explicit c++rt0.o
6048   # does not break anything, and helps significantly (at the cost of a little
6049   # extra space).
6050   freebsd2.2*)
6051     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6052     hardcode_libdir_flag_spec='-R$libdir'
6053     hardcode_direct=yes
6054     hardcode_shlibpath_var=no
6055     ;;
6056
6057   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6058   freebsd2*)
6059     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6060     hardcode_direct=yes
6061     hardcode_minus_L=yes
6062     hardcode_shlibpath_var=no
6063     ;;
6064
6065   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6066   freebsd*)
6067     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6068     hardcode_libdir_flag_spec='-R$libdir'
6069     hardcode_direct=yes
6070     hardcode_shlibpath_var=no
6071     ;;
6072
6073   hpux9* | hpux10* | hpux11*)
6074     case $host_os in
6075     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' ;;
6076     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6077     esac
6078     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6079     hardcode_libdir_separator=:
6080     hardcode_direct=yes
6081     hardcode_minus_L=yes # Not in the search PATH, but as the default
6082                          # location of the library.
6083     export_dynamic_flag_spec='${wl}-E'
6084     ;;
6085
6086   irix5* | irix6*)
6087     if test "$GCC" = yes; then
6088       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'
6089     else
6090       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'
6091     fi
6092     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6093     hardcode_libdir_separator=:
6094     link_all_deplibs=yes
6095     ;;
6096
6097   netbsd*)
6098     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6099       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6100     else
6101       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6102     fi
6103     hardcode_libdir_flag_spec='-R$libdir'
6104     hardcode_direct=yes
6105     hardcode_shlibpath_var=no
6106     ;;
6107
6108   newsos6)
6109     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6110     hardcode_direct=yes
6111     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6112     hardcode_libdir_separator=:
6113     hardcode_shlibpath_var=no
6114     ;;
6115
6116   openbsd*)
6117     hardcode_direct=yes
6118     hardcode_shlibpath_var=no
6119     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6120       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6121       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6122       export_dynamic_flag_spec='${wl}-E'
6123     else
6124       case "$host_os" in
6125       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6126         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6127         hardcode_libdir_flag_spec='-R$libdir'
6128         ;;
6129       *)
6130         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6131         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6132         ;;
6133       esac
6134     fi
6135     ;;
6136
6137   os2*)
6138     hardcode_libdir_flag_spec='-L$libdir'
6139     hardcode_minus_L=yes
6140     allow_undefined_flag=unsupported
6141     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'
6142     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6143     ;;
6144
6145   osf3*)
6146     if test "$GCC" = yes; then
6147       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6148       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'
6149     else
6150       allow_undefined_flag=' -expect_unresolved \*'
6151       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'
6152     fi
6153     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6154     hardcode_libdir_separator=:
6155     ;;
6156
6157   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6158     if test "$GCC" = yes; then
6159       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6160       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'
6161       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6162     else
6163       allow_undefined_flag=' -expect_unresolved \*'
6164       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'
6165       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6166       $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'
6167
6168       #Both c and cxx compiler support -rpath directly
6169       hardcode_libdir_flag_spec='-rpath $libdir'
6170     fi
6171     hardcode_libdir_separator=:
6172     ;;
6173
6174   sco3.2v5*)
6175     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6176     hardcode_shlibpath_var=no
6177     runpath_var=LD_RUN_PATH
6178     hardcode_runpath_var=yes
6179     export_dynamic_flag_spec='${wl}-Bexport'
6180     ;;
6181
6182   solaris*)
6183     # gcc --version < 3.0 without binutils cannot create self contained
6184     # shared libraries reliably, requiring libgcc.a to resolve some of
6185     # the object symbols generated in some cases.  Libraries that use
6186     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6187     # a copy of libgcc.a into every shared library to guarantee resolving
6188     # such symbols causes other problems:  According to Tim Van Holder
6189     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6190     # (to the application) exception stack for one thing.
6191     no_undefined_flag=' -z defs'
6192     if test "$GCC" = yes; then
6193       case `$CC --version 2>/dev/null` in
6194       [12].*)
6195         cat <<EOF 1>&2
6196
6197 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6198 *** create self contained shared libraries on Solaris systems, without
6199 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6200 *** -no-undefined support, which will at least allow you to build shared
6201 *** libraries.  However, you may find that when you link such libraries
6202 *** into an application without using GCC, you have to manually add
6203 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6204 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6205 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6206
6207 EOF
6208         no_undefined_flag=
6209         ;;
6210       esac
6211     fi
6212     # $CC -shared without GNU ld will not create a library from C++
6213     # object files and a static libstdc++, better avoid it by now
6214     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6215     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6216                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6217     hardcode_libdir_flag_spec='-R$libdir'
6218     hardcode_shlibpath_var=no
6219     case $host_os in
6220     solaris2.[0-5] | solaris2.[0-5].*) ;;
6221     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6222       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6223     esac
6224     link_all_deplibs=yes
6225     ;;
6226
6227   sunos4*)
6228     if test "x$host_vendor" = xsequent; then
6229       # Use $CC to link under sequent, because it throws in some extra .o
6230       # files that make .init and .fini sections work.
6231       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6232     else
6233       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6234     fi
6235     hardcode_libdir_flag_spec='-L$libdir'
6236     hardcode_direct=yes
6237     hardcode_minus_L=yes
6238     hardcode_shlibpath_var=no
6239     ;;
6240
6241   sysv4)
6242     if test "x$host_vendor" = xsno; then
6243       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6244       hardcode_direct=yes # is this really true???
6245     else
6246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6247       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6248     fi
6249     runpath_var='LD_RUN_PATH'
6250     hardcode_shlibpath_var=no
6251     ;;
6252
6253   sysv4.3*)
6254     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6255     hardcode_shlibpath_var=no
6256     export_dynamic_flag_spec='-Bexport'
6257     ;;
6258
6259   sysv5*)
6260     no_undefined_flag=' -z text'
6261     # $CC -shared without GNU ld will not create a library from C++
6262     # object files and a static libstdc++, better avoid it by now
6263     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6264     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6265                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6266     hardcode_libdir_flag_spec=
6267     hardcode_shlibpath_var=no
6268     runpath_var='LD_RUN_PATH'
6269     ;;
6270
6271   uts4*)
6272     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6273     hardcode_libdir_flag_spec='-L$libdir'
6274     hardcode_shlibpath_var=no
6275     ;;
6276
6277   dgux*)
6278     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279     hardcode_libdir_flag_spec='-L$libdir'
6280     hardcode_shlibpath_var=no
6281     ;;
6282
6283   sysv4*MP*)
6284     if test -d /usr/nec; then
6285       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6286       hardcode_shlibpath_var=no
6287       runpath_var=LD_RUN_PATH
6288       hardcode_runpath_var=yes
6289       ld_shlibs=yes
6290     fi
6291     ;;
6292
6293   sysv4.2uw2*)
6294     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6295     hardcode_direct=yes
6296     hardcode_minus_L=no
6297     hardcode_shlibpath_var=no
6298     hardcode_runpath_var=yes
6299     runpath_var=LD_RUN_PATH
6300     ;;
6301
6302   sysv5uw7* | unixware7*)
6303     no_undefined_flag='${wl}-z ${wl}text'
6304     if test "$GCC" = yes; then
6305       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6306     else
6307       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6308     fi
6309     runpath_var='LD_RUN_PATH'
6310     hardcode_shlibpath_var=no
6311     ;;
6312
6313   *)
6314     ld_shlibs=no
6315     ;;
6316   esac
6317 fi
6318 echo "$as_me:6318: result: $ld_shlibs" >&5
6319 echo "${ECHO_T}$ld_shlibs" >&6
6320 test "$ld_shlibs" = no && can_build_shared=no
6321
6322 # Check hardcoding attributes.
6323 echo "$as_me:6323: checking how to hardcode library paths into programs" >&5
6324 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6325 hardcode_action=
6326 if test -n "$hardcode_libdir_flag_spec" || \
6327    test -n "$runpath_var"; then
6328
6329   # We can hardcode non-existant directories.
6330   if test "$hardcode_direct" != no &&
6331      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6332      # have to relink, otherwise we might link with an installed library
6333      # when we should be linking with a yet-to-be-installed one
6334      ## test "$hardcode_shlibpath_var" != no &&
6335      test "$hardcode_minus_L" != no; then
6336     # Linking always hardcodes the temporary library directory.
6337     hardcode_action=relink
6338   else
6339     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6340     hardcode_action=immediate
6341   fi
6342 else
6343   # We cannot hardcode anything, or else we can only hardcode existing
6344   # directories.
6345   hardcode_action=unsupported
6346 fi
6347 echo "$as_me:6347: result: $hardcode_action" >&5
6348 echo "${ECHO_T}$hardcode_action" >&6
6349
6350 striplib=
6351 old_striplib=
6352 echo "$as_me:6352: checking whether stripping libraries is possible" >&5
6353 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6354 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6355   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6356   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6357   echo "$as_me:6357: result: yes" >&5
6358 echo "${ECHO_T}yes" >&6
6359 else
6360   echo "$as_me:6360: result: no" >&5
6361 echo "${ECHO_T}no" >&6
6362 fi
6363
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6366
6367 # PORTME Fill in your ld.so characteristics
6368 echo "$as_me:6368: checking dynamic linker characteristics" >&5
6369 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6370 library_names_spec=
6371 libname_spec='lib$name'
6372 soname_spec=
6373 postinstall_cmds=
6374 postuninstall_cmds=
6375 finish_cmds=
6376 finish_eval=
6377 shlibpath_var=
6378 shlibpath_overrides_runpath=unknown
6379 version_type=none
6380 dynamic_linker="$host_os ld.so"
6381 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6383
6384 case $host_os in
6385 aix3*)
6386   version_type=linux
6387   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6388   shlibpath_var=LIBPATH
6389
6390   # AIX has no versioning support, so we append a major version to the name.
6391   soname_spec='${libname}${release}.so$major'
6392   ;;
6393
6394 aix4* | aix5*)
6395   version_type=linux
6396   if test "$host_cpu" = ia64; then
6397     # AIX 5 supports IA64
6398     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6399     shlibpath_var=LD_LIBRARY_PATH
6400   else
6401     # With GCC up to 2.95.x, collect2 would create an import file
6402     # for dependence libraries.  The import file would start with
6403     # the line `#! .'.  This would cause the generated library to
6404     # depend on `.', always an invalid library.  This was fixed in
6405     # development snapshots of GCC prior to 3.0.
6406     case $host_os in
6407       aix4 | aix4.[01] | aix4.[01].*)
6408         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6409              echo ' yes '
6410              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6411           :
6412         else
6413           can_build_shared=no
6414         fi
6415         ;;
6416     esac
6417     # AIX (on Power*) has no versioning support, so currently we can
6418     # not hardcode correct soname into executable. Probably we can
6419     # add versioning support to collect2, so additional links can
6420     # be useful in future.
6421     if test "$aix_use_runtimelinking" = yes; then
6422       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6423       # instead of lib<name>.a to let people know that these are not
6424       # typical AIX shared libraries.
6425       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6426     else
6427       # We preserve .a as extension for shared libraries through AIX4.2
6428       # and later when we are not doing run time linking.
6429       library_names_spec='${libname}${release}.a $libname.a'
6430       soname_spec='${libname}${release}.so$major'
6431     fi
6432     shlibpath_var=LIBPATH
6433   fi
6434   ;;
6435
6436 amigaos*)
6437   library_names_spec='$libname.ixlibrary $libname.a'
6438   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6439   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'
6440   ;;
6441
6442 beos*)
6443   library_names_spec='${libname}.so'
6444   dynamic_linker="$host_os ld.so"
6445   shlibpath_var=LIBRARY_PATH
6446   ;;
6447
6448 bsdi4*)
6449   version_type=linux
6450   need_version=no
6451   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6452   soname_spec='${libname}${release}.so$major'
6453   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6454   shlibpath_var=LD_LIBRARY_PATH
6455   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6456   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6457   export_dynamic_flag_spec=-rdynamic
6458   # the default ld.so.conf also contains /usr/contrib/lib and
6459   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6460   # libtool to hard-code these into programs
6461   ;;
6462
6463 cygwin* | mingw* | pw32*)
6464   version_type=windows
6465   need_version=no
6466   need_lib_prefix=no
6467   case $GCC,$host_os in
6468   yes,cygwin*)
6469     library_names_spec='$libname.dll.a'
6470     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6471     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6472       dldir=$destdir/`dirname \$dlpath`~
6473       test -d \$dldir || mkdir -p \$dldir~
6474       $install_prog .libs/$dlname \$dldir/$dlname'
6475     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6476       dlpath=$dir/\$dldll~
6477        $rm \$dlpath'
6478     ;;
6479   yes,mingw*)
6480     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6481     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6482     ;;
6483   yes,pw32*)
6484     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6485     ;;
6486   *)
6487     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6488     ;;
6489   esac
6490   dynamic_linker='Win32 ld.exe'
6491   # FIXME: first we should search . and the directory the executable is in
6492   shlibpath_var=PATH
6493   ;;
6494
6495 darwin* | rhapsody*)
6496   dynamic_linker="$host_os dyld"
6497   version_type=darwin
6498   need_lib_prefix=no
6499   need_version=no
6500   # FIXME: Relying on posixy $() will cause problems for
6501   #        cross-compilation, but unfortunately the echo tests do not
6502   #        yet detect zsh echo's removal of \ escapes.
6503   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)'
6504   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6505   shlibpath_overrides_runpath=yes
6506   shlibpath_var=DYLD_LIBRARY_PATH
6507   ;;
6508
6509 freebsd1*)
6510   dynamic_linker=no
6511   ;;
6512
6513 freebsd*)
6514   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6515   version_type=freebsd-$objformat
6516   case $version_type in
6517     freebsd-elf*)
6518       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6519       need_version=no
6520       need_lib_prefix=no
6521       ;;
6522     freebsd-*)
6523       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6524       need_version=yes
6525       ;;
6526   esac
6527   shlibpath_var=LD_LIBRARY_PATH
6528   case $host_os in
6529   freebsd2*)
6530     shlibpath_overrides_runpath=yes
6531     ;;
6532   *)
6533     shlibpath_overrides_runpath=no
6534     hardcode_into_libs=yes
6535     ;;
6536   esac
6537   ;;
6538
6539 gnu*)
6540   version_type=linux
6541   need_lib_prefix=no
6542   need_version=no
6543   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6544   soname_spec='${libname}${release}.so$major'
6545   shlibpath_var=LD_LIBRARY_PATH
6546   hardcode_into_libs=yes
6547   ;;
6548
6549 hpux9* | hpux10* | hpux11*)
6550   # Give a soname corresponding to the major version so that dld.sl refuses to
6551   # link against other versions.
6552   dynamic_linker="$host_os dld.sl"
6553   version_type=sunos
6554   need_lib_prefix=no
6555   need_version=no
6556   shlibpath_var=SHLIB_PATH
6557   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6558   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6559   soname_spec='${libname}${release}.sl$major'
6560   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6561   postinstall_cmds='chmod 555 $lib'
6562   ;;
6563
6564 irix5* | irix6*)
6565   version_type=irix
6566   need_lib_prefix=no
6567   need_version=no
6568   soname_spec='${libname}${release}.so$major'
6569   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6570   case $host_os in
6571   irix5*)
6572     libsuff= shlibsuff=
6573     ;;
6574   *)
6575     case $LD in # libtool.m4 will add one of these switches to LD
6576     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6577     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6578     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6579     *) libsuff= shlibsuff= libmagic=never-match;;
6580     esac
6581     ;;
6582   esac
6583   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6584   shlibpath_overrides_runpath=no
6585   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6586   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6587   ;;
6588
6589 # No shared lib support for Linux oldld, aout, or coff.
6590 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6591   dynamic_linker=no
6592   ;;
6593
6594 # This must be Linux ELF.
6595 linux-gnu*)
6596   version_type=linux
6597   need_lib_prefix=no
6598   need_version=no
6599   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6600   soname_spec='${libname}${release}.so$major'
6601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6602   shlibpath_var=LD_LIBRARY_PATH
6603   shlibpath_overrides_runpath=no
6604   # This implies no fast_install, which is unacceptable.
6605   # Some rework will be needed to allow for fast_install
6606   # before this can be enabled.
6607   hardcode_into_libs=yes
6608
6609   # We used to test for /lib/ld.so.1 and disable shared libraries on
6610   # powerpc, because MkLinux only supported shared libraries with the
6611   # GNU dynamic linker.  Since this was broken with cross compilers,
6612   # most powerpc-linux boxes support dynamic linking these days and
6613   # people can always --disable-shared, the test was removed, and we
6614   # assume the GNU/Linux dynamic linker is in use.
6615   dynamic_linker='GNU/Linux ld.so'
6616   ;;
6617
6618 netbsd*)
6619   version_type=sunos
6620   need_lib_prefix=no
6621   need_version=no
6622   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6623     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6624     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6625     dynamic_linker='NetBSD (a.out) ld.so'
6626   else
6627     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6628     soname_spec='${libname}${release}.so$major'
6629     dynamic_linker='NetBSD ld.elf_so'
6630   fi
6631   shlibpath_var=LD_LIBRARY_PATH
6632   shlibpath_overrides_runpath=yes
6633   hardcode_into_libs=yes
6634   ;;
6635
6636 newsos6)
6637   version_type=linux
6638   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6639   shlibpath_var=LD_LIBRARY_PATH
6640   shlibpath_overrides_runpath=yes
6641   ;;
6642
6643 openbsd*)
6644   version_type=sunos
6645   need_lib_prefix=no
6646   need_version=no
6647   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6648     case "$host_os" in
6649     openbsd2.[89] | openbsd2.[89].*)
6650       shlibpath_overrides_runpath=no
6651       ;;
6652     *)
6653       shlibpath_overrides_runpath=yes
6654       ;;
6655     esac
6656   else
6657     shlibpath_overrides_runpath=yes
6658   fi
6659   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6660   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6661   shlibpath_var=LD_LIBRARY_PATH
6662   ;;
6663
6664 os2*)
6665   libname_spec='$name'
6666   need_lib_prefix=no
6667   library_names_spec='$libname.dll $libname.a'
6668   dynamic_linker='OS/2 ld.exe'
6669   shlibpath_var=LIBPATH
6670   ;;
6671
6672 osf3* | osf4* | osf5*)
6673   version_type=osf
6674   need_version=no
6675   soname_spec='${libname}${release}.so'
6676   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6677   shlibpath_var=LD_LIBRARY_PATH
6678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6680   ;;
6681
6682 sco3.2v5*)
6683   version_type=osf
6684   soname_spec='${libname}${release}.so$major'
6685   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6686   shlibpath_var=LD_LIBRARY_PATH
6687   ;;
6688
6689 solaris*)
6690   version_type=linux
6691   need_lib_prefix=no
6692   need_version=no
6693   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6694   soname_spec='${libname}${release}.so$major'
6695   shlibpath_var=LD_LIBRARY_PATH
6696   shlibpath_overrides_runpath=yes
6697   hardcode_into_libs=yes
6698   # ldd complains unless libraries are executable
6699   postinstall_cmds='chmod +x $lib'
6700   ;;
6701
6702 sunos4*)
6703   version_type=sunos
6704   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6705   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6706   shlibpath_var=LD_LIBRARY_PATH
6707   shlibpath_overrides_runpath=yes
6708   if test "$with_gnu_ld" = yes; then
6709     need_lib_prefix=no
6710   fi
6711   need_version=yes
6712   ;;
6713
6714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6715   version_type=linux
6716   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6717   soname_spec='${libname}${release}.so$major'
6718   shlibpath_var=LD_LIBRARY_PATH
6719   case $host_vendor in
6720     sni)
6721       shlibpath_overrides_runpath=no
6722       ;;
6723     motorola)
6724       need_lib_prefix=no
6725       need_version=no
6726       shlibpath_overrides_runpath=no
6727       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6728       ;;
6729   esac
6730   ;;
6731
6732 uts4*)
6733   version_type=linux
6734   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6735   soname_spec='${libname}${release}.so$major'
6736   shlibpath_var=LD_LIBRARY_PATH
6737   ;;
6738
6739 dgux*)
6740   version_type=linux
6741   need_lib_prefix=no
6742   need_version=no
6743   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6744   soname_spec='${libname}${release}.so$major'
6745   shlibpath_var=LD_LIBRARY_PATH
6746   ;;
6747
6748 sysv4*MP*)
6749   if test -d /usr/nec ;then
6750     version_type=linux
6751     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6752     soname_spec='$libname.so.$major'
6753     shlibpath_var=LD_LIBRARY_PATH
6754   fi
6755   ;;
6756
6757 *)
6758   dynamic_linker=no
6759   ;;
6760 esac
6761 echo "$as_me:6761: result: $dynamic_linker" >&5
6762 echo "${ECHO_T}$dynamic_linker" >&6
6763 test "$dynamic_linker" = no && can_build_shared=no
6764
6765 # Report the final consequences.
6766 echo "$as_me:6766: checking if libtool supports shared libraries" >&5
6767 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6768 echo "$as_me:6768: result: $can_build_shared" >&5
6769 echo "${ECHO_T}$can_build_shared" >&6
6770
6771 echo "$as_me:6771: checking whether to build shared libraries" >&5
6772 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6773 test "$can_build_shared" = "no" && enable_shared=no
6774
6775 # On AIX, shared libraries and static libraries use the same namespace, and
6776 # are all built from PIC.
6777 case "$host_os" in
6778 aix3*)
6779   test "$enable_shared" = yes && enable_static=no
6780   if test -n "$RANLIB"; then
6781     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6782     postinstall_cmds='$RANLIB $lib'
6783   fi
6784   ;;
6785
6786 aix4*)
6787   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6788     test "$enable_shared" = yes && enable_static=no
6789   fi
6790   ;;
6791 esac
6792 echo "$as_me:6792: result: $enable_shared" >&5
6793 echo "${ECHO_T}$enable_shared" >&6
6794
6795 echo "$as_me:6795: checking whether to build static libraries" >&5
6796 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6797 # Make sure either enable_shared or enable_static is yes.
6798 test "$enable_shared" = yes || enable_static=yes
6799 echo "$as_me:6799: result: $enable_static" >&5
6800 echo "${ECHO_T}$enable_static" >&6
6801
6802 if test "$hardcode_action" = relink; then
6803   # Fast installation is not supported
6804   enable_fast_install=no
6805 elif test "$shlibpath_overrides_runpath" = yes ||
6806      test "$enable_shared" = no; then
6807   # Fast installation is not necessary
6808   enable_fast_install=needless
6809 fi
6810
6811 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6812 if test "$GCC" = yes; then
6813   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6814 fi
6815
6816 if test "x$enable_dlopen" != xyes; then
6817   enable_dlopen=unknown
6818   enable_dlopen_self=unknown
6819   enable_dlopen_self_static=unknown
6820 else
6821   lt_cv_dlopen=no
6822   lt_cv_dlopen_libs=
6823
6824   case $host_os in
6825   beos*)
6826     lt_cv_dlopen="load_add_on"
6827     lt_cv_dlopen_libs=
6828     lt_cv_dlopen_self=yes
6829     ;;
6830
6831   cygwin* | mingw* | pw32*)
6832     lt_cv_dlopen="LoadLibrary"
6833     lt_cv_dlopen_libs=
6834    ;;
6835
6836   *)
6837     echo "$as_me:6837: checking for shl_load" >&5
6838 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6839 if test "${ac_cv_func_shl_load+set}" = set; then
6840   echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842   cat >conftest.$ac_ext <<_ACEOF
6843 #line 6843 "configure"
6844 #include "confdefs.h"
6845 /* System header to define __stub macros and hopefully few prototypes,
6846     which can conflict with char shl_load (); below.  */
6847 #include <assert.h>
6848 /* Override any gcc2 internal prototype to avoid an error.  */
6849 #ifdef __cplusplus
6850 extern "C"
6851 #endif
6852 /* We use char because int might match the return type of a gcc2
6853    builtin and then its argument prototype would still apply.  */
6854 char shl_load ();
6855 char (*f) ();
6856
6857 #ifdef F77_DUMMY_MAIN
6858 #  ifdef __cplusplus
6859      extern "C"
6860 #  endif
6861    int F77_DUMMY_MAIN() { return 1; }
6862 #endif
6863 int
6864 main ()
6865 {
6866 /* The GNU C library defines this for functions which it implements
6867     to always fail with ENOSYS.  Some functions are actually named
6868     something starting with __ and the normal name is an alias.  */
6869 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6870 choke me
6871 #else
6872 f = shl_load;
6873 #endif
6874
6875   ;
6876   return 0;
6877 }
6878 _ACEOF
6879 rm -f conftest.$ac_objext conftest$ac_exeext
6880 if { (eval echo "$as_me:6880: \"$ac_link\"") >&5
6881   (eval $ac_link) 2>&5
6882   ac_status=$?
6883   echo "$as_me:6883: \$? = $ac_status" >&5
6884   (exit $ac_status); } &&
6885          { ac_try='test -s conftest$ac_exeext'
6886   { (eval echo "$as_me:6886: \"$ac_try\"") >&5
6887   (eval $ac_try) 2>&5
6888   ac_status=$?
6889   echo "$as_me:6889: \$? = $ac_status" >&5
6890   (exit $ac_status); }; }; then
6891   ac_cv_func_shl_load=yes
6892 else
6893   echo "$as_me: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6895 ac_cv_func_shl_load=no
6896 fi
6897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6898 fi
6899 echo "$as_me:6899: result: $ac_cv_func_shl_load" >&5
6900 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6901 if test $ac_cv_func_shl_load = yes; then
6902   lt_cv_dlopen="shl_load"
6903 else
6904   echo "$as_me:6904: checking for shl_load in -ldld" >&5
6905 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6906 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   ac_check_lib_save_LIBS=$LIBS
6910 LIBS="-ldld  $LIBS"
6911 cat >conftest.$ac_ext <<_ACEOF
6912 #line 6912 "configure"
6913 #include "confdefs.h"
6914
6915 /* Override any gcc2 internal prototype to avoid an error.  */
6916 #ifdef __cplusplus
6917 extern "C"
6918 #endif
6919 /* We use char because int might match the return type of a gcc2
6920    builtin and then its argument prototype would still apply.  */
6921 char shl_load ();
6922 #ifdef F77_DUMMY_MAIN
6923 #  ifdef __cplusplus
6924      extern "C"
6925 #  endif
6926    int F77_DUMMY_MAIN() { return 1; }
6927 #endif
6928 int
6929 main ()
6930 {
6931 shl_load ();
6932   ;
6933   return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:6937: \"$ac_link\"") >&5
6938   (eval $ac_link) 2>&5
6939   ac_status=$?
6940   echo "$as_me:6940: \$? = $ac_status" >&5
6941   (exit $ac_status); } &&
6942          { ac_try='test -s conftest$ac_exeext'
6943   { (eval echo "$as_me:6943: \"$ac_try\"") >&5
6944   (eval $ac_try) 2>&5
6945   ac_status=$?
6946   echo "$as_me:6946: \$? = $ac_status" >&5
6947   (exit $ac_status); }; }; then
6948   ac_cv_lib_dld_shl_load=yes
6949 else
6950   echo "$as_me: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6952 ac_cv_lib_dld_shl_load=no
6953 fi
6954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6955 LIBS=$ac_check_lib_save_LIBS
6956 fi
6957 echo "$as_me:6957: result: $ac_cv_lib_dld_shl_load" >&5
6958 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6959 if test $ac_cv_lib_dld_shl_load = yes; then
6960   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6961 else
6962   echo "$as_me:6962: checking for dlopen" >&5
6963 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6964 if test "${ac_cv_func_dlopen+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   cat >conftest.$ac_ext <<_ACEOF
6968 #line 6968 "configure"
6969 #include "confdefs.h"
6970 /* System header to define __stub macros and hopefully few prototypes,
6971     which can conflict with char dlopen (); below.  */
6972 #include <assert.h>
6973 /* Override any gcc2 internal prototype to avoid an error.  */
6974 #ifdef __cplusplus
6975 extern "C"
6976 #endif
6977 /* We use char because int might match the return type of a gcc2
6978    builtin and then its argument prototype would still apply.  */
6979 char dlopen ();
6980 char (*f) ();
6981
6982 #ifdef F77_DUMMY_MAIN
6983 #  ifdef __cplusplus
6984      extern "C"
6985 #  endif
6986    int F77_DUMMY_MAIN() { return 1; }
6987 #endif
6988 int
6989 main ()
6990 {
6991 /* The GNU C library defines this for functions which it implements
6992     to always fail with ENOSYS.  Some functions are actually named
6993     something starting with __ and the normal name is an alias.  */
6994 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6995 choke me
6996 #else
6997 f = dlopen;
6998 #endif
6999
7000   ;
7001   return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (eval echo "$as_me:7005: \"$ac_link\"") >&5
7006   (eval $ac_link) 2>&5
7007   ac_status=$?
7008   echo "$as_me:7008: \$? = $ac_status" >&5
7009   (exit $ac_status); } &&
7010          { ac_try='test -s conftest$ac_exeext'
7011   { (eval echo "$as_me:7011: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:7014: \$? = $ac_status" >&5
7015   (exit $ac_status); }; }; then
7016   ac_cv_func_dlopen=yes
7017 else
7018   echo "$as_me: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7020 ac_cv_func_dlopen=no
7021 fi
7022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7023 fi
7024 echo "$as_me:7024: result: $ac_cv_func_dlopen" >&5
7025 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7026 if test $ac_cv_func_dlopen = yes; then
7027   lt_cv_dlopen="dlopen"
7028 else
7029   echo "$as_me:7029: checking for dlopen in -ldl" >&5
7030 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7031 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034   ac_check_lib_save_LIBS=$LIBS
7035 LIBS="-ldl  $LIBS"
7036 cat >conftest.$ac_ext <<_ACEOF
7037 #line 7037 "configure"
7038 #include "confdefs.h"
7039
7040 /* Override any gcc2 internal prototype to avoid an error.  */
7041 #ifdef __cplusplus
7042 extern "C"
7043 #endif
7044 /* We use char because int might match the return type of a gcc2
7045    builtin and then its argument prototype would still apply.  */
7046 char dlopen ();
7047 #ifdef F77_DUMMY_MAIN
7048 #  ifdef __cplusplus
7049      extern "C"
7050 #  endif
7051    int F77_DUMMY_MAIN() { return 1; }
7052 #endif
7053 int
7054 main ()
7055 {
7056 dlopen ();
7057   ;
7058   return 0;
7059 }
7060 _ACEOF
7061 rm -f conftest.$ac_objext conftest$ac_exeext
7062 if { (eval echo "$as_me:7062: \"$ac_link\"") >&5
7063   (eval $ac_link) 2>&5
7064   ac_status=$?
7065   echo "$as_me:7065: \$? = $ac_status" >&5
7066   (exit $ac_status); } &&
7067          { ac_try='test -s conftest$ac_exeext'
7068   { (eval echo "$as_me:7068: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:7071: \$? = $ac_status" >&5
7072   (exit $ac_status); }; }; then
7073   ac_cv_lib_dl_dlopen=yes
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 ac_cv_lib_dl_dlopen=no
7078 fi
7079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7080 LIBS=$ac_check_lib_save_LIBS
7081 fi
7082 echo "$as_me:7082: result: $ac_cv_lib_dl_dlopen" >&5
7083 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7084 if test $ac_cv_lib_dl_dlopen = yes; then
7085   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7086 else
7087   echo "$as_me:7087: checking for dlopen in -lsvld" >&5
7088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   ac_check_lib_save_LIBS=$LIBS
7093 LIBS="-lsvld  $LIBS"
7094 cat >conftest.$ac_ext <<_ACEOF
7095 #line 7095 "configure"
7096 #include "confdefs.h"
7097
7098 /* Override any gcc2 internal prototype to avoid an error.  */
7099 #ifdef __cplusplus
7100 extern "C"
7101 #endif
7102 /* We use char because int might match the return type of a gcc2
7103    builtin and then its argument prototype would still apply.  */
7104 char dlopen ();
7105 #ifdef F77_DUMMY_MAIN
7106 #  ifdef __cplusplus
7107      extern "C"
7108 #  endif
7109    int F77_DUMMY_MAIN() { return 1; }
7110 #endif
7111 int
7112 main ()
7113 {
7114 dlopen ();
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:7120: \"$ac_link\"") >&5
7121   (eval $ac_link) 2>&5
7122   ac_status=$?
7123   echo "$as_me:7123: \$? = $ac_status" >&5
7124   (exit $ac_status); } &&
7125          { ac_try='test -s conftest$ac_exeext'
7126   { (eval echo "$as_me:7126: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:7129: \$? = $ac_status" >&5
7130   (exit $ac_status); }; }; then
7131   ac_cv_lib_svld_dlopen=yes
7132 else
7133   echo "$as_me: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7135 ac_cv_lib_svld_dlopen=no
7136 fi
7137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7138 LIBS=$ac_check_lib_save_LIBS
7139 fi
7140 echo "$as_me:7140: result: $ac_cv_lib_svld_dlopen" >&5
7141 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7142 if test $ac_cv_lib_svld_dlopen = yes; then
7143   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7144 else
7145   echo "$as_me:7145: checking for dld_link in -ldld" >&5
7146 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7147 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   ac_check_lib_save_LIBS=$LIBS
7151 LIBS="-ldld  $LIBS"
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line 7153 "configure"
7154 #include "confdefs.h"
7155
7156 /* Override any gcc2 internal prototype to avoid an error.  */
7157 #ifdef __cplusplus
7158 extern "C"
7159 #endif
7160 /* We use char because int might match the return type of a gcc2
7161    builtin and then its argument prototype would still apply.  */
7162 char dld_link ();
7163 #ifdef F77_DUMMY_MAIN
7164 #  ifdef __cplusplus
7165      extern "C"
7166 #  endif
7167    int F77_DUMMY_MAIN() { return 1; }
7168 #endif
7169 int
7170 main ()
7171 {
7172 dld_link ();
7173   ;
7174   return 0;
7175 }
7176 _ACEOF
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:7178: \"$ac_link\"") >&5
7179   (eval $ac_link) 2>&5
7180   ac_status=$?
7181   echo "$as_me:7181: \$? = $ac_status" >&5
7182   (exit $ac_status); } &&
7183          { ac_try='test -s conftest$ac_exeext'
7184   { (eval echo "$as_me:7184: \"$ac_try\"") >&5
7185   (eval $ac_try) 2>&5
7186   ac_status=$?
7187   echo "$as_me:7187: \$? = $ac_status" >&5
7188   (exit $ac_status); }; }; then
7189   ac_cv_lib_dld_dld_link=yes
7190 else
7191   echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7193 ac_cv_lib_dld_dld_link=no
7194 fi
7195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7196 LIBS=$ac_check_lib_save_LIBS
7197 fi
7198 echo "$as_me:7198: result: $ac_cv_lib_dld_dld_link" >&5
7199 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7200 if test $ac_cv_lib_dld_dld_link = yes; then
7201   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7202 fi
7203
7204
7205 fi
7206
7207
7208 fi
7209
7210
7211 fi
7212
7213
7214 fi
7215
7216
7217 fi
7218
7219     ;;
7220   esac
7221
7222   if test "x$lt_cv_dlopen" != xno; then
7223     enable_dlopen=yes
7224   else
7225     enable_dlopen=no
7226   fi
7227
7228   case $lt_cv_dlopen in
7229   dlopen)
7230     save_CPPFLAGS="$CPPFLAGS"
7231         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7232
7233     save_LDFLAGS="$LDFLAGS"
7234     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7235
7236     save_LIBS="$LIBS"
7237     LIBS="$lt_cv_dlopen_libs $LIBS"
7238
7239     echo "$as_me:7239: checking whether a program can dlopen itself" >&5
7240 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7241 if test "${lt_cv_dlopen_self+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244           if test "$cross_compiling" = yes; then :
7245   lt_cv_dlopen_self=cross
7246 else
7247     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7248   lt_status=$lt_dlunknown
7249   cat > conftest.$ac_ext <<EOF
7250 #line 7250 "configure"
7251 #include "confdefs.h"
7252
7253 #if HAVE_DLFCN_H
7254 #include <dlfcn.h>
7255 #endif
7256
7257 #include <stdio.h>
7258
7259 #ifdef RTLD_GLOBAL
7260 #  define LT_DLGLOBAL           RTLD_GLOBAL
7261 #else
7262 #  ifdef DL_GLOBAL
7263 #    define LT_DLGLOBAL         DL_GLOBAL
7264 #  else
7265 #    define LT_DLGLOBAL         0
7266 #  endif
7267 #endif
7268
7269 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7270    find out it does not work in some platform. */
7271 #ifndef LT_DLLAZY_OR_NOW
7272 #  ifdef RTLD_LAZY
7273 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7274 #  else
7275 #    ifdef DL_LAZY
7276 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7277 #    else
7278 #      ifdef RTLD_NOW
7279 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7280 #      else
7281 #        ifdef DL_NOW
7282 #          define LT_DLLAZY_OR_NOW      DL_NOW
7283 #        else
7284 #          define LT_DLLAZY_OR_NOW      0
7285 #        endif
7286 #      endif
7287 #    endif
7288 #  endif
7289 #endif
7290
7291 #ifdef __cplusplus
7292 extern "C" void exit (int);
7293 #endif
7294
7295 void fnord() { int i=42;}
7296 int main ()
7297 {
7298   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7299   int status = $lt_dlunknown;
7300
7301   if (self)
7302     {
7303       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7304       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7305       /* dlclose (self); */
7306     }
7307
7308     exit (status);
7309 }
7310 EOF
7311   if { (eval echo "$as_me:7311: \"$ac_link\"") >&5
7312   (eval $ac_link) 2>&5
7313   ac_status=$?
7314   echo "$as_me:7314: \$? = $ac_status" >&5
7315   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7316     (./conftest; exit; ) 2>/dev/null
7317     lt_status=$?
7318     case x$lt_status in
7319       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7320       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7321       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7322     esac
7323   else :
7324     # compilation failed
7325     lt_cv_dlopen_self=no
7326   fi
7327 fi
7328 rm -fr conftest*
7329
7330
7331 fi
7332 echo "$as_me:7332: result: $lt_cv_dlopen_self" >&5
7333 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7334
7335     if test "x$lt_cv_dlopen_self" = xyes; then
7336       LDFLAGS="$LDFLAGS $link_static_flag"
7337       echo "$as_me:7337: checking whether a statically linked program can dlopen itself" >&5
7338 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7339 if test "${lt_cv_dlopen_self_static+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342           if test "$cross_compiling" = yes; then :
7343   lt_cv_dlopen_self_static=cross
7344 else
7345     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7346   lt_status=$lt_dlunknown
7347   cat > conftest.$ac_ext <<EOF
7348 #line 7348 "configure"
7349 #include "confdefs.h"
7350
7351 #if HAVE_DLFCN_H
7352 #include <dlfcn.h>
7353 #endif
7354
7355 #include <stdio.h>
7356
7357 #ifdef RTLD_GLOBAL
7358 #  define LT_DLGLOBAL           RTLD_GLOBAL
7359 #else
7360 #  ifdef DL_GLOBAL
7361 #    define LT_DLGLOBAL         DL_GLOBAL
7362 #  else
7363 #    define LT_DLGLOBAL         0
7364 #  endif
7365 #endif
7366
7367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7368    find out it does not work in some platform. */
7369 #ifndef LT_DLLAZY_OR_NOW
7370 #  ifdef RTLD_LAZY
7371 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7372 #  else
7373 #    ifdef DL_LAZY
7374 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7375 #    else
7376 #      ifdef RTLD_NOW
7377 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7378 #      else
7379 #        ifdef DL_NOW
7380 #          define LT_DLLAZY_OR_NOW      DL_NOW
7381 #        else
7382 #          define LT_DLLAZY_OR_NOW      0
7383 #        endif
7384 #      endif
7385 #    endif
7386 #  endif
7387 #endif
7388
7389 #ifdef __cplusplus
7390 extern "C" void exit (int);
7391 #endif
7392
7393 void fnord() { int i=42;}
7394 int main ()
7395 {
7396   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7397   int status = $lt_dlunknown;
7398
7399   if (self)
7400     {
7401       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7402       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7403       /* dlclose (self); */
7404     }
7405
7406     exit (status);
7407 }
7408 EOF
7409   if { (eval echo "$as_me:7409: \"$ac_link\"") >&5
7410   (eval $ac_link) 2>&5
7411   ac_status=$?
7412   echo "$as_me:7412: \$? = $ac_status" >&5
7413   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7414     (./conftest; exit; ) 2>/dev/null
7415     lt_status=$?
7416     case x$lt_status in
7417       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7418       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7419       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7420     esac
7421   else :
7422     # compilation failed
7423     lt_cv_dlopen_self_static=no
7424   fi
7425 fi
7426 rm -fr conftest*
7427
7428
7429 fi
7430 echo "$as_me:7430: result: $lt_cv_dlopen_self_static" >&5
7431 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7432     fi
7433
7434     CPPFLAGS="$save_CPPFLAGS"
7435     LDFLAGS="$save_LDFLAGS"
7436     LIBS="$save_LIBS"
7437     ;;
7438   esac
7439
7440   case $lt_cv_dlopen_self in
7441   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7442   *) enable_dlopen_self=unknown ;;
7443   esac
7444
7445   case $lt_cv_dlopen_self_static in
7446   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7447   *) enable_dlopen_self_static=unknown ;;
7448   esac
7449 fi
7450
7451
7452 if test "$enable_shared" = yes && test "$GCC" = yes; then
7453   case $archive_cmds in
7454   *'~'*)
7455     # FIXME: we may have to deal with multi-command sequences.
7456     ;;
7457   '$CC '*)
7458     # Test whether the compiler implicitly links with -lc since on some
7459     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7460     # to ld, don't add -lc before -lgcc.
7461     echo "$as_me:7461: checking whether -lc should be explicitly linked in" >&5
7462 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7463     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   $rm conftest*
7467     echo 'static int dummy;' > conftest.$ac_ext
7468
7469     if { (eval echo "$as_me:7469: \"$ac_compile\"") >&5
7470   (eval $ac_compile) 2>&5
7471   ac_status=$?
7472   echo "$as_me:7472: \$? = $ac_status" >&5
7473   (exit $ac_status); }; then
7474       soname=conftest
7475       lib=conftest
7476       libobjs=conftest.$ac_objext
7477       deplibs=
7478       wl=$lt_cv_prog_cc_wl
7479       compiler_flags=-v
7480       linker_flags=-v
7481       verstring=
7482       output_objdir=.
7483       libname=conftest
7484       save_allow_undefined_flag=$allow_undefined_flag
7485       allow_undefined_flag=
7486       if { (eval echo "$as_me:7486: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7487   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7488   ac_status=$?
7489   echo "$as_me:7489: \$? = $ac_status" >&5
7490   (exit $ac_status); }
7491       then
7492         lt_cv_archive_cmds_need_lc=no
7493       else
7494         lt_cv_archive_cmds_need_lc=yes
7495       fi
7496       allow_undefined_flag=$save_allow_undefined_flag
7497     else
7498       cat conftest.err 1>&5
7499     fi
7500 fi
7501
7502     echo "$as_me:7502: result: $lt_cv_archive_cmds_need_lc" >&5
7503 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7504     ;;
7505   esac
7506 fi
7507 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7508
7509 # The second clause should only fire when bootstrapping the
7510 # libtool distribution, otherwise you forgot to ship ltmain.sh
7511 # with your package, and you will get complaints that there are
7512 # no rules to generate ltmain.sh.
7513 if test -f "$ltmain"; then
7514   :
7515 else
7516   # If there is no Makefile yet, we rely on a make rule to execute
7517   # `config.status --recheck' to rerun these tests and create the
7518   # libtool script then.
7519   test -f Makefile && make "$ltmain"
7520 fi
7521
7522 if test -f "$ltmain"; then
7523   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7524   $rm -f "${ofile}T"
7525
7526   echo creating $ofile
7527
7528   # Now quote all the things that may contain metacharacters while being
7529   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7530   # variables and quote the copies for generation of the libtool script.
7531   for var in echo old_CC old_CFLAGS \
7532     AR AR_FLAGS CC LD LN_S NM SHELL \
7533     reload_flag reload_cmds wl \
7534     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7535     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7536     library_names_spec soname_spec \
7537     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7538     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7539     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7540     old_striplib striplib file_magic_cmd export_symbols_cmds \
7541     deplibs_check_method allow_undefined_flag no_undefined_flag \
7542     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7543     global_symbol_to_c_name_address \
7544     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7545     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7546     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7547
7548     case $var in
7549     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7550     old_postinstall_cmds | old_postuninstall_cmds | \
7551     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7552     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7553     postinstall_cmds | postuninstall_cmds | \
7554     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7555       # Double-quote double-evaled strings.
7556       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7557       ;;
7558     *)
7559       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7560       ;;
7561     esac
7562   done
7563
7564   cat <<__EOF__ > "${ofile}T"
7565 #! $SHELL
7566
7567 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7568 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7569 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7570 #
7571 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7572 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7573 #
7574 # This program is free software; you can redistribute it and/or modify
7575 # it under the terms of the GNU General Public License as published by
7576 # the Free Software Foundation; either version 2 of the License, or
7577 # (at your option) any later version.
7578 #
7579 # This program is distributed in the hope that it will be useful, but
7580 # WITHOUT ANY WARRANTY; without even the implied warranty of
7581 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7582 # General Public License for more details.
7583 #
7584 # You should have received a copy of the GNU General Public License
7585 # along with this program; if not, write to the Free Software
7586 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7587 #
7588 # As a special exception to the GNU General Public License, if you
7589 # distribute this file as part of a program that contains a
7590 # configuration script generated by Autoconf, you may include it under
7591 # the same distribution terms that you use for the rest of that program.
7592
7593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7594 Xsed="sed -e s/^X//"
7595
7596 # The HP-UX ksh and POSIX shell print the target directory to stdout
7597 # if CDPATH is set.
7598 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7599
7600 # ### BEGIN LIBTOOL CONFIG
7601
7602 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7603
7604 # Shell to use when invoking shell scripts.
7605 SHELL=$lt_SHELL
7606
7607 # Whether or not to build shared libraries.
7608 build_libtool_libs=$enable_shared
7609
7610 # Whether or not to build static libraries.
7611 build_old_libs=$enable_static
7612
7613 # Whether or not to add -lc for building shared libraries.
7614 build_libtool_need_lc=$need_lc
7615
7616 # Whether or not to optimize for fast installation.
7617 fast_install=$enable_fast_install
7618
7619 # The host system.
7620 host_alias=$host_alias
7621 host=$host
7622
7623 # An echo program that does not interpret backslashes.
7624 echo=$lt_echo
7625
7626 # The archiver.
7627 AR=$lt_AR
7628 AR_FLAGS=$lt_AR_FLAGS
7629
7630 # The default C compiler.
7631 CC=$lt_CC
7632
7633 # Is the compiler the GNU C compiler?
7634 with_gcc=$GCC
7635
7636 # The linker used to build libraries.
7637 LD=$lt_LD
7638
7639 # Whether we need hard or soft links.
7640 LN_S=$lt_LN_S
7641
7642 # A BSD-compatible nm program.
7643 NM=$lt_NM
7644
7645 # A symbol stripping program
7646 STRIP=$STRIP
7647
7648 # Used to examine libraries when file_magic_cmd begins "file"
7649 MAGIC_CMD=$MAGIC_CMD
7650
7651 # Used on cygwin: DLL creation program.
7652 DLLTOOL="$DLLTOOL"
7653
7654 # Used on cygwin: object dumper.
7655 OBJDUMP="$OBJDUMP"
7656
7657 # Used on cygwin: assembler.
7658 AS="$AS"
7659
7660 # The name of the directory that contains temporary libtool files.
7661 objdir=$objdir
7662
7663 # How to create reloadable object files.
7664 reload_flag=$lt_reload_flag
7665 reload_cmds=$lt_reload_cmds
7666
7667 # How to pass a linker flag through the compiler.
7668 wl=$lt_wl
7669
7670 # Object file suffix (normally "o").
7671 objext="$ac_objext"
7672
7673 # Old archive suffix (normally "a").
7674 libext="$libext"
7675
7676 # Executable file suffix (normally "").
7677 exeext="$exeext"
7678
7679 # Additional compiler flags for building library objects.
7680 pic_flag=$lt_pic_flag
7681 pic_mode=$pic_mode
7682
7683 # Does compiler simultaneously support -c and -o options?
7684 compiler_c_o=$lt_compiler_c_o
7685
7686 # Can we write directly to a .lo ?
7687 compiler_o_lo=$lt_compiler_o_lo
7688
7689 # Must we lock files when doing compilation ?
7690 need_locks=$lt_need_locks
7691
7692 # Do we need the lib prefix for modules?
7693 need_lib_prefix=$need_lib_prefix
7694
7695 # Do we need a version for libraries?
7696 need_version=$need_version
7697
7698 # Whether dlopen is supported.
7699 dlopen_support=$enable_dlopen
7700
7701 # Whether dlopen of programs is supported.
7702 dlopen_self=$enable_dlopen_self
7703
7704 # Whether dlopen of statically linked programs is supported.
7705 dlopen_self_static=$enable_dlopen_self_static
7706
7707 # Compiler flag to prevent dynamic linking.
7708 link_static_flag=$lt_link_static_flag
7709
7710 # Compiler flag to turn off builtin functions.
7711 no_builtin_flag=$lt_no_builtin_flag
7712
7713 # Compiler flag to allow reflexive dlopens.
7714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7715
7716 # Compiler flag to generate shared objects directly from archives.
7717 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7718
7719 # Compiler flag to generate thread-safe objects.
7720 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7721
7722 # Library versioning type.
7723 version_type=$version_type
7724
7725 # Format of library name prefix.
7726 libname_spec=$lt_libname_spec
7727
7728 # List of archive names.  First name is the real one, the rest are links.
7729 # The last name is the one that the linker finds with -lNAME.
7730 library_names_spec=$lt_library_names_spec
7731
7732 # The coded name of the library, if different from the real name.
7733 soname_spec=$lt_soname_spec
7734
7735 # Commands used to build and install an old-style archive.
7736 RANLIB=$lt_RANLIB
7737 old_archive_cmds=$lt_old_archive_cmds
7738 old_postinstall_cmds=$lt_old_postinstall_cmds
7739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7740
7741 # Create an old-style archive from a shared archive.
7742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7743
7744 # Create a temporary old-style archive to link instead of a shared archive.
7745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7746
7747 # Commands used to build and install a shared archive.
7748 archive_cmds=$lt_archive_cmds
7749 archive_expsym_cmds=$lt_archive_expsym_cmds
7750 postinstall_cmds=$lt_postinstall_cmds
7751 postuninstall_cmds=$lt_postuninstall_cmds
7752
7753 # Commands to strip libraries.
7754 old_striplib=$lt_old_striplib
7755 striplib=$lt_striplib
7756
7757 # Method to check whether dependent libraries are shared objects.
7758 deplibs_check_method=$lt_deplibs_check_method
7759
7760 # Command to use when deplibs_check_method == file_magic.
7761 file_magic_cmd=$lt_file_magic_cmd
7762
7763 # Flag that allows shared libraries with undefined symbols to be built.
7764 allow_undefined_flag=$lt_allow_undefined_flag
7765
7766 # Flag that forces no undefined symbols.
7767 no_undefined_flag=$lt_no_undefined_flag
7768
7769 # Commands used to finish a libtool library installation in a directory.
7770 finish_cmds=$lt_finish_cmds
7771
7772 # Same as above, but a single script fragment to be evaled but not shown.
7773 finish_eval=$lt_finish_eval
7774
7775 # Take the output of nm and produce a listing of raw symbols and C names.
7776 global_symbol_pipe=$lt_global_symbol_pipe
7777
7778 # Transform the output of nm in a proper C declaration
7779 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7780
7781 # Transform the output of nm in a C name address pair
7782 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7783
7784 # This is the shared library runtime path variable.
7785 runpath_var=$runpath_var
7786
7787 # This is the shared library path variable.
7788 shlibpath_var=$shlibpath_var
7789
7790 # Is shlibpath searched before the hard-coded library search path?
7791 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7792
7793 # How to hardcode a shared library path into an executable.
7794 hardcode_action=$hardcode_action
7795
7796 # Whether we should hardcode library paths into libraries.
7797 hardcode_into_libs=$hardcode_into_libs
7798
7799 # Flag to hardcode \$libdir into a binary during linking.
7800 # This must work even if \$libdir does not exist.
7801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7802
7803 # Whether we need a single -rpath flag with a separated argument.
7804 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7805
7806 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7807 # resulting binary.
7808 hardcode_direct=$hardcode_direct
7809
7810 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7811 # resulting binary.
7812 hardcode_minus_L=$hardcode_minus_L
7813
7814 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7815 # the resulting binary.
7816 hardcode_shlibpath_var=$hardcode_shlibpath_var
7817
7818 # Variables whose values should be saved in libtool wrapper scripts and
7819 # restored at relink time.
7820 variables_saved_for_relink="$variables_saved_for_relink"
7821
7822 # Whether libtool must link a program against all its dependency libraries.
7823 link_all_deplibs=$link_all_deplibs
7824
7825 # Compile-time system search path for libraries
7826 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7827
7828 # Run-time system search path for libraries
7829 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7830
7831 # Fix the shell variable \$srcfile for the compiler.
7832 fix_srcfile_path="$fix_srcfile_path"
7833
7834 # Set to yes if exported symbols are required.
7835 always_export_symbols=$always_export_symbols
7836
7837 # The commands to list exported symbols.
7838 export_symbols_cmds=$lt_export_symbols_cmds
7839
7840 # The commands to extract the exported symbol list from a shared archive.
7841 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7842
7843 # Symbols that should not be listed in the preloaded symbols.
7844 exclude_expsyms=$lt_exclude_expsyms
7845
7846 # Symbols that must always be exported.
7847 include_expsyms=$lt_include_expsyms
7848
7849 # ### END LIBTOOL CONFIG
7850
7851 __EOF__
7852
7853   case $host_os in
7854   aix3*)
7855     cat <<\EOF >> "${ofile}T"
7856
7857 # AIX sometimes has problems with the GCC collect2 program.  For some
7858 # reason, if we set the COLLECT_NAMES environment variable, the problems
7859 # vanish in a puff of smoke.
7860 if test "X${COLLECT_NAMES+set}" != Xset; then
7861   COLLECT_NAMES=
7862   export COLLECT_NAMES
7863 fi
7864 EOF
7865     ;;
7866   esac
7867
7868   case $host_os in
7869   cygwin* | mingw* | pw32* | os2*)
7870     cat <<'EOF' >> "${ofile}T"
7871       # This is a source program that is used to create dlls on Windows
7872       # Don't remove nor modify the starting and closing comments
7873 # /* ltdll.c starts here */
7874 # #define WIN32_LEAN_AND_MEAN
7875 # #include <windows.h>
7876 # #undef WIN32_LEAN_AND_MEAN
7877 # #include <stdio.h>
7878 #
7879 # #ifndef __CYGWIN__
7880 # #  ifdef __CYGWIN32__
7881 # #    define __CYGWIN__ __CYGWIN32__
7882 # #  endif
7883 # #endif
7884 #
7885 # #ifdef __cplusplus
7886 # extern "C" {
7887 # #endif
7888 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7889 # #ifdef __cplusplus
7890 # }
7891 # #endif
7892 #
7893 # #ifdef __CYGWIN__
7894 # #include <cygwin/cygwin_dll.h>
7895 # DECLARE_CYGWIN_DLL( DllMain );
7896 # #endif
7897 # HINSTANCE __hDllInstance_base;
7898 #
7899 # BOOL APIENTRY
7900 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7901 # {
7902 #   __hDllInstance_base = hInst;
7903 #   return TRUE;
7904 # }
7905 # /* ltdll.c ends here */
7906         # This is a source program that is used to create import libraries
7907         # on Windows for dlls which lack them. Don't remove nor modify the
7908         # starting and closing comments
7909 # /* impgen.c starts here */
7910 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7911 #
7912 #  This file is part of GNU libtool.
7913 #
7914 #  This program is free software; you can redistribute it and/or modify
7915 #  it under the terms of the GNU General Public License as published by
7916 #  the Free Software Foundation; either version 2 of the License, or
7917 #  (at your option) any later version.
7918 #
7919 #  This program is distributed in the hope that it will be useful,
7920 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7921 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7922 #  GNU General Public License for more details.
7923 #
7924 #  You should have received a copy of the GNU General Public License
7925 #  along with this program; if not, write to the Free Software
7926 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7927 #  */
7928 #
7929 # #include <stdio.h>            /* for printf() */
7930 # #include <unistd.h>           /* for open(), lseek(), read() */
7931 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7932 # #include <string.h>           /* for strdup() */
7933 #
7934 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7935 # #ifndef O_BINARY
7936 # #define O_BINARY 0
7937 # #endif
7938 #
7939 # static unsigned int
7940 # pe_get16 (fd, offset)
7941 #      int fd;
7942 #      int offset;
7943 # {
7944 #   unsigned char b[2];
7945 #   lseek (fd, offset, SEEK_SET);
7946 #   read (fd, b, 2);
7947 #   return b[0] + (b[1]<<8);
7948 # }
7949 #
7950 # static unsigned int
7951 # pe_get32 (fd, offset)
7952 #     int fd;
7953 #     int offset;
7954 # {
7955 #   unsigned char b[4];
7956 #   lseek (fd, offset, SEEK_SET);
7957 #   read (fd, b, 4);
7958 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7959 # }
7960 #
7961 # static unsigned int
7962 # pe_as32 (ptr)
7963 #      void *ptr;
7964 # {
7965 #   unsigned char *b = ptr;
7966 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7967 # }
7968 #
7969 # int
7970 # main (argc, argv)
7971 #     int argc;
7972 #     char *argv[];
7973 # {
7974 #     int dll;
7975 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7976 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7977 #     unsigned long name_rvas, nexp;
7978 #     unsigned char *expdata, *erva;
7979 #     char *filename, *dll_name;
7980 #
7981 #     filename = argv[1];
7982 #
7983 #     dll = open(filename, O_RDONLY|O_BINARY);
7984 #     if (dll < 1)
7985 #       return 1;
7986 #
7987 #     dll_name = filename;
7988 #
7989 #     for (i=0; filename[i]; i++)
7990 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7991 #           dll_name = filename + i +1;
7992 #
7993 #     pe_header_offset = pe_get32 (dll, 0x3c);
7994 #     opthdr_ofs = pe_header_offset + 4 + 20;
7995 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7996 #
7997 #     if (num_entries < 1) /* no exports */
7998 #       return 1;
7999 #
8000 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8001 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8002 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8003 #     secptr = (pe_header_offset + 4 + 20 +
8004 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8005 #
8006 #     expptr = 0;
8007 #     for (i = 0; i < nsections; i++)
8008 #     {
8009 #       char sname[8];
8010 #       unsigned long secptr1 = secptr + 40 * i;
8011 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8012 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8013 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8014 #       lseek(dll, secptr1, SEEK_SET);
8015 #       read(dll, sname, 8);
8016 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8017 #       {
8018 #           expptr = fptr + (export_rva - vaddr);
8019 #           if (export_rva + export_size > vaddr + vsize)
8020 #               export_size = vsize - (export_rva - vaddr);
8021 #           break;
8022 #       }
8023 #     }
8024 #
8025 #     expdata = (unsigned char*)malloc(export_size);
8026 #     lseek (dll, expptr, SEEK_SET);
8027 #     read (dll, expdata, export_size);
8028 #     erva = expdata - export_rva;
8029 #
8030 #     nexp = pe_as32 (expdata+24);
8031 #     name_rvas = pe_as32 (expdata+32);
8032 #
8033 #     printf ("EXPORTS\n");
8034 #     for (i = 0; i<nexp; i++)
8035 #     {
8036 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8037 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8038 #     }
8039 #
8040 #     return 0;
8041 # }
8042 # /* impgen.c ends here */
8043
8044 EOF
8045     ;;
8046   esac
8047
8048   # We use sed instead of cat because bash on DJGPP gets confused if
8049   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8050   # text mode, it properly converts lines to CR/LF.  This bash problem
8051   # is reportedly fixed, but why not run on old versions too?
8052   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8053
8054   mv -f "${ofile}T" "$ofile" || \
8055     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8056   chmod +x "$ofile"
8057 fi
8058
8059
8060
8061
8062
8063 # This can be used to rebuild libtool when needed
8064 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8065
8066 # Always use our own libtool.
8067 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8068
8069 # Prevent multiple expansion
8070
8071
8072
8073
8074 WFLAGS_NOUNUSED=""
8075 WFLAGS_NOIMPLICITINT=""
8076 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
8077   # -Wno-implicit-int for broken X11 headers
8078   # leave these out for now:
8079   #   -Wcast-align doesn't work well on alpha osf/1
8080   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
8081   #   -Wmissing-declarations -Wnested-externs
8082   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
8083   WFLAGS_NOUNUSED="-Wno-unused"
8084   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
8085 fi
8086
8087
8088
8089 # Check whether --enable-berkeley-db or --disable-berkeley-db was given.
8090 if test "${enable_berkeley_db+set}" = set; then
8091   enableval="$enable_berkeley_db"
8092
8093
8094 fi;
8095
8096 have_ndbm=no
8097 db_type=unknown
8098
8099 if test "$enable_berkeley_db" != no; then
8100
8101
8102
8103
8104
8105 for ac_header in                                \
8106         db4/db.h                                \
8107         db3/db.h                                \
8108         db.h                                    \
8109         db_185.h                                \
8110
8111 do
8112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8114   echo "$as_me:8114: checking for $ac_header" >&5
8115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8117   echo $ECHO_N "(cached) $ECHO_C" >&6
8118 fi
8119 echo "$as_me:8119: result: `eval echo '${'$as_ac_Header'}'`" >&5
8120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8121 else
8122   # Is the header compilable?
8123 echo "$as_me:8123: checking $ac_header usability" >&5
8124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8125 cat >conftest.$ac_ext <<_ACEOF
8126 #line 8126 "configure"
8127 #include "confdefs.h"
8128 $ac_includes_default
8129 #include <$ac_header>
8130 _ACEOF
8131 rm -f conftest.$ac_objext
8132 if { (eval echo "$as_me:8132: \"$ac_compile\"") >&5
8133   (eval $ac_compile) 2>&5
8134   ac_status=$?
8135   echo "$as_me:8135: \$? = $ac_status" >&5
8136   (exit $ac_status); } &&
8137          { ac_try='test -s conftest.$ac_objext'
8138   { (eval echo "$as_me:8138: \"$ac_try\"") >&5
8139   (eval $ac_try) 2>&5
8140   ac_status=$?
8141   echo "$as_me:8141: \$? = $ac_status" >&5
8142   (exit $ac_status); }; }; then
8143   ac_header_compiler=yes
8144 else
8145   echo "$as_me: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8147 ac_header_compiler=no
8148 fi
8149 rm -f conftest.$ac_objext conftest.$ac_ext
8150 echo "$as_me:8150: result: $ac_header_compiler" >&5
8151 echo "${ECHO_T}$ac_header_compiler" >&6
8152
8153 # Is the header present?
8154 echo "$as_me:8154: checking $ac_header presence" >&5
8155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8156 cat >conftest.$ac_ext <<_ACEOF
8157 #line 8157 "configure"
8158 #include "confdefs.h"
8159 #include <$ac_header>
8160 _ACEOF
8161 if { (eval echo "$as_me:8161: \"$ac_cpp conftest.$ac_ext\"") >&5
8162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8163   ac_status=$?
8164   egrep -v '^ *\+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:8167: \$? = $ac_status" >&5
8168   (exit $ac_status); } >/dev/null; then
8169   if test -s conftest.err; then
8170     ac_cpp_err=$ac_c_preproc_warn_flag
8171   else
8172     ac_cpp_err=
8173   fi
8174 else
8175   ac_cpp_err=yes
8176 fi
8177 if test -z "$ac_cpp_err"; then
8178   ac_header_preproc=yes
8179 else
8180   echo "$as_me: failed program was:" >&5
8181   cat conftest.$ac_ext >&5
8182   ac_header_preproc=no
8183 fi
8184 rm -f conftest.err conftest.$ac_ext
8185 echo "$as_me:8185: result: $ac_header_preproc" >&5
8186 echo "${ECHO_T}$ac_header_preproc" >&6
8187
8188 # So?  What about this header?
8189 case $ac_header_compiler:$ac_header_preproc in
8190   yes:no )
8191     { echo "$as_me:8191: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8193     { echo "$as_me:8193: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8195   no:yes )
8196     { echo "$as_me:8196: WARNING: $ac_header: present but cannot be compiled" >&5
8197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8198     { echo "$as_me:8198: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8200     { echo "$as_me:8200: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8202 esac
8203 echo "$as_me:8203: checking for $ac_header" >&5
8204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8206   echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208   eval "$as_ac_Header=$ac_header_preproc"
8209 fi
8210 echo "$as_me:8210: result: `eval echo '${'$as_ac_Header'}'`" >&5
8211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8212
8213 fi
8214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8215   cat >>confdefs.h <<_ACEOF
8216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217 _ACEOF
8218
8219 fi
8220
8221 done
8222
8223
8224
8225
8226
8227
8228 echo "$as_me:8228: checking for db_create" >&5
8229 echo $ECHO_N "checking for db_create... $ECHO_C" >&6
8230 if test "${ac_cv_funclib_db_create+set}" = set; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233
8234 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
8235         ac_save_LIBS="$LIBS"
8236         for ac_lib in "" db4 db3 db; do
8237                 case "$ac_lib" in
8238                 "") ;;
8239                 yes) ac_lib="" ;;
8240                 no) continue ;;
8241                 -l*) ;;
8242                 *) ac_lib="-l$ac_lib" ;;
8243                 esac
8244                 LIBS=" $ac_lib  $ac_save_LIBS"
8245                 cat >conftest.$ac_ext <<_ACEOF
8246 #line 8246 "configure"
8247 #include "confdefs.h"
8248
8249   #include <stdio.h>
8250   #ifdef HAVE_DB4_DB_H
8251   #include <db4/db.h>
8252   #elif defined(HAVE_DB3_DB_H)
8253   #include <db3/db.h>
8254   #else
8255   #include <db.h>
8256   #endif
8257
8258 #ifdef F77_DUMMY_MAIN
8259 #  ifdef __cplusplus
8260      extern "C"
8261 #  endif
8262    int F77_DUMMY_MAIN() { return 1; }
8263 #endif
8264 int
8265 main ()
8266 {
8267 db_create(NULL, NULL, 0)
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:8273: \"$ac_link\"") >&5
8274   (eval $ac_link) 2>&5
8275   ac_status=$?
8276   echo "$as_me:8276: \$? = $ac_status" >&5
8277   (exit $ac_status); } &&
8278          { ac_try='test -s conftest$ac_exeext'
8279   { (eval echo "$as_me:8279: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:8282: \$? = $ac_status" >&5
8283   (exit $ac_status); }; }; then
8284   eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
8285 else
8286   echo "$as_me: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8288 fi
8289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8290         done
8291         eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
8292         LIBS="$ac_save_LIBS"
8293 fi
8294
8295 fi
8296
8297
8298 eval "ac_res=\$ac_cv_funclib_db_create"
8299
8300 if false; then
8301
8302 for ac_func in db_create
8303 do
8304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8305 echo "$as_me:8305: checking for $ac_func" >&5
8306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8307 if eval "test \"\${$as_ac_var+set}\" = set"; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   cat >conftest.$ac_ext <<_ACEOF
8311 #line 8311 "configure"
8312 #include "confdefs.h"
8313 /* System header to define __stub macros and hopefully few prototypes,
8314     which can conflict with char $ac_func (); below.  */
8315 #include <assert.h>
8316 /* Override any gcc2 internal prototype to avoid an error.  */
8317 #ifdef __cplusplus
8318 extern "C"
8319 #endif
8320 /* We use char because int might match the return type of a gcc2
8321    builtin and then its argument prototype would still apply.  */
8322 char $ac_func ();
8323 char (*f) ();
8324
8325 #ifdef F77_DUMMY_MAIN
8326 #  ifdef __cplusplus
8327      extern "C"
8328 #  endif
8329    int F77_DUMMY_MAIN() { return 1; }
8330 #endif
8331 int
8332 main ()
8333 {
8334 /* The GNU C library defines this for functions which it implements
8335     to always fail with ENOSYS.  Some functions are actually named
8336     something starting with __ and the normal name is an alias.  */
8337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8338 choke me
8339 #else
8340 f = $ac_func;
8341 #endif
8342
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext conftest$ac_exeext
8348 if { (eval echo "$as_me:8348: \"$ac_link\"") >&5
8349   (eval $ac_link) 2>&5
8350   ac_status=$?
8351   echo "$as_me:8351: \$? = $ac_status" >&5
8352   (exit $ac_status); } &&
8353          { ac_try='test -s conftest$ac_exeext'
8354   { (eval echo "$as_me:8354: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:8357: \$? = $ac_status" >&5
8358   (exit $ac_status); }; }; then
8359   eval "$as_ac_var=yes"
8360 else
8361   echo "$as_me: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8363 eval "$as_ac_var=no"
8364 fi
8365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8366 fi
8367 echo "$as_me:8367: result: `eval echo '${'$as_ac_var'}'`" >&5
8368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8369 if test `eval echo '${'$as_ac_var'}'` = yes; then
8370   cat >>confdefs.h <<_ACEOF
8371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8372 _ACEOF
8373
8374 fi
8375 done
8376
8377 fi
8378 # db_create
8379 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8380 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8381 eval "LIB_db_create=$ac_res"
8382
8383 case "$ac_res" in
8384         yes)
8385         eval "ac_cv_func_db_create=yes"
8386         eval "LIB_db_create="
8387         cat >>confdefs.h <<_ACEOF
8388 #define $ac_tr_func 1
8389 _ACEOF
8390
8391         echo "$as_me:8391: result: yes" >&5
8392 echo "${ECHO_T}yes" >&6
8393         ;;
8394         no)
8395         eval "ac_cv_func_db_create=no"
8396         eval "LIB_db_create="
8397         echo "$as_me:8397: result: no" >&5
8398 echo "${ECHO_T}no" >&6
8399         ;;
8400         *)
8401         eval "ac_cv_func_db_create=yes"
8402         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8403         cat >>confdefs.h <<_ACEOF
8404 #define $ac_tr_func 1
8405 _ACEOF
8406
8407         cat >>confdefs.h <<_ACEOF
8408 #define $ac_tr_lib 1
8409 _ACEOF
8410
8411         echo "$as_me:8411: result: yes, in $ac_res" >&5
8412 echo "${ECHO_T}yes, in $ac_res" >&6
8413         ;;
8414 esac
8415
8416
8417
8418   if test "$ac_cv_func_db_create" = "yes"; then
8419     db_type=db3
8420     if test "$ac_cv_funclib_db_create" != "yes"; then
8421       DBLIB="$ac_cv_funclib_db_create"
8422     else
8423       DBLIB=""
8424     fi
8425
8426 cat >>confdefs.h <<\_ACEOF
8427 #define HAVE_DB3 1
8428 _ACEOF
8429
8430   else
8431
8432
8433
8434
8435
8436 echo "$as_me:8436: checking for dbopen" >&5
8437 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
8438 if test "${ac_cv_funclib_dbopen+set}" = set; then
8439   echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441
8442 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
8443         ac_save_LIBS="$LIBS"
8444         for ac_lib in "" db2 db; do
8445                 case "$ac_lib" in
8446                 "") ;;
8447                 yes) ac_lib="" ;;
8448                 no) continue ;;
8449                 -l*) ;;
8450                 *) ac_lib="-l$ac_lib" ;;
8451                 esac
8452                 LIBS=" $ac_lib  $ac_save_LIBS"
8453                 cat >conftest.$ac_ext <<_ACEOF
8454 #line 8454 "configure"
8455 #include "confdefs.h"
8456
8457     #include <stdio.h>
8458     #if defined(HAVE_DB2_DB_H)
8459     #include <db2/db.h>
8460     #elif defined(HAVE_DB_185_H)
8461     #include <db_185.h>
8462     #elif defined(HAVE_DB_H)
8463     #include <db.h>
8464     #else
8465     #error no db.h
8466     #endif
8467
8468 #ifdef F77_DUMMY_MAIN
8469 #  ifdef __cplusplus
8470      extern "C"
8471 #  endif
8472    int F77_DUMMY_MAIN() { return 1; }
8473 #endif
8474 int
8475 main ()
8476 {
8477 dbopen(NULL, 0, 0, 0, NULL)
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (eval echo "$as_me:8483: \"$ac_link\"") >&5
8484   (eval $ac_link) 2>&5
8485   ac_status=$?
8486   echo "$as_me:8486: \$? = $ac_status" >&5
8487   (exit $ac_status); } &&
8488          { ac_try='test -s conftest$ac_exeext'
8489   { (eval echo "$as_me:8489: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:8492: \$? = $ac_status" >&5
8493   (exit $ac_status); }; }; then
8494   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8498 fi
8499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8500         done
8501         eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
8502         LIBS="$ac_save_LIBS"
8503 fi
8504
8505 fi
8506
8507
8508 eval "ac_res=\$ac_cv_funclib_dbopen"
8509
8510 if false; then
8511
8512 for ac_func in dbopen
8513 do
8514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8515 echo "$as_me:8515: checking for $ac_func" >&5
8516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8517 if eval "test \"\${$as_ac_var+set}\" = set"; then
8518   echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520   cat >conftest.$ac_ext <<_ACEOF
8521 #line 8521 "configure"
8522 #include "confdefs.h"
8523 /* System header to define __stub macros and hopefully few prototypes,
8524     which can conflict with char $ac_func (); below.  */
8525 #include <assert.h>
8526 /* Override any gcc2 internal prototype to avoid an error.  */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 /* We use char because int might match the return type of a gcc2
8531    builtin and then its argument prototype would still apply.  */
8532 char $ac_func ();
8533 char (*f) ();
8534
8535 #ifdef F77_DUMMY_MAIN
8536 #  ifdef __cplusplus
8537      extern "C"
8538 #  endif
8539    int F77_DUMMY_MAIN() { return 1; }
8540 #endif
8541 int
8542 main ()
8543 {
8544 /* The GNU C library defines this for functions which it implements
8545     to always fail with ENOSYS.  Some functions are actually named
8546     something starting with __ and the normal name is an alias.  */
8547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8548 choke me
8549 #else
8550 f = $ac_func;
8551 #endif
8552
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (eval echo "$as_me:8558: \"$ac_link\"") >&5
8559   (eval $ac_link) 2>&5
8560   ac_status=$?
8561   echo "$as_me:8561: \$? = $ac_status" >&5
8562   (exit $ac_status); } &&
8563          { ac_try='test -s conftest$ac_exeext'
8564   { (eval echo "$as_me:8564: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:8567: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   eval "$as_ac_var=yes"
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8573 eval "$as_ac_var=no"
8574 fi
8575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8576 fi
8577 echo "$as_me:8577: result: `eval echo '${'$as_ac_var'}'`" >&5
8578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8579 if test `eval echo '${'$as_ac_var'}'` = yes; then
8580   cat >>confdefs.h <<_ACEOF
8581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8582 _ACEOF
8583
8584 fi
8585 done
8586
8587 fi
8588 # dbopen
8589 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8590 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8591 eval "LIB_dbopen=$ac_res"
8592
8593 case "$ac_res" in
8594         yes)
8595         eval "ac_cv_func_dbopen=yes"
8596         eval "LIB_dbopen="
8597         cat >>confdefs.h <<_ACEOF
8598 #define $ac_tr_func 1
8599 _ACEOF
8600
8601         echo "$as_me:8601: result: yes" >&5
8602 echo "${ECHO_T}yes" >&6
8603         ;;
8604         no)
8605         eval "ac_cv_func_dbopen=no"
8606         eval "LIB_dbopen="
8607         echo "$as_me:8607: result: no" >&5
8608 echo "${ECHO_T}no" >&6
8609         ;;
8610         *)
8611         eval "ac_cv_func_dbopen=yes"
8612         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8613         cat >>confdefs.h <<_ACEOF
8614 #define $ac_tr_func 1
8615 _ACEOF
8616
8617         cat >>confdefs.h <<_ACEOF
8618 #define $ac_tr_lib 1
8619 _ACEOF
8620
8621         echo "$as_me:8621: result: yes, in $ac_res" >&5
8622 echo "${ECHO_T}yes, in $ac_res" >&6
8623         ;;
8624 esac
8625
8626
8627
8628     if test "$ac_cv_func_dbopen" = "yes"; then
8629       db_type=db1
8630       if test "$ac_cv_funclib_dbopen" != "yes"; then
8631         DBLIB="$ac_cv_funclib_dbopen"
8632       else
8633         DBLIB=""
8634       fi
8635
8636 cat >>confdefs.h <<\_ACEOF
8637 #define HAVE_DB1 1
8638 _ACEOF
8639
8640     fi
8641   fi
8642
8643
8644   if test "$ac_cv_func_dbm_firstkey" != yes; then
8645
8646
8647 echo "$as_me:8647: checking for dbm_firstkey" >&5
8648 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
8649 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
8650   echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652
8653 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
8654         ac_save_LIBS="$LIBS"
8655         for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
8656                 case "$ac_lib" in
8657                 "") ;;
8658                 yes) ac_lib="" ;;
8659                 no) continue ;;
8660                 -l*) ;;
8661                 *) ac_lib="-l$ac_lib" ;;
8662                 esac
8663                 LIBS=" $ac_lib  $ac_save_LIBS"
8664                 cat >conftest.$ac_ext <<_ACEOF
8665 #line 8665 "configure"
8666 #include "confdefs.h"
8667
8668     #include <stdio.h>
8669     #define DB_DBM_HSEARCH 1
8670     #include <db.h>
8671     DBM *dbm;
8672
8673 #ifdef F77_DUMMY_MAIN
8674 #  ifdef __cplusplus
8675      extern "C"
8676 #  endif
8677    int F77_DUMMY_MAIN() { return 1; }
8678 #endif
8679 int
8680 main ()
8681 {
8682 dbm_firstkey(NULL)
8683   ;
8684   return 0;
8685 }
8686 _ACEOF
8687 rm -f conftest.$ac_objext conftest$ac_exeext
8688 if { (eval echo "$as_me:8688: \"$ac_link\"") >&5
8689   (eval $ac_link) 2>&5
8690   ac_status=$?
8691   echo "$as_me:8691: \$? = $ac_status" >&5
8692   (exit $ac_status); } &&
8693          { ac_try='test -s conftest$ac_exeext'
8694   { (eval echo "$as_me:8694: \"$ac_try\"") >&5
8695   (eval $ac_try) 2>&5
8696   ac_status=$?
8697   echo "$as_me:8697: \$? = $ac_status" >&5
8698   (exit $ac_status); }; }; then
8699   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
8700 else
8701   echo "$as_me: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 fi
8704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8705         done
8706         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
8707         LIBS="$ac_save_LIBS"
8708 fi
8709
8710 fi
8711
8712
8713 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
8714
8715 if false; then
8716
8717 for ac_func in dbm_firstkey
8718 do
8719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8720 echo "$as_me:8720: checking for $ac_func" >&5
8721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8722 if eval "test \"\${$as_ac_var+set}\" = set"; then
8723   echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725   cat >conftest.$ac_ext <<_ACEOF
8726 #line 8726 "configure"
8727 #include "confdefs.h"
8728 /* System header to define __stub macros and hopefully few prototypes,
8729     which can conflict with char $ac_func (); below.  */
8730 #include <assert.h>
8731 /* Override any gcc2 internal prototype to avoid an error.  */
8732 #ifdef __cplusplus
8733 extern "C"
8734 #endif
8735 /* We use char because int might match the return type of a gcc2
8736    builtin and then its argument prototype would still apply.  */
8737 char $ac_func ();
8738 char (*f) ();
8739
8740 #ifdef F77_DUMMY_MAIN
8741 #  ifdef __cplusplus
8742      extern "C"
8743 #  endif
8744    int F77_DUMMY_MAIN() { return 1; }
8745 #endif
8746 int
8747 main ()
8748 {
8749 /* The GNU C library defines this for functions which it implements
8750     to always fail with ENOSYS.  Some functions are actually named
8751     something starting with __ and the normal name is an alias.  */
8752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8753 choke me
8754 #else
8755 f = $ac_func;
8756 #endif
8757
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (eval echo "$as_me:8763: \"$ac_link\"") >&5
8764   (eval $ac_link) 2>&5
8765   ac_status=$?
8766   echo "$as_me:8766: \$? = $ac_status" >&5
8767   (exit $ac_status); } &&
8768          { ac_try='test -s conftest$ac_exeext'
8769   { (eval echo "$as_me:8769: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:8772: \$? = $ac_status" >&5
8773   (exit $ac_status); }; }; then
8774   eval "$as_ac_var=yes"
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 eval "$as_ac_var=no"
8779 fi
8780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8781 fi
8782 echo "$as_me:8782: result: `eval echo '${'$as_ac_var'}'`" >&5
8783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8784 if test `eval echo '${'$as_ac_var'}'` = yes; then
8785   cat >>confdefs.h <<_ACEOF
8786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8787 _ACEOF
8788
8789 fi
8790 done
8791
8792 fi
8793 # dbm_firstkey
8794 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8795 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8796 eval "LIB_dbm_firstkey=$ac_res"
8797
8798 case "$ac_res" in
8799         yes)
8800         eval "ac_cv_func_dbm_firstkey=yes"
8801         eval "LIB_dbm_firstkey="
8802         cat >>confdefs.h <<_ACEOF
8803 #define $ac_tr_func 1
8804 _ACEOF
8805
8806         echo "$as_me:8806: result: yes" >&5
8807 echo "${ECHO_T}yes" >&6
8808         ;;
8809         no)
8810         eval "ac_cv_func_dbm_firstkey=no"
8811         eval "LIB_dbm_firstkey="
8812         echo "$as_me:8812: result: no" >&5
8813 echo "${ECHO_T}no" >&6
8814         ;;
8815         *)
8816         eval "ac_cv_func_dbm_firstkey=yes"
8817         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8818         cat >>confdefs.h <<_ACEOF
8819 #define $ac_tr_func 1
8820 _ACEOF
8821
8822         cat >>confdefs.h <<_ACEOF
8823 #define $ac_tr_lib 1
8824 _ACEOF
8825
8826         echo "$as_me:8826: result: yes, in $ac_res" >&5
8827 echo "${ECHO_T}yes, in $ac_res" >&6
8828         ;;
8829 esac
8830
8831
8832
8833     if test "$ac_cv_func_dbm_firstkey" = "yes"; then
8834       if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
8835         LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
8836       else
8837         LIB_NDBM=""
8838       fi
8839
8840 cat >>confdefs.h <<\_ACEOF
8841 #define HAVE_DB_NDBM 1
8842 _ACEOF
8843
8844
8845 cat >>confdefs.h <<\_ACEOF
8846 #define HAVE_NEW_DB 1
8847 _ACEOF
8848
8849     else
8850       $as_unset ac_cv_func_dbm_firstkey
8851       $as_unset ac_cv_funclib_dbm_firstkey
8852     fi
8853   fi
8854
8855 fi # berkeley db
8856
8857 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
8858
8859
8860
8861 for ac_header in                                \
8862         dbm.h                                   \
8863         ndbm.h                                  \
8864
8865 do
8866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8868   echo "$as_me:8868: checking for $ac_header" >&5
8869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 fi
8873 echo "$as_me:8873: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8875 else
8876   # Is the header compilable?
8877 echo "$as_me:8877: checking $ac_header usability" >&5
8878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8879 cat >conftest.$ac_ext <<_ACEOF
8880 #line 8880 "configure"
8881 #include "confdefs.h"
8882 $ac_includes_default
8883 #include <$ac_header>
8884 _ACEOF
8885 rm -f conftest.$ac_objext
8886 if { (eval echo "$as_me:8886: \"$ac_compile\"") >&5
8887   (eval $ac_compile) 2>&5
8888   ac_status=$?
8889   echo "$as_me:8889: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -s conftest.$ac_objext'
8892   { (eval echo "$as_me:8892: \"$ac_try\"") >&5
8893   (eval $ac_try) 2>&5
8894   ac_status=$?
8895   echo "$as_me:8895: \$? = $ac_status" >&5
8896   (exit $ac_status); }; }; then
8897   ac_header_compiler=yes
8898 else
8899   echo "$as_me: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8901 ac_header_compiler=no
8902 fi
8903 rm -f conftest.$ac_objext conftest.$ac_ext
8904 echo "$as_me:8904: result: $ac_header_compiler" >&5
8905 echo "${ECHO_T}$ac_header_compiler" >&6
8906
8907 # Is the header present?
8908 echo "$as_me:8908: checking $ac_header presence" >&5
8909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8910 cat >conftest.$ac_ext <<_ACEOF
8911 #line 8911 "configure"
8912 #include "confdefs.h"
8913 #include <$ac_header>
8914 _ACEOF
8915 if { (eval echo "$as_me:8915: \"$ac_cpp conftest.$ac_ext\"") >&5
8916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8917   ac_status=$?
8918   egrep -v '^ *\+' conftest.er1 >conftest.err
8919   rm -f conftest.er1
8920   cat conftest.err >&5
8921   echo "$as_me:8921: \$? = $ac_status" >&5
8922   (exit $ac_status); } >/dev/null; then
8923   if test -s conftest.err; then
8924     ac_cpp_err=$ac_c_preproc_warn_flag
8925   else
8926     ac_cpp_err=
8927   fi
8928 else
8929   ac_cpp_err=yes
8930 fi
8931 if test -z "$ac_cpp_err"; then
8932   ac_header_preproc=yes
8933 else
8934   echo "$as_me: failed program was:" >&5
8935   cat conftest.$ac_ext >&5
8936   ac_header_preproc=no
8937 fi
8938 rm -f conftest.err conftest.$ac_ext
8939 echo "$as_me:8939: result: $ac_header_preproc" >&5
8940 echo "${ECHO_T}$ac_header_preproc" >&6
8941
8942 # So?  What about this header?
8943 case $ac_header_compiler:$ac_header_preproc in
8944   yes:no )
8945     { echo "$as_me:8945: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8947     { echo "$as_me:8947: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8949   no:yes )
8950     { echo "$as_me:8950: WARNING: $ac_header: present but cannot be compiled" >&5
8951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8952     { echo "$as_me:8952: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8954     { echo "$as_me:8954: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8956 esac
8957 echo "$as_me:8957: checking for $ac_header" >&5
8958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8960   echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962   eval "$as_ac_Header=$ac_header_preproc"
8963 fi
8964 echo "$as_me:8964: result: `eval echo '${'$as_ac_Header'}'`" >&5
8965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8966
8967 fi
8968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8969   cat >>confdefs.h <<_ACEOF
8970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8971 _ACEOF
8972
8973 fi
8974
8975 done
8976
8977
8978
8979
8980
8981 echo "$as_me:8981: checking for dbm_firstkey" >&5
8982 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
8983 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986
8987 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
8988         ac_save_LIBS="$LIBS"
8989         for ac_lib in "" ndbm; do
8990                 case "$ac_lib" in
8991                 "") ;;
8992                 yes) ac_lib="" ;;
8993                 no) continue ;;
8994                 -l*) ;;
8995                 *) ac_lib="-l$ac_lib" ;;
8996                 esac
8997                 LIBS=" $ac_lib  $ac_save_LIBS"
8998                 cat >conftest.$ac_ext <<_ACEOF
8999 #line 8999 "configure"
9000 #include "confdefs.h"
9001
9002   #include <stdio.h>
9003   #if defined(HAVE_NDBM_H)
9004   #include <ndbm.h>
9005   #elif defined(HAVE_DBM_H)
9006   #include <dbm.h>
9007   #endif
9008   DBM *dbm;
9009
9010 #ifdef F77_DUMMY_MAIN
9011 #  ifdef __cplusplus
9012      extern "C"
9013 #  endif
9014    int F77_DUMMY_MAIN() { return 1; }
9015 #endif
9016 int
9017 main ()
9018 {
9019 dbm_firstkey(NULL)
9020   ;
9021   return 0;
9022 }
9023 _ACEOF
9024 rm -f conftest.$ac_objext conftest$ac_exeext
9025 if { (eval echo "$as_me:9025: \"$ac_link\"") >&5
9026   (eval $ac_link) 2>&5
9027   ac_status=$?
9028   echo "$as_me:9028: \$? = $ac_status" >&5
9029   (exit $ac_status); } &&
9030          { ac_try='test -s conftest$ac_exeext'
9031   { (eval echo "$as_me:9031: \"$ac_try\"") >&5
9032   (eval $ac_try) 2>&5
9033   ac_status=$?
9034   echo "$as_me:9034: \$? = $ac_status" >&5
9035   (exit $ac_status); }; }; then
9036   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
9037 else
9038   echo "$as_me: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9040 fi
9041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9042         done
9043         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
9044         LIBS="$ac_save_LIBS"
9045 fi
9046
9047 fi
9048
9049
9050 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
9051
9052 if false; then
9053
9054 for ac_func in dbm_firstkey
9055 do
9056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9057 echo "$as_me:9057: checking for $ac_func" >&5
9058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9059 if eval "test \"\${$as_ac_var+set}\" = set"; then
9060   echo $ECHO_N "(cached) $ECHO_C" >&6
9061 else
9062   cat >conftest.$ac_ext <<_ACEOF
9063 #line 9063 "configure"
9064 #include "confdefs.h"
9065 /* System header to define __stub macros and hopefully few prototypes,
9066     which can conflict with char $ac_func (); below.  */
9067 #include <assert.h>
9068 /* Override any gcc2 internal prototype to avoid an error.  */
9069 #ifdef __cplusplus
9070 extern "C"
9071 #endif
9072 /* We use char because int might match the return type of a gcc2
9073    builtin and then its argument prototype would still apply.  */
9074 char $ac_func ();
9075 char (*f) ();
9076
9077 #ifdef F77_DUMMY_MAIN
9078 #  ifdef __cplusplus
9079      extern "C"
9080 #  endif
9081    int F77_DUMMY_MAIN() { return 1; }
9082 #endif
9083 int
9084 main ()
9085 {
9086 /* The GNU C library defines this for functions which it implements
9087     to always fail with ENOSYS.  Some functions are actually named
9088     something starting with __ and the normal name is an alias.  */
9089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9090 choke me
9091 #else
9092 f = $ac_func;
9093 #endif
9094
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext conftest$ac_exeext
9100 if { (eval echo "$as_me:9100: \"$ac_link\"") >&5
9101   (eval $ac_link) 2>&5
9102   ac_status=$?
9103   echo "$as_me:9103: \$? = $ac_status" >&5
9104   (exit $ac_status); } &&
9105          { ac_try='test -s conftest$ac_exeext'
9106   { (eval echo "$as_me:9106: \"$ac_try\"") >&5
9107   (eval $ac_try) 2>&5
9108   ac_status=$?
9109   echo "$as_me:9109: \$? = $ac_status" >&5
9110   (exit $ac_status); }; }; then
9111   eval "$as_ac_var=yes"
9112 else
9113   echo "$as_me: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9115 eval "$as_ac_var=no"
9116 fi
9117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9118 fi
9119 echo "$as_me:9119: result: `eval echo '${'$as_ac_var'}'`" >&5
9120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9121 if test `eval echo '${'$as_ac_var'}'` = yes; then
9122   cat >>confdefs.h <<_ACEOF
9123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9124 _ACEOF
9125
9126 fi
9127 done
9128
9129 fi
9130 # dbm_firstkey
9131 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9132 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9133 eval "LIB_dbm_firstkey=$ac_res"
9134
9135 case "$ac_res" in
9136         yes)
9137         eval "ac_cv_func_dbm_firstkey=yes"
9138         eval "LIB_dbm_firstkey="
9139         cat >>confdefs.h <<_ACEOF
9140 #define $ac_tr_func 1
9141 _ACEOF
9142
9143         echo "$as_me:9143: result: yes" >&5
9144 echo "${ECHO_T}yes" >&6
9145         ;;
9146         no)
9147         eval "ac_cv_func_dbm_firstkey=no"
9148         eval "LIB_dbm_firstkey="
9149         echo "$as_me:9149: result: no" >&5
9150 echo "${ECHO_T}no" >&6
9151         ;;
9152         *)
9153         eval "ac_cv_func_dbm_firstkey=yes"
9154         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9155         cat >>confdefs.h <<_ACEOF
9156 #define $ac_tr_func 1
9157 _ACEOF
9158
9159         cat >>confdefs.h <<_ACEOF
9160 #define $ac_tr_lib 1
9161 _ACEOF
9162
9163         echo "$as_me:9163: result: yes, in $ac_res" >&5
9164 echo "${ECHO_T}yes, in $ac_res" >&6
9165         ;;
9166 esac
9167
9168
9169
9170   if test "$ac_cv_func_dbm_firstkey" = "yes"; then
9171     if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
9172       LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
9173     else
9174       LIB_NDBM=""
9175     fi
9176
9177 cat >>confdefs.h <<\_ACEOF
9178 #define HAVE_NDBM 1
9179 _ACEOF
9180     have_ndbm=yes
9181     if test "$db_type" = "unknown"; then
9182       db_type=ndbm
9183       DBLIB="$LIB_NDBM"
9184     fi
9185   else
9186
9187     $as_unset ac_cv_func_dbm_firstkey
9188     $as_unset ac_cv_funclib_dbm_firstkey
9189
9190
9191 for ac_header in                                \
9192           gdbm/ndbm.h                           \
9193
9194 do
9195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9197   echo "$as_me:9197: checking for $ac_header" >&5
9198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200   echo $ECHO_N "(cached) $ECHO_C" >&6
9201 fi
9202 echo "$as_me:9202: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9204 else
9205   # Is the header compilable?
9206 echo "$as_me:9206: checking $ac_header usability" >&5
9207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9208 cat >conftest.$ac_ext <<_ACEOF
9209 #line 9209 "configure"
9210 #include "confdefs.h"
9211 $ac_includes_default
9212 #include <$ac_header>
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:9215: \"$ac_compile\"") >&5
9216   (eval $ac_compile) 2>&5
9217   ac_status=$?
9218   echo "$as_me:9218: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -s conftest.$ac_objext'
9221   { (eval echo "$as_me:9221: \"$ac_try\"") >&5
9222   (eval $ac_try) 2>&5
9223   ac_status=$?
9224   echo "$as_me:9224: \$? = $ac_status" >&5
9225   (exit $ac_status); }; }; then
9226   ac_header_compiler=yes
9227 else
9228   echo "$as_me: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9230 ac_header_compiler=no
9231 fi
9232 rm -f conftest.$ac_objext conftest.$ac_ext
9233 echo "$as_me:9233: result: $ac_header_compiler" >&5
9234 echo "${ECHO_T}$ac_header_compiler" >&6
9235
9236 # Is the header present?
9237 echo "$as_me:9237: checking $ac_header presence" >&5
9238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9239 cat >conftest.$ac_ext <<_ACEOF
9240 #line 9240 "configure"
9241 #include "confdefs.h"
9242 #include <$ac_header>
9243 _ACEOF
9244 if { (eval echo "$as_me:9244: \"$ac_cpp conftest.$ac_ext\"") >&5
9245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9246   ac_status=$?
9247   egrep -v '^ *\+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   echo "$as_me:9250: \$? = $ac_status" >&5
9251   (exit $ac_status); } >/dev/null; then
9252   if test -s conftest.err; then
9253     ac_cpp_err=$ac_c_preproc_warn_flag
9254   else
9255     ac_cpp_err=
9256   fi
9257 else
9258   ac_cpp_err=yes
9259 fi
9260 if test -z "$ac_cpp_err"; then
9261   ac_header_preproc=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264   cat conftest.$ac_ext >&5
9265   ac_header_preproc=no
9266 fi
9267 rm -f conftest.err conftest.$ac_ext
9268 echo "$as_me:9268: result: $ac_header_preproc" >&5
9269 echo "${ECHO_T}$ac_header_preproc" >&6
9270
9271 # So?  What about this header?
9272 case $ac_header_compiler:$ac_header_preproc in
9273   yes:no )
9274     { echo "$as_me:9274: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9276     { echo "$as_me:9276: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9278   no:yes )
9279     { echo "$as_me:9279: WARNING: $ac_header: present but cannot be compiled" >&5
9280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9281     { echo "$as_me:9281: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9283     { echo "$as_me:9283: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9285 esac
9286 echo "$as_me:9286: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   eval "$as_ac_Header=$ac_header_preproc"
9292 fi
9293 echo "$as_me:9293: result: `eval echo '${'$as_ac_Header'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9295
9296 fi
9297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9298   cat >>confdefs.h <<_ACEOF
9299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9300 _ACEOF
9301
9302 fi
9303
9304 done
9305
9306
9307
9308
9309
9310 echo "$as_me:9310: checking for dbm_firstkey" >&5
9311 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
9312 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315
9316 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
9317         ac_save_LIBS="$LIBS"
9318         for ac_lib in "" gdbm; do
9319                 case "$ac_lib" in
9320                 "") ;;
9321                 yes) ac_lib="" ;;
9322                 no) continue ;;
9323                 -l*) ;;
9324                 *) ac_lib="-l$ac_lib" ;;
9325                 esac
9326                 LIBS=" $ac_lib  $ac_save_LIBS"
9327                 cat >conftest.$ac_ext <<_ACEOF
9328 #line 9328 "configure"
9329 #include "confdefs.h"
9330
9331     #include <stdio.h>
9332     #include <gdbm/ndbm.h>
9333     DBM *dbm;
9334
9335 #ifdef F77_DUMMY_MAIN
9336 #  ifdef __cplusplus
9337      extern "C"
9338 #  endif
9339    int F77_DUMMY_MAIN() { return 1; }
9340 #endif
9341 int
9342 main ()
9343 {
9344 dbm_firstkey(NULL)
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:9350: \"$ac_link\"") >&5
9351   (eval $ac_link) 2>&5
9352   ac_status=$?
9353   echo "$as_me:9353: \$? = $ac_status" >&5
9354   (exit $ac_status); } &&
9355          { ac_try='test -s conftest$ac_exeext'
9356   { (eval echo "$as_me:9356: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:9359: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 fi
9366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9367         done
9368         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
9369         LIBS="$ac_save_LIBS"
9370 fi
9371
9372 fi
9373
9374
9375 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
9376
9377 if false; then
9378
9379 for ac_func in dbm_firstkey
9380 do
9381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9382 echo "$as_me:9382: checking for $ac_func" >&5
9383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9384 if eval "test \"\${$as_ac_var+set}\" = set"; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   cat >conftest.$ac_ext <<_ACEOF
9388 #line 9388 "configure"
9389 #include "confdefs.h"
9390 /* System header to define __stub macros and hopefully few prototypes,
9391     which can conflict with char $ac_func (); below.  */
9392 #include <assert.h>
9393 /* Override any gcc2 internal prototype to avoid an error.  */
9394 #ifdef __cplusplus
9395 extern "C"
9396 #endif
9397 /* We use char because int might match the return type of a gcc2
9398    builtin and then its argument prototype would still apply.  */
9399 char $ac_func ();
9400 char (*f) ();
9401
9402 #ifdef F77_DUMMY_MAIN
9403 #  ifdef __cplusplus
9404      extern "C"
9405 #  endif
9406    int F77_DUMMY_MAIN() { return 1; }
9407 #endif
9408 int
9409 main ()
9410 {
9411 /* The GNU C library defines this for functions which it implements
9412     to always fail with ENOSYS.  Some functions are actually named
9413     something starting with __ and the normal name is an alias.  */
9414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9415 choke me
9416 #else
9417 f = $ac_func;
9418 #endif
9419
9420   ;
9421   return 0;
9422 }
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:9425: \"$ac_link\"") >&5
9426   (eval $ac_link) 2>&5
9427   ac_status=$?
9428   echo "$as_me:9428: \$? = $ac_status" >&5
9429   (exit $ac_status); } &&
9430          { ac_try='test -s conftest$ac_exeext'
9431   { (eval echo "$as_me:9431: \"$ac_try\"") >&5
9432   (eval $ac_try) 2>&5
9433   ac_status=$?
9434   echo "$as_me:9434: \$? = $ac_status" >&5
9435   (exit $ac_status); }; }; then
9436   eval "$as_ac_var=yes"
9437 else
9438   echo "$as_me: failed program was:" >&5
9439 cat conftest.$ac_ext >&5
9440 eval "$as_ac_var=no"
9441 fi
9442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9443 fi
9444 echo "$as_me:9444: result: `eval echo '${'$as_ac_var'}'`" >&5
9445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9446 if test `eval echo '${'$as_ac_var'}'` = yes; then
9447   cat >>confdefs.h <<_ACEOF
9448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9449 _ACEOF
9450
9451 fi
9452 done
9453
9454 fi
9455 # dbm_firstkey
9456 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9457 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9458 eval "LIB_dbm_firstkey=$ac_res"
9459
9460 case "$ac_res" in
9461         yes)
9462         eval "ac_cv_func_dbm_firstkey=yes"
9463         eval "LIB_dbm_firstkey="
9464         cat >>confdefs.h <<_ACEOF
9465 #define $ac_tr_func 1
9466 _ACEOF
9467
9468         echo "$as_me:9468: result: yes" >&5
9469 echo "${ECHO_T}yes" >&6
9470         ;;
9471         no)
9472         eval "ac_cv_func_dbm_firstkey=no"
9473         eval "LIB_dbm_firstkey="
9474         echo "$as_me:9474: result: no" >&5
9475 echo "${ECHO_T}no" >&6
9476         ;;
9477         *)
9478         eval "ac_cv_func_dbm_firstkey=yes"
9479         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9480         cat >>confdefs.h <<_ACEOF
9481 #define $ac_tr_func 1
9482 _ACEOF
9483
9484         cat >>confdefs.h <<_ACEOF
9485 #define $ac_tr_lib 1
9486 _ACEOF
9487
9488         echo "$as_me:9488: result: yes, in $ac_res" >&5
9489 echo "${ECHO_T}yes, in $ac_res" >&6
9490         ;;
9491 esac
9492
9493
9494
9495     if test "$ac_cv_func_dbm_firstkey" = "yes"; then
9496       if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
9497         LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
9498       else
9499         LIB_NDBM=""
9500       fi
9501
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_NDBM 1
9504 _ACEOF
9505       have_ndbm=yes
9506       if test "$db_type" = "unknown"; then
9507         db_type=ndbm
9508         DBLIB="$LIB_NDBM"
9509       fi
9510     fi
9511   fi
9512
9513 fi # unknown
9514
9515 if test "$have_ndbm" = "yes"; then
9516   echo "$as_me:9516: checking if ndbm is implemented with db" >&5
9517 echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
9518   if test "$cross_compiling" = yes; then
9519   { { echo "$as_me:9519: error: cannot run test program while cross compiling" >&5
9520 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9521    { (exit 1); exit 1; }; }
9522 else
9523   cat >conftest.$ac_ext <<_ACEOF
9524 #line 9524 "configure"
9525 #include "confdefs.h"
9526
9527 #include <unistd.h>
9528 #include <fcntl.h>
9529 #if defined(HAVE_GDBM_NDBM_H)
9530 #include <gdbm/ndbm.h>
9531 #elif defined(HAVE_NDBM_H)
9532 #include <ndbm.h>
9533 #elif defined(HAVE_DBM_H)
9534 #include <dbm.h>
9535 #endif
9536 int main()
9537 {
9538   DBM *d;
9539
9540   d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
9541   if (d == NULL)
9542     return 1;
9543   dbm_close(d);
9544   return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest$ac_exeext
9548 if { (eval echo "$as_me:9548: \"$ac_link\"") >&5
9549   (eval $ac_link) 2>&5
9550   ac_status=$?
9551   echo "$as_me:9551: \$? = $ac_status" >&5
9552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9553   { (eval echo "$as_me:9553: \"$ac_try\"") >&5
9554   (eval $ac_try) 2>&5
9555   ac_status=$?
9556   echo "$as_me:9556: \$? = $ac_status" >&5
9557   (exit $ac_status); }; }; then
9558
9559     if test -f conftest.db; then
9560       echo "$as_me:9560: result: yes" >&5
9561 echo "${ECHO_T}yes" >&6
9562
9563 cat >>confdefs.h <<\_ACEOF
9564 #define HAVE_NEW_DB 1
9565 _ACEOF
9566
9567     else
9568       echo "$as_me:9568: result: no" >&5
9569 echo "${ECHO_T}no" >&6
9570     fi
9571 else
9572   echo "$as_me: program exited with status $ac_status" >&5
9573 echo "$as_me: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9575 ( exit $ac_status )
9576 echo "$as_me:9576: result: no" >&5
9577 echo "${ECHO_T}no" >&6
9578 fi
9579 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9580 fi
9581 fi
9582
9583
9584
9585 if test "$db_type" = db1; then
9586   HAVE_DB1_TRUE=
9587   HAVE_DB1_FALSE='#'
9588 else
9589   HAVE_DB1_TRUE='#'
9590   HAVE_DB1_FALSE=
9591 fi
9592
9593
9594 if test "$db_type" = db3; then
9595   HAVE_DB3_TRUE=
9596   HAVE_DB3_FALSE='#'
9597 else
9598   HAVE_DB3_TRUE='#'
9599   HAVE_DB3_FALSE=
9600 fi
9601
9602
9603 if test "$db_type" = ndbm; then
9604   HAVE_NDBM_TRUE=
9605   HAVE_NDBM_FALSE='#'
9606 else
9607   HAVE_NDBM_TRUE='#'
9608   HAVE_NDBM_FALSE=
9609 fi
9610
9611 DBLIB="$LDFLAGS $DBLIB"
9612
9613
9614
9615
9616
9617 echo "$as_me:9617: checking for inline" >&5
9618 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9619 if test "${ac_cv_c_inline+set}" = set; then
9620   echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622   ac_cv_c_inline=no
9623 for ac_kw in inline __inline__ __inline; do
9624   cat >conftest.$ac_ext <<_ACEOF
9625 #line 9625 "configure"
9626 #include "confdefs.h"
9627 #ifndef __cplusplus
9628 static $ac_kw int static_foo () {return 0; }
9629 $ac_kw int foo () {return 0; }
9630 #endif
9631
9632 _ACEOF
9633 rm -f conftest.$ac_objext
9634 if { (eval echo "$as_me:9634: \"$ac_compile\"") >&5
9635   (eval $ac_compile) 2>&5
9636   ac_status=$?
9637   echo "$as_me:9637: \$? = $ac_status" >&5
9638   (exit $ac_status); } &&
9639          { ac_try='test -s conftest.$ac_objext'
9640   { (eval echo "$as_me:9640: \"$ac_try\"") >&5
9641   (eval $ac_try) 2>&5
9642   ac_status=$?
9643   echo "$as_me:9643: \$? = $ac_status" >&5
9644   (exit $ac_status); }; }; then
9645   ac_cv_c_inline=$ac_kw; break
9646 else
9647   echo "$as_me: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9649 fi
9650 rm -f conftest.$ac_objext conftest.$ac_ext
9651 done
9652
9653 fi
9654 echo "$as_me:9654: result: $ac_cv_c_inline" >&5
9655 echo "${ECHO_T}$ac_cv_c_inline" >&6
9656 case $ac_cv_c_inline in
9657   inline | yes) ;;
9658   no)
9659 cat >>confdefs.h <<\_ACEOF
9660 #define inline
9661 _ACEOF
9662  ;;
9663   *)  cat >>confdefs.h <<_ACEOF
9664 #define inline $ac_cv_c_inline
9665 _ACEOF
9666  ;;
9667 esac
9668
9669 echo "$as_me:9669: checking for an ANSI C-conforming const" >&5
9670 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9671 if test "${ac_cv_c_const+set}" = set; then
9672   echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674   cat >conftest.$ac_ext <<_ACEOF
9675 #line 9675 "configure"
9676 #include "confdefs.h"
9677
9678 #ifdef F77_DUMMY_MAIN
9679 #  ifdef __cplusplus
9680      extern "C"
9681 #  endif
9682    int F77_DUMMY_MAIN() { return 1; }
9683 #endif
9684 int
9685 main ()
9686 {
9687 /* FIXME: Include the comments suggested by Paul. */
9688 #ifndef __cplusplus
9689   /* Ultrix mips cc rejects this.  */
9690   typedef int charset[2];
9691   const charset x;
9692   /* SunOS 4.1.1 cc rejects this.  */
9693   char const *const *ccp;
9694   char **p;
9695   /* NEC SVR4.0.2 mips cc rejects this.  */
9696   struct point {int x, y;};
9697   static struct point const zero = {0,0};
9698   /* AIX XL C 1.02.0.0 rejects this.
9699      It does not let you subtract one const X* pointer from another in
9700      an arm of an if-expression whose if-part is not a constant
9701      expression */
9702   const char *g = "string";
9703   ccp = &g + (g ? g-g : 0);
9704   /* HPUX 7.0 cc rejects these. */
9705   ++ccp;
9706   p = (char**) ccp;
9707   ccp = (char const *const *) p;
9708   { /* SCO 3.2v4 cc rejects this.  */
9709     char *t;
9710     char const *s = 0 ? (char *) 0 : (char const *) 0;
9711
9712     *t++ = 0;
9713   }
9714   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9715     int x[] = {25, 17};
9716     const int *foo = &x[0];
9717     ++foo;
9718   }
9719   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9720     typedef const int *iptr;
9721     iptr p = 0;
9722     ++p;
9723   }
9724   { /* AIX XL C 1.02.0.0 rejects this saying
9725        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9726     struct s { int j; const int *ap[3]; };
9727     struct s *b; b->j = 5;
9728   }
9729   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9730     const int foo = 10;
9731   }
9732 #endif
9733
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext
9739 if { (eval echo "$as_me:9739: \"$ac_compile\"") >&5
9740   (eval $ac_compile) 2>&5
9741   ac_status=$?
9742   echo "$as_me:9742: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -s conftest.$ac_objext'
9745   { (eval echo "$as_me:9745: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:9748: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   ac_cv_c_const=yes
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 ac_cv_c_const=no
9755 fi
9756 rm -f conftest.$ac_objext conftest.$ac_ext
9757 fi
9758 echo "$as_me:9758: result: $ac_cv_c_const" >&5
9759 echo "${ECHO_T}$ac_cv_c_const" >&6
9760 if test $ac_cv_c_const = no; then
9761
9762 cat >>confdefs.h <<\_ACEOF
9763 #define const
9764 _ACEOF
9765
9766 fi
9767
9768 echo "$as_me:9768: checking for size_t" >&5
9769 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9770 if test "${ac_cv_type_size_t+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   cat >conftest.$ac_ext <<_ACEOF
9774 #line 9774 "configure"
9775 #include "confdefs.h"
9776 $ac_includes_default
9777 #ifdef F77_DUMMY_MAIN
9778 #  ifdef __cplusplus
9779      extern "C"
9780 #  endif
9781    int F77_DUMMY_MAIN() { return 1; }
9782 #endif
9783 int
9784 main ()
9785 {
9786 if ((size_t *) 0)
9787   return 0;
9788 if (sizeof (size_t))
9789   return 0;
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext
9795 if { (eval echo "$as_me:9795: \"$ac_compile\"") >&5
9796   (eval $ac_compile) 2>&5
9797   ac_status=$?
9798   echo "$as_me:9798: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -s conftest.$ac_objext'
9801   { (eval echo "$as_me:9801: \"$ac_try\"") >&5
9802   (eval $ac_try) 2>&5
9803   ac_status=$?
9804   echo "$as_me:9804: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806   ac_cv_type_size_t=yes
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 ac_cv_type_size_t=no
9811 fi
9812 rm -f conftest.$ac_objext conftest.$ac_ext
9813 fi
9814 echo "$as_me:9814: result: $ac_cv_type_size_t" >&5
9815 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9816 if test $ac_cv_type_size_t = yes; then
9817   :
9818 else
9819
9820 cat >>confdefs.h <<_ACEOF
9821 #define size_t unsigned
9822 _ACEOF
9823
9824 fi
9825
9826 echo "$as_me:9826: checking for pid_t" >&5
9827 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9828 if test "${ac_cv_type_pid_t+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   cat >conftest.$ac_ext <<_ACEOF
9832 #line 9832 "configure"
9833 #include "confdefs.h"
9834 $ac_includes_default
9835 #ifdef F77_DUMMY_MAIN
9836 #  ifdef __cplusplus
9837      extern "C"
9838 #  endif
9839    int F77_DUMMY_MAIN() { return 1; }
9840 #endif
9841 int
9842 main ()
9843 {
9844 if ((pid_t *) 0)
9845   return 0;
9846 if (sizeof (pid_t))
9847   return 0;
9848   ;
9849   return 0;
9850 }
9851 _ACEOF
9852 rm -f conftest.$ac_objext
9853 if { (eval echo "$as_me:9853: \"$ac_compile\"") >&5
9854   (eval $ac_compile) 2>&5
9855   ac_status=$?
9856   echo "$as_me:9856: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -s conftest.$ac_objext'
9859   { (eval echo "$as_me:9859: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:9862: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_cv_type_pid_t=yes
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9868 ac_cv_type_pid_t=no
9869 fi
9870 rm -f conftest.$ac_objext conftest.$ac_ext
9871 fi
9872 echo "$as_me:9872: result: $ac_cv_type_pid_t" >&5
9873 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9874 if test $ac_cv_type_pid_t = yes; then
9875   :
9876 else
9877
9878 cat >>confdefs.h <<_ACEOF
9879 #define pid_t int
9880 _ACEOF
9881
9882 fi
9883
9884 echo "$as_me:9884: checking for uid_t in sys/types.h" >&5
9885 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9886 if test "${ac_cv_type_uid_t+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   cat >conftest.$ac_ext <<_ACEOF
9890 #line 9890 "configure"
9891 #include "confdefs.h"
9892 #include <sys/types.h>
9893
9894 _ACEOF
9895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9896   egrep "uid_t" >/dev/null 2>&1; then
9897   ac_cv_type_uid_t=yes
9898 else
9899   ac_cv_type_uid_t=no
9900 fi
9901 rm -f conftest*
9902
9903 fi
9904 echo "$as_me:9904: result: $ac_cv_type_uid_t" >&5
9905 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9906 if test $ac_cv_type_uid_t = no; then
9907
9908 cat >>confdefs.h <<\_ACEOF
9909 #define uid_t int
9910 _ACEOF
9911
9912
9913 cat >>confdefs.h <<\_ACEOF
9914 #define gid_t int
9915 _ACEOF
9916
9917 fi
9918
9919
9920 echo "$as_me:9920: checking return type of signal handlers" >&5
9921 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9922 if test "${ac_cv_type_signal+set}" = set; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925   cat >conftest.$ac_ext <<_ACEOF
9926 #line 9926 "configure"
9927 #include "confdefs.h"
9928 #include <sys/types.h>
9929 #include <signal.h>
9930 #ifdef signal
9931 # undef signal
9932 #endif
9933 #ifdef __cplusplus
9934 extern "C" void (*signal (int, void (*)(int)))(int);
9935 #else
9936 void (*signal ()) ();
9937 #endif
9938
9939 #ifdef F77_DUMMY_MAIN
9940 #  ifdef __cplusplus
9941      extern "C"
9942 #  endif
9943    int F77_DUMMY_MAIN() { return 1; }
9944 #endif
9945 int
9946 main ()
9947 {
9948 int i;
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:9954: \"$ac_compile\"") >&5
9955   (eval $ac_compile) 2>&5
9956   ac_status=$?
9957   echo "$as_me:9957: \$? = $ac_status" >&5
9958   (exit $ac_status); } &&
9959          { ac_try='test -s conftest.$ac_objext'
9960   { (eval echo "$as_me:9960: \"$ac_try\"") >&5
9961   (eval $ac_try) 2>&5
9962   ac_status=$?
9963   echo "$as_me:9963: \$? = $ac_status" >&5
9964   (exit $ac_status); }; }; then
9965   ac_cv_type_signal=void
9966 else
9967   echo "$as_me: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9969 ac_cv_type_signal=int
9970 fi
9971 rm -f conftest.$ac_objext conftest.$ac_ext
9972 fi
9973 echo "$as_me:9973: result: $ac_cv_type_signal" >&5
9974 echo "${ECHO_T}$ac_cv_type_signal" >&6
9975
9976 cat >>confdefs.h <<_ACEOF
9977 #define RETSIGTYPE $ac_cv_type_signal
9978 _ACEOF
9979
9980
9981 if test "$ac_cv_type_signal" = "void" ; then
9982
9983 cat >>confdefs.h <<\_ACEOF
9984 #define VOID_RETSIGTYPE 1
9985 _ACEOF
9986
9987 fi
9988
9989
9990
9991
9992 echo "$as_me:9992: checking whether time.h and sys/time.h may both be included" >&5
9993 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9994 if test "${ac_cv_header_time+set}" = set; then
9995   echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997   cat >conftest.$ac_ext <<_ACEOF
9998 #line 9998 "configure"
9999 #include "confdefs.h"
10000 #include <sys/types.h>
10001 #include <sys/time.h>
10002 #include <time.h>
10003
10004 #ifdef F77_DUMMY_MAIN
10005 #  ifdef __cplusplus
10006      extern "C"
10007 #  endif
10008    int F77_DUMMY_MAIN() { return 1; }
10009 #endif
10010 int
10011 main ()
10012 {
10013 if ((struct tm *) 0)
10014 return 0;
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext
10020 if { (eval echo "$as_me:10020: \"$ac_compile\"") >&5
10021   (eval $ac_compile) 2>&5
10022   ac_status=$?
10023   echo "$as_me:10023: \$? = $ac_status" >&5
10024   (exit $ac_status); } &&
10025          { ac_try='test -s conftest.$ac_objext'
10026   { (eval echo "$as_me:10026: \"$ac_try\"") >&5
10027   (eval $ac_try) 2>&5
10028   ac_status=$?
10029   echo "$as_me:10029: \$? = $ac_status" >&5
10030   (exit $ac_status); }; }; then
10031   ac_cv_header_time=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 ac_cv_header_time=no
10036 fi
10037 rm -f conftest.$ac_objext conftest.$ac_ext
10038 fi
10039 echo "$as_me:10039: result: $ac_cv_header_time" >&5
10040 echo "${ECHO_T}$ac_cv_header_time" >&6
10041 if test $ac_cv_header_time = yes; then
10042
10043 cat >>confdefs.h <<\_ACEOF
10044 #define TIME_WITH_SYS_TIME 1
10045 _ACEOF
10046
10047 fi
10048
10049
10050
10051 for ac_header in standards.h
10052 do
10053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10055   echo "$as_me:10055: checking for $ac_header" >&5
10056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 fi
10060 echo "$as_me:10060: result: `eval echo '${'$as_ac_Header'}'`" >&5
10061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10062 else
10063   # Is the header compilable?
10064 echo "$as_me:10064: checking $ac_header usability" >&5
10065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10066 cat >conftest.$ac_ext <<_ACEOF
10067 #line 10067 "configure"
10068 #include "confdefs.h"
10069 $ac_includes_default
10070 #include <$ac_header>
10071 _ACEOF
10072 rm -f conftest.$ac_objext
10073 if { (eval echo "$as_me:10073: \"$ac_compile\"") >&5
10074   (eval $ac_compile) 2>&5
10075   ac_status=$?
10076   echo "$as_me:10076: \$? = $ac_status" >&5
10077   (exit $ac_status); } &&
10078          { ac_try='test -s conftest.$ac_objext'
10079   { (eval echo "$as_me:10079: \"$ac_try\"") >&5
10080   (eval $ac_try) 2>&5
10081   ac_status=$?
10082   echo "$as_me:10082: \$? = $ac_status" >&5
10083   (exit $ac_status); }; }; then
10084   ac_header_compiler=yes
10085 else
10086   echo "$as_me: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10088 ac_header_compiler=no
10089 fi
10090 rm -f conftest.$ac_objext conftest.$ac_ext
10091 echo "$as_me:10091: result: $ac_header_compiler" >&5
10092 echo "${ECHO_T}$ac_header_compiler" >&6
10093
10094 # Is the header present?
10095 echo "$as_me:10095: checking $ac_header presence" >&5
10096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10098 #line 10098 "configure"
10099 #include "confdefs.h"
10100 #include <$ac_header>
10101 _ACEOF
10102 if { (eval echo "$as_me:10102: \"$ac_cpp conftest.$ac_ext\"") >&5
10103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10104   ac_status=$?
10105   egrep -v '^ *\+' conftest.er1 >conftest.err
10106   rm -f conftest.er1
10107   cat conftest.err >&5
10108   echo "$as_me:10108: \$? = $ac_status" >&5
10109   (exit $ac_status); } >/dev/null; then
10110   if test -s conftest.err; then
10111     ac_cpp_err=$ac_c_preproc_warn_flag
10112   else
10113     ac_cpp_err=
10114   fi
10115 else
10116   ac_cpp_err=yes
10117 fi
10118 if test -z "$ac_cpp_err"; then
10119   ac_header_preproc=yes
10120 else
10121   echo "$as_me: failed program was:" >&5
10122   cat conftest.$ac_ext >&5
10123   ac_header_preproc=no
10124 fi
10125 rm -f conftest.err conftest.$ac_ext
10126 echo "$as_me:10126: result: $ac_header_preproc" >&5
10127 echo "${ECHO_T}$ac_header_preproc" >&6
10128
10129 # So?  What about this header?
10130 case $ac_header_compiler:$ac_header_preproc in
10131   yes:no )
10132     { echo "$as_me:10132: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10134     { echo "$as_me:10134: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10136   no:yes )
10137     { echo "$as_me:10137: WARNING: $ac_header: present but cannot be compiled" >&5
10138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10139     { echo "$as_me:10139: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10141     { echo "$as_me:10141: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10143 esac
10144 echo "$as_me:10144: checking for $ac_header" >&5
10145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   eval "$as_ac_Header=$ac_header_preproc"
10150 fi
10151 echo "$as_me:10151: result: `eval echo '${'$as_ac_Header'}'`" >&5
10152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10153
10154 fi
10155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10156   cat >>confdefs.h <<_ACEOF
10157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10158 _ACEOF
10159
10160 fi
10161
10162 done
10163
10164 for i in netinet/ip.h netinet/tcp.h; do
10165
10166 cv=`echo "$i" | sed 'y%./+-%__p_%'`
10167
10168 echo "$as_me:10168: checking for $i" >&5
10169 echo $ECHO_N "checking for $i... $ECHO_C" >&6
10170 if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   cat >conftest.$ac_ext <<_ACEOF
10174 #line 10174 "configure"
10175 #include "confdefs.h"
10176 \
10177 #ifdef HAVE_STANDARDS_H
10178 #include <standards.h>
10179 #endif
10180 #include <$i>
10181
10182 _ACEOF
10183 if { (eval echo "$as_me:10183: \"$ac_cpp conftest.$ac_ext\"") >&5
10184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10185   ac_status=$?
10186   egrep -v '^ *\+' conftest.er1 >conftest.err
10187   rm -f conftest.er1
10188   cat conftest.err >&5
10189   echo "$as_me:10189: \$? = $ac_status" >&5
10190   (exit $ac_status); } >/dev/null; then
10191   if test -s conftest.err; then
10192     ac_cpp_err=$ac_c_preproc_warn_flag
10193   else
10194     ac_cpp_err=
10195   fi
10196 else
10197   ac_cpp_err=yes
10198 fi
10199 if test -z "$ac_cpp_err"; then
10200   eval "ac_cv_header_$cv=yes"
10201 else
10202   echo "$as_me: failed program was:" >&5
10203   cat conftest.$ac_ext >&5
10204   eval "ac_cv_header_$cv=no"
10205 fi
10206 rm -f conftest.err conftest.$ac_ext
10207 fi
10208 echo "$as_me:10208: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
10209 echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
10210 ac_res=`eval echo \\$ac_cv_header_$cv`
10211 if test "$ac_res" = yes; then
10212         ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10213         cat >>confdefs.h <<_ACEOF
10214 #define $ac_tr_hdr 1
10215 _ACEOF
10216
10217 fi
10218 done
10219 if false;then
10220
10221
10222 for ac_header in netinet/ip.h netinet/tcp.h
10223 do
10224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10226   echo "$as_me:10226: checking for $ac_header" >&5
10227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 fi
10231 echo "$as_me:10231: result: `eval echo '${'$as_ac_Header'}'`" >&5
10232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10233 else
10234   # Is the header compilable?
10235 echo "$as_me:10235: checking $ac_header usability" >&5
10236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10237 cat >conftest.$ac_ext <<_ACEOF
10238 #line 10238 "configure"
10239 #include "confdefs.h"
10240 $ac_includes_default
10241 #include <$ac_header>
10242 _ACEOF
10243 rm -f conftest.$ac_objext
10244 if { (eval echo "$as_me:10244: \"$ac_compile\"") >&5
10245   (eval $ac_compile) 2>&5
10246   ac_status=$?
10247   echo "$as_me:10247: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -s conftest.$ac_objext'
10250   { (eval echo "$as_me:10250: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:10253: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_header_compiler=yes
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 cat conftest.$ac_ext >&5
10259 ac_header_compiler=no
10260 fi
10261 rm -f conftest.$ac_objext conftest.$ac_ext
10262 echo "$as_me:10262: result: $ac_header_compiler" >&5
10263 echo "${ECHO_T}$ac_header_compiler" >&6
10264
10265 # Is the header present?
10266 echo "$as_me:10266: checking $ac_header presence" >&5
10267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10268 cat >conftest.$ac_ext <<_ACEOF
10269 #line 10269 "configure"
10270 #include "confdefs.h"
10271 #include <$ac_header>
10272 _ACEOF
10273 if { (eval echo "$as_me:10273: \"$ac_cpp conftest.$ac_ext\"") >&5
10274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10275   ac_status=$?
10276   egrep -v '^ *\+' conftest.er1 >conftest.err
10277   rm -f conftest.er1
10278   cat conftest.err >&5
10279   echo "$as_me:10279: \$? = $ac_status" >&5
10280   (exit $ac_status); } >/dev/null; then
10281   if test -s conftest.err; then
10282     ac_cpp_err=$ac_c_preproc_warn_flag
10283   else
10284     ac_cpp_err=
10285   fi
10286 else
10287   ac_cpp_err=yes
10288 fi
10289 if test -z "$ac_cpp_err"; then
10290   ac_header_preproc=yes
10291 else
10292   echo "$as_me: failed program was:" >&5
10293   cat conftest.$ac_ext >&5
10294   ac_header_preproc=no
10295 fi
10296 rm -f conftest.err conftest.$ac_ext
10297 echo "$as_me:10297: result: $ac_header_preproc" >&5
10298 echo "${ECHO_T}$ac_header_preproc" >&6
10299
10300 # So?  What about this header?
10301 case $ac_header_compiler:$ac_header_preproc in
10302   yes:no )
10303     { echo "$as_me:10303: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10305     { echo "$as_me:10305: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10307   no:yes )
10308     { echo "$as_me:10308: WARNING: $ac_header: present but cannot be compiled" >&5
10309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10310     { echo "$as_me:10310: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10312     { echo "$as_me:10312: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10314 esac
10315 echo "$as_me:10315: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   eval "$as_ac_Header=$ac_header_preproc"
10321 fi
10322 echo "$as_me:10322: result: `eval echo '${'$as_ac_Header'}'`" >&5
10323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10324
10325 fi
10326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10327   cat >>confdefs.h <<_ACEOF
10328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10329 _ACEOF
10330
10331 fi
10332
10333 done
10334
10335 fi
10336
10337
10338
10339
10340 for ac_func in getlogin setlogin
10341 do
10342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10343 echo "$as_me:10343: checking for $ac_func" >&5
10344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10345 if eval "test \"\${$as_ac_var+set}\" = set"; then
10346   echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348   cat >conftest.$ac_ext <<_ACEOF
10349 #line 10349 "configure"
10350 #include "confdefs.h"
10351 /* System header to define __stub macros and hopefully few prototypes,
10352     which can conflict with char $ac_func (); below.  */
10353 #include <assert.h>
10354 /* Override any gcc2 internal prototype to avoid an error.  */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 /* We use char because int might match the return type of a gcc2
10359    builtin and then its argument prototype would still apply.  */
10360 char $ac_func ();
10361 char (*f) ();
10362
10363 #ifdef F77_DUMMY_MAIN
10364 #  ifdef __cplusplus
10365      extern "C"
10366 #  endif
10367    int F77_DUMMY_MAIN() { return 1; }
10368 #endif
10369 int
10370 main ()
10371 {
10372 /* The GNU C library defines this for functions which it implements
10373     to always fail with ENOSYS.  Some functions are actually named
10374     something starting with __ and the normal name is an alias.  */
10375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10376 choke me
10377 #else
10378 f = $ac_func;
10379 #endif
10380
10381   ;
10382   return 0;
10383 }
10384 _ACEOF
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (eval echo "$as_me:10386: \"$ac_link\"") >&5
10387   (eval $ac_link) 2>&5
10388   ac_status=$?
10389   echo "$as_me:10389: \$? = $ac_status" >&5
10390   (exit $ac_status); } &&
10391          { ac_try='test -s conftest$ac_exeext'
10392   { (eval echo "$as_me:10392: \"$ac_try\"") >&5
10393   (eval $ac_try) 2>&5
10394   ac_status=$?
10395   echo "$as_me:10395: \$? = $ac_status" >&5
10396   (exit $ac_status); }; }; then
10397   eval "$as_ac_var=yes"
10398 else
10399   echo "$as_me: failed program was:" >&5
10400 cat conftest.$ac_ext >&5
10401 eval "$as_ac_var=no"
10402 fi
10403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10404 fi
10405 echo "$as_me:10405: result: `eval echo '${'$as_ac_var'}'`" >&5
10406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10407 if test `eval echo '${'$as_ac_var'}'` = yes; then
10408   cat >>confdefs.h <<_ACEOF
10409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10410 _ACEOF
10411
10412 fi
10413 done
10414
10415 if test "$ac_cv_func_getlogin" = yes; then
10416 echo "$as_me:10416: checking if getlogin is posix" >&5
10417 echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
10418 if test "${ac_cv_func_getlogin_posix+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421
10422 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
10423         ac_cv_func_getlogin_posix=no
10424 else
10425         ac_cv_func_getlogin_posix=yes
10426 fi
10427
10428 fi
10429 echo "$as_me:10429: result: $ac_cv_func_getlogin_posix" >&5
10430 echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
10431 if test "$ac_cv_func_getlogin_posix" = yes; then
10432
10433 cat >>confdefs.h <<\_ACEOF
10434 #define POSIX_GETLOGIN 1
10435 _ACEOF
10436
10437 fi
10438 fi
10439
10440
10441 echo "$as_me:10441: checking if realloc if broken" >&5
10442 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
10443 if test "${ac_cv_func_realloc_broken+set}" = set; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446
10447 ac_cv_func_realloc_broken=no
10448 if test "$cross_compiling" = yes; then
10449   :
10450 else
10451   cat >conftest.$ac_ext <<_ACEOF
10452 #line 10452 "configure"
10453 #include "confdefs.h"
10454
10455 #include <stddef.h>
10456 #include <stdlib.h>
10457
10458 int main()
10459 {
10460         return realloc(NULL, 17) == NULL;
10461 }
10462
10463 _ACEOF
10464 rm -f conftest$ac_exeext
10465 if { (eval echo "$as_me:10465: \"$ac_link\"") >&5
10466   (eval $ac_link) 2>&5
10467   ac_status=$?
10468   echo "$as_me:10468: \$? = $ac_status" >&5
10469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10470   { (eval echo "$as_me:10470: \"$ac_try\"") >&5
10471   (eval $ac_try) 2>&5
10472   ac_status=$?
10473   echo "$as_me:10473: \$? = $ac_status" >&5
10474   (exit $ac_status); }; }; then
10475   :
10476 else
10477   echo "$as_me: program exited with status $ac_status" >&5
10478 echo "$as_me: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 ( exit $ac_status )
10481 ac_cv_func_realloc_broken=yes
10482 fi
10483 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10484 fi
10485
10486 fi
10487 echo "$as_me:10487: result: $ac_cv_func_realloc_broken" >&5
10488 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
10489 if test "$ac_cv_func_realloc_broken" = yes ; then
10490
10491 cat >>confdefs.h <<\_ACEOF
10492 #define BROKEN_REALLOC 1
10493 _ACEOF
10494
10495 fi
10496
10497
10498
10499
10500
10501
10502
10503 DIR_roken=roken
10504 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
10505 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520 WFLAGS_NOUNUSED=""
10521 WFLAGS_NOIMPLICITINT=""
10522 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
10523   # -Wno-implicit-int for broken X11 headers
10524   # leave these out for now:
10525   #   -Wcast-align doesn't work well on alpha osf/1
10526   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
10527   #   -Wmissing-declarations -Wnested-externs
10528   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
10529   WFLAGS_NOUNUSED="-Wno-unused"
10530   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
10531 fi
10532
10533
10534
10535
10536
10537
10538
10539
10540 cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
10541 echo "$as_me:10541: checking for ssize_t" >&5
10542 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10543 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546   cat >conftest.$ac_ext <<_ACEOF
10547 #line 10547 "configure"
10548 #include "confdefs.h"
10549 #include <sys/types.h>
10550 #if STDC_HEADERS
10551 #include <stdlib.h>
10552 #include <stddef.h>
10553 #endif
10554 #include <unistd.h>
10555 #ifdef F77_DUMMY_MAIN
10556 #  ifdef __cplusplus
10557      extern "C"
10558 #  endif
10559    int F77_DUMMY_MAIN() { return 1; }
10560 #endif
10561 int
10562 main ()
10563 {
10564 ssize_t foo;
10565   ;
10566   return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:10570: \"$ac_compile\"") >&5
10571   (eval $ac_compile) 2>&5
10572   ac_status=$?
10573   echo "$as_me:10573: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -s conftest.$ac_objext'
10576   { (eval echo "$as_me:10576: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:10579: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }; then
10581   eval "ac_cv_type_$cv=yes"
10582 else
10583   echo "$as_me: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 eval "ac_cv_type_$cv=no"
10586 fi
10587 rm -f conftest.$ac_objext conftest.$ac_ext
10588 fi
10589 ac_foo=`eval echo \\$ac_cv_type_$cv`
10590 echo "$as_me:10590: result: $ac_foo" >&5
10591 echo "${ECHO_T}$ac_foo" >&6
10592 if test "$ac_foo" = yes; then
10593   ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10594 if false; then
10595         echo "$as_me:10595: checking for ssize_t" >&5
10596 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10597 if test "${ac_cv_type_ssize_t+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600   cat >conftest.$ac_ext <<_ACEOF
10601 #line 10601 "configure"
10602 #include "confdefs.h"
10603 $ac_includes_default
10604 #ifdef F77_DUMMY_MAIN
10605 #  ifdef __cplusplus
10606      extern "C"
10607 #  endif
10608    int F77_DUMMY_MAIN() { return 1; }
10609 #endif
10610 int
10611 main ()
10612 {
10613 if ((ssize_t *) 0)
10614   return 0;
10615 if (sizeof (ssize_t))
10616   return 0;
10617   ;
10618   return 0;
10619 }
10620 _ACEOF
10621 rm -f conftest.$ac_objext
10622 if { (eval echo "$as_me:10622: \"$ac_compile\"") >&5
10623   (eval $ac_compile) 2>&5
10624   ac_status=$?
10625   echo "$as_me:10625: \$? = $ac_status" >&5
10626   (exit $ac_status); } &&
10627          { ac_try='test -s conftest.$ac_objext'
10628   { (eval echo "$as_me:10628: \"$ac_try\"") >&5
10629   (eval $ac_try) 2>&5
10630   ac_status=$?
10631   echo "$as_me:10631: \$? = $ac_status" >&5
10632   (exit $ac_status); }; }; then
10633   ac_cv_type_ssize_t=yes
10634 else
10635   echo "$as_me: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10637 ac_cv_type_ssize_t=no
10638 fi
10639 rm -f conftest.$ac_objext conftest.$ac_ext
10640 fi
10641 echo "$as_me:10641: result: $ac_cv_type_ssize_t" >&5
10642 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10643 if test $ac_cv_type_ssize_t = yes; then
10644
10645 cat >>confdefs.h <<_ACEOF
10646 #define HAVE_SSIZE_T 1
10647 _ACEOF
10648
10649
10650 fi
10651
10652 fi
10653
10654 cat >>confdefs.h <<_ACEOF
10655 #define $ac_tr_hdr 1
10656 _ACEOF
10657
10658 fi
10659
10660
10661
10662
10663
10664 cv=`echo "long long" | sed 'y%./+- %__p__%'`
10665 echo "$as_me:10665: checking for long long" >&5
10666 echo $ECHO_N "checking for long long... $ECHO_C" >&6
10667 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10668   echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670   cat >conftest.$ac_ext <<_ACEOF
10671 #line 10671 "configure"
10672 #include "confdefs.h"
10673 #include <sys/types.h>
10674 #if STDC_HEADERS
10675 #include <stdlib.h>
10676 #include <stddef.h>
10677 #endif
10678
10679 #ifdef F77_DUMMY_MAIN
10680 #  ifdef __cplusplus
10681      extern "C"
10682 #  endif
10683    int F77_DUMMY_MAIN() { return 1; }
10684 #endif
10685 int
10686 main ()
10687 {
10688 long long foo;
10689   ;
10690   return 0;
10691 }
10692 _ACEOF
10693 rm -f conftest.$ac_objext
10694 if { (eval echo "$as_me:10694: \"$ac_compile\"") >&5
10695   (eval $ac_compile) 2>&5
10696   ac_status=$?
10697   echo "$as_me:10697: \$? = $ac_status" >&5
10698   (exit $ac_status); } &&
10699          { ac_try='test -s conftest.$ac_objext'
10700   { (eval echo "$as_me:10700: \"$ac_try\"") >&5
10701   (eval $ac_try) 2>&5
10702   ac_status=$?
10703   echo "$as_me:10703: \$? = $ac_status" >&5
10704   (exit $ac_status); }; }; then
10705   eval "ac_cv_type_$cv=yes"
10706 else
10707   echo "$as_me: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 eval "ac_cv_type_$cv=no"
10710 fi
10711 rm -f conftest.$ac_objext conftest.$ac_ext
10712 fi
10713 ac_foo=`eval echo \\$ac_cv_type_$cv`
10714 echo "$as_me:10714: result: $ac_foo" >&5
10715 echo "${ECHO_T}$ac_foo" >&6
10716 if test "$ac_foo" = yes; then
10717   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10718 if false; then
10719         echo "$as_me:10719: checking for long long" >&5
10720 echo $ECHO_N "checking for long long... $ECHO_C" >&6
10721 if test "${ac_cv_type_long_long+set}" = set; then
10722   echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724   cat >conftest.$ac_ext <<_ACEOF
10725 #line 10725 "configure"
10726 #include "confdefs.h"
10727 $ac_includes_default
10728 #ifdef F77_DUMMY_MAIN
10729 #  ifdef __cplusplus
10730      extern "C"
10731 #  endif
10732    int F77_DUMMY_MAIN() { return 1; }
10733 #endif
10734 int
10735 main ()
10736 {
10737 if ((long long *) 0)
10738   return 0;
10739 if (sizeof (long long))
10740   return 0;
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (eval echo "$as_me:10746: \"$ac_compile\"") >&5
10747   (eval $ac_compile) 2>&5
10748   ac_status=$?
10749   echo "$as_me:10749: \$? = $ac_status" >&5
10750   (exit $ac_status); } &&
10751          { ac_try='test -s conftest.$ac_objext'
10752   { (eval echo "$as_me:10752: \"$ac_try\"") >&5
10753   (eval $ac_try) 2>&5
10754   ac_status=$?
10755   echo "$as_me:10755: \$? = $ac_status" >&5
10756   (exit $ac_status); }; }; then
10757   ac_cv_type_long_long=yes
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10761 ac_cv_type_long_long=no
10762 fi
10763 rm -f conftest.$ac_objext conftest.$ac_ext
10764 fi
10765 echo "$as_me:10765: result: $ac_cv_type_long_long" >&5
10766 echo "${ECHO_T}$ac_cv_type_long_long" >&6
10767 if test $ac_cv_type_long_long = yes; then
10768
10769 cat >>confdefs.h <<_ACEOF
10770 #define HAVE_LONG_LONG 1
10771 _ACEOF
10772
10773
10774 fi
10775
10776 fi
10777
10778 cat >>confdefs.h <<_ACEOF
10779 #define $ac_tr_hdr 1
10780 _ACEOF
10781
10782 fi
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834 for ac_header in \
10835         arpa/inet.h                             \
10836         arpa/nameser.h                          \
10837         config.h                                \
10838         crypt.h                                 \
10839         dirent.h                                \
10840         errno.h                                 \
10841         err.h                                   \
10842         fcntl.h                                 \
10843         grp.h                                   \
10844         ifaddrs.h                               \
10845         net/if.h                                \
10846         netdb.h                                 \
10847         netinet/in.h                            \
10848         netinet/in6.h                           \
10849         netinet/in_systm.h                      \
10850         netinet6/in6.h                          \
10851         netinet6/in6_var.h                      \
10852         paths.h                                 \
10853         pwd.h                                   \
10854         resolv.h                                \
10855         rpcsvc/ypclnt.h                         \
10856         shadow.h                                \
10857         sys/bswap.h                             \
10858         sys/ioctl.h                             \
10859         sys/param.h                             \
10860         sys/proc.h                              \
10861         sys/resource.h                          \
10862         sys/socket.h                            \
10863         sys/sockio.h                            \
10864         sys/stat.h                              \
10865         sys/sysctl.h                            \
10866         sys/time.h                              \
10867         sys/tty.h                               \
10868         sys/types.h                             \
10869         sys/uio.h                               \
10870         sys/utsname.h                           \
10871         sys/wait.h                              \
10872         syslog.h                                \
10873         termios.h                               \
10874         unistd.h                                \
10875         userconf.h                              \
10876         usersec.h                               \
10877         util.h                                  \
10878         vis.h                                   \
10879
10880 do
10881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10883   echo "$as_me:10883: checking for $ac_header" >&5
10884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10886   echo $ECHO_N "(cached) $ECHO_C" >&6
10887 fi
10888 echo "$as_me:10888: result: `eval echo '${'$as_ac_Header'}'`" >&5
10889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10890 else
10891   # Is the header compilable?
10892 echo "$as_me:10892: checking $ac_header usability" >&5
10893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10894 cat >conftest.$ac_ext <<_ACEOF
10895 #line 10895 "configure"
10896 #include "confdefs.h"
10897 $ac_includes_default
10898 #include <$ac_header>
10899 _ACEOF
10900 rm -f conftest.$ac_objext
10901 if { (eval echo "$as_me:10901: \"$ac_compile\"") >&5
10902   (eval $ac_compile) 2>&5
10903   ac_status=$?
10904   echo "$as_me:10904: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -s conftest.$ac_objext'
10907   { (eval echo "$as_me:10907: \"$ac_try\"") >&5
10908   (eval $ac_try) 2>&5
10909   ac_status=$?
10910   echo "$as_me:10910: \$? = $ac_status" >&5
10911   (exit $ac_status); }; }; then
10912   ac_header_compiler=yes
10913 else
10914   echo "$as_me: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10916 ac_header_compiler=no
10917 fi
10918 rm -f conftest.$ac_objext conftest.$ac_ext
10919 echo "$as_me:10919: result: $ac_header_compiler" >&5
10920 echo "${ECHO_T}$ac_header_compiler" >&6
10921
10922 # Is the header present?
10923 echo "$as_me:10923: checking $ac_header presence" >&5
10924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10925 cat >conftest.$ac_ext <<_ACEOF
10926 #line 10926 "configure"
10927 #include "confdefs.h"
10928 #include <$ac_header>
10929 _ACEOF
10930 if { (eval echo "$as_me:10930: \"$ac_cpp conftest.$ac_ext\"") >&5
10931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10932   ac_status=$?
10933   egrep -v '^ *\+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   echo "$as_me:10936: \$? = $ac_status" >&5
10937   (exit $ac_status); } >/dev/null; then
10938   if test -s conftest.err; then
10939     ac_cpp_err=$ac_c_preproc_warn_flag
10940   else
10941     ac_cpp_err=
10942   fi
10943 else
10944   ac_cpp_err=yes
10945 fi
10946 if test -z "$ac_cpp_err"; then
10947   ac_header_preproc=yes
10948 else
10949   echo "$as_me: failed program was:" >&5
10950   cat conftest.$ac_ext >&5
10951   ac_header_preproc=no
10952 fi
10953 rm -f conftest.err conftest.$ac_ext
10954 echo "$as_me:10954: result: $ac_header_preproc" >&5
10955 echo "${ECHO_T}$ac_header_preproc" >&6
10956
10957 # So?  What about this header?
10958 case $ac_header_compiler:$ac_header_preproc in
10959   yes:no )
10960     { echo "$as_me:10960: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10962     { echo "$as_me:10962: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10964   no:yes )
10965     { echo "$as_me:10965: WARNING: $ac_header: present but cannot be compiled" >&5
10966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10967     { echo "$as_me:10967: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10969     { echo "$as_me:10969: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10971 esac
10972 echo "$as_me:10972: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   eval "$as_ac_Header=$ac_header_preproc"
10978 fi
10979 echo "$as_me:10979: result: `eval echo '${'$as_ac_Header'}'`" >&5
10980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10981
10982 fi
10983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984   cat >>confdefs.h <<_ACEOF
10985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10986 _ACEOF
10987
10988 fi
10989
10990 done
10991
10992
10993
10994
10995
10996
10997 if test "$ac_cv_header_err_h" = yes; then
10998   have_err_h_TRUE=
10999   have_err_h_FALSE='#'
11000 else
11001   have_err_h_TRUE='#'
11002   have_err_h_FALSE=
11003 fi
11004
11005
11006
11007 if test "$ac_cv_header_fnmatch_h" = yes; then
11008   have_fnmatch_h_TRUE=
11009   have_fnmatch_h_FALSE='#'
11010 else
11011   have_fnmatch_h_TRUE='#'
11012   have_fnmatch_h_FALSE=
11013 fi
11014
11015
11016
11017 if test "$ac_cv_header_ifaddrs_h" = yes; then
11018   have_ifaddrs_h_TRUE=
11019   have_ifaddrs_h_FALSE='#'
11020 else
11021   have_ifaddrs_h_TRUE='#'
11022   have_ifaddrs_h_FALSE=
11023 fi
11024
11025
11026
11027 if test "$ac_cv_header_vis_h" = yes; then
11028   have_vis_h_TRUE=
11029   have_vis_h_FALSE='#'
11030 else
11031   have_vis_h_TRUE='#'
11032   have_vis_h_FALSE=
11033 fi
11034
11035
11036
11037
11038
11039
11040
11041 echo "$as_me:11041: checking for socket" >&5
11042 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11043 if test "${ac_cv_funclib_socket+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046
11047 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
11048         ac_save_LIBS="$LIBS"
11049         for ac_lib in "" socket; do
11050                 case "$ac_lib" in
11051                 "") ;;
11052                 yes) ac_lib="" ;;
11053                 no) continue ;;
11054                 -l*) ;;
11055                 *) ac_lib="-l$ac_lib" ;;
11056                 esac
11057                 LIBS=" $ac_lib  $ac_save_LIBS"
11058                 cat >conftest.$ac_ext <<_ACEOF
11059 #line 11059 "configure"
11060 #include "confdefs.h"
11061
11062 #ifdef F77_DUMMY_MAIN
11063 #  ifdef __cplusplus
11064      extern "C"
11065 #  endif
11066    int F77_DUMMY_MAIN() { return 1; }
11067 #endif
11068 int
11069 main ()
11070 {
11071 socket()
11072   ;
11073   return 0;
11074 }
11075 _ACEOF
11076 rm -f conftest.$ac_objext conftest$ac_exeext
11077 if { (eval echo "$as_me:11077: \"$ac_link\"") >&5
11078   (eval $ac_link) 2>&5
11079   ac_status=$?
11080   echo "$as_me:11080: \$? = $ac_status" >&5
11081   (exit $ac_status); } &&
11082          { ac_try='test -s conftest$ac_exeext'
11083   { (eval echo "$as_me:11083: \"$ac_try\"") >&5
11084   (eval $ac_try) 2>&5
11085   ac_status=$?
11086   echo "$as_me:11086: \$? = $ac_status" >&5
11087   (exit $ac_status); }; }; then
11088   eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
11089 else
11090   echo "$as_me: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11092 fi
11093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11094         done
11095         eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
11096         LIBS="$ac_save_LIBS"
11097 fi
11098
11099 fi
11100
11101
11102 eval "ac_res=\$ac_cv_funclib_socket"
11103
11104 if false; then
11105
11106 for ac_func in socket
11107 do
11108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11109 echo "$as_me:11109: checking for $ac_func" >&5
11110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11111 if eval "test \"\${$as_ac_var+set}\" = set"; then
11112   echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11114   cat >conftest.$ac_ext <<_ACEOF
11115 #line 11115 "configure"
11116 #include "confdefs.h"
11117 /* System header to define __stub macros and hopefully few prototypes,
11118     which can conflict with char $ac_func (); below.  */
11119 #include <assert.h>
11120 /* Override any gcc2 internal prototype to avoid an error.  */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 /* We use char because int might match the return type of a gcc2
11125    builtin and then its argument prototype would still apply.  */
11126 char $ac_func ();
11127 char (*f) ();
11128
11129 #ifdef F77_DUMMY_MAIN
11130 #  ifdef __cplusplus
11131      extern "C"
11132 #  endif
11133    int F77_DUMMY_MAIN() { return 1; }
11134 #endif
11135 int
11136 main ()
11137 {
11138 /* The GNU C library defines this for functions which it implements
11139     to always fail with ENOSYS.  Some functions are actually named
11140     something starting with __ and the normal name is an alias.  */
11141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11142 choke me
11143 #else
11144 f = $ac_func;
11145 #endif
11146
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (eval echo "$as_me:11152: \"$ac_link\"") >&5
11153   (eval $ac_link) 2>&5
11154   ac_status=$?
11155   echo "$as_me:11155: \$? = $ac_status" >&5
11156   (exit $ac_status); } &&
11157          { ac_try='test -s conftest$ac_exeext'
11158   { (eval echo "$as_me:11158: \"$ac_try\"") >&5
11159   (eval $ac_try) 2>&5
11160   ac_status=$?
11161   echo "$as_me:11161: \$? = $ac_status" >&5
11162   (exit $ac_status); }; }; then
11163   eval "$as_ac_var=yes"
11164 else
11165   echo "$as_me: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11167 eval "$as_ac_var=no"
11168 fi
11169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11170 fi
11171 echo "$as_me:11171: result: `eval echo '${'$as_ac_var'}'`" >&5
11172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11173 if test `eval echo '${'$as_ac_var'}'` = yes; then
11174   cat >>confdefs.h <<_ACEOF
11175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11176 _ACEOF
11177
11178 fi
11179 done
11180
11181 fi
11182 # socket
11183 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11184 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11185 eval "LIB_socket=$ac_res"
11186
11187 case "$ac_res" in
11188         yes)
11189         eval "ac_cv_func_socket=yes"
11190         eval "LIB_socket="
11191         cat >>confdefs.h <<_ACEOF
11192 #define $ac_tr_func 1
11193 _ACEOF
11194
11195         echo "$as_me:11195: result: yes" >&5
11196 echo "${ECHO_T}yes" >&6
11197         ;;
11198         no)
11199         eval "ac_cv_func_socket=no"
11200         eval "LIB_socket="
11201         echo "$as_me:11201: result: no" >&5
11202 echo "${ECHO_T}no" >&6
11203         ;;
11204         *)
11205         eval "ac_cv_func_socket=yes"
11206         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11207         cat >>confdefs.h <<_ACEOF
11208 #define $ac_tr_func 1
11209 _ACEOF
11210
11211         cat >>confdefs.h <<_ACEOF
11212 #define $ac_tr_lib 1
11213 _ACEOF
11214
11215         echo "$as_me:11215: result: yes, in $ac_res" >&5
11216 echo "${ECHO_T}yes, in $ac_res" >&6
11217         ;;
11218 esac
11219
11220
11221 if test -n "$LIB_socket"; then
11222         LIBS="$LIB_socket $LIBS"
11223 fi
11224
11225
11226
11227
11228
11229 echo "$as_me:11229: checking for gethostbyname" >&5
11230 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11231 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
11232   echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234
11235 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
11236         ac_save_LIBS="$LIBS"
11237         for ac_lib in "" nsl; do
11238                 case "$ac_lib" in
11239                 "") ;;
11240                 yes) ac_lib="" ;;
11241                 no) continue ;;
11242                 -l*) ;;
11243                 *) ac_lib="-l$ac_lib" ;;
11244                 esac
11245                 LIBS=" $ac_lib  $ac_save_LIBS"
11246                 cat >conftest.$ac_ext <<_ACEOF
11247 #line 11247 "configure"
11248 #include "confdefs.h"
11249
11250 #ifdef F77_DUMMY_MAIN
11251 #  ifdef __cplusplus
11252      extern "C"
11253 #  endif
11254    int F77_DUMMY_MAIN() { return 1; }
11255 #endif
11256 int
11257 main ()
11258 {
11259 gethostbyname()
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 rm -f conftest.$ac_objext conftest$ac_exeext
11265 if { (eval echo "$as_me:11265: \"$ac_link\"") >&5
11266   (eval $ac_link) 2>&5
11267   ac_status=$?
11268   echo "$as_me:11268: \$? = $ac_status" >&5
11269   (exit $ac_status); } &&
11270          { ac_try='test -s conftest$ac_exeext'
11271   { (eval echo "$as_me:11271: \"$ac_try\"") >&5
11272   (eval $ac_try) 2>&5
11273   ac_status=$?
11274   echo "$as_me:11274: \$? = $ac_status" >&5
11275   (exit $ac_status); }; }; then
11276   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
11277 else
11278   echo "$as_me: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 fi
11281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11282         done
11283         eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
11284         LIBS="$ac_save_LIBS"
11285 fi
11286
11287 fi
11288
11289
11290 eval "ac_res=\$ac_cv_funclib_gethostbyname"
11291
11292 if false; then
11293
11294 for ac_func in gethostbyname
11295 do
11296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11297 echo "$as_me:11297: checking for $ac_func" >&5
11298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11299 if eval "test \"\${$as_ac_var+set}\" = set"; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   cat >conftest.$ac_ext <<_ACEOF
11303 #line 11303 "configure"
11304 #include "confdefs.h"
11305 /* System header to define __stub macros and hopefully few prototypes,
11306     which can conflict with char $ac_func (); below.  */
11307 #include <assert.h>
11308 /* Override any gcc2 internal prototype to avoid an error.  */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 /* We use char because int might match the return type of a gcc2
11313    builtin and then its argument prototype would still apply.  */
11314 char $ac_func ();
11315 char (*f) ();
11316
11317 #ifdef F77_DUMMY_MAIN
11318 #  ifdef __cplusplus
11319      extern "C"
11320 #  endif
11321    int F77_DUMMY_MAIN() { return 1; }
11322 #endif
11323 int
11324 main ()
11325 {
11326 /* The GNU C library defines this for functions which it implements
11327     to always fail with ENOSYS.  Some functions are actually named
11328     something starting with __ and the normal name is an alias.  */
11329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11330 choke me
11331 #else
11332 f = $ac_func;
11333 #endif
11334
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (eval echo "$as_me:11340: \"$ac_link\"") >&5
11341   (eval $ac_link) 2>&5
11342   ac_status=$?
11343   echo "$as_me:11343: \$? = $ac_status" >&5
11344   (exit $ac_status); } &&
11345          { ac_try='test -s conftest$ac_exeext'
11346   { (eval echo "$as_me:11346: \"$ac_try\"") >&5
11347   (eval $ac_try) 2>&5
11348   ac_status=$?
11349   echo "$as_me:11349: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   eval "$as_ac_var=yes"
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11355 eval "$as_ac_var=no"
11356 fi
11357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11358 fi
11359 echo "$as_me:11359: result: `eval echo '${'$as_ac_var'}'`" >&5
11360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11361 if test `eval echo '${'$as_ac_var'}'` = yes; then
11362   cat >>confdefs.h <<_ACEOF
11363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11364 _ACEOF
11365
11366 fi
11367 done
11368
11369 fi
11370 # gethostbyname
11371 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11372 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11373 eval "LIB_gethostbyname=$ac_res"
11374
11375 case "$ac_res" in
11376         yes)
11377         eval "ac_cv_func_gethostbyname=yes"
11378         eval "LIB_gethostbyname="
11379         cat >>confdefs.h <<_ACEOF
11380 #define $ac_tr_func 1
11381 _ACEOF
11382
11383         echo "$as_me:11383: result: yes" >&5
11384 echo "${ECHO_T}yes" >&6
11385         ;;
11386         no)
11387         eval "ac_cv_func_gethostbyname=no"
11388         eval "LIB_gethostbyname="
11389         echo "$as_me:11389: result: no" >&5
11390 echo "${ECHO_T}no" >&6
11391         ;;
11392         *)
11393         eval "ac_cv_func_gethostbyname=yes"
11394         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11395         cat >>confdefs.h <<_ACEOF
11396 #define $ac_tr_func 1
11397 _ACEOF
11398
11399         cat >>confdefs.h <<_ACEOF
11400 #define $ac_tr_lib 1
11401 _ACEOF
11402
11403         echo "$as_me:11403: result: yes, in $ac_res" >&5
11404 echo "${ECHO_T}yes, in $ac_res" >&6
11405         ;;
11406 esac
11407
11408
11409 if test -n "$LIB_gethostbyname"; then
11410         LIBS="$LIB_gethostbyname $LIBS"
11411 fi
11412
11413
11414
11415
11416
11417 echo "$as_me:11417: checking for syslog" >&5
11418 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11419 if test "${ac_cv_funclib_syslog+set}" = set; then
11420   echo $ECHO_N "(cached) $ECHO_C" >&6
11421 else
11422
11423 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
11424         ac_save_LIBS="$LIBS"
11425         for ac_lib in "" syslog; do
11426                 case "$ac_lib" in
11427                 "") ;;
11428                 yes) ac_lib="" ;;
11429                 no) continue ;;
11430                 -l*) ;;
11431                 *) ac_lib="-l$ac_lib" ;;
11432                 esac
11433                 LIBS=" $ac_lib  $ac_save_LIBS"
11434                 cat >conftest.$ac_ext <<_ACEOF
11435 #line 11435 "configure"
11436 #include "confdefs.h"
11437
11438 #ifdef F77_DUMMY_MAIN
11439 #  ifdef __cplusplus
11440      extern "C"
11441 #  endif
11442    int F77_DUMMY_MAIN() { return 1; }
11443 #endif
11444 int
11445 main ()
11446 {
11447 syslog()
11448   ;
11449   return 0;
11450 }
11451 _ACEOF
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (eval echo "$as_me:11453: \"$ac_link\"") >&5
11454   (eval $ac_link) 2>&5
11455   ac_status=$?
11456   echo "$as_me:11456: \$? = $ac_status" >&5
11457   (exit $ac_status); } &&
11458          { ac_try='test -s conftest$ac_exeext'
11459   { (eval echo "$as_me:11459: \"$ac_try\"") >&5
11460   (eval $ac_try) 2>&5
11461   ac_status=$?
11462   echo "$as_me:11462: \$? = $ac_status" >&5
11463   (exit $ac_status); }; }; then
11464   eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
11465 else
11466   echo "$as_me: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11468 fi
11469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11470         done
11471         eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
11472         LIBS="$ac_save_LIBS"
11473 fi
11474
11475 fi
11476
11477
11478 eval "ac_res=\$ac_cv_funclib_syslog"
11479
11480 if false; then
11481
11482 for ac_func in syslog
11483 do
11484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11485 echo "$as_me:11485: checking for $ac_func" >&5
11486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11487 if eval "test \"\${$as_ac_var+set}\" = set"; then
11488   echo $ECHO_N "(cached) $ECHO_C" >&6
11489 else
11490   cat >conftest.$ac_ext <<_ACEOF
11491 #line 11491 "configure"
11492 #include "confdefs.h"
11493 /* System header to define __stub macros and hopefully few prototypes,
11494     which can conflict with char $ac_func (); below.  */
11495 #include <assert.h>
11496 /* Override any gcc2 internal prototype to avoid an error.  */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 /* We use char because int might match the return type of a gcc2
11501    builtin and then its argument prototype would still apply.  */
11502 char $ac_func ();
11503 char (*f) ();
11504
11505 #ifdef F77_DUMMY_MAIN
11506 #  ifdef __cplusplus
11507      extern "C"
11508 #  endif
11509    int F77_DUMMY_MAIN() { return 1; }
11510 #endif
11511 int
11512 main ()
11513 {
11514 /* The GNU C library defines this for functions which it implements
11515     to always fail with ENOSYS.  Some functions are actually named
11516     something starting with __ and the normal name is an alias.  */
11517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11518 choke me
11519 #else
11520 f = $ac_func;
11521 #endif
11522
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528 if { (eval echo "$as_me:11528: \"$ac_link\"") >&5
11529   (eval $ac_link) 2>&5
11530   ac_status=$?
11531   echo "$as_me:11531: \$? = $ac_status" >&5
11532   (exit $ac_status); } &&
11533          { ac_try='test -s conftest$ac_exeext'
11534   { (eval echo "$as_me:11534: \"$ac_try\"") >&5
11535   (eval $ac_try) 2>&5
11536   ac_status=$?
11537   echo "$as_me:11537: \$? = $ac_status" >&5
11538   (exit $ac_status); }; }; then
11539   eval "$as_ac_var=yes"
11540 else
11541   echo "$as_me: failed program was:" >&5
11542 cat conftest.$ac_ext >&5
11543 eval "$as_ac_var=no"
11544 fi
11545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11546 fi
11547 echo "$as_me:11547: result: `eval echo '${'$as_ac_var'}'`" >&5
11548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11549 if test `eval echo '${'$as_ac_var'}'` = yes; then
11550   cat >>confdefs.h <<_ACEOF
11551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11552 _ACEOF
11553
11554 fi
11555 done
11556
11557 fi
11558 # syslog
11559 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11560 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11561 eval "LIB_syslog=$ac_res"
11562
11563 case "$ac_res" in
11564         yes)
11565         eval "ac_cv_func_syslog=yes"
11566         eval "LIB_syslog="
11567         cat >>confdefs.h <<_ACEOF
11568 #define $ac_tr_func 1
11569 _ACEOF
11570
11571         echo "$as_me:11571: result: yes" >&5
11572 echo "${ECHO_T}yes" >&6
11573         ;;
11574         no)
11575         eval "ac_cv_func_syslog=no"
11576         eval "LIB_syslog="
11577         echo "$as_me:11577: result: no" >&5
11578 echo "${ECHO_T}no" >&6
11579         ;;
11580         *)
11581         eval "ac_cv_func_syslog=yes"
11582         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11583         cat >>confdefs.h <<_ACEOF
11584 #define $ac_tr_func 1
11585 _ACEOF
11586
11587         cat >>confdefs.h <<_ACEOF
11588 #define $ac_tr_lib 1
11589 _ACEOF
11590
11591         echo "$as_me:11591: result: yes, in $ac_res" >&5
11592 echo "${ECHO_T}yes, in $ac_res" >&6
11593         ;;
11594 esac
11595
11596
11597 if test -n "$LIB_syslog"; then
11598         LIBS="$LIB_syslog $LIBS"
11599 fi
11600
11601
11602
11603
11604 # Check whether --with-ipv6 or --without-ipv6 was given.
11605 if test "${with_ipv6+set}" = set; then
11606   withval="$with_ipv6"
11607
11608 if test "$withval" = "no"; then
11609         ac_cv_lib_ipv6=no
11610 fi
11611 fi;
11612 save_CFLAGS="${CFLAGS}"
11613 echo "$as_me:11613: checking for IPv6 stack type" >&5
11614 echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
11615 if test "${v6type+set}" = set; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   v6type=unknown
11619 v6lib=none
11620
11621 for i in v6d toshiba kame inria zeta linux; do
11622         case $i in
11623         v6d)
11624                 cat >conftest.$ac_ext <<_ACEOF
11625 #line 11625 "configure"
11626 #include "confdefs.h"
11627
11628 #include </usr/local/v6/include/sys/types.h>
11629 #ifdef __V6D__
11630 yes
11631 #endif
11632 _ACEOF
11633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11634   egrep "yes" >/dev/null 2>&1; then
11635   v6type=$i; v6lib=v6;
11636                         v6libdir=/usr/local/v6/lib;
11637                         CFLAGS="-I/usr/local/v6/include $CFLAGS"
11638 fi
11639 rm -f conftest*
11640
11641                 ;;
11642         toshiba)
11643                 cat >conftest.$ac_ext <<_ACEOF
11644 #line 11644 "configure"
11645 #include "confdefs.h"
11646
11647 #include <sys/param.h>
11648 #ifdef _TOSHIBA_INET6
11649 yes
11650 #endif
11651 _ACEOF
11652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11653   egrep "yes" >/dev/null 2>&1; then
11654   v6type=$i; v6lib=inet6;
11655                         v6libdir=/usr/local/v6/lib;
11656                         CFLAGS="-DINET6 $CFLAGS"
11657 fi
11658 rm -f conftest*
11659
11660                 ;;
11661         kame)
11662                 cat >conftest.$ac_ext <<_ACEOF
11663 #line 11663 "configure"
11664 #include "confdefs.h"
11665
11666 #include <netinet/in.h>
11667 #ifdef __KAME__
11668 yes
11669 #endif
11670 _ACEOF
11671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11672   egrep "yes" >/dev/null 2>&1; then
11673   v6type=$i; v6lib=inet6;
11674                         v6libdir=/usr/local/v6/lib;
11675                         CFLAGS="-DINET6 $CFLAGS"
11676 fi
11677 rm -f conftest*
11678
11679                 ;;
11680         inria)
11681                 cat >conftest.$ac_ext <<_ACEOF
11682 #line 11682 "configure"
11683 #include "confdefs.h"
11684
11685 #include <netinet/in.h>
11686 #ifdef IPV6_INRIA_VERSION
11687 yes
11688 #endif
11689 _ACEOF
11690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11691   egrep "yes" >/dev/null 2>&1; then
11692   v6type=$i; CFLAGS="-DINET6 $CFLAGS"
11693 fi
11694 rm -f conftest*
11695
11696                 ;;
11697         zeta)
11698                 cat >conftest.$ac_ext <<_ACEOF
11699 #line 11699 "configure"
11700 #include "confdefs.h"
11701
11702 #include <sys/param.h>
11703 #ifdef _ZETA_MINAMI_INET6
11704 yes
11705 #endif
11706 _ACEOF
11707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11708   egrep "yes" >/dev/null 2>&1; then
11709   v6type=$i; v6lib=inet6;
11710                         v6libdir=/usr/local/v6/lib;
11711                         CFLAGS="-DINET6 $CFLAGS"
11712 fi
11713 rm -f conftest*
11714
11715                 ;;
11716         linux)
11717                 if test -d /usr/inet6; then
11718                         v6type=$i
11719                         v6lib=inet6
11720                         v6libdir=/usr/inet6
11721                         CFLAGS="-DINET6 $CFLAGS"
11722                 fi
11723                 ;;
11724         esac
11725         if test "$v6type" != "unknown"; then
11726                 break
11727         fi
11728 done
11729
11730 if test "$v6lib" != "none"; then
11731         for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
11732                 if test -d $dir -a -f $dir/lib$v6lib.a; then
11733                         LIBS="-L$dir -l$v6lib $LIBS"
11734                         break
11735                 fi
11736         done
11737 fi
11738
11739 fi
11740 echo "$as_me:11740: result: $v6type" >&5
11741 echo "${ECHO_T}$v6type" >&6
11742
11743 echo "$as_me:11743: checking for IPv6" >&5
11744 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
11745 if test "${ac_cv_lib_ipv6+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748
11749 cat >conftest.$ac_ext <<_ACEOF
11750 #line 11750 "configure"
11751 #include "confdefs.h"
11752
11753 #ifdef HAVE_SYS_TYPES_H
11754 #include <sys/types.h>
11755 #endif
11756 #ifdef HAVE_SYS_SOCKET_H
11757 #include <sys/socket.h>
11758 #endif
11759 #ifdef HAVE_NETINET_IN_H
11760 #include <netinet/in.h>
11761 #endif
11762 #ifdef HAVE_NETINET_IN6_H
11763 #include <netinet/in6.h>
11764 #endif
11765
11766 #ifdef F77_DUMMY_MAIN
11767 #  ifdef __cplusplus
11768      extern "C"
11769 #  endif
11770    int F77_DUMMY_MAIN() { return 1; }
11771 #endif
11772 int
11773 main ()
11774 {
11775
11776  struct sockaddr_in6 sin6;
11777  int s;
11778
11779  s = socket(AF_INET6, SOCK_DGRAM, 0);
11780
11781  sin6.sin6_family = AF_INET6;
11782  sin6.sin6_port = htons(17);
11783  sin6.sin6_addr = in6addr_any;
11784  bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
11785
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (eval echo "$as_me:11791: \"$ac_link\"") >&5
11792   (eval $ac_link) 2>&5
11793   ac_status=$?
11794   echo "$as_me:11794: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -s conftest$ac_exeext'
11797   { (eval echo "$as_me:11797: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:11800: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   ac_cv_lib_ipv6=yes
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 cat conftest.$ac_ext >&5
11806 ac_cv_lib_ipv6=no
11807 fi
11808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11809 fi
11810 echo "$as_me:11810: result: $ac_cv_lib_ipv6" >&5
11811 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
11812 if test "$ac_cv_lib_ipv6" = yes; then
11813
11814 cat >>confdefs.h <<\_ACEOF
11815 #define HAVE_IPV6 1
11816 _ACEOF
11817
11818 else
11819   CFLAGS="${save_CFLAGS}"
11820 fi
11821
11822 if test "$ac_cv_lib_ipv6" = yes; then
11823         echo "$as_me:11823: checking for in6addr_loopback" >&5
11824 echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
11825 if test "${ac_cv_var_in6addr_loopback+set}" = set; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828
11829         cat >conftest.$ac_ext <<_ACEOF
11830 #line 11830 "configure"
11831 #include "confdefs.h"
11832
11833 #ifdef HAVE_SYS_TYPES_H
11834 #include <sys/types.h>
11835 #endif
11836 #ifdef HAVE_SYS_SOCKET_H
11837 #include <sys/socket.h>
11838 #endif
11839 #ifdef HAVE_NETINET_IN_H
11840 #include <netinet/in.h>
11841 #endif
11842 #ifdef HAVE_NETINET_IN6_H
11843 #include <netinet/in6.h>
11844 #endif
11845 #ifdef F77_DUMMY_MAIN
11846 #  ifdef __cplusplus
11847      extern "C"
11848 #  endif
11849    int F77_DUMMY_MAIN() { return 1; }
11850 #endif
11851 int
11852 main ()
11853 {
11854
11855 struct sockaddr_in6 sin6;
11856 sin6.sin6_addr = in6addr_loopback;
11857
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (eval echo "$as_me:11863: \"$ac_link\"") >&5
11864   (eval $ac_link) 2>&5
11865   ac_status=$?
11866   echo "$as_me:11866: \$? = $ac_status" >&5
11867   (exit $ac_status); } &&
11868          { ac_try='test -s conftest$ac_exeext'
11869   { (eval echo "$as_me:11869: \"$ac_try\"") >&5
11870   (eval $ac_try) 2>&5
11871   ac_status=$?
11872   echo "$as_me:11872: \$? = $ac_status" >&5
11873   (exit $ac_status); }; }; then
11874   ac_cv_var_in6addr_loopback=yes
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11878 ac_cv_var_in6addr_loopback=no
11879 fi
11880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11881 fi
11882 echo "$as_me:11882: result: $ac_cv_var_in6addr_loopback" >&5
11883 echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
11884         if test "$ac_cv_var_in6addr_loopback" = yes; then
11885
11886 cat >>confdefs.h <<\_ACEOF
11887 #define HAVE_IN6ADDR_LOOPBACK 1
11888 _ACEOF
11889
11890         fi
11891 fi
11892
11893
11894
11895
11896
11897
11898 echo "$as_me:11898: checking for gethostbyname2" >&5
11899 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
11900 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903
11904 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
11905         ac_save_LIBS="$LIBS"
11906         for ac_lib in "" inet6 ip6; do
11907                 case "$ac_lib" in
11908                 "") ;;
11909                 yes) ac_lib="" ;;
11910                 no) continue ;;
11911                 -l*) ;;
11912                 *) ac_lib="-l$ac_lib" ;;
11913                 esac
11914                 LIBS=" $ac_lib  $ac_save_LIBS"
11915                 cat >conftest.$ac_ext <<_ACEOF
11916 #line 11916 "configure"
11917 #include "confdefs.h"
11918
11919 #ifdef F77_DUMMY_MAIN
11920 #  ifdef __cplusplus
11921      extern "C"
11922 #  endif
11923    int F77_DUMMY_MAIN() { return 1; }
11924 #endif
11925 int
11926 main ()
11927 {
11928 gethostbyname2()
11929   ;
11930   return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:11934: \"$ac_link\"") >&5
11935   (eval $ac_link) 2>&5
11936   ac_status=$?
11937   echo "$as_me:11937: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -s conftest$ac_exeext'
11940   { (eval echo "$as_me:11940: \"$ac_try\"") >&5
11941   (eval $ac_try) 2>&5
11942   ac_status=$?
11943   echo "$as_me:11943: \$? = $ac_status" >&5
11944   (exit $ac_status); }; }; then
11945   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
11946 else
11947   echo "$as_me: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11949 fi
11950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11951         done
11952         eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
11953         LIBS="$ac_save_LIBS"
11954 fi
11955
11956 fi
11957
11958
11959 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
11960
11961 if false; then
11962
11963 for ac_func in gethostbyname2
11964 do
11965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 echo "$as_me:11966: checking for $ac_func" >&5
11967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_var+set}\" = set"; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   cat >conftest.$ac_ext <<_ACEOF
11972 #line 11972 "configure"
11973 #include "confdefs.h"
11974 /* System header to define __stub macros and hopefully few prototypes,
11975     which can conflict with char $ac_func (); below.  */
11976 #include <assert.h>
11977 /* Override any gcc2 internal prototype to avoid an error.  */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982    builtin and then its argument prototype would still apply.  */
11983 char $ac_func ();
11984 char (*f) ();
11985
11986 #ifdef F77_DUMMY_MAIN
11987 #  ifdef __cplusplus
11988      extern "C"
11989 #  endif
11990    int F77_DUMMY_MAIN() { return 1; }
11991 #endif
11992 int
11993 main ()
11994 {
11995 /* The GNU C library defines this for functions which it implements
11996     to always fail with ENOSYS.  Some functions are actually named
11997     something starting with __ and the normal name is an alias.  */
11998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11999 choke me
12000 #else
12001 f = $ac_func;
12002 #endif
12003
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:12009: \"$ac_link\"") >&5
12010   (eval $ac_link) 2>&5
12011   ac_status=$?
12012   echo "$as_me:12012: \$? = $ac_status" >&5
12013   (exit $ac_status); } &&
12014          { ac_try='test -s conftest$ac_exeext'
12015   { (eval echo "$as_me:12015: \"$ac_try\"") >&5
12016   (eval $ac_try) 2>&5
12017   ac_status=$?
12018   echo "$as_me:12018: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   eval "$as_ac_var=yes"
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 eval "$as_ac_var=no"
12025 fi
12026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 echo "$as_me:12028: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031   cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 _ACEOF
12034
12035 fi
12036 done
12037
12038 fi
12039 # gethostbyname2
12040 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12041 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12042 eval "LIB_gethostbyname2=$ac_res"
12043
12044 case "$ac_res" in
12045         yes)
12046         eval "ac_cv_func_gethostbyname2=yes"
12047         eval "LIB_gethostbyname2="
12048         cat >>confdefs.h <<_ACEOF
12049 #define $ac_tr_func 1
12050 _ACEOF
12051
12052         echo "$as_me:12052: result: yes" >&5
12053 echo "${ECHO_T}yes" >&6
12054         ;;
12055         no)
12056         eval "ac_cv_func_gethostbyname2=no"
12057         eval "LIB_gethostbyname2="
12058         echo "$as_me:12058: result: no" >&5
12059 echo "${ECHO_T}no" >&6
12060         ;;
12061         *)
12062         eval "ac_cv_func_gethostbyname2=yes"
12063         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12064         cat >>confdefs.h <<_ACEOF
12065 #define $ac_tr_func 1
12066 _ACEOF
12067
12068         cat >>confdefs.h <<_ACEOF
12069 #define $ac_tr_lib 1
12070 _ACEOF
12071
12072         echo "$as_me:12072: result: yes, in $ac_res" >&5
12073 echo "${ECHO_T}yes, in $ac_res" >&6
12074         ;;
12075 esac
12076
12077
12078 if test -n "$LIB_gethostbyname2"; then
12079         LIBS="$LIB_gethostbyname2 $LIBS"
12080 fi
12081
12082
12083
12084
12085
12086
12087 echo "$as_me:12087: checking for res_search" >&5
12088 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
12089 if test "${ac_cv_funclib_res_search+set}" = set; then
12090   echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092
12093 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
12094         ac_save_LIBS="$LIBS"
12095         for ac_lib in "" resolv; do
12096                 case "$ac_lib" in
12097                 "") ;;
12098                 yes) ac_lib="" ;;
12099                 no) continue ;;
12100                 -l*) ;;
12101                 *) ac_lib="-l$ac_lib" ;;
12102                 esac
12103                 LIBS=" $ac_lib  $ac_save_LIBS"
12104                 cat >conftest.$ac_ext <<_ACEOF
12105 #line 12105 "configure"
12106 #include "confdefs.h"
12107
12108 #include <stdio.h>
12109 #ifdef HAVE_SYS_TYPES_H
12110 #include <sys/types.h>
12111 #endif
12112 #ifdef HAVE_NETINET_IN_H
12113 #include <netinet/in.h>
12114 #endif
12115 #ifdef HAVE_ARPA_NAMESER_H
12116 #include <arpa/nameser.h>
12117 #endif
12118 #ifdef HAVE_RESOLV_H
12119 #include <resolv.h>
12120 #endif
12121
12122 #ifdef F77_DUMMY_MAIN
12123 #  ifdef __cplusplus
12124      extern "C"
12125 #  endif
12126    int F77_DUMMY_MAIN() { return 1; }
12127 #endif
12128 int
12129 main ()
12130 {
12131 res_search(0,0,0,0,0)
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (eval echo "$as_me:12137: \"$ac_link\"") >&5
12138   (eval $ac_link) 2>&5
12139   ac_status=$?
12140   echo "$as_me:12140: \$? = $ac_status" >&5
12141   (exit $ac_status); } &&
12142          { ac_try='test -s conftest$ac_exeext'
12143   { (eval echo "$as_me:12143: \"$ac_try\"") >&5
12144   (eval $ac_try) 2>&5
12145   ac_status=$?
12146   echo "$as_me:12146: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 cat conftest.$ac_ext >&5
12152 fi
12153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12154         done
12155         eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
12156         LIBS="$ac_save_LIBS"
12157 fi
12158
12159 fi
12160
12161
12162 eval "ac_res=\$ac_cv_funclib_res_search"
12163
12164 if false; then
12165
12166 for ac_func in res_search
12167 do
12168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12169 echo "$as_me:12169: checking for $ac_func" >&5
12170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12171 if eval "test \"\${$as_ac_var+set}\" = set"; then
12172   echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174   cat >conftest.$ac_ext <<_ACEOF
12175 #line 12175 "configure"
12176 #include "confdefs.h"
12177 /* System header to define __stub macros and hopefully few prototypes,
12178     which can conflict with char $ac_func (); below.  */
12179 #include <assert.h>
12180 /* Override any gcc2 internal prototype to avoid an error.  */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 /* We use char because int might match the return type of a gcc2
12185    builtin and then its argument prototype would still apply.  */
12186 char $ac_func ();
12187 char (*f) ();
12188
12189 #ifdef F77_DUMMY_MAIN
12190 #  ifdef __cplusplus
12191      extern "C"
12192 #  endif
12193    int F77_DUMMY_MAIN() { return 1; }
12194 #endif
12195 int
12196 main ()
12197 {
12198 /* The GNU C library defines this for functions which it implements
12199     to always fail with ENOSYS.  Some functions are actually named
12200     something starting with __ and the normal name is an alias.  */
12201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12202 choke me
12203 #else
12204 f = $ac_func;
12205 #endif
12206
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 rm -f conftest.$ac_objext conftest$ac_exeext
12212 if { (eval echo "$as_me:12212: \"$ac_link\"") >&5
12213   (eval $ac_link) 2>&5
12214   ac_status=$?
12215   echo "$as_me:12215: \$? = $ac_status" >&5
12216   (exit $ac_status); } &&
12217          { ac_try='test -s conftest$ac_exeext'
12218   { (eval echo "$as_me:12218: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:12221: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   eval "$as_ac_var=yes"
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 eval "$as_ac_var=no"
12228 fi
12229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12230 fi
12231 echo "$as_me:12231: result: `eval echo '${'$as_ac_var'}'`" >&5
12232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12233 if test `eval echo '${'$as_ac_var'}'` = yes; then
12234   cat >>confdefs.h <<_ACEOF
12235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12236 _ACEOF
12237
12238 fi
12239 done
12240
12241 fi
12242 # res_search
12243 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12244 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12245 eval "LIB_res_search=$ac_res"
12246
12247 case "$ac_res" in
12248         yes)
12249         eval "ac_cv_func_res_search=yes"
12250         eval "LIB_res_search="
12251         cat >>confdefs.h <<_ACEOF
12252 #define $ac_tr_func 1
12253 _ACEOF
12254
12255         echo "$as_me:12255: result: yes" >&5
12256 echo "${ECHO_T}yes" >&6
12257         ;;
12258         no)
12259         eval "ac_cv_func_res_search=no"
12260         eval "LIB_res_search="
12261         echo "$as_me:12261: result: no" >&5
12262 echo "${ECHO_T}no" >&6
12263         ;;
12264         *)
12265         eval "ac_cv_func_res_search=yes"
12266         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12267         cat >>confdefs.h <<_ACEOF
12268 #define $ac_tr_func 1
12269 _ACEOF
12270
12271         cat >>confdefs.h <<_ACEOF
12272 #define $ac_tr_lib 1
12273 _ACEOF
12274
12275         echo "$as_me:12275: result: yes, in $ac_res" >&5
12276 echo "${ECHO_T}yes, in $ac_res" >&6
12277         ;;
12278 esac
12279
12280
12281 if test -n "$LIB_res_search"; then
12282         LIBS="$LIB_res_search $LIBS"
12283 fi
12284
12285
12286
12287
12288
12289
12290 echo "$as_me:12290: checking for dn_expand" >&5
12291 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
12292 if test "${ac_cv_funclib_dn_expand+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295
12296 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
12297         ac_save_LIBS="$LIBS"
12298         for ac_lib in "" resolv; do
12299                 case "$ac_lib" in
12300                 "") ;;
12301                 yes) ac_lib="" ;;
12302                 no) continue ;;
12303                 -l*) ;;
12304                 *) ac_lib="-l$ac_lib" ;;
12305                 esac
12306                 LIBS=" $ac_lib  $ac_save_LIBS"
12307                 cat >conftest.$ac_ext <<_ACEOF
12308 #line 12308 "configure"
12309 #include "confdefs.h"
12310
12311 #include <stdio.h>
12312 #ifdef HAVE_SYS_TYPES_H
12313 #include <sys/types.h>
12314 #endif
12315 #ifdef HAVE_NETINET_IN_H
12316 #include <netinet/in.h>
12317 #endif
12318 #ifdef HAVE_ARPA_NAMESER_H
12319 #include <arpa/nameser.h>
12320 #endif
12321 #ifdef HAVE_RESOLV_H
12322 #include <resolv.h>
12323 #endif
12324
12325 #ifdef F77_DUMMY_MAIN
12326 #  ifdef __cplusplus
12327      extern "C"
12328 #  endif
12329    int F77_DUMMY_MAIN() { return 1; }
12330 #endif
12331 int
12332 main ()
12333 {
12334 dn_expand(0,0,0,0,0)
12335   ;
12336   return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (eval echo "$as_me:12340: \"$ac_link\"") >&5
12341   (eval $ac_link) 2>&5
12342   ac_status=$?
12343   echo "$as_me:12343: \$? = $ac_status" >&5
12344   (exit $ac_status); } &&
12345          { ac_try='test -s conftest$ac_exeext'
12346   { (eval echo "$as_me:12346: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:12349: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
12352 else
12353   echo "$as_me: failed program was:" >&5
12354 cat conftest.$ac_ext >&5
12355 fi
12356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12357         done
12358         eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
12359         LIBS="$ac_save_LIBS"
12360 fi
12361
12362 fi
12363
12364
12365 eval "ac_res=\$ac_cv_funclib_dn_expand"
12366
12367 if false; then
12368
12369 for ac_func in dn_expand
12370 do
12371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372 echo "$as_me:12372: checking for $ac_func" >&5
12373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12374 if eval "test \"\${$as_ac_var+set}\" = set"; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   cat >conftest.$ac_ext <<_ACEOF
12378 #line 12378 "configure"
12379 #include "confdefs.h"
12380 /* System header to define __stub macros and hopefully few prototypes,
12381     which can conflict with char $ac_func (); below.  */
12382 #include <assert.h>
12383 /* Override any gcc2 internal prototype to avoid an error.  */
12384 #ifdef __cplusplus
12385 extern "C"
12386 #endif
12387 /* We use char because int might match the return type of a gcc2
12388    builtin and then its argument prototype would still apply.  */
12389 char $ac_func ();
12390 char (*f) ();
12391
12392 #ifdef F77_DUMMY_MAIN
12393 #  ifdef __cplusplus
12394      extern "C"
12395 #  endif
12396    int F77_DUMMY_MAIN() { return 1; }
12397 #endif
12398 int
12399 main ()
12400 {
12401 /* The GNU C library defines this for functions which it implements
12402     to always fail with ENOSYS.  Some functions are actually named
12403     something starting with __ and the normal name is an alias.  */
12404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12405 choke me
12406 #else
12407 f = $ac_func;
12408 #endif
12409
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (eval echo "$as_me:12415: \"$ac_link\"") >&5
12416   (eval $ac_link) 2>&5
12417   ac_status=$?
12418   echo "$as_me:12418: \$? = $ac_status" >&5
12419   (exit $ac_status); } &&
12420          { ac_try='test -s conftest$ac_exeext'
12421   { (eval echo "$as_me:12421: \"$ac_try\"") >&5
12422   (eval $ac_try) 2>&5
12423   ac_status=$?
12424   echo "$as_me:12424: \$? = $ac_status" >&5
12425   (exit $ac_status); }; }; then
12426   eval "$as_ac_var=yes"
12427 else
12428   echo "$as_me: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 eval "$as_ac_var=no"
12431 fi
12432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12433 fi
12434 echo "$as_me:12434: result: `eval echo '${'$as_ac_var'}'`" >&5
12435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12436 if test `eval echo '${'$as_ac_var'}'` = yes; then
12437   cat >>confdefs.h <<_ACEOF
12438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12439 _ACEOF
12440
12441 fi
12442 done
12443
12444 fi
12445 # dn_expand
12446 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12447 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12448 eval "LIB_dn_expand=$ac_res"
12449
12450 case "$ac_res" in
12451         yes)
12452         eval "ac_cv_func_dn_expand=yes"
12453         eval "LIB_dn_expand="
12454         cat >>confdefs.h <<_ACEOF
12455 #define $ac_tr_func 1
12456 _ACEOF
12457
12458         echo "$as_me:12458: result: yes" >&5
12459 echo "${ECHO_T}yes" >&6
12460         ;;
12461         no)
12462         eval "ac_cv_func_dn_expand=no"
12463         eval "LIB_dn_expand="
12464         echo "$as_me:12464: result: no" >&5
12465 echo "${ECHO_T}no" >&6
12466         ;;
12467         *)
12468         eval "ac_cv_func_dn_expand=yes"
12469         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12470         cat >>confdefs.h <<_ACEOF
12471 #define $ac_tr_func 1
12472 _ACEOF
12473
12474         cat >>confdefs.h <<_ACEOF
12475 #define $ac_tr_lib 1
12476 _ACEOF
12477
12478         echo "$as_me:12478: result: yes, in $ac_res" >&5
12479 echo "${ECHO_T}yes, in $ac_res" >&6
12480         ;;
12481 esac
12482
12483
12484 if test -n "$LIB_dn_expand"; then
12485         LIBS="$LIB_dn_expand $LIBS"
12486 fi
12487
12488
12489
12490 echo "$as_me:12490: checking for _res" >&5
12491 echo $ECHO_N "checking for _res... $ECHO_C" >&6
12492 if test "${ac_cv_var__res+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495
12496 cat >conftest.$ac_ext <<_ACEOF
12497 #line 12497 "configure"
12498 #include "confdefs.h"
12499 extern int _res;
12500 int foo() { return _res; }
12501 #ifdef F77_DUMMY_MAIN
12502 #  ifdef __cplusplus
12503      extern "C"
12504 #  endif
12505    int F77_DUMMY_MAIN() { return 1; }
12506 #endif
12507 int
12508 main ()
12509 {
12510 foo()
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:12516: \"$ac_link\"") >&5
12517   (eval $ac_link) 2>&5
12518   ac_status=$?
12519   echo "$as_me:12519: \$? = $ac_status" >&5
12520   (exit $ac_status); } &&
12521          { ac_try='test -s conftest$ac_exeext'
12522   { (eval echo "$as_me:12522: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:12525: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_var__res=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12531 ac_cv_var__res=no
12532 fi
12533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12534
12535 fi
12536
12537 ac_foo=`eval echo \\$ac_cv_var__res`
12538 echo "$as_me:12538: result: $ac_foo" >&5
12539 echo "${ECHO_T}$ac_foo" >&6
12540 if test "$ac_foo" = yes; then
12541
12542 cat >>confdefs.h <<_ACEOF
12543 #define HAVE__RES 1
12544 _ACEOF
12545
12546
12547 echo "$as_me:12547: checking if _res is properly declared" >&5
12548 echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
12549 if test "${ac_cv_var__res_declaration+set}" = set; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552
12553 cat >conftest.$ac_ext <<_ACEOF
12554 #line 12554 "configure"
12555 #include "confdefs.h"
12556 #include <stdio.h>
12557 #ifdef HAVE_SYS_TYPES_H
12558 #include <sys/types.h>
12559 #endif
12560 #ifdef HAVE_NETINET_IN_H
12561 #include <netinet/in.h>
12562 #endif
12563 #ifdef HAVE_ARPA_NAMESER_H
12564 #include <arpa/nameser.h>
12565 #endif
12566 #ifdef HAVE_RESOLV_H
12567 #include <resolv.h>
12568 #endif
12569 extern struct { int foo; } _res;
12570 #ifdef F77_DUMMY_MAIN
12571 #  ifdef __cplusplus
12572      extern "C"
12573 #  endif
12574    int F77_DUMMY_MAIN() { return 1; }
12575 #endif
12576 int
12577 main ()
12578 {
12579 _res.foo = 1;
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:12585: \"$ac_compile\"") >&5
12586   (eval $ac_compile) 2>&5
12587   ac_status=$?
12588   echo "$as_me:12588: \$? = $ac_status" >&5
12589   (exit $ac_status); } &&
12590          { ac_try='test -s conftest.$ac_objext'
12591   { (eval echo "$as_me:12591: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:12594: \$? = $ac_status" >&5
12595   (exit $ac_status); }; }; then
12596   eval "ac_cv_var__res_declaration=no"
12597 else
12598   echo "$as_me: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12600 eval "ac_cv_var__res_declaration=yes"
12601 fi
12602 rm -f conftest.$ac_objext conftest.$ac_ext
12603
12604 fi
12605
12606
12607
12608
12609 echo "$as_me:12609: result: $ac_cv_var__res_declaration" >&5
12610 echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
12611 if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
12612
12613 cat >>confdefs.h <<\_ACEOF
12614 #define HAVE__RES_DECLARATION 1
12615 _ACEOF
12616
12617 fi
12618
12619
12620 fi
12621
12622
12623
12624
12625 echo "$as_me:12625: checking for working snprintf" >&5
12626 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
12627 if test "${ac_cv_func_snprintf_working+set}" = set; then
12628   echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630   ac_cv_func_snprintf_working=yes
12631 if test "$cross_compiling" = yes; then
12632   :
12633 else
12634   cat >conftest.$ac_ext <<_ACEOF
12635 #line 12635 "configure"
12636 #include "confdefs.h"
12637
12638 #include <stdio.h>
12639 #include <string.h>
12640 int main()
12641 {
12642         char foo[3];
12643         snprintf(foo, 2, "12");
12644         return strcmp(foo, "1");
12645 }
12646 _ACEOF
12647 rm -f conftest$ac_exeext
12648 if { (eval echo "$as_me:12648: \"$ac_link\"") >&5
12649   (eval $ac_link) 2>&5
12650   ac_status=$?
12651   echo "$as_me:12651: \$? = $ac_status" >&5
12652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12653   { (eval echo "$as_me:12653: \"$ac_try\"") >&5
12654   (eval $ac_try) 2>&5
12655   ac_status=$?
12656   echo "$as_me:12656: \$? = $ac_status" >&5
12657   (exit $ac_status); }; }; then
12658   :
12659 else
12660   echo "$as_me: program exited with status $ac_status" >&5
12661 echo "$as_me: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 ( exit $ac_status )
12664 ac_cv_func_snprintf_working=no
12665 fi
12666 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12667 fi
12668 fi
12669 echo "$as_me:12669: result: $ac_cv_func_snprintf_working" >&5
12670 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
12671
12672 if test "$ac_cv_func_snprintf_working" = yes; then
12673
12674 cat >>confdefs.h <<_ACEOF
12675 #define HAVE_SNPRINTF 1
12676 _ACEOF
12677
12678 fi
12679 if test "$ac_cv_func_snprintf_working" = yes; then
12680
12681 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
12682 echo "$as_me:12682: checking if snprintf needs a prototype" >&5
12683 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
12684 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687   cat >conftest.$ac_ext <<_ACEOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12690 #include <stdio.h>
12691 #ifdef F77_DUMMY_MAIN
12692 #  ifdef __cplusplus
12693      extern "C"
12694 #  endif
12695    int F77_DUMMY_MAIN() { return 1; }
12696 #endif
12697 int
12698 main ()
12699 {
12700 struct foo { int foo; } xx;
12701 extern int snprintf (struct foo*);
12702 snprintf(&xx);
12703
12704   ;
12705   return 0;
12706 }
12707 _ACEOF
12708 rm -f conftest.$ac_objext
12709 if { (eval echo "$as_me:12709: \"$ac_compile\"") >&5
12710   (eval $ac_compile) 2>&5
12711   ac_status=$?
12712   echo "$as_me:12712: \$? = $ac_status" >&5
12713   (exit $ac_status); } &&
12714          { ac_try='test -s conftest.$ac_objext'
12715   { (eval echo "$as_me:12715: \"$ac_try\"") >&5
12716   (eval $ac_try) 2>&5
12717   ac_status=$?
12718   echo "$as_me:12718: \$? = $ac_status" >&5
12719   (exit $ac_status); }; }; then
12720   eval "ac_cv_func_snprintf_noproto=yes"
12721 else
12722   echo "$as_me: failed program was:" >&5
12723 cat conftest.$ac_ext >&5
12724 eval "ac_cv_func_snprintf_noproto=no"
12725 fi
12726 rm -f conftest.$ac_objext conftest.$ac_ext
12727 fi
12728 echo "$as_me:12728: result: $ac_cv_func_snprintf_noproto" >&5
12729 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
12730 if test "$ac_cv_func_snprintf_noproto" = yes; then
12731
12732 cat >>confdefs.h <<\_ACEOF
12733 #define NEED_SNPRINTF_PROTO 1
12734 _ACEOF
12735
12736 fi
12737 fi
12738
12739 fi
12740
12741
12742 echo "$as_me:12742: checking for working vsnprintf" >&5
12743 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
12744 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   ac_cv_func_vsnprintf_working=yes
12748 if test "$cross_compiling" = yes; then
12749   :
12750 else
12751   cat >conftest.$ac_ext <<_ACEOF
12752 #line 12752 "configure"
12753 #include "confdefs.h"
12754
12755 #include <stdio.h>
12756 #include <string.h>
12757 #include <stdarg.h>
12758
12759 int foo(int num, ...)
12760 {
12761         char bar[3];
12762         va_list arg;
12763         va_start(arg, num);
12764         vsnprintf(bar, 2, "%s", arg);
12765         va_end(arg);
12766         return strcmp(bar, "1");
12767 }
12768
12769
12770 int main()
12771 {
12772         return foo(0, "12");
12773 }
12774 _ACEOF
12775 rm -f conftest$ac_exeext
12776 if { (eval echo "$as_me:12776: \"$ac_link\"") >&5
12777   (eval $ac_link) 2>&5
12778   ac_status=$?
12779   echo "$as_me:12779: \$? = $ac_status" >&5
12780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12781   { (eval echo "$as_me:12781: \"$ac_try\"") >&5
12782   (eval $ac_try) 2>&5
12783   ac_status=$?
12784   echo "$as_me:12784: \$? = $ac_status" >&5
12785   (exit $ac_status); }; }; then
12786   :
12787 else
12788   echo "$as_me: program exited with status $ac_status" >&5
12789 echo "$as_me: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 ( exit $ac_status )
12792 ac_cv_func_vsnprintf_working=no
12793 fi
12794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12795 fi
12796 fi
12797 echo "$as_me:12797: result: $ac_cv_func_vsnprintf_working" >&5
12798 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
12799
12800 if test "$ac_cv_func_vsnprintf_working" = yes; then
12801
12802 cat >>confdefs.h <<_ACEOF
12803 #define HAVE_VSNPRINTF 1
12804 _ACEOF
12805
12806 fi
12807 if test "$ac_cv_func_vsnprintf_working" = yes; then
12808
12809 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
12810 echo "$as_me:12810: checking if vsnprintf needs a prototype" >&5
12811 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
12812 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
12813   echo $ECHO_N "(cached) $ECHO_C" >&6
12814 else
12815   cat >conftest.$ac_ext <<_ACEOF
12816 #line 12816 "configure"
12817 #include "confdefs.h"
12818 #include <stdio.h>
12819 #ifdef F77_DUMMY_MAIN
12820 #  ifdef __cplusplus
12821      extern "C"
12822 #  endif
12823    int F77_DUMMY_MAIN() { return 1; }
12824 #endif
12825 int
12826 main ()
12827 {
12828 struct foo { int foo; } xx;
12829 extern int vsnprintf (struct foo*);
12830 vsnprintf(&xx);
12831
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext
12837 if { (eval echo "$as_me:12837: \"$ac_compile\"") >&5
12838   (eval $ac_compile) 2>&5
12839   ac_status=$?
12840   echo "$as_me:12840: \$? = $ac_status" >&5
12841   (exit $ac_status); } &&
12842          { ac_try='test -s conftest.$ac_objext'
12843   { (eval echo "$as_me:12843: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   echo "$as_me:12846: \$? = $ac_status" >&5
12847   (exit $ac_status); }; }; then
12848   eval "ac_cv_func_vsnprintf_noproto=yes"
12849 else
12850   echo "$as_me: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12852 eval "ac_cv_func_vsnprintf_noproto=no"
12853 fi
12854 rm -f conftest.$ac_objext conftest.$ac_ext
12855 fi
12856 echo "$as_me:12856: result: $ac_cv_func_vsnprintf_noproto" >&5
12857 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
12858 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
12859
12860 cat >>confdefs.h <<\_ACEOF
12861 #define NEED_VSNPRINTF_PROTO 1
12862 _ACEOF
12863
12864 fi
12865 fi
12866
12867 fi
12868
12869
12870
12871 echo "$as_me:12871: checking for working glob" >&5
12872 echo $ECHO_N "checking for working glob... $ECHO_C" >&6
12873 if test "${ac_cv_func_glob_working+set}" = set; then
12874   echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876   ac_cv_func_glob_working=yes
12877 cat >conftest.$ac_ext <<_ACEOF
12878 #line 12878 "configure"
12879 #include "confdefs.h"
12880
12881 #include <stdio.h>
12882 #include <glob.h>
12883 #ifdef F77_DUMMY_MAIN
12884 #  ifdef __cplusplus
12885      extern "C"
12886 #  endif
12887    int F77_DUMMY_MAIN() { return 1; }
12888 #endif
12889 int
12890 main ()
12891 {
12892
12893 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
12894 #ifdef GLOB_MAXPATH
12895 GLOB_MAXPATH
12896 #else
12897 GLOB_LIMIT
12898 #endif
12899 ,
12900 NULL, NULL);
12901
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (eval echo "$as_me:12907: \"$ac_link\"") >&5
12908   (eval $ac_link) 2>&5
12909   ac_status=$?
12910   echo "$as_me:12910: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -s conftest$ac_exeext'
12913   { (eval echo "$as_me:12913: \"$ac_try\"") >&5
12914   (eval $ac_try) 2>&5
12915   ac_status=$?
12916   echo "$as_me:12916: \$? = $ac_status" >&5
12917   (exit $ac_status); }; }; then
12918   :
12919 else
12920   echo "$as_me: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 ac_cv_func_glob_working=no
12923 fi
12924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12925 fi
12926 echo "$as_me:12926: result: $ac_cv_func_glob_working" >&5
12927 echo "${ECHO_T}$ac_cv_func_glob_working" >&6
12928
12929 if test "$ac_cv_func_glob_working" = yes; then
12930
12931 cat >>confdefs.h <<\_ACEOF
12932 #define HAVE_GLOB 1
12933 _ACEOF
12934
12935 fi
12936 if test "$ac_cv_func_glob_working" = yes; then
12937
12938 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
12939 echo "$as_me:12939: checking if glob needs a prototype" >&5
12940 echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
12941 if test "${ac_cv_func_glob_noproto+set}" = set; then
12942   echo $ECHO_N "(cached) $ECHO_C" >&6
12943 else
12944   cat >conftest.$ac_ext <<_ACEOF
12945 #line 12945 "configure"
12946 #include "confdefs.h"
12947 #include <stdio.h>
12948 #include <glob.h>
12949 #ifdef F77_DUMMY_MAIN
12950 #  ifdef __cplusplus
12951      extern "C"
12952 #  endif
12953    int F77_DUMMY_MAIN() { return 1; }
12954 #endif
12955 int
12956 main ()
12957 {
12958 struct foo { int foo; } xx;
12959 extern int glob (struct foo*);
12960 glob(&xx);
12961
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 rm -f conftest.$ac_objext
12967 if { (eval echo "$as_me:12967: \"$ac_compile\"") >&5
12968   (eval $ac_compile) 2>&5
12969   ac_status=$?
12970   echo "$as_me:12970: \$? = $ac_status" >&5
12971   (exit $ac_status); } &&
12972          { ac_try='test -s conftest.$ac_objext'
12973   { (eval echo "$as_me:12973: \"$ac_try\"") >&5
12974   (eval $ac_try) 2>&5
12975   ac_status=$?
12976   echo "$as_me:12976: \$? = $ac_status" >&5
12977   (exit $ac_status); }; }; then
12978   eval "ac_cv_func_glob_noproto=yes"
12979 else
12980   echo "$as_me: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12982 eval "ac_cv_func_glob_noproto=no"
12983 fi
12984 rm -f conftest.$ac_objext conftest.$ac_ext
12985 fi
12986 echo "$as_me:12986: result: $ac_cv_func_glob_noproto" >&5
12987 echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
12988 if test "$ac_cv_func_glob_noproto" = yes; then
12989
12990 cat >>confdefs.h <<\_ACEOF
12991 #define NEED_GLOB_PROTO 1
12992 _ACEOF
12993
12994 fi
12995 fi
12996
12997 fi
12998
12999 if test "$ac_cv_func_glob_working" != yes; then
13000         LIBOBJS="$LIBOBJS glob.$ac_objext"
13001 fi
13002
13003
13004 if test "$ac_cv_func_glob_working" = yes; then
13005   have_glob_h_TRUE=
13006   have_glob_h_FALSE='#'
13007 else
13008   have_glob_h_TRUE='#'
13009   have_glob_h_FALSE=
13010 fi
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040 for ac_func in                          \
13041         asnprintf                               \
13042         asprintf                                \
13043         atexit                                  \
13044         cgetent                                 \
13045         getconfattr                             \
13046         getprogname                             \
13047         getrlimit                               \
13048         getspnam                                \
13049         initstate                               \
13050         issetugid                               \
13051         on_exit                                 \
13052         random                                  \
13053         setprogname                             \
13054         setstate                                \
13055         strsvis                                 \
13056         strunvis                                \
13057         strvis                                  \
13058         strvisx                                 \
13059         svis                                    \
13060         sysconf                                 \
13061         sysctl                                  \
13062         uname                                   \
13063         unvis                                   \
13064         vasnprintf                              \
13065         vasprintf                               \
13066         vis                                     \
13067
13068 do
13069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13070 echo "$as_me:13070: checking for $ac_func" >&5
13071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13072 if eval "test \"\${$as_ac_var+set}\" = set"; then
13073   echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075   cat >conftest.$ac_ext <<_ACEOF
13076 #line 13076 "configure"
13077 #include "confdefs.h"
13078 /* System header to define __stub macros and hopefully few prototypes,
13079     which can conflict with char $ac_func (); below.  */
13080 #include <assert.h>
13081 /* Override any gcc2 internal prototype to avoid an error.  */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 /* We use char because int might match the return type of a gcc2
13086    builtin and then its argument prototype would still apply.  */
13087 char $ac_func ();
13088 char (*f) ();
13089
13090 #ifdef F77_DUMMY_MAIN
13091 #  ifdef __cplusplus
13092      extern "C"
13093 #  endif
13094    int F77_DUMMY_MAIN() { return 1; }
13095 #endif
13096 int
13097 main ()
13098 {
13099 /* The GNU C library defines this for functions which it implements
13100     to always fail with ENOSYS.  Some functions are actually named
13101     something starting with __ and the normal name is an alias.  */
13102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13103 choke me
13104 #else
13105 f = $ac_func;
13106 #endif
13107
13108   ;
13109   return 0;
13110 }
13111 _ACEOF
13112 rm -f conftest.$ac_objext conftest$ac_exeext
13113 if { (eval echo "$as_me:13113: \"$ac_link\"") >&5
13114   (eval $ac_link) 2>&5
13115   ac_status=$?
13116   echo "$as_me:13116: \$? = $ac_status" >&5
13117   (exit $ac_status); } &&
13118          { ac_try='test -s conftest$ac_exeext'
13119   { (eval echo "$as_me:13119: \"$ac_try\"") >&5
13120   (eval $ac_try) 2>&5
13121   ac_status=$?
13122   echo "$as_me:13122: \$? = $ac_status" >&5
13123   (exit $ac_status); }; }; then
13124   eval "$as_ac_var=yes"
13125 else
13126   echo "$as_me: failed program was:" >&5
13127 cat conftest.$ac_ext >&5
13128 eval "$as_ac_var=no"
13129 fi
13130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13131 fi
13132 echo "$as_me:13132: result: `eval echo '${'$as_ac_var'}'`" >&5
13133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13134 if test `eval echo '${'$as_ac_var'}'` = yes; then
13135   cat >>confdefs.h <<_ACEOF
13136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13137 _ACEOF
13138
13139 fi
13140 done
13141
13142
13143 if test "$ac_cv_func_cgetent" = no; then
13144         LIBOBJS="$LIBOBJS getcap.$ac_objext"
13145 fi
13146
13147
13148
13149
13150
13151
13152 echo "$as_me:13152: checking for getsockopt" >&5
13153 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
13154 if test "${ac_cv_funclib_getsockopt+set}" = set; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157
13158 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
13159         ac_save_LIBS="$LIBS"
13160         for ac_lib in "" ; do
13161                 case "$ac_lib" in
13162                 "") ;;
13163                 yes) ac_lib="" ;;
13164                 no) continue ;;
13165                 -l*) ;;
13166                 *) ac_lib="-l$ac_lib" ;;
13167                 esac
13168                 LIBS=" $ac_lib  $ac_save_LIBS"
13169                 cat >conftest.$ac_ext <<_ACEOF
13170 #line 13170 "configure"
13171 #include "confdefs.h"
13172 #ifdef HAVE_SYS_TYPES_H
13173 #include <sys/types.h>
13174 #endif
13175 #ifdef HAVE_SYS_SOCKET_H
13176 #include <sys/socket.h>
13177 #endif
13178 #ifdef F77_DUMMY_MAIN
13179 #  ifdef __cplusplus
13180      extern "C"
13181 #  endif
13182    int F77_DUMMY_MAIN() { return 1; }
13183 #endif
13184 int
13185 main ()
13186 {
13187 getsockopt(0,0,0,0,0)
13188   ;
13189   return 0;
13190 }
13191 _ACEOF
13192 rm -f conftest.$ac_objext conftest$ac_exeext
13193 if { (eval echo "$as_me:13193: \"$ac_link\"") >&5
13194   (eval $ac_link) 2>&5
13195   ac_status=$?
13196   echo "$as_me:13196: \$? = $ac_status" >&5
13197   (exit $ac_status); } &&
13198          { ac_try='test -s conftest$ac_exeext'
13199   { (eval echo "$as_me:13199: \"$ac_try\"") >&5
13200   (eval $ac_try) 2>&5
13201   ac_status=$?
13202   echo "$as_me:13202: \$? = $ac_status" >&5
13203   (exit $ac_status); }; }; then
13204   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
13205 else
13206   echo "$as_me: failed program was:" >&5
13207 cat conftest.$ac_ext >&5
13208 fi
13209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13210         done
13211         eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
13212         LIBS="$ac_save_LIBS"
13213 fi
13214
13215 fi
13216
13217
13218 eval "ac_res=\$ac_cv_funclib_getsockopt"
13219
13220 if false; then
13221
13222 for ac_func in getsockopt
13223 do
13224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13225 echo "$as_me:13225: checking for $ac_func" >&5
13226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13227 if eval "test \"\${$as_ac_var+set}\" = set"; then
13228   echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230   cat >conftest.$ac_ext <<_ACEOF
13231 #line 13231 "configure"
13232 #include "confdefs.h"
13233 /* System header to define __stub macros and hopefully few prototypes,
13234     which can conflict with char $ac_func (); below.  */
13235 #include <assert.h>
13236 /* Override any gcc2 internal prototype to avoid an error.  */
13237 #ifdef __cplusplus
13238 extern "C"
13239 #endif
13240 /* We use char because int might match the return type of a gcc2
13241    builtin and then its argument prototype would still apply.  */
13242 char $ac_func ();
13243 char (*f) ();
13244
13245 #ifdef F77_DUMMY_MAIN
13246 #  ifdef __cplusplus
13247      extern "C"
13248 #  endif
13249    int F77_DUMMY_MAIN() { return 1; }
13250 #endif
13251 int
13252 main ()
13253 {
13254 /* The GNU C library defines this for functions which it implements
13255     to always fail with ENOSYS.  Some functions are actually named
13256     something starting with __ and the normal name is an alias.  */
13257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13258 choke me
13259 #else
13260 f = $ac_func;
13261 #endif
13262
13263   ;
13264   return 0;
13265 }
13266 _ACEOF
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (eval echo "$as_me:13268: \"$ac_link\"") >&5
13269   (eval $ac_link) 2>&5
13270   ac_status=$?
13271   echo "$as_me:13271: \$? = $ac_status" >&5
13272   (exit $ac_status); } &&
13273          { ac_try='test -s conftest$ac_exeext'
13274   { (eval echo "$as_me:13274: \"$ac_try\"") >&5
13275   (eval $ac_try) 2>&5
13276   ac_status=$?
13277   echo "$as_me:13277: \$? = $ac_status" >&5
13278   (exit $ac_status); }; }; then
13279   eval "$as_ac_var=yes"
13280 else
13281   echo "$as_me: failed program was:" >&5
13282 cat conftest.$ac_ext >&5
13283 eval "$as_ac_var=no"
13284 fi
13285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13286 fi
13287 echo "$as_me:13287: result: `eval echo '${'$as_ac_var'}'`" >&5
13288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13289 if test `eval echo '${'$as_ac_var'}'` = yes; then
13290   cat >>confdefs.h <<_ACEOF
13291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13292 _ACEOF
13293
13294 fi
13295 done
13296
13297 fi
13298 # getsockopt
13299 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13300 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13301 eval "LIB_getsockopt=$ac_res"
13302
13303 case "$ac_res" in
13304         yes)
13305         eval "ac_cv_func_getsockopt=yes"
13306         eval "LIB_getsockopt="
13307         cat >>confdefs.h <<_ACEOF
13308 #define $ac_tr_func 1
13309 _ACEOF
13310
13311         echo "$as_me:13311: result: yes" >&5
13312 echo "${ECHO_T}yes" >&6
13313         ;;
13314         no)
13315         eval "ac_cv_func_getsockopt=no"
13316         eval "LIB_getsockopt="
13317         echo "$as_me:13317: result: no" >&5
13318 echo "${ECHO_T}no" >&6
13319         ;;
13320         *)
13321         eval "ac_cv_func_getsockopt=yes"
13322         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13323         cat >>confdefs.h <<_ACEOF
13324 #define $ac_tr_func 1
13325 _ACEOF
13326
13327         cat >>confdefs.h <<_ACEOF
13328 #define $ac_tr_lib 1
13329 _ACEOF
13330
13331         echo "$as_me:13331: result: yes, in $ac_res" >&5
13332 echo "${ECHO_T}yes, in $ac_res" >&6
13333         ;;
13334 esac
13335
13336
13337
13338
13339
13340 echo "$as_me:13340: checking for setsockopt" >&5
13341 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
13342 if test "${ac_cv_funclib_setsockopt+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345
13346 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
13347         ac_save_LIBS="$LIBS"
13348         for ac_lib in "" ; do
13349                 case "$ac_lib" in
13350                 "") ;;
13351                 yes) ac_lib="" ;;
13352                 no) continue ;;
13353                 -l*) ;;
13354                 *) ac_lib="-l$ac_lib" ;;
13355                 esac
13356                 LIBS=" $ac_lib  $ac_save_LIBS"
13357                 cat >conftest.$ac_ext <<_ACEOF
13358 #line 13358 "configure"
13359 #include "confdefs.h"
13360 #ifdef HAVE_SYS_TYPES_H
13361 #include <sys/types.h>
13362 #endif
13363 #ifdef HAVE_SYS_SOCKET_H
13364 #include <sys/socket.h>
13365 #endif
13366 #ifdef F77_DUMMY_MAIN
13367 #  ifdef __cplusplus
13368      extern "C"
13369 #  endif
13370    int F77_DUMMY_MAIN() { return 1; }
13371 #endif
13372 int
13373 main ()
13374 {
13375 setsockopt(0,0,0,0,0)
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (eval echo "$as_me:13381: \"$ac_link\"") >&5
13382   (eval $ac_link) 2>&5
13383   ac_status=$?
13384   echo "$as_me:13384: \$? = $ac_status" >&5
13385   (exit $ac_status); } &&
13386          { ac_try='test -s conftest$ac_exeext'
13387   { (eval echo "$as_me:13387: \"$ac_try\"") >&5
13388   (eval $ac_try) 2>&5
13389   ac_status=$?
13390   echo "$as_me:13390: \$? = $ac_status" >&5
13391   (exit $ac_status); }; }; then
13392   eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
13393 else
13394   echo "$as_me: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 fi
13397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13398         done
13399         eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
13400         LIBS="$ac_save_LIBS"
13401 fi
13402
13403 fi
13404
13405
13406 eval "ac_res=\$ac_cv_funclib_setsockopt"
13407
13408 if false; then
13409
13410 for ac_func in setsockopt
13411 do
13412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13413 echo "$as_me:13413: checking for $ac_func" >&5
13414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13415 if eval "test \"\${$as_ac_var+set}\" = set"; then
13416   echo $ECHO_N "(cached) $ECHO_C" >&6
13417 else
13418   cat >conftest.$ac_ext <<_ACEOF
13419 #line 13419 "configure"
13420 #include "confdefs.h"
13421 /* System header to define __stub macros and hopefully few prototypes,
13422     which can conflict with char $ac_func (); below.  */
13423 #include <assert.h>
13424 /* Override any gcc2 internal prototype to avoid an error.  */
13425 #ifdef __cplusplus
13426 extern "C"
13427 #endif
13428 /* We use char because int might match the return type of a gcc2
13429    builtin and then its argument prototype would still apply.  */
13430 char $ac_func ();
13431 char (*f) ();
13432
13433 #ifdef F77_DUMMY_MAIN
13434 #  ifdef __cplusplus
13435      extern "C"
13436 #  endif
13437    int F77_DUMMY_MAIN() { return 1; }
13438 #endif
13439 int
13440 main ()
13441 {
13442 /* The GNU C library defines this for functions which it implements
13443     to always fail with ENOSYS.  Some functions are actually named
13444     something starting with __ and the normal name is an alias.  */
13445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13446 choke me
13447 #else
13448 f = $ac_func;
13449 #endif
13450
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (eval echo "$as_me:13456: \"$ac_link\"") >&5
13457   (eval $ac_link) 2>&5
13458   ac_status=$?
13459   echo "$as_me:13459: \$? = $ac_status" >&5
13460   (exit $ac_status); } &&
13461          { ac_try='test -s conftest$ac_exeext'
13462   { (eval echo "$as_me:13462: \"$ac_try\"") >&5
13463   (eval $ac_try) 2>&5
13464   ac_status=$?
13465   echo "$as_me:13465: \$? = $ac_status" >&5
13466   (exit $ac_status); }; }; then
13467   eval "$as_ac_var=yes"
13468 else
13469   echo "$as_me: failed program was:" >&5
13470 cat conftest.$ac_ext >&5
13471 eval "$as_ac_var=no"
13472 fi
13473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13474 fi
13475 echo "$as_me:13475: result: `eval echo '${'$as_ac_var'}'`" >&5
13476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13477 if test `eval echo '${'$as_ac_var'}'` = yes; then
13478   cat >>confdefs.h <<_ACEOF
13479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13480 _ACEOF
13481
13482 fi
13483 done
13484
13485 fi
13486 # setsockopt
13487 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13488 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13489 eval "LIB_setsockopt=$ac_res"
13490
13491 case "$ac_res" in
13492         yes)
13493         eval "ac_cv_func_setsockopt=yes"
13494         eval "LIB_setsockopt="
13495         cat >>confdefs.h <<_ACEOF
13496 #define $ac_tr_func 1
13497 _ACEOF
13498
13499         echo "$as_me:13499: result: yes" >&5
13500 echo "${ECHO_T}yes" >&6
13501         ;;
13502         no)
13503         eval "ac_cv_func_setsockopt=no"
13504         eval "LIB_setsockopt="
13505         echo "$as_me:13505: result: no" >&5
13506 echo "${ECHO_T}no" >&6
13507         ;;
13508         *)
13509         eval "ac_cv_func_setsockopt=yes"
13510         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13511         cat >>confdefs.h <<_ACEOF
13512 #define $ac_tr_func 1
13513 _ACEOF
13514
13515         cat >>confdefs.h <<_ACEOF
13516 #define $ac_tr_lib 1
13517 _ACEOF
13518
13519         echo "$as_me:13519: result: yes, in $ac_res" >&5
13520 echo "${ECHO_T}yes, in $ac_res" >&6
13521         ;;
13522 esac
13523
13524
13525
13526
13527
13528
13529
13530 echo "$as_me:13530: checking for hstrerror" >&5
13531 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
13532 if test "${ac_cv_funclib_hstrerror+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535
13536 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
13537         ac_save_LIBS="$LIBS"
13538         for ac_lib in "" resolv; do
13539                 case "$ac_lib" in
13540                 "") ;;
13541                 yes) ac_lib="" ;;
13542                 no) continue ;;
13543                 -l*) ;;
13544                 *) ac_lib="-l$ac_lib" ;;
13545                 esac
13546                 LIBS=" $ac_lib  $ac_save_LIBS"
13547                 cat >conftest.$ac_ext <<_ACEOF
13548 #line 13548 "configure"
13549 #include "confdefs.h"
13550 #ifdef HAVE_NETDB_H
13551 #include <netdb.h>
13552 #endif
13553 #ifdef F77_DUMMY_MAIN
13554 #  ifdef __cplusplus
13555      extern "C"
13556 #  endif
13557    int F77_DUMMY_MAIN() { return 1; }
13558 #endif
13559 int
13560 main ()
13561 {
13562 hstrerror(17)
13563   ;
13564   return 0;
13565 }
13566 _ACEOF
13567 rm -f conftest.$ac_objext conftest$ac_exeext
13568 if { (eval echo "$as_me:13568: \"$ac_link\"") >&5
13569   (eval $ac_link) 2>&5
13570   ac_status=$?
13571   echo "$as_me:13571: \$? = $ac_status" >&5
13572   (exit $ac_status); } &&
13573          { ac_try='test -s conftest$ac_exeext'
13574   { (eval echo "$as_me:13574: \"$ac_try\"") >&5
13575   (eval $ac_try) 2>&5
13576   ac_status=$?
13577   echo "$as_me:13577: \$? = $ac_status" >&5
13578   (exit $ac_status); }; }; then
13579   eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
13580 else
13581   echo "$as_me: failed program was:" >&5
13582 cat conftest.$ac_ext >&5
13583 fi
13584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13585         done
13586         eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
13587         LIBS="$ac_save_LIBS"
13588 fi
13589
13590 fi
13591
13592
13593 eval "ac_res=\$ac_cv_funclib_hstrerror"
13594
13595 if false; then
13596
13597 for ac_func in hstrerror
13598 do
13599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13600 echo "$as_me:13600: checking for $ac_func" >&5
13601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13602 if eval "test \"\${$as_ac_var+set}\" = set"; then
13603   echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605   cat >conftest.$ac_ext <<_ACEOF
13606 #line 13606 "configure"
13607 #include "confdefs.h"
13608 /* System header to define __stub macros and hopefully few prototypes,
13609     which can conflict with char $ac_func (); below.  */
13610 #include <assert.h>
13611 /* Override any gcc2 internal prototype to avoid an error.  */
13612 #ifdef __cplusplus
13613 extern "C"
13614 #endif
13615 /* We use char because int might match the return type of a gcc2
13616    builtin and then its argument prototype would still apply.  */
13617 char $ac_func ();
13618 char (*f) ();
13619
13620 #ifdef F77_DUMMY_MAIN
13621 #  ifdef __cplusplus
13622      extern "C"
13623 #  endif
13624    int F77_DUMMY_MAIN() { return 1; }
13625 #endif
13626 int
13627 main ()
13628 {
13629 /* The GNU C library defines this for functions which it implements
13630     to always fail with ENOSYS.  Some functions are actually named
13631     something starting with __ and the normal name is an alias.  */
13632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13633 choke me
13634 #else
13635 f = $ac_func;
13636 #endif
13637
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 rm -f conftest.$ac_objext conftest$ac_exeext
13643 if { (eval echo "$as_me:13643: \"$ac_link\"") >&5
13644   (eval $ac_link) 2>&5
13645   ac_status=$?
13646   echo "$as_me:13646: \$? = $ac_status" >&5
13647   (exit $ac_status); } &&
13648          { ac_try='test -s conftest$ac_exeext'
13649   { (eval echo "$as_me:13649: \"$ac_try\"") >&5
13650   (eval $ac_try) 2>&5
13651   ac_status=$?
13652   echo "$as_me:13652: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   eval "$as_ac_var=yes"
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13658 eval "$as_ac_var=no"
13659 fi
13660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13661 fi
13662 echo "$as_me:13662: result: `eval echo '${'$as_ac_var'}'`" >&5
13663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13664 if test `eval echo '${'$as_ac_var'}'` = yes; then
13665   cat >>confdefs.h <<_ACEOF
13666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13667 _ACEOF
13668
13669 fi
13670 done
13671
13672 fi
13673 # hstrerror
13674 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13675 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13676 eval "LIB_hstrerror=$ac_res"
13677
13678 case "$ac_res" in
13679         yes)
13680         eval "ac_cv_func_hstrerror=yes"
13681         eval "LIB_hstrerror="
13682         cat >>confdefs.h <<_ACEOF
13683 #define $ac_tr_func 1
13684 _ACEOF
13685
13686         echo "$as_me:13686: result: yes" >&5
13687 echo "${ECHO_T}yes" >&6
13688         ;;
13689         no)
13690         eval "ac_cv_func_hstrerror=no"
13691         eval "LIB_hstrerror="
13692         echo "$as_me:13692: result: no" >&5
13693 echo "${ECHO_T}no" >&6
13694         ;;
13695         *)
13696         eval "ac_cv_func_hstrerror=yes"
13697         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13698         cat >>confdefs.h <<_ACEOF
13699 #define $ac_tr_func 1
13700 _ACEOF
13701
13702         cat >>confdefs.h <<_ACEOF
13703 #define $ac_tr_lib 1
13704 _ACEOF
13705
13706         echo "$as_me:13706: result: yes, in $ac_res" >&5
13707 echo "${ECHO_T}yes, in $ac_res" >&6
13708         ;;
13709 esac
13710
13711
13712 if test -n "$LIB_hstrerror"; then
13713         LIBS="$LIB_hstrerror $LIBS"
13714 fi
13715
13716 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
13717         LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
13718 fi
13719
13720
13721 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
13722 echo "$as_me:13722: checking if hstrerror needs a prototype" >&5
13723 echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
13724 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   cat >conftest.$ac_ext <<_ACEOF
13728 #line 13728 "configure"
13729 #include "confdefs.h"
13730
13731 #ifdef HAVE_NETDB_H
13732 #include <netdb.h>
13733 #endif
13734 #ifdef F77_DUMMY_MAIN
13735 #  ifdef __cplusplus
13736      extern "C"
13737 #  endif
13738    int F77_DUMMY_MAIN() { return 1; }
13739 #endif
13740 int
13741 main ()
13742 {
13743 struct foo { int foo; } xx;
13744 extern int hstrerror (struct foo*);
13745 hstrerror(&xx);
13746
13747   ;
13748   return 0;
13749 }
13750 _ACEOF
13751 rm -f conftest.$ac_objext
13752 if { (eval echo "$as_me:13752: \"$ac_compile\"") >&5
13753   (eval $ac_compile) 2>&5
13754   ac_status=$?
13755   echo "$as_me:13755: \$? = $ac_status" >&5
13756   (exit $ac_status); } &&
13757          { ac_try='test -s conftest.$ac_objext'
13758   { (eval echo "$as_me:13758: \"$ac_try\"") >&5
13759   (eval $ac_try) 2>&5
13760   ac_status=$?
13761   echo "$as_me:13761: \$? = $ac_status" >&5
13762   (exit $ac_status); }; }; then
13763   eval "ac_cv_func_hstrerror_noproto=yes"
13764 else
13765   echo "$as_me: failed program was:" >&5
13766 cat conftest.$ac_ext >&5
13767 eval "ac_cv_func_hstrerror_noproto=no"
13768 fi
13769 rm -f conftest.$ac_objext conftest.$ac_ext
13770 fi
13771 echo "$as_me:13771: result: $ac_cv_func_hstrerror_noproto" >&5
13772 echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
13773 if test "$ac_cv_func_hstrerror_noproto" = yes; then
13774
13775 cat >>confdefs.h <<\_ACEOF
13776 #define NEED_HSTRERROR_PROTO 1
13777 _ACEOF
13778
13779 fi
13780 fi
13781
13782
13783
13784 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
13785 echo "$as_me:13785: checking if asprintf needs a prototype" >&5
13786 echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
13787 if test "${ac_cv_func_asprintf_noproto+set}" = set; then
13788   echo $ECHO_N "(cached) $ECHO_C" >&6
13789 else
13790   cat >conftest.$ac_ext <<_ACEOF
13791 #line 13791 "configure"
13792 #include "confdefs.h"
13793
13794         #include <stdio.h>
13795         #include <string.h>
13796 #ifdef F77_DUMMY_MAIN
13797 #  ifdef __cplusplus
13798      extern "C"
13799 #  endif
13800    int F77_DUMMY_MAIN() { return 1; }
13801 #endif
13802 int
13803 main ()
13804 {
13805 struct foo { int foo; } xx;
13806 extern int asprintf (struct foo*);
13807 asprintf(&xx);
13808
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:13814: \"$ac_compile\"") >&5
13815   (eval $ac_compile) 2>&5
13816   ac_status=$?
13817   echo "$as_me:13817: \$? = $ac_status" >&5
13818   (exit $ac_status); } &&
13819          { ac_try='test -s conftest.$ac_objext'
13820   { (eval echo "$as_me:13820: \"$ac_try\"") >&5
13821   (eval $ac_try) 2>&5
13822   ac_status=$?
13823   echo "$as_me:13823: \$? = $ac_status" >&5
13824   (exit $ac_status); }; }; then
13825   eval "ac_cv_func_asprintf_noproto=yes"
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13829 eval "ac_cv_func_asprintf_noproto=no"
13830 fi
13831 rm -f conftest.$ac_objext conftest.$ac_ext
13832 fi
13833 echo "$as_me:13833: result: $ac_cv_func_asprintf_noproto" >&5
13834 echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
13835 if test "$ac_cv_func_asprintf_noproto" = yes; then
13836
13837 cat >>confdefs.h <<\_ACEOF
13838 #define NEED_ASPRINTF_PROTO 1
13839 _ACEOF
13840
13841 fi
13842 fi
13843
13844 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
13845 echo "$as_me:13845: checking if vasprintf needs a prototype" >&5
13846 echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
13847 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
13848   echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850   cat >conftest.$ac_ext <<_ACEOF
13851 #line 13851 "configure"
13852 #include "confdefs.h"
13853
13854         #include <stdio.h>
13855         #include <string.h>
13856 #ifdef F77_DUMMY_MAIN
13857 #  ifdef __cplusplus
13858      extern "C"
13859 #  endif
13860    int F77_DUMMY_MAIN() { return 1; }
13861 #endif
13862 int
13863 main ()
13864 {
13865 struct foo { int foo; } xx;
13866 extern int vasprintf (struct foo*);
13867 vasprintf(&xx);
13868
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (eval echo "$as_me:13874: \"$ac_compile\"") >&5
13875   (eval $ac_compile) 2>&5
13876   ac_status=$?
13877   echo "$as_me:13877: \$? = $ac_status" >&5
13878   (exit $ac_status); } &&
13879          { ac_try='test -s conftest.$ac_objext'
13880   { (eval echo "$as_me:13880: \"$ac_try\"") >&5
13881   (eval $ac_try) 2>&5
13882   ac_status=$?
13883   echo "$as_me:13883: \$? = $ac_status" >&5
13884   (exit $ac_status); }; }; then
13885   eval "ac_cv_func_vasprintf_noproto=yes"
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13889 eval "ac_cv_func_vasprintf_noproto=no"
13890 fi
13891 rm -f conftest.$ac_objext conftest.$ac_ext
13892 fi
13893 echo "$as_me:13893: result: $ac_cv_func_vasprintf_noproto" >&5
13894 echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
13895 if test "$ac_cv_func_vasprintf_noproto" = yes; then
13896
13897 cat >>confdefs.h <<\_ACEOF
13898 #define NEED_VASPRINTF_PROTO 1
13899 _ACEOF
13900
13901 fi
13902 fi
13903
13904 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
13905 echo "$as_me:13905: checking if asnprintf needs a prototype" >&5
13906 echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
13907 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
13908   echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910   cat >conftest.$ac_ext <<_ACEOF
13911 #line 13911 "configure"
13912 #include "confdefs.h"
13913
13914         #include <stdio.h>
13915         #include <string.h>
13916 #ifdef F77_DUMMY_MAIN
13917 #  ifdef __cplusplus
13918      extern "C"
13919 #  endif
13920    int F77_DUMMY_MAIN() { return 1; }
13921 #endif
13922 int
13923 main ()
13924 {
13925 struct foo { int foo; } xx;
13926 extern int asnprintf (struct foo*);
13927 asnprintf(&xx);
13928
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:13934: \"$ac_compile\"") >&5
13935   (eval $ac_compile) 2>&5
13936   ac_status=$?
13937   echo "$as_me:13937: \$? = $ac_status" >&5
13938   (exit $ac_status); } &&
13939          { ac_try='test -s conftest.$ac_objext'
13940   { (eval echo "$as_me:13940: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:13943: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945   eval "ac_cv_func_asnprintf_noproto=yes"
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13949 eval "ac_cv_func_asnprintf_noproto=no"
13950 fi
13951 rm -f conftest.$ac_objext conftest.$ac_ext
13952 fi
13953 echo "$as_me:13953: result: $ac_cv_func_asnprintf_noproto" >&5
13954 echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
13955 if test "$ac_cv_func_asnprintf_noproto" = yes; then
13956
13957 cat >>confdefs.h <<\_ACEOF
13958 #define NEED_ASNPRINTF_PROTO 1
13959 _ACEOF
13960
13961 fi
13962 fi
13963
13964 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
13965 echo "$as_me:13965: checking if vasnprintf needs a prototype" >&5
13966 echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
13967 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
13968   echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970   cat >conftest.$ac_ext <<_ACEOF
13971 #line 13971 "configure"
13972 #include "confdefs.h"
13973
13974         #include <stdio.h>
13975         #include <string.h>
13976 #ifdef F77_DUMMY_MAIN
13977 #  ifdef __cplusplus
13978      extern "C"
13979 #  endif
13980    int F77_DUMMY_MAIN() { return 1; }
13981 #endif
13982 int
13983 main ()
13984 {
13985 struct foo { int foo; } xx;
13986 extern int vasnprintf (struct foo*);
13987 vasnprintf(&xx);
13988
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 rm -f conftest.$ac_objext
13994 if { (eval echo "$as_me:13994: \"$ac_compile\"") >&5
13995   (eval $ac_compile) 2>&5
13996   ac_status=$?
13997   echo "$as_me:13997: \$? = $ac_status" >&5
13998   (exit $ac_status); } &&
13999          { ac_try='test -s conftest.$ac_objext'
14000   { (eval echo "$as_me:14000: \"$ac_try\"") >&5
14001   (eval $ac_try) 2>&5
14002   ac_status=$?
14003   echo "$as_me:14003: \$? = $ac_status" >&5
14004   (exit $ac_status); }; }; then
14005   eval "ac_cv_func_vasnprintf_noproto=yes"
14006 else
14007   echo "$as_me: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 eval "ac_cv_func_vasnprintf_noproto=no"
14010 fi
14011 rm -f conftest.$ac_objext conftest.$ac_ext
14012 fi
14013 echo "$as_me:14013: result: $ac_cv_func_vasnprintf_noproto" >&5
14014 echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
14015 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
14016
14017 cat >>confdefs.h <<\_ACEOF
14018 #define NEED_VASNPRINTF_PROTO 1
14019 _ACEOF
14020
14021 fi
14022 fi
14023
14024
14025
14026
14027
14028 echo "$as_me:14028: checking for bswap16" >&5
14029 echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
14030 if test "${ac_cv_funclib_bswap16+set}" = set; then
14031   echo $ECHO_N "(cached) $ECHO_C" >&6
14032 else
14033
14034 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
14035         ac_save_LIBS="$LIBS"
14036         for ac_lib in "" ; do
14037                 case "$ac_lib" in
14038                 "") ;;
14039                 yes) ac_lib="" ;;
14040                 no) continue ;;
14041                 -l*) ;;
14042                 *) ac_lib="-l$ac_lib" ;;
14043                 esac
14044                 LIBS=" $ac_lib  $ac_save_LIBS"
14045                 cat >conftest.$ac_ext <<_ACEOF
14046 #line 14046 "configure"
14047 #include "confdefs.h"
14048 #ifdef HAVE_SYS_BSWAP_H
14049 #include <sys/bswap.h>
14050 #endif
14051 #ifdef F77_DUMMY_MAIN
14052 #  ifdef __cplusplus
14053      extern "C"
14054 #  endif
14055    int F77_DUMMY_MAIN() { return 1; }
14056 #endif
14057 int
14058 main ()
14059 {
14060 bswap16(0)
14061   ;
14062   return 0;
14063 }
14064 _ACEOF
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (eval echo "$as_me:14066: \"$ac_link\"") >&5
14067   (eval $ac_link) 2>&5
14068   ac_status=$?
14069   echo "$as_me:14069: \$? = $ac_status" >&5
14070   (exit $ac_status); } &&
14071          { ac_try='test -s conftest$ac_exeext'
14072   { (eval echo "$as_me:14072: \"$ac_try\"") >&5
14073   (eval $ac_try) 2>&5
14074   ac_status=$?
14075   echo "$as_me:14075: \$? = $ac_status" >&5
14076   (exit $ac_status); }; }; then
14077   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
14078 else
14079   echo "$as_me: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 fi
14082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14083         done
14084         eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
14085         LIBS="$ac_save_LIBS"
14086 fi
14087
14088 fi
14089
14090
14091 eval "ac_res=\$ac_cv_funclib_bswap16"
14092
14093 if false; then
14094
14095 for ac_func in bswap16
14096 do
14097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14098 echo "$as_me:14098: checking for $ac_func" >&5
14099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14100 if eval "test \"\${$as_ac_var+set}\" = set"; then
14101   echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103   cat >conftest.$ac_ext <<_ACEOF
14104 #line 14104 "configure"
14105 #include "confdefs.h"
14106 /* System header to define __stub macros and hopefully few prototypes,
14107     which can conflict with char $ac_func (); below.  */
14108 #include <assert.h>
14109 /* Override any gcc2 internal prototype to avoid an error.  */
14110 #ifdef __cplusplus
14111 extern "C"
14112 #endif
14113 /* We use char because int might match the return type of a gcc2
14114    builtin and then its argument prototype would still apply.  */
14115 char $ac_func ();
14116 char (*f) ();
14117
14118 #ifdef F77_DUMMY_MAIN
14119 #  ifdef __cplusplus
14120      extern "C"
14121 #  endif
14122    int F77_DUMMY_MAIN() { return 1; }
14123 #endif
14124 int
14125 main ()
14126 {
14127 /* The GNU C library defines this for functions which it implements
14128     to always fail with ENOSYS.  Some functions are actually named
14129     something starting with __ and the normal name is an alias.  */
14130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14131 choke me
14132 #else
14133 f = $ac_func;
14134 #endif
14135
14136   ;
14137   return 0;
14138 }
14139 _ACEOF
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (eval echo "$as_me:14141: \"$ac_link\"") >&5
14142   (eval $ac_link) 2>&5
14143   ac_status=$?
14144   echo "$as_me:14144: \$? = $ac_status" >&5
14145   (exit $ac_status); } &&
14146          { ac_try='test -s conftest$ac_exeext'
14147   { (eval echo "$as_me:14147: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:14150: \$? = $ac_status" >&5
14151   (exit $ac_status); }; }; then
14152   eval "$as_ac_var=yes"
14153 else
14154   echo "$as_me: failed program was:" >&5
14155 cat conftest.$ac_ext >&5
14156 eval "$as_ac_var=no"
14157 fi
14158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14159 fi
14160 echo "$as_me:14160: result: `eval echo '${'$as_ac_var'}'`" >&5
14161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14162 if test `eval echo '${'$as_ac_var'}'` = yes; then
14163   cat >>confdefs.h <<_ACEOF
14164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14165 _ACEOF
14166
14167 fi
14168 done
14169
14170 fi
14171 # bswap16
14172 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14173 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14174 eval "LIB_bswap16=$ac_res"
14175
14176 case "$ac_res" in
14177         yes)
14178         eval "ac_cv_func_bswap16=yes"
14179         eval "LIB_bswap16="
14180         cat >>confdefs.h <<_ACEOF
14181 #define $ac_tr_func 1
14182 _ACEOF
14183
14184         echo "$as_me:14184: result: yes" >&5
14185 echo "${ECHO_T}yes" >&6
14186         ;;
14187         no)
14188         eval "ac_cv_func_bswap16=no"
14189         eval "LIB_bswap16="
14190         echo "$as_me:14190: result: no" >&5
14191 echo "${ECHO_T}no" >&6
14192         ;;
14193         *)
14194         eval "ac_cv_func_bswap16=yes"
14195         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14196         cat >>confdefs.h <<_ACEOF
14197 #define $ac_tr_func 1
14198 _ACEOF
14199
14200         cat >>confdefs.h <<_ACEOF
14201 #define $ac_tr_lib 1
14202 _ACEOF
14203
14204         echo "$as_me:14204: result: yes, in $ac_res" >&5
14205 echo "${ECHO_T}yes, in $ac_res" >&6
14206         ;;
14207 esac
14208
14209
14210
14211
14212
14213
14214 echo "$as_me:14214: checking for bswap32" >&5
14215 echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
14216 if test "${ac_cv_funclib_bswap32+set}" = set; then
14217   echo $ECHO_N "(cached) $ECHO_C" >&6
14218 else
14219
14220 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
14221         ac_save_LIBS="$LIBS"
14222         for ac_lib in "" ; do
14223                 case "$ac_lib" in
14224                 "") ;;
14225                 yes) ac_lib="" ;;
14226                 no) continue ;;
14227                 -l*) ;;
14228                 *) ac_lib="-l$ac_lib" ;;
14229                 esac
14230                 LIBS=" $ac_lib  $ac_save_LIBS"
14231                 cat >conftest.$ac_ext <<_ACEOF
14232 #line 14232 "configure"
14233 #include "confdefs.h"
14234 #ifdef HAVE_SYS_BSWAP_H
14235 #include <sys/bswap.h>
14236 #endif
14237 #ifdef F77_DUMMY_MAIN
14238 #  ifdef __cplusplus
14239      extern "C"
14240 #  endif
14241    int F77_DUMMY_MAIN() { return 1; }
14242 #endif
14243 int
14244 main ()
14245 {
14246 bswap32(0)
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 rm -f conftest.$ac_objext conftest$ac_exeext
14252 if { (eval echo "$as_me:14252: \"$ac_link\"") >&5
14253   (eval $ac_link) 2>&5
14254   ac_status=$?
14255   echo "$as_me:14255: \$? = $ac_status" >&5
14256   (exit $ac_status); } &&
14257          { ac_try='test -s conftest$ac_exeext'
14258   { (eval echo "$as_me:14258: \"$ac_try\"") >&5
14259   (eval $ac_try) 2>&5
14260   ac_status=$?
14261   echo "$as_me:14261: \$? = $ac_status" >&5
14262   (exit $ac_status); }; }; then
14263   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
14264 else
14265   echo "$as_me: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14267 fi
14268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14269         done
14270         eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
14271         LIBS="$ac_save_LIBS"
14272 fi
14273
14274 fi
14275
14276
14277 eval "ac_res=\$ac_cv_funclib_bswap32"
14278
14279 if false; then
14280
14281 for ac_func in bswap32
14282 do
14283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14284 echo "$as_me:14284: checking for $ac_func" >&5
14285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14286 if eval "test \"\${$as_ac_var+set}\" = set"; then
14287   echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289   cat >conftest.$ac_ext <<_ACEOF
14290 #line 14290 "configure"
14291 #include "confdefs.h"
14292 /* System header to define __stub macros and hopefully few prototypes,
14293     which can conflict with char $ac_func (); below.  */
14294 #include <assert.h>
14295 /* Override any gcc2 internal prototype to avoid an error.  */
14296 #ifdef __cplusplus
14297 extern "C"
14298 #endif
14299 /* We use char because int might match the return type of a gcc2
14300    builtin and then its argument prototype would still apply.  */
14301 char $ac_func ();
14302 char (*f) ();
14303
14304 #ifdef F77_DUMMY_MAIN
14305 #  ifdef __cplusplus
14306      extern "C"
14307 #  endif
14308    int F77_DUMMY_MAIN() { return 1; }
14309 #endif
14310 int
14311 main ()
14312 {
14313 /* The GNU C library defines this for functions which it implements
14314     to always fail with ENOSYS.  Some functions are actually named
14315     something starting with __ and the normal name is an alias.  */
14316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14317 choke me
14318 #else
14319 f = $ac_func;
14320 #endif
14321
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 rm -f conftest.$ac_objext conftest$ac_exeext
14327 if { (eval echo "$as_me:14327: \"$ac_link\"") >&5
14328   (eval $ac_link) 2>&5
14329   ac_status=$?
14330   echo "$as_me:14330: \$? = $ac_status" >&5
14331   (exit $ac_status); } &&
14332          { ac_try='test -s conftest$ac_exeext'
14333   { (eval echo "$as_me:14333: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:14336: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }; then
14338   eval "$as_ac_var=yes"
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342 eval "$as_ac_var=no"
14343 fi
14344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14345 fi
14346 echo "$as_me:14346: result: `eval echo '${'$as_ac_var'}'`" >&5
14347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14348 if test `eval echo '${'$as_ac_var'}'` = yes; then
14349   cat >>confdefs.h <<_ACEOF
14350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14351 _ACEOF
14352
14353 fi
14354 done
14355
14356 fi
14357 # bswap32
14358 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14359 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14360 eval "LIB_bswap32=$ac_res"
14361
14362 case "$ac_res" in
14363         yes)
14364         eval "ac_cv_func_bswap32=yes"
14365         eval "LIB_bswap32="
14366         cat >>confdefs.h <<_ACEOF
14367 #define $ac_tr_func 1
14368 _ACEOF
14369
14370         echo "$as_me:14370: result: yes" >&5
14371 echo "${ECHO_T}yes" >&6
14372         ;;
14373         no)
14374         eval "ac_cv_func_bswap32=no"
14375         eval "LIB_bswap32="
14376         echo "$as_me:14376: result: no" >&5
14377 echo "${ECHO_T}no" >&6
14378         ;;
14379         *)
14380         eval "ac_cv_func_bswap32=yes"
14381         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14382         cat >>confdefs.h <<_ACEOF
14383 #define $ac_tr_func 1
14384 _ACEOF
14385
14386         cat >>confdefs.h <<_ACEOF
14387 #define $ac_tr_lib 1
14388 _ACEOF
14389
14390         echo "$as_me:14390: result: yes, in $ac_res" >&5
14391 echo "${ECHO_T}yes, in $ac_res" >&6
14392         ;;
14393 esac
14394
14395
14396
14397
14398
14399
14400 echo "$as_me:14400: checking for pidfile" >&5
14401 echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
14402 if test "${ac_cv_funclib_pidfile+set}" = set; then
14403   echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405
14406 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
14407         ac_save_LIBS="$LIBS"
14408         for ac_lib in "" util; do
14409                 case "$ac_lib" in
14410                 "") ;;
14411                 yes) ac_lib="" ;;
14412                 no) continue ;;
14413                 -l*) ;;
14414                 *) ac_lib="-l$ac_lib" ;;
14415                 esac
14416                 LIBS=" $ac_lib  $ac_save_LIBS"
14417                 cat >conftest.$ac_ext <<_ACEOF
14418 #line 14418 "configure"
14419 #include "confdefs.h"
14420 #ifdef HAVE_UTIL_H
14421 #include <util.h>
14422 #endif
14423 #ifdef F77_DUMMY_MAIN
14424 #  ifdef __cplusplus
14425      extern "C"
14426 #  endif
14427    int F77_DUMMY_MAIN() { return 1; }
14428 #endif
14429 int
14430 main ()
14431 {
14432 pidfile(0)
14433   ;
14434   return 0;
14435 }
14436 _ACEOF
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (eval echo "$as_me:14438: \"$ac_link\"") >&5
14439   (eval $ac_link) 2>&5
14440   ac_status=$?
14441   echo "$as_me:14441: \$? = $ac_status" >&5
14442   (exit $ac_status); } &&
14443          { ac_try='test -s conftest$ac_exeext'
14444   { (eval echo "$as_me:14444: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:14447: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449   eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
14450 else
14451   echo "$as_me: failed program was:" >&5
14452 cat conftest.$ac_ext >&5
14453 fi
14454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14455         done
14456         eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
14457         LIBS="$ac_save_LIBS"
14458 fi
14459
14460 fi
14461
14462
14463 eval "ac_res=\$ac_cv_funclib_pidfile"
14464
14465 if false; then
14466
14467 for ac_func in pidfile
14468 do
14469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14470 echo "$as_me:14470: checking for $ac_func" >&5
14471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14472 if eval "test \"\${$as_ac_var+set}\" = set"; then
14473   echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475   cat >conftest.$ac_ext <<_ACEOF
14476 #line 14476 "configure"
14477 #include "confdefs.h"
14478 /* System header to define __stub macros and hopefully few prototypes,
14479     which can conflict with char $ac_func (); below.  */
14480 #include <assert.h>
14481 /* Override any gcc2 internal prototype to avoid an error.  */
14482 #ifdef __cplusplus
14483 extern "C"
14484 #endif
14485 /* We use char because int might match the return type of a gcc2
14486    builtin and then its argument prototype would still apply.  */
14487 char $ac_func ();
14488 char (*f) ();
14489
14490 #ifdef F77_DUMMY_MAIN
14491 #  ifdef __cplusplus
14492      extern "C"
14493 #  endif
14494    int F77_DUMMY_MAIN() { return 1; }
14495 #endif
14496 int
14497 main ()
14498 {
14499 /* The GNU C library defines this for functions which it implements
14500     to always fail with ENOSYS.  Some functions are actually named
14501     something starting with __ and the normal name is an alias.  */
14502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14503 choke me
14504 #else
14505 f = $ac_func;
14506 #endif
14507
14508   ;
14509   return 0;
14510 }
14511 _ACEOF
14512 rm -f conftest.$ac_objext conftest$ac_exeext
14513 if { (eval echo "$as_me:14513: \"$ac_link\"") >&5
14514   (eval $ac_link) 2>&5
14515   ac_status=$?
14516   echo "$as_me:14516: \$? = $ac_status" >&5
14517   (exit $ac_status); } &&
14518          { ac_try='test -s conftest$ac_exeext'
14519   { (eval echo "$as_me:14519: \"$ac_try\"") >&5
14520   (eval $ac_try) 2>&5
14521   ac_status=$?
14522   echo "$as_me:14522: \$? = $ac_status" >&5
14523   (exit $ac_status); }; }; then
14524   eval "$as_ac_var=yes"
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14528 eval "$as_ac_var=no"
14529 fi
14530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14531 fi
14532 echo "$as_me:14532: result: `eval echo '${'$as_ac_var'}'`" >&5
14533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14534 if test `eval echo '${'$as_ac_var'}'` = yes; then
14535   cat >>confdefs.h <<_ACEOF
14536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14537 _ACEOF
14538
14539 fi
14540 done
14541
14542 fi
14543 # pidfile
14544 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14545 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14546 eval "LIB_pidfile=$ac_res"
14547
14548 case "$ac_res" in
14549         yes)
14550         eval "ac_cv_func_pidfile=yes"
14551         eval "LIB_pidfile="
14552         cat >>confdefs.h <<_ACEOF
14553 #define $ac_tr_func 1
14554 _ACEOF
14555
14556         echo "$as_me:14556: result: yes" >&5
14557 echo "${ECHO_T}yes" >&6
14558         ;;
14559         no)
14560         eval "ac_cv_func_pidfile=no"
14561         eval "LIB_pidfile="
14562         echo "$as_me:14562: result: no" >&5
14563 echo "${ECHO_T}no" >&6
14564         ;;
14565         *)
14566         eval "ac_cv_func_pidfile=yes"
14567         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14568         cat >>confdefs.h <<_ACEOF
14569 #define $ac_tr_func 1
14570 _ACEOF
14571
14572         cat >>confdefs.h <<_ACEOF
14573 #define $ac_tr_lib 1
14574 _ACEOF
14575
14576         echo "$as_me:14576: result: yes, in $ac_res" >&5
14577 echo "${ECHO_T}yes, in $ac_res" >&6
14578         ;;
14579 esac
14580
14581
14582
14583
14584
14585
14586
14587 echo "$as_me:14587: checking for getaddrinfo" >&5
14588 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
14589 if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
14590   echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592
14593 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
14594         ac_save_LIBS="$LIBS"
14595         for ac_lib in "" ; do
14596                 case "$ac_lib" in
14597                 "") ;;
14598                 yes) ac_lib="" ;;
14599                 no) continue ;;
14600                 -l*) ;;
14601                 *) ac_lib="-l$ac_lib" ;;
14602                 esac
14603                 LIBS=" $ac_lib  $ac_save_LIBS"
14604                 cat >conftest.$ac_ext <<_ACEOF
14605 #line 14605 "configure"
14606 #include "confdefs.h"
14607 #ifdef HAVE_NETDB_H
14608 #include <netdb.h>
14609 #endif
14610 #ifdef F77_DUMMY_MAIN
14611 #  ifdef __cplusplus
14612      extern "C"
14613 #  endif
14614    int F77_DUMMY_MAIN() { return 1; }
14615 #endif
14616 int
14617 main ()
14618 {
14619 getaddrinfo(0,0,0,0)
14620   ;
14621   return 0;
14622 }
14623 _ACEOF
14624 rm -f conftest.$ac_objext conftest$ac_exeext
14625 if { (eval echo "$as_me:14625: \"$ac_link\"") >&5
14626   (eval $ac_link) 2>&5
14627   ac_status=$?
14628   echo "$as_me:14628: \$? = $ac_status" >&5
14629   (exit $ac_status); } &&
14630          { ac_try='test -s conftest$ac_exeext'
14631   { (eval echo "$as_me:14631: \"$ac_try\"") >&5
14632   (eval $ac_try) 2>&5
14633   ac_status=$?
14634   echo "$as_me:14634: \$? = $ac_status" >&5
14635   (exit $ac_status); }; }; then
14636   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
14637 else
14638   echo "$as_me: failed program was:" >&5
14639 cat conftest.$ac_ext >&5
14640 fi
14641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14642         done
14643         eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
14644         LIBS="$ac_save_LIBS"
14645 fi
14646
14647 fi
14648
14649
14650 eval "ac_res=\$ac_cv_funclib_getaddrinfo"
14651
14652 if false; then
14653
14654 for ac_func in getaddrinfo
14655 do
14656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14657 echo "$as_me:14657: checking for $ac_func" >&5
14658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14659 if eval "test \"\${$as_ac_var+set}\" = set"; then
14660   echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662   cat >conftest.$ac_ext <<_ACEOF
14663 #line 14663 "configure"
14664 #include "confdefs.h"
14665 /* System header to define __stub macros and hopefully few prototypes,
14666     which can conflict with char $ac_func (); below.  */
14667 #include <assert.h>
14668 /* Override any gcc2 internal prototype to avoid an error.  */
14669 #ifdef __cplusplus
14670 extern "C"
14671 #endif
14672 /* We use char because int might match the return type of a gcc2
14673    builtin and then its argument prototype would still apply.  */
14674 char $ac_func ();
14675 char (*f) ();
14676
14677 #ifdef F77_DUMMY_MAIN
14678 #  ifdef __cplusplus
14679      extern "C"
14680 #  endif
14681    int F77_DUMMY_MAIN() { return 1; }
14682 #endif
14683 int
14684 main ()
14685 {
14686 /* The GNU C library defines this for functions which it implements
14687     to always fail with ENOSYS.  Some functions are actually named
14688     something starting with __ and the normal name is an alias.  */
14689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14690 choke me
14691 #else
14692 f = $ac_func;
14693 #endif
14694
14695   ;
14696   return 0;
14697 }
14698 _ACEOF
14699 rm -f conftest.$ac_objext conftest$ac_exeext
14700 if { (eval echo "$as_me:14700: \"$ac_link\"") >&5
14701   (eval $ac_link) 2>&5
14702   ac_status=$?
14703   echo "$as_me:14703: \$? = $ac_status" >&5
14704   (exit $ac_status); } &&
14705          { ac_try='test -s conftest$ac_exeext'
14706   { (eval echo "$as_me:14706: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:14709: \$? = $ac_status" >&5
14710   (exit $ac_status); }; }; then
14711   eval "$as_ac_var=yes"
14712 else
14713   echo "$as_me: failed program was:" >&5
14714 cat conftest.$ac_ext >&5
14715 eval "$as_ac_var=no"
14716 fi
14717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14718 fi
14719 echo "$as_me:14719: result: `eval echo '${'$as_ac_var'}'`" >&5
14720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14721 if test `eval echo '${'$as_ac_var'}'` = yes; then
14722   cat >>confdefs.h <<_ACEOF
14723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14724 _ACEOF
14725
14726 fi
14727 done
14728
14729 fi
14730 # getaddrinfo
14731 eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14732 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14733 eval "LIB_getaddrinfo=$ac_res"
14734
14735 case "$ac_res" in
14736         yes)
14737         eval "ac_cv_func_getaddrinfo=yes"
14738         eval "LIB_getaddrinfo="
14739         cat >>confdefs.h <<_ACEOF
14740 #define $ac_tr_func 1
14741 _ACEOF
14742
14743         echo "$as_me:14743: result: yes" >&5
14744 echo "${ECHO_T}yes" >&6
14745         ;;
14746         no)
14747         eval "ac_cv_func_getaddrinfo=no"
14748         eval "LIB_getaddrinfo="
14749         echo "$as_me:14749: result: no" >&5
14750 echo "${ECHO_T}no" >&6
14751         ;;
14752         *)
14753         eval "ac_cv_func_getaddrinfo=yes"
14754         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14755         cat >>confdefs.h <<_ACEOF
14756 #define $ac_tr_func 1
14757 _ACEOF
14758
14759         cat >>confdefs.h <<_ACEOF
14760 #define $ac_tr_lib 1
14761 _ACEOF
14762
14763         echo "$as_me:14763: result: yes, in $ac_res" >&5
14764 echo "${ECHO_T}yes, in $ac_res" >&6
14765         ;;
14766 esac
14767
14768
14769 if test -n "$LIB_getaddrinfo"; then
14770         LIBS="$LIB_getaddrinfo $LIBS"
14771 fi
14772
14773 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
14774         LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
14775 fi
14776
14777
14778
14779
14780
14781
14782 echo "$as_me:14782: checking for getnameinfo" >&5
14783 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
14784 if test "${ac_cv_funclib_getnameinfo+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787
14788 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
14789         ac_save_LIBS="$LIBS"
14790         for ac_lib in "" ; do
14791                 case "$ac_lib" in
14792                 "") ;;
14793                 yes) ac_lib="" ;;
14794                 no) continue ;;
14795                 -l*) ;;
14796                 *) ac_lib="-l$ac_lib" ;;
14797                 esac
14798                 LIBS=" $ac_lib  $ac_save_LIBS"
14799                 cat >conftest.$ac_ext <<_ACEOF
14800 #line 14800 "configure"
14801 #include "confdefs.h"
14802 #ifdef HAVE_NETDB_H
14803 #include <netdb.h>
14804 #endif
14805 #ifdef F77_DUMMY_MAIN
14806 #  ifdef __cplusplus
14807      extern "C"
14808 #  endif
14809    int F77_DUMMY_MAIN() { return 1; }
14810 #endif
14811 int
14812 main ()
14813 {
14814 getnameinfo(0,0,0,0,0,0,0)
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 rm -f conftest.$ac_objext conftest$ac_exeext
14820 if { (eval echo "$as_me:14820: \"$ac_link\"") >&5
14821   (eval $ac_link) 2>&5
14822   ac_status=$?
14823   echo "$as_me:14823: \$? = $ac_status" >&5
14824   (exit $ac_status); } &&
14825          { ac_try='test -s conftest$ac_exeext'
14826   { (eval echo "$as_me:14826: \"$ac_try\"") >&5
14827   (eval $ac_try) 2>&5
14828   ac_status=$?
14829   echo "$as_me:14829: \$? = $ac_status" >&5
14830   (exit $ac_status); }; }; then
14831   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
14832 else
14833   echo "$as_me: failed program was:" >&5
14834 cat conftest.$ac_ext >&5
14835 fi
14836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14837         done
14838         eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
14839         LIBS="$ac_save_LIBS"
14840 fi
14841
14842 fi
14843
14844
14845 eval "ac_res=\$ac_cv_funclib_getnameinfo"
14846
14847 if false; then
14848
14849 for ac_func in getnameinfo
14850 do
14851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14852 echo "$as_me:14852: checking for $ac_func" >&5
14853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14854 if eval "test \"\${$as_ac_var+set}\" = set"; then
14855   echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857   cat >conftest.$ac_ext <<_ACEOF
14858 #line 14858 "configure"
14859 #include "confdefs.h"
14860 /* System header to define __stub macros and hopefully few prototypes,
14861     which can conflict with char $ac_func (); below.  */
14862 #include <assert.h>
14863 /* Override any gcc2 internal prototype to avoid an error.  */
14864 #ifdef __cplusplus
14865 extern "C"
14866 #endif
14867 /* We use char because int might match the return type of a gcc2
14868    builtin and then its argument prototype would still apply.  */
14869 char $ac_func ();
14870 char (*f) ();
14871
14872 #ifdef F77_DUMMY_MAIN
14873 #  ifdef __cplusplus
14874      extern "C"
14875 #  endif
14876    int F77_DUMMY_MAIN() { return 1; }
14877 #endif
14878 int
14879 main ()
14880 {
14881 /* The GNU C library defines this for functions which it implements
14882     to always fail with ENOSYS.  Some functions are actually named
14883     something starting with __ and the normal name is an alias.  */
14884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14885 choke me
14886 #else
14887 f = $ac_func;
14888 #endif
14889
14890   ;
14891   return 0;
14892 }
14893 _ACEOF
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (eval echo "$as_me:14895: \"$ac_link\"") >&5
14896   (eval $ac_link) 2>&5
14897   ac_status=$?
14898   echo "$as_me:14898: \$? = $ac_status" >&5
14899   (exit $ac_status); } &&
14900          { ac_try='test -s conftest$ac_exeext'
14901   { (eval echo "$as_me:14901: \"$ac_try\"") >&5
14902   (eval $ac_try) 2>&5
14903   ac_status=$?
14904   echo "$as_me:14904: \$? = $ac_status" >&5
14905   (exit $ac_status); }; }; then
14906   eval "$as_ac_var=yes"
14907 else
14908   echo "$as_me: failed program was:" >&5
14909 cat conftest.$ac_ext >&5
14910 eval "$as_ac_var=no"
14911 fi
14912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14913 fi
14914 echo "$as_me:14914: result: `eval echo '${'$as_ac_var'}'`" >&5
14915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14916 if test `eval echo '${'$as_ac_var'}'` = yes; then
14917   cat >>confdefs.h <<_ACEOF
14918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14919 _ACEOF
14920
14921 fi
14922 done
14923
14924 fi
14925 # getnameinfo
14926 eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14927 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14928 eval "LIB_getnameinfo=$ac_res"
14929
14930 case "$ac_res" in
14931         yes)
14932         eval "ac_cv_func_getnameinfo=yes"
14933         eval "LIB_getnameinfo="
14934         cat >>confdefs.h <<_ACEOF
14935 #define $ac_tr_func 1
14936 _ACEOF
14937
14938         echo "$as_me:14938: result: yes" >&5
14939 echo "${ECHO_T}yes" >&6
14940         ;;
14941         no)
14942         eval "ac_cv_func_getnameinfo=no"
14943         eval "LIB_getnameinfo="
14944         echo "$as_me:14944: result: no" >&5
14945 echo "${ECHO_T}no" >&6
14946         ;;
14947         *)
14948         eval "ac_cv_func_getnameinfo=yes"
14949         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14950         cat >>confdefs.h <<_ACEOF
14951 #define $ac_tr_func 1
14952 _ACEOF
14953
14954         cat >>confdefs.h <<_ACEOF
14955 #define $ac_tr_lib 1
14956 _ACEOF
14957
14958         echo "$as_me:14958: result: yes, in $ac_res" >&5
14959 echo "${ECHO_T}yes, in $ac_res" >&6
14960         ;;
14961 esac
14962
14963
14964 if test -n "$LIB_getnameinfo"; then
14965         LIBS="$LIB_getnameinfo $LIBS"
14966 fi
14967
14968 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
14969         LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
14970 fi
14971
14972
14973
14974
14975
14976
14977 echo "$as_me:14977: checking for freeaddrinfo" >&5
14978 echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
14979 if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
14980   echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982
14983 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
14984         ac_save_LIBS="$LIBS"
14985         for ac_lib in "" ; do
14986                 case "$ac_lib" in
14987                 "") ;;
14988                 yes) ac_lib="" ;;
14989                 no) continue ;;
14990                 -l*) ;;
14991                 *) ac_lib="-l$ac_lib" ;;
14992                 esac
14993                 LIBS=" $ac_lib  $ac_save_LIBS"
14994                 cat >conftest.$ac_ext <<_ACEOF
14995 #line 14995 "configure"
14996 #include "confdefs.h"
14997 #ifdef HAVE_NETDB_H
14998 #include <netdb.h>
14999 #endif
15000 #ifdef F77_DUMMY_MAIN
15001 #  ifdef __cplusplus
15002      extern "C"
15003 #  endif
15004    int F77_DUMMY_MAIN() { return 1; }
15005 #endif
15006 int
15007 main ()
15008 {
15009 freeaddrinfo(0)
15010   ;
15011   return 0;
15012 }
15013 _ACEOF
15014 rm -f conftest.$ac_objext conftest$ac_exeext
15015 if { (eval echo "$as_me:15015: \"$ac_link\"") >&5
15016   (eval $ac_link) 2>&5
15017   ac_status=$?
15018   echo "$as_me:15018: \$? = $ac_status" >&5
15019   (exit $ac_status); } &&
15020          { ac_try='test -s conftest$ac_exeext'
15021   { (eval echo "$as_me:15021: \"$ac_try\"") >&5
15022   (eval $ac_try) 2>&5
15023   ac_status=$?
15024   echo "$as_me:15024: \$? = $ac_status" >&5
15025   (exit $ac_status); }; }; then
15026   eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
15027 else
15028   echo "$as_me: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15030 fi
15031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15032         done
15033         eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
15034         LIBS="$ac_save_LIBS"
15035 fi
15036
15037 fi
15038
15039
15040 eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
15041
15042 if false; then
15043
15044 for ac_func in freeaddrinfo
15045 do
15046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15047 echo "$as_me:15047: checking for $ac_func" >&5
15048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15049 if eval "test \"\${$as_ac_var+set}\" = set"; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   cat >conftest.$ac_ext <<_ACEOF
15053 #line 15053 "configure"
15054 #include "confdefs.h"
15055 /* System header to define __stub macros and hopefully few prototypes,
15056     which can conflict with char $ac_func (); below.  */
15057 #include <assert.h>
15058 /* Override any gcc2 internal prototype to avoid an error.  */
15059 #ifdef __cplusplus
15060 extern "C"
15061 #endif
15062 /* We use char because int might match the return type of a gcc2
15063    builtin and then its argument prototype would still apply.  */
15064 char $ac_func ();
15065 char (*f) ();
15066
15067 #ifdef F77_DUMMY_MAIN
15068 #  ifdef __cplusplus
15069      extern "C"
15070 #  endif
15071    int F77_DUMMY_MAIN() { return 1; }
15072 #endif
15073 int
15074 main ()
15075 {
15076 /* The GNU C library defines this for functions which it implements
15077     to always fail with ENOSYS.  Some functions are actually named
15078     something starting with __ and the normal name is an alias.  */
15079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15080 choke me
15081 #else
15082 f = $ac_func;
15083 #endif
15084
15085   ;
15086   return 0;
15087 }
15088 _ACEOF
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (eval echo "$as_me:15090: \"$ac_link\"") >&5
15091   (eval $ac_link) 2>&5
15092   ac_status=$?
15093   echo "$as_me:15093: \$? = $ac_status" >&5
15094   (exit $ac_status); } &&
15095          { ac_try='test -s conftest$ac_exeext'
15096   { (eval echo "$as_me:15096: \"$ac_try\"") >&5
15097   (eval $ac_try) 2>&5
15098   ac_status=$?
15099   echo "$as_me:15099: \$? = $ac_status" >&5
15100   (exit $ac_status); }; }; then
15101   eval "$as_ac_var=yes"
15102 else
15103   echo "$as_me: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15105 eval "$as_ac_var=no"
15106 fi
15107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15108 fi
15109 echo "$as_me:15109: result: `eval echo '${'$as_ac_var'}'`" >&5
15110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15111 if test `eval echo '${'$as_ac_var'}'` = yes; then
15112   cat >>confdefs.h <<_ACEOF
15113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15114 _ACEOF
15115
15116 fi
15117 done
15118
15119 fi
15120 # freeaddrinfo
15121 eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15122 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15123 eval "LIB_freeaddrinfo=$ac_res"
15124
15125 case "$ac_res" in
15126         yes)
15127         eval "ac_cv_func_freeaddrinfo=yes"
15128         eval "LIB_freeaddrinfo="
15129         cat >>confdefs.h <<_ACEOF
15130 #define $ac_tr_func 1
15131 _ACEOF
15132
15133         echo "$as_me:15133: result: yes" >&5
15134 echo "${ECHO_T}yes" >&6
15135         ;;
15136         no)
15137         eval "ac_cv_func_freeaddrinfo=no"
15138         eval "LIB_freeaddrinfo="
15139         echo "$as_me:15139: result: no" >&5
15140 echo "${ECHO_T}no" >&6
15141         ;;
15142         *)
15143         eval "ac_cv_func_freeaddrinfo=yes"
15144         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15145         cat >>confdefs.h <<_ACEOF
15146 #define $ac_tr_func 1
15147 _ACEOF
15148
15149         cat >>confdefs.h <<_ACEOF
15150 #define $ac_tr_lib 1
15151 _ACEOF
15152
15153         echo "$as_me:15153: result: yes, in $ac_res" >&5
15154 echo "${ECHO_T}yes, in $ac_res" >&6
15155         ;;
15156 esac
15157
15158
15159 if test -n "$LIB_freeaddrinfo"; then
15160         LIBS="$LIB_freeaddrinfo $LIBS"
15161 fi
15162
15163 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
15164         LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
15165 fi
15166
15167
15168
15169
15170
15171
15172 echo "$as_me:15172: checking for gai_strerror" >&5
15173 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
15174 if test "${ac_cv_funclib_gai_strerror+set}" = set; then
15175   echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177
15178 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
15179         ac_save_LIBS="$LIBS"
15180         for ac_lib in "" ; do
15181                 case "$ac_lib" in
15182                 "") ;;
15183                 yes) ac_lib="" ;;
15184                 no) continue ;;
15185                 -l*) ;;
15186                 *) ac_lib="-l$ac_lib" ;;
15187                 esac
15188                 LIBS=" $ac_lib  $ac_save_LIBS"
15189                 cat >conftest.$ac_ext <<_ACEOF
15190 #line 15190 "configure"
15191 #include "confdefs.h"
15192 #ifdef HAVE_NETDB_H
15193 #include <netdb.h>
15194 #endif
15195 #ifdef F77_DUMMY_MAIN
15196 #  ifdef __cplusplus
15197      extern "C"
15198 #  endif
15199    int F77_DUMMY_MAIN() { return 1; }
15200 #endif
15201 int
15202 main ()
15203 {
15204 gai_strerror(0)
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (eval echo "$as_me:15210: \"$ac_link\"") >&5
15211   (eval $ac_link) 2>&5
15212   ac_status=$?
15213   echo "$as_me:15213: \$? = $ac_status" >&5
15214   (exit $ac_status); } &&
15215          { ac_try='test -s conftest$ac_exeext'
15216   { (eval echo "$as_me:15216: \"$ac_try\"") >&5
15217   (eval $ac_try) 2>&5
15218   ac_status=$?
15219   echo "$as_me:15219: \$? = $ac_status" >&5
15220   (exit $ac_status); }; }; then
15221   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15225 fi
15226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15227         done
15228         eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
15229         LIBS="$ac_save_LIBS"
15230 fi
15231
15232 fi
15233
15234
15235 eval "ac_res=\$ac_cv_funclib_gai_strerror"
15236
15237 if false; then
15238
15239 for ac_func in gai_strerror
15240 do
15241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15242 echo "$as_me:15242: checking for $ac_func" >&5
15243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15244 if eval "test \"\${$as_ac_var+set}\" = set"; then
15245   echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247   cat >conftest.$ac_ext <<_ACEOF
15248 #line 15248 "configure"
15249 #include "confdefs.h"
15250 /* System header to define __stub macros and hopefully few prototypes,
15251     which can conflict with char $ac_func (); below.  */
15252 #include <assert.h>
15253 /* Override any gcc2 internal prototype to avoid an error.  */
15254 #ifdef __cplusplus
15255 extern "C"
15256 #endif
15257 /* We use char because int might match the return type of a gcc2
15258    builtin and then its argument prototype would still apply.  */
15259 char $ac_func ();
15260 char (*f) ();
15261
15262 #ifdef F77_DUMMY_MAIN
15263 #  ifdef __cplusplus
15264      extern "C"
15265 #  endif
15266    int F77_DUMMY_MAIN() { return 1; }
15267 #endif
15268 int
15269 main ()
15270 {
15271 /* The GNU C library defines this for functions which it implements
15272     to always fail with ENOSYS.  Some functions are actually named
15273     something starting with __ and the normal name is an alias.  */
15274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15275 choke me
15276 #else
15277 f = $ac_func;
15278 #endif
15279
15280   ;
15281   return 0;
15282 }
15283 _ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (eval echo "$as_me:15285: \"$ac_link\"") >&5
15286   (eval $ac_link) 2>&5
15287   ac_status=$?
15288   echo "$as_me:15288: \$? = $ac_status" >&5
15289   (exit $ac_status); } &&
15290          { ac_try='test -s conftest$ac_exeext'
15291   { (eval echo "$as_me:15291: \"$ac_try\"") >&5
15292   (eval $ac_try) 2>&5
15293   ac_status=$?
15294   echo "$as_me:15294: \$? = $ac_status" >&5
15295   (exit $ac_status); }; }; then
15296   eval "$as_ac_var=yes"
15297 else
15298   echo "$as_me: failed program was:" >&5
15299 cat conftest.$ac_ext >&5
15300 eval "$as_ac_var=no"
15301 fi
15302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15303 fi
15304 echo "$as_me:15304: result: `eval echo '${'$as_ac_var'}'`" >&5
15305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15306 if test `eval echo '${'$as_ac_var'}'` = yes; then
15307   cat >>confdefs.h <<_ACEOF
15308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15309 _ACEOF
15310
15311 fi
15312 done
15313
15314 fi
15315 # gai_strerror
15316 eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15317 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15318 eval "LIB_gai_strerror=$ac_res"
15319
15320 case "$ac_res" in
15321         yes)
15322         eval "ac_cv_func_gai_strerror=yes"
15323         eval "LIB_gai_strerror="
15324         cat >>confdefs.h <<_ACEOF
15325 #define $ac_tr_func 1
15326 _ACEOF
15327
15328         echo "$as_me:15328: result: yes" >&5
15329 echo "${ECHO_T}yes" >&6
15330         ;;
15331         no)
15332         eval "ac_cv_func_gai_strerror=no"
15333         eval "LIB_gai_strerror="
15334         echo "$as_me:15334: result: no" >&5
15335 echo "${ECHO_T}no" >&6
15336         ;;
15337         *)
15338         eval "ac_cv_func_gai_strerror=yes"
15339         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15340         cat >>confdefs.h <<_ACEOF
15341 #define $ac_tr_func 1
15342 _ACEOF
15343
15344         cat >>confdefs.h <<_ACEOF
15345 #define $ac_tr_lib 1
15346 _ACEOF
15347
15348         echo "$as_me:15348: result: yes, in $ac_res" >&5
15349 echo "${ECHO_T}yes, in $ac_res" >&6
15350         ;;
15351 esac
15352
15353
15354 if test -n "$LIB_gai_strerror"; then
15355         LIBS="$LIB_gai_strerror $LIBS"
15356 fi
15357
15358 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
15359         LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
15360 fi
15361
15362
15363 echo "$as_me:15363: checking for chown" >&5
15364 echo $ECHO_N "checking for chown... $ECHO_C" >&6
15365 if test "${ac_cv_func_chown+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   cat >conftest.$ac_ext <<_ACEOF
15369 #line 15369 "configure"
15370 #include "confdefs.h"
15371 /* System header to define __stub macros and hopefully few prototypes,
15372     which can conflict with char chown (); below.  */
15373 #include <assert.h>
15374 /* Override any gcc2 internal prototype to avoid an error.  */
15375 #ifdef __cplusplus
15376 extern "C"
15377 #endif
15378 /* We use char because int might match the return type of a gcc2
15379    builtin and then its argument prototype would still apply.  */
15380 char chown ();
15381 char (*f) ();
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 /* The GNU C library defines this for functions which it implements
15393     to always fail with ENOSYS.  Some functions are actually named
15394     something starting with __ and the normal name is an alias.  */
15395 #if defined (__stub_chown) || defined (__stub___chown)
15396 choke me
15397 #else
15398 f = chown;
15399 #endif
15400
15401   ;
15402   return 0;
15403 }
15404 _ACEOF
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (eval echo "$as_me:15406: \"$ac_link\"") >&5
15407   (eval $ac_link) 2>&5
15408   ac_status=$?
15409   echo "$as_me:15409: \$? = $ac_status" >&5
15410   (exit $ac_status); } &&
15411          { ac_try='test -s conftest$ac_exeext'
15412   { (eval echo "$as_me:15412: \"$ac_try\"") >&5
15413   (eval $ac_try) 2>&5
15414   ac_status=$?
15415   echo "$as_me:15415: \$? = $ac_status" >&5
15416   (exit $ac_status); }; }; then
15417   ac_cv_func_chown=yes
15418 else
15419   echo "$as_me: failed program was:" >&5
15420 cat conftest.$ac_ext >&5
15421 ac_cv_func_chown=no
15422 fi
15423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15424 fi
15425 echo "$as_me:15425: result: $ac_cv_func_chown" >&5
15426 echo "${ECHO_T}$ac_cv_func_chown" >&6
15427 if test $ac_cv_func_chown = yes; then
15428
15429 cat >>confdefs.h <<_ACEOF
15430 #define HAVE_CHOWN 1
15431 _ACEOF
15432
15433 else
15434   LIBOBJS="$LIBOBJS chown.$ac_objext"
15435 fi
15436 echo "$as_me:15436: checking for copyhostent" >&5
15437 echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
15438 if test "${ac_cv_func_copyhostent+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   cat >conftest.$ac_ext <<_ACEOF
15442 #line 15442 "configure"
15443 #include "confdefs.h"
15444 /* System header to define __stub macros and hopefully few prototypes,
15445     which can conflict with char copyhostent (); below.  */
15446 #include <assert.h>
15447 /* Override any gcc2 internal prototype to avoid an error.  */
15448 #ifdef __cplusplus
15449 extern "C"
15450 #endif
15451 /* We use char because int might match the return type of a gcc2
15452    builtin and then its argument prototype would still apply.  */
15453 char copyhostent ();
15454 char (*f) ();
15455
15456 #ifdef F77_DUMMY_MAIN
15457 #  ifdef __cplusplus
15458      extern "C"
15459 #  endif
15460    int F77_DUMMY_MAIN() { return 1; }
15461 #endif
15462 int
15463 main ()
15464 {
15465 /* The GNU C library defines this for functions which it implements
15466     to always fail with ENOSYS.  Some functions are actually named
15467     something starting with __ and the normal name is an alias.  */
15468 #if defined (__stub_copyhostent) || defined (__stub___copyhostent)
15469 choke me
15470 #else
15471 f = copyhostent;
15472 #endif
15473
15474   ;
15475   return 0;
15476 }
15477 _ACEOF
15478 rm -f conftest.$ac_objext conftest$ac_exeext
15479 if { (eval echo "$as_me:15479: \"$ac_link\"") >&5
15480   (eval $ac_link) 2>&5
15481   ac_status=$?
15482   echo "$as_me:15482: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -s conftest$ac_exeext'
15485   { (eval echo "$as_me:15485: \"$ac_try\"") >&5
15486   (eval $ac_try) 2>&5
15487   ac_status=$?
15488   echo "$as_me:15488: \$? = $ac_status" >&5
15489   (exit $ac_status); }; }; then
15490   ac_cv_func_copyhostent=yes
15491 else
15492   echo "$as_me: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15494 ac_cv_func_copyhostent=no
15495 fi
15496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15497 fi
15498 echo "$as_me:15498: result: $ac_cv_func_copyhostent" >&5
15499 echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
15500 if test $ac_cv_func_copyhostent = yes; then
15501
15502 cat >>confdefs.h <<_ACEOF
15503 #define HAVE_COPYHOSTENT 1
15504 _ACEOF
15505
15506 else
15507   LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
15508 fi
15509 echo "$as_me:15509: checking for daemon" >&5
15510 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
15511 if test "${ac_cv_func_daemon+set}" = set; then
15512   echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514   cat >conftest.$ac_ext <<_ACEOF
15515 #line 15515 "configure"
15516 #include "confdefs.h"
15517 /* System header to define __stub macros and hopefully few prototypes,
15518     which can conflict with char daemon (); below.  */
15519 #include <assert.h>
15520 /* Override any gcc2 internal prototype to avoid an error.  */
15521 #ifdef __cplusplus
15522 extern "C"
15523 #endif
15524 /* We use char because int might match the return type of a gcc2
15525    builtin and then its argument prototype would still apply.  */
15526 char daemon ();
15527 char (*f) ();
15528
15529 #ifdef F77_DUMMY_MAIN
15530 #  ifdef __cplusplus
15531      extern "C"
15532 #  endif
15533    int F77_DUMMY_MAIN() { return 1; }
15534 #endif
15535 int
15536 main ()
15537 {
15538 /* The GNU C library defines this for functions which it implements
15539     to always fail with ENOSYS.  Some functions are actually named
15540     something starting with __ and the normal name is an alias.  */
15541 #if defined (__stub_daemon) || defined (__stub___daemon)
15542 choke me
15543 #else
15544 f = daemon;
15545 #endif
15546
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (eval echo "$as_me:15552: \"$ac_link\"") >&5
15553   (eval $ac_link) 2>&5
15554   ac_status=$?
15555   echo "$as_me:15555: \$? = $ac_status" >&5
15556   (exit $ac_status); } &&
15557          { ac_try='test -s conftest$ac_exeext'
15558   { (eval echo "$as_me:15558: \"$ac_try\"") >&5
15559   (eval $ac_try) 2>&5
15560   ac_status=$?
15561   echo "$as_me:15561: \$? = $ac_status" >&5
15562   (exit $ac_status); }; }; then
15563   ac_cv_func_daemon=yes
15564 else
15565   echo "$as_me: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 ac_cv_func_daemon=no
15568 fi
15569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15570 fi
15571 echo "$as_me:15571: result: $ac_cv_func_daemon" >&5
15572 echo "${ECHO_T}$ac_cv_func_daemon" >&6
15573 if test $ac_cv_func_daemon = yes; then
15574
15575 cat >>confdefs.h <<_ACEOF
15576 #define HAVE_DAEMON 1
15577 _ACEOF
15578
15579 else
15580   LIBOBJS="$LIBOBJS daemon.$ac_objext"
15581 fi
15582 echo "$as_me:15582: checking for ecalloc" >&5
15583 echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
15584 if test "${ac_cv_func_ecalloc+set}" = set; then
15585   echo $ECHO_N "(cached) $ECHO_C" >&6
15586 else
15587   cat >conftest.$ac_ext <<_ACEOF
15588 #line 15588 "configure"
15589 #include "confdefs.h"
15590 /* System header to define __stub macros and hopefully few prototypes,
15591     which can conflict with char ecalloc (); below.  */
15592 #include <assert.h>
15593 /* Override any gcc2 internal prototype to avoid an error.  */
15594 #ifdef __cplusplus
15595 extern "C"
15596 #endif
15597 /* We use char because int might match the return type of a gcc2
15598    builtin and then its argument prototype would still apply.  */
15599 char ecalloc ();
15600 char (*f) ();
15601
15602 #ifdef F77_DUMMY_MAIN
15603 #  ifdef __cplusplus
15604      extern "C"
15605 #  endif
15606    int F77_DUMMY_MAIN() { return 1; }
15607 #endif
15608 int
15609 main ()
15610 {
15611 /* The GNU C library defines this for functions which it implements
15612     to always fail with ENOSYS.  Some functions are actually named
15613     something starting with __ and the normal name is an alias.  */
15614 #if defined (__stub_ecalloc) || defined (__stub___ecalloc)
15615 choke me
15616 #else
15617 f = ecalloc;
15618 #endif
15619
15620   ;
15621   return 0;
15622 }
15623 _ACEOF
15624 rm -f conftest.$ac_objext conftest$ac_exeext
15625 if { (eval echo "$as_me:15625: \"$ac_link\"") >&5
15626   (eval $ac_link) 2>&5
15627   ac_status=$?
15628   echo "$as_me:15628: \$? = $ac_status" >&5
15629   (exit $ac_status); } &&
15630          { ac_try='test -s conftest$ac_exeext'
15631   { (eval echo "$as_me:15631: \"$ac_try\"") >&5
15632   (eval $ac_try) 2>&5
15633   ac_status=$?
15634   echo "$as_me:15634: \$? = $ac_status" >&5
15635   (exit $ac_status); }; }; then
15636   ac_cv_func_ecalloc=yes
15637 else
15638   echo "$as_me: failed program was:" >&5
15639 cat conftest.$ac_ext >&5
15640 ac_cv_func_ecalloc=no
15641 fi
15642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15643 fi
15644 echo "$as_me:15644: result: $ac_cv_func_ecalloc" >&5
15645 echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
15646 if test $ac_cv_func_ecalloc = yes; then
15647
15648 cat >>confdefs.h <<_ACEOF
15649 #define HAVE_ECALLOC 1
15650 _ACEOF
15651
15652 else
15653   LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
15654 fi
15655 echo "$as_me:15655: checking for emalloc" >&5
15656 echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
15657 if test "${ac_cv_func_emalloc+set}" = set; then
15658   echo $ECHO_N "(cached) $ECHO_C" >&6
15659 else
15660   cat >conftest.$ac_ext <<_ACEOF
15661 #line 15661 "configure"
15662 #include "confdefs.h"
15663 /* System header to define __stub macros and hopefully few prototypes,
15664     which can conflict with char emalloc (); below.  */
15665 #include <assert.h>
15666 /* Override any gcc2 internal prototype to avoid an error.  */
15667 #ifdef __cplusplus
15668 extern "C"
15669 #endif
15670 /* We use char because int might match the return type of a gcc2
15671    builtin and then its argument prototype would still apply.  */
15672 char emalloc ();
15673 char (*f) ();
15674
15675 #ifdef F77_DUMMY_MAIN
15676 #  ifdef __cplusplus
15677      extern "C"
15678 #  endif
15679    int F77_DUMMY_MAIN() { return 1; }
15680 #endif
15681 int
15682 main ()
15683 {
15684 /* The GNU C library defines this for functions which it implements
15685     to always fail with ENOSYS.  Some functions are actually named
15686     something starting with __ and the normal name is an alias.  */
15687 #if defined (__stub_emalloc) || defined (__stub___emalloc)
15688 choke me
15689 #else
15690 f = emalloc;
15691 #endif
15692
15693   ;
15694   return 0;
15695 }
15696 _ACEOF
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (eval echo "$as_me:15698: \"$ac_link\"") >&5
15699   (eval $ac_link) 2>&5
15700   ac_status=$?
15701   echo "$as_me:15701: \$? = $ac_status" >&5
15702   (exit $ac_status); } &&
15703          { ac_try='test -s conftest$ac_exeext'
15704   { (eval echo "$as_me:15704: \"$ac_try\"") >&5
15705   (eval $ac_try) 2>&5
15706   ac_status=$?
15707   echo "$as_me:15707: \$? = $ac_status" >&5
15708   (exit $ac_status); }; }; then
15709   ac_cv_func_emalloc=yes
15710 else
15711   echo "$as_me: failed program was:" >&5
15712 cat conftest.$ac_ext >&5
15713 ac_cv_func_emalloc=no
15714 fi
15715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15716 fi
15717 echo "$as_me:15717: result: $ac_cv_func_emalloc" >&5
15718 echo "${ECHO_T}$ac_cv_func_emalloc" >&6
15719 if test $ac_cv_func_emalloc = yes; then
15720
15721 cat >>confdefs.h <<_ACEOF
15722 #define HAVE_EMALLOC 1
15723 _ACEOF
15724
15725 else
15726   LIBOBJS="$LIBOBJS emalloc.$ac_objext"
15727 fi
15728 echo "$as_me:15728: checking for erealloc" >&5
15729 echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
15730 if test "${ac_cv_func_erealloc+set}" = set; then
15731   echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733   cat >conftest.$ac_ext <<_ACEOF
15734 #line 15734 "configure"
15735 #include "confdefs.h"
15736 /* System header to define __stub macros and hopefully few prototypes,
15737     which can conflict with char erealloc (); below.  */
15738 #include <assert.h>
15739 /* Override any gcc2 internal prototype to avoid an error.  */
15740 #ifdef __cplusplus
15741 extern "C"
15742 #endif
15743 /* We use char because int might match the return type of a gcc2
15744    builtin and then its argument prototype would still apply.  */
15745 char erealloc ();
15746 char (*f) ();
15747
15748 #ifdef F77_DUMMY_MAIN
15749 #  ifdef __cplusplus
15750      extern "C"
15751 #  endif
15752    int F77_DUMMY_MAIN() { return 1; }
15753 #endif
15754 int
15755 main ()
15756 {
15757 /* The GNU C library defines this for functions which it implements
15758     to always fail with ENOSYS.  Some functions are actually named
15759     something starting with __ and the normal name is an alias.  */
15760 #if defined (__stub_erealloc) || defined (__stub___erealloc)
15761 choke me
15762 #else
15763 f = erealloc;
15764 #endif
15765
15766   ;
15767   return 0;
15768 }
15769 _ACEOF
15770 rm -f conftest.$ac_objext conftest$ac_exeext
15771 if { (eval echo "$as_me:15771: \"$ac_link\"") >&5
15772   (eval $ac_link) 2>&5
15773   ac_status=$?
15774   echo "$as_me:15774: \$? = $ac_status" >&5
15775   (exit $ac_status); } &&
15776          { ac_try='test -s conftest$ac_exeext'
15777   { (eval echo "$as_me:15777: \"$ac_try\"") >&5
15778   (eval $ac_try) 2>&5
15779   ac_status=$?
15780   echo "$as_me:15780: \$? = $ac_status" >&5
15781   (exit $ac_status); }; }; then
15782   ac_cv_func_erealloc=yes
15783 else
15784   echo "$as_me: failed program was:" >&5
15785 cat conftest.$ac_ext >&5
15786 ac_cv_func_erealloc=no
15787 fi
15788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15789 fi
15790 echo "$as_me:15790: result: $ac_cv_func_erealloc" >&5
15791 echo "${ECHO_T}$ac_cv_func_erealloc" >&6
15792 if test $ac_cv_func_erealloc = yes; then
15793
15794 cat >>confdefs.h <<_ACEOF
15795 #define HAVE_EREALLOC 1
15796 _ACEOF
15797
15798 else
15799   LIBOBJS="$LIBOBJS erealloc.$ac_objext"
15800 fi
15801 echo "$as_me:15801: checking for estrdup" >&5
15802 echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
15803 if test "${ac_cv_func_estrdup+set}" = set; then
15804   echo $ECHO_N "(cached) $ECHO_C" >&6
15805 else
15806   cat >conftest.$ac_ext <<_ACEOF
15807 #line 15807 "configure"
15808 #include "confdefs.h"
15809 /* System header to define __stub macros and hopefully few prototypes,
15810     which can conflict with char estrdup (); below.  */
15811 #include <assert.h>
15812 /* Override any gcc2 internal prototype to avoid an error.  */
15813 #ifdef __cplusplus
15814 extern "C"
15815 #endif
15816 /* We use char because int might match the return type of a gcc2
15817    builtin and then its argument prototype would still apply.  */
15818 char estrdup ();
15819 char (*f) ();
15820
15821 #ifdef F77_DUMMY_MAIN
15822 #  ifdef __cplusplus
15823      extern "C"
15824 #  endif
15825    int F77_DUMMY_MAIN() { return 1; }
15826 #endif
15827 int
15828 main ()
15829 {
15830 /* The GNU C library defines this for functions which it implements
15831     to always fail with ENOSYS.  Some functions are actually named
15832     something starting with __ and the normal name is an alias.  */
15833 #if defined (__stub_estrdup) || defined (__stub___estrdup)
15834 choke me
15835 #else
15836 f = estrdup;
15837 #endif
15838
15839   ;
15840   return 0;
15841 }
15842 _ACEOF
15843 rm -f conftest.$ac_objext conftest$ac_exeext
15844 if { (eval echo "$as_me:15844: \"$ac_link\"") >&5
15845   (eval $ac_link) 2>&5
15846   ac_status=$?
15847   echo "$as_me:15847: \$? = $ac_status" >&5
15848   (exit $ac_status); } &&
15849          { ac_try='test -s conftest$ac_exeext'
15850   { (eval echo "$as_me:15850: \"$ac_try\"") >&5
15851   (eval $ac_try) 2>&5
15852   ac_status=$?
15853   echo "$as_me:15853: \$? = $ac_status" >&5
15854   (exit $ac_status); }; }; then
15855   ac_cv_func_estrdup=yes
15856 else
15857   echo "$as_me: failed program was:" >&5
15858 cat conftest.$ac_ext >&5
15859 ac_cv_func_estrdup=no
15860 fi
15861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15862 fi
15863 echo "$as_me:15863: result: $ac_cv_func_estrdup" >&5
15864 echo "${ECHO_T}$ac_cv_func_estrdup" >&6
15865 if test $ac_cv_func_estrdup = yes; then
15866
15867 cat >>confdefs.h <<_ACEOF
15868 #define HAVE_ESTRDUP 1
15869 _ACEOF
15870
15871 else
15872   LIBOBJS="$LIBOBJS estrdup.$ac_objext"
15873 fi
15874 echo "$as_me:15874: checking for err" >&5
15875 echo $ECHO_N "checking for err... $ECHO_C" >&6
15876 if test "${ac_cv_func_err+set}" = set; then
15877   echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879   cat >conftest.$ac_ext <<_ACEOF
15880 #line 15880 "configure"
15881 #include "confdefs.h"
15882 /* System header to define __stub macros and hopefully few prototypes,
15883     which can conflict with char err (); below.  */
15884 #include <assert.h>
15885 /* Override any gcc2 internal prototype to avoid an error.  */
15886 #ifdef __cplusplus
15887 extern "C"
15888 #endif
15889 /* We use char because int might match the return type of a gcc2
15890    builtin and then its argument prototype would still apply.  */
15891 char err ();
15892 char (*f) ();
15893
15894 #ifdef F77_DUMMY_MAIN
15895 #  ifdef __cplusplus
15896      extern "C"
15897 #  endif
15898    int F77_DUMMY_MAIN() { return 1; }
15899 #endif
15900 int
15901 main ()
15902 {
15903 /* The GNU C library defines this for functions which it implements
15904     to always fail with ENOSYS.  Some functions are actually named
15905     something starting with __ and the normal name is an alias.  */
15906 #if defined (__stub_err) || defined (__stub___err)
15907 choke me
15908 #else
15909 f = err;
15910 #endif
15911
15912   ;
15913   return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (eval echo "$as_me:15917: \"$ac_link\"") >&5
15918   (eval $ac_link) 2>&5
15919   ac_status=$?
15920   echo "$as_me:15920: \$? = $ac_status" >&5
15921   (exit $ac_status); } &&
15922          { ac_try='test -s conftest$ac_exeext'
15923   { (eval echo "$as_me:15923: \"$ac_try\"") >&5
15924   (eval $ac_try) 2>&5
15925   ac_status=$?
15926   echo "$as_me:15926: \$? = $ac_status" >&5
15927   (exit $ac_status); }; }; then
15928   ac_cv_func_err=yes
15929 else
15930   echo "$as_me: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15932 ac_cv_func_err=no
15933 fi
15934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15935 fi
15936 echo "$as_me:15936: result: $ac_cv_func_err" >&5
15937 echo "${ECHO_T}$ac_cv_func_err" >&6
15938 if test $ac_cv_func_err = yes; then
15939
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_ERR 1
15942 _ACEOF
15943
15944 else
15945   LIBOBJS="$LIBOBJS err.$ac_objext"
15946 fi
15947 echo "$as_me:15947: checking for errx" >&5
15948 echo $ECHO_N "checking for errx... $ECHO_C" >&6
15949 if test "${ac_cv_func_errx+set}" = set; then
15950   echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952   cat >conftest.$ac_ext <<_ACEOF
15953 #line 15953 "configure"
15954 #include "confdefs.h"
15955 /* System header to define __stub macros and hopefully few prototypes,
15956     which can conflict with char errx (); below.  */
15957 #include <assert.h>
15958 /* Override any gcc2 internal prototype to avoid an error.  */
15959 #ifdef __cplusplus
15960 extern "C"
15961 #endif
15962 /* We use char because int might match the return type of a gcc2
15963    builtin and then its argument prototype would still apply.  */
15964 char errx ();
15965 char (*f) ();
15966
15967 #ifdef F77_DUMMY_MAIN
15968 #  ifdef __cplusplus
15969      extern "C"
15970 #  endif
15971    int F77_DUMMY_MAIN() { return 1; }
15972 #endif
15973 int
15974 main ()
15975 {
15976 /* The GNU C library defines this for functions which it implements
15977     to always fail with ENOSYS.  Some functions are actually named
15978     something starting with __ and the normal name is an alias.  */
15979 #if defined (__stub_errx) || defined (__stub___errx)
15980 choke me
15981 #else
15982 f = errx;
15983 #endif
15984
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (eval echo "$as_me:15990: \"$ac_link\"") >&5
15991   (eval $ac_link) 2>&5
15992   ac_status=$?
15993   echo "$as_me:15993: \$? = $ac_status" >&5
15994   (exit $ac_status); } &&
15995          { ac_try='test -s conftest$ac_exeext'
15996   { (eval echo "$as_me:15996: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:15999: \$? = $ac_status" >&5
16000   (exit $ac_status); }; }; then
16001   ac_cv_func_errx=yes
16002 else
16003   echo "$as_me: failed program was:" >&5
16004 cat conftest.$ac_ext >&5
16005 ac_cv_func_errx=no
16006 fi
16007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16008 fi
16009 echo "$as_me:16009: result: $ac_cv_func_errx" >&5
16010 echo "${ECHO_T}$ac_cv_func_errx" >&6
16011 if test $ac_cv_func_errx = yes; then
16012
16013 cat >>confdefs.h <<_ACEOF
16014 #define HAVE_ERRX 1
16015 _ACEOF
16016
16017 else
16018   LIBOBJS="$LIBOBJS errx.$ac_objext"
16019 fi
16020 echo "$as_me:16020: checking for fchown" >&5
16021 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
16022 if test "${ac_cv_func_fchown+set}" = set; then
16023   echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025   cat >conftest.$ac_ext <<_ACEOF
16026 #line 16026 "configure"
16027 #include "confdefs.h"
16028 /* System header to define __stub macros and hopefully few prototypes,
16029     which can conflict with char fchown (); below.  */
16030 #include <assert.h>
16031 /* Override any gcc2 internal prototype to avoid an error.  */
16032 #ifdef __cplusplus
16033 extern "C"
16034 #endif
16035 /* We use char because int might match the return type of a gcc2
16036    builtin and then its argument prototype would still apply.  */
16037 char fchown ();
16038 char (*f) ();
16039
16040 #ifdef F77_DUMMY_MAIN
16041 #  ifdef __cplusplus
16042      extern "C"
16043 #  endif
16044    int F77_DUMMY_MAIN() { return 1; }
16045 #endif
16046 int
16047 main ()
16048 {
16049 /* The GNU C library defines this for functions which it implements
16050     to always fail with ENOSYS.  Some functions are actually named
16051     something starting with __ and the normal name is an alias.  */
16052 #if defined (__stub_fchown) || defined (__stub___fchown)
16053 choke me
16054 #else
16055 f = fchown;
16056 #endif
16057
16058   ;
16059   return 0;
16060 }
16061 _ACEOF
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (eval echo "$as_me:16063: \"$ac_link\"") >&5
16064   (eval $ac_link) 2>&5
16065   ac_status=$?
16066   echo "$as_me:16066: \$? = $ac_status" >&5
16067   (exit $ac_status); } &&
16068          { ac_try='test -s conftest$ac_exeext'
16069   { (eval echo "$as_me:16069: \"$ac_try\"") >&5
16070   (eval $ac_try) 2>&5
16071   ac_status=$?
16072   echo "$as_me:16072: \$? = $ac_status" >&5
16073   (exit $ac_status); }; }; then
16074   ac_cv_func_fchown=yes
16075 else
16076   echo "$as_me: failed program was:" >&5
16077 cat conftest.$ac_ext >&5
16078 ac_cv_func_fchown=no
16079 fi
16080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16081 fi
16082 echo "$as_me:16082: result: $ac_cv_func_fchown" >&5
16083 echo "${ECHO_T}$ac_cv_func_fchown" >&6
16084 if test $ac_cv_func_fchown = yes; then
16085
16086 cat >>confdefs.h <<_ACEOF
16087 #define HAVE_FCHOWN 1
16088 _ACEOF
16089
16090 else
16091   LIBOBJS="$LIBOBJS fchown.$ac_objext"
16092 fi
16093 echo "$as_me:16093: checking for flock" >&5
16094 echo $ECHO_N "checking for flock... $ECHO_C" >&6
16095 if test "${ac_cv_func_flock+set}" = set; then
16096   echo $ECHO_N "(cached) $ECHO_C" >&6
16097 else
16098   cat >conftest.$ac_ext <<_ACEOF
16099 #line 16099 "configure"
16100 #include "confdefs.h"
16101 /* System header to define __stub macros and hopefully few prototypes,
16102     which can conflict with char flock (); below.  */
16103 #include <assert.h>
16104 /* Override any gcc2 internal prototype to avoid an error.  */
16105 #ifdef __cplusplus
16106 extern "C"
16107 #endif
16108 /* We use char because int might match the return type of a gcc2
16109    builtin and then its argument prototype would still apply.  */
16110 char flock ();
16111 char (*f) ();
16112
16113 #ifdef F77_DUMMY_MAIN
16114 #  ifdef __cplusplus
16115      extern "C"
16116 #  endif
16117    int F77_DUMMY_MAIN() { return 1; }
16118 #endif
16119 int
16120 main ()
16121 {
16122 /* The GNU C library defines this for functions which it implements
16123     to always fail with ENOSYS.  Some functions are actually named
16124     something starting with __ and the normal name is an alias.  */
16125 #if defined (__stub_flock) || defined (__stub___flock)
16126 choke me
16127 #else
16128 f = flock;
16129 #endif
16130
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (eval echo "$as_me:16136: \"$ac_link\"") >&5
16137   (eval $ac_link) 2>&5
16138   ac_status=$?
16139   echo "$as_me:16139: \$? = $ac_status" >&5
16140   (exit $ac_status); } &&
16141          { ac_try='test -s conftest$ac_exeext'
16142   { (eval echo "$as_me:16142: \"$ac_try\"") >&5
16143   (eval $ac_try) 2>&5
16144   ac_status=$?
16145   echo "$as_me:16145: \$? = $ac_status" >&5
16146   (exit $ac_status); }; }; then
16147   ac_cv_func_flock=yes
16148 else
16149   echo "$as_me: failed program was:" >&5
16150 cat conftest.$ac_ext >&5
16151 ac_cv_func_flock=no
16152 fi
16153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16154 fi
16155 echo "$as_me:16155: result: $ac_cv_func_flock" >&5
16156 echo "${ECHO_T}$ac_cv_func_flock" >&6
16157 if test $ac_cv_func_flock = yes; then
16158
16159 cat >>confdefs.h <<_ACEOF
16160 #define HAVE_FLOCK 1
16161 _ACEOF
16162
16163 else
16164   LIBOBJS="$LIBOBJS flock.$ac_objext"
16165 fi
16166 echo "$as_me:16166: checking for fnmatch" >&5
16167 echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
16168 if test "${ac_cv_func_fnmatch+set}" = set; then
16169   echo $ECHO_N "(cached) $ECHO_C" >&6
16170 else
16171   cat >conftest.$ac_ext <<_ACEOF
16172 #line 16172 "configure"
16173 #include "confdefs.h"
16174 /* System header to define __stub macros and hopefully few prototypes,
16175     which can conflict with char fnmatch (); below.  */
16176 #include <assert.h>
16177 /* Override any gcc2 internal prototype to avoid an error.  */
16178 #ifdef __cplusplus
16179 extern "C"
16180 #endif
16181 /* We use char because int might match the return type of a gcc2
16182    builtin and then its argument prototype would still apply.  */
16183 char fnmatch ();
16184 char (*f) ();
16185
16186 #ifdef F77_DUMMY_MAIN
16187 #  ifdef __cplusplus
16188      extern "C"
16189 #  endif
16190    int F77_DUMMY_MAIN() { return 1; }
16191 #endif
16192 int
16193 main ()
16194 {
16195 /* The GNU C library defines this for functions which it implements
16196     to always fail with ENOSYS.  Some functions are actually named
16197     something starting with __ and the normal name is an alias.  */
16198 #if defined (__stub_fnmatch) || defined (__stub___fnmatch)
16199 choke me
16200 #else
16201 f = fnmatch;
16202 #endif
16203
16204   ;
16205   return 0;
16206 }
16207 _ACEOF
16208 rm -f conftest.$ac_objext conftest$ac_exeext
16209 if { (eval echo "$as_me:16209: \"$ac_link\"") >&5
16210   (eval $ac_link) 2>&5
16211   ac_status=$?
16212   echo "$as_me:16212: \$? = $ac_status" >&5
16213   (exit $ac_status); } &&
16214          { ac_try='test -s conftest$ac_exeext'
16215   { (eval echo "$as_me:16215: \"$ac_try\"") >&5
16216   (eval $ac_try) 2>&5
16217   ac_status=$?
16218   echo "$as_me:16218: \$? = $ac_status" >&5
16219   (exit $ac_status); }; }; then
16220   ac_cv_func_fnmatch=yes
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16224 ac_cv_func_fnmatch=no
16225 fi
16226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16227 fi
16228 echo "$as_me:16228: result: $ac_cv_func_fnmatch" >&5
16229 echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
16230 if test $ac_cv_func_fnmatch = yes; then
16231
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_FNMATCH 1
16234 _ACEOF
16235
16236 else
16237   LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16238 fi
16239 echo "$as_me:16239: checking for freehostent" >&5
16240 echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
16241 if test "${ac_cv_func_freehostent+set}" = set; then
16242   echo $ECHO_N "(cached) $ECHO_C" >&6
16243 else
16244   cat >conftest.$ac_ext <<_ACEOF
16245 #line 16245 "configure"
16246 #include "confdefs.h"
16247 /* System header to define __stub macros and hopefully few prototypes,
16248     which can conflict with char freehostent (); below.  */
16249 #include <assert.h>
16250 /* Override any gcc2 internal prototype to avoid an error.  */
16251 #ifdef __cplusplus
16252 extern "C"
16253 #endif
16254 /* We use char because int might match the return type of a gcc2
16255    builtin and then its argument prototype would still apply.  */
16256 char freehostent ();
16257 char (*f) ();
16258
16259 #ifdef F77_DUMMY_MAIN
16260 #  ifdef __cplusplus
16261      extern "C"
16262 #  endif
16263    int F77_DUMMY_MAIN() { return 1; }
16264 #endif
16265 int
16266 main ()
16267 {
16268 /* The GNU C library defines this for functions which it implements
16269     to always fail with ENOSYS.  Some functions are actually named
16270     something starting with __ and the normal name is an alias.  */
16271 #if defined (__stub_freehostent) || defined (__stub___freehostent)
16272 choke me
16273 #else
16274 f = freehostent;
16275 #endif
16276
16277   ;
16278   return 0;
16279 }
16280 _ACEOF
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (eval echo "$as_me:16282: \"$ac_link\"") >&5
16283   (eval $ac_link) 2>&5
16284   ac_status=$?
16285   echo "$as_me:16285: \$? = $ac_status" >&5
16286   (exit $ac_status); } &&
16287          { ac_try='test -s conftest$ac_exeext'
16288   { (eval echo "$as_me:16288: \"$ac_try\"") >&5
16289   (eval $ac_try) 2>&5
16290   ac_status=$?
16291   echo "$as_me:16291: \$? = $ac_status" >&5
16292   (exit $ac_status); }; }; then
16293   ac_cv_func_freehostent=yes
16294 else
16295   echo "$as_me: failed program was:" >&5
16296 cat conftest.$ac_ext >&5
16297 ac_cv_func_freehostent=no
16298 fi
16299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16300 fi
16301 echo "$as_me:16301: result: $ac_cv_func_freehostent" >&5
16302 echo "${ECHO_T}$ac_cv_func_freehostent" >&6
16303 if test $ac_cv_func_freehostent = yes; then
16304
16305 cat >>confdefs.h <<_ACEOF
16306 #define HAVE_FREEHOSTENT 1
16307 _ACEOF
16308
16309 else
16310   LIBOBJS="$LIBOBJS freehostent.$ac_objext"
16311 fi
16312 echo "$as_me:16312: checking for getcwd" >&5
16313 echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
16314 if test "${ac_cv_func_getcwd+set}" = set; then
16315   echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317   cat >conftest.$ac_ext <<_ACEOF
16318 #line 16318 "configure"
16319 #include "confdefs.h"
16320 /* System header to define __stub macros and hopefully few prototypes,
16321     which can conflict with char getcwd (); below.  */
16322 #include <assert.h>
16323 /* Override any gcc2 internal prototype to avoid an error.  */
16324 #ifdef __cplusplus
16325 extern "C"
16326 #endif
16327 /* We use char because int might match the return type of a gcc2
16328    builtin and then its argument prototype would still apply.  */
16329 char getcwd ();
16330 char (*f) ();
16331
16332 #ifdef F77_DUMMY_MAIN
16333 #  ifdef __cplusplus
16334      extern "C"
16335 #  endif
16336    int F77_DUMMY_MAIN() { return 1; }
16337 #endif
16338 int
16339 main ()
16340 {
16341 /* The GNU C library defines this for functions which it implements
16342     to always fail with ENOSYS.  Some functions are actually named
16343     something starting with __ and the normal name is an alias.  */
16344 #if defined (__stub_getcwd) || defined (__stub___getcwd)
16345 choke me
16346 #else
16347 f = getcwd;
16348 #endif
16349
16350   ;
16351   return 0;
16352 }
16353 _ACEOF
16354 rm -f conftest.$ac_objext conftest$ac_exeext
16355 if { (eval echo "$as_me:16355: \"$ac_link\"") >&5
16356   (eval $ac_link) 2>&5
16357   ac_status=$?
16358   echo "$as_me:16358: \$? = $ac_status" >&5
16359   (exit $ac_status); } &&
16360          { ac_try='test -s conftest$ac_exeext'
16361   { (eval echo "$as_me:16361: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:16364: \$? = $ac_status" >&5
16365   (exit $ac_status); }; }; then
16366   ac_cv_func_getcwd=yes
16367 else
16368   echo "$as_me: failed program was:" >&5
16369 cat conftest.$ac_ext >&5
16370 ac_cv_func_getcwd=no
16371 fi
16372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16373 fi
16374 echo "$as_me:16374: result: $ac_cv_func_getcwd" >&5
16375 echo "${ECHO_T}$ac_cv_func_getcwd" >&6
16376 if test $ac_cv_func_getcwd = yes; then
16377
16378 cat >>confdefs.h <<_ACEOF
16379 #define HAVE_GETCWD 1
16380 _ACEOF
16381
16382 else
16383   LIBOBJS="$LIBOBJS getcwd.$ac_objext"
16384 fi
16385 echo "$as_me:16385: checking for getdtablesize" >&5
16386 echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
16387 if test "${ac_cv_func_getdtablesize+set}" = set; then
16388   echo $ECHO_N "(cached) $ECHO_C" >&6
16389 else
16390   cat >conftest.$ac_ext <<_ACEOF
16391 #line 16391 "configure"
16392 #include "confdefs.h"
16393 /* System header to define __stub macros and hopefully few prototypes,
16394     which can conflict with char getdtablesize (); below.  */
16395 #include <assert.h>
16396 /* Override any gcc2 internal prototype to avoid an error.  */
16397 #ifdef __cplusplus
16398 extern "C"
16399 #endif
16400 /* We use char because int might match the return type of a gcc2
16401    builtin and then its argument prototype would still apply.  */
16402 char getdtablesize ();
16403 char (*f) ();
16404
16405 #ifdef F77_DUMMY_MAIN
16406 #  ifdef __cplusplus
16407      extern "C"
16408 #  endif
16409    int F77_DUMMY_MAIN() { return 1; }
16410 #endif
16411 int
16412 main ()
16413 {
16414 /* The GNU C library defines this for functions which it implements
16415     to always fail with ENOSYS.  Some functions are actually named
16416     something starting with __ and the normal name is an alias.  */
16417 #if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
16418 choke me
16419 #else
16420 f = getdtablesize;
16421 #endif
16422
16423   ;
16424   return 0;
16425 }
16426 _ACEOF
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (eval echo "$as_me:16428: \"$ac_link\"") >&5
16429   (eval $ac_link) 2>&5
16430   ac_status=$?
16431   echo "$as_me:16431: \$? = $ac_status" >&5
16432   (exit $ac_status); } &&
16433          { ac_try='test -s conftest$ac_exeext'
16434   { (eval echo "$as_me:16434: \"$ac_try\"") >&5
16435   (eval $ac_try) 2>&5
16436   ac_status=$?
16437   echo "$as_me:16437: \$? = $ac_status" >&5
16438   (exit $ac_status); }; }; then
16439   ac_cv_func_getdtablesize=yes
16440 else
16441   echo "$as_me: failed program was:" >&5
16442 cat conftest.$ac_ext >&5
16443 ac_cv_func_getdtablesize=no
16444 fi
16445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16446 fi
16447 echo "$as_me:16447: result: $ac_cv_func_getdtablesize" >&5
16448 echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
16449 if test $ac_cv_func_getdtablesize = yes; then
16450
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE_GETDTABLESIZE 1
16453 _ACEOF
16454
16455 else
16456   LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
16457 fi
16458 echo "$as_me:16458: checking for getegid" >&5
16459 echo $ECHO_N "checking for getegid... $ECHO_C" >&6
16460 if test "${ac_cv_func_getegid+set}" = set; then
16461   echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463   cat >conftest.$ac_ext <<_ACEOF
16464 #line 16464 "configure"
16465 #include "confdefs.h"
16466 /* System header to define __stub macros and hopefully few prototypes,
16467     which can conflict with char getegid (); below.  */
16468 #include <assert.h>
16469 /* Override any gcc2 internal prototype to avoid an error.  */
16470 #ifdef __cplusplus
16471 extern "C"
16472 #endif
16473 /* We use char because int might match the return type of a gcc2
16474    builtin and then its argument prototype would still apply.  */
16475 char getegid ();
16476 char (*f) ();
16477
16478 #ifdef F77_DUMMY_MAIN
16479 #  ifdef __cplusplus
16480      extern "C"
16481 #  endif
16482    int F77_DUMMY_MAIN() { return 1; }
16483 #endif
16484 int
16485 main ()
16486 {
16487 /* The GNU C library defines this for functions which it implements
16488     to always fail with ENOSYS.  Some functions are actually named
16489     something starting with __ and the normal name is an alias.  */
16490 #if defined (__stub_getegid) || defined (__stub___getegid)
16491 choke me
16492 #else
16493 f = getegid;
16494 #endif
16495
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (eval echo "$as_me:16501: \"$ac_link\"") >&5
16502   (eval $ac_link) 2>&5
16503   ac_status=$?
16504   echo "$as_me:16504: \$? = $ac_status" >&5
16505   (exit $ac_status); } &&
16506          { ac_try='test -s conftest$ac_exeext'
16507   { (eval echo "$as_me:16507: \"$ac_try\"") >&5
16508   (eval $ac_try) 2>&5
16509   ac_status=$?
16510   echo "$as_me:16510: \$? = $ac_status" >&5
16511   (exit $ac_status); }; }; then
16512   ac_cv_func_getegid=yes
16513 else
16514   echo "$as_me: failed program was:" >&5
16515 cat conftest.$ac_ext >&5
16516 ac_cv_func_getegid=no
16517 fi
16518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16519 fi
16520 echo "$as_me:16520: result: $ac_cv_func_getegid" >&5
16521 echo "${ECHO_T}$ac_cv_func_getegid" >&6
16522 if test $ac_cv_func_getegid = yes; then
16523
16524 cat >>confdefs.h <<_ACEOF
16525 #define HAVE_GETEGID 1
16526 _ACEOF
16527
16528 else
16529   LIBOBJS="$LIBOBJS getegid.$ac_objext"
16530 fi
16531 echo "$as_me:16531: checking for geteuid" >&5
16532 echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
16533 if test "${ac_cv_func_geteuid+set}" = set; then
16534   echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536   cat >conftest.$ac_ext <<_ACEOF
16537 #line 16537 "configure"
16538 #include "confdefs.h"
16539 /* System header to define __stub macros and hopefully few prototypes,
16540     which can conflict with char geteuid (); below.  */
16541 #include <assert.h>
16542 /* Override any gcc2 internal prototype to avoid an error.  */
16543 #ifdef __cplusplus
16544 extern "C"
16545 #endif
16546 /* We use char because int might match the return type of a gcc2
16547    builtin and then its argument prototype would still apply.  */
16548 char geteuid ();
16549 char (*f) ();
16550
16551 #ifdef F77_DUMMY_MAIN
16552 #  ifdef __cplusplus
16553      extern "C"
16554 #  endif
16555    int F77_DUMMY_MAIN() { return 1; }
16556 #endif
16557 int
16558 main ()
16559 {
16560 /* The GNU C library defines this for functions which it implements
16561     to always fail with ENOSYS.  Some functions are actually named
16562     something starting with __ and the normal name is an alias.  */
16563 #if defined (__stub_geteuid) || defined (__stub___geteuid)
16564 choke me
16565 #else
16566 f = geteuid;
16567 #endif
16568
16569   ;
16570   return 0;
16571 }
16572 _ACEOF
16573 rm -f conftest.$ac_objext conftest$ac_exeext
16574 if { (eval echo "$as_me:16574: \"$ac_link\"") >&5
16575   (eval $ac_link) 2>&5
16576   ac_status=$?
16577   echo "$as_me:16577: \$? = $ac_status" >&5
16578   (exit $ac_status); } &&
16579          { ac_try='test -s conftest$ac_exeext'
16580   { (eval echo "$as_me:16580: \"$ac_try\"") >&5
16581   (eval $ac_try) 2>&5
16582   ac_status=$?
16583   echo "$as_me:16583: \$? = $ac_status" >&5
16584   (exit $ac_status); }; }; then
16585   ac_cv_func_geteuid=yes
16586 else
16587   echo "$as_me: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16589 ac_cv_func_geteuid=no
16590 fi
16591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16592 fi
16593 echo "$as_me:16593: result: $ac_cv_func_geteuid" >&5
16594 echo "${ECHO_T}$ac_cv_func_geteuid" >&6
16595 if test $ac_cv_func_geteuid = yes; then
16596
16597 cat >>confdefs.h <<_ACEOF
16598 #define HAVE_GETEUID 1
16599 _ACEOF
16600
16601 else
16602   LIBOBJS="$LIBOBJS geteuid.$ac_objext"
16603 fi
16604 echo "$as_me:16604: checking for getgid" >&5
16605 echo $ECHO_N "checking for getgid... $ECHO_C" >&6
16606 if test "${ac_cv_func_getgid+set}" = set; then
16607   echo $ECHO_N "(cached) $ECHO_C" >&6
16608 else
16609   cat >conftest.$ac_ext <<_ACEOF
16610 #line 16610 "configure"
16611 #include "confdefs.h"
16612 /* System header to define __stub macros and hopefully few prototypes,
16613     which can conflict with char getgid (); below.  */
16614 #include <assert.h>
16615 /* Override any gcc2 internal prototype to avoid an error.  */
16616 #ifdef __cplusplus
16617 extern "C"
16618 #endif
16619 /* We use char because int might match the return type of a gcc2
16620    builtin and then its argument prototype would still apply.  */
16621 char getgid ();
16622 char (*f) ();
16623
16624 #ifdef F77_DUMMY_MAIN
16625 #  ifdef __cplusplus
16626      extern "C"
16627 #  endif
16628    int F77_DUMMY_MAIN() { return 1; }
16629 #endif
16630 int
16631 main ()
16632 {
16633 /* The GNU C library defines this for functions which it implements
16634     to always fail with ENOSYS.  Some functions are actually named
16635     something starting with __ and the normal name is an alias.  */
16636 #if defined (__stub_getgid) || defined (__stub___getgid)
16637 choke me
16638 #else
16639 f = getgid;
16640 #endif
16641
16642   ;
16643   return 0;
16644 }
16645 _ACEOF
16646 rm -f conftest.$ac_objext conftest$ac_exeext
16647 if { (eval echo "$as_me:16647: \"$ac_link\"") >&5
16648   (eval $ac_link) 2>&5
16649   ac_status=$?
16650   echo "$as_me:16650: \$? = $ac_status" >&5
16651   (exit $ac_status); } &&
16652          { ac_try='test -s conftest$ac_exeext'
16653   { (eval echo "$as_me:16653: \"$ac_try\"") >&5
16654   (eval $ac_try) 2>&5
16655   ac_status=$?
16656   echo "$as_me:16656: \$? = $ac_status" >&5
16657   (exit $ac_status); }; }; then
16658   ac_cv_func_getgid=yes
16659 else
16660   echo "$as_me: failed program was:" >&5
16661 cat conftest.$ac_ext >&5
16662 ac_cv_func_getgid=no
16663 fi
16664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16665 fi
16666 echo "$as_me:16666: result: $ac_cv_func_getgid" >&5
16667 echo "${ECHO_T}$ac_cv_func_getgid" >&6
16668 if test $ac_cv_func_getgid = yes; then
16669
16670 cat >>confdefs.h <<_ACEOF
16671 #define HAVE_GETGID 1
16672 _ACEOF
16673
16674 else
16675   LIBOBJS="$LIBOBJS getgid.$ac_objext"
16676 fi
16677 echo "$as_me:16677: checking for gethostname" >&5
16678 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
16679 if test "${ac_cv_func_gethostname+set}" = set; then
16680   echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682   cat >conftest.$ac_ext <<_ACEOF
16683 #line 16683 "configure"
16684 #include "confdefs.h"
16685 /* System header to define __stub macros and hopefully few prototypes,
16686     which can conflict with char gethostname (); below.  */
16687 #include <assert.h>
16688 /* Override any gcc2 internal prototype to avoid an error.  */
16689 #ifdef __cplusplus
16690 extern "C"
16691 #endif
16692 /* We use char because int might match the return type of a gcc2
16693    builtin and then its argument prototype would still apply.  */
16694 char gethostname ();
16695 char (*f) ();
16696
16697 #ifdef F77_DUMMY_MAIN
16698 #  ifdef __cplusplus
16699      extern "C"
16700 #  endif
16701    int F77_DUMMY_MAIN() { return 1; }
16702 #endif
16703 int
16704 main ()
16705 {
16706 /* The GNU C library defines this for functions which it implements
16707     to always fail with ENOSYS.  Some functions are actually named
16708     something starting with __ and the normal name is an alias.  */
16709 #if defined (__stub_gethostname) || defined (__stub___gethostname)
16710 choke me
16711 #else
16712 f = gethostname;
16713 #endif
16714
16715   ;
16716   return 0;
16717 }
16718 _ACEOF
16719 rm -f conftest.$ac_objext conftest$ac_exeext
16720 if { (eval echo "$as_me:16720: \"$ac_link\"") >&5
16721   (eval $ac_link) 2>&5
16722   ac_status=$?
16723   echo "$as_me:16723: \$? = $ac_status" >&5
16724   (exit $ac_status); } &&
16725          { ac_try='test -s conftest$ac_exeext'
16726   { (eval echo "$as_me:16726: \"$ac_try\"") >&5
16727   (eval $ac_try) 2>&5
16728   ac_status=$?
16729   echo "$as_me:16729: \$? = $ac_status" >&5
16730   (exit $ac_status); }; }; then
16731   ac_cv_func_gethostname=yes
16732 else
16733   echo "$as_me: failed program was:" >&5
16734 cat conftest.$ac_ext >&5
16735 ac_cv_func_gethostname=no
16736 fi
16737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16738 fi
16739 echo "$as_me:16739: result: $ac_cv_func_gethostname" >&5
16740 echo "${ECHO_T}$ac_cv_func_gethostname" >&6
16741 if test $ac_cv_func_gethostname = yes; then
16742
16743 cat >>confdefs.h <<_ACEOF
16744 #define HAVE_GETHOSTNAME 1
16745 _ACEOF
16746
16747 else
16748   LIBOBJS="$LIBOBJS gethostname.$ac_objext"
16749 fi
16750 echo "$as_me:16750: checking for getifaddrs" >&5
16751 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
16752 if test "${ac_cv_func_getifaddrs+set}" = set; then
16753   echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755   cat >conftest.$ac_ext <<_ACEOF
16756 #line 16756 "configure"
16757 #include "confdefs.h"
16758 /* System header to define __stub macros and hopefully few prototypes,
16759     which can conflict with char getifaddrs (); below.  */
16760 #include <assert.h>
16761 /* Override any gcc2 internal prototype to avoid an error.  */
16762 #ifdef __cplusplus
16763 extern "C"
16764 #endif
16765 /* We use char because int might match the return type of a gcc2
16766    builtin and then its argument prototype would still apply.  */
16767 char getifaddrs ();
16768 char (*f) ();
16769
16770 #ifdef F77_DUMMY_MAIN
16771 #  ifdef __cplusplus
16772      extern "C"
16773 #  endif
16774    int F77_DUMMY_MAIN() { return 1; }
16775 #endif
16776 int
16777 main ()
16778 {
16779 /* The GNU C library defines this for functions which it implements
16780     to always fail with ENOSYS.  Some functions are actually named
16781     something starting with __ and the normal name is an alias.  */
16782 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
16783 choke me
16784 #else
16785 f = getifaddrs;
16786 #endif
16787
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:16793: \"$ac_link\"") >&5
16794   (eval $ac_link) 2>&5
16795   ac_status=$?
16796   echo "$as_me:16796: \$? = $ac_status" >&5
16797   (exit $ac_status); } &&
16798          { ac_try='test -s conftest$ac_exeext'
16799   { (eval echo "$as_me:16799: \"$ac_try\"") >&5
16800   (eval $ac_try) 2>&5
16801   ac_status=$?
16802   echo "$as_me:16802: \$? = $ac_status" >&5
16803   (exit $ac_status); }; }; then
16804   ac_cv_func_getifaddrs=yes
16805 else
16806   echo "$as_me: failed program was:" >&5
16807 cat conftest.$ac_ext >&5
16808 ac_cv_func_getifaddrs=no
16809 fi
16810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16811 fi
16812 echo "$as_me:16812: result: $ac_cv_func_getifaddrs" >&5
16813 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
16814 if test $ac_cv_func_getifaddrs = yes; then
16815
16816 cat >>confdefs.h <<_ACEOF
16817 #define HAVE_GETIFADDRS 1
16818 _ACEOF
16819
16820 else
16821   LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
16822 fi
16823 echo "$as_me:16823: checking for getipnodebyaddr" >&5
16824 echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
16825 if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   cat >conftest.$ac_ext <<_ACEOF
16829 #line 16829 "configure"
16830 #include "confdefs.h"
16831 /* System header to define __stub macros and hopefully few prototypes,
16832     which can conflict with char getipnodebyaddr (); below.  */
16833 #include <assert.h>
16834 /* Override any gcc2 internal prototype to avoid an error.  */
16835 #ifdef __cplusplus
16836 extern "C"
16837 #endif
16838 /* We use char because int might match the return type of a gcc2
16839    builtin and then its argument prototype would still apply.  */
16840 char getipnodebyaddr ();
16841 char (*f) ();
16842
16843 #ifdef F77_DUMMY_MAIN
16844 #  ifdef __cplusplus
16845      extern "C"
16846 #  endif
16847    int F77_DUMMY_MAIN() { return 1; }
16848 #endif
16849 int
16850 main ()
16851 {
16852 /* The GNU C library defines this for functions which it implements
16853     to always fail with ENOSYS.  Some functions are actually named
16854     something starting with __ and the normal name is an alias.  */
16855 #if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
16856 choke me
16857 #else
16858 f = getipnodebyaddr;
16859 #endif
16860
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:16866: \"$ac_link\"") >&5
16867   (eval $ac_link) 2>&5
16868   ac_status=$?
16869   echo "$as_me:16869: \$? = $ac_status" >&5
16870   (exit $ac_status); } &&
16871          { ac_try='test -s conftest$ac_exeext'
16872   { (eval echo "$as_me:16872: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:16875: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }; then
16877   ac_cv_func_getipnodebyaddr=yes
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 cat conftest.$ac_ext >&5
16881 ac_cv_func_getipnodebyaddr=no
16882 fi
16883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16884 fi
16885 echo "$as_me:16885: result: $ac_cv_func_getipnodebyaddr" >&5
16886 echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
16887 if test $ac_cv_func_getipnodebyaddr = yes; then
16888
16889 cat >>confdefs.h <<_ACEOF
16890 #define HAVE_GETIPNODEBYADDR 1
16891 _ACEOF
16892
16893 else
16894   LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
16895 fi
16896 echo "$as_me:16896: checking for getipnodebyname" >&5
16897 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
16898 if test "${ac_cv_func_getipnodebyname+set}" = set; then
16899   echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901   cat >conftest.$ac_ext <<_ACEOF
16902 #line 16902 "configure"
16903 #include "confdefs.h"
16904 /* System header to define __stub macros and hopefully few prototypes,
16905     which can conflict with char getipnodebyname (); below.  */
16906 #include <assert.h>
16907 /* Override any gcc2 internal prototype to avoid an error.  */
16908 #ifdef __cplusplus
16909 extern "C"
16910 #endif
16911 /* We use char because int might match the return type of a gcc2
16912    builtin and then its argument prototype would still apply.  */
16913 char getipnodebyname ();
16914 char (*f) ();
16915
16916 #ifdef F77_DUMMY_MAIN
16917 #  ifdef __cplusplus
16918      extern "C"
16919 #  endif
16920    int F77_DUMMY_MAIN() { return 1; }
16921 #endif
16922 int
16923 main ()
16924 {
16925 /* The GNU C library defines this for functions which it implements
16926     to always fail with ENOSYS.  Some functions are actually named
16927     something starting with __ and the normal name is an alias.  */
16928 #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
16929 choke me
16930 #else
16931 f = getipnodebyname;
16932 #endif
16933
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (eval echo "$as_me:16939: \"$ac_link\"") >&5
16940   (eval $ac_link) 2>&5
16941   ac_status=$?
16942   echo "$as_me:16942: \$? = $ac_status" >&5
16943   (exit $ac_status); } &&
16944          { ac_try='test -s conftest$ac_exeext'
16945   { (eval echo "$as_me:16945: \"$ac_try\"") >&5
16946   (eval $ac_try) 2>&5
16947   ac_status=$?
16948   echo "$as_me:16948: \$? = $ac_status" >&5
16949   (exit $ac_status); }; }; then
16950   ac_cv_func_getipnodebyname=yes
16951 else
16952   echo "$as_me: failed program was:" >&5
16953 cat conftest.$ac_ext >&5
16954 ac_cv_func_getipnodebyname=no
16955 fi
16956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16957 fi
16958 echo "$as_me:16958: result: $ac_cv_func_getipnodebyname" >&5
16959 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
16960 if test $ac_cv_func_getipnodebyname = yes; then
16961
16962 cat >>confdefs.h <<_ACEOF
16963 #define HAVE_GETIPNODEBYNAME 1
16964 _ACEOF
16965
16966 else
16967   LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
16968 fi
16969 echo "$as_me:16969: checking for getopt" >&5
16970 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
16971 if test "${ac_cv_func_getopt+set}" = set; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   cat >conftest.$ac_ext <<_ACEOF
16975 #line 16975 "configure"
16976 #include "confdefs.h"
16977 /* System header to define __stub macros and hopefully few prototypes,
16978     which can conflict with char getopt (); below.  */
16979 #include <assert.h>
16980 /* Override any gcc2 internal prototype to avoid an error.  */
16981 #ifdef __cplusplus
16982 extern "C"
16983 #endif
16984 /* We use char because int might match the return type of a gcc2
16985    builtin and then its argument prototype would still apply.  */
16986 char getopt ();
16987 char (*f) ();
16988
16989 #ifdef F77_DUMMY_MAIN
16990 #  ifdef __cplusplus
16991      extern "C"
16992 #  endif
16993    int F77_DUMMY_MAIN() { return 1; }
16994 #endif
16995 int
16996 main ()
16997 {
16998 /* The GNU C library defines this for functions which it implements
16999     to always fail with ENOSYS.  Some functions are actually named
17000     something starting with __ and the normal name is an alias.  */
17001 #if defined (__stub_getopt) || defined (__stub___getopt)
17002 choke me
17003 #else
17004 f = getopt;
17005 #endif
17006
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (eval echo "$as_me:17012: \"$ac_link\"") >&5
17013   (eval $ac_link) 2>&5
17014   ac_status=$?
17015   echo "$as_me:17015: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -s conftest$ac_exeext'
17018   { (eval echo "$as_me:17018: \"$ac_try\"") >&5
17019   (eval $ac_try) 2>&5
17020   ac_status=$?
17021   echo "$as_me:17021: \$? = $ac_status" >&5
17022   (exit $ac_status); }; }; then
17023   ac_cv_func_getopt=yes
17024 else
17025   echo "$as_me: failed program was:" >&5
17026 cat conftest.$ac_ext >&5
17027 ac_cv_func_getopt=no
17028 fi
17029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17030 fi
17031 echo "$as_me:17031: result: $ac_cv_func_getopt" >&5
17032 echo "${ECHO_T}$ac_cv_func_getopt" >&6
17033 if test $ac_cv_func_getopt = yes; then
17034
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_GETOPT 1
17037 _ACEOF
17038
17039 else
17040   LIBOBJS="$LIBOBJS getopt.$ac_objext"
17041 fi
17042 echo "$as_me:17042: checking for gettimeofday" >&5
17043 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
17044 if test "${ac_cv_func_gettimeofday+set}" = set; then
17045   echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047   cat >conftest.$ac_ext <<_ACEOF
17048 #line 17048 "configure"
17049 #include "confdefs.h"
17050 /* System header to define __stub macros and hopefully few prototypes,
17051     which can conflict with char gettimeofday (); below.  */
17052 #include <assert.h>
17053 /* Override any gcc2 internal prototype to avoid an error.  */
17054 #ifdef __cplusplus
17055 extern "C"
17056 #endif
17057 /* We use char because int might match the return type of a gcc2
17058    builtin and then its argument prototype would still apply.  */
17059 char gettimeofday ();
17060 char (*f) ();
17061
17062 #ifdef F77_DUMMY_MAIN
17063 #  ifdef __cplusplus
17064      extern "C"
17065 #  endif
17066    int F77_DUMMY_MAIN() { return 1; }
17067 #endif
17068 int
17069 main ()
17070 {
17071 /* The GNU C library defines this for functions which it implements
17072     to always fail with ENOSYS.  Some functions are actually named
17073     something starting with __ and the normal name is an alias.  */
17074 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
17075 choke me
17076 #else
17077 f = gettimeofday;
17078 #endif
17079
17080   ;
17081   return 0;
17082 }
17083 _ACEOF
17084 rm -f conftest.$ac_objext conftest$ac_exeext
17085 if { (eval echo "$as_me:17085: \"$ac_link\"") >&5
17086   (eval $ac_link) 2>&5
17087   ac_status=$?
17088   echo "$as_me:17088: \$? = $ac_status" >&5
17089   (exit $ac_status); } &&
17090          { ac_try='test -s conftest$ac_exeext'
17091   { (eval echo "$as_me:17091: \"$ac_try\"") >&5
17092   (eval $ac_try) 2>&5
17093   ac_status=$?
17094   echo "$as_me:17094: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_cv_func_gettimeofday=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 cat conftest.$ac_ext >&5
17100 ac_cv_func_gettimeofday=no
17101 fi
17102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17103 fi
17104 echo "$as_me:17104: result: $ac_cv_func_gettimeofday" >&5
17105 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
17106 if test $ac_cv_func_gettimeofday = yes; then
17107
17108 cat >>confdefs.h <<_ACEOF
17109 #define HAVE_GETTIMEOFDAY 1
17110 _ACEOF
17111
17112 else
17113   LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
17114 fi
17115 echo "$as_me:17115: checking for getuid" >&5
17116 echo $ECHO_N "checking for getuid... $ECHO_C" >&6
17117 if test "${ac_cv_func_getuid+set}" = set; then
17118   echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120   cat >conftest.$ac_ext <<_ACEOF
17121 #line 17121 "configure"
17122 #include "confdefs.h"
17123 /* System header to define __stub macros and hopefully few prototypes,
17124     which can conflict with char getuid (); below.  */
17125 #include <assert.h>
17126 /* Override any gcc2 internal prototype to avoid an error.  */
17127 #ifdef __cplusplus
17128 extern "C"
17129 #endif
17130 /* We use char because int might match the return type of a gcc2
17131    builtin and then its argument prototype would still apply.  */
17132 char getuid ();
17133 char (*f) ();
17134
17135 #ifdef F77_DUMMY_MAIN
17136 #  ifdef __cplusplus
17137      extern "C"
17138 #  endif
17139    int F77_DUMMY_MAIN() { return 1; }
17140 #endif
17141 int
17142 main ()
17143 {
17144 /* The GNU C library defines this for functions which it implements
17145     to always fail with ENOSYS.  Some functions are actually named
17146     something starting with __ and the normal name is an alias.  */
17147 #if defined (__stub_getuid) || defined (__stub___getuid)
17148 choke me
17149 #else
17150 f = getuid;
17151 #endif
17152
17153   ;
17154   return 0;
17155 }
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (eval echo "$as_me:17158: \"$ac_link\"") >&5
17159   (eval $ac_link) 2>&5
17160   ac_status=$?
17161   echo "$as_me:17161: \$? = $ac_status" >&5
17162   (exit $ac_status); } &&
17163          { ac_try='test -s conftest$ac_exeext'
17164   { (eval echo "$as_me:17164: \"$ac_try\"") >&5
17165   (eval $ac_try) 2>&5
17166   ac_status=$?
17167   echo "$as_me:17167: \$? = $ac_status" >&5
17168   (exit $ac_status); }; }; then
17169   ac_cv_func_getuid=yes
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 cat conftest.$ac_ext >&5
17173 ac_cv_func_getuid=no
17174 fi
17175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17176 fi
17177 echo "$as_me:17177: result: $ac_cv_func_getuid" >&5
17178 echo "${ECHO_T}$ac_cv_func_getuid" >&6
17179 if test $ac_cv_func_getuid = yes; then
17180
17181 cat >>confdefs.h <<_ACEOF
17182 #define HAVE_GETUID 1
17183 _ACEOF
17184
17185 else
17186   LIBOBJS="$LIBOBJS getuid.$ac_objext"
17187 fi
17188 echo "$as_me:17188: checking for getusershell" >&5
17189 echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
17190 if test "${ac_cv_func_getusershell+set}" = set; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   cat >conftest.$ac_ext <<_ACEOF
17194 #line 17194 "configure"
17195 #include "confdefs.h"
17196 /* System header to define __stub macros and hopefully few prototypes,
17197     which can conflict with char getusershell (); below.  */
17198 #include <assert.h>
17199 /* Override any gcc2 internal prototype to avoid an error.  */
17200 #ifdef __cplusplus
17201 extern "C"
17202 #endif
17203 /* We use char because int might match the return type of a gcc2
17204    builtin and then its argument prototype would still apply.  */
17205 char getusershell ();
17206 char (*f) ();
17207
17208 #ifdef F77_DUMMY_MAIN
17209 #  ifdef __cplusplus
17210      extern "C"
17211 #  endif
17212    int F77_DUMMY_MAIN() { return 1; }
17213 #endif
17214 int
17215 main ()
17216 {
17217 /* The GNU C library defines this for functions which it implements
17218     to always fail with ENOSYS.  Some functions are actually named
17219     something starting with __ and the normal name is an alias.  */
17220 #if defined (__stub_getusershell) || defined (__stub___getusershell)
17221 choke me
17222 #else
17223 f = getusershell;
17224 #endif
17225
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (eval echo "$as_me:17231: \"$ac_link\"") >&5
17232   (eval $ac_link) 2>&5
17233   ac_status=$?
17234   echo "$as_me:17234: \$? = $ac_status" >&5
17235   (exit $ac_status); } &&
17236          { ac_try='test -s conftest$ac_exeext'
17237   { (eval echo "$as_me:17237: \"$ac_try\"") >&5
17238   (eval $ac_try) 2>&5
17239   ac_status=$?
17240   echo "$as_me:17240: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_cv_func_getusershell=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 cat conftest.$ac_ext >&5
17246 ac_cv_func_getusershell=no
17247 fi
17248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17249 fi
17250 echo "$as_me:17250: result: $ac_cv_func_getusershell" >&5
17251 echo "${ECHO_T}$ac_cv_func_getusershell" >&6
17252 if test $ac_cv_func_getusershell = yes; then
17253
17254 cat >>confdefs.h <<_ACEOF
17255 #define HAVE_GETUSERSHELL 1
17256 _ACEOF
17257
17258 else
17259   LIBOBJS="$LIBOBJS getusershell.$ac_objext"
17260 fi
17261 echo "$as_me:17261: checking for initgroups" >&5
17262 echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
17263 if test "${ac_cv_func_initgroups+set}" = set; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266   cat >conftest.$ac_ext <<_ACEOF
17267 #line 17267 "configure"
17268 #include "confdefs.h"
17269 /* System header to define __stub macros and hopefully few prototypes,
17270     which can conflict with char initgroups (); below.  */
17271 #include <assert.h>
17272 /* Override any gcc2 internal prototype to avoid an error.  */
17273 #ifdef __cplusplus
17274 extern "C"
17275 #endif
17276 /* We use char because int might match the return type of a gcc2
17277    builtin and then its argument prototype would still apply.  */
17278 char initgroups ();
17279 char (*f) ();
17280
17281 #ifdef F77_DUMMY_MAIN
17282 #  ifdef __cplusplus
17283      extern "C"
17284 #  endif
17285    int F77_DUMMY_MAIN() { return 1; }
17286 #endif
17287 int
17288 main ()
17289 {
17290 /* The GNU C library defines this for functions which it implements
17291     to always fail with ENOSYS.  Some functions are actually named
17292     something starting with __ and the normal name is an alias.  */
17293 #if defined (__stub_initgroups) || defined (__stub___initgroups)
17294 choke me
17295 #else
17296 f = initgroups;
17297 #endif
17298
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (eval echo "$as_me:17304: \"$ac_link\"") >&5
17305   (eval $ac_link) 2>&5
17306   ac_status=$?
17307   echo "$as_me:17307: \$? = $ac_status" >&5
17308   (exit $ac_status); } &&
17309          { ac_try='test -s conftest$ac_exeext'
17310   { (eval echo "$as_me:17310: \"$ac_try\"") >&5
17311   (eval $ac_try) 2>&5
17312   ac_status=$?
17313   echo "$as_me:17313: \$? = $ac_status" >&5
17314   (exit $ac_status); }; }; then
17315   ac_cv_func_initgroups=yes
17316 else
17317   echo "$as_me: failed program was:" >&5
17318 cat conftest.$ac_ext >&5
17319 ac_cv_func_initgroups=no
17320 fi
17321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17322 fi
17323 echo "$as_me:17323: result: $ac_cv_func_initgroups" >&5
17324 echo "${ECHO_T}$ac_cv_func_initgroups" >&6
17325 if test $ac_cv_func_initgroups = yes; then
17326
17327 cat >>confdefs.h <<_ACEOF
17328 #define HAVE_INITGROUPS 1
17329 _ACEOF
17330
17331 else
17332   LIBOBJS="$LIBOBJS initgroups.$ac_objext"
17333 fi
17334 echo "$as_me:17334: checking for innetgr" >&5
17335 echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
17336 if test "${ac_cv_func_innetgr+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   cat >conftest.$ac_ext <<_ACEOF
17340 #line 17340 "configure"
17341 #include "confdefs.h"
17342 /* System header to define __stub macros and hopefully few prototypes,
17343     which can conflict with char innetgr (); below.  */
17344 #include <assert.h>
17345 /* Override any gcc2 internal prototype to avoid an error.  */
17346 #ifdef __cplusplus
17347 extern "C"
17348 #endif
17349 /* We use char because int might match the return type of a gcc2
17350    builtin and then its argument prototype would still apply.  */
17351 char innetgr ();
17352 char (*f) ();
17353
17354 #ifdef F77_DUMMY_MAIN
17355 #  ifdef __cplusplus
17356      extern "C"
17357 #  endif
17358    int F77_DUMMY_MAIN() { return 1; }
17359 #endif
17360 int
17361 main ()
17362 {
17363 /* The GNU C library defines this for functions which it implements
17364     to always fail with ENOSYS.  Some functions are actually named
17365     something starting with __ and the normal name is an alias.  */
17366 #if defined (__stub_innetgr) || defined (__stub___innetgr)
17367 choke me
17368 #else
17369 f = innetgr;
17370 #endif
17371
17372   ;
17373   return 0;
17374 }
17375 _ACEOF
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (eval echo "$as_me:17377: \"$ac_link\"") >&5
17378   (eval $ac_link) 2>&5
17379   ac_status=$?
17380   echo "$as_me:17380: \$? = $ac_status" >&5
17381   (exit $ac_status); } &&
17382          { ac_try='test -s conftest$ac_exeext'
17383   { (eval echo "$as_me:17383: \"$ac_try\"") >&5
17384   (eval $ac_try) 2>&5
17385   ac_status=$?
17386   echo "$as_me:17386: \$? = $ac_status" >&5
17387   (exit $ac_status); }; }; then
17388   ac_cv_func_innetgr=yes
17389 else
17390   echo "$as_me: failed program was:" >&5
17391 cat conftest.$ac_ext >&5
17392 ac_cv_func_innetgr=no
17393 fi
17394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17395 fi
17396 echo "$as_me:17396: result: $ac_cv_func_innetgr" >&5
17397 echo "${ECHO_T}$ac_cv_func_innetgr" >&6
17398 if test $ac_cv_func_innetgr = yes; then
17399
17400 cat >>confdefs.h <<_ACEOF
17401 #define HAVE_INNETGR 1
17402 _ACEOF
17403
17404 else
17405   LIBOBJS="$LIBOBJS innetgr.$ac_objext"
17406 fi
17407 echo "$as_me:17407: checking for iruserok" >&5
17408 echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
17409 if test "${ac_cv_func_iruserok+set}" = set; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   cat >conftest.$ac_ext <<_ACEOF
17413 #line 17413 "configure"
17414 #include "confdefs.h"
17415 /* System header to define __stub macros and hopefully few prototypes,
17416     which can conflict with char iruserok (); below.  */
17417 #include <assert.h>
17418 /* Override any gcc2 internal prototype to avoid an error.  */
17419 #ifdef __cplusplus
17420 extern "C"
17421 #endif
17422 /* We use char because int might match the return type of a gcc2
17423    builtin and then its argument prototype would still apply.  */
17424 char iruserok ();
17425 char (*f) ();
17426
17427 #ifdef F77_DUMMY_MAIN
17428 #  ifdef __cplusplus
17429      extern "C"
17430 #  endif
17431    int F77_DUMMY_MAIN() { return 1; }
17432 #endif
17433 int
17434 main ()
17435 {
17436 /* The GNU C library defines this for functions which it implements
17437     to always fail with ENOSYS.  Some functions are actually named
17438     something starting with __ and the normal name is an alias.  */
17439 #if defined (__stub_iruserok) || defined (__stub___iruserok)
17440 choke me
17441 #else
17442 f = iruserok;
17443 #endif
17444
17445   ;
17446   return 0;
17447 }
17448 _ACEOF
17449 rm -f conftest.$ac_objext conftest$ac_exeext
17450 if { (eval echo "$as_me:17450: \"$ac_link\"") >&5
17451   (eval $ac_link) 2>&5
17452   ac_status=$?
17453   echo "$as_me:17453: \$? = $ac_status" >&5
17454   (exit $ac_status); } &&
17455          { ac_try='test -s conftest$ac_exeext'
17456   { (eval echo "$as_me:17456: \"$ac_try\"") >&5
17457   (eval $ac_try) 2>&5
17458   ac_status=$?
17459   echo "$as_me:17459: \$? = $ac_status" >&5
17460   (exit $ac_status); }; }; then
17461   ac_cv_func_iruserok=yes
17462 else
17463   echo "$as_me: failed program was:" >&5
17464 cat conftest.$ac_ext >&5
17465 ac_cv_func_iruserok=no
17466 fi
17467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17468 fi
17469 echo "$as_me:17469: result: $ac_cv_func_iruserok" >&5
17470 echo "${ECHO_T}$ac_cv_func_iruserok" >&6
17471 if test $ac_cv_func_iruserok = yes; then
17472
17473 cat >>confdefs.h <<_ACEOF
17474 #define HAVE_IRUSEROK 1
17475 _ACEOF
17476
17477 else
17478   LIBOBJS="$LIBOBJS iruserok.$ac_objext"
17479 fi
17480 echo "$as_me:17480: checking for localtime_r" >&5
17481 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
17482 if test "${ac_cv_func_localtime_r+set}" = set; then
17483   echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485   cat >conftest.$ac_ext <<_ACEOF
17486 #line 17486 "configure"
17487 #include "confdefs.h"
17488 /* System header to define __stub macros and hopefully few prototypes,
17489     which can conflict with char localtime_r (); below.  */
17490 #include <assert.h>
17491 /* Override any gcc2 internal prototype to avoid an error.  */
17492 #ifdef __cplusplus
17493 extern "C"
17494 #endif
17495 /* We use char because int might match the return type of a gcc2
17496    builtin and then its argument prototype would still apply.  */
17497 char localtime_r ();
17498 char (*f) ();
17499
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 /* The GNU C library defines this for functions which it implements
17510     to always fail with ENOSYS.  Some functions are actually named
17511     something starting with __ and the normal name is an alias.  */
17512 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
17513 choke me
17514 #else
17515 f = localtime_r;
17516 #endif
17517
17518   ;
17519   return 0;
17520 }
17521 _ACEOF
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (eval echo "$as_me:17523: \"$ac_link\"") >&5
17524   (eval $ac_link) 2>&5
17525   ac_status=$?
17526   echo "$as_me:17526: \$? = $ac_status" >&5
17527   (exit $ac_status); } &&
17528          { ac_try='test -s conftest$ac_exeext'
17529   { (eval echo "$as_me:17529: \"$ac_try\"") >&5
17530   (eval $ac_try) 2>&5
17531   ac_status=$?
17532   echo "$as_me:17532: \$? = $ac_status" >&5
17533   (exit $ac_status); }; }; then
17534   ac_cv_func_localtime_r=yes
17535 else
17536   echo "$as_me: failed program was:" >&5
17537 cat conftest.$ac_ext >&5
17538 ac_cv_func_localtime_r=no
17539 fi
17540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17541 fi
17542 echo "$as_me:17542: result: $ac_cv_func_localtime_r" >&5
17543 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
17544 if test $ac_cv_func_localtime_r = yes; then
17545
17546 cat >>confdefs.h <<_ACEOF
17547 #define HAVE_LOCALTIME_R 1
17548 _ACEOF
17549
17550 else
17551   LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17552 fi
17553 echo "$as_me:17553: checking for lstat" >&5
17554 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
17555 if test "${ac_cv_func_lstat+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558   cat >conftest.$ac_ext <<_ACEOF
17559 #line 17559 "configure"
17560 #include "confdefs.h"
17561 /* System header to define __stub macros and hopefully few prototypes,
17562     which can conflict with char lstat (); below.  */
17563 #include <assert.h>
17564 /* Override any gcc2 internal prototype to avoid an error.  */
17565 #ifdef __cplusplus
17566 extern "C"
17567 #endif
17568 /* We use char because int might match the return type of a gcc2
17569    builtin and then its argument prototype would still apply.  */
17570 char lstat ();
17571 char (*f) ();
17572
17573 #ifdef F77_DUMMY_MAIN
17574 #  ifdef __cplusplus
17575      extern "C"
17576 #  endif
17577    int F77_DUMMY_MAIN() { return 1; }
17578 #endif
17579 int
17580 main ()
17581 {
17582 /* The GNU C library defines this for functions which it implements
17583     to always fail with ENOSYS.  Some functions are actually named
17584     something starting with __ and the normal name is an alias.  */
17585 #if defined (__stub_lstat) || defined (__stub___lstat)
17586 choke me
17587 #else
17588 f = lstat;
17589 #endif
17590
17591   ;
17592   return 0;
17593 }
17594 _ACEOF
17595 rm -f conftest.$ac_objext conftest$ac_exeext
17596 if { (eval echo "$as_me:17596: \"$ac_link\"") >&5
17597   (eval $ac_link) 2>&5
17598   ac_status=$?
17599   echo "$as_me:17599: \$? = $ac_status" >&5
17600   (exit $ac_status); } &&
17601          { ac_try='test -s conftest$ac_exeext'
17602   { (eval echo "$as_me:17602: \"$ac_try\"") >&5
17603   (eval $ac_try) 2>&5
17604   ac_status=$?
17605   echo "$as_me:17605: \$? = $ac_status" >&5
17606   (exit $ac_status); }; }; then
17607   ac_cv_func_lstat=yes
17608 else
17609   echo "$as_me: failed program was:" >&5
17610 cat conftest.$ac_ext >&5
17611 ac_cv_func_lstat=no
17612 fi
17613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17614 fi
17615 echo "$as_me:17615: result: $ac_cv_func_lstat" >&5
17616 echo "${ECHO_T}$ac_cv_func_lstat" >&6
17617 if test $ac_cv_func_lstat = yes; then
17618
17619 cat >>confdefs.h <<_ACEOF
17620 #define HAVE_LSTAT 1
17621 _ACEOF
17622
17623 else
17624   LIBOBJS="$LIBOBJS lstat.$ac_objext"
17625 fi
17626 echo "$as_me:17626: checking for memmove" >&5
17627 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
17628 if test "${ac_cv_func_memmove+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   cat >conftest.$ac_ext <<_ACEOF
17632 #line 17632 "configure"
17633 #include "confdefs.h"
17634 /* System header to define __stub macros and hopefully few prototypes,
17635     which can conflict with char memmove (); below.  */
17636 #include <assert.h>
17637 /* Override any gcc2 internal prototype to avoid an error.  */
17638 #ifdef __cplusplus
17639 extern "C"
17640 #endif
17641 /* We use char because int might match the return type of a gcc2
17642    builtin and then its argument prototype would still apply.  */
17643 char memmove ();
17644 char (*f) ();
17645
17646 #ifdef F77_DUMMY_MAIN
17647 #  ifdef __cplusplus
17648      extern "C"
17649 #  endif
17650    int F77_DUMMY_MAIN() { return 1; }
17651 #endif
17652 int
17653 main ()
17654 {
17655 /* The GNU C library defines this for functions which it implements
17656     to always fail with ENOSYS.  Some functions are actually named
17657     something starting with __ and the normal name is an alias.  */
17658 #if defined (__stub_memmove) || defined (__stub___memmove)
17659 choke me
17660 #else
17661 f = memmove;
17662 #endif
17663
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:17669: \"$ac_link\"") >&5
17670   (eval $ac_link) 2>&5
17671   ac_status=$?
17672   echo "$as_me:17672: \$? = $ac_status" >&5
17673   (exit $ac_status); } &&
17674          { ac_try='test -s conftest$ac_exeext'
17675   { (eval echo "$as_me:17675: \"$ac_try\"") >&5
17676   (eval $ac_try) 2>&5
17677   ac_status=$?
17678   echo "$as_me:17678: \$? = $ac_status" >&5
17679   (exit $ac_status); }; }; then
17680   ac_cv_func_memmove=yes
17681 else
17682   echo "$as_me: failed program was:" >&5
17683 cat conftest.$ac_ext >&5
17684 ac_cv_func_memmove=no
17685 fi
17686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17687 fi
17688 echo "$as_me:17688: result: $ac_cv_func_memmove" >&5
17689 echo "${ECHO_T}$ac_cv_func_memmove" >&6
17690 if test $ac_cv_func_memmove = yes; then
17691
17692 cat >>confdefs.h <<_ACEOF
17693 #define HAVE_MEMMOVE 1
17694 _ACEOF
17695
17696 else
17697   LIBOBJS="$LIBOBJS memmove.$ac_objext"
17698 fi
17699 echo "$as_me:17699: checking for mkstemp" >&5
17700 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
17701 if test "${ac_cv_func_mkstemp+set}" = set; then
17702   echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704   cat >conftest.$ac_ext <<_ACEOF
17705 #line 17705 "configure"
17706 #include "confdefs.h"
17707 /* System header to define __stub macros and hopefully few prototypes,
17708     which can conflict with char mkstemp (); below.  */
17709 #include <assert.h>
17710 /* Override any gcc2 internal prototype to avoid an error.  */
17711 #ifdef __cplusplus
17712 extern "C"
17713 #endif
17714 /* We use char because int might match the return type of a gcc2
17715    builtin and then its argument prototype would still apply.  */
17716 char mkstemp ();
17717 char (*f) ();
17718
17719 #ifdef F77_DUMMY_MAIN
17720 #  ifdef __cplusplus
17721      extern "C"
17722 #  endif
17723    int F77_DUMMY_MAIN() { return 1; }
17724 #endif
17725 int
17726 main ()
17727 {
17728 /* The GNU C library defines this for functions which it implements
17729     to always fail with ENOSYS.  Some functions are actually named
17730     something starting with __ and the normal name is an alias.  */
17731 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
17732 choke me
17733 #else
17734 f = mkstemp;
17735 #endif
17736
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (eval echo "$as_me:17742: \"$ac_link\"") >&5
17743   (eval $ac_link) 2>&5
17744   ac_status=$?
17745   echo "$as_me:17745: \$? = $ac_status" >&5
17746   (exit $ac_status); } &&
17747          { ac_try='test -s conftest$ac_exeext'
17748   { (eval echo "$as_me:17748: \"$ac_try\"") >&5
17749   (eval $ac_try) 2>&5
17750   ac_status=$?
17751   echo "$as_me:17751: \$? = $ac_status" >&5
17752   (exit $ac_status); }; }; then
17753   ac_cv_func_mkstemp=yes
17754 else
17755   echo "$as_me: failed program was:" >&5
17756 cat conftest.$ac_ext >&5
17757 ac_cv_func_mkstemp=no
17758 fi
17759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17760 fi
17761 echo "$as_me:17761: result: $ac_cv_func_mkstemp" >&5
17762 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
17763 if test $ac_cv_func_mkstemp = yes; then
17764
17765 cat >>confdefs.h <<_ACEOF
17766 #define HAVE_MKSTEMP 1
17767 _ACEOF
17768
17769 else
17770   LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
17771 fi
17772 echo "$as_me:17772: checking for putenv" >&5
17773 echo $ECHO_N "checking for putenv... $ECHO_C" >&6
17774 if test "${ac_cv_func_putenv+set}" = set; then
17775   echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777   cat >conftest.$ac_ext <<_ACEOF
17778 #line 17778 "configure"
17779 #include "confdefs.h"
17780 /* System header to define __stub macros and hopefully few prototypes,
17781     which can conflict with char putenv (); below.  */
17782 #include <assert.h>
17783 /* Override any gcc2 internal prototype to avoid an error.  */
17784 #ifdef __cplusplus
17785 extern "C"
17786 #endif
17787 /* We use char because int might match the return type of a gcc2
17788    builtin and then its argument prototype would still apply.  */
17789 char putenv ();
17790 char (*f) ();
17791
17792 #ifdef F77_DUMMY_MAIN
17793 #  ifdef __cplusplus
17794      extern "C"
17795 #  endif
17796    int F77_DUMMY_MAIN() { return 1; }
17797 #endif
17798 int
17799 main ()
17800 {
17801 /* The GNU C library defines this for functions which it implements
17802     to always fail with ENOSYS.  Some functions are actually named
17803     something starting with __ and the normal name is an alias.  */
17804 #if defined (__stub_putenv) || defined (__stub___putenv)
17805 choke me
17806 #else
17807 f = putenv;
17808 #endif
17809
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (eval echo "$as_me:17815: \"$ac_link\"") >&5
17816   (eval $ac_link) 2>&5
17817   ac_status=$?
17818   echo "$as_me:17818: \$? = $ac_status" >&5
17819   (exit $ac_status); } &&
17820          { ac_try='test -s conftest$ac_exeext'
17821   { (eval echo "$as_me:17821: \"$ac_try\"") >&5
17822   (eval $ac_try) 2>&5
17823   ac_status=$?
17824   echo "$as_me:17824: \$? = $ac_status" >&5
17825   (exit $ac_status); }; }; then
17826   ac_cv_func_putenv=yes
17827 else
17828   echo "$as_me: failed program was:" >&5
17829 cat conftest.$ac_ext >&5
17830 ac_cv_func_putenv=no
17831 fi
17832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17833 fi
17834 echo "$as_me:17834: result: $ac_cv_func_putenv" >&5
17835 echo "${ECHO_T}$ac_cv_func_putenv" >&6
17836 if test $ac_cv_func_putenv = yes; then
17837
17838 cat >>confdefs.h <<_ACEOF
17839 #define HAVE_PUTENV 1
17840 _ACEOF
17841
17842 else
17843   LIBOBJS="$LIBOBJS putenv.$ac_objext"
17844 fi
17845 echo "$as_me:17845: checking for rcmd" >&5
17846 echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
17847 if test "${ac_cv_func_rcmd+set}" = set; then
17848   echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850   cat >conftest.$ac_ext <<_ACEOF
17851 #line 17851 "configure"
17852 #include "confdefs.h"
17853 /* System header to define __stub macros and hopefully few prototypes,
17854     which can conflict with char rcmd (); below.  */
17855 #include <assert.h>
17856 /* Override any gcc2 internal prototype to avoid an error.  */
17857 #ifdef __cplusplus
17858 extern "C"
17859 #endif
17860 /* We use char because int might match the return type of a gcc2
17861    builtin and then its argument prototype would still apply.  */
17862 char rcmd ();
17863 char (*f) ();
17864
17865 #ifdef F77_DUMMY_MAIN
17866 #  ifdef __cplusplus
17867      extern "C"
17868 #  endif
17869    int F77_DUMMY_MAIN() { return 1; }
17870 #endif
17871 int
17872 main ()
17873 {
17874 /* The GNU C library defines this for functions which it implements
17875     to always fail with ENOSYS.  Some functions are actually named
17876     something starting with __ and the normal name is an alias.  */
17877 #if defined (__stub_rcmd) || defined (__stub___rcmd)
17878 choke me
17879 #else
17880 f = rcmd;
17881 #endif
17882
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:17888: \"$ac_link\"") >&5
17889   (eval $ac_link) 2>&5
17890   ac_status=$?
17891   echo "$as_me:17891: \$? = $ac_status" >&5
17892   (exit $ac_status); } &&
17893          { ac_try='test -s conftest$ac_exeext'
17894   { (eval echo "$as_me:17894: \"$ac_try\"") >&5
17895   (eval $ac_try) 2>&5
17896   ac_status=$?
17897   echo "$as_me:17897: \$? = $ac_status" >&5
17898   (exit $ac_status); }; }; then
17899   ac_cv_func_rcmd=yes
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 cat conftest.$ac_ext >&5
17903 ac_cv_func_rcmd=no
17904 fi
17905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17906 fi
17907 echo "$as_me:17907: result: $ac_cv_func_rcmd" >&5
17908 echo "${ECHO_T}$ac_cv_func_rcmd" >&6
17909 if test $ac_cv_func_rcmd = yes; then
17910
17911 cat >>confdefs.h <<_ACEOF
17912 #define HAVE_RCMD 1
17913 _ACEOF
17914
17915 else
17916   LIBOBJS="$LIBOBJS rcmd.$ac_objext"
17917 fi
17918 echo "$as_me:17918: checking for readv" >&5
17919 echo $ECHO_N "checking for readv... $ECHO_C" >&6
17920 if test "${ac_cv_func_readv+set}" = set; then
17921   echo $ECHO_N "(cached) $ECHO_C" >&6
17922 else
17923   cat >conftest.$ac_ext <<_ACEOF
17924 #line 17924 "configure"
17925 #include "confdefs.h"
17926 /* System header to define __stub macros and hopefully few prototypes,
17927     which can conflict with char readv (); below.  */
17928 #include <assert.h>
17929 /* Override any gcc2 internal prototype to avoid an error.  */
17930 #ifdef __cplusplus
17931 extern "C"
17932 #endif
17933 /* We use char because int might match the return type of a gcc2
17934    builtin and then its argument prototype would still apply.  */
17935 char readv ();
17936 char (*f) ();
17937
17938 #ifdef F77_DUMMY_MAIN
17939 #  ifdef __cplusplus
17940      extern "C"
17941 #  endif
17942    int F77_DUMMY_MAIN() { return 1; }
17943 #endif
17944 int
17945 main ()
17946 {
17947 /* The GNU C library defines this for functions which it implements
17948     to always fail with ENOSYS.  Some functions are actually named
17949     something starting with __ and the normal name is an alias.  */
17950 #if defined (__stub_readv) || defined (__stub___readv)
17951 choke me
17952 #else
17953 f = readv;
17954 #endif
17955
17956   ;
17957   return 0;
17958 }
17959 _ACEOF
17960 rm -f conftest.$ac_objext conftest$ac_exeext
17961 if { (eval echo "$as_me:17961: \"$ac_link\"") >&5
17962   (eval $ac_link) 2>&5
17963   ac_status=$?
17964   echo "$as_me:17964: \$? = $ac_status" >&5
17965   (exit $ac_status); } &&
17966          { ac_try='test -s conftest$ac_exeext'
17967   { (eval echo "$as_me:17967: \"$ac_try\"") >&5
17968   (eval $ac_try) 2>&5
17969   ac_status=$?
17970   echo "$as_me:17970: \$? = $ac_status" >&5
17971   (exit $ac_status); }; }; then
17972   ac_cv_func_readv=yes
17973 else
17974   echo "$as_me: failed program was:" >&5
17975 cat conftest.$ac_ext >&5
17976 ac_cv_func_readv=no
17977 fi
17978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17979 fi
17980 echo "$as_me:17980: result: $ac_cv_func_readv" >&5
17981 echo "${ECHO_T}$ac_cv_func_readv" >&6
17982 if test $ac_cv_func_readv = yes; then
17983
17984 cat >>confdefs.h <<_ACEOF
17985 #define HAVE_READV 1
17986 _ACEOF
17987
17988 else
17989   LIBOBJS="$LIBOBJS readv.$ac_objext"
17990 fi
17991 echo "$as_me:17991: checking for recvmsg" >&5
17992 echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
17993 if test "${ac_cv_func_recvmsg+set}" = set; then
17994   echo $ECHO_N "(cached) $ECHO_C" >&6
17995 else
17996   cat >conftest.$ac_ext <<_ACEOF
17997 #line 17997 "configure"
17998 #include "confdefs.h"
17999 /* System header to define __stub macros and hopefully few prototypes,
18000     which can conflict with char recvmsg (); below.  */
18001 #include <assert.h>
18002 /* Override any gcc2 internal prototype to avoid an error.  */
18003 #ifdef __cplusplus
18004 extern "C"
18005 #endif
18006 /* We use char because int might match the return type of a gcc2
18007    builtin and then its argument prototype would still apply.  */
18008 char recvmsg ();
18009 char (*f) ();
18010
18011 #ifdef F77_DUMMY_MAIN
18012 #  ifdef __cplusplus
18013      extern "C"
18014 #  endif
18015    int F77_DUMMY_MAIN() { return 1; }
18016 #endif
18017 int
18018 main ()
18019 {
18020 /* The GNU C library defines this for functions which it implements
18021     to always fail with ENOSYS.  Some functions are actually named
18022     something starting with __ and the normal name is an alias.  */
18023 #if defined (__stub_recvmsg) || defined (__stub___recvmsg)
18024 choke me
18025 #else
18026 f = recvmsg;
18027 #endif
18028
18029   ;
18030   return 0;
18031 }
18032 _ACEOF
18033 rm -f conftest.$ac_objext conftest$ac_exeext
18034 if { (eval echo "$as_me:18034: \"$ac_link\"") >&5
18035   (eval $ac_link) 2>&5
18036   ac_status=$?
18037   echo "$as_me:18037: \$? = $ac_status" >&5
18038   (exit $ac_status); } &&
18039          { ac_try='test -s conftest$ac_exeext'
18040   { (eval echo "$as_me:18040: \"$ac_try\"") >&5
18041   (eval $ac_try) 2>&5
18042   ac_status=$?
18043   echo "$as_me:18043: \$? = $ac_status" >&5
18044   (exit $ac_status); }; }; then
18045   ac_cv_func_recvmsg=yes
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 cat conftest.$ac_ext >&5
18049 ac_cv_func_recvmsg=no
18050 fi
18051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18052 fi
18053 echo "$as_me:18053: result: $ac_cv_func_recvmsg" >&5
18054 echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
18055 if test $ac_cv_func_recvmsg = yes; then
18056
18057 cat >>confdefs.h <<_ACEOF
18058 #define HAVE_RECVMSG 1
18059 _ACEOF
18060
18061 else
18062   LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
18063 fi
18064 echo "$as_me:18064: checking for sendmsg" >&5
18065 echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
18066 if test "${ac_cv_func_sendmsg+set}" = set; then
18067   echo $ECHO_N "(cached) $ECHO_C" >&6
18068 else
18069   cat >conftest.$ac_ext <<_ACEOF
18070 #line 18070 "configure"
18071 #include "confdefs.h"
18072 /* System header to define __stub macros and hopefully few prototypes,
18073     which can conflict with char sendmsg (); below.  */
18074 #include <assert.h>
18075 /* Override any gcc2 internal prototype to avoid an error.  */
18076 #ifdef __cplusplus
18077 extern "C"
18078 #endif
18079 /* We use char because int might match the return type of a gcc2
18080    builtin and then its argument prototype would still apply.  */
18081 char sendmsg ();
18082 char (*f) ();
18083
18084 #ifdef F77_DUMMY_MAIN
18085 #  ifdef __cplusplus
18086      extern "C"
18087 #  endif
18088    int F77_DUMMY_MAIN() { return 1; }
18089 #endif
18090 int
18091 main ()
18092 {
18093 /* The GNU C library defines this for functions which it implements
18094     to always fail with ENOSYS.  Some functions are actually named
18095     something starting with __ and the normal name is an alias.  */
18096 #if defined (__stub_sendmsg) || defined (__stub___sendmsg)
18097 choke me
18098 #else
18099 f = sendmsg;
18100 #endif
18101
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 rm -f conftest.$ac_objext conftest$ac_exeext
18107 if { (eval echo "$as_me:18107: \"$ac_link\"") >&5
18108   (eval $ac_link) 2>&5
18109   ac_status=$?
18110   echo "$as_me:18110: \$? = $ac_status" >&5
18111   (exit $ac_status); } &&
18112          { ac_try='test -s conftest$ac_exeext'
18113   { (eval echo "$as_me:18113: \"$ac_try\"") >&5
18114   (eval $ac_try) 2>&5
18115   ac_status=$?
18116   echo "$as_me:18116: \$? = $ac_status" >&5
18117   (exit $ac_status); }; }; then
18118   ac_cv_func_sendmsg=yes
18119 else
18120   echo "$as_me: failed program was:" >&5
18121 cat conftest.$ac_ext >&5
18122 ac_cv_func_sendmsg=no
18123 fi
18124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18125 fi
18126 echo "$as_me:18126: result: $ac_cv_func_sendmsg" >&5
18127 echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
18128 if test $ac_cv_func_sendmsg = yes; then
18129
18130 cat >>confdefs.h <<_ACEOF
18131 #define HAVE_SENDMSG 1
18132 _ACEOF
18133
18134 else
18135   LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
18136 fi
18137 echo "$as_me:18137: checking for setegid" >&5
18138 echo $ECHO_N "checking for setegid... $ECHO_C" >&6
18139 if test "${ac_cv_func_setegid+set}" = set; then
18140   echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18142   cat >conftest.$ac_ext <<_ACEOF
18143 #line 18143 "configure"
18144 #include "confdefs.h"
18145 /* System header to define __stub macros and hopefully few prototypes,
18146     which can conflict with char setegid (); below.  */
18147 #include <assert.h>
18148 /* Override any gcc2 internal prototype to avoid an error.  */
18149 #ifdef __cplusplus
18150 extern "C"
18151 #endif
18152 /* We use char because int might match the return type of a gcc2
18153    builtin and then its argument prototype would still apply.  */
18154 char setegid ();
18155 char (*f) ();
18156
18157 #ifdef F77_DUMMY_MAIN
18158 #  ifdef __cplusplus
18159      extern "C"
18160 #  endif
18161    int F77_DUMMY_MAIN() { return 1; }
18162 #endif
18163 int
18164 main ()
18165 {
18166 /* The GNU C library defines this for functions which it implements
18167     to always fail with ENOSYS.  Some functions are actually named
18168     something starting with __ and the normal name is an alias.  */
18169 #if defined (__stub_setegid) || defined (__stub___setegid)
18170 choke me
18171 #else
18172 f = setegid;
18173 #endif
18174
18175   ;
18176   return 0;
18177 }
18178 _ACEOF
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (eval echo "$as_me:18180: \"$ac_link\"") >&5
18181   (eval $ac_link) 2>&5
18182   ac_status=$?
18183   echo "$as_me:18183: \$? = $ac_status" >&5
18184   (exit $ac_status); } &&
18185          { ac_try='test -s conftest$ac_exeext'
18186   { (eval echo "$as_me:18186: \"$ac_try\"") >&5
18187   (eval $ac_try) 2>&5
18188   ac_status=$?
18189   echo "$as_me:18189: \$? = $ac_status" >&5
18190   (exit $ac_status); }; }; then
18191   ac_cv_func_setegid=yes
18192 else
18193   echo "$as_me: failed program was:" >&5
18194 cat conftest.$ac_ext >&5
18195 ac_cv_func_setegid=no
18196 fi
18197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18198 fi
18199 echo "$as_me:18199: result: $ac_cv_func_setegid" >&5
18200 echo "${ECHO_T}$ac_cv_func_setegid" >&6
18201 if test $ac_cv_func_setegid = yes; then
18202
18203 cat >>confdefs.h <<_ACEOF
18204 #define HAVE_SETEGID 1
18205 _ACEOF
18206
18207 else
18208   LIBOBJS="$LIBOBJS setegid.$ac_objext"
18209 fi
18210 echo "$as_me:18210: checking for setenv" >&5
18211 echo $ECHO_N "checking for setenv... $ECHO_C" >&6
18212 if test "${ac_cv_func_setenv+set}" = set; then
18213   echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215   cat >conftest.$ac_ext <<_ACEOF
18216 #line 18216 "configure"
18217 #include "confdefs.h"
18218 /* System header to define __stub macros and hopefully few prototypes,
18219     which can conflict with char setenv (); below.  */
18220 #include <assert.h>
18221 /* Override any gcc2 internal prototype to avoid an error.  */
18222 #ifdef __cplusplus
18223 extern "C"
18224 #endif
18225 /* We use char because int might match the return type of a gcc2
18226    builtin and then its argument prototype would still apply.  */
18227 char setenv ();
18228 char (*f) ();
18229
18230 #ifdef F77_DUMMY_MAIN
18231 #  ifdef __cplusplus
18232      extern "C"
18233 #  endif
18234    int F77_DUMMY_MAIN() { return 1; }
18235 #endif
18236 int
18237 main ()
18238 {
18239 /* The GNU C library defines this for functions which it implements
18240     to always fail with ENOSYS.  Some functions are actually named
18241     something starting with __ and the normal name is an alias.  */
18242 #if defined (__stub_setenv) || defined (__stub___setenv)
18243 choke me
18244 #else
18245 f = setenv;
18246 #endif
18247
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (eval echo "$as_me:18253: \"$ac_link\"") >&5
18254   (eval $ac_link) 2>&5
18255   ac_status=$?
18256   echo "$as_me:18256: \$? = $ac_status" >&5
18257   (exit $ac_status); } &&
18258          { ac_try='test -s conftest$ac_exeext'
18259   { (eval echo "$as_me:18259: \"$ac_try\"") >&5
18260   (eval $ac_try) 2>&5
18261   ac_status=$?
18262   echo "$as_me:18262: \$? = $ac_status" >&5
18263   (exit $ac_status); }; }; then
18264   ac_cv_func_setenv=yes
18265 else
18266   echo "$as_me: failed program was:" >&5
18267 cat conftest.$ac_ext >&5
18268 ac_cv_func_setenv=no
18269 fi
18270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18271 fi
18272 echo "$as_me:18272: result: $ac_cv_func_setenv" >&5
18273 echo "${ECHO_T}$ac_cv_func_setenv" >&6
18274 if test $ac_cv_func_setenv = yes; then
18275
18276 cat >>confdefs.h <<_ACEOF
18277 #define HAVE_SETENV 1
18278 _ACEOF
18279
18280 else
18281   LIBOBJS="$LIBOBJS setenv.$ac_objext"
18282 fi
18283 echo "$as_me:18283: checking for seteuid" >&5
18284 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
18285 if test "${ac_cv_func_seteuid+set}" = set; then
18286   echo $ECHO_N "(cached) $ECHO_C" >&6
18287 else
18288   cat >conftest.$ac_ext <<_ACEOF
18289 #line 18289 "configure"
18290 #include "confdefs.h"
18291 /* System header to define __stub macros and hopefully few prototypes,
18292     which can conflict with char seteuid (); below.  */
18293 #include <assert.h>
18294 /* Override any gcc2 internal prototype to avoid an error.  */
18295 #ifdef __cplusplus
18296 extern "C"
18297 #endif
18298 /* We use char because int might match the return type of a gcc2
18299    builtin and then its argument prototype would still apply.  */
18300 char seteuid ();
18301 char (*f) ();
18302
18303 #ifdef F77_DUMMY_MAIN
18304 #  ifdef __cplusplus
18305      extern "C"
18306 #  endif
18307    int F77_DUMMY_MAIN() { return 1; }
18308 #endif
18309 int
18310 main ()
18311 {
18312 /* The GNU C library defines this for functions which it implements
18313     to always fail with ENOSYS.  Some functions are actually named
18314     something starting with __ and the normal name is an alias.  */
18315 #if defined (__stub_seteuid) || defined (__stub___seteuid)
18316 choke me
18317 #else
18318 f = seteuid;
18319 #endif
18320
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (eval echo "$as_me:18326: \"$ac_link\"") >&5
18327   (eval $ac_link) 2>&5
18328   ac_status=$?
18329   echo "$as_me:18329: \$? = $ac_status" >&5
18330   (exit $ac_status); } &&
18331          { ac_try='test -s conftest$ac_exeext'
18332   { (eval echo "$as_me:18332: \"$ac_try\"") >&5
18333   (eval $ac_try) 2>&5
18334   ac_status=$?
18335   echo "$as_me:18335: \$? = $ac_status" >&5
18336   (exit $ac_status); }; }; then
18337   ac_cv_func_seteuid=yes
18338 else
18339   echo "$as_me: failed program was:" >&5
18340 cat conftest.$ac_ext >&5
18341 ac_cv_func_seteuid=no
18342 fi
18343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18344 fi
18345 echo "$as_me:18345: result: $ac_cv_func_seteuid" >&5
18346 echo "${ECHO_T}$ac_cv_func_seteuid" >&6
18347 if test $ac_cv_func_seteuid = yes; then
18348
18349 cat >>confdefs.h <<_ACEOF
18350 #define HAVE_SETEUID 1
18351 _ACEOF
18352
18353 else
18354   LIBOBJS="$LIBOBJS seteuid.$ac_objext"
18355 fi
18356 echo "$as_me:18356: checking for strcasecmp" >&5
18357 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
18358 if test "${ac_cv_func_strcasecmp+set}" = set; then
18359   echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361   cat >conftest.$ac_ext <<_ACEOF
18362 #line 18362 "configure"
18363 #include "confdefs.h"
18364 /* System header to define __stub macros and hopefully few prototypes,
18365     which can conflict with char strcasecmp (); below.  */
18366 #include <assert.h>
18367 /* Override any gcc2 internal prototype to avoid an error.  */
18368 #ifdef __cplusplus
18369 extern "C"
18370 #endif
18371 /* We use char because int might match the return type of a gcc2
18372    builtin and then its argument prototype would still apply.  */
18373 char strcasecmp ();
18374 char (*f) ();
18375
18376 #ifdef F77_DUMMY_MAIN
18377 #  ifdef __cplusplus
18378      extern "C"
18379 #  endif
18380    int F77_DUMMY_MAIN() { return 1; }
18381 #endif
18382 int
18383 main ()
18384 {
18385 /* The GNU C library defines this for functions which it implements
18386     to always fail with ENOSYS.  Some functions are actually named
18387     something starting with __ and the normal name is an alias.  */
18388 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
18389 choke me
18390 #else
18391 f = strcasecmp;
18392 #endif
18393
18394   ;
18395   return 0;
18396 }
18397 _ACEOF
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (eval echo "$as_me:18399: \"$ac_link\"") >&5
18400   (eval $ac_link) 2>&5
18401   ac_status=$?
18402   echo "$as_me:18402: \$? = $ac_status" >&5
18403   (exit $ac_status); } &&
18404          { ac_try='test -s conftest$ac_exeext'
18405   { (eval echo "$as_me:18405: \"$ac_try\"") >&5
18406   (eval $ac_try) 2>&5
18407   ac_status=$?
18408   echo "$as_me:18408: \$? = $ac_status" >&5
18409   (exit $ac_status); }; }; then
18410   ac_cv_func_strcasecmp=yes
18411 else
18412   echo "$as_me: failed program was:" >&5
18413 cat conftest.$ac_ext >&5
18414 ac_cv_func_strcasecmp=no
18415 fi
18416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18417 fi
18418 echo "$as_me:18418: result: $ac_cv_func_strcasecmp" >&5
18419 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
18420 if test $ac_cv_func_strcasecmp = yes; then
18421
18422 cat >>confdefs.h <<_ACEOF
18423 #define HAVE_STRCASECMP 1
18424 _ACEOF
18425
18426 else
18427   LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
18428 fi
18429 echo "$as_me:18429: checking for strdup" >&5
18430 echo $ECHO_N "checking for strdup... $ECHO_C" >&6
18431 if test "${ac_cv_func_strdup+set}" = set; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   cat >conftest.$ac_ext <<_ACEOF
18435 #line 18435 "configure"
18436 #include "confdefs.h"
18437 /* System header to define __stub macros and hopefully few prototypes,
18438     which can conflict with char strdup (); below.  */
18439 #include <assert.h>
18440 /* Override any gcc2 internal prototype to avoid an error.  */
18441 #ifdef __cplusplus
18442 extern "C"
18443 #endif
18444 /* We use char because int might match the return type of a gcc2
18445    builtin and then its argument prototype would still apply.  */
18446 char strdup ();
18447 char (*f) ();
18448
18449 #ifdef F77_DUMMY_MAIN
18450 #  ifdef __cplusplus
18451      extern "C"
18452 #  endif
18453    int F77_DUMMY_MAIN() { return 1; }
18454 #endif
18455 int
18456 main ()
18457 {
18458 /* The GNU C library defines this for functions which it implements
18459     to always fail with ENOSYS.  Some functions are actually named
18460     something starting with __ and the normal name is an alias.  */
18461 #if defined (__stub_strdup) || defined (__stub___strdup)
18462 choke me
18463 #else
18464 f = strdup;
18465 #endif
18466
18467   ;
18468   return 0;
18469 }
18470 _ACEOF
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (eval echo "$as_me:18472: \"$ac_link\"") >&5
18473   (eval $ac_link) 2>&5
18474   ac_status=$?
18475   echo "$as_me:18475: \$? = $ac_status" >&5
18476   (exit $ac_status); } &&
18477          { ac_try='test -s conftest$ac_exeext'
18478   { (eval echo "$as_me:18478: \"$ac_try\"") >&5
18479   (eval $ac_try) 2>&5
18480   ac_status=$?
18481   echo "$as_me:18481: \$? = $ac_status" >&5
18482   (exit $ac_status); }; }; then
18483   ac_cv_func_strdup=yes
18484 else
18485   echo "$as_me: failed program was:" >&5
18486 cat conftest.$ac_ext >&5
18487 ac_cv_func_strdup=no
18488 fi
18489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18490 fi
18491 echo "$as_me:18491: result: $ac_cv_func_strdup" >&5
18492 echo "${ECHO_T}$ac_cv_func_strdup" >&6
18493 if test $ac_cv_func_strdup = yes; then
18494
18495 cat >>confdefs.h <<_ACEOF
18496 #define HAVE_STRDUP 1
18497 _ACEOF
18498
18499 else
18500   LIBOBJS="$LIBOBJS strdup.$ac_objext"
18501 fi
18502 echo "$as_me:18502: checking for strerror" >&5
18503 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
18504 if test "${ac_cv_func_strerror+set}" = set; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507   cat >conftest.$ac_ext <<_ACEOF
18508 #line 18508 "configure"
18509 #include "confdefs.h"
18510 /* System header to define __stub macros and hopefully few prototypes,
18511     which can conflict with char strerror (); below.  */
18512 #include <assert.h>
18513 /* Override any gcc2 internal prototype to avoid an error.  */
18514 #ifdef __cplusplus
18515 extern "C"
18516 #endif
18517 /* We use char because int might match the return type of a gcc2
18518    builtin and then its argument prototype would still apply.  */
18519 char strerror ();
18520 char (*f) ();
18521
18522 #ifdef F77_DUMMY_MAIN
18523 #  ifdef __cplusplus
18524      extern "C"
18525 #  endif
18526    int F77_DUMMY_MAIN() { return 1; }
18527 #endif
18528 int
18529 main ()
18530 {
18531 /* The GNU C library defines this for functions which it implements
18532     to always fail with ENOSYS.  Some functions are actually named
18533     something starting with __ and the normal name is an alias.  */
18534 #if defined (__stub_strerror) || defined (__stub___strerror)
18535 choke me
18536 #else
18537 f = strerror;
18538 #endif
18539
18540   ;
18541   return 0;
18542 }
18543 _ACEOF
18544 rm -f conftest.$ac_objext conftest$ac_exeext
18545 if { (eval echo "$as_me:18545: \"$ac_link\"") >&5
18546   (eval $ac_link) 2>&5
18547   ac_status=$?
18548   echo "$as_me:18548: \$? = $ac_status" >&5
18549   (exit $ac_status); } &&
18550          { ac_try='test -s conftest$ac_exeext'
18551   { (eval echo "$as_me:18551: \"$ac_try\"") >&5
18552   (eval $ac_try) 2>&5
18553   ac_status=$?
18554   echo "$as_me:18554: \$? = $ac_status" >&5
18555   (exit $ac_status); }; }; then
18556   ac_cv_func_strerror=yes
18557 else
18558   echo "$as_me: failed program was:" >&5
18559 cat conftest.$ac_ext >&5
18560 ac_cv_func_strerror=no
18561 fi
18562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18563 fi
18564 echo "$as_me:18564: result: $ac_cv_func_strerror" >&5
18565 echo "${ECHO_T}$ac_cv_func_strerror" >&6
18566 if test $ac_cv_func_strerror = yes; then
18567
18568 cat >>confdefs.h <<_ACEOF
18569 #define HAVE_STRERROR 1
18570 _ACEOF
18571
18572 else
18573   LIBOBJS="$LIBOBJS strerror.$ac_objext"
18574 fi
18575 echo "$as_me:18575: checking for strftime" >&5
18576 echo $ECHO_N "checking for strftime... $ECHO_C" >&6
18577 if test "${ac_cv_func_strftime+set}" = set; then
18578   echo $ECHO_N "(cached) $ECHO_C" >&6
18579 else
18580   cat >conftest.$ac_ext <<_ACEOF
18581 #line 18581 "configure"
18582 #include "confdefs.h"
18583 /* System header to define __stub macros and hopefully few prototypes,
18584     which can conflict with char strftime (); below.  */
18585 #include <assert.h>
18586 /* Override any gcc2 internal prototype to avoid an error.  */
18587 #ifdef __cplusplus
18588 extern "C"
18589 #endif
18590 /* We use char because int might match the return type of a gcc2
18591    builtin and then its argument prototype would still apply.  */
18592 char strftime ();
18593 char (*f) ();
18594
18595 #ifdef F77_DUMMY_MAIN
18596 #  ifdef __cplusplus
18597      extern "C"
18598 #  endif
18599    int F77_DUMMY_MAIN() { return 1; }
18600 #endif
18601 int
18602 main ()
18603 {
18604 /* The GNU C library defines this for functions which it implements
18605     to always fail with ENOSYS.  Some functions are actually named
18606     something starting with __ and the normal name is an alias.  */
18607 #if defined (__stub_strftime) || defined (__stub___strftime)
18608 choke me
18609 #else
18610 f = strftime;
18611 #endif
18612
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 rm -f conftest.$ac_objext conftest$ac_exeext
18618 if { (eval echo "$as_me:18618: \"$ac_link\"") >&5
18619   (eval $ac_link) 2>&5
18620   ac_status=$?
18621   echo "$as_me:18621: \$? = $ac_status" >&5
18622   (exit $ac_status); } &&
18623          { ac_try='test -s conftest$ac_exeext'
18624   { (eval echo "$as_me:18624: \"$ac_try\"") >&5
18625   (eval $ac_try) 2>&5
18626   ac_status=$?
18627   echo "$as_me:18627: \$? = $ac_status" >&5
18628   (exit $ac_status); }; }; then
18629   ac_cv_func_strftime=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 cat conftest.$ac_ext >&5
18633 ac_cv_func_strftime=no
18634 fi
18635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18636 fi
18637 echo "$as_me:18637: result: $ac_cv_func_strftime" >&5
18638 echo "${ECHO_T}$ac_cv_func_strftime" >&6
18639 if test $ac_cv_func_strftime = yes; then
18640
18641 cat >>confdefs.h <<_ACEOF
18642 #define HAVE_STRFTIME 1
18643 _ACEOF
18644
18645 else
18646   LIBOBJS="$LIBOBJS strftime.$ac_objext"
18647 fi
18648 echo "$as_me:18648: checking for strlcat" >&5
18649 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
18650 if test "${ac_cv_func_strlcat+set}" = set; then
18651   echo $ECHO_N "(cached) $ECHO_C" >&6
18652 else
18653   cat >conftest.$ac_ext <<_ACEOF
18654 #line 18654 "configure"
18655 #include "confdefs.h"
18656 /* System header to define __stub macros and hopefully few prototypes,
18657     which can conflict with char strlcat (); below.  */
18658 #include <assert.h>
18659 /* Override any gcc2 internal prototype to avoid an error.  */
18660 #ifdef __cplusplus
18661 extern "C"
18662 #endif
18663 /* We use char because int might match the return type of a gcc2
18664    builtin and then its argument prototype would still apply.  */
18665 char strlcat ();
18666 char (*f) ();
18667
18668 #ifdef F77_DUMMY_MAIN
18669 #  ifdef __cplusplus
18670      extern "C"
18671 #  endif
18672    int F77_DUMMY_MAIN() { return 1; }
18673 #endif
18674 int
18675 main ()
18676 {
18677 /* The GNU C library defines this for functions which it implements
18678     to always fail with ENOSYS.  Some functions are actually named
18679     something starting with __ and the normal name is an alias.  */
18680 #if defined (__stub_strlcat) || defined (__stub___strlcat)
18681 choke me
18682 #else
18683 f = strlcat;
18684 #endif
18685
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (eval echo "$as_me:18691: \"$ac_link\"") >&5
18692   (eval $ac_link) 2>&5
18693   ac_status=$?
18694   echo "$as_me:18694: \$? = $ac_status" >&5
18695   (exit $ac_status); } &&
18696          { ac_try='test -s conftest$ac_exeext'
18697   { (eval echo "$as_me:18697: \"$ac_try\"") >&5
18698   (eval $ac_try) 2>&5
18699   ac_status=$?
18700   echo "$as_me:18700: \$? = $ac_status" >&5
18701   (exit $ac_status); }; }; then
18702   ac_cv_func_strlcat=yes
18703 else
18704   echo "$as_me: failed program was:" >&5
18705 cat conftest.$ac_ext >&5
18706 ac_cv_func_strlcat=no
18707 fi
18708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18709 fi
18710 echo "$as_me:18710: result: $ac_cv_func_strlcat" >&5
18711 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
18712 if test $ac_cv_func_strlcat = yes; then
18713
18714 cat >>confdefs.h <<_ACEOF
18715 #define HAVE_STRLCAT 1
18716 _ACEOF
18717
18718 else
18719   LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18720 fi
18721 echo "$as_me:18721: checking for strlcpy" >&5
18722 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
18723 if test "${ac_cv_func_strlcpy+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   cat >conftest.$ac_ext <<_ACEOF
18727 #line 18727 "configure"
18728 #include "confdefs.h"
18729 /* System header to define __stub macros and hopefully few prototypes,
18730     which can conflict with char strlcpy (); below.  */
18731 #include <assert.h>
18732 /* Override any gcc2 internal prototype to avoid an error.  */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 /* We use char because int might match the return type of a gcc2
18737    builtin and then its argument prototype would still apply.  */
18738 char strlcpy ();
18739 char (*f) ();
18740
18741 #ifdef F77_DUMMY_MAIN
18742 #  ifdef __cplusplus
18743      extern "C"
18744 #  endif
18745    int F77_DUMMY_MAIN() { return 1; }
18746 #endif
18747 int
18748 main ()
18749 {
18750 /* The GNU C library defines this for functions which it implements
18751     to always fail with ENOSYS.  Some functions are actually named
18752     something starting with __ and the normal name is an alias.  */
18753 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
18754 choke me
18755 #else
18756 f = strlcpy;
18757 #endif
18758
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext conftest$ac_exeext
18764 if { (eval echo "$as_me:18764: \"$ac_link\"") >&5
18765   (eval $ac_link) 2>&5
18766   ac_status=$?
18767   echo "$as_me:18767: \$? = $ac_status" >&5
18768   (exit $ac_status); } &&
18769          { ac_try='test -s conftest$ac_exeext'
18770   { (eval echo "$as_me:18770: \"$ac_try\"") >&5
18771   (eval $ac_try) 2>&5
18772   ac_status=$?
18773   echo "$as_me:18773: \$? = $ac_status" >&5
18774   (exit $ac_status); }; }; then
18775   ac_cv_func_strlcpy=yes
18776 else
18777   echo "$as_me: failed program was:" >&5
18778 cat conftest.$ac_ext >&5
18779 ac_cv_func_strlcpy=no
18780 fi
18781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18782 fi
18783 echo "$as_me:18783: result: $ac_cv_func_strlcpy" >&5
18784 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
18785 if test $ac_cv_func_strlcpy = yes; then
18786
18787 cat >>confdefs.h <<_ACEOF
18788 #define HAVE_STRLCPY 1
18789 _ACEOF
18790
18791 else
18792   LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18793 fi
18794 echo "$as_me:18794: checking for strlwr" >&5
18795 echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
18796 if test "${ac_cv_func_strlwr+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   cat >conftest.$ac_ext <<_ACEOF
18800 #line 18800 "configure"
18801 #include "confdefs.h"
18802 /* System header to define __stub macros and hopefully few prototypes,
18803     which can conflict with char strlwr (); below.  */
18804 #include <assert.h>
18805 /* Override any gcc2 internal prototype to avoid an error.  */
18806 #ifdef __cplusplus
18807 extern "C"
18808 #endif
18809 /* We use char because int might match the return type of a gcc2
18810    builtin and then its argument prototype would still apply.  */
18811 char strlwr ();
18812 char (*f) ();
18813
18814 #ifdef F77_DUMMY_MAIN
18815 #  ifdef __cplusplus
18816      extern "C"
18817 #  endif
18818    int F77_DUMMY_MAIN() { return 1; }
18819 #endif
18820 int
18821 main ()
18822 {
18823 /* The GNU C library defines this for functions which it implements
18824     to always fail with ENOSYS.  Some functions are actually named
18825     something starting with __ and the normal name is an alias.  */
18826 #if defined (__stub_strlwr) || defined (__stub___strlwr)
18827 choke me
18828 #else
18829 f = strlwr;
18830 #endif
18831
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (eval echo "$as_me:18837: \"$ac_link\"") >&5
18838   (eval $ac_link) 2>&5
18839   ac_status=$?
18840   echo "$as_me:18840: \$? = $ac_status" >&5
18841   (exit $ac_status); } &&
18842          { ac_try='test -s conftest$ac_exeext'
18843   { (eval echo "$as_me:18843: \"$ac_try\"") >&5
18844   (eval $ac_try) 2>&5
18845   ac_status=$?
18846   echo "$as_me:18846: \$? = $ac_status" >&5
18847   (exit $ac_status); }; }; then
18848   ac_cv_func_strlwr=yes
18849 else
18850   echo "$as_me: failed program was:" >&5
18851 cat conftest.$ac_ext >&5
18852 ac_cv_func_strlwr=no
18853 fi
18854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18855 fi
18856 echo "$as_me:18856: result: $ac_cv_func_strlwr" >&5
18857 echo "${ECHO_T}$ac_cv_func_strlwr" >&6
18858 if test $ac_cv_func_strlwr = yes; then
18859
18860 cat >>confdefs.h <<_ACEOF
18861 #define HAVE_STRLWR 1
18862 _ACEOF
18863
18864 else
18865   LIBOBJS="$LIBOBJS strlwr.$ac_objext"
18866 fi
18867 echo "$as_me:18867: checking for strncasecmp" >&5
18868 echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
18869 if test "${ac_cv_func_strncasecmp+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   cat >conftest.$ac_ext <<_ACEOF
18873 #line 18873 "configure"
18874 #include "confdefs.h"
18875 /* System header to define __stub macros and hopefully few prototypes,
18876     which can conflict with char strncasecmp (); below.  */
18877 #include <assert.h>
18878 /* Override any gcc2 internal prototype to avoid an error.  */
18879 #ifdef __cplusplus
18880 extern "C"
18881 #endif
18882 /* We use char because int might match the return type of a gcc2
18883    builtin and then its argument prototype would still apply.  */
18884 char strncasecmp ();
18885 char (*f) ();
18886
18887 #ifdef F77_DUMMY_MAIN
18888 #  ifdef __cplusplus
18889      extern "C"
18890 #  endif
18891    int F77_DUMMY_MAIN() { return 1; }
18892 #endif
18893 int
18894 main ()
18895 {
18896 /* The GNU C library defines this for functions which it implements
18897     to always fail with ENOSYS.  Some functions are actually named
18898     something starting with __ and the normal name is an alias.  */
18899 #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
18900 choke me
18901 #else
18902 f = strncasecmp;
18903 #endif
18904
18905   ;
18906   return 0;
18907 }
18908 _ACEOF
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (eval echo "$as_me:18910: \"$ac_link\"") >&5
18911   (eval $ac_link) 2>&5
18912   ac_status=$?
18913   echo "$as_me:18913: \$? = $ac_status" >&5
18914   (exit $ac_status); } &&
18915          { ac_try='test -s conftest$ac_exeext'
18916   { (eval echo "$as_me:18916: \"$ac_try\"") >&5
18917   (eval $ac_try) 2>&5
18918   ac_status=$?
18919   echo "$as_me:18919: \$? = $ac_status" >&5
18920   (exit $ac_status); }; }; then
18921   ac_cv_func_strncasecmp=yes
18922 else
18923   echo "$as_me: failed program was:" >&5
18924 cat conftest.$ac_ext >&5
18925 ac_cv_func_strncasecmp=no
18926 fi
18927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18928 fi
18929 echo "$as_me:18929: result: $ac_cv_func_strncasecmp" >&5
18930 echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
18931 if test $ac_cv_func_strncasecmp = yes; then
18932
18933 cat >>confdefs.h <<_ACEOF
18934 #define HAVE_STRNCASECMP 1
18935 _ACEOF
18936
18937 else
18938   LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
18939 fi
18940 echo "$as_me:18940: checking for strndup" >&5
18941 echo $ECHO_N "checking for strndup... $ECHO_C" >&6
18942 if test "${ac_cv_func_strndup+set}" = set; then
18943   echo $ECHO_N "(cached) $ECHO_C" >&6
18944 else
18945   cat >conftest.$ac_ext <<_ACEOF
18946 #line 18946 "configure"
18947 #include "confdefs.h"
18948 /* System header to define __stub macros and hopefully few prototypes,
18949     which can conflict with char strndup (); below.  */
18950 #include <assert.h>
18951 /* Override any gcc2 internal prototype to avoid an error.  */
18952 #ifdef __cplusplus
18953 extern "C"
18954 #endif
18955 /* We use char because int might match the return type of a gcc2
18956    builtin and then its argument prototype would still apply.  */
18957 char strndup ();
18958 char (*f) ();
18959
18960 #ifdef F77_DUMMY_MAIN
18961 #  ifdef __cplusplus
18962      extern "C"
18963 #  endif
18964    int F77_DUMMY_MAIN() { return 1; }
18965 #endif
18966 int
18967 main ()
18968 {
18969 /* The GNU C library defines this for functions which it implements
18970     to always fail with ENOSYS.  Some functions are actually named
18971     something starting with __ and the normal name is an alias.  */
18972 #if defined (__stub_strndup) || defined (__stub___strndup)
18973 choke me
18974 #else
18975 f = strndup;
18976 #endif
18977
18978   ;
18979   return 0;
18980 }
18981 _ACEOF
18982 rm -f conftest.$ac_objext conftest$ac_exeext
18983 if { (eval echo "$as_me:18983: \"$ac_link\"") >&5
18984   (eval $ac_link) 2>&5
18985   ac_status=$?
18986   echo "$as_me:18986: \$? = $ac_status" >&5
18987   (exit $ac_status); } &&
18988          { ac_try='test -s conftest$ac_exeext'
18989   { (eval echo "$as_me:18989: \"$ac_try\"") >&5
18990   (eval $ac_try) 2>&5
18991   ac_status=$?
18992   echo "$as_me:18992: \$? = $ac_status" >&5
18993   (exit $ac_status); }; }; then
18994   ac_cv_func_strndup=yes
18995 else
18996   echo "$as_me: failed program was:" >&5
18997 cat conftest.$ac_ext >&5
18998 ac_cv_func_strndup=no
18999 fi
19000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19001 fi
19002 echo "$as_me:19002: result: $ac_cv_func_strndup" >&5
19003 echo "${ECHO_T}$ac_cv_func_strndup" >&6
19004 if test $ac_cv_func_strndup = yes; then
19005
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_STRNDUP 1
19008 _ACEOF
19009
19010 else
19011   LIBOBJS="$LIBOBJS strndup.$ac_objext"
19012 fi
19013 echo "$as_me:19013: checking for strnlen" >&5
19014 echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
19015 if test "${ac_cv_func_strnlen+set}" = set; then
19016   echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19018   cat >conftest.$ac_ext <<_ACEOF
19019 #line 19019 "configure"
19020 #include "confdefs.h"
19021 /* System header to define __stub macros and hopefully few prototypes,
19022     which can conflict with char strnlen (); below.  */
19023 #include <assert.h>
19024 /* Override any gcc2 internal prototype to avoid an error.  */
19025 #ifdef __cplusplus
19026 extern "C"
19027 #endif
19028 /* We use char because int might match the return type of a gcc2
19029    builtin and then its argument prototype would still apply.  */
19030 char strnlen ();
19031 char (*f) ();
19032
19033 #ifdef F77_DUMMY_MAIN
19034 #  ifdef __cplusplus
19035      extern "C"
19036 #  endif
19037    int F77_DUMMY_MAIN() { return 1; }
19038 #endif
19039 int
19040 main ()
19041 {
19042 /* The GNU C library defines this for functions which it implements
19043     to always fail with ENOSYS.  Some functions are actually named
19044     something starting with __ and the normal name is an alias.  */
19045 #if defined (__stub_strnlen) || defined (__stub___strnlen)
19046 choke me
19047 #else
19048 f = strnlen;
19049 #endif
19050
19051   ;
19052   return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (eval echo "$as_me:19056: \"$ac_link\"") >&5
19057   (eval $ac_link) 2>&5
19058   ac_status=$?
19059   echo "$as_me:19059: \$? = $ac_status" >&5
19060   (exit $ac_status); } &&
19061          { ac_try='test -s conftest$ac_exeext'
19062   { (eval echo "$as_me:19062: \"$ac_try\"") >&5
19063   (eval $ac_try) 2>&5
19064   ac_status=$?
19065   echo "$as_me:19065: \$? = $ac_status" >&5
19066   (exit $ac_status); }; }; then
19067   ac_cv_func_strnlen=yes
19068 else
19069   echo "$as_me: failed program was:" >&5
19070 cat conftest.$ac_ext >&5
19071 ac_cv_func_strnlen=no
19072 fi
19073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19074 fi
19075 echo "$as_me:19075: result: $ac_cv_func_strnlen" >&5
19076 echo "${ECHO_T}$ac_cv_func_strnlen" >&6
19077 if test $ac_cv_func_strnlen = yes; then
19078
19079 cat >>confdefs.h <<_ACEOF
19080 #define HAVE_STRNLEN 1
19081 _ACEOF
19082
19083 else
19084   LIBOBJS="$LIBOBJS strnlen.$ac_objext"
19085 fi
19086 echo "$as_me:19086: checking for strptime" >&5
19087 echo $ECHO_N "checking for strptime... $ECHO_C" >&6
19088 if test "${ac_cv_func_strptime+set}" = set; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   cat >conftest.$ac_ext <<_ACEOF
19092 #line 19092 "configure"
19093 #include "confdefs.h"
19094 /* System header to define __stub macros and hopefully few prototypes,
19095     which can conflict with char strptime (); below.  */
19096 #include <assert.h>
19097 /* Override any gcc2 internal prototype to avoid an error.  */
19098 #ifdef __cplusplus
19099 extern "C"
19100 #endif
19101 /* We use char because int might match the return type of a gcc2
19102    builtin and then its argument prototype would still apply.  */
19103 char strptime ();
19104 char (*f) ();
19105
19106 #ifdef F77_DUMMY_MAIN
19107 #  ifdef __cplusplus
19108      extern "C"
19109 #  endif
19110    int F77_DUMMY_MAIN() { return 1; }
19111 #endif
19112 int
19113 main ()
19114 {
19115 /* The GNU C library defines this for functions which it implements
19116     to always fail with ENOSYS.  Some functions are actually named
19117     something starting with __ and the normal name is an alias.  */
19118 #if defined (__stub_strptime) || defined (__stub___strptime)
19119 choke me
19120 #else
19121 f = strptime;
19122 #endif
19123
19124   ;
19125   return 0;
19126 }
19127 _ACEOF
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (eval echo "$as_me:19129: \"$ac_link\"") >&5
19130   (eval $ac_link) 2>&5
19131   ac_status=$?
19132   echo "$as_me:19132: \$? = $ac_status" >&5
19133   (exit $ac_status); } &&
19134          { ac_try='test -s conftest$ac_exeext'
19135   { (eval echo "$as_me:19135: \"$ac_try\"") >&5
19136   (eval $ac_try) 2>&5
19137   ac_status=$?
19138   echo "$as_me:19138: \$? = $ac_status" >&5
19139   (exit $ac_status); }; }; then
19140   ac_cv_func_strptime=yes
19141 else
19142   echo "$as_me: failed program was:" >&5
19143 cat conftest.$ac_ext >&5
19144 ac_cv_func_strptime=no
19145 fi
19146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19147 fi
19148 echo "$as_me:19148: result: $ac_cv_func_strptime" >&5
19149 echo "${ECHO_T}$ac_cv_func_strptime" >&6
19150 if test $ac_cv_func_strptime = yes; then
19151
19152 cat >>confdefs.h <<_ACEOF
19153 #define HAVE_STRPTIME 1
19154 _ACEOF
19155
19156 else
19157   LIBOBJS="$LIBOBJS strptime.$ac_objext"
19158 fi
19159 echo "$as_me:19159: checking for strsep" >&5
19160 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
19161 if test "${ac_cv_func_strsep+set}" = set; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   cat >conftest.$ac_ext <<_ACEOF
19165 #line 19165 "configure"
19166 #include "confdefs.h"
19167 /* System header to define __stub macros and hopefully few prototypes,
19168     which can conflict with char strsep (); below.  */
19169 #include <assert.h>
19170 /* Override any gcc2 internal prototype to avoid an error.  */
19171 #ifdef __cplusplus
19172 extern "C"
19173 #endif
19174 /* We use char because int might match the return type of a gcc2
19175    builtin and then its argument prototype would still apply.  */
19176 char strsep ();
19177 char (*f) ();
19178
19179 #ifdef F77_DUMMY_MAIN
19180 #  ifdef __cplusplus
19181      extern "C"
19182 #  endif
19183    int F77_DUMMY_MAIN() { return 1; }
19184 #endif
19185 int
19186 main ()
19187 {
19188 /* The GNU C library defines this for functions which it implements
19189     to always fail with ENOSYS.  Some functions are actually named
19190     something starting with __ and the normal name is an alias.  */
19191 #if defined (__stub_strsep) || defined (__stub___strsep)
19192 choke me
19193 #else
19194 f = strsep;
19195 #endif
19196
19197   ;
19198   return 0;
19199 }
19200 _ACEOF
19201 rm -f conftest.$ac_objext conftest$ac_exeext
19202 if { (eval echo "$as_me:19202: \"$ac_link\"") >&5
19203   (eval $ac_link) 2>&5
19204   ac_status=$?
19205   echo "$as_me:19205: \$? = $ac_status" >&5
19206   (exit $ac_status); } &&
19207          { ac_try='test -s conftest$ac_exeext'
19208   { (eval echo "$as_me:19208: \"$ac_try\"") >&5
19209   (eval $ac_try) 2>&5
19210   ac_status=$?
19211   echo "$as_me:19211: \$? = $ac_status" >&5
19212   (exit $ac_status); }; }; then
19213   ac_cv_func_strsep=yes
19214 else
19215   echo "$as_me: failed program was:" >&5
19216 cat conftest.$ac_ext >&5
19217 ac_cv_func_strsep=no
19218 fi
19219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19220 fi
19221 echo "$as_me:19221: result: $ac_cv_func_strsep" >&5
19222 echo "${ECHO_T}$ac_cv_func_strsep" >&6
19223 if test $ac_cv_func_strsep = yes; then
19224
19225 cat >>confdefs.h <<_ACEOF
19226 #define HAVE_STRSEP 1
19227 _ACEOF
19228
19229 else
19230   LIBOBJS="$LIBOBJS strsep.$ac_objext"
19231 fi
19232 echo "$as_me:19232: checking for strsep_copy" >&5
19233 echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
19234 if test "${ac_cv_func_strsep_copy+set}" = set; then
19235   echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237   cat >conftest.$ac_ext <<_ACEOF
19238 #line 19238 "configure"
19239 #include "confdefs.h"
19240 /* System header to define __stub macros and hopefully few prototypes,
19241     which can conflict with char strsep_copy (); below.  */
19242 #include <assert.h>
19243 /* Override any gcc2 internal prototype to avoid an error.  */
19244 #ifdef __cplusplus
19245 extern "C"
19246 #endif
19247 /* We use char because int might match the return type of a gcc2
19248    builtin and then its argument prototype would still apply.  */
19249 char strsep_copy ();
19250 char (*f) ();
19251
19252 #ifdef F77_DUMMY_MAIN
19253 #  ifdef __cplusplus
19254      extern "C"
19255 #  endif
19256    int F77_DUMMY_MAIN() { return 1; }
19257 #endif
19258 int
19259 main ()
19260 {
19261 /* The GNU C library defines this for functions which it implements
19262     to always fail with ENOSYS.  Some functions are actually named
19263     something starting with __ and the normal name is an alias.  */
19264 #if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
19265 choke me
19266 #else
19267 f = strsep_copy;
19268 #endif
19269
19270   ;
19271   return 0;
19272 }
19273 _ACEOF
19274 rm -f conftest.$ac_objext conftest$ac_exeext
19275 if { (eval echo "$as_me:19275: \"$ac_link\"") >&5
19276   (eval $ac_link) 2>&5
19277   ac_status=$?
19278   echo "$as_me:19278: \$? = $ac_status" >&5
19279   (exit $ac_status); } &&
19280          { ac_try='test -s conftest$ac_exeext'
19281   { (eval echo "$as_me:19281: \"$ac_try\"") >&5
19282   (eval $ac_try) 2>&5
19283   ac_status=$?
19284   echo "$as_me:19284: \$? = $ac_status" >&5
19285   (exit $ac_status); }; }; then
19286   ac_cv_func_strsep_copy=yes
19287 else
19288   echo "$as_me: failed program was:" >&5
19289 cat conftest.$ac_ext >&5
19290 ac_cv_func_strsep_copy=no
19291 fi
19292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19293 fi
19294 echo "$as_me:19294: result: $ac_cv_func_strsep_copy" >&5
19295 echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
19296 if test $ac_cv_func_strsep_copy = yes; then
19297
19298 cat >>confdefs.h <<_ACEOF
19299 #define HAVE_STRSEP_COPY 1
19300 _ACEOF
19301
19302 else
19303   LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
19304 fi
19305 echo "$as_me:19305: checking for strtok_r" >&5
19306 echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
19307 if test "${ac_cv_func_strtok_r+set}" = set; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   cat >conftest.$ac_ext <<_ACEOF
19311 #line 19311 "configure"
19312 #include "confdefs.h"
19313 /* System header to define __stub macros and hopefully few prototypes,
19314     which can conflict with char strtok_r (); below.  */
19315 #include <assert.h>
19316 /* Override any gcc2 internal prototype to avoid an error.  */
19317 #ifdef __cplusplus
19318 extern "C"
19319 #endif
19320 /* We use char because int might match the return type of a gcc2
19321    builtin and then its argument prototype would still apply.  */
19322 char strtok_r ();
19323 char (*f) ();
19324
19325 #ifdef F77_DUMMY_MAIN
19326 #  ifdef __cplusplus
19327      extern "C"
19328 #  endif
19329    int F77_DUMMY_MAIN() { return 1; }
19330 #endif
19331 int
19332 main ()
19333 {
19334 /* The GNU C library defines this for functions which it implements
19335     to always fail with ENOSYS.  Some functions are actually named
19336     something starting with __ and the normal name is an alias.  */
19337 #if defined (__stub_strtok_r) || defined (__stub___strtok_r)
19338 choke me
19339 #else
19340 f = strtok_r;
19341 #endif
19342
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (eval echo "$as_me:19348: \"$ac_link\"") >&5
19349   (eval $ac_link) 2>&5
19350   ac_status=$?
19351   echo "$as_me:19351: \$? = $ac_status" >&5
19352   (exit $ac_status); } &&
19353          { ac_try='test -s conftest$ac_exeext'
19354   { (eval echo "$as_me:19354: \"$ac_try\"") >&5
19355   (eval $ac_try) 2>&5
19356   ac_status=$?
19357   echo "$as_me:19357: \$? = $ac_status" >&5
19358   (exit $ac_status); }; }; then
19359   ac_cv_func_strtok_r=yes
19360 else
19361   echo "$as_me: failed program was:" >&5
19362 cat conftest.$ac_ext >&5
19363 ac_cv_func_strtok_r=no
19364 fi
19365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19366 fi
19367 echo "$as_me:19367: result: $ac_cv_func_strtok_r" >&5
19368 echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
19369 if test $ac_cv_func_strtok_r = yes; then
19370
19371 cat >>confdefs.h <<_ACEOF
19372 #define HAVE_STRTOK_R 1
19373 _ACEOF
19374
19375 else
19376   LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
19377 fi
19378 echo "$as_me:19378: checking for strupr" >&5
19379 echo $ECHO_N "checking for strupr... $ECHO_C" >&6
19380 if test "${ac_cv_func_strupr+set}" = set; then
19381   echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383   cat >conftest.$ac_ext <<_ACEOF
19384 #line 19384 "configure"
19385 #include "confdefs.h"
19386 /* System header to define __stub macros and hopefully few prototypes,
19387     which can conflict with char strupr (); below.  */
19388 #include <assert.h>
19389 /* Override any gcc2 internal prototype to avoid an error.  */
19390 #ifdef __cplusplus
19391 extern "C"
19392 #endif
19393 /* We use char because int might match the return type of a gcc2
19394    builtin and then its argument prototype would still apply.  */
19395 char strupr ();
19396 char (*f) ();
19397
19398 #ifdef F77_DUMMY_MAIN
19399 #  ifdef __cplusplus
19400      extern "C"
19401 #  endif
19402    int F77_DUMMY_MAIN() { return 1; }
19403 #endif
19404 int
19405 main ()
19406 {
19407 /* The GNU C library defines this for functions which it implements
19408     to always fail with ENOSYS.  Some functions are actually named
19409     something starting with __ and the normal name is an alias.  */
19410 #if defined (__stub_strupr) || defined (__stub___strupr)
19411 choke me
19412 #else
19413 f = strupr;
19414 #endif
19415
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (eval echo "$as_me:19421: \"$ac_link\"") >&5
19422   (eval $ac_link) 2>&5
19423   ac_status=$?
19424   echo "$as_me:19424: \$? = $ac_status" >&5
19425   (exit $ac_status); } &&
19426          { ac_try='test -s conftest$ac_exeext'
19427   { (eval echo "$as_me:19427: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:19430: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_cv_func_strupr=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 cat conftest.$ac_ext >&5
19436 ac_cv_func_strupr=no
19437 fi
19438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19439 fi
19440 echo "$as_me:19440: result: $ac_cv_func_strupr" >&5
19441 echo "${ECHO_T}$ac_cv_func_strupr" >&6
19442 if test $ac_cv_func_strupr = yes; then
19443
19444 cat >>confdefs.h <<_ACEOF
19445 #define HAVE_STRUPR 1
19446 _ACEOF
19447
19448 else
19449   LIBOBJS="$LIBOBJS strupr.$ac_objext"
19450 fi
19451 echo "$as_me:19451: checking for swab" >&5
19452 echo $ECHO_N "checking for swab... $ECHO_C" >&6
19453 if test "${ac_cv_func_swab+set}" = set; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456   cat >conftest.$ac_ext <<_ACEOF
19457 #line 19457 "configure"
19458 #include "confdefs.h"
19459 /* System header to define __stub macros and hopefully few prototypes,
19460     which can conflict with char swab (); below.  */
19461 #include <assert.h>
19462 /* Override any gcc2 internal prototype to avoid an error.  */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 /* We use char because int might match the return type of a gcc2
19467    builtin and then its argument prototype would still apply.  */
19468 char swab ();
19469 char (*f) ();
19470
19471 #ifdef F77_DUMMY_MAIN
19472 #  ifdef __cplusplus
19473      extern "C"
19474 #  endif
19475    int F77_DUMMY_MAIN() { return 1; }
19476 #endif
19477 int
19478 main ()
19479 {
19480 /* The GNU C library defines this for functions which it implements
19481     to always fail with ENOSYS.  Some functions are actually named
19482     something starting with __ and the normal name is an alias.  */
19483 #if defined (__stub_swab) || defined (__stub___swab)
19484 choke me
19485 #else
19486 f = swab;
19487 #endif
19488
19489   ;
19490   return 0;
19491 }
19492 _ACEOF
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (eval echo "$as_me:19494: \"$ac_link\"") >&5
19495   (eval $ac_link) 2>&5
19496   ac_status=$?
19497   echo "$as_me:19497: \$? = $ac_status" >&5
19498   (exit $ac_status); } &&
19499          { ac_try='test -s conftest$ac_exeext'
19500   { (eval echo "$as_me:19500: \"$ac_try\"") >&5
19501   (eval $ac_try) 2>&5
19502   ac_status=$?
19503   echo "$as_me:19503: \$? = $ac_status" >&5
19504   (exit $ac_status); }; }; then
19505   ac_cv_func_swab=yes
19506 else
19507   echo "$as_me: failed program was:" >&5
19508 cat conftest.$ac_ext >&5
19509 ac_cv_func_swab=no
19510 fi
19511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19512 fi
19513 echo "$as_me:19513: result: $ac_cv_func_swab" >&5
19514 echo "${ECHO_T}$ac_cv_func_swab" >&6
19515 if test $ac_cv_func_swab = yes; then
19516
19517 cat >>confdefs.h <<_ACEOF
19518 #define HAVE_SWAB 1
19519 _ACEOF
19520
19521 else
19522   LIBOBJS="$LIBOBJS swab.$ac_objext"
19523 fi
19524 echo "$as_me:19524: checking for unsetenv" >&5
19525 echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
19526 if test "${ac_cv_func_unsetenv+set}" = set; then
19527   echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529   cat >conftest.$ac_ext <<_ACEOF
19530 #line 19530 "configure"
19531 #include "confdefs.h"
19532 /* System header to define __stub macros and hopefully few prototypes,
19533     which can conflict with char unsetenv (); below.  */
19534 #include <assert.h>
19535 /* Override any gcc2 internal prototype to avoid an error.  */
19536 #ifdef __cplusplus
19537 extern "C"
19538 #endif
19539 /* We use char because int might match the return type of a gcc2
19540    builtin and then its argument prototype would still apply.  */
19541 char unsetenv ();
19542 char (*f) ();
19543
19544 #ifdef F77_DUMMY_MAIN
19545 #  ifdef __cplusplus
19546      extern "C"
19547 #  endif
19548    int F77_DUMMY_MAIN() { return 1; }
19549 #endif
19550 int
19551 main ()
19552 {
19553 /* The GNU C library defines this for functions which it implements
19554     to always fail with ENOSYS.  Some functions are actually named
19555     something starting with __ and the normal name is an alias.  */
19556 #if defined (__stub_unsetenv) || defined (__stub___unsetenv)
19557 choke me
19558 #else
19559 f = unsetenv;
19560 #endif
19561
19562   ;
19563   return 0;
19564 }
19565 _ACEOF
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (eval echo "$as_me:19567: \"$ac_link\"") >&5
19568   (eval $ac_link) 2>&5
19569   ac_status=$?
19570   echo "$as_me:19570: \$? = $ac_status" >&5
19571   (exit $ac_status); } &&
19572          { ac_try='test -s conftest$ac_exeext'
19573   { (eval echo "$as_me:19573: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:19576: \$? = $ac_status" >&5
19577   (exit $ac_status); }; }; then
19578   ac_cv_func_unsetenv=yes
19579 else
19580   echo "$as_me: failed program was:" >&5
19581 cat conftest.$ac_ext >&5
19582 ac_cv_func_unsetenv=no
19583 fi
19584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19585 fi
19586 echo "$as_me:19586: result: $ac_cv_func_unsetenv" >&5
19587 echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
19588 if test $ac_cv_func_unsetenv = yes; then
19589
19590 cat >>confdefs.h <<_ACEOF
19591 #define HAVE_UNSETENV 1
19592 _ACEOF
19593
19594 else
19595   LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
19596 fi
19597 echo "$as_me:19597: checking for verr" >&5
19598 echo $ECHO_N "checking for verr... $ECHO_C" >&6
19599 if test "${ac_cv_func_verr+set}" = set; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602   cat >conftest.$ac_ext <<_ACEOF
19603 #line 19603 "configure"
19604 #include "confdefs.h"
19605 /* System header to define __stub macros and hopefully few prototypes,
19606     which can conflict with char verr (); below.  */
19607 #include <assert.h>
19608 /* Override any gcc2 internal prototype to avoid an error.  */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
19612 /* We use char because int might match the return type of a gcc2
19613    builtin and then its argument prototype would still apply.  */
19614 char verr ();
19615 char (*f) ();
19616
19617 #ifdef F77_DUMMY_MAIN
19618 #  ifdef __cplusplus
19619      extern "C"
19620 #  endif
19621    int F77_DUMMY_MAIN() { return 1; }
19622 #endif
19623 int
19624 main ()
19625 {
19626 /* The GNU C library defines this for functions which it implements
19627     to always fail with ENOSYS.  Some functions are actually named
19628     something starting with __ and the normal name is an alias.  */
19629 #if defined (__stub_verr) || defined (__stub___verr)
19630 choke me
19631 #else
19632 f = verr;
19633 #endif
19634
19635   ;
19636   return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (eval echo "$as_me:19640: \"$ac_link\"") >&5
19641   (eval $ac_link) 2>&5
19642   ac_status=$?
19643   echo "$as_me:19643: \$? = $ac_status" >&5
19644   (exit $ac_status); } &&
19645          { ac_try='test -s conftest$ac_exeext'
19646   { (eval echo "$as_me:19646: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:19649: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   ac_cv_func_verr=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 cat conftest.$ac_ext >&5
19655 ac_cv_func_verr=no
19656 fi
19657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19658 fi
19659 echo "$as_me:19659: result: $ac_cv_func_verr" >&5
19660 echo "${ECHO_T}$ac_cv_func_verr" >&6
19661 if test $ac_cv_func_verr = yes; then
19662
19663 cat >>confdefs.h <<_ACEOF
19664 #define HAVE_VERR 1
19665 _ACEOF
19666
19667 else
19668   LIBOBJS="$LIBOBJS verr.$ac_objext"
19669 fi
19670 echo "$as_me:19670: checking for verrx" >&5
19671 echo $ECHO_N "checking for verrx... $ECHO_C" >&6
19672 if test "${ac_cv_func_verrx+set}" = set; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675   cat >conftest.$ac_ext <<_ACEOF
19676 #line 19676 "configure"
19677 #include "confdefs.h"
19678 /* System header to define __stub macros and hopefully few prototypes,
19679     which can conflict with char verrx (); below.  */
19680 #include <assert.h>
19681 /* Override any gcc2 internal prototype to avoid an error.  */
19682 #ifdef __cplusplus
19683 extern "C"
19684 #endif
19685 /* We use char because int might match the return type of a gcc2
19686    builtin and then its argument prototype would still apply.  */
19687 char verrx ();
19688 char (*f) ();
19689
19690 #ifdef F77_DUMMY_MAIN
19691 #  ifdef __cplusplus
19692      extern "C"
19693 #  endif
19694    int F77_DUMMY_MAIN() { return 1; }
19695 #endif
19696 int
19697 main ()
19698 {
19699 /* The GNU C library defines this for functions which it implements
19700     to always fail with ENOSYS.  Some functions are actually named
19701     something starting with __ and the normal name is an alias.  */
19702 #if defined (__stub_verrx) || defined (__stub___verrx)
19703 choke me
19704 #else
19705 f = verrx;
19706 #endif
19707
19708   ;
19709   return 0;
19710 }
19711 _ACEOF
19712 rm -f conftest.$ac_objext conftest$ac_exeext
19713 if { (eval echo "$as_me:19713: \"$ac_link\"") >&5
19714   (eval $ac_link) 2>&5
19715   ac_status=$?
19716   echo "$as_me:19716: \$? = $ac_status" >&5
19717   (exit $ac_status); } &&
19718          { ac_try='test -s conftest$ac_exeext'
19719   { (eval echo "$as_me:19719: \"$ac_try\"") >&5
19720   (eval $ac_try) 2>&5
19721   ac_status=$?
19722   echo "$as_me:19722: \$? = $ac_status" >&5
19723   (exit $ac_status); }; }; then
19724   ac_cv_func_verrx=yes
19725 else
19726   echo "$as_me: failed program was:" >&5
19727 cat conftest.$ac_ext >&5
19728 ac_cv_func_verrx=no
19729 fi
19730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19731 fi
19732 echo "$as_me:19732: result: $ac_cv_func_verrx" >&5
19733 echo "${ECHO_T}$ac_cv_func_verrx" >&6
19734 if test $ac_cv_func_verrx = yes; then
19735
19736 cat >>confdefs.h <<_ACEOF
19737 #define HAVE_VERRX 1
19738 _ACEOF
19739
19740 else
19741   LIBOBJS="$LIBOBJS verrx.$ac_objext"
19742 fi
19743 echo "$as_me:19743: checking for vsyslog" >&5
19744 echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
19745 if test "${ac_cv_func_vsyslog+set}" = set; then
19746   echo $ECHO_N "(cached) $ECHO_C" >&6
19747 else
19748   cat >conftest.$ac_ext <<_ACEOF
19749 #line 19749 "configure"
19750 #include "confdefs.h"
19751 /* System header to define __stub macros and hopefully few prototypes,
19752     which can conflict with char vsyslog (); below.  */
19753 #include <assert.h>
19754 /* Override any gcc2 internal prototype to avoid an error.  */
19755 #ifdef __cplusplus
19756 extern "C"
19757 #endif
19758 /* We use char because int might match the return type of a gcc2
19759    builtin and then its argument prototype would still apply.  */
19760 char vsyslog ();
19761 char (*f) ();
19762
19763 #ifdef F77_DUMMY_MAIN
19764 #  ifdef __cplusplus
19765      extern "C"
19766 #  endif
19767    int F77_DUMMY_MAIN() { return 1; }
19768 #endif
19769 int
19770 main ()
19771 {
19772 /* The GNU C library defines this for functions which it implements
19773     to always fail with ENOSYS.  Some functions are actually named
19774     something starting with __ and the normal name is an alias.  */
19775 #if defined (__stub_vsyslog) || defined (__stub___vsyslog)
19776 choke me
19777 #else
19778 f = vsyslog;
19779 #endif
19780
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext conftest$ac_exeext
19786 if { (eval echo "$as_me:19786: \"$ac_link\"") >&5
19787   (eval $ac_link) 2>&5
19788   ac_status=$?
19789   echo "$as_me:19789: \$? = $ac_status" >&5
19790   (exit $ac_status); } &&
19791          { ac_try='test -s conftest$ac_exeext'
19792   { (eval echo "$as_me:19792: \"$ac_try\"") >&5
19793   (eval $ac_try) 2>&5
19794   ac_status=$?
19795   echo "$as_me:19795: \$? = $ac_status" >&5
19796   (exit $ac_status); }; }; then
19797   ac_cv_func_vsyslog=yes
19798 else
19799   echo "$as_me: failed program was:" >&5
19800 cat conftest.$ac_ext >&5
19801 ac_cv_func_vsyslog=no
19802 fi
19803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19804 fi
19805 echo "$as_me:19805: result: $ac_cv_func_vsyslog" >&5
19806 echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
19807 if test $ac_cv_func_vsyslog = yes; then
19808
19809 cat >>confdefs.h <<_ACEOF
19810 #define HAVE_VSYSLOG 1
19811 _ACEOF
19812
19813 else
19814   LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
19815 fi
19816 echo "$as_me:19816: checking for vwarn" >&5
19817 echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
19818 if test "${ac_cv_func_vwarn+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   cat >conftest.$ac_ext <<_ACEOF
19822 #line 19822 "configure"
19823 #include "confdefs.h"
19824 /* System header to define __stub macros and hopefully few prototypes,
19825     which can conflict with char vwarn (); below.  */
19826 #include <assert.h>
19827 /* Override any gcc2 internal prototype to avoid an error.  */
19828 #ifdef __cplusplus
19829 extern "C"
19830 #endif
19831 /* We use char because int might match the return type of a gcc2
19832    builtin and then its argument prototype would still apply.  */
19833 char vwarn ();
19834 char (*f) ();
19835
19836 #ifdef F77_DUMMY_MAIN
19837 #  ifdef __cplusplus
19838      extern "C"
19839 #  endif
19840    int F77_DUMMY_MAIN() { return 1; }
19841 #endif
19842 int
19843 main ()
19844 {
19845 /* The GNU C library defines this for functions which it implements
19846     to always fail with ENOSYS.  Some functions are actually named
19847     something starting with __ and the normal name is an alias.  */
19848 #if defined (__stub_vwarn) || defined (__stub___vwarn)
19849 choke me
19850 #else
19851 f = vwarn;
19852 #endif
19853
19854   ;
19855   return 0;
19856 }
19857 _ACEOF
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (eval echo "$as_me:19859: \"$ac_link\"") >&5
19860   (eval $ac_link) 2>&5
19861   ac_status=$?
19862   echo "$as_me:19862: \$? = $ac_status" >&5
19863   (exit $ac_status); } &&
19864          { ac_try='test -s conftest$ac_exeext'
19865   { (eval echo "$as_me:19865: \"$ac_try\"") >&5
19866   (eval $ac_try) 2>&5
19867   ac_status=$?
19868   echo "$as_me:19868: \$? = $ac_status" >&5
19869   (exit $ac_status); }; }; then
19870   ac_cv_func_vwarn=yes
19871 else
19872   echo "$as_me: failed program was:" >&5
19873 cat conftest.$ac_ext >&5
19874 ac_cv_func_vwarn=no
19875 fi
19876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19877 fi
19878 echo "$as_me:19878: result: $ac_cv_func_vwarn" >&5
19879 echo "${ECHO_T}$ac_cv_func_vwarn" >&6
19880 if test $ac_cv_func_vwarn = yes; then
19881
19882 cat >>confdefs.h <<_ACEOF
19883 #define HAVE_VWARN 1
19884 _ACEOF
19885
19886 else
19887   LIBOBJS="$LIBOBJS vwarn.$ac_objext"
19888 fi
19889 echo "$as_me:19889: checking for vwarnx" >&5
19890 echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
19891 if test "${ac_cv_func_vwarnx+set}" = set; then
19892   echo $ECHO_N "(cached) $ECHO_C" >&6
19893 else
19894   cat >conftest.$ac_ext <<_ACEOF
19895 #line 19895 "configure"
19896 #include "confdefs.h"
19897 /* System header to define __stub macros and hopefully few prototypes,
19898     which can conflict with char vwarnx (); below.  */
19899 #include <assert.h>
19900 /* Override any gcc2 internal prototype to avoid an error.  */
19901 #ifdef __cplusplus
19902 extern "C"
19903 #endif
19904 /* We use char because int might match the return type of a gcc2
19905    builtin and then its argument prototype would still apply.  */
19906 char vwarnx ();
19907 char (*f) ();
19908
19909 #ifdef F77_DUMMY_MAIN
19910 #  ifdef __cplusplus
19911      extern "C"
19912 #  endif
19913    int F77_DUMMY_MAIN() { return 1; }
19914 #endif
19915 int
19916 main ()
19917 {
19918 /* The GNU C library defines this for functions which it implements
19919     to always fail with ENOSYS.  Some functions are actually named
19920     something starting with __ and the normal name is an alias.  */
19921 #if defined (__stub_vwarnx) || defined (__stub___vwarnx)
19922 choke me
19923 #else
19924 f = vwarnx;
19925 #endif
19926
19927   ;
19928   return 0;
19929 }
19930 _ACEOF
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (eval echo "$as_me:19932: \"$ac_link\"") >&5
19933   (eval $ac_link) 2>&5
19934   ac_status=$?
19935   echo "$as_me:19935: \$? = $ac_status" >&5
19936   (exit $ac_status); } &&
19937          { ac_try='test -s conftest$ac_exeext'
19938   { (eval echo "$as_me:19938: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:19941: \$? = $ac_status" >&5
19942   (exit $ac_status); }; }; then
19943   ac_cv_func_vwarnx=yes
19944 else
19945   echo "$as_me: failed program was:" >&5
19946 cat conftest.$ac_ext >&5
19947 ac_cv_func_vwarnx=no
19948 fi
19949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19950 fi
19951 echo "$as_me:19951: result: $ac_cv_func_vwarnx" >&5
19952 echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
19953 if test $ac_cv_func_vwarnx = yes; then
19954
19955 cat >>confdefs.h <<_ACEOF
19956 #define HAVE_VWARNX 1
19957 _ACEOF
19958
19959 else
19960   LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
19961 fi
19962 echo "$as_me:19962: checking for warn" >&5
19963 echo $ECHO_N "checking for warn... $ECHO_C" >&6
19964 if test "${ac_cv_func_warn+set}" = set; then
19965   echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967   cat >conftest.$ac_ext <<_ACEOF
19968 #line 19968 "configure"
19969 #include "confdefs.h"
19970 /* System header to define __stub macros and hopefully few prototypes,
19971     which can conflict with char warn (); below.  */
19972 #include <assert.h>
19973 /* Override any gcc2 internal prototype to avoid an error.  */
19974 #ifdef __cplusplus
19975 extern "C"
19976 #endif
19977 /* We use char because int might match the return type of a gcc2
19978    builtin and then its argument prototype would still apply.  */
19979 char warn ();
19980 char (*f) ();
19981
19982 #ifdef F77_DUMMY_MAIN
19983 #  ifdef __cplusplus
19984      extern "C"
19985 #  endif
19986    int F77_DUMMY_MAIN() { return 1; }
19987 #endif
19988 int
19989 main ()
19990 {
19991 /* The GNU C library defines this for functions which it implements
19992     to always fail with ENOSYS.  Some functions are actually named
19993     something starting with __ and the normal name is an alias.  */
19994 #if defined (__stub_warn) || defined (__stub___warn)
19995 choke me
19996 #else
19997 f = warn;
19998 #endif
19999
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext conftest$ac_exeext
20005 if { (eval echo "$as_me:20005: \"$ac_link\"") >&5
20006   (eval $ac_link) 2>&5
20007   ac_status=$?
20008   echo "$as_me:20008: \$? = $ac_status" >&5
20009   (exit $ac_status); } &&
20010          { ac_try='test -s conftest$ac_exeext'
20011   { (eval echo "$as_me:20011: \"$ac_try\"") >&5
20012   (eval $ac_try) 2>&5
20013   ac_status=$?
20014   echo "$as_me:20014: \$? = $ac_status" >&5
20015   (exit $ac_status); }; }; then
20016   ac_cv_func_warn=yes
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 cat conftest.$ac_ext >&5
20020 ac_cv_func_warn=no
20021 fi
20022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20023 fi
20024 echo "$as_me:20024: result: $ac_cv_func_warn" >&5
20025 echo "${ECHO_T}$ac_cv_func_warn" >&6
20026 if test $ac_cv_func_warn = yes; then
20027
20028 cat >>confdefs.h <<_ACEOF
20029 #define HAVE_WARN 1
20030 _ACEOF
20031
20032 else
20033   LIBOBJS="$LIBOBJS warn.$ac_objext"
20034 fi
20035 echo "$as_me:20035: checking for warnx" >&5
20036 echo $ECHO_N "checking for warnx... $ECHO_C" >&6
20037 if test "${ac_cv_func_warnx+set}" = set; then
20038   echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040   cat >conftest.$ac_ext <<_ACEOF
20041 #line 20041 "configure"
20042 #include "confdefs.h"
20043 /* System header to define __stub macros and hopefully few prototypes,
20044     which can conflict with char warnx (); below.  */
20045 #include <assert.h>
20046 /* Override any gcc2 internal prototype to avoid an error.  */
20047 #ifdef __cplusplus
20048 extern "C"
20049 #endif
20050 /* We use char because int might match the return type of a gcc2
20051    builtin and then its argument prototype would still apply.  */
20052 char warnx ();
20053 char (*f) ();
20054
20055 #ifdef F77_DUMMY_MAIN
20056 #  ifdef __cplusplus
20057      extern "C"
20058 #  endif
20059    int F77_DUMMY_MAIN() { return 1; }
20060 #endif
20061 int
20062 main ()
20063 {
20064 /* The GNU C library defines this for functions which it implements
20065     to always fail with ENOSYS.  Some functions are actually named
20066     something starting with __ and the normal name is an alias.  */
20067 #if defined (__stub_warnx) || defined (__stub___warnx)
20068 choke me
20069 #else
20070 f = warnx;
20071 #endif
20072
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (eval echo "$as_me:20078: \"$ac_link\"") >&5
20079   (eval $ac_link) 2>&5
20080   ac_status=$?
20081   echo "$as_me:20081: \$? = $ac_status" >&5
20082   (exit $ac_status); } &&
20083          { ac_try='test -s conftest$ac_exeext'
20084   { (eval echo "$as_me:20084: \"$ac_try\"") >&5
20085   (eval $ac_try) 2>&5
20086   ac_status=$?
20087   echo "$as_me:20087: \$? = $ac_status" >&5
20088   (exit $ac_status); }; }; then
20089   ac_cv_func_warnx=yes
20090 else
20091   echo "$as_me: failed program was:" >&5
20092 cat conftest.$ac_ext >&5
20093 ac_cv_func_warnx=no
20094 fi
20095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20096 fi
20097 echo "$as_me:20097: result: $ac_cv_func_warnx" >&5
20098 echo "${ECHO_T}$ac_cv_func_warnx" >&6
20099 if test $ac_cv_func_warnx = yes; then
20100
20101 cat >>confdefs.h <<_ACEOF
20102 #define HAVE_WARNX 1
20103 _ACEOF
20104
20105 else
20106   LIBOBJS="$LIBOBJS warnx.$ac_objext"
20107 fi
20108 echo "$as_me:20108: checking for writev" >&5
20109 echo $ECHO_N "checking for writev... $ECHO_C" >&6
20110 if test "${ac_cv_func_writev+set}" = set; then
20111   echo $ECHO_N "(cached) $ECHO_C" >&6
20112 else
20113   cat >conftest.$ac_ext <<_ACEOF
20114 #line 20114 "configure"
20115 #include "confdefs.h"
20116 /* System header to define __stub macros and hopefully few prototypes,
20117     which can conflict with char writev (); below.  */
20118 #include <assert.h>
20119 /* Override any gcc2 internal prototype to avoid an error.  */
20120 #ifdef __cplusplus
20121 extern "C"
20122 #endif
20123 /* We use char because int might match the return type of a gcc2
20124    builtin and then its argument prototype would still apply.  */
20125 char writev ();
20126 char (*f) ();
20127
20128 #ifdef F77_DUMMY_MAIN
20129 #  ifdef __cplusplus
20130      extern "C"
20131 #  endif
20132    int F77_DUMMY_MAIN() { return 1; }
20133 #endif
20134 int
20135 main ()
20136 {
20137 /* The GNU C library defines this for functions which it implements
20138     to always fail with ENOSYS.  Some functions are actually named
20139     something starting with __ and the normal name is an alias.  */
20140 #if defined (__stub_writev) || defined (__stub___writev)
20141 choke me
20142 #else
20143 f = writev;
20144 #endif
20145
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (eval echo "$as_me:20151: \"$ac_link\"") >&5
20152   (eval $ac_link) 2>&5
20153   ac_status=$?
20154   echo "$as_me:20154: \$? = $ac_status" >&5
20155   (exit $ac_status); } &&
20156          { ac_try='test -s conftest$ac_exeext'
20157   { (eval echo "$as_me:20157: \"$ac_try\"") >&5
20158   (eval $ac_try) 2>&5
20159   ac_status=$?
20160   echo "$as_me:20160: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162   ac_cv_func_writev=yes
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 cat conftest.$ac_ext >&5
20166 ac_cv_func_writev=no
20167 fi
20168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20169 fi
20170 echo "$as_me:20170: result: $ac_cv_func_writev" >&5
20171 echo "${ECHO_T}$ac_cv_func_writev" >&6
20172 if test $ac_cv_func_writev = yes; then
20173
20174 cat >>confdefs.h <<_ACEOF
20175 #define HAVE_WRITEV 1
20176 _ACEOF
20177
20178 else
20179   LIBOBJS="$LIBOBJS writev.$ac_objext"
20180 fi
20181
20182
20183
20184 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
20185 echo "$as_me:20185: checking if strndup needs a prototype" >&5
20186 echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
20187 if test "${ac_cv_func_strndup_noproto+set}" = set; then
20188   echo $ECHO_N "(cached) $ECHO_C" >&6
20189 else
20190   cat >conftest.$ac_ext <<_ACEOF
20191 #line 20191 "configure"
20192 #include "confdefs.h"
20193 #include <string.h>
20194 #ifdef F77_DUMMY_MAIN
20195 #  ifdef __cplusplus
20196      extern "C"
20197 #  endif
20198    int F77_DUMMY_MAIN() { return 1; }
20199 #endif
20200 int
20201 main ()
20202 {
20203 struct foo { int foo; } xx;
20204 extern int strndup (struct foo*);
20205 strndup(&xx);
20206
20207   ;
20208   return 0;
20209 }
20210 _ACEOF
20211 rm -f conftest.$ac_objext
20212 if { (eval echo "$as_me:20212: \"$ac_compile\"") >&5
20213   (eval $ac_compile) 2>&5
20214   ac_status=$?
20215   echo "$as_me:20215: \$? = $ac_status" >&5
20216   (exit $ac_status); } &&
20217          { ac_try='test -s conftest.$ac_objext'
20218   { (eval echo "$as_me:20218: \"$ac_try\"") >&5
20219   (eval $ac_try) 2>&5
20220   ac_status=$?
20221   echo "$as_me:20221: \$? = $ac_status" >&5
20222   (exit $ac_status); }; }; then
20223   eval "ac_cv_func_strndup_noproto=yes"
20224 else
20225   echo "$as_me: failed program was:" >&5
20226 cat conftest.$ac_ext >&5
20227 eval "ac_cv_func_strndup_noproto=no"
20228 fi
20229 rm -f conftest.$ac_objext conftest.$ac_ext
20230 fi
20231 echo "$as_me:20231: result: $ac_cv_func_strndup_noproto" >&5
20232 echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
20233 if test "$ac_cv_func_strndup_noproto" = yes; then
20234
20235 cat >>confdefs.h <<\_ACEOF
20236 #define NEED_STRNDUP_PROTO 1
20237 _ACEOF
20238
20239 fi
20240 fi
20241
20242 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
20243 echo "$as_me:20243: checking if strsep needs a prototype" >&5
20244 echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
20245 if test "${ac_cv_func_strsep_noproto+set}" = set; then
20246   echo $ECHO_N "(cached) $ECHO_C" >&6
20247 else
20248   cat >conftest.$ac_ext <<_ACEOF
20249 #line 20249 "configure"
20250 #include "confdefs.h"
20251 #include <string.h>
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 struct foo { int foo; } xx;
20262 extern int strsep (struct foo*);
20263 strsep(&xx);
20264
20265   ;
20266   return 0;
20267 }
20268 _ACEOF
20269 rm -f conftest.$ac_objext
20270 if { (eval echo "$as_me:20270: \"$ac_compile\"") >&5
20271   (eval $ac_compile) 2>&5
20272   ac_status=$?
20273   echo "$as_me:20273: \$? = $ac_status" >&5
20274   (exit $ac_status); } &&
20275          { ac_try='test -s conftest.$ac_objext'
20276   { (eval echo "$as_me:20276: \"$ac_try\"") >&5
20277   (eval $ac_try) 2>&5
20278   ac_status=$?
20279   echo "$as_me:20279: \$? = $ac_status" >&5
20280   (exit $ac_status); }; }; then
20281   eval "ac_cv_func_strsep_noproto=yes"
20282 else
20283   echo "$as_me: failed program was:" >&5
20284 cat conftest.$ac_ext >&5
20285 eval "ac_cv_func_strsep_noproto=no"
20286 fi
20287 rm -f conftest.$ac_objext conftest.$ac_ext
20288 fi
20289 echo "$as_me:20289: result: $ac_cv_func_strsep_noproto" >&5
20290 echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
20291 if test "$ac_cv_func_strsep_noproto" = yes; then
20292
20293 cat >>confdefs.h <<\_ACEOF
20294 #define NEED_STRSEP_PROTO 1
20295 _ACEOF
20296
20297 fi
20298 fi
20299
20300 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
20301 echo "$as_me:20301: checking if strtok_r needs a prototype" >&5
20302 echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
20303 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306   cat >conftest.$ac_ext <<_ACEOF
20307 #line 20307 "configure"
20308 #include "confdefs.h"
20309 #include <string.h>
20310 #ifdef F77_DUMMY_MAIN
20311 #  ifdef __cplusplus
20312      extern "C"
20313 #  endif
20314    int F77_DUMMY_MAIN() { return 1; }
20315 #endif
20316 int
20317 main ()
20318 {
20319 struct foo { int foo; } xx;
20320 extern int strtok_r (struct foo*);
20321 strtok_r(&xx);
20322
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext
20328 if { (eval echo "$as_me:20328: \"$ac_compile\"") >&5
20329   (eval $ac_compile) 2>&5
20330   ac_status=$?
20331   echo "$as_me:20331: \$? = $ac_status" >&5
20332   (exit $ac_status); } &&
20333          { ac_try='test -s conftest.$ac_objext'
20334   { (eval echo "$as_me:20334: \"$ac_try\"") >&5
20335   (eval $ac_try) 2>&5
20336   ac_status=$?
20337   echo "$as_me:20337: \$? = $ac_status" >&5
20338   (exit $ac_status); }; }; then
20339   eval "ac_cv_func_strtok_r_noproto=yes"
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 cat conftest.$ac_ext >&5
20343 eval "ac_cv_func_strtok_r_noproto=no"
20344 fi
20345 rm -f conftest.$ac_objext conftest.$ac_ext
20346 fi
20347 echo "$as_me:20347: result: $ac_cv_func_strtok_r_noproto" >&5
20348 echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
20349 if test "$ac_cv_func_strtok_r_noproto" = yes; then
20350
20351 cat >>confdefs.h <<\_ACEOF
20352 #define NEED_STRTOK_R_PROTO 1
20353 _ACEOF
20354
20355 fi
20356 fi
20357
20358
20359
20360 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
20361 echo "$as_me:20361: checking if strsvis needs a prototype" >&5
20362 echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
20363 if test "${ac_cv_func_strsvis_noproto+set}" = set; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   cat >conftest.$ac_ext <<_ACEOF
20367 #line 20367 "configure"
20368 #include "confdefs.h"
20369 #ifdef HAVE_VIS_H
20370 #include <vis.h>
20371 #endif
20372 #ifdef F77_DUMMY_MAIN
20373 #  ifdef __cplusplus
20374      extern "C"
20375 #  endif
20376    int F77_DUMMY_MAIN() { return 1; }
20377 #endif
20378 int
20379 main ()
20380 {
20381 struct foo { int foo; } xx;
20382 extern int strsvis (struct foo*);
20383 strsvis(&xx);
20384
20385   ;
20386   return 0;
20387 }
20388 _ACEOF
20389 rm -f conftest.$ac_objext
20390 if { (eval echo "$as_me:20390: \"$ac_compile\"") >&5
20391   (eval $ac_compile) 2>&5
20392   ac_status=$?
20393   echo "$as_me:20393: \$? = $ac_status" >&5
20394   (exit $ac_status); } &&
20395          { ac_try='test -s conftest.$ac_objext'
20396   { (eval echo "$as_me:20396: \"$ac_try\"") >&5
20397   (eval $ac_try) 2>&5
20398   ac_status=$?
20399   echo "$as_me:20399: \$? = $ac_status" >&5
20400   (exit $ac_status); }; }; then
20401   eval "ac_cv_func_strsvis_noproto=yes"
20402 else
20403   echo "$as_me: failed program was:" >&5
20404 cat conftest.$ac_ext >&5
20405 eval "ac_cv_func_strsvis_noproto=no"
20406 fi
20407 rm -f conftest.$ac_objext conftest.$ac_ext
20408 fi
20409 echo "$as_me:20409: result: $ac_cv_func_strsvis_noproto" >&5
20410 echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
20411 if test "$ac_cv_func_strsvis_noproto" = yes; then
20412
20413 cat >>confdefs.h <<\_ACEOF
20414 #define NEED_STRSVIS_PROTO 1
20415 _ACEOF
20416
20417 fi
20418 fi
20419
20420 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
20421 echo "$as_me:20421: checking if strunvis needs a prototype" >&5
20422 echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
20423 if test "${ac_cv_func_strunvis_noproto+set}" = set; then
20424   echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426   cat >conftest.$ac_ext <<_ACEOF
20427 #line 20427 "configure"
20428 #include "confdefs.h"
20429 #ifdef HAVE_VIS_H
20430 #include <vis.h>
20431 #endif
20432 #ifdef F77_DUMMY_MAIN
20433 #  ifdef __cplusplus
20434      extern "C"
20435 #  endif
20436    int F77_DUMMY_MAIN() { return 1; }
20437 #endif
20438 int
20439 main ()
20440 {
20441 struct foo { int foo; } xx;
20442 extern int strunvis (struct foo*);
20443 strunvis(&xx);
20444
20445   ;
20446   return 0;
20447 }
20448 _ACEOF
20449 rm -f conftest.$ac_objext
20450 if { (eval echo "$as_me:20450: \"$ac_compile\"") >&5
20451   (eval $ac_compile) 2>&5
20452   ac_status=$?
20453   echo "$as_me:20453: \$? = $ac_status" >&5
20454   (exit $ac_status); } &&
20455          { ac_try='test -s conftest.$ac_objext'
20456   { (eval echo "$as_me:20456: \"$ac_try\"") >&5
20457   (eval $ac_try) 2>&5
20458   ac_status=$?
20459   echo "$as_me:20459: \$? = $ac_status" >&5
20460   (exit $ac_status); }; }; then
20461   eval "ac_cv_func_strunvis_noproto=yes"
20462 else
20463   echo "$as_me: failed program was:" >&5
20464 cat conftest.$ac_ext >&5
20465 eval "ac_cv_func_strunvis_noproto=no"
20466 fi
20467 rm -f conftest.$ac_objext conftest.$ac_ext
20468 fi
20469 echo "$as_me:20469: result: $ac_cv_func_strunvis_noproto" >&5
20470 echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
20471 if test "$ac_cv_func_strunvis_noproto" = yes; then
20472
20473 cat >>confdefs.h <<\_ACEOF
20474 #define NEED_STRUNVIS_PROTO 1
20475 _ACEOF
20476
20477 fi
20478 fi
20479
20480 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
20481 echo "$as_me:20481: checking if strvis needs a prototype" >&5
20482 echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
20483 if test "${ac_cv_func_strvis_noproto+set}" = set; then
20484   echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486   cat >conftest.$ac_ext <<_ACEOF
20487 #line 20487 "configure"
20488 #include "confdefs.h"
20489 #ifdef HAVE_VIS_H
20490 #include <vis.h>
20491 #endif
20492 #ifdef F77_DUMMY_MAIN
20493 #  ifdef __cplusplus
20494      extern "C"
20495 #  endif
20496    int F77_DUMMY_MAIN() { return 1; }
20497 #endif
20498 int
20499 main ()
20500 {
20501 struct foo { int foo; } xx;
20502 extern int strvis (struct foo*);
20503 strvis(&xx);
20504
20505   ;
20506   return 0;
20507 }
20508 _ACEOF
20509 rm -f conftest.$ac_objext
20510 if { (eval echo "$as_me:20510: \"$ac_compile\"") >&5
20511   (eval $ac_compile) 2>&5
20512   ac_status=$?
20513   echo "$as_me:20513: \$? = $ac_status" >&5
20514   (exit $ac_status); } &&
20515          { ac_try='test -s conftest.$ac_objext'
20516   { (eval echo "$as_me:20516: \"$ac_try\"") >&5
20517   (eval $ac_try) 2>&5
20518   ac_status=$?
20519   echo "$as_me:20519: \$? = $ac_status" >&5
20520   (exit $ac_status); }; }; then
20521   eval "ac_cv_func_strvis_noproto=yes"
20522 else
20523   echo "$as_me: failed program was:" >&5
20524 cat conftest.$ac_ext >&5
20525 eval "ac_cv_func_strvis_noproto=no"
20526 fi
20527 rm -f conftest.$ac_objext conftest.$ac_ext
20528 fi
20529 echo "$as_me:20529: result: $ac_cv_func_strvis_noproto" >&5
20530 echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
20531 if test "$ac_cv_func_strvis_noproto" = yes; then
20532
20533 cat >>confdefs.h <<\_ACEOF
20534 #define NEED_STRVIS_PROTO 1
20535 _ACEOF
20536
20537 fi
20538 fi
20539
20540 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
20541 echo "$as_me:20541: checking if strvisx needs a prototype" >&5
20542 echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
20543 if test "${ac_cv_func_strvisx_noproto+set}" = set; then
20544   echo $ECHO_N "(cached) $ECHO_C" >&6
20545 else
20546   cat >conftest.$ac_ext <<_ACEOF
20547 #line 20547 "configure"
20548 #include "confdefs.h"
20549 #ifdef HAVE_VIS_H
20550 #include <vis.h>
20551 #endif
20552 #ifdef F77_DUMMY_MAIN
20553 #  ifdef __cplusplus
20554      extern "C"
20555 #  endif
20556    int F77_DUMMY_MAIN() { return 1; }
20557 #endif
20558 int
20559 main ()
20560 {
20561 struct foo { int foo; } xx;
20562 extern int strvisx (struct foo*);
20563 strvisx(&xx);
20564
20565   ;
20566   return 0;
20567 }
20568 _ACEOF
20569 rm -f conftest.$ac_objext
20570 if { (eval echo "$as_me:20570: \"$ac_compile\"") >&5
20571   (eval $ac_compile) 2>&5
20572   ac_status=$?
20573   echo "$as_me:20573: \$? = $ac_status" >&5
20574   (exit $ac_status); } &&
20575          { ac_try='test -s conftest.$ac_objext'
20576   { (eval echo "$as_me:20576: \"$ac_try\"") >&5
20577   (eval $ac_try) 2>&5
20578   ac_status=$?
20579   echo "$as_me:20579: \$? = $ac_status" >&5
20580   (exit $ac_status); }; }; then
20581   eval "ac_cv_func_strvisx_noproto=yes"
20582 else
20583   echo "$as_me: failed program was:" >&5
20584 cat conftest.$ac_ext >&5
20585 eval "ac_cv_func_strvisx_noproto=no"
20586 fi
20587 rm -f conftest.$ac_objext conftest.$ac_ext
20588 fi
20589 echo "$as_me:20589: result: $ac_cv_func_strvisx_noproto" >&5
20590 echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
20591 if test "$ac_cv_func_strvisx_noproto" = yes; then
20592
20593 cat >>confdefs.h <<\_ACEOF
20594 #define NEED_STRVISX_PROTO 1
20595 _ACEOF
20596
20597 fi
20598 fi
20599
20600 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
20601 echo "$as_me:20601: checking if svis needs a prototype" >&5
20602 echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
20603 if test "${ac_cv_func_svis_noproto+set}" = set; then
20604   echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606   cat >conftest.$ac_ext <<_ACEOF
20607 #line 20607 "configure"
20608 #include "confdefs.h"
20609 #ifdef HAVE_VIS_H
20610 #include <vis.h>
20611 #endif
20612 #ifdef F77_DUMMY_MAIN
20613 #  ifdef __cplusplus
20614      extern "C"
20615 #  endif
20616    int F77_DUMMY_MAIN() { return 1; }
20617 #endif
20618 int
20619 main ()
20620 {
20621 struct foo { int foo; } xx;
20622 extern int svis (struct foo*);
20623 svis(&xx);
20624
20625   ;
20626   return 0;
20627 }
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (eval echo "$as_me:20630: \"$ac_compile\"") >&5
20631   (eval $ac_compile) 2>&5
20632   ac_status=$?
20633   echo "$as_me:20633: \$? = $ac_status" >&5
20634   (exit $ac_status); } &&
20635          { ac_try='test -s conftest.$ac_objext'
20636   { (eval echo "$as_me:20636: \"$ac_try\"") >&5
20637   (eval $ac_try) 2>&5
20638   ac_status=$?
20639   echo "$as_me:20639: \$? = $ac_status" >&5
20640   (exit $ac_status); }; }; then
20641   eval "ac_cv_func_svis_noproto=yes"
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 cat conftest.$ac_ext >&5
20645 eval "ac_cv_func_svis_noproto=no"
20646 fi
20647 rm -f conftest.$ac_objext conftest.$ac_ext
20648 fi
20649 echo "$as_me:20649: result: $ac_cv_func_svis_noproto" >&5
20650 echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
20651 if test "$ac_cv_func_svis_noproto" = yes; then
20652
20653 cat >>confdefs.h <<\_ACEOF
20654 #define NEED_SVIS_PROTO 1
20655 _ACEOF
20656
20657 fi
20658 fi
20659
20660 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
20661 echo "$as_me:20661: checking if unvis needs a prototype" >&5
20662 echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
20663 if test "${ac_cv_func_unvis_noproto+set}" = set; then
20664   echo $ECHO_N "(cached) $ECHO_C" >&6
20665 else
20666   cat >conftest.$ac_ext <<_ACEOF
20667 #line 20667 "configure"
20668 #include "confdefs.h"
20669 #ifdef HAVE_VIS_H
20670 #include <vis.h>
20671 #endif
20672 #ifdef F77_DUMMY_MAIN
20673 #  ifdef __cplusplus
20674      extern "C"
20675 #  endif
20676    int F77_DUMMY_MAIN() { return 1; }
20677 #endif
20678 int
20679 main ()
20680 {
20681 struct foo { int foo; } xx;
20682 extern int unvis (struct foo*);
20683 unvis(&xx);
20684
20685   ;
20686   return 0;
20687 }
20688 _ACEOF
20689 rm -f conftest.$ac_objext
20690 if { (eval echo "$as_me:20690: \"$ac_compile\"") >&5
20691   (eval $ac_compile) 2>&5
20692   ac_status=$?
20693   echo "$as_me:20693: \$? = $ac_status" >&5
20694   (exit $ac_status); } &&
20695          { ac_try='test -s conftest.$ac_objext'
20696   { (eval echo "$as_me:20696: \"$ac_try\"") >&5
20697   (eval $ac_try) 2>&5
20698   ac_status=$?
20699   echo "$as_me:20699: \$? = $ac_status" >&5
20700   (exit $ac_status); }; }; then
20701   eval "ac_cv_func_unvis_noproto=yes"
20702 else
20703   echo "$as_me: failed program was:" >&5
20704 cat conftest.$ac_ext >&5
20705 eval "ac_cv_func_unvis_noproto=no"
20706 fi
20707 rm -f conftest.$ac_objext conftest.$ac_ext
20708 fi
20709 echo "$as_me:20709: result: $ac_cv_func_unvis_noproto" >&5
20710 echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
20711 if test "$ac_cv_func_unvis_noproto" = yes; then
20712
20713 cat >>confdefs.h <<\_ACEOF
20714 #define NEED_UNVIS_PROTO 1
20715 _ACEOF
20716
20717 fi
20718 fi
20719
20720 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
20721 echo "$as_me:20721: checking if vis needs a prototype" >&5
20722 echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
20723 if test "${ac_cv_func_vis_noproto+set}" = set; then
20724   echo $ECHO_N "(cached) $ECHO_C" >&6
20725 else
20726   cat >conftest.$ac_ext <<_ACEOF
20727 #line 20727 "configure"
20728 #include "confdefs.h"
20729 #ifdef HAVE_VIS_H
20730 #include <vis.h>
20731 #endif
20732 #ifdef F77_DUMMY_MAIN
20733 #  ifdef __cplusplus
20734      extern "C"
20735 #  endif
20736    int F77_DUMMY_MAIN() { return 1; }
20737 #endif
20738 int
20739 main ()
20740 {
20741 struct foo { int foo; } xx;
20742 extern int vis (struct foo*);
20743 vis(&xx);
20744
20745   ;
20746   return 0;
20747 }
20748 _ACEOF
20749 rm -f conftest.$ac_objext
20750 if { (eval echo "$as_me:20750: \"$ac_compile\"") >&5
20751   (eval $ac_compile) 2>&5
20752   ac_status=$?
20753   echo "$as_me:20753: \$? = $ac_status" >&5
20754   (exit $ac_status); } &&
20755          { ac_try='test -s conftest.$ac_objext'
20756   { (eval echo "$as_me:20756: \"$ac_try\"") >&5
20757   (eval $ac_try) 2>&5
20758   ac_status=$?
20759   echo "$as_me:20759: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   eval "ac_cv_func_vis_noproto=yes"
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 cat conftest.$ac_ext >&5
20765 eval "ac_cv_func_vis_noproto=no"
20766 fi
20767 rm -f conftest.$ac_objext conftest.$ac_ext
20768 fi
20769 echo "$as_me:20769: result: $ac_cv_func_vis_noproto" >&5
20770 echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
20771 if test "$ac_cv_func_vis_noproto" = yes; then
20772
20773 cat >>confdefs.h <<\_ACEOF
20774 #define NEED_VIS_PROTO 1
20775 _ACEOF
20776
20777 fi
20778 fi
20779
20780
20781 echo "$as_me:20781: checking for inet_aton" >&5
20782 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
20783 if test "${ac_cv_func_inet_aton+set}" = set; then
20784   echo $ECHO_N "(cached) $ECHO_C" >&6
20785 else
20786   cat >conftest.$ac_ext <<_ACEOF
20787 #line 20787 "configure"
20788 #include "confdefs.h"
20789 #ifdef HAVE_SYS_TYPES_H
20790 #include <sys/types.h>
20791 #endif
20792 #ifdef HAVE_SYS_SOCKET_H
20793 #include <sys/socket.h>
20794 #endif
20795 #ifdef HAVE_NETINET_IN_H
20796 #include <netinet/in.h>
20797 #endif
20798 #ifdef HAVE_ARPA_INET_H
20799 #include <arpa/inet.h>
20800 #endif
20801 #ifdef F77_DUMMY_MAIN
20802 #  ifdef __cplusplus
20803      extern "C"
20804 #  endif
20805    int F77_DUMMY_MAIN() { return 1; }
20806 #endif
20807 int
20808 main ()
20809 {
20810
20811 /* The GNU C library defines this for functions which it implements
20812     to always fail with ENOSYS.  Some functions are actually named
20813     something starting with __ and the normal name is an alias.  */
20814 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
20815 choke me
20816 #else
20817 inet_aton(0,0)
20818 #endif
20819
20820   ;
20821   return 0;
20822 }
20823 _ACEOF
20824 rm -f conftest.$ac_objext conftest$ac_exeext
20825 if { (eval echo "$as_me:20825: \"$ac_link\"") >&5
20826   (eval $ac_link) 2>&5
20827   ac_status=$?
20828   echo "$as_me:20828: \$? = $ac_status" >&5
20829   (exit $ac_status); } &&
20830          { ac_try='test -s conftest$ac_exeext'
20831   { (eval echo "$as_me:20831: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:20834: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   eval "ac_cv_func_inet_aton=yes"
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 cat conftest.$ac_ext >&5
20840 eval "ac_cv_func_inet_aton=no"
20841 fi
20842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20843 fi
20844
20845 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
20846
20847 cat >>confdefs.h <<_ACEOF
20848 #define HAVE_INET_ATON 1
20849 _ACEOF
20850
20851   echo "$as_me:20851: result: yes" >&5
20852 echo "${ECHO_T}yes" >&6
20853 else
20854   echo "$as_me:20854: result: no" >&5
20855 echo "${ECHO_T}no" >&6
20856   LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20857 fi
20858
20859 echo "$as_me:20859: checking for inet_ntop" >&5
20860 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
20861 if test "${ac_cv_func_inet_ntop+set}" = set; then
20862   echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864   cat >conftest.$ac_ext <<_ACEOF
20865 #line 20865 "configure"
20866 #include "confdefs.h"
20867 #ifdef HAVE_SYS_TYPES_H
20868 #include <sys/types.h>
20869 #endif
20870 #ifdef HAVE_SYS_SOCKET_H
20871 #include <sys/socket.h>
20872 #endif
20873 #ifdef HAVE_NETINET_IN_H
20874 #include <netinet/in.h>
20875 #endif
20876 #ifdef HAVE_ARPA_INET_H
20877 #include <arpa/inet.h>
20878 #endif
20879 #ifdef F77_DUMMY_MAIN
20880 #  ifdef __cplusplus
20881      extern "C"
20882 #  endif
20883    int F77_DUMMY_MAIN() { return 1; }
20884 #endif
20885 int
20886 main ()
20887 {
20888
20889 /* The GNU C library defines this for functions which it implements
20890     to always fail with ENOSYS.  Some functions are actually named
20891     something starting with __ and the normal name is an alias.  */
20892 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
20893 choke me
20894 #else
20895 inet_ntop(0, 0, 0, 0)
20896 #endif
20897
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 rm -f conftest.$ac_objext conftest$ac_exeext
20903 if { (eval echo "$as_me:20903: \"$ac_link\"") >&5
20904   (eval $ac_link) 2>&5
20905   ac_status=$?
20906   echo "$as_me:20906: \$? = $ac_status" >&5
20907   (exit $ac_status); } &&
20908          { ac_try='test -s conftest$ac_exeext'
20909   { (eval echo "$as_me:20909: \"$ac_try\"") >&5
20910   (eval $ac_try) 2>&5
20911   ac_status=$?
20912   echo "$as_me:20912: \$? = $ac_status" >&5
20913   (exit $ac_status); }; }; then
20914   eval "ac_cv_func_inet_ntop=yes"
20915 else
20916   echo "$as_me: failed program was:" >&5
20917 cat conftest.$ac_ext >&5
20918 eval "ac_cv_func_inet_ntop=no"
20919 fi
20920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20921 fi
20922
20923 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
20924
20925 cat >>confdefs.h <<_ACEOF
20926 #define HAVE_INET_NTOP 1
20927 _ACEOF
20928
20929   echo "$as_me:20929: result: yes" >&5
20930 echo "${ECHO_T}yes" >&6
20931 else
20932   echo "$as_me:20932: result: no" >&5
20933 echo "${ECHO_T}no" >&6
20934   LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20935 fi
20936
20937 echo "$as_me:20937: checking for inet_pton" >&5
20938 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
20939 if test "${ac_cv_func_inet_pton+set}" = set; then
20940   echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942   cat >conftest.$ac_ext <<_ACEOF
20943 #line 20943 "configure"
20944 #include "confdefs.h"
20945 #ifdef HAVE_SYS_TYPES_H
20946 #include <sys/types.h>
20947 #endif
20948 #ifdef HAVE_SYS_SOCKET_H
20949 #include <sys/socket.h>
20950 #endif
20951 #ifdef HAVE_NETINET_IN_H
20952 #include <netinet/in.h>
20953 #endif
20954 #ifdef HAVE_ARPA_INET_H
20955 #include <arpa/inet.h>
20956 #endif
20957 #ifdef F77_DUMMY_MAIN
20958 #  ifdef __cplusplus
20959      extern "C"
20960 #  endif
20961    int F77_DUMMY_MAIN() { return 1; }
20962 #endif
20963 int
20964 main ()
20965 {
20966
20967 /* The GNU C library defines this for functions which it implements
20968     to always fail with ENOSYS.  Some functions are actually named
20969     something starting with __ and the normal name is an alias.  */
20970 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
20971 choke me
20972 #else
20973 inet_pton(0,0,0)
20974 #endif
20975
20976   ;
20977   return 0;
20978 }
20979 _ACEOF
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (eval echo "$as_me:20981: \"$ac_link\"") >&5
20982   (eval $ac_link) 2>&5
20983   ac_status=$?
20984   echo "$as_me:20984: \$? = $ac_status" >&5
20985   (exit $ac_status); } &&
20986          { ac_try='test -s conftest$ac_exeext'
20987   { (eval echo "$as_me:20987: \"$ac_try\"") >&5
20988   (eval $ac_try) 2>&5
20989   ac_status=$?
20990   echo "$as_me:20990: \$? = $ac_status" >&5
20991   (exit $ac_status); }; }; then
20992   eval "ac_cv_func_inet_pton=yes"
20993 else
20994   echo "$as_me: failed program was:" >&5
20995 cat conftest.$ac_ext >&5
20996 eval "ac_cv_func_inet_pton=no"
20997 fi
20998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20999 fi
21000
21001 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
21002
21003 cat >>confdefs.h <<_ACEOF
21004 #define HAVE_INET_PTON 1
21005 _ACEOF
21006
21007   echo "$as_me:21007: result: yes" >&5
21008 echo "${ECHO_T}yes" >&6
21009 else
21010   echo "$as_me:21010: result: no" >&5
21011 echo "${ECHO_T}no" >&6
21012   LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
21013 fi
21014
21015
21016
21017 echo "$as_me:21017: checking for sa_len in struct sockaddr" >&5
21018 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
21019 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
21020   echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022
21023 cat >conftest.$ac_ext <<_ACEOF
21024 #line 21024 "configure"
21025 #include "confdefs.h"
21026 #include <sys/types.h>
21027 #include <sys/socket.h>
21028 #ifdef F77_DUMMY_MAIN
21029 #  ifdef __cplusplus
21030      extern "C"
21031 #  endif
21032    int F77_DUMMY_MAIN() { return 1; }
21033 #endif
21034 int
21035 main ()
21036 {
21037 struct sockaddr x; x.sa_len;
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (eval echo "$as_me:21043: \"$ac_compile\"") >&5
21044   (eval $ac_compile) 2>&5
21045   ac_status=$?
21046   echo "$as_me:21046: \$? = $ac_status" >&5
21047   (exit $ac_status); } &&
21048          { ac_try='test -s conftest.$ac_objext'
21049   { (eval echo "$as_me:21049: \"$ac_try\"") >&5
21050   (eval $ac_try) 2>&5
21051   ac_status=$?
21052   echo "$as_me:21052: \$? = $ac_status" >&5
21053   (exit $ac_status); }; }; then
21054   ac_cv_type_struct_sockaddr_sa_len=yes
21055 else
21056   echo "$as_me: failed program was:" >&5
21057 cat conftest.$ac_ext >&5
21058 ac_cv_type_struct_sockaddr_sa_len=no
21059 fi
21060 rm -f conftest.$ac_objext conftest.$ac_ext
21061 fi
21062 echo "$as_me:21062: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
21063 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
21064 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
21065
21066
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
21069 _ACEOF
21070
21071
21072 fi
21073
21074
21075
21076 if test "$ac_cv_func_getnameinfo" = "yes"; then
21077
21078 echo "$as_me:21078: checking if getnameinfo is broken" >&5
21079 echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
21080 if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
21081   echo $ECHO_N "(cached) $ECHO_C" >&6
21082 else
21083   if test "$cross_compiling" = yes; then
21084   { { echo "$as_me:21084: error: cannot run test program while cross compiling" >&5
21085 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21086    { (exit 1); exit 1; }; }
21087 else
21088   cat >conftest.$ac_ext <<_ACEOF
21089 #line 21089 "configure"
21090 #include "confdefs.h"
21091 #include <stdio.h>
21092 #include <sys/types.h>
21093 #include <sys/socket.h>
21094 #include <netinet/in.h>
21095 #include <netdb.h>
21096
21097 int
21098 main(int argc, char **argv)
21099 {
21100   struct sockaddr_in sin;
21101   char host[256];
21102   memset(&sin, 0, sizeof(sin));
21103 #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
21104   sin.sin_len = sizeof(sin);
21105 #endif
21106   sin.sin_family = AF_INET;
21107   sin.sin_addr.s_addr = 0xffffffff;
21108   sin.sin_port = 0;
21109   return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
21110               NULL, 0, 0);
21111 }
21112
21113 _ACEOF
21114 rm -f conftest$ac_exeext
21115 if { (eval echo "$as_me:21115: \"$ac_link\"") >&5
21116   (eval $ac_link) 2>&5
21117   ac_status=$?
21118   echo "$as_me:21118: \$? = $ac_status" >&5
21119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21120   { (eval echo "$as_me:21120: \"$ac_try\"") >&5
21121   (eval $ac_try) 2>&5
21122   ac_status=$?
21123   echo "$as_me:21123: \$? = $ac_status" >&5
21124   (exit $ac_status); }; }; then
21125   ac_cv_func_getnameinfo_broken=no
21126 else
21127   echo "$as_me: program exited with status $ac_status" >&5
21128 echo "$as_me: failed program was:" >&5
21129 cat conftest.$ac_ext >&5
21130 ( exit $ac_status )
21131 ac_cv_func_getnameinfo_broken=yes
21132 fi
21133 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21134 fi
21135 fi
21136 echo "$as_me:21136: result: $ac_cv_func_getnameinfo_broken" >&5
21137 echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
21138   if test "$ac_cv_func_getnameinfo_broken" = yes; then
21139         LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
21140   fi
21141 fi
21142
21143 if test "$ac_cv_func_getaddrinfo" = "yes"; then
21144
21145 echo "$as_me:21145: checking if getaddrinfo handles numeric services" >&5
21146 echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
21147 if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
21148   echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21150   if test "$cross_compiling" = yes; then
21151   { { echo "$as_me:21151: error: cannot run test program while cross compiling" >&5
21152 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21153    { (exit 1); exit 1; }; }
21154 else
21155   cat >conftest.$ac_ext <<_ACEOF
21156 #line 21156 "configure"
21157 #include "confdefs.h"
21158 #include <stdio.h>
21159 #include <sys/types.h>
21160 #include <sys/socket.h>
21161 #include <netdb.h>
21162
21163 int
21164 main(int argc, char **argv)
21165 {
21166         struct addrinfo hints, *ai;
21167         memset(&hints, 0, sizeof(hints));
21168         hints.ai_flags = AI_PASSIVE;
21169         hints.ai_socktype = SOCK_STREAM;
21170         hints.ai_family = PF_UNSPEC;
21171         if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
21172                 return 1;
21173         return 0;
21174 }
21175
21176 _ACEOF
21177 rm -f conftest$ac_exeext
21178 if { (eval echo "$as_me:21178: \"$ac_link\"") >&5
21179   (eval $ac_link) 2>&5
21180   ac_status=$?
21181   echo "$as_me:21181: \$? = $ac_status" >&5
21182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21183   { (eval echo "$as_me:21183: \"$ac_try\"") >&5
21184   (eval $ac_try) 2>&5
21185   ac_status=$?
21186   echo "$as_me:21186: \$? = $ac_status" >&5
21187   (exit $ac_status); }; }; then
21188   ac_cv_func_getaddrinfo_numserv=yes
21189 else
21190   echo "$as_me: program exited with status $ac_status" >&5
21191 echo "$as_me: failed program was:" >&5
21192 cat conftest.$ac_ext >&5
21193 ( exit $ac_status )
21194 ac_cv_func_getaddrinfo_numserv=no
21195 fi
21196 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21197 fi
21198 fi
21199 echo "$as_me:21199: result: $ac_cv_func_getaddrinfo_numserv" >&5
21200 echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
21201   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
21202         LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21203         LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
21204   fi
21205 fi
21206
21207
21208 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
21209 echo "$as_me:21209: checking if setenv needs a prototype" >&5
21210 echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
21211 if test "${ac_cv_func_setenv_noproto+set}" = set; then
21212   echo $ECHO_N "(cached) $ECHO_C" >&6
21213 else
21214   cat >conftest.$ac_ext <<_ACEOF
21215 #line 21215 "configure"
21216 #include "confdefs.h"
21217 #include <stdlib.h>
21218 #ifdef F77_DUMMY_MAIN
21219 #  ifdef __cplusplus
21220      extern "C"
21221 #  endif
21222    int F77_DUMMY_MAIN() { return 1; }
21223 #endif
21224 int
21225 main ()
21226 {
21227 struct foo { int foo; } xx;
21228 extern int setenv (struct foo*);
21229 setenv(&xx);
21230
21231   ;
21232   return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (eval echo "$as_me:21236: \"$ac_compile\"") >&5
21237   (eval $ac_compile) 2>&5
21238   ac_status=$?
21239   echo "$as_me:21239: \$? = $ac_status" >&5
21240   (exit $ac_status); } &&
21241          { ac_try='test -s conftest.$ac_objext'
21242   { (eval echo "$as_me:21242: \"$ac_try\"") >&5
21243   (eval $ac_try) 2>&5
21244   ac_status=$?
21245   echo "$as_me:21245: \$? = $ac_status" >&5
21246   (exit $ac_status); }; }; then
21247   eval "ac_cv_func_setenv_noproto=yes"
21248 else
21249   echo "$as_me: failed program was:" >&5
21250 cat conftest.$ac_ext >&5
21251 eval "ac_cv_func_setenv_noproto=no"
21252 fi
21253 rm -f conftest.$ac_objext conftest.$ac_ext
21254 fi
21255 echo "$as_me:21255: result: $ac_cv_func_setenv_noproto" >&5
21256 echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
21257 if test "$ac_cv_func_setenv_noproto" = yes; then
21258
21259 cat >>confdefs.h <<\_ACEOF
21260 #define NEED_SETENV_PROTO 1
21261 _ACEOF
21262
21263 fi
21264 fi
21265
21266
21267 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
21268 echo "$as_me:21268: checking if unsetenv needs a prototype" >&5
21269 echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
21270 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
21271   echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273   cat >conftest.$ac_ext <<_ACEOF
21274 #line 21274 "configure"
21275 #include "confdefs.h"
21276 #include <stdlib.h>
21277 #ifdef F77_DUMMY_MAIN
21278 #  ifdef __cplusplus
21279      extern "C"
21280 #  endif
21281    int F77_DUMMY_MAIN() { return 1; }
21282 #endif
21283 int
21284 main ()
21285 {
21286 struct foo { int foo; } xx;
21287 extern int unsetenv (struct foo*);
21288 unsetenv(&xx);
21289
21290   ;
21291   return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (eval echo "$as_me:21295: \"$ac_compile\"") >&5
21296   (eval $ac_compile) 2>&5
21297   ac_status=$?
21298   echo "$as_me:21298: \$? = $ac_status" >&5
21299   (exit $ac_status); } &&
21300          { ac_try='test -s conftest.$ac_objext'
21301   { (eval echo "$as_me:21301: \"$ac_try\"") >&5
21302   (eval $ac_try) 2>&5
21303   ac_status=$?
21304   echo "$as_me:21304: \$? = $ac_status" >&5
21305   (exit $ac_status); }; }; then
21306   eval "ac_cv_func_unsetenv_noproto=yes"
21307 else
21308   echo "$as_me: failed program was:" >&5
21309 cat conftest.$ac_ext >&5
21310 eval "ac_cv_func_unsetenv_noproto=no"
21311 fi
21312 rm -f conftest.$ac_objext conftest.$ac_ext
21313 fi
21314 echo "$as_me:21314: result: $ac_cv_func_unsetenv_noproto" >&5
21315 echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
21316 if test "$ac_cv_func_unsetenv_noproto" = yes; then
21317
21318 cat >>confdefs.h <<\_ACEOF
21319 #define NEED_UNSETENV_PROTO 1
21320 _ACEOF
21321
21322 fi
21323 fi
21324
21325
21326 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
21327 echo "$as_me:21327: checking if gethostname needs a prototype" >&5
21328 echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
21329 if test "${ac_cv_func_gethostname_noproto+set}" = set; then
21330   echo $ECHO_N "(cached) $ECHO_C" >&6
21331 else
21332   cat >conftest.$ac_ext <<_ACEOF
21333 #line 21333 "configure"
21334 #include "confdefs.h"
21335 #include <unistd.h>
21336 #ifdef F77_DUMMY_MAIN
21337 #  ifdef __cplusplus
21338      extern "C"
21339 #  endif
21340    int F77_DUMMY_MAIN() { return 1; }
21341 #endif
21342 int
21343 main ()
21344 {
21345 struct foo { int foo; } xx;
21346 extern int gethostname (struct foo*);
21347 gethostname(&xx);
21348
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (eval echo "$as_me:21354: \"$ac_compile\"") >&5
21355   (eval $ac_compile) 2>&5
21356   ac_status=$?
21357   echo "$as_me:21357: \$? = $ac_status" >&5
21358   (exit $ac_status); } &&
21359          { ac_try='test -s conftest.$ac_objext'
21360   { (eval echo "$as_me:21360: \"$ac_try\"") >&5
21361   (eval $ac_try) 2>&5
21362   ac_status=$?
21363   echo "$as_me:21363: \$? = $ac_status" >&5
21364   (exit $ac_status); }; }; then
21365   eval "ac_cv_func_gethostname_noproto=yes"
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 cat conftest.$ac_ext >&5
21369 eval "ac_cv_func_gethostname_noproto=no"
21370 fi
21371 rm -f conftest.$ac_objext conftest.$ac_ext
21372 fi
21373 echo "$as_me:21373: result: $ac_cv_func_gethostname_noproto" >&5
21374 echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
21375 if test "$ac_cv_func_gethostname_noproto" = yes; then
21376
21377 cat >>confdefs.h <<\_ACEOF
21378 #define NEED_GETHOSTNAME_PROTO 1
21379 _ACEOF
21380
21381 fi
21382 fi
21383
21384
21385 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
21386 echo "$as_me:21386: checking if mkstemp needs a prototype" >&5
21387 echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
21388 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
21389   echo $ECHO_N "(cached) $ECHO_C" >&6
21390 else
21391   cat >conftest.$ac_ext <<_ACEOF
21392 #line 21392 "configure"
21393 #include "confdefs.h"
21394 #include <unistd.h>
21395 #ifdef F77_DUMMY_MAIN
21396 #  ifdef __cplusplus
21397      extern "C"
21398 #  endif
21399    int F77_DUMMY_MAIN() { return 1; }
21400 #endif
21401 int
21402 main ()
21403 {
21404 struct foo { int foo; } xx;
21405 extern int mkstemp (struct foo*);
21406 mkstemp(&xx);
21407
21408   ;
21409   return 0;
21410 }
21411 _ACEOF
21412 rm -f conftest.$ac_objext
21413 if { (eval echo "$as_me:21413: \"$ac_compile\"") >&5
21414   (eval $ac_compile) 2>&5
21415   ac_status=$?
21416   echo "$as_me:21416: \$? = $ac_status" >&5
21417   (exit $ac_status); } &&
21418          { ac_try='test -s conftest.$ac_objext'
21419   { (eval echo "$as_me:21419: \"$ac_try\"") >&5
21420   (eval $ac_try) 2>&5
21421   ac_status=$?
21422   echo "$as_me:21422: \$? = $ac_status" >&5
21423   (exit $ac_status); }; }; then
21424   eval "ac_cv_func_mkstemp_noproto=yes"
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 cat conftest.$ac_ext >&5
21428 eval "ac_cv_func_mkstemp_noproto=no"
21429 fi
21430 rm -f conftest.$ac_objext conftest.$ac_ext
21431 fi
21432 echo "$as_me:21432: result: $ac_cv_func_mkstemp_noproto" >&5
21433 echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
21434 if test "$ac_cv_func_mkstemp_noproto" = yes; then
21435
21436 cat >>confdefs.h <<\_ACEOF
21437 #define NEED_MKSTEMP_PROTO 1
21438 _ACEOF
21439
21440 fi
21441 fi
21442
21443
21444 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
21445 echo "$as_me:21445: checking if getusershell needs a prototype" >&5
21446 echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
21447 if test "${ac_cv_func_getusershell_noproto+set}" = set; then
21448   echo $ECHO_N "(cached) $ECHO_C" >&6
21449 else
21450   cat >conftest.$ac_ext <<_ACEOF
21451 #line 21451 "configure"
21452 #include "confdefs.h"
21453 #include <unistd.h>
21454 #ifdef F77_DUMMY_MAIN
21455 #  ifdef __cplusplus
21456      extern "C"
21457 #  endif
21458    int F77_DUMMY_MAIN() { return 1; }
21459 #endif
21460 int
21461 main ()
21462 {
21463 struct foo { int foo; } xx;
21464 extern int getusershell (struct foo*);
21465 getusershell(&xx);
21466
21467   ;
21468   return 0;
21469 }
21470 _ACEOF
21471 rm -f conftest.$ac_objext
21472 if { (eval echo "$as_me:21472: \"$ac_compile\"") >&5
21473   (eval $ac_compile) 2>&5
21474   ac_status=$?
21475   echo "$as_me:21475: \$? = $ac_status" >&5
21476   (exit $ac_status); } &&
21477          { ac_try='test -s conftest.$ac_objext'
21478   { (eval echo "$as_me:21478: \"$ac_try\"") >&5
21479   (eval $ac_try) 2>&5
21480   ac_status=$?
21481   echo "$as_me:21481: \$? = $ac_status" >&5
21482   (exit $ac_status); }; }; then
21483   eval "ac_cv_func_getusershell_noproto=yes"
21484 else
21485   echo "$as_me: failed program was:" >&5
21486 cat conftest.$ac_ext >&5
21487 eval "ac_cv_func_getusershell_noproto=no"
21488 fi
21489 rm -f conftest.$ac_objext conftest.$ac_ext
21490 fi
21491 echo "$as_me:21491: result: $ac_cv_func_getusershell_noproto" >&5
21492 echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
21493 if test "$ac_cv_func_getusershell_noproto" = yes; then
21494
21495 cat >>confdefs.h <<\_ACEOF
21496 #define NEED_GETUSERSHELL_PROTO 1
21497 _ACEOF
21498
21499 fi
21500 fi
21501
21502
21503
21504 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
21505 echo "$as_me:21505: checking if inet_aton needs a prototype" >&5
21506 echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
21507 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
21508   echo $ECHO_N "(cached) $ECHO_C" >&6
21509 else
21510   cat >conftest.$ac_ext <<_ACEOF
21511 #line 21511 "configure"
21512 #include "confdefs.h"
21513
21514 #ifdef HAVE_SYS_TYPES_H
21515 #include <sys/types.h>
21516 #endif
21517 #ifdef HAVE_SYS_SOCKET_H
21518 #include <sys/socket.h>
21519 #endif
21520 #ifdef HAVE_NETINET_IN_H
21521 #include <netinet/in.h>
21522 #endif
21523 #ifdef HAVE_ARPA_INET_H
21524 #include <arpa/inet.h>
21525 #endif
21526 #ifdef F77_DUMMY_MAIN
21527 #  ifdef __cplusplus
21528      extern "C"
21529 #  endif
21530    int F77_DUMMY_MAIN() { return 1; }
21531 #endif
21532 int
21533 main ()
21534 {
21535 struct foo { int foo; } xx;
21536 extern int inet_aton (struct foo*);
21537 inet_aton(&xx);
21538
21539   ;
21540   return 0;
21541 }
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:21544: \"$ac_compile\"") >&5
21545   (eval $ac_compile) 2>&5
21546   ac_status=$?
21547   echo "$as_me:21547: \$? = $ac_status" >&5
21548   (exit $ac_status); } &&
21549          { ac_try='test -s conftest.$ac_objext'
21550   { (eval echo "$as_me:21550: \"$ac_try\"") >&5
21551   (eval $ac_try) 2>&5
21552   ac_status=$?
21553   echo "$as_me:21553: \$? = $ac_status" >&5
21554   (exit $ac_status); }; }; then
21555   eval "ac_cv_func_inet_aton_noproto=yes"
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 cat conftest.$ac_ext >&5
21559 eval "ac_cv_func_inet_aton_noproto=no"
21560 fi
21561 rm -f conftest.$ac_objext conftest.$ac_ext
21562 fi
21563 echo "$as_me:21563: result: $ac_cv_func_inet_aton_noproto" >&5
21564 echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
21565 if test "$ac_cv_func_inet_aton_noproto" = yes; then
21566
21567 cat >>confdefs.h <<\_ACEOF
21568 #define NEED_INET_ATON_PROTO 1
21569 _ACEOF
21570
21571 fi
21572 fi
21573
21574
21575
21576
21577
21578 echo "$as_me:21578: checking for crypt" >&5
21579 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
21580 if test "${ac_cv_funclib_crypt+set}" = set; then
21581   echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583
21584 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
21585         ac_save_LIBS="$LIBS"
21586         for ac_lib in "" crypt; do
21587                 case "$ac_lib" in
21588                 "") ;;
21589                 yes) ac_lib="" ;;
21590                 no) continue ;;
21591                 -l*) ;;
21592                 *) ac_lib="-l$ac_lib" ;;
21593                 esac
21594                 LIBS=" $ac_lib  $ac_save_LIBS"
21595                 cat >conftest.$ac_ext <<_ACEOF
21596 #line 21596 "configure"
21597 #include "confdefs.h"
21598
21599 #ifdef F77_DUMMY_MAIN
21600 #  ifdef __cplusplus
21601      extern "C"
21602 #  endif
21603    int F77_DUMMY_MAIN() { return 1; }
21604 #endif
21605 int
21606 main ()
21607 {
21608 crypt()
21609   ;
21610   return 0;
21611 }
21612 _ACEOF
21613 rm -f conftest.$ac_objext conftest$ac_exeext
21614 if { (eval echo "$as_me:21614: \"$ac_link\"") >&5
21615   (eval $ac_link) 2>&5
21616   ac_status=$?
21617   echo "$as_me:21617: \$? = $ac_status" >&5
21618   (exit $ac_status); } &&
21619          { ac_try='test -s conftest$ac_exeext'
21620   { (eval echo "$as_me:21620: \"$ac_try\"") >&5
21621   (eval $ac_try) 2>&5
21622   ac_status=$?
21623   echo "$as_me:21623: \$? = $ac_status" >&5
21624   (exit $ac_status); }; }; then
21625   eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
21626 else
21627   echo "$as_me: failed program was:" >&5
21628 cat conftest.$ac_ext >&5
21629 fi
21630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21631         done
21632         eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
21633         LIBS="$ac_save_LIBS"
21634 fi
21635
21636 fi
21637
21638
21639 eval "ac_res=\$ac_cv_funclib_crypt"
21640
21641 if false; then
21642
21643 for ac_func in crypt
21644 do
21645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21646 echo "$as_me:21646: checking for $ac_func" >&5
21647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21648 if eval "test \"\${$as_ac_var+set}\" = set"; then
21649   echo $ECHO_N "(cached) $ECHO_C" >&6
21650 else
21651   cat >conftest.$ac_ext <<_ACEOF
21652 #line 21652 "configure"
21653 #include "confdefs.h"
21654 /* System header to define __stub macros and hopefully few prototypes,
21655     which can conflict with char $ac_func (); below.  */
21656 #include <assert.h>
21657 /* Override any gcc2 internal prototype to avoid an error.  */
21658 #ifdef __cplusplus
21659 extern "C"
21660 #endif
21661 /* We use char because int might match the return type of a gcc2
21662    builtin and then its argument prototype would still apply.  */
21663 char $ac_func ();
21664 char (*f) ();
21665
21666 #ifdef F77_DUMMY_MAIN
21667 #  ifdef __cplusplus
21668      extern "C"
21669 #  endif
21670    int F77_DUMMY_MAIN() { return 1; }
21671 #endif
21672 int
21673 main ()
21674 {
21675 /* The GNU C library defines this for functions which it implements
21676     to always fail with ENOSYS.  Some functions are actually named
21677     something starting with __ and the normal name is an alias.  */
21678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21679 choke me
21680 #else
21681 f = $ac_func;
21682 #endif
21683
21684   ;
21685   return 0;
21686 }
21687 _ACEOF
21688 rm -f conftest.$ac_objext conftest$ac_exeext
21689 if { (eval echo "$as_me:21689: \"$ac_link\"") >&5
21690   (eval $ac_link) 2>&5
21691   ac_status=$?
21692   echo "$as_me:21692: \$? = $ac_status" >&5
21693   (exit $ac_status); } &&
21694          { ac_try='test -s conftest$ac_exeext'
21695   { (eval echo "$as_me:21695: \"$ac_try\"") >&5
21696   (eval $ac_try) 2>&5
21697   ac_status=$?
21698   echo "$as_me:21698: \$? = $ac_status" >&5
21699   (exit $ac_status); }; }; then
21700   eval "$as_ac_var=yes"
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 cat conftest.$ac_ext >&5
21704 eval "$as_ac_var=no"
21705 fi
21706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21707 fi
21708 echo "$as_me:21708: result: `eval echo '${'$as_ac_var'}'`" >&5
21709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21710 if test `eval echo '${'$as_ac_var'}'` = yes; then
21711   cat >>confdefs.h <<_ACEOF
21712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21713 _ACEOF
21714
21715 fi
21716 done
21717
21718 fi
21719 # crypt
21720 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21721 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21722 eval "LIB_crypt=$ac_res"
21723
21724 case "$ac_res" in
21725         yes)
21726         eval "ac_cv_func_crypt=yes"
21727         eval "LIB_crypt="
21728         cat >>confdefs.h <<_ACEOF
21729 #define $ac_tr_func 1
21730 _ACEOF
21731
21732         echo "$as_me:21732: result: yes" >&5
21733 echo "${ECHO_T}yes" >&6
21734         ;;
21735         no)
21736         eval "ac_cv_func_crypt=no"
21737         eval "LIB_crypt="
21738         echo "$as_me:21738: result: no" >&5
21739 echo "${ECHO_T}no" >&6
21740         ;;
21741         *)
21742         eval "ac_cv_func_crypt=yes"
21743         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21744         cat >>confdefs.h <<_ACEOF
21745 #define $ac_tr_func 1
21746 _ACEOF
21747
21748         cat >>confdefs.h <<_ACEOF
21749 #define $ac_tr_lib 1
21750 _ACEOF
21751
21752         echo "$as_me:21752: result: yes, in $ac_res" >&5
21753 echo "${ECHO_T}yes, in $ac_res" >&6
21754         ;;
21755 esac
21756
21757
21758
21759
21760
21761
21762 echo "$as_me:21762: checking if gethostbyname is compatible with system prototype" >&5
21763 echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
21764 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
21765   echo $ECHO_N "(cached) $ECHO_C" >&6
21766 else
21767   cat >conftest.$ac_ext <<_ACEOF
21768 #line 21768 "configure"
21769 #include "confdefs.h"
21770
21771 #ifdef HAVE_SYS_TYPES_H
21772 #include <sys/types.h>
21773 #endif
21774 #ifdef HAVE_SYS_SOCKET_H
21775 #include <sys/socket.h>
21776 #endif
21777 #ifdef HAVE_NETINET_IN_H
21778 #include <netinet/in.h>
21779 #endif
21780 #ifdef HAVE_ARPA_INET_H
21781 #include <arpa/inet.h>
21782 #endif
21783 #ifdef HAVE_NETDB_H
21784 #include <netdb.h>
21785 #endif
21786
21787 #ifdef F77_DUMMY_MAIN
21788 #  ifdef __cplusplus
21789      extern "C"
21790 #  endif
21791    int F77_DUMMY_MAIN() { return 1; }
21792 #endif
21793 int
21794 main ()
21795 {
21796 struct hostent *gethostbyname(const char *);
21797   ;
21798   return 0;
21799 }
21800 _ACEOF
21801 rm -f conftest.$ac_objext
21802 if { (eval echo "$as_me:21802: \"$ac_compile\"") >&5
21803   (eval $ac_compile) 2>&5
21804   ac_status=$?
21805   echo "$as_me:21805: \$? = $ac_status" >&5
21806   (exit $ac_status); } &&
21807          { ac_try='test -s conftest.$ac_objext'
21808   { (eval echo "$as_me:21808: \"$ac_try\"") >&5
21809   (eval $ac_try) 2>&5
21810   ac_status=$?
21811   echo "$as_me:21811: \$? = $ac_status" >&5
21812   (exit $ac_status); }; }; then
21813   eval "ac_cv_func_gethostbyname_proto_compat=yes"
21814 else
21815   echo "$as_me: failed program was:" >&5
21816 cat conftest.$ac_ext >&5
21817 eval "ac_cv_func_gethostbyname_proto_compat=no"
21818 fi
21819 rm -f conftest.$ac_objext conftest.$ac_ext
21820 fi
21821 echo "$as_me:21821: result: $ac_cv_func_gethostbyname_proto_compat" >&5
21822 echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
21823
21824 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
21825
21826 cat >>confdefs.h <<\_ACEOF
21827 #define GETHOSTBYNAME_PROTO_COMPATIBLE 1
21828 _ACEOF
21829
21830 fi
21831
21832
21833
21834
21835 echo "$as_me:21835: checking if gethostbyaddr is compatible with system prototype" >&5
21836 echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
21837 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840   cat >conftest.$ac_ext <<_ACEOF
21841 #line 21841 "configure"
21842 #include "confdefs.h"
21843
21844 #ifdef HAVE_SYS_TYPES_H
21845 #include <sys/types.h>
21846 #endif
21847 #ifdef HAVE_SYS_SOCKET_H
21848 #include <sys/socket.h>
21849 #endif
21850 #ifdef HAVE_NETINET_IN_H
21851 #include <netinet/in.h>
21852 #endif
21853 #ifdef HAVE_ARPA_INET_H
21854 #include <arpa/inet.h>
21855 #endif
21856 #ifdef HAVE_NETDB_H
21857 #include <netdb.h>
21858 #endif
21859
21860 #ifdef F77_DUMMY_MAIN
21861 #  ifdef __cplusplus
21862      extern "C"
21863 #  endif
21864    int F77_DUMMY_MAIN() { return 1; }
21865 #endif
21866 int
21867 main ()
21868 {
21869 struct hostent *gethostbyaddr(const void *, size_t, int);
21870   ;
21871   return 0;
21872 }
21873 _ACEOF
21874 rm -f conftest.$ac_objext
21875 if { (eval echo "$as_me:21875: \"$ac_compile\"") >&5
21876   (eval $ac_compile) 2>&5
21877   ac_status=$?
21878   echo "$as_me:21878: \$? = $ac_status" >&5
21879   (exit $ac_status); } &&
21880          { ac_try='test -s conftest.$ac_objext'
21881   { (eval echo "$as_me:21881: \"$ac_try\"") >&5
21882   (eval $ac_try) 2>&5
21883   ac_status=$?
21884   echo "$as_me:21884: \$? = $ac_status" >&5
21885   (exit $ac_status); }; }; then
21886   eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
21887 else
21888   echo "$as_me: failed program was:" >&5
21889 cat conftest.$ac_ext >&5
21890 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
21891 fi
21892 rm -f conftest.$ac_objext conftest.$ac_ext
21893 fi
21894 echo "$as_me:21894: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
21895 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
21896
21897 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
21898
21899 cat >>confdefs.h <<\_ACEOF
21900 #define GETHOSTBYADDR_PROTO_COMPATIBLE 1
21901 _ACEOF
21902
21903 fi
21904
21905
21906
21907
21908 echo "$as_me:21908: checking if getservbyname is compatible with system prototype" >&5
21909 echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
21910 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
21911   echo $ECHO_N "(cached) $ECHO_C" >&6
21912 else
21913   cat >conftest.$ac_ext <<_ACEOF
21914 #line 21914 "configure"
21915 #include "confdefs.h"
21916
21917 #ifdef HAVE_SYS_TYPES_H
21918 #include <sys/types.h>
21919 #endif
21920 #ifdef HAVE_SYS_SOCKET_H
21921 #include <sys/socket.h>
21922 #endif
21923 #ifdef HAVE_NETINET_IN_H
21924 #include <netinet/in.h>
21925 #endif
21926 #ifdef HAVE_ARPA_INET_H
21927 #include <arpa/inet.h>
21928 #endif
21929 #ifdef HAVE_NETDB_H
21930 #include <netdb.h>
21931 #endif
21932
21933 #ifdef F77_DUMMY_MAIN
21934 #  ifdef __cplusplus
21935      extern "C"
21936 #  endif
21937    int F77_DUMMY_MAIN() { return 1; }
21938 #endif
21939 int
21940 main ()
21941 {
21942 struct servent *getservbyname(const char *, const char *);
21943   ;
21944   return 0;
21945 }
21946 _ACEOF
21947 rm -f conftest.$ac_objext
21948 if { (eval echo "$as_me:21948: \"$ac_compile\"") >&5
21949   (eval $ac_compile) 2>&5
21950   ac_status=$?
21951   echo "$as_me:21951: \$? = $ac_status" >&5
21952   (exit $ac_status); } &&
21953          { ac_try='test -s conftest.$ac_objext'
21954   { (eval echo "$as_me:21954: \"$ac_try\"") >&5
21955   (eval $ac_try) 2>&5
21956   ac_status=$?
21957   echo "$as_me:21957: \$? = $ac_status" >&5
21958   (exit $ac_status); }; }; then
21959   eval "ac_cv_func_getservbyname_proto_compat=yes"
21960 else
21961   echo "$as_me: failed program was:" >&5
21962 cat conftest.$ac_ext >&5
21963 eval "ac_cv_func_getservbyname_proto_compat=no"
21964 fi
21965 rm -f conftest.$ac_objext conftest.$ac_ext
21966 fi
21967 echo "$as_me:21967: result: $ac_cv_func_getservbyname_proto_compat" >&5
21968 echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
21969
21970 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
21971
21972 cat >>confdefs.h <<\_ACEOF
21973 #define GETSERVBYNAME_PROTO_COMPATIBLE 1
21974 _ACEOF
21975
21976 fi
21977
21978
21979
21980
21981 echo "$as_me:21981: checking if getsockname is compatible with system prototype" >&5
21982 echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
21983 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
21984   echo $ECHO_N "(cached) $ECHO_C" >&6
21985 else
21986   cat >conftest.$ac_ext <<_ACEOF
21987 #line 21987 "configure"
21988 #include "confdefs.h"
21989
21990 #ifdef HAVE_SYS_TYPES_H
21991 #include <sys/types.h>
21992 #endif
21993 #ifdef HAVE_SYS_SOCKET_H
21994 #include <sys/socket.h>
21995 #endif
21996
21997 #ifdef F77_DUMMY_MAIN
21998 #  ifdef __cplusplus
21999      extern "C"
22000 #  endif
22001    int F77_DUMMY_MAIN() { return 1; }
22002 #endif
22003 int
22004 main ()
22005 {
22006 int getsockname(int, struct sockaddr*, socklen_t*);
22007   ;
22008   return 0;
22009 }
22010 _ACEOF
22011 rm -f conftest.$ac_objext
22012 if { (eval echo "$as_me:22012: \"$ac_compile\"") >&5
22013   (eval $ac_compile) 2>&5
22014   ac_status=$?
22015   echo "$as_me:22015: \$? = $ac_status" >&5
22016   (exit $ac_status); } &&
22017          { ac_try='test -s conftest.$ac_objext'
22018   { (eval echo "$as_me:22018: \"$ac_try\"") >&5
22019   (eval $ac_try) 2>&5
22020   ac_status=$?
22021   echo "$as_me:22021: \$? = $ac_status" >&5
22022   (exit $ac_status); }; }; then
22023   eval "ac_cv_func_getsockname_proto_compat=yes"
22024 else
22025   echo "$as_me: failed program was:" >&5
22026 cat conftest.$ac_ext >&5
22027 eval "ac_cv_func_getsockname_proto_compat=no"
22028 fi
22029 rm -f conftest.$ac_objext conftest.$ac_ext
22030 fi
22031 echo "$as_me:22031: result: $ac_cv_func_getsockname_proto_compat" >&5
22032 echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
22033
22034 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
22035
22036 cat >>confdefs.h <<\_ACEOF
22037 #define GETSOCKNAME_PROTO_COMPATIBLE 1
22038 _ACEOF
22039
22040 fi
22041
22042
22043
22044
22045 echo "$as_me:22045: checking if openlog is compatible with system prototype" >&5
22046 echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
22047 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
22048   echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050   cat >conftest.$ac_ext <<_ACEOF
22051 #line 22051 "configure"
22052 #include "confdefs.h"
22053
22054 #ifdef HAVE_SYSLOG_H
22055 #include <syslog.h>
22056 #endif
22057
22058 #ifdef F77_DUMMY_MAIN
22059 #  ifdef __cplusplus
22060      extern "C"
22061 #  endif
22062    int F77_DUMMY_MAIN() { return 1; }
22063 #endif
22064 int
22065 main ()
22066 {
22067 void openlog(const char *, int, int);
22068   ;
22069   return 0;
22070 }
22071 _ACEOF
22072 rm -f conftest.$ac_objext
22073 if { (eval echo "$as_me:22073: \"$ac_compile\"") >&5
22074   (eval $ac_compile) 2>&5
22075   ac_status=$?
22076   echo "$as_me:22076: \$? = $ac_status" >&5
22077   (exit $ac_status); } &&
22078          { ac_try='test -s conftest.$ac_objext'
22079   { (eval echo "$as_me:22079: \"$ac_try\"") >&5
22080   (eval $ac_try) 2>&5
22081   ac_status=$?
22082   echo "$as_me:22082: \$? = $ac_status" >&5
22083   (exit $ac_status); }; }; then
22084   eval "ac_cv_func_openlog_proto_compat=yes"
22085 else
22086   echo "$as_me: failed program was:" >&5
22087 cat conftest.$ac_ext >&5
22088 eval "ac_cv_func_openlog_proto_compat=no"
22089 fi
22090 rm -f conftest.$ac_objext conftest.$ac_ext
22091 fi
22092 echo "$as_me:22092: result: $ac_cv_func_openlog_proto_compat" >&5
22093 echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
22094
22095 if test "$ac_cv_func_openlog_proto_compat" = yes; then
22096
22097 cat >>confdefs.h <<\_ACEOF
22098 #define OPENLOG_PROTO_COMPATIBLE 1
22099 _ACEOF
22100
22101 fi
22102
22103
22104
22105
22106 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
22107 echo "$as_me:22107: checking if crypt needs a prototype" >&5
22108 echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
22109 if test "${ac_cv_func_crypt_noproto+set}" = set; then
22110   echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112   cat >conftest.$ac_ext <<_ACEOF
22113 #line 22113 "configure"
22114 #include "confdefs.h"
22115
22116 #ifdef HAVE_CRYPT_H
22117 #include <crypt.h>
22118 #endif
22119 #ifdef HAVE_UNISTD_H
22120 #include <unistd.h>
22121 #endif
22122
22123 #ifdef F77_DUMMY_MAIN
22124 #  ifdef __cplusplus
22125      extern "C"
22126 #  endif
22127    int F77_DUMMY_MAIN() { return 1; }
22128 #endif
22129 int
22130 main ()
22131 {
22132 struct foo { int foo; } xx;
22133 extern int crypt (struct foo*);
22134 crypt(&xx);
22135
22136   ;
22137   return 0;
22138 }
22139 _ACEOF
22140 rm -f conftest.$ac_objext
22141 if { (eval echo "$as_me:22141: \"$ac_compile\"") >&5
22142   (eval $ac_compile) 2>&5
22143   ac_status=$?
22144   echo "$as_me:22144: \$? = $ac_status" >&5
22145   (exit $ac_status); } &&
22146          { ac_try='test -s conftest.$ac_objext'
22147   { (eval echo "$as_me:22147: \"$ac_try\"") >&5
22148   (eval $ac_try) 2>&5
22149   ac_status=$?
22150   echo "$as_me:22150: \$? = $ac_status" >&5
22151   (exit $ac_status); }; }; then
22152   eval "ac_cv_func_crypt_noproto=yes"
22153 else
22154   echo "$as_me: failed program was:" >&5
22155 cat conftest.$ac_ext >&5
22156 eval "ac_cv_func_crypt_noproto=no"
22157 fi
22158 rm -f conftest.$ac_objext conftest.$ac_ext
22159 fi
22160 echo "$as_me:22160: result: $ac_cv_func_crypt_noproto" >&5
22161 echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
22162 if test "$ac_cv_func_crypt_noproto" = yes; then
22163
22164 cat >>confdefs.h <<\_ACEOF
22165 #define NEED_CRYPT_PROTO 1
22166 _ACEOF
22167
22168 fi
22169 fi
22170
22171
22172
22173
22174 echo "$as_me:22174: checking for h_errno" >&5
22175 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
22176 if test "${ac_cv_var_h_errno+set}" = set; then
22177   echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179
22180 cat >conftest.$ac_ext <<_ACEOF
22181 #line 22181 "configure"
22182 #include "confdefs.h"
22183 extern int h_errno;
22184 int foo() { return h_errno; }
22185 #ifdef F77_DUMMY_MAIN
22186 #  ifdef __cplusplus
22187      extern "C"
22188 #  endif
22189    int F77_DUMMY_MAIN() { return 1; }
22190 #endif
22191 int
22192 main ()
22193 {
22194 foo()
22195   ;
22196   return 0;
22197 }
22198 _ACEOF
22199 rm -f conftest.$ac_objext conftest$ac_exeext
22200 if { (eval echo "$as_me:22200: \"$ac_link\"") >&5
22201   (eval $ac_link) 2>&5
22202   ac_status=$?
22203   echo "$as_me:22203: \$? = $ac_status" >&5
22204   (exit $ac_status); } &&
22205          { ac_try='test -s conftest$ac_exeext'
22206   { (eval echo "$as_me:22206: \"$ac_try\"") >&5
22207   (eval $ac_try) 2>&5
22208   ac_status=$?
22209   echo "$as_me:22209: \$? = $ac_status" >&5
22210   (exit $ac_status); }; }; then
22211   ac_cv_var_h_errno=yes
22212 else
22213   echo "$as_me: failed program was:" >&5
22214 cat conftest.$ac_ext >&5
22215 ac_cv_var_h_errno=no
22216 fi
22217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22218
22219 fi
22220
22221 ac_foo=`eval echo \\$ac_cv_var_h_errno`
22222 echo "$as_me:22222: result: $ac_foo" >&5
22223 echo "${ECHO_T}$ac_foo" >&6
22224 if test "$ac_foo" = yes; then
22225
22226 cat >>confdefs.h <<_ACEOF
22227 #define HAVE_H_ERRNO 1
22228 _ACEOF
22229
22230
22231 echo "$as_me:22231: checking if h_errno is properly declared" >&5
22232 echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
22233 if test "${ac_cv_var_h_errno_declaration+set}" = set; then
22234   echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236
22237 cat >conftest.$ac_ext <<_ACEOF
22238 #line 22238 "configure"
22239 #include "confdefs.h"
22240 #ifdef HAVE_SYS_TYPES_H
22241 #include <sys/types.h>
22242 #endif
22243 #ifdef HAVE_NETDB_H
22244 #include <netdb.h>
22245 #endif
22246 extern struct { int foo; } h_errno;
22247 #ifdef F77_DUMMY_MAIN
22248 #  ifdef __cplusplus
22249      extern "C"
22250 #  endif
22251    int F77_DUMMY_MAIN() { return 1; }
22252 #endif
22253 int
22254 main ()
22255 {
22256 h_errno.foo = 1;
22257   ;
22258   return 0;
22259 }
22260 _ACEOF
22261 rm -f conftest.$ac_objext
22262 if { (eval echo "$as_me:22262: \"$ac_compile\"") >&5
22263   (eval $ac_compile) 2>&5
22264   ac_status=$?
22265   echo "$as_me:22265: \$? = $ac_status" >&5
22266   (exit $ac_status); } &&
22267          { ac_try='test -s conftest.$ac_objext'
22268   { (eval echo "$as_me:22268: \"$ac_try\"") >&5
22269   (eval $ac_try) 2>&5
22270   ac_status=$?
22271   echo "$as_me:22271: \$? = $ac_status" >&5
22272   (exit $ac_status); }; }; then
22273   eval "ac_cv_var_h_errno_declaration=no"
22274 else
22275   echo "$as_me: failed program was:" >&5
22276 cat conftest.$ac_ext >&5
22277 eval "ac_cv_var_h_errno_declaration=yes"
22278 fi
22279 rm -f conftest.$ac_objext conftest.$ac_ext
22280
22281 fi
22282
22283
22284
22285
22286 echo "$as_me:22286: result: $ac_cv_var_h_errno_declaration" >&5
22287 echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
22288 if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
22289
22290 cat >>confdefs.h <<\_ACEOF
22291 #define HAVE_H_ERRNO_DECLARATION 1
22292 _ACEOF
22293
22294 fi
22295
22296
22297 fi
22298
22299
22300
22301 echo "$as_me:22301: checking for h_errlist" >&5
22302 echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
22303 if test "${ac_cv_var_h_errlist+set}" = set; then
22304   echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306
22307 cat >conftest.$ac_ext <<_ACEOF
22308 #line 22308 "configure"
22309 #include "confdefs.h"
22310 extern int h_errlist;
22311 int foo() { return h_errlist; }
22312 #ifdef F77_DUMMY_MAIN
22313 #  ifdef __cplusplus
22314      extern "C"
22315 #  endif
22316    int F77_DUMMY_MAIN() { return 1; }
22317 #endif
22318 int
22319 main ()
22320 {
22321 foo()
22322   ;
22323   return 0;
22324 }
22325 _ACEOF
22326 rm -f conftest.$ac_objext conftest$ac_exeext
22327 if { (eval echo "$as_me:22327: \"$ac_link\"") >&5
22328   (eval $ac_link) 2>&5
22329   ac_status=$?
22330   echo "$as_me:22330: \$? = $ac_status" >&5
22331   (exit $ac_status); } &&
22332          { ac_try='test -s conftest$ac_exeext'
22333   { (eval echo "$as_me:22333: \"$ac_try\"") >&5
22334   (eval $ac_try) 2>&5
22335   ac_status=$?
22336   echo "$as_me:22336: \$? = $ac_status" >&5
22337   (exit $ac_status); }; }; then
22338   ac_cv_var_h_errlist=yes
22339 else
22340   echo "$as_me: failed program was:" >&5
22341 cat conftest.$ac_ext >&5
22342 ac_cv_var_h_errlist=no
22343 fi
22344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22345
22346 fi
22347
22348 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
22349 echo "$as_me:22349: result: $ac_foo" >&5
22350 echo "${ECHO_T}$ac_foo" >&6
22351 if test "$ac_foo" = yes; then
22352
22353 cat >>confdefs.h <<_ACEOF
22354 #define HAVE_H_ERRLIST 1
22355 _ACEOF
22356
22357
22358 echo "$as_me:22358: checking if h_errlist is properly declared" >&5
22359 echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
22360 if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
22361   echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363
22364 cat >conftest.$ac_ext <<_ACEOF
22365 #line 22365 "configure"
22366 #include "confdefs.h"
22367 #ifdef HAVE_NETDB_H
22368 #include <netdb.h>
22369 #endif
22370 extern struct { int foo; } h_errlist;
22371 #ifdef F77_DUMMY_MAIN
22372 #  ifdef __cplusplus
22373      extern "C"
22374 #  endif
22375    int F77_DUMMY_MAIN() { return 1; }
22376 #endif
22377 int
22378 main ()
22379 {
22380 h_errlist.foo = 1;
22381   ;
22382   return 0;
22383 }
22384 _ACEOF
22385 rm -f conftest.$ac_objext
22386 if { (eval echo "$as_me:22386: \"$ac_compile\"") >&5
22387   (eval $ac_compile) 2>&5
22388   ac_status=$?
22389   echo "$as_me:22389: \$? = $ac_status" >&5
22390   (exit $ac_status); } &&
22391          { ac_try='test -s conftest.$ac_objext'
22392   { (eval echo "$as_me:22392: \"$ac_try\"") >&5
22393   (eval $ac_try) 2>&5
22394   ac_status=$?
22395   echo "$as_me:22395: \$? = $ac_status" >&5
22396   (exit $ac_status); }; }; then
22397   eval "ac_cv_var_h_errlist_declaration=no"
22398 else
22399   echo "$as_me: failed program was:" >&5
22400 cat conftest.$ac_ext >&5
22401 eval "ac_cv_var_h_errlist_declaration=yes"
22402 fi
22403 rm -f conftest.$ac_objext conftest.$ac_ext
22404
22405 fi
22406
22407
22408
22409
22410 echo "$as_me:22410: result: $ac_cv_var_h_errlist_declaration" >&5
22411 echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
22412 if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
22413
22414 cat >>confdefs.h <<\_ACEOF
22415 #define HAVE_H_ERRLIST_DECLARATION 1
22416 _ACEOF
22417
22418 fi
22419
22420
22421 fi
22422
22423
22424
22425 echo "$as_me:22425: checking for h_nerr" >&5
22426 echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
22427 if test "${ac_cv_var_h_nerr+set}" = set; then
22428   echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430
22431 cat >conftest.$ac_ext <<_ACEOF
22432 #line 22432 "configure"
22433 #include "confdefs.h"
22434 extern int h_nerr;
22435 int foo() { return h_nerr; }
22436 #ifdef F77_DUMMY_MAIN
22437 #  ifdef __cplusplus
22438      extern "C"
22439 #  endif
22440    int F77_DUMMY_MAIN() { return 1; }
22441 #endif
22442 int
22443 main ()
22444 {
22445 foo()
22446   ;
22447   return 0;
22448 }
22449 _ACEOF
22450 rm -f conftest.$ac_objext conftest$ac_exeext
22451 if { (eval echo "$as_me:22451: \"$ac_link\"") >&5
22452   (eval $ac_link) 2>&5
22453   ac_status=$?
22454   echo "$as_me:22454: \$? = $ac_status" >&5
22455   (exit $ac_status); } &&
22456          { ac_try='test -s conftest$ac_exeext'
22457   { (eval echo "$as_me:22457: \"$ac_try\"") >&5
22458   (eval $ac_try) 2>&5
22459   ac_status=$?
22460   echo "$as_me:22460: \$? = $ac_status" >&5
22461   (exit $ac_status); }; }; then
22462   ac_cv_var_h_nerr=yes
22463 else
22464   echo "$as_me: failed program was:" >&5
22465 cat conftest.$ac_ext >&5
22466 ac_cv_var_h_nerr=no
22467 fi
22468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22469
22470 fi
22471
22472 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
22473 echo "$as_me:22473: result: $ac_foo" >&5
22474 echo "${ECHO_T}$ac_foo" >&6
22475 if test "$ac_foo" = yes; then
22476
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_H_NERR 1
22479 _ACEOF
22480
22481
22482 echo "$as_me:22482: checking if h_nerr is properly declared" >&5
22483 echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
22484 if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
22485   echo $ECHO_N "(cached) $ECHO_C" >&6
22486 else
22487
22488 cat >conftest.$ac_ext <<_ACEOF
22489 #line 22489 "configure"
22490 #include "confdefs.h"
22491 #ifdef HAVE_NETDB_H
22492 #include <netdb.h>
22493 #endif
22494 extern struct { int foo; } h_nerr;
22495 #ifdef F77_DUMMY_MAIN
22496 #  ifdef __cplusplus
22497      extern "C"
22498 #  endif
22499    int F77_DUMMY_MAIN() { return 1; }
22500 #endif
22501 int
22502 main ()
22503 {
22504 h_nerr.foo = 1;
22505   ;
22506   return 0;
22507 }
22508 _ACEOF
22509 rm -f conftest.$ac_objext
22510 if { (eval echo "$as_me:22510: \"$ac_compile\"") >&5
22511   (eval $ac_compile) 2>&5
22512   ac_status=$?
22513   echo "$as_me:22513: \$? = $ac_status" >&5
22514   (exit $ac_status); } &&
22515          { ac_try='test -s conftest.$ac_objext'
22516   { (eval echo "$as_me:22516: \"$ac_try\"") >&5
22517   (eval $ac_try) 2>&5
22518   ac_status=$?
22519   echo "$as_me:22519: \$? = $ac_status" >&5
22520   (exit $ac_status); }; }; then
22521   eval "ac_cv_var_h_nerr_declaration=no"
22522 else
22523   echo "$as_me: failed program was:" >&5
22524 cat conftest.$ac_ext >&5
22525 eval "ac_cv_var_h_nerr_declaration=yes"
22526 fi
22527 rm -f conftest.$ac_objext conftest.$ac_ext
22528
22529 fi
22530
22531
22532
22533
22534 echo "$as_me:22534: result: $ac_cv_var_h_nerr_declaration" >&5
22535 echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
22536 if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
22537
22538 cat >>confdefs.h <<\_ACEOF
22539 #define HAVE_H_NERR_DECLARATION 1
22540 _ACEOF
22541
22542 fi
22543
22544
22545 fi
22546
22547
22548
22549 echo "$as_me:22549: checking for __progname" >&5
22550 echo $ECHO_N "checking for __progname... $ECHO_C" >&6
22551 if test "${ac_cv_var___progname+set}" = set; then
22552   echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554
22555 cat >conftest.$ac_ext <<_ACEOF
22556 #line 22556 "configure"
22557 #include "confdefs.h"
22558 extern int __progname;
22559 int foo() { return __progname; }
22560 #ifdef F77_DUMMY_MAIN
22561 #  ifdef __cplusplus
22562      extern "C"
22563 #  endif
22564    int F77_DUMMY_MAIN() { return 1; }
22565 #endif
22566 int
22567 main ()
22568 {
22569 foo()
22570   ;
22571   return 0;
22572 }
22573 _ACEOF
22574 rm -f conftest.$ac_objext conftest$ac_exeext
22575 if { (eval echo "$as_me:22575: \"$ac_link\"") >&5
22576   (eval $ac_link) 2>&5
22577   ac_status=$?
22578   echo "$as_me:22578: \$? = $ac_status" >&5
22579   (exit $ac_status); } &&
22580          { ac_try='test -s conftest$ac_exeext'
22581   { (eval echo "$as_me:22581: \"$ac_try\"") >&5
22582   (eval $ac_try) 2>&5
22583   ac_status=$?
22584   echo "$as_me:22584: \$? = $ac_status" >&5
22585   (exit $ac_status); }; }; then
22586   ac_cv_var___progname=yes
22587 else
22588   echo "$as_me: failed program was:" >&5
22589 cat conftest.$ac_ext >&5
22590 ac_cv_var___progname=no
22591 fi
22592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22593
22594 fi
22595
22596 ac_foo=`eval echo \\$ac_cv_var___progname`
22597 echo "$as_me:22597: result: $ac_foo" >&5
22598 echo "${ECHO_T}$ac_foo" >&6
22599 if test "$ac_foo" = yes; then
22600
22601 cat >>confdefs.h <<_ACEOF
22602 #define HAVE___PROGNAME 1
22603 _ACEOF
22604
22605
22606 echo "$as_me:22606: checking if __progname is properly declared" >&5
22607 echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
22608 if test "${ac_cv_var___progname_declaration+set}" = set; then
22609   echo $ECHO_N "(cached) $ECHO_C" >&6
22610 else
22611
22612 cat >conftest.$ac_ext <<_ACEOF
22613 #line 22613 "configure"
22614 #include "confdefs.h"
22615 #ifdef HAVE_ERR_H
22616 #include <err.h>
22617 #endif
22618 extern struct { int foo; } __progname;
22619 #ifdef F77_DUMMY_MAIN
22620 #  ifdef __cplusplus
22621      extern "C"
22622 #  endif
22623    int F77_DUMMY_MAIN() { return 1; }
22624 #endif
22625 int
22626 main ()
22627 {
22628 __progname.foo = 1;
22629   ;
22630   return 0;
22631 }
22632 _ACEOF
22633 rm -f conftest.$ac_objext
22634 if { (eval echo "$as_me:22634: \"$ac_compile\"") >&5
22635   (eval $ac_compile) 2>&5
22636   ac_status=$?
22637   echo "$as_me:22637: \$? = $ac_status" >&5
22638   (exit $ac_status); } &&
22639          { ac_try='test -s conftest.$ac_objext'
22640   { (eval echo "$as_me:22640: \"$ac_try\"") >&5
22641   (eval $ac_try) 2>&5
22642   ac_status=$?
22643   echo "$as_me:22643: \$? = $ac_status" >&5
22644   (exit $ac_status); }; }; then
22645   eval "ac_cv_var___progname_declaration=no"
22646 else
22647   echo "$as_me: failed program was:" >&5
22648 cat conftest.$ac_ext >&5
22649 eval "ac_cv_var___progname_declaration=yes"
22650 fi
22651 rm -f conftest.$ac_objext conftest.$ac_ext
22652
22653 fi
22654
22655
22656
22657
22658 echo "$as_me:22658: result: $ac_cv_var___progname_declaration" >&5
22659 echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
22660 if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
22661
22662 cat >>confdefs.h <<\_ACEOF
22663 #define HAVE___PROGNAME_DECLARATION 1
22664 _ACEOF
22665
22666 fi
22667
22668
22669 fi
22670
22671
22672
22673 echo "$as_me:22673: checking if optarg is properly declared" >&5
22674 echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
22675 if test "${ac_cv_var_optarg_declaration+set}" = set; then
22676   echo $ECHO_N "(cached) $ECHO_C" >&6
22677 else
22678
22679 cat >conftest.$ac_ext <<_ACEOF
22680 #line 22680 "configure"
22681 #include "confdefs.h"
22682 #include <stdlib.h>
22683 #ifdef HAVE_UNISTD_H
22684 #include <unistd.h>
22685 #endif
22686 extern struct { int foo; } optarg;
22687 #ifdef F77_DUMMY_MAIN
22688 #  ifdef __cplusplus
22689      extern "C"
22690 #  endif
22691    int F77_DUMMY_MAIN() { return 1; }
22692 #endif
22693 int
22694 main ()
22695 {
22696 optarg.foo = 1;
22697   ;
22698   return 0;
22699 }
22700 _ACEOF
22701 rm -f conftest.$ac_objext
22702 if { (eval echo "$as_me:22702: \"$ac_compile\"") >&5
22703   (eval $ac_compile) 2>&5
22704   ac_status=$?
22705   echo "$as_me:22705: \$? = $ac_status" >&5
22706   (exit $ac_status); } &&
22707          { ac_try='test -s conftest.$ac_objext'
22708   { (eval echo "$as_me:22708: \"$ac_try\"") >&5
22709   (eval $ac_try) 2>&5
22710   ac_status=$?
22711   echo "$as_me:22711: \$? = $ac_status" >&5
22712   (exit $ac_status); }; }; then
22713   eval "ac_cv_var_optarg_declaration=no"
22714 else
22715   echo "$as_me: failed program was:" >&5
22716 cat conftest.$ac_ext >&5
22717 eval "ac_cv_var_optarg_declaration=yes"
22718 fi
22719 rm -f conftest.$ac_objext conftest.$ac_ext
22720
22721 fi
22722
22723
22724
22725
22726 echo "$as_me:22726: result: $ac_cv_var_optarg_declaration" >&5
22727 echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
22728 if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
22729
22730 cat >>confdefs.h <<\_ACEOF
22731 #define HAVE_OPTARG_DECLARATION 1
22732 _ACEOF
22733
22734 fi
22735
22736
22737
22738 echo "$as_me:22738: checking if optind is properly declared" >&5
22739 echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
22740 if test "${ac_cv_var_optind_declaration+set}" = set; then
22741   echo $ECHO_N "(cached) $ECHO_C" >&6
22742 else
22743
22744 cat >conftest.$ac_ext <<_ACEOF
22745 #line 22745 "configure"
22746 #include "confdefs.h"
22747 #include <stdlib.h>
22748 #ifdef HAVE_UNISTD_H
22749 #include <unistd.h>
22750 #endif
22751 extern struct { int foo; } optind;
22752 #ifdef F77_DUMMY_MAIN
22753 #  ifdef __cplusplus
22754      extern "C"
22755 #  endif
22756    int F77_DUMMY_MAIN() { return 1; }
22757 #endif
22758 int
22759 main ()
22760 {
22761 optind.foo = 1;
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (eval echo "$as_me:22767: \"$ac_compile\"") >&5
22768   (eval $ac_compile) 2>&5
22769   ac_status=$?
22770   echo "$as_me:22770: \$? = $ac_status" >&5
22771   (exit $ac_status); } &&
22772          { ac_try='test -s conftest.$ac_objext'
22773   { (eval echo "$as_me:22773: \"$ac_try\"") >&5
22774   (eval $ac_try) 2>&5
22775   ac_status=$?
22776   echo "$as_me:22776: \$? = $ac_status" >&5
22777   (exit $ac_status); }; }; then
22778   eval "ac_cv_var_optind_declaration=no"
22779 else
22780   echo "$as_me: failed program was:" >&5
22781 cat conftest.$ac_ext >&5
22782 eval "ac_cv_var_optind_declaration=yes"
22783 fi
22784 rm -f conftest.$ac_objext conftest.$ac_ext
22785
22786 fi
22787
22788
22789
22790
22791 echo "$as_me:22791: result: $ac_cv_var_optind_declaration" >&5
22792 echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
22793 if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
22794
22795 cat >>confdefs.h <<\_ACEOF
22796 #define HAVE_OPTIND_DECLARATION 1
22797 _ACEOF
22798
22799 fi
22800
22801
22802
22803 echo "$as_me:22803: checking if opterr is properly declared" >&5
22804 echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
22805 if test "${ac_cv_var_opterr_declaration+set}" = set; then
22806   echo $ECHO_N "(cached) $ECHO_C" >&6
22807 else
22808
22809 cat >conftest.$ac_ext <<_ACEOF
22810 #line 22810 "configure"
22811 #include "confdefs.h"
22812 #include <stdlib.h>
22813 #ifdef HAVE_UNISTD_H
22814 #include <unistd.h>
22815 #endif
22816 extern struct { int foo; } opterr;
22817 #ifdef F77_DUMMY_MAIN
22818 #  ifdef __cplusplus
22819      extern "C"
22820 #  endif
22821    int F77_DUMMY_MAIN() { return 1; }
22822 #endif
22823 int
22824 main ()
22825 {
22826 opterr.foo = 1;
22827   ;
22828   return 0;
22829 }
22830 _ACEOF
22831 rm -f conftest.$ac_objext
22832 if { (eval echo "$as_me:22832: \"$ac_compile\"") >&5
22833   (eval $ac_compile) 2>&5
22834   ac_status=$?
22835   echo "$as_me:22835: \$? = $ac_status" >&5
22836   (exit $ac_status); } &&
22837          { ac_try='test -s conftest.$ac_objext'
22838   { (eval echo "$as_me:22838: \"$ac_try\"") >&5
22839   (eval $ac_try) 2>&5
22840   ac_status=$?
22841   echo "$as_me:22841: \$? = $ac_status" >&5
22842   (exit $ac_status); }; }; then
22843   eval "ac_cv_var_opterr_declaration=no"
22844 else
22845   echo "$as_me: failed program was:" >&5
22846 cat conftest.$ac_ext >&5
22847 eval "ac_cv_var_opterr_declaration=yes"
22848 fi
22849 rm -f conftest.$ac_objext conftest.$ac_ext
22850
22851 fi
22852
22853
22854
22855
22856 echo "$as_me:22856: result: $ac_cv_var_opterr_declaration" >&5
22857 echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
22858 if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
22859
22860 cat >>confdefs.h <<\_ACEOF
22861 #define HAVE_OPTERR_DECLARATION 1
22862 _ACEOF
22863
22864 fi
22865
22866
22867
22868 echo "$as_me:22868: checking if optopt is properly declared" >&5
22869 echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
22870 if test "${ac_cv_var_optopt_declaration+set}" = set; then
22871   echo $ECHO_N "(cached) $ECHO_C" >&6
22872 else
22873
22874 cat >conftest.$ac_ext <<_ACEOF
22875 #line 22875 "configure"
22876 #include "confdefs.h"
22877 #include <stdlib.h>
22878 #ifdef HAVE_UNISTD_H
22879 #include <unistd.h>
22880 #endif
22881 extern struct { int foo; } optopt;
22882 #ifdef F77_DUMMY_MAIN
22883 #  ifdef __cplusplus
22884      extern "C"
22885 #  endif
22886    int F77_DUMMY_MAIN() { return 1; }
22887 #endif
22888 int
22889 main ()
22890 {
22891 optopt.foo = 1;
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext
22897 if { (eval echo "$as_me:22897: \"$ac_compile\"") >&5
22898   (eval $ac_compile) 2>&5
22899   ac_status=$?
22900   echo "$as_me:22900: \$? = $ac_status" >&5
22901   (exit $ac_status); } &&
22902          { ac_try='test -s conftest.$ac_objext'
22903   { (eval echo "$as_me:22903: \"$ac_try\"") >&5
22904   (eval $ac_try) 2>&5
22905   ac_status=$?
22906   echo "$as_me:22906: \$? = $ac_status" >&5
22907   (exit $ac_status); }; }; then
22908   eval "ac_cv_var_optopt_declaration=no"
22909 else
22910   echo "$as_me: failed program was:" >&5
22911 cat conftest.$ac_ext >&5
22912 eval "ac_cv_var_optopt_declaration=yes"
22913 fi
22914 rm -f conftest.$ac_objext conftest.$ac_ext
22915
22916 fi
22917
22918
22919
22920
22921 echo "$as_me:22921: result: $ac_cv_var_optopt_declaration" >&5
22922 echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
22923 if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
22924
22925 cat >>confdefs.h <<\_ACEOF
22926 #define HAVE_OPTOPT_DECLARATION 1
22927 _ACEOF
22928
22929 fi
22930
22931
22932
22933
22934 echo "$as_me:22934: checking if environ is properly declared" >&5
22935 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
22936 if test "${ac_cv_var_environ_declaration+set}" = set; then
22937   echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939
22940 cat >conftest.$ac_ext <<_ACEOF
22941 #line 22941 "configure"
22942 #include "confdefs.h"
22943 #include <stdlib.h>
22944 extern struct { int foo; } environ;
22945 #ifdef F77_DUMMY_MAIN
22946 #  ifdef __cplusplus
22947      extern "C"
22948 #  endif
22949    int F77_DUMMY_MAIN() { return 1; }
22950 #endif
22951 int
22952 main ()
22953 {
22954 environ.foo = 1;
22955   ;
22956   return 0;
22957 }
22958 _ACEOF
22959 rm -f conftest.$ac_objext
22960 if { (eval echo "$as_me:22960: \"$ac_compile\"") >&5
22961   (eval $ac_compile) 2>&5
22962   ac_status=$?
22963   echo "$as_me:22963: \$? = $ac_status" >&5
22964   (exit $ac_status); } &&
22965          { ac_try='test -s conftest.$ac_objext'
22966   { (eval echo "$as_me:22966: \"$ac_try\"") >&5
22967   (eval $ac_try) 2>&5
22968   ac_status=$?
22969   echo "$as_me:22969: \$? = $ac_status" >&5
22970   (exit $ac_status); }; }; then
22971   eval "ac_cv_var_environ_declaration=no"
22972 else
22973   echo "$as_me: failed program was:" >&5
22974 cat conftest.$ac_ext >&5
22975 eval "ac_cv_var_environ_declaration=yes"
22976 fi
22977 rm -f conftest.$ac_objext conftest.$ac_ext
22978
22979 fi
22980
22981
22982
22983
22984 echo "$as_me:22984: result: $ac_cv_var_environ_declaration" >&5
22985 echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
22986 if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
22987
22988 cat >>confdefs.h <<\_ACEOF
22989 #define HAVE_ENVIRON_DECLARATION 1
22990 _ACEOF
22991
22992 fi
22993
22994
22995
22996
22997
22998
22999 echo "$as_me:22999: checking for tm_gmtoff in struct tm" >&5
23000 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
23001 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
23002   echo $ECHO_N "(cached) $ECHO_C" >&6
23003 else
23004
23005 cat >conftest.$ac_ext <<_ACEOF
23006 #line 23006 "configure"
23007 #include "confdefs.h"
23008 #include <time.h>
23009 #ifdef F77_DUMMY_MAIN
23010 #  ifdef __cplusplus
23011      extern "C"
23012 #  endif
23013    int F77_DUMMY_MAIN() { return 1; }
23014 #endif
23015 int
23016 main ()
23017 {
23018 struct tm x; x.tm_gmtoff;
23019   ;
23020   return 0;
23021 }
23022 _ACEOF
23023 rm -f conftest.$ac_objext
23024 if { (eval echo "$as_me:23024: \"$ac_compile\"") >&5
23025   (eval $ac_compile) 2>&5
23026   ac_status=$?
23027   echo "$as_me:23027: \$? = $ac_status" >&5
23028   (exit $ac_status); } &&
23029          { ac_try='test -s conftest.$ac_objext'
23030   { (eval echo "$as_me:23030: \"$ac_try\"") >&5
23031   (eval $ac_try) 2>&5
23032   ac_status=$?
23033   echo "$as_me:23033: \$? = $ac_status" >&5
23034   (exit $ac_status); }; }; then
23035   ac_cv_type_struct_tm_tm_gmtoff=yes
23036 else
23037   echo "$as_me: failed program was:" >&5
23038 cat conftest.$ac_ext >&5
23039 ac_cv_type_struct_tm_tm_gmtoff=no
23040 fi
23041 rm -f conftest.$ac_objext conftest.$ac_ext
23042 fi
23043 echo "$as_me:23043: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
23044 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
23045 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
23046
23047
23048 cat >>confdefs.h <<\_ACEOF
23049 #define HAVE_STRUCT_TM_TM_GMTOFF 1
23050 _ACEOF
23051
23052
23053 fi
23054
23055
23056
23057
23058 echo "$as_me:23058: checking for tm_zone in struct tm" >&5
23059 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
23060 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
23061   echo $ECHO_N "(cached) $ECHO_C" >&6
23062 else
23063
23064 cat >conftest.$ac_ext <<_ACEOF
23065 #line 23065 "configure"
23066 #include "confdefs.h"
23067 #include <time.h>
23068 #ifdef F77_DUMMY_MAIN
23069 #  ifdef __cplusplus
23070      extern "C"
23071 #  endif
23072    int F77_DUMMY_MAIN() { return 1; }
23073 #endif
23074 int
23075 main ()
23076 {
23077 struct tm x; x.tm_zone;
23078   ;
23079   return 0;
23080 }
23081 _ACEOF
23082 rm -f conftest.$ac_objext
23083 if { (eval echo "$as_me:23083: \"$ac_compile\"") >&5
23084   (eval $ac_compile) 2>&5
23085   ac_status=$?
23086   echo "$as_me:23086: \$? = $ac_status" >&5
23087   (exit $ac_status); } &&
23088          { ac_try='test -s conftest.$ac_objext'
23089   { (eval echo "$as_me:23089: \"$ac_try\"") >&5
23090   (eval $ac_try) 2>&5
23091   ac_status=$?
23092   echo "$as_me:23092: \$? = $ac_status" >&5
23093   (exit $ac_status); }; }; then
23094   ac_cv_type_struct_tm_tm_zone=yes
23095 else
23096   echo "$as_me: failed program was:" >&5
23097 cat conftest.$ac_ext >&5
23098 ac_cv_type_struct_tm_tm_zone=no
23099 fi
23100 rm -f conftest.$ac_objext conftest.$ac_ext
23101 fi
23102 echo "$as_me:23102: result: $ac_cv_type_struct_tm_tm_zone" >&5
23103 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
23104 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
23105
23106
23107 cat >>confdefs.h <<\_ACEOF
23108 #define HAVE_STRUCT_TM_TM_ZONE 1
23109 _ACEOF
23110
23111
23112 fi
23113
23114
23115
23116
23117
23118 echo "$as_me:23118: checking for timezone" >&5
23119 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
23120 if test "${ac_cv_var_timezone+set}" = set; then
23121   echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23123
23124 cat >conftest.$ac_ext <<_ACEOF
23125 #line 23125 "configure"
23126 #include "confdefs.h"
23127 extern int timezone;
23128 int foo() { return timezone; }
23129 #ifdef F77_DUMMY_MAIN
23130 #  ifdef __cplusplus
23131      extern "C"
23132 #  endif
23133    int F77_DUMMY_MAIN() { return 1; }
23134 #endif
23135 int
23136 main ()
23137 {
23138 foo()
23139   ;
23140   return 0;
23141 }
23142 _ACEOF
23143 rm -f conftest.$ac_objext conftest$ac_exeext
23144 if { (eval echo "$as_me:23144: \"$ac_link\"") >&5
23145   (eval $ac_link) 2>&5
23146   ac_status=$?
23147   echo "$as_me:23147: \$? = $ac_status" >&5
23148   (exit $ac_status); } &&
23149          { ac_try='test -s conftest$ac_exeext'
23150   { (eval echo "$as_me:23150: \"$ac_try\"") >&5
23151   (eval $ac_try) 2>&5
23152   ac_status=$?
23153   echo "$as_me:23153: \$? = $ac_status" >&5
23154   (exit $ac_status); }; }; then
23155   ac_cv_var_timezone=yes
23156 else
23157   echo "$as_me: failed program was:" >&5
23158 cat conftest.$ac_ext >&5
23159 ac_cv_var_timezone=no
23160 fi
23161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23162
23163 fi
23164
23165 ac_foo=`eval echo \\$ac_cv_var_timezone`
23166 echo "$as_me:23166: result: $ac_foo" >&5
23167 echo "${ECHO_T}$ac_foo" >&6
23168 if test "$ac_foo" = yes; then
23169
23170 cat >>confdefs.h <<_ACEOF
23171 #define HAVE_TIMEZONE 1
23172 _ACEOF
23173
23174
23175 echo "$as_me:23175: checking if timezone is properly declared" >&5
23176 echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
23177 if test "${ac_cv_var_timezone_declaration+set}" = set; then
23178   echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180
23181 cat >conftest.$ac_ext <<_ACEOF
23182 #line 23182 "configure"
23183 #include "confdefs.h"
23184 #include <time.h>
23185 extern struct { int foo; } timezone;
23186 #ifdef F77_DUMMY_MAIN
23187 #  ifdef __cplusplus
23188      extern "C"
23189 #  endif
23190    int F77_DUMMY_MAIN() { return 1; }
23191 #endif
23192 int
23193 main ()
23194 {
23195 timezone.foo = 1;
23196   ;
23197   return 0;
23198 }
23199 _ACEOF
23200 rm -f conftest.$ac_objext
23201 if { (eval echo "$as_me:23201: \"$ac_compile\"") >&5
23202   (eval $ac_compile) 2>&5
23203   ac_status=$?
23204   echo "$as_me:23204: \$? = $ac_status" >&5
23205   (exit $ac_status); } &&
23206          { ac_try='test -s conftest.$ac_objext'
23207   { (eval echo "$as_me:23207: \"$ac_try\"") >&5
23208   (eval $ac_try) 2>&5
23209   ac_status=$?
23210   echo "$as_me:23210: \$? = $ac_status" >&5
23211   (exit $ac_status); }; }; then
23212   eval "ac_cv_var_timezone_declaration=no"
23213 else
23214   echo "$as_me: failed program was:" >&5
23215 cat conftest.$ac_ext >&5
23216 eval "ac_cv_var_timezone_declaration=yes"
23217 fi
23218 rm -f conftest.$ac_objext conftest.$ac_ext
23219
23220 fi
23221
23222
23223
23224
23225 echo "$as_me:23225: result: $ac_cv_var_timezone_declaration" >&5
23226 echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
23227 if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
23228
23229 cat >>confdefs.h <<\_ACEOF
23230 #define HAVE_TIMEZONE_DECLARATION 1
23231 _ACEOF
23232
23233 fi
23234
23235
23236 fi
23237
23238
23239 echo "$as_me:23239: checking for altzone" >&5
23240 echo $ECHO_N "checking for altzone... $ECHO_C" >&6
23241 if test "${ac_cv_var_altzone+set}" = set; then
23242   echo $ECHO_N "(cached) $ECHO_C" >&6
23243 else
23244
23245 cat >conftest.$ac_ext <<_ACEOF
23246 #line 23246 "configure"
23247 #include "confdefs.h"
23248 extern int altzone;
23249 int foo() { return altzone; }
23250 #ifdef F77_DUMMY_MAIN
23251 #  ifdef __cplusplus
23252      extern "C"
23253 #  endif
23254    int F77_DUMMY_MAIN() { return 1; }
23255 #endif
23256 int
23257 main ()
23258 {
23259 foo()
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:23265: \"$ac_link\"") >&5
23266   (eval $ac_link) 2>&5
23267   ac_status=$?
23268   echo "$as_me:23268: \$? = $ac_status" >&5
23269   (exit $ac_status); } &&
23270          { ac_try='test -s conftest$ac_exeext'
23271   { (eval echo "$as_me:23271: \"$ac_try\"") >&5
23272   (eval $ac_try) 2>&5
23273   ac_status=$?
23274   echo "$as_me:23274: \$? = $ac_status" >&5
23275   (exit $ac_status); }; }; then
23276   ac_cv_var_altzone=yes
23277 else
23278   echo "$as_me: failed program was:" >&5
23279 cat conftest.$ac_ext >&5
23280 ac_cv_var_altzone=no
23281 fi
23282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23283
23284 fi
23285
23286 ac_foo=`eval echo \\$ac_cv_var_altzone`
23287 echo "$as_me:23287: result: $ac_foo" >&5
23288 echo "${ECHO_T}$ac_foo" >&6
23289 if test "$ac_foo" = yes; then
23290
23291 cat >>confdefs.h <<_ACEOF
23292 #define HAVE_ALTZONE 1
23293 _ACEOF
23294
23295
23296 echo "$as_me:23296: checking if altzone is properly declared" >&5
23297 echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
23298 if test "${ac_cv_var_altzone_declaration+set}" = set; then
23299   echo $ECHO_N "(cached) $ECHO_C" >&6
23300 else
23301
23302 cat >conftest.$ac_ext <<_ACEOF
23303 #line 23303 "configure"
23304 #include "confdefs.h"
23305 #include <time.h>
23306 extern struct { int foo; } altzone;
23307 #ifdef F77_DUMMY_MAIN
23308 #  ifdef __cplusplus
23309      extern "C"
23310 #  endif
23311    int F77_DUMMY_MAIN() { return 1; }
23312 #endif
23313 int
23314 main ()
23315 {
23316 altzone.foo = 1;
23317   ;
23318   return 0;
23319 }
23320 _ACEOF
23321 rm -f conftest.$ac_objext
23322 if { (eval echo "$as_me:23322: \"$ac_compile\"") >&5
23323   (eval $ac_compile) 2>&5
23324   ac_status=$?
23325   echo "$as_me:23325: \$? = $ac_status" >&5
23326   (exit $ac_status); } &&
23327          { ac_try='test -s conftest.$ac_objext'
23328   { (eval echo "$as_me:23328: \"$ac_try\"") >&5
23329   (eval $ac_try) 2>&5
23330   ac_status=$?
23331   echo "$as_me:23331: \$? = $ac_status" >&5
23332   (exit $ac_status); }; }; then
23333   eval "ac_cv_var_altzone_declaration=no"
23334 else
23335   echo "$as_me: failed program was:" >&5
23336 cat conftest.$ac_ext >&5
23337 eval "ac_cv_var_altzone_declaration=yes"
23338 fi
23339 rm -f conftest.$ac_objext conftest.$ac_ext
23340
23341 fi
23342
23343
23344
23345
23346 echo "$as_me:23346: result: $ac_cv_var_altzone_declaration" >&5
23347 echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
23348 if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
23349
23350 cat >>confdefs.h <<\_ACEOF
23351 #define HAVE_ALTZONE_DECLARATION 1
23352 _ACEOF
23353
23354 fi
23355
23356
23357 fi
23358
23359
23360
23361
23362 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
23363 echo "$as_me:23363: checking for sa_family_t" >&5
23364 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
23365 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23366   echo $ECHO_N "(cached) $ECHO_C" >&6
23367 else
23368   cat >conftest.$ac_ext <<_ACEOF
23369 #line 23369 "configure"
23370 #include "confdefs.h"
23371 #include <sys/types.h>
23372 #if STDC_HEADERS
23373 #include <stdlib.h>
23374 #include <stddef.h>
23375 #endif
23376 #include <sys/socket.h>
23377 #ifdef F77_DUMMY_MAIN
23378 #  ifdef __cplusplus
23379      extern "C"
23380 #  endif
23381    int F77_DUMMY_MAIN() { return 1; }
23382 #endif
23383 int
23384 main ()
23385 {
23386 sa_family_t foo;
23387   ;
23388   return 0;
23389 }
23390 _ACEOF
23391 rm -f conftest.$ac_objext
23392 if { (eval echo "$as_me:23392: \"$ac_compile\"") >&5
23393   (eval $ac_compile) 2>&5
23394   ac_status=$?
23395   echo "$as_me:23395: \$? = $ac_status" >&5
23396   (exit $ac_status); } &&
23397          { ac_try='test -s conftest.$ac_objext'
23398   { (eval echo "$as_me:23398: \"$ac_try\"") >&5
23399   (eval $ac_try) 2>&5
23400   ac_status=$?
23401   echo "$as_me:23401: \$? = $ac_status" >&5
23402   (exit $ac_status); }; }; then
23403   eval "ac_cv_type_$cv=yes"
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 cat conftest.$ac_ext >&5
23407 eval "ac_cv_type_$cv=no"
23408 fi
23409 rm -f conftest.$ac_objext conftest.$ac_ext
23410 fi
23411 ac_foo=`eval echo \\$ac_cv_type_$cv`
23412 echo "$as_me:23412: result: $ac_foo" >&5
23413 echo "${ECHO_T}$ac_foo" >&6
23414 if test "$ac_foo" = yes; then
23415   ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23416 if false; then
23417         echo "$as_me:23417: checking for sa_family_t" >&5
23418 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
23419 if test "${ac_cv_type_sa_family_t+set}" = set; then
23420   echo $ECHO_N "(cached) $ECHO_C" >&6
23421 else
23422   cat >conftest.$ac_ext <<_ACEOF
23423 #line 23423 "configure"
23424 #include "confdefs.h"
23425 $ac_includes_default
23426 #ifdef F77_DUMMY_MAIN
23427 #  ifdef __cplusplus
23428      extern "C"
23429 #  endif
23430    int F77_DUMMY_MAIN() { return 1; }
23431 #endif
23432 int
23433 main ()
23434 {
23435 if ((sa_family_t *) 0)
23436   return 0;
23437 if (sizeof (sa_family_t))
23438   return 0;
23439   ;
23440   return 0;
23441 }
23442 _ACEOF
23443 rm -f conftest.$ac_objext
23444 if { (eval echo "$as_me:23444: \"$ac_compile\"") >&5
23445   (eval $ac_compile) 2>&5
23446   ac_status=$?
23447   echo "$as_me:23447: \$? = $ac_status" >&5
23448   (exit $ac_status); } &&
23449          { ac_try='test -s conftest.$ac_objext'
23450   { (eval echo "$as_me:23450: \"$ac_try\"") >&5
23451   (eval $ac_try) 2>&5
23452   ac_status=$?
23453   echo "$as_me:23453: \$? = $ac_status" >&5
23454   (exit $ac_status); }; }; then
23455   ac_cv_type_sa_family_t=yes
23456 else
23457   echo "$as_me: failed program was:" >&5
23458 cat conftest.$ac_ext >&5
23459 ac_cv_type_sa_family_t=no
23460 fi
23461 rm -f conftest.$ac_objext conftest.$ac_ext
23462 fi
23463 echo "$as_me:23463: result: $ac_cv_type_sa_family_t" >&5
23464 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
23465 if test $ac_cv_type_sa_family_t = yes; then
23466
23467 cat >>confdefs.h <<_ACEOF
23468 #define HAVE_SA_FAMILY_T 1
23469 _ACEOF
23470
23471
23472 fi
23473
23474 fi
23475
23476 cat >>confdefs.h <<_ACEOF
23477 #define $ac_tr_hdr 1
23478 _ACEOF
23479
23480 fi
23481
23482
23483
23484 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
23485 echo "$as_me:23485: checking for socklen_t" >&5
23486 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23487 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23488   echo $ECHO_N "(cached) $ECHO_C" >&6
23489 else
23490   cat >conftest.$ac_ext <<_ACEOF
23491 #line 23491 "configure"
23492 #include "confdefs.h"
23493 #include <sys/types.h>
23494 #if STDC_HEADERS
23495 #include <stdlib.h>
23496 #include <stddef.h>
23497 #endif
23498 #include <sys/socket.h>
23499 #ifdef F77_DUMMY_MAIN
23500 #  ifdef __cplusplus
23501      extern "C"
23502 #  endif
23503    int F77_DUMMY_MAIN() { return 1; }
23504 #endif
23505 int
23506 main ()
23507 {
23508 socklen_t foo;
23509   ;
23510   return 0;
23511 }
23512 _ACEOF
23513 rm -f conftest.$ac_objext
23514 if { (eval echo "$as_me:23514: \"$ac_compile\"") >&5
23515   (eval $ac_compile) 2>&5
23516   ac_status=$?
23517   echo "$as_me:23517: \$? = $ac_status" >&5
23518   (exit $ac_status); } &&
23519          { ac_try='test -s conftest.$ac_objext'
23520   { (eval echo "$as_me:23520: \"$ac_try\"") >&5
23521   (eval $ac_try) 2>&5
23522   ac_status=$?
23523   echo "$as_me:23523: \$? = $ac_status" >&5
23524   (exit $ac_status); }; }; then
23525   eval "ac_cv_type_$cv=yes"
23526 else
23527   echo "$as_me: failed program was:" >&5
23528 cat conftest.$ac_ext >&5
23529 eval "ac_cv_type_$cv=no"
23530 fi
23531 rm -f conftest.$ac_objext conftest.$ac_ext
23532 fi
23533 ac_foo=`eval echo \\$ac_cv_type_$cv`
23534 echo "$as_me:23534: result: $ac_foo" >&5
23535 echo "${ECHO_T}$ac_foo" >&6
23536 if test "$ac_foo" = yes; then
23537   ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23538 if false; then
23539         echo "$as_me:23539: checking for socklen_t" >&5
23540 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23541 if test "${ac_cv_type_socklen_t+set}" = set; then
23542   echo $ECHO_N "(cached) $ECHO_C" >&6
23543 else
23544   cat >conftest.$ac_ext <<_ACEOF
23545 #line 23545 "configure"
23546 #include "confdefs.h"
23547 $ac_includes_default
23548 #ifdef F77_DUMMY_MAIN
23549 #  ifdef __cplusplus
23550      extern "C"
23551 #  endif
23552    int F77_DUMMY_MAIN() { return 1; }
23553 #endif
23554 int
23555 main ()
23556 {
23557 if ((socklen_t *) 0)
23558   return 0;
23559 if (sizeof (socklen_t))
23560   return 0;
23561   ;
23562   return 0;
23563 }
23564 _ACEOF
23565 rm -f conftest.$ac_objext
23566 if { (eval echo "$as_me:23566: \"$ac_compile\"") >&5
23567   (eval $ac_compile) 2>&5
23568   ac_status=$?
23569   echo "$as_me:23569: \$? = $ac_status" >&5
23570   (exit $ac_status); } &&
23571          { ac_try='test -s conftest.$ac_objext'
23572   { (eval echo "$as_me:23572: \"$ac_try\"") >&5
23573   (eval $ac_try) 2>&5
23574   ac_status=$?
23575   echo "$as_me:23575: \$? = $ac_status" >&5
23576   (exit $ac_status); }; }; then
23577   ac_cv_type_socklen_t=yes
23578 else
23579   echo "$as_me: failed program was:" >&5
23580 cat conftest.$ac_ext >&5
23581 ac_cv_type_socklen_t=no
23582 fi
23583 rm -f conftest.$ac_objext conftest.$ac_ext
23584 fi
23585 echo "$as_me:23585: result: $ac_cv_type_socklen_t" >&5
23586 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
23587 if test $ac_cv_type_socklen_t = yes; then
23588
23589 cat >>confdefs.h <<_ACEOF
23590 #define HAVE_SOCKLEN_T 1
23591 _ACEOF
23592
23593
23594 fi
23595
23596 fi
23597
23598 cat >>confdefs.h <<_ACEOF
23599 #define $ac_tr_hdr 1
23600 _ACEOF
23601
23602 fi
23603
23604
23605
23606 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
23607 echo "$as_me:23607: checking for struct sockaddr" >&5
23608 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
23609 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23610   echo $ECHO_N "(cached) $ECHO_C" >&6
23611 else
23612   cat >conftest.$ac_ext <<_ACEOF
23613 #line 23613 "configure"
23614 #include "confdefs.h"
23615 #include <sys/types.h>
23616 #if STDC_HEADERS
23617 #include <stdlib.h>
23618 #include <stddef.h>
23619 #endif
23620 #include <sys/socket.h>
23621 #ifdef F77_DUMMY_MAIN
23622 #  ifdef __cplusplus
23623      extern "C"
23624 #  endif
23625    int F77_DUMMY_MAIN() { return 1; }
23626 #endif
23627 int
23628 main ()
23629 {
23630 struct sockaddr foo;
23631   ;
23632   return 0;
23633 }
23634 _ACEOF
23635 rm -f conftest.$ac_objext
23636 if { (eval echo "$as_me:23636: \"$ac_compile\"") >&5
23637   (eval $ac_compile) 2>&5
23638   ac_status=$?
23639   echo "$as_me:23639: \$? = $ac_status" >&5
23640   (exit $ac_status); } &&
23641          { ac_try='test -s conftest.$ac_objext'
23642   { (eval echo "$as_me:23642: \"$ac_try\"") >&5
23643   (eval $ac_try) 2>&5
23644   ac_status=$?
23645   echo "$as_me:23645: \$? = $ac_status" >&5
23646   (exit $ac_status); }; }; then
23647   eval "ac_cv_type_$cv=yes"
23648 else
23649   echo "$as_me: failed program was:" >&5
23650 cat conftest.$ac_ext >&5
23651 eval "ac_cv_type_$cv=no"
23652 fi
23653 rm -f conftest.$ac_objext conftest.$ac_ext
23654 fi
23655 ac_foo=`eval echo \\$ac_cv_type_$cv`
23656 echo "$as_me:23656: result: $ac_foo" >&5
23657 echo "${ECHO_T}$ac_foo" >&6
23658 if test "$ac_foo" = yes; then
23659   ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23660 if false; then
23661         echo "$as_me:23661: checking for struct sockaddr" >&5
23662 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
23663 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
23664   echo $ECHO_N "(cached) $ECHO_C" >&6
23665 else
23666   cat >conftest.$ac_ext <<_ACEOF
23667 #line 23667 "configure"
23668 #include "confdefs.h"
23669 $ac_includes_default
23670 #ifdef F77_DUMMY_MAIN
23671 #  ifdef __cplusplus
23672      extern "C"
23673 #  endif
23674    int F77_DUMMY_MAIN() { return 1; }
23675 #endif
23676 int
23677 main ()
23678 {
23679 if ((struct sockaddr *) 0)
23680   return 0;
23681 if (sizeof (struct sockaddr))
23682   return 0;
23683   ;
23684   return 0;
23685 }
23686 _ACEOF
23687 rm -f conftest.$ac_objext
23688 if { (eval echo "$as_me:23688: \"$ac_compile\"") >&5
23689   (eval $ac_compile) 2>&5
23690   ac_status=$?
23691   echo "$as_me:23691: \$? = $ac_status" >&5
23692   (exit $ac_status); } &&
23693          { ac_try='test -s conftest.$ac_objext'
23694   { (eval echo "$as_me:23694: \"$ac_try\"") >&5
23695   (eval $ac_try) 2>&5
23696   ac_status=$?
23697   echo "$as_me:23697: \$? = $ac_status" >&5
23698   (exit $ac_status); }; }; then
23699   ac_cv_type_struct_sockaddr=yes
23700 else
23701   echo "$as_me: failed program was:" >&5
23702 cat conftest.$ac_ext >&5
23703 ac_cv_type_struct_sockaddr=no
23704 fi
23705 rm -f conftest.$ac_objext conftest.$ac_ext
23706 fi
23707 echo "$as_me:23707: result: $ac_cv_type_struct_sockaddr" >&5
23708 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
23709 if test $ac_cv_type_struct_sockaddr = yes; then
23710
23711 cat >>confdefs.h <<_ACEOF
23712 #define HAVE_STRUCT_SOCKADDR 1
23713 _ACEOF
23714
23715
23716 fi
23717
23718 fi
23719
23720 cat >>confdefs.h <<_ACEOF
23721 #define $ac_tr_hdr 1
23722 _ACEOF
23723
23724 fi
23725
23726
23727
23728 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
23729 echo "$as_me:23729: checking for struct sockaddr_storage" >&5
23730 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
23731 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23732   echo $ECHO_N "(cached) $ECHO_C" >&6
23733 else
23734   cat >conftest.$ac_ext <<_ACEOF
23735 #line 23735 "configure"
23736 #include "confdefs.h"
23737 #include <sys/types.h>
23738 #if STDC_HEADERS
23739 #include <stdlib.h>
23740 #include <stddef.h>
23741 #endif
23742 #include <sys/socket.h>
23743 #ifdef F77_DUMMY_MAIN
23744 #  ifdef __cplusplus
23745      extern "C"
23746 #  endif
23747    int F77_DUMMY_MAIN() { return 1; }
23748 #endif
23749 int
23750 main ()
23751 {
23752 struct sockaddr_storage foo;
23753   ;
23754   return 0;
23755 }
23756 _ACEOF
23757 rm -f conftest.$ac_objext
23758 if { (eval echo "$as_me:23758: \"$ac_compile\"") >&5
23759   (eval $ac_compile) 2>&5
23760   ac_status=$?
23761   echo "$as_me:23761: \$? = $ac_status" >&5
23762   (exit $ac_status); } &&
23763          { ac_try='test -s conftest.$ac_objext'
23764   { (eval echo "$as_me:23764: \"$ac_try\"") >&5
23765   (eval $ac_try) 2>&5
23766   ac_status=$?
23767   echo "$as_me:23767: \$? = $ac_status" >&5
23768   (exit $ac_status); }; }; then
23769   eval "ac_cv_type_$cv=yes"
23770 else
23771   echo "$as_me: failed program was:" >&5
23772 cat conftest.$ac_ext >&5
23773 eval "ac_cv_type_$cv=no"
23774 fi
23775 rm -f conftest.$ac_objext conftest.$ac_ext
23776 fi
23777 ac_foo=`eval echo \\$ac_cv_type_$cv`
23778 echo "$as_me:23778: result: $ac_foo" >&5
23779 echo "${ECHO_T}$ac_foo" >&6
23780 if test "$ac_foo" = yes; then
23781   ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23782 if false; then
23783         echo "$as_me:23783: checking for struct sockaddr_storage" >&5
23784 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
23785 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23786   echo $ECHO_N "(cached) $ECHO_C" >&6
23787 else
23788   cat >conftest.$ac_ext <<_ACEOF
23789 #line 23789 "configure"
23790 #include "confdefs.h"
23791 $ac_includes_default
23792 #ifdef F77_DUMMY_MAIN
23793 #  ifdef __cplusplus
23794      extern "C"
23795 #  endif
23796    int F77_DUMMY_MAIN() { return 1; }
23797 #endif
23798 int
23799 main ()
23800 {
23801 if ((struct sockaddr_storage *) 0)
23802   return 0;
23803 if (sizeof (struct sockaddr_storage))
23804   return 0;
23805   ;
23806   return 0;
23807 }
23808 _ACEOF
23809 rm -f conftest.$ac_objext
23810 if { (eval echo "$as_me:23810: \"$ac_compile\"") >&5
23811   (eval $ac_compile) 2>&5
23812   ac_status=$?
23813   echo "$as_me:23813: \$? = $ac_status" >&5
23814   (exit $ac_status); } &&
23815          { ac_try='test -s conftest.$ac_objext'
23816   { (eval echo "$as_me:23816: \"$ac_try\"") >&5
23817   (eval $ac_try) 2>&5
23818   ac_status=$?
23819   echo "$as_me:23819: \$? = $ac_status" >&5
23820   (exit $ac_status); }; }; then
23821   ac_cv_type_struct_sockaddr_storage=yes
23822 else
23823   echo "$as_me: failed program was:" >&5
23824 cat conftest.$ac_ext >&5
23825 ac_cv_type_struct_sockaddr_storage=no
23826 fi
23827 rm -f conftest.$ac_objext conftest.$ac_ext
23828 fi
23829 echo "$as_me:23829: result: $ac_cv_type_struct_sockaddr_storage" >&5
23830 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
23831 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23832
23833 cat >>confdefs.h <<_ACEOF
23834 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23835 _ACEOF
23836
23837
23838 fi
23839
23840 fi
23841
23842 cat >>confdefs.h <<_ACEOF
23843 #define $ac_tr_hdr 1
23844 _ACEOF
23845
23846 fi
23847
23848
23849
23850 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
23851 echo "$as_me:23851: checking for struct addrinfo" >&5
23852 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23853 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23854   echo $ECHO_N "(cached) $ECHO_C" >&6
23855 else
23856   cat >conftest.$ac_ext <<_ACEOF
23857 #line 23857 "configure"
23858 #include "confdefs.h"
23859 #include <sys/types.h>
23860 #if STDC_HEADERS
23861 #include <stdlib.h>
23862 #include <stddef.h>
23863 #endif
23864 #include <netdb.h>
23865 #ifdef F77_DUMMY_MAIN
23866 #  ifdef __cplusplus
23867      extern "C"
23868 #  endif
23869    int F77_DUMMY_MAIN() { return 1; }
23870 #endif
23871 int
23872 main ()
23873 {
23874 struct addrinfo foo;
23875   ;
23876   return 0;
23877 }
23878 _ACEOF
23879 rm -f conftest.$ac_objext
23880 if { (eval echo "$as_me:23880: \"$ac_compile\"") >&5
23881   (eval $ac_compile) 2>&5
23882   ac_status=$?
23883   echo "$as_me:23883: \$? = $ac_status" >&5
23884   (exit $ac_status); } &&
23885          { ac_try='test -s conftest.$ac_objext'
23886   { (eval echo "$as_me:23886: \"$ac_try\"") >&5
23887   (eval $ac_try) 2>&5
23888   ac_status=$?
23889   echo "$as_me:23889: \$? = $ac_status" >&5
23890   (exit $ac_status); }; }; then
23891   eval "ac_cv_type_$cv=yes"
23892 else
23893   echo "$as_me: failed program was:" >&5
23894 cat conftest.$ac_ext >&5
23895 eval "ac_cv_type_$cv=no"
23896 fi
23897 rm -f conftest.$ac_objext conftest.$ac_ext
23898 fi
23899 ac_foo=`eval echo \\$ac_cv_type_$cv`
23900 echo "$as_me:23900: result: $ac_foo" >&5
23901 echo "${ECHO_T}$ac_foo" >&6
23902 if test "$ac_foo" = yes; then
23903   ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23904 if false; then
23905         echo "$as_me:23905: checking for struct addrinfo" >&5
23906 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23907 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23908   echo $ECHO_N "(cached) $ECHO_C" >&6
23909 else
23910   cat >conftest.$ac_ext <<_ACEOF
23911 #line 23911 "configure"
23912 #include "confdefs.h"
23913 $ac_includes_default
23914 #ifdef F77_DUMMY_MAIN
23915 #  ifdef __cplusplus
23916      extern "C"
23917 #  endif
23918    int F77_DUMMY_MAIN() { return 1; }
23919 #endif
23920 int
23921 main ()
23922 {
23923 if ((struct addrinfo *) 0)
23924   return 0;
23925 if (sizeof (struct addrinfo))
23926   return 0;
23927   ;
23928   return 0;
23929 }
23930 _ACEOF
23931 rm -f conftest.$ac_objext
23932 if { (eval echo "$as_me:23932: \"$ac_compile\"") >&5
23933   (eval $ac_compile) 2>&5
23934   ac_status=$?
23935   echo "$as_me:23935: \$? = $ac_status" >&5
23936   (exit $ac_status); } &&
23937          { ac_try='test -s conftest.$ac_objext'
23938   { (eval echo "$as_me:23938: \"$ac_try\"") >&5
23939   (eval $ac_try) 2>&5
23940   ac_status=$?
23941   echo "$as_me:23941: \$? = $ac_status" >&5
23942   (exit $ac_status); }; }; then
23943   ac_cv_type_struct_addrinfo=yes
23944 else
23945   echo "$as_me: failed program was:" >&5
23946 cat conftest.$ac_ext >&5
23947 ac_cv_type_struct_addrinfo=no
23948 fi
23949 rm -f conftest.$ac_objext conftest.$ac_ext
23950 fi
23951 echo "$as_me:23951: result: $ac_cv_type_struct_addrinfo" >&5
23952 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
23953 if test $ac_cv_type_struct_addrinfo = yes; then
23954
23955 cat >>confdefs.h <<_ACEOF
23956 #define HAVE_STRUCT_ADDRINFO 1
23957 _ACEOF
23958
23959
23960 fi
23961
23962 fi
23963
23964 cat >>confdefs.h <<_ACEOF
23965 #define $ac_tr_hdr 1
23966 _ACEOF
23967
23968 fi
23969
23970
23971
23972 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
23973 echo "$as_me:23973: checking for struct ifaddrs" >&5
23974 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
23975 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23976   echo $ECHO_N "(cached) $ECHO_C" >&6
23977 else
23978   cat >conftest.$ac_ext <<_ACEOF
23979 #line 23979 "configure"
23980 #include "confdefs.h"
23981 #include <sys/types.h>
23982 #if STDC_HEADERS
23983 #include <stdlib.h>
23984 #include <stddef.h>
23985 #endif
23986 #include <ifaddrs.h>
23987 #ifdef F77_DUMMY_MAIN
23988 #  ifdef __cplusplus
23989      extern "C"
23990 #  endif
23991    int F77_DUMMY_MAIN() { return 1; }
23992 #endif
23993 int
23994 main ()
23995 {
23996 struct ifaddrs foo;
23997   ;
23998   return 0;
23999 }
24000 _ACEOF
24001 rm -f conftest.$ac_objext
24002 if { (eval echo "$as_me:24002: \"$ac_compile\"") >&5
24003   (eval $ac_compile) 2>&5
24004   ac_status=$?
24005   echo "$as_me:24005: \$? = $ac_status" >&5
24006   (exit $ac_status); } &&
24007          { ac_try='test -s conftest.$ac_objext'
24008   { (eval echo "$as_me:24008: \"$ac_try\"") >&5
24009   (eval $ac_try) 2>&5
24010   ac_status=$?
24011   echo "$as_me:24011: \$? = $ac_status" >&5
24012   (exit $ac_status); }; }; then
24013   eval "ac_cv_type_$cv=yes"
24014 else
24015   echo "$as_me: failed program was:" >&5
24016 cat conftest.$ac_ext >&5
24017 eval "ac_cv_type_$cv=no"
24018 fi
24019 rm -f conftest.$ac_objext conftest.$ac_ext
24020 fi
24021 ac_foo=`eval echo \\$ac_cv_type_$cv`
24022 echo "$as_me:24022: result: $ac_foo" >&5
24023 echo "${ECHO_T}$ac_foo" >&6
24024 if test "$ac_foo" = yes; then
24025   ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24026 if false; then
24027         echo "$as_me:24027: checking for struct ifaddrs" >&5
24028 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
24029 if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
24030   echo $ECHO_N "(cached) $ECHO_C" >&6
24031 else
24032   cat >conftest.$ac_ext <<_ACEOF
24033 #line 24033 "configure"
24034 #include "confdefs.h"
24035 $ac_includes_default
24036 #ifdef F77_DUMMY_MAIN
24037 #  ifdef __cplusplus
24038      extern "C"
24039 #  endif
24040    int F77_DUMMY_MAIN() { return 1; }
24041 #endif
24042 int
24043 main ()
24044 {
24045 if ((struct ifaddrs *) 0)
24046   return 0;
24047 if (sizeof (struct ifaddrs))
24048   return 0;
24049   ;
24050   return 0;
24051 }
24052 _ACEOF
24053 rm -f conftest.$ac_objext
24054 if { (eval echo "$as_me:24054: \"$ac_compile\"") >&5
24055   (eval $ac_compile) 2>&5
24056   ac_status=$?
24057   echo "$as_me:24057: \$? = $ac_status" >&5
24058   (exit $ac_status); } &&
24059          { ac_try='test -s conftest.$ac_objext'
24060   { (eval echo "$as_me:24060: \"$ac_try\"") >&5
24061   (eval $ac_try) 2>&5
24062   ac_status=$?
24063   echo "$as_me:24063: \$? = $ac_status" >&5
24064   (exit $ac_status); }; }; then
24065   ac_cv_type_struct_ifaddrs=yes
24066 else
24067   echo "$as_me: failed program was:" >&5
24068 cat conftest.$ac_ext >&5
24069 ac_cv_type_struct_ifaddrs=no
24070 fi
24071 rm -f conftest.$ac_objext conftest.$ac_ext
24072 fi
24073 echo "$as_me:24073: result: $ac_cv_type_struct_ifaddrs" >&5
24074 echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
24075 if test $ac_cv_type_struct_ifaddrs = yes; then
24076
24077 cat >>confdefs.h <<_ACEOF
24078 #define HAVE_STRUCT_IFADDRS 1
24079 _ACEOF
24080
24081
24082 fi
24083
24084 fi
24085
24086 cat >>confdefs.h <<_ACEOF
24087 #define $ac_tr_hdr 1
24088 _ACEOF
24089
24090 fi
24091
24092
24093
24094 cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
24095 echo "$as_me:24095: checking for struct iovec" >&5
24096 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
24097 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
24098   echo $ECHO_N "(cached) $ECHO_C" >&6
24099 else
24100   cat >conftest.$ac_ext <<_ACEOF
24101 #line 24101 "configure"
24102 #include "confdefs.h"
24103 #include <sys/types.h>
24104 #if STDC_HEADERS
24105 #include <stdlib.h>
24106 #include <stddef.h>
24107 #endif
24108
24109 #include <sys/types.h>
24110 #include <sys/uio.h>
24111
24112 #ifdef F77_DUMMY_MAIN
24113 #  ifdef __cplusplus
24114      extern "C"
24115 #  endif
24116    int F77_DUMMY_MAIN() { return 1; }
24117 #endif
24118 int
24119 main ()
24120 {
24121 struct iovec foo;
24122   ;
24123   return 0;
24124 }
24125 _ACEOF
24126 rm -f conftest.$ac_objext
24127 if { (eval echo "$as_me:24127: \"$ac_compile\"") >&5
24128   (eval $ac_compile) 2>&5
24129   ac_status=$?
24130   echo "$as_me:24130: \$? = $ac_status" >&5
24131   (exit $ac_status); } &&
24132          { ac_try='test -s conftest.$ac_objext'
24133   { (eval echo "$as_me:24133: \"$ac_try\"") >&5
24134   (eval $ac_try) 2>&5
24135   ac_status=$?
24136   echo "$as_me:24136: \$? = $ac_status" >&5
24137   (exit $ac_status); }; }; then
24138   eval "ac_cv_type_$cv=yes"
24139 else
24140   echo "$as_me: failed program was:" >&5
24141 cat conftest.$ac_ext >&5
24142 eval "ac_cv_type_$cv=no"
24143 fi
24144 rm -f conftest.$ac_objext conftest.$ac_ext
24145 fi
24146 ac_foo=`eval echo \\$ac_cv_type_$cv`
24147 echo "$as_me:24147: result: $ac_foo" >&5
24148 echo "${ECHO_T}$ac_foo" >&6
24149 if test "$ac_foo" = yes; then
24150   ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24151 if false; then
24152         echo "$as_me:24152: checking for struct iovec" >&5
24153 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
24154 if test "${ac_cv_type_struct_iovec+set}" = set; then
24155   echo $ECHO_N "(cached) $ECHO_C" >&6
24156 else
24157   cat >conftest.$ac_ext <<_ACEOF
24158 #line 24158 "configure"
24159 #include "confdefs.h"
24160 $ac_includes_default
24161 #ifdef F77_DUMMY_MAIN
24162 #  ifdef __cplusplus
24163      extern "C"
24164 #  endif
24165    int F77_DUMMY_MAIN() { return 1; }
24166 #endif
24167 int
24168 main ()
24169 {
24170 if ((struct iovec *) 0)
24171   return 0;
24172 if (sizeof (struct iovec))
24173   return 0;
24174   ;
24175   return 0;
24176 }
24177 _ACEOF
24178 rm -f conftest.$ac_objext
24179 if { (eval echo "$as_me:24179: \"$ac_compile\"") >&5
24180   (eval $ac_compile) 2>&5
24181   ac_status=$?
24182   echo "$as_me:24182: \$? = $ac_status" >&5
24183   (exit $ac_status); } &&
24184          { ac_try='test -s conftest.$ac_objext'
24185   { (eval echo "$as_me:24185: \"$ac_try\"") >&5
24186   (eval $ac_try) 2>&5
24187   ac_status=$?
24188   echo "$as_me:24188: \$? = $ac_status" >&5
24189   (exit $ac_status); }; }; then
24190   ac_cv_type_struct_iovec=yes
24191 else
24192   echo "$as_me: failed program was:" >&5
24193 cat conftest.$ac_ext >&5
24194 ac_cv_type_struct_iovec=no
24195 fi
24196 rm -f conftest.$ac_objext conftest.$ac_ext
24197 fi
24198 echo "$as_me:24198: result: $ac_cv_type_struct_iovec" >&5
24199 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
24200 if test $ac_cv_type_struct_iovec = yes; then
24201
24202 cat >>confdefs.h <<_ACEOF
24203 #define HAVE_STRUCT_IOVEC 1
24204 _ACEOF
24205
24206
24207 fi
24208
24209 fi
24210
24211 cat >>confdefs.h <<_ACEOF
24212 #define $ac_tr_hdr 1
24213 _ACEOF
24214
24215 fi
24216
24217
24218
24219 cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
24220 echo "$as_me:24220: checking for struct msghdr" >&5
24221 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
24222 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
24223   echo $ECHO_N "(cached) $ECHO_C" >&6
24224 else
24225   cat >conftest.$ac_ext <<_ACEOF
24226 #line 24226 "configure"
24227 #include "confdefs.h"
24228 #include <sys/types.h>
24229 #if STDC_HEADERS
24230 #include <stdlib.h>
24231 #include <stddef.h>
24232 #endif
24233
24234 #include <sys/types.h>
24235 #include <sys/socket.h>
24236
24237 #ifdef F77_DUMMY_MAIN
24238 #  ifdef __cplusplus
24239      extern "C"
24240 #  endif
24241    int F77_DUMMY_MAIN() { return 1; }
24242 #endif
24243 int
24244 main ()
24245 {
24246 struct msghdr foo;
24247   ;
24248   return 0;
24249 }
24250 _ACEOF
24251 rm -f conftest.$ac_objext
24252 if { (eval echo "$as_me:24252: \"$ac_compile\"") >&5
24253   (eval $ac_compile) 2>&5
24254   ac_status=$?
24255   echo "$as_me:24255: \$? = $ac_status" >&5
24256   (exit $ac_status); } &&
24257          { ac_try='test -s conftest.$ac_objext'
24258   { (eval echo "$as_me:24258: \"$ac_try\"") >&5
24259   (eval $ac_try) 2>&5
24260   ac_status=$?
24261   echo "$as_me:24261: \$? = $ac_status" >&5
24262   (exit $ac_status); }; }; then
24263   eval "ac_cv_type_$cv=yes"
24264 else
24265   echo "$as_me: failed program was:" >&5
24266 cat conftest.$ac_ext >&5
24267 eval "ac_cv_type_$cv=no"
24268 fi
24269 rm -f conftest.$ac_objext conftest.$ac_ext
24270 fi
24271 ac_foo=`eval echo \\$ac_cv_type_$cv`
24272 echo "$as_me:24272: result: $ac_foo" >&5
24273 echo "${ECHO_T}$ac_foo" >&6
24274 if test "$ac_foo" = yes; then
24275   ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24276 if false; then
24277         echo "$as_me:24277: checking for struct msghdr" >&5
24278 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
24279 if test "${ac_cv_type_struct_msghdr+set}" = set; then
24280   echo $ECHO_N "(cached) $ECHO_C" >&6
24281 else
24282   cat >conftest.$ac_ext <<_ACEOF
24283 #line 24283 "configure"
24284 #include "confdefs.h"
24285 $ac_includes_default
24286 #ifdef F77_DUMMY_MAIN
24287 #  ifdef __cplusplus
24288      extern "C"
24289 #  endif
24290    int F77_DUMMY_MAIN() { return 1; }
24291 #endif
24292 int
24293 main ()
24294 {
24295 if ((struct msghdr *) 0)
24296   return 0;
24297 if (sizeof (struct msghdr))
24298   return 0;
24299   ;
24300   return 0;
24301 }
24302 _ACEOF
24303 rm -f conftest.$ac_objext
24304 if { (eval echo "$as_me:24304: \"$ac_compile\"") >&5
24305   (eval $ac_compile) 2>&5
24306   ac_status=$?
24307   echo "$as_me:24307: \$? = $ac_status" >&5
24308   (exit $ac_status); } &&
24309          { ac_try='test -s conftest.$ac_objext'
24310   { (eval echo "$as_me:24310: \"$ac_try\"") >&5
24311   (eval $ac_try) 2>&5
24312   ac_status=$?
24313   echo "$as_me:24313: \$? = $ac_status" >&5
24314   (exit $ac_status); }; }; then
24315   ac_cv_type_struct_msghdr=yes
24316 else
24317   echo "$as_me: failed program was:" >&5
24318 cat conftest.$ac_ext >&5
24319 ac_cv_type_struct_msghdr=no
24320 fi
24321 rm -f conftest.$ac_objext conftest.$ac_ext
24322 fi
24323 echo "$as_me:24323: result: $ac_cv_type_struct_msghdr" >&5
24324 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
24325 if test $ac_cv_type_struct_msghdr = yes; then
24326
24327 cat >>confdefs.h <<_ACEOF
24328 #define HAVE_STRUCT_MSGHDR 1
24329 _ACEOF
24330
24331
24332 fi
24333
24334 fi
24335
24336 cat >>confdefs.h <<_ACEOF
24337 #define $ac_tr_hdr 1
24338 _ACEOF
24339
24340 fi
24341
24342
24343
24344
24345 echo "$as_me:24345: checking for struct winsize" >&5
24346 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
24347 if test "${ac_cv_struct_winsize+set}" = set; then
24348   echo $ECHO_N "(cached) $ECHO_C" >&6
24349 else
24350
24351 ac_cv_struct_winsize=no
24352 for i in sys/termios.h sys/ioctl.h; do
24353 cat >conftest.$ac_ext <<_ACEOF
24354 #line 24354 "configure"
24355 #include "confdefs.h"
24356 #include <$i>
24357
24358 _ACEOF
24359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24360   egrep "struct[        ]*winsize" >/dev/null 2>&1; then
24361   ac_cv_struct_winsize=yes; break
24362 fi
24363 rm -f conftest*
24364 done
24365
24366 fi
24367
24368 if test "$ac_cv_struct_winsize" = "yes"; then
24369
24370 cat >>confdefs.h <<\_ACEOF
24371 #define HAVE_STRUCT_WINSIZE 1
24372 _ACEOF
24373
24374 fi
24375 echo "$as_me:24375: result: $ac_cv_struct_winsize" >&5
24376 echo "${ECHO_T}$ac_cv_struct_winsize" >&6
24377 cat >conftest.$ac_ext <<_ACEOF
24378 #line 24378 "configure"
24379 #include "confdefs.h"
24380 #include <termios.h>
24381
24382 _ACEOF
24383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24384   egrep "ws_xpixel" >/dev/null 2>&1; then
24385
24386 cat >>confdefs.h <<\_ACEOF
24387 #define HAVE_WS_XPIXEL 1
24388 _ACEOF
24389
24390 fi
24391 rm -f conftest*
24392
24393 cat >conftest.$ac_ext <<_ACEOF
24394 #line 24394 "configure"
24395 #include "confdefs.h"
24396 #include <termios.h>
24397
24398 _ACEOF
24399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24400   egrep "ws_ypixel" >/dev/null 2>&1; then
24401
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_WS_YPIXEL 1
24404 _ACEOF
24405
24406 fi
24407 rm -f conftest*
24408
24409
24410
24411
24412
24413 echo "$as_me:24413: checking for struct spwd" >&5
24414 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
24415 if test "${ac_cv_struct_spwd+set}" = set; then
24416   echo $ECHO_N "(cached) $ECHO_C" >&6
24417 else
24418
24419 cat >conftest.$ac_ext <<_ACEOF
24420 #line 24420 "configure"
24421 #include "confdefs.h"
24422 #include <pwd.h>
24423 #ifdef HAVE_SHADOW_H
24424 #include <shadow.h>
24425 #endif
24426 #ifdef F77_DUMMY_MAIN
24427 #  ifdef __cplusplus
24428      extern "C"
24429 #  endif
24430    int F77_DUMMY_MAIN() { return 1; }
24431 #endif
24432 int
24433 main ()
24434 {
24435 struct spwd foo;
24436   ;
24437   return 0;
24438 }
24439 _ACEOF
24440 rm -f conftest.$ac_objext
24441 if { (eval echo "$as_me:24441: \"$ac_compile\"") >&5
24442   (eval $ac_compile) 2>&5
24443   ac_status=$?
24444   echo "$as_me:24444: \$? = $ac_status" >&5
24445   (exit $ac_status); } &&
24446          { ac_try='test -s conftest.$ac_objext'
24447   { (eval echo "$as_me:24447: \"$ac_try\"") >&5
24448   (eval $ac_try) 2>&5
24449   ac_status=$?
24450   echo "$as_me:24450: \$? = $ac_status" >&5
24451   (exit $ac_status); }; }; then
24452   ac_cv_struct_spwd=yes
24453 else
24454   echo "$as_me: failed program was:" >&5
24455 cat conftest.$ac_ext >&5
24456 ac_cv_struct_spwd=no
24457 fi
24458 rm -f conftest.$ac_objext conftest.$ac_ext
24459
24460 fi
24461
24462 echo "$as_me:24462: result: $ac_cv_struct_spwd" >&5
24463 echo "${ECHO_T}$ac_cv_struct_spwd" >&6
24464
24465 if test "$ac_cv_struct_spwd" = "yes"; then
24466
24467 cat >>confdefs.h <<\_ACEOF
24468 #define HAVE_STRUCT_SPWD 1
24469 _ACEOF
24470
24471 fi
24472
24473
24474
24475 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
24476
24477
24478 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
24479
24480
24481
24482 # Check whether --with-openldap or --without-openldap was given.
24483 if test "${with_openldap+set}" = set; then
24484   withval="$with_openldap"
24485
24486 fi;
24487
24488 # Check whether --with-openldap-lib or --without-openldap-lib was given.
24489 if test "${with_openldap_lib+set}" = set; then
24490   withval="$with_openldap_lib"
24491   if test "$withval" = "yes" -o "$withval" = "no"; then
24492   { { echo "$as_me:24492: error: No argument for --with-openldap-lib" >&5
24493 echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
24494    { (exit 1); exit 1; }; }
24495 elif test "X$with_openldap" = "X"; then
24496   with_openldap=yes
24497 fi
24498 fi;
24499
24500 # Check whether --with-openldap-include or --without-openldap-include was given.
24501 if test "${with_openldap_include+set}" = set; then
24502   withval="$with_openldap_include"
24503   if test "$withval" = "yes" -o "$withval" = "no"; then
24504   { { echo "$as_me:24504: error: No argument for --with-openldap-include" >&5
24505 echo "$as_me: error: No argument for --with-openldap-include" >&2;}
24506    { (exit 1); exit 1; }; }
24507 elif test "X$with_openldap" = "X"; then
24508   with_openldap=yes
24509 fi
24510 fi;
24511
24512 # Check whether --with-openldap-config or --without-openldap-config was given.
24513 if test "${with_openldap_config+set}" = set; then
24514   withval="$with_openldap_config"
24515
24516 fi;
24517
24518
24519
24520 echo "$as_me:24520: checking for openldap" >&5
24521 echo $ECHO_N "checking for openldap... $ECHO_C" >&6
24522
24523 case "$with_openldap" in
24524 yes|"") d='' ;;
24525 no)     d= ;;
24526 *)      d="$with_openldap" ;;
24527 esac
24528
24529 header_dirs=
24530 lib_dirs=
24531 for i in $d; do
24532         if test "$with_openldap_include" = ""; then
24533                 if test -d "$i/include/openldap"; then
24534                         header_dirs="$header_dirs $i/include/openldap"
24535                 fi
24536                 if test -d "$i/include"; then
24537                         header_dirs="$header_dirs $i/include"
24538                 fi
24539         fi
24540         if test "$with_openldap_lib" = ""; then
24541                 if test -d "$i/lib$abilibdirext"; then
24542                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
24543                 fi
24544         fi
24545 done
24546
24547 if test "$with_openldap_include"; then
24548         header_dirs="$with_openldap_include $header_dirs"
24549 fi
24550 if test "$with_openldap_lib"; then
24551         lib_dirs="$with_openldap_lib $lib_dirs"
24552 fi
24553
24554 if test "$with_openldap_config" = ""; then
24555         with_openldap_config=''
24556 fi
24557
24558 openldap_cflags=
24559 openldap_libs=
24560
24561 case "$with_openldap_config" in
24562 yes|no|"")
24563         ;;
24564 *)
24565         openldap_cflags="`$with_openldap_config --cflags 2>&1`"
24566         openldap_libs="`$with_openldap_config --libs 2>&1`"
24567         ;;
24568 esac
24569
24570 found=no
24571 if test "$with_openldap" != no; then
24572         save_CFLAGS="$CFLAGS"
24573         save_LIBS="$LIBS"
24574         if test "$openldap_cflags" -a "$openldap_libs"; then
24575                 CFLAGS="$openldap_cflags $save_CFLAGS"
24576                 LIBS="$openldap_libs $save_LIBS"
24577                 cat >conftest.$ac_ext <<_ACEOF
24578 #line 24578 "configure"
24579 #include "confdefs.h"
24580 #include <lber.h>
24581 #include <ldap.h>
24582 #ifdef F77_DUMMY_MAIN
24583 #  ifdef __cplusplus
24584      extern "C"
24585 #  endif
24586    int F77_DUMMY_MAIN() { return 1; }
24587 #endif
24588 int
24589 main ()
24590 {
24591
24592   ;
24593   return 0;
24594 }
24595 _ACEOF
24596 rm -f conftest.$ac_objext conftest$ac_exeext
24597 if { (eval echo "$as_me:24597: \"$ac_link\"") >&5
24598   (eval $ac_link) 2>&5
24599   ac_status=$?
24600   echo "$as_me:24600: \$? = $ac_status" >&5
24601   (exit $ac_status); } &&
24602          { ac_try='test -s conftest$ac_exeext'
24603   { (eval echo "$as_me:24603: \"$ac_try\"") >&5
24604   (eval $ac_try) 2>&5
24605   ac_status=$?
24606   echo "$as_me:24606: \$? = $ac_status" >&5
24607   (exit $ac_status); }; }; then
24608
24609                         INCLUDE_openldap="$openldap_cflags"
24610                         LIB_openldap="$openldap_libs"
24611                         echo "$as_me:24611: result: from $with_openldap_config" >&5
24612 echo "${ECHO_T}from $with_openldap_config" >&6
24613                         found=yes
24614 else
24615   echo "$as_me: failed program was:" >&5
24616 cat conftest.$ac_ext >&5
24617 fi
24618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24619         fi
24620         if test "$found" = no; then
24621                 ires= lres=
24622                 for i in $header_dirs; do
24623                         CFLAGS="-I$i $save_CFLAGS"
24624                         cat >conftest.$ac_ext <<_ACEOF
24625 #line 24625 "configure"
24626 #include "confdefs.h"
24627 #include <lber.h>
24628 #include <ldap.h>
24629 #ifdef F77_DUMMY_MAIN
24630 #  ifdef __cplusplus
24631      extern "C"
24632 #  endif
24633    int F77_DUMMY_MAIN() { return 1; }
24634 #endif
24635 int
24636 main ()
24637 {
24638
24639   ;
24640   return 0;
24641 }
24642 _ACEOF
24643 rm -f conftest.$ac_objext
24644 if { (eval echo "$as_me:24644: \"$ac_compile\"") >&5
24645   (eval $ac_compile) 2>&5
24646   ac_status=$?
24647   echo "$as_me:24647: \$? = $ac_status" >&5
24648   (exit $ac_status); } &&
24649          { ac_try='test -s conftest.$ac_objext'
24650   { (eval echo "$as_me:24650: \"$ac_try\"") >&5
24651   (eval $ac_try) 2>&5
24652   ac_status=$?
24653   echo "$as_me:24653: \$? = $ac_status" >&5
24654   (exit $ac_status); }; }; then
24655   ires=$i;break
24656 else
24657   echo "$as_me: failed program was:" >&5
24658 cat conftest.$ac_ext >&5
24659 fi
24660 rm -f conftest.$ac_objext conftest.$ac_ext
24661                 done
24662                 for i in $lib_dirs; do
24663                         LIBS="-L$i -lldap -llber  $save_LIBS"
24664                         cat >conftest.$ac_ext <<_ACEOF
24665 #line 24665 "configure"
24666 #include "confdefs.h"
24667 #include <lber.h>
24668 #include <ldap.h>
24669 #ifdef F77_DUMMY_MAIN
24670 #  ifdef __cplusplus
24671      extern "C"
24672 #  endif
24673    int F77_DUMMY_MAIN() { return 1; }
24674 #endif
24675 int
24676 main ()
24677 {
24678
24679   ;
24680   return 0;
24681 }
24682 _ACEOF
24683 rm -f conftest.$ac_objext conftest$ac_exeext
24684 if { (eval echo "$as_me:24684: \"$ac_link\"") >&5
24685   (eval $ac_link) 2>&5
24686   ac_status=$?
24687   echo "$as_me:24687: \$? = $ac_status" >&5
24688   (exit $ac_status); } &&
24689          { ac_try='test -s conftest$ac_exeext'
24690   { (eval echo "$as_me:24690: \"$ac_try\"") >&5
24691   (eval $ac_try) 2>&5
24692   ac_status=$?
24693   echo "$as_me:24693: \$? = $ac_status" >&5
24694   (exit $ac_status); }; }; then
24695   lres=$i;break
24696 else
24697   echo "$as_me: failed program was:" >&5
24698 cat conftest.$ac_ext >&5
24699 fi
24700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24701                 done
24702                 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
24703                         INCLUDE_openldap="-I$ires"
24704                         LIB_openldap="-L$lres -lldap -llber"
24705                         found=yes
24706                         echo "$as_me:24706: result: headers $ires, libraries $lres" >&5
24707 echo "${ECHO_T}headers $ires, libraries $lres" >&6
24708                 fi
24709         fi
24710         CFLAGS="$save_CFLAGS"
24711         LIBS="$save_LIBS"
24712 fi
24713
24714 if test "$found" = yes; then
24715
24716 cat >>confdefs.h <<_ACEOF
24717 #define OPENLDAP 1
24718 _ACEOF
24719
24720         with_openldap=yes
24721 else
24722         with_openldap=no
24723         INCLUDE_openldap=
24724         LIB_openldap=
24725         echo "$as_me:24725: result: no" >&5
24726 echo "${ECHO_T}no" >&6
24727 fi
24728
24729
24730
24731
24732
24733 if test "$openldap_libdir"; then
24734         LIB_openldap="-R $openldap_libdir $LIB_openldap"
24735 fi
24736
24737
24738
24739 # Check whether --with-krb4 or --without-krb4 was given.
24740 if test "${with_krb4+set}" = set; then
24741   withval="$with_krb4"
24742
24743 fi;
24744
24745 # Check whether --with-krb4-lib or --without-krb4-lib was given.
24746 if test "${with_krb4_lib+set}" = set; then
24747   withval="$with_krb4_lib"
24748   if test "$withval" = "yes" -o "$withval" = "no"; then
24749   { { echo "$as_me:24749: error: No argument for --with-krb4-lib" >&5
24750 echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
24751    { (exit 1); exit 1; }; }
24752 elif test "X$with_krb4" = "X"; then
24753   with_krb4=yes
24754 fi
24755 fi;
24756
24757 # Check whether --with-krb4-include or --without-krb4-include was given.
24758 if test "${with_krb4_include+set}" = set; then
24759   withval="$with_krb4_include"
24760   if test "$withval" = "yes" -o "$withval" = "no"; then
24761   { { echo "$as_me:24761: error: No argument for --with-krb4-include" >&5
24762 echo "$as_me: error: No argument for --with-krb4-include" >&2;}
24763    { (exit 1); exit 1; }; }
24764 elif test "X$with_krb4" = "X"; then
24765   with_krb4=yes
24766 fi
24767 fi;
24768
24769 # Check whether --with-krb4-config or --without-krb4-config was given.
24770 if test "${with_krb4_config+set}" = set; then
24771   withval="$with_krb4_config"
24772
24773 fi;
24774
24775
24776
24777 echo "$as_me:24777: checking for krb4" >&5
24778 echo $ECHO_N "checking for krb4... $ECHO_C" >&6
24779
24780 case "$with_krb4" in
24781 yes|"") d='/usr/athena' ;;
24782 no)     d= ;;
24783 *)      d="$with_krb4" ;;
24784 esac
24785
24786 header_dirs=
24787 lib_dirs=
24788 for i in $d; do
24789         if test "$with_krb4_include" = ""; then
24790                 if test -d "$i/include/krb4"; then
24791                         header_dirs="$header_dirs $i/include/krb4"
24792                 fi
24793                 if test -d "$i/include"; then
24794                         header_dirs="$header_dirs $i/include"
24795                 fi
24796         fi
24797         if test "$with_krb4_lib" = ""; then
24798                 if test -d "$i/lib$abilibdirext"; then
24799                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
24800                 fi
24801         fi
24802 done
24803
24804 if test "$with_krb4_include"; then
24805         header_dirs="$with_krb4_include $header_dirs"
24806 fi
24807 if test "$with_krb4_lib"; then
24808         lib_dirs="$with_krb4_lib $lib_dirs"
24809 fi
24810
24811 if test "$with_krb4_config" = ""; then
24812         with_krb4_config='krb4-config'
24813 fi
24814
24815 krb4_cflags=
24816 krb4_libs=
24817
24818 case "$with_krb4_config" in
24819 yes|no|"")
24820         ;;
24821 *)
24822         krb4_cflags="`$with_krb4_config --cflags 2>&1`"
24823         krb4_libs="`$with_krb4_config --libs 2>&1`"
24824         ;;
24825 esac
24826
24827 found=no
24828 if test "$with_krb4" != no; then
24829         save_CFLAGS="$CFLAGS"
24830         save_LIBS="$LIBS"
24831         if test "$krb4_cflags" -a "$krb4_libs"; then
24832                 CFLAGS="$krb4_cflags $save_CFLAGS"
24833                 LIBS="$krb4_libs $save_LIBS"
24834                 cat >conftest.$ac_ext <<_ACEOF
24835 #line 24835 "configure"
24836 #include "confdefs.h"
24837 #include <krb.h>
24838 #ifdef F77_DUMMY_MAIN
24839 #  ifdef __cplusplus
24840      extern "C"
24841 #  endif
24842    int F77_DUMMY_MAIN() { return 1; }
24843 #endif
24844 int
24845 main ()
24846 {
24847
24848   ;
24849   return 0;
24850 }
24851 _ACEOF
24852 rm -f conftest.$ac_objext conftest$ac_exeext
24853 if { (eval echo "$as_me:24853: \"$ac_link\"") >&5
24854   (eval $ac_link) 2>&5
24855   ac_status=$?
24856   echo "$as_me:24856: \$? = $ac_status" >&5
24857   (exit $ac_status); } &&
24858          { ac_try='test -s conftest$ac_exeext'
24859   { (eval echo "$as_me:24859: \"$ac_try\"") >&5
24860   (eval $ac_try) 2>&5
24861   ac_status=$?
24862   echo "$as_me:24862: \$? = $ac_status" >&5
24863   (exit $ac_status); }; }; then
24864
24865                         INCLUDE_krb4="$krb4_cflags"
24866                         LIB_krb4="$krb4_libs"
24867                         echo "$as_me:24867: result: from $with_krb4_config" >&5
24868 echo "${ECHO_T}from $with_krb4_config" >&6
24869                         found=yes
24870 else
24871   echo "$as_me: failed program was:" >&5
24872 cat conftest.$ac_ext >&5
24873 fi
24874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24875         fi
24876         if test "$found" = no; then
24877                 ires= lres=
24878                 for i in $header_dirs; do
24879                         CFLAGS="-I$i $save_CFLAGS"
24880                         cat >conftest.$ac_ext <<_ACEOF
24881 #line 24881 "configure"
24882 #include "confdefs.h"
24883 #include <krb.h>
24884 #ifdef F77_DUMMY_MAIN
24885 #  ifdef __cplusplus
24886      extern "C"
24887 #  endif
24888    int F77_DUMMY_MAIN() { return 1; }
24889 #endif
24890 int
24891 main ()
24892 {
24893
24894   ;
24895   return 0;
24896 }
24897 _ACEOF
24898 rm -f conftest.$ac_objext
24899 if { (eval echo "$as_me:24899: \"$ac_compile\"") >&5
24900   (eval $ac_compile) 2>&5
24901   ac_status=$?
24902   echo "$as_me:24902: \$? = $ac_status" >&5
24903   (exit $ac_status); } &&
24904          { ac_try='test -s conftest.$ac_objext'
24905   { (eval echo "$as_me:24905: \"$ac_try\"") >&5
24906   (eval $ac_try) 2>&5
24907   ac_status=$?
24908   echo "$as_me:24908: \$? = $ac_status" >&5
24909   (exit $ac_status); }; }; then
24910   ires=$i;break
24911 else
24912   echo "$as_me: failed program was:" >&5
24913 cat conftest.$ac_ext >&5
24914 fi
24915 rm -f conftest.$ac_objext conftest.$ac_ext
24916                 done
24917                 for i in $lib_dirs; do
24918                         LIBS="-L$i -lkrb -ldes $save_LIBS"
24919                         cat >conftest.$ac_ext <<_ACEOF
24920 #line 24920 "configure"
24921 #include "confdefs.h"
24922 #include <krb.h>
24923 #ifdef F77_DUMMY_MAIN
24924 #  ifdef __cplusplus
24925      extern "C"
24926 #  endif
24927    int F77_DUMMY_MAIN() { return 1; }
24928 #endif
24929 int
24930 main ()
24931 {
24932
24933   ;
24934   return 0;
24935 }
24936 _ACEOF
24937 rm -f conftest.$ac_objext conftest$ac_exeext
24938 if { (eval echo "$as_me:24938: \"$ac_link\"") >&5
24939   (eval $ac_link) 2>&5
24940   ac_status=$?
24941   echo "$as_me:24941: \$? = $ac_status" >&5
24942   (exit $ac_status); } &&
24943          { ac_try='test -s conftest$ac_exeext'
24944   { (eval echo "$as_me:24944: \"$ac_try\"") >&5
24945   (eval $ac_try) 2>&5
24946   ac_status=$?
24947   echo "$as_me:24947: \$? = $ac_status" >&5
24948   (exit $ac_status); }; }; then
24949   lres=$i;break
24950 else
24951   echo "$as_me: failed program was:" >&5
24952 cat conftest.$ac_ext >&5
24953 fi
24954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24955                 done
24956                 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
24957                         INCLUDE_krb4="-I$ires"
24958                         LIB_krb4="-L$lres -lkrb"
24959                         found=yes
24960                         echo "$as_me:24960: result: headers $ires, libraries $lres" >&5
24961 echo "${ECHO_T}headers $ires, libraries $lres" >&6
24962                 fi
24963         fi
24964         CFLAGS="$save_CFLAGS"
24965         LIBS="$save_LIBS"
24966 fi
24967
24968 if test "$found" = yes; then
24969
24970 cat >>confdefs.h <<_ACEOF
24971 #define KRB4 1
24972 _ACEOF
24973
24974         with_krb4=yes
24975 else
24976         with_krb4=no
24977         INCLUDE_krb4=
24978         LIB_krb4=
24979         echo "$as_me:24979: result: no" >&5
24980 echo "${ECHO_T}no" >&6
24981 fi
24982
24983
24984
24985
24986
24987 LIB_kdb=
24988 if test "$with_krb4" != "no"; then
24989         save_CFLAGS="$CFLAGS"
24990         CFLAGS="$CFLAGS $INCLUDE_krb4"
24991         save_LIBS="$LIBS"
24992         LIBS="$LIB_krb4 $LIBS"
24993         EXTRA_LIB45=lib45.a
24994
24995         echo "$as_me:24995: checking for four valued krb_put_int" >&5
24996 echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
24997 if test "${ac_cv_func_krb_put_int_four+set}" = set; then
24998   echo $ECHO_N "(cached) $ECHO_C" >&6
24999 else
25000   cat >conftest.$ac_ext <<_ACEOF
25001 #line 25001 "configure"
25002 #include "confdefs.h"
25003 #include <krb.h>
25004 #ifdef F77_DUMMY_MAIN
25005 #  ifdef __cplusplus
25006      extern "C"
25007 #  endif
25008    int F77_DUMMY_MAIN() { return 1; }
25009 #endif
25010 int
25011 main ()
25012 {
25013
25014                 char tmp[4];
25015                 krb_put_int(17, tmp, 4, sizeof(tmp));
25016   ;
25017   return 0;
25018 }
25019 _ACEOF
25020 rm -f conftest.$ac_objext
25021 if { (eval echo "$as_me:25021: \"$ac_compile\"") >&5
25022   (eval $ac_compile) 2>&5
25023   ac_status=$?
25024   echo "$as_me:25024: \$? = $ac_status" >&5
25025   (exit $ac_status); } &&
25026          { ac_try='test -s conftest.$ac_objext'
25027   { (eval echo "$as_me:25027: \"$ac_try\"") >&5
25028   (eval $ac_try) 2>&5
25029   ac_status=$?
25030   echo "$as_me:25030: \$? = $ac_status" >&5
25031   (exit $ac_status); }; }; then
25032   ac_cv_func_krb_put_int_four=yes
25033 else
25034   echo "$as_me: failed program was:" >&5
25035 cat conftest.$ac_ext >&5
25036 ac_cv_func_krb_put_int_four=no
25037 fi
25038 rm -f conftest.$ac_objext conftest.$ac_ext
25039
25040 fi
25041 echo "$as_me:25041: result: $ac_cv_func_krb_put_int_four" >&5
25042 echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
25043         if test "$ac_cv_func_krb_put_int_four" = yes; then
25044
25045 cat >>confdefs.h <<\_ACEOF
25046 #define HAVE_FOUR_VALUED_KRB_PUT_INT 1
25047 _ACEOF
25048
25049         fi
25050
25051
25052         echo "$as_me:25052: checking for KRB_VERIFY_SECURE" >&5
25053 echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
25054 if test "${ac_cv_func_krb_verify_secure+set}" = set; then
25055   echo $ECHO_N "(cached) $ECHO_C" >&6
25056 else
25057   cat >conftest.$ac_ext <<_ACEOF
25058 #line 25058 "configure"
25059 #include "confdefs.h"
25060 #include <krb.h>
25061 #ifdef F77_DUMMY_MAIN
25062 #  ifdef __cplusplus
25063      extern "C"
25064 #  endif
25065    int F77_DUMMY_MAIN() { return 1; }
25066 #endif
25067 int
25068 main ()
25069 {
25070
25071                 int x = KRB_VERIFY_SECURE
25072   ;
25073   return 0;
25074 }
25075 _ACEOF
25076 rm -f conftest.$ac_objext
25077 if { (eval echo "$as_me:25077: \"$ac_compile\"") >&5
25078   (eval $ac_compile) 2>&5
25079   ac_status=$?
25080   echo "$as_me:25080: \$? = $ac_status" >&5
25081   (exit $ac_status); } &&
25082          { ac_try='test -s conftest.$ac_objext'
25083   { (eval echo "$as_me:25083: \"$ac_try\"") >&5
25084   (eval $ac_try) 2>&5
25085   ac_status=$?
25086   echo "$as_me:25086: \$? = $ac_status" >&5
25087   (exit $ac_status); }; }; then
25088   ac_cv_func_krb_verify_secure=yes
25089 else
25090   echo "$as_me: failed program was:" >&5
25091 cat conftest.$ac_ext >&5
25092 ac_cv_func_krb_verify_secure=no
25093 fi
25094 rm -f conftest.$ac_objext conftest.$ac_ext
25095
25096 fi
25097 echo "$as_me:25097: result: $ac_cv_func_krb_verify_secure" >&5
25098 echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
25099         if test "$ac_cv_func_krb_verify_secure" != yes; then
25100
25101 cat >>confdefs.h <<\_ACEOF
25102 #define KRB_VERIFY_SECURE 1
25103 _ACEOF
25104
25105
25106 cat >>confdefs.h <<\_ACEOF
25107 #define KRB_VERIFY_SECURE_FAIL 2
25108 _ACEOF
25109
25110         fi
25111         echo "$as_me:25111: checking for KRB_VERIFY_NOT_SECURE" >&5
25112 echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
25113 if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
25114   echo $ECHO_N "(cached) $ECHO_C" >&6
25115 else
25116   cat >conftest.$ac_ext <<_ACEOF
25117 #line 25117 "configure"
25118 #include "confdefs.h"
25119 #include <krb.h>
25120 #ifdef F77_DUMMY_MAIN
25121 #  ifdef __cplusplus
25122      extern "C"
25123 #  endif
25124    int F77_DUMMY_MAIN() { return 1; }
25125 #endif
25126 int
25127 main ()
25128 {
25129
25130                 int x = KRB_VERIFY_NOT_SECURE
25131   ;
25132   return 0;
25133 }
25134 _ACEOF
25135 rm -f conftest.$ac_objext
25136 if { (eval echo "$as_me:25136: \"$ac_compile\"") >&5
25137   (eval $ac_compile) 2>&5
25138   ac_status=$?
25139   echo "$as_me:25139: \$? = $ac_status" >&5
25140   (exit $ac_status); } &&
25141          { ac_try='test -s conftest.$ac_objext'
25142   { (eval echo "$as_me:25142: \"$ac_try\"") >&5
25143   (eval $ac_try) 2>&5
25144   ac_status=$?
25145   echo "$as_me:25145: \$? = $ac_status" >&5
25146   (exit $ac_status); }; }; then
25147   ac_cv_func_krb_verify_not_secure=yes
25148 else
25149   echo "$as_me: failed program was:" >&5
25150 cat conftest.$ac_ext >&5
25151 ac_cv_func_krb_verify_not_secure=no
25152 fi
25153 rm -f conftest.$ac_objext conftest.$ac_ext
25154
25155 fi
25156 echo "$as_me:25156: result: $ac_cv_func_krb_verify_not_secure" >&5
25157 echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
25158         if test "$ac_cv_func_krb_verify_not_secure" != yes; then
25159
25160 cat >>confdefs.h <<\_ACEOF
25161 #define KRB_VERIFY_NOT_SECURE 0
25162 _ACEOF
25163
25164         fi
25165
25166
25167
25168
25169 echo "$as_me:25169: checking for krb_enable_debug" >&5
25170 echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
25171 if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
25172   echo $ECHO_N "(cached) $ECHO_C" >&6
25173 else
25174
25175 if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
25176         ac_save_LIBS="$LIBS"
25177         for ac_lib in "" ; do
25178                 case "$ac_lib" in
25179                 "") ;;
25180                 yes) ac_lib="" ;;
25181                 no) continue ;;
25182                 -l*) ;;
25183                 *) ac_lib="-l$ac_lib" ;;
25184                 esac
25185                 LIBS=" $ac_lib  $ac_save_LIBS"
25186                 cat >conftest.$ac_ext <<_ACEOF
25187 #line 25187 "configure"
25188 #include "confdefs.h"
25189
25190 #ifdef F77_DUMMY_MAIN
25191 #  ifdef __cplusplus
25192      extern "C"
25193 #  endif
25194    int F77_DUMMY_MAIN() { return 1; }
25195 #endif
25196 int
25197 main ()
25198 {
25199 krb_enable_debug()
25200   ;
25201   return 0;
25202 }
25203 _ACEOF
25204 rm -f conftest.$ac_objext conftest$ac_exeext
25205 if { (eval echo "$as_me:25205: \"$ac_link\"") >&5
25206   (eval $ac_link) 2>&5
25207   ac_status=$?
25208   echo "$as_me:25208: \$? = $ac_status" >&5
25209   (exit $ac_status); } &&
25210          { ac_try='test -s conftest$ac_exeext'
25211   { (eval echo "$as_me:25211: \"$ac_try\"") >&5
25212   (eval $ac_try) 2>&5
25213   ac_status=$?
25214   echo "$as_me:25214: \$? = $ac_status" >&5
25215   (exit $ac_status); }; }; then
25216   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
25217 else
25218   echo "$as_me: failed program was:" >&5
25219 cat conftest.$ac_ext >&5
25220 fi
25221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25222         done
25223         eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
25224         LIBS="$ac_save_LIBS"
25225 fi
25226
25227 fi
25228
25229
25230 eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
25231
25232 if false; then
25233
25234 for ac_func in krb_enable_debug
25235 do
25236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25237 echo "$as_me:25237: checking for $ac_func" >&5
25238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25239 if eval "test \"\${$as_ac_var+set}\" = set"; then
25240   echo $ECHO_N "(cached) $ECHO_C" >&6
25241 else
25242   cat >conftest.$ac_ext <<_ACEOF
25243 #line 25243 "configure"
25244 #include "confdefs.h"
25245 /* System header to define __stub macros and hopefully few prototypes,
25246     which can conflict with char $ac_func (); below.  */
25247 #include <assert.h>
25248 /* Override any gcc2 internal prototype to avoid an error.  */
25249 #ifdef __cplusplus
25250 extern "C"
25251 #endif
25252 /* We use char because int might match the return type of a gcc2
25253    builtin and then its argument prototype would still apply.  */
25254 char $ac_func ();
25255 char (*f) ();
25256
25257 #ifdef F77_DUMMY_MAIN
25258 #  ifdef __cplusplus
25259      extern "C"
25260 #  endif
25261    int F77_DUMMY_MAIN() { return 1; }
25262 #endif
25263 int
25264 main ()
25265 {
25266 /* The GNU C library defines this for functions which it implements
25267     to always fail with ENOSYS.  Some functions are actually named
25268     something starting with __ and the normal name is an alias.  */
25269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25270 choke me
25271 #else
25272 f = $ac_func;
25273 #endif
25274
25275   ;
25276   return 0;
25277 }
25278 _ACEOF
25279 rm -f conftest.$ac_objext conftest$ac_exeext
25280 if { (eval echo "$as_me:25280: \"$ac_link\"") >&5
25281   (eval $ac_link) 2>&5
25282   ac_status=$?
25283   echo "$as_me:25283: \$? = $ac_status" >&5
25284   (exit $ac_status); } &&
25285          { ac_try='test -s conftest$ac_exeext'
25286   { (eval echo "$as_me:25286: \"$ac_try\"") >&5
25287   (eval $ac_try) 2>&5
25288   ac_status=$?
25289   echo "$as_me:25289: \$? = $ac_status" >&5
25290   (exit $ac_status); }; }; then
25291   eval "$as_ac_var=yes"
25292 else
25293   echo "$as_me: failed program was:" >&5
25294 cat conftest.$ac_ext >&5
25295 eval "$as_ac_var=no"
25296 fi
25297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25298 fi
25299 echo "$as_me:25299: result: `eval echo '${'$as_ac_var'}'`" >&5
25300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25301 if test `eval echo '${'$as_ac_var'}'` = yes; then
25302   cat >>confdefs.h <<_ACEOF
25303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25304 _ACEOF
25305
25306 fi
25307 done
25308
25309 fi
25310 # krb_enable_debug
25311 eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25312 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25313 eval "LIB_krb_enable_debug=$ac_res"
25314
25315 case "$ac_res" in
25316         yes)
25317         eval "ac_cv_func_krb_enable_debug=yes"
25318         eval "LIB_krb_enable_debug="
25319         cat >>confdefs.h <<_ACEOF
25320 #define $ac_tr_func 1
25321 _ACEOF
25322
25323         echo "$as_me:25323: result: yes" >&5
25324 echo "${ECHO_T}yes" >&6
25325         ;;
25326         no)
25327         eval "ac_cv_func_krb_enable_debug=no"
25328         eval "LIB_krb_enable_debug="
25329         echo "$as_me:25329: result: no" >&5
25330 echo "${ECHO_T}no" >&6
25331         ;;
25332         *)
25333         eval "ac_cv_func_krb_enable_debug=yes"
25334         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25335         cat >>confdefs.h <<_ACEOF
25336 #define $ac_tr_func 1
25337 _ACEOF
25338
25339         cat >>confdefs.h <<_ACEOF
25340 #define $ac_tr_lib 1
25341 _ACEOF
25342
25343         echo "$as_me:25343: result: yes, in $ac_res" >&5
25344 echo "${ECHO_T}yes, in $ac_res" >&6
25345         ;;
25346 esac
25347
25348
25349 if test -n "$LIB_krb_enable_debug"; then
25350         LIBS="$LIB_krb_enable_debug $LIBS"
25351 fi
25352
25353
25354
25355
25356
25357 echo "$as_me:25357: checking for krb_disable_debug" >&5
25358 echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
25359 if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
25360   echo $ECHO_N "(cached) $ECHO_C" >&6
25361 else
25362
25363 if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
25364         ac_save_LIBS="$LIBS"
25365         for ac_lib in "" ; do
25366                 case "$ac_lib" in
25367                 "") ;;
25368                 yes) ac_lib="" ;;
25369                 no) continue ;;
25370                 -l*) ;;
25371                 *) ac_lib="-l$ac_lib" ;;
25372                 esac
25373                 LIBS=" $ac_lib  $ac_save_LIBS"
25374                 cat >conftest.$ac_ext <<_ACEOF
25375 #line 25375 "configure"
25376 #include "confdefs.h"
25377
25378 #ifdef F77_DUMMY_MAIN
25379 #  ifdef __cplusplus
25380      extern "C"
25381 #  endif
25382    int F77_DUMMY_MAIN() { return 1; }
25383 #endif
25384 int
25385 main ()
25386 {
25387 krb_disable_debug()
25388   ;
25389   return 0;
25390 }
25391 _ACEOF
25392 rm -f conftest.$ac_objext conftest$ac_exeext
25393 if { (eval echo "$as_me:25393: \"$ac_link\"") >&5
25394   (eval $ac_link) 2>&5
25395   ac_status=$?
25396   echo "$as_me:25396: \$? = $ac_status" >&5
25397   (exit $ac_status); } &&
25398          { ac_try='test -s conftest$ac_exeext'
25399   { (eval echo "$as_me:25399: \"$ac_try\"") >&5
25400   (eval $ac_try) 2>&5
25401   ac_status=$?
25402   echo "$as_me:25402: \$? = $ac_status" >&5
25403   (exit $ac_status); }; }; then
25404   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
25405 else
25406   echo "$as_me: failed program was:" >&5
25407 cat conftest.$ac_ext >&5
25408 fi
25409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25410         done
25411         eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
25412         LIBS="$ac_save_LIBS"
25413 fi
25414
25415 fi
25416
25417
25418 eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
25419
25420 if false; then
25421
25422 for ac_func in krb_disable_debug
25423 do
25424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25425 echo "$as_me:25425: checking for $ac_func" >&5
25426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25427 if eval "test \"\${$as_ac_var+set}\" = set"; then
25428   echo $ECHO_N "(cached) $ECHO_C" >&6
25429 else
25430   cat >conftest.$ac_ext <<_ACEOF
25431 #line 25431 "configure"
25432 #include "confdefs.h"
25433 /* System header to define __stub macros and hopefully few prototypes,
25434     which can conflict with char $ac_func (); below.  */
25435 #include <assert.h>
25436 /* Override any gcc2 internal prototype to avoid an error.  */
25437 #ifdef __cplusplus
25438 extern "C"
25439 #endif
25440 /* We use char because int might match the return type of a gcc2
25441    builtin and then its argument prototype would still apply.  */
25442 char $ac_func ();
25443 char (*f) ();
25444
25445 #ifdef F77_DUMMY_MAIN
25446 #  ifdef __cplusplus
25447      extern "C"
25448 #  endif
25449    int F77_DUMMY_MAIN() { return 1; }
25450 #endif
25451 int
25452 main ()
25453 {
25454 /* The GNU C library defines this for functions which it implements
25455     to always fail with ENOSYS.  Some functions are actually named
25456     something starting with __ and the normal name is an alias.  */
25457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25458 choke me
25459 #else
25460 f = $ac_func;
25461 #endif
25462
25463   ;
25464   return 0;
25465 }
25466 _ACEOF
25467 rm -f conftest.$ac_objext conftest$ac_exeext
25468 if { (eval echo "$as_me:25468: \"$ac_link\"") >&5
25469   (eval $ac_link) 2>&5
25470   ac_status=$?
25471   echo "$as_me:25471: \$? = $ac_status" >&5
25472   (exit $ac_status); } &&
25473          { ac_try='test -s conftest$ac_exeext'
25474   { (eval echo "$as_me:25474: \"$ac_try\"") >&5
25475   (eval $ac_try) 2>&5
25476   ac_status=$?
25477   echo "$as_me:25477: \$? = $ac_status" >&5
25478   (exit $ac_status); }; }; then
25479   eval "$as_ac_var=yes"
25480 else
25481   echo "$as_me: failed program was:" >&5
25482 cat conftest.$ac_ext >&5
25483 eval "$as_ac_var=no"
25484 fi
25485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25486 fi
25487 echo "$as_me:25487: result: `eval echo '${'$as_ac_var'}'`" >&5
25488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25489 if test `eval echo '${'$as_ac_var'}'` = yes; then
25490   cat >>confdefs.h <<_ACEOF
25491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25492 _ACEOF
25493
25494 fi
25495 done
25496
25497 fi
25498 # krb_disable_debug
25499 eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25500 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25501 eval "LIB_krb_disable_debug=$ac_res"
25502
25503 case "$ac_res" in
25504         yes)
25505         eval "ac_cv_func_krb_disable_debug=yes"
25506         eval "LIB_krb_disable_debug="
25507         cat >>confdefs.h <<_ACEOF
25508 #define $ac_tr_func 1
25509 _ACEOF
25510
25511         echo "$as_me:25511: result: yes" >&5
25512 echo "${ECHO_T}yes" >&6
25513         ;;
25514         no)
25515         eval "ac_cv_func_krb_disable_debug=no"
25516         eval "LIB_krb_disable_debug="
25517         echo "$as_me:25517: result: no" >&5
25518 echo "${ECHO_T}no" >&6
25519         ;;
25520         *)
25521         eval "ac_cv_func_krb_disable_debug=yes"
25522         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25523         cat >>confdefs.h <<_ACEOF
25524 #define $ac_tr_func 1
25525 _ACEOF
25526
25527         cat >>confdefs.h <<_ACEOF
25528 #define $ac_tr_lib 1
25529 _ACEOF
25530
25531         echo "$as_me:25531: result: yes, in $ac_res" >&5
25532 echo "${ECHO_T}yes, in $ac_res" >&6
25533         ;;
25534 esac
25535
25536
25537 if test -n "$LIB_krb_disable_debug"; then
25538         LIBS="$LIB_krb_disable_debug $LIBS"
25539 fi
25540
25541
25542
25543
25544
25545 echo "$as_me:25545: checking for krb_get_our_ip_for_realm" >&5
25546 echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
25547 if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
25548   echo $ECHO_N "(cached) $ECHO_C" >&6
25549 else
25550
25551 if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
25552         ac_save_LIBS="$LIBS"
25553         for ac_lib in "" ; do
25554                 case "$ac_lib" in
25555                 "") ;;
25556                 yes) ac_lib="" ;;
25557                 no) continue ;;
25558                 -l*) ;;
25559                 *) ac_lib="-l$ac_lib" ;;
25560                 esac
25561                 LIBS=" $ac_lib  $ac_save_LIBS"
25562                 cat >conftest.$ac_ext <<_ACEOF
25563 #line 25563 "configure"
25564 #include "confdefs.h"
25565
25566 #ifdef F77_DUMMY_MAIN
25567 #  ifdef __cplusplus
25568      extern "C"
25569 #  endif
25570    int F77_DUMMY_MAIN() { return 1; }
25571 #endif
25572 int
25573 main ()
25574 {
25575 krb_get_our_ip_for_realm()
25576   ;
25577   return 0;
25578 }
25579 _ACEOF
25580 rm -f conftest.$ac_objext conftest$ac_exeext
25581 if { (eval echo "$as_me:25581: \"$ac_link\"") >&5
25582   (eval $ac_link) 2>&5
25583   ac_status=$?
25584   echo "$as_me:25584: \$? = $ac_status" >&5
25585   (exit $ac_status); } &&
25586          { ac_try='test -s conftest$ac_exeext'
25587   { (eval echo "$as_me:25587: \"$ac_try\"") >&5
25588   (eval $ac_try) 2>&5
25589   ac_status=$?
25590   echo "$as_me:25590: \$? = $ac_status" >&5
25591   (exit $ac_status); }; }; then
25592   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
25593 else
25594   echo "$as_me: failed program was:" >&5
25595 cat conftest.$ac_ext >&5
25596 fi
25597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25598         done
25599         eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
25600         LIBS="$ac_save_LIBS"
25601 fi
25602
25603 fi
25604
25605
25606 eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
25607
25608 if false; then
25609
25610 for ac_func in krb_get_our_ip_for_realm
25611 do
25612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25613 echo "$as_me:25613: checking for $ac_func" >&5
25614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25615 if eval "test \"\${$as_ac_var+set}\" = set"; then
25616   echo $ECHO_N "(cached) $ECHO_C" >&6
25617 else
25618   cat >conftest.$ac_ext <<_ACEOF
25619 #line 25619 "configure"
25620 #include "confdefs.h"
25621 /* System header to define __stub macros and hopefully few prototypes,
25622     which can conflict with char $ac_func (); below.  */
25623 #include <assert.h>
25624 /* Override any gcc2 internal prototype to avoid an error.  */
25625 #ifdef __cplusplus
25626 extern "C"
25627 #endif
25628 /* We use char because int might match the return type of a gcc2
25629    builtin and then its argument prototype would still apply.  */
25630 char $ac_func ();
25631 char (*f) ();
25632
25633 #ifdef F77_DUMMY_MAIN
25634 #  ifdef __cplusplus
25635      extern "C"
25636 #  endif
25637    int F77_DUMMY_MAIN() { return 1; }
25638 #endif
25639 int
25640 main ()
25641 {
25642 /* The GNU C library defines this for functions which it implements
25643     to always fail with ENOSYS.  Some functions are actually named
25644     something starting with __ and the normal name is an alias.  */
25645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25646 choke me
25647 #else
25648 f = $ac_func;
25649 #endif
25650
25651   ;
25652   return 0;
25653 }
25654 _ACEOF
25655 rm -f conftest.$ac_objext conftest$ac_exeext
25656 if { (eval echo "$as_me:25656: \"$ac_link\"") >&5
25657   (eval $ac_link) 2>&5
25658   ac_status=$?
25659   echo "$as_me:25659: \$? = $ac_status" >&5
25660   (exit $ac_status); } &&
25661          { ac_try='test -s conftest$ac_exeext'
25662   { (eval echo "$as_me:25662: \"$ac_try\"") >&5
25663   (eval $ac_try) 2>&5
25664   ac_status=$?
25665   echo "$as_me:25665: \$? = $ac_status" >&5
25666   (exit $ac_status); }; }; then
25667   eval "$as_ac_var=yes"
25668 else
25669   echo "$as_me: failed program was:" >&5
25670 cat conftest.$ac_ext >&5
25671 eval "$as_ac_var=no"
25672 fi
25673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25674 fi
25675 echo "$as_me:25675: result: `eval echo '${'$as_ac_var'}'`" >&5
25676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25677 if test `eval echo '${'$as_ac_var'}'` = yes; then
25678   cat >>confdefs.h <<_ACEOF
25679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25680 _ACEOF
25681
25682 fi
25683 done
25684
25685 fi
25686 # krb_get_our_ip_for_realm
25687 eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25688 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25689 eval "LIB_krb_get_our_ip_for_realm=$ac_res"
25690
25691 case "$ac_res" in
25692         yes)
25693         eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
25694         eval "LIB_krb_get_our_ip_for_realm="
25695         cat >>confdefs.h <<_ACEOF
25696 #define $ac_tr_func 1
25697 _ACEOF
25698
25699         echo "$as_me:25699: result: yes" >&5
25700 echo "${ECHO_T}yes" >&6
25701         ;;
25702         no)
25703         eval "ac_cv_func_krb_get_our_ip_for_realm=no"
25704         eval "LIB_krb_get_our_ip_for_realm="
25705         echo "$as_me:25705: result: no" >&5
25706 echo "${ECHO_T}no" >&6
25707         ;;
25708         *)
25709         eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
25710         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25711         cat >>confdefs.h <<_ACEOF
25712 #define $ac_tr_func 1
25713 _ACEOF
25714
25715         cat >>confdefs.h <<_ACEOF
25716 #define $ac_tr_lib 1
25717 _ACEOF
25718
25719         echo "$as_me:25719: result: yes, in $ac_res" >&5
25720 echo "${ECHO_T}yes, in $ac_res" >&6
25721         ;;
25722 esac
25723
25724
25725 if test -n "$LIB_krb_get_our_ip_for_realm"; then
25726         LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
25727 fi
25728
25729
25730
25731
25732
25733 echo "$as_me:25733: checking for krb_kdctimeofday" >&5
25734 echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
25735 if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
25736   echo $ECHO_N "(cached) $ECHO_C" >&6
25737 else
25738
25739 if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
25740         ac_save_LIBS="$LIBS"
25741         for ac_lib in "" ; do
25742                 case "$ac_lib" in
25743                 "") ;;
25744                 yes) ac_lib="" ;;
25745                 no) continue ;;
25746                 -l*) ;;
25747                 *) ac_lib="-l$ac_lib" ;;
25748                 esac
25749                 LIBS=" $ac_lib  $ac_save_LIBS"
25750                 cat >conftest.$ac_ext <<_ACEOF
25751 #line 25751 "configure"
25752 #include "confdefs.h"
25753
25754 #ifdef F77_DUMMY_MAIN
25755 #  ifdef __cplusplus
25756      extern "C"
25757 #  endif
25758    int F77_DUMMY_MAIN() { return 1; }
25759 #endif
25760 int
25761 main ()
25762 {
25763 krb_kdctimeofday()
25764   ;
25765   return 0;
25766 }
25767 _ACEOF
25768 rm -f conftest.$ac_objext conftest$ac_exeext
25769 if { (eval echo "$as_me:25769: \"$ac_link\"") >&5
25770   (eval $ac_link) 2>&5
25771   ac_status=$?
25772   echo "$as_me:25772: \$? = $ac_status" >&5
25773   (exit $ac_status); } &&
25774          { ac_try='test -s conftest$ac_exeext'
25775   { (eval echo "$as_me:25775: \"$ac_try\"") >&5
25776   (eval $ac_try) 2>&5
25777   ac_status=$?
25778   echo "$as_me:25778: \$? = $ac_status" >&5
25779   (exit $ac_status); }; }; then
25780   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
25781 else
25782   echo "$as_me: failed program was:" >&5
25783 cat conftest.$ac_ext >&5
25784 fi
25785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25786         done
25787         eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
25788         LIBS="$ac_save_LIBS"
25789 fi
25790
25791 fi
25792
25793
25794 eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
25795
25796 if false; then
25797
25798 for ac_func in krb_kdctimeofday
25799 do
25800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25801 echo "$as_me:25801: checking for $ac_func" >&5
25802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25803 if eval "test \"\${$as_ac_var+set}\" = set"; then
25804   echo $ECHO_N "(cached) $ECHO_C" >&6
25805 else
25806   cat >conftest.$ac_ext <<_ACEOF
25807 #line 25807 "configure"
25808 #include "confdefs.h"
25809 /* System header to define __stub macros and hopefully few prototypes,
25810     which can conflict with char $ac_func (); below.  */
25811 #include <assert.h>
25812 /* Override any gcc2 internal prototype to avoid an error.  */
25813 #ifdef __cplusplus
25814 extern "C"
25815 #endif
25816 /* We use char because int might match the return type of a gcc2
25817    builtin and then its argument prototype would still apply.  */
25818 char $ac_func ();
25819 char (*f) ();
25820
25821 #ifdef F77_DUMMY_MAIN
25822 #  ifdef __cplusplus
25823      extern "C"
25824 #  endif
25825    int F77_DUMMY_MAIN() { return 1; }
25826 #endif
25827 int
25828 main ()
25829 {
25830 /* The GNU C library defines this for functions which it implements
25831     to always fail with ENOSYS.  Some functions are actually named
25832     something starting with __ and the normal name is an alias.  */
25833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25834 choke me
25835 #else
25836 f = $ac_func;
25837 #endif
25838
25839   ;
25840   return 0;
25841 }
25842 _ACEOF
25843 rm -f conftest.$ac_objext conftest$ac_exeext
25844 if { (eval echo "$as_me:25844: \"$ac_link\"") >&5
25845   (eval $ac_link) 2>&5
25846   ac_status=$?
25847   echo "$as_me:25847: \$? = $ac_status" >&5
25848   (exit $ac_status); } &&
25849          { ac_try='test -s conftest$ac_exeext'
25850   { (eval echo "$as_me:25850: \"$ac_try\"") >&5
25851   (eval $ac_try) 2>&5
25852   ac_status=$?
25853   echo "$as_me:25853: \$? = $ac_status" >&5
25854   (exit $ac_status); }; }; then
25855   eval "$as_ac_var=yes"
25856 else
25857   echo "$as_me: failed program was:" >&5
25858 cat conftest.$ac_ext >&5
25859 eval "$as_ac_var=no"
25860 fi
25861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25862 fi
25863 echo "$as_me:25863: result: `eval echo '${'$as_ac_var'}'`" >&5
25864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25865 if test `eval echo '${'$as_ac_var'}'` = yes; then
25866   cat >>confdefs.h <<_ACEOF
25867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25868 _ACEOF
25869
25870 fi
25871 done
25872
25873 fi
25874 # krb_kdctimeofday
25875 eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25876 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25877 eval "LIB_krb_kdctimeofday=$ac_res"
25878
25879 case "$ac_res" in
25880         yes)
25881         eval "ac_cv_func_krb_kdctimeofday=yes"
25882         eval "LIB_krb_kdctimeofday="
25883         cat >>confdefs.h <<_ACEOF
25884 #define $ac_tr_func 1
25885 _ACEOF
25886
25887         echo "$as_me:25887: result: yes" >&5
25888 echo "${ECHO_T}yes" >&6
25889         ;;
25890         no)
25891         eval "ac_cv_func_krb_kdctimeofday=no"
25892         eval "LIB_krb_kdctimeofday="
25893         echo "$as_me:25893: result: no" >&5
25894 echo "${ECHO_T}no" >&6
25895         ;;
25896         *)
25897         eval "ac_cv_func_krb_kdctimeofday=yes"
25898         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25899         cat >>confdefs.h <<_ACEOF
25900 #define $ac_tr_func 1
25901 _ACEOF
25902
25903         cat >>confdefs.h <<_ACEOF
25904 #define $ac_tr_lib 1
25905 _ACEOF
25906
25907         echo "$as_me:25907: result: yes, in $ac_res" >&5
25908 echo "${ECHO_T}yes, in $ac_res" >&6
25909         ;;
25910 esac
25911
25912
25913 if test -n "$LIB_krb_kdctimeofday"; then
25914         LIBS="$LIB_krb_kdctimeofday $LIBS"
25915 fi
25916
25917
25918
25919
25920
25921
25922
25923 echo "$as_me:25923: checking for krb_get_kdc_time_diff" >&5
25924 echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
25925 if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
25926   echo $ECHO_N "(cached) $ECHO_C" >&6
25927 else
25928
25929 if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
25930         ac_save_LIBS="$LIBS"
25931         for ac_lib in "" ; do
25932                 case "$ac_lib" in
25933                 "") ;;
25934                 yes) ac_lib="" ;;
25935                 no) continue ;;
25936                 -l*) ;;
25937                 *) ac_lib="-l$ac_lib" ;;
25938                 esac
25939                 LIBS=" $ac_lib  $ac_save_LIBS"
25940                 cat >conftest.$ac_ext <<_ACEOF
25941 #line 25941 "configure"
25942 #include "confdefs.h"
25943
25944 #ifdef F77_DUMMY_MAIN
25945 #  ifdef __cplusplus
25946      extern "C"
25947 #  endif
25948    int F77_DUMMY_MAIN() { return 1; }
25949 #endif
25950 int
25951 main ()
25952 {
25953 krb_get_kdc_time_diff()
25954   ;
25955   return 0;
25956 }
25957 _ACEOF
25958 rm -f conftest.$ac_objext conftest$ac_exeext
25959 if { (eval echo "$as_me:25959: \"$ac_link\"") >&5
25960   (eval $ac_link) 2>&5
25961   ac_status=$?
25962   echo "$as_me:25962: \$? = $ac_status" >&5
25963   (exit $ac_status); } &&
25964          { ac_try='test -s conftest$ac_exeext'
25965   { (eval echo "$as_me:25965: \"$ac_try\"") >&5
25966   (eval $ac_try) 2>&5
25967   ac_status=$?
25968   echo "$as_me:25968: \$? = $ac_status" >&5
25969   (exit $ac_status); }; }; then
25970   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
25971 else
25972   echo "$as_me: failed program was:" >&5
25973 cat conftest.$ac_ext >&5
25974 fi
25975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25976         done
25977         eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
25978         LIBS="$ac_save_LIBS"
25979 fi
25980
25981 fi
25982
25983
25984 eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
25985
25986 if false; then
25987
25988 for ac_func in krb_get_kdc_time_diff
25989 do
25990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25991 echo "$as_me:25991: checking for $ac_func" >&5
25992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25993 if eval "test \"\${$as_ac_var+set}\" = set"; then
25994   echo $ECHO_N "(cached) $ECHO_C" >&6
25995 else
25996   cat >conftest.$ac_ext <<_ACEOF
25997 #line 25997 "configure"
25998 #include "confdefs.h"
25999 /* System header to define __stub macros and hopefully few prototypes,
26000     which can conflict with char $ac_func (); below.  */
26001 #include <assert.h>
26002 /* Override any gcc2 internal prototype to avoid an error.  */
26003 #ifdef __cplusplus
26004 extern "C"
26005 #endif
26006 /* We use char because int might match the return type of a gcc2
26007    builtin and then its argument prototype would still apply.  */
26008 char $ac_func ();
26009 char (*f) ();
26010
26011 #ifdef F77_DUMMY_MAIN
26012 #  ifdef __cplusplus
26013      extern "C"
26014 #  endif
26015    int F77_DUMMY_MAIN() { return 1; }
26016 #endif
26017 int
26018 main ()
26019 {
26020 /* The GNU C library defines this for functions which it implements
26021     to always fail with ENOSYS.  Some functions are actually named
26022     something starting with __ and the normal name is an alias.  */
26023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26024 choke me
26025 #else
26026 f = $ac_func;
26027 #endif
26028
26029   ;
26030   return 0;
26031 }
26032 _ACEOF
26033 rm -f conftest.$ac_objext conftest$ac_exeext
26034 if { (eval echo "$as_me:26034: \"$ac_link\"") >&5
26035   (eval $ac_link) 2>&5
26036   ac_status=$?
26037   echo "$as_me:26037: \$? = $ac_status" >&5
26038   (exit $ac_status); } &&
26039          { ac_try='test -s conftest$ac_exeext'
26040   { (eval echo "$as_me:26040: \"$ac_try\"") >&5
26041   (eval $ac_try) 2>&5
26042   ac_status=$?
26043   echo "$as_me:26043: \$? = $ac_status" >&5
26044   (exit $ac_status); }; }; then
26045   eval "$as_ac_var=yes"
26046 else
26047   echo "$as_me: failed program was:" >&5
26048 cat conftest.$ac_ext >&5
26049 eval "$as_ac_var=no"
26050 fi
26051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26052 fi
26053 echo "$as_me:26053: result: `eval echo '${'$as_ac_var'}'`" >&5
26054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26055 if test `eval echo '${'$as_ac_var'}'` = yes; then
26056   cat >>confdefs.h <<_ACEOF
26057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26058 _ACEOF
26059
26060 fi
26061 done
26062
26063 fi
26064 # krb_get_kdc_time_diff
26065 eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26066 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26067 eval "LIB_krb_get_kdc_time_diff=$ac_res"
26068
26069 case "$ac_res" in
26070         yes)
26071         eval "ac_cv_func_krb_get_kdc_time_diff=yes"
26072         eval "LIB_krb_get_kdc_time_diff="
26073         cat >>confdefs.h <<_ACEOF
26074 #define $ac_tr_func 1
26075 _ACEOF
26076
26077         echo "$as_me:26077: result: yes" >&5
26078 echo "${ECHO_T}yes" >&6
26079         ;;
26080         no)
26081         eval "ac_cv_func_krb_get_kdc_time_diff=no"
26082         eval "LIB_krb_get_kdc_time_diff="
26083         echo "$as_me:26083: result: no" >&5
26084 echo "${ECHO_T}no" >&6
26085         ;;
26086         *)
26087         eval "ac_cv_func_krb_get_kdc_time_diff=yes"
26088         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26089         cat >>confdefs.h <<_ACEOF
26090 #define $ac_tr_func 1
26091 _ACEOF
26092
26093         cat >>confdefs.h <<_ACEOF
26094 #define $ac_tr_lib 1
26095 _ACEOF
26096
26097         echo "$as_me:26097: result: yes, in $ac_res" >&5
26098 echo "${ECHO_T}yes, in $ac_res" >&6
26099         ;;
26100 esac
26101
26102
26103 if test -n "$LIB_krb_get_kdc_time_diff"; then
26104         LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
26105 fi
26106
26107
26108
26109         echo "$as_me:26109: checking for KRB_SENDAUTH_VERS" >&5
26110 echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
26111 if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
26112   echo $ECHO_N "(cached) $ECHO_C" >&6
26113 else
26114   cat >conftest.$ac_ext <<_ACEOF
26115 #line 26115 "configure"
26116 #include "confdefs.h"
26117 #include <krb.h>
26118                         #include <prot.h>
26119 #ifdef F77_DUMMY_MAIN
26120 #  ifdef __cplusplus
26121      extern "C"
26122 #  endif
26123    int F77_DUMMY_MAIN() { return 1; }
26124 #endif
26125 int
26126 main ()
26127 {
26128
26129                 char *x = KRB_SENDAUTH_VERS
26130   ;
26131   return 0;
26132 }
26133 _ACEOF
26134 rm -f conftest.$ac_objext
26135 if { (eval echo "$as_me:26135: \"$ac_compile\"") >&5
26136   (eval $ac_compile) 2>&5
26137   ac_status=$?
26138   echo "$as_me:26138: \$? = $ac_status" >&5
26139   (exit $ac_status); } &&
26140          { ac_try='test -s conftest.$ac_objext'
26141   { (eval echo "$as_me:26141: \"$ac_try\"") >&5
26142   (eval $ac_try) 2>&5
26143   ac_status=$?
26144   echo "$as_me:26144: \$? = $ac_status" >&5
26145   (exit $ac_status); }; }; then
26146   ac_cv_func_krb_sendauth_vers=yes
26147 else
26148   echo "$as_me: failed program was:" >&5
26149 cat conftest.$ac_ext >&5
26150 ac_cv_func_krb_sendauth_vers=no
26151 fi
26152 rm -f conftest.$ac_objext conftest.$ac_ext
26153
26154 fi
26155 echo "$as_me:26155: result: $ac_cv_func_krb_sendauth_vers" >&5
26156 echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
26157         if test "$ac_cv_func_krb_sendauth_vers" != yes; then
26158
26159 cat >>confdefs.h <<\_ACEOF
26160 #define KRB_SENDAUTH_VERS "AUTHV0.1"
26161 _ACEOF
26162
26163         fi
26164         echo "$as_me:26164: checking for krb_mk_req with const arguments" >&5
26165 echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
26166 if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
26167   echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169   cat >conftest.$ac_ext <<_ACEOF
26170 #line 26170 "configure"
26171 #include "confdefs.h"
26172 #include <krb.h>
26173                 int krb_mk_req(KTEXT a, const char *s, const char *i,
26174                                const char *r, int32_t checksum)
26175                 { return 17; }
26176 #ifdef F77_DUMMY_MAIN
26177 #  ifdef __cplusplus
26178      extern "C"
26179 #  endif
26180    int F77_DUMMY_MAIN() { return 1; }
26181 #endif
26182 int
26183 main ()
26184 {
26185
26186   ;
26187   return 0;
26188 }
26189 _ACEOF
26190 rm -f conftest.$ac_objext
26191 if { (eval echo "$as_me:26191: \"$ac_compile\"") >&5
26192   (eval $ac_compile) 2>&5
26193   ac_status=$?
26194   echo "$as_me:26194: \$? = $ac_status" >&5
26195   (exit $ac_status); } &&
26196          { ac_try='test -s conftest.$ac_objext'
26197   { (eval echo "$as_me:26197: \"$ac_try\"") >&5
26198   (eval $ac_try) 2>&5
26199   ac_status=$?
26200   echo "$as_me:26200: \$? = $ac_status" >&5
26201   (exit $ac_status); }; }; then
26202   ac_cv_func_krb_mk_req_const=yes
26203 else
26204   echo "$as_me: failed program was:" >&5
26205 cat conftest.$ac_ext >&5
26206 ac_cv_func_krb_mk_req_const=no
26207 fi
26208 rm -f conftest.$ac_objext conftest.$ac_ext
26209
26210 fi
26211 echo "$as_me:26211: result: $ac_cv_func_krb_mk_req_const" >&5
26212 echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
26213         if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
26214
26215 cat >>confdefs.h <<\_ACEOF
26216 #define KRB_MK_REQ_CONST 1
26217 _ACEOF
26218
26219         fi
26220
26221         LIBS="$save_LIBS"
26222         CFLAGS="$save_CFLAGS"
26223         LIB_kdb="-lkdb -lkrb"
26224         if test "$krb4_libdir"; then
26225                 LIB_krb4="-R $krb4_libdir $LIB_krb4"
26226                 LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
26227         fi
26228 fi
26229
26230
26231 if test "$with_krb4" != "no"; then
26232   KRB4_TRUE=
26233   KRB4_FALSE='#'
26234 else
26235   KRB4_TRUE='#'
26236   KRB4_FALSE=
26237 fi
26238
26239
26240
26241 if true; then
26242   KRB5_TRUE=
26243   KRB5_FALSE='#'
26244 else
26245   KRB5_TRUE='#'
26246   KRB5_FALSE=
26247 fi
26248
26249
26250
26251 if true; then
26252   do_roken_rename_TRUE=
26253   do_roken_rename_FALSE='#'
26254 else
26255   do_roken_rename_TRUE='#'
26256   do_roken_rename_FALSE=
26257 fi
26258
26259
26260
26261 cat >>confdefs.h <<\_ACEOF
26262 #define KRB5 1
26263 _ACEOF
26264
26265 # Check whether --enable-dce or --disable-dce was given.
26266 if test "${enable_dce+set}" = set; then
26267   enableval="$enable_dce"
26268
26269 fi;
26270 if test "$enable_dce" = yes; then
26271
26272 cat >>confdefs.h <<\_ACEOF
26273 #define DCE 1
26274 _ACEOF
26275
26276 fi
26277
26278
26279 if test "$enable_dce" = yes; then
26280   DCE_TRUE=
26281   DCE_FALSE='#'
26282 else
26283   DCE_TRUE='#'
26284   DCE_FALSE=
26285 fi
26286
26287
26288 ## XXX quite horrible:
26289 if test -f /etc/ibmcxx.cfg; then
26290         dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
26291         dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
26292         dpagaix_ldflags=
26293 else
26294         dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
26295         dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
26296         dpagaix_ldflags="-Wl,-bI:dfspag.exp"
26297 fi
26298
26299
26300
26301
26302
26303 # Check whether --enable-otp or --disable-otp was given.
26304 if test "${enable_otp+set}" = set; then
26305   enableval="$enable_otp"
26306
26307 fi;
26308 if test "$enable_otp" = yes -a "$db_type" = unknown; then
26309         { { echo "$as_me:26309: error: OTP requires a NDBM/DB compatible library" >&5
26310 echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
26311    { (exit 1); exit 1; }; }
26312 fi
26313 if test "$enable_otp" != no; then
26314         if test "$db_type" != unknown; then
26315                 enable_otp=yes
26316         else
26317                 enable_otp=no
26318         fi
26319 fi
26320 if test "$enable_otp" = yes; then
26321
26322 cat >>confdefs.h <<\_ACEOF
26323 #define OTP 1
26324 _ACEOF
26325
26326         LIB_otp='$(top_builddir)/lib/otp/libotp.la'
26327
26328 fi
26329 echo "$as_me:26329: checking whether to enable OTP library" >&5
26330 echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
26331 echo "$as_me:26331: result: $enable_otp" >&5
26332 echo "${ECHO_T}$enable_otp" >&6
26333
26334
26335 if test "$enable_otp" = yes; then
26336   OTP_TRUE=
26337   OTP_FALSE='#'
26338 else
26339   OTP_TRUE='#'
26340   OTP_FALSE=
26341 fi
26342
26343
26344
26345 # Check whether --enable-osfc2 or --disable-osfc2 was given.
26346 if test "${enable_osfc2+set}" = set; then
26347   enableval="$enable_osfc2"
26348
26349 fi;
26350 LIB_security=
26351 if test "$enable_osfc2" = yes; then
26352
26353 cat >>confdefs.h <<\_ACEOF
26354 #define HAVE_OSFC2 1
26355 _ACEOF
26356
26357         LIB_security=-lsecurity
26358 fi
26359
26360
26361
26362 # Extract the first word of "nroff", so it can be a program name with args.
26363 set dummy nroff; ac_word=$2
26364 echo "$as_me:26364: checking for $ac_word" >&5
26365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26366 if test "${ac_cv_path_NROFF+set}" = set; then
26367   echo $ECHO_N "(cached) $ECHO_C" >&6
26368 else
26369   case $NROFF in
26370   [\\/]* | ?:[\\/]*)
26371   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
26372   ;;
26373   *)
26374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26375 for as_dir in $PATH
26376 do
26377   IFS=$as_save_IFS
26378   test -z "$as_dir" && as_dir=.
26379   for ac_exec_ext in '' $ac_executable_extensions; do
26380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26381     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
26382     echo "$as_me:26382: found $as_dir/$ac_word$ac_exec_ext" >&5
26383     break 2
26384   fi
26385 done
26386 done
26387
26388   ;;
26389 esac
26390 fi
26391 NROFF=$ac_cv_path_NROFF
26392
26393 if test -n "$NROFF"; then
26394   echo "$as_me:26394: result: $NROFF" >&5
26395 echo "${ECHO_T}$NROFF" >&6
26396 else
26397   echo "$as_me:26397: result: no" >&5
26398 echo "${ECHO_T}no" >&6
26399 fi
26400
26401 # Extract the first word of "groff", so it can be a program name with args.
26402 set dummy groff; ac_word=$2
26403 echo "$as_me:26403: checking for $ac_word" >&5
26404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26405 if test "${ac_cv_path_GROFF+set}" = set; then
26406   echo $ECHO_N "(cached) $ECHO_C" >&6
26407 else
26408   case $GROFF in
26409   [\\/]* | ?:[\\/]*)
26410   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
26411   ;;
26412   *)
26413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26414 for as_dir in $PATH
26415 do
26416   IFS=$as_save_IFS
26417   test -z "$as_dir" && as_dir=.
26418   for ac_exec_ext in '' $ac_executable_extensions; do
26419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26420     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
26421     echo "$as_me:26421: found $as_dir/$ac_word$ac_exec_ext" >&5
26422     break 2
26423   fi
26424 done
26425 done
26426
26427   ;;
26428 esac
26429 fi
26430 GROFF=$ac_cv_path_GROFF
26431
26432 if test -n "$GROFF"; then
26433   echo "$as_me:26433: result: $GROFF" >&5
26434 echo "${ECHO_T}$GROFF" >&6
26435 else
26436   echo "$as_me:26436: result: no" >&5
26437 echo "${ECHO_T}no" >&6
26438 fi
26439
26440 echo "$as_me:26440: checking how to format man pages" >&5
26441 echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
26442 if test "${ac_cv_sys_man_format+set}" = set; then
26443   echo $ECHO_N "(cached) $ECHO_C" >&6
26444 else
26445   cat > conftest.1 << END
26446 .Dd January 1, 1970
26447 .Dt CONFTEST 1
26448 .Sh NAME
26449 .Nm conftest
26450 .Nd
26451 foobar
26452 END
26453
26454 if test "$NROFF" ; then
26455         for i in "-mdoc" "-mandoc"; do
26456                 if "$NROFF" $i conftest.1 2> /dev/null | \
26457                         grep Jan > /dev/null 2>&1 ; then
26458                         ac_cv_sys_man_format="$NROFF $i"
26459                         break
26460                 fi
26461         done
26462 fi
26463 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
26464         for i in "-mdoc" "-mandoc"; do
26465                 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
26466                         grep Jan > /dev/null 2>&1 ; then
26467                         ac_cv_sys_man_format="$GROFF -Tascii $i"
26468                         break
26469                 fi
26470         done
26471 fi
26472 if test "$ac_cv_sys_man_format"; then
26473         ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
26474 fi
26475
26476 fi
26477 echo "$as_me:26477: result: $ac_cv_sys_man_format" >&5
26478 echo "${ECHO_T}$ac_cv_sys_man_format" >&6
26479 if test "$ac_cv_sys_man_format"; then
26480         CATMAN="$ac_cv_sys_man_format"
26481
26482 fi
26483
26484
26485 if test "$CATMAN"; then
26486   CATMAN_TRUE=
26487   CATMAN_FALSE='#'
26488 else
26489   CATMAN_TRUE='#'
26490   CATMAN_FALSE=
26491 fi
26492
26493 echo "$as_me:26493: checking extension of pre-formatted manual pages" >&5
26494 echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
26495 if test "${ac_cv_sys_catman_ext+set}" = set; then
26496   echo $ECHO_N "(cached) $ECHO_C" >&6
26497 else
26498   if grep _suffix /etc/man.conf > /dev/null 2>&1; then
26499         ac_cv_sys_catman_ext=0
26500 else
26501         ac_cv_sys_catman_ext=number
26502 fi
26503
26504 fi
26505 echo "$as_me:26505: result: $ac_cv_sys_catman_ext" >&5
26506 echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
26507 if test "$ac_cv_sys_catman_ext" = number; then
26508         CATMANEXT='$$section'
26509 else
26510         CATMANEXT=0
26511 fi
26512
26513
26514
26515
26516
26517 # Check whether --with-readline or --without-readline was given.
26518 if test "${with_readline+set}" = set; then
26519   withval="$with_readline"
26520
26521 fi;
26522
26523 # Check whether --with-readline-lib or --without-readline-lib was given.
26524 if test "${with_readline_lib+set}" = set; then
26525   withval="$with_readline_lib"
26526   if test "$withval" = "yes" -o "$withval" = "no"; then
26527   { { echo "$as_me:26527: error: No argument for --with-readline-lib" >&5
26528 echo "$as_me: error: No argument for --with-readline-lib" >&2;}
26529    { (exit 1); exit 1; }; }
26530 elif test "X$with_readline" = "X"; then
26531   with_readline=yes
26532 fi
26533 fi;
26534
26535 # Check whether --with-readline-include or --without-readline-include was given.
26536 if test "${with_readline_include+set}" = set; then
26537   withval="$with_readline_include"
26538   if test "$withval" = "yes" -o "$withval" = "no"; then
26539   { { echo "$as_me:26539: error: No argument for --with-readline-include" >&5
26540 echo "$as_me: error: No argument for --with-readline-include" >&2;}
26541    { (exit 1); exit 1; }; }
26542 elif test "X$with_readline" = "X"; then
26543   with_readline=yes
26544 fi
26545 fi;
26546
26547 # Check whether --with-readline-config or --without-readline-config was given.
26548 if test "${with_readline_config+set}" = set; then
26549   withval="$with_readline_config"
26550
26551 fi;
26552
26553
26554
26555 echo "$as_me:26555: checking for readline" >&5
26556 echo $ECHO_N "checking for readline... $ECHO_C" >&6
26557
26558 case "$with_readline" in
26559 yes|"") d='' ;;
26560 no)     d= ;;
26561 *)      d="$with_readline" ;;
26562 esac
26563
26564 header_dirs=
26565 lib_dirs=
26566 for i in $d; do
26567         if test "$with_readline_include" = ""; then
26568                 if test -d "$i/include/readline"; then
26569                         header_dirs="$header_dirs $i/include/readline"
26570                 fi
26571                 if test -d "$i/include"; then
26572                         header_dirs="$header_dirs $i/include"
26573                 fi
26574         fi
26575         if test "$with_readline_lib" = ""; then
26576                 if test -d "$i/lib$abilibdirext"; then
26577                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
26578                 fi
26579         fi
26580 done
26581
26582 if test "$with_readline_include"; then
26583         header_dirs="$with_readline_include $header_dirs"
26584 fi
26585 if test "$with_readline_lib"; then
26586         lib_dirs="$with_readline_lib $lib_dirs"
26587 fi
26588
26589 if test "$with_readline_config" = ""; then
26590         with_readline_config=''
26591 fi
26592
26593 readline_cflags=
26594 readline_libs=
26595
26596 case "$with_readline_config" in
26597 yes|no|"")
26598         ;;
26599 *)
26600         readline_cflags="`$with_readline_config --cflags 2>&1`"
26601         readline_libs="`$with_readline_config --libs 2>&1`"
26602         ;;
26603 esac
26604
26605 found=no
26606 if test "$with_readline" != no; then
26607         save_CFLAGS="$CFLAGS"
26608         save_LIBS="$LIBS"
26609         if test "$readline_cflags" -a "$readline_libs"; then
26610                 CFLAGS="$readline_cflags $save_CFLAGS"
26611                 LIBS="$readline_libs $save_LIBS"
26612                 cat >conftest.$ac_ext <<_ACEOF
26613 #line 26613 "configure"
26614 #include "confdefs.h"
26615 #include <stdio.h>
26616  #include <readline.h>
26617 #ifdef F77_DUMMY_MAIN
26618 #  ifdef __cplusplus
26619      extern "C"
26620 #  endif
26621    int F77_DUMMY_MAIN() { return 1; }
26622 #endif
26623 int
26624 main ()
26625 {
26626
26627   ;
26628   return 0;
26629 }
26630 _ACEOF
26631 rm -f conftest.$ac_objext conftest$ac_exeext
26632 if { (eval echo "$as_me:26632: \"$ac_link\"") >&5
26633   (eval $ac_link) 2>&5
26634   ac_status=$?
26635   echo "$as_me:26635: \$? = $ac_status" >&5
26636   (exit $ac_status); } &&
26637          { ac_try='test -s conftest$ac_exeext'
26638   { (eval echo "$as_me:26638: \"$ac_try\"") >&5
26639   (eval $ac_try) 2>&5
26640   ac_status=$?
26641   echo "$as_me:26641: \$? = $ac_status" >&5
26642   (exit $ac_status); }; }; then
26643
26644                         INCLUDE_readline="$readline_cflags"
26645                         LIB_readline="$readline_libs"
26646                         echo "$as_me:26646: result: from $with_readline_config" >&5
26647 echo "${ECHO_T}from $with_readline_config" >&6
26648                         found=yes
26649 else
26650   echo "$as_me: failed program was:" >&5
26651 cat conftest.$ac_ext >&5
26652 fi
26653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26654         fi
26655         if test "$found" = no; then
26656                 ires= lres=
26657                 for i in $header_dirs; do
26658                         CFLAGS="-I$i $save_CFLAGS"
26659                         cat >conftest.$ac_ext <<_ACEOF
26660 #line 26660 "configure"
26661 #include "confdefs.h"
26662 #include <stdio.h>
26663  #include <readline.h>
26664 #ifdef F77_DUMMY_MAIN
26665 #  ifdef __cplusplus
26666      extern "C"
26667 #  endif
26668    int F77_DUMMY_MAIN() { return 1; }
26669 #endif
26670 int
26671 main ()
26672 {
26673
26674   ;
26675   return 0;
26676 }
26677 _ACEOF
26678 rm -f conftest.$ac_objext
26679 if { (eval echo "$as_me:26679: \"$ac_compile\"") >&5
26680   (eval $ac_compile) 2>&5
26681   ac_status=$?
26682   echo "$as_me:26682: \$? = $ac_status" >&5
26683   (exit $ac_status); } &&
26684          { ac_try='test -s conftest.$ac_objext'
26685   { (eval echo "$as_me:26685: \"$ac_try\"") >&5
26686   (eval $ac_try) 2>&5
26687   ac_status=$?
26688   echo "$as_me:26688: \$? = $ac_status" >&5
26689   (exit $ac_status); }; }; then
26690   ires=$i;break
26691 else
26692   echo "$as_me: failed program was:" >&5
26693 cat conftest.$ac_ext >&5
26694 fi
26695 rm -f conftest.$ac_objext conftest.$ac_ext
26696                 done
26697                 for i in $lib_dirs; do
26698                         LIBS="-L$i -lreadline  $save_LIBS"
26699                         cat >conftest.$ac_ext <<_ACEOF
26700 #line 26700 "configure"
26701 #include "confdefs.h"
26702 #include <stdio.h>
26703  #include <readline.h>
26704 #ifdef F77_DUMMY_MAIN
26705 #  ifdef __cplusplus
26706      extern "C"
26707 #  endif
26708    int F77_DUMMY_MAIN() { return 1; }
26709 #endif
26710 int
26711 main ()
26712 {
26713
26714   ;
26715   return 0;
26716 }
26717 _ACEOF
26718 rm -f conftest.$ac_objext conftest$ac_exeext
26719 if { (eval echo "$as_me:26719: \"$ac_link\"") >&5
26720   (eval $ac_link) 2>&5
26721   ac_status=$?
26722   echo "$as_me:26722: \$? = $ac_status" >&5
26723   (exit $ac_status); } &&
26724          { ac_try='test -s conftest$ac_exeext'
26725   { (eval echo "$as_me:26725: \"$ac_try\"") >&5
26726   (eval $ac_try) 2>&5
26727   ac_status=$?
26728   echo "$as_me:26728: \$? = $ac_status" >&5
26729   (exit $ac_status); }; }; then
26730   lres=$i;break
26731 else
26732   echo "$as_me: failed program was:" >&5
26733 cat conftest.$ac_ext >&5
26734 fi
26735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26736                 done
26737                 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
26738                         INCLUDE_readline="-I$ires"
26739                         LIB_readline="-L$lres -lreadline"
26740                         found=yes
26741                         echo "$as_me:26741: result: headers $ires, libraries $lres" >&5
26742 echo "${ECHO_T}headers $ires, libraries $lres" >&6
26743                 fi
26744         fi
26745         CFLAGS="$save_CFLAGS"
26746         LIBS="$save_LIBS"
26747 fi
26748
26749 if test "$found" = yes; then
26750
26751 cat >>confdefs.h <<_ACEOF
26752 #define READLINE 1
26753 _ACEOF
26754
26755         with_readline=yes
26756 else
26757         with_readline=no
26758         INCLUDE_readline=
26759         LIB_readline=
26760         echo "$as_me:26760: result: no" >&5
26761 echo "${ECHO_T}no" >&6
26762 fi
26763
26764
26765
26766
26767
26768
26769
26770 # Check whether --with-hesiod or --without-hesiod was given.
26771 if test "${with_hesiod+set}" = set; then
26772   withval="$with_hesiod"
26773
26774 fi;
26775
26776 # Check whether --with-hesiod-lib or --without-hesiod-lib was given.
26777 if test "${with_hesiod_lib+set}" = set; then
26778   withval="$with_hesiod_lib"
26779   if test "$withval" = "yes" -o "$withval" = "no"; then
26780   { { echo "$as_me:26780: error: No argument for --with-hesiod-lib" >&5
26781 echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
26782    { (exit 1); exit 1; }; }
26783 elif test "X$with_hesiod" = "X"; then
26784   with_hesiod=yes
26785 fi
26786 fi;
26787
26788 # Check whether --with-hesiod-include or --without-hesiod-include was given.
26789 if test "${with_hesiod_include+set}" = set; then
26790   withval="$with_hesiod_include"
26791   if test "$withval" = "yes" -o "$withval" = "no"; then
26792   { { echo "$as_me:26792: error: No argument for --with-hesiod-include" >&5
26793 echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
26794    { (exit 1); exit 1; }; }
26795 elif test "X$with_hesiod" = "X"; then
26796   with_hesiod=yes
26797 fi
26798 fi;
26799
26800 # Check whether --with-hesiod-config or --without-hesiod-config was given.
26801 if test "${with_hesiod_config+set}" = set; then
26802   withval="$with_hesiod_config"
26803
26804 fi;
26805
26806
26807
26808 echo "$as_me:26808: checking for hesiod" >&5
26809 echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
26810
26811 case "$with_hesiod" in
26812 yes|"") d='' ;;
26813 no)     d= ;;
26814 *)      d="$with_hesiod" ;;
26815 esac
26816
26817 header_dirs=
26818 lib_dirs=
26819 for i in $d; do
26820         if test "$with_hesiod_include" = ""; then
26821                 if test -d "$i/include/hesiod"; then
26822                         header_dirs="$header_dirs $i/include/hesiod"
26823                 fi
26824                 if test -d "$i/include"; then
26825                         header_dirs="$header_dirs $i/include"
26826                 fi
26827         fi
26828         if test "$with_hesiod_lib" = ""; then
26829                 if test -d "$i/lib$abilibdirext"; then
26830                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
26831                 fi
26832         fi
26833 done
26834
26835 if test "$with_hesiod_include"; then
26836         header_dirs="$with_hesiod_include $header_dirs"
26837 fi
26838 if test "$with_hesiod_lib"; then
26839         lib_dirs="$with_hesiod_lib $lib_dirs"
26840 fi
26841
26842 if test "$with_hesiod_config" = ""; then
26843         with_hesiod_config=''
26844 fi
26845
26846 hesiod_cflags=
26847 hesiod_libs=
26848
26849 case "$with_hesiod_config" in
26850 yes|no|"")
26851         ;;
26852 *)
26853         hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
26854         hesiod_libs="`$with_hesiod_config --libs 2>&1`"
26855         ;;
26856 esac
26857
26858 found=no
26859 if test "$with_hesiod" != no; then
26860         save_CFLAGS="$CFLAGS"
26861         save_LIBS="$LIBS"
26862         if test "$hesiod_cflags" -a "$hesiod_libs"; then
26863                 CFLAGS="$hesiod_cflags $save_CFLAGS"
26864                 LIBS="$hesiod_libs $save_LIBS"
26865                 cat >conftest.$ac_ext <<_ACEOF
26866 #line 26866 "configure"
26867 #include "confdefs.h"
26868 #include <hesiod.h>
26869 #ifdef F77_DUMMY_MAIN
26870 #  ifdef __cplusplus
26871      extern "C"
26872 #  endif
26873    int F77_DUMMY_MAIN() { return 1; }
26874 #endif
26875 int
26876 main ()
26877 {
26878
26879   ;
26880   return 0;
26881 }
26882 _ACEOF
26883 rm -f conftest.$ac_objext conftest$ac_exeext
26884 if { (eval echo "$as_me:26884: \"$ac_link\"") >&5
26885   (eval $ac_link) 2>&5
26886   ac_status=$?
26887   echo "$as_me:26887: \$? = $ac_status" >&5
26888   (exit $ac_status); } &&
26889          { ac_try='test -s conftest$ac_exeext'
26890   { (eval echo "$as_me:26890: \"$ac_try\"") >&5
26891   (eval $ac_try) 2>&5
26892   ac_status=$?
26893   echo "$as_me:26893: \$? = $ac_status" >&5
26894   (exit $ac_status); }; }; then
26895
26896                         INCLUDE_hesiod="$hesiod_cflags"
26897                         LIB_hesiod="$hesiod_libs"
26898                         echo "$as_me:26898: result: from $with_hesiod_config" >&5
26899 echo "${ECHO_T}from $with_hesiod_config" >&6
26900                         found=yes
26901 else
26902   echo "$as_me: failed program was:" >&5
26903 cat conftest.$ac_ext >&5
26904 fi
26905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26906         fi
26907         if test "$found" = no; then
26908                 ires= lres=
26909                 for i in $header_dirs; do
26910                         CFLAGS="-I$i $save_CFLAGS"
26911                         cat >conftest.$ac_ext <<_ACEOF
26912 #line 26912 "configure"
26913 #include "confdefs.h"
26914 #include <hesiod.h>
26915 #ifdef F77_DUMMY_MAIN
26916 #  ifdef __cplusplus
26917      extern "C"
26918 #  endif
26919    int F77_DUMMY_MAIN() { return 1; }
26920 #endif
26921 int
26922 main ()
26923 {
26924
26925   ;
26926   return 0;
26927 }
26928 _ACEOF
26929 rm -f conftest.$ac_objext
26930 if { (eval echo "$as_me:26930: \"$ac_compile\"") >&5
26931   (eval $ac_compile) 2>&5
26932   ac_status=$?
26933   echo "$as_me:26933: \$? = $ac_status" >&5
26934   (exit $ac_status); } &&
26935          { ac_try='test -s conftest.$ac_objext'
26936   { (eval echo "$as_me:26936: \"$ac_try\"") >&5
26937   (eval $ac_try) 2>&5
26938   ac_status=$?
26939   echo "$as_me:26939: \$? = $ac_status" >&5
26940   (exit $ac_status); }; }; then
26941   ires=$i;break
26942 else
26943   echo "$as_me: failed program was:" >&5
26944 cat conftest.$ac_ext >&5
26945 fi
26946 rm -f conftest.$ac_objext conftest.$ac_ext
26947                 done
26948                 for i in $lib_dirs; do
26949                         LIBS="-L$i -lhesiod  $save_LIBS"
26950                         cat >conftest.$ac_ext <<_ACEOF
26951 #line 26951 "configure"
26952 #include "confdefs.h"
26953 #include <hesiod.h>
26954 #ifdef F77_DUMMY_MAIN
26955 #  ifdef __cplusplus
26956      extern "C"
26957 #  endif
26958    int F77_DUMMY_MAIN() { return 1; }
26959 #endif
26960 int
26961 main ()
26962 {
26963
26964   ;
26965   return 0;
26966 }
26967 _ACEOF
26968 rm -f conftest.$ac_objext conftest$ac_exeext
26969 if { (eval echo "$as_me:26969: \"$ac_link\"") >&5
26970   (eval $ac_link) 2>&5
26971   ac_status=$?
26972   echo "$as_me:26972: \$? = $ac_status" >&5
26973   (exit $ac_status); } &&
26974          { ac_try='test -s conftest$ac_exeext'
26975   { (eval echo "$as_me:26975: \"$ac_try\"") >&5
26976   (eval $ac_try) 2>&5
26977   ac_status=$?
26978   echo "$as_me:26978: \$? = $ac_status" >&5
26979   (exit $ac_status); }; }; then
26980   lres=$i;break
26981 else
26982   echo "$as_me: failed program was:" >&5
26983 cat conftest.$ac_ext >&5
26984 fi
26985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26986                 done
26987                 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
26988                         INCLUDE_hesiod="-I$ires"
26989                         LIB_hesiod="-L$lres -lhesiod"
26990                         found=yes
26991                         echo "$as_me:26991: result: headers $ires, libraries $lres" >&5
26992 echo "${ECHO_T}headers $ires, libraries $lres" >&6
26993                 fi
26994         fi
26995         CFLAGS="$save_CFLAGS"
26996         LIBS="$save_LIBS"
26997 fi
26998
26999 if test "$found" = yes; then
27000
27001 cat >>confdefs.h <<_ACEOF
27002 #define HESIOD 1
27003 _ACEOF
27004
27005         with_hesiod=yes
27006 else
27007         with_hesiod=no
27008         INCLUDE_hesiod=
27009         LIB_hesiod=
27010         echo "$as_me:27010: result: no" >&5
27011 echo "${ECHO_T}no" >&6
27012 fi
27013
27014
27015
27016
27017
27018
27019 # Check whether --enable-bigendian or --disable-bigendian was given.
27020 if test "${enable_bigendian+set}" = set; then
27021   enableval="$enable_bigendian"
27022   krb_cv_c_bigendian=yes
27023 fi;
27024 # Check whether --enable-littleendian or --disable-littleendian was given.
27025 if test "${enable_littleendian+set}" = set; then
27026   enableval="$enable_littleendian"
27027   krb_cv_c_bigendian=no
27028 fi;
27029 echo "$as_me:27029: checking whether byte order is known at compile time" >&5
27030 echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
27031 if test "${krb_cv_c_bigendian_compile+set}" = set; then
27032   echo $ECHO_N "(cached) $ECHO_C" >&6
27033 else
27034   cat >conftest.$ac_ext <<_ACEOF
27035 #line 27035 "configure"
27036 #include "confdefs.h"
27037
27038 #include <sys/types.h>
27039 #include <sys/param.h>
27040 #ifdef F77_DUMMY_MAIN
27041 #  ifdef __cplusplus
27042      extern "C"
27043 #  endif
27044    int F77_DUMMY_MAIN() { return 1; }
27045 #endif
27046 int
27047 main ()
27048 {
27049
27050 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27051  bogus endian macros
27052 #endif
27053   ;
27054   return 0;
27055 }
27056 _ACEOF
27057 rm -f conftest.$ac_objext
27058 if { (eval echo "$as_me:27058: \"$ac_compile\"") >&5
27059   (eval $ac_compile) 2>&5
27060   ac_status=$?
27061   echo "$as_me:27061: \$? = $ac_status" >&5
27062   (exit $ac_status); } &&
27063          { ac_try='test -s conftest.$ac_objext'
27064   { (eval echo "$as_me:27064: \"$ac_try\"") >&5
27065   (eval $ac_try) 2>&5
27066   ac_status=$?
27067   echo "$as_me:27067: \$? = $ac_status" >&5
27068   (exit $ac_status); }; }; then
27069   krb_cv_c_bigendian_compile=yes
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 cat conftest.$ac_ext >&5
27073 krb_cv_c_bigendian_compile=no
27074 fi
27075 rm -f conftest.$ac_objext conftest.$ac_ext
27076 fi
27077 echo "$as_me:27077: result: $krb_cv_c_bigendian_compile" >&5
27078 echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
27079 echo "$as_me:27079: checking whether byte ordering is bigendian" >&5
27080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27081 if test "${krb_cv_c_bigendian+set}" = set; then
27082   echo $ECHO_N "(cached) $ECHO_C" >&6
27083 else
27084
27085   if test "$krb_cv_c_bigendian_compile" = "yes"; then
27086     cat >conftest.$ac_ext <<_ACEOF
27087 #line 27087 "configure"
27088 #include "confdefs.h"
27089
27090 #include <sys/types.h>
27091 #include <sys/param.h>
27092 #ifdef F77_DUMMY_MAIN
27093 #  ifdef __cplusplus
27094      extern "C"
27095 #  endif
27096    int F77_DUMMY_MAIN() { return 1; }
27097 #endif
27098 int
27099 main ()
27100 {
27101
27102 #if BYTE_ORDER != BIG_ENDIAN
27103   not big endian
27104 #endif
27105   ;
27106   return 0;
27107 }
27108 _ACEOF
27109 rm -f conftest.$ac_objext
27110 if { (eval echo "$as_me:27110: \"$ac_compile\"") >&5
27111   (eval $ac_compile) 2>&5
27112   ac_status=$?
27113   echo "$as_me:27113: \$? = $ac_status" >&5
27114   (exit $ac_status); } &&
27115          { ac_try='test -s conftest.$ac_objext'
27116   { (eval echo "$as_me:27116: \"$ac_try\"") >&5
27117   (eval $ac_try) 2>&5
27118   ac_status=$?
27119   echo "$as_me:27119: \$? = $ac_status" >&5
27120   (exit $ac_status); }; }; then
27121   krb_cv_c_bigendian=yes
27122 else
27123   echo "$as_me: failed program was:" >&5
27124 cat conftest.$ac_ext >&5
27125 krb_cv_c_bigendian=no
27126 fi
27127 rm -f conftest.$ac_objext conftest.$ac_ext
27128   else
27129     if test "$cross_compiling" = yes; then
27130   { { echo "$as_me:27130: error: specify either --enable-bigendian or --enable-littleendian" >&5
27131 echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
27132    { (exit 1); exit 1; }; }
27133 else
27134   cat >conftest.$ac_ext <<_ACEOF
27135 #line 27135 "configure"
27136 #include "confdefs.h"
27137 main () {
27138       /* Are we little or big endian?  From Harbison&Steele.  */
27139       union
27140       {
27141         long l;
27142         char c[sizeof (long)];
27143     } u;
27144     u.l = 1;
27145     exit (u.c[sizeof (long) - 1] == 1);
27146   }
27147 _ACEOF
27148 rm -f conftest$ac_exeext
27149 if { (eval echo "$as_me:27149: \"$ac_link\"") >&5
27150   (eval $ac_link) 2>&5
27151   ac_status=$?
27152   echo "$as_me:27152: \$? = $ac_status" >&5
27153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27154   { (eval echo "$as_me:27154: \"$ac_try\"") >&5
27155   (eval $ac_try) 2>&5
27156   ac_status=$?
27157   echo "$as_me:27157: \$? = $ac_status" >&5
27158   (exit $ac_status); }; }; then
27159   krb_cv_c_bigendian=no
27160 else
27161   echo "$as_me: program exited with status $ac_status" >&5
27162 echo "$as_me: failed program was:" >&5
27163 cat conftest.$ac_ext >&5
27164 ( exit $ac_status )
27165 krb_cv_c_bigendian=yes
27166 fi
27167 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27168 fi
27169   fi
27170
27171 fi
27172 echo "$as_me:27172: result: $krb_cv_c_bigendian" >&5
27173 echo "${ECHO_T}$krb_cv_c_bigendian" >&6
27174 if test "$krb_cv_c_bigendian" = "yes"; then
27175
27176 cat >>confdefs.h <<\_ACEOF
27177 #define WORDS_BIGENDIAN 1
27178 _ACEOF
27179 fi
27180 if test "$krb_cv_c_bigendian_compile" = "yes"; then
27181
27182 cat >>confdefs.h <<\_ACEOF
27183 #define ENDIANESS_IN_SYS_PARAM_H 1
27184 _ACEOF
27185 fi
27186
27187
27188
27189 echo "$as_me:27189: checking for inline" >&5
27190 echo $ECHO_N "checking for inline... $ECHO_C" >&6
27191 if test "${ac_cv_c_inline+set}" = set; then
27192   echo $ECHO_N "(cached) $ECHO_C" >&6
27193 else
27194   ac_cv_c_inline=no
27195 for ac_kw in inline __inline__ __inline; do
27196   cat >conftest.$ac_ext <<_ACEOF
27197 #line 27197 "configure"
27198 #include "confdefs.h"
27199 #ifndef __cplusplus
27200 static $ac_kw int static_foo () {return 0; }
27201 $ac_kw int foo () {return 0; }
27202 #endif
27203
27204 _ACEOF
27205 rm -f conftest.$ac_objext
27206 if { (eval echo "$as_me:27206: \"$ac_compile\"") >&5
27207   (eval $ac_compile) 2>&5
27208   ac_status=$?
27209   echo "$as_me:27209: \$? = $ac_status" >&5
27210   (exit $ac_status); } &&
27211          { ac_try='test -s conftest.$ac_objext'
27212   { (eval echo "$as_me:27212: \"$ac_try\"") >&5
27213   (eval $ac_try) 2>&5
27214   ac_status=$?
27215   echo "$as_me:27215: \$? = $ac_status" >&5
27216   (exit $ac_status); }; }; then
27217   ac_cv_c_inline=$ac_kw; break
27218 else
27219   echo "$as_me: failed program was:" >&5
27220 cat conftest.$ac_ext >&5
27221 fi
27222 rm -f conftest.$ac_objext conftest.$ac_ext
27223 done
27224
27225 fi
27226 echo "$as_me:27226: result: $ac_cv_c_inline" >&5
27227 echo "${ECHO_T}$ac_cv_c_inline" >&6
27228 case $ac_cv_c_inline in
27229   inline | yes) ;;
27230   no)
27231 cat >>confdefs.h <<\_ACEOF
27232 #define inline
27233 _ACEOF
27234  ;;
27235   *)  cat >>confdefs.h <<_ACEOF
27236 #define inline $ac_cv_c_inline
27237 _ACEOF
27238  ;;
27239 esac
27240
27241
27242
27243
27244
27245
27246 echo "$as_me:27246: checking for dlopen" >&5
27247 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
27248 if test "${ac_cv_funclib_dlopen+set}" = set; then
27249   echo $ECHO_N "(cached) $ECHO_C" >&6
27250 else
27251
27252 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
27253         ac_save_LIBS="$LIBS"
27254         for ac_lib in "" dl; do
27255                 case "$ac_lib" in
27256                 "") ;;
27257                 yes) ac_lib="" ;;
27258                 no) continue ;;
27259                 -l*) ;;
27260                 *) ac_lib="-l$ac_lib" ;;
27261                 esac
27262                 LIBS=" $ac_lib  $ac_save_LIBS"
27263                 cat >conftest.$ac_ext <<_ACEOF
27264 #line 27264 "configure"
27265 #include "confdefs.h"
27266
27267 #ifdef F77_DUMMY_MAIN
27268 #  ifdef __cplusplus
27269      extern "C"
27270 #  endif
27271    int F77_DUMMY_MAIN() { return 1; }
27272 #endif
27273 int
27274 main ()
27275 {
27276 dlopen()
27277   ;
27278   return 0;
27279 }
27280 _ACEOF
27281 rm -f conftest.$ac_objext conftest$ac_exeext
27282 if { (eval echo "$as_me:27282: \"$ac_link\"") >&5
27283   (eval $ac_link) 2>&5
27284   ac_status=$?
27285   echo "$as_me:27285: \$? = $ac_status" >&5
27286   (exit $ac_status); } &&
27287          { ac_try='test -s conftest$ac_exeext'
27288   { (eval echo "$as_me:27288: \"$ac_try\"") >&5
27289   (eval $ac_try) 2>&5
27290   ac_status=$?
27291   echo "$as_me:27291: \$? = $ac_status" >&5
27292   (exit $ac_status); }; }; then
27293   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
27294 else
27295   echo "$as_me: failed program was:" >&5
27296 cat conftest.$ac_ext >&5
27297 fi
27298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27299         done
27300         eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
27301         LIBS="$ac_save_LIBS"
27302 fi
27303
27304 fi
27305
27306
27307 eval "ac_res=\$ac_cv_funclib_dlopen"
27308
27309 if false; then
27310
27311 for ac_func in dlopen
27312 do
27313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27314 echo "$as_me:27314: checking for $ac_func" >&5
27315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27316 if eval "test \"\${$as_ac_var+set}\" = set"; then
27317   echo $ECHO_N "(cached) $ECHO_C" >&6
27318 else
27319   cat >conftest.$ac_ext <<_ACEOF
27320 #line 27320 "configure"
27321 #include "confdefs.h"
27322 /* System header to define __stub macros and hopefully few prototypes,
27323     which can conflict with char $ac_func (); below.  */
27324 #include <assert.h>
27325 /* Override any gcc2 internal prototype to avoid an error.  */
27326 #ifdef __cplusplus
27327 extern "C"
27328 #endif
27329 /* We use char because int might match the return type of a gcc2
27330    builtin and then its argument prototype would still apply.  */
27331 char $ac_func ();
27332 char (*f) ();
27333
27334 #ifdef F77_DUMMY_MAIN
27335 #  ifdef __cplusplus
27336      extern "C"
27337 #  endif
27338    int F77_DUMMY_MAIN() { return 1; }
27339 #endif
27340 int
27341 main ()
27342 {
27343 /* The GNU C library defines this for functions which it implements
27344     to always fail with ENOSYS.  Some functions are actually named
27345     something starting with __ and the normal name is an alias.  */
27346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27347 choke me
27348 #else
27349 f = $ac_func;
27350 #endif
27351
27352   ;
27353   return 0;
27354 }
27355 _ACEOF
27356 rm -f conftest.$ac_objext conftest$ac_exeext
27357 if { (eval echo "$as_me:27357: \"$ac_link\"") >&5
27358   (eval $ac_link) 2>&5
27359   ac_status=$?
27360   echo "$as_me:27360: \$? = $ac_status" >&5
27361   (exit $ac_status); } &&
27362          { ac_try='test -s conftest$ac_exeext'
27363   { (eval echo "$as_me:27363: \"$ac_try\"") >&5
27364   (eval $ac_try) 2>&5
27365   ac_status=$?
27366   echo "$as_me:27366: \$? = $ac_status" >&5
27367   (exit $ac_status); }; }; then
27368   eval "$as_ac_var=yes"
27369 else
27370   echo "$as_me: failed program was:" >&5
27371 cat conftest.$ac_ext >&5
27372 eval "$as_ac_var=no"
27373 fi
27374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27375 fi
27376 echo "$as_me:27376: result: `eval echo '${'$as_ac_var'}'`" >&5
27377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27378 if test `eval echo '${'$as_ac_var'}'` = yes; then
27379   cat >>confdefs.h <<_ACEOF
27380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27381 _ACEOF
27382
27383 fi
27384 done
27385
27386 fi
27387 # dlopen
27388 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27389 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27390 eval "LIB_dlopen=$ac_res"
27391
27392 case "$ac_res" in
27393         yes)
27394         eval "ac_cv_func_dlopen=yes"
27395         eval "LIB_dlopen="
27396         cat >>confdefs.h <<_ACEOF
27397 #define $ac_tr_func 1
27398 _ACEOF
27399
27400         echo "$as_me:27400: result: yes" >&5
27401 echo "${ECHO_T}yes" >&6
27402         ;;
27403         no)
27404         eval "ac_cv_func_dlopen=no"
27405         eval "LIB_dlopen="
27406         echo "$as_me:27406: result: no" >&5
27407 echo "${ECHO_T}no" >&6
27408         ;;
27409         *)
27410         eval "ac_cv_func_dlopen=yes"
27411         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27412         cat >>confdefs.h <<_ACEOF
27413 #define $ac_tr_func 1
27414 _ACEOF
27415
27416         cat >>confdefs.h <<_ACEOF
27417 #define $ac_tr_lib 1
27418 _ACEOF
27419
27420         echo "$as_me:27420: result: yes, in $ac_res" >&5
27421 echo "${ECHO_T}yes, in $ac_res" >&6
27422         ;;
27423 esac
27424
27425
27426
27427
27428 if test "$ac_cv_funclib_dlopen" != no; then
27429   HAVE_DLOPEN_TRUE=
27430   HAVE_DLOPEN_FALSE='#'
27431 else
27432   HAVE_DLOPEN_TRUE='#'
27433   HAVE_DLOPEN_FALSE=
27434 fi
27435
27436
27437
27438
27439 aix=no
27440 case "$host" in
27441 *-*-aix3*)
27442         aix=3
27443         ;;
27444 *-*-aix4*|*-*-aix5*)
27445         aix=4
27446         ;;
27447 esac
27448
27449
27450
27451 if test "$aix" != no; then
27452   AIX_TRUE=
27453   AIX_FALSE='#'
27454 else
27455   AIX_TRUE='#'
27456   AIX_FALSE=
27457 fi
27458
27459
27460 if test "$aix" = 4; then
27461   AIX4_TRUE=
27462   AIX4_FALSE='#'
27463 else
27464   AIX4_TRUE='#'
27465   AIX4_FALSE=
27466 fi
27467
27468
27469
27470 # Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
27471 if test "${enable_dynamic_afs+set}" = set; then
27472   enableval="$enable_dynamic_afs"
27473
27474 fi;
27475
27476 if test "$aix" != no; then
27477         if test "$enable_dynamic_afs" != no; then
27478
27479                 if test "$ac_cv_func_dlopen" = no; then
27480
27481
27482
27483 echo "$as_me:27483: checking for loadquery" >&5
27484 echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
27485 if test "${ac_cv_funclib_loadquery+set}" = set; then
27486   echo $ECHO_N "(cached) $ECHO_C" >&6
27487 else
27488
27489 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
27490         ac_save_LIBS="$LIBS"
27491         for ac_lib in "" ld; do
27492                 case "$ac_lib" in
27493                 "") ;;
27494                 yes) ac_lib="" ;;
27495                 no) continue ;;
27496                 -l*) ;;
27497                 *) ac_lib="-l$ac_lib" ;;
27498                 esac
27499                 LIBS=" $ac_lib  $ac_save_LIBS"
27500                 cat >conftest.$ac_ext <<_ACEOF
27501 #line 27501 "configure"
27502 #include "confdefs.h"
27503
27504 #ifdef F77_DUMMY_MAIN
27505 #  ifdef __cplusplus
27506      extern "C"
27507 #  endif
27508    int F77_DUMMY_MAIN() { return 1; }
27509 #endif
27510 int
27511 main ()
27512 {
27513 loadquery()
27514   ;
27515   return 0;
27516 }
27517 _ACEOF
27518 rm -f conftest.$ac_objext conftest$ac_exeext
27519 if { (eval echo "$as_me:27519: \"$ac_link\"") >&5
27520   (eval $ac_link) 2>&5
27521   ac_status=$?
27522   echo "$as_me:27522: \$? = $ac_status" >&5
27523   (exit $ac_status); } &&
27524          { ac_try='test -s conftest$ac_exeext'
27525   { (eval echo "$as_me:27525: \"$ac_try\"") >&5
27526   (eval $ac_try) 2>&5
27527   ac_status=$?
27528   echo "$as_me:27528: \$? = $ac_status" >&5
27529   (exit $ac_status); }; }; then
27530   eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
27531 else
27532   echo "$as_me: failed program was:" >&5
27533 cat conftest.$ac_ext >&5
27534 fi
27535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27536         done
27537         eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
27538         LIBS="$ac_save_LIBS"
27539 fi
27540
27541 fi
27542
27543
27544 eval "ac_res=\$ac_cv_funclib_loadquery"
27545
27546 if false; then
27547
27548 for ac_func in loadquery
27549 do
27550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27551 echo "$as_me:27551: checking for $ac_func" >&5
27552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27553 if eval "test \"\${$as_ac_var+set}\" = set"; then
27554   echo $ECHO_N "(cached) $ECHO_C" >&6
27555 else
27556   cat >conftest.$ac_ext <<_ACEOF
27557 #line 27557 "configure"
27558 #include "confdefs.h"
27559 /* System header to define __stub macros and hopefully few prototypes,
27560     which can conflict with char $ac_func (); below.  */
27561 #include <assert.h>
27562 /* Override any gcc2 internal prototype to avoid an error.  */
27563 #ifdef __cplusplus
27564 extern "C"
27565 #endif
27566 /* We use char because int might match the return type of a gcc2
27567    builtin and then its argument prototype would still apply.  */
27568 char $ac_func ();
27569 char (*f) ();
27570
27571 #ifdef F77_DUMMY_MAIN
27572 #  ifdef __cplusplus
27573      extern "C"
27574 #  endif
27575    int F77_DUMMY_MAIN() { return 1; }
27576 #endif
27577 int
27578 main ()
27579 {
27580 /* The GNU C library defines this for functions which it implements
27581     to always fail with ENOSYS.  Some functions are actually named
27582     something starting with __ and the normal name is an alias.  */
27583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27584 choke me
27585 #else
27586 f = $ac_func;
27587 #endif
27588
27589   ;
27590   return 0;
27591 }
27592 _ACEOF
27593 rm -f conftest.$ac_objext conftest$ac_exeext
27594 if { (eval echo "$as_me:27594: \"$ac_link\"") >&5
27595   (eval $ac_link) 2>&5
27596   ac_status=$?
27597   echo "$as_me:27597: \$? = $ac_status" >&5
27598   (exit $ac_status); } &&
27599          { ac_try='test -s conftest$ac_exeext'
27600   { (eval echo "$as_me:27600: \"$ac_try\"") >&5
27601   (eval $ac_try) 2>&5
27602   ac_status=$?
27603   echo "$as_me:27603: \$? = $ac_status" >&5
27604   (exit $ac_status); }; }; then
27605   eval "$as_ac_var=yes"
27606 else
27607   echo "$as_me: failed program was:" >&5
27608 cat conftest.$ac_ext >&5
27609 eval "$as_ac_var=no"
27610 fi
27611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27612 fi
27613 echo "$as_me:27613: result: `eval echo '${'$as_ac_var'}'`" >&5
27614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27615 if test `eval echo '${'$as_ac_var'}'` = yes; then
27616   cat >>confdefs.h <<_ACEOF
27617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27618 _ACEOF
27619
27620 fi
27621 done
27622
27623 fi
27624 # loadquery
27625 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27626 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27627 eval "LIB_loadquery=$ac_res"
27628
27629 case "$ac_res" in
27630         yes)
27631         eval "ac_cv_func_loadquery=yes"
27632         eval "LIB_loadquery="
27633         cat >>confdefs.h <<_ACEOF
27634 #define $ac_tr_func 1
27635 _ACEOF
27636
27637         echo "$as_me:27637: result: yes" >&5
27638 echo "${ECHO_T}yes" >&6
27639         ;;
27640         no)
27641         eval "ac_cv_func_loadquery=no"
27642         eval "LIB_loadquery="
27643         echo "$as_me:27643: result: no" >&5
27644 echo "${ECHO_T}no" >&6
27645         ;;
27646         *)
27647         eval "ac_cv_func_loadquery=yes"
27648         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27649         cat >>confdefs.h <<_ACEOF
27650 #define $ac_tr_func 1
27651 _ACEOF
27652
27653         cat >>confdefs.h <<_ACEOF
27654 #define $ac_tr_lib 1
27655 _ACEOF
27656
27657         echo "$as_me:27657: result: yes, in $ac_res" >&5
27658 echo "${ECHO_T}yes, in $ac_res" >&6
27659         ;;
27660 esac
27661
27662
27663                 fi
27664                 if test "$ac_cv_func_dlopen" != no; then
27665                         AIX_EXTRA_KAFS='$(LIB_dlopen)'
27666                 elif test "$ac_cv_func_loadquery" != no; then
27667                         AIX_EXTRA_KAFS='$(LIB_loadquery)'
27668                 else
27669                         { echo "$as_me:27669: not using dynloaded AFS library" >&5
27670 echo "$as_me: not using dynloaded AFS library" >&6;}
27671                         AIX_EXTRA_KAFS=
27672                         enable_dynamic_afs=no
27673                 fi
27674         else
27675                 AIX_EXTRA_KAFS=
27676         fi
27677 fi
27678
27679
27680
27681 if test "$enable_dynamic_afs" != no; then
27682   AIX_DYNAMIC_AFS_TRUE=
27683   AIX_DYNAMIC_AFS_FALSE='#'
27684 else
27685   AIX_DYNAMIC_AFS_TRUE='#'
27686   AIX_DYNAMIC_AFS_FALSE=
27687 fi
27688
27689
27690
27691
27692
27693
27694 irix=no
27695 case "$host" in
27696 *-*-irix4*)
27697
27698 cat >>confdefs.h <<\_ACEOF
27699 #define IRIX4 1
27700 _ACEOF
27701
27702         irix=yes
27703         ;;
27704 *-*-irix*)
27705         irix=yes
27706         ;;
27707 esac
27708
27709
27710 if test "$irix" != no; then
27711   IRIX_TRUE=
27712   IRIX_FALSE='#'
27713 else
27714   IRIX_TRUE='#'
27715   IRIX_FALSE=
27716 fi
27717
27718
27719
27720
27721
27722 sunos=no
27723 case "$host" in
27724 *-*-sunos4*)
27725         sunos=40
27726         ;;
27727 *-*-solaris2.7)
27728         sunos=57
27729         ;;
27730 *-*-solaris2.89)
27731         sunos=58
27732         ;;
27733 *-*-solaris2*)
27734         sunos=50
27735         ;;
27736 esac
27737 if test "$sunos" != no; then
27738
27739 cat >>confdefs.h <<_ACEOF
27740 #define SunOS $sunos
27741 _ACEOF
27742
27743 fi
27744
27745
27746 echo "$as_me:27746: checking for X" >&5
27747 echo $ECHO_N "checking for X... $ECHO_C" >&6
27748
27749
27750 # Check whether --with-x or --without-x was given.
27751 if test "${with_x+set}" = set; then
27752   withval="$with_x"
27753
27754 fi;
27755 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27756 if test "x$with_x" = xno; then
27757   # The user explicitly disabled X.
27758   have_x=disabled
27759 else
27760   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27761     # Both variables are already set.
27762     have_x=yes
27763   else
27764     if test "${ac_cv_have_x+set}" = set; then
27765   echo $ECHO_N "(cached) $ECHO_C" >&6
27766 else
27767   # One or both of the vars are not set, and there is no cached value.
27768 ac_x_includes=no ac_x_libraries=no
27769 rm -fr conftest.dir
27770 if mkdir conftest.dir; then
27771   cd conftest.dir
27772   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27773   cat >Imakefile <<'_ACEOF'
27774 acfindx:
27775         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27776 _ACEOF
27777   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27778     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27779     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27780     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27781     for ac_extension in a so sl; do
27782       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
27783          test -f $ac_im_libdir/libX11.$ac_extension; then
27784         ac_im_usrlibdir=$ac_im_libdir; break
27785       fi
27786     done
27787     # Screen out bogus values from the imake configuration.  They are
27788     # bogus both because they are the default anyway, and because
27789     # using them would break gcc on systems where it needs fixed includes.
27790     case $ac_im_incroot in
27791         /usr/include) ;;
27792         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27793     esac
27794     case $ac_im_usrlibdir in
27795         /usr/lib | /lib) ;;
27796         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27797     esac
27798   fi
27799   cd ..
27800   rm -fr conftest.dir
27801 fi
27802
27803 # Standard set of common directories for X headers.
27804 # Check X11 before X11Rn because it is often a symlink to the current release.
27805 ac_x_header_dirs='
27806 /usr/X11/include
27807 /usr/X11R6/include
27808 /usr/X11R5/include
27809 /usr/X11R4/include
27810
27811 /usr/include/X11
27812 /usr/include/X11R6
27813 /usr/include/X11R5
27814 /usr/include/X11R4
27815
27816 /usr/local/X11/include
27817 /usr/local/X11R6/include
27818 /usr/local/X11R5/include
27819 /usr/local/X11R4/include
27820
27821 /usr/local/include/X11
27822 /usr/local/include/X11R6
27823 /usr/local/include/X11R5
27824 /usr/local/include/X11R4
27825
27826 /usr/X386/include
27827 /usr/x386/include
27828 /usr/XFree86/include/X11
27829
27830 /usr/include
27831 /usr/local/include
27832 /usr/unsupported/include
27833 /usr/athena/include
27834 /usr/local/x11r5/include
27835 /usr/lpp/Xamples/include
27836
27837 /usr/openwin/include
27838 /usr/openwin/share/include'
27839
27840 if test "$ac_x_includes" = no; then
27841   # Guess where to find include files, by looking for Intrinsic.h.
27842   # First, try using that file with no special directory specified.
27843   cat >conftest.$ac_ext <<_ACEOF
27844 #line 27844 "configure"
27845 #include "confdefs.h"
27846 #include <X11/Intrinsic.h>
27847 _ACEOF
27848 if { (eval echo "$as_me:27848: \"$ac_cpp conftest.$ac_ext\"") >&5
27849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27850   ac_status=$?
27851   egrep -v '^ *\+' conftest.er1 >conftest.err
27852   rm -f conftest.er1
27853   cat conftest.err >&5
27854   echo "$as_me:27854: \$? = $ac_status" >&5
27855   (exit $ac_status); } >/dev/null; then
27856   if test -s conftest.err; then
27857     ac_cpp_err=$ac_c_preproc_warn_flag
27858   else
27859     ac_cpp_err=
27860   fi
27861 else
27862   ac_cpp_err=yes
27863 fi
27864 if test -z "$ac_cpp_err"; then
27865   # We can compile using X headers with no special include directory.
27866 ac_x_includes=
27867 else
27868   echo "$as_me: failed program was:" >&5
27869   cat conftest.$ac_ext >&5
27870   for ac_dir in $ac_x_header_dirs; do
27871   if test -r "$ac_dir/X11/Intrinsic.h"; then
27872     ac_x_includes=$ac_dir
27873     break
27874   fi
27875 done
27876 fi
27877 rm -f conftest.err conftest.$ac_ext
27878 fi # $ac_x_includes = no
27879
27880 if test "$ac_x_libraries" = no; then
27881   # Check for the libraries.
27882   # See if we find them without any special options.
27883   # Don't add to $LIBS permanently.
27884   ac_save_LIBS=$LIBS
27885   LIBS="-lXt $LIBS"
27886   cat >conftest.$ac_ext <<_ACEOF
27887 #line 27887 "configure"
27888 #include "confdefs.h"
27889 #include <X11/Intrinsic.h>
27890 #ifdef F77_DUMMY_MAIN
27891 #  ifdef __cplusplus
27892      extern "C"
27893 #  endif
27894    int F77_DUMMY_MAIN() { return 1; }
27895 #endif
27896 int
27897 main ()
27898 {
27899 XtMalloc (0)
27900   ;
27901   return 0;
27902 }
27903 _ACEOF
27904 rm -f conftest.$ac_objext conftest$ac_exeext
27905 if { (eval echo "$as_me:27905: \"$ac_link\"") >&5
27906   (eval $ac_link) 2>&5
27907   ac_status=$?
27908   echo "$as_me:27908: \$? = $ac_status" >&5
27909   (exit $ac_status); } &&
27910          { ac_try='test -s conftest$ac_exeext'
27911   { (eval echo "$as_me:27911: \"$ac_try\"") >&5
27912   (eval $ac_try) 2>&5
27913   ac_status=$?
27914   echo "$as_me:27914: \$? = $ac_status" >&5
27915   (exit $ac_status); }; }; then
27916   LIBS=$ac_save_LIBS
27917 # We can link X programs with no special library path.
27918 ac_x_libraries=
27919 else
27920   echo "$as_me: failed program was:" >&5
27921 cat conftest.$ac_ext >&5
27922 LIBS=$ac_save_LIBS
27923 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27924 do
27925   # Don't even attempt the hair of trying to link an X program!
27926   for ac_extension in a so sl; do
27927     if test -r $ac_dir/libXt.$ac_extension; then
27928       ac_x_libraries=$ac_dir
27929       break 2
27930     fi
27931   done
27932 done
27933 fi
27934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27935 fi # $ac_x_libraries = no
27936
27937 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27938   # Didn't find X anywhere.  Cache the known absence of X.
27939   ac_cv_have_x="have_x=no"
27940 else
27941   # Record where we found X for the cache.
27942   ac_cv_have_x="have_x=yes \
27943                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
27944 fi
27945 fi
27946
27947   fi
27948   eval "$ac_cv_have_x"
27949 fi # $with_x != no
27950
27951 if test "$have_x" != yes; then
27952   echo "$as_me:27952: result: $have_x" >&5
27953 echo "${ECHO_T}$have_x" >&6
27954   no_x=yes
27955 else
27956   # If each of the values was on the command line, it overrides each guess.
27957   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27958   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27959   # Update the cache value to reflect the command line values.
27960   ac_cv_have_x="have_x=yes \
27961                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
27962   echo "$as_me:27962: result: libraries $x_libraries, headers $x_includes" >&5
27963 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
27964 fi
27965
27966
27967 if test "$no_x" = yes; then
27968   # Not all programs may use this symbol, but it does not hurt to define it.
27969
27970 cat >>confdefs.h <<\_ACEOF
27971 #define X_DISPLAY_MISSING 1
27972 _ACEOF
27973
27974   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27975 else
27976   if test -n "$x_includes"; then
27977     X_CFLAGS="$X_CFLAGS -I$x_includes"
27978   fi
27979
27980   # It would also be nice to do this for all -L options, not just this one.
27981   if test -n "$x_libraries"; then
27982     X_LIBS="$X_LIBS -L$x_libraries"
27983     # For Solaris; some versions of Sun CC require a space after -R and
27984     # others require no space.  Words are not sufficient . . . .
27985     case `(uname -sr) 2>/dev/null` in
27986     "SunOS 5"*)
27987       echo "$as_me:27987: checking whether -R must be followed by a space" >&5
27988 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27989       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27990       cat >conftest.$ac_ext <<_ACEOF
27991 #line 27991 "configure"
27992 #include "confdefs.h"
27993
27994 #ifdef F77_DUMMY_MAIN
27995 #  ifdef __cplusplus
27996      extern "C"
27997 #  endif
27998    int F77_DUMMY_MAIN() { return 1; }
27999 #endif
28000 int
28001 main ()
28002 {
28003
28004   ;
28005   return 0;
28006 }
28007 _ACEOF
28008 rm -f conftest.$ac_objext conftest$ac_exeext
28009 if { (eval echo "$as_me:28009: \"$ac_link\"") >&5
28010   (eval $ac_link) 2>&5
28011   ac_status=$?
28012   echo "$as_me:28012: \$? = $ac_status" >&5
28013   (exit $ac_status); } &&
28014          { ac_try='test -s conftest$ac_exeext'
28015   { (eval echo "$as_me:28015: \"$ac_try\"") >&5
28016   (eval $ac_try) 2>&5
28017   ac_status=$?
28018   echo "$as_me:28018: \$? = $ac_status" >&5
28019   (exit $ac_status); }; }; then
28020   ac_R_nospace=yes
28021 else
28022   echo "$as_me: failed program was:" >&5
28023 cat conftest.$ac_ext >&5
28024 ac_R_nospace=no
28025 fi
28026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28027       if test $ac_R_nospace = yes; then
28028         echo "$as_me:28028: result: no" >&5
28029 echo "${ECHO_T}no" >&6
28030         X_LIBS="$X_LIBS -R$x_libraries"
28031       else
28032         LIBS="$ac_xsave_LIBS -R $x_libraries"
28033         cat >conftest.$ac_ext <<_ACEOF
28034 #line 28034 "configure"
28035 #include "confdefs.h"
28036
28037 #ifdef F77_DUMMY_MAIN
28038 #  ifdef __cplusplus
28039      extern "C"
28040 #  endif
28041    int F77_DUMMY_MAIN() { return 1; }
28042 #endif
28043 int
28044 main ()
28045 {
28046
28047   ;
28048   return 0;
28049 }
28050 _ACEOF
28051 rm -f conftest.$ac_objext conftest$ac_exeext
28052 if { (eval echo "$as_me:28052: \"$ac_link\"") >&5
28053   (eval $ac_link) 2>&5
28054   ac_status=$?
28055   echo "$as_me:28055: \$? = $ac_status" >&5
28056   (exit $ac_status); } &&
28057          { ac_try='test -s conftest$ac_exeext'
28058   { (eval echo "$as_me:28058: \"$ac_try\"") >&5
28059   (eval $ac_try) 2>&5
28060   ac_status=$?
28061   echo "$as_me:28061: \$? = $ac_status" >&5
28062   (exit $ac_status); }; }; then
28063   ac_R_space=yes
28064 else
28065   echo "$as_me: failed program was:" >&5
28066 cat conftest.$ac_ext >&5
28067 ac_R_space=no
28068 fi
28069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28070         if test $ac_R_space = yes; then
28071           echo "$as_me:28071: result: yes" >&5
28072 echo "${ECHO_T}yes" >&6
28073           X_LIBS="$X_LIBS -R $x_libraries"
28074         else
28075           echo "$as_me:28075: result: neither works" >&5
28076 echo "${ECHO_T}neither works" >&6
28077         fi
28078       fi
28079       LIBS=$ac_xsave_LIBS
28080     esac
28081   fi
28082
28083   # Check for system-dependent libraries X programs must link with.
28084   # Do this before checking for the system-independent R6 libraries
28085   # (-lICE), since we may need -lsocket or whatever for X linking.
28086
28087   if test "$ISC" = yes; then
28088     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28089   else
28090     # Martyn Johnson says this is needed for Ultrix, if the X
28091     # libraries were built with DECnet support.  And Karl Berry says
28092     # the Alpha needs dnet_stub (dnet does not exist).
28093     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28094     cat >conftest.$ac_ext <<_ACEOF
28095 #line 28095 "configure"
28096 #include "confdefs.h"
28097
28098 /* Override any gcc2 internal prototype to avoid an error.  */
28099 #ifdef __cplusplus
28100 extern "C"
28101 #endif
28102 /* We use char because int might match the return type of a gcc2
28103    builtin and then its argument prototype would still apply.  */
28104 char XOpenDisplay ();
28105 #ifdef F77_DUMMY_MAIN
28106 #  ifdef __cplusplus
28107      extern "C"
28108 #  endif
28109    int F77_DUMMY_MAIN() { return 1; }
28110 #endif
28111 int
28112 main ()
28113 {
28114 XOpenDisplay ();
28115   ;
28116   return 0;
28117 }
28118 _ACEOF
28119 rm -f conftest.$ac_objext conftest$ac_exeext
28120 if { (eval echo "$as_me:28120: \"$ac_link\"") >&5
28121   (eval $ac_link) 2>&5
28122   ac_status=$?
28123   echo "$as_me:28123: \$? = $ac_status" >&5
28124   (exit $ac_status); } &&
28125          { ac_try='test -s conftest$ac_exeext'
28126   { (eval echo "$as_me:28126: \"$ac_try\"") >&5
28127   (eval $ac_try) 2>&5
28128   ac_status=$?
28129   echo "$as_me:28129: \$? = $ac_status" >&5
28130   (exit $ac_status); }; }; then
28131   :
28132 else
28133   echo "$as_me: failed program was:" >&5
28134 cat conftest.$ac_ext >&5
28135 echo "$as_me:28135: checking for dnet_ntoa in -ldnet" >&5
28136 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28137 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28138   echo $ECHO_N "(cached) $ECHO_C" >&6
28139 else
28140   ac_check_lib_save_LIBS=$LIBS
28141 LIBS="-ldnet  $LIBS"
28142 cat >conftest.$ac_ext <<_ACEOF
28143 #line 28143 "configure"
28144 #include "confdefs.h"
28145
28146 /* Override any gcc2 internal prototype to avoid an error.  */
28147 #ifdef __cplusplus
28148 extern "C"
28149 #endif
28150 /* We use char because int might match the return type of a gcc2
28151    builtin and then its argument prototype would still apply.  */
28152 char dnet_ntoa ();
28153 #ifdef F77_DUMMY_MAIN
28154 #  ifdef __cplusplus
28155      extern "C"
28156 #  endif
28157    int F77_DUMMY_MAIN() { return 1; }
28158 #endif
28159 int
28160 main ()
28161 {
28162 dnet_ntoa ();
28163   ;
28164   return 0;
28165 }
28166 _ACEOF
28167 rm -f conftest.$ac_objext conftest$ac_exeext
28168 if { (eval echo "$as_me:28168: \"$ac_link\"") >&5
28169   (eval $ac_link) 2>&5
28170   ac_status=$?
28171   echo "$as_me:28171: \$? = $ac_status" >&5
28172   (exit $ac_status); } &&
28173          { ac_try='test -s conftest$ac_exeext'
28174   { (eval echo "$as_me:28174: \"$ac_try\"") >&5
28175   (eval $ac_try) 2>&5
28176   ac_status=$?
28177   echo "$as_me:28177: \$? = $ac_status" >&5
28178   (exit $ac_status); }; }; then
28179   ac_cv_lib_dnet_dnet_ntoa=yes
28180 else
28181   echo "$as_me: failed program was:" >&5
28182 cat conftest.$ac_ext >&5
28183 ac_cv_lib_dnet_dnet_ntoa=no
28184 fi
28185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28186 LIBS=$ac_check_lib_save_LIBS
28187 fi
28188 echo "$as_me:28188: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28189 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28190 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28191   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28192 fi
28193
28194     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28195       echo "$as_me:28195: checking for dnet_ntoa in -ldnet_stub" >&5
28196 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28197 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28198   echo $ECHO_N "(cached) $ECHO_C" >&6
28199 else
28200   ac_check_lib_save_LIBS=$LIBS
28201 LIBS="-ldnet_stub  $LIBS"
28202 cat >conftest.$ac_ext <<_ACEOF
28203 #line 28203 "configure"
28204 #include "confdefs.h"
28205
28206 /* Override any gcc2 internal prototype to avoid an error.  */
28207 #ifdef __cplusplus
28208 extern "C"
28209 #endif
28210 /* We use char because int might match the return type of a gcc2
28211    builtin and then its argument prototype would still apply.  */
28212 char dnet_ntoa ();
28213 #ifdef F77_DUMMY_MAIN
28214 #  ifdef __cplusplus
28215      extern "C"
28216 #  endif
28217    int F77_DUMMY_MAIN() { return 1; }
28218 #endif
28219 int
28220 main ()
28221 {
28222 dnet_ntoa ();
28223   ;
28224   return 0;
28225 }
28226 _ACEOF
28227 rm -f conftest.$ac_objext conftest$ac_exeext
28228 if { (eval echo "$as_me:28228: \"$ac_link\"") >&5
28229   (eval $ac_link) 2>&5
28230   ac_status=$?
28231   echo "$as_me:28231: \$? = $ac_status" >&5
28232   (exit $ac_status); } &&
28233          { ac_try='test -s conftest$ac_exeext'
28234   { (eval echo "$as_me:28234: \"$ac_try\"") >&5
28235   (eval $ac_try) 2>&5
28236   ac_status=$?
28237   echo "$as_me:28237: \$? = $ac_status" >&5
28238   (exit $ac_status); }; }; then
28239   ac_cv_lib_dnet_stub_dnet_ntoa=yes
28240 else
28241   echo "$as_me: failed program was:" >&5
28242 cat conftest.$ac_ext >&5
28243 ac_cv_lib_dnet_stub_dnet_ntoa=no
28244 fi
28245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28246 LIBS=$ac_check_lib_save_LIBS
28247 fi
28248 echo "$as_me:28248: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28249 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28250 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28251   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28252 fi
28253
28254     fi
28255 fi
28256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28257     LIBS="$ac_xsave_LIBS"
28258
28259     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28260     # to get the SysV transport functions.
28261     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28262     # needs -lnsl.
28263     # The nsl library prevents programs from opening the X display
28264     # on Irix 5.2, according to T.E. Dickey.
28265     # The functions gethostbyname, getservbyname, and inet_addr are
28266     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28267     echo "$as_me:28267: checking for gethostbyname" >&5
28268 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28269 if test "${ac_cv_func_gethostbyname+set}" = set; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272   cat >conftest.$ac_ext <<_ACEOF
28273 #line 28273 "configure"
28274 #include "confdefs.h"
28275 /* System header to define __stub macros and hopefully few prototypes,
28276     which can conflict with char gethostbyname (); below.  */
28277 #include <assert.h>
28278 /* Override any gcc2 internal prototype to avoid an error.  */
28279 #ifdef __cplusplus
28280 extern "C"
28281 #endif
28282 /* We use char because int might match the return type of a gcc2
28283    builtin and then its argument prototype would still apply.  */
28284 char gethostbyname ();
28285 char (*f) ();
28286
28287 #ifdef F77_DUMMY_MAIN
28288 #  ifdef __cplusplus
28289      extern "C"
28290 #  endif
28291    int F77_DUMMY_MAIN() { return 1; }
28292 #endif
28293 int
28294 main ()
28295 {
28296 /* The GNU C library defines this for functions which it implements
28297     to always fail with ENOSYS.  Some functions are actually named
28298     something starting with __ and the normal name is an alias.  */
28299 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28300 choke me
28301 #else
28302 f = gethostbyname;
28303 #endif
28304
28305   ;
28306   return 0;
28307 }
28308 _ACEOF
28309 rm -f conftest.$ac_objext conftest$ac_exeext
28310 if { (eval echo "$as_me:28310: \"$ac_link\"") >&5
28311   (eval $ac_link) 2>&5
28312   ac_status=$?
28313   echo "$as_me:28313: \$? = $ac_status" >&5
28314   (exit $ac_status); } &&
28315          { ac_try='test -s conftest$ac_exeext'
28316   { (eval echo "$as_me:28316: \"$ac_try\"") >&5
28317   (eval $ac_try) 2>&5
28318   ac_status=$?
28319   echo "$as_me:28319: \$? = $ac_status" >&5
28320   (exit $ac_status); }; }; then
28321   ac_cv_func_gethostbyname=yes
28322 else
28323   echo "$as_me: failed program was:" >&5
28324 cat conftest.$ac_ext >&5
28325 ac_cv_func_gethostbyname=no
28326 fi
28327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28328 fi
28329 echo "$as_me:28329: result: $ac_cv_func_gethostbyname" >&5
28330 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28331
28332     if test $ac_cv_func_gethostbyname = no; then
28333       echo "$as_me:28333: checking for gethostbyname in -lnsl" >&5
28334 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28335 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28336   echo $ECHO_N "(cached) $ECHO_C" >&6
28337 else
28338   ac_check_lib_save_LIBS=$LIBS
28339 LIBS="-lnsl  $LIBS"
28340 cat >conftest.$ac_ext <<_ACEOF
28341 #line 28341 "configure"
28342 #include "confdefs.h"
28343
28344 /* Override any gcc2 internal prototype to avoid an error.  */
28345 #ifdef __cplusplus
28346 extern "C"
28347 #endif
28348 /* We use char because int might match the return type of a gcc2
28349    builtin and then its argument prototype would still apply.  */
28350 char gethostbyname ();
28351 #ifdef F77_DUMMY_MAIN
28352 #  ifdef __cplusplus
28353      extern "C"
28354 #  endif
28355    int F77_DUMMY_MAIN() { return 1; }
28356 #endif
28357 int
28358 main ()
28359 {
28360 gethostbyname ();
28361   ;
28362   return 0;
28363 }
28364 _ACEOF
28365 rm -f conftest.$ac_objext conftest$ac_exeext
28366 if { (eval echo "$as_me:28366: \"$ac_link\"") >&5
28367   (eval $ac_link) 2>&5
28368   ac_status=$?
28369   echo "$as_me:28369: \$? = $ac_status" >&5
28370   (exit $ac_status); } &&
28371          { ac_try='test -s conftest$ac_exeext'
28372   { (eval echo "$as_me:28372: \"$ac_try\"") >&5
28373   (eval $ac_try) 2>&5
28374   ac_status=$?
28375   echo "$as_me:28375: \$? = $ac_status" >&5
28376   (exit $ac_status); }; }; then
28377   ac_cv_lib_nsl_gethostbyname=yes
28378 else
28379   echo "$as_me: failed program was:" >&5
28380 cat conftest.$ac_ext >&5
28381 ac_cv_lib_nsl_gethostbyname=no
28382 fi
28383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28384 LIBS=$ac_check_lib_save_LIBS
28385 fi
28386 echo "$as_me:28386: result: $ac_cv_lib_nsl_gethostbyname" >&5
28387 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28388 if test $ac_cv_lib_nsl_gethostbyname = yes; then
28389   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28390 fi
28391
28392       if test $ac_cv_lib_nsl_gethostbyname = no; then
28393         echo "$as_me:28393: checking for gethostbyname in -lbsd" >&5
28394 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28395 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28396   echo $ECHO_N "(cached) $ECHO_C" >&6
28397 else
28398   ac_check_lib_save_LIBS=$LIBS
28399 LIBS="-lbsd  $LIBS"
28400 cat >conftest.$ac_ext <<_ACEOF
28401 #line 28401 "configure"
28402 #include "confdefs.h"
28403
28404 /* Override any gcc2 internal prototype to avoid an error.  */
28405 #ifdef __cplusplus
28406 extern "C"
28407 #endif
28408 /* We use char because int might match the return type of a gcc2
28409    builtin and then its argument prototype would still apply.  */
28410 char gethostbyname ();
28411 #ifdef F77_DUMMY_MAIN
28412 #  ifdef __cplusplus
28413      extern "C"
28414 #  endif
28415    int F77_DUMMY_MAIN() { return 1; }
28416 #endif
28417 int
28418 main ()
28419 {
28420 gethostbyname ();
28421   ;
28422   return 0;
28423 }
28424 _ACEOF
28425 rm -f conftest.$ac_objext conftest$ac_exeext
28426 if { (eval echo "$as_me:28426: \"$ac_link\"") >&5
28427   (eval $ac_link) 2>&5
28428   ac_status=$?
28429   echo "$as_me:28429: \$? = $ac_status" >&5
28430   (exit $ac_status); } &&
28431          { ac_try='test -s conftest$ac_exeext'
28432   { (eval echo "$as_me:28432: \"$ac_try\"") >&5
28433   (eval $ac_try) 2>&5
28434   ac_status=$?
28435   echo "$as_me:28435: \$? = $ac_status" >&5
28436   (exit $ac_status); }; }; then
28437   ac_cv_lib_bsd_gethostbyname=yes
28438 else
28439   echo "$as_me: failed program was:" >&5
28440 cat conftest.$ac_ext >&5
28441 ac_cv_lib_bsd_gethostbyname=no
28442 fi
28443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28444 LIBS=$ac_check_lib_save_LIBS
28445 fi
28446 echo "$as_me:28446: result: $ac_cv_lib_bsd_gethostbyname" >&5
28447 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28448 if test $ac_cv_lib_bsd_gethostbyname = yes; then
28449   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28450 fi
28451
28452       fi
28453     fi
28454
28455     # lieder@skyler.mavd.honeywell.com says without -lsocket,
28456     # socket/setsockopt and other routines are undefined under SCO ODT
28457     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
28458     # on later versions), says Simon Leinen: it contains gethostby*
28459     # variants that don't use the nameserver (or something).  -lsocket
28460     # must be given before -lnsl if both are needed.  We assume that
28461     # if connect needs -lnsl, so does gethostbyname.
28462     echo "$as_me:28462: checking for connect" >&5
28463 echo $ECHO_N "checking for connect... $ECHO_C" >&6
28464 if test "${ac_cv_func_connect+set}" = set; then
28465   echo $ECHO_N "(cached) $ECHO_C" >&6
28466 else
28467   cat >conftest.$ac_ext <<_ACEOF
28468 #line 28468 "configure"
28469 #include "confdefs.h"
28470 /* System header to define __stub macros and hopefully few prototypes,
28471     which can conflict with char connect (); below.  */
28472 #include <assert.h>
28473 /* Override any gcc2 internal prototype to avoid an error.  */
28474 #ifdef __cplusplus
28475 extern "C"
28476 #endif
28477 /* We use char because int might match the return type of a gcc2
28478    builtin and then its argument prototype would still apply.  */
28479 char connect ();
28480 char (*f) ();
28481
28482 #ifdef F77_DUMMY_MAIN
28483 #  ifdef __cplusplus
28484      extern "C"
28485 #  endif
28486    int F77_DUMMY_MAIN() { return 1; }
28487 #endif
28488 int
28489 main ()
28490 {
28491 /* The GNU C library defines this for functions which it implements
28492     to always fail with ENOSYS.  Some functions are actually named
28493     something starting with __ and the normal name is an alias.  */
28494 #if defined (__stub_connect) || defined (__stub___connect)
28495 choke me
28496 #else
28497 f = connect;
28498 #endif
28499
28500   ;
28501   return 0;
28502 }
28503 _ACEOF
28504 rm -f conftest.$ac_objext conftest$ac_exeext
28505 if { (eval echo "$as_me:28505: \"$ac_link\"") >&5
28506   (eval $ac_link) 2>&5
28507   ac_status=$?
28508   echo "$as_me:28508: \$? = $ac_status" >&5
28509   (exit $ac_status); } &&
28510          { ac_try='test -s conftest$ac_exeext'
28511   { (eval echo "$as_me:28511: \"$ac_try\"") >&5
28512   (eval $ac_try) 2>&5
28513   ac_status=$?
28514   echo "$as_me:28514: \$? = $ac_status" >&5
28515   (exit $ac_status); }; }; then
28516   ac_cv_func_connect=yes
28517 else
28518   echo "$as_me: failed program was:" >&5
28519 cat conftest.$ac_ext >&5
28520 ac_cv_func_connect=no
28521 fi
28522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28523 fi
28524 echo "$as_me:28524: result: $ac_cv_func_connect" >&5
28525 echo "${ECHO_T}$ac_cv_func_connect" >&6
28526
28527     if test $ac_cv_func_connect = no; then
28528       echo "$as_me:28528: checking for connect in -lsocket" >&5
28529 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28530 if test "${ac_cv_lib_socket_connect+set}" = set; then
28531   echo $ECHO_N "(cached) $ECHO_C" >&6
28532 else
28533   ac_check_lib_save_LIBS=$LIBS
28534 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28535 cat >conftest.$ac_ext <<_ACEOF
28536 #line 28536 "configure"
28537 #include "confdefs.h"
28538
28539 /* Override any gcc2 internal prototype to avoid an error.  */
28540 #ifdef __cplusplus
28541 extern "C"
28542 #endif
28543 /* We use char because int might match the return type of a gcc2
28544    builtin and then its argument prototype would still apply.  */
28545 char connect ();
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 connect ();
28556   ;
28557   return 0;
28558 }
28559 _ACEOF
28560 rm -f conftest.$ac_objext conftest$ac_exeext
28561 if { (eval echo "$as_me:28561: \"$ac_link\"") >&5
28562   (eval $ac_link) 2>&5
28563   ac_status=$?
28564   echo "$as_me:28564: \$? = $ac_status" >&5
28565   (exit $ac_status); } &&
28566          { ac_try='test -s conftest$ac_exeext'
28567   { (eval echo "$as_me:28567: \"$ac_try\"") >&5
28568   (eval $ac_try) 2>&5
28569   ac_status=$?
28570   echo "$as_me:28570: \$? = $ac_status" >&5
28571   (exit $ac_status); }; }; then
28572   ac_cv_lib_socket_connect=yes
28573 else
28574   echo "$as_me: failed program was:" >&5
28575 cat conftest.$ac_ext >&5
28576 ac_cv_lib_socket_connect=no
28577 fi
28578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28579 LIBS=$ac_check_lib_save_LIBS
28580 fi
28581 echo "$as_me:28581: result: $ac_cv_lib_socket_connect" >&5
28582 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28583 if test $ac_cv_lib_socket_connect = yes; then
28584   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28585 fi
28586
28587     fi
28588
28589     # Guillermo Gomez says -lposix is necessary on A/UX.
28590     echo "$as_me:28590: checking for remove" >&5
28591 echo $ECHO_N "checking for remove... $ECHO_C" >&6
28592 if test "${ac_cv_func_remove+set}" = set; then
28593   echo $ECHO_N "(cached) $ECHO_C" >&6
28594 else
28595   cat >conftest.$ac_ext <<_ACEOF
28596 #line 28596 "configure"
28597 #include "confdefs.h"
28598 /* System header to define __stub macros and hopefully few prototypes,
28599     which can conflict with char remove (); below.  */
28600 #include <assert.h>
28601 /* Override any gcc2 internal prototype to avoid an error.  */
28602 #ifdef __cplusplus
28603 extern "C"
28604 #endif
28605 /* We use char because int might match the return type of a gcc2
28606    builtin and then its argument prototype would still apply.  */
28607 char remove ();
28608 char (*f) ();
28609
28610 #ifdef F77_DUMMY_MAIN
28611 #  ifdef __cplusplus
28612      extern "C"
28613 #  endif
28614    int F77_DUMMY_MAIN() { return 1; }
28615 #endif
28616 int
28617 main ()
28618 {
28619 /* The GNU C library defines this for functions which it implements
28620     to always fail with ENOSYS.  Some functions are actually named
28621     something starting with __ and the normal name is an alias.  */
28622 #if defined (__stub_remove) || defined (__stub___remove)
28623 choke me
28624 #else
28625 f = remove;
28626 #endif
28627
28628   ;
28629   return 0;
28630 }
28631 _ACEOF
28632 rm -f conftest.$ac_objext conftest$ac_exeext
28633 if { (eval echo "$as_me:28633: \"$ac_link\"") >&5
28634   (eval $ac_link) 2>&5
28635   ac_status=$?
28636   echo "$as_me:28636: \$? = $ac_status" >&5
28637   (exit $ac_status); } &&
28638          { ac_try='test -s conftest$ac_exeext'
28639   { (eval echo "$as_me:28639: \"$ac_try\"") >&5
28640   (eval $ac_try) 2>&5
28641   ac_status=$?
28642   echo "$as_me:28642: \$? = $ac_status" >&5
28643   (exit $ac_status); }; }; then
28644   ac_cv_func_remove=yes
28645 else
28646   echo "$as_me: failed program was:" >&5
28647 cat conftest.$ac_ext >&5
28648 ac_cv_func_remove=no
28649 fi
28650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28651 fi
28652 echo "$as_me:28652: result: $ac_cv_func_remove" >&5
28653 echo "${ECHO_T}$ac_cv_func_remove" >&6
28654
28655     if test $ac_cv_func_remove = no; then
28656       echo "$as_me:28656: checking for remove in -lposix" >&5
28657 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28658 if test "${ac_cv_lib_posix_remove+set}" = set; then
28659   echo $ECHO_N "(cached) $ECHO_C" >&6
28660 else
28661   ac_check_lib_save_LIBS=$LIBS
28662 LIBS="-lposix  $LIBS"
28663 cat >conftest.$ac_ext <<_ACEOF
28664 #line 28664 "configure"
28665 #include "confdefs.h"
28666
28667 /* Override any gcc2 internal prototype to avoid an error.  */
28668 #ifdef __cplusplus
28669 extern "C"
28670 #endif
28671 /* We use char because int might match the return type of a gcc2
28672    builtin and then its argument prototype would still apply.  */
28673 char remove ();
28674 #ifdef F77_DUMMY_MAIN
28675 #  ifdef __cplusplus
28676      extern "C"
28677 #  endif
28678    int F77_DUMMY_MAIN() { return 1; }
28679 #endif
28680 int
28681 main ()
28682 {
28683 remove ();
28684   ;
28685   return 0;
28686 }
28687 _ACEOF
28688 rm -f conftest.$ac_objext conftest$ac_exeext
28689 if { (eval echo "$as_me:28689: \"$ac_link\"") >&5
28690   (eval $ac_link) 2>&5
28691   ac_status=$?
28692   echo "$as_me:28692: \$? = $ac_status" >&5
28693   (exit $ac_status); } &&
28694          { ac_try='test -s conftest$ac_exeext'
28695   { (eval echo "$as_me:28695: \"$ac_try\"") >&5
28696   (eval $ac_try) 2>&5
28697   ac_status=$?
28698   echo "$as_me:28698: \$? = $ac_status" >&5
28699   (exit $ac_status); }; }; then
28700   ac_cv_lib_posix_remove=yes
28701 else
28702   echo "$as_me: failed program was:" >&5
28703 cat conftest.$ac_ext >&5
28704 ac_cv_lib_posix_remove=no
28705 fi
28706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28707 LIBS=$ac_check_lib_save_LIBS
28708 fi
28709 echo "$as_me:28709: result: $ac_cv_lib_posix_remove" >&5
28710 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28711 if test $ac_cv_lib_posix_remove = yes; then
28712   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28713 fi
28714
28715     fi
28716
28717     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28718     echo "$as_me:28718: checking for shmat" >&5
28719 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28720 if test "${ac_cv_func_shmat+set}" = set; then
28721   echo $ECHO_N "(cached) $ECHO_C" >&6
28722 else
28723   cat >conftest.$ac_ext <<_ACEOF
28724 #line 28724 "configure"
28725 #include "confdefs.h"
28726 /* System header to define __stub macros and hopefully few prototypes,
28727     which can conflict with char shmat (); below.  */
28728 #include <assert.h>
28729 /* Override any gcc2 internal prototype to avoid an error.  */
28730 #ifdef __cplusplus
28731 extern "C"
28732 #endif
28733 /* We use char because int might match the return type of a gcc2
28734    builtin and then its argument prototype would still apply.  */
28735 char shmat ();
28736 char (*f) ();
28737
28738 #ifdef F77_DUMMY_MAIN
28739 #  ifdef __cplusplus
28740      extern "C"
28741 #  endif
28742    int F77_DUMMY_MAIN() { return 1; }
28743 #endif
28744 int
28745 main ()
28746 {
28747 /* The GNU C library defines this for functions which it implements
28748     to always fail with ENOSYS.  Some functions are actually named
28749     something starting with __ and the normal name is an alias.  */
28750 #if defined (__stub_shmat) || defined (__stub___shmat)
28751 choke me
28752 #else
28753 f = shmat;
28754 #endif
28755
28756   ;
28757   return 0;
28758 }
28759 _ACEOF
28760 rm -f conftest.$ac_objext conftest$ac_exeext
28761 if { (eval echo "$as_me:28761: \"$ac_link\"") >&5
28762   (eval $ac_link) 2>&5
28763   ac_status=$?
28764   echo "$as_me:28764: \$? = $ac_status" >&5
28765   (exit $ac_status); } &&
28766          { ac_try='test -s conftest$ac_exeext'
28767   { (eval echo "$as_me:28767: \"$ac_try\"") >&5
28768   (eval $ac_try) 2>&5
28769   ac_status=$?
28770   echo "$as_me:28770: \$? = $ac_status" >&5
28771   (exit $ac_status); }; }; then
28772   ac_cv_func_shmat=yes
28773 else
28774   echo "$as_me: failed program was:" >&5
28775 cat conftest.$ac_ext >&5
28776 ac_cv_func_shmat=no
28777 fi
28778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28779 fi
28780 echo "$as_me:28780: result: $ac_cv_func_shmat" >&5
28781 echo "${ECHO_T}$ac_cv_func_shmat" >&6
28782
28783     if test $ac_cv_func_shmat = no; then
28784       echo "$as_me:28784: checking for shmat in -lipc" >&5
28785 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28786 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28787   echo $ECHO_N "(cached) $ECHO_C" >&6
28788 else
28789   ac_check_lib_save_LIBS=$LIBS
28790 LIBS="-lipc  $LIBS"
28791 cat >conftest.$ac_ext <<_ACEOF
28792 #line 28792 "configure"
28793 #include "confdefs.h"
28794
28795 /* Override any gcc2 internal prototype to avoid an error.  */
28796 #ifdef __cplusplus
28797 extern "C"
28798 #endif
28799 /* We use char because int might match the return type of a gcc2
28800    builtin and then its argument prototype would still apply.  */
28801 char shmat ();
28802 #ifdef F77_DUMMY_MAIN
28803 #  ifdef __cplusplus
28804      extern "C"
28805 #  endif
28806    int F77_DUMMY_MAIN() { return 1; }
28807 #endif
28808 int
28809 main ()
28810 {
28811 shmat ();
28812   ;
28813   return 0;
28814 }
28815 _ACEOF
28816 rm -f conftest.$ac_objext conftest$ac_exeext
28817 if { (eval echo "$as_me:28817: \"$ac_link\"") >&5
28818   (eval $ac_link) 2>&5
28819   ac_status=$?
28820   echo "$as_me:28820: \$? = $ac_status" >&5
28821   (exit $ac_status); } &&
28822          { ac_try='test -s conftest$ac_exeext'
28823   { (eval echo "$as_me:28823: \"$ac_try\"") >&5
28824   (eval $ac_try) 2>&5
28825   ac_status=$?
28826   echo "$as_me:28826: \$? = $ac_status" >&5
28827   (exit $ac_status); }; }; then
28828   ac_cv_lib_ipc_shmat=yes
28829 else
28830   echo "$as_me: failed program was:" >&5
28831 cat conftest.$ac_ext >&5
28832 ac_cv_lib_ipc_shmat=no
28833 fi
28834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28835 LIBS=$ac_check_lib_save_LIBS
28836 fi
28837 echo "$as_me:28837: result: $ac_cv_lib_ipc_shmat" >&5
28838 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28839 if test $ac_cv_lib_ipc_shmat = yes; then
28840   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28841 fi
28842
28843     fi
28844   fi
28845
28846   # Check for libraries that X11R6 Xt/Xaw programs need.
28847   ac_save_LDFLAGS=$LDFLAGS
28848   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28849   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28850   # check for ICE first), but we must link in the order -lSM -lICE or
28851   # we get undefined symbols.  So assume we have SM if we have ICE.
28852   # These have to be linked with before -lX11, unlike the other
28853   # libraries we check for below, so use a different variable.
28854   # John Interrante, Karl Berry
28855   echo "$as_me:28855: checking for IceConnectionNumber in -lICE" >&5
28856 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28857 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28858   echo $ECHO_N "(cached) $ECHO_C" >&6
28859 else
28860   ac_check_lib_save_LIBS=$LIBS
28861 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28862 cat >conftest.$ac_ext <<_ACEOF
28863 #line 28863 "configure"
28864 #include "confdefs.h"
28865
28866 /* Override any gcc2 internal prototype to avoid an error.  */
28867 #ifdef __cplusplus
28868 extern "C"
28869 #endif
28870 /* We use char because int might match the return type of a gcc2
28871    builtin and then its argument prototype would still apply.  */
28872 char IceConnectionNumber ();
28873 #ifdef F77_DUMMY_MAIN
28874 #  ifdef __cplusplus
28875      extern "C"
28876 #  endif
28877    int F77_DUMMY_MAIN() { return 1; }
28878 #endif
28879 int
28880 main ()
28881 {
28882 IceConnectionNumber ();
28883   ;
28884   return 0;
28885 }
28886 _ACEOF
28887 rm -f conftest.$ac_objext conftest$ac_exeext
28888 if { (eval echo "$as_me:28888: \"$ac_link\"") >&5
28889   (eval $ac_link) 2>&5
28890   ac_status=$?
28891   echo "$as_me:28891: \$? = $ac_status" >&5
28892   (exit $ac_status); } &&
28893          { ac_try='test -s conftest$ac_exeext'
28894   { (eval echo "$as_me:28894: \"$ac_try\"") >&5
28895   (eval $ac_try) 2>&5
28896   ac_status=$?
28897   echo "$as_me:28897: \$? = $ac_status" >&5
28898   (exit $ac_status); }; }; then
28899   ac_cv_lib_ICE_IceConnectionNumber=yes
28900 else
28901   echo "$as_me: failed program was:" >&5
28902 cat conftest.$ac_ext >&5
28903 ac_cv_lib_ICE_IceConnectionNumber=no
28904 fi
28905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28906 LIBS=$ac_check_lib_save_LIBS
28907 fi
28908 echo "$as_me:28908: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28909 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28910 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28911   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28912 fi
28913
28914   LDFLAGS=$ac_save_LDFLAGS
28915
28916 fi
28917
28918
28919 # try to figure out if we need any additional ld flags, like -R
28920 # and yes, the autoconf X test is utterly broken
28921 if test "$no_x" != yes; then
28922         echo "$as_me:28922: checking for special X linker flags" >&5
28923 echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
28924 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
28925   echo $ECHO_N "(cached) $ECHO_C" >&6
28926 else
28927
28928         ac_save_libs="$LIBS"
28929         ac_save_cflags="$CFLAGS"
28930         CFLAGS="$CFLAGS $X_CFLAGS"
28931         krb_cv_sys_x_libs_rpath=""
28932         krb_cv_sys_x_libs=""
28933         for rflag in "" "-R" "-R " "-rpath "; do
28934                 if test "$rflag" = ""; then
28935                         foo="$X_LIBS"
28936                 else
28937                         foo=""
28938                         for flag in $X_LIBS; do
28939                         case $flag in
28940                         -L*)
28941                                 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
28942                                 ;;
28943                         *)
28944                                 foo="$foo $flag"
28945                                 ;;
28946                         esac
28947                         done
28948                 fi
28949                 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28950                 if test "$cross_compiling" = yes; then
28951   { { echo "$as_me:28951: error: cannot run test program while cross compiling" >&5
28952 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28953    { (exit 1); exit 1; }; }
28954 else
28955   cat >conftest.$ac_ext <<_ACEOF
28956 #line 28956 "configure"
28957 #include "confdefs.h"
28958
28959                 #include <X11/Xlib.h>
28960                 foo()
28961                 {
28962                 XOpenDisplay(NULL);
28963                 }
28964                 main()
28965                 {
28966                 return 0;
28967                 }
28968
28969 _ACEOF
28970 rm -f conftest$ac_exeext
28971 if { (eval echo "$as_me:28971: \"$ac_link\"") >&5
28972   (eval $ac_link) 2>&5
28973   ac_status=$?
28974   echo "$as_me:28974: \$? = $ac_status" >&5
28975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28976   { (eval echo "$as_me:28976: \"$ac_try\"") >&5
28977   (eval $ac_try) 2>&5
28978   ac_status=$?
28979   echo "$as_me:28979: \$? = $ac_status" >&5
28980   (exit $ac_status); }; }; then
28981   krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
28982 else
28983   echo "$as_me: program exited with status $ac_status" >&5
28984 echo "$as_me: failed program was:" >&5
28985 cat conftest.$ac_ext >&5
28986 ( exit $ac_status )
28987 :
28988 fi
28989 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28990 fi
28991         done
28992         LIBS="$ac_save_libs"
28993         CFLAGS="$ac_save_cflags"
28994
28995 fi
28996 echo "$as_me:28996: result: $krb_cv_sys_x_libs_rpath" >&5
28997 echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
28998         X_LIBS="$krb_cv_sys_x_libs"
28999 fi
29000
29001
29002
29003
29004 if test "$no_x" != yes; then
29005   HAVE_X_TRUE=
29006   HAVE_X_FALSE='#'
29007 else
29008   HAVE_X_TRUE='#'
29009   HAVE_X_FALSE=
29010 fi
29011
29012
29013
29014 save_CFLAGS="$CFLAGS"
29015 CFLAGS="$X_CFLAGS $CFLAGS"
29016 save_LIBS="$LIBS"
29017 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
29018 save_LDFLAGS="$LDFLAGS"
29019 LDFLAGS="$LDFLAGS $X_LIBS"
29020
29021
29022
29023
29024
29025 echo "$as_me:29025: checking for XauWriteAuth" >&5
29026 echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
29027 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
29028   echo $ECHO_N "(cached) $ECHO_C" >&6
29029 else
29030
29031 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
29032         ac_save_LIBS="$LIBS"
29033         for ac_lib in "" X11 Xau; do
29034                 case "$ac_lib" in
29035                 "") ;;
29036                 yes) ac_lib="" ;;
29037                 no) continue ;;
29038                 -l*) ;;
29039                 *) ac_lib="-l$ac_lib" ;;
29040                 esac
29041                 LIBS=" $ac_lib  $ac_save_LIBS"
29042                 cat >conftest.$ac_ext <<_ACEOF
29043 #line 29043 "configure"
29044 #include "confdefs.h"
29045
29046 #ifdef F77_DUMMY_MAIN
29047 #  ifdef __cplusplus
29048      extern "C"
29049 #  endif
29050    int F77_DUMMY_MAIN() { return 1; }
29051 #endif
29052 int
29053 main ()
29054 {
29055 XauWriteAuth()
29056   ;
29057   return 0;
29058 }
29059 _ACEOF
29060 rm -f conftest.$ac_objext conftest$ac_exeext
29061 if { (eval echo "$as_me:29061: \"$ac_link\"") >&5
29062   (eval $ac_link) 2>&5
29063   ac_status=$?
29064   echo "$as_me:29064: \$? = $ac_status" >&5
29065   (exit $ac_status); } &&
29066          { ac_try='test -s conftest$ac_exeext'
29067   { (eval echo "$as_me:29067: \"$ac_try\"") >&5
29068   (eval $ac_try) 2>&5
29069   ac_status=$?
29070   echo "$as_me:29070: \$? = $ac_status" >&5
29071   (exit $ac_status); }; }; then
29072   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
29073 else
29074   echo "$as_me: failed program was:" >&5
29075 cat conftest.$ac_ext >&5
29076 fi
29077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29078         done
29079         eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
29080         LIBS="$ac_save_LIBS"
29081 fi
29082
29083 fi
29084
29085
29086 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
29087
29088 if false; then
29089
29090 for ac_func in XauWriteAuth
29091 do
29092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29093 echo "$as_me:29093: checking for $ac_func" >&5
29094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29095 if eval "test \"\${$as_ac_var+set}\" = set"; then
29096   echo $ECHO_N "(cached) $ECHO_C" >&6
29097 else
29098   cat >conftest.$ac_ext <<_ACEOF
29099 #line 29099 "configure"
29100 #include "confdefs.h"
29101 /* System header to define __stub macros and hopefully few prototypes,
29102     which can conflict with char $ac_func (); below.  */
29103 #include <assert.h>
29104 /* Override any gcc2 internal prototype to avoid an error.  */
29105 #ifdef __cplusplus
29106 extern "C"
29107 #endif
29108 /* We use char because int might match the return type of a gcc2
29109    builtin and then its argument prototype would still apply.  */
29110 char $ac_func ();
29111 char (*f) ();
29112
29113 #ifdef F77_DUMMY_MAIN
29114 #  ifdef __cplusplus
29115      extern "C"
29116 #  endif
29117    int F77_DUMMY_MAIN() { return 1; }
29118 #endif
29119 int
29120 main ()
29121 {
29122 /* The GNU C library defines this for functions which it implements
29123     to always fail with ENOSYS.  Some functions are actually named
29124     something starting with __ and the normal name is an alias.  */
29125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29126 choke me
29127 #else
29128 f = $ac_func;
29129 #endif
29130
29131   ;
29132   return 0;
29133 }
29134 _ACEOF
29135 rm -f conftest.$ac_objext conftest$ac_exeext
29136 if { (eval echo "$as_me:29136: \"$ac_link\"") >&5
29137   (eval $ac_link) 2>&5
29138   ac_status=$?
29139   echo "$as_me:29139: \$? = $ac_status" >&5
29140   (exit $ac_status); } &&
29141          { ac_try='test -s conftest$ac_exeext'
29142   { (eval echo "$as_me:29142: \"$ac_try\"") >&5
29143   (eval $ac_try) 2>&5
29144   ac_status=$?
29145   echo "$as_me:29145: \$? = $ac_status" >&5
29146   (exit $ac_status); }; }; then
29147   eval "$as_ac_var=yes"
29148 else
29149   echo "$as_me: failed program was:" >&5
29150 cat conftest.$ac_ext >&5
29151 eval "$as_ac_var=no"
29152 fi
29153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29154 fi
29155 echo "$as_me:29155: result: `eval echo '${'$as_ac_var'}'`" >&5
29156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29157 if test `eval echo '${'$as_ac_var'}'` = yes; then
29158   cat >>confdefs.h <<_ACEOF
29159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29160 _ACEOF
29161
29162 fi
29163 done
29164
29165 fi
29166 # XauWriteAuth
29167 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29168 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29169 eval "LIB_XauWriteAuth=$ac_res"
29170
29171 case "$ac_res" in
29172         yes)
29173         eval "ac_cv_func_XauWriteAuth=yes"
29174         eval "LIB_XauWriteAuth="
29175         cat >>confdefs.h <<_ACEOF
29176 #define $ac_tr_func 1
29177 _ACEOF
29178
29179         echo "$as_me:29179: result: yes" >&5
29180 echo "${ECHO_T}yes" >&6
29181         ;;
29182         no)
29183         eval "ac_cv_func_XauWriteAuth=no"
29184         eval "LIB_XauWriteAuth="
29185         echo "$as_me:29185: result: no" >&5
29186 echo "${ECHO_T}no" >&6
29187         ;;
29188         *)
29189         eval "ac_cv_func_XauWriteAuth=yes"
29190         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29191         cat >>confdefs.h <<_ACEOF
29192 #define $ac_tr_func 1
29193 _ACEOF
29194
29195         cat >>confdefs.h <<_ACEOF
29196 #define $ac_tr_lib 1
29197 _ACEOF
29198
29199         echo "$as_me:29199: result: yes, in $ac_res" >&5
29200 echo "${ECHO_T}yes, in $ac_res" >&6
29201         ;;
29202 esac
29203
29204
29205 ac_xxx="$LIBS"
29206 LIBS="$LIB_XauWriteAuth $LIBS"
29207
29208
29209
29210 echo "$as_me:29210: checking for XauReadAuth" >&5
29211 echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
29212 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
29213   echo $ECHO_N "(cached) $ECHO_C" >&6
29214 else
29215
29216 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
29217         ac_save_LIBS="$LIBS"
29218         for ac_lib in "" X11 Xau; do
29219                 case "$ac_lib" in
29220                 "") ;;
29221                 yes) ac_lib="" ;;
29222                 no) continue ;;
29223                 -l*) ;;
29224                 *) ac_lib="-l$ac_lib" ;;
29225                 esac
29226                 LIBS=" $ac_lib  $ac_save_LIBS"
29227                 cat >conftest.$ac_ext <<_ACEOF
29228 #line 29228 "configure"
29229 #include "confdefs.h"
29230
29231 #ifdef F77_DUMMY_MAIN
29232 #  ifdef __cplusplus
29233      extern "C"
29234 #  endif
29235    int F77_DUMMY_MAIN() { return 1; }
29236 #endif
29237 int
29238 main ()
29239 {
29240 XauReadAuth()
29241   ;
29242   return 0;
29243 }
29244 _ACEOF
29245 rm -f conftest.$ac_objext conftest$ac_exeext
29246 if { (eval echo "$as_me:29246: \"$ac_link\"") >&5
29247   (eval $ac_link) 2>&5
29248   ac_status=$?
29249   echo "$as_me:29249: \$? = $ac_status" >&5
29250   (exit $ac_status); } &&
29251          { ac_try='test -s conftest$ac_exeext'
29252   { (eval echo "$as_me:29252: \"$ac_try\"") >&5
29253   (eval $ac_try) 2>&5
29254   ac_status=$?
29255   echo "$as_me:29255: \$? = $ac_status" >&5
29256   (exit $ac_status); }; }; then
29257   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
29258 else
29259   echo "$as_me: failed program was:" >&5
29260 cat conftest.$ac_ext >&5
29261 fi
29262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29263         done
29264         eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
29265         LIBS="$ac_save_LIBS"
29266 fi
29267
29268 fi
29269
29270
29271 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
29272
29273 if false; then
29274
29275 for ac_func in XauReadAuth
29276 do
29277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29278 echo "$as_me:29278: checking for $ac_func" >&5
29279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29280 if eval "test \"\${$as_ac_var+set}\" = set"; then
29281   echo $ECHO_N "(cached) $ECHO_C" >&6
29282 else
29283   cat >conftest.$ac_ext <<_ACEOF
29284 #line 29284 "configure"
29285 #include "confdefs.h"
29286 /* System header to define __stub macros and hopefully few prototypes,
29287     which can conflict with char $ac_func (); below.  */
29288 #include <assert.h>
29289 /* Override any gcc2 internal prototype to avoid an error.  */
29290 #ifdef __cplusplus
29291 extern "C"
29292 #endif
29293 /* We use char because int might match the return type of a gcc2
29294    builtin and then its argument prototype would still apply.  */
29295 char $ac_func ();
29296 char (*f) ();
29297
29298 #ifdef F77_DUMMY_MAIN
29299 #  ifdef __cplusplus
29300      extern "C"
29301 #  endif
29302    int F77_DUMMY_MAIN() { return 1; }
29303 #endif
29304 int
29305 main ()
29306 {
29307 /* The GNU C library defines this for functions which it implements
29308     to always fail with ENOSYS.  Some functions are actually named
29309     something starting with __ and the normal name is an alias.  */
29310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29311 choke me
29312 #else
29313 f = $ac_func;
29314 #endif
29315
29316   ;
29317   return 0;
29318 }
29319 _ACEOF
29320 rm -f conftest.$ac_objext conftest$ac_exeext
29321 if { (eval echo "$as_me:29321: \"$ac_link\"") >&5
29322   (eval $ac_link) 2>&5
29323   ac_status=$?
29324   echo "$as_me:29324: \$? = $ac_status" >&5
29325   (exit $ac_status); } &&
29326          { ac_try='test -s conftest$ac_exeext'
29327   { (eval echo "$as_me:29327: \"$ac_try\"") >&5
29328   (eval $ac_try) 2>&5
29329   ac_status=$?
29330   echo "$as_me:29330: \$? = $ac_status" >&5
29331   (exit $ac_status); }; }; then
29332   eval "$as_ac_var=yes"
29333 else
29334   echo "$as_me: failed program was:" >&5
29335 cat conftest.$ac_ext >&5
29336 eval "$as_ac_var=no"
29337 fi
29338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29339 fi
29340 echo "$as_me:29340: result: `eval echo '${'$as_ac_var'}'`" >&5
29341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29342 if test `eval echo '${'$as_ac_var'}'` = yes; then
29343   cat >>confdefs.h <<_ACEOF
29344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29345 _ACEOF
29346
29347 fi
29348 done
29349
29350 fi
29351 # XauReadAuth
29352 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29353 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29354 eval "LIB_XauReadAuth=$ac_res"
29355
29356 case "$ac_res" in
29357         yes)
29358         eval "ac_cv_func_XauReadAuth=yes"
29359         eval "LIB_XauReadAuth="
29360         cat >>confdefs.h <<_ACEOF
29361 #define $ac_tr_func 1
29362 _ACEOF
29363
29364         echo "$as_me:29364: result: yes" >&5
29365 echo "${ECHO_T}yes" >&6
29366         ;;
29367         no)
29368         eval "ac_cv_func_XauReadAuth=no"
29369         eval "LIB_XauReadAuth="
29370         echo "$as_me:29370: result: no" >&5
29371 echo "${ECHO_T}no" >&6
29372         ;;
29373         *)
29374         eval "ac_cv_func_XauReadAuth=yes"
29375         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29376         cat >>confdefs.h <<_ACEOF
29377 #define $ac_tr_func 1
29378 _ACEOF
29379
29380         cat >>confdefs.h <<_ACEOF
29381 #define $ac_tr_lib 1
29382 _ACEOF
29383
29384         echo "$as_me:29384: result: yes, in $ac_res" >&5
29385 echo "${ECHO_T}yes, in $ac_res" >&6
29386         ;;
29387 esac
29388
29389
29390 LIBS="$LIB_XauReadAauth $LIBS"
29391
29392
29393
29394 echo "$as_me:29394: checking for XauFileName" >&5
29395 echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
29396 if test "${ac_cv_funclib_XauFileName+set}" = set; then
29397   echo $ECHO_N "(cached) $ECHO_C" >&6
29398 else
29399
29400 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
29401         ac_save_LIBS="$LIBS"
29402         for ac_lib in "" X11 Xau; do
29403                 case "$ac_lib" in
29404                 "") ;;
29405                 yes) ac_lib="" ;;
29406                 no) continue ;;
29407                 -l*) ;;
29408                 *) ac_lib="-l$ac_lib" ;;
29409                 esac
29410                 LIBS=" $ac_lib  $ac_save_LIBS"
29411                 cat >conftest.$ac_ext <<_ACEOF
29412 #line 29412 "configure"
29413 #include "confdefs.h"
29414
29415 #ifdef F77_DUMMY_MAIN
29416 #  ifdef __cplusplus
29417      extern "C"
29418 #  endif
29419    int F77_DUMMY_MAIN() { return 1; }
29420 #endif
29421 int
29422 main ()
29423 {
29424 XauFileName()
29425   ;
29426   return 0;
29427 }
29428 _ACEOF
29429 rm -f conftest.$ac_objext conftest$ac_exeext
29430 if { (eval echo "$as_me:29430: \"$ac_link\"") >&5
29431   (eval $ac_link) 2>&5
29432   ac_status=$?
29433   echo "$as_me:29433: \$? = $ac_status" >&5
29434   (exit $ac_status); } &&
29435          { ac_try='test -s conftest$ac_exeext'
29436   { (eval echo "$as_me:29436: \"$ac_try\"") >&5
29437   (eval $ac_try) 2>&5
29438   ac_status=$?
29439   echo "$as_me:29439: \$? = $ac_status" >&5
29440   (exit $ac_status); }; }; then
29441   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
29442 else
29443   echo "$as_me: failed program was:" >&5
29444 cat conftest.$ac_ext >&5
29445 fi
29446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29447         done
29448         eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
29449         LIBS="$ac_save_LIBS"
29450 fi
29451
29452 fi
29453
29454
29455 eval "ac_res=\$ac_cv_funclib_XauFileName"
29456
29457 if false; then
29458
29459 for ac_func in XauFileName
29460 do
29461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29462 echo "$as_me:29462: checking for $ac_func" >&5
29463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29464 if eval "test \"\${$as_ac_var+set}\" = set"; then
29465   echo $ECHO_N "(cached) $ECHO_C" >&6
29466 else
29467   cat >conftest.$ac_ext <<_ACEOF
29468 #line 29468 "configure"
29469 #include "confdefs.h"
29470 /* System header to define __stub macros and hopefully few prototypes,
29471     which can conflict with char $ac_func (); below.  */
29472 #include <assert.h>
29473 /* Override any gcc2 internal prototype to avoid an error.  */
29474 #ifdef __cplusplus
29475 extern "C"
29476 #endif
29477 /* We use char because int might match the return type of a gcc2
29478    builtin and then its argument prototype would still apply.  */
29479 char $ac_func ();
29480 char (*f) ();
29481
29482 #ifdef F77_DUMMY_MAIN
29483 #  ifdef __cplusplus
29484      extern "C"
29485 #  endif
29486    int F77_DUMMY_MAIN() { return 1; }
29487 #endif
29488 int
29489 main ()
29490 {
29491 /* The GNU C library defines this for functions which it implements
29492     to always fail with ENOSYS.  Some functions are actually named
29493     something starting with __ and the normal name is an alias.  */
29494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29495 choke me
29496 #else
29497 f = $ac_func;
29498 #endif
29499
29500   ;
29501   return 0;
29502 }
29503 _ACEOF
29504 rm -f conftest.$ac_objext conftest$ac_exeext
29505 if { (eval echo "$as_me:29505: \"$ac_link\"") >&5
29506   (eval $ac_link) 2>&5
29507   ac_status=$?
29508   echo "$as_me:29508: \$? = $ac_status" >&5
29509   (exit $ac_status); } &&
29510          { ac_try='test -s conftest$ac_exeext'
29511   { (eval echo "$as_me:29511: \"$ac_try\"") >&5
29512   (eval $ac_try) 2>&5
29513   ac_status=$?
29514   echo "$as_me:29514: \$? = $ac_status" >&5
29515   (exit $ac_status); }; }; then
29516   eval "$as_ac_var=yes"
29517 else
29518   echo "$as_me: failed program was:" >&5
29519 cat conftest.$ac_ext >&5
29520 eval "$as_ac_var=no"
29521 fi
29522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29523 fi
29524 echo "$as_me:29524: result: `eval echo '${'$as_ac_var'}'`" >&5
29525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29526 if test `eval echo '${'$as_ac_var'}'` = yes; then
29527   cat >>confdefs.h <<_ACEOF
29528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29529 _ACEOF
29530
29531 fi
29532 done
29533
29534 fi
29535 # XauFileName
29536 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29537 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29538 eval "LIB_XauFileName=$ac_res"
29539
29540 case "$ac_res" in
29541         yes)
29542         eval "ac_cv_func_XauFileName=yes"
29543         eval "LIB_XauFileName="
29544         cat >>confdefs.h <<_ACEOF
29545 #define $ac_tr_func 1
29546 _ACEOF
29547
29548         echo "$as_me:29548: result: yes" >&5
29549 echo "${ECHO_T}yes" >&6
29550         ;;
29551         no)
29552         eval "ac_cv_func_XauFileName=no"
29553         eval "LIB_XauFileName="
29554         echo "$as_me:29554: result: no" >&5
29555 echo "${ECHO_T}no" >&6
29556         ;;
29557         *)
29558         eval "ac_cv_func_XauFileName=yes"
29559         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29560         cat >>confdefs.h <<_ACEOF
29561 #define $ac_tr_func 1
29562 _ACEOF
29563
29564         cat >>confdefs.h <<_ACEOF
29565 #define $ac_tr_lib 1
29566 _ACEOF
29567
29568         echo "$as_me:29568: result: yes, in $ac_res" >&5
29569 echo "${ECHO_T}yes, in $ac_res" >&6
29570         ;;
29571 esac
29572
29573
29574 LIBS="$ac_xxx"
29575
29576 case "$ac_cv_funclib_XauWriteAuth" in
29577 yes)    ;;
29578 no)     ;;
29579 *)      if test "$ac_cv_funclib_XauReadAuth" = yes; then
29580                 if test "$ac_cv_funclib_XauFileName" = yes; then
29581                         LIB_XauReadAuth="$LIB_XauWriteAuth"
29582                 else
29583                         LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
29584                 fi
29585         else
29586                 if test "$ac_cv_funclib_XauFileName" = yes; then
29587                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
29588                 else
29589                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
29590                 fi
29591         fi
29592         ;;
29593 esac
29594
29595 if test "$AUTOMAKE" != ""; then
29596
29597
29598 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
29599   NEED_WRITEAUTH_TRUE=
29600   NEED_WRITEAUTH_FALSE='#'
29601 else
29602   NEED_WRITEAUTH_TRUE='#'
29603   NEED_WRITEAUTH_FALSE=
29604 fi
29605
29606 else
29607
29608
29609         if test "$ac_cv_func_XauWriteAuth" != "yes"; then
29610                 NEED_WRITEAUTH_TRUE=
29611                 NEED_WRITEAUTH_FALSE='#'
29612         else
29613                 NEED_WRITEAUTH_TRUE='#'
29614                 NEED_WRITEAUTH_FALSE=
29615         fi
29616 fi
29617 CFLAGS=$save_CFLAGS
29618 LIBS=$save_LIBS
29619 LDFLAGS=$save_LDFLAGS
29620
29621
29622
29623 echo "$as_me:29623: checking for an ANSI C-conforming const" >&5
29624 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
29625 if test "${ac_cv_c_const+set}" = set; then
29626   echo $ECHO_N "(cached) $ECHO_C" >&6
29627 else
29628   cat >conftest.$ac_ext <<_ACEOF
29629 #line 29629 "configure"
29630 #include "confdefs.h"
29631
29632 #ifdef F77_DUMMY_MAIN
29633 #  ifdef __cplusplus
29634      extern "C"
29635 #  endif
29636    int F77_DUMMY_MAIN() { return 1; }
29637 #endif
29638 int
29639 main ()
29640 {
29641 /* FIXME: Include the comments suggested by Paul. */
29642 #ifndef __cplusplus
29643   /* Ultrix mips cc rejects this.  */
29644   typedef int charset[2];
29645   const charset x;
29646   /* SunOS 4.1.1 cc rejects this.  */
29647   char const *const *ccp;
29648   char **p;
29649   /* NEC SVR4.0.2 mips cc rejects this.  */
29650   struct point {int x, y;};
29651   static struct point const zero = {0,0};
29652   /* AIX XL C 1.02.0.0 rejects this.
29653      It does not let you subtract one const X* pointer from another in
29654      an arm of an if-expression whose if-part is not a constant
29655      expression */
29656   const char *g = "string";
29657   ccp = &g + (g ? g-g : 0);
29658   /* HPUX 7.0 cc rejects these. */
29659   ++ccp;
29660   p = (char**) ccp;
29661   ccp = (char const *const *) p;
29662   { /* SCO 3.2v4 cc rejects this.  */
29663     char *t;
29664     char const *s = 0 ? (char *) 0 : (char const *) 0;
29665
29666     *t++ = 0;
29667   }
29668   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
29669     int x[] = {25, 17};
29670     const int *foo = &x[0];
29671     ++foo;
29672   }
29673   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29674     typedef const int *iptr;
29675     iptr p = 0;
29676     ++p;
29677   }
29678   { /* AIX XL C 1.02.0.0 rejects this saying
29679        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29680     struct s { int j; const int *ap[3]; };
29681     struct s *b; b->j = 5;
29682   }
29683   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29684     const int foo = 10;
29685   }
29686 #endif
29687
29688   ;
29689   return 0;
29690 }
29691 _ACEOF
29692 rm -f conftest.$ac_objext
29693 if { (eval echo "$as_me:29693: \"$ac_compile\"") >&5
29694   (eval $ac_compile) 2>&5
29695   ac_status=$?
29696   echo "$as_me:29696: \$? = $ac_status" >&5
29697   (exit $ac_status); } &&
29698          { ac_try='test -s conftest.$ac_objext'
29699   { (eval echo "$as_me:29699: \"$ac_try\"") >&5
29700   (eval $ac_try) 2>&5
29701   ac_status=$?
29702   echo "$as_me:29702: \$? = $ac_status" >&5
29703   (exit $ac_status); }; }; then
29704   ac_cv_c_const=yes
29705 else
29706   echo "$as_me: failed program was:" >&5
29707 cat conftest.$ac_ext >&5
29708 ac_cv_c_const=no
29709 fi
29710 rm -f conftest.$ac_objext conftest.$ac_ext
29711 fi
29712 echo "$as_me:29712: result: $ac_cv_c_const" >&5
29713 echo "${ECHO_T}$ac_cv_c_const" >&6
29714 if test $ac_cv_c_const = no; then
29715
29716 cat >>confdefs.h <<\_ACEOF
29717 #define const
29718 _ACEOF
29719
29720 fi
29721
29722 echo "$as_me:29722: checking for off_t" >&5
29723 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29724 if test "${ac_cv_type_off_t+set}" = set; then
29725   echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727   cat >conftest.$ac_ext <<_ACEOF
29728 #line 29728 "configure"
29729 #include "confdefs.h"
29730 $ac_includes_default
29731 #ifdef F77_DUMMY_MAIN
29732 #  ifdef __cplusplus
29733      extern "C"
29734 #  endif
29735    int F77_DUMMY_MAIN() { return 1; }
29736 #endif
29737 int
29738 main ()
29739 {
29740 if ((off_t *) 0)
29741   return 0;
29742 if (sizeof (off_t))
29743   return 0;
29744   ;
29745   return 0;
29746 }
29747 _ACEOF
29748 rm -f conftest.$ac_objext
29749 if { (eval echo "$as_me:29749: \"$ac_compile\"") >&5
29750   (eval $ac_compile) 2>&5
29751   ac_status=$?
29752   echo "$as_me:29752: \$? = $ac_status" >&5
29753   (exit $ac_status); } &&
29754          { ac_try='test -s conftest.$ac_objext'
29755   { (eval echo "$as_me:29755: \"$ac_try\"") >&5
29756   (eval $ac_try) 2>&5
29757   ac_status=$?
29758   echo "$as_me:29758: \$? = $ac_status" >&5
29759   (exit $ac_status); }; }; then
29760   ac_cv_type_off_t=yes
29761 else
29762   echo "$as_me: failed program was:" >&5
29763 cat conftest.$ac_ext >&5
29764 ac_cv_type_off_t=no
29765 fi
29766 rm -f conftest.$ac_objext conftest.$ac_ext
29767 fi
29768 echo "$as_me:29768: result: $ac_cv_type_off_t" >&5
29769 echo "${ECHO_T}$ac_cv_type_off_t" >&6
29770 if test $ac_cv_type_off_t = yes; then
29771   :
29772 else
29773
29774 cat >>confdefs.h <<_ACEOF
29775 #define off_t long
29776 _ACEOF
29777
29778 fi
29779
29780 echo "$as_me:29780: checking for mode_t" >&5
29781 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29782 if test "${ac_cv_type_mode_t+set}" = set; then
29783   echo $ECHO_N "(cached) $ECHO_C" >&6
29784 else
29785   cat >conftest.$ac_ext <<_ACEOF
29786 #line 29786 "configure"
29787 #include "confdefs.h"
29788 #include <sys/types.h>
29789 #if STDC_HEADERS
29790 #include <stdlib.h>
29791 #include <stddef.h>
29792 #endif
29793
29794 _ACEOF
29795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29796   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
29797   ac_cv_type_mode_t=yes
29798 else
29799   ac_cv_type_mode_t=no
29800 fi
29801 rm -f conftest*
29802
29803 fi
29804 echo "$as_me:29804: result: $ac_cv_type_mode_t" >&5
29805 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29806 if test $ac_cv_type_mode_t = no; then
29807
29808 cat >>confdefs.h <<\_ACEOF
29809 #define mode_t unsigned short
29810 _ACEOF
29811
29812 fi
29813
29814 echo "$as_me:29814: checking for sig_atomic_t" >&5
29815 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
29816 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
29817   echo $ECHO_N "(cached) $ECHO_C" >&6
29818 else
29819   cat >conftest.$ac_ext <<_ACEOF
29820 #line 29820 "configure"
29821 #include "confdefs.h"
29822 #include <sys/types.h>
29823 #if STDC_HEADERS
29824 #include <stdlib.h>
29825 #include <stddef.h>
29826 #endif
29827 #include <signal.h>
29828 _ACEOF
29829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29830   egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
29831   ac_cv_type_sig_atomic_t=yes
29832 else
29833   ac_cv_type_sig_atomic_t=no
29834 fi
29835 rm -f conftest*
29836
29837 fi
29838 echo "$as_me:29838: result: $ac_cv_type_sig_atomic_t" >&5
29839 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
29840 if test $ac_cv_type_sig_atomic_t = no; then
29841
29842 cat >>confdefs.h <<\_ACEOF
29843 #define sig_atomic_t int
29844 _ACEOF
29845
29846 fi
29847
29848
29849
29850 cv=`echo "long long" | sed 'y%./+- %__p__%'`
29851 echo "$as_me:29851: checking for long long" >&5
29852 echo $ECHO_N "checking for long long... $ECHO_C" >&6
29853 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
29854   echo $ECHO_N "(cached) $ECHO_C" >&6
29855 else
29856   cat >conftest.$ac_ext <<_ACEOF
29857 #line 29857 "configure"
29858 #include "confdefs.h"
29859 #include <sys/types.h>
29860 #if STDC_HEADERS
29861 #include <stdlib.h>
29862 #include <stddef.h>
29863 #endif
29864
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 long long foo;
29875   ;
29876   return 0;
29877 }
29878 _ACEOF
29879 rm -f conftest.$ac_objext
29880 if { (eval echo "$as_me:29880: \"$ac_compile\"") >&5
29881   (eval $ac_compile) 2>&5
29882   ac_status=$?
29883   echo "$as_me:29883: \$? = $ac_status" >&5
29884   (exit $ac_status); } &&
29885          { ac_try='test -s conftest.$ac_objext'
29886   { (eval echo "$as_me:29886: \"$ac_try\"") >&5
29887   (eval $ac_try) 2>&5
29888   ac_status=$?
29889   echo "$as_me:29889: \$? = $ac_status" >&5
29890   (exit $ac_status); }; }; then
29891   eval "ac_cv_type_$cv=yes"
29892 else
29893   echo "$as_me: failed program was:" >&5
29894 cat conftest.$ac_ext >&5
29895 eval "ac_cv_type_$cv=no"
29896 fi
29897 rm -f conftest.$ac_objext conftest.$ac_ext
29898 fi
29899 ac_foo=`eval echo \\$ac_cv_type_$cv`
29900 echo "$as_me:29900: result: $ac_foo" >&5
29901 echo "${ECHO_T}$ac_foo" >&6
29902 if test "$ac_foo" = yes; then
29903   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
29904 if false; then
29905         echo "$as_me:29905: checking for long long" >&5
29906 echo $ECHO_N "checking for long long... $ECHO_C" >&6
29907 if test "${ac_cv_type_long_long+set}" = set; then
29908   echo $ECHO_N "(cached) $ECHO_C" >&6
29909 else
29910   cat >conftest.$ac_ext <<_ACEOF
29911 #line 29911 "configure"
29912 #include "confdefs.h"
29913 $ac_includes_default
29914 #ifdef F77_DUMMY_MAIN
29915 #  ifdef __cplusplus
29916      extern "C"
29917 #  endif
29918    int F77_DUMMY_MAIN() { return 1; }
29919 #endif
29920 int
29921 main ()
29922 {
29923 if ((long long *) 0)
29924   return 0;
29925 if (sizeof (long long))
29926   return 0;
29927   ;
29928   return 0;
29929 }
29930 _ACEOF
29931 rm -f conftest.$ac_objext
29932 if { (eval echo "$as_me:29932: \"$ac_compile\"") >&5
29933   (eval $ac_compile) 2>&5
29934   ac_status=$?
29935   echo "$as_me:29935: \$? = $ac_status" >&5
29936   (exit $ac_status); } &&
29937          { ac_try='test -s conftest.$ac_objext'
29938   { (eval echo "$as_me:29938: \"$ac_try\"") >&5
29939   (eval $ac_try) 2>&5
29940   ac_status=$?
29941   echo "$as_me:29941: \$? = $ac_status" >&5
29942   (exit $ac_status); }; }; then
29943   ac_cv_type_long_long=yes
29944 else
29945   echo "$as_me: failed program was:" >&5
29946 cat conftest.$ac_ext >&5
29947 ac_cv_type_long_long=no
29948 fi
29949 rm -f conftest.$ac_objext conftest.$ac_ext
29950 fi
29951 echo "$as_me:29951: result: $ac_cv_type_long_long" >&5
29952 echo "${ECHO_T}$ac_cv_type_long_long" >&6
29953 if test $ac_cv_type_long_long = yes; then
29954
29955 cat >>confdefs.h <<_ACEOF
29956 #define HAVE_LONG_LONG 1
29957 _ACEOF
29958
29959
29960 fi
29961
29962 fi
29963
29964 cat >>confdefs.h <<_ACEOF
29965 #define $ac_tr_hdr 1
29966 _ACEOF
29967
29968 fi
29969
29970 echo "$as_me:29970: checking whether time.h and sys/time.h may both be included" >&5
29971 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
29972 if test "${ac_cv_header_time+set}" = set; then
29973   echo $ECHO_N "(cached) $ECHO_C" >&6
29974 else
29975   cat >conftest.$ac_ext <<_ACEOF
29976 #line 29976 "configure"
29977 #include "confdefs.h"
29978 #include <sys/types.h>
29979 #include <sys/time.h>
29980 #include <time.h>
29981
29982 #ifdef F77_DUMMY_MAIN
29983 #  ifdef __cplusplus
29984      extern "C"
29985 #  endif
29986    int F77_DUMMY_MAIN() { return 1; }
29987 #endif
29988 int
29989 main ()
29990 {
29991 if ((struct tm *) 0)
29992 return 0;
29993   ;
29994   return 0;
29995 }
29996 _ACEOF
29997 rm -f conftest.$ac_objext
29998 if { (eval echo "$as_me:29998: \"$ac_compile\"") >&5
29999   (eval $ac_compile) 2>&5
30000   ac_status=$?
30001   echo "$as_me:30001: \$? = $ac_status" >&5
30002   (exit $ac_status); } &&
30003          { ac_try='test -s conftest.$ac_objext'
30004   { (eval echo "$as_me:30004: \"$ac_try\"") >&5
30005   (eval $ac_try) 2>&5
30006   ac_status=$?
30007   echo "$as_me:30007: \$? = $ac_status" >&5
30008   (exit $ac_status); }; }; then
30009   ac_cv_header_time=yes
30010 else
30011   echo "$as_me: failed program was:" >&5
30012 cat conftest.$ac_ext >&5
30013 ac_cv_header_time=no
30014 fi
30015 rm -f conftest.$ac_objext conftest.$ac_ext
30016 fi
30017 echo "$as_me:30017: result: $ac_cv_header_time" >&5
30018 echo "${ECHO_T}$ac_cv_header_time" >&6
30019 if test $ac_cv_header_time = yes; then
30020
30021 cat >>confdefs.h <<\_ACEOF
30022 #define TIME_WITH_SYS_TIME 1
30023 _ACEOF
30024
30025 fi
30026
30027 echo "$as_me:30027: checking whether struct tm is in sys/time.h or time.h" >&5
30028 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
30029 if test "${ac_cv_struct_tm+set}" = set; then
30030   echo $ECHO_N "(cached) $ECHO_C" >&6
30031 else
30032   cat >conftest.$ac_ext <<_ACEOF
30033 #line 30033 "configure"
30034 #include "confdefs.h"
30035 #include <sys/types.h>
30036 #include <time.h>
30037
30038 #ifdef F77_DUMMY_MAIN
30039 #  ifdef __cplusplus
30040      extern "C"
30041 #  endif
30042    int F77_DUMMY_MAIN() { return 1; }
30043 #endif
30044 int
30045 main ()
30046 {
30047 struct tm *tp; tp->tm_sec;
30048   ;
30049   return 0;
30050 }
30051 _ACEOF
30052 rm -f conftest.$ac_objext
30053 if { (eval echo "$as_me:30053: \"$ac_compile\"") >&5
30054   (eval $ac_compile) 2>&5
30055   ac_status=$?
30056   echo "$as_me:30056: \$? = $ac_status" >&5
30057   (exit $ac_status); } &&
30058          { ac_try='test -s conftest.$ac_objext'
30059   { (eval echo "$as_me:30059: \"$ac_try\"") >&5
30060   (eval $ac_try) 2>&5
30061   ac_status=$?
30062   echo "$as_me:30062: \$? = $ac_status" >&5
30063   (exit $ac_status); }; }; then
30064   ac_cv_struct_tm=time.h
30065 else
30066   echo "$as_me: failed program was:" >&5
30067 cat conftest.$ac_ext >&5
30068 ac_cv_struct_tm=sys/time.h
30069 fi
30070 rm -f conftest.$ac_objext conftest.$ac_ext
30071 fi
30072 echo "$as_me:30072: result: $ac_cv_struct_tm" >&5
30073 echo "${ECHO_T}$ac_cv_struct_tm" >&6
30074 if test $ac_cv_struct_tm = sys/time.h; then
30075
30076 cat >>confdefs.h <<\_ACEOF
30077 #define TM_IN_SYS_TIME 1
30078 _ACEOF
30079
30080 fi
30081
30082
30083 echo "$as_me:30083: checking for ANSI C header files" >&5
30084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
30085 if test "${ac_cv_header_stdc+set}" = set; then
30086   echo $ECHO_N "(cached) $ECHO_C" >&6
30087 else
30088   cat >conftest.$ac_ext <<_ACEOF
30089 #line 30089 "configure"
30090 #include "confdefs.h"
30091 #include <stdlib.h>
30092 #include <stdarg.h>
30093 #include <string.h>
30094 #include <float.h>
30095
30096 _ACEOF
30097 if { (eval echo "$as_me:30097: \"$ac_cpp conftest.$ac_ext\"") >&5
30098   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30099   ac_status=$?
30100   egrep -v '^ *\+' conftest.er1 >conftest.err
30101   rm -f conftest.er1
30102   cat conftest.err >&5
30103   echo "$as_me:30103: \$? = $ac_status" >&5
30104   (exit $ac_status); } >/dev/null; then
30105   if test -s conftest.err; then
30106     ac_cpp_err=$ac_c_preproc_warn_flag
30107   else
30108     ac_cpp_err=
30109   fi
30110 else
30111   ac_cpp_err=yes
30112 fi
30113 if test -z "$ac_cpp_err"; then
30114   ac_cv_header_stdc=yes
30115 else
30116   echo "$as_me: failed program was:" >&5
30117   cat conftest.$ac_ext >&5
30118   ac_cv_header_stdc=no
30119 fi
30120 rm -f conftest.err conftest.$ac_ext
30121
30122 if test $ac_cv_header_stdc = yes; then
30123   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30124   cat >conftest.$ac_ext <<_ACEOF
30125 #line 30125 "configure"
30126 #include "confdefs.h"
30127 #include <string.h>
30128
30129 _ACEOF
30130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30131   egrep "memchr" >/dev/null 2>&1; then
30132   :
30133 else
30134   ac_cv_header_stdc=no
30135 fi
30136 rm -f conftest*
30137
30138 fi
30139
30140 if test $ac_cv_header_stdc = yes; then
30141   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30142   cat >conftest.$ac_ext <<_ACEOF
30143 #line 30143 "configure"
30144 #include "confdefs.h"
30145 #include <stdlib.h>
30146
30147 _ACEOF
30148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30149   egrep "free" >/dev/null 2>&1; then
30150   :
30151 else
30152   ac_cv_header_stdc=no
30153 fi
30154 rm -f conftest*
30155
30156 fi
30157
30158 if test $ac_cv_header_stdc = yes; then
30159   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30160   if test "$cross_compiling" = yes; then
30161   :
30162 else
30163   cat >conftest.$ac_ext <<_ACEOF
30164 #line 30164 "configure"
30165 #include "confdefs.h"
30166 #include <ctype.h>
30167 #if ((' ' & 0x0FF) == 0x020)
30168 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30169 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30170 #else
30171 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
30172                      || ('j' <= (c) && (c) <= 'r') \
30173                      || ('s' <= (c) && (c) <= 'z'))
30174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30175 #endif
30176
30177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30178 int
30179 main ()
30180 {
30181   int i;
30182   for (i = 0; i < 256; i++)
30183     if (XOR (islower (i), ISLOWER (i))
30184         || toupper (i) != TOUPPER (i))
30185       exit(2);
30186   exit (0);
30187 }
30188 _ACEOF
30189 rm -f conftest$ac_exeext
30190 if { (eval echo "$as_me:30190: \"$ac_link\"") >&5
30191   (eval $ac_link) 2>&5
30192   ac_status=$?
30193   echo "$as_me:30193: \$? = $ac_status" >&5
30194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30195   { (eval echo "$as_me:30195: \"$ac_try\"") >&5
30196   (eval $ac_try) 2>&5
30197   ac_status=$?
30198   echo "$as_me:30198: \$? = $ac_status" >&5
30199   (exit $ac_status); }; }; then
30200   :
30201 else
30202   echo "$as_me: program exited with status $ac_status" >&5
30203 echo "$as_me: failed program was:" >&5
30204 cat conftest.$ac_ext >&5
30205 ( exit $ac_status )
30206 ac_cv_header_stdc=no
30207 fi
30208 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30209 fi
30210 fi
30211 fi
30212 echo "$as_me:30212: result: $ac_cv_header_stdc" >&5
30213 echo "${ECHO_T}$ac_cv_header_stdc" >&6
30214 if test $ac_cv_header_stdc = yes; then
30215
30216 cat >>confdefs.h <<\_ACEOF
30217 #define STDC_HEADERS 1
30218 _ACEOF
30219
30220 fi
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271 for ac_header in \
30272         arpa/ftp.h                              \
30273         arpa/telnet.h                           \
30274         bind/bitypes.h                          \
30275         bsdsetjmp.h                             \
30276         curses.h                                \
30277         dlfcn.h                                 \
30278         fnmatch.h                               \
30279         inttypes.h                              \
30280         io.h                                    \
30281         libutil.h                               \
30282         limits.h                                \
30283         maillock.h                              \
30284         netinet/in6_machtypes.h                 \
30285         netinfo/ni.h                            \
30286         pthread.h                               \
30287         pty.h                                   \
30288         sac.h                                   \
30289         security/pam_modules.h                  \
30290         sgtty.h                                 \
30291         siad.h                                  \
30292         signal.h                                \
30293         stropts.h                               \
30294         sys/bitypes.h                           \
30295         sys/category.h                          \
30296         sys/file.h                              \
30297         sys/filio.h                             \
30298         sys/ioccom.h                            \
30299         sys/pty.h                               \
30300         sys/ptyio.h                             \
30301         sys/ptyvar.h                            \
30302         sys/select.h                            \
30303         sys/str_tty.h                           \
30304         sys/stream.h                            \
30305         sys/stropts.h                           \
30306         sys/strtty.h                            \
30307         sys/syscall.h                           \
30308         sys/termio.h                            \
30309         sys/timeb.h                             \
30310         sys/times.h                             \
30311         sys/un.h                                \
30312         term.h                                  \
30313         termcap.h                               \
30314         termio.h                                \
30315         time.h                                  \
30316         tmpdir.h                                \
30317         udb.h                                   \
30318         utmp.h                                  \
30319         utmpx.h                                 \
30320
30321 do
30322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30324   echo "$as_me:30324: checking for $ac_header" >&5
30325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30327   echo $ECHO_N "(cached) $ECHO_C" >&6
30328 fi
30329 echo "$as_me:30329: result: `eval echo '${'$as_ac_Header'}'`" >&5
30330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30331 else
30332   # Is the header compilable?
30333 echo "$as_me:30333: checking $ac_header usability" >&5
30334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30335 cat >conftest.$ac_ext <<_ACEOF
30336 #line 30336 "configure"
30337 #include "confdefs.h"
30338 $ac_includes_default
30339 #include <$ac_header>
30340 _ACEOF
30341 rm -f conftest.$ac_objext
30342 if { (eval echo "$as_me:30342: \"$ac_compile\"") >&5
30343   (eval $ac_compile) 2>&5
30344   ac_status=$?
30345   echo "$as_me:30345: \$? = $ac_status" >&5
30346   (exit $ac_status); } &&
30347          { ac_try='test -s conftest.$ac_objext'
30348   { (eval echo "$as_me:30348: \"$ac_try\"") >&5
30349   (eval $ac_try) 2>&5
30350   ac_status=$?
30351   echo "$as_me:30351: \$? = $ac_status" >&5
30352   (exit $ac_status); }; }; then
30353   ac_header_compiler=yes
30354 else
30355   echo "$as_me: failed program was:" >&5
30356 cat conftest.$ac_ext >&5
30357 ac_header_compiler=no
30358 fi
30359 rm -f conftest.$ac_objext conftest.$ac_ext
30360 echo "$as_me:30360: result: $ac_header_compiler" >&5
30361 echo "${ECHO_T}$ac_header_compiler" >&6
30362
30363 # Is the header present?
30364 echo "$as_me:30364: checking $ac_header presence" >&5
30365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30366 cat >conftest.$ac_ext <<_ACEOF
30367 #line 30367 "configure"
30368 #include "confdefs.h"
30369 #include <$ac_header>
30370 _ACEOF
30371 if { (eval echo "$as_me:30371: \"$ac_cpp conftest.$ac_ext\"") >&5
30372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30373   ac_status=$?
30374   egrep -v '^ *\+' conftest.er1 >conftest.err
30375   rm -f conftest.er1
30376   cat conftest.err >&5
30377   echo "$as_me:30377: \$? = $ac_status" >&5
30378   (exit $ac_status); } >/dev/null; then
30379   if test -s conftest.err; then
30380     ac_cpp_err=$ac_c_preproc_warn_flag
30381   else
30382     ac_cpp_err=
30383   fi
30384 else
30385   ac_cpp_err=yes
30386 fi
30387 if test -z "$ac_cpp_err"; then
30388   ac_header_preproc=yes
30389 else
30390   echo "$as_me: failed program was:" >&5
30391   cat conftest.$ac_ext >&5
30392   ac_header_preproc=no
30393 fi
30394 rm -f conftest.err conftest.$ac_ext
30395 echo "$as_me:30395: result: $ac_header_preproc" >&5
30396 echo "${ECHO_T}$ac_header_preproc" >&6
30397
30398 # So?  What about this header?
30399 case $ac_header_compiler:$ac_header_preproc in
30400   yes:no )
30401     { echo "$as_me:30401: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30403     { echo "$as_me:30403: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
30405   no:yes )
30406     { echo "$as_me:30406: WARNING: $ac_header: present but cannot be compiled" >&5
30407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30408     { echo "$as_me:30408: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30410     { echo "$as_me:30410: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
30412 esac
30413 echo "$as_me:30413: checking for $ac_header" >&5
30414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30416   echo $ECHO_N "(cached) $ECHO_C" >&6
30417 else
30418   eval "$as_ac_Header=$ac_header_preproc"
30419 fi
30420 echo "$as_me:30420: result: `eval echo '${'$as_ac_Header'}'`" >&5
30421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30422
30423 fi
30424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30425   cat >>confdefs.h <<_ACEOF
30426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30427 _ACEOF
30428
30429 fi
30430
30431 done
30432
30433
30434 # Check whether --enable-netinfo or --disable-netinfo was given.
30435 if test "${enable_netinfo+set}" = set; then
30436   enableval="$enable_netinfo"
30437
30438 fi;
30439
30440 if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
30441
30442 cat >>confdefs.h <<\_ACEOF
30443 #define HAVE_NETINFO 1
30444 _ACEOF
30445
30446 fi
30447
30448
30449
30450
30451
30452 echo "$as_me:30452: checking for logwtmp" >&5
30453 echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
30454 if test "${ac_cv_funclib_logwtmp+set}" = set; then
30455   echo $ECHO_N "(cached) $ECHO_C" >&6
30456 else
30457
30458 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
30459         ac_save_LIBS="$LIBS"
30460         for ac_lib in "" util; do
30461                 case "$ac_lib" in
30462                 "") ;;
30463                 yes) ac_lib="" ;;
30464                 no) continue ;;
30465                 -l*) ;;
30466                 *) ac_lib="-l$ac_lib" ;;
30467                 esac
30468                 LIBS=" $ac_lib  $ac_save_LIBS"
30469                 cat >conftest.$ac_ext <<_ACEOF
30470 #line 30470 "configure"
30471 #include "confdefs.h"
30472
30473 #ifdef F77_DUMMY_MAIN
30474 #  ifdef __cplusplus
30475      extern "C"
30476 #  endif
30477    int F77_DUMMY_MAIN() { return 1; }
30478 #endif
30479 int
30480 main ()
30481 {
30482 logwtmp()
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest.$ac_objext conftest$ac_exeext
30488 if { (eval echo "$as_me:30488: \"$ac_link\"") >&5
30489   (eval $ac_link) 2>&5
30490   ac_status=$?
30491   echo "$as_me:30491: \$? = $ac_status" >&5
30492   (exit $ac_status); } &&
30493          { ac_try='test -s conftest$ac_exeext'
30494   { (eval echo "$as_me:30494: \"$ac_try\"") >&5
30495   (eval $ac_try) 2>&5
30496   ac_status=$?
30497   echo "$as_me:30497: \$? = $ac_status" >&5
30498   (exit $ac_status); }; }; then
30499   eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
30500 else
30501   echo "$as_me: failed program was:" >&5
30502 cat conftest.$ac_ext >&5
30503 fi
30504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30505         done
30506         eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
30507         LIBS="$ac_save_LIBS"
30508 fi
30509
30510 fi
30511
30512
30513 eval "ac_res=\$ac_cv_funclib_logwtmp"
30514
30515 if false; then
30516
30517 for ac_func in logwtmp
30518 do
30519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30520 echo "$as_me:30520: checking for $ac_func" >&5
30521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30522 if eval "test \"\${$as_ac_var+set}\" = set"; then
30523   echo $ECHO_N "(cached) $ECHO_C" >&6
30524 else
30525   cat >conftest.$ac_ext <<_ACEOF
30526 #line 30526 "configure"
30527 #include "confdefs.h"
30528 /* System header to define __stub macros and hopefully few prototypes,
30529     which can conflict with char $ac_func (); below.  */
30530 #include <assert.h>
30531 /* Override any gcc2 internal prototype to avoid an error.  */
30532 #ifdef __cplusplus
30533 extern "C"
30534 #endif
30535 /* We use char because int might match the return type of a gcc2
30536    builtin and then its argument prototype would still apply.  */
30537 char $ac_func ();
30538 char (*f) ();
30539
30540 #ifdef F77_DUMMY_MAIN
30541 #  ifdef __cplusplus
30542      extern "C"
30543 #  endif
30544    int F77_DUMMY_MAIN() { return 1; }
30545 #endif
30546 int
30547 main ()
30548 {
30549 /* The GNU C library defines this for functions which it implements
30550     to always fail with ENOSYS.  Some functions are actually named
30551     something starting with __ and the normal name is an alias.  */
30552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30553 choke me
30554 #else
30555 f = $ac_func;
30556 #endif
30557
30558   ;
30559   return 0;
30560 }
30561 _ACEOF
30562 rm -f conftest.$ac_objext conftest$ac_exeext
30563 if { (eval echo "$as_me:30563: \"$ac_link\"") >&5
30564   (eval $ac_link) 2>&5
30565   ac_status=$?
30566   echo "$as_me:30566: \$? = $ac_status" >&5
30567   (exit $ac_status); } &&
30568          { ac_try='test -s conftest$ac_exeext'
30569   { (eval echo "$as_me:30569: \"$ac_try\"") >&5
30570   (eval $ac_try) 2>&5
30571   ac_status=$?
30572   echo "$as_me:30572: \$? = $ac_status" >&5
30573   (exit $ac_status); }; }; then
30574   eval "$as_ac_var=yes"
30575 else
30576   echo "$as_me: failed program was:" >&5
30577 cat conftest.$ac_ext >&5
30578 eval "$as_ac_var=no"
30579 fi
30580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30581 fi
30582 echo "$as_me:30582: result: `eval echo '${'$as_ac_var'}'`" >&5
30583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30584 if test `eval echo '${'$as_ac_var'}'` = yes; then
30585   cat >>confdefs.h <<_ACEOF
30586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30587 _ACEOF
30588
30589 fi
30590 done
30591
30592 fi
30593 # logwtmp
30594 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30595 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30596 eval "LIB_logwtmp=$ac_res"
30597
30598 case "$ac_res" in
30599         yes)
30600         eval "ac_cv_func_logwtmp=yes"
30601         eval "LIB_logwtmp="
30602         cat >>confdefs.h <<_ACEOF
30603 #define $ac_tr_func 1
30604 _ACEOF
30605
30606         echo "$as_me:30606: result: yes" >&5
30607 echo "${ECHO_T}yes" >&6
30608         ;;
30609         no)
30610         eval "ac_cv_func_logwtmp=no"
30611         eval "LIB_logwtmp="
30612         echo "$as_me:30612: result: no" >&5
30613 echo "${ECHO_T}no" >&6
30614         ;;
30615         *)
30616         eval "ac_cv_func_logwtmp=yes"
30617         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30618         cat >>confdefs.h <<_ACEOF
30619 #define $ac_tr_func 1
30620 _ACEOF
30621
30622         cat >>confdefs.h <<_ACEOF
30623 #define $ac_tr_lib 1
30624 _ACEOF
30625
30626         echo "$as_me:30626: result: yes, in $ac_res" >&5
30627 echo "${ECHO_T}yes, in $ac_res" >&6
30628         ;;
30629 esac
30630
30631
30632
30633
30634
30635 echo "$as_me:30635: checking for logout" >&5
30636 echo $ECHO_N "checking for logout... $ECHO_C" >&6
30637 if test "${ac_cv_funclib_logout+set}" = set; then
30638   echo $ECHO_N "(cached) $ECHO_C" >&6
30639 else
30640
30641 if eval "test \"\$ac_cv_func_logout\" != yes" ; then
30642         ac_save_LIBS="$LIBS"
30643         for ac_lib in "" util; do
30644                 case "$ac_lib" in
30645                 "") ;;
30646                 yes) ac_lib="" ;;
30647                 no) continue ;;
30648                 -l*) ;;
30649                 *) ac_lib="-l$ac_lib" ;;
30650                 esac
30651                 LIBS=" $ac_lib  $ac_save_LIBS"
30652                 cat >conftest.$ac_ext <<_ACEOF
30653 #line 30653 "configure"
30654 #include "confdefs.h"
30655
30656 #ifdef F77_DUMMY_MAIN
30657 #  ifdef __cplusplus
30658      extern "C"
30659 #  endif
30660    int F77_DUMMY_MAIN() { return 1; }
30661 #endif
30662 int
30663 main ()
30664 {
30665 logout()
30666   ;
30667   return 0;
30668 }
30669 _ACEOF
30670 rm -f conftest.$ac_objext conftest$ac_exeext
30671 if { (eval echo "$as_me:30671: \"$ac_link\"") >&5
30672   (eval $ac_link) 2>&5
30673   ac_status=$?
30674   echo "$as_me:30674: \$? = $ac_status" >&5
30675   (exit $ac_status); } &&
30676          { ac_try='test -s conftest$ac_exeext'
30677   { (eval echo "$as_me:30677: \"$ac_try\"") >&5
30678   (eval $ac_try) 2>&5
30679   ac_status=$?
30680   echo "$as_me:30680: \$? = $ac_status" >&5
30681   (exit $ac_status); }; }; then
30682   eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
30683 else
30684   echo "$as_me: failed program was:" >&5
30685 cat conftest.$ac_ext >&5
30686 fi
30687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30688         done
30689         eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
30690         LIBS="$ac_save_LIBS"
30691 fi
30692
30693 fi
30694
30695
30696 eval "ac_res=\$ac_cv_funclib_logout"
30697
30698 if false; then
30699
30700 for ac_func in logout
30701 do
30702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30703 echo "$as_me:30703: checking for $ac_func" >&5
30704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30705 if eval "test \"\${$as_ac_var+set}\" = set"; then
30706   echo $ECHO_N "(cached) $ECHO_C" >&6
30707 else
30708   cat >conftest.$ac_ext <<_ACEOF
30709 #line 30709 "configure"
30710 #include "confdefs.h"
30711 /* System header to define __stub macros and hopefully few prototypes,
30712     which can conflict with char $ac_func (); below.  */
30713 #include <assert.h>
30714 /* Override any gcc2 internal prototype to avoid an error.  */
30715 #ifdef __cplusplus
30716 extern "C"
30717 #endif
30718 /* We use char because int might match the return type of a gcc2
30719    builtin and then its argument prototype would still apply.  */
30720 char $ac_func ();
30721 char (*f) ();
30722
30723 #ifdef F77_DUMMY_MAIN
30724 #  ifdef __cplusplus
30725      extern "C"
30726 #  endif
30727    int F77_DUMMY_MAIN() { return 1; }
30728 #endif
30729 int
30730 main ()
30731 {
30732 /* The GNU C library defines this for functions which it implements
30733     to always fail with ENOSYS.  Some functions are actually named
30734     something starting with __ and the normal name is an alias.  */
30735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30736 choke me
30737 #else
30738 f = $ac_func;
30739 #endif
30740
30741   ;
30742   return 0;
30743 }
30744 _ACEOF
30745 rm -f conftest.$ac_objext conftest$ac_exeext
30746 if { (eval echo "$as_me:30746: \"$ac_link\"") >&5
30747   (eval $ac_link) 2>&5
30748   ac_status=$?
30749   echo "$as_me:30749: \$? = $ac_status" >&5
30750   (exit $ac_status); } &&
30751          { ac_try='test -s conftest$ac_exeext'
30752   { (eval echo "$as_me:30752: \"$ac_try\"") >&5
30753   (eval $ac_try) 2>&5
30754   ac_status=$?
30755   echo "$as_me:30755: \$? = $ac_status" >&5
30756   (exit $ac_status); }; }; then
30757   eval "$as_ac_var=yes"
30758 else
30759   echo "$as_me: failed program was:" >&5
30760 cat conftest.$ac_ext >&5
30761 eval "$as_ac_var=no"
30762 fi
30763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30764 fi
30765 echo "$as_me:30765: result: `eval echo '${'$as_ac_var'}'`" >&5
30766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30767 if test `eval echo '${'$as_ac_var'}'` = yes; then
30768   cat >>confdefs.h <<_ACEOF
30769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30770 _ACEOF
30771
30772 fi
30773 done
30774
30775 fi
30776 # logout
30777 eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30778 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30779 eval "LIB_logout=$ac_res"
30780
30781 case "$ac_res" in
30782         yes)
30783         eval "ac_cv_func_logout=yes"
30784         eval "LIB_logout="
30785         cat >>confdefs.h <<_ACEOF
30786 #define $ac_tr_func 1
30787 _ACEOF
30788
30789         echo "$as_me:30789: result: yes" >&5
30790 echo "${ECHO_T}yes" >&6
30791         ;;
30792         no)
30793         eval "ac_cv_func_logout=no"
30794         eval "LIB_logout="
30795         echo "$as_me:30795: result: no" >&5
30796 echo "${ECHO_T}no" >&6
30797         ;;
30798         *)
30799         eval "ac_cv_func_logout=yes"
30800         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30801         cat >>confdefs.h <<_ACEOF
30802 #define $ac_tr_func 1
30803 _ACEOF
30804
30805         cat >>confdefs.h <<_ACEOF
30806 #define $ac_tr_lib 1
30807 _ACEOF
30808
30809         echo "$as_me:30809: result: yes, in $ac_res" >&5
30810 echo "${ECHO_T}yes, in $ac_res" >&6
30811         ;;
30812 esac
30813
30814
30815
30816
30817
30818 echo "$as_me:30818: checking for openpty" >&5
30819 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
30820 if test "${ac_cv_funclib_openpty+set}" = set; then
30821   echo $ECHO_N "(cached) $ECHO_C" >&6
30822 else
30823
30824 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
30825         ac_save_LIBS="$LIBS"
30826         for ac_lib in "" util; do
30827                 case "$ac_lib" in
30828                 "") ;;
30829                 yes) ac_lib="" ;;
30830                 no) continue ;;
30831                 -l*) ;;
30832                 *) ac_lib="-l$ac_lib" ;;
30833                 esac
30834                 LIBS=" $ac_lib  $ac_save_LIBS"
30835                 cat >conftest.$ac_ext <<_ACEOF
30836 #line 30836 "configure"
30837 #include "confdefs.h"
30838
30839 #ifdef F77_DUMMY_MAIN
30840 #  ifdef __cplusplus
30841      extern "C"
30842 #  endif
30843    int F77_DUMMY_MAIN() { return 1; }
30844 #endif
30845 int
30846 main ()
30847 {
30848 openpty()
30849   ;
30850   return 0;
30851 }
30852 _ACEOF
30853 rm -f conftest.$ac_objext conftest$ac_exeext
30854 if { (eval echo "$as_me:30854: \"$ac_link\"") >&5
30855   (eval $ac_link) 2>&5
30856   ac_status=$?
30857   echo "$as_me:30857: \$? = $ac_status" >&5
30858   (exit $ac_status); } &&
30859          { ac_try='test -s conftest$ac_exeext'
30860   { (eval echo "$as_me:30860: \"$ac_try\"") >&5
30861   (eval $ac_try) 2>&5
30862   ac_status=$?
30863   echo "$as_me:30863: \$? = $ac_status" >&5
30864   (exit $ac_status); }; }; then
30865   eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
30866 else
30867   echo "$as_me: failed program was:" >&5
30868 cat conftest.$ac_ext >&5
30869 fi
30870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30871         done
30872         eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
30873         LIBS="$ac_save_LIBS"
30874 fi
30875
30876 fi
30877
30878
30879 eval "ac_res=\$ac_cv_funclib_openpty"
30880
30881 if false; then
30882
30883 for ac_func in openpty
30884 do
30885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30886 echo "$as_me:30886: checking for $ac_func" >&5
30887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30888 if eval "test \"\${$as_ac_var+set}\" = set"; then
30889   echo $ECHO_N "(cached) $ECHO_C" >&6
30890 else
30891   cat >conftest.$ac_ext <<_ACEOF
30892 #line 30892 "configure"
30893 #include "confdefs.h"
30894 /* System header to define __stub macros and hopefully few prototypes,
30895     which can conflict with char $ac_func (); below.  */
30896 #include <assert.h>
30897 /* Override any gcc2 internal prototype to avoid an error.  */
30898 #ifdef __cplusplus
30899 extern "C"
30900 #endif
30901 /* We use char because int might match the return type of a gcc2
30902    builtin and then its argument prototype would still apply.  */
30903 char $ac_func ();
30904 char (*f) ();
30905
30906 #ifdef F77_DUMMY_MAIN
30907 #  ifdef __cplusplus
30908      extern "C"
30909 #  endif
30910    int F77_DUMMY_MAIN() { return 1; }
30911 #endif
30912 int
30913 main ()
30914 {
30915 /* The GNU C library defines this for functions which it implements
30916     to always fail with ENOSYS.  Some functions are actually named
30917     something starting with __ and the normal name is an alias.  */
30918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30919 choke me
30920 #else
30921 f = $ac_func;
30922 #endif
30923
30924   ;
30925   return 0;
30926 }
30927 _ACEOF
30928 rm -f conftest.$ac_objext conftest$ac_exeext
30929 if { (eval echo "$as_me:30929: \"$ac_link\"") >&5
30930   (eval $ac_link) 2>&5
30931   ac_status=$?
30932   echo "$as_me:30932: \$? = $ac_status" >&5
30933   (exit $ac_status); } &&
30934          { ac_try='test -s conftest$ac_exeext'
30935   { (eval echo "$as_me:30935: \"$ac_try\"") >&5
30936   (eval $ac_try) 2>&5
30937   ac_status=$?
30938   echo "$as_me:30938: \$? = $ac_status" >&5
30939   (exit $ac_status); }; }; then
30940   eval "$as_ac_var=yes"
30941 else
30942   echo "$as_me: failed program was:" >&5
30943 cat conftest.$ac_ext >&5
30944 eval "$as_ac_var=no"
30945 fi
30946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30947 fi
30948 echo "$as_me:30948: result: `eval echo '${'$as_ac_var'}'`" >&5
30949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30950 if test `eval echo '${'$as_ac_var'}'` = yes; then
30951   cat >>confdefs.h <<_ACEOF
30952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30953 _ACEOF
30954
30955 fi
30956 done
30957
30958 fi
30959 # openpty
30960 eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30961 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30962 eval "LIB_openpty=$ac_res"
30963
30964 case "$ac_res" in
30965         yes)
30966         eval "ac_cv_func_openpty=yes"
30967         eval "LIB_openpty="
30968         cat >>confdefs.h <<_ACEOF
30969 #define $ac_tr_func 1
30970 _ACEOF
30971
30972         echo "$as_me:30972: result: yes" >&5
30973 echo "${ECHO_T}yes" >&6
30974         ;;
30975         no)
30976         eval "ac_cv_func_openpty=no"
30977         eval "LIB_openpty="
30978         echo "$as_me:30978: result: no" >&5
30979 echo "${ECHO_T}no" >&6
30980         ;;
30981         *)
30982         eval "ac_cv_func_openpty=yes"
30983         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30984         cat >>confdefs.h <<_ACEOF
30985 #define $ac_tr_func 1
30986 _ACEOF
30987
30988         cat >>confdefs.h <<_ACEOF
30989 #define $ac_tr_lib 1
30990 _ACEOF
30991
30992         echo "$as_me:30992: result: yes, in $ac_res" >&5
30993 echo "${ECHO_T}yes, in $ac_res" >&6
30994         ;;
30995 esac
30996
30997
30998
30999
31000
31001 echo "$as_me:31001: checking for tgetent" >&5
31002 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
31003 if test "${ac_cv_funclib_tgetent+set}" = set; then
31004   echo $ECHO_N "(cached) $ECHO_C" >&6
31005 else
31006
31007 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
31008         ac_save_LIBS="$LIBS"
31009         for ac_lib in "" termcap ncurses curses; do
31010                 case "$ac_lib" in
31011                 "") ;;
31012                 yes) ac_lib="" ;;
31013                 no) continue ;;
31014                 -l*) ;;
31015                 *) ac_lib="-l$ac_lib" ;;
31016                 esac
31017                 LIBS=" $ac_lib  $ac_save_LIBS"
31018                 cat >conftest.$ac_ext <<_ACEOF
31019 #line 31019 "configure"
31020 #include "confdefs.h"
31021
31022 #ifdef F77_DUMMY_MAIN
31023 #  ifdef __cplusplus
31024      extern "C"
31025 #  endif
31026    int F77_DUMMY_MAIN() { return 1; }
31027 #endif
31028 int
31029 main ()
31030 {
31031 tgetent()
31032   ;
31033   return 0;
31034 }
31035 _ACEOF
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (eval echo "$as_me:31037: \"$ac_link\"") >&5
31038   (eval $ac_link) 2>&5
31039   ac_status=$?
31040   echo "$as_me:31040: \$? = $ac_status" >&5
31041   (exit $ac_status); } &&
31042          { ac_try='test -s conftest$ac_exeext'
31043   { (eval echo "$as_me:31043: \"$ac_try\"") >&5
31044   (eval $ac_try) 2>&5
31045   ac_status=$?
31046   echo "$as_me:31046: \$? = $ac_status" >&5
31047   (exit $ac_status); }; }; then
31048   eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
31049 else
31050   echo "$as_me: failed program was:" >&5
31051 cat conftest.$ac_ext >&5
31052 fi
31053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31054         done
31055         eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
31056         LIBS="$ac_save_LIBS"
31057 fi
31058
31059 fi
31060
31061
31062 eval "ac_res=\$ac_cv_funclib_tgetent"
31063
31064 if false; then
31065
31066 for ac_func in tgetent
31067 do
31068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31069 echo "$as_me:31069: checking for $ac_func" >&5
31070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31071 if eval "test \"\${$as_ac_var+set}\" = set"; then
31072   echo $ECHO_N "(cached) $ECHO_C" >&6
31073 else
31074   cat >conftest.$ac_ext <<_ACEOF
31075 #line 31075 "configure"
31076 #include "confdefs.h"
31077 /* System header to define __stub macros and hopefully few prototypes,
31078     which can conflict with char $ac_func (); below.  */
31079 #include <assert.h>
31080 /* Override any gcc2 internal prototype to avoid an error.  */
31081 #ifdef __cplusplus
31082 extern "C"
31083 #endif
31084 /* We use char because int might match the return type of a gcc2
31085    builtin and then its argument prototype would still apply.  */
31086 char $ac_func ();
31087 char (*f) ();
31088
31089 #ifdef F77_DUMMY_MAIN
31090 #  ifdef __cplusplus
31091      extern "C"
31092 #  endif
31093    int F77_DUMMY_MAIN() { return 1; }
31094 #endif
31095 int
31096 main ()
31097 {
31098 /* The GNU C library defines this for functions which it implements
31099     to always fail with ENOSYS.  Some functions are actually named
31100     something starting with __ and the normal name is an alias.  */
31101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31102 choke me
31103 #else
31104 f = $ac_func;
31105 #endif
31106
31107   ;
31108   return 0;
31109 }
31110 _ACEOF
31111 rm -f conftest.$ac_objext conftest$ac_exeext
31112 if { (eval echo "$as_me:31112: \"$ac_link\"") >&5
31113   (eval $ac_link) 2>&5
31114   ac_status=$?
31115   echo "$as_me:31115: \$? = $ac_status" >&5
31116   (exit $ac_status); } &&
31117          { ac_try='test -s conftest$ac_exeext'
31118   { (eval echo "$as_me:31118: \"$ac_try\"") >&5
31119   (eval $ac_try) 2>&5
31120   ac_status=$?
31121   echo "$as_me:31121: \$? = $ac_status" >&5
31122   (exit $ac_status); }; }; then
31123   eval "$as_ac_var=yes"
31124 else
31125   echo "$as_me: failed program was:" >&5
31126 cat conftest.$ac_ext >&5
31127 eval "$as_ac_var=no"
31128 fi
31129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31130 fi
31131 echo "$as_me:31131: result: `eval echo '${'$as_ac_var'}'`" >&5
31132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31133 if test `eval echo '${'$as_ac_var'}'` = yes; then
31134   cat >>confdefs.h <<_ACEOF
31135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31136 _ACEOF
31137
31138 fi
31139 done
31140
31141 fi
31142 # tgetent
31143 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31144 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31145 eval "LIB_tgetent=$ac_res"
31146
31147 case "$ac_res" in
31148         yes)
31149         eval "ac_cv_func_tgetent=yes"
31150         eval "LIB_tgetent="
31151         cat >>confdefs.h <<_ACEOF
31152 #define $ac_tr_func 1
31153 _ACEOF
31154
31155         echo "$as_me:31155: result: yes" >&5
31156 echo "${ECHO_T}yes" >&6
31157         ;;
31158         no)
31159         eval "ac_cv_func_tgetent=no"
31160         eval "LIB_tgetent="
31161         echo "$as_me:31161: result: no" >&5
31162 echo "${ECHO_T}no" >&6
31163         ;;
31164         *)
31165         eval "ac_cv_func_tgetent=yes"
31166         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31167         cat >>confdefs.h <<_ACEOF
31168 #define $ac_tr_func 1
31169 _ACEOF
31170
31171         cat >>confdefs.h <<_ACEOF
31172 #define $ac_tr_lib 1
31173 _ACEOF
31174
31175         echo "$as_me:31175: result: yes, in $ac_res" >&5
31176 echo "${ECHO_T}yes, in $ac_res" >&6
31177         ;;
31178 esac
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210
31211 for ac_func in                          \
31212         _getpty                                 \
31213         _scrsize                                \
31214         fcntl                                   \
31215         grantpt                                 \
31216         mktime                                  \
31217         ptsname                                 \
31218         rand                                    \
31219         revoke                                  \
31220         select                                  \
31221         setitimer                               \
31222         setpcred                                \
31223         setpgid                                 \
31224         setproctitle                            \
31225         setregid                                \
31226         setresgid                               \
31227         setresuid                               \
31228         setreuid                                \
31229         setsid                                  \
31230         setutent                                \
31231         sigaction                               \
31232         strstr                                  \
31233         timegm                                  \
31234         ttyname                                 \
31235         ttyslot                                 \
31236         umask                                   \
31237         unlockpt                                \
31238         vhangup                                 \
31239         yp_get_default_domain                   \
31240
31241 do
31242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31243 echo "$as_me:31243: checking for $ac_func" >&5
31244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31245 if eval "test \"\${$as_ac_var+set}\" = set"; then
31246   echo $ECHO_N "(cached) $ECHO_C" >&6
31247 else
31248   cat >conftest.$ac_ext <<_ACEOF
31249 #line 31249 "configure"
31250 #include "confdefs.h"
31251 /* System header to define __stub macros and hopefully few prototypes,
31252     which can conflict with char $ac_func (); below.  */
31253 #include <assert.h>
31254 /* Override any gcc2 internal prototype to avoid an error.  */
31255 #ifdef __cplusplus
31256 extern "C"
31257 #endif
31258 /* We use char because int might match the return type of a gcc2
31259    builtin and then its argument prototype would still apply.  */
31260 char $ac_func ();
31261 char (*f) ();
31262
31263 #ifdef F77_DUMMY_MAIN
31264 #  ifdef __cplusplus
31265      extern "C"
31266 #  endif
31267    int F77_DUMMY_MAIN() { return 1; }
31268 #endif
31269 int
31270 main ()
31271 {
31272 /* The GNU C library defines this for functions which it implements
31273     to always fail with ENOSYS.  Some functions are actually named
31274     something starting with __ and the normal name is an alias.  */
31275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31276 choke me
31277 #else
31278 f = $ac_func;
31279 #endif
31280
31281   ;
31282   return 0;
31283 }
31284 _ACEOF
31285 rm -f conftest.$ac_objext conftest$ac_exeext
31286 if { (eval echo "$as_me:31286: \"$ac_link\"") >&5
31287   (eval $ac_link) 2>&5
31288   ac_status=$?
31289   echo "$as_me:31289: \$? = $ac_status" >&5
31290   (exit $ac_status); } &&
31291          { ac_try='test -s conftest$ac_exeext'
31292   { (eval echo "$as_me:31292: \"$ac_try\"") >&5
31293   (eval $ac_try) 2>&5
31294   ac_status=$?
31295   echo "$as_me:31295: \$? = $ac_status" >&5
31296   (exit $ac_status); }; }; then
31297   eval "$as_ac_var=yes"
31298 else
31299   echo "$as_me: failed program was:" >&5
31300 cat conftest.$ac_ext >&5
31301 eval "$as_ac_var=no"
31302 fi
31303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31304 fi
31305 echo "$as_me:31305: result: `eval echo '${'$as_ac_var'}'`" >&5
31306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31307 if test `eval echo '${'$as_ac_var'}'` = yes; then
31308   cat >>confdefs.h <<_ACEOF
31309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31310 _ACEOF
31311
31312 fi
31313 done
31314
31315
31316
31317
31318
31319
31320 for ac_header in capability.h sys/capability.h
31321 do
31322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31324   echo "$as_me:31324: checking for $ac_header" >&5
31325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31327   echo $ECHO_N "(cached) $ECHO_C" >&6
31328 fi
31329 echo "$as_me:31329: result: `eval echo '${'$as_ac_Header'}'`" >&5
31330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31331 else
31332   # Is the header compilable?
31333 echo "$as_me:31333: checking $ac_header usability" >&5
31334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31335 cat >conftest.$ac_ext <<_ACEOF
31336 #line 31336 "configure"
31337 #include "confdefs.h"
31338 $ac_includes_default
31339 #include <$ac_header>
31340 _ACEOF
31341 rm -f conftest.$ac_objext
31342 if { (eval echo "$as_me:31342: \"$ac_compile\"") >&5
31343   (eval $ac_compile) 2>&5
31344   ac_status=$?
31345   echo "$as_me:31345: \$? = $ac_status" >&5
31346   (exit $ac_status); } &&
31347          { ac_try='test -s conftest.$ac_objext'
31348   { (eval echo "$as_me:31348: \"$ac_try\"") >&5
31349   (eval $ac_try) 2>&5
31350   ac_status=$?
31351   echo "$as_me:31351: \$? = $ac_status" >&5
31352   (exit $ac_status); }; }; then
31353   ac_header_compiler=yes
31354 else
31355   echo "$as_me: failed program was:" >&5
31356 cat conftest.$ac_ext >&5
31357 ac_header_compiler=no
31358 fi
31359 rm -f conftest.$ac_objext conftest.$ac_ext
31360 echo "$as_me:31360: result: $ac_header_compiler" >&5
31361 echo "${ECHO_T}$ac_header_compiler" >&6
31362
31363 # Is the header present?
31364 echo "$as_me:31364: checking $ac_header presence" >&5
31365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31366 cat >conftest.$ac_ext <<_ACEOF
31367 #line 31367 "configure"
31368 #include "confdefs.h"
31369 #include <$ac_header>
31370 _ACEOF
31371 if { (eval echo "$as_me:31371: \"$ac_cpp conftest.$ac_ext\"") >&5
31372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31373   ac_status=$?
31374   egrep -v '^ *\+' conftest.er1 >conftest.err
31375   rm -f conftest.er1
31376   cat conftest.err >&5
31377   echo "$as_me:31377: \$? = $ac_status" >&5
31378   (exit $ac_status); } >/dev/null; then
31379   if test -s conftest.err; then
31380     ac_cpp_err=$ac_c_preproc_warn_flag
31381   else
31382     ac_cpp_err=
31383   fi
31384 else
31385   ac_cpp_err=yes
31386 fi
31387 if test -z "$ac_cpp_err"; then
31388   ac_header_preproc=yes
31389 else
31390   echo "$as_me: failed program was:" >&5
31391   cat conftest.$ac_ext >&5
31392   ac_header_preproc=no
31393 fi
31394 rm -f conftest.err conftest.$ac_ext
31395 echo "$as_me:31395: result: $ac_header_preproc" >&5
31396 echo "${ECHO_T}$ac_header_preproc" >&6
31397
31398 # So?  What about this header?
31399 case $ac_header_compiler:$ac_header_preproc in
31400   yes:no )
31401     { echo "$as_me:31401: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31403     { echo "$as_me:31403: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31405   no:yes )
31406     { echo "$as_me:31406: WARNING: $ac_header: present but cannot be compiled" >&5
31407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31408     { echo "$as_me:31408: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31410     { echo "$as_me:31410: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31412 esac
31413 echo "$as_me:31413: checking for $ac_header" >&5
31414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31416   echo $ECHO_N "(cached) $ECHO_C" >&6
31417 else
31418   eval "$as_ac_Header=$ac_header_preproc"
31419 fi
31420 echo "$as_me:31420: result: `eval echo '${'$as_ac_Header'}'`" >&5
31421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31422
31423 fi
31424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31425   cat >>confdefs.h <<_ACEOF
31426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31427 _ACEOF
31428
31429 fi
31430
31431 done
31432
31433
31434
31435
31436 for ac_func in sgi_getcapabilitybyname cap_set_proc
31437 do
31438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31439 echo "$as_me:31439: checking for $ac_func" >&5
31440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31441 if eval "test \"\${$as_ac_var+set}\" = set"; then
31442   echo $ECHO_N "(cached) $ECHO_C" >&6
31443 else
31444   cat >conftest.$ac_ext <<_ACEOF
31445 #line 31445 "configure"
31446 #include "confdefs.h"
31447 /* System header to define __stub macros and hopefully few prototypes,
31448     which can conflict with char $ac_func (); below.  */
31449 #include <assert.h>
31450 /* Override any gcc2 internal prototype to avoid an error.  */
31451 #ifdef __cplusplus
31452 extern "C"
31453 #endif
31454 /* We use char because int might match the return type of a gcc2
31455    builtin and then its argument prototype would still apply.  */
31456 char $ac_func ();
31457 char (*f) ();
31458
31459 #ifdef F77_DUMMY_MAIN
31460 #  ifdef __cplusplus
31461      extern "C"
31462 #  endif
31463    int F77_DUMMY_MAIN() { return 1; }
31464 #endif
31465 int
31466 main ()
31467 {
31468 /* The GNU C library defines this for functions which it implements
31469     to always fail with ENOSYS.  Some functions are actually named
31470     something starting with __ and the normal name is an alias.  */
31471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31472 choke me
31473 #else
31474 f = $ac_func;
31475 #endif
31476
31477   ;
31478   return 0;
31479 }
31480 _ACEOF
31481 rm -f conftest.$ac_objext conftest$ac_exeext
31482 if { (eval echo "$as_me:31482: \"$ac_link\"") >&5
31483   (eval $ac_link) 2>&5
31484   ac_status=$?
31485   echo "$as_me:31485: \$? = $ac_status" >&5
31486   (exit $ac_status); } &&
31487          { ac_try='test -s conftest$ac_exeext'
31488   { (eval echo "$as_me:31488: \"$ac_try\"") >&5
31489   (eval $ac_try) 2>&5
31490   ac_status=$?
31491   echo "$as_me:31491: \$? = $ac_status" >&5
31492   (exit $ac_status); }; }; then
31493   eval "$as_ac_var=yes"
31494 else
31495   echo "$as_me: failed program was:" >&5
31496 cat conftest.$ac_ext >&5
31497 eval "$as_ac_var=no"
31498 fi
31499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31500 fi
31501 echo "$as_me:31501: result: `eval echo '${'$as_ac_var'}'`" >&5
31502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31503 if test `eval echo '${'$as_ac_var'}'` = yes; then
31504   cat >>confdefs.h <<_ACEOF
31505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31506 _ACEOF
31507
31508 fi
31509 done
31510
31511
31512
31513
31514
31515
31516
31517 echo "$as_me:31517: checking for getpwnam_r" >&5
31518 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
31519 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
31520   echo $ECHO_N "(cached) $ECHO_C" >&6
31521 else
31522
31523 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
31524         ac_save_LIBS="$LIBS"
31525         for ac_lib in "" c_r; do
31526                 case "$ac_lib" in
31527                 "") ;;
31528                 yes) ac_lib="" ;;
31529                 no) continue ;;
31530                 -l*) ;;
31531                 *) ac_lib="-l$ac_lib" ;;
31532                 esac
31533                 LIBS=" $ac_lib  $ac_save_LIBS"
31534                 cat >conftest.$ac_ext <<_ACEOF
31535 #line 31535 "configure"
31536 #include "confdefs.h"
31537
31538 #ifdef F77_DUMMY_MAIN
31539 #  ifdef __cplusplus
31540      extern "C"
31541 #  endif
31542    int F77_DUMMY_MAIN() { return 1; }
31543 #endif
31544 int
31545 main ()
31546 {
31547 getpwnam_r()
31548   ;
31549   return 0;
31550 }
31551 _ACEOF
31552 rm -f conftest.$ac_objext conftest$ac_exeext
31553 if { (eval echo "$as_me:31553: \"$ac_link\"") >&5
31554   (eval $ac_link) 2>&5
31555   ac_status=$?
31556   echo "$as_me:31556: \$? = $ac_status" >&5
31557   (exit $ac_status); } &&
31558          { ac_try='test -s conftest$ac_exeext'
31559   { (eval echo "$as_me:31559: \"$ac_try\"") >&5
31560   (eval $ac_try) 2>&5
31561   ac_status=$?
31562   echo "$as_me:31562: \$? = $ac_status" >&5
31563   (exit $ac_status); }; }; then
31564   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
31565 else
31566   echo "$as_me: failed program was:" >&5
31567 cat conftest.$ac_ext >&5
31568 fi
31569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31570         done
31571         eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
31572         LIBS="$ac_save_LIBS"
31573 fi
31574
31575 fi
31576
31577
31578 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
31579
31580 if false; then
31581
31582 for ac_func in getpwnam_r
31583 do
31584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31585 echo "$as_me:31585: checking for $ac_func" >&5
31586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31587 if eval "test \"\${$as_ac_var+set}\" = set"; then
31588   echo $ECHO_N "(cached) $ECHO_C" >&6
31589 else
31590   cat >conftest.$ac_ext <<_ACEOF
31591 #line 31591 "configure"
31592 #include "confdefs.h"
31593 /* System header to define __stub macros and hopefully few prototypes,
31594     which can conflict with char $ac_func (); below.  */
31595 #include <assert.h>
31596 /* Override any gcc2 internal prototype to avoid an error.  */
31597 #ifdef __cplusplus
31598 extern "C"
31599 #endif
31600 /* We use char because int might match the return type of a gcc2
31601    builtin and then its argument prototype would still apply.  */
31602 char $ac_func ();
31603 char (*f) ();
31604
31605 #ifdef F77_DUMMY_MAIN
31606 #  ifdef __cplusplus
31607      extern "C"
31608 #  endif
31609    int F77_DUMMY_MAIN() { return 1; }
31610 #endif
31611 int
31612 main ()
31613 {
31614 /* The GNU C library defines this for functions which it implements
31615     to always fail with ENOSYS.  Some functions are actually named
31616     something starting with __ and the normal name is an alias.  */
31617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31618 choke me
31619 #else
31620 f = $ac_func;
31621 #endif
31622
31623   ;
31624   return 0;
31625 }
31626 _ACEOF
31627 rm -f conftest.$ac_objext conftest$ac_exeext
31628 if { (eval echo "$as_me:31628: \"$ac_link\"") >&5
31629   (eval $ac_link) 2>&5
31630   ac_status=$?
31631   echo "$as_me:31631: \$? = $ac_status" >&5
31632   (exit $ac_status); } &&
31633          { ac_try='test -s conftest$ac_exeext'
31634   { (eval echo "$as_me:31634: \"$ac_try\"") >&5
31635   (eval $ac_try) 2>&5
31636   ac_status=$?
31637   echo "$as_me:31637: \$? = $ac_status" >&5
31638   (exit $ac_status); }; }; then
31639   eval "$as_ac_var=yes"
31640 else
31641   echo "$as_me: failed program was:" >&5
31642 cat conftest.$ac_ext >&5
31643 eval "$as_ac_var=no"
31644 fi
31645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31646 fi
31647 echo "$as_me:31647: result: `eval echo '${'$as_ac_var'}'`" >&5
31648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31649 if test `eval echo '${'$as_ac_var'}'` = yes; then
31650   cat >>confdefs.h <<_ACEOF
31651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31652 _ACEOF
31653
31654 fi
31655 done
31656
31657 fi
31658 # getpwnam_r
31659 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31660 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31661 eval "LIB_getpwnam_r=$ac_res"
31662
31663 case "$ac_res" in
31664         yes)
31665         eval "ac_cv_func_getpwnam_r=yes"
31666         eval "LIB_getpwnam_r="
31667         cat >>confdefs.h <<_ACEOF
31668 #define $ac_tr_func 1
31669 _ACEOF
31670
31671         echo "$as_me:31671: result: yes" >&5
31672 echo "${ECHO_T}yes" >&6
31673         ;;
31674         no)
31675         eval "ac_cv_func_getpwnam_r=no"
31676         eval "LIB_getpwnam_r="
31677         echo "$as_me:31677: result: no" >&5
31678 echo "${ECHO_T}no" >&6
31679         ;;
31680         *)
31681         eval "ac_cv_func_getpwnam_r=yes"
31682         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31683         cat >>confdefs.h <<_ACEOF
31684 #define $ac_tr_func 1
31685 _ACEOF
31686
31687         cat >>confdefs.h <<_ACEOF
31688 #define $ac_tr_lib 1
31689 _ACEOF
31690
31691         echo "$as_me:31691: result: yes, in $ac_res" >&5
31692 echo "${ECHO_T}yes, in $ac_res" >&6
31693         ;;
31694 esac
31695
31696
31697 if test "$ac_cv_func_getpwnam_r" = yes; then
31698         echo "$as_me:31698: checking if getpwnam_r is posix" >&5
31699 echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
31700 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
31701   echo $ECHO_N "(cached) $ECHO_C" >&6
31702 else
31703   ac_libs="$LIBS"
31704         LIBS="$LIBS $LIB_getpwnam_r"
31705         if test "$cross_compiling" = yes; then
31706   :
31707 else
31708   cat >conftest.$ac_ext <<_ACEOF
31709 #line 31709 "configure"
31710 #include "confdefs.h"
31711
31712 #include <pwd.h>
31713 int main()
31714 {
31715         struct passwd pw, *pwd;
31716         return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
31717 }
31718
31719 _ACEOF
31720 rm -f conftest$ac_exeext
31721 if { (eval echo "$as_me:31721: \"$ac_link\"") >&5
31722   (eval $ac_link) 2>&5
31723   ac_status=$?
31724   echo "$as_me:31724: \$? = $ac_status" >&5
31725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31726   { (eval echo "$as_me:31726: \"$ac_try\"") >&5
31727   (eval $ac_try) 2>&5
31728   ac_status=$?
31729   echo "$as_me:31729: \$? = $ac_status" >&5
31730   (exit $ac_status); }; }; then
31731   ac_cv_func_getpwnam_r_posix=yes
31732 else
31733   echo "$as_me: program exited with status $ac_status" >&5
31734 echo "$as_me: failed program was:" >&5
31735 cat conftest.$ac_ext >&5
31736 ( exit $ac_status )
31737 ac_cv_func_getpwnam_r_posix=no
31738 fi
31739 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31740 fi
31741 LIBS="$ac_libs"
31742 fi
31743 echo "$as_me:31743: result: $ac_cv_func_getpwnam_r_posix" >&5
31744 echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
31745 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
31746
31747 cat >>confdefs.h <<\_ACEOF
31748 #define POSIX_GETPWNAM_R 1
31749 _ACEOF
31750
31751 fi
31752 fi
31753
31754
31755
31756
31757 for ac_func in getudbnam setlim
31758 do
31759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31760 echo "$as_me:31760: checking for $ac_func" >&5
31761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31762 if eval "test \"\${$as_ac_var+set}\" = set"; then
31763   echo $ECHO_N "(cached) $ECHO_C" >&6
31764 else
31765   cat >conftest.$ac_ext <<_ACEOF
31766 #line 31766 "configure"
31767 #include "confdefs.h"
31768 /* System header to define __stub macros and hopefully few prototypes,
31769     which can conflict with char $ac_func (); below.  */
31770 #include <assert.h>
31771 /* Override any gcc2 internal prototype to avoid an error.  */
31772 #ifdef __cplusplus
31773 extern "C"
31774 #endif
31775 /* We use char because int might match the return type of a gcc2
31776    builtin and then its argument prototype would still apply.  */
31777 char $ac_func ();
31778 char (*f) ();
31779
31780 #ifdef F77_DUMMY_MAIN
31781 #  ifdef __cplusplus
31782      extern "C"
31783 #  endif
31784    int F77_DUMMY_MAIN() { return 1; }
31785 #endif
31786 int
31787 main ()
31788 {
31789 /* The GNU C library defines this for functions which it implements
31790     to always fail with ENOSYS.  Some functions are actually named
31791     something starting with __ and the normal name is an alias.  */
31792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31793 choke me
31794 #else
31795 f = $ac_func;
31796 #endif
31797
31798   ;
31799   return 0;
31800 }
31801 _ACEOF
31802 rm -f conftest.$ac_objext conftest$ac_exeext
31803 if { (eval echo "$as_me:31803: \"$ac_link\"") >&5
31804   (eval $ac_link) 2>&5
31805   ac_status=$?
31806   echo "$as_me:31806: \$? = $ac_status" >&5
31807   (exit $ac_status); } &&
31808          { ac_try='test -s conftest$ac_exeext'
31809   { (eval echo "$as_me:31809: \"$ac_try\"") >&5
31810   (eval $ac_try) 2>&5
31811   ac_status=$?
31812   echo "$as_me:31812: \$? = $ac_status" >&5
31813   (exit $ac_status); }; }; then
31814   eval "$as_ac_var=yes"
31815 else
31816   echo "$as_me: failed program was:" >&5
31817 cat conftest.$ac_ext >&5
31818 eval "$as_ac_var=no"
31819 fi
31820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31821 fi
31822 echo "$as_me:31822: result: `eval echo '${'$as_ac_var'}'`" >&5
31823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31824 if test `eval echo '${'$as_ac_var'}'` = yes; then
31825   cat >>confdefs.h <<_ACEOF
31826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31827 _ACEOF
31828
31829 fi
31830 done
31831
31832
31833
31834
31835
31836
31837 echo "$as_me:31837: checking for ut_addr in struct utmp" >&5
31838 echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
31839 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
31840   echo $ECHO_N "(cached) $ECHO_C" >&6
31841 else
31842
31843 cat >conftest.$ac_ext <<_ACEOF
31844 #line 31844 "configure"
31845 #include "confdefs.h"
31846 #include <utmp.h>
31847 #ifdef F77_DUMMY_MAIN
31848 #  ifdef __cplusplus
31849      extern "C"
31850 #  endif
31851    int F77_DUMMY_MAIN() { return 1; }
31852 #endif
31853 int
31854 main ()
31855 {
31856 struct utmp x; x.ut_addr;
31857   ;
31858   return 0;
31859 }
31860 _ACEOF
31861 rm -f conftest.$ac_objext
31862 if { (eval echo "$as_me:31862: \"$ac_compile\"") >&5
31863   (eval $ac_compile) 2>&5
31864   ac_status=$?
31865   echo "$as_me:31865: \$? = $ac_status" >&5
31866   (exit $ac_status); } &&
31867          { ac_try='test -s conftest.$ac_objext'
31868   { (eval echo "$as_me:31868: \"$ac_try\"") >&5
31869   (eval $ac_try) 2>&5
31870   ac_status=$?
31871   echo "$as_me:31871: \$? = $ac_status" >&5
31872   (exit $ac_status); }; }; then
31873   ac_cv_type_struct_utmp_ut_addr=yes
31874 else
31875   echo "$as_me: failed program was:" >&5
31876 cat conftest.$ac_ext >&5
31877 ac_cv_type_struct_utmp_ut_addr=no
31878 fi
31879 rm -f conftest.$ac_objext conftest.$ac_ext
31880 fi
31881 echo "$as_me:31881: result: $ac_cv_type_struct_utmp_ut_addr" >&5
31882 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
31883 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
31884
31885
31886 cat >>confdefs.h <<\_ACEOF
31887 #define HAVE_STRUCT_UTMP_UT_ADDR 1
31888 _ACEOF
31889
31890
31891 fi
31892
31893
31894
31895
31896 echo "$as_me:31896: checking for ut_host in struct utmp" >&5
31897 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
31898 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
31899   echo $ECHO_N "(cached) $ECHO_C" >&6
31900 else
31901
31902 cat >conftest.$ac_ext <<_ACEOF
31903 #line 31903 "configure"
31904 #include "confdefs.h"
31905 #include <utmp.h>
31906 #ifdef F77_DUMMY_MAIN
31907 #  ifdef __cplusplus
31908      extern "C"
31909 #  endif
31910    int F77_DUMMY_MAIN() { return 1; }
31911 #endif
31912 int
31913 main ()
31914 {
31915 struct utmp x; x.ut_host;
31916   ;
31917   return 0;
31918 }
31919 _ACEOF
31920 rm -f conftest.$ac_objext
31921 if { (eval echo "$as_me:31921: \"$ac_compile\"") >&5
31922   (eval $ac_compile) 2>&5
31923   ac_status=$?
31924   echo "$as_me:31924: \$? = $ac_status" >&5
31925   (exit $ac_status); } &&
31926          { ac_try='test -s conftest.$ac_objext'
31927   { (eval echo "$as_me:31927: \"$ac_try\"") >&5
31928   (eval $ac_try) 2>&5
31929   ac_status=$?
31930   echo "$as_me:31930: \$? = $ac_status" >&5
31931   (exit $ac_status); }; }; then
31932   ac_cv_type_struct_utmp_ut_host=yes
31933 else
31934   echo "$as_me: failed program was:" >&5
31935 cat conftest.$ac_ext >&5
31936 ac_cv_type_struct_utmp_ut_host=no
31937 fi
31938 rm -f conftest.$ac_objext conftest.$ac_ext
31939 fi
31940 echo "$as_me:31940: result: $ac_cv_type_struct_utmp_ut_host" >&5
31941 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
31942 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
31943
31944
31945 cat >>confdefs.h <<\_ACEOF
31946 #define HAVE_STRUCT_UTMP_UT_HOST 1
31947 _ACEOF
31948
31949
31950 fi
31951
31952
31953
31954
31955 echo "$as_me:31955: checking for ut_id in struct utmp" >&5
31956 echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
31957 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
31958   echo $ECHO_N "(cached) $ECHO_C" >&6
31959 else
31960
31961 cat >conftest.$ac_ext <<_ACEOF
31962 #line 31962 "configure"
31963 #include "confdefs.h"
31964 #include <utmp.h>
31965 #ifdef F77_DUMMY_MAIN
31966 #  ifdef __cplusplus
31967      extern "C"
31968 #  endif
31969    int F77_DUMMY_MAIN() { return 1; }
31970 #endif
31971 int
31972 main ()
31973 {
31974 struct utmp x; x.ut_id;
31975   ;
31976   return 0;
31977 }
31978 _ACEOF
31979 rm -f conftest.$ac_objext
31980 if { (eval echo "$as_me:31980: \"$ac_compile\"") >&5
31981   (eval $ac_compile) 2>&5
31982   ac_status=$?
31983   echo "$as_me:31983: \$? = $ac_status" >&5
31984   (exit $ac_status); } &&
31985          { ac_try='test -s conftest.$ac_objext'
31986   { (eval echo "$as_me:31986: \"$ac_try\"") >&5
31987   (eval $ac_try) 2>&5
31988   ac_status=$?
31989   echo "$as_me:31989: \$? = $ac_status" >&5
31990   (exit $ac_status); }; }; then
31991   ac_cv_type_struct_utmp_ut_id=yes
31992 else
31993   echo "$as_me: failed program was:" >&5
31994 cat conftest.$ac_ext >&5
31995 ac_cv_type_struct_utmp_ut_id=no
31996 fi
31997 rm -f conftest.$ac_objext conftest.$ac_ext
31998 fi
31999 echo "$as_me:31999: result: $ac_cv_type_struct_utmp_ut_id" >&5
32000 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
32001 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
32002
32003
32004 cat >>confdefs.h <<\_ACEOF
32005 #define HAVE_STRUCT_UTMP_UT_ID 1
32006 _ACEOF
32007
32008
32009 fi
32010
32011
32012
32013
32014 echo "$as_me:32014: checking for ut_pid in struct utmp" >&5
32015 echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
32016 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
32017   echo $ECHO_N "(cached) $ECHO_C" >&6
32018 else
32019
32020 cat >conftest.$ac_ext <<_ACEOF
32021 #line 32021 "configure"
32022 #include "confdefs.h"
32023 #include <utmp.h>
32024 #ifdef F77_DUMMY_MAIN
32025 #  ifdef __cplusplus
32026      extern "C"
32027 #  endif
32028    int F77_DUMMY_MAIN() { return 1; }
32029 #endif
32030 int
32031 main ()
32032 {
32033 struct utmp x; x.ut_pid;
32034   ;
32035   return 0;
32036 }
32037 _ACEOF
32038 rm -f conftest.$ac_objext
32039 if { (eval echo "$as_me:32039: \"$ac_compile\"") >&5
32040   (eval $ac_compile) 2>&5
32041   ac_status=$?
32042   echo "$as_me:32042: \$? = $ac_status" >&5
32043   (exit $ac_status); } &&
32044          { ac_try='test -s conftest.$ac_objext'
32045   { (eval echo "$as_me:32045: \"$ac_try\"") >&5
32046   (eval $ac_try) 2>&5
32047   ac_status=$?
32048   echo "$as_me:32048: \$? = $ac_status" >&5
32049   (exit $ac_status); }; }; then
32050   ac_cv_type_struct_utmp_ut_pid=yes
32051 else
32052   echo "$as_me: failed program was:" >&5
32053 cat conftest.$ac_ext >&5
32054 ac_cv_type_struct_utmp_ut_pid=no
32055 fi
32056 rm -f conftest.$ac_objext conftest.$ac_ext
32057 fi
32058 echo "$as_me:32058: result: $ac_cv_type_struct_utmp_ut_pid" >&5
32059 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
32060 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
32061
32062
32063 cat >>confdefs.h <<\_ACEOF
32064 #define HAVE_STRUCT_UTMP_UT_PID 1
32065 _ACEOF
32066
32067
32068 fi
32069
32070
32071
32072
32073 echo "$as_me:32073: checking for ut_type in struct utmp" >&5
32074 echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
32075 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
32076   echo $ECHO_N "(cached) $ECHO_C" >&6
32077 else
32078
32079 cat >conftest.$ac_ext <<_ACEOF
32080 #line 32080 "configure"
32081 #include "confdefs.h"
32082 #include <utmp.h>
32083 #ifdef F77_DUMMY_MAIN
32084 #  ifdef __cplusplus
32085      extern "C"
32086 #  endif
32087    int F77_DUMMY_MAIN() { return 1; }
32088 #endif
32089 int
32090 main ()
32091 {
32092 struct utmp x; x.ut_type;
32093   ;
32094   return 0;
32095 }
32096 _ACEOF
32097 rm -f conftest.$ac_objext
32098 if { (eval echo "$as_me:32098: \"$ac_compile\"") >&5
32099   (eval $ac_compile) 2>&5
32100   ac_status=$?
32101   echo "$as_me:32101: \$? = $ac_status" >&5
32102   (exit $ac_status); } &&
32103          { ac_try='test -s conftest.$ac_objext'
32104   { (eval echo "$as_me:32104: \"$ac_try\"") >&5
32105   (eval $ac_try) 2>&5
32106   ac_status=$?
32107   echo "$as_me:32107: \$? = $ac_status" >&5
32108   (exit $ac_status); }; }; then
32109   ac_cv_type_struct_utmp_ut_type=yes
32110 else
32111   echo "$as_me: failed program was:" >&5
32112 cat conftest.$ac_ext >&5
32113 ac_cv_type_struct_utmp_ut_type=no
32114 fi
32115 rm -f conftest.$ac_objext conftest.$ac_ext
32116 fi
32117 echo "$as_me:32117: result: $ac_cv_type_struct_utmp_ut_type" >&5
32118 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
32119 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
32120
32121
32122 cat >>confdefs.h <<\_ACEOF
32123 #define HAVE_STRUCT_UTMP_UT_TYPE 1
32124 _ACEOF
32125
32126
32127 fi
32128
32129
32130
32131
32132 echo "$as_me:32132: checking for ut_user in struct utmp" >&5
32133 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
32134 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
32135   echo $ECHO_N "(cached) $ECHO_C" >&6
32136 else
32137
32138 cat >conftest.$ac_ext <<_ACEOF
32139 #line 32139 "configure"
32140 #include "confdefs.h"
32141 #include <utmp.h>
32142 #ifdef F77_DUMMY_MAIN
32143 #  ifdef __cplusplus
32144      extern "C"
32145 #  endif
32146    int F77_DUMMY_MAIN() { return 1; }
32147 #endif
32148 int
32149 main ()
32150 {
32151 struct utmp x; x.ut_user;
32152   ;
32153   return 0;
32154 }
32155 _ACEOF
32156 rm -f conftest.$ac_objext
32157 if { (eval echo "$as_me:32157: \"$ac_compile\"") >&5
32158   (eval $ac_compile) 2>&5
32159   ac_status=$?
32160   echo "$as_me:32160: \$? = $ac_status" >&5
32161   (exit $ac_status); } &&
32162          { ac_try='test -s conftest.$ac_objext'
32163   { (eval echo "$as_me:32163: \"$ac_try\"") >&5
32164   (eval $ac_try) 2>&5
32165   ac_status=$?
32166   echo "$as_me:32166: \$? = $ac_status" >&5
32167   (exit $ac_status); }; }; then
32168   ac_cv_type_struct_utmp_ut_user=yes
32169 else
32170   echo "$as_me: failed program was:" >&5
32171 cat conftest.$ac_ext >&5
32172 ac_cv_type_struct_utmp_ut_user=no
32173 fi
32174 rm -f conftest.$ac_objext conftest.$ac_ext
32175 fi
32176 echo "$as_me:32176: result: $ac_cv_type_struct_utmp_ut_user" >&5
32177 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
32178 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
32179
32180
32181 cat >>confdefs.h <<\_ACEOF
32182 #define HAVE_STRUCT_UTMP_UT_USER 1
32183 _ACEOF
32184
32185
32186 fi
32187
32188
32189
32190
32191 echo "$as_me:32191: checking for ut_exit in struct utmpx" >&5
32192 echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
32193 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
32194   echo $ECHO_N "(cached) $ECHO_C" >&6
32195 else
32196
32197 cat >conftest.$ac_ext <<_ACEOF
32198 #line 32198 "configure"
32199 #include "confdefs.h"
32200 #include <utmpx.h>
32201 #ifdef F77_DUMMY_MAIN
32202 #  ifdef __cplusplus
32203      extern "C"
32204 #  endif
32205    int F77_DUMMY_MAIN() { return 1; }
32206 #endif
32207 int
32208 main ()
32209 {
32210 struct utmpx x; x.ut_exit;
32211   ;
32212   return 0;
32213 }
32214 _ACEOF
32215 rm -f conftest.$ac_objext
32216 if { (eval echo "$as_me:32216: \"$ac_compile\"") >&5
32217   (eval $ac_compile) 2>&5
32218   ac_status=$?
32219   echo "$as_me:32219: \$? = $ac_status" >&5
32220   (exit $ac_status); } &&
32221          { ac_try='test -s conftest.$ac_objext'
32222   { (eval echo "$as_me:32222: \"$ac_try\"") >&5
32223   (eval $ac_try) 2>&5
32224   ac_status=$?
32225   echo "$as_me:32225: \$? = $ac_status" >&5
32226   (exit $ac_status); }; }; then
32227   ac_cv_type_struct_utmpx_ut_exit=yes
32228 else
32229   echo "$as_me: failed program was:" >&5
32230 cat conftest.$ac_ext >&5
32231 ac_cv_type_struct_utmpx_ut_exit=no
32232 fi
32233 rm -f conftest.$ac_objext conftest.$ac_ext
32234 fi
32235 echo "$as_me:32235: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
32236 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
32237 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
32238
32239
32240 cat >>confdefs.h <<\_ACEOF
32241 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
32242 _ACEOF
32243
32244
32245 fi
32246
32247
32248
32249
32250 echo "$as_me:32250: checking for ut_syslen in struct utmpx" >&5
32251 echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
32252 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
32253   echo $ECHO_N "(cached) $ECHO_C" >&6
32254 else
32255
32256 cat >conftest.$ac_ext <<_ACEOF
32257 #line 32257 "configure"
32258 #include "confdefs.h"
32259 #include <utmpx.h>
32260 #ifdef F77_DUMMY_MAIN
32261 #  ifdef __cplusplus
32262      extern "C"
32263 #  endif
32264    int F77_DUMMY_MAIN() { return 1; }
32265 #endif
32266 int
32267 main ()
32268 {
32269 struct utmpx x; x.ut_syslen;
32270   ;
32271   return 0;
32272 }
32273 _ACEOF
32274 rm -f conftest.$ac_objext
32275 if { (eval echo "$as_me:32275: \"$ac_compile\"") >&5
32276   (eval $ac_compile) 2>&5
32277   ac_status=$?
32278   echo "$as_me:32278: \$? = $ac_status" >&5
32279   (exit $ac_status); } &&
32280          { ac_try='test -s conftest.$ac_objext'
32281   { (eval echo "$as_me:32281: \"$ac_try\"") >&5
32282   (eval $ac_try) 2>&5
32283   ac_status=$?
32284   echo "$as_me:32284: \$? = $ac_status" >&5
32285   (exit $ac_status); }; }; then
32286   ac_cv_type_struct_utmpx_ut_syslen=yes
32287 else
32288   echo "$as_me: failed program was:" >&5
32289 cat conftest.$ac_ext >&5
32290 ac_cv_type_struct_utmpx_ut_syslen=no
32291 fi
32292 rm -f conftest.$ac_objext conftest.$ac_ext
32293 fi
32294 echo "$as_me:32294: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
32295 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
32296 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
32297
32298
32299 cat >>confdefs.h <<\_ACEOF
32300 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
32301 _ACEOF
32302
32303
32304 fi
32305
32306
32307
32308 echo "$as_me:32308: checking for int8_t" >&5
32309 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
32310 if test "${ac_cv_type_int8_t+set}" = set; then
32311   echo $ECHO_N "(cached) $ECHO_C" >&6
32312 else
32313   cat >conftest.$ac_ext <<_ACEOF
32314 #line 32314 "configure"
32315 #include "confdefs.h"
32316
32317 #ifdef HAVE_INTTYPES_H
32318 #include <inttypes.h>
32319 #endif
32320 #ifdef HAVE_SYS_TYPES_H
32321 #include <sys/types.h>
32322 #endif
32323 #ifdef HAVE_SYS_BITYPES_H
32324 #include <sys/bitypes.h>
32325 #endif
32326 #ifdef HAVE_BIND_BITYPES_H
32327 #include <bind/bitypes.h>
32328 #endif
32329 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32330 #include <netinet/in6_machtypes.h>
32331 #endif
32332
32333
32334 #ifdef F77_DUMMY_MAIN
32335 #  ifdef __cplusplus
32336      extern "C"
32337 #  endif
32338    int F77_DUMMY_MAIN() { return 1; }
32339 #endif
32340 int
32341 main ()
32342 {
32343 if ((int8_t *) 0)
32344   return 0;
32345 if (sizeof (int8_t))
32346   return 0;
32347   ;
32348   return 0;
32349 }
32350 _ACEOF
32351 rm -f conftest.$ac_objext
32352 if { (eval echo "$as_me:32352: \"$ac_compile\"") >&5
32353   (eval $ac_compile) 2>&5
32354   ac_status=$?
32355   echo "$as_me:32355: \$? = $ac_status" >&5
32356   (exit $ac_status); } &&
32357          { ac_try='test -s conftest.$ac_objext'
32358   { (eval echo "$as_me:32358: \"$ac_try\"") >&5
32359   (eval $ac_try) 2>&5
32360   ac_status=$?
32361   echo "$as_me:32361: \$? = $ac_status" >&5
32362   (exit $ac_status); }; }; then
32363   ac_cv_type_int8_t=yes
32364 else
32365   echo "$as_me: failed program was:" >&5
32366 cat conftest.$ac_ext >&5
32367 ac_cv_type_int8_t=no
32368 fi
32369 rm -f conftest.$ac_objext conftest.$ac_ext
32370 fi
32371 echo "$as_me:32371: result: $ac_cv_type_int8_t" >&5
32372 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
32373 if test $ac_cv_type_int8_t = yes; then
32374
32375 cat >>confdefs.h <<_ACEOF
32376 #define HAVE_INT8_T 1
32377 _ACEOF
32378
32379
32380 fi
32381 echo "$as_me:32381: checking for int16_t" >&5
32382 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
32383 if test "${ac_cv_type_int16_t+set}" = set; then
32384   echo $ECHO_N "(cached) $ECHO_C" >&6
32385 else
32386   cat >conftest.$ac_ext <<_ACEOF
32387 #line 32387 "configure"
32388 #include "confdefs.h"
32389
32390 #ifdef HAVE_INTTYPES_H
32391 #include <inttypes.h>
32392 #endif
32393 #ifdef HAVE_SYS_TYPES_H
32394 #include <sys/types.h>
32395 #endif
32396 #ifdef HAVE_SYS_BITYPES_H
32397 #include <sys/bitypes.h>
32398 #endif
32399 #ifdef HAVE_BIND_BITYPES_H
32400 #include <bind/bitypes.h>
32401 #endif
32402 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32403 #include <netinet/in6_machtypes.h>
32404 #endif
32405
32406
32407 #ifdef F77_DUMMY_MAIN
32408 #  ifdef __cplusplus
32409      extern "C"
32410 #  endif
32411    int F77_DUMMY_MAIN() { return 1; }
32412 #endif
32413 int
32414 main ()
32415 {
32416 if ((int16_t *) 0)
32417   return 0;
32418 if (sizeof (int16_t))
32419   return 0;
32420   ;
32421   return 0;
32422 }
32423 _ACEOF
32424 rm -f conftest.$ac_objext
32425 if { (eval echo "$as_me:32425: \"$ac_compile\"") >&5
32426   (eval $ac_compile) 2>&5
32427   ac_status=$?
32428   echo "$as_me:32428: \$? = $ac_status" >&5
32429   (exit $ac_status); } &&
32430          { ac_try='test -s conftest.$ac_objext'
32431   { (eval echo "$as_me:32431: \"$ac_try\"") >&5
32432   (eval $ac_try) 2>&5
32433   ac_status=$?
32434   echo "$as_me:32434: \$? = $ac_status" >&5
32435   (exit $ac_status); }; }; then
32436   ac_cv_type_int16_t=yes
32437 else
32438   echo "$as_me: failed program was:" >&5
32439 cat conftest.$ac_ext >&5
32440 ac_cv_type_int16_t=no
32441 fi
32442 rm -f conftest.$ac_objext conftest.$ac_ext
32443 fi
32444 echo "$as_me:32444: result: $ac_cv_type_int16_t" >&5
32445 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
32446 if test $ac_cv_type_int16_t = yes; then
32447
32448 cat >>confdefs.h <<_ACEOF
32449 #define HAVE_INT16_T 1
32450 _ACEOF
32451
32452
32453 fi
32454 echo "$as_me:32454: checking for int32_t" >&5
32455 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
32456 if test "${ac_cv_type_int32_t+set}" = set; then
32457   echo $ECHO_N "(cached) $ECHO_C" >&6
32458 else
32459   cat >conftest.$ac_ext <<_ACEOF
32460 #line 32460 "configure"
32461 #include "confdefs.h"
32462
32463 #ifdef HAVE_INTTYPES_H
32464 #include <inttypes.h>
32465 #endif
32466 #ifdef HAVE_SYS_TYPES_H
32467 #include <sys/types.h>
32468 #endif
32469 #ifdef HAVE_SYS_BITYPES_H
32470 #include <sys/bitypes.h>
32471 #endif
32472 #ifdef HAVE_BIND_BITYPES_H
32473 #include <bind/bitypes.h>
32474 #endif
32475 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32476 #include <netinet/in6_machtypes.h>
32477 #endif
32478
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 if ((int32_t *) 0)
32490   return 0;
32491 if (sizeof (int32_t))
32492   return 0;
32493   ;
32494   return 0;
32495 }
32496 _ACEOF
32497 rm -f conftest.$ac_objext
32498 if { (eval echo "$as_me:32498: \"$ac_compile\"") >&5
32499   (eval $ac_compile) 2>&5
32500   ac_status=$?
32501   echo "$as_me:32501: \$? = $ac_status" >&5
32502   (exit $ac_status); } &&
32503          { ac_try='test -s conftest.$ac_objext'
32504   { (eval echo "$as_me:32504: \"$ac_try\"") >&5
32505   (eval $ac_try) 2>&5
32506   ac_status=$?
32507   echo "$as_me:32507: \$? = $ac_status" >&5
32508   (exit $ac_status); }; }; then
32509   ac_cv_type_int32_t=yes
32510 else
32511   echo "$as_me: failed program was:" >&5
32512 cat conftest.$ac_ext >&5
32513 ac_cv_type_int32_t=no
32514 fi
32515 rm -f conftest.$ac_objext conftest.$ac_ext
32516 fi
32517 echo "$as_me:32517: result: $ac_cv_type_int32_t" >&5
32518 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
32519 if test $ac_cv_type_int32_t = yes; then
32520
32521 cat >>confdefs.h <<_ACEOF
32522 #define HAVE_INT32_T 1
32523 _ACEOF
32524
32525
32526 fi
32527 echo "$as_me:32527: checking for int64_t" >&5
32528 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
32529 if test "${ac_cv_type_int64_t+set}" = set; then
32530   echo $ECHO_N "(cached) $ECHO_C" >&6
32531 else
32532   cat >conftest.$ac_ext <<_ACEOF
32533 #line 32533 "configure"
32534 #include "confdefs.h"
32535
32536 #ifdef HAVE_INTTYPES_H
32537 #include <inttypes.h>
32538 #endif
32539 #ifdef HAVE_SYS_TYPES_H
32540 #include <sys/types.h>
32541 #endif
32542 #ifdef HAVE_SYS_BITYPES_H
32543 #include <sys/bitypes.h>
32544 #endif
32545 #ifdef HAVE_BIND_BITYPES_H
32546 #include <bind/bitypes.h>
32547 #endif
32548 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32549 #include <netinet/in6_machtypes.h>
32550 #endif
32551
32552
32553 #ifdef F77_DUMMY_MAIN
32554 #  ifdef __cplusplus
32555      extern "C"
32556 #  endif
32557    int F77_DUMMY_MAIN() { return 1; }
32558 #endif
32559 int
32560 main ()
32561 {
32562 if ((int64_t *) 0)
32563   return 0;
32564 if (sizeof (int64_t))
32565   return 0;
32566   ;
32567   return 0;
32568 }
32569 _ACEOF
32570 rm -f conftest.$ac_objext
32571 if { (eval echo "$as_me:32571: \"$ac_compile\"") >&5
32572   (eval $ac_compile) 2>&5
32573   ac_status=$?
32574   echo "$as_me:32574: \$? = $ac_status" >&5
32575   (exit $ac_status); } &&
32576          { ac_try='test -s conftest.$ac_objext'
32577   { (eval echo "$as_me:32577: \"$ac_try\"") >&5
32578   (eval $ac_try) 2>&5
32579   ac_status=$?
32580   echo "$as_me:32580: \$? = $ac_status" >&5
32581   (exit $ac_status); }; }; then
32582   ac_cv_type_int64_t=yes
32583 else
32584   echo "$as_me: failed program was:" >&5
32585 cat conftest.$ac_ext >&5
32586 ac_cv_type_int64_t=no
32587 fi
32588 rm -f conftest.$ac_objext conftest.$ac_ext
32589 fi
32590 echo "$as_me:32590: result: $ac_cv_type_int64_t" >&5
32591 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
32592 if test $ac_cv_type_int64_t = yes; then
32593
32594 cat >>confdefs.h <<_ACEOF
32595 #define HAVE_INT64_T 1
32596 _ACEOF
32597
32598
32599 fi
32600 echo "$as_me:32600: checking for u_int8_t" >&5
32601 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
32602 if test "${ac_cv_type_u_int8_t+set}" = set; then
32603   echo $ECHO_N "(cached) $ECHO_C" >&6
32604 else
32605   cat >conftest.$ac_ext <<_ACEOF
32606 #line 32606 "configure"
32607 #include "confdefs.h"
32608
32609 #ifdef HAVE_INTTYPES_H
32610 #include <inttypes.h>
32611 #endif
32612 #ifdef HAVE_SYS_TYPES_H
32613 #include <sys/types.h>
32614 #endif
32615 #ifdef HAVE_SYS_BITYPES_H
32616 #include <sys/bitypes.h>
32617 #endif
32618 #ifdef HAVE_BIND_BITYPES_H
32619 #include <bind/bitypes.h>
32620 #endif
32621 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32622 #include <netinet/in6_machtypes.h>
32623 #endif
32624
32625
32626 #ifdef F77_DUMMY_MAIN
32627 #  ifdef __cplusplus
32628      extern "C"
32629 #  endif
32630    int F77_DUMMY_MAIN() { return 1; }
32631 #endif
32632 int
32633 main ()
32634 {
32635 if ((u_int8_t *) 0)
32636   return 0;
32637 if (sizeof (u_int8_t))
32638   return 0;
32639   ;
32640   return 0;
32641 }
32642 _ACEOF
32643 rm -f conftest.$ac_objext
32644 if { (eval echo "$as_me:32644: \"$ac_compile\"") >&5
32645   (eval $ac_compile) 2>&5
32646   ac_status=$?
32647   echo "$as_me:32647: \$? = $ac_status" >&5
32648   (exit $ac_status); } &&
32649          { ac_try='test -s conftest.$ac_objext'
32650   { (eval echo "$as_me:32650: \"$ac_try\"") >&5
32651   (eval $ac_try) 2>&5
32652   ac_status=$?
32653   echo "$as_me:32653: \$? = $ac_status" >&5
32654   (exit $ac_status); }; }; then
32655   ac_cv_type_u_int8_t=yes
32656 else
32657   echo "$as_me: failed program was:" >&5
32658 cat conftest.$ac_ext >&5
32659 ac_cv_type_u_int8_t=no
32660 fi
32661 rm -f conftest.$ac_objext conftest.$ac_ext
32662 fi
32663 echo "$as_me:32663: result: $ac_cv_type_u_int8_t" >&5
32664 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
32665 if test $ac_cv_type_u_int8_t = yes; then
32666
32667 cat >>confdefs.h <<_ACEOF
32668 #define HAVE_U_INT8_T 1
32669 _ACEOF
32670
32671
32672 fi
32673 echo "$as_me:32673: checking for u_int16_t" >&5
32674 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
32675 if test "${ac_cv_type_u_int16_t+set}" = set; then
32676   echo $ECHO_N "(cached) $ECHO_C" >&6
32677 else
32678   cat >conftest.$ac_ext <<_ACEOF
32679 #line 32679 "configure"
32680 #include "confdefs.h"
32681
32682 #ifdef HAVE_INTTYPES_H
32683 #include <inttypes.h>
32684 #endif
32685 #ifdef HAVE_SYS_TYPES_H
32686 #include <sys/types.h>
32687 #endif
32688 #ifdef HAVE_SYS_BITYPES_H
32689 #include <sys/bitypes.h>
32690 #endif
32691 #ifdef HAVE_BIND_BITYPES_H
32692 #include <bind/bitypes.h>
32693 #endif
32694 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32695 #include <netinet/in6_machtypes.h>
32696 #endif
32697
32698
32699 #ifdef F77_DUMMY_MAIN
32700 #  ifdef __cplusplus
32701      extern "C"
32702 #  endif
32703    int F77_DUMMY_MAIN() { return 1; }
32704 #endif
32705 int
32706 main ()
32707 {
32708 if ((u_int16_t *) 0)
32709   return 0;
32710 if (sizeof (u_int16_t))
32711   return 0;
32712   ;
32713   return 0;
32714 }
32715 _ACEOF
32716 rm -f conftest.$ac_objext
32717 if { (eval echo "$as_me:32717: \"$ac_compile\"") >&5
32718   (eval $ac_compile) 2>&5
32719   ac_status=$?
32720   echo "$as_me:32720: \$? = $ac_status" >&5
32721   (exit $ac_status); } &&
32722          { ac_try='test -s conftest.$ac_objext'
32723   { (eval echo "$as_me:32723: \"$ac_try\"") >&5
32724   (eval $ac_try) 2>&5
32725   ac_status=$?
32726   echo "$as_me:32726: \$? = $ac_status" >&5
32727   (exit $ac_status); }; }; then
32728   ac_cv_type_u_int16_t=yes
32729 else
32730   echo "$as_me: failed program was:" >&5
32731 cat conftest.$ac_ext >&5
32732 ac_cv_type_u_int16_t=no
32733 fi
32734 rm -f conftest.$ac_objext conftest.$ac_ext
32735 fi
32736 echo "$as_me:32736: result: $ac_cv_type_u_int16_t" >&5
32737 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
32738 if test $ac_cv_type_u_int16_t = yes; then
32739
32740 cat >>confdefs.h <<_ACEOF
32741 #define HAVE_U_INT16_T 1
32742 _ACEOF
32743
32744
32745 fi
32746 echo "$as_me:32746: checking for u_int32_t" >&5
32747 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
32748 if test "${ac_cv_type_u_int32_t+set}" = set; then
32749   echo $ECHO_N "(cached) $ECHO_C" >&6
32750 else
32751   cat >conftest.$ac_ext <<_ACEOF
32752 #line 32752 "configure"
32753 #include "confdefs.h"
32754
32755 #ifdef HAVE_INTTYPES_H
32756 #include <inttypes.h>
32757 #endif
32758 #ifdef HAVE_SYS_TYPES_H
32759 #include <sys/types.h>
32760 #endif
32761 #ifdef HAVE_SYS_BITYPES_H
32762 #include <sys/bitypes.h>
32763 #endif
32764 #ifdef HAVE_BIND_BITYPES_H
32765 #include <bind/bitypes.h>
32766 #endif
32767 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32768 #include <netinet/in6_machtypes.h>
32769 #endif
32770
32771
32772 #ifdef F77_DUMMY_MAIN
32773 #  ifdef __cplusplus
32774      extern "C"
32775 #  endif
32776    int F77_DUMMY_MAIN() { return 1; }
32777 #endif
32778 int
32779 main ()
32780 {
32781 if ((u_int32_t *) 0)
32782   return 0;
32783 if (sizeof (u_int32_t))
32784   return 0;
32785   ;
32786   return 0;
32787 }
32788 _ACEOF
32789 rm -f conftest.$ac_objext
32790 if { (eval echo "$as_me:32790: \"$ac_compile\"") >&5
32791   (eval $ac_compile) 2>&5
32792   ac_status=$?
32793   echo "$as_me:32793: \$? = $ac_status" >&5
32794   (exit $ac_status); } &&
32795          { ac_try='test -s conftest.$ac_objext'
32796   { (eval echo "$as_me:32796: \"$ac_try\"") >&5
32797   (eval $ac_try) 2>&5
32798   ac_status=$?
32799   echo "$as_me:32799: \$? = $ac_status" >&5
32800   (exit $ac_status); }; }; then
32801   ac_cv_type_u_int32_t=yes
32802 else
32803   echo "$as_me: failed program was:" >&5
32804 cat conftest.$ac_ext >&5
32805 ac_cv_type_u_int32_t=no
32806 fi
32807 rm -f conftest.$ac_objext conftest.$ac_ext
32808 fi
32809 echo "$as_me:32809: result: $ac_cv_type_u_int32_t" >&5
32810 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
32811 if test $ac_cv_type_u_int32_t = yes; then
32812
32813 cat >>confdefs.h <<_ACEOF
32814 #define HAVE_U_INT32_T 1
32815 _ACEOF
32816
32817
32818 fi
32819 echo "$as_me:32819: checking for u_int64_t" >&5
32820 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
32821 if test "${ac_cv_type_u_int64_t+set}" = set; then
32822   echo $ECHO_N "(cached) $ECHO_C" >&6
32823 else
32824   cat >conftest.$ac_ext <<_ACEOF
32825 #line 32825 "configure"
32826 #include "confdefs.h"
32827
32828 #ifdef HAVE_INTTYPES_H
32829 #include <inttypes.h>
32830 #endif
32831 #ifdef HAVE_SYS_TYPES_H
32832 #include <sys/types.h>
32833 #endif
32834 #ifdef HAVE_SYS_BITYPES_H
32835 #include <sys/bitypes.h>
32836 #endif
32837 #ifdef HAVE_BIND_BITYPES_H
32838 #include <bind/bitypes.h>
32839 #endif
32840 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32841 #include <netinet/in6_machtypes.h>
32842 #endif
32843
32844
32845 #ifdef F77_DUMMY_MAIN
32846 #  ifdef __cplusplus
32847      extern "C"
32848 #  endif
32849    int F77_DUMMY_MAIN() { return 1; }
32850 #endif
32851 int
32852 main ()
32853 {
32854 if ((u_int64_t *) 0)
32855   return 0;
32856 if (sizeof (u_int64_t))
32857   return 0;
32858   ;
32859   return 0;
32860 }
32861 _ACEOF
32862 rm -f conftest.$ac_objext
32863 if { (eval echo "$as_me:32863: \"$ac_compile\"") >&5
32864   (eval $ac_compile) 2>&5
32865   ac_status=$?
32866   echo "$as_me:32866: \$? = $ac_status" >&5
32867   (exit $ac_status); } &&
32868          { ac_try='test -s conftest.$ac_objext'
32869   { (eval echo "$as_me:32869: \"$ac_try\"") >&5
32870   (eval $ac_try) 2>&5
32871   ac_status=$?
32872   echo "$as_me:32872: \$? = $ac_status" >&5
32873   (exit $ac_status); }; }; then
32874   ac_cv_type_u_int64_t=yes
32875 else
32876   echo "$as_me: failed program was:" >&5
32877 cat conftest.$ac_ext >&5
32878 ac_cv_type_u_int64_t=no
32879 fi
32880 rm -f conftest.$ac_objext conftest.$ac_ext
32881 fi
32882 echo "$as_me:32882: result: $ac_cv_type_u_int64_t" >&5
32883 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
32884 if test $ac_cv_type_u_int64_t = yes; then
32885
32886 cat >>confdefs.h <<_ACEOF
32887 #define HAVE_U_INT64_T 1
32888 _ACEOF
32889
32890
32891 fi
32892 echo "$as_me:32892: checking for uint8_t" >&5
32893 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
32894 if test "${ac_cv_type_uint8_t+set}" = set; then
32895   echo $ECHO_N "(cached) $ECHO_C" >&6
32896 else
32897   cat >conftest.$ac_ext <<_ACEOF
32898 #line 32898 "configure"
32899 #include "confdefs.h"
32900
32901 #ifdef HAVE_INTTYPES_H
32902 #include <inttypes.h>
32903 #endif
32904 #ifdef HAVE_SYS_TYPES_H
32905 #include <sys/types.h>
32906 #endif
32907 #ifdef HAVE_SYS_BITYPES_H
32908 #include <sys/bitypes.h>
32909 #endif
32910 #ifdef HAVE_BIND_BITYPES_H
32911 #include <bind/bitypes.h>
32912 #endif
32913 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32914 #include <netinet/in6_machtypes.h>
32915 #endif
32916
32917
32918 #ifdef F77_DUMMY_MAIN
32919 #  ifdef __cplusplus
32920      extern "C"
32921 #  endif
32922    int F77_DUMMY_MAIN() { return 1; }
32923 #endif
32924 int
32925 main ()
32926 {
32927 if ((uint8_t *) 0)
32928   return 0;
32929 if (sizeof (uint8_t))
32930   return 0;
32931   ;
32932   return 0;
32933 }
32934 _ACEOF
32935 rm -f conftest.$ac_objext
32936 if { (eval echo "$as_me:32936: \"$ac_compile\"") >&5
32937   (eval $ac_compile) 2>&5
32938   ac_status=$?
32939   echo "$as_me:32939: \$? = $ac_status" >&5
32940   (exit $ac_status); } &&
32941          { ac_try='test -s conftest.$ac_objext'
32942   { (eval echo "$as_me:32942: \"$ac_try\"") >&5
32943   (eval $ac_try) 2>&5
32944   ac_status=$?
32945   echo "$as_me:32945: \$? = $ac_status" >&5
32946   (exit $ac_status); }; }; then
32947   ac_cv_type_uint8_t=yes
32948 else
32949   echo "$as_me: failed program was:" >&5
32950 cat conftest.$ac_ext >&5
32951 ac_cv_type_uint8_t=no
32952 fi
32953 rm -f conftest.$ac_objext conftest.$ac_ext
32954 fi
32955 echo "$as_me:32955: result: $ac_cv_type_uint8_t" >&5
32956 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
32957 if test $ac_cv_type_uint8_t = yes; then
32958
32959 cat >>confdefs.h <<_ACEOF
32960 #define HAVE_UINT8_T 1
32961 _ACEOF
32962
32963
32964 fi
32965 echo "$as_me:32965: checking for uint16_t" >&5
32966 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
32967 if test "${ac_cv_type_uint16_t+set}" = set; then
32968   echo $ECHO_N "(cached) $ECHO_C" >&6
32969 else
32970   cat >conftest.$ac_ext <<_ACEOF
32971 #line 32971 "configure"
32972 #include "confdefs.h"
32973
32974 #ifdef HAVE_INTTYPES_H
32975 #include <inttypes.h>
32976 #endif
32977 #ifdef HAVE_SYS_TYPES_H
32978 #include <sys/types.h>
32979 #endif
32980 #ifdef HAVE_SYS_BITYPES_H
32981 #include <sys/bitypes.h>
32982 #endif
32983 #ifdef HAVE_BIND_BITYPES_H
32984 #include <bind/bitypes.h>
32985 #endif
32986 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
32987 #include <netinet/in6_machtypes.h>
32988 #endif
32989
32990
32991 #ifdef F77_DUMMY_MAIN
32992 #  ifdef __cplusplus
32993      extern "C"
32994 #  endif
32995    int F77_DUMMY_MAIN() { return 1; }
32996 #endif
32997 int
32998 main ()
32999 {
33000 if ((uint16_t *) 0)
33001   return 0;
33002 if (sizeof (uint16_t))
33003   return 0;
33004   ;
33005   return 0;
33006 }
33007 _ACEOF
33008 rm -f conftest.$ac_objext
33009 if { (eval echo "$as_me:33009: \"$ac_compile\"") >&5
33010   (eval $ac_compile) 2>&5
33011   ac_status=$?
33012   echo "$as_me:33012: \$? = $ac_status" >&5
33013   (exit $ac_status); } &&
33014          { ac_try='test -s conftest.$ac_objext'
33015   { (eval echo "$as_me:33015: \"$ac_try\"") >&5
33016   (eval $ac_try) 2>&5
33017   ac_status=$?
33018   echo "$as_me:33018: \$? = $ac_status" >&5
33019   (exit $ac_status); }; }; then
33020   ac_cv_type_uint16_t=yes
33021 else
33022   echo "$as_me: failed program was:" >&5
33023 cat conftest.$ac_ext >&5
33024 ac_cv_type_uint16_t=no
33025 fi
33026 rm -f conftest.$ac_objext conftest.$ac_ext
33027 fi
33028 echo "$as_me:33028: result: $ac_cv_type_uint16_t" >&5
33029 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
33030 if test $ac_cv_type_uint16_t = yes; then
33031
33032 cat >>confdefs.h <<_ACEOF
33033 #define HAVE_UINT16_T 1
33034 _ACEOF
33035
33036
33037 fi
33038 echo "$as_me:33038: checking for uint32_t" >&5
33039 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
33040 if test "${ac_cv_type_uint32_t+set}" = set; then
33041   echo $ECHO_N "(cached) $ECHO_C" >&6
33042 else
33043   cat >conftest.$ac_ext <<_ACEOF
33044 #line 33044 "configure"
33045 #include "confdefs.h"
33046
33047 #ifdef HAVE_INTTYPES_H
33048 #include <inttypes.h>
33049 #endif
33050 #ifdef HAVE_SYS_TYPES_H
33051 #include <sys/types.h>
33052 #endif
33053 #ifdef HAVE_SYS_BITYPES_H
33054 #include <sys/bitypes.h>
33055 #endif
33056 #ifdef HAVE_BIND_BITYPES_H
33057 #include <bind/bitypes.h>
33058 #endif
33059 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
33060 #include <netinet/in6_machtypes.h>
33061 #endif
33062
33063
33064 #ifdef F77_DUMMY_MAIN
33065 #  ifdef __cplusplus
33066      extern "C"
33067 #  endif
33068    int F77_DUMMY_MAIN() { return 1; }
33069 #endif
33070 int
33071 main ()
33072 {
33073 if ((uint32_t *) 0)
33074   return 0;
33075 if (sizeof (uint32_t))
33076   return 0;
33077   ;
33078   return 0;
33079 }
33080 _ACEOF
33081 rm -f conftest.$ac_objext
33082 if { (eval echo "$as_me:33082: \"$ac_compile\"") >&5
33083   (eval $ac_compile) 2>&5
33084   ac_status=$?
33085   echo "$as_me:33085: \$? = $ac_status" >&5
33086   (exit $ac_status); } &&
33087          { ac_try='test -s conftest.$ac_objext'
33088   { (eval echo "$as_me:33088: \"$ac_try\"") >&5
33089   (eval $ac_try) 2>&5
33090   ac_status=$?
33091   echo "$as_me:33091: \$? = $ac_status" >&5
33092   (exit $ac_status); }; }; then
33093   ac_cv_type_uint32_t=yes
33094 else
33095   echo "$as_me: failed program was:" >&5
33096 cat conftest.$ac_ext >&5
33097 ac_cv_type_uint32_t=no
33098 fi
33099 rm -f conftest.$ac_objext conftest.$ac_ext
33100 fi
33101 echo "$as_me:33101: result: $ac_cv_type_uint32_t" >&5
33102 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
33103 if test $ac_cv_type_uint32_t = yes; then
33104
33105 cat >>confdefs.h <<_ACEOF
33106 #define HAVE_UINT32_T 1
33107 _ACEOF
33108
33109
33110 fi
33111 echo "$as_me:33111: checking for uint64_t" >&5
33112 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
33113 if test "${ac_cv_type_uint64_t+set}" = set; then
33114   echo $ECHO_N "(cached) $ECHO_C" >&6
33115 else
33116   cat >conftest.$ac_ext <<_ACEOF
33117 #line 33117 "configure"
33118 #include "confdefs.h"
33119
33120 #ifdef HAVE_INTTYPES_H
33121 #include <inttypes.h>
33122 #endif
33123 #ifdef HAVE_SYS_TYPES_H
33124 #include <sys/types.h>
33125 #endif
33126 #ifdef HAVE_SYS_BITYPES_H
33127 #include <sys/bitypes.h>
33128 #endif
33129 #ifdef HAVE_BIND_BITYPES_H
33130 #include <bind/bitypes.h>
33131 #endif
33132 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
33133 #include <netinet/in6_machtypes.h>
33134 #endif
33135
33136
33137 #ifdef F77_DUMMY_MAIN
33138 #  ifdef __cplusplus
33139      extern "C"
33140 #  endif
33141    int F77_DUMMY_MAIN() { return 1; }
33142 #endif
33143 int
33144 main ()
33145 {
33146 if ((uint64_t *) 0)
33147   return 0;
33148 if (sizeof (uint64_t))
33149   return 0;
33150   ;
33151   return 0;
33152 }
33153 _ACEOF
33154 rm -f conftest.$ac_objext
33155 if { (eval echo "$as_me:33155: \"$ac_compile\"") >&5
33156   (eval $ac_compile) 2>&5
33157   ac_status=$?
33158   echo "$as_me:33158: \$? = $ac_status" >&5
33159   (exit $ac_status); } &&
33160          { ac_try='test -s conftest.$ac_objext'
33161   { (eval echo "$as_me:33161: \"$ac_try\"") >&5
33162   (eval $ac_try) 2>&5
33163   ac_status=$?
33164   echo "$as_me:33164: \$? = $ac_status" >&5
33165   (exit $ac_status); }; }; then
33166   ac_cv_type_uint64_t=yes
33167 else
33168   echo "$as_me: failed program was:" >&5
33169 cat conftest.$ac_ext >&5
33170 ac_cv_type_uint64_t=no
33171 fi
33172 rm -f conftest.$ac_objext conftest.$ac_ext
33173 fi
33174 echo "$as_me:33174: result: $ac_cv_type_uint64_t" >&5
33175 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
33176 if test $ac_cv_type_uint64_t = yes; then
33177
33178 cat >>confdefs.h <<_ACEOF
33179 #define HAVE_UINT64_T 1
33180 _ACEOF
33181
33182
33183 fi
33184
33185
33186
33187 crypto_lib=unknown
33188
33189
33190 # Check whether --with-openssl or --without-openssl was given.
33191 if test "${with_openssl+set}" = set; then
33192   withval="$with_openssl"
33193
33194 fi;
33195
33196
33197 # Check whether --with-openssl-lib or --without-openssl-lib was given.
33198 if test "${with_openssl_lib+set}" = set; then
33199   withval="$with_openssl_lib"
33200   if test "$withval" = "yes" -o "$withval" = "no"; then
33201   { { echo "$as_me:33201: error: No argument for --with-openssl-lib" >&5
33202 echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
33203    { (exit 1); exit 1; }; }
33204 elif test "X$with_openssl" = "X"; then
33205   with_openssl=yes
33206 fi
33207 fi;
33208
33209
33210 # Check whether --with-openssl-include or --without-openssl-include was given.
33211 if test "${with_openssl_include+set}" = set; then
33212   withval="$with_openssl_include"
33213   if test "$withval" = "yes" -o "$withval" = "no"; then
33214   { { echo "$as_me:33214: error: No argument for --with-openssl-include" >&5
33215 echo "$as_me: error: No argument for --with-openssl-include" >&2;}
33216    { (exit 1); exit 1; }; }
33217 elif test "X$with_openssl" = "X"; then
33218   with_openssl=yes
33219 fi
33220 fi;
33221
33222 case "$with_openssl" in
33223 yes)    ;;
33224 no)     ;;
33225 "")     ;;
33226 *)      if test "$with_openssl_include" = ""; then
33227                 with_openssl_include="$with_openssl/include"
33228         fi
33229         if test "$with_openssl_lib" = ""; then
33230                 with_openssl_lib="$with_openssl/lib$abilibdirext"
33231         fi
33232         ;;
33233 esac
33234
33235
33236 DIR_des=
33237
33238 echo "$as_me:33238: checking for crypto library" >&5
33239 echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
33240
33241 openssl=no
33242 if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
33243
33244   save_CPPFLAGS="$CPPFLAGS"
33245   save_LIBS="$LIBS"
33246   INCLUDE_des=
33247   LIB_des=
33248   if test "$with_openssl_include" != ""; then
33249     INCLUDE_des="-I${with_openssl}/include"
33250   fi
33251   if test "$with_openssl_lib" != ""; then
33252     LIB_des="-L${with_openssl}/lib"
33253   fi
33254   CPPFLAGS="${INCLUDE_des} ${CPPFLAGS}"
33255   LIB_des="${LIB_des} -lcrypto"
33256   LIB_des_a="$LIB_des"
33257   LIB_des_so="$LIB_des"
33258   LIB_des_appl="$LIB_des"
33259   LIBS="${LIBS} ${LIB_des}"
33260   cat >conftest.$ac_ext <<_ACEOF
33261 #line 33261 "configure"
33262 #include "confdefs.h"
33263
33264   #include <openssl/md4.h>
33265   #include <openssl/md5.h>
33266   #include <openssl/sha.h>
33267   #include <openssl/des.h>
33268   #include <openssl/rc4.h>
33269
33270 #ifdef F77_DUMMY_MAIN
33271 #  ifdef __cplusplus
33272      extern "C"
33273 #  endif
33274    int F77_DUMMY_MAIN() { return 1; }
33275 #endif
33276 int
33277 main ()
33278 {
33279
33280     void *schedule = 0;
33281     MD4_CTX md4;
33282     MD5_CTX md5;
33283     SHA_CTX sha1;
33284
33285     MD4_Init(&md4);
33286     MD5_Init(&md5);
33287     SHA1_Init(&sha1);
33288
33289     des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
33290     RC4(0, 0, 0, 0);
33291
33292   ;
33293   return 0;
33294 }
33295 _ACEOF
33296 rm -f conftest.$ac_objext conftest$ac_exeext
33297 if { (eval echo "$as_me:33297: \"$ac_link\"") >&5
33298   (eval $ac_link) 2>&5
33299   ac_status=$?
33300   echo "$as_me:33300: \$? = $ac_status" >&5
33301   (exit $ac_status); } &&
33302          { ac_try='test -s conftest$ac_exeext'
33303   { (eval echo "$as_me:33303: \"$ac_try\"") >&5
33304   (eval $ac_try) 2>&5
33305   ac_status=$?
33306   echo "$as_me:33306: \$? = $ac_status" >&5
33307   (exit $ac_status); }; }; then
33308
33309   crypto_lib=libcrypto openssl=yes
33310   echo "$as_me:33310: result: libcrypto" >&5
33311 echo "${ECHO_T}libcrypto" >&6
33312 else
33313   echo "$as_me: failed program was:" >&5
33314 cat conftest.$ac_ext >&5
33315 fi
33316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33317   CPPFLAGS="$save_CPPFLAGS"
33318   LIBS="$save_LIBS"
33319 fi
33320
33321 if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
33322         save_CPPFLAGS="$CPPFLAGS"
33323         save_LIBS="$LIBS"
33324
33325         cdirs= clibs=
33326         for i in $LIB_krb4; do
33327                 case "$i" in
33328                 -L*) cdirs="$cdirs $i";;
33329                 -l*) clibs="$clibs $i";;
33330                 esac
33331         done
33332
33333         ires=
33334         for i in $INCLUDE_krb4; do
33335                 CFLAGS="$i $save_CFLAGS"
33336                 cat >conftest.$ac_ext <<_ACEOF
33337 #line 33337 "configure"
33338 #include "confdefs.h"
33339
33340                         #undef KRB5 /* makes md4.h et al unhappy */
33341                         #define KRB4
33342                         #include <openssl/md4.h>
33343                         #include <openssl/md5.h>
33344                         #include <openssl/sha.h>
33345                         #include <openssl/des.h>
33346                         #include <openssl/rc4.h>
33347
33348 #ifdef F77_DUMMY_MAIN
33349 #  ifdef __cplusplus
33350      extern "C"
33351 #  endif
33352    int F77_DUMMY_MAIN() { return 1; }
33353 #endif
33354 int
33355 main ()
33356 {
33357
33358                         MD4_CTX md4;
33359                         MD5_CTX md5;
33360                         SHA_CTX sha1;
33361
33362                         MD4_Init(&md4);
33363                         MD5_Init(&md5);
33364                         SHA1_Init(&sha1);
33365
33366                         des_cbc_encrypt(0, 0, 0, 0, 0, 0);
33367                         RC4(0, 0, 0, 0);
33368   ;
33369   return 0;
33370 }
33371 _ACEOF
33372 rm -f conftest.$ac_objext
33373 if { (eval echo "$as_me:33373: \"$ac_compile\"") >&5
33374   (eval $ac_compile) 2>&5
33375   ac_status=$?
33376   echo "$as_me:33376: \$? = $ac_status" >&5
33377   (exit $ac_status); } &&
33378          { ac_try='test -s conftest.$ac_objext'
33379   { (eval echo "$as_me:33379: \"$ac_try\"") >&5
33380   (eval $ac_try) 2>&5
33381   ac_status=$?
33382   echo "$as_me:33382: \$? = $ac_status" >&5
33383   (exit $ac_status); }; }; then
33384   openssl=yes ires="$i"; break
33385 else
33386   echo "$as_me: failed program was:" >&5
33387 cat conftest.$ac_ext >&5
33388 fi
33389 rm -f conftest.$ac_objext conftest.$ac_ext
33390                 cat >conftest.$ac_ext <<_ACEOF
33391 #line 33391 "configure"
33392 #include "confdefs.h"
33393
33394                         #undef KRB5 /* makes md4.h et al unhappy */
33395                         #define KRB4
33396                         #include <md4.h>
33397                         #include <md5.h>
33398                         #include <sha.h>
33399                         #include <des.h>
33400                         #include <rc4.h>
33401
33402 #ifdef F77_DUMMY_MAIN
33403 #  ifdef __cplusplus
33404      extern "C"
33405 #  endif
33406    int F77_DUMMY_MAIN() { return 1; }
33407 #endif
33408 int
33409 main ()
33410 {
33411
33412                         MD4_CTX md4;
33413                         MD5_CTX md5;
33414                         SHA_CTX sha1;
33415
33416                         MD4_Init(&md4);
33417                         MD5_Init(&md5);
33418                         SHA1_Init(&sha1);
33419
33420                         des_cbc_encrypt(0, 0, 0, 0, 0, 0);
33421                         RC4(0, 0, 0, 0);
33422   ;
33423   return 0;
33424 }
33425 _ACEOF
33426 rm -f conftest.$ac_objext
33427 if { (eval echo "$as_me:33427: \"$ac_compile\"") >&5
33428   (eval $ac_compile) 2>&5
33429   ac_status=$?
33430   echo "$as_me:33430: \$? = $ac_status" >&5
33431   (exit $ac_status); } &&
33432          { ac_try='test -s conftest.$ac_objext'
33433   { (eval echo "$as_me:33433: \"$ac_try\"") >&5
33434   (eval $ac_try) 2>&5
33435   ac_status=$?
33436   echo "$as_me:33436: \$? = $ac_status" >&5
33437   (exit $ac_status); }; }; then
33438   ires="$i"; break
33439 else
33440   echo "$as_me: failed program was:" >&5
33441 cat conftest.$ac_ext >&5
33442 fi
33443 rm -f conftest.$ac_objext conftest.$ac_ext
33444         done
33445         lres=
33446         for i in $cdirs; do
33447                 for j in $clibs; do
33448                         LIBS="$i $j $save_LIBS"
33449                         if test "$openssl" = yes; then
33450                         cat >conftest.$ac_ext <<_ACEOF
33451 #line 33451 "configure"
33452 #include "confdefs.h"
33453
33454                                 #undef KRB5 /* makes md4.h et al unhappy */
33455                                 #define KRB4
33456                                 #include <openssl/md4.h>
33457                                 #include <openssl/md5.h>
33458                                 #include <openssl/sha.h>
33459                                 #include <openssl/des.h>
33460                                 #include <openssl/rc4.h>
33461
33462 #ifdef F77_DUMMY_MAIN
33463 #  ifdef __cplusplus
33464      extern "C"
33465 #  endif
33466    int F77_DUMMY_MAIN() { return 1; }
33467 #endif
33468 int
33469 main ()
33470 {
33471
33472                                 MD4_CTX md4;
33473                                 MD5_CTX md5;
33474                                 SHA_CTX sha1;
33475
33476                                 MD4_Init(&md4);
33477                                 MD5_Init(&md5);
33478                                 SHA1_Init(&sha1);
33479
33480                                 des_cbc_encrypt(0, 0, 0, 0, 0, 0);
33481                                 RC4(0, 0, 0, 0);
33482   ;
33483   return 0;
33484 }
33485 _ACEOF
33486 rm -f conftest.$ac_objext conftest$ac_exeext
33487 if { (eval echo "$as_me:33487: \"$ac_link\"") >&5
33488   (eval $ac_link) 2>&5
33489   ac_status=$?
33490   echo "$as_me:33490: \$? = $ac_status" >&5
33491   (exit $ac_status); } &&
33492          { ac_try='test -s conftest$ac_exeext'
33493   { (eval echo "$as_me:33493: \"$ac_try\"") >&5
33494   (eval $ac_try) 2>&5
33495   ac_status=$?
33496   echo "$as_me:33496: \$? = $ac_status" >&5
33497   (exit $ac_status); }; }; then
33498   lres="$i $j"; break 2
33499 else
33500   echo "$as_me: failed program was:" >&5
33501 cat conftest.$ac_ext >&5
33502 fi
33503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33504                         else
33505                         cat >conftest.$ac_ext <<_ACEOF
33506 #line 33506 "configure"
33507 #include "confdefs.h"
33508
33509                                 #undef KRB5 /* makes md4.h et al unhappy */
33510                                 #define KRB4
33511                                 #include <md4.h>
33512                                 #include <md5.h>
33513                                 #include <sha.h>
33514                                 #include <des.h>
33515                                 #include <rc4.h>
33516
33517 #ifdef F77_DUMMY_MAIN
33518 #  ifdef __cplusplus
33519      extern "C"
33520 #  endif
33521    int F77_DUMMY_MAIN() { return 1; }
33522 #endif
33523 int
33524 main ()
33525 {
33526
33527                                 MD4_CTX md4;
33528                                 MD5_CTX md5;
33529                                 SHA_CTX sha1;
33530
33531                                 MD4_Init(&md4);
33532                                 MD5_Init(&md5);
33533                                 SHA1_Init(&sha1);
33534
33535                                 des_cbc_encrypt(0, 0, 0, 0, 0, 0);
33536                                 RC4(0, 0, 0, 0);
33537   ;
33538   return 0;
33539 }
33540 _ACEOF
33541 rm -f conftest.$ac_objext conftest$ac_exeext
33542 if { (eval echo "$as_me:33542: \"$ac_link\"") >&5
33543   (eval $ac_link) 2>&5
33544   ac_status=$?
33545   echo "$as_me:33545: \$? = $ac_status" >&5
33546   (exit $ac_status); } &&
33547          { ac_try='test -s conftest$ac_exeext'
33548   { (eval echo "$as_me:33548: \"$ac_try\"") >&5
33549   (eval $ac_try) 2>&5
33550   ac_status=$?
33551   echo "$as_me:33551: \$? = $ac_status" >&5
33552   (exit $ac_status); }; }; then
33553   lres="$i $j"; break 2
33554 else
33555   echo "$as_me: failed program was:" >&5
33556 cat conftest.$ac_ext >&5
33557 fi
33558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33559                         fi
33560                 done
33561         done
33562         CFLAGS="$save_CFLAGS"
33563         LIBS="$save_LIBS"
33564         if test "$ires" -a "$lres"; then
33565                 INCLUDE_des="$ires"
33566                 LIB_des="$lres"
33567                 crypto_lib=krb4
33568                 echo "$as_me:33568: result: same as krb4" >&5
33569 echo "${ECHO_T}same as krb4" >&6
33570                 LIB_des_a='$(LIB_des)'
33571                 LIB_des_so='$(LIB_des)'
33572                 LIB_des_appl='$(LIB_des)'
33573         fi
33574 fi
33575
33576 if test "$crypto_lib" = "unknown"; then
33577
33578   DIR_des='des'
33579   LIB_des='$(top_builddir)/lib/des/libdes.la'
33580   LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
33581   LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
33582   LIB_des_appl="-ldes"
33583
33584   echo "$as_me:33584: result: included libdes" >&5
33585 echo "${ECHO_T}included libdes" >&6
33586
33587 fi
33588
33589 if test "$openssl" = "yes"; then
33590
33591 cat >>confdefs.h <<\_ACEOF
33592 #define HAVE_OPENSSL 1
33593 _ACEOF
33594
33595 fi
33596
33597
33598 if test "$openssl" = yes; then
33599   HAVE_OPENSSL_TRUE=
33600   HAVE_OPENSSL_FALSE='#'
33601 else
33602   HAVE_OPENSSL_TRUE='#'
33603   HAVE_OPENSSL_FALSE=
33604 fi
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618 echo "$as_me:33618: checking for el_init" >&5
33619 echo $ECHO_N "checking for el_init... $ECHO_C" >&6
33620 if test "${ac_cv_funclib_el_init+set}" = set; then
33621   echo $ECHO_N "(cached) $ECHO_C" >&6
33622 else
33623
33624 if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
33625         ac_save_LIBS="$LIBS"
33626         for ac_lib in "" edit; do
33627                 case "$ac_lib" in
33628                 "") ;;
33629                 yes) ac_lib="" ;;
33630                 no) continue ;;
33631                 -l*) ;;
33632                 *) ac_lib="-l$ac_lib" ;;
33633                 esac
33634                 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
33635                 cat >conftest.$ac_ext <<_ACEOF
33636 #line 33636 "configure"
33637 #include "confdefs.h"
33638
33639 #ifdef F77_DUMMY_MAIN
33640 #  ifdef __cplusplus
33641      extern "C"
33642 #  endif
33643    int F77_DUMMY_MAIN() { return 1; }
33644 #endif
33645 int
33646 main ()
33647 {
33648 el_init()
33649   ;
33650   return 0;
33651 }
33652 _ACEOF
33653 rm -f conftest.$ac_objext conftest$ac_exeext
33654 if { (eval echo "$as_me:33654: \"$ac_link\"") >&5
33655   (eval $ac_link) 2>&5
33656   ac_status=$?
33657   echo "$as_me:33657: \$? = $ac_status" >&5
33658   (exit $ac_status); } &&
33659          { ac_try='test -s conftest$ac_exeext'
33660   { (eval echo "$as_me:33660: \"$ac_try\"") >&5
33661   (eval $ac_try) 2>&5
33662   ac_status=$?
33663   echo "$as_me:33663: \$? = $ac_status" >&5
33664   (exit $ac_status); }; }; then
33665   eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
33666 else
33667   echo "$as_me: failed program was:" >&5
33668 cat conftest.$ac_ext >&5
33669 fi
33670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33671         done
33672         eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
33673         LIBS="$ac_save_LIBS"
33674 fi
33675
33676 fi
33677
33678
33679 eval "ac_res=\$ac_cv_funclib_el_init"
33680
33681 if false; then
33682
33683 for ac_func in el_init
33684 do
33685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33686 echo "$as_me:33686: checking for $ac_func" >&5
33687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33688 if eval "test \"\${$as_ac_var+set}\" = set"; then
33689   echo $ECHO_N "(cached) $ECHO_C" >&6
33690 else
33691   cat >conftest.$ac_ext <<_ACEOF
33692 #line 33692 "configure"
33693 #include "confdefs.h"
33694 /* System header to define __stub macros and hopefully few prototypes,
33695     which can conflict with char $ac_func (); below.  */
33696 #include <assert.h>
33697 /* Override any gcc2 internal prototype to avoid an error.  */
33698 #ifdef __cplusplus
33699 extern "C"
33700 #endif
33701 /* We use char because int might match the return type of a gcc2
33702    builtin and then its argument prototype would still apply.  */
33703 char $ac_func ();
33704 char (*f) ();
33705
33706 #ifdef F77_DUMMY_MAIN
33707 #  ifdef __cplusplus
33708      extern "C"
33709 #  endif
33710    int F77_DUMMY_MAIN() { return 1; }
33711 #endif
33712 int
33713 main ()
33714 {
33715 /* The GNU C library defines this for functions which it implements
33716     to always fail with ENOSYS.  Some functions are actually named
33717     something starting with __ and the normal name is an alias.  */
33718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33719 choke me
33720 #else
33721 f = $ac_func;
33722 #endif
33723
33724   ;
33725   return 0;
33726 }
33727 _ACEOF
33728 rm -f conftest.$ac_objext conftest$ac_exeext
33729 if { (eval echo "$as_me:33729: \"$ac_link\"") >&5
33730   (eval $ac_link) 2>&5
33731   ac_status=$?
33732   echo "$as_me:33732: \$? = $ac_status" >&5
33733   (exit $ac_status); } &&
33734          { ac_try='test -s conftest$ac_exeext'
33735   { (eval echo "$as_me:33735: \"$ac_try\"") >&5
33736   (eval $ac_try) 2>&5
33737   ac_status=$?
33738   echo "$as_me:33738: \$? = $ac_status" >&5
33739   (exit $ac_status); }; }; then
33740   eval "$as_ac_var=yes"
33741 else
33742   echo "$as_me: failed program was:" >&5
33743 cat conftest.$ac_ext >&5
33744 eval "$as_ac_var=no"
33745 fi
33746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33747 fi
33748 echo "$as_me:33748: result: `eval echo '${'$as_ac_var'}'`" >&5
33749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33750 if test `eval echo '${'$as_ac_var'}'` = yes; then
33751   cat >>confdefs.h <<_ACEOF
33752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33753 _ACEOF
33754
33755 fi
33756 done
33757
33758 fi
33759 # el_init
33760 eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33761 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33762 eval "LIB_el_init=$ac_res"
33763
33764 case "$ac_res" in
33765         yes)
33766         eval "ac_cv_func_el_init=yes"
33767         eval "LIB_el_init="
33768         cat >>confdefs.h <<_ACEOF
33769 #define $ac_tr_func 1
33770 _ACEOF
33771
33772         echo "$as_me:33772: result: yes" >&5
33773 echo "${ECHO_T}yes" >&6
33774         ;;
33775         no)
33776         eval "ac_cv_func_el_init=no"
33777         eval "LIB_el_init="
33778         echo "$as_me:33778: result: no" >&5
33779 echo "${ECHO_T}no" >&6
33780         ;;
33781         *)
33782         eval "ac_cv_func_el_init=yes"
33783         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
33784         cat >>confdefs.h <<_ACEOF
33785 #define $ac_tr_func 1
33786 _ACEOF
33787
33788         cat >>confdefs.h <<_ACEOF
33789 #define $ac_tr_lib 1
33790 _ACEOF
33791
33792         echo "$as_me:33792: result: yes, in $ac_res" >&5
33793 echo "${ECHO_T}yes, in $ac_res" >&6
33794         ;;
33795 esac
33796
33797
33798 if test "$ac_cv_func_el_init" = yes ; then
33799         echo "$as_me:33799: checking for four argument el_init" >&5
33800 echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
33801 if test "${ac_cv_func_el_init_four+set}" = set; then
33802   echo $ECHO_N "(cached) $ECHO_C" >&6
33803 else
33804
33805                 cat >conftest.$ac_ext <<_ACEOF
33806 #line 33806 "configure"
33807 #include "confdefs.h"
33808 #include <stdio.h>
33809                         #include <histedit.h>
33810 #ifdef F77_DUMMY_MAIN
33811 #  ifdef __cplusplus
33812      extern "C"
33813 #  endif
33814    int F77_DUMMY_MAIN() { return 1; }
33815 #endif
33816 int
33817 main ()
33818 {
33819 el_init("", NULL, NULL, NULL);
33820   ;
33821   return 0;
33822 }
33823 _ACEOF
33824 rm -f conftest.$ac_objext
33825 if { (eval echo "$as_me:33825: \"$ac_compile\"") >&5
33826   (eval $ac_compile) 2>&5
33827   ac_status=$?
33828   echo "$as_me:33828: \$? = $ac_status" >&5
33829   (exit $ac_status); } &&
33830          { ac_try='test -s conftest.$ac_objext'
33831   { (eval echo "$as_me:33831: \"$ac_try\"") >&5
33832   (eval $ac_try) 2>&5
33833   ac_status=$?
33834   echo "$as_me:33834: \$? = $ac_status" >&5
33835   (exit $ac_status); }; }; then
33836   ac_cv_func_el_init_four=yes
33837 else
33838   echo "$as_me: failed program was:" >&5
33839 cat conftest.$ac_ext >&5
33840 ac_cv_func_el_init_four=no
33841 fi
33842 rm -f conftest.$ac_objext conftest.$ac_ext
33843 fi
33844 echo "$as_me:33844: result: $ac_cv_func_el_init_four" >&5
33845 echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
33846         if test "$ac_cv_func_el_init_four" = yes; then
33847
33848 cat >>confdefs.h <<\_ACEOF
33849 #define HAVE_FOUR_VALUED_EL_INIT 1
33850 _ACEOF
33851
33852         fi
33853 fi
33854
33855
33856 ac_foo=no
33857 if test "$with_readline" = yes; then
33858         :
33859 elif test "$ac_cv_func_readline" = yes; then
33860         :
33861 elif test "$ac_cv_func_el_init" = yes; then
33862         ac_foo=yes
33863         LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
33864 else
33865         LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
33866 fi
33867
33868
33869 if test "$ac_foo" = yes; then
33870   el_compat_TRUE=
33871   el_compat_FALSE='#'
33872 else
33873   el_compat_TRUE='#'
33874   el_compat_FALSE=
33875 fi
33876
33877
33878 cat >>confdefs.h <<\_ACEOF
33879 #define HAVE_READLINE 1
33880 _ACEOF
33881
33882
33883
33884
33885
33886 cat >>confdefs.h <<\_ACEOF
33887 #define AUTHENTICATION 1
33888 _ACEOF
33889
33890 cat >>confdefs.h <<\_ACEOF
33891 #define ENCRYPTION 1
33892 _ACEOF
33893
33894 cat >>confdefs.h <<\_ACEOF
33895 #define DES_ENCRYPTION 1
33896 _ACEOF
33897
33898 cat >>confdefs.h <<\_ACEOF
33899 #define DIAGNOSTICS 1
33900 _ACEOF
33901
33902 cat >>confdefs.h <<\_ACEOF
33903 #define OLD_ENVIRON 1
33904 _ACEOF
33905 if false; then
33906
33907 cat >>confdefs.h <<\_ACEOF
33908 #define ENV_HACK 1
33909 _ACEOF
33910
33911 fi
33912
33913 # Simple test for streamspty, based on the existance of getmsg(), alas
33914 # this breaks on SunOS4 which have streams but BSD-like ptys
33915 #
33916 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
33917
33918 case "$host" in
33919 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
33920         ;;
33921 *)
33922         echo "$as_me:33922: checking for getmsg" >&5
33923 echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
33924 if test "${ac_cv_func_getmsg+set}" = set; then
33925   echo $ECHO_N "(cached) $ECHO_C" >&6
33926 else
33927   cat >conftest.$ac_ext <<_ACEOF
33928 #line 33928 "configure"
33929 #include "confdefs.h"
33930 /* System header to define __stub macros and hopefully few prototypes,
33931     which can conflict with char getmsg (); below.  */
33932 #include <assert.h>
33933 /* Override any gcc2 internal prototype to avoid an error.  */
33934 #ifdef __cplusplus
33935 extern "C"
33936 #endif
33937 /* We use char because int might match the return type of a gcc2
33938    builtin and then its argument prototype would still apply.  */
33939 char getmsg ();
33940 char (*f) ();
33941
33942 #ifdef F77_DUMMY_MAIN
33943 #  ifdef __cplusplus
33944      extern "C"
33945 #  endif
33946    int F77_DUMMY_MAIN() { return 1; }
33947 #endif
33948 int
33949 main ()
33950 {
33951 /* The GNU C library defines this for functions which it implements
33952     to always fail with ENOSYS.  Some functions are actually named
33953     something starting with __ and the normal name is an alias.  */
33954 #if defined (__stub_getmsg) || defined (__stub___getmsg)
33955 choke me
33956 #else
33957 f = getmsg;
33958 #endif
33959
33960   ;
33961   return 0;
33962 }
33963 _ACEOF
33964 rm -f conftest.$ac_objext conftest$ac_exeext
33965 if { (eval echo "$as_me:33965: \"$ac_link\"") >&5
33966   (eval $ac_link) 2>&5
33967   ac_status=$?
33968   echo "$as_me:33968: \$? = $ac_status" >&5
33969   (exit $ac_status); } &&
33970          { ac_try='test -s conftest$ac_exeext'
33971   { (eval echo "$as_me:33971: \"$ac_try\"") >&5
33972   (eval $ac_try) 2>&5
33973   ac_status=$?
33974   echo "$as_me:33974: \$? = $ac_status" >&5
33975   (exit $ac_status); }; }; then
33976   ac_cv_func_getmsg=yes
33977 else
33978   echo "$as_me: failed program was:" >&5
33979 cat conftest.$ac_ext >&5
33980 ac_cv_func_getmsg=no
33981 fi
33982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33983 fi
33984 echo "$as_me:33984: result: $ac_cv_func_getmsg" >&5
33985 echo "${ECHO_T}$ac_cv_func_getmsg" >&6
33986
33987         if test "$ac_cv_func_getmsg" = "yes"; then
33988                 echo "$as_me:33988: checking if getmsg works" >&5
33989 echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
33990 if test "${ac_cv_func_getmsg_works+set}" = set; then
33991   echo $ECHO_N "(cached) $ECHO_C" >&6
33992 else
33993   if test "$cross_compiling" = yes; then
33994   ac_cv_func_getmsg_works=no
33995 else
33996   cat >conftest.$ac_ext <<_ACEOF
33997 #line 33997 "configure"
33998 #include "confdefs.h"
33999
34000                         #include <stdio.h>
34001                         #include <errno.h>
34002
34003                         int main()
34004                         {
34005                           int ret;
34006                           ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
34007                           if(ret < 0 && errno == ENOSYS)
34008                             return 1;
34009                           return 0;
34010                         }
34011
34012 _ACEOF
34013 rm -f conftest$ac_exeext
34014 if { (eval echo "$as_me:34014: \"$ac_link\"") >&5
34015   (eval $ac_link) 2>&5
34016   ac_status=$?
34017   echo "$as_me:34017: \$? = $ac_status" >&5
34018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34019   { (eval echo "$as_me:34019: \"$ac_try\"") >&5
34020   (eval $ac_try) 2>&5
34021   ac_status=$?
34022   echo "$as_me:34022: \$? = $ac_status" >&5
34023   (exit $ac_status); }; }; then
34024   ac_cv_func_getmsg_works=yes
34025 else
34026   echo "$as_me: program exited with status $ac_status" >&5
34027 echo "$as_me: failed program was:" >&5
34028 cat conftest.$ac_ext >&5
34029 ( exit $ac_status )
34030 ac_cv_func_getmsg_works=no
34031 fi
34032 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34033 fi
34034 fi
34035 echo "$as_me:34035: result: $ac_cv_func_getmsg_works" >&5
34036 echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
34037                 if test "$ac_cv_func_getmsg_works" = "yes"; then
34038
34039 cat >>confdefs.h <<\_ACEOF
34040 #define HAVE_GETMSG 1
34041 _ACEOF
34042
34043
34044 cat >>confdefs.h <<\_ACEOF
34045 #define STREAMSPTY 1
34046 _ACEOF
34047
34048                 fi
34049         fi
34050         ;;
34051 esac
34052
34053
34054
34055
34056
34057
34058
34059 # Extract the first word of "compile_et", so it can be a program name with args.
34060 set dummy compile_et; ac_word=$2
34061 echo "$as_me:34061: checking for $ac_word" >&5
34062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34063 if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
34064   echo $ECHO_N "(cached) $ECHO_C" >&6
34065 else
34066   if test -n "$COMPILE_ET"; then
34067   ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
34068 else
34069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34070 for as_dir in $PATH
34071 do
34072   IFS=$as_save_IFS
34073   test -z "$as_dir" && as_dir=.
34074   for ac_exec_ext in '' $ac_executable_extensions; do
34075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34076     ac_cv_prog_COMPILE_ET="compile_et"
34077     echo "$as_me:34077: found $as_dir/$ac_word$ac_exec_ext" >&5
34078     break 2
34079   fi
34080 done
34081 done
34082
34083 fi
34084 fi
34085 COMPILE_ET=$ac_cv_prog_COMPILE_ET
34086 if test -n "$COMPILE_ET"; then
34087   echo "$as_me:34087: result: $COMPILE_ET" >&5
34088 echo "${ECHO_T}$COMPILE_ET" >&6
34089 else
34090   echo "$as_me:34090: result: no" >&5
34091 echo "${ECHO_T}no" >&6
34092 fi
34093
34094
34095 krb_cv_compile_et="no"
34096 if test "${COMPILE_ET}" = "compile_et"; then
34097
34098 echo "$as_me:34098: checking whether compile_et has the features we need" >&5
34099 echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
34100 cat > conftest_et.et <<'EOF'
34101 error_table conf
34102 prefix CONFTEST
34103 index 1
34104 error_code CODE1, "CODE1"
34105 index 128
34106 error_code CODE2, "CODE2"
34107 end
34108 EOF
34109 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
34110     save_CPPFLAGS="${save_CPPFLAGS}"
34111   if test -d "/usr/include/et"; then
34112     CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
34113   fi
34114     if test "$cross_compiling" = yes; then
34115   { { echo "$as_me:34115: error: cannot run test program while cross compiling" >&5
34116 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
34117    { (exit 1); exit 1; }; }
34118 else
34119   cat >conftest.$ac_ext <<_ACEOF
34120 #line 34120 "configure"
34121 #include "confdefs.h"
34122
34123 #include <com_err.h>
34124 #include <string.h>
34125 #include "conftest_et.h"
34126 int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
34127
34128 _ACEOF
34129 rm -f conftest$ac_exeext
34130 if { (eval echo "$as_me:34130: \"$ac_link\"") >&5
34131   (eval $ac_link) 2>&5
34132   ac_status=$?
34133   echo "$as_me:34133: \$? = $ac_status" >&5
34134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34135   { (eval echo "$as_me:34135: \"$ac_try\"") >&5
34136   (eval $ac_try) 2>&5
34137   ac_status=$?
34138   echo "$as_me:34138: \$? = $ac_status" >&5
34139   (exit $ac_status); }; }; then
34140   krb_cv_compile_et="yes"
34141 else
34142   echo "$as_me: program exited with status $ac_status" >&5
34143 echo "$as_me: failed program was:" >&5
34144 cat conftest.$ac_ext >&5
34145 ( exit $ac_status )
34146 CPPFLAGS="${save_CPPFLAGS}"
34147 fi
34148 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34149 fi
34150 fi
34151 echo "$as_me:34151: result: ${krb_cv_compile_et}" >&5
34152 echo "${ECHO_T}${krb_cv_compile_et}" >&6
34153 rm -fr conftest*
34154 fi
34155
34156 if test "${krb_cv_compile_et}" = "yes"; then
34157     krb_cv_save_LIBS="${LIBS}"
34158   LIBS="${LIBS} -lcom_err"
34159   echo "$as_me:34159: checking for com_err" >&5
34160 echo $ECHO_N "checking for com_err... $ECHO_C" >&6
34161   cat >conftest.$ac_ext <<_ACEOF
34162 #line 34162 "configure"
34163 #include "confdefs.h"
34164 #include <com_err.h>
34165 #ifdef F77_DUMMY_MAIN
34166 #  ifdef __cplusplus
34167      extern "C"
34168 #  endif
34169    int F77_DUMMY_MAIN() { return 1; }
34170 #endif
34171 int
34172 main ()
34173 {
34174
34175     const char *p;
34176     p = error_message(0);
34177
34178   ;
34179   return 0;
34180 }
34181 _ACEOF
34182 rm -f conftest.$ac_objext conftest$ac_exeext
34183 if { (eval echo "$as_me:34183: \"$ac_link\"") >&5
34184   (eval $ac_link) 2>&5
34185   ac_status=$?
34186   echo "$as_me:34186: \$? = $ac_status" >&5
34187   (exit $ac_status); } &&
34188          { ac_try='test -s conftest$ac_exeext'
34189   { (eval echo "$as_me:34189: \"$ac_try\"") >&5
34190   (eval $ac_try) 2>&5
34191   ac_status=$?
34192   echo "$as_me:34192: \$? = $ac_status" >&5
34193   (exit $ac_status); }; }; then
34194   krb_cv_com_err="yes"
34195 else
34196   echo "$as_me: failed program was:" >&5
34197 cat conftest.$ac_ext >&5
34198 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
34199 fi
34200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34201   echo "$as_me:34201: result: ${krb_cv_com_err}" >&5
34202 echo "${ECHO_T}${krb_cv_com_err}" >&6
34203   LIBS="${krb_cv_save_LIBS}"
34204 else
34205     krb_cv_com_err="no"
34206 fi
34207
34208 if test "${krb_cv_com_err}" = "yes"; then
34209     DIR_com_err=""
34210     LIB_com_err="-lcom_err"
34211     LIB_com_err_a=""
34212     LIB_com_err_so=""
34213     { echo "$as_me:34213: Using the already-installed com_err" >&5
34214 echo "$as_me: Using the already-installed com_err" >&6;}
34215 else
34216     COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
34217     DIR_com_err="com_err"
34218     LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
34219     LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
34220     LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
34221     { echo "$as_me:34221: Using our own com_err" >&5
34222 echo "$as_me: Using our own com_err" >&6;}
34223 fi
34224
34225
34226
34227
34228
34229
34230
34231
34232 echo "$as_me:34232: checking which authentication modules should be built" >&5
34233 echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
34234
34235 LIB_AUTH_SUBDIRS=
34236
34237 if test "$ac_cv_header_siad_h" = yes; then
34238         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
34239 fi
34240
34241 case "${host}" in
34242 *-*-freebsd*)   ac_cv_want_pam_krb4=no ;;
34243 *)              ac_cv_want_pam_krb4=yes ;;
34244 esac
34245
34246 if test "$ac_cv_want_pam_krb4" = yes -a \
34247     "$ac_cv_header_security_pam_modules_h" = yes -a \
34248     "$enable_shared" = yes; then
34249         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
34250 fi
34251
34252 case "${host}" in
34253 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
34254 esac
34255
34256 echo "$as_me:34256: result: $LIB_AUTH_SUBDIRS" >&5
34257 echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
34258
34259
34260
34261
34262 # This is done by AC_OUTPUT but we need the result here.
34263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34264 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34265
34266
34267         x="${bindir}"
34268         eval y="$x"
34269         while test "x$y" != "x$x"; do
34270                 x="$y"
34271                 eval y="$x"
34272         done
34273
34274 cat >>confdefs.h <<_ACEOF
34275 #define BINDIR "$x"
34276 _ACEOF
34277
34278         x="${libdir}"
34279         eval y="$x"
34280         while test "x$y" != "x$x"; do
34281                 x="$y"
34282                 eval y="$x"
34283         done
34284
34285 cat >>confdefs.h <<_ACEOF
34286 #define LIBDIR "$x"
34287 _ACEOF
34288
34289         x="${libexecdir}"
34290         eval y="$x"
34291         while test "x$y" != "x$x"; do
34292                 x="$y"
34293                 eval y="$x"
34294         done
34295
34296 cat >>confdefs.h <<_ACEOF
34297 #define LIBEXECDIR "$x"
34298 _ACEOF
34299
34300         x="${localstatedir}"
34301         eval y="$x"
34302         while test "x$y" != "x$x"; do
34303                 x="$y"
34304                 eval y="$x"
34305         done
34306
34307 cat >>confdefs.h <<_ACEOF
34308 #define LOCALSTATEDIR "$x"
34309 _ACEOF
34310
34311         x="${sbindir}"
34312         eval y="$x"
34313         while test "x$y" != "x$x"; do
34314                 x="$y"
34315                 eval y="$x"
34316         done
34317
34318 cat >>confdefs.h <<_ACEOF
34319 #define SBINDIR "$x"
34320 _ACEOF
34321
34322         x="${sysconfdir}"
34323         eval y="$x"
34324         while test "x$y" != "x$x"; do
34325                 x="$y"
34326                 eval y="$x"
34327         done
34328
34329 cat >>confdefs.h <<_ACEOF
34330 #define SYSCONFDIR "$x"
34331 _ACEOF
34332
34333
34334
34335 LTLIBOBJS=`echo "$LIBOBJS" |
34336         sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
34337
34338
34339
34340
34341
34342 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"
34343
34344
34345 cat >confcache <<\_ACEOF
34346 # This file is a shell script that caches the results of configure
34347 # tests run on this system so they can be shared between configure
34348 # scripts and configure runs, see configure's option --config-cache.
34349 # It is not useful on other systems.  If it contains results you don't
34350 # want to keep, you may remove or edit it.
34351 #
34352 # config.status only pays attention to the cache file if you give it
34353 # the --recheck option to rerun configure.
34354 #
34355 # `ac_cv_env_foo' variables (set or unset) will be overriden when
34356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34357 # following values.
34358
34359 _ACEOF
34360
34361 # The following way of writing the cache mishandles newlines in values,
34362 # but we know of no workaround that is simple, portable, and efficient.
34363 # So, don't put newlines in cache variables' values.
34364 # Ultrix sh set writes to stderr and can't be redirected directly,
34365 # and sets the high bit in the cache file unless we assign to the vars.
34366 {
34367   (set) 2>&1 |
34368     case `(ac_space=' '; set | grep ac_space) 2>&1` in
34369     *ac_space=\ *)
34370       # `set' does not quote correctly, so add quotes (double-quote
34371       # substitution turns \\\\ into \\, and sed turns \\ into \).
34372       sed -n \
34373         "s/'/'\\\\''/g;
34374           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34375       ;;
34376     *)
34377       # `set' quotes correctly as required by POSIX, so do not add quotes.
34378       sed -n \
34379         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34380       ;;
34381     esac;
34382 } |
34383   sed '
34384      t clear
34385      : clear
34386      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34387      t end
34388      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34389      : end' >>confcache
34390 if cmp -s $cache_file confcache; then :; else
34391   if test -w $cache_file; then
34392     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34393     cat confcache >$cache_file
34394   else
34395     echo "not updating unwritable cache $cache_file"
34396   fi
34397 fi
34398 rm -f confcache
34399
34400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34401 # Let make expand exec_prefix.
34402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34403
34404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34406 # trailing colons and then remove the whole line if VPATH becomes empty
34407 # (actually we leave an empty line to preserve line numbers).
34408 if test "x$srcdir" = x.; then
34409   ac_vpsub='/^[         ]*VPATH[        ]*=/{
34410 s/:*\$(srcdir):*/:/;
34411 s/:*\${srcdir}:*/:/;
34412 s/:*@srcdir@:*/:/;
34413 s/^\([^=]*=[    ]*\):*/\1/;
34414 s/:*$//;
34415 s/^[^=]*=[      ]*$//;
34416 }'
34417 fi
34418
34419 DEFS=-DHAVE_CONFIG_H
34420
34421 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34422   { { echo "$as_me:34422: error: conditional \"AMDEP\" was never defined.
34423 Usually this means the macro was only invoked conditionally." >&5
34424 echo "$as_me: error: conditional \"AMDEP\" was never defined.
34425 Usually this means the macro was only invoked conditionally." >&2;}
34426    { (exit 1); exit 1; }; }
34427 fi
34428 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
34429   { { echo "$as_me:34429: error: conditional \"HAVE_DB1\" was never defined.
34430 Usually this means the macro was only invoked conditionally." >&5
34431 echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
34432 Usually this means the macro was only invoked conditionally." >&2;}
34433    { (exit 1); exit 1; }; }
34434 fi
34435 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
34436   { { echo "$as_me:34436: error: conditional \"HAVE_DB3\" was never defined.
34437 Usually this means the macro was only invoked conditionally." >&5
34438 echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
34439 Usually this means the macro was only invoked conditionally." >&2;}
34440    { (exit 1); exit 1; }; }
34441 fi
34442 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
34443   { { echo "$as_me:34443: error: conditional \"HAVE_NDBM\" was never defined.
34444 Usually this means the macro was only invoked conditionally." >&5
34445 echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
34446 Usually this means the macro was only invoked conditionally." >&2;}
34447    { (exit 1); exit 1; }; }
34448 fi
34449 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
34450   { { echo "$as_me:34450: error: conditional \"have_err_h\" was never defined.
34451 Usually this means the macro was only invoked conditionally." >&5
34452 echo "$as_me: error: conditional \"have_err_h\" was never defined.
34453 Usually this means the macro was only invoked conditionally." >&2;}
34454    { (exit 1); exit 1; }; }
34455 fi
34456 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
34457   { { echo "$as_me:34457: error: conditional \"have_fnmatch_h\" was never defined.
34458 Usually this means the macro was only invoked conditionally." >&5
34459 echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
34460 Usually this means the macro was only invoked conditionally." >&2;}
34461    { (exit 1); exit 1; }; }
34462 fi
34463 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
34464   { { echo "$as_me:34464: error: conditional \"have_ifaddrs_h\" was never defined.
34465 Usually this means the macro was only invoked conditionally." >&5
34466 echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
34467 Usually this means the macro was only invoked conditionally." >&2;}
34468    { (exit 1); exit 1; }; }
34469 fi
34470 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
34471   { { echo "$as_me:34471: error: conditional \"have_vis_h\" was never defined.
34472 Usually this means the macro was only invoked conditionally." >&5
34473 echo "$as_me: error: conditional \"have_vis_h\" was never defined.
34474 Usually this means the macro was only invoked conditionally." >&2;}
34475    { (exit 1); exit 1; }; }
34476 fi
34477 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
34478   { { echo "$as_me:34478: error: conditional \"have_glob_h\" was never defined.
34479 Usually this means the macro was only invoked conditionally." >&5
34480 echo "$as_me: error: conditional \"have_glob_h\" was never defined.
34481 Usually this means the macro was only invoked conditionally." >&2;}
34482    { (exit 1); exit 1; }; }
34483 fi
34484 if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
34485   { { echo "$as_me:34485: error: conditional \"KRB4\" was never defined.
34486 Usually this means the macro was only invoked conditionally." >&5
34487 echo "$as_me: error: conditional \"KRB4\" was never defined.
34488 Usually this means the macro was only invoked conditionally." >&2;}
34489    { (exit 1); exit 1; }; }
34490 fi
34491 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
34492   { { echo "$as_me:34492: error: conditional \"KRB5\" was never defined.
34493 Usually this means the macro was only invoked conditionally." >&5
34494 echo "$as_me: error: conditional \"KRB5\" was never defined.
34495 Usually this means the macro was only invoked conditionally." >&2;}
34496    { (exit 1); exit 1; }; }
34497 fi
34498 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
34499   { { echo "$as_me:34499: error: conditional \"do_roken_rename\" was never defined.
34500 Usually this means the macro was only invoked conditionally." >&5
34501 echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
34502 Usually this means the macro was only invoked conditionally." >&2;}
34503    { (exit 1); exit 1; }; }
34504 fi
34505 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
34506   { { echo "$as_me:34506: error: conditional \"DCE\" was never defined.
34507 Usually this means the macro was only invoked conditionally." >&5
34508 echo "$as_me: error: conditional \"DCE\" was never defined.
34509 Usually this means the macro was only invoked conditionally." >&2;}
34510    { (exit 1); exit 1; }; }
34511 fi
34512 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
34513   { { echo "$as_me:34513: error: conditional \"OTP\" was never defined.
34514 Usually this means the macro was only invoked conditionally." >&5
34515 echo "$as_me: error: conditional \"OTP\" was never defined.
34516 Usually this means the macro was only invoked conditionally." >&2;}
34517    { (exit 1); exit 1; }; }
34518 fi
34519 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
34520   { { echo "$as_me:34520: error: conditional \"CATMAN\" was never defined.
34521 Usually this means the macro was only invoked conditionally." >&5
34522 echo "$as_me: error: conditional \"CATMAN\" was never defined.
34523 Usually this means the macro was only invoked conditionally." >&2;}
34524    { (exit 1); exit 1; }; }
34525 fi
34526 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
34527   { { echo "$as_me:34527: error: conditional \"AIX\" was never defined.
34528 Usually this means the macro was only invoked conditionally." >&5
34529 echo "$as_me: error: conditional \"AIX\" was never defined.
34530 Usually this means the macro was only invoked conditionally." >&2;}
34531    { (exit 1); exit 1; }; }
34532 fi
34533 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
34534   { { echo "$as_me:34534: error: conditional \"AIX4\" was never defined.
34535 Usually this means the macro was only invoked conditionally." >&5
34536 echo "$as_me: error: conditional \"AIX4\" was never defined.
34537 Usually this means the macro was only invoked conditionally." >&2;}
34538    { (exit 1); exit 1; }; }
34539 fi
34540 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
34541   { { echo "$as_me:34541: error: conditional \"HAVE_DLOPEN\" was never defined.
34542 Usually this means the macro was only invoked conditionally." >&5
34543 echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
34544 Usually this means the macro was only invoked conditionally." >&2;}
34545    { (exit 1); exit 1; }; }
34546 fi
34547 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
34548   { { echo "$as_me:34548: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
34549 Usually this means the macro was only invoked conditionally." >&5
34550 echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
34551 Usually this means the macro was only invoked conditionally." >&2;}
34552    { (exit 1); exit 1; }; }
34553 fi
34554 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
34555   { { echo "$as_me:34555: error: conditional \"IRIX\" was never defined.
34556 Usually this means the macro was only invoked conditionally." >&5
34557 echo "$as_me: error: conditional \"IRIX\" was never defined.
34558 Usually this means the macro was only invoked conditionally." >&2;}
34559    { (exit 1); exit 1; }; }
34560 fi
34561 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
34562   { { echo "$as_me:34562: error: conditional \"HAVE_X\" was never defined.
34563 Usually this means the macro was only invoked conditionally." >&5
34564 echo "$as_me: error: conditional \"HAVE_X\" was never defined.
34565 Usually this means the macro was only invoked conditionally." >&2;}
34566    { (exit 1); exit 1; }; }
34567 fi
34568 if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
34569   { { echo "$as_me:34569: error: conditional \"NEED_WRITEAUTH\" was never defined.
34570 Usually this means the macro was only invoked conditionally." >&5
34571 echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
34572 Usually this means the macro was only invoked conditionally." >&2;}
34573    { (exit 1); exit 1; }; }
34574 fi
34575 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
34576   { { echo "$as_me:34576: error: conditional \"HAVE_OPENSSL\" was never defined.
34577 Usually this means the macro was only invoked conditionally." >&5
34578 echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
34579 Usually this means the macro was only invoked conditionally." >&2;}
34580    { (exit 1); exit 1; }; }
34581 fi
34582 if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
34583   { { echo "$as_me:34583: error: conditional \"el_compat\" was never defined.
34584 Usually this means the macro was only invoked conditionally." >&5
34585 echo "$as_me: error: conditional \"el_compat\" was never defined.
34586 Usually this means the macro was only invoked conditionally." >&2;}
34587    { (exit 1); exit 1; }; }
34588 fi
34589
34590 : ${CONFIG_STATUS=./config.status}
34591 ac_clean_files_save=$ac_clean_files
34592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34593 { echo "$as_me:34593: creating $CONFIG_STATUS" >&5
34594 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34595 cat >$CONFIG_STATUS <<_ACEOF
34596 #! $SHELL
34597 # Generated by $as_me.
34598 # Run this file to recreate the current configuration.
34599 # Compiler output produced by configure, useful for debugging
34600 # configure, is in config.log if it exists.
34601
34602 debug=false
34603 SHELL=\${CONFIG_SHELL-$SHELL}
34604 _ACEOF
34605
34606 cat >>$CONFIG_STATUS <<\_ACEOF
34607
34608 ## --------------------- ##
34609 ## M4sh Initialization.  ##
34610 ## --------------------- ##
34611
34612 # Be Bourne compatible
34613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34614   emulate sh
34615   NULLCMD=:
34616 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34617   set -o posix
34618 fi
34619
34620 # NLS nuisances.
34621 # Support unset when possible.
34622 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34623   as_unset=unset
34624 else
34625   as_unset=false
34626 fi
34627
34628 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
34629     { $as_unset LANG || test "${LANG+set}" != set; } ||
34630       { LANG=C; export LANG; }
34631 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
34632     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
34633       { LC_ALL=C; export LC_ALL; }
34634 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
34635     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
34636       { LC_TIME=C; export LC_TIME; }
34637 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
34638     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
34639       { LC_CTYPE=C; export LC_CTYPE; }
34640 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
34641     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
34642       { LANGUAGE=C; export LANGUAGE; }
34643 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
34644     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
34645       { LC_COLLATE=C; export LC_COLLATE; }
34646 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
34647     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
34648       { LC_NUMERIC=C; export LC_NUMERIC; }
34649 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
34650     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
34651       { LC_MESSAGES=C; export LC_MESSAGES; }
34652
34653
34654 # Name of the executable.
34655 as_me=`(basename "$0") 2>/dev/null ||
34656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34657          X"$0" : 'X\(//\)$' \| \
34658          X"$0" : 'X\(/\)$' \| \
34659          .     : '\(.\)' 2>/dev/null ||
34660 echo X/"$0" |
34661     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34662           /^X\/\(\/\/\)$/{ s//\1/; q; }
34663           /^X\/\(\/\).*/{ s//\1/; q; }
34664           s/.*/./; q'`
34665
34666 # PATH needs CR, and LINENO needs CR and PATH.
34667 # Avoid depending upon Character Ranges.
34668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34671 as_cr_digits='0123456789'
34672 as_cr_alnum=$as_cr_Letters$as_cr_digits
34673
34674 # The user is always right.
34675 if test "${PATH_SEPARATOR+set}" != set; then
34676   echo "#! /bin/sh" >conftest.sh
34677   echo  "exit 0"   >>conftest.sh
34678   chmod +x conftest.sh
34679   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
34680     PATH_SEPARATOR=';'
34681   else
34682     PATH_SEPARATOR=:
34683   fi
34684   rm -f conftest.sh
34685 fi
34686
34687
34688   as_lineno_1=34688
34689   as_lineno_2=34689
34690   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34691   test "x$as_lineno_1" != "x$as_lineno_2" &&
34692   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
34693   # Find who we are.  Look in the path if we contain no path at all
34694   # relative or not.
34695   case $0 in
34696     *[\\/]* ) as_myself=$0 ;;
34697     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34698 for as_dir in $PATH
34699 do
34700   IFS=$as_save_IFS
34701   test -z "$as_dir" && as_dir=.
34702   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34703 done
34704
34705        ;;
34706   esac
34707   # We did not find ourselves, most probably we were run as `sh COMMAND'
34708   # in which case we are not to be found in the path.
34709   if test "x$as_myself" = x; then
34710     as_myself=$0
34711   fi
34712   if test ! -f "$as_myself"; then
34713     { { echo "$as_me:34713: error: cannot find myself; rerun with an absolute path" >&5
34714 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
34715    { (exit 1); exit 1; }; }
34716   fi
34717   case $CONFIG_SHELL in
34718   '')
34719     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34720 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
34721 do
34722   IFS=$as_save_IFS
34723   test -z "$as_dir" && as_dir=.
34724   for as_base in sh bash ksh sh5; do
34725          case $as_dir in
34726          /*)
34727            if ("$as_dir/$as_base" -c '
34728   as_lineno_1=34728
34729   as_lineno_2=34729
34730   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34731   test "x$as_lineno_1" != "x$as_lineno_2" &&
34732   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
34733              CONFIG_SHELL=$as_dir/$as_base
34734              export CONFIG_SHELL
34735              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
34736            fi;;
34737          esac
34738        done
34739 done
34740 ;;
34741   esac
34742
34743   # Create $as_me.lineno as a copy of $as_myself, but with 34743
34744   # uniformly replaced by the line number.  The first 'sed' inserts a
34745   # line-number line before each line; the second 'sed' does the real
34746   # work.  The second script uses 'N' to pair each line-number line
34747   # with the numbered line, and appends trailing '-' during
34748   # substitution so that 34748 is not a special case at line end.
34749   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34750   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
34751   sed '=' <$as_myself |
34752     sed '
34753       N
34754       s,$,-,
34755       : loop
34756       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
34757       t loop
34758       s,-$,,
34759       s,^['$as_cr_digits']*\n,,
34760     ' >$as_me.lineno &&
34761   chmod +x $as_me.lineno ||
34762     { { echo "$as_me:34762: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
34763 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
34764    { (exit 1); exit 1; }; }
34765
34766   # Don't try to exec as it changes $[0], causing all sort of problems
34767   # (the dirname of $[0] is not the place where we might find the
34768   # original and so on.  Autoconf is especially sensible to this).
34769   . ./$as_me.lineno
34770   # Exit status is that of the last command.
34771   exit
34772 }
34773
34774
34775 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
34776   *c*,-n*) ECHO_N= ECHO_C='
34777 ' ECHO_T='      ' ;;
34778   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
34779   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
34780 esac
34781
34782 if expr a : '\(a\)' >/dev/null 2>&1; then
34783   as_expr=expr
34784 else
34785   as_expr=false
34786 fi
34787
34788 rm -f conf$$ conf$$.exe conf$$.file
34789 echo >conf$$.file
34790 if ln -s conf$$.file conf$$ 2>/dev/null; then
34791   # We could just check for DJGPP; but this test a) works b) is more generic
34792   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34793   if test -f conf$$.exe; then
34794     # Don't use ln at all; we don't have any links
34795     as_ln_s='cp -p'
34796   else
34797     as_ln_s='ln -s'
34798   fi
34799 elif ln conf$$.file conf$$ 2>/dev/null; then
34800   as_ln_s=ln
34801 else
34802   as_ln_s='cp -p'
34803 fi
34804 rm -f conf$$ conf$$.exe conf$$.file
34805
34806 as_executable_p="test -f"
34807
34808 # Sed expression to map a string onto a valid CPP name.
34809 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
34810
34811 # Sed expression to map a string onto a valid variable name.
34812 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
34813
34814
34815 # IFS
34816 # We need space, tab and new line, in precisely that order.
34817 as_nl='
34818 '
34819 IFS="   $as_nl"
34820
34821 # CDPATH.
34822 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
34823
34824 exec 6>&1
34825
34826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
34827 # report actual input values of CONFIG_FILES etc. instead of their
34828 # values after options handling.  Logging --version etc. is OK.
34829 exec 5>>config.log
34830 {
34831   echo
34832   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34833 ## Running $as_me. ##
34834 _ASBOX
34835 } >&5
34836 cat >&5 <<_CSEOF
34837
34838 This file was extended by Heimdal $as_me 0.4f, which was
34839 generated by GNU Autoconf 2.53.  Invocation command line was
34840
34841   CONFIG_FILES    = $CONFIG_FILES
34842   CONFIG_HEADERS  = $CONFIG_HEADERS
34843   CONFIG_LINKS    = $CONFIG_LINKS
34844   CONFIG_COMMANDS = $CONFIG_COMMANDS
34845   $ $0 $@
34846
34847 _CSEOF
34848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
34849 echo >&5
34850 _ACEOF
34851
34852 # Files that config.status was made for.
34853 if test -n "$ac_config_files"; then
34854   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
34855 fi
34856
34857 if test -n "$ac_config_headers"; then
34858   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
34859 fi
34860
34861 if test -n "$ac_config_links"; then
34862   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
34863 fi
34864
34865 if test -n "$ac_config_commands"; then
34866   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
34867 fi
34868
34869 cat >>$CONFIG_STATUS <<\_ACEOF
34870
34871 ac_cs_usage="\
34872 \`$as_me' instantiates files from templates according to the
34873 current configuration.
34874
34875 Usage: $0 [OPTIONS] [FILE]...
34876
34877   -h, --help       print this help, then exit
34878   -V, --version    print version number, then exit
34879   -d, --debug      don't remove temporary files
34880       --recheck    update $as_me by reconfiguring in the same conditions
34881   --file=FILE[:TEMPLATE]
34882                    instantiate the configuration file FILE
34883   --header=FILE[:TEMPLATE]
34884                    instantiate the configuration header FILE
34885
34886 Configuration files:
34887 $config_files
34888
34889 Configuration headers:
34890 $config_headers
34891
34892 Configuration commands:
34893 $config_commands
34894
34895 Report bugs to <bug-autoconf@gnu.org>."
34896 _ACEOF
34897
34898 cat >>$CONFIG_STATUS <<_ACEOF
34899 ac_cs_version="\\
34900 Heimdal config.status 0.4f
34901 configured by $0, generated by GNU Autoconf 2.53,
34902   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
34903
34904 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
34905 Free Software Foundation, Inc.
34906 This config.status script is free software; the Free Software Foundation
34907 gives unlimited permission to copy, distribute and modify it."
34908 srcdir=$srcdir
34909 INSTALL="$INSTALL"
34910 _ACEOF
34911
34912 cat >>$CONFIG_STATUS <<\_ACEOF
34913 # If no file are specified by the user, then we need to provide default
34914 # value.  By we need to know if files were specified by the user.
34915 ac_need_defaults=:
34916 while test $# != 0
34917 do
34918   case $1 in
34919   --*=*)
34920     ac_option=`expr "x$1" : 'x\([^=]*\)='`
34921     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
34922     shift
34923     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
34924     shift
34925     ;;
34926   -*);;
34927   *) # This is not an option, so the user has probably given explicit
34928      # arguments.
34929      ac_need_defaults=false;;
34930   esac
34931
34932   case $1 in
34933   # Handling of the options.
34934 _ACEOF
34935 cat >>$CONFIG_STATUS <<_ACEOF
34936   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34937     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
34938     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
34939 _ACEOF
34940 cat >>$CONFIG_STATUS <<\_ACEOF
34941   --version | --vers* | -V )
34942     echo "$ac_cs_version"; exit 0 ;;
34943   --he | --h)
34944     # Conflict between --help and --header
34945     { { echo "$as_me:34945: error: ambiguous option: $1
34946 Try \`$0 --help' for more information." >&5
34947 echo "$as_me: error: ambiguous option: $1
34948 Try \`$0 --help' for more information." >&2;}
34949    { (exit 1); exit 1; }; };;
34950   --help | --hel | -h )
34951     echo "$ac_cs_usage"; exit 0 ;;
34952   --debug | --d* | -d )
34953     debug=: ;;
34954   --file | --fil | --fi | --f )
34955     shift
34956     CONFIG_FILES="$CONFIG_FILES $1"
34957     ac_need_defaults=false;;
34958   --header | --heade | --head | --hea )
34959     shift
34960     CONFIG_HEADERS="$CONFIG_HEADERS $1"
34961     ac_need_defaults=false;;
34962
34963   # This is an error.
34964   -*) { { echo "$as_me:34964: error: unrecognized option: $1
34965 Try \`$0 --help' for more information." >&5
34966 echo "$as_me: error: unrecognized option: $1
34967 Try \`$0 --help' for more information." >&2;}
34968    { (exit 1); exit 1; }; } ;;
34969
34970   *) ac_config_targets="$ac_config_targets $1" ;;
34971
34972   esac
34973   shift
34974 done
34975
34976 _ACEOF
34977
34978 cat >>$CONFIG_STATUS <<_ACEOF
34979 #
34980 # INIT-COMMANDS section.
34981 #
34982
34983 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34984
34985 _ACEOF
34986
34987
34988
34989 cat >>$CONFIG_STATUS <<\_ACEOF
34990 for ac_config_target in $ac_config_targets
34991 do
34992   case "$ac_config_target" in
34993   # Handling of arguments.
34994   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34995   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34996   "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
34997   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
34998   "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
34999   "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
35000   "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
35001   "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
35002   "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
35003   "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
35004   "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
35005   "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
35006   "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
35007   "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
35008   "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
35009   "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
35010   "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
35011   "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
35012   "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
35013   "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
35014   "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
35015   "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
35016   "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
35017   "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
35018   "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
35019   "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
35020   "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
35021   "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
35022   "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
35023   "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
35024   "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
35025   "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
35026   "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
35027   "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
35028   "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
35029   "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
35030   "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
35031   "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
35032   "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
35033   "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
35034   "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
35035   "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
35036   "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
35037   "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
35038   "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
35039   "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
35040   "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
35041   "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
35042   "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
35043   "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
35044   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
35045   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
35046   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35047   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
35048   *) { { echo "$as_me:35048: error: invalid argument: $ac_config_target" >&5
35049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35050    { (exit 1); exit 1; }; };;
35051   esac
35052 done
35053
35054 # If the user did not use the arguments to specify the items to instantiate,
35055 # then the envvar interface is used.  Set only those that are not.
35056 # We use the long form for the default assignment because of an extremely
35057 # bizarre bug on SunOS 4.1.3.
35058 if $ac_need_defaults; then
35059   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35060   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35061   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35062 fi
35063
35064 # Create a temporary directory, and hook for its removal unless debugging.
35065 $debug ||
35066 {
35067   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35068   trap '{ (exit 1); exit 1; }' 1 2 13 15
35069 }
35070
35071 # Create a (secure) tmp directory for tmp files.
35072 : ${TMPDIR=/tmp}
35073 {
35074   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
35075   test -n "$tmp" && test -d "$tmp"
35076 }  ||
35077 {
35078   tmp=$TMPDIR/cs$$-$RANDOM
35079   (umask 077 && mkdir $tmp)
35080 } ||
35081 {
35082    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
35083    { (exit 1); exit 1; }
35084 }
35085
35086 _ACEOF
35087
35088 cat >>$CONFIG_STATUS <<_ACEOF
35089
35090 #
35091 # CONFIG_FILES section.
35092 #
35093
35094 # No need to generate the scripts if there are no CONFIG_FILES.
35095 # This happens for instance when ./config.status config.h
35096 if test -n "\$CONFIG_FILES"; then
35097   # Protect against being on the right side of a sed subst in config.status.
35098   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35099    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35100 s,@SHELL@,$SHELL,;t t
35101 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35102 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35103 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35104 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35105 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35106 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35107 s,@exec_prefix@,$exec_prefix,;t t
35108 s,@prefix@,$prefix,;t t
35109 s,@program_transform_name@,$program_transform_name,;t t
35110 s,@bindir@,$bindir,;t t
35111 s,@sbindir@,$sbindir,;t t
35112 s,@libexecdir@,$libexecdir,;t t
35113 s,@datadir@,$datadir,;t t
35114 s,@sysconfdir@,$sysconfdir,;t t
35115 s,@sharedstatedir@,$sharedstatedir,;t t
35116 s,@localstatedir@,$localstatedir,;t t
35117 s,@libdir@,$libdir,;t t
35118 s,@includedir@,$includedir,;t t
35119 s,@oldincludedir@,$oldincludedir,;t t
35120 s,@infodir@,$infodir,;t t
35121 s,@mandir@,$mandir,;t t
35122 s,@build_alias@,$build_alias,;t t
35123 s,@host_alias@,$host_alias,;t t
35124 s,@target_alias@,$target_alias,;t t
35125 s,@DEFS@,$DEFS,;t t
35126 s,@ECHO_C@,$ECHO_C,;t t
35127 s,@ECHO_N@,$ECHO_N,;t t
35128 s,@ECHO_T@,$ECHO_T,;t t
35129 s,@LIBS@,$LIBS,;t t
35130 s,@CC@,$CC,;t t
35131 s,@CFLAGS@,$CFLAGS,;t t
35132 s,@LDFLAGS@,$LDFLAGS,;t t
35133 s,@CPPFLAGS@,$CPPFLAGS,;t t
35134 s,@ac_ct_CC@,$ac_ct_CC,;t t
35135 s,@EXEEXT@,$EXEEXT,;t t
35136 s,@OBJEXT@,$OBJEXT,;t t
35137 s,@CPP@,$CPP,;t t
35138 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35139 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35140 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35141 s,@PACKAGE@,$PACKAGE,;t t
35142 s,@VERSION@,$VERSION,;t t
35143 s,@ACLOCAL@,$ACLOCAL,;t t
35144 s,@AUTOCONF@,$AUTOCONF,;t t
35145 s,@AUTOMAKE@,$AUTOMAKE,;t t
35146 s,@AUTOHEADER@,$AUTOHEADER,;t t
35147 s,@MAKEINFO@,$MAKEINFO,;t t
35148 s,@AMTAR@,$AMTAR,;t t
35149 s,@install_sh@,$install_sh,;t t
35150 s,@STRIP@,$STRIP,;t t
35151 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
35152 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
35153 s,@AWK@,$AWK,;t t
35154 s,@SET_MAKE@,$SET_MAKE,;t t
35155 s,@DEPDIR@,$DEPDIR,;t t
35156 s,@am__include@,$am__include,;t t
35157 s,@am__quote@,$am__quote,;t t
35158 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
35159 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
35160 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
35161 s,@CCDEPMODE@,$CCDEPMODE,;t t
35162 s,@build@,$build,;t t
35163 s,@build_cpu@,$build_cpu,;t t
35164 s,@build_vendor@,$build_vendor,;t t
35165 s,@build_os@,$build_os,;t t
35166 s,@host@,$host,;t t
35167 s,@host_cpu@,$host_cpu,;t t
35168 s,@host_vendor@,$host_vendor,;t t
35169 s,@host_os@,$host_os,;t t
35170 s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
35171 s,@YACC@,$YACC,;t t
35172 s,@LEX@,$LEX,;t t
35173 s,@LEXLIB@,$LEXLIB,;t t
35174 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35175 s,@LN_S@,$LN_S,;t t
35176 s,@ECHO@,$ECHO,;t t
35177 s,@RANLIB@,$RANLIB,;t t
35178 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35179 s,@LIBTOOL@,$LIBTOOL,;t t
35180 s,@WFLAGS@,$WFLAGS,;t t
35181 s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
35182 s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
35183 s,@LIB_db_create@,$LIB_db_create,;t t
35184 s,@LIB_dbopen@,$LIB_dbopen,;t t
35185 s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
35186 s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
35187 s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
35188 s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
35189 s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
35190 s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
35191 s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
35192 s,@DBLIB@,$DBLIB,;t t
35193 s,@LIB_NDBM@,$LIB_NDBM,;t t
35194 s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
35195 s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
35196 s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
35197 s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
35198 s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
35199 s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
35200 s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
35201 s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
35202 s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
35203 s,@LIB_socket@,$LIB_socket,;t t
35204 s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
35205 s,@LIB_syslog@,$LIB_syslog,;t t
35206 s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
35207 s,@LIB_res_search@,$LIB_res_search,;t t
35208 s,@LIB_dn_expand@,$LIB_dn_expand,;t t
35209 s,@LIBOBJS@,$LIBOBJS,;t t
35210 s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
35211 s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
35212 s,@LIB_getsockopt@,$LIB_getsockopt,;t t
35213 s,@LIB_setsockopt@,$LIB_setsockopt,;t t
35214 s,@LIB_hstrerror@,$LIB_hstrerror,;t t
35215 s,@LIB_bswap16@,$LIB_bswap16,;t t
35216 s,@LIB_bswap32@,$LIB_bswap32,;t t
35217 s,@LIB_pidfile@,$LIB_pidfile,;t t
35218 s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
35219 s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
35220 s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
35221 s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
35222 s,@LIB_crypt@,$LIB_crypt,;t t
35223 s,@DIR_roken@,$DIR_roken,;t t
35224 s,@LIB_roken@,$LIB_roken,;t t
35225 s,@INCLUDES_roken@,$INCLUDES_roken,;t t
35226 s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
35227 s,@LIB_openldap@,$LIB_openldap,;t t
35228 s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
35229 s,@LIB_krb4@,$LIB_krb4,;t t
35230 s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
35231 s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
35232 s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
35233 s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
35234 s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
35235 s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
35236 s,@KRB4_TRUE@,$KRB4_TRUE,;t t
35237 s,@KRB4_FALSE@,$KRB4_FALSE,;t t
35238 s,@KRB5_TRUE@,$KRB5_TRUE,;t t
35239 s,@KRB5_FALSE@,$KRB5_FALSE,;t t
35240 s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
35241 s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
35242 s,@LIB_kdb@,$LIB_kdb,;t t
35243 s,@DCE_TRUE@,$DCE_TRUE,;t t
35244 s,@DCE_FALSE@,$DCE_FALSE,;t t
35245 s,@dpagaix_cflags@,$dpagaix_cflags,;t t
35246 s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
35247 s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
35248 s,@LIB_otp@,$LIB_otp,;t t
35249 s,@OTP_TRUE@,$OTP_TRUE,;t t
35250 s,@OTP_FALSE@,$OTP_FALSE,;t t
35251 s,@LIB_security@,$LIB_security,;t t
35252 s,@NROFF@,$NROFF,;t t
35253 s,@GROFF@,$GROFF,;t t
35254 s,@CATMAN@,$CATMAN,;t t
35255 s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
35256 s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
35257 s,@CATMANEXT@,$CATMANEXT,;t t
35258 s,@INCLUDE_readline@,$INCLUDE_readline,;t t
35259 s,@LIB_readline@,$LIB_readline,;t t
35260 s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
35261 s,@LIB_hesiod@,$LIB_hesiod,;t t
35262 s,@AIX_TRUE@,$AIX_TRUE,;t t
35263 s,@AIX_FALSE@,$AIX_FALSE,;t t
35264 s,@AIX4_TRUE@,$AIX4_TRUE,;t t
35265 s,@AIX4_FALSE@,$AIX4_FALSE,;t t
35266 s,@LIB_dlopen@,$LIB_dlopen,;t t
35267 s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
35268 s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
35269 s,@LIB_loadquery@,$LIB_loadquery,;t t
35270 s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
35271 s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
35272 s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
35273 s,@IRIX_TRUE@,$IRIX_TRUE,;t t
35274 s,@IRIX_FALSE@,$IRIX_FALSE,;t t
35275 s,@X_CFLAGS@,$X_CFLAGS,;t t
35276 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35277 s,@X_LIBS@,$X_LIBS,;t t
35278 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35279 s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
35280 s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
35281 s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
35282 s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
35283 s,@LIB_XauFileName@,$LIB_XauFileName,;t t
35284 s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
35285 s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
35286 s,@LIB_logwtmp@,$LIB_logwtmp,;t t
35287 s,@LIB_logout@,$LIB_logout,;t t
35288 s,@LIB_openpty@,$LIB_openpty,;t t
35289 s,@LIB_tgetent@,$LIB_tgetent,;t t
35290 s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
35291 s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
35292 s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
35293 s,@DIR_des@,$DIR_des,;t t
35294 s,@INCLUDE_des@,$INCLUDE_des,;t t
35295 s,@LIB_des@,$LIB_des,;t t
35296 s,@LIB_des_a@,$LIB_des_a,;t t
35297 s,@LIB_des_so@,$LIB_des_so,;t t
35298 s,@LIB_des_appl@,$LIB_des_appl,;t t
35299 s,@LIB_el_init@,$LIB_el_init,;t t
35300 s,@el_compat_TRUE@,$el_compat_TRUE,;t t
35301 s,@el_compat_FALSE@,$el_compat_FALSE,;t t
35302 s,@COMPILE_ET@,$COMPILE_ET,;t t
35303 s,@DIR_com_err@,$DIR_com_err,;t t
35304 s,@LIB_com_err@,$LIB_com_err,;t t
35305 s,@LIB_com_err_a@,$LIB_com_err_a,;t t
35306 s,@LIB_com_err_so@,$LIB_com_err_so,;t t
35307 s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
35308 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
35309 CEOF
35310
35311 _ACEOF
35312
35313   cat >>$CONFIG_STATUS <<\_ACEOF
35314   # Split the substitutions into bite-sized pieces for seds with
35315   # small command number limits, like on Digital OSF/1 and HP-UX.
35316   ac_max_sed_lines=48
35317   ac_sed_frag=1 # Number of current file.
35318   ac_beg=1 # First line for current file.
35319   ac_end=$ac_max_sed_lines # Line after last line for current file.
35320   ac_more_lines=:
35321   ac_sed_cmds=
35322   while $ac_more_lines; do
35323     if test $ac_beg -gt 1; then
35324       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35325     else
35326       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35327     fi
35328     if test ! -s $tmp/subs.frag; then
35329       ac_more_lines=false
35330     else
35331       # The purpose of the label and of the branching condition is to
35332       # speed up the sed processing (if there are no `@' at all, there
35333       # is no need to browse any of the substitutions).
35334       # These are the two extra sed commands mentioned above.
35335       (echo ':t
35336   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35337       if test -z "$ac_sed_cmds"; then
35338         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35339       else
35340         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35341       fi
35342       ac_sed_frag=`expr $ac_sed_frag + 1`
35343       ac_beg=$ac_end
35344       ac_end=`expr $ac_end + $ac_max_sed_lines`
35345     fi
35346   done
35347   if test -z "$ac_sed_cmds"; then
35348     ac_sed_cmds=cat
35349   fi
35350 fi # test -n "$CONFIG_FILES"
35351
35352 _ACEOF
35353 cat >>$CONFIG_STATUS <<\_ACEOF
35354 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
35355   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35356   case $ac_file in
35357   - | *:- | *:-:* ) # input from stdin
35358         cat >$tmp/stdin
35359         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35360         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35361   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35362         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35363   * )   ac_file_in=$ac_file.in ;;
35364   esac
35365
35366   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35367   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35369          X"$ac_file" : 'X\(//\)[^/]' \| \
35370          X"$ac_file" : 'X\(//\)$' \| \
35371          X"$ac_file" : 'X\(/\)' \| \
35372          .     : '\(.\)' 2>/dev/null ||
35373 echo X"$ac_file" |
35374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35375           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35376           /^X\(\/\/\)$/{ s//\1/; q; }
35377           /^X\(\/\).*/{ s//\1/; q; }
35378           s/.*/./; q'`
35379   { case "$ac_dir" in
35380   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
35381   *)                      as_incr_dir=.;;
35382 esac
35383 as_dummy="$ac_dir"
35384 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
35385   case $as_mkdir_dir in
35386     # Skip DOS drivespec
35387     ?:) as_incr_dir=$as_mkdir_dir ;;
35388     *)
35389       as_incr_dir=$as_incr_dir/$as_mkdir_dir
35390       test -d "$as_incr_dir" ||
35391         mkdir "$as_incr_dir" ||
35392         { { echo "$as_me:35392: error: cannot create \"$ac_dir\"" >&5
35393 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
35394    { (exit 1); exit 1; }; }
35395     ;;
35396   esac
35397 done; }
35398
35399   ac_builddir=.
35400
35401 if test "$ac_dir" != .; then
35402   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35403   # A "../" for each directory in $ac_dir_suffix.
35404   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35405 else
35406   ac_dir_suffix= ac_top_builddir=
35407 fi
35408
35409 case $srcdir in
35410   .)  # No --srcdir option.  We are building in place.
35411     ac_srcdir=.
35412     if test -z "$ac_top_builddir"; then
35413        ac_top_srcdir=.
35414     else
35415        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35416     fi ;;
35417   [\\/]* | ?:[\\/]* )  # Absolute path.
35418     ac_srcdir=$srcdir$ac_dir_suffix;
35419     ac_top_srcdir=$srcdir ;;
35420   *) # Relative path.
35421     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35422     ac_top_srcdir=$ac_top_builddir$srcdir ;;
35423 esac
35424 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35425 # absolute.
35426 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35427 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
35428 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35429 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35430
35431
35432   case $INSTALL in
35433   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35434   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
35435   esac
35436
35437   if test x"$ac_file" != x-; then
35438     { echo "$as_me:35438: creating $ac_file" >&5
35439 echo "$as_me: creating $ac_file" >&6;}
35440     rm -f "$ac_file"
35441   fi
35442   # Let's still pretend it is `configure' which instantiates (i.e., don't
35443   # use $as_me), people would be surprised to read:
35444   #    /* config.h.  Generated by config.status.  */
35445   if test x"$ac_file" = x-; then
35446     configure_input=
35447   else
35448     configure_input="$ac_file.  "
35449   fi
35450   configure_input=$configure_input"Generated from `echo $ac_file_in |
35451                                      sed 's,.*/,,'` by configure."
35452
35453   # First look for the input files in the build tree, otherwise in the
35454   # src tree.
35455   ac_file_inputs=`IFS=:
35456     for f in $ac_file_in; do
35457       case $f in
35458       -) echo $tmp/stdin ;;
35459       [\\/$]*)
35460          # Absolute (can't be DOS-style, as IFS=:)
35461          test -f "$f" || { { echo "$as_me:35461: error: cannot find input file: $f" >&5
35462 echo "$as_me: error: cannot find input file: $f" >&2;}
35463    { (exit 1); exit 1; }; }
35464          echo $f;;
35465       *) # Relative
35466          if test -f "$f"; then
35467            # Build tree
35468            echo $f
35469          elif test -f "$srcdir/$f"; then
35470            # Source tree
35471            echo $srcdir/$f
35472          else
35473            # /dev/null tree
35474            { { echo "$as_me:35474: error: cannot find input file: $f" >&5
35475 echo "$as_me: error: cannot find input file: $f" >&2;}
35476    { (exit 1); exit 1; }; }
35477          fi;;
35478       esac
35479     done` || { (exit 1); exit 1; }
35480 _ACEOF
35481 cat >>$CONFIG_STATUS <<_ACEOF
35482   sed "$ac_vpsub
35483 $extrasub
35484 _ACEOF
35485 cat >>$CONFIG_STATUS <<\_ACEOF
35486 :t
35487 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35488 s,@configure_input@,$configure_input,;t t
35489 s,@srcdir@,$ac_srcdir,;t t
35490 s,@abs_srcdir@,$ac_abs_srcdir,;t t
35491 s,@top_srcdir@,$ac_top_srcdir,;t t
35492 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35493 s,@builddir@,$ac_builddir,;t t
35494 s,@abs_builddir@,$ac_abs_builddir,;t t
35495 s,@top_builddir@,$ac_top_builddir,;t t
35496 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35497 s,@INSTALL@,$ac_INSTALL,;t t
35498 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35499   rm -f $tmp/stdin
35500   if test x"$ac_file" != x-; then
35501     mv $tmp/out $ac_file
35502   else
35503     cat $tmp/out
35504     rm -f $tmp/out
35505   fi
35506
35507 done
35508 _ACEOF
35509 cat >>$CONFIG_STATUS <<\_ACEOF
35510
35511 #
35512 # CONFIG_HEADER section.
35513 #
35514
35515 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35516 # NAME is the cpp macro being defined and VALUE is the value it is being given.
35517 #
35518 # ac_d sets the value in "#define NAME VALUE" lines.
35519 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
35520 ac_dB='[        ].*$,\1#\2'
35521 ac_dC=' '
35522 ac_dD=',;t'
35523 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35524 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
35525 ac_uB='$,\1#\2define\3'
35526 ac_uC=' '
35527 ac_uD=',;t'
35528
35529 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
35530   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35531   case $ac_file in
35532   - | *:- | *:-:* ) # input from stdin
35533         cat >$tmp/stdin
35534         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35535         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35536   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35537         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35538   * )   ac_file_in=$ac_file.in ;;
35539   esac
35540
35541   test x"$ac_file" != x- && { echo "$as_me:35541: creating $ac_file" >&5
35542 echo "$as_me: creating $ac_file" >&6;}
35543
35544   # First look for the input files in the build tree, otherwise in the
35545   # src tree.
35546   ac_file_inputs=`IFS=:
35547     for f in $ac_file_in; do
35548       case $f in
35549       -) echo $tmp/stdin ;;
35550       [\\/$]*)
35551          # Absolute (can't be DOS-style, as IFS=:)
35552          test -f "$f" || { { echo "$as_me:35552: error: cannot find input file: $f" >&5
35553 echo "$as_me: error: cannot find input file: $f" >&2;}
35554    { (exit 1); exit 1; }; }
35555          echo $f;;
35556       *) # Relative
35557          if test -f "$f"; then
35558            # Build tree
35559            echo $f
35560          elif test -f "$srcdir/$f"; then
35561            # Source tree
35562            echo $srcdir/$f
35563          else
35564            # /dev/null tree
35565            { { echo "$as_me:35565: error: cannot find input file: $f" >&5
35566 echo "$as_me: error: cannot find input file: $f" >&2;}
35567    { (exit 1); exit 1; }; }
35568          fi;;
35569       esac
35570     done` || { (exit 1); exit 1; }
35571   # Remove the trailing spaces.
35572   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
35573
35574 _ACEOF
35575
35576 # Transform confdefs.h into two sed scripts, `conftest.defines' and
35577 # `conftest.undefs', that substitutes the proper values into
35578 # config.h.in to produce config.h.  The first handles `#define'
35579 # templates, and the second `#undef' templates.
35580 # And first: Protect against being on the right side of a sed subst in
35581 # config.status.  Protect against being in an unquoted here document
35582 # in config.status.
35583 rm -f conftest.defines conftest.undefs
35584 # Using a here document instead of a string reduces the quoting nightmare.
35585 # Putting comments in sed scripts is not portable.
35586 #
35587 # `end' is used to avoid that the second main sed command (meant for
35588 # 0-ary CPP macros) applies to n-ary macro definitions.
35589 # See the Autoconf documentation for `clear'.
35590 cat >confdef2sed.sed <<\_ACEOF
35591 s/[\\&,]/\\&/g
35592 s,[\\$`],\\&,g
35593 t clear
35594 : clear
35595 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35596 t end
35597 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35598 : end
35599 _ACEOF
35600 # If some macros were called several times there might be several times
35601 # the same #defines, which is useless.  Nevertheless, we may not want to
35602 # sort them, since we want the *last* AC-DEFINE to be honored.
35603 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35604 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35605 rm -f confdef2sed.sed
35606
35607 # This sed command replaces #undef with comments.  This is necessary, for
35608 # example, in the case of _POSIX_SOURCE, which is predefined and required
35609 # on some systems where configure will not decide to define it.
35610 cat >>conftest.undefs <<\_ACEOF
35611 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35612 _ACEOF
35613
35614 # Break up conftest.defines because some shells have a limit on the size
35615 # of here documents, and old seds have small limits too (100 cmds).
35616 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35617 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35618 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35619 echo '  :' >>$CONFIG_STATUS
35620 rm -f conftest.tail
35621 while grep . conftest.defines >/dev/null
35622 do
35623   # Write a limited-size here document to $tmp/defines.sed.
35624   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35625   # Speed up: don't consider the non `#define' lines.
35626   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
35627   # Work around the forget-to-reset-the-flag bug.
35628   echo 't clr' >>$CONFIG_STATUS
35629   echo ': clr' >>$CONFIG_STATUS
35630   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35631   echo 'CEOF
35632   sed -f $tmp/defines.sed $tmp/in >$tmp/out
35633   rm -f $tmp/in
35634   mv $tmp/out $tmp/in
35635 ' >>$CONFIG_STATUS
35636   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35637   rm -f conftest.defines
35638   mv conftest.tail conftest.defines
35639 done
35640 rm -f conftest.defines
35641 echo '  fi # egrep' >>$CONFIG_STATUS
35642 echo >>$CONFIG_STATUS
35643
35644 # Break up conftest.undefs because some shells have a limit on the size
35645 # of here documents, and old seds have small limits too (100 cmds).
35646 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
35647 rm -f conftest.tail
35648 while grep . conftest.undefs >/dev/null
35649 do
35650   # Write a limited-size here document to $tmp/undefs.sed.
35651   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35652   # Speed up: don't consider the non `#undef'
35653   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
35654   # Work around the forget-to-reset-the-flag bug.
35655   echo 't clr' >>$CONFIG_STATUS
35656   echo ': clr' >>$CONFIG_STATUS
35657   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
35658   echo 'CEOF
35659   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35660   rm -f $tmp/in
35661   mv $tmp/out $tmp/in
35662 ' >>$CONFIG_STATUS
35663   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35664   rm -f conftest.undefs
35665   mv conftest.tail conftest.undefs
35666 done
35667 rm -f conftest.undefs
35668
35669 cat >>$CONFIG_STATUS <<\_ACEOF
35670   # Let's still pretend it is `configure' which instantiates (i.e., don't
35671   # use $as_me), people would be surprised to read:
35672   #    /* config.h.  Generated by config.status.  */
35673   if test x"$ac_file" = x-; then
35674     echo "/* Generated by configure.  */" >$tmp/config.h
35675   else
35676     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
35677   fi
35678   cat $tmp/in >>$tmp/config.h
35679   rm -f $tmp/in
35680   if test x"$ac_file" != x-; then
35681     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
35682       { echo "$as_me:35682: $ac_file is unchanged" >&5
35683 echo "$as_me: $ac_file is unchanged" >&6;}
35684     else
35685       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35687          X"$ac_file" : 'X\(//\)[^/]' \| \
35688          X"$ac_file" : 'X\(//\)$' \| \
35689          X"$ac_file" : 'X\(/\)' \| \
35690          .     : '\(.\)' 2>/dev/null ||
35691 echo X"$ac_file" |
35692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35693           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35694           /^X\(\/\/\)$/{ s//\1/; q; }
35695           /^X\(\/\).*/{ s//\1/; q; }
35696           s/.*/./; q'`
35697       { case "$ac_dir" in
35698   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
35699   *)                      as_incr_dir=.;;
35700 esac
35701 as_dummy="$ac_dir"
35702 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
35703   case $as_mkdir_dir in
35704     # Skip DOS drivespec
35705     ?:) as_incr_dir=$as_mkdir_dir ;;
35706     *)
35707       as_incr_dir=$as_incr_dir/$as_mkdir_dir
35708       test -d "$as_incr_dir" ||
35709         mkdir "$as_incr_dir" ||
35710         { { echo "$as_me:35710: error: cannot create \"$ac_dir\"" >&5
35711 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
35712    { (exit 1); exit 1; }; }
35713     ;;
35714   esac
35715 done; }
35716
35717       rm -f $ac_file
35718       mv $tmp/config.h $ac_file
35719     fi
35720   else
35721     cat $tmp/config.h
35722     rm -f $tmp/config.h
35723   fi
35724   # Run the commands associated with the file.
35725   case $ac_file in
35726     include/config.h ) # update the timestamp
35727 echo 'timestamp for include/config.h' >"include/stamp-h1"
35728  ;;
35729   esac
35730 done
35731 _ACEOF
35732 cat >>$CONFIG_STATUS <<\_ACEOF
35733
35734 #
35735 # CONFIG_COMMANDS section.
35736 #
35737 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
35738   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
35739   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
35740   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
35741 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35742          X"$ac_dest" : 'X\(//\)[^/]' \| \
35743          X"$ac_dest" : 'X\(//\)$' \| \
35744          X"$ac_dest" : 'X\(/\)' \| \
35745          .     : '\(.\)' 2>/dev/null ||
35746 echo X"$ac_dest" |
35747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35748           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35749           /^X\(\/\/\)$/{ s//\1/; q; }
35750           /^X\(\/\).*/{ s//\1/; q; }
35751           s/.*/./; q'`
35752   ac_builddir=.
35753
35754 if test "$ac_dir" != .; then
35755   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35756   # A "../" for each directory in $ac_dir_suffix.
35757   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35758 else
35759   ac_dir_suffix= ac_top_builddir=
35760 fi
35761
35762 case $srcdir in
35763   .)  # No --srcdir option.  We are building in place.
35764     ac_srcdir=.
35765     if test -z "$ac_top_builddir"; then
35766        ac_top_srcdir=.
35767     else
35768        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35769     fi ;;
35770   [\\/]* | ?:[\\/]* )  # Absolute path.
35771     ac_srcdir=$srcdir$ac_dir_suffix;
35772     ac_top_srcdir=$srcdir ;;
35773   *) # Relative path.
35774     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35775     ac_top_srcdir=$ac_top_builddir$srcdir ;;
35776 esac
35777 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35778 # absolute.
35779 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35780 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
35781 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35782 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35783
35784
35785   { echo "$as_me:35785: executing $ac_dest commands" >&5
35786 echo "$as_me: executing $ac_dest commands" >&6;}
35787   case $ac_dest in
35788     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35789   # Strip MF so we end up with the name of the file.
35790   mf=`echo "$mf" | sed -e 's/:.*$//'`
35791   # Check whether this is an Automake generated Makefile or not.
35792   # We used to match only the files named `Makefile.in', but
35793   # some people rename them; so instead we look at the file content.
35794   # Grep'ing the first line is not enough: some people post-process
35795   # each Makefile.in and add a new line on top of each file to say so.
35796   # So let's grep whole file.
35797   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35798     dirpart=`(dirname "$mf") 2>/dev/null ||
35799 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35800          X"$mf" : 'X\(//\)[^/]' \| \
35801          X"$mf" : 'X\(//\)$' \| \
35802          X"$mf" : 'X\(/\)' \| \
35803          .     : '\(.\)' 2>/dev/null ||
35804 echo X"$mf" |
35805     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35806           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35807           /^X\(\/\/\)$/{ s//\1/; q; }
35808           /^X\(\/\).*/{ s//\1/; q; }
35809           s/.*/./; q'`
35810   else
35811     continue
35812   fi
35813   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
35814   # Extract the definition of DEP_FILES from the Makefile without
35815   # running `make'.
35816   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
35817   test -z "$DEPDIR" && continue
35818   # When using ansi2knr, U may be empty or an underscore; expand it
35819   U=`sed -n -e '/^U = / s///p' < "$mf"`
35820   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
35821   # We invoke sed twice because it is the simplest approach to
35822   # changing $(DEPDIR) to its actual value in the expansion.
35823   for file in `sed -n -e '
35824     /^DEP_FILES = .*\\\\$/ {
35825       s/^DEP_FILES = //
35826       :loop
35827         s/\\\\$//
35828         p
35829         n
35830         /\\\\$/ b loop
35831       p
35832     }
35833     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
35834        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35835     # Make sure the directory exists.
35836     test -f "$dirpart/$file" && continue
35837     fdir=`(dirname "$file") 2>/dev/null ||
35838 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35839          X"$file" : 'X\(//\)[^/]' \| \
35840          X"$file" : 'X\(//\)$' \| \
35841          X"$file" : 'X\(/\)' \| \
35842          .     : '\(.\)' 2>/dev/null ||
35843 echo X"$file" |
35844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35846           /^X\(\/\/\)$/{ s//\1/; q; }
35847           /^X\(\/\).*/{ s//\1/; q; }
35848           s/.*/./; q'`
35849     { case $dirpart/$fdir in
35850   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
35851   *)                      as_incr_dir=.;;
35852 esac
35853 as_dummy=$dirpart/$fdir
35854 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
35855   case $as_mkdir_dir in
35856     # Skip DOS drivespec
35857     ?:) as_incr_dir=$as_mkdir_dir ;;
35858     *)
35859       as_incr_dir=$as_incr_dir/$as_mkdir_dir
35860       test -d "$as_incr_dir" ||
35861         mkdir "$as_incr_dir" ||
35862         { { echo "$as_me:35862: error: cannot create $dirpart/$fdir" >&5
35863 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
35864    { (exit 1); exit 1; }; }
35865     ;;
35866   esac
35867 done; }
35868
35869     # echo "creating $dirpart/$file"
35870     echo '# dummy' > "$dirpart/$file"
35871   done
35872 done
35873  ;;
35874   esac
35875 done
35876 _ACEOF
35877
35878 cat >>$CONFIG_STATUS <<\_ACEOF
35879
35880 { (exit 0); exit 0; }
35881 _ACEOF
35882 chmod +x $CONFIG_STATUS
35883 ac_clean_files=$ac_clean_files_save
35884
35885
35886 # configure is writing to config.log, and then calls config.status.
35887 # config.status does its own redirection, appending to config.log.
35888 # Unfortunately, on DOS this fails, as config.log is still kept open
35889 # by configure, so config.status won't be able to write to it; its
35890 # output is simply discarded.  So we exec the FD to /dev/null,
35891 # effectively closing config.log, so it can be properly (re)opened and
35892 # appended to by config.status.  When coming back to configure, we
35893 # need to make the FD available again.
35894 if test "$no_create" != yes; then
35895   ac_cs_success=:
35896   exec 5>/dev/null
35897   $SHELL $CONFIG_STATUS || ac_cs_success=false
35898   exec 5>>config.log
35899   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35900   # would make configure fail if this is the last instruction.
35901   $ac_cs_success || { (exit 1); exit 1; }
35902 fi
35903
35904
35905
35906 cat > include/newversion.h.in <<EOF
35907 const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
35908 const char *heimdal_version = "Heimdal 0.4f";
35909 EOF
35910
35911 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
35912         echo "include/version.h is unchanged"
35913         rm -f include/newversion.h.in
35914 else
35915         echo "creating include/version.h"
35916         User=${USER-${LOGNAME}}
35917         Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
35918         Date=`date`
35919         mv -f include/newversion.h.in include/version.h.in
35920         sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
35921 fi